:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #2b1d14;
  --muted: #7a6a5f;
  --line: #f1e4d8;
  --soft: #fff5ec;
  --brand: #ea580c;          /* Nini orange: fills, buttons */
  --brand-strong: #c2410c;   /* orange text and links (readable on white) */
  --brand-ink: #ffffff;
  --brand-soft: #ffedde;
  --brand-glow: #ff8a3d;
  --mark: #f43f5e;
  --del-bg: #ffe4e6;
  --del-ink: #9f1239;
  --ins-bg: #dcfce7;
  --ins-ink: #166534;
  --warn-bg: #fff4d6;
  --warn-ink: #7a5300;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(120, 60, 20, .05), 0 8px 24px rgba(120, 60, 20, .08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 500 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--brand-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 800; }
h1 { font-size: 2rem; letter-spacing: -.025em; }
h2 { font-size: 1.15rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: color-mix(in srgb, #fff 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 56px; width: auto; display: block; margin: -10px 0 -10px -6px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover img { transform: rotate(-3deg) scale(1.04); }
.crumb { color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--ink); }
.spacer { flex: 1; }
.bell { position: relative; }
.bell b { position: absolute; top: -4px; right: -4px; background: var(--mark); color: #fff; border-radius: 99px; font-size: 11px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.menu { position: absolute; right: 16px; top: 54px; width: min(380px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; z-index: 30; }
.menu .n { padding: 10px 12px; border-radius: 14px; display: block; text-decoration: none; color: var(--ink); font-size: .9rem; }
.menu .n:hover { background: var(--soft); }
.menu .n.unread { font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 10px 20px; border-radius: 99px; cursor: pointer; font-weight: 750; text-decoration: none; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s, border-color .12s; }
.btn:active { transform: translateY(1px); }
.btn:hover { border-color: var(--brand-glow); background: var(--soft); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 3px 0 #b8430a, 0 6px 16px rgba(234, 88, 12, .25); }
.btn.primary:hover { background: #f26419; border-color: #f26419; transform: translateY(-1px); }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #b8430a; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { color: var(--del-ink); }
.btn.danger:hover { border-color: var(--del-ink); background: var(--del-bg); }
.btn.small { padding: 7px 14px; font-size: .88rem; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { border: 0; background: transparent; cursor: pointer; padding: 8px; border-radius: 99px; display: grid; place-items: center; color: var(--ink); }
.icon-btn:hover { background: var(--soft); color: var(--brand-strong); }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* layout */
.page { max-width: 1080px; margin: 0 auto; padding: 32px 20px 80px; }
.hello-nini { display: flex; align-items: center; gap: 14px; }
.hello-nini img { width: 84px; height: 84px; flex: none; margin: -8px 0; }
.hello { margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 36px; }
.action { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; cursor: pointer; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), border-color .12s, box-shadow .12s; }
.action:hover { transform: translateY(-4px); border-color: var(--brand-glow); box-shadow: 0 14px 30px rgba(234, 88, 12, .14); }
.action .ico { width: 52px; height: 52px; border-radius: 18px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; transition: transform .2s; }
.action:hover .ico { transform: rotate(-6deg) scale(1.06); }
.action:nth-child(2) .ico { background: #ffe9f0; color: #be185d; }
.action:nth-child(3) .ico { background: #e8f1ff; color: #1d4ed8; }
.action strong { font-size: 1.05rem; }
.section { margin-top: 28px; }
.section > h2 { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.count { background: var(--mark); color: #fff; border-radius: 99px; font-size: .75rem; padding: 2px 8px; }
.list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row:first-child { border-top: 0; }
a.row:hover { background: var(--soft); }
.row .t { flex: 1; min-width: 0; }
.row .t strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.empty { padding: 18px 16px; color: var(--muted); }
.empty.nini { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.empty.nini img { width: 64px; height: 64px; flex: none; }
.pill { font-size: .75rem; font-weight: 750; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.pending { background: var(--warn-bg); color: var(--warn-ink); }
.pill.published, .pill.done { background: var(--ins-bg); color: var(--ins-ink); }
.pill.changes_requested { background: var(--del-bg); color: var(--del-ink); }
.pill.agency { background: var(--brand-soft); color: var(--brand-strong); }

/* workspace */
.work { display: grid; grid-template-columns: minmax(340px, 5fr) 7fr; height: calc(100dvh - 57px); }
.chat { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; background: var(--panel); }
.chat-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 92%; padding: 11px 15px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 4px; }
.msg img { display: block; max-width: 180px; border-radius: 8px; margin-bottom: 6px; }
.msg .made { display: block; margin-bottom: 8px; }
.msg .made img, .msg video.made { max-width: min(100%, 420px); width: 100%; border-radius: 12px; margin: 0; background: var(--line); }
.msg .made-dl { display: inline-block; margin: -2px 0 8px; font-size: .85rem; font-weight: 650; color: var(--brand-strong); }
.msg .who { font-size: .75rem; opacity: .75; margin-bottom: 2px; }
.thinking { align-self: flex-start; color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.thinking img { width: 46px; height: 46px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg) } 50% { transform: translateY(-4px) rotate(2deg) } }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2 } 40% { opacity: 1 } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 7px 13px; cursor: pointer; font-size: .9rem; }
.chip { font-weight: 650; transition: transform .12s, border-color .12s, background .12s; }
.chip:hover { border-color: var(--brand-glow); color: var(--brand-strong); background: var(--soft); transform: translateY(-1px); }
.composer { border-top: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.composer .box { display: flex; gap: 8px; align-items: flex-end; border: 2px solid var(--line); border-radius: 22px; padding: 6px; background: var(--soft); transition: border-color .12s, box-shadow .12s; }
.composer .box:focus-within { border-color: var(--brand-glow); box-shadow: 0 0 0 4px var(--brand-soft); background: #fff; }
.composer .box .btn { padding: 10px 13px; }
.composer textarea { flex: 1; border: 0; background: transparent; resize: none; padding: 8px; outline: none; max-height: 180px; min-height: 42px; }
.attach { display: flex; gap: 8px; flex-wrap: wrap; }
.attach span { position: relative; }
.attach img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: block; }
.attach button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; font-size: 12px; line-height: 1; }

.side { display: flex; flex-direction: column; min-height: 0; }
.side-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.ready i { background: #2fb36e; } .status.building i { background: #e8a317; animation: blink 1s infinite; } .status.failed i { background: var(--mark); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head .t { flex: 1; min-width: 0; }
.card-head .where { font-size: .8rem; color: var(--muted); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba > div { border-radius: 14px; padding: 10px 12px; font-size: .92rem; overflow-wrap: anywhere; }
.ba .b { background: var(--soft); }
.ba .a { background: var(--brand-soft); }
.ba label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.ba img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; }
.ba ul { margin: 0; padding-left: 18px; }
del { background: var(--del-bg); color: var(--del-ink); text-decoration: line-through; text-decoration-thickness: 1px; border-radius: 3px; }
del + ins, ins + del { margin-left: 3px; }
ins { background: var(--ins-bg); color: var(--ins-ink); text-decoration: none; border-radius: 3px; }
.card-foot { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.bar { border-top: 1px solid var(--line); padding: 12px 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--panel); }
.banner { border-radius: 16px; padding: 14px 16px; background: var(--warn-bg); color: var(--warn-ink); }
.banner.info { background: var(--brand-soft); color: var(--ink); }
.banner.bad { background: var(--del-bg); color: var(--del-ink); }
.hero-empty { text-align: center; padding: 40px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-empty .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; }
.hero-empty img.nini { width: 150px; height: 150px; margin-bottom: 4px; animation: bob 3s ease-in-out infinite; }

/* compare */
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; }
.ov-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; background: var(--soft); }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 99px; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--muted); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.frames { flex: 1; display: grid; gap: 12px; padding: 12px; min-height: 0; }
.frames.two { grid-template-columns: 1fr 1fr; }
.frame { display: flex; flex-direction: column; min-height: 0; gap: 6px; align-items: center; }
.frame > label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); align-self: stretch; display: flex; gap: 8px; align-items: center; }
.frame > label i { width: 10px; height: 10px; border-radius: 3px; }
.frame iframe { flex: 1; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.frame.mobile iframe { width: 390px; max-width: 100%; }
.frame .none { flex: 1; width: 100%; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); padding: 20px; text-align: center; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 600; font-size: .9rem; display: flex; justify-content: space-between; gap: 8px; }
.field > span em { font-style: normal; font-weight: 500; color: var(--muted); }
.field > span em.bad { color: var(--del-ink); }
.input, .field input, .field textarea, .field select { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 11px 14px; background: #fff; transition: border-color .12s, box-shadow .12s; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { outline: none; border-color: var(--brand-glow); box-shadow: 0 0 0 4px var(--brand-soft); }
.hint { font-size: .82rem; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.narrow { max-width: 720px; margin: 0 auto; }

/* post editor */
.post-grid { display: grid; grid-template-columns: 7fr 4fr; gap: 20px; align-items: start; }
.post-grid > .stack:last-child { position: sticky; top: 76px; }
.blocks { display: flex; flex-direction: column; gap: 6px; }
.blk { position: relative; border: 1px solid transparent; border-radius: 10px; padding: 4px 8px 4px 34px; }
.blk:hover, .blk:focus-within { border-color: var(--line); background: var(--panel); }
.blk .k { position: absolute; left: 6px; top: 8px; font-size: .65rem; font-weight: 700; color: var(--muted); width: 24px; text-align: center; }
.blk [contenteditable] { outline: none; min-height: 1.5em; padding: 4px 0; }
.blk.h2 [contenteditable] { font-size: 1.3rem; font-weight: 700; }
.blk.h3 [contenteditable] { font-size: 1.1rem; font-weight: 700; }
.blk.quote [contenteditable] { border-left: 3px solid var(--brand); padding-left: 12px; font-style: italic; }
.blk ul, .blk ol { margin: 0; padding-left: 20px; }
.blk .tools { position: absolute; right: 6px; top: 4px; display: none; gap: 2px; }
.blk:hover .tools, .blk:focus-within .tools { display: flex; }
.blk .tools button { border: 0; background: var(--soft); border-radius: 6px; cursor: pointer; padding: 2px 7px; font-size: .8rem; }
.add-blocks { display: flex; gap: 6px; flex-wrap: wrap; padding-left: 34px; }
.post-title { font-size: 1.9rem; font-weight: 750; line-height: 1.15; outline: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.post-title:focus { border-bottom-color: var(--brand); }
.cover { border: 1px dashed var(--line); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; min-height: 160px; background: var(--soft); position: relative; }
.cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.cover .btns { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 6px; }
.serp { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; color: #202124; font-family: arial, sans-serif; }
.serp .u { font-size: 12px; color: #4d5156; }
.serp .t { font-size: 19px; color: #1a0dab; line-height: 1.3; margin: 4px 0; }
.serp .d { font-size: 14px; color: #4d5156; line-height: 1.55; }
.score { display: flex; align-items: center; gap: 14px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--c, var(--brand)) calc(var(--p) * 1%), var(--soft) 0); display: grid; place-items: center; flex: none; }
.ring b { width: 50px; height: 50px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-size: 1.05rem; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--ins-bg); color: var(--ins-ink); margin-top: 2px; }
.checks li.no::before { content: "!"; background: var(--warn-bg); color: var(--warn-ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 50vh; overflow: auto; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.gallery img:hover { border-color: var(--brand); }
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); padding: 20px; width: min(640px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(43, 29, 20, .4); backdrop-filter: blur(2px); }

/* admin */
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-top: 0; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle input { width: 40px; height: 22px; appearance: none; background: var(--line); border-radius: 99px; position: relative; cursor: pointer; transition: background .15s; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle input:checked { background: var(--brand); }
.toggle input:checked::after { left: 21px; }
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 48px 32px;
  background: radial-gradient(circle at 50% 58%, #ffd9b8 0, #ffeede 38%, #fff7f0 70%); }
.auth-art::before, .auth-art::after { content: ""; position: absolute; border-radius: 50%; background: #ffe2c8; }
.auth-art::before { width: 180px; height: 180px; top: -60px; left: -50px; }
.auth-art::after { width: 120px; height: 120px; bottom: 40px; right: -30px; background: #ffd7e2; }
.auth-art img { position: relative; z-index: 1; width: min(380px, 80%); height: auto; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(180, 70, 10, .18)); }
.bubble { position: relative; z-index: 1; background: #fff; border-radius: 22px; padding: 14px 20px; max-width: 340px; font-weight: 750; font-size: 1.05rem; text-align: center;
  box-shadow: 0 10px 30px rgba(180, 70, 10, .12); animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both .15s; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 20px; height: 20px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 4px; }
.bubble small { display: block; font-weight: 600; color: var(--muted); font-size: .85rem; margin-top: 2px; }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(8px) } }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login { width: 100%; max-width: 420px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 99px; font-weight: 650; z-index: 99; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.tabs { display: none; }
.preview-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.preview-line .hint { flex: 1 1 260px; }
/* the side panel: proposed changes or the staging site, one at a time */
.side-tabs { width: 100%; }
.side-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; font-size: .9rem; }
.side-tabs .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .75rem; display: inline-grid; place-items: center; }
.pane[hidden] { display: none; }
.pane-staging { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pane-staging .staging { flex: 1; min-height: 0; }
.pane-staging .stage { flex: 1; height: auto; min-height: 360px; }
/* the staging site, live in the side panel */
.staging { display: flex; flex-direction: column; gap: 10px; }
.staging:empty { display: none; }
.staging-top { display: flex; flex-direction: column; gap: 10px; }
.staging-head { display: flex; align-items: center; gap: 10px; }
.staging-head h3 { margin: 0; font-size: 1rem; }
.seg.mini button { padding: 4px 10px; font-size: .78rem; }
.chip.on { border-color: var(--brand); color: var(--brand-strong); background: var(--soft); }
.progress { height: 8px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.progress > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-glow)); transition: width 5s linear; }
.progress-line { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: .85rem; font-weight: 650; }
.progress-line .hint { font-weight: 400; }
.stage { position: relative; height: min(62vh, 560px); min-height: 320px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; transition: opacity .2s; }
.stage iframe { border: 0; display: block; width: 100%; height: 100%; background: #fff; }
.stage.mobile { background: var(--soft); display: flex; justify-content: center; }
.stage.mobile iframe { width: 390px; max-width: 100%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.stage.dim iframe { opacity: .55; }
.stage .none { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); padding: 20px; text-align: center; background: var(--panel); }
.stage .none img { width: 96px; height: 96px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.plan { gap: 10px; }
.plan.current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }

@media (max-width: 860px) {
  .hide-sm { display: none; }
  .work { grid-template-columns: 1fr; height: auto; }
  .work > * { min-height: calc(100dvh - 110px); }
  .work.show-side .chat, .work:not(.show-side) .side { display: none; }
  .tabs { display: flex; position: sticky; top: 57px; z-index: 15; background: var(--bg); padding: 8px 16px; border-bottom: 1px solid var(--line); }
  .tabs .seg { width: 100%; } .tabs .seg button { flex: 1; }
  .post-grid { grid-template-columns: 1fr; }
  .post-grid > .stack:last-child { position: static; }
  .frames.two { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .ba { grid-template-columns: 1fr; }
  .page { padding: 20px 16px 60px; }
  .top { padding: 10px 16px; gap: 8px; }
  .top .crumb, .top .crumb + *, .top > .muted { display: none; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { padding: 28px 20px 12px; }
  .auth-art img { width: 150px; }
  .bubble { font-size: .95rem; padding: 10px 16px; }
  .auth-main { padding: 20px 16px 48px; align-items: flex-start; }
  .hello-nini img { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* the import scan, in a site's settings */
.scan h3 { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin: 6px 0 0; }
.scan h3 .status i { width: 10px; height: 10px; }
.areas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.areas li { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.areas.ok li { border-left: 3px solid #2fb36e; }
.areas.shared li { border-left: 3px solid #e8a317; }
.areas.locked li { border-left: 3px solid var(--muted); }
.areas code, .checks code { font-size: .78rem; color: var(--muted); word-break: break-word; }
.areas li > span { font-size: .9rem; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.checks li { display: flex; gap: 8px; }
.checks li.ok > span:first-child { color: #2fb36e; font-weight: 700; }
.checks li.bad > span:first-child { color: var(--mark); font-weight: 700; }
.scan-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }

/* a full edit: the file's diff */
.patch { margin: 0; max-height: 360px; overflow: auto; font: .78rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 0; }
.patch span { display: block; padding: 0 12px; white-space: pre; }
.patch .add { background: #e6f6ec; color: #11633a; }
.patch .del { background: #fdecec; color: #9b1c1c; }
.patch .at { color: var(--muted); }
