:root {
    --blue: #007aff;
    --text: #1d1d1f;
    --secondary: #6e6e73;
    --background: #ffffff;
    --separator: #d2d2d7;
    /* iOS's secondary, tertiary and quaternary system fills, and the badge colours, as in the app */
    --fill-2: rgba(120, 120, 128, 0.16);
    --fill-3: rgba(118, 118, 128, 0.12);
    --fill-4: rgba(116, 116, 128, 0.08);
    --orange: #ff9500;
    --indigo: #5856d6;
    color-scheme: light;
}

/* Dark when the device is dark, unless the visitor picked light; or when they picked dark. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --blue: #0a84ff;
        --text: #f5f5f7;
        --secondary: #a1a1a6;
        --background: #000000;
        --separator: #38383a;
        --fill-2: rgba(120, 120, 128, 0.32);
        --fill-3: rgba(118, 118, 128, 0.24);
        --fill-4: rgba(118, 118, 128, 0.18);
        --orange: #ff9f0a;
        --indigo: #5e5ce6;
        color-scheme: dark;
    }
    :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
}
:root[data-theme="dark"] {
    --blue: #0a84ff;
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --background: #000000;
    --separator: #38383a;
    --fill-2: rgba(120, 120, 128, 0.32);
    --fill-3: rgba(118, 118, 128, 0.24);
    --fill-4: rgba(118, 118, 128, 0.18);
    --orange: #ff9f0a;
    --indigo: #5e5ce6;
    color-scheme: dark;
}
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }

* { box-sizing: border-box; }

body {
    margin: 0;
    transition: background-color 0.35s ease, color 0.35s ease;
    background: var(--background);
    color: var(--text);
    font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

header, main, footer {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--secondary);
    cursor: pointer;
}
.theme-toggle:hover { color: var(--text); background: var(--separator); }
.theme-toggle .sun { display: none; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 19px;
}
.brand:hover { text-decoration: none; }

main { flex: 1; padding-bottom: 64px; }

h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 32px 0 8px; }
h2 { font-size: 22px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, li { color: var(--text); }
ul { padding-left: 1.2em; }
li { margin: 6px 0; }

.lead { font-size: 20px; color: var(--secondary); }
.updated { color: var(--secondary); font-size: 15px; margin-top: 0; }

.button {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 980px;
}
.button:hover { text-decoration: none; opacity: 0.9; }

/* Landing */
.home main { display: flex; align-items: center; justify-content: center; }
.hero { width: 100%; text-align: center; padding: 48px 0; }
.hero-logo { position: relative; width: 120px; height: 120px; margin: 0 auto 24px; }
.hero-logo img { display: block; position: relative; }
.hero h1 { font-size: 52px; margin-top: 0; }
.hero .lead { max-width: 520px; margin: 16px auto 32px; }
.badge {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 980px;
}

/* Screenshots */
.screens {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 28px;
    margin: 8px 0 72px;
}
.screens figure { margin: 0; flex: 0 0 auto; text-align: center; }
.screens img {
    display: block;
    width: 200px;
    height: auto;
    border-radius: 30px;
    border: 7px solid #1c1c1e;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.screens .main img { width: 240px; border-radius: 36px; }
.screens figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--secondary); }

@media (max-width: 760px) {
    /* A row to swipe through, the chat first in view. */
    .screens {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 24px 24px;
        margin: 0 -24px 48px;
        width: auto;
        align-self: stretch;
    }
    .screens figure { scroll-snap-align: center; }
    .screens .main { order: -1; }
    .screens img, .screens .main img { width: 220px; border-radius: 32px; }
}

