/* Paul Wire - CNN-style layout (white, black text, one red accent, thin rules). Light and dark. */
:root {
  --bg: #ffffff;
  --panel: #f5f5f5;
  --ink: #111111;
  --muted: #2b2b2b;
  --line: #d9d9d9;
  --card: #ffffff;
  --accent: #cc0000;
  --band: #111111;
  --band-ink: #ffffff;
  --glass: rgba(255, 255, 255, 0.86);
  --placeholder-ai: #3d4a5c;
  --placeholder-bills: #2c4a6e;
  --placeholder-retina: #2f5d57;
  --placeholder-hoyas: #3b2c4d;
  --gutter: 16px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e0e0e;
  --panel: #171717;
  --ink: #f4f4f4;
  --muted: #e6e6e6;
  --line: #333333;
  --card: #171717;
  --accent: #ff5a5a;
  --band: #000000;
  --band-ink: #ffffff;
  --glass: rgba(14, 14, 14, 0.86);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0e;
    --panel: #171717;
    --ink: #f4f4f4;
    --muted: #e6e6e6;
    --line: #333333;
  --card: #171717;
    --accent: #ff5a5a;
    --band: #000000;
    --band-ink: #ffffff;
    --glass: rgba(14, 14, 14, 0.86);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 "Helvetica Neue", Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
a { color: var(--ink); }
h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Sticky header: top bar, search, menu and section row */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; }
.bar-left, .bar-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand { font-size: 1.7rem; font-weight: 900; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.brand span { color: var(--accent); }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; flex: 0 0 auto;
}
.icon-btn:hover, .icon-btn:focus-visible, .icon-btn[aria-expanded="true"] { background: var(--panel); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-btn, .btn-text, .btn-sub, .btn-go {
  min-height: 48px; padding: 0 16px; border-radius: 24px; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; white-space: nowrap;
}
.theme-btn { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-text { background: transparent; border: 0; color: var(--ink); }
.btn-sub { background: var(--accent); color: #fff; border: 0; }
.btn-go { background: var(--ink); color: var(--bg); border: 0; }
.theme-btn:hover, .btn-text:hover, .theme-btn:focus-visible, .btn-text:focus-visible { background: var(--panel); }

/* Search and menu panels */
.search-panel { border-top: 1px solid var(--line); background: var(--bg); }
.search-form { display: flex; gap: 8px; padding-top: 10px; padding-bottom: 12px; }
.search-form input {
  flex: 1; min-width: 0; min-height: 48px; font: inherit; font-size: 1.1rem; color: var(--ink); background: var(--bg);
  border: 2px solid var(--line); border-radius: 12px; padding: 0 14px;
}
.search-form input:focus { outline: none; border-color: var(--ink); }
.menu-panel { border-top: 1px solid var(--line); background: var(--bg); }
.menu-links { list-style: none; margin: 0; padding: 0; }
.menu-links a {
  display: flex; align-items: center; min-height: 48px; font-weight: 800; font-size: 1.1rem; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.menu-links a:hover, .menu-links a:focus-visible { color: var(--accent); }
.menu-extra { display: none; gap: 12px; padding: 14px 0 12px; }

/* Section row */
.secnav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.secnav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; font-weight: 800; color: var(--ink);
  text-decoration: none; border-bottom: 3px solid transparent;
}
.secnav a:hover, .secnav a:focus-visible { border-bottom-color: var(--accent); }

/* Dark breaking band */
.band { background: var(--band); color: var(--band-ink); }
.band .wrap { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding-top: 10px; padding-bottom: 10px; font-size: 0.95rem; }
.band-label { background: var(--accent); color: #fff; font-weight: 800; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; }

/* What matters today */
.today { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 700; }

/* Labels */
.label { display: inline-block; color: var(--accent); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.meta { color: var(--muted); font-size: 0.92rem; }

/* Placeholder images (coloured blocks with a label; no photos) */
.thumb {
  display: flex; align-items: flex-end; padding: 12px; color: #fff; font-weight: 800; background: var(--placeholder-ai);
  border-radius: 4px; min-height: 140px; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem;
}
.thumb.bills { background: var(--placeholder-bills); }
.thumb.retina { background: var(--placeholder-retina); }
.thumb.hoyas { background: var(--placeholder-hoyas); }
.thumb.email { background: #3b4252; }
.thumb-lead { min-height: 340px; font-size: 1.2rem; }

/* Top stories row: four equal tiles */
.top-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tile { display: grid; gap: 8px; text-decoration: none; color: var(--ink); align-content: start; }
.tile .thumb { min-height: 120px; }
.tile .headline { font-weight: 800; font-size: 1.08rem; line-height: 1.25; }
.tile:hover .headline, .tile:focus-visible .headline { text-decoration: underline; color: var(--accent); }

/* Lead story (2 columns) + Developing (1 column) */
.lead-area { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.lead-card { display: grid; gap: 12px; align-content: start; }
.lead-card h2 { font-size: 2.3rem; line-height: 1.1; }
.lead-card p { font-size: 1.05rem; }
.card-title { color: var(--ink); text-decoration: none; }
.card-title:hover, .card-title:focus-visible { text-decoration: underline; color: var(--accent); }

.developing { border-left: 1px solid var(--line); padding-left: 24px; }
.developing h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.06em; border-top: 4px solid var(--ink); padding-top: 10px; margin-bottom: 4px; }
.dev-list { list-style: none; margin: 0; padding: 0; }
.dev-item { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.dev-item:last-child { border-bottom: 0; }
.dev-time { color: var(--accent); font-weight: 800; font-size: 0.85rem; }
.dev-item .headline { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.02rem; }
.dev-item .headline:hover, .dev-item .headline:focus-visible { text-decoration: underline; }

/* Section grid: three columns on desktop, one on a phone */
.sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; padding: 28px 0 40px; }
.section-block { display: grid; gap: 16px; align-content: start; scroll-margin-top: 130px; }
.section-block.wide { grid-column: 1 / -1; }
.section-block > header { border-top: 4px solid var(--ink); padding-top: 10px; }
.section-block h2 { font-size: 1.5rem; font-weight: 900; }
.section-note { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: grid; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); align-content: start; }
.card .thumb { min-height: 150px; }
.card h3 { font-size: 1.22rem; line-height: 1.25; }
.card p { margin: 0; }
.card-links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.read-more, .read-link {
  display: inline-flex; align-items: center; min-height: 48px; font-weight: 800; color: var(--ink); text-decoration: none;
}
.read-more { color: var(--accent); }
.read-more:hover, .read-more:focus-visible, .read-link:hover, .read-link:focus-visible { text-decoration: underline; }
.empty-note { font-size: 0.95rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 10px; margin-top: 8px; }
.search-result { padding: 0 0 24px; font-weight: 700; }

/* Footer */
.footer { background: var(--panel); border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 12px; scroll-margin-top: 130px; }
.footer h2 { font-size: 1.2rem; margin: 16px 0 8px; }
.footer ul { padding-left: 18px; margin: 0; }
.footer li { margin-bottom: 6px; font-size: 0.95rem; }
.footer .about { font-size: 1rem; }

/* Toast: feedback for buttons that are not wired up */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 0.98rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* Private email page */
.private-banner { background: var(--accent); color: #fff; text-align: center; font-weight: 800; padding: 12px var(--gutter); }
.private-banner p { margin: 0; }
.email-list { display: grid; gap: 16px; padding: 24px 0; }
.email-item { border-bottom: 1px solid var(--line); padding-bottom: 16px; display: grid; gap: 8px; }
.email-item h2 { font-size: 1.3rem; }
.email-page { padding-top: 20px; }

/* Article pages */
.article { max-width: 760px; padding-top: 24px; padding-bottom: 32px; display: grid; gap: 16px; }
.article h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.12; }
.crumb { margin: 0; font-weight: 800; }
.crumb a { color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.article .byline { margin: 0; color: var(--muted); font-size: 0.95rem; }
.thumb-article { min-height: 200px; }
.article-body { display: grid; gap: 14px; font-size: 1.1rem; }
.article-body p { margin: 0; }
.knowline { background: var(--panel); border-left: 4px solid var(--accent); padding: 14px 16px; margin: 0; }
.article-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.article-links .read-link { min-height: 48px; }

/* Desktop: lead + developing stay side by side; header rows shown */
@media (max-width: 1000px) {
  .top-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet and phone (under 900px): stacked */
@media (max-width: 899px) {
  .lead-area { grid-template-columns: 1fr; gap: 24px; }
  .developing { border-left: 0; padding-left: 0; }
  .sections { grid-template-columns: 1fr; }
  .section-block.wide .cards-3 { grid-template-columns: 1fr; }
}

/* Phone (under 700px) */
@media (max-width: 699px) {
  body { font-size: 18px; }
  .secnav { display: none; }
  .bar-only { display: none; }
  .menu-extra { display: flex; }
  .top-row { grid-template-columns: 1fr; }
  .lead-card h2 { font-size: 1.85rem; }
  .thumb-lead { min-height: 200px; }
  .brand { font-size: 1.5rem; }
  .band .wrap { font-size: 1rem; }
  .sections { gap: 28px; }
  .toast { bottom: 12px; }
}

/* ---- Width: 80% of the screen on desktop, 90% on phones (Paul's rule) ---- */
.wrap { max-width: none; width: 80%; margin: 0 auto; padding: 0; }
@media (max-width: 720px) { .wrap { width: 90%; } }

/* ---- View bar: Front page / Feed / Social, one group ---- */
.viewbar { background: var(--card, #fff); border-bottom: 1px solid var(--line, #e2e5ea); position: sticky; top: 0; z-index: 5; }
.viewbar-in { display: flex; gap: 8px; padding: 10px 0; flex-wrap: wrap; }
.view-btn { font: inherit; font-weight: 700; font-size: 16px; padding: 12px 20px; min-height: 48px; border-radius: 999px; border: 2px solid var(--line, #e2e5ea); background: transparent; color: inherit; cursor: pointer; }
.view-btn.is-on { background: var(--accent, #c4161c); border-color: var(--accent, #c4161c); color: #fff; }
.view-panel[hidden], #front-view[hidden] { display: none; }

/* ---- Feed (Yahoo-style list) ---- */
.feed-list { list-style: none; margin: 16px 0; padding: 0; }
.feed-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line, #e2e5ea); }
.feed-item img { width: 120px; height: 84px; object-fit: cover; border-radius: 8px; }
.feed-item .thumb-ph { width: 120px; height: 84px; border-radius: 8px; background: #3b4252; }
.feed-item h3 { margin: 0 0 4px; font-size: 1.1rem; }
.feed-item p { margin: 0; color: var(--ink); font-size: 0.92rem; }
.feed-item .meta { font-size: 0.85rem; }
@media (max-width: 560px) { .feed-item { grid-template-columns: 96px 1fr; } .feed-item img, .feed-item .thumb-ph { width: 96px; height: 70px; } }

/* ---- Social feed (post cards) ---- */
.social-list { display: grid; gap: 14px; max-width: 640px; margin: 16px auto; }
.post { background: var(--card, #fff); border: 1px solid var(--line, #e2e5ea); border-radius: 14px; padding: 16px; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent, #c4161c); color: #fff; display: grid; place-items: center; font-weight: 700; }
.post h3 { margin: 6px 0; font-size: 1.05rem; }
.post p { margin: 0 0 8px; }
.post-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.post-actions button, .post-actions a { font: inherit; font-size: 15px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line, #e2e5ea); background: transparent; color: inherit; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; }
.post-actions .is-on { background: var(--accent, #c4161c); border-color: var(--accent, #c4161c); color: #fff; }

/* Sections land below the sticky bars when a nav link is clicked */
section[id] { scroll-margin-top: 170px; }

/* Ask for a story: the request box (front page and article pages) */
.ask-box { background: var(--bg); border: 2px solid var(--ink); padding: 18px; margin: 28px 0; }
.ask-box h2 { margin: 0 0 4px; font-size: 26px; line-height: 1.2; }
.ask-box .ask-line { margin: 0 0 12px; color: var(--muted); font-size: 18px; }
.ask-form textarea {
  display: block; width: 100%; min-height: 96px; resize: vertical; box-sizing: border-box;
  font: inherit; font-size: 18px; line-height: 1.4; padding: 12px 14px;
  border: 2px solid var(--ink); border-radius: 0; background: var(--bg); color: var(--ink);
}
.ask-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.ask-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: 10px; }
.ask-count { color: var(--muted); font-size: 15px; }
.ask-send {
  font: inherit; font-size: 18px; font-weight: 700; min-height: 52px; padding: 12px 26px;
  background: var(--accent); color: #fff; border: 0; border-radius: 0; cursor: pointer;
}
.ask-send:disabled { opacity: 0.6; cursor: wait; }
.ask-msg { margin: 12px 0 0; font-size: 18px; font-weight: 700; }
.ask-msg.is-ok { color: var(--ink); border-left: 4px solid var(--ink); padding-left: 10px; }
.ask-msg.is-err { color: var(--accent); border-left: 4px solid var(--accent); padding-left: 10px; }
.more-btn {
  font: inherit; font-size: 18px; font-weight: 700; min-height: 52px; padding: 12px 22px;
  background: var(--ink); color: var(--bg); border: 0; border-radius: 0; cursor: pointer; margin: 16px 0 0;
}
.article .ask-box { margin-top: 20px; }
@media (max-width: 480px) {
  .ask-box { padding: 14px; }
  .ask-box h2 { font-size: 22px; }
  .ask-send, .more-btn { width: 100%; }
}

/* Sticky bars are taller now: sections land just below them */
section[id] { scroll-margin-top: 200px; }

/* Phone: one column that cannot grow past the screen; pictures never wider than their box */
@media (max-width: 720px) { .top-row { grid-template-columns: minmax(0, 1fr); } }
img { max-width: 100%; height: auto; }

/* ---- Contrast and alignment (web design rules) ---- */
.viewbar { background: var(--bg); }
.feed-item, .post { color: var(--ink); }
.feed-item h3 a, .post h3 { color: var(--ink); }
.post { background: var(--card); }
.feed-item p, .post p { color: var(--muted); }
.feed-item p:not(.meta) { color: var(--ink); }
/* same picture box on every card so the rows line up */
img.thumb, .card img, .tile img, .lead-card img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.card, .tile { display: flex; flex-direction: column; }
.card > p, .card > h3 { flex: 0 0 auto; }

/* Maximum contrast: secondary text is the ink colour too, and no grey text on light backgrounds */
.post p, .post .meta, .feed-item p, .feed-item .meta, .meta, .section-note { color: var(--ink); opacity: 1; }

/* Email and text block: a fixed-height box that scrolls, so the page stays short */
.digest-scroll { max-height: 560px; overflow-y: auto; padding-right: 6px; -webkit-overflow-scrolling: touch; }

/* Contrast fix 2026-11-16: every card-like box takes the theme's own colours, so text is never light on white */
.post, .feed-item, .viewbar, .ask-box { background: var(--card); color: var(--ink); }
.post h3, .post p, .post strong, .post .meta, .post-actions button, .post-actions a { color: var(--ink); }
.post-actions .is-on { color: #fff; }
img { background: var(--panel); }
.post img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 10px; margin: 0 0 10px; }
/* Filled red buttons and badges keep the deeper red in dark mode, so white text on them stays readable */
:root { --accent-fill: #cc0000; }
.btn-sub, .band-label, .private-banner, .view-btn.is-on, .avatar, .post-actions .is-on, .ask-box button[type="submit"] { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
/* Paul 2026-11-16: social posts and feed rows are white cards with black text in every theme */
.post, .feed-item { background: #ffffff; color: #111111; border: 1px solid #d9d9d9; border-radius: 14px; }
.feed-item { padding: 14px; margin: 0 0 12px; }
.post h3, .post p, .post strong, .post .meta, .feed-item h3, .feed-item h3 a, .feed-item p, .feed-item .meta,
.post-actions button, .post-actions a { color: #111111; }
.post-actions button, .post-actions a { border-color: #111111; background: #ffffff; }
.post-actions .is-on { background: #cc0000; border-color: #cc0000; color: #ffffff; }
.post img, .feed-item img { background: #e9e9e9; }
.feed-item p, .feed-item p:not(.meta), .feed-item .meta, .feed-item h3 a { color: #111111; }
/* Filter bar for Feed and Social */
.story-filter { padding-top: 16px; display: grid; gap: 12px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 700; font-size: 16px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip span { font-weight: 400; margin-left: 4px; }
.chip.is-on { background: var(--accent-fill, #cc0000); border-color: var(--accent-fill, #cc0000); color: #fff; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-q { flex: 1 1 260px; min-height: 52px; font: inherit; font-size: 18px; padding: 0 16px; border: 2px solid var(--ink);
  border-radius: 12px; background: var(--bg); color: var(--ink); }
.filter-sort { min-height: 52px; font: inherit; font-size: 16px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 12px;
  background: var(--bg); color: var(--ink); }
.filter-count { margin: 0; font-weight: 700; color: var(--ink); }
.filter-empty { font-size: 18px; color: var(--ink); }
.filter-reset { font: inherit; font-weight: 700; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer; }
img.thumb { padding: 0; border: 0; background: var(--panel); }
/* Feed and Social fill the page width (80% desktop, 90% phone via .wrap); social posts flow in columns */
.social-list { max-width: none; margin: 16px 0; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
@media (max-width: 720px) { .social-list { grid-template-columns: 1fr; } }
.story-filter { width: 100%; }

/* New topic and Request an article: prominent, next to the topic chips */
.act-btn { font: inherit; font-weight: 800; font-size: 16px; min-height: 48px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--accent-fill, #cc0000); background: var(--card); color: var(--ink); }
.act-btn span { color: var(--accent); font-size: 1.2em; margin-right: 2px; }
.act-btn:hover, .act-btn:focus-visible { background: var(--accent-fill, #cc0000); color: #fff; }
.act-btn:hover span, .act-btn:focus-visible span { color: #fff; }
.filter-chips .act-btn:first-of-type { margin-left: 8px; }

/* Follow up on each story */
.follow-btn { font: inherit; font-weight: 700; font-size: 15px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 2px solid #cc0000; background: #fff; color: #111; margin-top: 8px; }
.post-actions .follow-btn { margin-top: 0; border-color: #cc0000; }
.follow-btn:hover, .follow-btn:focus-visible { background: #cc0000; color: #fff; }

/* Request window */
.ask-dialog { width: min(640px, 90vw); border: 0; border-radius: 18px; padding: 0; background: var(--card); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.ask-dialog::backdrop { background: rgba(0,0,0,.55); }
.ask-dlg-form { position: relative; display: grid; gap: 12px; padding: 24px; }
.dlg-x { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent;
  color: var(--ink); font-size: 30px; cursor: pointer; }
.dlg-h { margin: 0; font-size: 1.5rem; padding-right: 48px; }
.dlg-story { margin: 0; font-weight: 700; border-left: 4px solid var(--accent-fill, #cc0000); padding-left: 10px; }
.dlg-line { margin: 0; font-size: 18px; }
.dlg-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.dlg-tile { font: inherit; font-size: 15px; font-weight: 700; min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.dlg-tile.is-on { background: var(--accent-fill, #cc0000); border-color: var(--accent-fill, #cc0000); color: #fff; }
.dlg-input { position: relative; }
.dlg-text { width: 100%; min-height: 130px; font: inherit; font-size: 18px; line-height: 1.4; padding: 14px 60px 14px 14px;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--bg); color: var(--ink); resize: vertical; }
.dlg-mic { position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line);
  background: var(--card); font-size: 22px; cursor: pointer; }
.dlg-mic.is-on { background: var(--accent-fill, #cc0000); border-color: var(--accent-fill, #cc0000); }
.dlg-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dlg-count { margin-right: auto; color: var(--ink); }
.dlg-cancel, .dlg-send { font: inherit; font-weight: 800; font-size: 17px; min-height: 52px; padding: 0 24px; border-radius: 12px; cursor: pointer; }
.dlg-cancel { border: 2px solid var(--ink); background: transparent; color: var(--ink); }
.dlg-send { border: 0; background: var(--accent-fill, #cc0000); color: #fff; }
.dlg-send:disabled { opacity: .6; cursor: wait; }
.dlg-msg { margin: 0; font-weight: 700; padding-left: 10px; border-left: 4px solid var(--ink); }
.dlg-msg.is-err { border-left-color: var(--accent-fill, #cc0000); }
@media (max-width: 720px) { .ask-dlg-form { padding: 18px; } .dlg-cancel, .dlg-send { flex: 1; } }
