:root {
  --ink: #111;
  --muted: #5e5e5e;
  --line: #e4e4e4;
  --fog: #f4f4f4;
  --blue: #00b4ea;
  --paper: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: Onest, "Segoe UI", sans-serif;
  font-size: 15px;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 180, 234, 0.2), transparent 34%),
    #0e0e0e;
}
.auth .card {
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
}
.brand { font-family: Unbounded, Onest, sans-serif; font-weight: 600; letter-spacing: -0.03em; font-size: 22px; text-decoration: none; }
.tabs { display: flex; gap: 8px; margin: 18px 0; }
.tabs button, .btn, .ghost {
  min-height: 40px;
  border-radius: 12px;
  border: 1.6px solid #111;
  background: #fff;
  padding: 0 14px;
  font-weight: 600;
}
.tabs button.on, .btn { background: #111; color: #fff; }
.btn.blue { background: var(--blue); border-color: var(--blue); }
.ghost { background: transparent; }
.field { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.field[hidden] { display: none; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 44px;
  border: 1.6px solid #d5d5d5;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.45; }
.err { color: #b42318; font-size: 14px; margin-top: 10px; }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; align-items: start; }
.side {
  background: #111; color: #fff; padding: 12px 10px 10px; display: flex; flex-direction: column; gap: 1px;
  position: sticky; top: 0; align-self: start; height: 100vh; max-height: 100vh; overflow: hidden;
}
.nav-label {
  margin: 8px 10px 2px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,.42);
}
.side .nav-label:first-of-type { margin-top: 4px; }
.shell.slim .nav-label { display: none; }
.side button.nav, #fold, #logout { display: flex; align-items: center; gap: 10px; width: 100%; position: relative; font-size: 13px; }
.dot { margin-left: auto; background: var(--blue); color: #fff; border-radius: 99px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; font-style: normal; display: grid; place-items: center; }
.dot[hidden] { display: none; }
.shell.slim .dot { position: absolute; top: 6px; right: 8px; min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; }
.side svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.shell { transition: grid-template-columns .25s ease; }
.shell.slim { grid-template-columns: 72px minmax(0, 1fr); }
.shell.slim .nav span, .shell.slim .brand span:last-child, .shell.slim #fold span, .shell.slim #logout span { display: none; }
.shell.slim .side { align-items: center; padding-left: 10px; padding-right: 10px; }
.shell.slim .nav, .shell.slim #fold, .shell.slim #logout { justify-content: center; padding-left: 0; padding-right: 0; }
#screen.enter { animation: enter .4s ease; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.kpi, .channel, .tariff, .video { animation: enter .45s ease both; }
.stack { display: grid; gap: 8px; margin-top: 14px; }
.stack .btn, .stack .ghost { width: 100%; }
.compose-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.step { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.step h2 { font-family: Unbounded, Onest, sans-serif; font-size: 18px; letter-spacing: -0.03em; margin-bottom: 6px; }
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.dest-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fafafa; }
.dest-card b { display: block; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pick {
  display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #d0d0d0; border-radius: 999px;
  padding: 7px 12px; background: #fff; font-weight: 700; cursor: pointer;
}
.pick input { accent-color: #111; width: 16px; height: 16px; }
.pick.on, .pick:has(input:checked) { background: #111; color: #fff; border-color: #111; }
.empty-dest { border: 1.5px dashed #ccc; border-radius: 14px; padding: 16px; display: grid; gap: 10px; justify-items: start; }
.file-pick { display: flex; align-items: center; gap: 12px; margin-top: 8px; position: relative; }
.file-pick input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.file-pick .name { overflow-wrap: anywhere; }
.stage-preview.is-empty { background: #f7f7f7; border: 1.5px dashed #d0d0d0; min-height: 240px; }
.stage-preview.is-empty .fine { color: var(--muted); }
.stage-preview video[hidden] { display: none; }
.stage-preview {
  margin-top: 12px; min-height: 220px; max-height: 560px; border-radius: 16px; overflow: hidden;
  background: #161616; display: grid; place-items: center;
}
.stage-preview video { width: 100%; height: auto; max-height: 560px; object-fit: contain; background: #161616; display: block; }
.stage-preview.tall { max-width: 360px; margin-left: auto; margin-right: auto; }
.stage-preview.wide video { width: 100%; }
.stage-preview .fine { color: rgba(255,255,255,.75); padding: 16px; text-align: center; }
.btn, .ghost, .suggest, .account, .nav {
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.16); background: #2b2b2b; }
.ghost:hover { transform: translateY(-2px); background: #111; color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.suggest:hover { transform: translateY(-2px); background: #111; color: #fff; }
.account:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.side .nav:hover { transform: translateX(4px); }
.shell.slim .nav:hover { transform: none; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal .dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding-bottom: 2px; }
.cal-empty { min-height: 72px; }
.cal-day {
  min-height: 78px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  padding: 8px 8px 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.cal-day .num { font-weight: 700; font-size: 15px; }
.cal-day .marks { display: flex; gap: 4px; min-height: 8px; }
.cal-day .marks i, .cal-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cal-day .marks i.wait, .cal-legend i.wait { background: var(--blue); }
.cal-day .marks i.done, .cal-legend i.done { background: #111; }
.cal-day .marks i.draft, .cal-legend i.draft { background: #c8c8c8; }
.cal-legend i.today { box-shadow: inset 0 0 0 1.5px var(--blue); background: transparent; }
.cal-day em { margin-top: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-day.weekend { background: #fafafa; }
.cal-day.past .num { color: #9a9a9a; }
.cal-day.today { box-shadow: inset 0 0 0 1.6px var(--blue); }
.cal-day.on { background: #111; color: #fff; border-color: #111; }
.cal-day.on .num, .cal-day.on em { color: #fff; }
.cal-day.on .marks i.done { background: #fff; }
.cal-day.on .marks i.draft { background: rgba(255,255,255,.55); }
.cal-day.on.today { box-shadow: inset 0 0 0 2px var(--blue); }
.cal-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.cal-head h2 { font-family: Unbounded, Onest, sans-serif; font-size: 26px; letter-spacing: -0.03em; text-transform: capitalize; margin-right: auto; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-panel { margin-bottom: 4px; }
.next-post {
  margin-top: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: #f7fbfe;
  border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px;
}
.next-post span, .next-post em { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 700; }
.next-post b { font-size: 16px; }
.agenda { display: grid; gap: 8px; }
.agenda-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin: 16px 0 8px; }
.agenda-head h2 { font-family: Unbounded, Onest, sans-serif; font-size: 22px; letter-spacing: -0.03em; text-transform: capitalize; }
.slot { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 12px; }
.slot time { display: grid; }
.slot time b { font-size: 18px; }
.slot time span { font-size: 12px; color: var(--muted); font-weight: 700; }
.cal-day { transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.next-post { transition: transform .18s ease, box-shadow .18s ease; }
.next-post:hover, .cal-day:hover { transform: translateY(-2px); }
.custom-caps { display: grid; gap: 8px; margin-top: 8px; }
.custom-caps[hidden], [data-cap-wrap][hidden] { display: none; }
.filter-bar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 12px; }
.filter-bar select { min-height: 40px; border-radius: 10px; border: 1.6px solid #d5d5d5; padding: 0 10px; margin-left: 8px; }
.side a, .side button.nav, #fold, #logout {
  color: #fff; text-decoration: none; text-align: left; background: transparent; border: 0;
  border-radius: 10px; padding: 7px 10px; font-weight: 600; min-height: 0; line-height: 1.2;
}
.mark { width: 26px; height: 26px; border-radius: 8px; background: #fff; color: #111; display: none; place-items: center; font-weight: 700; }
.shell.slim .mark { display: grid; }
.side a.on, .side button.nav.on, .side a:hover, .side button.nav:hover { background: rgba(255,255,255,.08); }
a.studio-credit {
  display: block; margin: 6px 4px 0; padding: 8px 6px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.32); font-size: 10px; font-weight: 500;
  letter-spacing: 0.02em; text-decoration: none; background: transparent;
}
.side a.studio-credit:hover { background: transparent; color: rgba(255,255,255,.62); transform: none; }
.shell.slim a.studio-credit { font-size: 9px; line-height: 1.25; text-align: center; padding-left: 0; padding-right: 0; }
.side .spacer { flex: 1 1 auto; min-height: 4px; max-height: 24px; }
.side .brand { padding: 2px 8px 8px; font-size: 18px; }
.main { padding: 20px 22px; min-width: 0; }
.top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.top h1 { font-family: Unbounded, Onest, sans-serif; font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.channel, .video, .stat, .plan {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff;
}
.channel b, .video h3 { display: block; }
.tag, .suggest {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 4px 10px; background: var(--fog); font-size: 13px; font-weight: 600;
}
.suggest { border: 1px solid #111; background: #fff; }
.tag button { border: 0; background: transparent; color: var(--muted); }
.checks { display: grid; gap: 8px; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; background: rgba(17,17,17,.45); display: grid; place-items: center; padding: 16px; z-index: 20; }
.modal .panel { width: min(480px, 100%); }
.toast {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: #111; color: #fff; border-radius: 10px; padding: 10px 14px; opacity: 0; pointer-events: none;
}
.toast.show { opacity: 1; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pill { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 8px; background: var(--fog); }
.pill.bad { background: #ffe4e1; color: #9f1239; }
.pill.ok { background: #e7f8ee; color: #067647; }
.pill.wait { background: #fff4d6; color: #8a5a00; }
.ticket-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticket-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; min-width: 0; }
.ticket { text-align: left; width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 12px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ticket:hover { transform: translateY(-2px); border-color: #111; box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.ticket.on { border-color: #111; }
.ticket b, .ticket .fine { display: block; }
.bubbles { display: grid; gap: 8px; max-height: 420px; overflow: auto; margin-top: 14px; padding-right: 4px; }
.bubble { max-width: min(520px, 88%); border-radius: 14px; padding: 10px 12px; background: var(--fog); }
.bubble p { margin-top: 4px; white-space: pre-wrap; }
.bubble.me { margin-left: auto; background: #111; color: #fff; }
.bubble .fine { color: inherit; opacity: .72; }
.account {
  display: flex; align-items: center; gap: 8px;
  background: #111; color: #fff; border: 0; border-radius: 12px;
  padding: 4px 6px 4px 4px; min-height: 42px; height: 42px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-family: Unbounded, Onest, sans-serif; font-weight: 600; font-size: 14px;
}
.account-text { display: grid; text-align: left; line-height: 1.1; }
.account-text b { font-size: 13px; }
.account-text small { color: rgba(255,255,255,.72); font-size: 11px; }
.account-balance { background: #fff; color: #111; border-radius: 8px; padding: 6px 8px; font-weight: 700; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.kpi span { color: var(--muted); font-size: 12px; font-weight: 700; }
.kpi b { display: block; margin-top: 4px; font-family: Unbounded, Onest, sans-serif; font-size: 26px; letter-spacing: -0.04em; }
.dash { display: grid; grid-template-columns: 1.3fr .7fr; gap: 12px; margin-top: 12px; }
.dash h2, .block-title, .tariff h3, .billing-head h2 { font-family: Unbounded, Onest, sans-serif; letter-spacing: -0.03em; font-size: 22px; }
.block-title { font-size: 22px; margin: 16px 0 8px; }
.bars { height: 180px; display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; margin-top: 12px; }
.bar-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.bar-col i { display: block; width: 100%; border-radius: 7px 7px 0 0; background: #111; min-height: 4px; }
.bar-col:nth-child(3n) i { background: var(--blue); }
.bar-col span { font-size: 10px; color: var(--muted); }
.splits { display: grid; gap: 12px; margin-top: 12px; }
.split { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-weight: 700; }
.split i { grid-column: 1 / -1; height: 6px; background: #eee; border-radius: 99px; overflow: hidden; }
.split em { display: block; height: 100%; background: #111; }
.mini { display: flex; gap: 10px; margin-top: 8px; }
.mini span { display: grid; font-size: 11px; color: var(--muted); }
.mini b { color: #111; font-size: 16px; }
.tariff { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.tariff.featured { outline: 1.6px solid #111; }
.tariff ul { margin: 0; padding: 0; list-style: none; }
.tariff li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.price { font-family: Unbounded, Onest, sans-serif; font-size: 32px; letter-spacing: -0.04em; }
.price small { font-family: Onest, sans-serif; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.billing-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 4px; }
.ghost.on { background: #111; color: #fff; }
.billing-head input, .billing-head select { min-height: 40px; border-radius: 10px; border: 1.6px solid #d5d5d5; padding: 0 10px; }
@media (max-width: 1100px) {
  .compose-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell, .grid2, .grid3, .ticket-layout { grid-template-columns: 1fr; }
  .side { position: static; height: auto; max-height: none; flex-direction: row; flex-wrap: wrap; }
  .kpis, .dash { grid-template-columns: 1fr 1fr; }
  .billing-head { flex-direction: column; align-items: stretch; }
}
.file-pick .btn { display: inline-flex; align-items: center; justify-content: center; line-height: 1; flex: none; white-space: nowrap; }
.bubble, .bubble p, .ticket b, .system-note { overflow-wrap: anywhere; word-break: break-word; }
.ticket { overflow: hidden; }
.ticket b { display: block; max-width: 100%; }
.system-note { margin: 10px auto; max-width: min(420px, 92%); text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; background: #f7f7f7; border-radius: 999px; padding: 8px 12px; }
.thread-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.thread-grid .row > div:first-child, td .tline { min-width: 0; max-width: 100%; }
.ticket-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.side-card h2 { font-size: 16px; margin: 0 0 6px; }
.plan-name { margin: 0; font-family: Unbounded, Onest, sans-serif; font-size: 22px; letter-spacing: -0.03em; }
.quick { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; text-align: left; background: #f6f6f6; border: 0; border-radius: 12px; padding: 10px 12px; margin-top: 8px; cursor: pointer; }
.quick b { font-size: 14px; }
.quick span { color: #666; font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quick:hover { transform: translateY(-2px); }
.pay-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pay-row span { display: grid; min-width: 0; }
.pay-row small { color: var(--muted); font-size: 11px; }
.tline { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.tname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.tid { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .04em; background: #111; color: #fff; border-radius: 6px; padding: 3px 6px; line-height: 1.3; }
.ticket { display: block; width: 100%; text-align: left; }
.admin-link { display: inline-flex; align-items: center; justify-content: center; height: 42px; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1.6px solid #111; background: #fff; color: #111; font-size: 13px; font-weight: 700; text-decoration: none; }
.admin-link:hover { transform: translateY(-2px); }
#who { display: flex; align-items: center; gap: 8px; flex: none; }
.bar-col { position: relative; cursor: default; }
.bar-col[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; padding: 4px 8px; border-radius: 8px; z-index: 4; pointer-events: none; white-space: nowrap; }
#screen.enter .panel, #screen.enter .side-card { animation: enter .45s ease both; }
.system-note span { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; }
#ticket-search { min-height: 40px; border-radius: 10px; border: 1.6px solid #d5d5d5; padding: 0 10px; min-width: 220px; background: #fff; }
@media (max-width: 1100px) {
  .thread-grid, .user-split, .user-actions { grid-template-columns: 1fr; }
}
.user-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: 16px; align-items: start; }
.user-list { display: grid; gap: 8px; max-height: 68vh; overflow: auto; margin-top: 8px; }
.user-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.user-row b { grid-column: 1; }
.user-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.user-head h2 { margin: 0 0 4px; }
.mark-row, .user-marks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mark-row { justify-content: flex-end; flex: none; padding-top: 2px; }
.pill.role-admin { background: #111; color: #fff; }
.pill.role-support { background: #e7f6fc; color: #0b6f8a; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 8px; margin-top: 14px; }
.stat-grid article { background: #f6f6f6; border-radius: 12px; padding: 10px 12px; min-width: 0; }
.stat-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-grid b { display: block; margin-top: 2px; font-family: Onest, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.staff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.staff-actions .ghost { margin: 0; min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; }
.staff-actions .ghost:hover { transform: none; box-shadow: none; }
.staff-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.staff-ticket-head .topic { flex: 1; width: auto; }
.ghost.slim { min-height: 32px; padding: 0 10px; }
.ghost.slim:hover { transform: none; box-shadow: none; }
#staff-profile { min-width: 0; }
.mine-list { width: 100%; }
button.mine-more {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px;
  margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: #111; font-weight: 700; box-shadow: none;
}
button.mine-more:hover { transform: none; background: #fafafa; color: #111; box-shadow: none; border-color: #c8c8c8; }
button.topic, .topic {
  display: flex; align-items: center; gap: 8px; width: 100%; max-width: 100%; min-width: 0; min-height: 0;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  text-align: left; font: inherit; font-weight: 700; color: inherit; cursor: pointer;
}
span.topic { cursor: default; }
button.topic:hover { transform: none; background: transparent; color: inherit; box-shadow: none; }
button.topic:hover .tname { text-decoration: underline; }
.ticket-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.ticket-actions .row { margin: 0; flex: 1; }
.ticket-actions .btn { margin-left: auto; }
.user-row > span { grid-column: 1; color: var(--muted); font-size: 13px; }
.user-row > span.user-marks { grid-column: 2; grid-row: 1 / span 3; align-self: center; flex-direction: column; align-items: flex-end; color: inherit; font-size: inherit; }
.user-row em { grid-column: 1; font-style: normal; font-size: 13px; font-weight: 700; }
.user-row.on { border-color: #111; }
.user-card h2, .user-card h3 { margin: 14px 0 8px; }
.user-card h2 { margin-top: 4px; }
.user-card .user-head h2 { margin: 0 0 4px; }
.user-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.user-meta div { background: #f6f6f6; border-radius: 12px; padding: 10px 12px; min-width: 0; }
.user-meta span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.user-meta b { display: block; margin-top: 2px; }
.user-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.user-actions section { display: grid; gap: 8px; align-content: start; background: #fafafa; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.user-actions h3 { margin: 0; font-size: 15px; }
.user-actions .span2 { grid-column: 1 / -1; }
.user-actions .btn, .user-actions .ghost { width: 100%; justify-content: center; }
.plain { margin: 0; padding-left: 18px; }
.fit-table { overflow: hidden; }
.fit-table table { width: 100%; table-layout: fixed; }
.fit-table th:nth-child(1), .fit-table td:nth-child(1) { width: 46%; }
.fit-table td, .fit-table th { overflow: hidden; }
.fit-table td:last-child { vertical-align: middle; text-align: right; white-space: nowrap; }
.ticket-list, .ticket-list .ticket, .mine-list { min-width: 0; max-width: 100%; }
.staff-ticket { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.staff-ticket .bubbles { max-height: 280px; overflow: auto; }
.ticket.urgent { background: #fff6ea; border-color: #e2b15a; }
.pill.hot { background: #111; color: #fff; }
.promo-grid, .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair > span, .promo-grid > .field { min-width: 0; }
.ref-page { display: grid; gap: 16px; }
.ref-page h2 { margin: 0 0 8px; }
.ref-hero { display: grid; gap: 18px; }
.ref-hero-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.ref-hero-top h2 { margin: 0; }
.ref-hero-top .fine { margin: 0; max-width: 62ch; }
.ref-share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.ref-actions { display: flex; gap: 8px; }
.ref-actions .btn, .ref-actions .ghost, .ref-share > .btn { min-height: 52px; }
.code-field { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.code-field input {
  width: 100%; min-height: 52px; border: 1.6px solid #d5d5d5; border-radius: 14px;
  padding: 0 16px; background: #fff; font-size: 16px; font-weight: 700;
}
#ref-input { text-transform: uppercase; letter-spacing: 0.08em; font-size: 18px; }
.top-list em { font-style: normal; font-weight: 700; }
.code-field.grow { min-width: 0; }
.perk-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.perk-row.slim { grid-template-columns: 1fr 1fr; margin-top: 4px; }
.perk { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.perk-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.perk h3 { margin: 0; font-size: 16px; }
.perk p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.perk-mark { flex: none; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 700; background: #f3f3f3; }
.perk.is-on { border-color: #111; }
.perk.is-on .perk-mark { background: #111; color: #fff; }
.perk.is-done { background: #f3fbf6; border-color: #b7e4c7; }
.perk.is-done .perk-mark { background: #067647; color: #fff; }
.perk.is-wait { background: #fff8ee; border-color: #f0d7a2; }
.perk.is-wait .perk-mark { background: #8a5a00; color: #fff; }
.perk.is-locked { opacity: 0.72; }
.ref-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ref-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.ref-stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.ref-stat b { display: block; margin-top: 4px; font-family: Onest, sans-serif; font-size: 22px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.ref-level { display: grid; gap: 12px; }
.ref-level-head, .guest-bonus { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.guest-bonus { display: grid; gap: 12px; }
.ref-progress { height: 8px; background: #ececec; border-radius: 99px; overflow: hidden; }
.ref-progress i { display: block; height: 100%; background: #111; }
.ref-bind { display: grid; gap: 14px; }
.ref-bind-copy h2 { margin: 0 0 4px; }
.ref-bind-copy .fine { margin: 0; max-width: 62ch; }
.ref-people { display: grid; gap: 8px; }
.ref-person { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; }
.ref-person b, .ref-person span { display: block; }
.ref-person span, .ref-person small { color: var(--muted); font-size: 13px; }
.ref-person-side { display: grid; justify-items: end; gap: 4px; }
.ref-stack { display: grid; gap: 12px; min-width: 0; }
.ref-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ref-board > .panel, .ref-board > .ref-stack { min-width: 0; }
.top-list li.fine { display: block; }
.top-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.top-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.top-list b, .top-list span { display: block; }
.top-list span { color: var(--muted); font-size: 13px; }
.top-n { width: 28px; height: 28px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.pending-list { display: grid; gap: 10px; }
.pending-topup { display: flex; justify-content: space-between; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #fff; }
.pending-main { display: grid; gap: 2px; min-width: 0; }
.pending-main span, .pending-main small, .pending-main p { color: var(--muted); font-size: 13px; margin: 0; }
.pending-side { display: grid; justify-items: end; gap: 8px; }
.pending-side strong { font-size: 18px; }
.invite[hidden], .auth[hidden] { display: none; }
.invite {
  min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1.05fr) minmax(340px, .95fr); grid-template-rows: 1fr auto;
  background:
    radial-gradient(circle at 16% 24%, rgba(0, 180, 234, .34), transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(0, 180, 234, .16), transparent 28%),
    #0e0e0e;
  position: relative; overflow: hidden;
}
.invite-copy, .invite-card { grid-row: 1; }
.invite-sky { position: absolute; inset: 0; pointer-events: none; }
.invite-sky span {
  position: absolute; left: var(--x); top: var(--y);
  color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.04);
  animation: invite-float 5.5s ease-in-out infinite alternate;
  animation-delay: var(--d);
}
.invite-reel { position: relative; grid-row: 2; grid-column: 1 / -1; height: 44px; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); background: #0a0a0a; z-index: 2; }
.invite-reel-track { display: flex; align-items: center; height: 44px; width: max-content; animation: invite-reel 24s linear infinite; }
.invite-reel-set { display: flex; align-items: center; flex: none; min-width: 100vw; }
.invite-reel span { color: rgba(255,255,255,.78); font-size: 13px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; padding: 0 28px; }
.invite-copy { position: relative; color: #fff; padding: 56px 48px 72px; display: flex; flex-direction: column; justify-content: center; gap: 16px; z-index: 1; }
.invite-copy .brand { color: #fff; }
.invite-kicker { color: #00b4ea; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.invite-copy h1 { font-family: Unbounded, Onest, sans-serif; font-size: 42px; line-height: 1.02; letter-spacing: -0.04em; max-width: 12ch; margin: 0; animation: invite-rise .7s ease both; }
.invite-copy > p { max-width: 36ch; color: rgba(255,255,255,.74); animation: invite-rise .7s .08s ease both; }
.invite-code { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 14px; width: fit-content; background: rgba(255,255,255,.06); animation: invite-rise .7s .16s ease both; }
.invite-code b { letter-spacing: 0.14em; }
.invite-perks { display: grid; gap: 10px; margin-top: 8px; }
.invite-perks article { border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 14px 16px; background: rgba(255,255,255,.04); backdrop-filter: blur(8px); animation: invite-rise .6s ease both; }
.invite-perks article:nth-child(1) { animation-delay: .22s; }
.invite-perks article:nth-child(2) { animation-delay: .32s; }
.invite-perks article:nth-child(3) { animation-delay: .42s; }
.invite-perks b { display: block; margin-bottom: 4px; }
.invite-perks span { color: rgba(255,255,255,.72); font-size: 14px; }
.invite-card { position: relative; z-index: 1; margin: auto; width: min(440px, calc(100% - 48px)); background: #fff; border-radius: 28px; padding: 28px; display: grid; gap: 4px; box-shadow: 0 24px 70px rgba(0,0,0,.35); animation: invite-rise .75s .1s ease both; }
.invite-card h2 { margin: 8px 0 4px; }
.invite-card .btn { margin-top: 12px; width: 100%; }
.invite-switch { margin-top: 8px; background: none; border: 0; color: var(--muted); font-weight: 700; text-align: left; padding: 0; cursor: pointer; }
@keyframes invite-float { from { transform: translateY(0); } to { transform: translateY(-14px); } }
@keyframes invite-reel { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes invite-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .invite-sky span, .invite-reel-track, .invite-copy h1, .invite-copy > p, .invite-code, .invite-perks article, .invite-card { animation: none; }
}
@media (max-width: 900px) {
  .ref-hero, .ref-bind, .perk-row, .perk-row.slim, .ref-stats, .ref-board, .invite { grid-template-columns: 1fr; }
  .ref-hero-top, .ref-share { grid-template-columns: 1fr; }
  .pending-topup, .ref-person, .ref-level-head { flex-direction: column; align-items: stretch; }
  .ref-person-side, .pending-side { justify-items: start; }
  .invite-copy { padding: 28px 20px; }
  .invite-copy h1 { font-size: 32px; }
}
.promo-create { display: grid; gap: 12px; margin-top: 16px; }
.promo-create .btn { justify-self: start; }
.promo-code { font-family: Unbounded, Onest, sans-serif; letter-spacing: 0.04em; }
.type-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.type-card { display: grid; gap: 4px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 76px; }
.type-card b { font-size: 15px; }
.type-card span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.type-card.on, .type-card:hover { border-color: #111; }
.type-card:hover { transform: none; }
.promo-preview { margin-top: 12px; background: #f6f6f6; border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.promo-preview p { margin: 0; }
.land-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.land-nav { display: grid; gap: 6px; position: sticky; top: 12px; }
.land-nav .ghost { justify-content: flex-start; text-align: left; }
.land-fields { display: grid; gap: 10px; }
.land-field { display: grid; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.land-field b { font-size: 14px; }
.land-field small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.land-field textarea, .plan-edit textarea, .plan-edit input { width: 100%; }
.land-main { display: grid; gap: 12px; }
.plan-edit { display: grid; gap: 8px; align-content: start; }
.plan-edit h2 { margin-bottom: 4px; }
@media (max-width: 900px) {
  .land-layout, .promo-grid, .pair, .type-pick { grid-template-columns: 1fr; }
  .land-nav { position: static; }
}
.btn:hover { background: #111; color: #fff; }
.ghost:hover { background: transparent; color: inherit; }
.ghost.on, .ghost.on:hover { background: #111; color: #fff; }
.top-tools { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: nowrap; }
.top-tools .ghost { min-height: 42px; height: 42px; }
.icon-btn { position: relative; width: 42px; min-width: 42px; height: 42px; padding: 0; display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .dot { position: absolute; top: -6px; right: -6px; }
.chip { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; }
.chip.on, .chip.on:hover { background: #111; color: #fff; border-color: #111; }
.plat-card .btn, .plat-card .ghost, .post-card .btn, .post-card .ghost { justify-self: start; }
.plat-card p { margin: 0; }
.status-row { margin-top: 0; }
.week-grid { margin-bottom: 4px; }
.journal-lead { max-width: 760px; margin: 0 0 14px; }
.plat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 8px; }
.plat-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.plat-status b { font-size: 14px; font-weight: 650; }
.plat-status span { flex: none; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 8px; white-space: nowrap; }
.plat-status .ok { background: #e7f8ee; color: #067647; }
.plat-status .wait { background: #f3f3f3; color: #666; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.stat-row.metrics { margin-top: 12px; }
.stat-row.inner { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; }
.stat-row article { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat-row span { color: var(--muted); font-size: 13px; font-weight: 650; }
.stat-row b { display: block; margin-top: 8px; font-family: Onest, sans-serif; font-size: 28px; font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.stat-row em { display: block; margin-top: 4px; font-style: normal; color: var(--muted); font-size: 12px; }
.journal { display: grid; gap: 12px; margin-top: 12px; }
.journal-card { padding: 18px 18px 16px; }
.journal-card h2 { margin: 0 0 4px; font-family: Unbounded, Onest, sans-serif; font-size: 18px; letter-spacing: -0.03em; }
.journal-card .fine { margin: 0 0 10px; max-width: 720px; }
.empty-line { margin: 0; color: var(--muted); }
.empty-panel {
  margin-top: 12px; background: #fff; border: 1.5px dashed #d4d4d4; border-radius: 16px;
  padding: 20px 18px; color: var(--muted); line-height: 1.45;
}
.sheet-wrap { overflow-x: auto; margin: 6px 0 8px; }
.sheet { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { padding: 12px 20px 12px 0; text-align: left; vertical-align: middle; }
.sheet th { font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet td { border-bottom: 1px solid #f1f1f1; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet th.act, .sheet td:has(.mini-btn) { width: 1%; text-align: right; white-space: nowrap; padding-right: 0; }
.sheet .grow { white-space: normal; }
.sheet .who { display: grid; gap: 2px; min-width: 160px; }
.sheet .who b { font-weight: 650; }
.sheet .who span, .who span { color: var(--muted); font-size: 12px; }
.mini-btn { min-height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid #ddd; background: #fff; font-size: 13px; font-weight: 650; }
.mini-btn:hover { border-color: #111; }
.user-meta b { overflow-wrap: anywhere; }
.plat-grid, .post-grid, .week-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.post-list { display: grid; gap: 10px; }
.plat-card, .post-card, .project-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.plat-card p, .empty-hero p { color: var(--muted); line-height: 1.45; }
.empty-hero { display: grid; gap: 10px; margin: 12px 0; }
.quota { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.quota article { background: #fff; border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; }
.quota span, .kpi em { color: var(--muted); font-size: 13px; font-style: normal; }
.quota b { font-family: Onest, sans-serif; font-size: 22px; }
.status-row, .tool-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.tool-row input { flex: 1; min-width: 180px; min-height: 42px; border: 1.6px solid #d5d5d5; border-radius: 10px; padding: 0 12px; }
.week-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.week-day { display: grid; gap: 6px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 92px; }
.week-day.on { background: #111; color: #fff; }
.week-day span { color: var(--muted); font-size: 13px; }
.week-day.on span { color: rgba(255,255,255,.72); }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d0d0d0; }
.pick-color.on { box-shadow: 0 0 0 2px #111; }
.cmd-list { display: grid; gap: 6px; margin-top: 12px; max-height: 360px; overflow: auto; }
.cmd-list button { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; min-height: 42px; padding: 0 12px; }
.cmd-list button:hover { border-color: #111; }
.pill.bad { background: #fff1f0; color: #9f1239; }
@media (max-width: 900px) {
  .plat-grid, .post-grid, .quota, .stat-row { grid-template-columns: 1fr 1fr; }
  .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-tools { flex-wrap: wrap; justify-content: flex-end; }
  .side { overflow: auto; }
  .slot-form, .project-create, .promo-line, .media-head { grid-template-columns: 1fr; }
  .slot-form .btn, .project-create .btn { width: 100%; }
  .analytics-split { grid-template-columns: 1fr; }
}

/* Studio panels */
.media-panel { display: grid; gap: 14px; }
.media-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.media-head h2 { font-family: Unbounded, Onest, sans-serif; font-size: 20px; letter-spacing: -0.03em; margin: 0 0 4px; }
.media-head .fine { margin: 0; max-width: 560px; }
.dropzone {
  position: relative; display: grid; gap: 6px; justify-items: center; text-align: center;
  border: 1.6px dashed #cfcfcf; border-radius: 16px; background: linear-gradient(180deg, #fafafa, #f3f3f3);
  padding: 28px 18px; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.dropzone:hover, .dropzone.over { border-color: #111; background: #fff; transform: translateY(-1px); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone b { font-size: 15px; }
.dropzone span { color: var(--muted); font-size: 13px; }
.dropzone em { font-style: normal; margin-top: 6px; font-size: 12px; font-weight: 700; color: #111; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.idea-panel { display: grid; gap: 12px; }
.idea-copy h2, .slot-copy h2, .project-form h2, .analytics-note h2 { font-family: Unbounded, Onest, sans-serif; font-size: 20px; letter-spacing: -0.03em; margin: 0 0 4px; }
.idea-copy .fine, .slot-copy .fine, .project-form .fine, .analytics-note .fine { margin: 0; max-width: 640px; }
.idea-panel .field { margin-top: 0; }
.idea-panel textarea { min-height: 120px; }
.idea-actions { display: flex; gap: 8px; }
.project-form { display: grid; gap: 12px; }
.project-form .field { margin-top: 0; max-width: 420px; }
.project-create { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.color-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.project-top { display: flex; align-items: center; gap: 10px; }
.project-top h2 { margin: 0; font-size: 18px; flex: 1; min-width: 0; }
.project-top .swatch { width: 14px; height: 14px; flex: none; }
.project-card .picks { margin-top: 4px; }
.slot-panel { display: grid; gap: 12px; margin-bottom: 12px; }
.slot-form { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)) auto; gap: 10px; align-items: end; }
.slot-form .field { margin-top: 0; }
.slot-form .btn { min-height: 44px; white-space: nowrap; }
.slot-list { margin-top: 2px; }
.cal-tools { display: grid; gap: 8px; margin-bottom: 12px; }
.cal-tools .status-row { margin: 0; }
.cal-screen { margin-top: 0; }
.agenda-block { margin-top: 4px; }
.agenda-empty, .agenda-block .empty-dest { margin-top: 8px; }
.analytics-note { margin-top: 4px; }
.analytics-split { margin-top: 12px; align-items: start; }
.analytics-split .panel h2 { font-size: 18px; }
.promo-box { margin-top: 14px; display: grid; gap: 12px; }
.promo-box h2 { margin: 0 0 4px; font-family: Unbounded, Onest, sans-serif; font-size: 20px; letter-spacing: -0.03em; }
.promo-box > div:first-child .fine { margin: 0; max-width: 520px; }
.promo-line { display: flex; gap: 10px; align-items: stretch; max-width: 460px; }
.promo-line input {
  flex: 1; min-width: 0; min-height: 48px; border: 1.6px solid #d5d5d5; border-radius: 12px;
  padding: 0 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #fafafa;
}
.promo-line input:focus { outline: none; border-color: #111; background: #fff; }
.promo-line .btn { min-height: 48px; padding: 0 18px; flex: none; }
#promo-preview:empty { display: none; }
#promo-preview:not(:empty) { margin-top: 0; }
.media-panel + .post-grid, .idea-panel + .post-list, .project-form + .post-list { margin-top: 12px; }
.media-panel + .empty-panel, .idea-panel + .empty-panel, .project-form + .empty-panel { margin-top: 12px; }
@media (max-width: 720px) {
  .slot-form { grid-template-columns: 1fr; }
  .media-head { flex-direction: column; align-items: stretch; }
  .promo-line { max-width: none; flex-direction: column; }
}


/* Brand mark (same tile as the site favicon) */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; flex: none; display: block; }
.side .brand-mark { width: 28px; height: 28px; }
