@font-face {
  font-family: Studio;
  src: url(fonts/DejaVuSans.ttf) format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Studio;
  src: url(fonts/DejaVuSans-Bold.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: StudioSerif;
  src: url(fonts/DejaVuSerif.ttf) format("truetype");
  font-display: swap;
}

@font-face {
  font-family: StudioMono;
  src: url(fonts/DejaVuSansMono.ttf) format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url(fonts/Manrope-Variable.ttf) format("truetype");
  font-display: swap;
  font-weight: 200 800;
}

@font-face {
  font-family: PT Serif;
  src: url(fonts/PT-Serif-Regular.ttf) format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Oswald;
  src: url(fonts/Oswald-Variable.ttf) format("truetype");
  font-display: swap;
  font-weight: 200 700;
}

:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --paper: #fff;
  --ink: #202127;
  --muted: #63666f;
  --line: #dedfda;
  --side: #1c1e23;
  --primary: #5447cc;
  --primary-hover: #4437b4;
  --lavender: #b9b3ff;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 15px/1.5 "Segoe UI",Inter,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

button,input,textarea,select {
  font: inherit;
}

button,a,input,textarea,select {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .5;
  cursor: default;
}

:focus-visible {
  outline: 3px solid #7668e2;
  outline-offset: 3px;
}

button,input,textarea,select {
  border-radius: 8px;
}

.icon {
  vertical-align: middle;
  display: inline-block;
  flex: none;
}

h1,h2,h3,p {
  margin: 0;
}

h1,h2,h3 {
  line-height: 1.12;
}

h1 {
  font-size: clamp(32px,3.6vw,54px);
  letter-spacing: -.057em;
  font-weight: 650;
}

h2 {
  font-size: 23px;
  letter-spacing: -.038em;
  font-weight: 620;
}

h3 {
  font-size: 17px;
  letter-spacing: -.018em;
}

small {
  font-size: 12px;
}

.shell {
  display: grid;
  grid-template-columns: 222px minmax(0,1fr);
  min-height: 100vh;
}

.side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--side);
  color: #e8e8ee;
  padding: 29px 16px 19px;
  z-index: 3;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 11px 56px;
}

.wordmark>span {
  font-size: 19px;
  font-weight: 730;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.wordmark>span span {
  display: block;
  color: #c0bbfa;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-group small {
  padding: 0 13px 9px;
  color: #a0a2ae;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.nav-group a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 500;
  color: #d2d2d8;
}

.nav-group a:hover {
  background: #292b34;
}

.nav-group a[aria-current] {
  background: #353342;
  color: #d2cdfd;
}

.nav-group a[aria-current] .icon {
  color: var(--lavender);
}

.nav-group .icon {
  width: 18px;
  height: 18px;
}

.secondary {
  margin-top: 33px;
}

.side-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 20px 5px 0;
  border-top: 1px solid #383b40;
  font-size: 13px;
  font-weight: 600;
}

.side-foot small {
  display: block;
  color: #a7a9b2;
  font-weight: 400;
  font-size: 11px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #4d4d58;
  border-radius: 8px;
  background: #282a31;
  color: #ccc9ed;
}

.dot,.live-indicator i {
  height: 7px;
  width: 7px;
  background: #9ad3ad;
  border-radius: 50%;
  display: inline-block;
}

.side-foot .dot {
  margin-left: auto;
}

.workspace {
  min-width: 0;
}

.bar {
  height: 62px;
  padding: 0 clamp(22px,3.2vw,54px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fcfcfa;
  font-size: 13px;
}

.bar strong {
  font-weight: 600;
}

.crumb,.bar-date {
  color: var(--muted);
}

.slash {
  color: #a1a1a4;
}

.bar-date {
  margin-left: auto;
  font-size: 12px;
}

.menu-toggle {
  display: none;
}

main {
  max-width: 1660px;
  margin: auto;
  padding: 36px clamp(22px,3.2vw,54px) 0;
}

.eyeline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #626177;
  font-weight: 650;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .15em;
  margin-bottom: 8px;
}

.eyeline i {
  width: 19px;
  height: 3px;
  background: #8b81d8;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 28px;
}

.page-head p {
  margin-top: 10px;
  color: var(--muted);
}

.workspace-head {
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  margin-bottom: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.workspace-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--muted);
}

.workspace-tabs a:hover {
  color: var(--ink);
  background: var(--bg);
}

.workspace-tabs a[aria-current] {
  background: #eeecff;
  color: var(--primary-hover);
  box-shadow: inset 0 -2px currentColor;
}

.workspace-count {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .workspace-tabs {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    width: 100%;
    margin-bottom: 18px;
  }
  .creation-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace-tabs a {
    min-height: 40px;
    padding: 5px 8px;
    font-size: 14px;
  }
}

.number {
  display: inline-grid;
  vertical-align: middle;
  place-items: center;
  border: 1px solid #d7d5de;
  border-radius: 30px;
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  margin-left: 11px;
  letter-spacing: 0;
  color: #6c687c;
  font: 600 14px/1 "Segoe UI",sans-serif;
}

.button,.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d5d5d2;
  border-radius: 8px;
  background: #fff;
  color: #292a32;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  min-height: 40px;
  padding: 9px 15px;
  white-space: nowrap;
}

