@font-face { font-family:"Golos Text"; src:url("/static/fonts/GolosText.ttf") format("truetype"); font-style:normal; font-weight:400 900; font-display:swap; }
/* Quiet workspace, October 2026. Component geometry lives in style.css.
   This replaces the previous glass theme; no external fonts or animated backdrop. */
body.np {
  --bg:#f5f6f3; --surface:#fff; --surface-2:#f0f2ec; --surface-3:#e5e8e0;
  --text:#20251f; --muted:#626a60; --line:#dde2d8;
  --accent:#16734e; --accent-2:#16734e; --button:#16734e;
  --selected:#e2f6ea; --rail:#fafbf8; --canvas:#f5f6f3;
  --ok:#27704d; --warn:#906013; --danger:#b53d4b;
  --primary-ink:#fff; --grad:var(--accent); --r:12px; --r-sm:8px;
  background:var(--bg); color:var(--text);
  font-family:"Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px; line-height:1.55;
}
:root[data-theme="dark"] body.np {
  --bg:#171815; --surface:#21231e; --surface-2:#2a2d26; --surface-3:#383d33;
  --text:#f5f7f1; --muted:#adb5a5; --line:#383d33;
  --accent:#56feae; --accent-2:#56feae; --button:#56feae;
  --selected:#233b2e; --rail:#1b1d18; --canvas:#171815;
  --primary-ink:#10241a; --ok:#83d4a5; --warn:#efc176; --danger:#ff9ca7;
}
body.np #app { background:var(--rail); border:1px solid var(--line); border-radius:14px; box-shadow:none; }
body.np #app>.head { background:var(--rail); border-bottom:1px solid var(--line); }
body.np #workspaceScroll { background:var(--canvas); }
body.np .mark { background:var(--button); box-shadow:none; border-radius:9px; }
body.np #app .head h1 { font-size:16px; font-weight:650; letter-spacing:-.3px; }
body.np #openTutorial,body.np #openAdmin,body.np .interface-preferences>summary { background:transparent; color:var(--muted); border:0; box-shadow:none; min-height:44px; }
body.np #channelBar { background:var(--rail); }
body.np .channel-avatar { background:var(--surface-2); color:var(--muted); border-radius:8px; }
body.np .workspace-intro { margin:0 0 20px; }
body.np .workspace-intro h2 { margin:0; font-size:28px; line-height:1.2; font-weight:750; letter-spacing:-.6px; }
body.np .workspace-intro p { margin-top:6px; }
body.np .eyebrow,body.np .section { font-size:12px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--muted); }
body.np .card,body.np .post,body.np .ad,body.np .group,body.np .src,
body.np .action-tile,body.np .quality,body.np .tariff,body.np .history-item,
body.np .plan-option,body.np .explore-intro,body.np .workspace-empty {
  background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:none;
}
body.np .next-step,:root[data-theme="dark"] body.np .next-step {
  background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:none; padding:20px;
}
body.np .next-step h3 { font-size:19px; font-weight:650; }
body.np .next-step p,:root[data-theme="dark"] body.np .next-step p { color:var(--muted); }
body.np .next-step .eyebrow,:root[data-theme="dark"] body.np .next-step .eyebrow { color:var(--muted); }
body.np button { border-radius:8px; font-weight:600; }
body.np .accent,body.np .next-step button,body.np .acts .ok,body.np .billing-change-plan,body.np #billingContinue,
:root[data-theme="dark"] body.np .accent,:root[data-theme="dark"] body.np .next-step button,:root[data-theme="dark"] body.np .acts .ok {
  background:var(--button); color:var(--primary-ink); border:1px solid transparent; box-shadow:none;
}
body.np .ghost { background:transparent; color:var(--text); border:1px solid var(--line); }
body.np .tile-icon { background:transparent; color:var(--muted); }
body.np .action-tile small { color:var(--muted); }
body.np .group>summary { padding-top:16px; padding-bottom:16px; font-size:15px; font-weight:600; }
body.np input:not([type=checkbox],[type=radio],[type=range],[type=file]),body.np select,body.np textarea {
  background:var(--surface); border-color:var(--line); border-radius:8px; box-shadow:none;
}
body.np .channelbar select { background:transparent; border:0; }
body.np .feed-tabs { background:transparent; border-bottom:1px solid var(--line); border-radius:0; padding:0 0 8px; }
body.np .feed-tabs .on { background:var(--selected); color:var(--accent); box-shadow:none; }
body.np .current-plan,:root[data-theme="dark"] body.np .current-plan { background:var(--surface); border:1px solid var(--line); border-radius:12px; }
body.np .notice,:root[data-theme="dark"] body.np .notice { background:var(--surface-2); color:var(--muted); }
body.np #app .nav button { border-radius:8px; font-weight:500; }
body.np #app .nav button.active { background:var(--selected); color:var(--accent); font-weight:650; box-shadow:none; }
body.np .source-shortcuts { gap:8px; margin:0 0 16px; }
body.np .source-shortcuts button { background:transparent; font-size:13px; padding:10px; }
body.np .settings-shortcuts { margin-top:24px; }
body.np .support-link { margin-top:12px; }
body.np button:focus-visible,body.np a:focus-visible,body.np summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media(min-width:1080px) {
  body.np #app { grid-template-columns:240px minmax(0,1fr); }
  body.np #workspaceScroll { padding:28px 36px; }
}
@media(max-width:1079px) {
  body.np #app { border:0; border-radius:0; }
  body.np #channelBar { border-bottom:1px solid var(--line); }
  body.np #app .nav { background:var(--rail); border-top:1px solid var(--line); border-radius:0; box-shadow:none; }
  body.np .workspace-intro h2 { font-size:25px; }
}

