:root {
  --ink: #1d1d1b;
  --ink-2: #4b4b47;
  --ink-3: #6b6b66;
  --line: #e2ddd3;
  --line-2: #d3cdc1;
  --sand: #f6f4ef;
  --sand-2: #ece9e2;
  --green: #004123;
  --green-2: #3b6e52;
  --green-soft: #e8efe1;
  --green-line: #c4d3b5;
  --bad: #b3261e;
  --bad-soft: #fdf1ef;
  --bad-line: #efc2bd;
  --warn: #8a5a00;
  --warn-soft: #fff6e8;
  --warn-line: #f0d7a8;
  --amber: #d39b2a;
  --good: #1f6b3a;
  --info: #1f4f82;
  --info-soft: #e3edf8;
  --radius: 8px;
  --radius-s: 6px;
  --shadow: 0 1px 2px rgba(29, 29, 27, .06), 0 2px 8px rgba(29, 29, 27, .04);
  --shadow-2: 0 4px 14px rgba(29, 29, 27, .10), 0 1px 3px rgba(29, 29, 27, .06);
  --ring: 0 0 0 3px rgba(59, 110, 82, .22);
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Montserrat", "Open Sans", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --dev: #1f4e9c;
  --dev-soft: #e9effa;
  --dev-line: #b9c9e6;
  --prod: #a04a00;
  --prod-soft: #fdf0e4;
  --prod-line: #ecc59f;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-underline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: 13px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-family: var(--head); font-weight: 600; }
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.strong { font-weight: 600; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.help { display: block; margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); font-weight: 400; }
.err { color: var(--bad); font-size: 13px; font-weight: 600; }
.err:empty { display: none; }
.req { color: var(--bad); font-style: normal; font-weight: 700; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.tight { gap: 4px; }
.grow { flex: 1; min-width: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
ul.plain { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
:where(button, a, summary, [tabindex]):focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink); font: 600 13px/1.3 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--ink-3); background: #fbfaf7; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: #00321b; border-color: #00321b; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--sand-2); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-soft); }
.btn.small { min-height: 32px; padding: 4px 11px; font-size: 13px; }
.btn.icon { padding: 4px 8px; min-width: 32px; font-size: 14px; }
.btn[aria-pressed="true"] { background: var(--sand-2); border-color: var(--line-2); color: var(--ink); box-shadow: inset 0 1px 3px rgba(29, 29, 27, .12); }
.btn[aria-pressed="true"]:hover { background: #e4e0d8; border-color: var(--ink-3); }
.btn.btn-dev { color: var(--dev); border-color: var(--dev-line); background: var(--dev-soft); }
.btn.btn-dev:hover { border-color: var(--dev); background: #dde6f6; }
.btn.btn-prod { color: var(--prod); border-color: var(--prod-line); background: var(--prod-soft); }
.btn.btn-prod:hover { border-color: var(--prod); background: #fbe5cf; }
.btn.btn-dev.solid { background: var(--dev); border-color: var(--dev); color: #fff; }
.btn.btn-dev.solid:hover { background: #183f80; }
.btn.btn-prod.solid { background: var(--prod); border-color: var(--prod); color: #fff; }
.btn.btn-prod.solid:hover { background: #823c00; }
.btn.add { border-style: dashed; color: var(--green); background: #fff; justify-content: flex-start; }
.btn.add::before { content: "+"; font-size: 16px; line-height: 1; font-weight: 600; }
.btn.add:hover { border-color: var(--green-2); background: var(--green-soft); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger.solid:hover { background: #961f18; border-color: #961f18; }
.btn:disabled, .btn:disabled:hover, .btn.primary:disabled, .btn.btn-dev:disabled, .btn.btn-prod:disabled, .btn.btn-dev.solid:disabled, .btn.btn-prod.solid:disabled, .btn.danger.solid:disabled, .btn.add:disabled, .btn.ghost:disabled, .btn[aria-pressed="true"]:disabled { opacity: 1; color: var(--ink-3); background: var(--sand-2); border-color: var(--line-2); box-shadow: none; cursor: not-allowed; transform: none; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }

input, textarea, select { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); font: 14px/1.45 var(--font); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #767670; opacity: 1; }
textarea { resize: vertical; min-height: 72px; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234b4b47' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input:hover, textarea:hover, select:hover { border-color: #bdb6a9; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--green-2); box-shadow: var(--ring); }
input.mono, textarea.mono { font-family: var(--mono); font-size: 13px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--green); flex: none; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

.bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 9px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: grid; gap: 1px; flex: none; border: 0; background: none; padding: 2px 6px; margin-left: -6px; border-radius: var(--radius-s); text-align: left; color: inherit; font: inherit; cursor: pointer; }
.brand:hover { background: var(--sand); }
body:not(.editing) .brand { cursor: default; }
body:not(.editing) .brand:hover { background: none; }
.brand .eyebrow { font-size: 12px; color: var(--green-2); }
.brand b { font: 600 15px/1.2 var(--head); white-space: nowrap; }
.brand a { color: inherit; text-decoration: none; }
.bar-status { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.bar-status.dirty { color: var(--warn); }
.bar-status.live { color: var(--good); font-weight: 600; }
.save-ind.dirty { background: var(--warn-soft); color: var(--warn); }
.save-ind { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--sand); font-weight: 600; white-space: nowrap; }
.save-ind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.save-ind.dirty::before { background: var(--amber); }
.save-ind.saving { background: var(--sand); color: var(--ink-2); }
.save-ind.saving::before { display: none; }
.save-ind small { font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.bar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.who { font-size: 13px; color: var(--ink-2); margin-right: 4px; white-space: nowrap; }
body:not(.editing) .ed-only { display: none; }
body.editing .home-only { display: none; }
body.editing { overflow: hidden; }
.notice-slot:empty { display: none; }
.notice-slot { padding: 12px 20px 0; }
.editing .notice-slot { position: fixed; top: calc(var(--bar-h, 58px) + 10px); left: 50%; transform: translateX(-50%); width: min(760px, calc(100vw - 32px)); padding: 0; z-index: 45; }
.notice { position: relative; margin: 0; padding: 10px 40px 10px 14px; border-radius: var(--radius); background: var(--warn-soft); border: 1px solid var(--warn-line); border-left-width: 4px; border-left-color: var(--amber); box-shadow: var(--shadow-2); font-size: 13.5px; line-height: 1.5; }
.notice.bad { background: var(--bad-soft); border-color: var(--bad-line); border-left-color: var(--bad); }
.notice.good { background: var(--green-soft); border-color: var(--green-line); border-left-color: var(--good); }
.notice.info { background: var(--info-soft); border-color: #c5d6ea; border-left-color: var(--info); }
.notice .x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; border-radius: var(--radius-s); background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.notice .x:hover { background: rgba(29, 29, 27, .06); color: var(--ink); }

.st { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 20px; white-space: nowrap; background: var(--sand-2); color: var(--ink-2); }
.st small { font-size: 13px; font-weight: 600; opacity: .85; }
.st[tabindex]:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.st-progress { background: #fff1d9; color: var(--warn); }
.st-sent { background: var(--info-soft); color: var(--info); }
.st-published { background: var(--green-soft); color: var(--good); }
.st-offline { background: #fde3df; color: var(--bad); }
.st-on { background: var(--sand-2); color: var(--ink); }
.st-off { background: #fff; color: var(--ink-3); border: 1px dashed var(--line-2); }

.home { max-width: 1320px; margin: 0 auto; padding: 28px 32px 80px; }
.dash-head { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.dash-head h1 { font-size: 28px; margin-top: 2px; }
.dash-head input { width: 300px; max-width: 100%; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 4px 13px; font: 600 13.5px var(--font); color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--ink-3); }
.chip small { font-size: 12px; opacity: .8; }
.chip.zero:disabled { color: var(--ink-3); background: var(--sand); border-color: var(--line); cursor: default; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] small { opacity: .8; }
.cat { margin-top: 30px; }
.cat-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.cat-h b { font: 600 16px var(--head); }
.cat-h code { color: var(--ink-3); font-size: 13px; }
.cat-h .muted { margin-left: auto; font-size: 13px; }
.rows { display: grid; gap: 8px; }
.rows-h, .arow { display: grid; grid-template-columns: minmax(0, 2.2fr) 150px 120px 120px minmax(150px, 1fr) 130px; gap: 14px; align-items: center; }
.rows-h { padding: 0 14px 0 10px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); }
.arow { width: 100%; padding: 10px 14px 10px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; text-align: left; font: inherit; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.arow .pg { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; }
.arow .cell { display: grid; gap: 5px; min-width: 0; font-size: 13.5px; }
.arow .cell small { display: block; color: var(--ink-3); }
.arow .c-env .pill { max-width: 100%; white-space: normal; border-radius: 12px; line-height: 1.3; padding: 3px 9px; }
.arow:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.arow:focus-visible { outline: 2px solid var(--green-2); outline-offset: 1px; }
.arow .th { width: 88px; height: 62px; border-radius: var(--radius-s); object-fit: cover; background: var(--sand-2); display: block; }
span.th { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%238a8a84' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 15l-5-5-8 8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.arow .t { display: grid; gap: 4px; min-width: 0; }
.arow .t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15.5px; line-height: 1.3; font-weight: 600; overflow: hidden; }
.arow .t code { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog { display: block; width: 110px; height: 5px; background: var(--sand-2); border-radius: 3px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--amber); border-radius: 3px; transition: width .3s; }
.prog.full i { background: var(--good); }
.arow .meta { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.todo-tag { display: inline-block; font-weight: 600; color: var(--ink); }
.todo-tag.warn { color: var(--warn); }
.todo-tag.good { color: var(--good); }
.todo-tag.bad { color: var(--bad); }
.arow.page { border-color: var(--green-line); background: linear-gradient(90deg, var(--green-soft), #fff 40%); }
.arow .kind { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green-2); }
.empty { padding: 40px 24px; text-align: center; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); display: grid; gap: 8px; justify-items: center; }
.empty b { font: 600 16px var(--head); }
.empty p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.empty.good { border-style: solid; border-color: var(--green-line); background: var(--green-soft); }
.empty.good b { color: var(--good); }
.skeleton { display: grid; gap: 8px; }
.skeleton i { display: block; height: 78px; border-radius: var(--radius); background: linear-gradient(90deg, var(--sand-2) 25%, #f3f0ea 50%, var(--sand-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.ed { --pvw: 46%; display: grid; grid-template-columns: 236px minmax(380px, 1fr) 7px minmax(360px, var(--pvw)); height: calc(100vh - var(--bar-h, 58px)); height: calc(100dvh - var(--bar-h, 58px)); }
.pv-back { display: none; }
.ed.nopv { grid-template-columns: 236px minmax(0, 1fr); }
.ed.nonav { grid-template-columns: 48px minmax(380px, 1fr) 7px minmax(360px, var(--pvw)); }
.ed.nonav.nopv { grid-template-columns: 48px minmax(0, 1fr); }
.ed.nonav .ed-nav { padding: 10px 6px; align-items: center; }
.ed.nonav .ed-nav > :not(.nav-head):not(.nav-mini) { display: none; }
.ed.nonav .nav-head .nav-back { display: none; }
.ed.nonav .nav-head { justify-content: center; }
.nav-toggle { align-self: flex-end; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: #fff; color: var(--ink-2); font-size: 15px; cursor: pointer; flex: none; }
.nav-toggle:hover { border-color: var(--ink-3); color: var(--ink); }
.ed.nonav .nav-toggle { align-self: center; }
.nav-mini { display: none; }
.ed.nonav .nav-mini { display: grid; gap: 8px; justify-items: center; }
.nav-mini .miss-n { font-size: 12px; }
.nav-mini button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--warn-soft); color: var(--warn); font: 700 12px var(--font); cursor: pointer; }
.nav-mini button.ok { background: var(--green-soft); color: var(--good); }
.nav-mini button.back { background: #fff; border: 1px solid var(--line-2); color: var(--green); font-size: 15px; }
.ed.nopv .ed-split, .ed.nopv .ed-pv { display: none; }
.ed.dragging { user-select: none; cursor: col-resize; }
.ed.dragging .pv-host { pointer-events: none; }
.ed-nav { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; border-right: 1px solid var(--line); background: #fff; padding: 14px 12px 24px; display: flex; flex-direction: column; gap: 12px; }
.ed-nav > * { min-width: 0; max-width: 100%; }
.nav-state .st { max-width: 100%; }
.nav-prog > span:last-child { overflow-wrap: anywhere; }
.nav-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.nav-back { align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; border: 0; border-radius: var(--radius-s); background: none; padding: 2px 6px; margin-left: -6px; color: var(--green); font: 600 13px var(--font); cursor: pointer; }
.nav-back:hover { background: var(--green-soft); }
.nav-title { display: grid; gap: 5px; padding: 0 4px; }
.nav-title b { font: 600 14.5px/1.3 var(--head); overflow-wrap: anywhere; }
.nav-title code { font-size: 12.5px; color: var(--ink-3); word-break: normal; overflow-wrap: normal; }
.nav-prog { display: grid; gap: 5px; font-size: 13.5px; color: var(--ink-2); }
.nav-prog .prog { width: 100%; }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.nav-list button { width: 100%; min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border: 0; border-radius: var(--radius-s); background: none; font: 600 14px var(--font); color: var(--ink); cursor: pointer; text-align: left; }
.nav-list button:hover { background: var(--sand); }
.nav-list button[aria-current="true"] { background: var(--green-soft); color: var(--green); }
.nav-list button:focus-visible { outline-offset: -2px; }
.nav-list .sub button { min-height: 30px; font-weight: 400; font-size: 13.5px; color: var(--ink-2); padding: 4px 10px 4px 22px; position: relative; }
.nav-list .sub button::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.nav-list .sub button:hover { color: var(--ink); }
.nav-list .sep { height: 1px; background: var(--line); margin: 6px 0; }
.miss-n, .warn-n { flex: none; min-width: 20px; padding: 0 7px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 13px; line-height: 20px; text-align: center; font-weight: 700; }
.ed-form { overflow-y: auto; overscroll-behavior: contain; padding: 22px clamp(16px, 2.4vw, 36px) 140px; min-width: 0; }
.ed-split { cursor: col-resize; background: var(--line); position: relative; touch-action: none; }
.ed-split::after { content: ""; position: absolute; top: 50%; left: 2px; width: 3px; height: 36px; margin-top: -18px; border-radius: 2px; background: var(--ink-3); opacity: .5; }
.ed-split:hover, .ed-split:focus-visible, .ed.dragging .ed-split { background: var(--green-2); outline: 0; }
.ed-pv { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.pv-bar { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pv-host { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #d9d4ca; }
.pvs { position: absolute; inset: 0; }
.pvf { position: absolute; top: 0; left: 0; border: 0; background: #fff; transform-origin: 0 0; }
.pv-host.mob .pvf { border-radius: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #fff; }
.seg button { min-height: 32px; border: 0; background: none; padding: 4px 11px; font: 600 13px var(--font); cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button:hover { background: var(--sand); }
.seg button[aria-pressed="true"] { background: var(--green); color: #fff; }
.seg button:focus-visible { outline-offset: -3px; }

.form { max-width: 920px; margin: 0 auto; display: grid; gap: 24px; }
.form-head { display: grid; gap: 4px; margin-bottom: 8px; }
.form-head h2 { font-size: 22px; }
.grp { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 12px; }
.grp > summary { padding: 16px 24px; font: 600 15px var(--head); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; border-radius: var(--radius); }
.grp > summary:hover { background: #fbfaf7; }
.grp > summary:focus-visible { outline-offset: -2px; }
.grp > summary::-webkit-details-marker, details.item > summary::-webkit-details-marker { display: none; }
.grp > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); flex: none; transition: transform .15s; margin-top: -4px; }
.grp:not([open]) > summary::after { transform: rotate(-45deg); margin-top: 0; }
.grp-body { padding: 8px 24px 24px; display: grid; gap: 24px; }
.grp-body.flat { padding: 0; }
.grp .grp { background: var(--sand); box-shadow: none; }
.grp .grp > summary { font: 600 13.5px var(--font); padding: 12px 16px; }
.grp .grp > summary:hover { background: var(--sand-2); }
.grp .grp > .grp-body { padding: 4px 16px 16px; }
.grp.has-miss > summary::before, details.item.has-miss > summary .item-head b::before { content: attr(data-miss) " à remplir"; display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--bad); color: #fff; font: 700 12px/19px var(--font); letter-spacing: .02em; margin-right: 2px; vertical-align: 2px; }
details.item.has-miss > summary .item-head b::before { margin-right: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 16px; }
.f { display: grid; align-content: start; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); scroll-margin: 80px; }
.f-label { display: flex; gap: 4px; align-items: baseline; }
.f-label label { cursor: pointer; }
.f > span { display: flex; gap: 4px; align-items: baseline; }
.f.miss > span, .f.miss > .f-label { color: var(--bad); }
.f.miss input, .f.miss textarea, .f.miss select { border-color: var(--bad); background-color: var(--bad-soft); }
.f.miss input:focus, .f.miss textarea:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, .15); }
.f .miss-txt { display: none; margin-top: -4px; font-size: 12.5px; font-weight: 700; color: var(--bad); }
.f > .help, .f > .field-reason { margin-top: -4px; }
.form div:not([class]):not([style]) { display: grid; gap: 24px; align-content: start; }
.sa-list { display: grid; gap: 8px; }
.f.miss .miss-txt { display: block; }
.count { margin-left: auto; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.count.near { color: var(--warn); font-weight: 600; }
.count.over { color: var(--bad); font-weight: 700; }
.count.ideal { color: var(--good); font-weight: 600; }
.imgrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.imgrow input { flex: 1; min-width: 200px; }
.imgrow .field-reason { flex-basis: 100%; }
.thumb { width: 52px; height: 40px; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--line); flex: none; background: var(--sand-2); }
h4 { font: 700 12.5px var(--font); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin-top: 8px; }
fieldset.f { border: 0; padding: 0; margin: 0; }
.radio { display: flex; gap: 8px; align-items: center; font-weight: 400; color: var(--ink); cursor: pointer; }
.radio input { width: auto; }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; color: var(--ink); cursor: pointer; }
.check.confirm { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--prod-line); border-radius: var(--radius); background: var(--prod-soft); font-weight: 600; }
.check.confirm > label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.check.confirm input { margin-top: 2px; }
.check.confirm.grave { border-color: var(--bad-line); background: var(--bad-soft); color: var(--bad); border-left: 4px solid var(--bad); }
.check.confirm .adv > summary { font-weight: 400; color: var(--ink-2); }
.serp { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-family: Arial, sans-serif; display: grid; gap: 2px; }
.serp small { color: #4d5156; font-size: 13px; }
.serp b { color: #1a0dab; font-size: 18px; font-weight: 400; line-height: 1.3; }
.serp p { margin: 0; color: #4d5156; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick select { background-color: var(--green-soft); border-color: var(--green-line); font-weight: 600; }
details.adv > summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); min-height: 32px; display: flex; align-items: center; gap: 8px; list-style: none; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::before { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); flex: none; transition: transform .15s; }
details.adv[open] > summary::before { transform: rotate(45deg); }
details.adv[open] > summary { margin-bottom: 12px; }

.list { display: grid; gap: 12px; }
.list > .btn.add { justify-self: start; }
.item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
details.item > summary { list-style: none; cursor: pointer; border-radius: var(--radius); }
details.item > summary:focus-visible { outline-offset: -2px; }
.item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; background: var(--sand); border-radius: var(--radius) var(--radius) 0 0; }
details.item:not([open]) .item-head { border-radius: var(--radius); }
details.item > summary .item-head::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); flex: none; transition: transform .15s; }
details.item[open] > summary .item-head::before { transform: rotate(45deg); }
.item-head b { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-head .row { flex: none; }
.item-body { padding: 20px 16px; display: grid; gap: 24px; }
.where { margin: 0; font-size: 14px; color: var(--ink-2); background: var(--sand); border-left: 3px solid var(--green-2); padding: 12px 16px; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.lead { margin: 0; color: var(--ink-2); }
.callout { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius); background: var(--green-soft); border: 1px solid var(--green-line); }
.callout.amber { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.callout.stack { display: grid; gap: 6px; }
.callout.stack h4 { color: var(--ink-2); margin-top: 4px; }
.callout.amber .help { color: var(--ink-2); }
.errbox { padding: 12px 14px; border-radius: var(--radius); background: var(--bad-soft); border: 1px solid var(--bad-line); border-left-width: 4px; border-left-color: var(--bad); display: grid; gap: 4px; }
.errbox b { color: var(--bad); }
.errbox p { margin: 0; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

.axis { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.axis-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.axis-h > b { font: 600 14.5px var(--head); }
.axis p { margin: 0; }
.prog.wide { width: 100%; height: 6px; }
.envgrid { width: 100%; border-collapse: collapse; background: #fff; }
.envgrid th, .envgrid td { padding: 9px 10px; vertical-align: top; border-bottom: 1px solid var(--line); }
.envgrid tbody tr:last-child th, .envgrid tbody tr:last-child td { border-bottom: 0; }
.envgrid th[scope="row"] { font-weight: 600; white-space: nowrap; }
.envgrid tr.env-dev th b { color: var(--dev); }
.envgrid tr.env-prod th b { color: var(--prod); }
.envgrid small { display: block; font-size: 12.5px; margin-top: 2px; }
.envgrid .links a { margin-right: 10px; white-space: nowrap; }
.envgrid .acts { text-align: right; }
.envgrid.mini th, .envgrid.mini td { padding: 5px 8px; font-size: 13.5px; }
.envgrid.mini { border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.roc-where { font-weight: 600; }
.roc-where-published { color: var(--good); }
.roc-where-absent { color: var(--ink-3); font-weight: 400; }
.fresh { font-weight: 600; }
.fresh-fresh { color: var(--good); }
.fresh-stale { color: var(--warn); }
.fresh-never, .fresh-external { color: var(--ink-3); font-weight: 400; }
.ext .ico { margin-left: 3px; vertical-align: -1px; }
.stack { display: grid; gap: 10px; }
.nav-state { display: grid; gap: 8px; }
.presence { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--info-soft); border: 1px solid #c5d6ea; font-size: 13.5px; font-weight: 600; color: var(--info); max-width: 560px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presence .ico { color: var(--dev); flex: none; }
.next-step { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius); background: var(--green-soft); border: 1px solid var(--green-line); }
.next-step .eyebrow { color: var(--green-2); margin-bottom: 2px; }
.next-step b { font-size: 14.5px; }
.next-step.warn-step { background: var(--warn-soft); border-color: var(--warn-line); }
.next-step.warn-step .eyebrow { color: var(--warn); }
.next-step.bad-step { background: var(--bad-soft); border-color: var(--bad-line); }
.next-step.bad-step .eyebrow { color: var(--bad); }
.next-step.done-step b { color: var(--good); }

.issues { width: 100%; border-collapse: collapse; background: #fff; }
.issues th, .issues td, table th, table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); font-weight: 700; background: var(--sand); }
table tr:last-child td { border-bottom: 0; }
table { width: 100%; border-collapse: collapse; }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.lang-tag { display: inline-block; min-width: 28px; padding: 0 6px; border-radius: 4px; background: var(--sand-2); color: var(--ink-2); font: 700 13px/20px var(--font); text-align: center; }
td .row.end { flex-wrap: nowrap; }

.dlg { border: 0; border-radius: 12px; padding: 24px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); color: var(--ink); }
.dlg h2 { font-size: 19px; }
.dlg h4 { margin-top: 4px; }
.dlg::backdrop, .drawer::backdrop { background: rgba(29, 29, 27, .42); }
.dlg form, .dlg > div { display: grid; gap: 12px; }
.dlg .row.end { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.dlg.wide { width: min(760px, calc(100vw - 32px)); }
.dlg.confirm { width: min(460px, calc(100vw - 32px)); }
.dlg.confirm p { margin: 0; color: var(--ink-2); }
.dlg.is-prod { border-top: 6px solid var(--prod); }
.url-preview { margin: 0; padding: 9px 12px; border-radius: var(--radius-s); background: var(--sand); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.url-preview code { color: var(--ink); }
.drawer { margin: 0 0 0 auto; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; width: min(680px, 100vw); border: 0; padding: 0; background: var(--sand); box-shadow: -20px 0 60px rgba(0, 0, 0, .2); color: var(--ink); }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 12px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-head b { font: 600 16px var(--head); }
.guide { padding: 20px 26px 48px; color: var(--ink-2); }
.guide h1 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }
.guide h2 { color: var(--ink); font-size: 16px; margin: 30px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.guide h3 { color: var(--ink); font-size: 15px; margin: 0 0 4px; }
.guide p { margin: 0 0 8px; }
.guide code { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.guide ul, .guide ol ol { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.gsteps { list-style: none; counter-reset: g; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.gsteps > li { counter-increment: g; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 10px 52px; }
.gsteps > li::before { content: counter(g); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font: 700 13px/26px var(--font); text-align: center; }
.gsteps code { background: var(--sand); }

.menu-wrap { position: relative; display: inline-block; }
.menu { position: fixed; min-width: 220px; max-width: calc(100vw - 16px); padding: 6px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-2); z-index: 70; display: grid; gap: 2px; }
.menu-item { display: block; width: 100%; min-height: 36px; padding: 7px 12px; border: 0; border-radius: var(--radius-s); background: none; color: var(--ink); font: 600 13px var(--font); text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--sand); outline: 0; }
.menu-item:focus-visible { box-shadow: inset 0 0 0 2px var(--green-2); }
.menu-item.danger { color: var(--bad); }
.menu-item.danger:hover { background: var(--bad-soft); }
.menu-item[aria-disabled="true"] { color: var(--ink-3); cursor: not-allowed; }
.menu-item[aria-disabled="true"]:hover { background: none; }
.menu-reason { display: block; padding: 0 12px 6px; font-size: 13px; color: var(--ink-3); }
.menu-sep { height: 1px; margin: 4px 0; background: var(--line); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 8px 10px 8px 16px; background: var(--ink); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-2); font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-btn { min-height: 32px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--radius-s); background: rgba(255, 255, 255, .12); color: #fff; font: 700 13px var(--font); cursor: pointer; white-space: nowrap; }
.toast-btn:hover { background: rgba(255, 255, 255, .24); }
.toast-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checklist li { display: flex; gap: 8px; align-items: baseline; }
.checklist .lang-tag { flex: none; }
.gl { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 4px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; color: var(--ink-2); font: 700 11px/1 var(--font); cursor: help; vertical-align: 2px; }
.gl:hover, .gl:focus-visible { border-color: var(--green-2); color: var(--green); }
.gl::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 280px; max-width: 80vw; padding: 10px 12px; border-radius: var(--radius); background: var(--ink); color: #fff; font: 400 13px/1.45 var(--font); text-align: left; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 80; white-space: normal; }
.gl:hover::after, .gl:focus-visible::after, .gl.on::after { opacity: 1; }
.linkish { border: 0; background: none; padding: 0; color: var(--green); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.linkish:hover { color: #00321b; }
.field-reason { margin: 0; font-size: 14px; color: var(--ink-2); }
.toast.good { background: var(--good); }
.toast.bad { background: var(--bad); }

.pvpop { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.pvpop .pv-host { flex: 1; }
.pvpop .bar-status.live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 2px; }

.admin { max-width: 1180px; margin: 24px auto; padding: 0 20px 60px; display: grid; gap: 16px; }
.admin table th, .admin table td { padding: 8px 10px; }
.admin .num { text-align: center; white-space: nowrap; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 12px; }
.card h2 { font-size: 18px; }
.card h2 small { font-weight: 400; color: var(--ink-3); }
.card.highlight { border-color: var(--green-line); background: var(--green-soft); }
.admin .notice-slot { padding: 0; }
details.adv.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; }
details.adv.box > summary { font: 600 14.5px var(--head); color: var(--ink); min-height: 44px; }
details.adv.box[open] > summary { margin-bottom: 0; border-bottom: 1px solid var(--line); }
details.adv.box .aform { border: 0; padding: 14px 0 16px; background: none; }
.aform { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 18px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand); }
.aform .f { align-content: start; }
.aform .f input, .aform .f select { background: #fff; }
.aform .row, .aform .form-mode { grid-column: 1 / -1; }
.form-mode { font-size: 14px; color: var(--ink-2); }
.glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.glist li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.glist img, .glist .ph { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; background: var(--sand-2); display: block; }
.glist .t b { display: block; font-size: 13.5px; }
.glist .t code { font-size: 13px; color: var(--ink-3); }
.guides { display: grid; gap: 10px; }
.todo { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.todo p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.todo-box { display: grid; gap: 10px; margin-top: 12px; padding-right: 14px; }

.pill { display: inline-flex; align-items: center; gap: 2px; padding: 2px 10px; border-radius: 999px; border: 1px solid; font-size: 13px; font-weight: 600; line-height: 19px; white-space: nowrap; background: #fff; }
.pill-dev { border-color: var(--dev-line); }
.pill-prod { border-color: var(--prod-line); }
.pill.ok { color: var(--good); }
.pill.changed { color: var(--warn); background: var(--warn-soft); }
.pill.neutral { color: var(--ink-2); }
.prod-banner { padding: 8px 12px; border-radius: var(--radius); background: var(--prod); color: #fff; font-weight: 700; letter-spacing: .06em; font-size: 13px; }
.warn.small { font-size: 12.5px; font-weight: 600; }

.msg-page { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.msg { max-width: 520px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 12px; padding: 28px; display: grid; gap: 10px; box-shadow: var(--shadow-2); }
.msg h1 { font-size: 22px; }
.msg p { margin: 0; color: var(--ink-2); }

@media (max-width: 1279px) and (min-width: 1100px) {
  .ed { --pvw: 40%; grid-template-columns: 200px minmax(360px, 1fr) 7px minmax(320px, var(--pvw)); }
  .ed.nonav { grid-template-columns: 48px minmax(360px, 1fr) 7px minmax(320px, var(--pvw)); }
  .ed-form { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 1199px) and (min-width: 901px) {
  .rows-h, .arow { grid-template-columns: minmax(0, 1fr) 140px 120px 120px minmax(130px, 170px); row-gap: 4px; }
  .rows-h span:last-child { display: none; }
  .arow .pg, .arow .c-st, .arow .c-env { grid-row: span 2; }
  .arow .meta { grid-column: 5; font-size: 12.5px; }
}
@media (max-width: 1099px) {
  .ed, .ed.nopv { grid-template-columns: 220px minmax(0, 1fr); }
  .ed.nonav, .ed.nonav.nopv { grid-template-columns: 48px minmax(0, 1fr); }
  .ed-split { display: none; }
  .ed-pv { position: fixed; top: var(--bar-h, 58px); right: 0; bottom: 0; width: min(760px, 94vw); z-index: 30; box-shadow: -20px 0 50px rgba(0, 0, 0, .2); }
  .ed:not(.nopv) .pv-back { display: block; position: fixed; top: var(--bar-h, 58px); right: 0; bottom: 0; left: 0; z-index: 29; background: rgba(29, 29, 27, .35); cursor: pointer; }
}
@media (max-width: 900px) {
  .bar { flex-wrap: nowrap; gap: 8px; padding: 8px 12px; }
  .bar-status { min-width: 0; flex: 1; }
  .who, #btn-alt, .brand .long, .brand .eyebrow { display: none; }
  .bar-actions { flex: none; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; }
  .bar-actions .btn { padding-left: 10px; padding-right: 10px; }
  .brand { padding: 2px 4px; margin-left: -4px; }
  .brand b { font-size: 14px; }
  .envgrid th, .envgrid td { padding: 7px 6px; font-size: 13px; }
  .envgrid .links a { display: block; margin: 0 0 4px; }
  .nav-toggle, .nav-mini { display: none !important; }
  .ed.nonav, .ed.nonav.nopv { grid-template-columns: minmax(0, 1fr); }
  .editing .notice-slot { top: calc(var(--bar-h, 58px) + 8px); width: calc(100vw - 20px); }
  .ed, .ed.nopv { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .ed-nav { max-height: 30vh; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px 10px; gap: 6px; }
  .nav-prog, .nav-title .eyebrow { display: none; }
  .nav-title b { font-size: 14px; }
  .nav-title code { display: none; }
  .nav-list { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .nav-list li { flex: none; }
  .nav-list button, .nav-list .sub button { width: auto; min-height: 32px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
  .nav-list .sub button::before { display: none; }
  .nav-list .sep { display: none; }
  .ed-form { padding: 16px 14px 120px; }
  .ed-pv { width: 100vw; }
  .rows-h { display: none; }
  .arow { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .arow .pg { grid-column: 1 / -1; grid-template-columns: 64px minmax(0, 1fr); }
  .arow .th { width: 64px; height: 48px; }
  .arow .cell { font-size: 13px; }
  .presence { max-width: 32px; padding: 5px 8px; font-size: 0; }
  .presence .ico { width: 16px; height: 16px; }
  .home { padding: 20px 16px 60px; }
  .dash-head input { width: 100%; }
  .dash-head .btn { flex: 1; }
  .cat-h .muted { margin-left: 0; }
  .dlg { padding: 18px; }
  .drawer { width: 100vw; }
  .guide { padding: 16px 16px 40px; }
  .gsteps > li { padding-left: 46px; }
  .admin { margin-top: 16px; padding: 0 12px 40px; }
  .card { padding: 16px; }
}
@media (max-width: 480px) {
  .save-ind .txt { display: none; }
  #btn-save { display: none; }
  .save-ind { padding: 0; width: 16px; height: 16px; justify-content: center; }
  .save-ind::before { margin: 0; }
  .save-ind.saving { width: auto; padding: 0 4px; }
  .bar-actions .btn { font-size: 12.5px; padding-left: 8px; padding-right: 8px; min-height: 34px; }
}

.rich { display: grid; }
.rich .ql-toolbar.ql-snow { display: flex; gap: 4px; padding: 4px 6px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--sand); font-family: var(--font); }
.rich .ql-toolbar.ql-snow .ql-formats { margin-right: 8px; }
.rich .ql-toolbar.ql-snow button { width: 32px; height: 30px; padding: 5px; border-radius: var(--radius-s); }
.rich .ql-toolbar.ql-snow button:hover, .rich .ql-toolbar.ql-snow button.ql-active { background: #fff; }
.rich .ql-toolbar.ql-snow button.ql-nowrap { width: auto; padding: 4px 10px; font: 600 12.5px var(--font); color: var(--ink-2); }
.rich .ql-toolbar.ql-snow button.ql-nowrap.ql-active { color: var(--green-2); }
.rich .ql-container.ql-snow { border: 1px solid var(--line-2); border-radius: 0 0 var(--radius) var(--radius); background: #fff; font: 14px/1.55 var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.rich .ql-container.ql-snow:focus-within { border-color: var(--green-2); box-shadow: var(--ring); }
.rich .ql-editor { min-height: 104px; padding: 10px 12px; }
.rich-sa .ql-editor { min-height: 64px; }
.rich-md .ql-editor p + p, .rich-md .ql-editor p + ul, .rich-md .ql-editor ul + p, .rich-md .ql-editor ol + p { margin-top: 10px; }
.rich .ql-editor.ql-blank::before { left: 12px; right: 12px; font-style: normal; color: #767670; }
.rich .ql-editor a { color: var(--green-2); text-decoration: underline; }
.rich .ql-editor mark { white-space: nowrap; color: inherit; background: var(--sand-2); box-shadow: inset 0 -1px 0 var(--ink-3); }
.rich .ql-snow .ql-tooltip { z-index: 5; border-radius: var(--radius); font-family: var(--font); }
.f.miss .rich .ql-container.ql-snow { border-color: var(--bad); background: var(--bad-soft); }

.presence .peers { display: inline-flex; flex: none; }
.presence .peer-av + .peer-av { margin-left: -6px; }
.peer-av { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--peer); color: #fff; font: 700 10.5px/1 var(--font); letter-spacing: .02em; box-shadow: 0 0 0 2px #fff; }
.presence .peer-txt { overflow: hidden; text-overflow: ellipsis; }
.f.peer { outline: 2px solid var(--peer); outline-offset: 8px; border-radius: var(--radius-s); }
.peer-tag { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--peer); color: #fff; font: 600 11.5px/18px var(--font); white-space: nowrap; }
.f-label .count + .peer-tag { margin-left: 8px; }
.peer-dot { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 0 7px; border-radius: 999px; background: var(--peer); color: #fff; font: 600 11px/18px var(--font); vertical-align: 1px; }
.peer-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.arow .editing { display: inline-block; justify-self: start; padding: 1px 8px; border-radius: 999px; background: var(--info-soft); border: 1px solid #c5d6ea; color: var(--info); font: 600 11.5px/18px var(--font); }

body.auth-wait > :not(.auth-gate) { display: none !important; }
.auth-gate { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-gate[hidden] { display: none; }
.auth-gate .msg { max-width: 480px; width: 100%; }
.auth-gate #clerk-mount { display: flex; justify-content: center; }
.auth-gate .err:empty { display: none; }
