:root {
  color-scheme: light dark;
  --bar-height: 50px;
  --bg: #f4faff;
  --sidebar: #d9edfb;
  --hover: #e3f2fd;
  --selected: #b5dcf7;
  --border: #a9cde6;
  --text: #0a2740;
  --muted: #35566f;
  --read: #4c6b83;
  --accent: #0a5f9e;
  --on-accent: #ffffff;
  --accent-tint: #c9e6fa;
  --placeholder: #d6e8f5;
  --placeholder-shine: #e9f4fc;
  --danger: #a8201a;
  --backdrop: rgb(10 39 64 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1b2b;
    --sidebar: #102537;
    --hover: #163247;
    --selected: #1e4663;
    --border: #2b4c66;
    --text: #e8f4fd;
    --muted: #a9c6dc;
    --read: #93b1c8;
    --accent: #6ec1f6;
    --on-accent: #06202f;
    --accent-tint: #17405d;
    --placeholder: #1a3347;
    --placeholder-shine: #244560;
    --danger: #ff9f97;
    --backdrop: rgb(0 0 0 / 0.6);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  grid-template-rows: var(--bar-height) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Keeps the page from shifting when the open reading panel hides the scrollbar. */
:root { scrollbar-gutter: stable; }
:root:has(dialog[open]) { overflow: hidden; }

a { color: inherit; }

button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

svg { display: block; }

/* Site bar, on every page */

.site-bar {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--bar-height);
  padding: 0 16px;
  background: var(--sidebar);
  border-bottom: 1px solid var(--border);
}

.site-links { display: flex; gap: 4px; min-width: 0; }

.site-links a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.site-links a:hover { background: var(--hover); color: var(--text); }
.site-links a[aria-current="page"] { background: var(--selected); color: var(--text); }

/* Dashboard and Transit */

body.page { display: block; }

.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 32px 60px;
}

.page-content h1 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.page-content h1:has(+ .feed-meta) { margin-bottom: 0; }
.page-content .feed-meta { margin-bottom: 18px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  align-items: start;
  gap: 20px;
}

.panel {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.dashboard-grid .panel { margin-bottom: 0; }

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-heading h2 { margin: 0; font-size: 18px; }
.panel-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.panel-link:hover { text-decoration: underline; }
.panel-empty { margin: 0; color: var(--muted); }
.panel-empty a { color: var(--accent); font-weight: 600; }

.article-list { margin: 0; padding: 0; list-style: none; }
.article-list li { padding: 9px 0; border-top: 1px solid var(--border); }
.article-list li:first-child { padding-top: 0; border-top: 0; }
.article-list a { display: block; font-weight: 600; overflow-wrap: anywhere; text-decoration: none; }
.article-list a:hover { color: var(--accent); text-decoration: underline; }
.article-meta { color: var(--muted); font-size: 12.5px; }

/* Departures */

.stop { padding: 12px 0; border-top: 1px solid var(--border); }
.stop:first-child { padding-top: 0; border-top: 0; }
.stop-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.stop-name { display: flex; flex: 1; flex-wrap: wrap; gap: 0 8px; min-width: 0; }
.stop-line { color: var(--muted); }
.stop-empty { margin: 0; color: var(--muted); }
.stop .row-action { opacity: 1; }

/* Yellow vanishes against a light page without the outline. */
.line-swatch {
  flex: none;
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--text);
  border-radius: 50%;
}

