/* Dashboard: a left rail of sections and one content pane, on the home palette. */
.nav-right { position: relative; display: flex; align-items: center; gap: 10px; }
.btn.small { padding: 6px 14px; font-size: 14px; text-decoration: none; }
.account-menu { top: 48px; right: 0; left: auto; transform: none; min-width: 230px; }
.account-menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.account-menu .who b { display: block; color: var(--text); font-size: 14px; }
.menu-item { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font-weight: 600; cursor: pointer; color: var(--text); }
.menu-item:hover { background: var(--bg); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger.quiet { font-weight: 500; font-size: 13px; }

.dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto; padding: 28px max(20px, env(safe-area-inset-right, 0px)) 48px max(20px, env(safe-area-inset-left, 0px)); }
@media (max-width: 820px) { .dash { grid-template-columns: 1fr; gap: 16px; } }
.dash-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; align-self: start; }
@media (max-width: 820px) { .dash-nav { flex-direction: row; overflow-x: auto; position: static; padding-bottom: 4px; } }
.dash-nav button { padding: 9px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.dash-nav button:hover { background: var(--surface); color: var(--text); }
.dash-nav button.sel { background: var(--surface); color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.dash-sep { height: 1px; background: var(--line); margin: 8px 4px; }
@media (max-width: 820px) { .dash-sep { display: none; } }
.dash-main { min-width: 0; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pane-head h1 { margin: 0; font-size: 24px; }
.pane-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pane-actions .btn { text-decoration: none; }
.lead { margin: -6px 0 16px; color: var(--muted); }
.sub { margin: 26px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card h2.sub { margin-top: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.card label { display: block; margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.card label input, .card label select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 400; color: var(--text); }
.grid3 { display: grid; grid-template-columns: 1fr 1.3fr .8fr; gap: 12px; }
@media (max-width: 640px) { .grid3 { grid-template-columns: 1fr; } }
.row-end { display: flex; justify-content: flex-end; margin-top: 14px; }

.pmr { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pmr h3 { margin: 0 0 4px; font-size: 17px; }
.pmr .mid { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rows > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.rows > li.done { opacity: .6; }
.rows .t { font-weight: 700; overflow-wrap: anywhere; }
.rows .m { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.rows .b { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; grid-column: 1; }
.rows .acts { grid-row: 1 / span 3; grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .rows > li { grid-template-columns: 1fr; } .rows .acts { grid-row: auto; grid-column: 1; justify-content: flex-start; } }
.rows .acts .btn, .rows .acts a { text-decoration: none; }
.empty-row { color: var(--muted); padding: 16px 4px; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.tag.live { background: #fde2e2; color: #b42318; }
.tag.ai { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.tag.admin { background: color-mix(in srgb, var(--orange) 20%, transparent); color: #8a5a00; }
.tag.off { background: var(--bg); color: var(--muted); }
.filter-row { margin-bottom: 12px; }
.note-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.note-card + .note-card { margin-top: 12px; }
.note-card h3 { margin: 0 0 2px; font-size: 17px; }
.note-card .m { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.note-card h4 { margin: 12px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.note-card p { margin: 0; line-height: 1.55; }
.note-card ul { margin: 0; padding-left: 20px; line-height: 1.55; }
.secret { font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border: 1px dashed var(--line); padding: 10px 12px; border-radius: 10px; user-select: all; overflow-wrap: anywhere; }

.card-h { margin: 22px 0 2px; font-size: 16px; }
.card-p { margin: 0; color: var(--muted); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.card label.inline-check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); margin-top: 14px; }
.card label.inline-check input { width: 17px; height: 17px; margin: 0; }
.row-end { gap: 8px; }
.mail-log { list-style: none; margin: 14px 0 0; padding: 0; font-size: 12px; color: var(--muted); }
.mail-log li { padding: 3px 0; overflow-wrap: anywhere; }
.mail-log li.bad { color: #c62828; }
.reg-list { list-style: none; margin: 0 0 8px; padding: 0; max-height: 50vh; overflow: auto; }
.reg-list li { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.reg-list li .m { color: var(--muted); font-size: 13px; flex: 1; min-width: 180px; }

.media-row .t { display: flex; align-items: center; gap: 10px; }
.media-row .thumb { width: 64px; height: 36px; object-fit: cover; border-radius: 5px; background: #111; }
#dlg-body textarea.lyrics { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14px; line-height: 1.5; margin-top: 6px; resize: vertical; }
.modal:has(textarea.lyrics) { width: min(640px, calc(100vw - 32px)); }

/* Analytics */
.seg-mini { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg-mini button { border: 0; background: none; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg-mini button + button { border-left: 1px solid var(--line); }
.seg-mini button.sel { background: #eaf1fd; color: #1658d6; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.an-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.an-tile-l { font-size: 13px; color: var(--muted); font-weight: 600; }
.an-tile-v { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 2px 0; color: var(--text); }
.an-tile-s { font-size: 12px; color: var(--muted); }
.table-card .show-all { margin: 8px 14px 12px; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-bottom: 8px; }
.chart-card { margin: 0; padding: 14px 16px; position: relative; }
.chart-card figcaption { display: flex; flex-direction: column; margin-bottom: 6px; }
.chart-card figcaption span { font-size: 12px; color: var(--muted); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: #e8eaef; stroke-width: 1; }
.chart .base { stroke: #c9ced8; stroke-width: 1; }
.chart .tick { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .val { font-size: 12px; font-weight: 700; fill: var(--text); }
.chart .bar { fill: #2a78d6; }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: rgba(42, 120, 214, .06); }
.chart-card .tip { position: absolute; transform: translate(-50%, -100%); margin-top: 22px; padding: 6px 10px; border-radius: 8px; background: #0b0b0b; color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; }
.chart-table summary { cursor: pointer; font-size: 12px; color: var(--muted); margin-top: 6px; }
.table-card { padding: 0; overflow-x: auto; }
.an-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.an-table th, .an-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.an-table th { font-size: 12px; color: var(--muted); font-weight: 600; }
.an-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.an-table tr:last-child td { border-bottom: 0; }
.an-table .empty-cell { color: var(--muted); text-align: left; }

.qr-box { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 6px 0 4px; }
.qr-code { width: 200px; height: 200px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; }
.qr-secret { font-size: 12px; color: var(--muted); text-align: center; overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
.backup-codes { columns: 2; padding: 14px; border-radius: 10px; background: var(--bg); font: 15px/1.8 ui-monospace, monospace; text-align: center; }
.twostep-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; border-radius: 12px; background: #fff7e0; border: 1px solid #f5d27a; font-weight: 600; }
.steps { margin: 0 0 6px; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.card label textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-family: inherit; font-size: 14px; font-weight: 400; color: var(--text); resize: vertical; }
.card label textarea.code { font-family: ui-monospace, monospace; font-size: 12px; }
.card label select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-weight: 400; }
.card-p a { overflow-wrap: anywhere; }
.ai-status { margin-right: auto; align-self: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.ai-status.on { color: var(--ok); }
.ai-status.on::before { content: "● "; }

/* Attendance report */
.report-links { white-space: nowrap; font-size: 13px; }
.report-links a, .btn.link { color: var(--accent, #0b5cff); font-weight: 600; }
.btn.link { background: none; border: 0; padding: 0; min-height: 0; text-decoration: none; cursor: pointer; }
.btn.link:hover, .report-links a:hover { text-decoration: underline; }
.att-table { max-height: 55vh; overflow: auto; margin: 10px -6px 0; }
.prep-poll { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prep-poll textarea { grid-column: 1; font: inherit; resize: vertical; }
.prep-poll .btn { grid-column: 2; grid-row: 1; }
.prep-polls + .btn { margin-top: 10px; }

/* Team chat */
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--danger, #e02828); color: #fff; font-size: 11px; font-weight: 700; }
.chat-app { display: grid; grid-template-columns: 220px minmax(0, 1fr); padding: 0; height: min(70vh, 720px); overflow: hidden; }
.chat-channels { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-right: 1px solid var(--line); overflow-y: auto; background: var(--bg); }
.chat-ch { text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-ch:hover { background: var(--surface); }
.chat-ch.sel { background: var(--surface); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chat-ch.unread { font-weight: 700; }
.chat-ch.unread::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--accent, #0b5cff); vertical-align: middle; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head .muted { font-size: 13px; }
.chat-msgs { flex: 1; list-style: none; margin: 0; padding: 12px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-who { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.chat-who time { font-size: 12px; }
.chat-photo { display: block; margin: 4px 0; }
.chat-photo img { display: block; max-width: min(320px, 100%); max-height: 320px; border-radius: 12px; object-fit: cover; background: rgba(127,127,127,.15); }
.chat-quote { border-left: 3px solid #3651d4; padding: 2px 8px; margin: 4px 0; font-size: 12.5px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.chat-fwd { font-size: 11.5px; font-style: italic; }
.chat-call { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.chat-audio { display: block; margin: 4px 0; max-width: 300px; }
.chat-video { display: block; margin: 4px 0; max-width: min(360px, 100%); max-height: 300px; border-radius: 12px; background: #000; }
.chat-file { display: inline-block; margin: 4px 0; padding: 8px 12px; border-radius: 10px; background: rgba(127,127,127,.12); text-decoration: none; color: inherit; }
.chat-reacts { display: flex; gap: 4px; margin-top: 4px; }
.chat-react { border: 1px solid rgba(127,127,127,.3); background: transparent; border-radius: 999px; padding: 1px 7px; font-size: 12px; cursor: pointer; }
.chat-react.on { border-color: #3651d4; background: rgba(54,81,212,.1); }
.chat-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; }
.chat-empty { color: var(--muted); margin: auto; }
.chat-send { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-send textarea { flex: 1; resize: none; min-height: 40px; max-height: 140px; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 720px) {
  .chat-app { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 78vh; }
  .chat-channels { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .chat-ch { flex: none; }
}
.small-select { height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; font-size: 13px; }
.au-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; }
@media (max-width: 860px) { .au-grid { grid-template-columns: 1fr; } }
.au-name { position: relative; display: block; padding-bottom: 6px; }
.au-bar { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #f7941d, #e8344a, #a42fd1); }

/* Sidebar icons */
.dash-nav button.has-ic { display: flex; gap: 11px; }
.dash-nav button svg.ic { width: 18px; height: 18px; opacity: .8; }
.dash-nav button.sel svg.ic, .dash-nav button:hover svg.ic { opacity: 1; }
.dash-nav .nav-badge { margin-left: auto; }

/* Settings: the Meetings on/off switch */
.meetings-switch { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.meetings-switch .card-h { margin-top: 0; }
.meetings-switch .card-p { margin-bottom: 0; }
input.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 48px; height: 28px; margin: 0; border-radius: 999px; background: #8b92a1; cursor: pointer; transition: background .15s ease; }
input.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
input.switch:checked { background: #16a34a; }
input.switch:checked::after { transform: translateX(20px); }
input.switch:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue, #3651d4) 45%, transparent); outline-offset: 2px; }

/* Settings: the Waiting screen card */
.waiting-card { margin-bottom: 16px; }
.wc-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
.wc-preview { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #f0563f 0%, #e8344a 42%, #a23bd6 100%); }
.wc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wc-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; display: flex; flex-direction: column; gap: 2px; color: #fff; background: linear-gradient(transparent, rgba(5, 5, 10, .6)); }
.wc-text b { font-size: 15px; }
.wc-text span { font-size: 11px; opacity: .9; }
.wc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.card label.wc-pick { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.card label.wc-pick input[type=file] { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; }
@media (max-width: 720px) { .wc-grid { grid-template-columns: 1fr; } }
.wc-acts .btn { font-size: 14px; }

/* Meeting notes written by people */
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.note-acts { display: flex; gap: 8px; margin-top: 10px; }
#my-notes { margin-bottom: 22px; }

/* Directory and invite link */
.dir-import { margin-top: 12px; }
.dir-import summary { cursor: pointer; font-weight: 600; }
.dir-search { display: block; margin: 16px 0 10px; }
.dir-search input { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 0; border-radius: 10px; background: var(--d-field, #f1f2f6); color: inherit; font: inherit; }
.code-line { overflow-wrap: anywhere; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.invite-card { margin-bottom: 16px; }

/* Meetings: "In the app" tag */
.tag.app { background: color-mix(in srgb, #2997ff 14%, transparent); color: #0a6fd6; }
:root[data-theme="dark"] .tag.app { color: #6cb8ff; }

/* ---------------------------------------------------------------- Announcements (the app's Home tab) */
.ann-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.ann-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ann-rows > li.ann-row { grid-template-columns: 132px minmax(0, 1fr) auto; gap: 0 18px; align-items: start; padding: 14px; }
.ann-rows > li.ann-row .acts { grid-row: 1; grid-column: 3; align-self: center; flex-wrap: nowrap; }
.ann-rows > li.ann-row:has(.acts > :nth-child(4)) { grid-template-columns: 132px minmax(0, 1fr) auto; }
.ann-thumb { width: 132px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg); display: grid; place-items: center; }
.ann-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ann-thumb.none { background: linear-gradient(135deg, color-mix(in srgb, #f7941d 16%, var(--surface)), color-mix(in srgb, #a42fd1 16%, var(--surface))); color: #e8344a; }
.ann-thumb.none svg { width: 30px; height: 30px; opacity: .85; }
.ann-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding-top: 1px; }
.ann-main .t { font-size: 16px; line-height: 1.3; }
.ann-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--bg); color: var(--muted); white-space: nowrap; }
.chip svg.ic { width: 13px; height: 13px; }
.chip-live { background: rgba(22, 163, 74, .12); color: #15803d; }
.chip-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.chip-scheduled { background: rgba(41, 151, 255, .12); color: #0a6fd6; }
.chip-ended { background: var(--bg); color: var(--muted); }
.chip-pin { background: rgba(247, 148, 29, .14); color: #a35a00; }
:root[data-theme="dark"] .chip-live { color: #4ade80; }
:root[data-theme="dark"] .chip-scheduled { color: #6cb8ff; }
:root[data-theme="dark"] .chip-pin { color: #fbbf5c; }
:root[data-theme="dark"] .chip, :root[data-theme="dark"] .chip-ended { background: rgba(255, 255, 255, .07); }
.ann-excerpt { font-size: 14px; line-height: 1.45; color: var(--text); opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
.ann-btninfo { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .ann-rows > li.ann-row, .ann-rows > li.ann-row:has(.acts > :nth-child(4)) { grid-template-columns: 96px minmax(0, 1fr); gap: 10px 14px; }
  .ann-thumb { width: 96px; }
  .ann-rows > li.ann-row .acts { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
}
.empty-art .btn { margin-top: 4px; }

/* Editor and phone preview */
.ann-head-l { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ann-back { font-size: 13px; color: var(--muted) !important; }
.ann-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 1040px) { .ann-editor { grid-template-columns: 1fr; } }
.ann-form label { position: relative; }
.ann-form > label:first-child { margin-top: 0; }
.ann-counter { position: absolute; right: 0; top: 0; font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.ann-opt { font-weight: 500; color: var(--muted); }
.ann-form textarea { min-height: 140px; line-height: 1.5; }
.ann-field-l { margin: 16px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ann-field-l small { font-weight: 500; margin-left: 4px; }
.ann-drop { position: relative; display: grid; place-items: center; min-height: 150px; border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; overflow: hidden; outline: none; }
.ann-drop:hover, .ann-drop:focus-visible, .ann-drop.over { border-color: #2997ff; background: rgba(41, 151, 255, .05); }
.ann-drop.has-img { border-style: solid; border-color: transparent; min-height: 0; cursor: default; }
.ann-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; color: var(--muted); font-size: 14px; text-align: center; }
.ann-drop-empty b { color: var(--text); font-size: 15px; }
.ann-drop-empty u { color: #0a6fd6; text-decoration: none; font-weight: 600; }
.ann-drop-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 12px; background: rgba(41, 151, 255, .1); color: #2997ff; }
.ann-drop-ic svg.ic { width: 22px; height: 22px; }
.ann-drop-full { position: relative; width: 100%; }
.ann-drop-full img { display: block; width: 100%; max-height: 300px; object-fit: cover; border-radius: 12px; }
.ann-drop-acts { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
body:has(.dash) .ann-drop .ann-drop-acts .btn.ghost, .ann-drop-acts .btn { background: rgba(10, 12, 16, .72) !important; color: #fff !important; border: 0 !important; backdrop-filter: blur(8px); }
.ann-drop-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: color-mix(in srgb, var(--surface) 82%, transparent); font-weight: 600; }
.ann-spin { width: 18px; height: 18px; border: 2.5px solid rgba(41, 151, 255, .25); border-top-color: #2997ff; border-radius: 50%; animation: ann-spin .8s linear infinite; }
@keyframes ann-spin { to { transform: rotate(360deg); } }
.ann-when-note { margin-top: 8px; font-size: 13px; }
.ann-when-note.bad { color: var(--danger, #c62828); }
.ann-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 600px) { .ann-choice { grid-template-columns: 1fr; } }
.card label.ann-radio { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--d-field, var(--bg)); color: var(--text); font-weight: 400; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s; }
.card label.ann-radio:has(input:checked) { box-shadow: inset 0 0 0 1.5px #e8344a; }
.card label.ann-radio input { width: 17px; height: 17px; margin: 2px 0 0; flex: none; }
.ann-radio span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ann-radio small { color: var(--muted); font-size: 12.5px; }
.ann-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.ann-switch-row > div { display: flex; flex-direction: column; gap: 2px; }
.ann-switch-row b { font-size: 15px; }
.ann-switch-row span { font-size: 13px; color: var(--muted); }
.dash-main .ann-switch-row input.switch { background: #8b92a1 !important; box-shadow: none !important; border: 0 !important; }
.dash-main .ann-switch-row input.switch:checked { background: #16a34a !important; }
.dash-main .ann-switch-row input.switch:focus-visible { outline: 3px solid rgba(41, 151, 255, .45); outline-offset: 2px; }
.ann-switch-row input.switch:disabled { opacity: .5; cursor: not-allowed; }
.ann-form .error { margin-top: 12px; }

.ann-preview { position: sticky; top: 92px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ann-preview-h { align-self: stretch; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; text-align: center; }
.ann-preview-note { margin: 0; max-width: 300px; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.45; }
@media (max-width: 1040px) { .ann-preview { position: static; } }

/* The phone: always dark, like the app. Colors follow the app's Theme (page #0b0c0e, cards #1a1c20, accent #2997ff). */
.phone { --p-page: #0b0c0e; --p-card: #1a1c20; --p-text: #f2f3f5; --p-sub: #9a9fa8; --p-accent: #2997ff; --p-line: rgba(255, 255, 255, .08);
  position: relative; width: 320px; height: 660px; border-radius: 46px; padding: 12px; background: #1d1e22;
  box-shadow: 0 0 0 1.5px #3a3c42, 0 30px 70px -24px rgba(10, 12, 20, .55), inset 0 0 0 1px rgba(255, 255, 255, .06);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, system-ui, sans-serif; color: var(--p-text); -webkit-font-smoothing: antialiased; }
.phone > * { position: relative; }
.phone::before { content: ""; position: absolute; inset: 12px; border-radius: 35px; background: var(--p-page); }
.phone::after { content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #000; z-index: 3; }
.phone-status { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 4px 26px 0 30px; font-size: 14px; font-weight: 600; }
.phone-dots { display: flex; gap: 3px; } .phone-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--p-text); }
.phone-top { height: 40px; display: flex; align-items: center; padding: 0 16px; }
.phone-top img { height: 20px; }
.phone-scroll { height: calc(100% - 44px - 40px - 62px); overflow-y: auto; padding: 0 12px 16px; scrollbar-width: none; scroll-behavior: smooth; }
.phone-scroll::-webkit-scrollbar { display: none; }
.phone-tabs { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 62px; display: flex; padding: 6px 4px 12px; border-radius: 0 0 35px 35px; background: rgba(16, 17, 20, .96); border-top: 1px solid var(--p-line); }
.ph-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--p-sub); font-size: 10px; font-weight: 500; }
.ph-tab svg.ic { width: 20px; height: 20px; }
.ph-tab.on { color: var(--p-accent); }
.ph-h1 { font-size: 22px; font-weight: 700; margin: 2px 4px 12px; letter-spacing: -.01em; }
.ph-h2 { font-size: 13px; font-weight: 600; color: var(--p-sub); margin: 16px 4px 8px; }
.ph-note { margin: 0 0 8px; padding: 7px 10px; border-radius: 10px; background: rgba(245, 184, 61, .12); color: #f5b83d; font-size: 11.5px; font-weight: 600; text-align: center; }
.ph-card { border-radius: 16px; background: var(--p-card); overflow: hidden; margin-bottom: 10px; }
.ph-card.mine { box-shadow: 0 0 0 2px var(--p-accent); }
.ph-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ph-pad { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.ph-kicker { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--p-sub); font-weight: 500; }
.ph-kicker > span { display: inline-flex; align-items: center; gap: 4px; }
.ph-kicker svg.ic { width: 12px; height: 12px; }
.ph-pin { color: var(--p-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; }
.ph-title { font-size: 16px; font-weight: 700; line-height: 1.28; overflow-wrap: anywhere; }
.ph-card.pinned .ph-title { font-size: 18px; }
.ph-body { font-size: 13.5px; line-height: 1.42; color: #c9ccd2; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ph-body.long { -webkit-line-clamp: 4; }
.ph-btn { margin-top: 6px; height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; background: var(--p-accent); color: #fff; font-size: 14.5px; font-weight: 600; }
.ph-ext { font-size: 13px; opacity: .85; }
.ph-live { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 11px 12px; margin-bottom: 10px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 77, 85, .22), rgba(255, 77, 85, .08)); }
.ph-live-dot { grid-row: 1 / span 2; width: 9px; height: 9px; border-radius: 50%; background: #ff4d55; box-shadow: 0 0 0 4px rgba(255, 77, 85, .25); }
.ph-live-t { font-size: 14px; font-weight: 700; }
.ph-live-s { grid-row: 2; grid-column: 2; font-size: 11.5px; color: #ff9aa0; }
.ph-live-btn { grid-row: 1 / span 2; grid-column: 3; padding: 6px 14px; border-radius: 999px; background: #ff4d55; color: #fff; font-size: 13px; font-weight: 700; }
.ph-list { border-radius: 16px; background: var(--p-card); overflow: hidden; }
.ph-row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; }
.ph-row + .ph-row { border-top: 1px solid var(--p-line); }
.ph-date { flex: none; width: 38px; height: 40px; border-radius: 10px; background: #24272d; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ph-date b { font-size: 15px; } .ph-date span { font-size: 9px; color: var(--p-accent); font-weight: 700; margin-top: 2px; }
.ph-row-t { flex: 1; min-width: 0; }
.ph-row-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-row-sub { font-size: 11.5px; color: var(--p-sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-row-act { flex: none; font-size: 12px; font-weight: 600; color: var(--p-accent); }