/* In-app checkout (Crypto Bot) */
body.np .app-checkout { padding:18px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
body.np .app-checkout>.eyebrow { margin:6px 0 14px; overflow-wrap:anywhere; }
body.np .app-checkout .plan-options { margin-bottom:14px; }
body.np .app-checkout-quote { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; padding:14px 0 6px; border-top:1px solid var(--line); }
body.np .app-checkout-quote b { font-size:24px; letter-spacing:-.3px; }
body.np .app-checkout-quote .hint { margin:0; flex:1 1 180px; }
body.np .app-checkout input[type="email"] { width:100%; min-height:44px; margin-top:6px; }
body.np .app-checkout [data-app-go] { margin-top:14px; min-height:48px; }
body.np .app-checkout-status { padding:14px; border-radius:14px; background:var(--selected); border:1px solid var(--line); }
body.np .app-checkout-status>b { display:block; font-size:16px; margin-bottom:4px; }
body.np .app-checkout-status[data-order-status="succeeded"] { border-color:var(--ok, #2aa86b); }
body.np .app-checkout-status[data-order-status="review"],body.np .app-checkout-status[data-order-status="refunded"] { border-color:var(--warn, #d08a1e); }
body.np .app-checkout-sum { margin:8px 0 0; font-weight:600; }
body.np .app-checkout-status .acts { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
body.np .app-checkout-status .acts button { flex:1 1 140px; min-height:44px; }
body.np .app-checkout-pending { display:grid; gap:8px; margin-top:16px; }
body.np .app-checkout-pending button { justify-content:flex-start; text-align:left; white-space:normal; min-height:44px; }
body.np .app-checkout>.hint:last-child { margin:14px 0 0; font-size:11px; }
@media (max-width:360px) { body.np .app-checkout { padding:14px 12px; } body.np .app-checkout-quote b { font-size:21px; } }
body.np .payment-status .adminrow { align-items:flex-start; }
body.np .payment-blockers { margin:8px 0 0; padding-left:18px; font-size:12px; line-height:1.45; color:var(--warn); overflow-wrap:anywhere; }
body.np .payment-blockers li+li { margin-top:4px; }

/* ── Layout fixes after the redesign (spacing, stacking, narrow screens) ───── */
/* Subscriptions: one even rhythm instead of grid gap + paragraph margins + meter margins. */
body.np .current-plan .subscription-item { gap:0; }
body.np .current-plan .subscription-item>* { margin-top:0; margin-bottom:0; }
body.np .current-plan .subscription-item>.plan-meta { margin-bottom:4px; }
body.np .current-plan .subscription-item>.plan-meta .eyebrow { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; letter-spacing:.6px; line-height:1.45; }
body.np .current-plan .subscription-item>.plan-meta h3 { margin:4px 0 0; }
body.np .current-plan .subscription-item>.hint:empty { display:none; }
body.np .current-plan .subscription-item>.quota-meter { margin:12px 0 8px; }
body.np .current-plan .subscription-item>.plan-account-limit { margin-top:2px; font-size:12px; }
body.np .current-plan .subscription-item>.scheduled { margin-top:14px; padding-top:12px; }
body.np .current-plan .subscription-item>.subscription-bind { margin-top:14px; }
body.np .current-plan .subscription-item>.billing-change-plan { margin-top:12px; }
body.np .quota-copy { flex-wrap:wrap; row-gap:2px; }
body.np .quota-copy>span:last-child { white-space:nowrap; margin-left:auto; }
/* Stacked actions never touch each other. */
body.np .current-plan>.billing-change-plan,body.np .current-plan>.notice+.billing-change-plan { margin-top:12px; }
body.np .current-plan>.billing-change-plan+.billing-change-plan { margin-top:8px; }
body.np .current-plan>.notice { margin:16px 0 0; }
/* Secondary purchase actions: quieter than the main renew button. */
body.np .billing-change-plan.secondary,body.np #billingChangePlan {
  background:var(--surface); color:var(--accent); border:1px solid var(--line); box-shadow:none;
}
body.np .billing-change-plan.secondary .ic,body.np #billingChangePlan .ic { color:var(--accent); }
body.np #billingChangePlan { margin-top:16px; }
/* Home: the processing summary looks like the other collapsible cards. */
body.np .queue-details { margin:14px 0 4px; padding:0 16px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
body.np .queue-details summary { display:flex; align-items:center; min-height:52px; font-size:14px; font-weight:600; color:var(--text); list-style:none; }
body.np .queue-details summary::-webkit-details-marker { display:none; }
body.np .queue-details summary::after { content:''; flex-shrink:0; width:8px; height:8px; margin:0 6px 0 auto; border-right:1.6px solid var(--muted); border-bottom:1.6px solid var(--muted); transform:rotate(45deg) translateY(-2px); transition:transform .2s; }
body.np .queue-details[open] summary::after { transform:rotate(-135deg) translateY(-2px); }
body.np .queue-details[open] { padding-bottom:12px; }
/* Admin: the recipient field matches the grid fields above it. */
body.np #page-admin .card>label:has(#promoRecipient) { display:grid; gap:6px; margin-top:12px; font-size:12px; line-height:1.4; }
body.np #page-admin #promoRecipient { margin:0 0 4px; }
/* Narrow phones: a long channel name never squeezes the select next to its button. */
@media (max-width:360px) {
  body.np .subscription-bind { grid-template-columns:1fr; }
  body.np .subscription-bind>button { width:100%; }
}
/* A paused delivery is a warning, not ordinary text. */
body.np #channelBlockers { border-left:3px solid var(--warn); color:var(--text); }
body.np .ad-reasons { margin-bottom:10px; }
body.np .ad-reasons>p { margin:6px 0 0; }
/* A paused channel keeps its saved schedule without suggesting it is running. */
body.np #scheduleSettings .schedule-pause-hint { margin:4px 0 16px; padding:10px 12px; border-left:3px solid var(--warn); border-radius:8px; background:var(--surface); color:var(--text); }
body.np #scheduleSettings .schedule-explainer { margin:8px 0 16px; font-size:12px; }
body.np #scheduleSettings.schedule-paused .chip.on { background:var(--surface-2); color:var(--muted); border-color:var(--line); border-style:dashed; }
body.np .source-suggest-panel { padding:18px; display:grid; gap:10px; margin:0 0 18px; }
body.np .source-suggest-panel[hidden] { display:none; }
body.np .source-suggest-panel label { font-size:12px; font-weight:600; }
body.np .source-suggest-panel #sourceSuggestCount { max-width:130px; }
body.np .source-suggest-panel .hint { margin:2px 0; }
body.np #sourceSuggestResults { display:grid; gap:8px; }
body.np .source-suggestion { display:flex; align-items:center; gap:12px; justify-content:space-between; padding:12px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
body.np .source-suggestion span { display:grid; min-width:0; gap:3px; overflow-wrap:anywhere; }
body.np .source-suggestion small { color:var(--muted); font-size:11px; }
body.np .source-suggestion button { flex:none; min-height:40px; }
/* Keep the Sources heading to one clear title and one supporting line. */
body.np #page-sources .workspace-intro>.eyebrow { display:none; }
body.np #page-sources .workspace-intro h2 { display:flex; align-items:center; gap:10px; margin-top:0; }
body.np #page-sources .title-count { display:inline-flex; align-items:center; justify-content:center; min-width:28px; height:28px; padding:0 7px; border-radius:999px; background:var(--surface-2); color:var(--text); font-size:15px; font-weight:650; vertical-align:middle; letter-spacing:0; }
body.np #page-sources .workspace-intro p { margin-top:7px; font-size:14px; line-height:1.45; }
body.np #page-sources .source-shortcuts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
body.np #page-sources .source-shortcuts button { min-width:0; min-height:48px; font-size:13px; }
@media (min-width: 700px) { body.np #page-sources .source-shortcuts { grid-template-columns:repeat(4,minmax(0,1fr)); } }

/* Editorial hierarchy: small navigation, clear headings, quiet secondary actions. */
body.np .mark::after { color:var(--primary-ink); }
body.np .home-actions { display:flex; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:8px; gap:8px; }
body.np .home-actions .action-tile { flex:1 1 180px; display:flex; align-items:center; gap:12px; min-height:56px; padding:12px; background:transparent; border:0; text-align:left; }
body.np .home-actions .tile-icon { width:24px; height:24px; margin:0; }
body.np .home-actions .action-tile small { margin-top:3px; }
body.np .home-actions .forward { margin-left:auto; }
body.np .grid:has(>.stat) { border:0; background:transparent; margin:20px 0; }
body.np .stat { background:transparent; border:0; border-right:1px solid var(--line); border-radius:0; padding:8px 16px; }
body.np .stat:first-child { padding-left:0; }
body.np .stat:last-child { border-right:0; }
body.np .stat b { font-size:30px; font-weight:650; font-variant-numeric:tabular-nums; }
body.np #page-admin .stat { padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
body.np .publish-card { padding:18px; }
body.np .publish-card button,:root[data-theme="dark"] body.np .publish-card button { background:transparent; color:var(--text); border:1px solid var(--line); }
body.np .next-step { margin-bottom:20px; }
body.np .next-step p { margin-bottom:0; }
body.np #page-feed .feed-secondary { margin-top:16px; }
body.np .settings-shortcuts .action-tile { background:transparent; }
body.np #deleteChannel { margin-top:24px; border-top:1px solid var(--line); border-radius:0; }
body.np .help-details { margin:12px 0; color:var(--muted); font-size:13px; }
body.np .help-details summary { cursor:pointer; min-height:44px; display:flex; align-items:center; gap:8px; }
body.np .help-details summary::before { content:'+'; font-size:18px; }
body.np .help-details[open] summary::before { content:'−'; }
body.np .help-details p { margin:0 0 12px; }
body.np .feed-tabs button { font-size:14px; }
body.np .post .text { font-size:16px; line-height:1.65; }
body.np .settings-shortcuts small { display:none; }
/* Admin uses the existing 16px card grid for metrics and editable rows. */
body.np #page-admin .admin-sector-body>.card,body.np #page-admin .stat,body.np #page-admin .adminrow { border-radius:16px; }

/* ── Schedule: approval mode, working hours, slot grid (Moscow time) ───────── */
body.np .segmented { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; border-radius:12px; background:var(--surface-2); }
body.np .segmented button { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:4px; min-height:52px; padding:10px 12px; border-radius:var(--control-radius); background:transparent; color:var(--muted); text-align:left; border:1px solid transparent; }
body.np .segmented button b { font-size:14px; font-weight:600; color:inherit; }
body.np .segmented button small { font-size:11.5px; line-height:1.3; color:var(--muted); }
body.np .segmented button.on { background:var(--surface); color:var(--accent); border-color:var(--accent); box-shadow:0 1px 4px #0001; }
body.np .segmented button:disabled { opacity:.55; }
body.np #approvalHint { margin:8px 0 6px; }
body.np .schedule-card { margin:14px 0 6px; padding:14px; border:1px solid var(--line); border-radius:var(--r); background:var(--surface-2); }
body.np .schedule-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
body.np .schedule-head .label { margin:0; }
body.np .tz-badge { flex:none; padding:3px 8px; border-radius:999px; font-size:11px; font-weight:650; letter-spacing:.06em; color:var(--accent); background:var(--surface-2); }
body.np .schedule-times { display:grid; grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr); align-items:center; gap:6px; margin:12px 0 14px; }
body.np .time-tile { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; min-height:74px; padding:8px; border-radius:14px; border:1px solid var(--line); background:var(--surface); color:var(--text); }
body.np .time-tile small { font-size:12px; color:var(--muted); text-transform:lowercase; }
body.np .time-tile b { font-size:clamp(22px,7.6vw,30px); line-height:1.15; font-weight:650; font-variant-numeric:tabular-nums; letter-spacing:.01em; }
body.np .time-tile:hover,body.np .time-tile:focus-visible { border-color:var(--accent); }
body.np .schedule-dash { height:2px; border-radius:2px; background:var(--line); }
body.np .day-line { position:relative; height:14px; border-radius:7px; background:var(--surface-3); overflow:hidden; }
body.np .day-window { position:absolute; top:0; bottom:0; background:color-mix(in srgb,var(--accent) 28%,transparent); }
body.np .day-line i { position:absolute; top:3px; bottom:3px; width:2px; margin-left:-1px; border-radius:1px; background:var(--accent); }
body.np .day-scale { display:flex; justify-content:space-between; margin-top:4px; font-size:10.5px; color:var(--muted); font-variant-numeric:tabular-nums; }
body.np .schedule-presets { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
body.np .chip.mini { min-height:44px; padding:8px 12px; font-size:12.5px; border-radius:10px; }
body.np #everyChips { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
body.np #everyChips .chip { min-width:0; padding:10px 2px; font-size:12.5px; white-space:nowrap; }
body.np #slotSummary { margin-top:10px; }
body.np .warn-notice { margin:8px 0 10px; border:1px solid color-mix(in srgb,var(--warn,#956623) 45%,transparent); background:color-mix(in srgb,var(--warn,#956623) 10%,var(--surface)); color:var(--text); }

/* ── Bottom sheet with time wheels ─────────────────────────────────────────── */
body.sheet-open { overflow:hidden; }
.sheet-backdrop { position:fixed; inset:0; z-index:40; display:flex; align-items:flex-end; justify-content:center; background:#0d1424a6; backdrop-filter:blur(4px); }
.sheet-backdrop[hidden] { display:none; }
.sheet { width:min(520px,100%); max-height:calc(100dvh - 24px); overflow:auto; padding:10px 16px calc(16px + var(--safe-bottom,0px)); background:var(--np-solid,var(--surface)); border:1px solid var(--np-glass-line,var(--line)); color:var(--text); border-radius:20px 20px 0 0; box-shadow:0 -12px 40px #0003; animation:sheet-in .22s ease-out; }
@media (min-width:600px) { .sheet-backdrop { align-items:center; } .sheet { border-radius:20px; } }
@media (prefers-reduced-motion:reduce) { .sheet { animation:none; } }
@keyframes sheet-in { from { transform:translateY(24px); opacity:.6; } to { transform:none; opacity:1; } }
.sheet-grip { display:block; width:40px; height:4px; margin:0 auto 10px; border-radius:2px; background:var(--line); }
.sheet-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sheet-head h3 { margin:0; font-size:17px; outline:none; }
.sheet .hint { margin:6px 0 10px; }
.sheet-quick { display:flex; align-items:center; gap:10px; width:100%; min-height:48px; margin:2px 0 12px; padding:10px 14px; border-radius:12px; border:1px solid var(--accent); background:var(--surface-2); color:var(--accent); font-size:14px; font-weight:550; text-align:left; }
.sheet-quick .ic { flex:none; }
.sheet-days { display:flex; gap:6px; overflow-x:auto; padding:2px 0 10px; scroll-snap-type:x proximity; scrollbar-width:none; }
.sheet-days::-webkit-scrollbar { display:none; }
.sheet-days .day-chip { flex:none; min-height:40px; padding:8px 12px; scroll-snap-align:start; white-space:nowrap; }
.sheet-days .day-chip::first-letter { text-transform:uppercase; }
.wheels { position:relative; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:4px; height:220px; margin:4px 0 6px; }
.wheel { position:relative; z-index:1; height:220px; overflow-y:auto; scroll-snap-type:y mandatory; overscroll-behavior:contain; scrollbar-width:none; -webkit-mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent); mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent); border-radius:12px; outline:none; }
.wheel::-webkit-scrollbar { display:none; }
.wheel:focus-visible { box-shadow:inset 0 0 0 2px var(--accent); }
.wheel-pad { height:88px; }
.wheel-item { height:44px; display:flex; align-items:center; justify-content:center; scroll-snap-align:center; font-size:22px; font-variant-numeric:tabular-nums; color:var(--muted); cursor:pointer; user-select:none; }
.wheel-item.on { color:var(--text); font-size:28px; font-weight:650; }
.wheel-colon { font-size:28px; font-weight:650; color:var(--text); }
.wheel-focus { position:absolute; left:0; right:0; top:88px; height:44px; border-radius:12px; background:var(--surface-2); border:1px solid var(--line); pointer-events:none; }
.sheet-note { min-height:20px; margin:4px 0 12px; font-size:13px; text-align:center; color:var(--muted); }
.sheet-note.err { color:var(--danger); }
.sheet-actions { display:grid; grid-template-columns:1fr 1.4fr; gap:8px; }
.sheet-actions button { min-height:48px; }

/* ── Scheduled posts tab ────────────────────────────────────────────────────── */
body.np .feed-tabs button { white-space:normal; gap:4px; }
body.np .planned-post header .tag { display:inline-flex; align-items:center; gap:6px; }
body.np .planned-post header .tag .ic { width:14px; height:14px; }
body.np .planned-post .text { max-height:9.5em; overflow:hidden; }
body.np .planned-post.expanded .text { max-height:none; overflow:visible; }
body.np .acts button .ic { vertical-align:-3px; }

body.np :is(#feed,#planned)>.post { container-type:inline-size; }
body.np :is(#feed,#planned) .acts {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px;
}
body.np :is(#feed,#planned) .acts button {
  min-width:0; min-height:var(--control-height); padding:8px; gap:5px;
  white-space:normal; line-height:1.3;
}
body.np #planned [data-plan="unschedule"] { color:var(--text); }
@container (max-width:559px) {
  body.np :is(#feed,#planned) .acts button:last-child:nth-child(odd) {grid-column:1/-1}
}
@container (max-width:276px) {
  body.np :is(#feed,#planned) .acts button .ic {display:none}
}
@container (min-width:560px) {
  body.np :is(#feed,#planned) .acts {grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
}
/* Three feed tabs: the longer label gets more room; small phones use a smaller font. */
body.np .feed-tabs button { flex:1 1 auto; padding:10px 6px; }
@media (max-width:360px) { body.np .feed-tabs button { font-size:12px; padding:10px 4px; } body.np .feed-tabs { gap:2px; } }

/* Indigo visual return: legacy palette on the current accessible layout.
   Opaque surfaces and static gradients avoid backdrop blur and animated layers. */
body.np {
  --bg:#e7eff8; --surface:#f7fbff; --surface-2:#edf4fc; --surface-3:#dde8f4;
  --text:#0f1b2d; --muted:#53657c; --line:#cbd9e9;
  --accent:#0a6f9e; --accent-2:#5b4fc4; --button:#2a8fc2;
  --selected:#dfedf9; --rail:#eef5fc; --canvas:#e7eff8;
  --primary-ink:#102033; --ok:#24755d; --warn:#88550f; --danger:#b13c48;
  --np-solid:var(--surface); --np-field:var(--surface); --np-glass-line:var(--line);
  --indigo-primary:linear-gradient(125deg,#bdf1ff,#7cd2fb 45%,#ada6ff);
  --indigo-hero:linear-gradient(135deg,#d5eafb,#e3def8 55%,#d6edf5);
}
:root[data-theme="dark"] body.np {
  --bg:#08111d; --surface:#101c2c; --surface-2:#162538; --surface-3:#24354d;
  --text:#f2f7ff; --muted:#a8b8cb; --line:#2a3b51;
  --accent:#91e4ff; --accent-2:#b8b1ff; --button:#6fcff7;
  --selected:#20364c; --rail:#0c1725; --canvas:#08111d;
  --primary-ink:#102033; --ok:#7fe0bd; --warn:#ffd38b; --danger:#ff938b;
  --indigo-primary:linear-gradient(125deg,#cff7ff,#89dcff 45%,#b8b1ff);
  --indigo-hero:linear-gradient(135deg,#19344b,#29283f 55%,#173342);
}
body.np #workspaceScroll {
  background:radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--accent) 8%,transparent),transparent 55%),var(--canvas);
}
:root body.np .mark { background:#087ff5 url("./seasonal/posty-logo.png") center / 104% no-repeat; }
body.np .mark::after { content:none; }
body.np .accent,body.np .next-step button,body.np .acts .ok,body.np .billing-change-plan,body.np #billingContinue,
:root[data-theme="dark"] body.np .accent,:root[data-theme="dark"] body.np .next-step button,:root[data-theme="dark"] body.np .acts .ok {
  background:var(--indigo-primary); color:var(--primary-ink); border-color:transparent;
}
body.np .next-step,:root[data-theme="dark"] body.np .next-step {
  background:var(--indigo-hero); border-color:var(--line);
}
body.np .card,body.np .post,body.np .group,body.np .src,body.np .action-tile,
body.np .tariff,body.np .current-plan { border-radius:16px; }

/* Alignment pass: shared spacing, compact navigation, no decorative subtitles. */
body.np .workspace-intro { margin:0 0 24px; }
body.np .workspace-intro h2 { margin:0; font-size:26px; line-height:32px; letter-spacing:-.5px; }
body.np .workspace-intro p { margin:8px 0 0; }
body.np .next-step,:root[data-theme="dark"] body.np .next-step { padding:20px; gap:20px; }
body.np .next-step h3 { margin:0; font-size:20px; line-height:28px; }
body.np .next-step p { margin:8px 0 0; }
body.np .next-step button { min-height:48px; margin:0; }
body.np .home-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:24px 0; padding:0; border:0; }
body.np .home-actions .action-tile {
  display:flex; flex-direction:row; justify-content:flex-start; align-items:center;
  gap:12px; min-width:0; min-height:56px; padding:16px;
  border:1px solid var(--line); border-radius:12px; background:var(--surface);
}
body.np .home-actions .action-tile>span:not(.tile-icon) { min-width:0; flex:1; }
body.np .home-actions .action-tile b { display:block; font-size:14px; line-height:20px; }
body.np .home-actions .action-tile small { display:none; }
body.np .home-actions .tile-icon { flex:0 0 20px; width:20px; height:20px; margin:0; color:var(--accent); }
body.np .home-actions .forward { flex:0 0 16px; width:16px; height:16px; margin:0; }
body.np #statsGrid { margin:24px 0; gap:0; }
body.np #statsGrid .stat { padding:0 16px; }
body.np #statsGrid .stat:first-child { padding-left:0; }
body.np #statsGrid .stat:last-child { padding-right:0; }
body.np #statsGrid .stat b { line-height:40px; }
body.np #statsGrid .stat i { margin-top:4px; line-height:18px; }
body.np .feed-tabs { gap:8px; margin-bottom:16px; }
body.np .group>summary { min-height:56px; }
body.np #app .nav button { min-width:0; }
@media(max-width:699px) {
  body.np .workspace-intro { margin-bottom:20px; }
  body.np .workspace-intro h2 { font-size:24px; line-height:32px; }
  body.np .home-actions { gap:8px; }
  body.np .home-actions .action-tile { padding:12px; gap:8px; }
  body.np .home-actions .forward { display:none; }
  body.np #statsGrid .stat { padding-left:12px; padding-right:12px; }
}
body.np .home-actions .action-tile { flex-wrap:nowrap; }
body.np .home-actions .action-tile>span:nth-child(2) { flex:1 1 auto; }
body.np .settings-shortcuts {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,208px),1fr));
  grid-auto-rows:1fr;
  gap:var(--control-gap); margin:0 0 16px;
}
body.np .settings-shortcuts .action-tile {
  display:grid; grid-template-columns:20px minmax(0,1fr) 16px; align-items:center;
  min-width:0; min-height:56px; padding:12px 16px; gap:12px;
  border-radius:var(--control-radius); color:var(--text); text-decoration:none; text-align:start;
}
body.np .settings-shortcuts .tile-icon { width:20px; height:20px; flex:0 0 20px; }
body.np .settings-shortcuts .external-arrow { justify-self:center; color:var(--muted); }
body.np .support-link { min-height:48px; margin:0 0 16px; padding:12px 16px; }
body.np .publish-card { padding:20px; gap:16px; border-radius:16px; }
body.np .publish-card .hint { margin:0; line-height:1.5; }
body.np .publish-card button { min-height:48px; margin:0; }

/* Liquid glass: confined to orientation and primary action surfaces.
   Static highlights, no animated filter or large composited background. */
body.np {
  --glass-fill:linear-gradient(125deg,#ffffffda,#edf6ffc9 55%,#e8e4f6cf);
  --glass-edge:#ffffffed; --glass-highlight:#ffffffd9; --glass-shade:#2a547516;
  --glass-hero:radial-gradient(ellipse at 8% 0%,#ffffffb3,transparent 58%),linear-gradient(125deg,#d7effbe8,#e7e4f5e6 60%,#d5eaf5e8);
}
:root[data-theme="dark"] body.np {
  --glass-fill:linear-gradient(125deg,#2b4655cc,#142a3ee0 55%,#292d48cc);
  --glass-edge:#c2eaff3d; --glass-highlight:#e1f6ff55; --glass-shade:#00000040;
  --glass-hero:radial-gradient(ellipse at 8% 0%,#a0e5ff24,transparent 58%),linear-gradient(125deg,#244354e8,#222e48e6 60%,#1d3946e8);
}
body.np #channelBar {
  background:var(--glass-fill); border-bottom-color:var(--glass-edge);
  box-shadow:inset 0 1px 0 var(--glass-highlight),0 6px 20px var(--glass-shade);
}
body.np .next-step,:root[data-theme="dark"] body.np .next-step {
  background:var(--glass-hero); border:1px solid var(--glass-edge);
  box-shadow:inset 0 1px 0 var(--glass-highlight),inset 0 -1px 0 #ffffff0a,0 10px 24px var(--glass-shade);
}
body.np .next-step button,:root[data-theme="dark"] body.np .next-step button {
  background:linear-gradient(170deg,#ffffff80,transparent 48%),var(--indigo-primary);
  border:1px solid #eaffff99;
  box-shadow:inset 0 1px 0 #ffffffb3,inset 0 -2px 3px #526ba02e,0 3px 8px #061b3026;
}
body.np #app .nav button.active {
  background:var(--glass-fill); color:var(--accent);
  box-shadow:inset 0 0 0 1px var(--glass-edge),inset 0 1px 0 var(--glass-highlight);
}
@media(max-width:1079px) {
  body.np #app {
    --dock-bottom:max(8px,var(--safe-bottom));
    --dock-left:max(10px,env(safe-area-inset-left));
    --dock-right:max(10px,env(safe-area-inset-right));
    --picker-top:5px;
    --dock-button:48px;
    --dock-height:calc(var(--dock-button) + 12px);
    --dock-tint:rgba(237,246,255,.55);
    --dock-active:rgba(213,234,250,.71);
    --dock-ink:#233951;
  }
  :root[data-theme="dark"] body.np #app {
    --dock-tint:rgba(18,36,52,.67);
    --dock-active:rgba(38,77,102,.74);
    --dock-ink:#eef7ff;
  }
  body.np #app:has(#nav:not([hidden])) #workspaceScroll {
    padding-bottom:calc(var(--dock-height) + var(--dock-bottom) + 10px);
    scroll-padding-bottom:calc(var(--dock-height) + var(--dock-bottom) + 10px);
  }
  body.np #app #channelBar {
    position:relative; z-index:10; height:var(--dock-height); box-sizing:border-box;
    margin:var(--picker-top) var(--dock-right) 0 var(--dock-left);
    width:calc(100% - var(--dock-left) - var(--dock-right)); align-self:center;
    padding:5px 7px; gap:4px;
  }
  body.np #app #channelBar .channel-avatar,body.np #app #addChannel {
    background:transparent; border:0; color:var(--dock-ink);
  }
  body.np #app #channelBar,body.np #app .nav {
    max-width:540px; border:1px solid var(--glass-edge); border-radius:20px;
    background:var(--surface);
    box-shadow:inset 0 1px 0 var(--glass-highlight),0 4px 18px var(--glass-shade);
  }
  /* Let the workspace scroll behind the picker. When the add form is open it
     keeps its own row, with the workspace starting below the form. */
  body.np #channelBar:not([hidden]) ~ #addChannelRow[hidden] + #workspaceScroll {
    --picker-space:calc(var(--dock-height) + var(--picker-top));
    margin-top:calc(-1 * var(--picker-space));
    scroll-padding-top:var(--picker-space);
  }
  body.np #channelBar:not([hidden]) ~ #addChannelRow[hidden] + #workspaceScroll::before {
    content:""; display:block; height:var(--picker-space); flex:none;
  }
  body.np #app .nav {
    position:absolute; bottom:var(--dock-bottom);
    left:var(--dock-left); right:var(--dock-right);
    width:auto; margin-inline:auto; padding:5px; gap:2px;
  }
  @supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    body.np #app .nav,body.np #app #channelBar {
      background:var(--dock-tint);
      -webkit-backdrop-filter:blur(7px) saturate(135%);
      backdrop-filter:blur(7px) saturate(135%);
    }
  }
  body.np #app .nav button {
    min-height:var(--dock-button); border-radius:15px; color:var(--dock-ink);
  }
  body.np #app .nav button.active {
    background:var(--dock-active); color:var(--dock-ink);
  }
}
@media(prefers-reduced-transparency:reduce) {
  body.np #app #channelBar,body.np #app .nav,body.np #app .nav button.active { background:var(--surface); backdrop-filter:none; -webkit-backdrop-filter:none; }
  body.np .next-step,:root[data-theme="dark"] body.np .next-step { background:var(--surface-2); }
}

/* Secondary post actions share card edges and a predictable touch target. */
body.np .post-report {
  display:flex; align-items:center; justify-content:center;
  box-sizing:border-box; width:100%; min-height:44px;
  margin:12px 0 0; padding:10px 14px;
  font-size:13px; line-height:20px; white-space:normal;
  color:var(--muted); background:transparent;
}
body.np .history-item > [data-unfilter] {
  display:flex; justify-content:center; align-items:center;
  box-sizing:border-box; width:100%; min-height:44px; margin:8px 0 0;
  padding:10px 14px; text-align:center; white-space:normal;
}
body.np .manual-access { margin:12px 0; }
body.np .manual-access > summary { cursor:pointer; padding:12px 0; }
body.np .history-item > .hint { display:block; margin-top:12px; }
body.np #page-admin .admin-channel-open { min-height:44px; margin:0; white-space:normal; }
body.np .report-dialog {
  background:var(--surface); color:var(--text); border-color:var(--line);
  padding:24px; border-radius:16px;
}
body.np .report-dialog form { display:grid; gap:12px; min-width:0; }
body.np .report-dialog h2 { margin:0 0 4px; line-height:1.3; }
body.np .report-dialog label { line-height:1.4; }
body.np .report-dialog textarea { margin:0; min-height:120px; resize:vertical; }
body.np .report-dialog .acts { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:4px 0 0; }
body.np .report-dialog .acts button { margin:0; min-width:0; min-height:44px; line-height:20px; }
body.np .report-dialog [type="submit"] { background:var(--accent); color:var(--bg); }

body.np .admin-sector { margin:12px 0; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
body.np .admin-sector>summary { display:flex; align-items:center; justify-content:space-between; min-height:52px; padding:12px 16px; cursor:pointer; list-style:none; font-weight:600; }
body.np .admin-sector>summary::-webkit-details-marker { display:none; }
body.np .admin-sector>summary .ic { transform:rotate(-90deg); }
body.np .admin-sector[open]>summary .ic { transform:rotate(90deg); }
body.np .admin-sector-body { padding:0 12px 12px; }
body.np .admin-sector-body>.section:first-child { margin-top:8px; }
body.np #page-admin .adminrow-title { min-height:44px; }
body.np #page-admin .adminrow-title small { display:block; color:var(--muted); font-weight:400; }
body.np #page-admin .adminrow-title .tag { white-space:nowrap; }
body.np #page-admin .adminrow-title .hint { margin:0; }
body.np #page-admin .client-access>.access-grid { margin-block:12px; }
body.np #page-admin .polza-card>.section:first-child,
body.np #page-admin .polza-add .hint { margin-top:0; }
body.np #page-admin :is(#ocrTestStatus,#polzaTestStatus,#editPriceStatus):empty { display:none; }
body.np #page-admin .polza-key { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
body.np #page-admin .polza-key .pair { flex-wrap:wrap; gap:2px 12px; }
body.np #page-admin .polza-key .check { min-height:44px; font-size:13px; }
body.np #page-admin .polza-key input[type=radio] {
  appearance:auto; flex:none; width:19px; height:19px; min-height:0; padding:0; margin:0;
  accent-color:var(--accent);
}
body.np #page-admin .polza-key [data-polza-delete] { margin-inline-start:auto; }
body.np #page-admin .admin-key-form { margin:0; border:0; border-radius:0; }
body.np #page-admin .outreach { display:grid; gap:12px; }
body.np #page-admin .outreach-item .adminrow-title { flex-wrap:wrap; gap:4px 16px; }
body.np #page-admin .outreach-item .adminrow-title .grow { flex:1 0 7rem; }
body.np #page-admin .outreach-item .adminrow-title .hint { flex:2 1 16rem; }
body.np #page-admin .outreach-counts { display:flex; flex-wrap:wrap; gap:2px 14px; }
body.np #page-admin #ocrBlock .grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
body.np #page-admin #ocrBlock { container-type:inline-size; }
body.np #page-admin #ocrBlock>.adminrow { padding:0; border:0; margin:0; }
body.np #page-admin #ocrBlock .ocr-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,6.5rem),1fr)); gap:8px; margin:12px 0; }
body.np #page-admin #ocrBlock .ocr-actions button { min-height:44px; white-space:normal; }
body.np #page-admin #ocrBlock>.group { margin:12px 0 0; }
@container (max-width:680px) {
  body.np #page-admin #ocrBlock .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@container (max-width:295px) {
  body.np #page-admin #ocrBlock .grid { grid-template-columns:minmax(0,1fr); }
  body.np #page-admin #ocrBlock :is([data-ocr=resume],[data-ocr=reset]) { grid-column:1/-1; }
  body.np #page-admin #ocrBlock .stat { flex-direction:row-reverse; align-items:center; text-align:start; }
  body.np #page-admin #ocrBlock .stat b { font-size:18px; }
}
@media(max-width:560px) {
  body.np #adminUsers .access-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,10.5rem),1fr)); }
  body.np #adminUsers .access-grid label { grid-template-rows:auto 48px; }
  body.np #page-admin details.adminrow>.adminrow-title { display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px 10px; }
  body.np #page-admin details.adminrow>.adminrow-title .grow { grid-column:1 / -1; }
  body.np #page-admin details.adminrow>.adminrow-title .tag { justify-self:start; }
  body.np #page-admin details.adminrow>.adminrow-title .sub { margin:0; }
}

.access-action {display:flex;align-items:center;justify-content:center;box-sizing:border-box;text-decoration:none;min-height:44px}


.billing-actions, #starShop {display:grid;gap:14px}
.billing-actions #sitePay {min-height:48px;text-align:center}
.audit-control {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
.audit-control .hint {margin:4px 0 0}
@media (max-width:480px) {
  .audit-control {grid-template-columns:1fr}
}
#starShop[hidden], #starShop [hidden], .outreach [hidden] {display:none}
#starShop .label, .outreach .card {display:grid;gap:8px;margin:0;min-width:0}
#starShop select, .outreach :is(input,textarea,button,a.access-action) {box-sizing:border-box;min-width:0;max-width:100%;min-height:44px}
#starStatus:empty {display:none}
.outreach .card {gap:12px}
.outreach textarea {width:100%;resize:vertical}
.outreach .access-action {display:grid;place-items:center;text-align:center}
.outreach-item {padding-block:12px;border-top:1px solid var(--line);overflow-wrap:anywhere}
.outreach-item p {white-space:pre-wrap;max-height:16rem;overflow:auto}
.outreach-item small {display:block}
.outreach-actions,#referralsList {display:flex;gap:8px;flex-wrap:wrap}
#referralsDetail {min-width:0;overflow-wrap:anywhere}
#referralsDetail:not(:empty) {display:grid;gap:12px;padding-top:12px;border-top:1px solid var(--line)}
#referralsDetail h4 {margin:0}
#referralsDetail .outreach-actions {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr))}
#referralsDetail .ref-totals {grid-template-columns:repeat(auto-fit,minmax(min(100%,6.5rem),1fr));margin:0}
#referralsDetail .ref-totals .stat {align-items:flex-start;justify-content:flex-start;padding:10px;gap:4px}
#referralsDetail .ref-totals b {font-size:20px;font-variant-numeric:tabular-nums}
#referralsDetail .ref-history {width:100%;border-collapse:collapse;font-size:12px;line-height:1.4;font-variant-numeric:tabular-nums}
#referralsDetail .ref-history caption {text-align:start;font-size:13px;color:var(--muted);margin-bottom:6px}
#referralsDetail .ref-history :is(th,td) {padding:6px 3px;border-bottom:1px solid var(--line);text-align:end;vertical-align:top}
#referralsDetail .ref-history th:first-child {text-align:start}
#referralsDetail .ref-history meter {display:block;width:100%;height:8px}

.np .welcome-shell {height:auto;max-height:calc(100dvh - 24px);align-self:center}
.np .welcome-body {display:block;flex:none}
.np .welcome-copy h2 {margin:0 0 8px}
.np .welcome-copy>p {display:block;margin:0}
.practice #channelBar #addChannel,.practice #supportLink {display:none}
#clientSearch {align-items:center;margin-bottom:12px}
#clientSearch label {flex-basis:100%}
#clientSearch input {flex:1;min-width:0}

.public-plans #webPaySheet #accountQuote {border:0;box-shadow:none;padding:0}
.public-plans #webPaySheet #cancelQuote,.public-plans #paymentMethodHint:empty {display:none}

/* Action links, buttons and adjacent form fields share the same control geometry. */
body:is(.np,.account-page) { --control-radius:8px; --control-height:48px; --control-gap:10px }
body:is(.np,.account-page) :is(a.ghost,a.accent,button.ghost,button.accent),
body:is(.np,.account-page) :is(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select,textarea) {
  border-radius:var(--control-radius); box-sizing:border-box;
}
body.np select:not(.select-wrap select) { appearance:auto; }
body.np :is(input,select,textarea):focus-visible {
  outline:2px solid var(--accent); outline-offset:3px;
}
body.np .header-actions .ic { width:20px; height:20px; }
body.np .interface-preferences[open]>summary { color:var(--accent); background:var(--selected); }
body.np .interface-preferences .preferences {
  max-height:calc(var(--app-height,100dvh) - var(--safe-top,0px) - 88px);
  overflow-y:auto; overscroll-behavior:contain;
}
body.np #app .nav-indicator { display:inline-flex; align-items:center; }
body.np #app .nav .badge {
  color:var(--primary-ink); background:var(--indigo-primary);
  font-size:10px; line-height:16px; font-variant-numeric:tabular-nums;
}
@media(max-width:1079px) {
  body.np #app .nav-indicator { gap:3px; min-height:22px; }
  body.np #app .nav .badge { position:static; padding:0 4px; }
}

#publicOffer {
  position:fixed; inset:50% auto auto 50%; transform:translate(-50%, -50%); margin:0;
  box-sizing:border-box; width:min(26rem,calc(100% - 32px)); height:fit-content; min-height:0;
  max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px);
  padding:clamp(18px,4vw,24px); border:1px solid var(--line); border-radius:16px;
  background:var(--surface); color:var(--text); font:inherit; overflow:auto;
}
#publicOffer[open] { display:block; }
body:has(#publicOffer[open]) #boot .spinner { visibility:hidden; }
#publicOffer::backdrop { background:rgb(8 17 29 / 60%); }
#publicOffer h2 { margin:0; font-size:20px; line-height:1.3; }
#publicOffer h2:focus { outline:none; }
#publicOffer p { margin:12px 0 0; font-size:14px; line-height:1.55; }
#publicOffer [role=alert] { color:var(--danger); }
#publicOffer button {
  display:block; width:fit-content; max-width:100%; height:auto; min-height:44px;
  margin:16px 0 0; padding:9px 16px; font-size:14px; line-height:1.35;
}
body:is(.np,.account-page) a:is(.access-action,.support-link) {
  min-height:var(--control-height); padding:10px 16px; font:inherit; font-size:15px;
  font-weight:600; line-height:1.3; text-decoration:none;
}
#gate .gate-actions,#gate .gate-code,#botCodeForm { display:grid; gap:var(--control-gap) }
#gate .gate-code {margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
#gate :is(.gate-actions,.gate-code)>:is(button,a,input),
.account-page #accountAuth :is(.access-action,input,button) {
  display:flex; align-items:center; justify-content:center; width:100%; min-width:0;
  min-height:var(--control-height); padding:10px 16px; margin:0; font-size:16px; line-height:1.35;
}
#gate .gate-code label,#botCodeForm label {margin:0;text-align:start;font-size:14px;color:var(--muted)}
#gate #gateHint:empty,.account-page #loginStatus:empty {display:none}
#gate .gate-actions>[hidden] {display:none}