.departures { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.departure strong { display: block; font-size: 16px; }
.departure-details { color: var(--muted); font-size: 12.5px; }
.departure.is-cancelled strong { color: var(--danger); }

.add-stop { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.add-stop label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 600; }

.add-stop select {
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

#stop-error { margin: 10px 0 0; }

/* Map */

.map-note { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.map-scroll { overflow-x: auto; }
#map { display: block; width: 100%; min-width: 720px; height: auto; }
.map-casing, .map-track { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-casing { stroke: var(--text); stroke-width: 6; }
.map-track { stroke-width: 4; }
.map-station { fill: var(--bg); stroke: var(--text); stroke-width: 2; }
.map-label { fill: var(--text); font-size: 13px; }
/* The halo is a gap in the page's own color, which lifts a train off the tracks underneath it. */
.map-train-halo { fill: var(--bg); stroke: var(--bg); stroke-width: 4.5; stroke-linejoin: round; }
.map-train-body { stroke: var(--text); stroke-width: 1.4; stroke-linejoin: round; }
.map-window-light { fill: #ffffff; }
.map-window-dark { fill: #0a2740; }
.map-wheel { fill: var(--text); }

/* Sidebar */

.sidebar {
  position: sticky;
  top: var(--bar-height);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--bar-height));
  overflow-y: auto;
  padding: 20px 12px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 24px;
  font-size: 16px;
  font-weight: 700;
}

.brand-mark { width: 24px; height: 24px; flex: none; }
.brand-tile { fill: var(--accent); }
.brand-glyph-fill { fill: var(--on-accent); }
.brand-glyph-line {
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.nav-label {
  margin: 0 0 6px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feeds-toggle { display: none; }

.feed-list, .group-feeds {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed-list { user-select: none; } /* Dragging a row shouldn't select text. */
.feed-group { margin-bottom: 10px; }
.group-feeds:empty { min-height: 14px; } /* Leaves somewhere to drop a feed. */
.is-dragging { background: var(--selected); opacity: 0.7; }

.group-row {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  border-radius: 6px;
}

.group-row:hover { background: var(--hover); }
.group-row.is-selected { background: var(--selected); }

.group-open {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 4px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drag-handle {
  flex: none;
  width: 18px;
  height: 26px;
  border-radius: 5px;
  color: var(--muted);
  text-align: center;
  cursor: grab;
  opacity: 0;
  touch-action: none; /* Otherwise a touch drag scrolls the page instead. */
}

.feed-row:hover > .drag-handle,
.group-row:hover > .drag-handle,
.drag-handle:focus-visible { opacity: 1; }

.new-category {
  margin: 2px 8px 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.new-category:hover { text-decoration: underline; }

.recommended-link { padding: 4px 8px; color: var(--accent); font-weight: 600; }

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  padding: 14px 0 28px;
}

.recommended-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.recommended-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.recommended-card p { margin: 0; }
.recommended-about { flex: 1; color: var(--muted); font-size: 13px; }
.recommended-state { padding: 7px 0; color: var(--accent); font-weight: 600; }

.feed-row {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  border-radius: 6px;
}

.feed-row:hover { background: var(--hover); }
.feed-row.is-selected { background: var(--selected); font-weight: 600; }

.feed-open {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 6px;
  text-decoration: none;
}

.row-action {
  flex: none;
  width: 26px;
  height: 26px;
  margin-right: 2px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  text-align: center;
  opacity: 0;
}

.feed-row:hover .row-action,
.feed-row.is-selected .row-action,
.group-row:hover .row-action,
.group-row.is-selected .row-action,
.row-action:focus-visible { opacity: 1; }

.row-action:hover { color: var(--danger); }

/* Touch screens have no hover, so the controls have to stay visible there. */
@media (hover: none) {
  .row-action, .drag-handle { opacity: 1; }
}

.add-feed { margin-top: 18px; padding: 0 8px; }

.add-feed label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

.add-feed input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.add-feed input::placeholder { color: var(--muted); }

.add-feed-help {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.add-feed-error {
  margin: 0 0 8px;
  color: var(--danger);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.button:disabled { opacity: 0.6; cursor: default; }

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
}

.feed-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.sign-out { flex: none; margin-left: auto; }

.sign-out-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}

.sign-out-button:hover { background: var(--selected); color: var(--text); }

.sign-out-button svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Feed header */

.content {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.content[data-view="cards"] { max-width: 1180px; }

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.tab {
  flex: none;
  margin-bottom: -1px;
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 600;
}

/* Named after a category or feed, so it can be long. */
.tab[data-tab-option="scope"] {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--accent); }

.feed-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.feed-heading { flex: 1 1 280px; min-width: 0; }

.feed-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.feed-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.feed-meta:empty { display: none; }

.toolbar { display: flex; align-items: center; gap: 10px; }
.view-switch { display: flex; gap: 2px; }

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: var(--muted);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover { background: var(--hover); color: var(--text); }
.icon-button:disabled { cursor: default; }
.icon-button[aria-pressed="true"] { background: var(--accent-tint); color: var(--accent); }

.notice {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--danger);
  border-radius: 6px;
  color: var(--danger);
  font-size: 13px;
}

/* Article list */

.group-heading {
  margin: 28px 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.group:first-child .group-heading { margin-top: 0; }

.item {
  display: flex;
  gap: 20px;
  margin: 0 -12px;
  padding: 18px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.item:hover { background: var(--hover); }

.item-image {
  flex: none;
  width: 168px;
  height: 112px;
  border-radius: 6px;
  background: var(--placeholder);
  object-fit: cover;
}

.item-body { flex: 1; min-width: 0; }

.item-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.item.is-read .item-title { color: var(--read); font-weight: 400; }
.item-feed { font-weight: 600; }

.item-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.item-excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Cards layout */

.content[data-view="cards"] .group-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  padding-top: 16px;
}

.content[data-view="cards"] .item {
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.content[data-view="cards"] .item-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.content[data-view="cards"] .item-body { padding: 0 14px; }
.content[data-view="cards"] .item:not(:has(.item-image)) { padding-top: 14px; }
.content[data-view="cards"] .item-title { font-size: 16px; }

/* Titles-only layout */

.content[data-view="titles"] .item { padding: 8px 12px; }
.content[data-view="titles"] .item-image { display: none; }

.content[data-view="titles"] .item-body {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.content[data-view="titles"] .item-title {
  flex: 0 1 auto;
  max-width: 68%;
  min-width: 0;
  margin: 0;
  font-size: 14px;
}

.content[data-view="titles"] .item-title button {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content[data-view="titles"] .item-excerpt {
  order: 2;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content[data-view="titles"] .item-meta {
  order: 3;
  flex: none;
  margin: 0 0 0 auto;
}

.content[data-view="titles"] .item-author,
.content[data-view="titles"] .item-feed { display: none; }

/* Loading and empty states */

.skeleton-row { display: flex; gap: 20px; padding: 18px 0; }
.skeleton-lines { flex: 1; padding-top: 4px; }

.skeleton {
  border-radius: 4px;
  background: var(--placeholder);
}

.skeleton-image { flex: none; width: 168px; height: 112px; border-radius: 6px; }
.skeleton-line { height: 12px; margin-bottom: 12px; }
.skeleton-line:first-child { width: 72%; height: 18px; }
.skeleton-line:nth-child(2) { width: 22%; }
.skeleton-line:last-child { width: 92%; }

@media (prefers-reduced-motion: no-preference) {
  .skeleton {
    background: linear-gradient(90deg, var(--placeholder) 30%, var(--placeholder-shine) 50%, var(--placeholder) 70%);
    background-size: 300% 100%;
    animation: shimmer 1.4s linear infinite;
  }

  #refresh.is-loading svg { animation: spin 0.9s linear infinite; }
  .reader[open] { animation: slide-in 0.18s ease-out; }

  @keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes slide-in { from { transform: translateX(32px); opacity: 0; } }
}

.message { padding: 48px 0; color: var(--muted); }
.message p { margin: 0 0 16px; overflow-wrap: anywhere; }

.button {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

/* Reading panel */

.reader {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(780px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.reader::backdrop { background: var(--backdrop); }
.reader-panel { min-height: 100%; }
.reader-panel:focus-visible { outline: none; }

.reader-bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.visit {
  margin-right: auto;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.visit:hover { text-decoration: underline; }

.reader-article {
  max-width: 660px;
  margin: 0 auto;
  padding: 32px 28px 72px;
}

.reader-article h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.reader-meta {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.reader-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 24px;
  border-radius: 6px;
}

.reader-body {
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.reader-empty { color: var(--muted); font-size: 16px; }

.reader-details {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.reader-details summary {
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.reader-details dl {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  gap: 8px 20px;
  margin: 14px 0 0;
}

.reader-details dt { color: var(--muted); overflow-wrap: anywhere; }

.reader-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

/* Sign-in page */

body.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: none;
  place-items: center;
  padding: 24px;
  background: var(--sidebar);
}

.login-card {
  width: min(380px, 100%);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.login-card .brand { padding: 0 0 20px; }

.login-card h1 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.login-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--danger);
  border-radius: 6px;
  color: var(--danger);
  font-size: 13px;
}

/* Colors follow Google's sign-in button guidelines rather than this page's theme. */
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #ffffff;
  color: #1f1f1f;
  font-weight: 600;
  text-decoration: none;
}

.google-button:hover { background: #f2f2f2; }
.google-button svg { flex: none; width: 20px; height: 20px; }

@media (prefers-color-scheme: dark) {
  .google-button { border-color: #8e918f; background: #131314; color: #e3e3e3; }
  .google-button:hover { background: #26282b; }
}

/* Narrow windows */

@media (max-width: 760px) {
  body { display: block; }

  .sidebar {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    height: auto;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .site-bar { gap: 6px; padding: 0 10px; }
  .site-links a { padding: 6px 7px; }
  .sign-out-button span { display: none; } /* There's only room for its icon. */
  .page-content { padding: 20px 16px 48px; }
  .panel { padding: 14px; }
  .nav-label { display: none; }

  .feeds-toggle {
    display: block;
    padding: 5px 12px;
    border: 1px solid var(--muted);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
  }

  .feeds-toggle[aria-expanded="true"] { background: var(--selected); }

  .feeds-panel { display: none; flex-basis: 100%; order: 1; }
  .sidebar.is-open .feeds-panel { display: block; }
  .feed-open { padding: 10px 8px; }
  .row-action { width: 36px; height: 36px; font-size: 20px; }
  .drag-handle { width: 32px; height: 36px; font-size: 18px; }
  .new-category { margin: 6px 0 0; padding: 6px 0; }
  .add-feed { padding: 0; }
  .add-feed input { padding: 8px 10px; font-size: 16px; } /* Phones zoom in on smaller text fields. */
  .content { padding: 24px 16px 60px; }
  .feed-header h1 { font-size: 24px; }
  .item { gap: 14px; }
  .item-image, .skeleton-image { width: 96px; height: 72px; }
  .content[data-view="titles"] .item-excerpt { display: none; }
  .content[data-view="titles"] .item-title { max-width: 100%; flex: 1 1 auto; }
  .reader-article { padding: 24px 18px 56px; }
  .reader-article h2 { font-size: 24px; }
}