/* Ne konuşuluyor? (filled in by web/worker.js) */
.home main { flex-direction: column; }
.topics { width: 100%; padding-bottom: 32px; }
.topics h2 { font-size: 28px; margin: 0 0 16px; }
.topics ol { list-style: none; padding: 0; margin: 0; counter-reset: topic; }
.topics li {
    counter-increment: topic;
    position: relative;
    padding: 16px 0 16px 44px;
    border-top: 1px solid var(--separator);
}
.topics li::before {
    content: counter(topic);
    position: absolute;
    left: 0;
    top: 16px;
    width: 28px;
    color: var(--blue);
    font-weight: 700;
    font-size: 20px;
    text-align: right;
}
.topics h3 { margin: 0 0 4px; font-size: 18px; }
.topics h3 a { color: var(--text); }
.topics h3 a:hover { color: var(--blue); text-decoration: none; }
.topics p { margin: 0 0 6px; color: var(--secondary); font-size: 15px; }
.topics .stats { color: var(--secondary); font-size: 13px; }

/* Blog: a narrow column of text and nothing else. */
.post-page header, .post-page main, .post-page footer { max-width: 680px; }
.post { font-size: 19px; line-height: 1.7; }
.post h1 { font-size: 40px; margin: 40px 0 12px; }
.post h2 { font-size: 24px; line-height: 1.3; margin: 48px 0 8px; }
.post p { margin: 0 0 20px; }
.post li { margin: 10px 0; }
.post-meta { color: var(--secondary); font-size: 15px; }
.post .post-meta { margin-bottom: 32px; }
.illustration { margin: 0 0 40px; }
.illustration svg { display: block; width: 100%; height: auto; }
.il-bg { fill: var(--background); }
.il-seat { stroke: var(--separator); }
.il-ring { stroke: var(--blue); }
.il-accent { fill: var(--blue); }
.back { margin-top: 48px; font-size: 15px; }

.posts { list-style: none; padding: 0; margin: 24px 0 0; }
.posts li { margin: 0; border-top: 1px solid var(--separator); }
.posts a { display: block; padding: 18px 0; color: var(--text); }
.posts a:hover { text-decoration: none; }
.posts a:hover .post-title { color: var(--blue); }
.post-title { display: block; font-size: 19px; font-weight: 600; line-height: 1.35; }
.post-summary { display: block; margin: 4px 0 6px; color: var(--secondary); font-size: 15px; }
.posts time { color: var(--secondary); font-size: 13px; }

/* Gelişim günlüğü on the home page */
.journal { width: 100%; padding-bottom: 32px; }
.journal h2 { font-size: 28px; margin: 24px 0 0; }

@media (max-width: 600px) {
    .post { font-size: 18px; }
    .post h1 { font-size: 32px; }
}

/* A topic's news image, credited (/konu/<slug>) */
/* The news image, at the shape og:images are drawn for; hidden by motion.js if it doesn't load. */
.source-image { margin: 24px 0 8px; }
.source-image img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 16px; background: var(--separator); }
.source-image figcaption { margin-top: 8px; font-size: 13px; color: var(--secondary); }
.source-image figcaption a { color: var(--secondary); text-decoration: underline; }
.source-image + .fine { margin-top: 4px; }