.button:hover,.icon-btn:hover {
  border-color: #aeacb6;
  background: #f3f2f7;
}

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-hover);
}

.button .icon {
  width: 16px;
  height: 16px;
}

.button.compact {
  min-height: 31px;
  font-size: 12px;
  padding: 6px 10px;
}

.menu-toggle {
  display: none;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 19px;
}

.finder {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #797a82;
  padding: 0 12px;
}

.finder input {
  border: 0;
  min-width: 0;
  width: 100%;
  height: 39px;
  outline: 0;
}

.finder:focus-within {
  outline: 2px solid #9186db;
}

.finder .icon {
  width: 16px;
}

.select-compact select,.search-go {
  padding: 8px 11px;
  height: 41px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: #42444a;
}

.search-go {
  font-weight: 550;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 17px;
}

.post-tile {
  min-width: 0;
  display: block;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s,border-color .18s;
}

.post-tile[href]:hover {
  transform: translateY(-3px);
  border-color: #aaa5c4;
}

.artboard {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.24;
  background: #dddcd9;
  overflow: hidden;
  isolation: isolate;
}

.artboard[data-layout=band] {
  background: #e9e0d4;
}

.artboard[data-layout=orbit] {
  background: #dcdcee;
}

.artboard[data-layout=cover] {
  background: #d8dddf;
}

.artboard:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg,#ffffff48,transparent 55%,#19172b0e);
  z-index: -1;
}

.artboard img {
  display: block;
  height: 84%;
  width: auto;
  max-width: 85%;
  object-fit: contain;
  filter: drop-shadow(4px 7px 7px #18162238);
}

.artboard-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  width: min(86%, 36ch);
  margin: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: pre-line;
  color: #262035;
  font-family: var(--editorial-serif);
  font-size: clamp(15px, 1.1vw, 20px);
  line-height: 1.45;
}

.format-pill {
  position: absolute;
  bottom: 11px;
  left: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fffffff2;
  color: #313139;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid #00000010;
}

.format-pill .icon {
  width: 12px;
  height: 12px;
}

.unrendered {
  color: #6b687b;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.tile-body {
  padding: 15px 16px 12px;
}

.tile-meta,.tile-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.tile-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.tile-body h2 {
  font-size: clamp(18px,1.6vw,25px);
  margin: 10px 0 11px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.tile-bottom {
  font-size: 11px;
  color: #777982;
}

.tile-go {
  color: #75717d;
}

.tile-go .icon {
  width: 16px;
}

.badge,.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-radius: 20px;
  padding: 4px 9px;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.3;
  background: #ecebf0;
  color: #585661;
}

.badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge.draft,.badge.queued {
  background: #eeeef1;
  color: #5c5d68;
}

.badge.done,.badge.approved,.badge.published {
  background: #e1efe5;
  color: #30614a;
}

.badge.working,.badge.running,.badge.publishing,.badge.scheduled {
  background: #e9e6fb;
  color: #5c49a4;
}

.badge.failed,.badge.uncertain {
  background: #f7e6e2;
  color: #993f33;
}

.badge.brief,.badge.needs_input {
  background: #f6ead6;
  color: #81571d;
}

.live-indicator {
  background: #e6efe7;
  color: #34644b;
}

.activity {
  margin-top: 35px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #eae9f2;
  border-radius: 7px;
  color: #6559ad;
}

.section-icon .icon {
  width: 17px;
}

.section-title h2 {
  font-size: 22px;
}

.section-title>a {
  margin-left: auto;
  font-size: 13px;
  color: #5e566f;
}

.section-title>a .icon {
  width: 13px;
}

.job-list {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.job-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  border-bottom: 1px solid #e8e8e4;
}

.job-row:last-child {
  border: 0;
}

.job-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #f1f0f4;
  border-radius: 7px;
  color: #716a80;
}

.job-icon .icon {
  width: 16px;
}

.job-name {
  min-width: 0;
  overflow-wrap: anywhere;
  flex: 1;
}

.job-name a,.job-name strong {
  font-size: 14px;
  font-weight: 600;
}

.job-name small,.job-row time,td small,.asset-preview+div small {
  color: var(--muted);
}

.job-estimate { display: grid; gap: 3px; margin: 6px 0 0; font-size: 12px; }
.job-estimate > div { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.job-estimate dt { color: var(--muted); }
.job-estimate dd { margin: 0; }

.job-name small,td small {
  display: block;
  font-size: 11px;
}

.job-row time {
  font-size: 12px;
  min-width: 95px;
}

.job-row .badge {
  justify-self: end;
}

.empty {
  padding: 30px;
  color: var(--muted);
  grid-column: 1/-1;
}

.empty.small {
  padding: 19px;
}

.empty a,.download-bar a,.history-row a {
  color: #5445ac;
}

.empty a:hover,.history-row a:hover,.download-bar a:hover {
  text-decoration: underline;
}

.panel,.preview-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}

.panel+.panel {
  margin-top: 16px;
}

