/* Munus workspace (Myrna Studio's design). Tokens come from the Figma variables ("Studio Colors" + "Tokens"). */
:root {
  --color-studio-blue: #081cfd;
  --color-studio-cream: #f6f5f0;
  --color-surface: #ffffff;
  --color-black: #000000;
  --color-ink: #1c1c1c;
  --color-yellow: #ffdd3c;
  --color-green: #1f6b4a;
  --color-red: #e63b2e;
  --color-studio-pink: #ff43e5;

  --radius-4: 4px; --radius-8: 8px; --radius-10: 10px; --radius-12: 12px; --radius-14: 14px; --radius-16: 16px; --radius-20: 20px;
  --space-4: 4px; --space-6: 6px; --space-8: 8px; --space-10: 10px; --space-12: 12px; --space-14: 14px; --space-20: 20px;

  --font: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--color-black); background: var(--color-studio-cream); line-height: normal; -webkit-font-smoothing: antialiased; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
img { display: block; }
hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); margin: 4px 0; width: 100%; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-spacer, .grow { flex: 1 0 0; min-width: 0; }
.link { color: var(--color-studio-blue); font-weight: 600; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; font-size: 13px; }
.empty { font-size: 14px; opacity: 0.6; }
.muted { opacity: 0.6; font-size: 13px; }
.muted-light { color: rgba(255, 255, 255, 0.7); font-size: 13px; }
.micro { font-size: 11px; overflow-wrap: anywhere; }
input[type=file].input { padding: 9px 10px; font-size: 13px; }
input[type=file]::file-selector-button { font: 600 13px var(--font); border: 1.5px solid #000; background: #fff; border-radius: 8px; padding: 6px 12px; margin-right: 10px; cursor: pointer; }
.micro-strong { font-size: 12px; font-weight: 600; }
.strong { font-weight: 600; }
.strong-500 { font-weight: 500; }
.text-red { color: var(--color-red); }
.text-yellow { color: var(--color-yellow); }
.text-green { color: var(--color-green); }
.is-hidden { display: none !important; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; }
.span-all { grid-column: 1 / -1; }
:focus-visible { outline: 2px solid var(--color-studio-blue); outline-offset: 2px; }

/* --- Colour fills (thumbnails, avatars, accents) --- */
.fill-blue { background: var(--color-studio-blue); color: #fff; } .fill-red { background: var(--color-red); color: #fff; }
.fill-green { background: var(--color-green); color: #fff; } .fill-yellow { background: var(--color-yellow); color: #000; }
.fill-pink { background: var(--color-studio-pink); color: #000; } .fill-black { background: var(--color-black); color: #fff; }
.fill-cream { background: #e8e6dd; color: #000; } .fill-white { background: #fff; color: #000; }
.tone-blue { background: var(--color-studio-blue); color: #fff; } .tone-red { background: var(--color-red); color: #fff; }
.tone-green { background: var(--color-green); color: #fff; } .tone-yellow { background: var(--color-yellow); color: #000; }
.tone-pink { background: var(--color-studio-pink); color: #000; } .tone-black { background: var(--color-black); color: #fff; }

/* --- Button (Figma component "Button": Primary / Secondary / Success / Highlight; Medium + Large) --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; flex-shrink: 0;
  padding: var(--space-12) var(--space-20); border-radius: var(--radius-10); border: 1.5px solid transparent;
  font-size: 14px; font-weight: 600; line-height: normal; }
.btn-lg { padding: 14px 20px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-primary { background: var(--color-studio-blue); color: var(--color-surface); }
.btn-success { background: var(--color-green); color: var(--color-surface); }
.btn-secondary { background: transparent; border-color: var(--color-black); color: var(--color-black); }
.btn-highlight { background: var(--color-yellow); color: var(--color-black); }
.btn-block { width: 100%; }
.btn:hover { filter: brightness(0.95); }
.btn-secondary:hover { background: rgba(0, 0, 0, 0.04); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.icon-btn { border: 0; background: none; padding: 6px; opacity: 0.4; font-size: 12px; }
.icon-btn:hover { opacity: 1; }
.close-x { font-size: 16px; opacity: 0.6; padding: 4px; }

/* --- Badge, type tag, chips --- */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-20); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-green { background: var(--color-green); color: #fff; } .badge-yellow { background: var(--color-yellow); color: #000; }
.badge-red { background: var(--color-red); color: #fff; } .badge-blue { background: var(--color-studio-blue); color: #fff; }
.badge-cream { background: var(--color-studio-cream); color: #000; }
.badge-plain { font-size: 13px; font-weight: 600; }
.sidebar .badge { padding: 2px 8px; }
.type-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--color-black); border-radius: var(--radius-4); font-size: 12px; font-weight: 500; background: #fff; color: #000; white-space: nowrap; }
.type-tag i { width: 6px; height: 6px; border-radius: 3px; background: var(--color-studio-pink); }
.type-paid i { background: var(--color-black); }
.type-overlay { border-color: transparent; }
.tag-row { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; padding: 4px 8px; border-radius: 6px; background: var(--color-studio-cream); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip-outline { background: #fff; border: 1.5px solid #000; font-weight: 600; }
.chip-light { background: #fff; color: #000; padding: 6px 14px; border-radius: 8px; }
.chip-dashed { background: none; border: 1px dashed #000; }
.staff-only { display: inline-flex; padding: 3px 8px; background: #000; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; border-radius: 3px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; flex-shrink: 0; }
.dot-red { background: var(--color-red); } .dot-yellow { background: var(--color-yellow); } .dot-green { background: var(--color-green); }
.dot-blue { background: var(--color-studio-blue); } .dot-white { background: #fff; }
.avatar-chip { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; font-weight: 700; }
.avatar-xs { width: 22px; height: 22px; font-size: 9px; } .avatar-sm { width: 28px; height: 28px; font-size: 10px; }
.avatar-md { width: 40px; height: 40px; font-size: 14px; } .avatar-lg { width: 72px; height: 72px; font-size: 24px; }
.avatar-xl { width: 80px; height: 80px; font-size: 26px; }
.thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--radius-10); object-fit: cover; display: block; }
.thumb-48 { width: 48px; height: 48px; border-radius: 8px; }
.code-link, .creative-code { font-size: 11px; font-weight: 600; letter-spacing: 0.01em; word-break: break-all; }
.creative-code { opacity: 0.7; text-transform: uppercase; }

/* --- App shell: sidebar on desktop, top bar + tab bar on mobile --- */
.app { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; width: 248px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px;
  padding: 24px; background: var(--color-black); color: var(--color-surface); overflow-y: auto; }
.sidebar-wordmark { display: flex; align-items: flex-end; padding-bottom: 28px; }
.wordmark-box { display: block; width: 206.57px; height: 37.89px; overflow: hidden; }
.wordmark-box-sm { width: 148.73px; height: 27.28px; }
.sidebar-label { font-size: 11px; font-weight: 500; opacity: 0.5; }
.sidebar-nav { display: flex; flex-direction: column; gap: 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--radius-10); font-size: 14px; font-weight: 500; }
.nav-item > span:first-of-type { opacity: 0.8; }
.nav-item:hover { background: rgba(255, 255, 255, 0.06); }
.nav-item.is-active { background: var(--color-studio-blue); font-weight: 600; }
.nav-item.is-active > span:first-of-type { opacity: 1; }
.sidebar-spacer { flex: 1 0 0; min-height: 12px; }
.nav-bell { margin-bottom: 4px; }
.account-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin: 0; padding: 16px;
  border-radius: var(--radius-12); background: rgba(255, 255, 255, 0.08); color: var(--color-surface); }
.account-kind { font-size: 12px; }
.account-signout { padding: 0; border: 0; background: none; color: inherit; font-size: 14px; font-weight: 600; }
.topbar, .tabbar { display: none; }
.main { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding: 40px; max-width: 1440px; }

/* --- Page header, breadcrumb, tabs --- */
.breadcrumb { display: flex; gap: 6px; font-size: 13px; font-weight: 500; opacity: 0.7; flex-wrap: wrap; }
.breadcrumb a:hover { text-decoration: underline; }
.page-header, .home-header, .record-header, .profile-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.title-block { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.title-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-title { font-size: 34px; font-weight: 700; line-height: 1.1; }
.page-sub { font-size: 14px; opacity: 0.6; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.header-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0; }
.greeting { display: flex; flex-direction: column; gap: 4px; }
.greeting-kicker { font-size: 14px; font-weight: 500; opacity: 0.6; }
.greeting-name { font-size: 34px; font-weight: 700; }
.section-title { font-size: 20px; font-weight: 700; }
.section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.tab-link { padding: 4px 0 8px; font-size: 15px; font-weight: 500; opacity: 0.6; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab-link.is-on { opacity: 1; color: var(--color-studio-blue); font-weight: 600; border-color: var(--color-studio-blue); }
.tab-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.code-line { font-size: 13px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.code-line b { font-weight: 600; word-break: break-all; }
.version-pick .input { padding: 4px 26px 4px 10px; font-size: 13px; font-weight: 600; border-width: 1.5px; border-radius: 8px; }

/* --- Cards & layout --- */
.card { background: var(--color-surface); border-radius: var(--radius-16); padding: 24px; min-width: 0; }
.card-dark { background: var(--color-black); color: var(--color-surface); }
.card-header { display: flex; align-items: center; gap: 10px; }
.card-title { font-size: 20px; font-weight: 700; }
.split { display: flex; gap: 20px; align-items: flex-start; }
.side-360 { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.side-340 { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.sticky-side { position: sticky; top: 20px; }
.stats { display: flex; gap: 16px; }
.stats > .stat { flex: 1 0 0; }
.stat { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; }
.stats-compact .stat { padding: 18px; gap: 4px; border-radius: var(--radius-14); }
.stats-compact .stat-value { font-size: 28px; }
.accent { display: block; width: 32px; height: 6px; border-radius: 3px; }
.stats-compact .accent { width: 28px; height: 5px; }
.stat-label { font-size: 13px; font-weight: 500; opacity: 0.6; }
.stat-value { font-size: 40px; font-weight: 700; }
.stat-sub { font-size: 13px; opacity: 0.6; }
.soft-box { background: var(--color-studio-cream); border-radius: var(--radius-12); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.soft-box small { font-size: 12px; opacity: 0.6; }
.notice { background: #fff; border: 1.5px solid #000; border-radius: var(--radius-12); padding: 12px 16px; font-size: 14px; }
.notice-red { border-color: var(--color-red); }
.notice-green { border-color: var(--color-green); }
.kv { display: grid; grid-template-columns: 98px 1fr; gap: 14px 16px; font-size: 14px; }
.kv dt { font-size: 13px; opacity: 0.6; }
.kv dd { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.kv-wide { grid-template-columns: 166px 1fr; }
.kv-panel { grid-template-columns: 102px 1fr; }
.kv-tight { grid-template-columns: 76px 1fr; }
.kv-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.list-label { font-size: 11px; font-weight: 500; opacity: 0.6; letter-spacing: 0.02em; }

/* --- Home --- */
.creative-row { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--radius-12); background: var(--color-studio-cream); }
.creative-info { flex: 1 0 0; min-width: 0; display: flex; align-items: center; gap: 16px; }
.creative-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.creative-title { font-size: 16px; font-weight: 600; }
.creative-sub { font-size: 13px; opacity: 0.6; }
.creative-actions { display: flex; gap: 16px; margin: 0; flex-wrap: wrap; }
.activity-item { display: flex; align-items: flex-start; gap: 12px; }
.activity-item img { flex-shrink: 0; }
.activity-text { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.activity-message { font-size: 14px; font-weight: 500; }
.activity-time { font-size: 12px; opacity: 0.6; }
.invoice-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.invoice-kicker { font-size: 13px; font-weight: 500; opacity: 0.6; }
.invoice-total { font-size: 28px; font-weight: 700; }
.invoice-meta { font-size: 13px; opacity: 0.7; }
.dark-row { display: flex; justify-content: space-between; gap: 12px; width: 100%; font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.dark-row.strong { font-weight: 600; color: #fff; font-size: 14px; }
.dark-row.text-yellow { color: var(--color-yellow); }
.dark-row.big { font-size: 14px; align-items: baseline; } .dark-row.big b { font-size: 20px; }
.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #eee; font-size: 14px; }
.mini-row:first-child { border-top: 0; }
.mini-row small { display: block; font-size: 12px; opacity: 0.6; }

/* --- Filters, switches, search --- */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
.segmented { display: inline-flex; gap: 2px; padding: 3px; background: #fff; border-radius: var(--radius-10); flex-shrink: 0; }
.seg { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; opacity: 0.6; cursor: pointer; white-space: nowrap; }
.seg.is-on, .seg-radio .seg:has(input:checked) { background: #000; color: #fff; opacity: 1; }
.seg small { font-weight: 500; opacity: 0.7; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio .seg span { display: inline-flex; align-items: center; }
.seg-radio .seg:has(input:focus-visible) { outline: 2px solid var(--color-studio-blue); }
.seg-fill { display: flex; width: 100%; background: var(--color-studio-cream); }
.seg-fill .seg { flex: 1; justify-content: center; padding: 10px 12px; }
.search { display: flex; align-items: center; background: #fff; border-radius: var(--radius-10); padding: 0 12px 0 14px; min-width: 220px; flex: 0 1 260px; }
.search input { border: 0; background: none; padding: 12px 0; font: 400 14px var(--font); width: 100%; outline: 0; }
.search-260 { flex-basis: 260px; }
.filter { position: relative; display: inline-flex; background: #fff; border-radius: var(--radius-10); }
.filter select { appearance: none; border: 0; background: none; font: 600 13px var(--font); padding: 10px 28px 10px 14px; cursor: pointer; color: #000; max-width: 220px; }
.filter::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; opacity: 0.6; pointer-events: none; }
.filter.is-set { outline: 1.5px solid #000; }
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-tab { padding: 8px 12px; background: #fff; border-radius: 20px; font-size: 14px; font-weight: 600; }
.pill-tab small { font-weight: 500; opacity: 0.6; }
.pill-tab.is-on { background: #000; color: #fff; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; padding: 7px 12px; border: 1.5px solid #000; border-radius: 6px; font-size: 13px; font-weight: 600; }
.pill input:checked + span { background: #000; color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--color-studio-blue); outline-offset: 2px; }
.pill-btn { padding: 6px 12px; border: 1.5px solid #000; border-radius: 6px; background: #fff; font-size: 13px; font-weight: 600; }
.pill-btn.is-on { background: #000; color: #fff; }

/* --- Tables --- */
.table-card { padding: 0; overflow: hidden; }
.table { display: flex; flex-direction: column; }
.tr { display: grid; gap: 12px; align-items: center; padding: 14px 20px; border-top: 1px solid #000; font-size: 14px; min-width: 0; }
.tr.th { border-top: 0; font-size: 11px; font-weight: 500; opacity: 0.5; padding-top: 16px; padding-bottom: 14px; border-bottom: 1px solid #000; }
.tr.th + .tr { border-top: 0; }
a.tr:hover, .tr.is-selected { background: #fafaf7; }
.cell { min-width: 0; }
.cell.faint { opacity: 0.4; }
.cell.medium { font-weight: 500; font-size: 13px; }
.cell-id, .cell-client > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cell-id b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.cell-id small, .cell-client small, .metric small { font-size: 12px; opacity: 0.6; }
.cell-client { display: flex; align-items: center; gap: 12px; min-width: 0; }
.metric { display: flex; flex-direction: column; gap: 2px; }
.tags-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.pager { display: flex; align-items: center; gap: 16px; padding: 14px 20px; font-size: 13px; }
.pager > span:first-child { opacity: 0.6; }
.clients-table .tr { grid-template-columns: 1fr 150px 84px 64px 120px 100px 100px; }
.matrix .tr { grid-template-columns: 48px minmax(220px, 1fr) 90px 90px 120px 180px 80px 84px; }
.downloads .tr { grid-template-columns: 48px 1fr 90px 160px 70px 80px; }
.rate-table .tr { grid-template-columns: 1fr 90px 70px 80px 70px 80px 40px; padding-left: 0; padding-right: 0; }
.quotes-table .tr { grid-template-columns: 1fr 180px 140px 100px 140px; }
.invoices-staff .tr { grid-template-columns: 1fr 160px 70px 70px 110px 90px 130px; }
.invoices-client .tr { grid-template-columns: 1fr 70px 70px 100px 70px 100px; }

/* --- Projects & creatives --- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.project-card { display: flex; flex-direction: column; gap: 10px; }
.project-card:hover { outline: 1.5px solid #000; }
.project-top { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.project-name { font-size: 18px; font-weight: 700; }
.project-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; opacity: 0.7; }
.creative-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; align-content: start; }
.creative-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.creative-cover { position: relative; display: block; height: 150px; }
.creative-cover img { width: 100%; height: 100%; object-fit: cover; }
.creative-cover .type-tag { position: absolute; top: 10px; left: 10px; }
.creative-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 14px 14px; }
.creative-body .creative-title { font-size: 15px; }
.creative-body .creative-actions { gap: 8px; margin-top: 2px; }
.creative-body .creative-actions .btn { padding: 9px 14px; }
.comments-card { padding: 20px; }
.comment { display: flex; gap: 10px; font-size: 14px; }
.comment p { line-height: 1.35; }
.comment-meta { font-size: 13px; }
.comment-meta span { opacity: 0.5; font-size: 12px; }
.input-soft { background: var(--color-studio-cream); border: 0; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: var(--radius-12); background: var(--color-studio-cream); }
.file-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file-row small { font-size: 12px; opacity: 0.6; }
.upload-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.upload-row .input { flex: 1 1 220px; }
.preview-box { height: 400px; border-radius: var(--radius-12); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.preview-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.version-strip { display: flex; gap: 12px; flex-wrap: wrap; }
.version-thumb { display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
.version-thumb span { width: 91px; height: 57px; border-radius: 8px; border: 2px solid transparent; }
.version-thumb.is-on span { border-color: #000; }
.version-thumb.is-on small { font-weight: 700; }
.perf { gap: 14px; }
.perf-sub { font-size: 12px; opacity: 0.7; }
.perf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.perf-grid small { display: block; font-size: 12px; opacity: 0.8; margin-bottom: 4px; }
.perf-grid b { font-size: 28px; font-weight: 700; }
.bars { display: flex; gap: 8px; align-items: flex-end; height: 76px; }
.bars span { flex: 1; height: var(--h); min-height: 8px; background: var(--color-studio-blue); border-radius: 2px; }
.bars span.is-last { background: var(--color-studio-pink); }
.edit-metrics summary, .edit-tags summary { font-size: 13px; font-weight: 600; }
.edit-metrics summary { color: var(--color-yellow); }
.form-dark .input { background: #111; color: #fff; border-color: #444; }
.form-dark .field-label { color: rgba(255, 255, 255, 0.7); }
.naming-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.naming-cell { background: var(--color-studio-cream); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.naming-cell small { font-size: 10px; opacity: 0.6; }
.naming-cell b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.naming-cell.is-type { background: var(--color-studio-pink); }
.tag-group { display: flex; flex-direction: column; gap: 6px; }
.tag-group small { font-size: 10px; opacity: 0.6; }
.tag-group div { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-creatives { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-creative { background: var(--color-studio-cream); border-radius: var(--radius-12); overflow: hidden; display: flex; flex-direction: column; }
.mini-cover { position: relative; height: 110px; }
.mini-cover .type-tag { position: absolute; top: 8px; left: 8px; }
.mini-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 10px; }
.mini-body b { font-size: 14px; }
.campaign-row { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--radius-12); background: var(--color-studio-cream); }
.campaign-row .grow { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: 15px; }
.campaign-mid { width: 150px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.campaign-mid small { font-size: 12px; opacity: 0.6; }
.campaign-badge { width: 100px; display: flex; justify-content: center; }
.check-row { display: flex; align-items: center; gap: 12px; font-size: 15px; margin: 0; }
.checkbox { width: 22px; height: 22px; border: 1.5px solid #000; border-radius: 5px; background: #fff; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; padding: 0; }
.checkbox.is-checked { background: var(--color-green); border-color: var(--color-green); color: #fff; }
.money-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-12); background: var(--color-studio-cream); }
.money-row > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.money-row small { font-size: 12px; opacity: 0.6; }
.money-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.two-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note-item { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.note-item small { font-size: 12px; opacity: 0.5; }
.person-row { display: flex; align-items: center; gap: 12px; }
.person-row .grow { display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.person-row small { font-size: 12px; opacity: 0.6; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(0, 0, 0, 0.08); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.link-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.link-card:hover { outline: 1.5px solid #000; }
.more-list { padding: 8px 0; display: flex; flex-direction: column; }
.more-list a { display: flex; justify-content: space-between; padding: 14px 20px; font-weight: 600; border-top: 1px solid #eee; }
.more-list a:first-child { border-top: 0; }

/* --- Forms --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; align-items: start; }
.form-3 { grid-template-columns: repeat(3, 1fr); }
.form-6 { grid-template-columns: repeat(6, 1fr); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; }
.field-hint { font-size: 12px; opacity: 0.6; }
.input { width: 100%; padding: 12px 14px; border: 1.5px solid #000; border-radius: var(--radius-10); background: #fff; font: 400 15px/1.3 var(--font); color: #000; }
textarea.input { resize: vertical; }
.input::placeholder { color: rgba(0, 0, 0, 0.45); }
.input-white { background: #fff; border: 0; }
.select-wrap { position: relative; display: block; }
.select-wrap select { appearance: none; padding-right: 32px; cursor: pointer; }
.select-wrap::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 10px; pointer-events: none; }
.input-affix { display: flex; align-items: center; gap: 4px; border: 1.5px solid #000; border-radius: var(--radius-10); padding: 0 14px; background: #fff; font-size: 15px; }
.input-affix .input { border: 0; padding: 12px 0; border-radius: 0; }
.input-affix i { font-style: normal; opacity: 0.6; white-space: nowrap; }
.range-pair { display: flex; align-items: center; gap: 8px; }
.toggle-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; cursor: pointer; position: relative; }
.toggle-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.toggle-text b { font-weight: 600; }
.toggle-text small { font-size: 12px; opacity: 0.6; }
.toggle { position: absolute; opacity: 0; width: 44px; height: 24px; right: 0; margin: 0; cursor: pointer; }
.toggle-ui { width: 44px; height: 24px; border-radius: 12px; background: #000; position: relative; flex-shrink: 0; transition: background 0.15s; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.toggle:checked + .toggle-ui { background: var(--color-green); }
.toggle:checked + .toggle-ui::after { transform: translateX(20px); }
.toggle:focus-visible + .toggle-ui { outline: 2px solid var(--color-studio-blue); outline-offset: 2px; }
.toggle-box { background: var(--color-studio-cream); padding: 12px; border-radius: var(--radius-10); }
.pkg-foot form { position: relative; display: inline-flex; }
.check-label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check-label input { width: 20px; height: 20px; margin: 0; accent-color: #000; flex-shrink: 0; }
.radio-card { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1.5px solid #000; border-radius: var(--radius-10); cursor: pointer; }
.radio-card:has(input:checked) { border: 2px solid var(--color-studio-blue); }
.radio-card input { width: 18px; height: 18px; accent-color: var(--color-studio-blue); margin: 0; }
.radio-card span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.radio-card small { font-size: 12px; opacity: 0.6; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border: 1.5px dashed #000; border-radius: var(--radius-10); text-align: center; }
.dropzone b { color: var(--color-studio-blue); font-size: 14px; }
.dropzone small { font-size: 11px; opacity: 0.6; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.has-files b { color: #000; }
.quick-dates { display: flex; gap: 8px; flex-wrap: wrap; }
.add-dashed { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px; border: 1.5px dashed #000; border-radius: var(--radius-10); background: none; color: var(--color-studio-blue); font: 600 14px var(--font); }
.add-select select { appearance: none; border: 0; background: none; color: var(--color-studio-blue); font: 600 14px var(--font); text-align: center; cursor: pointer; width: 100%; }
.add-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.add-row { display: block; padding: 16px 20px; color: var(--color-studio-blue); font-weight: 600; font-size: 14px; border-top: 1px solid #000; }

/* --- Modal --- */
.modal.task-modal { width: 860px; }
.task-modal-body { display: flex; gap: 24px; align-items: flex-start; }
.task-modal-side { width: 280px; flex-shrink: 0; }
.task-modal-body > .grow { min-width: 0; align-self: stretch; }
.task-desc { white-space: pre-wrap; }
.task-status-pick { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px; background: var(--color-studio-cream); border-radius: var(--radius-12); }
.task-modal .task-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.task-step { font: 600 14px var(--font); padding: 10px 8px; border: 1.5px solid #000; border-radius: var(--radius-10); background: #fff; color: #000; cursor: pointer; }
.task-step:hover:not(.is-on) { background: var(--color-yellow); }
.task-step.is-on { background: #000; color: #fff; cursor: default; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; z-index: 50; }
.scrim-close { position: fixed; inset: 0; }
.modal { position: relative; width: 580px; max-width: 100%; background: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.modal-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.modal-title { font-size: 24px; font-weight: 700; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding-top: 6px; }

/* --- Toast (Figma "Feedback") --- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; min-width: 300px; max-width: calc(100% - 32px);
  background: #000; color: #fff; padding: 14px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); overflow-wrap: anywhere; }
.toast-icon { width: 20px; height: 20px; border-radius: 50%; background: var(--color-green); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.toast-error .toast-icon { background: var(--color-red); }
.toast-close { margin-left: auto; background: none; border: 0; color: var(--color-yellow); font-weight: 600; }
.toast.is-hiding { opacity: 0; transition: opacity 0.3s; }

/* --- Empty & error states --- */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 32px 16px; }
.state-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--color-studio-cream); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.state-icon span { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.empty-state h3 { font-size: 20px; font-weight: 700; }
.empty-state p { font-size: 14px; opacity: 0.7; max-width: 460px; }
.state-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.state-page { max-width: 640px; margin: 0 auto; padding: 60px 20px; display: flex; flex-direction: column; gap: 32px; align-items: center; }
.state-page .card { width: 100%; }

/* --- Tasks --- */
.task-head { display: grid; grid-template-columns: 1fr 160px 80px 100px; gap: 12px; padding: 18px 20px 14px 72px; font-size: 11px; font-weight: 500; opacity: 0.5; }
.group-label { padding: 12px 20px; font-size: 15px; font-weight: 700; background: #fff; }
.group-label small { font-weight: 500; opacity: 0.5; margin-left: 4px; }
.task-row { display: grid; grid-template-columns: 32px 1fr 160px 80px 100px; gap: 12px; align-items: center; padding: 14px 20px; background: #fff; border-bottom: 1px solid #000; }
.task-row:hover { background: #fafaf7; }
.task-row form { margin: 0; }
.task-row.is-open { background: var(--color-studio-cream); }
.task-row.is-done .task-main b { opacity: 0.5; }
.task-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.task-main b { font-size: 15px; font-weight: 600; }
.task-main small { font-size: 13px; opacity: 0.7; display: flex; align-items: center; }
.task-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.task-who span { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.task-who small { font-size: 11px; opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-due { font-size: 14px; font-weight: 600; }
.task-panel { width: 360px; flex-shrink: 0; position: sticky; top: 20px; }
.panel-title { font-size: 22px; font-weight: 700; }
.prio { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; }
.inline-person { display: inline-flex; align-items: center; gap: 8px; }
.inline-person small { opacity: 0.6; font-weight: 400; }
.panel-comments { background: var(--color-studio-cream); border-radius: var(--radius-12); padding: 12px; }
.panel-actions { display: flex; gap: 10px; margin: 0; }
.reassign summary { margin-bottom: 8px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.board-col { background: #000; border-radius: var(--radius-14); padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.board-col header { display: flex; align-items: center; gap: 8px; color: #fff; padding: 0 4px 4px; }
.board-col header b { font-size: 14px; font-weight: 600; }
.board-col header small { opacity: 0.6; font-size: 12px; }
.board-col.is-over { outline: 2px dashed var(--color-yellow); }
.board-card { background: #fff; border-radius: var(--radius-10); padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; cursor: pointer; }
.board-card:hover { box-shadow: 0 0 0 2px var(--color-yellow); }
.board-card:active { cursor: grabbing; }
.board-card.is-dragging { opacity: 0.5; }
.board-card.is-done .board-title { opacity: 0.55; }
.board-title { font-size: 15px; font-weight: 600; }
.board-card > small { font-size: 13px; opacity: 0.7; display: flex; align-items: center; }
.board-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 13px; opacity: 0.85; }
.board-move { margin: 0; }
.board-move select { font: 500 12px var(--font); border: 1px solid #ddd; border-radius: 6px; padding: 3px 6px; background: #fff; }
.js .board-move { display: none; }
.board-add { color: #fff; opacity: 0.75; font-size: 13px; font-weight: 600; text-align: center; padding: 8px; }
.cal-card { padding: 0; overflow: hidden; }
.cal-head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 12px; flex-wrap: wrap; }
.cal-title { font-size: 22px; font-weight: 700; }
.cal-nav { font-size: 20px; padding: 2px 6px; }
.legend { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; opacity: 0.8; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1.5px solid #000; }
.cal-dow { font-size: 11px; font-weight: 500; opacity: 0.6; padding: 8px 12px; border-bottom: 1.5px solid #000; background: #fff; }
.cal-grid .cal-dow:first-child { border-top: 0; }
.cal-cell { min-height: 118px; padding: 10px 8px; border-right: 1.5px solid #000; border-bottom: 1.5px solid #000; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cal-cell:nth-child(7n + 7) { border-right: 0; }
.cal-cell.is-out .cal-day { opacity: 0.4; }
.cal-cell.is-out { background: #fcfcfa; }
.cal-day { font-size: 13px; font-weight: 600; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-cell.is-today .cal-day { background: var(--color-studio-blue); color: #fff; }
.cal-task { display: flex; align-items: center; background: var(--color-studio-cream); border-radius: 5px; padding: 4px 6px; font-size: 12px; font-weight: 500; min-width: 0; }
.cal-task span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-task.is-done span { opacity: 0.5; }

/* --- Notifications --- */
.note { display: flex; gap: 14px; padding: 18px 16px; border-top: 1px solid #000; background: #fff; }
.note.is-unread { background: #fafaf7; }
.note-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.note-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.note-title { font-size: 15px; font-weight: 600; }
.note-text { font-size: 14px; opacity: 0.75; }
.note-meta { font-size: 13px; opacity: 0.6; display: flex; gap: 10px; margin-top: 4px; }
.note-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-studio-blue); }
.table-card > .list-label { padding: 18px 16px 10px; background: #fff; }
.settings-card .toggle-row { padding: 4px 0; }

/* --- Pricing --- */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.package { display: flex; flex-direction: column; gap: 10px; }
.package.is-featured { outline: 2px solid var(--color-studio-blue); }
.pkg-name { font-size: 18px; font-weight: 700; }
.pkg-price { font-size: 24px; font-weight: 700; }
.dot-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.dot-list li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: var(--color-green); margin-right: 10px; vertical-align: 2px; }
.pkg-note { background: var(--color-studio-cream); border-radius: 8px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.pkg-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rate-form { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.rate-table .tr { border-top: 1px solid #000; }

/* --- Quote & invoice builders --- */
.package-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.pick { background: #fff; border-radius: var(--radius-12); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; border: 2px solid transparent; }
.pick small { font-size: 12px; opacity: 0.6; }
.pick.is-on { border-color: var(--color-studio-blue); }
.q-head, .q-line { display: grid; grid-template-columns: 1fr 52px 84px 80px 64px 72px 24px; gap: 10px; align-items: center; }
.i-head, .i-line { display: grid; grid-template-columns: 1fr 60px 110px 100px 24px; gap: 10px; align-items: center; }
.q-head, .i-head { font-size: 11px; font-weight: 500; opacity: 0.5; }
.q-line, .i-line { padding: 8px 0; border-bottom: 1px solid #eee; }
.q-group { display: flex; align-items: center; background: var(--color-studio-cream); padding: 10px 12px; border-radius: 8px; }
.q-service { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.input-bare { border: 0; padding: 4px 0; font-size: 15px; font-weight: 500; border-radius: 0; }
.input-bare.small { font-size: 12px; font-weight: 400; opacity: 0.7; }
.input-bare:focus { outline: 0; border-bottom: 1px solid #000; }
.input-cell { padding: 8px 6px; border: 0; background: var(--color-studio-cream); border-radius: 6px; font-size: 14px; font-weight: 600; text-align: center; }
.cell-affix { border: 0; padding: 0 0 0 6px; background: var(--color-studio-cream); border-radius: 6px; font-size: 13px; }
.cell-affix .input-cell { padding-left: 0; text-align: left; }
.q-total { font-size: 14px; }
.q-rate { font-size: 13px; display: flex; align-items: center; }
.staff-note { font-size: 12px; opacity: 0.8; display: flex; gap: 10px; align-items: center; }
.total-card hr { border-color: rgba(255, 255, 255, 0.3); }
.big-total { display: flex; align-items: baseline; gap: 8px; }
.big-total b { font-size: 40px; font-weight: 700; }
.big-total small { font-size: 14px; opacity: 0.7; }
.profit-rate { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.profit-rate b { font-size: 34px; font-weight: 700; }
.profit-rate small { opacity: 0.6; }
.rate-bar { position: relative; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.rate-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--color-yellow); border-radius: 3px; }
.rate-bar .band { position: absolute; top: 0; bottom: 0; left: var(--lo); width: calc(var(--hi) - var(--lo)); background: var(--color-green); opacity: 0.9; }
.rate-scale { display: flex; justify-content: space-between; font-size: 11px; opacity: 0.6; }
.kv-rows > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.kv-rows span { opacity: 0.7; }
.suggest { background: var(--color-yellow); border-radius: var(--radius-12); padding: 12px 14px; font-size: 13px; font-weight: 500; }
.sched-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid #000; border-radius: var(--radius-10); font-size: 14px; }
.sched-row.is-current { background: var(--color-studio-cream); border-color: transparent; }
.sched-row > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.sched-row small { font-size: 12px; opacity: 0.6; }
.status-steps { display: flex; flex-direction: column; gap: 14px; }
.status-steps li { position: relative; padding-left: 28px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.status-steps li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #000; opacity: 0.25; }
.status-steps li.is-done::before { opacity: 1; }
.status-steps li.is-current::before { background: var(--color-studio-blue); }
.status-steps small { font-size: 12px; opacity: 0.6; }
.pay-amount { font-size: 28px; font-weight: 700; }
.soft-box.sched { flex-direction: row; align-items: center; gap: 12px; }
.soft-box.sched > span:first-child { flex: 1; display: flex; flex-direction: column; }

/* --- Client quote page --- */
.quote-body { background: var(--color-studio-cream); }
.quote-top { display: flex; align-items: center; gap: 16px; background: #000; color: #fff; padding: 24px 48px; }
.quote-top .wordmark-box { height: auto; }
.quote-page { max-width: 1120px; margin: 0 auto; padding: 40px 20px 60px; display: flex; flex-direction: column; gap: 20px; }
.quote-title { font-size: 34px; font-weight: 700; }
.quote-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.included { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.included > div { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.included small { font-size: 12px; opacity: 0.6; }
.included .right { align-items: flex-end; text-align: right; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bullet-list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.bullet-list li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: #999; margin-right: 12px; vertical-align: 2px; }
.step { gap: 6px; }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--color-studio-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.change-req summary { list-style: none; }

/* --- Printable invoice --- */
.print-body { background: #fff; }
.print-doc { max-width: 800px; margin: 0 auto; padding: 40px 24px; display: flex; flex-direction: column; gap: 28px; }
.print-actions { display: flex; gap: 10px; }
.print-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.print-head h1 { font-size: 28px; }
.print-head .right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.print-meta { display: flex; justify-content: space-between; gap: 24px; font-size: 14px; }
.print-meta > div { display: flex; flex-direction: column; gap: 3px; }
.print-meta small { font-size: 11px; opacity: 0.6; margin-top: 6px; }
.print-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.print-table th { text-align: left; font-size: 11px; opacity: 0.6; font-weight: 500; padding: 8px; border-bottom: 1.5px solid #000; }
.print-table td { padding: 12px 8px; border-bottom: 1px solid #eee; vertical-align: top; }
.print-table td:not(:first-child), .print-table th:not(:first-child) { text-align: right; }
.print-table tfoot td { border: 0; padding: 6px 8px; }
.print-table tfoot tr.grand td { font-size: 18px; font-weight: 700; border-top: 1.5px solid #000; padding-top: 12px; }
@media print { .no-print, .quote-top a, .side-360 form, .side-360 details, .toast { display: none !important; } .print-doc { padding: 0; } body { background: #fff; } .card { break-inside: avoid; } }

/* --- Tablet: side columns drop below --- */
@media (max-width: 1180px) {
  .split { flex-direction: column; align-items: stretch; }
  .split > .grow { flex: none; width: 100%; }
  .side-360, .side-340, .task-panel { width: auto; position: static; }
  .sticky-side { position: static; }
  .main { padding: 32px; }
  .matrix .tr { grid-template-columns: 48px minmax(200px, 1fr) 90px 90px 120px 84px 84px; }
  .matrix .tags-cell { display: none; }
  .matrix .tr.th span:nth-child(6) { display: none; }
}

/* --- Mobile (Figma 390 frames) --- */
@media (max-width: 768px) {
  .app { flex-direction: column; }
  .sidebar { display: none; }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--color-black); position: sticky; top: 0; z-index: 20; }
  .topbar-bell { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
  .bell-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.7); }
  .avatar { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-20);
    background: var(--color-yellow); color: var(--color-black); font-size: 14px; font-weight: 700; }
  .main { gap: 20px; padding: 20px 20px 28px; }
  .btn { padding: var(--space-14) var(--space-20); }
  .btn-sm { padding: 9px 14px; }
  .page-title, .greeting-name { font-size: 28px; }
  .page-header, .home-header { align-items: stretch; flex-direction: column; gap: 14px; }
  .page-header > .nav-spacer, .home-header > .nav-spacer { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn { flex: 1 1 auto; }
  .home-cta { width: 100%; }
  .record-header { gap: 12px; }
  .record-header .avatar-lg { width: 56px; height: 56px; font-size: 18px; }
  .record-header .header-actions { width: 100%; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats-3 { grid-template-columns: 1fr 1fr; }
  .stats-3 .stat:first-child { grid-column: span 2; }
  .stat { gap: 4px; padding: 16px; }
  .accent { width: 28px; height: 5px; }
  .stat-label, .stat-sub { font-size: 12px; }
  .stat-value, .stats-compact .stat-value { font-size: 28px; }
  .card { padding: 18px; }
  .card-title { font-size: 18px; }
  .card-header .link { font-size: 13px; }
  .creative-row { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; }
  .creative-info { gap: 12px; }
  .thumb { width: 60px; height: 60px; }
  .creative-text { gap: 2px; }
  .creative-title { font-size: 14px; }
  .creative-sub { font-size: 12px; }
  .creative-actions { gap: 8px; }
  .creative-row .creative-actions .btn { flex: 1 0 0; min-width: 0; }
  .invoice-card { gap: 10px; padding: 20px; }
  .tabbar { display: flex; position: sticky; bottom: 0; padding: 10px 8px 26px; background: var(--color-surface); z-index: 20; }
  .tab { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; }
  .tab span { opacity: 0.6; }
  .tab.is-active span { opacity: 1; color: var(--color-studio-blue); font-weight: 600; }
  .filters { gap: 8px; }
  .filters .segmented { width: 100%; }
  .filters .segmented .seg { flex: 1; justify-content: center; }
  .search { flex: 1 1 100%; min-width: 0; }
  .tabs { gap: 20px; }
  .form-grid, .form-3, .form-6 { grid-template-columns: 1fr; }
  .span-2, .span-4 { grid-column: auto; }
  .kv-wide { grid-template-columns: 120px 1fr; }
  /* Tables become stacked cards */
  .tr.th { display: none; }
  .tr { display: flex; flex-wrap: wrap; gap: 8px 12px; border-top: 1px solid #e6e6e6; }
  .table .tr:first-of-type { border-top: 0; }
  .cell-id, .cell-client { flex: 1 1 calc(100% - 64px); }
  .cell[data-label]::before { content: attr(data-label) ": "; opacity: 0.6; font-weight: 400; }
  .clients-table .cell-client { flex-basis: 100%; }
  .matrix .tags-cell { display: none; }
  .row-actions { justify-content: flex-start; }
  .rate-table .tr { padding: 12px 0; }
  .rate-table .tr > .cell:first-child { flex-basis: 100%; }
  .campaign-row { flex-wrap: wrap; }
  .campaign-mid, .campaign-badge { width: auto; }
  .mini-creatives { grid-template-columns: 1fr 1fr; }
  .creative-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .creative-cover { height: 120px; }
  .creative-body { padding: 12px 10px; }
  .creative-body .creative-actions .btn { padding: 8px 10px; font-size: 13px; }
  .preview-box { height: 260px; }
  .perf-grid { grid-template-columns: 1fr 1fr; }
  .package-grid, .package-pick, .tri, .add-pair, .two-buttons { grid-template-columns: 1fr; }
  .q-head { display: none; }
  .q-line { grid-template-columns: 1fr 1fr 1fr 24px; }
  .q-line .q-service { grid-column: 1 / -1; }
  .i-head { display: none; }
  .i-line { grid-template-columns: 60px 1fr 1fr 24px; }
  .i-line .q-service { grid-column: 1 / -1; }
  .task-head { display: none; }
  .task-row { grid-template-columns: 28px 1fr auto; gap: 8px 10px; }
  .task-who { grid-column: 2 / 3; }
  .task-status { grid-column: 3; grid-row: 1; }
  .task-due { grid-column: 3; grid-row: 2; text-align: right; }
  .board { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .board-col { scroll-snap-align: start; }
  .cal-cell { min-height: 72px; padding: 6px 3px; }
  .cal-task { padding: 2px 3px; font-size: 10px; }
  .cal-task .dot { margin-right: 3px; }
  .legend { display: none; }
  .cal-dow { padding: 6px 4px; font-size: 10px; }
  .note { padding: 16px 12px; }
  .note-side { justify-content: flex-start; }
  .quote-top { padding: 18px 20px; flex-wrap: wrap; }
  .quote-title { font-size: 26px; }
  .modal { padding: 20px; border-radius: 16px; }
  .task-modal-body { flex-direction: column; }
  .task-modal-side { width: 100%; }
  .task-modal .task-steps { grid-template-columns: 1fr 1fr; }
  .scrim { padding: 16px 10px; }
  .toast { bottom: 96px; }
  .profile-header .avatar-xl { width: 64px; height: 64px; font-size: 20px; }
}

/* --- Login (Figma "Login Page") --- */
.login-body { min-height: 100vh; }
.login { position: relative; width: 803px; height: 560px; margin: 0 auto; top: max(0px, calc(50vh - 280px - 23px)); left: -90.5px; }
.login-studio-logo { position: absolute; left: 24px; top: 248px; }
.login-column { position: absolute; right: 0; top: 42px; width: 424px; }
.login-box { display: flex; flex-direction: column; gap: 20px; width: 424px; padding: 42px; background: var(--color-surface);
  border: 2px solid var(--color-ink); border-radius: var(--radius-8); filter: drop-shadow(6px 6px 0 var(--color-ink)); }
.login-title { display: flex; justify-content: center; align-items: center; height: 35.79px; }
.login-form { display: flex; flex-direction: column; gap: 20px; padding-top: 10px; margin: 0; }
.login-input { width: 100%; padding: 14px; border: 2px solid var(--color-black); border-radius: var(--radius-4); background: var(--color-surface);
  font: 400 16px/normal var(--font); color: var(--color-black); }
.login-input.is-error { border-color: var(--color-red); }
.login-input::placeholder { color: #757575; opacity: 1; }
.login-button { width: 100%; padding: 14px 20px 15px; border: 0; border-radius: var(--radius-4); background: var(--color-studio-blue);
  color: var(--color-surface); font: 700 16px/normal var(--font); }
.login-error { font-size: 13px; font-weight: 500; color: var(--color-red); margin-top: -8px; }
.login-notice { font-size: 14px; font-weight: 500; padding: 10px 12px; border-radius: var(--radius-4); background: var(--color-studio-cream); }
.login-help { font-size: 14px; text-align: center; opacity: 0.8; }
.login-forgot { text-align: center; font-size: 13px; font-weight: 600; margin-top: -8px; }
.login-demo { font-size: 12px; text-align: center; padding: 8px; border-radius: var(--radius-4); background: var(--color-studio-cream); }
.login-prompt { text-align: center; font-size: 13.6px; font-weight: 700; color: #444; }
.login-prompt a { color: var(--color-studio-blue); }
.login-legal { display: flex; justify-content: center; gap: 8px; padding-top: 10px; font-size: 12px; font-weight: 700; color: var(--color-ink); opacity: 0.4; }
.login-clock { margin: 61px 0 0 48px; width: 327px; text-align: center; font: 500 22px/normal -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: -0.2px; color: var(--color-studio-blue); white-space: pre; }

@media (max-width: 860px) {
  .login { position: static; width: auto; height: auto; min-height: 100vh; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 24px 24px 64px; }
  .login-studio-logo { position: static; }
  .login-column { position: static; width: 100%; max-width: 424px; margin: auto 0; }
  .login-box { width: 100%; gap: 18px; padding: 24px; border-color: var(--color-black); filter: none; }
  .login-title { height: auto; padding-bottom: 6px; }
  .login-form { gap: 18px; padding-top: 0; }
  .login-input { border-width: 1.5px; }
  .login-input::placeholder { color: var(--color-black); opacity: 0.5; }
  .login-button { height: 50px; }
  .login-prompt { color: var(--color-black); }
  .login-legal { position: fixed; bottom: 0; left: 0; right: 0; gap: 6px; padding: 0 0 24px; color: var(--color-black); opacity: 0.6; background: var(--color-studio-cream); }
  .login-clock { display: none; }
}

/* Builders are one big form holding the header and both columns */
.quote-builder, .invoice-builder { display: flex; flex-direction: column; gap: 24px; margin: 0; }
.title-line .badge-cream, .quote-meta .badge-cream { background: #fff; }

/* --- Slack --- */
.via-slack { display: inline-flex; padding: 1px 6px; border-radius: 4px; background: #4a154b; color: #fff !important; opacity: 1 !important; font-size: 10px !important; font-weight: 600; vertical-align: 1px; }
.slack-table .tr { grid-template-columns: 1fr 260px 80px; }
.slack-table form.tr { margin: 0; }
.steps-list { list-style: decimal; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; }

.sig-record { display: flex; flex-direction: column; gap: 10px; }
.sig-record code { font-size: 11px; overflow-wrap: anywhere; }
.sig-record .kv { grid-template-columns: 90px 1fr; font-size: 13px; }

/* --- Slides (carousels, video) --- */
.slider { display: flex; flex-direction: column; gap: 12px; outline: none; }
.slide-stage { position: relative; background: var(--color-studio-cream); border-radius: var(--radius-12); overflow: hidden; }
.slide { margin: 0; display: flex; align-items: center; justify-content: center; min-height: 260px; max-height: 560px; }
.slider.is-live .slide { display: none; }
.slider.is-live .slide.is-on { display: flex; }
.slider:not(.is-live) .slide + .slide { border-top: 4px solid #fff; }
.slide img, .slide video { display: block; max-width: 100%; max-height: 560px; width: auto; height: auto; object-fit: contain; background: #000; }
.slide img { background: transparent; }
.slide-empty { width: 100%; height: 400px; display: flex; align-items: flex-end; padding: 12px; font-size: 12px; }
.needs-video { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #000; color: var(--color-yellow); font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); font-size: 22px; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); display: none; }
.slider.is-live .slide-nav { display: block; }
.slide-nav.prev { left: 12px; } .slide-nav.next { right: 12px; }
.slide-count { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.slide-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.slide-thumb { position: relative; width: 64px; height: 80px; flex-shrink: 0; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--color-studio-cream); }
.slide-thumb.is-on { border-color: #000; }
.slide-thumb img, .slide-thumb span { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-thumb b { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: #fff; border-radius: 4px; padding: 1px 5px; }
.slide-thumb i { position: absolute; right: 4px; top: 4px; font-style: normal; font-size: 10px; background: #000; color: #fff; border-radius: 4px; padding: 1px 4px; }
.slide-badge { position: absolute; right: 10px; top: 10px; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 12px; }
.slide-manager { display: flex; flex-direction: column; gap: 10px; }
.slide-manager[open] > summary { margin-bottom: 8px; }
.slide-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: var(--color-studio-cream); }
.slide-row img, .slide-row-empty { width: 40px; height: 50px; object-fit: cover; border-radius: 6px; background: #ddd; flex-shrink: 0; }
.slide-row .grow { display: flex; flex-direction: column; font-size: 13px; min-width: 0; }
.slide-row .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slide-row small { opacity: 0.6; font-size: 11px; }
.slide-row-n { width: 20px; text-align: center; font-weight: 700; font-size: 13px; }
.slide-row form { margin: 0; display: flex; gap: 4px; }
.replace-form label { cursor: pointer; }

/* --- Figma import --- */
.fig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.fig-frame { display: flex; flex-direction: column; gap: 4px; cursor: pointer; position: relative; }
.fig-frame input { position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; z-index: 1; accent-color: var(--color-studio-blue); }
.fig-thumb { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--color-studio-cream); border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.fig-frame:has(input:checked) .fig-thumb { border-color: var(--color-studio-blue); }
.fig-frame:has(input:disabled) .fig-thumb { border-color: var(--color-studio-blue); opacity: 0.85; }
.fig-thumb img { width: 100%; height: 100%; object-fit: contain; }
.fig-n { position: absolute; right: 6px; bottom: 6px; background: #fff; font-size: 11px; border-radius: 4px; padding: 1px 6px; }
.fig-name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.fig-frame small { font-size: 11px; opacity: 0.6; }
@media (max-width: 768px) { .fig-grid { grid-template-columns: repeat(2, 1fr); } .slide { min-height: 200px; } .slide-row { flex-wrap: wrap; } }
.fig-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.fig-head > div { min-width: 0; }
.fig-head .card-title { overflow-wrap: anywhere; }
.fig-head .pill { white-space: nowrap; }
.fig-grid { align-items: start; }

/* --- Captions --- */
.caption-block { border-top: 1px solid rgba(0, 0, 0, 0.08); padding-top: 12px; }
.caption-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.caption-head b { font-size: 14px; }
.caption-head .link-btn { margin-left: auto; }
.caption-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; background: var(--color-studio-cream); border-radius: 10px; padding: 12px 14px; max-height: 260px; overflow-y: auto; }
.over-limit, .over-limit [data-len] { color: #c0392b; font-weight: 600; }
.caption-edit > summary { cursor: pointer; font-size: 13px; }
.caption-edit[open] > summary { margin-bottom: 8px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }

/* --- Sets: one creative in several placements --- */
.set-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.set-banner .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.placement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.placement .slide { min-height: 200px; max-height: 480px; }
.placement .slide img, .placement .slide video { max-height: 480px; }
.placement-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.placement-head .card-title { font-size: 18px; }
.placement-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.pills-row { display: flex; flex-wrap: wrap; gap: 8px; }
.set-note { background: #e6f4ea; border-radius: 10px; padding: 10px 14px; font-weight: 600; margin: 0 0 16px; }
.mode-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode-opt { display: flex; gap: 10px; align-items: flex-start; border: 2px solid rgba(0, 0, 0, 0.1); border-radius: 12px; padding: 12px; cursor: pointer; }
.mode-opt:has(input:checked) { border-color: var(--color-studio-blue); background: rgba(20, 60, 255, 0.04); }
.mode-opt input { margin-top: 3px; accent-color: var(--color-studio-blue); }
.mode-opt span { display: flex; flex-direction: column; gap: 2px; }
.mode-opt small { font-size: 12px; opacity: 0.7; }
@media (max-width: 768px) { .mode-pick { grid-template-columns: 1fr; } .placement-grid { grid-template-columns: 1fr; } }
.placement-jump { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; }
.placement-jump .chip { white-space: nowrap; }
.placement { scroll-margin-top: 80px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }

/* --- Ideas & plans --- */
.kind-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--color-studio-cream); white-space: nowrap; }
.kind-concept { background: #e8ecff; color: #1a2fb8; }
.kind-strategy { background: #f3e8ff; color: #6b21a8; }
.kind-media_plan { background: #e6f4ea; color: #1f6b4a; }
.kind-post_idea { background: #fff6d6; color: #7a5a00; }
.kind-production { background: #ffe8e3; color: #a3321f; }
.kind-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.kind-btn { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; border: 2px solid rgba(0, 0, 0, 0.08); background: #fff; cursor: pointer; font: inherit; }
.kind-btn:hover { border-color: var(--color-studio-blue); }
.kind-btn b { font-size: 14px; }
.kind-btn small { font-size: 12px; opacity: 0.65; line-height: 1.35; }
.concept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.concept-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: box-shadow 0.15s; }
.concept-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.concept-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.concept-title { font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.concept-summary { margin: 0; font-size: 14px; opacity: 0.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.concept-meta { margin: auto 0 0; font-size: 12px; opacity: 0.6; }
.concept-lead p { margin: 0; font-size: 18px; line-height: 1.5; }
.concept-section h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.6; margin: 0 0 6px; }
.prose p { margin: 0 0 10px; line-height: 1.6; overflow-wrap: anywhere; }
.prose ul { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; }
.prose > :last-child { margin-bottom: 0; }
.unsent-note { background: #fff6d6; border-radius: 10px; padding: 10px 14px; font-weight: 600; margin: 0 0 16px; }
.table-scroll { overflow-x: auto; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.plan-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.6; padding: 8px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); white-space: nowrap; }
.plan-table td { padding: 10px 8px; border-bottom: 1px solid rgba(0, 0, 0, 0.06); vertical-align: top; }
.plan-table td small { display: block; opacity: 0.6; font-size: 12px; }
.plan-table .num { text-align: right; white-space: nowrap; }
.plan-table tfoot td { font-weight: 700; border-bottom: 0; }
.plan-edit td { padding: 4px; min-width: 110px; }
.plan-edit td:last-child { min-width: 0; }
.plan-edit .input { padding: 8px 10px; font-size: 13px; }
.split-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--color-studio-cream); }
.split-bar span { width: var(--w); }
.split-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; }
.split-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.seg-0 { background: #143cff; } .seg-1 { background: #f2c94c; } .seg-2 { background: #1f6b4a; } .seg-3 { background: #e63b2e; } .seg-4 { background: #9b51e0; } .seg-5 { background: #333; }
.link-row { display: flex; flex-direction: column; text-decoration: none; color: inherit; padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.link-row b { color: var(--color-studio-blue); }
.link-row small { font-size: 12px; opacity: 0.6; overflow-wrap: anywhere; }
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.history li { display: flex; flex-direction: column; padding-left: 14px; border-left: 3px solid #ddd; font-size: 13px; }
.history li small { opacity: 0.6; font-size: 11px; }
.history .h-approved { border-color: #1f6b4a; } .history .h-changes_requested { border-color: #e63b2e; } .history .h-declined { border-color: #999; }
.danger-zone { display: flex; justify-content: flex-end; }
.sticky-actions { position: sticky; bottom: 0; background: var(--color-studio-cream, #f5f3ee); padding: 12px 0; z-index: 2; }
@media (max-width: 1100px) { .kind-pick { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .kind-pick { grid-template-columns: 1fr; } .concept-grid { grid-template-columns: 1fr; } .sticky-actions { bottom: 64px; } }
@media (max-width: 768px) {
  .plan-view thead { display: none; }
  .plan-view, .plan-view tbody, .plan-view tfoot { display: block; }
  .plan-view tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
  .plan-view td { border: 0; padding: 0; text-align: left; }
  .plan-view td[data-label]::before { content: attr(data-label); display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.55; }
  .plan-view td:empty { display: none; }
  .plan-view td.num { text-align: left; }
  .plan-view tfoot tr { display: flex; justify-content: space-between; }
  .plan-view tfoot td:empty, .plan-view tfoot td:last-child { display: none; }
}

/* --- Onboarding: guided tour --- */
.tour-backdrop { position: fixed; inset: 0; z-index: 900; background: transparent; }
.tour-backdrop.is-dim { background: rgba(0, 0, 0, 0.55); }
.tour-spot { position: fixed; z-index: 901; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55), 0 0 0 3px var(--color-yellow, #ffdd3c); pointer-events: none; transition: all 0.25s ease; }
.tour-card { position: fixed; z-index: 902; width: min(360px, calc(100vw - 24px)); background: #fff; color: #000; border-radius: 16px; padding: 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); outline: none; transition: left 0.25s ease, top 0.25s ease; }
.tour-card.is-center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); padding: 28px; }
.tour-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-studio-blue); }
.tour-title { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.tour-card.is-center .tour-title { font-size: 26px; }
.tour-body { margin: 0; font-size: 15px; line-height: 1.55; }
.tour-note { margin: 10px 0 0; font-size: 13px; background: var(--color-studio-cream); border-radius: 8px; padding: 8px 10px; }
.tour-actions { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.tour-skip { font-size: 13px; opacity: 0.7; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: #ddd; }
.tour-dots i.on { background: var(--color-studio-blue); width: 16px; border-radius: 3px; }
body.tour-on { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-card { transition: none; } }

/* --- Onboarding: Getting started checklist --- */
.getting-started { margin-bottom: 20px; }
.gs-bar { height: 6px; border-radius: 3px; background: var(--color-studio-cream); overflow: hidden; }
.gs-bar span { display: block; height: 100%; width: var(--w); background: var(--color-studio-blue); transition: width 0.3s; }
.gs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; }
.gs-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.gs-list li form { margin: 0; }
.gs-check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; }
.gs-list li.is-done .gs-check { background: #1f6b4a; border-color: #1f6b4a; }
.gs-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.gs-text b { font-size: 14px; }
.gs-text small { font-size: 12px; opacity: 0.65; }
.gs-list li.is-done .gs-text b { text-decoration: line-through; opacity: 0.55; }
@media (max-width: 768px) { .gs-list { grid-template-columns: 1fr; } }

/* --- Matrix rows: the whole row opens the creative; the download button sits on top --- */
.tr.has-row-link { position: relative; }
.tr.has-row-link:hover { background: #fafaf7; }
.row-link { position: absolute; inset: 0; z-index: 0; }
.row-link:focus-visible { outline: 2px solid var(--color-studio-blue); outline-offset: -2px; }
.dl-cell { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.dl-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.15); background: #fff; color: #000; text-decoration: none; font-weight: 700; }
.dl-btn:hover { background: #000; color: #fff; }
.dl-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.matrix .tr { grid-template-columns: 48px minmax(220px, 1fr) 90px 90px 120px 180px 80px 84px 40px; }
@media (max-width: 1180px) { .matrix .tr { grid-template-columns: 48px minmax(200px, 1fr) 90px 90px 120px 84px 84px 40px; } }
@media (max-width: 768px) {
  .matrix .tr { display: flex; }
  .dl-cell { margin-left: auto; }
  .dl-btn { width: auto; height: 34px; padding: 0 14px; border-radius: 17px; gap: 6px; font-size: 13px; }
  .dl-btn span { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-weight: 600; }
}

/* --- Notifications bell (icon only; the name shows on hover / focus) --- */
.sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sidebar-bell, .topbar-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; text-decoration: none; flex-shrink: 0; }
.sidebar-bell { margin-top: -8px; background: rgba(255, 255, 255, 0.08); }
.sidebar-bell:hover, .sidebar-bell:focus-visible, .sidebar-bell.is-active { background: var(--color-studio-blue); outline: none; }
.topbar-bell:focus-visible { outline: 2px solid #fff; }
.bell-count { position: absolute; top: -3px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--color-yellow, #ffdd3c); color: #000; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; top: 50%; left: calc(100% + 10px); transform: translateY(-50%); background: #000; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; padding: 5px 9px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity 0.12s; z-index: 50; border: 1px solid rgba(255, 255, 255, 0.2); }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; }
.topbar-bell[data-tip]::after { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
@media (hover: none) { [data-tip]::after { display: none; } }
.sidebar { overflow-x: hidden; }
.sidebar-bell[data-tip]::after { top: calc(100% + 8px); left: auto; right: 0; transform: none; }
/* Download sits right after Status so it stays visible when the numbers columns scroll */
.sidebar { overflow-x: clip; }
.matrix .tr { grid-template-columns: 48px minmax(220px, 1fr) 90px 90px 120px 40px 180px 80px 84px; }
.dl-cell { justify-content: flex-start; }
@media (max-width: 1180px) {
  .matrix .tr { grid-template-columns: 48px minmax(200px, 1fr) 90px 90px 120px 40px 84px 84px; }
  .matrix .tr.th span:nth-child(6) { display: block; }
  .matrix .tr.th span:nth-child(7) { display: none; }
}
.sidebar-head .sidebar-wordmark { min-width: 0; }
.sidebar-head .wordmark-box { width: auto; }
@media (max-width: 768px) { .matrix .tr.th { display: none; } }

/* --- Agency brand (Settings → Brand) and the "Powered by Munus" line --- */
.brand-logo { display: block; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.brand-logo-sidebar { height: 28px; max-width: 180px; }
.brand-logo-topbar { height: 22px; max-width: 148px; }
.brand-logo-login { height: 32px; max-width: 220px; }
.brand-logo-big { height: 32px; max-width: 220px; }
.brand-text { display: block; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #000; }
.brand-text.on-dark { color: #fff; }
.brand-text-sidebar { font-size: 18px; line-height: 1.15; max-width: 170px; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.brand-text-topbar { font-size: 16px; max-width: 148px; }
.brand-text-login, .brand-text-big { font-size: 26px; max-width: 320px; }
.sidebar-head .wordmark-box:has(.brand-logo, .brand-text), .wordmark-box-sm:has(.brand-logo, .brand-text) { height: auto; }
.login-heading { font-size: 24px; font-weight: 700; margin: 0; }
.powered-by { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11px; }
.powered-by > img { flex-shrink: 0; }
.powered-by b, .powered-by { color: inherit; }
.powered-by { opacity: 0.7; }
.powered-by b { font-weight: 600; }
.sidebar-powered { padding: 4px 2px 0; }
.login-powered { margin: 18px 0 0 48px; width: 327px; justify-content: center; }
.logo-preview { display: flex; align-items: center; min-height: 72px; padding: 16px; border-radius: var(--radius-10); overflow: hidden; }
.logo-preview.on-light { background: var(--color-surface); }
.logo-preview.on-dark { background: #000; }
.logo-form { display: flex; gap: 8px; align-items: center; }
.logo-form .input { min-width: 0; flex: 1; padding: 8px; font-size: 12px; }
.logo-slot + .logo-slot { border-top: 1px solid rgba(0, 0, 0, 0.08); padding-top: 12px; }
@media (max-width: 768px) {
  .login-powered { margin: 16px 0 0; width: auto; }
  .brand-split { flex-direction: column; align-items: stretch; }
  .brand-split .side-360 { width: auto; }
}
.more-powered { justify-content: center; margin-top: 16px; }

/* --- Tracked links (UTM) --- */
.utm-toggle .toggle-row { width: 100%; }
.utm-url { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--radius-10); background: var(--color-surface); }
.utm-url code { font: 500 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; overflow-wrap: anywhere; }
.utm-url-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.utm-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.utm-checks li { position: relative; padding-left: 22px; }
.utm-checks li::before { position: absolute; left: 0; top: 0; width: 16px; text-align: center; font-weight: 700; }
.utm-checks .is-ok::before { content: '✓'; color: var(--color-green, #1f6b4a); }
.utm-checks .is-warn::before { content: '!'; color: #b07d00; }
.utm-checks .is-error { color: #c62f22; }
.utm-checks .is-error::before { content: '✕'; }
.utm-grid .field-label, .utm-sources .field-label { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.utm-row { display: flex; flex-direction: column; gap: 6px; }
.utm-row + .utm-row { border-top: 1px solid rgba(0, 0, 0, 0.08); padding-top: 12px; }
@media (max-width: 768px) { .utm-grid, .utm-sources { grid-template-columns: 1fr; } }

/* Settings → Munus sign-ups */
.signups { display: flex; flex-direction: column; }
.signup-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 20px; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.signup-row:first-child { border-top: 0; }
.signup-row small { display: block; font-size: 12px; opacity: 0.75; margin-top: 2px; overflow-wrap: anywhere; }
.signup-row p { margin-top: 6px; white-space: pre-wrap; }
@media (max-width: 768px) { .signup-row { flex-direction: column; gap: 6px; padding: 14px 16px; } }
.utm-checks .is-info::before { content: 'i'; color: var(--color-studio-blue, #081cfd); font-style: italic; font-family: Georgia, serif; }

/* --- Figma: button, file picker, settings --- */
.btn-figma { display: inline-flex; align-items: center; gap: 8px; }
.figma-logo { flex-shrink: 0; }
.fig-connect { display: flex; align-items: center; gap: 20px; }
.fig-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fig-account { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: #fff; border-radius: 999px; font-size: 13px; font-weight: 600; }
.fig-search .input { max-width: 420px; }
.fig-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.fig-file { display: flex; flex-direction: column; gap: 6px; min-width: 0; background: #fff; border-radius: var(--radius-14); padding: 10px 10px 14px; border: 2px solid transparent; transition: border-color 0.15s; }
.fig-file:hover, .fig-file:focus-visible { border-color: var(--color-studio-blue); }
.fig-file-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--color-studio-cream); border-radius: var(--radius-10); overflow: hidden; }
.fig-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fig-file b { font-size: 14px; font-weight: 600; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fig-file small { font-size: 12px; opacity: 0.6; padding: 0 4px; }
.fig-browse { display: flex; gap: 20px; align-items: flex-start; }
.fig-projects { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 20px; }
.fig-projects .micro-strong { padding: 8px 10px 4px; }
.fig-project { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: var(--radius-10); font-size: 14px; }
.fig-project:hover { background: var(--color-studio-cream); }
.fig-project.is-on { background: #000; color: #fff; }
.fig-project small { opacity: 0.6; }
.fig-picked { display: flex; align-items: center; gap: 14px; }
.fig-picked b { display: block; font-size: 16px; }
.fig-status { display: flex; align-items: center; gap: 16px; }
.fig-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.fig-token .input { min-width: 0; }
.fig-team { padding: 10px 0; border-top: 1px solid #eee; }
@media (max-width: 760px) {
  .fig-connect, .fig-status { flex-direction: column; align-items: flex-start; }
  .fig-browse { flex-direction: column; }
  .fig-projects { width: 100%; position: static; }
  .fig-files { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fig-token { flex-direction: column; align-items: stretch; }
}
.figma-link { border-top: 1px solid #eee; padding-top: 14px; }
.figma-link .row-end { align-items: center; }
@media (max-width: 760px) { .figma-link form.row-end { flex-direction: column; align-items: stretch; } }
.status-note { display: flex; align-items: center; gap: 16px; border-left: 6px solid var(--color-yellow); }
.status-note b { font-size: 16px; }
.status-note-red { border-left-color: var(--color-red, #e5484d); }
.status-note-green { border-left-color: var(--color-green, #1f7a4d); }
.status-note-blue { border-left-color: var(--color-studio-blue); }
@media (max-width: 760px) { .status-note { flex-direction: column; align-items: flex-start; } }

/* --- Versions: tags under the creative ID, compare side by side --- */
.version-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.version-row > .micro { margin-right: 4px; }
.version-tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1.5px solid #000; background: #fff; color: #000; }
.version-tag:hover { background: var(--color-yellow); }
.version-tag.is-on { background: #000; color: #fff; }
.version-compare { border-style: dashed; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-side { min-width: 0; padding: 12px; background: var(--color-studio-cream); border-radius: var(--radius-12); }
.compare-pick { margin: 0; }
.compare-pick .input { padding: 6px 28px 6px 10px; font-size: 13px; font-weight: 600; }
.old-versions form { padding: 8px 0; border-top: 1px solid #eee; margin: 0; }
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }

/* Loading bar while the next page loads */
html.is-navigating::before { content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 9999; background: var(--color-studio-blue); transform-origin: left; animation: nav-load 2.5s cubic-bezier(.1,.7,.3,1) forwards; }
@keyframes nav-load { from { transform: scaleX(0); } to { transform: scaleX(0.9); } }
@media (prefers-reduced-motion: reduce) { html.is-navigating::before { animation: none; transform: scaleX(0.6); } }
.on-behalf { position: relative; }
.on-behalf summary { list-style: none; cursor: pointer; }
.on-behalf summary::-webkit-details-marker { display: none; }
.on-behalf-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: #fff; border-radius: var(--radius-12); padding: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.15); z-index: 20; }
@media (max-width: 760px) { .on-behalf-menu { position: static; width: auto; margin-top: 8px; } }

/* --- Sign-in (Munus): moving colour background, one card --- */
.auth-body { min-height: 100vh; background: #fdf8ef; }
.auth { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px 72px; overflow: hidden;
  background: radial-gradient(60% 50% at 20% 30%, #ffd75d 0%, transparent 70%), radial-gradient(50% 45% at 80% 75%, #79a2f5 0%, transparent 70%), radial-gradient(40% 40% at 65% 15%, #dc8cf5 0%, transparent 70%), #fdf8ef; }
.auth-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; }
.auth-bg.is-on { opacity: 1; }
.auth-card { position: relative; width: 100%; max-width: 420px; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.auth-wordmark { align-self: center; display: block; }
.auth-wordmark img { display: block; height: 26px; width: auto; }
.auth-head { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.auth-head h1 { font-size: 26px; font-weight: 700; margin: 0; }
.auth-head p { font-size: 14px; opacity: .65; margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.auth-label { font-size: 13px; font-weight: 600; }
.auth-form .login-input { border-width: 1.5px; border-radius: 12px; background: #fff; }
.auth-form .login-button { border-radius: 12px; height: 50px; margin-top: 4px; }
.auth-form .login-error { margin-top: 0; }
.auth-agency { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.auth-agency p { margin: 0; font-size: 15px; }
.auth-logo { display: flex; justify-content: center; max-width: 240px; }
.auth-logo img, .auth-logo svg { max-height: 56px; max-width: 240px; width: auto; height: auto; }
.auth-tile { position: relative; width: 88px; height: 88px; border-radius: 24px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(70% 70% at 25% 30%, #ffd75d, transparent), radial-gradient(70% 70% at 80% 80%, #79a2f5, transparent), #dc8cf5; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.auth-tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; }
.auth-tile canvas.is-on { opacity: 1; }
.auth-tile img { position: relative; width: 52%; height: auto; }
.auth-email { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--color-studio-cream); font-size: 14px; }
.auth-email span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.auth-email a { color: var(--color-studio-blue); font-weight: 600; flex-shrink: 0; }
.auth-foot { text-align: center; font-size: 13px; opacity: .75; margin: 0; }
.auth-foot a { color: var(--color-studio-blue); font-weight: 600; }
.auth-card .login-forgot { margin-top: -6px; }
.auth-legal { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; font-size: 12px; font-weight: 600; opacity: .55; }
@media (max-width: 480px) { .auth-card { padding: 24px 20px; border-radius: 20px; } .auth-head h1 { font-size: 22px; } }
.auth-logo .login-studio-logo { position: static; }
.auth-wordmark + .auth-agency { padding-top: 18px; border-top: 1px solid rgba(0,0,0,.08); }
/* Still, fine grain over the moving colours (an SVG noise tile at full resolution) */
.auth::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px; }
.auth-card, .auth-legal { z-index: 1; }

/* --- Sleeker menu: line icons, muted text, a quiet highlight for the current page --- */
.sidebar { gap: 4px; padding: 22px 16px; }
.sidebar-head { padding: 0 8px 22px; }
.sidebar-wordmark { padding-bottom: 0; }
.sidebar-nav { gap: 2px; }
.nav-item { gap: 11px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.62); transition: background .12s, color .12s; }
.nav-item > span:first-of-type { opacity: 1; }
.nav-icon { flex-shrink: 0; opacity: .85; }
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item.is-active { background: rgba(255, 255, 255, 0.11); color: #fff; font-weight: 600; }
.nav-item.is-active .nav-icon { color: var(--color-yellow); opacity: 1; }
.nav-item:focus-visible { outline: 2px solid var(--color-yellow); outline-offset: -2px; }
.nav-count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--color-yellow); color: #000; font-size: 11px; font-weight: 700; text-align: center; }
.account-card { margin: 0 0 4px; }
.sidebar-powered { padding: 4px 10px 0; }
@media (max-width: 760px) {
  .tabbar { padding: 8px 6px 24px; border-top: 1px solid rgba(0, 0, 0, 0.06); }
  .tab { gap: 3px; color: rgba(0, 0, 0, 0.5); }
  .tab span { opacity: 1; }
  .tab .nav-icon { width: 22px; height: 22px; }
  .tab.is-active { color: var(--color-studio-blue); }
  .tab.is-active span { color: var(--color-studio-blue); }
}

/* --- Creative page: folded studio tools and one details card --- */
.tools-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .5; padding: 8px 2px 0; }
.tool { padding: 0; overflow: hidden; }
.tool > summary { display: flex; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; list-style: none; }
.tool > summary::-webkit-details-marker { display: none; }
.tool > summary b { font-size: 16px; }
.tool > summary small { font-size: 13px; flex: 1; min-width: 0; }
.tool-chev { font-size: 18px; transition: transform .15s; opacity: .6; }
.tool[open] .tool-chev { transform: rotate(180deg); }
.tool > summary:hover { background: rgba(0, 0, 0, .025); }
.tool-body { padding: 0 22px 22px; }
.tool-body > section.card { padding: 0; background: none; box-shadow: none; border: 0; border-radius: 0; }
.tool-body > #new-version > .card-header { display: none; }
.detail-card .detail-sub { padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .07); }
.detail-card details.detail-sub > summary { cursor: pointer; }
.detail-card .naming-grid { margin-top: 10px; }
@media (max-width: 760px) { .tool > summary { flex-wrap: wrap; padding: 16px; } .tool > summary small { flex-basis: 100%; order: 3; } .tool-body { padding: 0 16px 16px; } }

/* Creative IDs: one line, cut with … (full ID on hover), copy button */
.id-line { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; position: relative; z-index: 1; }
.id-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 500; letter-spacing: .01em; opacity: .6; }
.id-copy { flex-shrink: 0; border: 0; background: none; padding: 2px 4px; border-radius: 6px; font-size: 12px; line-height: 1; cursor: pointer; opacity: .45; color: inherit; }
.id-copy:hover, .id-copy:focus-visible { opacity: 1; background: rgba(0, 0, 0, .06); }
.cell-id b { overflow-wrap: normal; }
.cell-client-name { font-style: normal; font-weight: 500; opacity: .55; }
.creative-body .id-line { width: 100%; }
.tool-body > .figma-link { border-top: 0; padding-top: 0; }
.tool-body > .figma-link > .row-end:first-child > b, .tool-body > .figma-link > .row-end:first-child > svg { display: none; }

/* "⋯" menu for secondary page actions */
.more-menu { position: relative; }
.more-menu > summary { list-style: none; cursor: pointer; min-width: 46px; justify-content: center; font-size: 18px; line-height: 1; letter-spacing: .05em; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .14); z-index: 30; display: flex; flex-direction: column; }
.more-menu-list a { padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.more-menu-list a:hover { background: var(--color-studio-cream); }
@media (max-width: 760px) { .header-actions .more-menu { flex: 0 0 auto; } .more-menu-list { right: auto; left: 0; } }

/* --- Calmer cards: the former black cards become white with a yellow top edge (totals, performance, summaries) --- */
.card-dark { background: #fff; color: var(--color-black); box-shadow: inset 0 4px 0 var(--color-yellow); }
.card-dark hr, .total-card hr { border-top-color: rgba(0, 0, 0, 0.1); }
.card-dark .muted-light { color: rgba(0, 0, 0, 0.6); }
.card-dark .dark-row { color: rgba(0, 0, 0, 0.75); }
.card-dark .dark-row.strong { color: var(--color-black); }
.card-dark .dark-row.text-yellow { color: #8a6400; }
.card-dark .chip-light { background: var(--color-studio-cream); }
.card-dark .edit-metrics summary { color: var(--color-studio-blue); }
.card-dark .form-dark .input { background: #fff; color: var(--color-black); border-color: var(--color-black); }
.card-dark .form-dark .field-label { color: inherit; opacity: .8; }

/* --- Getting started: finished steps are ticked and soft, not crossed out --- */
.gs-list li.is-done .gs-text b { text-decoration: none; opacity: 0.5; font-weight: 500; }
.gs-list li.is-done .gs-text small { opacity: 0.45; }

/* --- Number tiles: slimmer on desktop, a sideways strip on phones --- */
.stats { gap: 12px; }
.stat, .stats-compact .stat { padding: 14px 18px; gap: 2px; border-radius: var(--radius-12); }
.stat-value, .stats-compact .stat-value { font-size: 26px; line-height: 1.15; }
.stat-label { font-size: 12.5px; }
.stats-compact .accent, .stat .accent { width: 18px; height: 4px; margin-bottom: 4px; }
@media (max-width: 760px) {
  .stats, .stats-3 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; scrollbar-width: none; }
  .stats::-webkit-scrollbar { display: none; }
  .stats > .stat, .stats-3 .stat:first-child { flex: 0 0 44%; scroll-snap-align: start; grid-column: auto; padding: 12px 14px; }
  .stat-value, .stats-compact .stat-value { font-size: 22px; }
}

/* --- File pickers: the browser's button styled like ours, everywhere --- */
input[type=file] { font: 500 13px var(--font); color: rgba(0, 0, 0, .6); max-width: 100%; }
input[type=file].input { padding: 8px; border-style: dashed; background: #fff; cursor: pointer; }
input[type=file]::file-selector-button { font: 600 13px var(--font); margin-right: 12px; padding: 8px 14px; border: 1.5px solid var(--color-black); border-radius: var(--radius-10); background: #fff; color: var(--color-black); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--color-yellow); }

/* --- Settings cards with icons; More page --- */
.setting-card { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; }
.setting-card .card-title { display: block; font-size: 17px; }
.setting-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--color-studio-cream); display: inline-flex; align-items: center; justify-content: center; }
.setting-icon svg { width: 20px; height: 20px; }
.setting-icon .figma-logo { width: 13px; height: 19px; }
.stack-4 { display: flex; flex-direction: column; gap: 4px; }
.more-account { display: flex; align-items: center; gap: 14px; }
.more-account b { display: block; font-size: 17px; }
.more-account small { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.more-list a { justify-content: flex-start; align-items: center; gap: 12px; }
.more-list a .nav-icon { opacity: .7; }
.card-dark .text-yellow { color: #b3261e; font-weight: 600; }

/* --- Settings → Payments --- */
.pay-head { display: flex; align-items: center; gap: 14px; }
.pay-logo { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: #635bff; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.pay-logo.is-wait { background: var(--color-yellow); color: #000; }
.pay-logo.is-ok { background: var(--color-green); }
.pay-why { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.pay-disconnect summary { cursor: pointer; }
