@font-face {
  font-family: Nunito;
  src: url("../assets/Nunito-wght.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/dm-sans-400.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/dm-sans-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #13223b;
  --muted: #536174;
  --blue: #064687;
  --yellow: #ffd04a;
  --canvas: #eef2f5;
  --paper: #fff;
  --line: #d5dee7;
  --focus: #135cad;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.55 "DM Sans", Arial, sans-serif; }
h1, h2, h3, h4, p, ol, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: Nunito, Arial, sans-serif; font-weight: 800; line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 4.3vw, 3.9rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 2.05rem); letter-spacing: -.035em; }
h3 { font-size: 1.18rem; letter-spacing: -.025em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: -80px; left: 16px; z-index: 5; background: white; padding: 12px; }
.skip:focus { top: 8px; }
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.workspace, .demo-footer { width: min(1360px, calc(100% - clamp(30px, 7vw, 88px))); margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; color: var(--blue); font: 700 11px/1.4 "DM Sans", Arial, sans-serif; }
.plan, .calendar { scroll-margin-top: 16px; }
.demo-note { color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 11px; }
.review, .review-notes, .plan, .calendar { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; }
.review-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 15px 17px; }
.meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.state { display: inline-flex; align-items: center; border-radius: 20px; padding: 5px 10px; font-size: 12px; font-weight: 700; background: #edf2f8; color: #375471; white-space: nowrap; }
.state[data-state="approved"] { background: #deefe4; color: #175333; }
.state[data-state="changes"] { background: #ffe8dd; color: #86300e; }
.preview-area { display: grid; place-items: center; padding: clamp(11px, 2.2vw, 28px); background: #e5ecf4; border-block: 1px solid var(--line); }
.piece-visual {
  width: min(100%, 455px);
  overflow: hidden;
  border-radius: 11px;
  background: #fff8e9;
  box-shadow: 0 10px 22px #10264b14;
}
.preview-area[data-format="story"] .piece-visual {
  width: min(100%, 305px);
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--blue);
}
.preview-area[data-format="story"] .creative-copy { padding-bottom: 21px; }
.creative-copy { padding: 14px 17px 17px; background: var(--blue); color: white; }
.creative-copy .eyebrow { color: var(--yellow); }
#creative-headline { font: 800 clamp(1.45rem, 3.1vw, 2.4rem)/1.06 Nunito, Arial, sans-serif; margin-top: 5px; letter-spacing: -.04em; }
.image-button { display: block; position: relative; width: 100%; border: 0; padding: 0; background: #fffbef; }
.image-button img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.image-button span { position: absolute; bottom: 10px; right: 10px; background: white; color: var(--blue); border-radius: 100px; padding: 5px 10px; font-size: 11px; font-weight: 700; border: 1px solid var(--line); }
.gallery-controls { display: flex; flex-wrap: wrap; padding: 12px 17px 0; gap: 8px; }
.visual-note { font-size: 11px; color: var(--muted); margin: 10px 17px; }
.action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 8px 12px;
  line-height: 1.3;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.action.primary { background: var(--blue); color: white; }
.action.primary:hover { background: #00366c; }
.action.secondary { background: white; color: var(--ink); border-color: #c3d2e1; }
.action.secondary:hover, .action.secondary[aria-pressed="true"] { background: #eaf2fa; border-color: var(--blue); }
.action.ghost { background: none; color: var(--blue); }
.action.ghost:hover { text-decoration: underline; }
.review-notes { padding: clamp(14px, 1.8vw, 25px); }
.review-notes > h3 { margin: 7px 0 8px; }
#piece-intent, .measure span { color: var(--muted); font-size: 14px; }
.measure { margin-top: 11px; font-size: 13px; }
.measure strong, .measure span { display: block; }
.caption, .review-form { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 13px; }
.caption-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#piece-caption { font-size: 14px; }
.review-form label { display: block; margin: 10px 0 6px; font-size: 13px; font-weight: 700; }
.review-form label span { color: var(--muted); font-weight: 400; }
textarea {
  width: 100%;
  display: block;
  resize: vertical;
  min-height: 84px;
  border-radius: 8px;
  border: 1px solid #aebdcd;
  padding: 8px 10px;
  font-size: 16px;
}
.actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.error { color: #943715; margin-top: 6px; font-size: 13px; }
.feedback, .record { margin-top: 9px; font-size: 14px; }
.feedback:empty { margin-top: 0; }
.record { overflow-wrap: anywhere; white-space: pre-wrap; }
#next { margin-top: 9px; }
.plan, .calendar { margin-top: 24px; padding: clamp(17px, 3vw, 36px); }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 55px); }
.plan-idea { margin: 8px 0 14px; color: var(--muted); }
.plan-choices { display: grid; gap: 7px; }
.plan-choices > div { border-top: 1px solid var(--line); padding-top: 7px; }
.plan-choices dt { font-weight: 700; }
.plan-choices dd, .calendar-header > p:last-child { color: var(--muted); font-size: 14px; margin-top: 4px; }
.calendar-list { list-style: none; padding: 0; margin-top: 10px; }
.calendar-entry { display: grid; grid-template-columns: 55px minmax(0, 1fr) auto; align-items: center; gap: 10px 15px; border-top: 1px solid var(--line); padding: 12px 0; }
.calendar-entry:last-child { padding-bottom: 0; }
.calendar-entry time { color: var(--blue); font-weight: 700; }
.calendar-action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.demo-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 17px; padding-block: 24px; color: var(--muted); font-size: 13px; }
dialog { width: min(580px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; }
dialog::backdrop { background: #081d3bbb; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 11px; }
dialog img { margin-inline: auto; max-height: calc(100dvh - 115px); object-fit: contain; }
#copy-notes { margin-top: 10px; }

@media (max-width: 900px) {
  .review-layout { grid-template-columns: minmax(130px, .55fr) minmax(0, 1.8fr); }
.review-notes { grid-column: 2; }
}
@media (max-width: 650px) {
  .top-inner { min-height: 65px; }
.plan { grid-template-columns: minmax(0, 1fr); }
.review-notes { grid-column: auto; }
.calendar-entry { grid-template-columns: 47px minmax(0, 1fr); column-gap: 7px; }
.calendar-action { grid-column: 2; }
}

:root {
  --canvas: #f2f4f4;
  --nav: #122642;
  --pane: #edf1f6;
  --wide-nav: 192px;
}
.client-sidebar {
  position: fixed;
  z-index: 5;
  inset: 0 auto 0 0;
  width: var(--wide-nav);
  display: flex;
  flex-direction: column;
  background: var(--nav);
  color: white;
  padding: 25px 16px;
}
.desktop-brand {
  display: block;
  align-self: flex-start;
  width: 123px;
  margin: 0 9px 36px;
  padding: 7px;
  background: #fff;
  border-radius: 6px;
}
.desktop-brand img { width: 100%; }
.sidebar-label { font-size: 9px; margin: 0 8px 11px; text-transform: uppercase; letter-spacing: .12em; color: #d2dfec; }
.client-nav { display: grid; gap: 6px; }
.client-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px 11px;
  text-align: left;
  background: none;
  color: #dce9f5;
  font-size: 13px;
}
.client-nav button > span { display: inline-block; min-width: 16px; font-size: 18px; text-align: center; line-height: 1; }
.client-nav button[aria-pressed="true"] { background: white; color: var(--nav); border-color: #a0bedb; }
.client-nav button:hover:not([aria-pressed="true"]) { background: #ffffff15; }
.sidebar-foot { margin-top: auto; padding: 21px 8px 0; border-top: 1px solid #dce9f52b; display: grid; gap: 12px; font-size: 12px; color: #e9eef5; }
.sidebar-foot a { color: #fbd970; }
.client-shell { margin-left: var(--wide-nav); }
.top { background: var(--canvas); }
.top-inner {
  width: min(1360px, calc(100% - clamp(32px, 6vw, 80px)));
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  gap: 13px;
}
.mobile-brand { display: none; }
.client-breadcrumb { margin-right: auto; font-size: 12px; color: var(--muted); }
.client-breadcrumb span { padding-inline: 8px; }
.client-logo { width: 58px; }
.exit-portal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
  font-weight: 700;
}
.preview-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 18px;
  padding: 10px clamp(16px, 3.5vw, 40px);
  border-bottom: 1px solid #d5e2f0;
  background: #eaf2fa;
  color: #36516c;
  font-size: 12px;
}
.preview-banner strong { color: var(--blue); margin-right: 10px; }
.preview-actions { display: flex; gap: 14px; }
.preview-actions button { min-height: 44px; border: 0; background: transparent; font-size: 12px; padding: 0; }
.preview-actions button:hover { text-decoration: underline; }

.workspace, .demo-footer { width: min(1360px, calc(100% - clamp(32px, 6vw, 80px))); }
.cycle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 26px 0 18px;
  color: var(--muted);
  font-size: 12px;
}
.cycle-line span:first-child, .deck-top { text-transform: uppercase; font-size: 10px; letter-spacing: .13em; font-weight: 700; }
.cycle-line span:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #2464a2; vertical-align: 1px; }
.client-welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 4.5vw, 64px); }
.welcome-copy h1 { margin: 11px 0 13px; }
.welcome-copy h1 + p { color: var(--muted); max-width: 460px; font-size: clamp(15px, 1.55vw, 19px); line-height: 1.55; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.welcome-actions .primary span { margin-left: 10px; font-size: 16px; }

.deck {
  min-width: 0;
  overflow: hidden;
  padding: 15px 17px 17px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: radial-gradient(ellipse at 50% 45%, #fbf5e5 0%, #ebeff3 72%);
  text-align: center;
}
.deck-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
#deck-count { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.deck-stage { position: relative; height: clamp(218px, 25vw, 345px); touch-action: pan-y; margin-block: 14px 7px; }
.deck-card {
  position: absolute;
  display: grid;
  width: clamp(122px, 45%, 230px);
  top: 50%;
  left: 50%;
  max-width: 100%;
  overflow: hidden;
  border: 4px solid white;
  border-radius: 13px;
  padding: 0;
  background: white;
  color: var(--ink);
  box-shadow: 0 16px 32px #0f22342b;
}
.deck-card img { width: 100%; aspect-ratio: 4/4.65; object-fit: cover; background: #fff8e9; }
.deck-card > span { padding: 6px 5px; font-size: 10px; font-weight: 700; line-height: 1.4; }
.deck-center { z-index: 2; transform: translate(-50%, -52%); }
.deck-prev { transform: translate(-104%, -44%) rotate(-13deg) scale(.82); }
.deck-next { transform: translate(5%, -44%) rotate(13deg) scale(.82); }
.deck-prev, .deck-next { filter: saturate(.73); }
.deck-card:focus-visible { z-index: 3; }
.deck-footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.deck-footer h2 { font-size: clamp(.95rem, 1.8vw, 1.25rem); }
.deck-arrow { flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #ffffffe0; font-size: 25px; line-height: 1; }
.deck-arrow:hover { color: var(--blue); border-color: var(--blue); }
.deck-open { margin-top: 11px; }
.client-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 19px;
  margin-top: 19px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffffad;
  color: var(--muted);
  font-size: 13px;
}
.client-progress strong { color: var(--ink); }
.client-progress progress { width: min(175px, 100%); height: 8px; accent-color: var(--blue); }
.plan { display: block; padding: 0; margin-top: 14px; }
.plan summary { display: flex; align-items: center; justify-content: space-between; gap: 13px; list-style: none; padding: 15px; font-size: 13px; }
.plan summary::-webkit-details-marker { display: none; }
.plan summary strong { display: block; color: var(--ink); font-size: 18px; }
.plan-reveal { border-top: 1px solid var(--line); padding: 14px 15px 16px; }
.plan-choices { margin-top: 9px; }
.publication-shelf { margin-top: 30px; scroll-margin-top: 12px; }
.publication-shelf > p { color: var(--muted); margin-top: 5px; }
.publication-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px 15px; margin: 13px 0; }
.publication-filters, .publication-views { display: flex; flex-wrap: wrap; gap: 6px; }
.publication-toolbar .action { font-size: 12px; }
.publication-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.queue-button { display: block; width: 100%; overflow: hidden; padding: 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.queue-button:hover { border-color: var(--blue); }
.queue-button img { width: 100%; aspect-ratio: 1.4; object-fit: cover; background: #fff8e9; }
.queue-button > span { display: grid; justify-items: start; gap: 5px; padding: 10px; }
.queue-button strong { line-height: 1.25; }
.queue-description { color: var(--muted); font-size: 11px; }
.queue-button .state { font-size: 10px; }
.calendar { margin-top: 0; }
.calendar-header > p:last-child { margin-bottom: 9px; }

.client-page { padding-block: 32px 15px; }
.client-page h1 { margin-block: 10px 12px; }
.page-intro { color: var(--muted); max-width: 620px; margin-bottom: 19px; }
.universe-grid, .next-month-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px; }
.universe-orbit {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 15px;
  min-height: 280px;
  overflow: hidden;
  border-radius: 19px;
  background: radial-gradient(ellipse, #fff9de, #e7eef5 72%);
  border: 1px solid var(--line);
}
.universe-orbit img { width: 112px; }
.orbit-rings { position: absolute; z-index: -1; top: 50%; left: 50%; width: 215px; aspect-ratio: 1; border: 1px solid #18538940; border-radius: 50%; transform: translate(-50%, -50%) rotate(-19deg) scaleX(1.38); box-shadow: 0 0 0 24px #ffffff38, 0 0 0 25px #18538925; }
.orbit-controls { display: flex; gap: 9px; }
.universe-detail, .contribution-card { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: white; padding: 16px; }
.universe-topics { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.universe-topics .action { font-size: 12px; }
#universe-description { margin-top: 7px; color: var(--muted); }
.contribution-card label { display: block; margin-top: 9px; font-size: 13px; font-weight: 700; }
.contribution-card :is(select, input) { width: 100%; min-height: 44px; border: 1px solid #aebdcd; border-radius: 8px; background: white; color: var(--ink); padding: 7px 9px; font: inherit; font-size: 16px; }
.contribution-card .action { margin-top: 10px; }
.ideas-list { padding-left: 18px; }
.ideas-list li { padding: 9px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.idea-reference { color: var(--muted); font-size: 12px; }

.review-dialog {
  width: min(1260px, calc(100% - 38px));
  max-height: calc(100dvh - 38px);
  padding: 0;
  background: var(--canvas);
  border-radius: 19px;
  overscroll-behavior: contain;
}
.review-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; background: var(--canvas); }
.review-dialog-head .review-header { padding: 0; }
.dialog-close { min-width: 44px; height: 44px; border-radius: 9px; border: 1px solid var(--line); background: white; font-size: 26px; line-height: 1; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px; }
.review-notes { display: grid; gap: 12px; padding: 0; border: 0; background: none; }
.review-notes :is(.caption, .criterion, .review-form) { margin: 0; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.review-notes .criterion { background: #eaf2fa; border-left: 2px solid #4581bb; }
.criterion .eyebrow + .eyebrow { margin-top: 7px; font-size: 9px; }
.criterion h3 { margin-block: 5px; }
.review-navigation { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px; padding: 0 16px 16px; }
.review-navigation button:disabled { opacity: .53; cursor: default; }
#piece-title:focus { outline: 0; }

@media (max-width: 820px) {
  .client-shell { margin-left: 0; padding-bottom: 85px; }
  .client-sidebar {
    inset: auto 10px max(9px, env(safe-area-inset-bottom)) 10px;
    width: auto;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 8px 24px #13223b2a;
  }
  .client-sidebar :is(.desktop-brand, .sidebar-label, .sidebar-foot), .client-breadcrumb { display: none; }
  .client-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .client-nav button { flex-direction: column; justify-content: center; text-align: center; gap: 2px; min-height: 47px; padding: 4px 3px; color: var(--muted); font-size: 11px; line-height: 1.25; }
  .client-nav button[aria-pressed="true"] { background: var(--nav); color: white; border-color: var(--nav); }
  .client-nav button:hover:not([aria-pressed="true"]) { background: #dbe9f3; }
  .mobile-brand { margin-right: auto; width: 103px; display: block; }
}
@media (max-width: 620px) {
  .top-inner { min-height: 58px; }
  .preview-banner { gap: 2px; padding-block: 8px 3px; }
  .preview-banner strong { display: block; margin-bottom: 2px; }
  .preview-actions button { min-height: 40px; }
  .cycle-line { margin: 20px 0 12px; }
  .cycle-line span:last-child { font-size: 11px; }
  .client-welcome, .universe-grid, .next-month-grid, .review-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .welcome-actions { margin-top: 14px; }
  .deck-stage { height: clamp(205px, 61vw, 320px); }
  .publication-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .review-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); border-radius: 13px; }
  .review-dialog-head { padding: 10px; }
  .review-layout { padding: 10px; }
  .review-navigation { padding-inline: 10px; }
}