.panel.author-autopost {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 20px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.author-autopost #author-progress { flex: 1 1 260px; min-width: 0; }
.author-autopost #author-progress p { margin: 3px 0; }
.author-autopost #author-progress .hint { font-size: .9rem; }
.readiness-details { margin-top: 8px; }
.readiness-details summary { cursor: pointer; }
.readiness-details[open] > summary { margin-bottom: 8px; }
.brief-message { overflow-wrap: anywhere; }

.panel h2 {
  font-size: 22px;
  margin-bottom: 17px;
}

.panel h3 {
  margin: 19px 0 10px;
}

main:has(> .system-overview) { padding-block-start: 20px; }
.system-overview, #machine-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.system-overview .page-head { margin: 0; }
.machine-refresh { display: flex; align-items: center; flex-flow: row-reverse wrap; gap: 4px 10px; }
.machine-refresh .button { min-inline-size: 10rem; }
.machine-refresh [aria-busy="true"] { cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  .machine-refresh [data-refresh-result]:not(:empty) { animation: machine-refresh-result .25s ease-out; }
}
@keyframes machine-refresh-result { from { opacity: 0; } to { opacity: 1; } }
.system-overview h1 { font-size: clamp(26px, 2.2vw, 34px); }
.system-overview .panel, .machine-node { padding: 12px 16px; }
.system-overview .panel h2 { font-size: 18px; margin-bottom: 6px; }
.system-overview .panel .hint { margin-bottom: 6px; }
.system-overview .table-wrap { margin-top: 6px; }
.system-overview :is(th, td) { padding-block: 6px; }
.system-overview .history-pager { margin-top: 8px; }
.machine-node {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.machine-node > h2 { font-size: 18px; }
.machine-node > p { margin-left: auto; font-size: 13px; color: var(--muted); }
.machine-grid {
  flex: 1 1 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 16px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 14px;
}
.machine-grid h3 { font-size: 14px; margin: 0 0 4px; }
.machine-device h4 { font-size: 13px; margin: 0; }
.machine-grid .reading { display: block; font-size: 21px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.machine-grid meter { display: block; width: 100%; max-width: 16rem; height: 8px; accent-color: var(--primary); }
.machine-grid .hint { font-size: 13px; }
.machine-device + .machine-device { margin-top: 6px; }
@media (max-width: 980px) {
  .machine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .machine-refresh { flex-direction: row; }
  .machine-node > p, .system-overview .queue-controls form { margin-left: 0; }
  .system-overview .queue-controls .button { white-space: normal; }
}
.queue-controls, .queue-controls form, .queue-nodes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.queue-controls form { margin-left: auto; }
.queue-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.queue-mode-switch:is([aria-checked="true"]:not([data-pending-checked]), [data-pending-checked="true"]) {
  --switch-track: #258452;
  --switch-offset: 18px;
}
.queue-switch-track {
  display: inline-flex;
  flex: none;
  align-items: center;
  width: 44px;
  height: 26px;
  padding: 3px;
  border-radius: 20px;
  background: var(--switch-track, #737780);
  transition: background-color .16s ease;
}
.queue-switch-track::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #0004;
  transform: translateX(var(--switch-offset, 0));
  transition: transform .16s ease;
}
@media (prefers-reduced-motion: reduce) {
  .queue-switch-track, .queue-switch-track::before { transition: none; }
}
@media (forced-colors: active) {
  .queue-switch-track { outline: 1px solid ButtonText; }
  .queue-switch-track::before { background: ButtonText; }
}
.queue-nodes { margin-bottom: 12px; }
.queue-controls .button:disabled { opacity: 1; cursor: default; }
.generation-history small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
}
.generation-history td, .run-metrics dd { font-variant-numeric: tabular-nums; }
.generation-history th[scope=row] { overflow-wrap: anywhere; }
.generation-history th a, .history-pager a { color: var(--primary); }
.history-pager, .run-heading, .run-metrics {
  display: flex;
  gap: 12px 24px;
  align-items: baseline;
  flex-wrap: wrap;
}
.history-pager, .run-metrics { margin: 18px 0 0; }
.panel .run-heading h2 { margin-bottom: 0; }
.run-metrics { margin-bottom: 16px; }
.run-metrics dt { color: var(--muted); font-size: 13px; }
.run-metrics dd { margin: 4px 0 0; font-weight: 600; }
.badge.interrupted { background: var(--bg); color: var(--muted); }

.brief-grid,.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 18px;
}

.brief-grid>.panel,.editor-grid>.panel {
  margin: 0;
}

.creation-form { max-width: 780px; }
.creation-form .pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.creation-form .form-errors, .creation-form [data-reel-framing] { margin-bottom: 16px; }
.creation-form input[type=file], .creation-form select { min-width: 0; max-width: 100%; }
.creation-form .actions { flex-wrap: wrap; }
.creation-form .actions .button { max-width: 100%; white-space: normal; }
.creation-form details { margin: 16px 0; }
.creation-form details > .hint { margin-bottom: 12px; }
.research-flow { max-width: 780px; }
.research-flow-search { max-width: 1040px; }
.creation-form.research-search { max-width: none; }
.research-search .pair { margin-top: 8px; }
@media (min-width: 1024px) {
  .research-search .research-filters-with-project {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.65fr);
  }
}
.research-shortcut { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
form.research-shortcut { flex-basis: 100%; }
.research-shortcut > span { max-width: 58ch; overflow-wrap: anywhere; }
.research-search #competitor-search-status { margin-top: 12px; }
.research-flow, .research-review { overflow-wrap: anywhere; }
.research-progress h2, .research-report-header h2 { margin: 0; }
.research-progress progress { display: block; margin: 10px 0 15px; }
.research-report-header, .research-idea {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 15px;
}
.research-report-header > div, .research-idea > div { flex: 1 1 240px; min-width: 0; }
.research-report-header p, .research-entries p { margin: 5px 0; }
.research-entries { list-style: none; margin: 0; padding: 0; }
.research-entries > li { border-top: 1px solid var(--line); padding: 12px 0; }
.research-evidence { color: var(--muted); font-size: 13px; }
.research-source-list { margin: 8px 0 0; padding-inline-start: 20px; }
.research-source-list li + li { margin-top: 6px; }
.research-source-list a, .research-matches a { color: var(--primary); text-decoration: underline; }
.research-source-meta { display: block; color: var(--muted); font-size: 13px; }
.research-report-sources { margin-top: 14px; }
.research-recommendation { margin: 16px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.research-recommendation h3 { margin: 5px 0; }
.research-recommendation > .hint, .research-recommendation > .research-evidence { margin: 6px 0; }
.research-recommendation .research-evidence a { color: var(--primary); text-decoration: underline; }
.research-recommendation .research-idea { margin-top: 12px; }
.research-recommendation .research-idea p { margin: 4px 0; }
.research-review { margin-top: 16px; scroll-margin-top: 68px; }
.research-review > summary { white-space: normal; }
.research-review .hint { margin: 7px 0; }
.research-blocked a { text-decoration: underline; }
.research-percent { margin-inline-start: 6px; font-variant-numeric: tabular-nums; }
.research-matches mark { background: #fff1c6; color: var(--ink); }

.brand-review-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
  max-width: 980px;
}
.page-form[data-theme-form] { max-width: 980px; }
.brand-review-grid > .style-import-form { margin-top: 0; }
.theme-palette { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.theme-palette legend { margin-bottom: 8px; padding: 0; font-weight: 650; }
.theme-color-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.style-import-form .pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.orbit-hero .resume-post { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.style-import-form { max-width: 780px; min-width: 0; }
.style-import-form > :first-child { margin-top: 0; }
.style-import-form input[type=file] { width: 100%; max-width: 100%; }
.style-import-form button { max-width: 100%; white-space: normal; }
.style-import-form[data-theme-form] .actions { flex-wrap: wrap; justify-content: flex-start; }
.style-import-form:has(select[name="project"] option:checked:not([value=""])) .style-import-project-name { display: none; }
.style-import-intro { margin: 0 0 16px; }
.style-import-field { margin-bottom: 13px; }
.style-import-form .style-import-field > :is(label, .hint) { margin: 0; }
.style-import-form .style-import-field > .hint { margin-top: 6px; }
.style-import-instagram-help { display: inline-block; margin-bottom: 12px; font-size: 14px; }
.style-import-form .style-import-materials { margin: 12px 0 18px; }
.style-import-materials[open] > summary { margin-bottom: 12px; }
.brand-card-preview img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.brand-swatches { display: flex; list-style: none; flex-wrap: wrap; gap: 6px; padding: 0; }
.brand-swatches li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 6px;
  font-family: monospace;
}
.brand-swatches span { width: 12px; height: 12px; background: var(--swatch); border: 1px solid var(--line); border-radius: 3px; }
.brand-rubrics .checkline { align-items: start; }
.brand-rubrics .hint { display: block; overflow-wrap: anywhere; }
.brief-project-style { margin-bottom: 12px; max-width: 780px; }
.brief-project-style p { margin: 0 0 8px; overflow-wrap: anywhere; }
.text-publication-preview { padding: 16px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .brand-review-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-card-preview img { max-height: 268px; width: auto; margin-inline: auto; }
}
@media (max-width: 480px) {
  .style-import-form[data-theme-form] .actions > .primary { flex-basis: 100%; }
}
.creation-assets { min-width: 0; border: 0; margin: 0 0 16px; padding: 0; }
.creation-assets legend { margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.media-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.media-filters > label { flex: 1 1 180px; min-width: 0; margin: 0; }
.media-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 8px;
  max-height: 370px;
  overflow: auto;
  padding: 4px;
}
.panel .media-choices label, #id_assets.media-choices label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.panel .media-choices label:has(:checked), #id_assets.media-choices label:has(:checked) {
  background: var(--orbit-surface-raised, var(--paper));
  border-color: var(--primary);
}
.media-choices img { object-fit: contain; border-radius: 6px; }
.media-choices small { display: block; color: var(--muted); margin-top: 4px; }
.media-selection { margin: 10px 0; font-size: 14px; overflow-wrap: anywhere; }
.media-selection ol { padding-left: 24px; margin: 6px 0; }
.framing-item legend { max-width: 100%; overflow-wrap: anywhere; }

.editor-grid {
  grid-template-columns: minmax(250px,.85fr) minmax(320px,1.15fr);
}

.wide {
  grid-column: 1/-1;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label,.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #404148;
}

.panel label,.panel .label {
  margin-bottom: 13px;
}

.panel input:not([type=checkbox]),.panel textarea,.panel select,.upload-box input:not([type=file]),.clarify textarea {
  display: block;
  margin-top: 5px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #d6d7d3;
  background: #fcfcfb;
  color: var(--ink);
  min-height: 40px;
}

.panel textarea {
  resize: vertical;
}

.panel input[type=color] {
  padding: 4px;
  height: 40px;
}

.panel .checkline,#id_assets label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 400;
}

.label+#id_assets {
  margin-top: -6px;
}