#onboarding .hero {display:grid;gap:var(--control-gap)}
#onboarding .hero>:is(.ic,h2,.channel-kind,p,button),
#onboarding .hero :is(.steps,input,.hint) {margin:0}
#onboarding .hero>.ic {margin-bottom:4px}
#onboarding .channel-public,#onboarding .channel-private {display:grid;gap:var(--control-gap)}
#onboarding .steps {padding-block:6px}
#onboarding .hero .wide {min-height:var(--control-height)}
#onboarding .hero .text-link {justify-self:start}
.account-page #accountAuth {display:grid;gap:12px;align-content:start;text-align:start}
.account-page #accountAuth[hidden] {display:none}
.account-page #accountAuth :is(h2,p),#webPaySheet header h2 {margin:0}
.account-page #accountAuth .hint {font-size:14px;line-height:1.5}
.account-page #accountAuth #botCode {letter-spacing:.15em;text-align:start}
.account-page #accountAuth .access-action {border:1px solid var(--line);border-radius:var(--control-radius);color:var(--text)}
.public-plans #webPaySheet {padding:20px;max-height:calc(100dvh - 32px)}
.public-plans #webPaySheet #accountAuth {padding:0;margin:16px 0 0}
.public-plans #webPaySheet #closeWebPay {width:44px;height:44px;min-width:44px;padding:0;font-size:24px;line-height:1}
.public-plans #webPaySheet header {align-items:center}