/* The chat, drawn like the app's (components/MessageItem.tsx): 28 pt avatars, 18 pt bubbles that
   tighten to 6 pt where a run joins, 17/22 text, 12 pt captions. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.older { text-align: center; color: var(--secondary); font-size: 12px; line-height: 16px; font-weight: 500; margin: 0 0 8px; }
.chat { list-style: none; padding: 0; margin: 0; }
.message { margin-top: 2px; scroll-margin-top: 24px; }
.message.group-start { margin-top: 12px; }
.timestamp { display: block; text-align: center; margin-bottom: 8px; color: var(--secondary); font-size: 12px; line-height: 16px; font-weight: 500; }
/* Lines up with the text inside the bubble: avatar, gap, bubble padding. */
.sender { display: flex; align-items: center; gap: 4px; margin: 0 0 2px 48px; color: var(--secondary); font-size: 12px; line-height: 16px; }
.role-badge { flex: none; }
.role-badge.founder { color: var(--orange); }
.role-badge.moderator { color: var(--indigo); }
.role-badge.system { color: var(--blue); }
.row { display: flex; align-items: flex-end; gap: 8px; }
.avatar-slot { flex: none; width: 28px; }
.avatar { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; color: #fff; font-size: 12.6px; font-weight: 600; }
.bubble { max-width: 75%; padding: 8px 12px; border-radius: 18px; background: var(--fill-2); font-size: 17px; line-height: 22px; overflow-wrap: anywhere; }
.bubble.joined-top { border-top-left-radius: 6px; }
.bubble.joined-bottom { border-bottom-left-radius: 6px; }
.bubble p { margin: 0; white-space: pre-line; }
.bubble strong { font-weight: 600; }
.bubble code { font: 15px Menlo, ui-monospace, monospace; background: var(--fill-4); }
.mention { font-weight: 600; color: var(--blue); }
.bubble.deleted { background: none; border: 1px solid var(--separator); font-size: 15px; line-height: 20px; font-style: italic; color: var(--secondary); }
.bubble.only-link { padding: 8px; }
.jumbo { padding: 0 2px; line-height: 1.2; }
/* A quoted message: a bar on its leading edge, at the top of the bubble. */
.quote { display: block; margin-bottom: 4px; padding: 4px 8px; border-left: 3px solid var(--blue); border-radius: 4px; background: var(--fill-3); color: inherit; }
a.quote:hover { text-decoration: none; }
.quote-author { display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-content { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; line-height: 18px; color: var(--secondary); }
.quote-content.deleted { font-style: italic; }
.message:target .bubble { animation: flash 1.5s ease-out; }
@keyframes flash { from { box-shadow: inset 0 0 0 100vmax rgba(0, 122, 255, 0.3); } }
/* components/LinkCard.tsx: 248 pt wide, the image at 1.91:1. */
.link-card { display: block; width: 248px; max-width: 100%; margin-top: 8px; border-radius: 12px; overflow: hidden; background: var(--fill-3); color: var(--text); }
.only-link .link-card { margin-top: 0; }
.link-card:hover { text-decoration: none; opacity: 0.85; }
.link-card img { display: block; width: 100%; height: auto; aspect-ratio: 1.91; object-fit: cover; background: var(--fill-4); }
.link-text { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; }
.link-site { font-size: 12px; line-height: 16px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-title, .link-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.link-title { font-size: 15px; line-height: 20px; font-weight: 600; }
.link-description { font-size: 13px; line-height: 18px; color: var(--secondary); }
.link-description.long { -webkit-line-clamp: 4; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 0 36px; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 999px; background: var(--fill-3); font-size: 13px; line-height: 18px; }
.chip span { font-size: 12px; line-height: 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--secondary); }
/* Where the app has its composer: stays at the bottom while the chat scrolls past, over frosted glass. */
.composer { position: sticky; bottom: 0; margin-top: 16px; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--background) 72%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.composer-button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 25px; background: var(--fill-2); color: var(--secondary); font-size: 15px; font-weight: 500; }
.composer-button:hover { text-decoration: none; color: var(--text); }
.composer-note { text-align: center; margin: 4px 0 0; }

/* İlk yazarlardan ol, on the home page */
.join { width: 100%; text-align: center; padding: 8px 0 56px; }
.join h2 { font-size: 28px; margin: 0 0 8px; }
.join p { max-width: 520px; margin: 0 auto 20px; color: var(--secondary); }

/* Forms: sign-up and password reset */
.form { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.form[hidden], .form-done[hidden], .form-errors[hidden] { display: none; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.form small { font-weight: 400; color: var(--secondary); font-size: 13px; }
.form input:not([type=checkbox]), .form textarea {
    font: inherit;
    font-weight: 400;
    font-size: 17px;
    color: var(--text);
    background: var(--background);
    border: 1px solid var(--separator);
    border-radius: 12px;
    padding: 12px 14px;
    width: 100%;
}
.form textarea { resize: vertical; line-height: 1.5; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.form .check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); flex: none; }
.form button { align-self: flex-start; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.form button:disabled { opacity: 0.6; cursor: default; }
.form .lead { margin: 0; }
.form-errors { margin: 0; padding: 12px 16px 12px 32px; border-radius: 12px; color: #d70015; background: color-mix(in srgb, #ff3b30 10%, transparent); }
.form-errors li { color: inherit; margin: 2px 0; }
.form-done { margin-top: 32px; }
.form-done h2 { margin-top: 0; }
.fine { font-size: 14px; color: var(--secondary); }

footer {
    border-top: 1px solid var(--separator);
    padding-top: 20px;
    padding-bottom: 32px;
    font-size: 14px;
    color: var(--secondary);
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
footer nav a { color: var(--secondary); }
footer p { color: var(--secondary); margin: 4px 0; }

@media (max-width: 600px) {
    h1 { font-size: 32px; }
    .hero h1 { font-size: 38px; }
}

/* Motion: short, once, Apple's ease-out. Only with .motion (set by theme.js unless the visitor
   prefers reduced motion), so without scripts everything is just there. */
:root { --ease: cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
@keyframes ripple {
    from { opacity: 0.45; transform: scale(0.7); }
    to { opacity: 0; transform: scale(1.9); }
}

.motion .hero > * { animation: rise 0.9s var(--ease) both; }
.motion .hero > :nth-child(2) { animation-delay: 0.08s; }
.motion .hero > :nth-child(3) { animation-delay: 0.16s; }
.motion .hero > :nth-child(4) { animation-delay: 0.24s; }

/* One soft pulse out of the logo as the page opens. */
.motion .hero-logo::before,
.motion .hero-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--blue);
    opacity: 0;
    animation: ripple 1.6s var(--ease) 0.35s both;
}
.motion .hero-logo::after { animation-delay: 0.7s; }

.motion .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--delay, 0ms);
}
.motion .reveal.shown { opacity: 1; transform: none; }

/* A small lift under the pointer, for screenshots on devices that hover. */
@media (hover: hover) {
    .screens img { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
    .screens figure:hover img { transform: translateY(-6px); box-shadow: 0 32px 70px rgba(0, 0, 0, 0.3); }
}

@media (prefers-reduced-motion: reduce) {
    body { transition: none; }
}

/* A topic's page, laid out like the app: the agenda (components/TopicList.tsx) beside the chat,
   whose header has the app's glass back button and title pill (components/ChatHeader.tsx). */
/* On a computer it fills the window like an app: the page itself never scrolls, only the agenda
   and the chat inside it. The footer's links stay in the page for crawlers; a phone shows them. */
@media (min-width: 861px) {
    body.topic-app { height: 100vh; height: 100dvh; overflow: hidden; }
    .topic-app header { max-width: none; padding: 10px 20px; border-bottom: 1px solid var(--separator); }
    .topic-app main { display: flex; min-height: 0; max-width: none; padding: 0; overflow: hidden; }
    .topic-app footer { display: none; }
}
.glass-button {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; border-radius: 50%; color: var(--text);
    background: color-mix(in srgb, var(--background) 72%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 0 0 0.5px var(--separator), 0 4px 16px rgba(0, 0, 0, 0.08);
}
.glass-button:hover { text-decoration: none; background: var(--fill-3); }

.topic-layout { flex: 1; display: grid; grid-template-columns: 360px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 0; }

/* The agenda: a sidebar list, like Messages and WhatsApp on a computer; the open topic is tinted. */
.agenda { min-height: 0; overflow-y: auto; background: var(--fill-4); padding-bottom: 16px; scrollbar-width: none; }
/* No scroll bar in the list (Windows draws a heavy one); it scrolls with the wheel, trackpad or touch. */
.agenda::-webkit-scrollbar { display: none; }
.agenda-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 16px 4px; }
.agenda-header h2 { margin: 0; font-size: 28px; line-height: 34px; letter-spacing: -0.01em; }
.agenda-close { display: none; }
.agenda-section { margin: 16px 16px 6px; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--secondary); }
.topic-rows { list-style: none; margin: 0 8px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.topic-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); }
.topic-row:hover { text-decoration: none; background: var(--fill-3); }
.topic-row[aria-current="page"] { background: var(--fill-2); }
.row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.row-title, .row-description { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title { font-size: 17px; line-height: 22px; }
.row-description { font-size: 15px; line-height: 20px; color: var(--secondary); }
.pin { display: inline-flex; margin-right: 4px; color: var(--orange); vertical-align: -1px; }
.row-stats { display: flex; gap: 10px; flex: none; color: var(--secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
.stat { display: inline-flex; align-items: center; gap: 4px; }

/* The chat pane: header over the conversation, which scrolls under it, join button at the bottom. */
.topic-pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pane-header {
    position: absolute; top: 0; left: 0; right: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px 20px;
    background: linear-gradient(var(--background) 30%, color-mix(in srgb, var(--background) 0%, transparent));
    pointer-events: none;
}
.pane-header > * { pointer-events: auto; }
.pane-back { display: none; }
.title-pill {
    display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; max-width: min(520px, 100%);
    height: 44px; padding: 0 20px; border-radius: 22px;
    background: color-mix(in srgb, var(--background) 72%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 0 0 0.5px var(--separator), 0 4px 16px rgba(0, 0, 0, 0.08);
}
.pill-title, .pill-subtitle { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-title { font-size: 15px; line-height: 20px; font-weight: 600; }
.pill-subtitle { font-size: 12px; line-height: 16px; color: var(--secondary); }
.pane-scroll { flex: 1; overflow-y: auto; padding: 76px 16px 8px; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: var(--fill-2) transparent; }
.pane-scroll::-webkit-scrollbar { width: 8px; }
.pane-scroll::-webkit-scrollbar-thumb { background: var(--fill-2); border-radius: 4px; }
.pane-scroll::-webkit-scrollbar-track { background: transparent; }
/* The topic's card, at the top of the conversation: what the app shows when its title pill is opened. */
.topic-card { flex: none; width: 100%; max-width: 640px; margin: 0 auto 8px; padding: 20px; border-radius: 20px; background: var(--fill-4); }
.topic-card .post-meta { margin: 0; font-size: 13px; }
.topic-card .post-meta a { color: var(--secondary); }
.topic-card h1 { font-size: 28px; line-height: 34px; margin: 6px 0 8px; }
.topic-description { margin: 0; font-size: 17px; line-height: 22px; }
.topic-card .source-image { margin: 14px 0 6px; }
.topic-card .fine { margin: 6px 0 0; font-size: 13px; }
.topic-meta { color: var(--secondary); }
/* Short conversations sit at the bottom, next to the join button, as in the app. */
.topic-chat { width: 100%; max-width: 760px; margin: auto auto 0; }
.topic-pane .composer { position: static; margin: 0; padding: 8px 16px 12px; }
.topic-pane .composer-button { max-width: 640px; margin: 0 auto; }

/* A phone: one screen at a time, like the app. The chat fills the page; the back button opens
   the agenda over it (#gundem without scripts, .agenda-open with them). */
@media (max-width: 860px) {
    .topic-app main { padding: 0; }
    .topic-app header { padding-top: 12px; padding-bottom: 4px; }
    .topic-layout { display: block; }
    .agenda {
        position: fixed; inset: 0; z-index: 20; border: 0; background: var(--background);
        transform: translateX(-100%); visibility: hidden; transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0.3s;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
    .agenda:target, .agenda-open .agenda { transform: none; visibility: visible; }
    .agenda-header { padding-top: calc(12px + env(safe-area-inset-top)); }
    .agenda-close { display: inline-flex; }
    .pane-header { position: sticky; justify-content: flex-start; padding: 8px 16px 16px; }
    .pane-back { display: inline-flex; }
    .title-pill { flex: 1; }
    .pane-scroll { display: block; overflow: visible; padding: 0 16px 8px; }
    .topic-card { padding: 16px; }
    .topic-card h1 { font-size: 26px; line-height: 32px; }
    .topic-pane .composer { position: sticky; bottom: 0; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--background) 72%, transparent); }
    .topic-app footer { padding-top: 24px; }
}