#id_assets label {
  margin-bottom: 6px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.hint,.page-head p {
  font-size: 14px;
  color: var(--muted);
}

.panel .hint {
  margin-bottom: 15px;
}

.editor-title {
  font-size: clamp(28px,3vw,43px);
}

.preview-panel {
  padding: 0;
  overflow: hidden;
}

.preview-caption,.download-bar,.history-row,.font-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-caption {
  justify-content: space-between;
  padding: 12px 16px;
}

.preview-caption span,.history-row span {
  font-size: 12px;
  color: var(--muted);
}

.preview-mat {
  display: grid;
  place-items: center;
  background: #e4e3e2;
  padding: 18px;
}

.preview-mat img,.preview-mat video {
  max-width: 100%;
  width: auto;
  max-height: 55vh;
  display: block;
  box-shadow: 1px 5px 15px #2222;
}

.download-bar {
  padding: 13px 15px;
  font-size: 13px;
  font-weight: 600;
  flex-wrap: wrap;
}

.download-bar .icon {
  width: 15px;
}

.approval {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 15px;
}

.approval .button, .download-bar .button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dirty-note {
  font-size: 14px;
  color: var(--ink);
}

.dirty-note:not([hidden]) { display: block; margin-top: 8px; }

.pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.inline,.notice,.clarify {
  margin-bottom: 18px;
}

