@font-face {
  font-family: Geist;
  src: url('assets/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: Geist, Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  --ink: #10251e;
  --chrome: #0b1713;
  --action-ink: #08291d;
  --muted: #486057;
  --line: #dce9e3;
  --paper: #f5f9f7;
  --surface: #fff;
  --subtle: #eaf4ef;
  --hover: #e0f3eb;
  --accent: #00765b;
  --accent-deep: #005442;
  --accent-soft: #dff6eb;
  --accent-line: #bce9d7;
  --signal: #a3e8cc;
  --gradient: linear-gradient(125deg, #0a987e, #06c07f 60%, #3dd1af);
  --gradient-action: linear-gradient(115deg, #00d781, #68e4c4);
  --route: #5aa98e;
  --panel-shadow: 0 1px 2px #08271d09, 0 6px 18px #08271d05;
  --ease-out: cubic-bezier(.2, .78, .24, 1);
  --motion-view: 320ms;
  --motion-card: 460ms;
  --frame: 1340px;
  --gutter: clamp(16px, 2.75vw, 40px);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
strong, b { font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.startup { position: fixed; z-index: 20; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 20px; background: radial-gradient(ellipse at 50% 52%, #144536 0, var(--chrome) 65%); color: #f4fff9; text-align: center; pointer-events: none; transition: opacity 220ms var(--ease-out); }
.startup.is-ready { opacity: 0; }
.startup-mark { position: relative; display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 5px; border-radius: 24px; isolation: isolate; }
.startup-mark::before { position: absolute; z-index: -2; inset: 0; border-radius: 50%; background: conic-gradient(#0a987e, #00e181, #3dd1af, #0a987e); animation: startup-orbit 1.4s linear infinite; content: ''; }
.startup-mark::after { position: absolute; z-index: -1; inset: 3px; border-radius: 50%; background: #10251e; content: ''; }
.startup-mark img { border-radius: 16px; box-shadow: 0 9px 24px #0006; }
.startup strong { font-size: 20px; font-weight: 820; letter-spacing: -.05em; }
.startup span { color: #b3dacb; font-size: 12px; }
.startup > i { position: relative; display: block; width: 86px; height: 3px; margin-top: 5px; overflow: hidden; border-radius: 99px; background: #416456; }
.startup > i::after { position: absolute; inset: 0; width: 48%; border-radius: inherit; background: var(--gradient); animation: startup-progress .9s var(--ease-out) infinite; content: ''; }
@keyframes startup-orbit { to { transform: rotate(360deg); } }
@keyframes startup-progress { from { transform: translateX(-100%); } to { transform: translateX(220%); } }

.app-shell { min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 4; border-bottom: 1px solid #294538; background: #0b1713f5; backdrop-filter: blur(12px); }
.topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; max-width: var(--frame); min-height: 63px; margin: 0 auto; padding: 0 var(--gutter); }
.brand-lockup, .topbar-actions { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-lockup { color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -.05em; white-space: nowrap; }
.brand-lockup img { flex-shrink: 0; }
.wordmark-map { color: var(--accent); }
.topbar .brand-lockup { color: #f4fff9; }
.topbar .wordmark-map { color: #68e4c4; }
.topbar-actions { justify-content: flex-end; }
.workspace-nav { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid #263f34; border-radius: 12px; background: #162b23; }
.workspace-nav button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 35px; padding: 5px 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #c4ddd3; font-size: 12px; font-weight: 640; white-space: nowrap; transition: color .16s, background .16s; }
.workspace-nav button:hover { color: #fff; background: #254438; }
.workspace-nav button[aria-current] { border-color: #36cfa0; background: var(--gradient-action); color: var(--action-ink); font-weight: 730; box-shadow: 0 3px 8px #00b77a33; }
.workspace-nav button[aria-current] svg { color: #0c4937; }
.brand-picker { position: relative; display: inline-flex; align-items: center; min-width: 104px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.brand-avatar { position: absolute; display: grid; place-items: center; left: 6px; width: 23px; height: 23px; border-radius: 6px; color: var(--accent-deep); background: var(--accent-soft); font-size: 11px; font-weight: 720; pointer-events: none; }
.brand-avatar.bic { color: #814d61; background: #f4e4eb; }
.brand-picker select { appearance: none; width: 100%; min-height: 35px; padding: 3px 23px 3px 34px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 650; cursor: pointer; }
.brand-picker > svg { position: absolute; right: 7px; color: var(--muted); pointer-events: none; }
.topbar .brand-picker, .topbar .preview-button { background: #172b23; border-color: #355547; color: #edfdf5; }
.topbar .brand-picker select { color: #edfdf5; }
.topbar .brand-picker option { background: #12271f; color: #edfdf5; }
.topbar .brand-picker > svg, .topbar .button.preview-button svg { color: #9ce7ce; }
.topbar .preview-button:hover { background: #234639; border-color: #5a9a82; }
.topbar :focus-visible { outline-color: #65e6bf; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12px; font-weight: 670; white-space: nowrap; transition: background .18s, border-color .18s, transform .18s var(--ease-out); }
a.button, a.text-button { color: var(--ink); text-decoration: none; }
.button:hover:not(:disabled) { border-color: #a6d9c6; background: var(--subtle); }
.button.primary { border-color: #20c892; background: var(--gradient-action); color: var(--action-ink); font-weight: 750; box-shadow: 0 2px 6px #0a875b28; }
.button.primary:hover:not(:disabled) { border-color: #008765; background: linear-gradient(115deg, #00ca76, #3dd1af); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button.preview-button svg { color: var(--accent); }
.button.icon-button { flex-shrink: 0; width: 36px; min-height: 36px; padding: 0; }
.eyebrow { color: var(--muted); font-size: 10.5px; font-weight: 720; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; }
.draft-chip { display: inline-flex; flex-shrink: 0; align-items: center; min-height: 22px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 99px; background: var(--subtle); color: var(--muted); font-size: 10px; font-weight: 620; white-space: nowrap; }
.period { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 560; white-space: nowrap; }
:is(.status, .event-status, .review-result) { background: var(--status-bg, var(--subtle)); color: var(--status-ink, var(--muted)); }
.status { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 22px; padding: 3px 8px; border-radius: 99px; font-size: 10.5px; line-height: 1.12; font-weight: 620; white-space: nowrap; }
.status i { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
:is(.status, .event-status, .review-result).amber { --status-ink: #754711; --status-bg: #fff2d6; }
:is(.status, .event-status, .review-result).green { --status-ink: #075e42; --status-bg: #e5f6ed; }
:is(.status, .event-status, .review-result).blue { --status-ink: #305b8a; --status-bg: #e8f1fc; }
:is(.status, .event-status, .review-result).coral { --status-ink: #8b4036; --status-bg: #faeae7; }

.workspace-content { max-width: var(--frame); margin: 0 auto; padding: 21px var(--gutter) 44px; }
.campaign-heading { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 226px; margin-bottom: 16px; overflow: hidden; border: 1px solid #22443a; border-radius: 20px; background: radial-gradient(ellipse at 97% 72%, #0a987e9c, transparent 60%), linear-gradient(120deg, #091410, #12342a); color: #f7fff9; }
.campaign-identity { position: relative; z-index: 1; align-self: center; min-width: 0; padding: 21px 25px; }
.campaign-kicker, .campaign-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.campaign-kicker { margin-bottom: 9px; }
.campaign-brand { display: inline-flex; align-items: center; gap: 7px; color: #d4f9e9; font-size: 12px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.brand-monogram { display: inline-grid; flex-shrink: 0; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-deep); font-size: 13px; font-weight: 760; }
.campaign-brand .brand-monogram { width: 24px; height: 24px; border-radius: 7px; background: var(--signal); color: var(--ink); font-size: 12px; }
.campaign-kicker .draft-chip { border-color: #395a4e; background: #18342a; color: #d0ebdf; }
.campaign-heading h1 { max-width: 13ch; color: #f8fff9; font-size: clamp(38px, 4.2vw, 59px); font-weight: 760; letter-spacing: -.065em; line-height: .99; overflow-wrap: anywhere; text-wrap: balance; }
.campaign-meta { gap: 7px 9px; margin-top: 13px; }
.campaign-meta .period { color: #d6eae1; }
.campaign-meta .status.green { --status-ink: #d8f0d9; --status-bg: #354337; }
.campaign-meta .button { min-height: 32px; padding: 5px 9px; border-color: #395a4e; background: #18342a; color: #eefdf7; }
.campaign-meta .button:hover { border-color: #64a38c; background: #234d3e; }
.campaign-meta .button:focus-visible { outline-color: var(--signal); }
.campaign-meta .button.primary { border-color: #42d7a4; background: var(--gradient-action); color: var(--action-ink); }
.campaign-meta .button.primary:hover { background: linear-gradient(115deg, #00c477, #4bdabb); }
.campaign-cover { position: relative; min-width: 0; background: radial-gradient(ellipse at 92% 15%, #3dd1af60, transparent 53%), radial-gradient(ellipse at 75% 55%, #06c07f52, transparent 69%); }
.campaign-cover::before { position: absolute; inset: 0; content: ''; background-image: linear-gradient(#b5fbe124 1px, transparent 1px), linear-gradient(90deg, #b5fbe124 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent, #000 32%); }
.campaign-route { position: absolute; inset: 0; width: 100%; height: 100%; color: #77d4b6; pointer-events: none; }
.route-trace { color: var(--signal); opacity: .72; }
.enter .route-trace { animation: trace-route .9s var(--ease-out) both; }
.cover-sheet { position: absolute; display: grid; padding: 5px; border: 1px solid #fcfffc; border-radius: 6px; background: #f7fff9; color: #15392c; box-shadow: 0 13px 32px #051711a8; transition: rotate var(--motion-card) var(--ease-out), translate var(--motion-card) var(--ease-out); }
.cover-sheet-back { top: 20%; left: 20%; width: min(35%, 162px); padding-bottom: 14px; rotate: -13deg; }
.cover-sheet-front { top: 8%; left: 43%; width: min(41%, 175px); rotate: 8deg; }
.cover-sheet .artwork, .cover-print, .cover-swatch { display: grid; place-items: center; width: 100%; aspect-ratio: 1.04; border-radius: 3px; object-fit: cover; }
.cover-print { background: radial-gradient(circle at 90% 82%, #53dfb1 0 24%, transparent 24.4%), linear-gradient(136deg, #09674f, #0b9673); color: #f0fff8; font-size: clamp(32px, 5vw, 70px); font-weight: 820; letter-spacing: -.08em; }
.cover-swatch { background: repeating-linear-gradient(137deg, #19a682 0 15%, #96e4c9 15% 30%); }
.cover-sheet-label { display: flex; justify-content: space-between; gap: 4px; padding: 4px 1px 1px; font-size: 8.5px; font-weight: 740; letter-spacing: .075em; text-transform: uppercase; }
.cover-index { position: absolute; right: 13px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border: 1px solid #9ce1c773; border-radius: 4px; background: #0c231ae8; color: #efdcf7; font-size: 8px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.cover-index i { width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }
.enter .cover-sheet { animation: unfold-proof .64s var(--ease-out) backwards; }
.enter .cover-sheet-front { animation-delay: 75ms; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .campaign-cover:hover .cover-sheet-back { rotate: -16deg; translate: -5px 2px; }
  .campaign-cover:hover .cover-sheet-front { rotate: 5deg; translate: 7px -3px; }
}

.campaign-tree { padding: 13px 15px 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--panel-shadow); }
.map-heading, .map-root { display: flex; align-items: center; gap: 8px; min-width: 0; }
.map-heading { justify-content: space-between; }
.map-root-icon { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 9px; color: var(--signal); background: var(--ink); }
.map-root-icon::after { position: absolute; content: ''; top: 100%; left: 18px; height: 13px; border-left: 1px solid #bfdcd1; }
.map-heading h2 { color: var(--ink); font-size: 16px; font-weight: 755; letter-spacing: -.026em; white-space: nowrap; }
.map-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.button.add-section { min-height: 34px; }
.tree-branches { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr)); gap: 9px; margin-top: 6px; padding-top: 18px; }
.tree-branches::before { position: absolute; content: ''; top: 7px; right: 18px; left: 18px; border-top: 1px solid #bfdcd1; }
.branch-node { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 57px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 10px; background: #f7fbf9; text-align: left; transition: border-color .18s, background .18s; }
.branch-node::before { position: absolute; z-index: 1; top: -16px; left: 13px; box-sizing: border-box; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; background: #73b49b; box-shadow: 0 0 0 1px #bfdcd1; content: ''; }
.branch-node::after { position: absolute; top: -10px; left: 17px; height: 9px; border-left: 1px solid #bfdcd1; content: ''; }
.branch-node:hover { border-color: var(--accent-line); }
.branch-node[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); }
.branch-node[aria-pressed="true"]::before { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.branch-node[aria-pressed="true"]::after { border-color: var(--route); }
.branch-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: var(--subtle); color: var(--muted); }
.branch-node[aria-pressed="true"] .branch-icon { background: var(--ink); color: var(--signal); }
.branch-copy { flex: 1; min-width: 0; }
.branch-copy strong { display: block; font-size: 13px; font-weight: 720; line-height: 1.16; overflow-wrap: anywhere; }
.branch-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 10.5px; }
.branch-node > svg { color: var(--muted); }
.branch-node[aria-pressed="true"] small, .branch-node[aria-pressed="true"] > svg { color: var(--accent-deep); }
.tree-branches.has-more-branches { padding-top: 4px; }
.has-more-branches::before, .has-more-branches .branch-node::before, .has-more-branches .branch-node::after, .campaign-tree:has(.has-more-branches) .map-root-icon::after { display: none; }

.creative-section { min-width: 0; margin-top: 20px; }
.creative-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.creative-heading h2 { margin-top: 3px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 760; letter-spacing: -.055em; line-height: 1.04; overflow-wrap: anywhere; }
.review-next { min-height: 37px; }
.review-next svg, .pack-copy > .button svg { transition: translate .18s var(--ease-out); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .review-next:hover svg, .pack-copy > .button:hover svg { translate: 3px 0; }
}
.group-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.group-node { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; }
.group-node:hover { border-color: var(--accent-line); }
.group-node[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-deep); font-weight: 680; }
.group-node > span { padding: 1px 5px; border-radius: 99px; background: var(--subtle); font-size: 10px; }
.group-node[aria-pressed="true"] > span { background: var(--surface); }
.creative-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.creative-tile { min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--panel-shadow); text-align: left; transition: border-color .2s, translate .2s var(--ease-out); }
.tile-art { position: relative; display: block; overflow: hidden; border-radius: 12px 12px 0 0; background: var(--subtle); }
.artwork { display: block; width: 100%; object-fit: cover; background: var(--subtle); }
.tile-art .artwork { aspect-ratio: 1.55; transition: transform .32s var(--ease-out); }
.tile-version, .tile-open { position: absolute; display: grid; place-items: center; }
.tile-version { top: 8px; left: 8px; padding: 4px 7px; border-radius: 5px; background: #0c231ae8; color: #f7f9f1; font-size: 10px; font-weight: 720; }
.tile-open { background: #ffffffed; color: var(--ink); }
.tile-open { right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; transition: color .18s, background .18s; }
.tile-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 7px; padding: 9px 10px 10px; }
.tile-copy strong { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
@media (hover: hover) {
  .creative-tile:hover { translate: 0 -2px; border-color: var(--accent-line); }
  .creative-tile:hover .artwork { transform: scale(1.035); }
  .creative-tile:hover .tile-open { background: var(--ink); color: var(--signal); }
}
.placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; min-height: 50px; color: var(--muted); text-align: center; font-size: 11px; }
.tile-art .placeholder { background: var(--subtle) radial-gradient(#9bd4be80 0.7px, transparent 0.7px) 0 0 / 15px 15px; }
.group-empty { display: grid; justify-items: center; gap: 9px; padding: 29px 12px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); text-align: center; font-size: 13px; }
.group-empty > svg { color: var(--accent); }

.content-screen { max-width: 1120px; padding: 5px 0 30px; }
.content-screen h1, .calendar-heading h1, .client-heading h1 { color: var(--ink); font-size: clamp(34px, 3.6vw, 48px); font-weight: 680; letter-spacing: -.055em; line-height: 1.06; }
.content-screen .eyebrow, .client-heading .eyebrow { margin-bottom: 6px; }
.view-brand { color: var(--accent-deep); }
.content-lead, .calendar-heading p { margin-top: 4px; color: var(--muted); font-size: clamp(13px, 1.25vw, 16px); line-height: 1.5; }
.overview-period, .overview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.overview-period > span:last-child { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.overview-brief { max-width: 56ch; margin-top: 19px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.overview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; margin: 25px 0 0; padding: 14px 0; border-block: 1px solid var(--line); }
.overview-stats > div + div { padding-left: 13px; border-left: 1px solid var(--line); }
.overview-stats dt { color: var(--muted); font-size: 12px; }
.overview-stats dd { margin: 4px 0 0; font-size: 25px; font-weight: 800; }

.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--panel-shadow); }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
.calendar-layout.has-post-panel { grid-template-columns: minmax(0, 1fr) clamp(250px, 21.7vw, 346px); }
.calendar-main { min-width: 0; padding: 2px 0 24px; }
.calendar-heading { margin: 0 0 17px 3px; }
.calendar-heading .eyebrow { margin-bottom: 5px; }
.calendar-heading h1 { font-size: clamp(35px, 3.2vw, 48px); }
.calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 3px 13px; }
.calendar-toolbar > .button { margin-left: auto; }
.grid-export-actions, .pack-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.grid-export-actions { margin-left: auto; }
.month-control, .arrow-pair, .client-pagination { display: inline-flex; align-items: center; gap: 5px; }
.month-control { min-height: 38px; padding-inline: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.month-control .icon-button { border: 0; background: transparent; }
.month-control h2 { min-width: 116px; text-align: center; font-size: 14px; font-weight: 800; white-space: nowrap; }
.segmented { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--subtle); }
.segmented button { display: inline-flex; align-items: center; gap: 5px; min-height: 29px; padding: 4px 7px; border: 0; border-radius: 6px; background: transparent; font-size: 11.5px; font-weight: 720; white-space: nowrap; transition: color .18s, background .18s, box-shadow .18s; }
.segmented button:hover { background: var(--hover); }
.segmented button[aria-pressed="true"] { color: var(--accent-deep); background: var(--surface); box-shadow: 0 1px 3px #10251e12; }
.channel-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 3px 12px; }
.filter { display: inline-flex; align-items: center; gap: 5px; min-height: 31px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 11.5px; font-weight: 680; white-space: nowrap; }
.filter:hover { border-color: var(--accent-line); }
.filter[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-deep); }
.filter b { padding: 1px 5px; border-radius: 99px; background: var(--subtle); color: var(--muted); }
.filter[aria-pressed="true"] b { background: var(--surface); color: inherit; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { align-items: center; min-height: 33px; background: var(--subtle); text-align: center; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.calendar-day { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: clamp(64px, 5.7vw, 86px); padding: 4px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.outside { background: var(--paper); color: var(--muted); }
.calendar-day time { padding-left: 2px; font-size: 11px; font-weight: 750; }
.calendar-event { display: flex; align-items: center; gap: 4px; min-width: 0; min-height: 43px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #f7fbf9; text-align: left; }
.calendar-event[aria-pressed="true"], .calendar-event:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.calendar-event .calendar-thumb { flex-shrink: 0; width: clamp(19px, 2vw, 30px); height: clamp(23px, 2.5vw, 35px); min-height: 0; border-radius: 4px; }
.calendar-thumb.placeholder span { display: none; }
.calendar-thumb.placeholder svg { width: 13px; }
.event-copy { display: grid; gap: 1px; min-width: 0; }
.event-copy > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-copy small { color: var(--muted); font-size: 9.5px; }
.event-copy strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--ink); font-size: 11px; font-weight: 740; line-height: 1.13; white-space: normal; overflow-wrap: anywhere; }
.event-status { justify-self: start; padding: 1px 3px; border-radius: 3px; font-size: 9px; font-weight: 700; }
.post-inspector { position: sticky; top: 80px; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--panel-shadow); }
.post-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; margin-bottom: 13px; }
.post-heading h2 { margin-top: 3px; color: var(--ink); font-size: clamp(21px, 1.8vw, 29px); font-weight: 750; letter-spacing: -.045em; line-height: 1.13; overflow-wrap: anywhere; }
.post-heading .icon-button { border-color: transparent; background: transparent; }
.post-preview-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.post-profile { display: flex; align-items: center; gap: 8px; padding: 9px 10px; }
.post-profile strong, .post-profile small { display: block; overflow-wrap: anywhere; }
.post-profile strong { font-size: 12px; }
.post-profile small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.preview-art { border-block: 1px solid var(--line); background: var(--subtle); }
.preview-art .artwork { aspect-ratio: 1.24; max-height: 36dvh; object-fit: contain; }
.post-caption { padding: 10px; color: var(--ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.post-caption.is-empty { color: var(--muted); font-style: italic; }
.item-facts { display: grid; gap: 0; margin: 0; padding: 9px 15px; font-size: 12.5px; }
.item-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 34px; padding-block: 5px; border-bottom: 1px solid var(--line); }
.item-facts > div:last-child { border-bottom: 0; }
.item-facts dt { color: var(--muted); }
.item-facts dd { margin: 0; text-align: right; font-weight: 730; }
.post-inspector .item-facts { padding: 6px 0 9px; }
.preview-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding-top: 11px; border-top: 1px solid var(--line); }
.preview-controls > .button { color: var(--accent-deep); }

.agenda-row, .approval-row, .schedule-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.agenda-row:last-child, .approval-row:last-child, .schedule-item:last-child { border-bottom: 0; }
.agenda-row:hover, .approval-row:hover, .schedule-item:hover { background: var(--paper); }
.agenda-row:focus-visible, .approval-row:focus-visible, .timeline-row:focus-visible { outline-offset: -3px; }
.agenda-row time { display: grid; justify-items: center; align-content: center; flex-shrink: 0; width: 39px; min-height: 42px; border-radius: 7px; background: var(--subtle); color: var(--ink); }
.agenda-row time small { font-size: 9px; }
.agenda-row time strong { font-size: 16px; }
.agenda-unplanned { display: grid; flex-shrink: 0; place-items: center; width: 39px; height: 42px; border-radius: 7px; background: var(--subtle); color: var(--muted); }
.agenda-thumb { flex-shrink: 0; width: 42px; height: 42px; min-height: 0; border-radius: 8px; }
.agenda-thumb.placeholder span { display: none; }
.agenda-thumb.placeholder svg { width: 16px; }
.agenda-copy, .approval-title { flex: 1; min-width: 0; }
.agenda-copy strong, .approval-title strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.agenda-copy small, .approval-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.agenda-row > svg, .approval-row > svg, .schedule-item > svg { color: var(--accent); }
.empty { padding: 20px 14px; color: var(--muted); font-size: 13px; }
.approvals-panel { margin-top: 17px; }
.approvals-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.approvals-toolbar .channel-filters { margin: 0; }
.review-toolbar-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.approval-thumb { flex-shrink: 0; width: 42px; height: 42px; min-height: 0; border-radius: 7px; }
.approval-thumb.placeholder span { display: none; }
.approval-thumb.placeholder svg { width: 17px; }
.approval-date { color: var(--muted); font-size: 12px; white-space: nowrap; }
.panel-heading { display: flex; align-items: center; gap: 7px; min-height: 47px; padding-inline: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.panel-heading svg { color: var(--accent); }
.timeline-axis, .timeline-row { display: grid; grid-template-columns: minmax(128px, 23%) minmax(0, 1fr) minmax(95px, 17%); align-items: center; gap: 12px; width: 100%; padding-inline: 13px; }
.timeline-axis { min-height: 38px; border-bottom: 1px solid var(--line); background: var(--subtle); color: var(--muted); font-size: 10.5px; font-weight: 750; }
.timeline-axis div { display: flex; justify-content: space-between; gap: 3px; }
.timeline-axis > span:last-child { text-align: right; }
.timeline-row { min-height: 60px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.timeline-row:last-child { border-bottom: 0; }
.timeline-row:hover { background: var(--paper); }
.timeline-label { display: flex; align-items: center; gap: 7px; }
.stream-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 7px; color: var(--accent-deep); background: var(--accent-soft); }
.timeline-label strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.timeline-label small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.timeline-track { position: relative; height: 26px; border-radius: 7px; background: var(--subtle); }
.timeline-bar { position: absolute; top: 4px; bottom: 4px; left: var(--start); width: var(--span); border: 1px solid var(--accent); border-radius: 5px; background: var(--route); }
.timeline-dates { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.unscheduled-posts { margin-top: 14px; }
.section-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.section-heading h2 { font-size: 17px; letter-spacing: -.025em; }
.section-heading > span { color: var(--muted); font-size: 11px; }

.plan-grid-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px; border-bottom: 1px solid var(--line); background: linear-gradient(105deg, #fff 35%, #10251e); }
.plan-grid-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.plan-grid-icon { display: grid; flex-shrink: 0; place-items: center; width: 37px; height: 37px; border-radius: 10px; background: var(--ink); color: var(--signal); }
.plan-grid-heading h2 { margin-top: 3px; font-size: clamp(17px, 2vw, 22px); letter-spacing: -.035em; }
.plan-grid-count { padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 680; white-space: nowrap; }
.plan-grid-scroll { --task-width: 184px; --notes-width: 94px; position: relative; max-height: 61dvh; overflow: auto; contain: inline-size layout paint; scrollbar-width: thin; scrollbar-color: #9fcbb9 var(--subtle); }
.plan-grid-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.plan-grid { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.plan-grid thead { position: sticky; z-index: 3; top: 0; }
.plan-grid th, .plan-grid td { padding: 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.plan-grid thead th { background: var(--subtle); color: var(--ink); }
.plan-grid th.plan-month { background: var(--ink); color: #f7fff9; font-size: 11px; }
.plan-grid th.plan-week { background: var(--accent-soft); color: var(--accent-deep); font-size: 10px; }
.plan-grid th:is(.plan-month, .plan-week) { padding-inline: 8px; text-align: left; }
.plan-grid :is(.plan-month, .plan-week) > span { position: sticky; left: calc(var(--task-width) + var(--notes-width) + 8px); display: inline-block; }
.plan-grid th.plan-day { width: 39px; min-width: 39px; padding: 5px 1px; }
.plan-grid th.is-weekend { background: #e0eee7; }
.plan-day time { display: grid; gap: 3px; }
.plan-day small { color: var(--muted); font-size: 9px; font-weight: 600; }
.plan-day strong { font-size: 12px; font-weight: 760; }
.plan-grid .plan-task, .plan-grid .plan-notes { position: sticky; z-index: 1; padding: 8px 9px; background: var(--surface); text-align: left; }
.plan-grid thead :is(.plan-task, .plan-notes) { z-index: 4; background: var(--subtle); }
.plan-grid .plan-task { left: 0; width: var(--task-width); min-width: var(--task-width); max-width: var(--task-width); font-weight: 700; }
.plan-grid .plan-notes { left: var(--task-width); width: var(--notes-width); min-width: var(--notes-width); max-width: var(--notes-width); color: var(--muted); box-shadow: 2px 0 5px #10251e0c; }
.plan-grid tbody tr:nth-child(even) > :is(.plan-task, .plan-notes, td:not(.plan-slot)) { background: #f7fbf9; }
.plan-grid tbody td { height: 38px; }
.plan-slot { font-weight: 770; }
.plan-slot.release { background: #f6c6c4; }
.plan-slot.website { background: #adc6ef; }
.plan-slot.static { background: #bce8e1; }
.plan-slot.animation { background: #f3b6c3; }
.plan-slot.ai { background: #cbe6b9; }
.plan-slot.posts { background: var(--signal); }
.plan-grid .plan-slot.posts { padding: 0; }
.plan-slot button { display: grid; width: 100%; min-height: 36px; place-items: center; border: 0; background: transparent; font-weight: inherit; }
.plan-slot button:focus-visible { outline-offset: -2px; }
.plan-grid-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 14px; padding: 10px 14px; color: var(--muted); font-size: 11px; }
.plan-legend, .plan-legend > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.plan-legend { gap: 6px 11px; }
.plan-legend i { width: 11px; height: 11px; border: 1px solid #10251e15; border-radius: 3px; }

#sheet { width: min(475px, calc(100vw - 24px)); max-height: calc(100dvh - 27px); padding: 0; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--surface); box-shadow: 0 20px 75px #24152f45; }
#sheet[open] { animation: enter-view .22s var(--ease-out) backwards; }
#sheet::backdrop { background: #0914108c; animation: fade-in .22s var(--ease-out) backwards; }
.sheet-head { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: var(--surface); }
.sheet-head h2 { margin-top: 4px; font-size: 24px; font-weight: 800; letter-spacing: -.045em; overflow-wrap: anywhere; }
.detail-art { margin: 13px 15px 0; }
.detail-art .proof-stage { border-radius: 10px; }
.detail-art .proof-image { max-height: 44dvh; }
.sheet-post { padding: 13px 15px 0; }
.detail-copy { margin: 0 15px 12px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 15px 16px; }
.brief-copy { padding: 0 15px 13px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.brief-copy { padding-top: 14px; }
.sheet-body > .period { margin: 0 15px 16px; }
.share-options { display: grid; gap: 10px; padding: 15px; }
.share-options > section { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.share-option-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-deep); }
.share-options h3 { font-size: 14px; }
.share-options p { margin: 4px 0 9px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.sheet-review { width: calc(100% - 30px); margin: 0 15px 15px; }
.schedule-item { min-height: 45px; }
.schedule-item time { width: 50px; color: var(--accent); font-size: 12px; }
.schedule-item strong { flex: 1; font-size: 13px; }
.entry-form { display: grid; gap: 8px; padding: 15px; }
.entry-form label { font-size: 12px; font-weight: 740; }
.entry-form input, .entry-form select, .entry-form textarea, .feedback-form textarea { width: 100%; min-height: 41px; padding: 8px 10px; border: 1px solid #b7d7cb; border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 16px; }
.entry-form textarea, .feedback-form textarea { resize: vertical; }
.entry-form small { color: var(--muted); font-size: 11px; }
.entry-form .button { justify-self: start; margin-top: 4px; }

.client-shell { min-height: 100dvh; background: var(--paper); }
.client-topbar { position: sticky; z-index: 4; top: 0; border-bottom: 1px solid var(--line); background: #fcfffcf4; backdrop-filter: blur(12px); }
.client-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 9px; max-width: 1160px; min-height: 56px; margin: 0 auto; padding: 8px 20px; }
.client-lockup { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.client-lockup .draft-chip { font-size: 10px; letter-spacing: 0; }
.client-wrap { width: min(1160px, 100%); margin: 0 auto; padding: 24px 20px 45px; }
.client-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.client-heading h1:focus, .client-info h2:focus, .review-result [role="status"]:focus { outline: none; }
.client-pagination { flex-shrink: 0; color: var(--muted); font-size: 12px; font-weight: 680; white-space: nowrap; }
.review-progress { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--muted); font-size: 11px; font-weight: 650; }
.review-progress progress { width: 94px; height: 5px; appearance: none; border: 0; border-radius: 99px; background: var(--line); accent-color: var(--accent); }
.review-progress progress::-webkit-progress-bar { border-radius: inherit; background: var(--line); }
.review-progress progress::-webkit-progress-value { border-radius: inherit; background: var(--accent); }
.review-progress progress::-moz-progress-bar { border-radius: inherit; background: var(--accent); }
.client-card { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); align-items: start; gap: 14px; }
.client-art, .client-info { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--panel-shadow); }
.client-art { overflow: hidden; }
.proof { margin: 0; }
.proof-stage { display: grid; place-items: center; padding: 16px; background: var(--subtle) radial-gradient(#b5d7c9 0.7px, transparent 0.7px) 0 0 / 15px 15px; }
.proof-plane { position: relative; display: inline-grid; justify-items: center; max-width: 100%; }
.proof-image { width: auto; height: auto; max-width: 100%; max-height: min(58dvh, 580px); border-radius: 8px; object-fit: contain; }
.proof-stage > .placeholder { width: 100%; min-height: 180px; border: 1px dashed var(--accent-line); border-radius: 8px; }
.proof-hitbox { position: absolute; inset: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: crosshair; }
.proof-marker { position: absolute; z-index: 1; top: var(--pin-y); left: var(--pin-x); display: grid; place-items: center; width: 32px; height: 32px; padding: 0; translate: -50% -50%; border: 2px solid #fff; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 2px 8px #10251e54; }
.proof-marker.draft { pointer-events: none; border-style: dashed; }
.proof-marker:hover { background: var(--accent-deep); }
.proof figcaption { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-top: 1px solid var(--line); color: var(--accent-deep); text-align: center; font-size: 12px; font-weight: 680; }
.client-info { padding: 18px; }
.client-info h2 { margin: 4px 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.048em; overflow-wrap: anywhere; }
.client-info .item-facts { margin-top: 12px; padding: 2px 0; border-block: 1px solid var(--line); }
.client-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.client-actions .button { min-height: 43px; }
.feedback-form { display: grid; gap: 8px; margin-top: 12px; padding: 10px; border: 1px solid var(--accent-line); border-radius: 10px; background: var(--accent-soft); }
.feedback-form label { display: flex; align-items: center; gap: 5px; color: var(--ink); font-size: 12px; font-weight: 700; }
.feedback-form textarea { min-height: 68px; }
.composer-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.feedback-note, .review-result { display: flex; align-items: center; gap: 7px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; line-height: 1.45; }
.feedback-note { align-items: flex-start; margin: 10px 0 0; background: var(--subtle); color: var(--muted); }
.feedback-note p { min-width: 0; overflow-wrap: anywhere; }
.sheet-body .feedback-note { margin: 0 15px 14px; }
.pin-notes { margin: 12px 0 0; }
.pin-notes h3 { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 13px; }
.pin-notes h3 > span { padding: 1px 6px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-deep); font-size: 10px; }
.pin-notes ol { display: grid; gap: 6px; padding: 0; margin: 7px 0 0; list-style: none; }
.pin-notes li { display: flex; align-items: flex-start; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; scroll-margin: 72px 0 74px; }
.pin-notes li:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.pin-number { display: grid; flex-shrink: 0; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font-size: 10px; font-weight: 800; }
.sheet-body .pin-notes { margin: 0 15px 14px; }
.review-result { min-height: 44px; margin-top: 12px; }
.review-result [role="status"] { display: flex; align-items: center; gap: 6px; }
.review-result .text-button { margin-left: auto; }
.text-button { display: inline-flex; align-items: center; gap: 5px; min-height: 33px; padding: 3px 2px; border: 0; background: transparent; color: var(--accent-deep); font-size: 12px; font-weight: 750; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.review-hint { margin-top: 9px; color: var(--muted); font-size: 11px; }

.pack-heading { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; padding: clamp(14px, 2vw, 22px); overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(112deg, #fffaff 33%, #f7e7fa); }
.pack-heading::before { position: absolute; z-index: -1; inset: 0; background: radial-gradient(#14977838 .8px, transparent 1px) right center / 15px 15px; mask-image: linear-gradient(90deg, transparent 47%, #000); content: ''; }
.pack-heading h1 { margin-top: 3px; color: var(--ink); font-size: clamp(33px, 4.2vw, 53px); font-weight: 760; letter-spacing: -.057em; line-height: 1.02; }
.pack-heading h1:focus { outline: none; }
.pack-heading p { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pack-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.summary-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 700; }
.summary-chip.approved { border-color: #c5e3d2; background: #e5f6ed; color: #075e42; }
.summary-chip.waiting { border-color: #eed8a9; background: #fff2d6; color: #754711; }
.summary-chip.changes { border-color: #efcdc7; background: #faeae7; color: #8b4036; }
.pack-jumps { display: flex; gap: 6px; margin: 12px 0; padding: 3px; overflow: auto; scrollbar-width: thin; scrollbar-color: #9fcbb9 transparent; }
.pack-jumps a { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; min-height: 35px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 680; text-decoration: none; transition: border-color .18s, background .18s; }
.pack-jumps a:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.pack-jumps a[aria-current] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-deep); }
.pack-jumps small { color: var(--accent); font-size: 10px; font-variant-numeric: tabular-nums; }
.pack-posts { display: grid; gap: 12px; }
.pack-post { display: grid; grid-template-columns: minmax(220px, 32%) minmax(0, 1fr); border-radius: 16px; scroll-margin-top: 70px; }
.pack-post:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.pack-artwork { display: grid; place-items: center; min-width: 0; padding: 13px; border-right: 1px solid var(--line); background: radial-gradient(#76bca248 .65px, transparent .9px) 0 0 / 13px 13px, var(--subtle); }
.pack-artwork .artwork { width: auto; max-width: 100%; max-height: 410px; border-radius: 9px; object-fit: contain; box-shadow: 0 4px 14px #10251e1b; }
.pack-artwork .placeholder { width: 100%; min-height: 180px; }
.pack-copy { min-width: 0; padding: 16px 18px; }
.pack-post-meta, .caption-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.pack-copy h2 { margin: 3px 0 4px; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.05; letter-spacing: -.046em; overflow-wrap: anywhere; }
.pack-copy .caption-block { margin-top: 12px; }
.pack-copy > .button { margin-top: 11px; }
.caption-block { padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent-line); border-radius: 10px; background: #f8fcfa; }
.caption-heading { margin-bottom: 7px; }
.caption-heading h3 { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 780; }
.caption-heading h3 svg { color: var(--accent); }
.caption-heading > span { color: var(--muted); font-size: 11px; font-weight: 650; }
.caption-block p { color: var(--ink); font-family: Geist, "Noto Sans Sinhala", "Noto Sans Tamil", system-ui, sans-serif; font-size: 14px; line-height: 1.62; white-space: pre-wrap; overflow-wrap: anywhere; }
.caption-block .caption-empty, .caption-empty { color: var(--muted); font-size: 12px; font-style: italic; }
.client-info > .caption-block { margin-top: 11px; }
.publish-screen { max-width: none; }
.handoff-status { width: fit-content; margin: 13px 0 10px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 650; }
.handoff-status[data-state="working"] { background: var(--subtle); }
.handoff-status[data-state="done"], .button[data-state="done"] { border-color: #c5e3d2; background: #e5f6ed; color: #075e42; animation: status-in .3s var(--ease-out) backwards; }
.handoff-status[data-state="error"] { border-color: #efcdc7; background: #faeae7; color: #8b4036; }
.button[data-state="done"] { opacity: 1; }
.button[aria-busy="true"] svg { animation: download-motion .75s var(--ease-out) 2; }
.handoff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); align-items: start; gap: 12px; }
.handoff-card { min-width: 0; padding: 13px; border-radius: 15px; transition: border-color .18s, box-shadow .22s var(--ease-out), translate .22s var(--ease-out); }
.handoff-card:focus-within { border-color: var(--accent-line); }
@media (hover: hover) and (pointer: fine) {
  .handoff-card:hover { translate: 0 -2px; border-color: var(--accent-line); box-shadow: 0 7px 18px #10251e0e; }
}
.handoff-main { display: flex; align-items: center; gap: 10px; }
.handoff-main > div { min-width: 0; }
.handoff-art { flex-shrink: 0; width: 72px; height: 90px; border: 1px solid var(--line); border-radius: 9px; object-fit: contain; }
.handoff-main h2 { margin: 2px 0 3px; font-size: 19px; line-height: 1.09; letter-spacing: -.035em; overflow-wrap: anywhere; }
.handoff-badges, .handoff-actions, .handoff-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.handoff-badges { margin-top: 6px; }
.handoff-caption { margin: 10px 0; }
.handoff-caption summary { width: fit-content; color: var(--accent-deep); cursor: pointer; font-size: 12px; font-weight: 730; }
.handoff-caption .caption-block { margin-top: 6px; }
.handoff-caption[open] .caption-block { animation: enter-view .24s var(--ease-out) backwards; }
.handoff-actions [data-action="copy-caption"] { min-width: 120px; }
.handoff-footer { justify-content: space-between; margin-top: 7px; padding-top: 5px; border-top: 1px solid var(--line); }

#sheet.creative-sheet { position: fixed; inset: 0 0 0 auto; width: min(480px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 17px 0 0 17px; }
#sheet.creative-sheet[open] { animation: enter-drawer .24s var(--ease-out) backwards; }
#sheet.creative-sheet::backdrop { background: #10251e54; }

.workspace-content.enter, .post-preview-card.enter, .client-wrap.enter .client-heading, .client-wrap.enter .client-art, .client-card.enter .client-art, .client-card.enter .caption-block, .monthly-pack.enter .pack-heading { animation: enter-view var(--motion-view) var(--ease-out) backwards; }
.monthly-pack.enter .pack-jumps { animation: enter-view var(--motion-view) 60ms var(--ease-out) backwards; }
.calendar-results.enter, .approval-results.enter { animation: fade-in .25s var(--ease-out) backwards; }
.card-enter { animation: enter-card var(--motion-card) var(--ease-out) backwards; }
.handoff-card.card-enter:nth-child(3n + 2) { animation-delay: 45ms; }
.handoff-card.card-enter:nth-child(3n) { animation-delay: 90ms; }
.review-result.enter { animation: status-in .32s var(--ease-out) backwards; }
:is(.creative-tiles.enter, .workspace-content.enter .creative-tiles) > .creative-tile { animation: enter-view .28s var(--ease-out) backwards; }
:is(.creative-tiles.enter, .workspace-content.enter .creative-tiles) > :nth-child(2) { animation-delay: 40ms; }
:is(.creative-tiles.enter, .workspace-content.enter .creative-tiles) > :nth-child(3) { animation-delay: 80ms; }
:is(.creative-tiles.enter, .workspace-content.enter .creative-tiles) > :nth-child(4) { animation-delay: 120ms; }
@keyframes enter-view {
  from { opacity: .15; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes enter-card {
  from { opacity: .35; transform: translateY(11px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: .22; }
  to { opacity: 1; }
}
@keyframes status-in {
  from { opacity: .45; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes download-motion {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(3px); }
}
@keyframes enter-drawer {
  from { opacity: .65; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes trace-route {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1; stroke-dashoffset: 0; }
}
@keyframes unfold-proof {
  from { opacity: 0; translate: 12px 15px; scale: .96; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@media (max-width: 1020px) {
  .topbar-inner { gap: 10px; }
  .workspace-nav button { padding-inline: 7px; }
  .campaign-heading h1 { font-size: clamp(34px, 4.5vw, 48px); }
  .branch-copy strong { font-size: 12px; }
  .branch-node { gap: 6px; }
  .branch-icon { width: 29px; height: 29px; }
}
@media (max-width: 900px) {
  .calendar-layout.has-post-panel { grid-template-columns: minmax(0, 1fr); }
  .post-inspector { display: none; }
}
@media (max-width: 820px) {
  .topbar { position: static; }
  .topbar-inner { grid-template-columns: minmax(0, 1fr) auto; row-gap: 7px; padding-block: 8px; }
  .topbar-actions { grid-row: 1; grid-column: 2; }
  .workspace-nav { grid-column: 1 / -1; justify-self: start; }
  .tree-branches { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 7px; padding-top: 0; }
  .tree-branches::before, .branch-node::before, .branch-node::after, .map-root-icon::after { display: none; }
  .creative-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .topbar-inner { gap: 7px; }
  .brand-lockup { font-size: 14px; gap: 7px; }
  .brand-lockup img { width: 31px; height: 31px; }
  .topbar-actions { gap: 5px; }
  .brand-picker { min-width: 89px; }
  .brand-avatar { display: none; }
  .brand-picker select { min-height: 41px; padding-left: 7px; }
  .button.preview-button { width: 42px; min-height: 42px; padding: 0; }
  .preview-button span { display: none; }
  .workspace-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; width: 100%; }
  .workspace-nav button { flex-direction: column; gap: 3px; min-height: 42px; padding: 4px 2px; font-size: 10px; }
  .workspace-nav svg { width: 14px; height: 14px; }
  .workspace-content { padding-top: 17px; padding-bottom: 30px; }
  .campaign-heading { display: block; min-height: 0; margin-bottom: 13px; border-radius: 14px; }
  .campaign-identity { padding: 14px; }
  .campaign-heading h1 { max-width: 10ch; font-size: clamp(29px, 8.6vw, 40px); }
  .campaign-meta { margin-top: 11px; }
  .campaign-meta .button { min-height: 35px; padding: 5px 8px; }
  .campaign-meta .period { font-size: 11px; }
  .campaign-cover { position: absolute; inset: 0 0 0 auto; width: min(53%, 220px); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 38%); }
  .campaign-cover::after { position: absolute; inset: 0; content: ''; background: linear-gradient(0deg, #091410b0 4%, transparent 49%); }
  .campaign-route { opacity: .65; }
  .cover-sheet-back { top: 26%; left: 18%; width: 62%; }
  .cover-sheet-front { top: 15%; left: 43%; width: 64%; }
  .cover-sheet-label, .cover-index { display: none; }
  .campaign-tree { padding: 10px; border-radius: 13px; }
  .map-heading h2 { font-size: 14px; }
  .map-count { display: none; }
  .button.add-section { min-height: 36px; padding: 5px 7px; font-size: 11px; }
  .tree-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .branch-node { min-height: 48px; padding: 5px; gap: 5px; border-radius: 8px; }
  .branch-icon { width: 26px; height: 26px; border-radius: 6px; }
  .branch-icon svg { width: 15px; height: 15px; }
  .branch-node > svg { width: 12px; }
  .branch-copy strong { font-size: 11.5px; }
  .branch-copy small { margin-top: 2px; font-size: 9.5px; }
  .creative-section { margin-top: 17px; }
  .creative-heading h2 { font-size: 23px; }
  .review-next { min-height: 37px; padding: 5px 8px; font-size: 11px; }
  .group-tabs { margin: 8px 0 10px; }
  .group-node { min-height: 36px; padding-inline: 7px; font-size: 11.5px; }
  .creative-tiles { gap: 9px; }
  .tile-art .artwork { aspect-ratio: 1.18; }
  .tile-open { right: 6px; bottom: 6px; width: 27px; height: 27px; }
  .tile-copy { flex-direction: column; align-items: flex-start; padding: 7px 8px 8px; }
  .calendar-main, .content-screen { padding-top: 4px; }
  .calendar-heading h1, .content-screen h1 { font-size: 32px; }
  .calendar-toolbar { margin-inline: 0; }
  .calendar-mode-month { display: none !important; }
  .calendar-toolbar > .button { margin-left: 0; }
  .grid-export-actions { margin-left: 0; }
  .channel-filters { margin-inline: 0; }
  .filter { min-height: 35px; }
  .agenda-row, .approval-row { gap: 7px; padding-inline: 8px; }
  .agenda-thumb { width: 33px; height: 37px; }
  .agenda-copy strong, .approval-title strong { font-size: 13px; }
  .agenda-row .status, .approval-row .status { padding-inline: 5px; font-size: 9.5px; }
  .timeline-axis, .timeline-track, .approval-date { display: none; }
  .timeline-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding-inline: 9px; }
  .approval-thumb { width: 35px; height: 35px; }
  .plan-grid-scroll { --task-width: 117px; --notes-width: 70px; max-height: 57dvh; }
  .plan-grid .plan-task, .plan-grid .plan-notes { padding: 6px; font-size: 11px; }
  .pack-post { grid-template-columns: minmax(0, 1fr); }
  .pack-jumps a { min-height: 38px; }
  .pack-artwork { border-right: 0; border-bottom: 1px solid var(--line); }
  .pack-artwork .artwork { max-height: 43dvh; }
  .pack-copy { padding: 12px; }
  .caption-block p { font-size: 13px; }
  .plan-grid-icon { width: 31px; height: 31px; }
  #sheet, #sheet.creative-sheet { position: fixed; inset: auto 0 0; width: 100%; height: auto; max-width: none; max-height: 88dvh; margin: 0; padding-bottom: env(safe-area-inset-bottom); border-radius: 15px 15px 0 0; }
  #sheet[open], #sheet.creative-sheet[open] { animation: enter-drawer-mobile .24s var(--ease-out) backwards; }
  .sheet-head .icon-button, .client-pagination .icon-button { width: 41px; min-height: 41px; }
  .client-topbar-inner { padding-inline: 12px; }
  .client-lockup { font-size: 14px; }
  .client-wrap { padding: 15px 12px 24px; }
  .client-wrap:has(.client-actions) { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .client-heading h1 { font-size: 29px; }
  .client-heading .eyebrow { font-size: 9px; }
  .client-pagination { gap: 4px; font-size: 10px; }
  .client-card { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .client-art, .client-info { border-radius: 13px; }
  .proof-stage { padding: 13px; }
  .proof-image { max-height: 36dvh; }
  .proof-marker { width: 26px; height: 26px; font-size: 11px; }
  .client-info { padding: 13px; }
  .client-info h2 { font-size: 25px; }
  .client-actions { position: fixed; z-index: 3; inset: auto 0 0; margin: 0; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -6px 25px #10251e0e; }
  .client-actions .button { min-height: 45px; }
}
@media (max-width: 360px) {
  .client-lockup .draft-chip { display: none; }
}
@keyframes enter-drawer-mobile {
  from { opacity: .65; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, #sheet::backdrop { animation: none !important; transition: none !important; }
  .creative-tile:hover, .handoff-card:hover { translate: none; }
  .creative-tile:hover .artwork { transform: none; }
}
@media print {
  @page { margin: 13mm; }
  body, .client-shell { background: #fff; }
  .startup, #sheet, .client-topbar, .pack-jumps, .pack-actions, .pack-copy > .button { display: none !important; }
  .monthly-pack { width: auto; max-width: none; padding: 0; }
  .pack-heading { padding: 0 0 9mm; border: 0; background: transparent; }
  .pack-post { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); break-inside: avoid; box-shadow: none; }
  .pack-artwork .artwork { max-height: 115mm; box-shadow: none; }
  .pack-copy, .caption-block { padding: 8px; }
  .caption-block p { font-size: 10pt; }
}