body.np .header-actions :is(#openAdmin,#openTutorial,.interface-preferences>summary) {border-radius:var(--control-radius)}

/* Keep layout rules from revealing controls hidden by the checkout state. */
.account-page #paymentMethodField[hidden], .account-page #receiptField[hidden] {display:none}
.account-page #paymentMethodField {min-width:0;padding:0;margin:0;border:0}
.account-page #paymentMethodField legend {padding:0 0 6px}
.account-page .payment-choices {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.account-page .payment-choices label {
  display:flex;gap:7px;align-items:flex-start;min-width:0;min-height:56px;padding:10px;
  border:1px solid var(--line);border-radius:var(--control-radius);background:var(--surface);cursor:pointer;
}
.account-page .payment-choices input {margin:3px 0 0;width:15px;height:15px;flex:none;accent-color:var(--accent)}
.account-page .payment-choices label:has(:checked) {background:var(--surface-2);border-color:var(--accent)}
.account-page .payment-choices label:has(:focus-visible) {outline:2px solid var(--accent);outline-offset:2px}
.account-page .payment-choices label:has(:disabled) {opacity:.55;cursor:default}
.account-page .payment-choices b,.account-page .payment-choices small {display:block;line-height:1.35}
.account-page .payment-choices b {font-size:15px;color:var(--text)}
.account-page .payment-choices small {font-size:12px;color:var(--muted);margin-top:2px}

.account-page .account-header .header-actions {display:flex;align-items:center;gap:12px;min-width:0}
.account-page .account-header .status {margin:2px 0 0}
.account-page .account-header .text-link {color:var(--accent);font-size:14px}
.account-page.public-plans .account-shell {max-width:calc(42rem + 56px)}
.account-page.public-plans #plans {margin:clamp(22px,4vw,36px) 0}
.account-page.public-plans .billing-section-head {margin:0}
.account-page.public-plans #plansTitle {font-size:clamp(24px,4vw,32px);line-height:1.2;letter-spacing:-.03em}
.account-page.public-plans #plans>.hint {margin:8px 0 0;color:var(--muted);font-size:14px}
.account-page.public-plans .plan-option {
  grid-template-columns:minmax(0,1fr) auto 10px;min-height:76px;gap:12px;padding:14px 16px;
}
.account-page.public-plans .plan-option small {font-size:13px;line-height:1.4}
.account-page.public-plans .plan-option-price {font-variant-numeric:tabular-nums}
.account-page.public-plans .plan-option>[aria-hidden] {justify-self:end;color:var(--muted);font-size:20px;line-height:1}
.account-page select {appearance:auto}
.account-page #webPaySheet {overscroll-behavior:contain}
.account-page #webPaySheet>header {position:sticky;top:-1px;z-index:1;background:var(--surface)}
.account-page #webPaySheet #webPayTitle {line-height:1.25;outline:0}
.account-page #webPaySheet :is(#loginTitle,.checkout-heading) {display:none}
.account-page #webPaySheet #accountQuote {gap:16px;margin:16px 0 0}
.account-page #webPaySheet #quoteSummary {padding:14px 16px;border-radius:var(--control-radius);background:var(--surface-2)}
.account-page #webPaySheet .quote-price {line-height:1.18;margin:4px 0 8px;font-variant-numeric:tabular-nums}
.account-page :is(#receiptField,#paymentMethodField) {display:grid;gap:6px}
.account-page :is(#receiptField,#paymentMethodField) .label {margin:0}
.account-page :is(#paymentMethodHint,#checkoutStatus):empty {display:none}
.account-page #accountCheckout {margin:0}
.account-page .billing-terms b {color:var(--text)}
/* Keep the account, catalog and checkout on the same vertical rhythm. */
.account-page .account-shell > .account-header {margin-bottom:0}
.account-page .account-shell > .account-hero {
  width:100%; max-width:32rem; box-sizing:border-box;
  margin:clamp(16px,3vw,32px) auto; padding:clamp(16px,3vw,26px);
  border:1px solid var(--line); border-radius:16px; background:var(--surface);
}
.account-page .account-shell > .account-hero h2 {font-size:clamp(22px,3vw,28px);line-height:1.2}
.account-page .account-preferences {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  max-width:28rem;margin:24px 0 12px;
}
.account-page .account-preferences select {width:100%;min-width:0}
.account-page .account-footer {margin-top:16px;line-height:1.65;overflow-wrap:anywhere}
.account-page.public-plans #plans {margin:16px 0 24px}
.account-page.public-plans #accountPlans {margin:16px 0}
.account-page.public-plans .billing-terms {margin-top:16px}
.account-page #webPaySheet>header {gap:12px}
.account-page #webPaySheet #webPayTitle {min-width:0;overflow-wrap:anywhere}
.account-page #webPaySheet #closeWebPay {flex:none}
.account-page #webPaySheet[open] {scroll-padding-block:60px 16px}
#adminPrices,#adminPrices label {display:grid;gap:8px}
#adminPrices :is(input,select,button) {width:100%;min-width:0;min-height:48px}

.admin-channel-actions {display:flex; flex-wrap:wrap; gap:8px}
.admin-channel-actions > * {flex:1 1 10rem; min-width:0; text-align:center}

.recovery-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:8px; }
.recovery-actions button { min-width:0; min-height:48px; }

@media (max-width: 480px) {
  body.np .client-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.np .client-filters .chip { min-width:0; padding-inline:4px; }
}

@media (max-width:1079px) {
  html:has(#app:not([hidden])), body.np:has(#app:not([hidden])) {
    overflow:hidden;
    overscroll-behavior:none;
  }
  body.np #workspaceScroll {
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  body.np #app :is(input, textarea, select), body.np #channelBar select {
    font-size:16px;
  }
}

body.np #page-sources .source-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.np .source-shortcuts :is(#sourceCopyOpen,#sourceSuggestOpen) { grid-column:1/-1; }
#gate .gate-alt { margin-block:12px; }
#gate .gate-alt summary { cursor:pointer; padding-block:10px; }
#gate .gate-alt .gate-code { margin-top:0; }
#gateLead { margin:0 0 16px; }

#gate .gate-links { display:flex; flex-wrap:wrap; gap:0 20px; align-items:center; }
#gate .gate-links button { min-height:44px; margin:0; text-align:start; }
#gateHint:empty { display:none; }

/* Pen annotations belong to the read-only walkthrough. Keep the controls clickable. */
.np.practice .ink-note { width:100%; height:43px; margin:1px 0 2px; pointer-events:none; line-height:0; color:#91e6d3; }
[data-theme=light] .np.practice .ink-note { color:#17665c; }
.np.practice .ink-note svg { display:block; overflow:visible; stroke:currentColor; }
.np.practice .source-shortcuts > .ink-note { grid-column:1/-1; }