.notice,.messages p,.form-errors {
  padding: 13px 16px;
  background: #edeaf9;
  border: 1px solid #d5cfe8;
  border-radius: 9px;
}

.notice span {
  margin-left: 10px;
}

.notice progress {
  width: 100%;
  height: 8px;
  accent-color: var(--primary);
}

.messages {
  margin-bottom: 15px;
}

.messages p.error,.notice.error,.form-errors,.errorlist {
  background: #fff1ec;
  color: #8b3827;
}

.errorlist {
  font-size: 13px;
  padding: 8px 20px;
}

.disclosure {
  margin-top: 16px;
}

.disclosure summary {
  cursor: pointer;
  font-weight: 600;
}

.disclosure p {
  padding-top: 12px;
}

.history-row,.font-row {
  flex-wrap: wrap;
  margin: 11px 0;
  border-top: 1px solid #e6e5e3;
  padding-top: 10px;
}

.history-row a,.font-row button {
  margin-left: auto;
}

.history-row a+a {
  margin-left: 0;
}

.face-grotesk {
  font-family: Studio,sans-serif;
  font-weight: 700;
}

.face-manrope { font-family: Manrope,sans-serif; }
.face-pt_serif { font-family: "PT Serif",Georgia,serif; }
.face-oswald { font-family: Oswald,sans-serif; }

.face-sans {
  font-family: Studio,sans-serif;
  font-weight: 400;
}

.face-serif {
  font-family: StudioSerif,Georgia,serif;
  font-weight: 400;
}

.face-mono {
  font-family: StudioMono,monospace;
  font-weight: 400;
}

.type-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  padding: 20px;
  color: #222132;
  min-height: 180px;
}

.type-card>span {
  font-size: 12px;
  letter-spacing: .10em;
}

.type-card {
  background: var(--paper);
  border-inline-start: 12px solid var(--brand-accent);
}

@supports (color: contrast-color(white)) {
  .type-card {
    border-inline-start: 0;
    background: var(--brand-accent);
    color: contrast-color(var(--brand-accent));
  }
}

.type-card b {
  font-size: 65px;
  line-height: 1.1;
}

.brand-tile .tile-body h2 {
  margin: 0 0 11px;
}

.upload-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 18px;
  border: 1px dashed #a5a4b1;
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: #f1f0f5;
}

.upload-box label {
  flex: 1;
  min-width: 190px;
}

.upload-box strong {
  margin-left: 8px;
}

.upload-box input[type=file] {
  display: block;
  margin-top: 10px;
  max-width: 100%;
  font-weight: 400;
}

.upload-box>span {
  font-size: 12px;
  color: var(--muted);
}

.asset-preview {
  height: 190px;
  background: #dbdae1;
}

