/* IBM Plex Mono: cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* IBM Plex Mono: cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* IBM Plex Mono: vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* IBM Plex Mono: latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono: latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter Tight: cyrillic-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Inter Tight: cyrillic */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Inter Tight: greek-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}

/* Inter Tight: greek */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* Inter Tight: vietnamese */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Inter Tight: latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter Tight: latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  scrollbar-gutter: stable;
  --paper: #f6f6f3;
  --ink: #252724;
  --muted: #72756d;
  --focus: #47633c;
  font-family: "Inter Tight", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1b211d;
    --ink: #e5e8df;
    --muted: #adb7a9;
    --focus: #9bc9aa;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1b211d;
  --ink: #e5e8df;
  --muted: #adb7a9;
  --focus: #9bc9aa;
}

* { box-sizing: border-box; }
button, .account-control, .event-source, .material-symbols-outlined { user-select: none; -webkit-user-select: none; }
body { margin: 0; font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
.shell { max-width: 1180px; margin: 0 auto; padding: 54px 42px 80px; }
.page { width: 100%; margin-inline: auto; }
.page--small { max-width: 480px; }
.page--medium { max-width: 560px; }
.page--wide { max-width: 1100px; }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 52px;
}
.masthead h1 { font-size: 27px; line-height: 1.2; font-weight: 600; }
.masthead h1 a:hover { text-decoration: none; }
.topics { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 16px; color: var(--muted); }
.topics [aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.account-control { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 36px; min-height: 36px; padding: 0 4px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font: inherit; font-size: 15px; white-space: nowrap; cursor: pointer; }
.account-control:hover { color: var(--ink); text-decoration: none; }
.account-control:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.material-symbols-outlined { flex: none; width: 1em; height: 1em; overflow: hidden; vertical-align: middle; font-style: normal; font-weight: 400; line-height: 1; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20; font-optical-sizing: none; font-size: 20px; }
.account-icon { font-size: 20px; }
.account-control:hover { background: color-mix(in srgb, var(--muted) 10%, transparent); }
.settings-feedback { margin-bottom: 24px; padding: 12px 16px; border-left: 2px solid var(--focus); background: color-mix(in srgb, var(--muted) 8%, transparent); }
.settings-form { display: grid; gap: 28px; }
.settings-field { display: grid; gap: 8px; }
.settings-field label { font-weight: 500; }
.settings-field input, .topic-search input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 8px; color: var(--ink); background: var(--paper); font: inherit; font-size: 16px; }
.settings-field p { color: var(--muted); font-size: 15px; }
/* Action buttons: use outline or ghost, with optional small and icon modifiers. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; justify-self: start; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 16px; line-height: 20px; text-decoration: none; cursor: pointer; }
.button:hover { text-decoration: none; background: color-mix(in srgb, var(--focus) 10%, transparent); }
.button--outline { border-color: var(--focus); }
.button--ghost { color: var(--muted); }
.button--ghost:hover { color: var(--ink); background: color-mix(in srgb, var(--muted) 10%, transparent); }
.button--small { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.button--icon { flex: none; width: 36px; height: 36px; padding: 0; }
.button:disabled { opacity: .5; cursor: default; }
.settings-field input:focus-visible, .topic-search input:focus-visible, .button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.topic-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.topic-follow { flex: none; margin: 0; gap: 4px; }
.following-add { flex: none; margin-left: auto; }
.topic-follow > .chevron { font-size: 14px; }
.quick-form, .subscription-editor, .selection-fields { display: grid; gap: 16px; }
.selection { min-width: 0; border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); border-radius: 8px; }
.selection summary { display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 10px 14px; cursor: pointer; list-style: none; font-size: 16px; }
.selection summary::-webkit-details-marker { display: none; }
.selection summary:hover { background: color-mix(in srgb, var(--focus) 8%, transparent); }
.selection summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.selection-value { min-width: 0; margin-left: auto; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { font-size: 18px; }
.selection[open] > summary .chevron { transform: rotate(180deg); }
.selector-options { display: grid; max-height: 280px; overflow-y: auto; padding: 4px 14px 12px; }
.check-option { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer; }
.check-option input { flex: none; width: 18px; height: 18px; accent-color: var(--focus); }
.all-option { border-bottom: 1px solid color-mix(in srgb, var(--muted) 20%, transparent); margin-bottom: 4px; }
.check-option input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.subscription-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 8px 0 0; }
.subscription-list { margin: 0; padding: 0; list-style: none; }
.subscription-list > li { border-bottom: 1px solid color-mix(in srgb, var(--muted) 20%, transparent); }
.subscription-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 12px 8px; border-radius: 6px; }
.subscription-row:hover { text-decoration: none; background: color-mix(in srgb, var(--focus) 7%, transparent); }
.subscription-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.subscription-summary { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.subscription-types { color: var(--muted); font-size: 14px; }
.subscription-arrow { flex: none; color: var(--muted); font-size: 20px; }
.rule-summary { margin: 0 0 24px; padding-left: 20px; }
.follow-feedback { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.follow-feedback:not(:empty) { margin: 12px 0; }
.subscription-list > .is-paused .subscription-row { color: var(--muted); }
.subscription-list > [data-updated] { background: color-mix(in srgb, var(--focus) 9%, transparent); animation: follow-highlight 2s ease-out forwards; }
@keyframes follow-highlight { to { background: transparent; } }
.following-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent); border-radius: 12px; color: var(--ink); background: var(--paper); box-shadow: 0 20px 64px #0003; overflow: hidden; }
.following-dialog::backdrop { background: #0005; }
.following-dialog[open], .following-dialog .subscription-settings { display: flex; flex-direction: column; min-height: 0; }
.following-dialog .subscription-settings { max-height: calc(100dvh - 48px); }
.following-dialog .subscription-editor { min-height: 0; overflow: hidden; gap: 0; }
.following-dialog .rule-summary { min-height: 0; overflow-y: auto; }
.following-dialog .subscription-settings > .subscription-actions { flex: none; padding: 12px 20px; }
.following-dialog .follow-editor-body { overflow-y: auto; overscroll-behavior: contain; }
.following-dialog .follow-editor-header, .following-dialog .follow-editor-footer { flex: none; }
.following-dialog .settings-feedback, .following-dialog .rule-summary, .following-dialog .follow-feedback { margin: 12px 20px; }
.follow-editor-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid color-mix(in srgb, var(--muted) 20%, transparent); }
.follow-editor-header h2 { font-size: 18px; font-weight: 500; }
.follow-editor-body { padding: 20px; }
.follow-editor-body .selection-fields { gap: 28px; }
.follow-selection { min-width: 0; margin: 0; padding: 0; border: 0; }
.follow-selection-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 16px; font-weight: 500; }
.follow-selection:has([data-all]:checked) > .follow-choices { display: none; }
.follow-selection .selector-options { max-height: none; overflow: visible; padding: 0; }
.follow-hint { color: var(--muted); font-size: 14px; }
.follow-search { display: block; margin: 12px 0; }
.follow-search input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--muted) 35%, transparent); border-radius: 7px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.follow-search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.follow-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.follow-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--focus) 10%, transparent); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.follow-chip .material-symbols-outlined { font-size: 14px; }
.follow-chip:hover { background: color-mix(in srgb, var(--focus) 18%, transparent); }
.follow-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.follow-selection .check-option small { display: block; color: var(--muted); font-size: 13px; }
.follow-selection .check-option { padding: 5px 0; }
.follow-editor-footer { justify-content: space-between; margin: 0; padding: 12px 20px; border-top: 1px solid color-mix(in srgb, var(--muted) 20%, transparent); }
.follow-save-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.follow-management-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
@media (prefers-reduced-motion: reduce) {
  .subscription-list > [data-updated] { animation: none; background: transparent; }
}
@media (max-width: 600px) {
  .following-dialog { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .following-dialog .subscription-settings { height: 100%; max-height: 100dvh; }
  .following-dialog .subscription-editor { flex: 1; display: flex; flex-direction: column; gap: 0; }
  .following-dialog .follow-editor-body { flex: 1; }
}
.theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.theme-options legend { margin-bottom: 12px; font-weight: 500; }
.theme-options label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 80px; padding: 12px 8px; border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); border-radius: 8px; cursor: pointer; font-size: 16px; }
.theme-options label:hover { background: color-mix(in srgb, var(--focus) 5%, transparent); }
.theme-options label:has(:checked) { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 8%, transparent); }
.theme-options label:has(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-options input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.theme-icon { font-size: 24px; }

.not-found { padding: 48px 0; max-width: 48ch; }
.not-found .error-code { color: var(--muted); font: 15px/1.55 "IBM Plex Mono", monospace; }
.not-found h2 { margin: 12px 0; font-size: 32px; font-weight: 600; }
.not-found > p:not(.error-code) { color: var(--muted); }
.not-found > a { display: inline-block; margin-top: 24px; text-decoration: underline; }

.topic-search { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; max-width: 560px; margin-bottom: 32px; }
.topic-search input { min-width: 0; line-height: 20px; }
.topic-search-clear[aria-hidden="true"] { visibility: hidden; }
.topic-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); align-items: start; gap: 16px 24px; list-style: none; margin: 0; padding: 0; }
.topic-grid li { min-width: 0; overflow-wrap: anywhere; }
.topic-grid a { display: flex; flex-direction: column; align-items: start; min-height: 64px; padding: 8px 0; font-size: 16px; }
.topic-grid a > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-grid a:hover { text-decoration: none; }
.topic-grid a:hover > span { text-decoration: underline; }
.topic-grid small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; line-height: 20px; }
.discovery-empty { grid-column: 1 / -1; color: var(--muted); }
.discovery-collections ul { list-style: none; margin: 0; padding: 0; }
.discovery-collections { margin-top: 40px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--muted) 20%, transparent); }
.discovery-collections h3 { margin: 0 0 16px; color: var(--muted); font-size: 16px; font-weight: 500; }
.discovery-collections li + li { margin-top: 16px; }
.discovery-collections p { max-width: 70ch; margin-top: 4px; color: var(--muted); font-size: 15px; }

.feed-onboarding { max-width: 60ch; padding: 24px 0; }
.feed-onboarding h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; }
.feed-onboarding p { color: var(--muted); }
.feed-tabs { display: flex; gap: 24px; margin-bottom: 24px; color: var(--muted); }
.feed-tabs a { padding: 8px 0; }
.feed-tabs [aria-current] { color: var(--ink); text-decoration: underline; }

#event-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 18px; row-gap: 22px; }
.event { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: baseline; }
.event-date { color: var(--muted); white-space: nowrap; font: 15px/1.55 "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
.event-date time { display: inline-grid; grid-template-columns: 8ch auto; column-gap: 12px; align-items: baseline; }
.event-clock { text-align: right; }
.event-calendar { text-align: left; }
.event-entry { font: inherit; word-spacing: .45em; }
.event-text, .event-meta a, .event-topic { word-spacing: normal; }
.event-topic { font-weight: 500; text-decoration-line: underline; text-decoration-color: color-mix(in srgb, var(--focus) 55%, transparent); text-decoration-thickness: 2px; text-underline-offset: .2em; transition: text-decoration-color .15s ease; }
.event-topic:hover, .event-topic:focus-visible { text-decoration-color: var(--focus); }
.topic-heading { margin: 36px 0 24px; }
.topic-heading h2 { margin: 0; font-size: 24px; }
.topic-heading h2 span, .topic-heading p { color: var(--muted); }
.topic-heading p { margin: 8px 0 0; }
.event-meta { display: inline-flex; align-items: baseline; gap: .45em; max-width: 100%; vertical-align: bottom; color: var(--muted); word-spacing: normal; }
.external-arrow { font-size: 18px; }
@media (prefers-reduced-motion: reduce) {
  .event-topic { transition: none; }
}
.event-meta a { min-width: 0; overflow-wrap: anywhere; }

.event-source, .event-details-toggle { flex-shrink: 0; display: inline-grid; place-items: center; width: 1lh; height: 1lh; vertical-align: bottom; padding: 0; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font: inherit; word-spacing: normal; cursor: pointer; }
.event-source:hover, .event-details-toggle:hover, .event:has(> .event-details:popover-open) .event-details-toggle { color: var(--ink); text-decoration: none; background: color-mix(in srgb, var(--muted) 12%, transparent); }
.event-source:focus-visible, .event-details-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.event-details { position: fixed; width: 280px; max-width: calc(100vw - 32px); max-height: min(420px, calc(100dvh - 32px)); overflow: auto; padding: 20px; border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent); border-radius: 12px; color: var(--ink); background: var(--paper); box-shadow: 0 12px 36px #0002; font-size: 16px; word-spacing: normal; overflow-wrap: anywhere; }
.event-details dl { margin: 0; }
.event-details dt { margin-bottom: 6px; color: var(--muted); font: 11px/1.5 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.event-details dd { margin: 0; }
.event-details dd + dt { margin-top: 18px; }
.event-details ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.event-details a { display: inline-block; padding: 4px 0; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 40%, transparent); }
.event-details a:hover { text-decoration-color: var(--focus); }
.event-details.quick-popover { width: 340px; padding: 0; overflow: hidden; }
.quick-popover .quick-form { display: flex; flex-direction: column; gap: 0; max-height: min(420px, calc(100dvh - 32px)); }
.quick-header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.quick-header h3 { margin: 0; font-size: 16px; font-weight: 500; }
.quick-selection { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.quick-selection .quick-body { min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px; border-top: 1px solid color-mix(in srgb, var(--muted) 20%, transparent); }
.quick-modes { display: flex; flex: none; padding: 3px; border-radius: 7px; background: color-mix(in srgb, var(--muted) 10%, transparent); }
.quick-modes label { position: relative; padding: 4px 9px; border-radius: 5px; color: var(--muted); font-size: 14px; cursor: pointer; }
.quick-modes label:has(:checked) { color: var(--ink); background: var(--paper); box-shadow: 0 1px 3px #0002; }
.quick-modes label:has(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.quick-modes input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.quick-selection:has([data-all]:checked) .selector-options { display: none; }
.topic-heading .quick-hint { margin: 0; font-size: 14px; color: var(--muted); }
.quick-popover .subscription-actions { flex: none; flex-direction: row-reverse; justify-content: space-between; margin: 0; padding: 10px 16px; border-top: 1px solid color-mix(in srgb, var(--muted) 20%, transparent); }
.account-menu a, .subscription-menu a, .menu-button { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.account-menu a:hover, .subscription-menu a:hover, .menu-button:hover { text-decoration: none; background: color-mix(in srgb, var(--muted) 10%, transparent); }
.menu-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.account-menu { width: 208px; padding: 6px; }
.account-menu a, .account-menu .menu-button { display: flex; align-items: center; gap: 10px; padding-inline: 8px; }
.menu-icon { color: var(--muted); font-size: 18px; }
@supports (position-area: bottom) {
  .event-details { inset: auto; margin: 8px; position-area: bottom span-left; position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline; }
}

.feed-onboarding { max-width: 480px; margin: clamp(32px, 8vh, 80px) auto 0; }
.feed-onboarding h2 { font-size: 24px; font-weight: 600; line-height: 1.3; }
.feed-onboarding p { margin-top: 12px; color: var(--muted); }
.feed-onboarding-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.feed-onboarding-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-size: 16px; }
.empty-state { grid-column: 1 / -1; padding: 32px 0; color: var(--muted); }
.pagination { display: flex; justify-content: space-between; gap: 24px; padding-top: 36px; font-size: 16px; color: var(--muted); }
.pagination a { display: inline-flex; align-items: center; gap: 6px; }
.pagination:not(:has(a)) { display: none; }
.pagination .older { margin-left: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 850px) {
  .shell { padding: 36px 28px 60px; }
  .masthead { grid-template-columns: 1fr auto; gap: 24px; margin-bottom: 38px; }
  .topics { grid-row: 2; grid-column: 1 / -1; }
  .header-actions { grid-row: 1; grid-column: 2; }
  #event-list { column-gap: 14px; }
}

@media (max-width: 550px) {
  body { font-size: 17px; }
  .shell { padding: 20px 20px 40px; }
  .masthead { gap: 12px; margin-bottom: 24px; }
  .topics { min-width: 0; flex-wrap: nowrap; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .topics a { display: flex; flex: none; align-items: center; min-height: 44px; padding: 0 4px; }
  .topics a:focus-visible { outline-offset: -2px; }
  #event-list { display: block; }
  .event { display: block; margin-bottom: 20px; }
  .event-date { margin-bottom: 6px; }
  .event-date time { display: inline-flex; flex-direction: row-reverse; gap: 12px; }
  .event-clock:empty { display: none; }
  .event-entry { overflow-wrap: anywhere; }
  .pagination { padding-top: 8px; }
  .pagination a { display: flex; align-items: center; min-height: 44px; }
}
