:root {
  color-scheme: dark;
  --backdrop: #353535;
  --background: #373737;
  --surface: #444;
  --raised: #535353;
  --ink: #fafafa;
  --muted: #dedede;
  --accent: #f3f3f3;
  --line: rgb(255 255 255 / 15%);
  --glass-solid: #373737;
  --glass-panel: linear-gradient(140deg, rgb(119 119 119 / 23%), rgb(26 26 26 / 42%));
  --glass-card: linear-gradient(132deg, rgb(126 126 126 / 18%), rgb(42 42 42 / 31%) 46%, rgb(22 22 22 / 49%));
  --glass-dock: linear-gradient(158deg, rgb(66 66 66 / 61%), rgb(19 19 19 / 71%));
  --glass-header: rgb(42 42 42 / 27%);
  --glass-line: rgb(255 255 255 / 19%);
  --glass-edge: rgb(255 255 255 / 38%);
  --glass-shadow: inset 1px 0 0 rgb(255 255 255 / 6%), inset 0 -1px 0 rgb(0 0 0 / 13%), 0 4px 12px rgb(0 0 0 / 10%);
  --glass-pill: rgb(255 255 255 / 11%);
  --glass-selected: rgb(255 255 255 / 22%);
  --tab-active: linear-gradient(145deg, #fff, #e6e6e6);
  --tab-ink: #252525;
  --scene-base: linear-gradient(154deg, #626262, #474747 44%, #575757 66%, #353535);
  --find-mark: #eee;
  --find-text: #181818;
  --card-radius: 27px;
  --control-radius: 16px;
  font: 400 15px/1.5 var(--app-font);
}
:root[data-theme=light] {
  color-scheme: light;
  --backdrop: #cecece;
  --background: #ebebeb;
  --surface: #e6e6e6;
  --raised: #d3d3d3;
  --ink: #141414;
  --muted: #373737;
  --accent: #202020;
  --line: rgb(0 0 0 / 16%);
  --glass-solid: #ebebeb;
  --glass-panel: linear-gradient(139deg, rgb(255 255 255 / 43%), rgb(237 237 237 / 31%));
  --glass-card: linear-gradient(135deg, rgb(255 255 255 / 49%), rgb(246 246 246 / 31%) 49%, rgb(225 225 225 / 42%));
  --glass-dock: linear-gradient(150deg, rgb(253 253 253 / 64%), rgb(225 225 225 / 77%));
  --glass-header: rgb(242 242 242 / 36%);
  --glass-line: rgb(255 255 255 / 46%);
  --glass-edge: rgb(255 255 255 / 77%);
  --glass-shadow: inset 1px 0 0 rgb(255 255 255 / 22%), inset 0 -1px 0 rgb(0 0 0 / 7%), 0 4px 12px rgb(0 0 0 / 6%);
  --glass-pill: rgb(30 30 30 / 9%);
  --glass-selected: rgb(30 30 30 / 16%);
  --tab-active: linear-gradient(145deg, #464646, #262626);
  --tab-ink: #fff;
  --scene-base: linear-gradient(151deg, #b8b8b8, #d6d6d6 45%, #c3c3c3 68%, #aaa);
  --find-mark: #444;
  --find-text: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--backdrop); color: var(--ink); }
button, input, textarea, select, option { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
#app {
  --nav-clearance: calc(54px + max(10px, env(safe-area-inset-bottom)) + 12px);
  width: min(100%,520px); margin: auto; height: 100vh; height: 100dvh;
  display: grid; grid-template-rows: auto auto minmax(0,1fr);
  background: var(--background); position: relative; overflow: hidden;
}
.app-header {
  display: grid; grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr); align-items: center;
  padding: calc(env(safe-area-inset-top) + 4px) max(8px, env(safe-area-inset-left), env(safe-area-inset-right)) 4px;
  background: #202020; border-bottom: 1px solid var(--line); min-height: 56px; z-index: 3;
  border-radius: 0 0 var(--card-radius) var(--card-radius);
}
#app:has(#panel:not(:empty)) .app-header { border-bottom-color: transparent; border-radius: 0; }
.app-header > .icon-button { grid-area: 1 / 1; justify-self: start; }
.app-title {
  grid-area: 1 / 2; justify-self: center; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 8px 0; color: var(--ink); text-align: center; font-size: 19px; line-height: 1.2;
  font-weight: 600; letter-spacing: -.45px;
}
.city-mark {
  display: block; flex: none; width: 17px; height: 20px; color: #fff; pointer-events: none;
}
.header-actions { grid-area: 1 / 3; justify-self: end; display: flex; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); flex: none; }
.icon-button:hover { background: #ffffff06; color: var(--ink); }
.icon-button.selected { color: var(--accent); }
.stream { grid-area: 3 / 1; padding: 0 8px var(--nav-clearance); scroll-padding-bottom: var(--nav-clearance); overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-gutter: stable both-edges; scrollbar-color: #424242 transparent; overscroll-behavior: contain; }
.day { padding: 12px 0 10px; text-align: center; font-size: 11px; color: var(--muted); }
.post { margin-bottom: 9px; border-radius: var(--card-radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.post-header { min-height: 40px; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 7px 13px 5px; font-size: 12px; }
.publisher { color: var(--accent); font-weight: 500; overflow-wrap: anywhere; }
.byline { min-width: 0; overflow-wrap: anywhere; }
.source-label { color: var(--muted); }
mark.search-hit { background: #585858; color: #fff; border-radius: 2px; }
.post-header time { color: var(--muted); font-size: 11px; white-space: nowrap; flex: none; }
.post-image { display: block; width: 100%; height: auto; }
.news-video { display: block; width: 100%; height: auto; max-height: 65vh; aspect-ratio: auto 16 / 9; object-fit: contain; background: #171717; border-radius: 12px; }
.post[data-post] .post-image { aspect-ratio: 1 / 1; object-fit: cover; object-position: center; }
.post-text { padding: 2px 13px 4px; overflow-wrap: anywhere; }
.post-text h2 { font-size: 16px; line-height: 1.38; letter-spacing: -.15px; font-weight: 600; margin: 1px 0 8px; }
.post-text p { font-size: 14px; line-height: 1.54; margin: 0 0 9px; white-space: pre-wrap; }
.post-text p:last-child { margin-bottom: 0; }
.post-image + .post-text { padding-top: 12px; }
.other-sources { padding: 3px 13px 0; font-size: 12px; color: var(--muted); }
.post-footer { padding: 2px 7px 4px 10px; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.reactions { display: flex; align-items: center; column-gap: 4px; flex-wrap: wrap; }
.reaction { display: inline-flex; gap: 4px; justify-content: center; align-items: center; min-width: 40px; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); padding: 0 9px; position: relative; isolation: isolate; }
.reaction:before { content: ''; position: absolute; inset: 8px 0; z-index: -1; border-radius: 15px; background: var(--raised); }
.reaction:hover:before { background: #424242; }
.reaction[aria-pressed=true]:before { background: #484848; box-shadow: inset 0 0 0 1px #909090; }
.reaction[aria-pressed=true] { color: #d9d9d9; }
.reaction-count { font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; font-weight: 500; }
.picker-toggle { width: 44px; color: var(--accent); }
.picker-toggle .icon { width: 24px; height: 24px; }
.picker-toggle:hover, .picker-toggle[aria-expanded=true] { color: #cecece; }
/* The Emojio-hosted Google PNGs form one horizontal strip (see emoji-LICENSE.txt). */
.reaction-glyph {
  display: block; flex: none; width: 20px; height: 20px; overflow: hidden; font-size: 0;
  background-image: url('emoji.png');
  background-repeat: no-repeat;
  background-size: 2400% 100%;
  background-position: calc(100% * var(--emoji-index, 0) / 23) center;
}
.reaction[data-reaction="heart"] { --emoji-index: 1; }
.reaction[data-reaction="fire"] { --emoji-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .reaction-tapped[data-reaction="like"] .reaction-glyph {
    transform-origin: 50% 80%; animation: thumb-lift 320ms ease-out;
  }
  .reaction-tapped[data-reaction="heart"] .reaction-glyph { animation: heart-beat 420ms ease-out; }
  .reaction-tapped[data-reaction="fire"] .reaction-glyph {
    transform-origin: 50% 85%; animation: flame-flicker 350ms ease-out;
  }
}
@keyframes thumb-lift {
  35% { transform: translateY(-3px) rotate(-13deg) scale(1.12); }
  72% { transform: translateY(1px) rotate(4deg); }
}
@keyframes heart-beat {
  24% { transform: scale(1.25); }
  48% { transform: scale(.96); }
  70% { transform: scale(1.12); }
}
@keyframes flame-flicker {
  28% { transform: skewX(-7deg) scale(.93,1.22); }
  56% { transform: skewX(5deg) scale(1.09,.97); }
  78% { transform: skewX(-3deg) scale(.98,1.1); }
}
.reaction[data-reaction="surprised"] { --emoji-index: 3; }
.reaction[data-reaction="sad"] { --emoji-index: 4; }
.reaction[data-reaction="angry"] { --emoji-index: 5; }
.reaction[data-reaction="clap"] { --emoji-index: 6; }
.reaction[data-reaction="dislike"] { --emoji-index: 7; }
.reaction[data-reaction="grin"] { --emoji-index: 8; }
.reaction[data-reaction="laugh"] { --emoji-index: 9; }
.reaction[data-reaction="rofl"] { --emoji-index: 10; }
.reaction[data-reaction="wink"] { --emoji-index: 11; }
.reaction[data-reaction="smile"] { --emoji-index: 12; }
.reaction[data-reaction="hug"] { --emoji-index: 13; }
.reaction[data-reaction="loved"] { --emoji-index: 14; }
.reaction[data-reaction="starEyes"] { --emoji-index: 15; }
.reaction[data-reaction="think"] { --emoji-index: 16; }
.reaction[data-reaction="shock"] { --emoji-index: 17; }
.reaction[data-reaction="cry"] { --emoji-index: 18; }
.reaction[data-reaction="halo"] { --emoji-index: 19; }
.reaction[data-reaction="cool"] { --emoji-index: 20; }
.reaction[data-reaction="broken"] { --emoji-index: 21; }
.reaction[data-reaction="blue"] { --emoji-index: 22; }
.reaction[data-reaction="hundred"] { --emoji-index: 23; }
@media (forced-colors: active) {
  .reaction-glyph { font-size: 18px; line-height: 20px; background-image: none; }
}
.post-actions { margin-left: auto; display: flex; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.bookmark-filled { display: none; }
[data-action="save"][aria-pressed="true"] .bookmark-filled,
.tab-button[aria-current="page"] .bookmark-filled { display: inline; }
.post-actions .icon { width: 20px; height: 20px; }
.post-actions .icon-button { color: var(--accent); }
.reaction-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(42px, 1fr)); gap: 2px; padding: 7px 10px 10px; border-top: 1px solid var(--line); }
.reaction-picker .reaction { min-width: 0; padding: 0; }
.reaction-picker .reaction:before { inset: 2px; border-radius: 11px; background: transparent; }
.reaction-picker .reaction:hover:before { background: var(--raised); }
.reaction-picker .reaction[aria-pressed=true]:before { background: #484848; }
.reaction-picker .reaction-glyph { width: 25px; height: 25px; }
#panel:not(:empty) { border-radius: 0 0 var(--card-radius) var(--card-radius); max-height: 54svh; overflow-y: auto; background: #202020; border-bottom: 1px solid var(--line); }
.search-panel { padding: 6px 12px 10px; animation: search-enter .15s ease-out; }
@keyframes search-enter { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .search-panel { animation: none; } }
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 3px 0 16px;
  border: 1px solid #3f3f3f;
  border-top-color: #525252;
  border-bottom-color: #363636;
  border-radius: 999px;
  background: linear-gradient(175deg, var(--raised), var(--surface) 68%, #292929);
  box-shadow: inset 0 1px 0 #94949412, 0 2px 5px #1010102e;
}
.search-box:focus-within { border-color: #5d5d5d; border-top-color: #707070; }
.search-box .icon { color: var(--muted); width: 19px; height: 19px; }
.search-box .icon-button { border-radius: 50%; width: 44px; }
.search-box input {
  flex: 1; width: 100%; min-width: 0; min-height: 42px; padding: 0; border: 0;
  background: transparent; color: var(--ink); caret-color: var(--accent);
  font: inherit; font-size: 16px;
}
.search-box input:focus-visible { outline: none; }
.search-box input::placeholder { color: #b3b3b3; opacity: 1; }
@media (forced-colors: active) { .search-box:focus-within { outline: 2px solid Highlight; } }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-box input:placeholder-shown + .icon-button { visibility: hidden; }
.empty { margin: 12px 4px; padding: 24px 16px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); color: var(--muted); font-size: 14px; }
.toast { position: absolute; grid-row: 3; grid-column: 1; bottom: var(--nav-clearance); left: 16px; right: 16px; z-index: 5; border: 1px solid #ffffff15; border-radius: var(--control-radius); background: #383838; color: var(--ink); padding: 10px 13px; font-size: 13px; text-align: center; box-shadow: 0 8px 24px #0005; pointer-events: none; }
.toast-compact {
  width: max-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  padding-inline: 12px;
  overflow-wrap: anywhere;
}
.ad-label { font-size: 11px; color: var(--muted); }
.ad-link { margin: 8px 13px 12px; display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 7px 10px; background: var(--raised); color: var(--accent); border-radius: 999px; font-size: 13px; }
.ad-id { margin: 0 13px 10px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.bottom-nav {
  grid-area: 3 / 1;
  place-self: end center;
  margin-bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 4;
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 3px;
  border: 1px solid #9494944d;
  border-radius: 999px;
  background: var(--raised);
  box-shadow: 0 5px 16px #0006;
}
.tab-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.tab-button .icon { width: 19px; height: 19px; }
.tab-button .icon-theatre { width: 23px; height: 23px; }
.tab-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.district-badge {
  position: absolute;
  left: calc(100% - 5px);
  top: -5px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--background);
  box-shadow: 0 0 0 2px var(--raised);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1;
}
.district-tools {
  display: flex; align-items: stretch; width: fit-content; max-width: calc(100% - 24px);
  margin: 4px 12px 10px; padding: 0 2px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--raised); color: var(--ink);
}
.district-tools button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; }
.district-tools button:focus-visible { outline-offset: -3px; }
.district-control { padding: 6px 0 6px 14px; min-width: 0; text-align: left; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.district-clear { display: grid; place-items: center; flex: 0 0 44px; padding: 0; color: var(--muted); }
.district-clear .icon { width: 16px; height: 16px; }
.district-clear:hover, .district-clear:focus-visible { color: var(--ink); }
.district-choices { padding: 16px 4px; }
.district-choices h2 { margin: 0 0 9px 5px; font-size: 14px; font-weight: 500; color: var(--muted); }
.district-list { display: grid; gap: 2px; padding: 5px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); }
.district-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 47px;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--control-radius);
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  text-align: left;
}
.district-option[aria-pressed="true"] { background: var(--raised); }
@media (hover: hover) { .district-option:hover { background: var(--raised); } }
.district-option .icon { width: 15px; height: 15px; margin-left: auto; color: var(--muted); }
.district-option[aria-pressed="true"], .district-option[aria-pressed="true"] .icon { color: var(--accent); }
.district-option:focus-visible { outline-offset: -2px; }
.tab-button[aria-current="page"] { color: var(--background); background: var(--accent); }
.tab-button:focus-visible { outline-color: var(--ink); outline-offset: -2px; }
@media (hover: hover) { .tab-button:not([aria-current]):hover { background: #ffffff10; } }
.profile-view { padding: 28px 4px 20px; text-align: center; }
.profile-avatar {
  position: relative;
  cursor: pointer;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--raised);
  color: var(--accent);
  font-size: 24px;
  font-weight: 500;
}
.profile-avatar .icon { width: 30px; height: 30px; }
.avatar-face { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.avatar-face img { width: 100%; height: 100%; object-fit: cover; }
.avatar-camera { position: absolute; right: -2px; bottom: -1px; display: grid; place-items: center; width: 23px; height: 23px; border: 2px solid var(--background); border-radius: 50%; background: var(--raised); }
.avatar-camera .icon { width: 14px; height: 14px; }
.profile-avatar input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.profile-avatar:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.profile-name { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.profile-identity { display: grid; justify-items: center; }
.profile-edit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 2px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
}
.profile-edit .icon { width: 17px; height: 17px; }
.profile-form {
  width: min(100%, 340px);
  margin: 12px auto;
}
.profile-form button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
}
.profile-list { display: grid; gap: 8px; margin: 24px 0 0; }
.profile-row {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-size: 14px;
}
@media (hover: hover) { button.profile-row:hover { background: var(--raised); } }
.profile-row .icon { color: var(--accent); }
.profile-district .icon { color: var(--muted); }
.profile-district .profile-count { min-width: 0; overflow-wrap: anywhere; text-align: end; }
.profile-row > .icon:last-child { width: 15px; height: 15px; margin-inline-start: auto; color: var(--muted); }
.profile-count + .icon:last-child { margin-inline-start: 0; }
.profile-count { margin-inline-start: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.notification-settings { min-width: 0; padding: 16px 14px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); text-align: left; }
.notification-settings h3 { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; }
.notification-settings h3 .icon { color: var(--accent); }
.notification-note { margin: 5px 0 10px 32px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.notification-options { display: grid; gap: 2px; padding: 4px; border-radius: 20px; background: var(--background); }
.notification-option-row { display: flex; align-items: center; border-radius: var(--control-radius); }
.notification-option-row.is-selected { background: var(--raised); }
.notification-option { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--control-radius); background: transparent; color: var(--muted); text-align: left; font: inherit; font-size: 14px; }
.notification-option .icon { width: 16px; height: 16px; visibility: hidden; color: var(--accent); }
.notification-option[aria-pressed=true] { color: var(--ink); }
.notification-option[aria-pressed=true] .icon { visibility: visible; }
.notification-cancel {
  --show-close: 0;
  display: grid; place-items: center; flex: 0 0 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--accent);
}
.notification-cancel-check, .notification-cancel-close { display: grid; place-items: center; grid-area: 1 / 1; pointer-events: none; }
.notification-cancel-check { opacity: calc(1 - var(--show-close)); }
.notification-cancel-close { opacity: var(--show-close); }
.notification-cancel .icon { width: 18px; height: 18px; }
.notification-cancel:focus-visible { --show-close: 1; outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) { .notification-cancel:hover { --show-close: 1; } }
@media (hover: none), (pointer: coarse) { .notification-cancel { --show-close: 1; } }
.notification-district { display: grid; min-width: 0; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.notification-district-trigger {
  display: grid; grid-template-columns: minmax(0,1fr) 28px; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 48px;
  padding: 6px 9px 6px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--background);
  color: var(--ink); font-size: 15px; text-align: start; overflow-wrap: anywhere;
}
.notification-district-trigger::after { content: ''; grid-area: 1 / 2; width: 28px; height: 28px; border-radius: 50%; background: var(--raised); }
.notification-district-trigger .icon { grid-area: 1 / 2; justify-self: center; z-index: 1; width: 16px; height: 16px; color: var(--accent); transform: rotate(90deg); }
.notification-district-trigger[aria-expanded=true] .icon { transform: rotate(-90deg); }
.district-dialog:not([open]) { display: none; }
.district-dialog[open] {
  position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  width: min(100%,520px); height: 100%; max-width: none; max-height: none; margin: 0 auto; border: 0;
  padding: max(12px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  overflow: hidden; background: rgb(14 14 14 / 60%); color: var(--ink); overscroll-behavior: contain;
}
.district-dialog::backdrop { background: transparent; }
.district-dialog[data-fallback][open] { position: absolute; }
.district-sheet {
  display: flex; flex-direction: column; min-height: 0; width: 100%; max-height: 78%;
  overflow: hidden; border: 1px solid var(--line); border-radius: 28px;
  background: var(--surface); box-shadow: 0 10px 38px #12121247; color: var(--ink);
}
.district-sheet::before {
  content: ''; width: 34px; height: 4px; flex: none; margin: 8px auto 0; border-radius: 99px;
  background: var(--muted); opacity: .65;
}
.district-sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 9px 4px 18px; }
.district-sheet-header h2 { min-width: 0; font-size: 19px; line-height: 1.3; font-weight: 600; }
.district-sheet-close {
  display: grid; place-items: center; position: relative; z-index: 0; flex: 0 0 44px; height: 44px; padding: 0; border: 0;
  border-radius: 50%; background: transparent; color: var(--ink);
}
.district-sheet-close::before { content: ''; position: absolute; z-index: -1; inset: 7px; border-radius: 50%; background: var(--raised); }
.district-sheet-close .icon { width: 16px; height: 16px; }
.district-sheet-options {
  min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--muted) transparent;
  margin: 0 10px 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--background);
}
.district-sheet-option {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 46px; padding: 9px 15px; border: 0; background: transparent; color: var(--ink);
  font-size: 15px; text-align: start; overflow-wrap: anywhere;
}
.district-sheet-option + .district-sheet-option::before { content: ''; position: absolute; inset: 0 15px auto; height: 1px; background: var(--line); }
.district-sheet-option[aria-checked=true] { background: var(--raised); color: var(--accent); font-weight: 600; }
.district-sheet-option .icon { width: 20px; height: 20px; color: var(--accent); }
.district-sheet-option:focus-visible { outline-offset: -3px; border-radius: 12px; }
.district-sheet-close:focus-visible { outline-offset: -3px; }
@media (hover: hover) {
  .district-sheet-option:hover, .notification-district-trigger:hover { background: var(--raised); }
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .district-dialog[open] { background: rgb(14 14 14 / 34%); }
  .district-sheet {
    background: linear-gradient(155deg,color-mix(in srgb,var(--surface) 78%,transparent),color-mix(in srgb,var(--surface) 66%,transparent));
    border-color: color-mix(in srgb,var(--ink) 21%,transparent);
    -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  }
  .district-sheet-options { background: color-mix(in srgb,var(--background) 30%,transparent); }
}
@media (prefers-reduced-transparency: reduce) {
  .district-dialog[open] { background: rgb(14 14 14 / 60%); }
  .district-sheet { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .district-sheet-options { background: var(--background); }
}
@media (prefers-reduced-motion: no-preference) {
  .district-dialog[open] .district-sheet { animation: district-sheet-enter .2s ease-out; }
  @keyframes district-sheet-enter { from { transform: translateY(14px); } }
}
@media (max-width: 375px) {
  .app-header:has(.theme-toggle) .app-title { font-size: 17px; gap: 4px; }
}
@media (max-width: 340px) {
  .app-header:has(.theme-toggle) .app-title { font-size: 16px; }
  .app-header:has(.theme-toggle) .city-mark { width: 14px; }
  .app-header:has(.theme-toggle) .header-actions button { width: 36px; }
}
.profile-form button { min-height: 44px; flex: none; font-weight: 500; }
.profile-form button:active { background: var(--raised); }
[data-theme=light] .app-header, [data-theme=light] #panel:not(:empty) { background: var(--surface); }
[data-theme=light] .app-header .city-mark { color: var(--ink); }
[data-theme=light] .stream { scrollbar-color: #adadad transparent; }
[data-theme=light] .search-box { background: linear-gradient(175deg, var(--surface), var(--background)); border-color: var(--line); box-shadow: 0 2px 6px #33333312; }
[data-theme=light] .search-box:focus-within { border-color: var(--accent); }
[data-theme=light] .search-box input::placeholder { color: var(--muted); }
[data-theme=light] .toast { background: var(--surface); border-color: var(--line); box-shadow: 0 3px 15px #33333326; }
[data-theme=light] .bottom-nav { box-shadow: 0 3px 14px #33333326; }
[data-theme=light] mark.search-hit { background: #e7e7e7; color: #333333; }
[data-theme=light] .reaction:hover:before, [data-theme=light] .reaction[aria-pressed=true]:before { background: #dedede; }
[data-theme=light] .reaction[aria-pressed=true], [data-theme=light] .picker-toggle:hover, [data-theme=light] .picker-toggle[aria-expanded=true] { color: var(--accent); }
@media (min-width: 540px) { #app { border-inline: 1px solid #ffffff08; } }
@media (max-width: 340px) { .post-header, .post-text { padding-left: 11px; padding-right: 11px; } .reaction { min-width: 36px; padding-inline: 7px; } .post-actions .icon-button { width: 35px; } .post-footer { padding-left: 8px; } }

/* Neutral canvas behind the reader and around the welcome screen. */
body { isolation: isolate; background: var(--scene-base); }
#app { background: transparent; isolation: isolate; }
@media (min-width: 700px) {
  #app { box-shadow: 0 18px 80px rgb(41 41 41 / 22%); border-inline: 1px solid var(--glass-line); }
}
:root .app-header {
  --header-inset: 10px;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  column-gap: 4px;
  min-height: calc(56px + env(safe-area-inset-top));
  padding: calc(env(safe-area-inset-top) + 6px) max(var(--header-inset),env(safe-area-inset-right)) 6px max(var(--header-inset),env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--glass-solid);
}
.app-title { font-size: 19px; line-height: 1.15; padding: 0; letter-spacing: -.035em; font-weight: 650; }
:root .app-title .city-mark { width: 15px; height: 18px; color: currentColor; }
.header-actions { align-items: center; gap: 0; }
.header-actions .icon-button, .app-header > .icon-button {
  width: 44px; height: 44px; border: 0; padding: 0; background: transparent;
  border-radius: 50%; color: var(--ink); box-shadow: none;
}
.header-actions .icon, .app-header > .icon-button .icon { width: 19px; height: 19px; }
.header-actions .theme-toggle { justify-items: end; padding-inline-end: 4px; }
.app-header .icon-button:focus-visible { outline-offset: -5px; }
#app .reader-weather { color: var(--ink); inset-inline-start: max(14px, env(safe-area-inset-left)); }
.stream {
  padding-inline: clamp(8px,2.4vw,14px); scrollbar-gutter: auto;
  scrollbar-color: var(--glass-line) transparent;
}
.day {
  width: fit-content; margin: 13px auto 10px; padding: 4px 12px;
  border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass-solid);
  color: var(--ink); font-size: 11px; font-weight: 550; letter-spacing: .015em;
}
.post, .empty {
  border: 1px solid var(--glass-line); border-top-color: var(--glass-edge);
  background: var(--glass-card); box-shadow: var(--glass-shadow);
}
.post { margin: 0 0 12px; }
.post.feed-event {
  --event-glow: 255 220 77;
  --event-rim: rgb(255 227 131 / 88%);
  border-color: var(--event-rim);
  box-shadow: inset 0 0 5px rgb(var(--event-glow) / 14%),
    0 0 3px 1px rgb(var(--event-glow) / 40%),
    0 0 10px 1px rgb(var(--event-glow) / 25%), var(--glass-shadow);
}
[data-theme=light] .post.feed-event {
  --event-glow: 248 199 32;
  --event-rim: rgb(199 157 27 / 86%);
}
.post-header { min-height: 45px; padding: 11px 17px 9px; gap: 8px; line-height: 1.4; }
.publisher { color: var(--accent); font-weight: 650; }
.post-header time { color: var(--muted); font-variant-numeric: tabular-nums; }
.post-image {
  width: calc(100% - 16px); margin-inline: 8px; border-radius: calc(var(--card-radius) - 8px);
}
.post-text { padding: 0 17px 5px; }
.post-text h2 { font-size: clamp(17px, 3.8vw, 19px); line-height: 1.27; font-weight: 650; letter-spacing: -.026em; margin: 1px 0 8px; }
.post-text p { font-size: 15px; line-height: 1.52; }
.story-body[data-collapsed] [data-story-more],
.story-body:not([data-collapsed]) .story-ellipsis { display: none; }
.story-toggle {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 4px; margin-inline-start: -4px; border: 0; border-radius: 6px;
  background: transparent; color: var(--accent); font: inherit; font-size: 14px;
  font-weight: 650; cursor: pointer; text-underline-offset: .2em;
}
.story-toggle:hover, .story-toggle:focus-visible { text-decoration: underline; }
.event-day { font-size: 12px; }
.post[data-post] .event-image { aspect-ratio: 3 / 2; }
.event-card .post-header time {
  order: -1;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}
.event-card .event-venue, .event-card .event-range { color: var(--muted); font-size: 14px; }
.event-card .event-range { margin-top: -6px; }
.other-sources { padding: 3px 17px 0; }
.post-footer { padding: 3px 9px 5px 13px; }
.post-actions .icon-button { width: 40px; border-radius: 50%; color: var(--muted); }
.post-actions .icon-button[aria-pressed=true] { color: var(--accent); }
.post-actions .icon { width: 18px; height: 18px; }
.reaction::before { background: var(--glass-pill); box-shadow: inset 0 1px 0 var(--line); }
:root .reaction[aria-pressed=true]::before { background: var(--glass-selected); box-shadow: inset 0 0 0 1px var(--accent); }
:root .reaction[aria-pressed=true], :root .picker-toggle[aria-expanded=true] { color: var(--accent); }
.reaction-picker { padding: 9px 12px 12px; background: var(--control-well); }
.picker-toggle .icon { width: 21px; height: 21px; }
.ad-link { background: var(--glass-pill); border: 1px solid var(--glass-line); font-weight: 600; }
:root mark.search-hit { background: var(--find-mark); color: var(--find-text); border-radius: 4px; }
:root .bottom-nav {
  padding: 4px; gap: 3px; border-color: var(--glass-line);
  background: var(--glass-solid);
  box-shadow: 0 4px 10px -3px rgb(0 0 0 / 24%);
}
.tab-button { color: var(--ink); }
.tab-button[aria-current="page"] { color: var(--tab-ink); background: var(--tab-active); box-shadow: inset 0 1px 0 var(--glass-edge), 0 2px 6px rgb(27 27 27 / 17%); }
.district-badge { background: var(--accent); color: var(--background); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  :root .bottom-nav, :root .app-header {
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  :root .app-header { background: var(--glass-header); }
  :root .bottom-nav { background: var(--glass-dock); }
  .day { background: var(--glass-card); }
}
@media (hover: hover) {
  .header-actions button:hover, .app-header > button:hover { opacity: .76; background: transparent; }
  .post-actions .icon-button:hover,
  .tab-button:not([aria-current]):hover, :root .reaction:hover::before { background: var(--glass-selected); color: var(--ink); }
}
@media (max-width: 375px) {
  :root .app-header { --header-inset: 4px; column-gap: 2px; }
  .app-header:has(.theme-toggle) { grid-template-columns: minmax(48px,1fr) auto minmax(88px,1fr); }
  .app-header:has(.theme-toggle) .header-actions button { width: 44px; }
  .post-text, .post-header { padding-inline: 13px; }
}
@media (prefers-reduced-transparency: reduce) {
  :root .bottom-nav, :root .app-header, .post, .empty, .day {
    background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}
@media (forced-colors: active) {
  .tab-button[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -3px; }
}

/* Reader controls use nested tints inside a single frosted surface. */
:root {
  --control-sheen: inset 0 1px 0 rgb(255 255 255 / 13%), inset 0 -1px 0 rgb(0 0 0 / 8%);
  --control-well: rgb(15 15 15 / 24%);
  --control-divider: rgb(238 238 238 / 12%);
  --avatar-glow: rgb(208 208 208 / 36%);
  --avatar-dusk: rgb(184 184 184 / 32%);
  --sheet-scrim: rgb(16 16 16 / 42%);
}
:root[data-theme=light] {
  --control-sheen: inset 0 1px 0 rgb(255 255 255 / 68%), inset 0 -1px 0 rgb(92 92 92 / 7%);
  --control-well: rgb(103 103 103 / 10%);
  --control-divider: rgb(64 64 64 / 14%);
  --avatar-glow: rgb(179 179 179 / 40%);
  --avatar-dusk: rgb(188 188 188 / 43%);
  --sheet-scrim: rgb(49 49 49 / 26%);
}
:root #panel:not(:empty) {
  background: var(--glass-solid, var(--surface));
  border-color: var(--glass-line, var(--line));
  border-top: 0; box-shadow: none;
}
.search-panel { padding: 8px 13px 12px; }
:root .search-box, .district-tools, .notification-district-trigger {
  background: var(--glass-pill, var(--raised));
  border: 1px solid var(--glass-line, var(--line));
  box-shadow: var(--control-sheen);
}
:root .search-box:focus-within {
  border-color: var(--accent);
  box-shadow: var(--control-sheen), 0 0 0 2px var(--control-well);
}
:root .search-box input::placeholder { color: var(--muted); opacity: 1; }
.search-box > .icon { width: 17px; height: 17px; }
.district-tools { margin-block: 4px 11px; }
.district-control { padding-inline-start: 16px; }
.district-clear { color: var(--ink); }
.district-clear .icon { width: 14px; height: 14px; }
.district-choices { padding: 17px 4px; }
.district-choices h2 { margin: 0 0 10px 12px; font-size: 15px; color: var(--ink); }
.district-list, .notification-settings, .profile-row, .district-sheet {
  background: var(--glass-solid, var(--surface));
  border: 1px solid var(--glass-line, var(--line));
  box-shadow: var(--glass-shadow, var(--control-sheen));
}
.district-list { gap: 0; padding: 5px; border-radius: 26px; }
.district-option, .district-sheet-option { position: relative; }
.district-option + .district-option::before, .district-sheet-option + .district-sheet-option::before {
  content: '';
  position: absolute;
  inset: 0 14px auto;
  height: 1px;
  background: var(--control-divider);
  pointer-events: none;
}
.district-option[aria-pressed=true]::before, .district-option[aria-pressed=true] + .district-option::before,
.district-sheet-option[aria-checked=true]::before, .district-sheet-option[aria-checked=true] + .district-sheet-option::before { opacity: 0; }
.district-option[aria-pressed=true], .district-sheet-option[aria-checked=true], .notification-option-row.is-selected {
  background: var(--glass-selected, var(--raised));
  color: var(--ink);
  box-shadow: var(--control-sheen);
}
.district-option[aria-pressed=true] { font-weight: 600; }
.profile-view { padding: 30px 4px 20px; }
.profile-avatar {
  width: 72px;
  height: 72px;
  color: var(--ink);
  border: 1px solid var(--glass-line, var(--line));
  background: radial-gradient(ellipse at 30% 5%, var(--avatar-glow), transparent 68%),
    radial-gradient(ellipse at 90% 95%, var(--avatar-dusk), transparent 64%), var(--glass-solid, var(--surface));
  box-shadow: var(--glass-shadow, var(--control-sheen));
}
.avatar-camera {
  width: 26px;
  height: 26px;
  background: var(--glass-solid, var(--surface));
  color: var(--ink);
  border: 1px solid var(--glass-line, var(--line));
  box-shadow: var(--control-sheen), 0 2px 6px rgb(16 16 16 / 18%);
}
.profile-identity { gap: 2px; min-width: 0; }
.profile-name { font-size: 22px; letter-spacing: -.025em; }
.profile-edit { padding-inline: 12px; border-radius: 999px; font-size: 14px; }
.profile-form { min-width: 0; margin: 9px auto; }
.profile-form button {
  color: var(--ink);
  background: var(--glass-selected, var(--raised));
  box-shadow: var(--control-sheen);
  margin-block: 2px;
}
.profile-list { margin-top: 20px; gap: 9px; }
.submission-section { min-width: 0; }
.submission-section .profile-row[aria-expanded=true] > .icon:last-child { transform: rotate(90deg); }
.submission-form {
  margin-top: 5px; padding: 16px; text-align: start; color: var(--ink);
  background: var(--glass-card); border: 1px solid var(--glass-line); border-radius: 20px;
}
.submission-form fieldset { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.submission-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.submission-form input, .submission-form textarea {
  width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px;
  font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--ink); background: var(--control-well);
}
.submission-form textarea { resize: vertical; min-height: 90px; }
.submission-form [type=submit] {
  min-height: 44px; padding: 8px 18px; border: 1px solid var(--glass-edge); border-radius: 999px;
  color: var(--tab-ink); background: var(--tab-active); font-size: 14px; font-weight: 600;
}
.submission-form fieldset:disabled { opacity: .7; }
.submission-hint, .submission-status { color: var(--muted); font-size: 13px; }
.submission-status:not(:empty) { margin-top: 8px; }
.profile-list a.profile-row { color: var(--ink); text-decoration: none; }
.profile-row { min-height: 53px; padding-inline: 17px; border-radius: 20px; }
.profile-count { font-size: 13px; }
.notification-settings { padding: 16px; border-radius: 26px; }
.notification-settings h3 { font-size: 16px; font-weight: 600; letter-spacing: -.012em; }
.notification-note { margin: 4px 0 13px 32px; font-size: 13px; line-height: 1.45; }
.notification-options {
  padding: 4px;
  border: 1px solid var(--control-divider);
  border-radius: 19px;
  background: var(--control-well);
}
.notification-option-row { border-radius: 15px; }
.notification-option { color: var(--ink); }
.notification-option[aria-pressed=true] { font-weight: 600; }
.notification-cancel, .notification-district-trigger .icon { color: var(--accent); }
.notification-district { gap: 7px; margin-top: 15px; }
.notification-district > span { padding-inline: 5px; }
.notification-district-trigger { padding: 6px 9px 6px 15px; }
.notification-district-trigger::after, .district-sheet-close::before { background: var(--glass-pill, var(--raised)); box-shadow: var(--control-sheen); }
.district-dialog[open] { background: var(--sheet-scrim); }
.district-sheet { border-radius: 30px; }
.district-sheet::before { width: 34px; margin-top: 9px; height: 3px; }
.district-sheet-header { padding: 4px 11px 6px 21px; }
.district-sheet-header h2 { font-size: 19px; letter-spacing: -.025em; }
.district-sheet-options { margin: 0 11px 11px; padding: 3px; border-radius: 21px; background: var(--control-well); border: 1px solid var(--control-divider); }
.district-sheet-option { border-radius: 16px; min-height: 46px; padding-inline: 12px; }
:root .toast {
  background: var(--glass-solid, var(--surface));
  box-shadow: var(--glass-shadow, var(--control-sheen));
  border: 1px solid var(--glass-line, var(--line));
  border-radius: 22px;
  color: var(--ink);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  :root #panel:not(:empty), .district-list, .notification-settings, .profile-row, .district-sheet, :root .toast {
    background: var(--glass-panel, var(--glass-solid));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .district-sheet, :root .toast {
    background: linear-gradient(155deg, rgb(255 255 255 / 6%), transparent 50%), var(--glass-solid, var(--surface));
    background: linear-gradient(155deg, rgb(255 255 255 / 10%), transparent 50%), color-mix(in srgb, var(--surface) 66%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
@media (hover: hover) {
  .district-option:not([aria-pressed=true]):hover, .district-sheet-option:not([aria-checked=true]):hover,
  .notification-district-trigger:hover, button.profile-row:hover, .profile-edit:hover {
    background: var(--glass-pill, var(--raised));
    color: var(--ink);
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root #panel:not(:empty), .district-list, .notification-settings, .profile-row, .district-sheet, :root .toast {
    background: var(--glass-solid, var(--surface));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (forced-colors: active) {
  .district-option[aria-pressed=true], .district-sheet-option[aria-checked=true], .notification-option-row.is-selected {
    outline: 1px solid SelectedItem;
    outline-offset: -2px;
  }
}