.asset-preview img,.asset-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-grid .tile-body h3 {
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

th,td {
  text-align: left;
  vertical-align: top;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}

.page-form .errorlist { padding-left: 18px; color: #943535; }
.session-owner { min-width: 0; }
.session-owner strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot form { margin-left: auto; }
.logout-button { padding: 5px; border: 0; background: none; color: #d2d2d8; font-size: 12px; }
.logout-button:hover { color: white; text-decoration: underline; }
.portfolio-tile { align-self: start; }
.portfolio-tile h2, .page-head h1 { overflow-wrap: anywhere; }
.platform-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.2;
}
.platform-mark {
  display: block;
  width: 30px;
  height: 20px;
  flex: none;
  object-fit: contain;
}
.portfolio-tile .platform-label {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.portfolio-cover { display: block; width: 100%; height: 140px; object-fit: cover; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-form { max-width: 560px; }
.studio-dialog {
  width: min(440px, calc(100% - 32px));
  color: var(--ink);
}
.studio-dialog::backdrop { background: rgb(28 30 35 / 55%); }
.studio-dialog .actions { flex-wrap: wrap; }
.style-welcome-dialog:modal {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.style-welcome-dialog[open]:not(:modal) {
  position: static;
  width: min(440px, 100%);
  margin: 0 auto 20px;
}
.style-welcome-dialog h2 { margin: 0 0 8px; }
.style-welcome-dialog .checkline { margin: 16px 0; }
#portfolio-page-dialog { width: min(500px, calc(100% - 24px)); }
#portfolio-page-dialog:modal { max-height: 90dvh; }
body[data-section="profile"] .studio-dialog[open]:not(:modal) {
  position: static;
  max-height: none;
  margin: 16px auto;
}
.portfolio-platforms { border: 0; padding: 0; margin: 0 0 15px; min-width: 0; }
.portfolio-platforms legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.portfolio-platforms > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.portfolio-platforms label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 46px; padding: 7px 12px; margin: 0; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
}
.portfolio-platforms label:hover { border-color: var(--lavender); }
.portfolio-platforms label:has(:checked) {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.portfolio-platforms label:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.portfolio-platforms input[type="checkbox"] { flex: none; width: 1em; height: 1em; margin: 0; accent-color: var(--primary); }
.page-platforms { display: inline-flex; align-items: center; gap: 5px 12px; flex-wrap: wrap; }
.schedule-platforms { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0; border-bottom: 1px solid var(--line); }
.schedule-platforms a { padding: 8px 0; color: var(--muted); text-decoration: none; }
.schedule-platforms a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--primary); font-weight: 600; }
.schedule-platforms a:hover { color: var(--primary); }
@media (max-width: 440px) {
  .portfolio-platforms label { padding-inline: 8px; gap: 6px; }
  .portfolio-platforms .platform-label { gap: 6px; }
}
@media (max-width: 380px) {
  .portfolio-platforms > div { grid-template-columns: 1fr; }
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 20px;
  align-items: start;
}
.profile-layout > .panel { margin: 0; }
.profile-login { display: grid; gap: 2px; margin: 0 0 16px; }
.profile-login dt { color: var(--muted); font-size: 13px; }
.profile-login dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.profile-account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.profile-instagram-connection { scroll-margin-top: 76px; overflow-wrap: anywhere; }
.profile-instagram-connection ol { padding-inline-start: 1.4em; }
.profile-instagram-connection li + li { margin-top: 8px; }
.profile-instagram-connection pre { white-space: pre-wrap; }
.profile-instagram-connection a,.style-import-instagram-help { color: var(--primary); text-decoration: underline; }
@media (max-width: 960px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
}
.profile-pages-head, .profile-page-list li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
}
.profile-pages-head h2 { margin: 0; }
.profile-page-list { list-style: none; padding: 0; margin: 16px 0 0; }
.profile-page-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.profile-page-list li:last-child { padding-bottom: 0; }
.profile-page-list li > div:first-child { display: grid; min-width: 0; gap: 4px; }
.profile-page-name { font-weight: 650; overflow-wrap: anywhere; }
.profile-page-list .platform-label { color: var(--muted); font-size: 13px; gap: 6px; }
.profile-page-list .platform-mark { width: 16px; height: 16px; }
.profile-page-settings { padding-block: 8px; color: var(--primary-hover); }
.profile-page-list a:is(:hover, :focus-visible) { text-decoration: underline; }
.profile-pages > .hint { margin: 16px 0 0; }
.autopost-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.autopost-settings > section + section { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.autopost-examples { padding-inline-start: 1.4em; }
.autopost-example, [data-recommendation-hint] { white-space: pre-line; overflow-wrap: anywhere; }
.autopost-example + .autopost-example { margin-top: .6em; }
@media (max-width: 850px) {
  .autopost-settings { grid-template-columns: minmax(0, 1fr); }
  .autopost-settings > section + section { border-inline-start: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
}
.autopost-heading, .autopost-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.autopost-score { justify-content: flex-start; flex-wrap: wrap; }
.autopost-heading { align-items: center; flex-wrap: wrap; }
.autopost-heading h2 { margin-block: 0; }
.autopost-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
#autopost-toggle { min-height: 40px; white-space: normal; }
.autopost-score strong { font-size: 1.65rem; font-variant-numeric: tabular-nums; }
[data-autopost-readiness] progress { width: 100%; height: 8px; accent-color: var(--primary); }
[data-autopost-readiness] p { overflow-wrap: anywhere; }
#autopost-gate a { text-decoration: underline; text-underline-offset: .15em; }
.autopost-week label { display: grid; grid-template-columns: minmax(95px, 1fr) minmax(0, 1.4fr); align-items: center; gap: 8px; }
.autopost-week select { margin-top: 0; }
#autopost-preview { margin-block: 16px; }
#autopost-preview p { margin-block: 4px; }
#autopost-schedule .page-actions { flex-wrap: wrap; }
.page-form .primary { margin-top: 18px; }
.recommendation-form label, .recommendation-form .primary { margin: 0; }
.profile-link { display: inline-block; margin-top: 10px; font-size: 13px; }

.voice-library { max-width: 740px; }
.voice-title h1, .voice-layout > * { min-width: 0; overflow-wrap: anywhere; }
.voice-list { list-style: none; padding: 0; margin: 0 0 20px; }
.voice-list li { border-bottom: 1px solid var(--line); }
.voice-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.voice-list strong { overflow-wrap: anywhere; }
.voice-list span { font-size: 13px; color: var(--muted); }
.voice-add p { color: var(--muted); margin-bottom: 16px; }
.voice-library .voice-add label { margin: 0 0 5px; }
.voice-add-controls { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.panel .voice-add-controls input { flex: 1 1 230px; min-width: 0; margin: 0; }
.voice-add-controls .button { flex: 0 1 auto; }
.voice-next { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; }
.voice-next .icon, .voice-list .icon { width: 16px; height: 16px; }
.voice-use { max-width: 100%; white-space: normal; margin-block: 8px; }
.voice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(275px, 1fr);
  align-items: start;
  gap: 18px;
}
.voice-recording { min-width: 0; }
.voice-recording .button { max-width: 100%; white-space: normal; }
.reel-voice { margin-bottom: 16px; }
.reel-voice-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.panel .reel-voice-heading label { margin: 0; }
.reel-voice-heading a, .reel-voice-demo span { font-size: 13px; }
.reel-voice-demo { display: grid; gap: 5px; margin-top: 10px; color: var(--muted); }
.reel-voice-demo audio { width: min(100%, 375px); }
.voice-guide { margin: 12px 0 20px; }
.voice-guide summary { font-weight: 600; cursor: pointer; }
.voice-guide ol { padding-left: 22px; color: var(--muted); }
.voice-guide li + li { margin-top: 6px; }
.voice-recording blockquote {
  margin: 12px 0;
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 16px;
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.48;
}
.voice-recording audio { display: block; width: min(100%, 450px); margin: 6px 0 16px; }
.voice-recording button[hidden], .voice-recording [hidden], .voice-poll-warning[hidden] { display: none; }
.voice-recording #voice-record { margin: 6px 0 16px; }
.voice-recording #voice-notice:not(:empty) { margin: 10px 0; }
.voice-phrases { display: grid; margin: 14px 0; }
.voice-phrases a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}
.voice-phrases a:hover, .voice-phrases a[aria-current] { background: #f4f2fd; }
.voice-phrases a[aria-current] { border-color: var(--primary); }
.voice-result { border-top: 1px solid var(--line); padding: 14px 0; overflow-wrap: anywhere; }
.voice-result > * + * { margin-top: 8px; }
@media (max-width: 850px) {
  .voice-layout { grid-template-columns: minmax(0, 1fr); }
}

.sr,.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  left: 10px;
  top: 6px;
  background: white;
  padding: 5px;
  z-index: 10;
}

[hidden] {
  display: none!important;
}

@media(min-width:1650px) {
  .artboard {
    max-height: 365px;
  }
  .post-grid {
    gap: 22px;
  }
}

@media(max-width:1100px) {
  .shell {
    grid-template-columns: 187px minmax(0,1fr);
  }
  .side {
    padding-left: 10px;
    padding-right: 10px;
  }
  .post-grid {
    gap: 11px;
  }
  .tile-body {
    padding: 12px;
  }
  .tile-meta {
    flex-wrap: wrap;
  }
  .brief-grid,.editor-grid {
    gap: 12px;
  }
  .panel {
    padding: 17px;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .nav-group a {
    font-size: 13px;
  }
}

@media(max-width:850px) {
  .shell {
    grid-template-columns: 160px minmax(0,1fr);
  }
  .wordmark {
    margin-left: 6px;
  }
  .nav-group a {
    padding: 10px 7px;
    gap: 7px;
  }
  .nav-group small {
    padding-left: 7px;
    font-size: 9px;
  }
  .side-foot {
    gap: 5px;
  }
  .post-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .finder {
    min-width: 190px;
  }
  .brief-grid,.editor-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .editor-grid .preview-mat img,.editor-grid .preview-mat video {
    max-height: 420px;
  }
  .pair {
    grid-template-columns: 1fr 1fr;
  }
  .job-row time {
    min-width: 0;
  }
  .upload-box>span {
    flex-basis: 100%;
  }
  .side-foot {
    font-size: 11px;
  }
}

@media(max-width:640px) {
  .shell {
    display: block;
  }
  .side {
    display: none;
    position: fixed;
    top: 51px;
    left: 0;
    width: 225px;
    height: calc(100dvh - 51px);
    box-shadow: 8px 8px 24px #0002;
  }
  .menu-open .side {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
    min-height: 32px;
    width: 32px;
    padding: 4px;
  }
  .bar {
    height: 51px;
    padding: 0 14px;
    gap: 8px;
  }
  .bar-date {
    font-size: 10px;
  }
  .wordmark {
    margin-bottom: 32px;
  }
  .nav-group a {
    padding: 10px;
  }
  .bar strong {
    font-size: 12px;
  }
  main {
    padding: 23px 14px 0;
  }
  .page-head {
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 19px;
  }
  .page-head .button {
    min-height: 35px;
    font-size: 12px;
    padding: 8px 10px;
  }
  .post-grid {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,215px),1fr));
    gap: 13px;
  }
  .artboard {
    max-height: 310px;
  }
  .toolbar {
    gap: 6px;
  }
  .finder {
    flex: 1 0 100%;
  }
  .select-compact {
    flex: 1;
  }
  .select-compact select {
    width: 100%;
  }
  .activity {
    margin-top: 25px;
  }
  .section-title h2 {
    font-size: 19px;
  }
  .job-row {
    padding: 10px;
    gap: 7px;
  }
  .job-row time {
    display: none;
  }
  .panel {
    padding: 15px;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .section-title>a {
    font-size: 11px;
  }
  .editor-grid {
    gap: 13px;
  }
  .type-card {
    min-height: 155px;
  }
  .tile-body h2 {
    font-size: 21px;
  }
  .number {
    min-width: 24px;
    height: 22px;
    font-size: 12px;
  }
  .toolbar button {
    padding: 7px 9px;
  }
  .eyeline {
    font-size: 9px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior: auto!important;
    transition: none!important;
  }
}

.frame-review {
  border-top: 1px solid var(--line);
}
.frame-review > summary {
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
}
.frame-review-body {
  padding: 0 16px 16px;
}
.review-status:not(:empty), .frame-review-body > button {
  margin-bottom: 10px;
}
.frame-strip {
  display: flex;
  gap: .4rem;
  margin-bottom: .6rem;
}
.frame-strip button {
  flex: 1;
  min-width: 0;
  padding: .2rem;
  border: 1px solid currentColor;
  border-radius: .35rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.frame-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
}
.frame-stage {
  display: grid;
  place-items: center;
  min-height: 120px;
  background: #29292e;
  color: white;
}
.frame-stage img {
  display: block;
  max-width: 100%;
  max-height: 45vh;
}
.frame-navigation, .frame-position, .frame-actions, .variant-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.frame-navigation, .frame-position {
  margin-top: 10px;
}
.frame-navigation input {
  flex: 1;
  min-width: 0;
  accent-color: var(--primary);
}
.frame-position, .variant-head {
  justify-content: space-between;
  flex-wrap: wrap;
}
.frame-position output, .variant-head span {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.frame-fix, .review-variants, .review-variant {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.frame-fix, .decision-form {
  display: grid;
  justify-items: start;
  gap: 10px;
}
.frame-fix label, .decision-form label {
  width: 100%;
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.frame-actions {
  flex-wrap: wrap;
}
.frame-fix textarea, .decision-form textarea {
  padding: 9px;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  resize: vertical;
}
.frame-modes {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.frame-modes label, .frame-jump {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
}
.frame-modes input {
  accent-color: var(--primary);
  margin: 0;
}
.frame-jump input {
  width: 5.5em;
  padding: 4px 6px;
  border: 1px solid var(--line);
}
.review-variant .variant-status {
  margin-top: 5px;
  color: var(--muted);
}
.frame-fix .hint, .review-variant p {
  font-size: 14px;
  margin: 0;
}
.frame-fix [data-selection] {
  font-size: 13px;
}
.variant-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.variant-comparison figure {
  margin: 8px 0;
}
.variant-comparison figcaption {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
}
.variant-comparison video, .variant-comparison img {
  width: 100%;
  max-height: 38vh;
  background: #29292e;
}
.review-variant .pre, .decision-form {
  margin-top: 8px;
}

.variant-frames summary {
  cursor: pointer;
  color: var(--primary);
  font-size: 14px;
}
.variant-frames label {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.variant-frames input {
  width: 100%;
  accent-color: var(--primary);
}
.variant-frames output, .review-stale {
  font-size: 13px;
}
.review-stale a {
  color: var(--primary);
}

.framing-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.framing-item {
  display: grid;
  grid-template-columns: minmax(84px, 120px) minmax(80px, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.framing-item legend {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 600;
}
.framing-viewport {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 4px;
  background: #191b20;
}
.framing-viewport :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.panel .framing-controls input[type=range] {
  width: 100%;
  padding: 0;
  accent-color: var(--primary);
}
.framing-controls .hint:empty {
  display: none;
}

.version-picker, .comparison-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 24px);
}
.version-picker {
  align-items: end;
  margin-bottom: 20px;
}
.version-picker .button {
  justify-self: start;
}
.panel .version-picker label {
  margin: 0;
}
.comparison-row article img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 360px;
  margin-bottom: 12px;
  border-radius: 6px;
}
.comparison-row .pre {
  margin: 0;
  overflow-wrap: anywhere;
}
.card-compare h3 small {
  font-size: 0.75em;
  font-weight: 400;
  color: var(--muted);
}
@media (min-width: 640px) {
  .version-picker {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }
}
