:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #18223d;
  background: #f4f6fb;
  line-height: 1.5;
  --muted: #4f5c76;
  --line: #dbe1ec;
  --blue: #303c9c;
  --blue-dark: #222b7a;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible, h2:focus-visible {
  outline: 3px solid #5366d0;
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner, .brand, .intro, footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-inner { min-height: 77px; }
.brand { justify-content: flex-start; font-size: 1.05rem; font-weight: 750; line-height: 1.15; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 1.3rem;
}
.brand small { display: block; color: var(--muted); font-size: .85rem; margin-top: 5px; font-weight: 500; }
.intro {
  position: relative;
  margin-top: 32px;
  overflow: hidden;
  padding: 32px 36px;
  border: 1px solid #d7dbf5;
  border-radius: 18px;
  background: radial-gradient(ellipse at top right, #dfdff7, transparent 65%), #edf0ff;
}
.eyebrow { color: var(--blue-dark); font-size: .875rem; font-weight: 700; letter-spacing: .025em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -.05em; margin: 7px 0 12px; }
.intro p, .muted { color: var(--muted); }
.demo-label {
  align-self: flex-start;
  color: #394568;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
  background: #ffffffab;
  border: 1px solid #d7dbef;
  padding: 5px 10px;
  border-radius: 99px;
}
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 24px; }
.stat {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 16px;
}
.stat strong {
  display: grid;
  place-items: center;
  background: #eef1ff;
  color: var(--blue-dark);
  border-radius: 9px;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  font-size: 1.125rem;
}
.stat span { font-size: .9rem; font-weight: 650; }
.board { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 2fr); align-items: start; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.milestones { padding: 18px; }
.milestones h2 { margin: 1px 0 12px 3px; font-size: 1.125rem; }
#milestone-list { display: grid; gap: 8px; }
.milestone {
  display: grid;
  width: 100%;
  gap: 6px;
  text-align: left;
  background: #fff;
  color: inherit;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 12px;
}
.milestone + .milestone { border-top-color: #edf0f5; }
.milestone:hover { background: #f4f5fb; }
.milestone[aria-current="true"] { background: #edf0ff; border-color: #bbc5f0; box-shadow: inset 3px 0 var(--blue); }
.milestone-meta, .detail-meta { color: var(--muted); font-size: .875rem; }
.milestone strong { line-height: 1.28; }
.badge { justify-self: start; line-height: 1.35; display: inline-block; font-size: .875rem; font-weight: 650; border-radius: 99px; padding: 4px 9px; background: #eef1f6; color: #46536c; }
.badge.review { background: #fff2d9; color: #704109; }
.badge.approved { background: #def3e9; color: #185843; }
.badge.changes { background: #fbe7e4; color: #8d3628; }
.detail { padding: 24px; }
.detail-head { display: flex; align-items: flex-start; gap: 10px 16px; justify-content: space-between; flex-wrap: wrap; }
.detail-head h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; line-height: 1.18; margin-top: 4px; }
.detail h3 { font-size: 1rem; margin-bottom: 5px; }
.detail-body { display: grid; gap: 17px; margin: 19px 0; }
.detail-body ul { margin: 5px 0 0; padding-left: 20px; }
.detail-body li + li { margin-top: 3px; }
.evidence {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  background: #f8f9fd;
}
.evidence .muted, .actions p, footer { font-size: .875rem; }
.actions { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 17px; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.primary, .secondary, .quiet {
  border-radius: 9px;
  font-size: .9rem;
  line-height: 1.35;
  font-weight: 680;
  padding: 9px 13px;
  min-height: 42px;
}
.primary { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.primary:hover { background: var(--blue-dark); }
.secondary { color: #232f6a; background: #fff; border: 1px solid #bac5e0; }
.secondary:hover, .quiet:hover { background: #edf0ff; }
.quiet { color: var(--blue-dark); background: transparent; border: 1px solid transparent; }
.feedback { color: #185843; padding-top: 12px; }
.feedback:empty { padding: 0; }
footer { color: var(--muted); padding: 14px 0 24px; }
.history { padding-left: 20px; margin-bottom: 0; }
.history p { white-space: pre-wrap; overflow-wrap: anywhere; }
dialog {
  width: min(540px, calc(100% - 28px));
  padding: 23px;
  background: #fff;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  max-height: calc(100% - 28px);
}
dialog::backdrop { background: #111a3c80; }
dialog h2 { font-size: 1.45rem; margin-bottom: 8px; line-height: 1.25; }
dialog p + p { margin-top: 9px; }
dialog label { display: block; font-weight: 650; margin: 15px 0 6px; }
textarea { display: block; width: 100%; min-height: 95px; resize: vertical; border: 1px solid #aab7d2; border-radius: 8px; padding: 8px; }
.mail { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-top: 12px; background: #f8f9fd; }
.sample-table { border-collapse: collapse; width: 100%; margin-top: 12px; font-size: .9rem; }
.sample-table th, .sample-table td { padding: 7px 8px; border: 1px solid var(--line); text-align: left; }
.sample-table thead { background: #edf0ff; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .topbar-inner { min-height: 66px; }
  .intro { margin-top: 18px; padding: 21px; }
  .board { grid-template-columns: 1fr; gap: 12px; }
  .summary { gap: 7px; margin: 12px 0; }
  .stat { padding: 9px; gap: 6px; align-items: flex-start; flex-direction: column; }
  .detail, .milestones { padding: 16px; }
}
@media (max-width: 380px) {
  .intro { align-items: flex-start; flex-direction: column; }
  .brand { gap: 8px; }
  .email-link { padding-inline: 5px; }
}
