:root {
  color-scheme: dark;
  --sidebar-width: 292px;
  --app-font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #0f0f0f;
  --panel: #181818;
  --panel-2: #202020;
  --line: #2a2a2a;
  --text: #e7e7e7;
  --muted: #898989;
  --soft: #b8b8b8;
  --green: #58c584;
  --blue: #6da8ff;
  --danger: #ff6b6b;
  --surface: #232323;
  --card: #2a2a2a;
  --card-2: #262626;
  --menu-border: #3b3b3b;
  --hover: #343434;
  --soft-hover: #1b1b1b;
  --input-bg: #171717;
  --input-muted-bg: #101010;
  --input-border: #3d3d3d;
  --header-line: #1e1e1e;
  --body-text: #d7d7d7;
  --detail-text: #d1d1d1;
  --read-text: #787878;
  --backdrop: rgba(0, 0, 0, 0.72);
  --sticky-surface: rgba(35, 35, 35, 0.94);
  --floating-surface: rgba(24, 24, 24, 0.96);
  --hover-overlay: rgba(255, 255, 255, 0.04);
  --strong-hover-overlay: rgba(255, 255, 255, 0.06);
  --subtle-overlay: rgba(255, 255, 255, 0.02);
  --separator-overlay: rgba(255, 255, 255, 0.05);
  --icon-filter: brightness(0) invert(0.9);
  --icon-filter-active: brightness(0) invert(1);
  --button-contrast-text: #08140d;
  --select-arrow: rgba(8, 20, 13, 0.72);
  --favicon-bg: #efefef;
  --favicon-text: #111;
}

:root[data-theme="day"] {
  color-scheme: light;
  --bg: #f5f6f4;
  --panel: #ffffff;
  --panel-2: #f0f2ef;
  --line: #d9ddd6;
  --text: #161a17;
  --muted: #667066;
  --soft: #3d463f;
  --surface: #f4f6f3;
  --card: #ffffff;
  --card-2: #f9faf8;
  --menu-border: #d8ded5;
  --hover: #e9eee7;
  --soft-hover: #f0f4ee;
  --input-bg: #ffffff;
  --input-muted-bg: #f1f4ef;
  --input-border: #c9d0c7;
  --header-line: #dde2da;
  --body-text: #2e3630;
  --detail-text: #2e3630;
  --read-text: #7a837b;
  --backdrop: rgba(22, 26, 23, 0.34);
  --sticky-surface: rgba(255, 255, 255, 0.92);
  --floating-surface: rgba(255, 255, 255, 0.96);
  --hover-overlay: rgba(22, 26, 23, 0.05);
  --strong-hover-overlay: rgba(22, 26, 23, 0.08);
  --subtle-overlay: rgba(22, 26, 23, 0.03);
  --separator-overlay: rgba(22, 26, 23, 0.08);
  --icon-filter: brightness(0) invert(0.12);
  --icon-filter-active: brightness(0) invert(0);
  --select-arrow: rgba(8, 20, 13, 0.72);
  --favicon-bg: #f5f5f5;
  --favicon-text: #111;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--app-font-family);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  background: var(--bg);
}

.app-shell.drawer-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 14px 8px 22px;
}

.sidebar-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 10px;
  cursor: col-resize;
  z-index: 2;
}

.sidebar-resize-handle::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 120ms ease;
}

.sidebar:hover .sidebar-resize-handle::after,
.sidebar-resize-handle:hover::after,
.is-resizing-sidebar .sidebar-resize-handle::after {
  background: var(--strong-hover-overlay);
}

body.is-resizing-sidebar {
  cursor: col-resize;
  user-select: none;
}

.brand-row {
  display: grid;
  grid-template-columns: 52px 1fr 48px;
  align-items: center;
  gap: 8px;
  padding: 0 8px 16px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  overflow: hidden;
}

.brand-mark.large {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 18px;
  background: transparent;
}

.brand-name {
  min-width: 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 800;
}

.sidebar-account-shell {
  padding: 10px 10px 0;
}

.sidebar-account-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}

.sidebar-account-trigger:hover,
.sidebar-account-trigger:focus-visible {
  background: var(--hover-overlay);
}

.sidebar-account-copy {
  min-width: 0;
  display: grid;
}

.sidebar-account-copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.97rem;
  font-weight: 700;
}

.sidebar-account-chevron {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.sidebar-account-trigger[aria-expanded="true"] .sidebar-account-chevron {
  transform: rotate(180deg);
}

.sidebar-account-menu {
  display: none;
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--menu-border);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.sidebar-account-menu.open {
  display: block;
}

.sidebar-account-menu .menu-item {
  min-height: 50px;
}

.sidebar-account-hint {
  min-height: 18px;
  margin: 10px 2px 0;
  padding: 0 10px;
}

#closeDrawer {
  justify-self: end;
  position: relative;
  z-index: 1;
}

.quick-nav,
.sidebar-section {
  margin-top: 20px;
}

.section-label,
.day-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 0 10px 10px;
}

.day-label {
  margin: 0 0 20px;
}

.nav-item,
.feed-row,
.category-header {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: var(--soft);
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover,
.feed-row:hover,
.nav-item.active,
.feed-row.active {
  background: var(--hover);
  color: var(--text);
}

.category-header:hover {
  background: var(--soft-hover);
  color: var(--text);
}

.nav-icon,
.count,
.feed-count {
  color: var(--muted);
  font-size: 12px;
}

.ui-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: var(--icon-filter);
}

.standard-ui-icon {
  fill: currentColor;
  filter: none !important;
}

.nav-ui-icon {
  width: 20px;
  height: 20px;
}

.button-ui-icon {
  width: 30px;
  height: 30px;
}

.icon-button:hover .ui-icon,
.outline-button:hover .ui-icon,
.nav-item:hover .ui-icon,
.feed-row:hover .ui-icon,
.nav-item.active .ui-icon,
.feed-row.active .ui-icon {
  filter: var(--icon-filter-active);
}

.category-header {
  margin-top: 2px;
  font-weight: 800;
}

.category-chevron {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.category-header[aria-expanded="true"] .category-chevron {
  color: var(--text);
}

.feed-row {
  position: relative;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  column-gap: 2px;
  padding-left: 34px;
}

.feed-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 2px;
}

.feed-select-button {
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.feed-options-anchor {
  position: relative;
  display: flex;
  justify-content: center;
}

.feed-options-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--soft);
  font: inherit;
  line-height: 1;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, background 120ms ease, color 120ms ease;
}

.feed-options-button:hover,
.feed-options-button:focus-visible,
.feed-options-button[aria-expanded="true"] {
  background: var(--strong-hover-overlay);
  color: var(--text);
}

.feed-main:hover .feed-options-button,
.feed-main:focus-within .feed-options-button,
.feed-row:focus-within .feed-options-button,
.feed-row.active .feed-options-button,
.feed-options-button[aria-expanded="true"] {
  color: var(--text);
  opacity: 1;
  pointer-events: auto;
}

.feed-options-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: -10px;
  z-index: 30;
  width: 220px;
  background: var(--card);
  border: 1px solid var(--menu-border);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.feed-options-menu .menu-item {
  min-height: 46px;
}

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

.feed-favicon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  background: var(--favicon-bg);
  color: var(--favicon-text);
  font-size: 10px;
  font-weight: 900;
}

.count,
.feed-count {
  justify-self: end;
  min-width: 32px;
  text-align: right;
}

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

.add-feed {
  margin: 20px 10px 0;
  width: calc(100% - 20px);
  min-height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--soft);
  border-radius: 6px;
  cursor: pointer;
}

.reader {
  min-width: 0;
}

.mobile-topbar {
  display: none;
}

.feed-header {
  min-height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(24px, 7vw, 128px) 38px;
  border-bottom: 1px solid var(--header-line);
}

.feed-header h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.feed-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.status-line {
  min-height: 18px;
  margin-top: 8px;
  color: var(--soft);
  font-size: 13px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.desktop-drawer-toggle[hidden] {
  display: none;
}

.desktop-drawer-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 12;
  background: var(--floating-surface);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.app-shell.drawer-collapsed .sidebar {
  display: none;
}

.icon-button,
.pill-button,
.outline-button,
.primary-button,
.danger-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  width: 48px;
  min-width: 48px;
  padding: 8px;
  color: var(--muted);
  border-color: transparent;
}

.icon-button:hover {
  color: var(--text);
  background: var(--hover-overlay);
}

.icon-button:disabled,
.outline-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.pill-button {
  padding: 0 14px;
  background: var(--green);
  color: var(--button-contrast-text);
  font-weight: 900;
}

.view-mode-select-shell {
  position: relative;
}

.view-mode-select {
  display: block;
  min-width: 136px;
  padding-right: 34px;
  appearance: none;
}

.view-mode-select-shell::after,
.menu-select-item::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--select-arrow);
  pointer-events: none;
  font-size: 12px;
}

.outline-button {
  padding: 0 16px;
  border-color: var(--input-border);
  color: var(--soft);
  text-decoration: none;
  font-weight: 800;
}

.action-button {
  min-width: 144px;
}

.primary-button {
  width: 100%;
  background: var(--green);
  color: var(--button-contrast-text);
  font-weight: 900;
}

.danger-button {
  min-width: 132px;
  padding: 0 16px;
  border-color: #6a2b2b;
  background: #3a1717;
  color: #ffd1d1;
  font-weight: 800;
}

.text-button {
  width: 100%;
  min-height: 40px;
  color: var(--soft);
  font-weight: 700;
}

.content-grid {
  display: block;
  padding: 42px clamp(24px, 7vw, 128px);
}

.article-list {
  display: grid;
  gap: 28px;
}

.article-group {
  display: grid;
  gap: 28px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.article-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.article.compact .article-card {
  grid-template-columns: 150px minmax(0, 1fr);
}

.article.compact-plus .article-card,
.article.headlines .article-card {
  grid-template-columns: minmax(0, 1fr);
}

.article.grid,
.article.magazine {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.article.grid .article-card,
.article.magazine .article-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 16px;
}

.article.magazine .article-card {
  padding: 18px;
}

.article-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.article-action-button {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 8px;
  margin-top: 0;
  opacity: 1;
  transform: none;
  transition: opacity 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.thumb {
  width: 150px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  background: var(--input-bg);
  border: 1px solid var(--line);
}

.thumb-fallback {
  object-fit: contain;
  padding: 4px;
  background: var(--input-muted-bg);
}

.article h2 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.18;
}

.article-meta,
.article-summary {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.article-summary {
  margin-top: 8px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article.read h2,
.article.read .article-summary {
  color: var(--read-text);
}

.article.muted-item {
  opacity: 0.72;
}

.article-text {
  min-width: 0;
}

.article.compact .article-summary,
.article.grid .article-summary {
  -webkit-line-clamp: 2;
}

.article.compact-plus .article-summary {
  -webkit-line-clamp: 4;
}

.article-body {
  margin-top: 14px;
  color: var(--body-text);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.article-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--input-border);
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.feed-end {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.feed-end-copy {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.feed-end-button {
  width: 100%;
}

.article-feature-image,
.thumb,
.grid-thumb {
  display: block;
}

.article-feature-image {
  width: 100%;
  margin-top: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--input-bg);
}

.article-grid-media {
  margin: -16px -16px 14px;
}

.grid-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  background: var(--input-bg);
  border-bottom: 1px solid var(--line);
}

.grid-thumb-fallback {
  object-fit: contain;
  padding: 10px;
  background: var(--input-muted-bg);
}

.menu-select-item {
  position: relative;
  justify-content: space-between;
  gap: 12px;
  cursor: default;
}

.menu-select {
  min-width: 148px;
  background: transparent;
  border: 0;
  color: var(--soft);
  font: inherit;
  font-weight: 700;
  text-align: right;
  appearance: none;
  padding-right: 18px;
  cursor: pointer;
}

.menu-select-item::after {
  color: var(--muted);
}

.menu-select:focus {
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .article-actions {
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
  }

  .article:hover .article-actions,
  .article:focus-within .article-actions {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
}

.login-screen,
.overlay-pane {
  position: fixed;
  inset: 0;
  display: none;
  background: var(--backdrop);
  z-index: 20;
}

.login-screen.open,
.overlay-pane.open {
  display: grid;
}

.reader.detail-open {
  min-height: 100vh;
  background: var(--surface);
}

.reader.detail-open .mobile-topbar,
.reader.detail-open .feed-header,
.reader.detail-open .content-grid {
  display: none;
}

.reader.feed-catalog-open .mobile-topbar,
.reader.feed-catalog-open .feed-header,
.reader.feed-catalog-open .content-grid {
  display: none;
}

.reader.profile-open .mobile-topbar,
.reader.profile-open .feed-header,
.reader.profile-open .content-grid {
  display: none;
}

.reader.preferences-open .mobile-topbar,
.reader.preferences-open .feed-header,
.reader.preferences-open .content-grid {
  display: none;
}

.reader.mute-open .mobile-topbar,
.reader.mute-open .feed-header,
.reader.mute-open .content-grid {
  display: none;
}

.reader.opml-open .mobile-topbar,
.reader.opml-open .feed-header,
.reader.opml-open .content-grid {
  display: none;
}

.detail-pane {
  display: none;
  min-height: 100vh;
  background: var(--surface);
}

.detail-pane.open {
  display: block;
}

.feed-catalog-pane {
  display: none;
  min-height: 100vh;
  background: var(--surface);
}

.feed-catalog-pane.open {
  display: block;
}

.profile-pane {
  display: none;
  min-height: 100vh;
  background: var(--surface);
}

.profile-pane.open {
  display: block;
}

.preferences-pane {
  display: none;
  min-height: 100vh;
  background: var(--surface);
}

.preferences-pane.open {
  display: block;
}

.mute-pane {
  display: none;
  min-height: 100vh;
  background: var(--surface);
}

.mute-pane.open {
  display: block;
}

.opml-pane {
  display: none;
  min-height: 100vh;
  background: var(--surface);
}

.opml-pane.open {
  display: block;
}

.detail-card {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.feed-catalog-card {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
}

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 34px);
  border-bottom: 1px solid var(--separator-overlay);
  background: var(--sticky-surface);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 2;
}

.detail-actions-left,
.detail-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

#detailContent {
  padding: clamp(28px, 5vw, 52px) clamp(22px, 8vw, 92px) 72px;
}

.detail-content-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.detail-copy {
  display: grid;
  gap: 18px;
}

.detail-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.detail-card h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
}

.detail-card .content {
  color: var(--detail-text);
  line-height: 1.72;
  font-size: 18px;
}

.detail-card .content p:first-child {
  margin-top: 0;
}

.detail-card .content p:last-child {
  margin-bottom: 0;
}

.detail-hero {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--separator-overlay);
  background: var(--input-bg);
  object-fit: cover;
}

.detail-visit {
  width: 100%;
  min-height: 50px;
  font-size: 15px;
}

.detail-card img {
  max-width: 100%;
  height: auto;
}

.login-screen {
  place-items: center;
  background: var(--bg);
}

.overlay-pane {
  place-items: start end;
  padding: 86px clamp(18px, 6vw, 128px) 18px 18px;
}

.menu-card,
.settings-card {
  width: min(360px, calc(100vw - 24px));
  background: var(--card);
  border: 1px solid var(--menu-border);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.menu-card {
  overflow: hidden;
}

.sub-menu-card {
  width: min(320px, calc(100vw - 24px));
}

.menu-group {
  padding: 8px 0;
}

.menu-item {
  width: 100%;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  text-align: left;
  cursor: pointer;
}

a.menu-item {
  text-decoration: none;
}

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

.menu-value {
  color: var(--muted);
  white-space: nowrap;
}

.menu-divider {
  height: 1px;
  background: var(--menu-border);
}

.menu-item.danger {
  color: #ff5d5d;
}

.secondary-feed-action {
  margin-bottom: 8px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--input-border);
}

.secondary-feed-action + .add-feed {
  margin-top: 0;
}

.feed-catalog-content {
  padding: clamp(20px, 4vw, 38px) clamp(18px, 6vw, 68px) 40px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.feed-catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feed-catalog-search {
  flex: 1 1 260px;
}

.feed-catalog-search input {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  padding: 0 12px;
}

.feed-catalog-modes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feed-catalog-modes .pill-button.active {
  background: var(--green);
  color: #07140c;
  border-color: transparent;
}

.feed-catalog-list {
  display: grid;
  gap: 10px;
}

.feed-catalog-entry,
.feed-catalog-empty {
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--card-2);
}

.feed-catalog-entry {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.feed-catalog-entry .primary-button,
.feed-catalog-entry .danger-button {
  width: auto;
  min-width: 120px;
}

.feed-catalog-entry-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.feed-catalog-entry-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feed-catalog-entry-title strong,
.feed-catalog-entry p,
.feed-catalog-meta dd {
  overflow-wrap: anywhere;
}

.feed-catalog-entry p {
  margin: 0;
  color: var(--soft);
  line-height: 1.45;
}

.feed-catalog-status {
  border: 1px solid rgba(88, 197, 132, 0.35);
  border-radius: 999px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  text-transform: uppercase;
}

.feed-catalog-meta {
  margin: 0;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.feed-catalog-meta div {
  display: grid;
  gap: 2px;
}

.feed-catalog-meta dt {
  color: var(--soft);
  font-weight: 800;
}

.feed-catalog-meta dd {
  margin: 0;
}

.feed-catalog-meta a {
  color: var(--green);
}

.feed-catalog-empty {
  padding: 18px;
  color: var(--muted);
}

.feed-catalog-footer {
  display: flex;
  justify-content: center;
}

.sub-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 4px;
}

.sub-menu-head strong {
  font-size: 20px;
}

.filter-options {
  display: grid;
  gap: 8px;
  padding: 12px 16px 18px;
}

.move-options {
  display: grid;
  gap: 12px;
  padding: 12px 16px 18px;
}

.move-options label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.move-options select {
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  padding: 0 12px;
}

.menu-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
}

.menu-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.opml-card {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at top right, rgba(88, 197, 132, 0.12), transparent 34%),
    var(--surface);
}

.opml-content {
  padding: clamp(20px, 4vw, 38px) clamp(18px, 6vw, 68px) 40px;
  display: grid;
}

.opml-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.opml-actions-column {
  display: grid;
  gap: 12px;
}

.opml-section {
  width: auto;
  background: var(--card-2);
  gap: 10px;
}

.opml-section h4 {
  margin: 0;
  font-size: 17px;
}

.opml-action-card {
  padding: 16px;
}

.opml-action-card .form-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--soft);
}

.opml-file-field {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.opml-file-field input {
  width: 100%;
}

.opml-results-panel {
  width: auto;
  padding: 16px;
  gap: 14px;
  background:
    linear-gradient(180deg, var(--subtle-overlay), transparent),
    var(--card-2);
}

.opml-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.opml-results-head strong {
  display: block;
  font-size: 17px;
}

.opml-results-empty {
  margin: 6px 0 0;
  max-width: 48ch;
}

.opml-summary-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.opml-summary-chip {
  min-width: 88px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--panel-2);
  display: grid;
  gap: 2px;
  text-align: right;
}

.opml-summary-chip strong {
  font-size: 15px;
  line-height: 1;
}

.opml-summary-chip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.opml-summary-chip.success {
  border-color: rgba(88, 197, 132, 0.35);
}

.opml-summary-chip.warning {
  border-color: rgba(255, 196, 92, 0.35);
}

.opml-summary-chip.danger {
  border-color: rgba(255, 107, 107, 0.35);
}

.opml-results {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.opml-result-list {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: min(62vh, 760px);
  overflow-y: auto;
  padding-right: 4px;
}

.opml-result-row {
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--card-2);
  display: grid;
  gap: 8px;
}

.opml-result-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.opml-result-title-block {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.opml-result-url {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.opml-result-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid var(--input-border);
  background: var(--panel-2);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.opml-result-badge-imported {
  border-color: rgba(88, 197, 132, 0.38);
  color: #8be0ab;
}

.opml-result-badge-skipped_duplicate {
  color: #d2d2d2;
}

.opml-result-badge-skipped_limit {
  border-color: rgba(255, 196, 92, 0.32);
  color: #ffd37a;
}

.opml-result-badge-invalid {
  border-color: rgba(255, 196, 92, 0.32);
  color: #ffd37a;
}

.opml-result-badge-error {
  border-color: rgba(255, 107, 107, 0.32);
  color: #ff9595;
}

.opml-result-row strong,
.opml-result-row span {
  overflow-wrap: anywhere;
}

.opml-result-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.opml-result-meta span {
  display: inline-flex;
  align-items: center;
}

.opml-result-meta span:not(:last-child)::after {
  content: "•";
  margin-left: 12px;
  color: var(--input-border);
}

.settings-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.profile-card {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at top right, rgba(109, 168, 255, 0.12), transparent 34%),
    var(--surface);
}

.profile-card .detail-actions h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.profile-content {
  padding: clamp(28px, 5vw, 52px) clamp(22px, 8vw, 92px) 72px;
  display: grid;
}

.profile-settings-card {
  width: min(100%, 560px);
  background: var(--card);
}

.preferences-card {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at top right, rgba(88, 197, 132, 0.12), transparent 34%),
    var(--surface);
}

.preferences-card .detail-actions h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.preferences-content {
  padding: clamp(28px, 5vw, 52px) clamp(22px, 8vw, 92px) 72px;
  display: grid;
}

.preferences-settings-card {
  width: min(100%, 560px);
  background: var(--card);
}

.mute-card {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at top right, rgba(255, 107, 107, 0.1), transparent 34%),
    var(--surface);
}

.mute-card .detail-actions h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.mute-content {
  padding: clamp(28px, 5vw, 52px) clamp(22px, 8vw, 92px) 72px;
  display: grid;
}

.mute-settings-card {
  width: min(100%, 560px);
  background: var(--card);
}

/* Compact management dialogs keep their controls close together without
   changing the full-screen treatment used by article and catalog panes. */
.profile-pane,
.preferences-pane,
.mute-pane,
.opml-pane {
  position: fixed;
  inset: 0;
  z-index: 20;
  min-height: 0;
  padding: clamp(12px, 3vh, 28px) clamp(12px, 3vw, 28px);
  background: var(--backdrop);
  place-items: center;
}

.profile-pane.open,
.preferences-pane.open,
.mute-pane.open,
.opml-pane.open {
  display: grid;
}

.profile-pane .profile-card,
.preferences-pane .preferences-card,
.mute-pane .mute-card,
.opml-pane .opml-card {
  width: min(100%, 480px);
  min-height: 0;
  max-height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--menu-border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.opml-pane .opml-card {
  width: min(100%, 860px);
}

.profile-card .detail-actions,
.preferences-card .detail-actions,
.mute-card .detail-actions,
.opml-card .detail-actions {
  position: static;
  padding: 12px 14px;
  gap: 12px;
  background: var(--sticky-surface);
}

.profile-card .detail-actions h3,
.preferences-card .detail-actions h3,
.mute-card .detail-actions h3,
.opml-card .detail-actions h3 {
  font-size: 20px;
}

.profile-pane .profile-content,
.preferences-pane .preferences-content,
.mute-pane .mute-content,
.opml-pane .opml-content {
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: grid;
  gap: 14px;
}

.profile-settings-card,
.preferences-settings-card,
.mute-settings-card {
  width: 100%;
  padding: 0;
  gap: 12px;
  border: 0;
  box-shadow: none;
}

.compact-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-settings-grid > :only-child {
  grid-column: 1 / -1;
}

.mute-settings-card textarea {
  min-height: 108px;
}

.profile-settings-card .settings-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-settings-card .settings-actions button {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
  white-space: nowrap;
}

.opml-pane .opml-layout {
  min-height: 0;
}

.opml-pane .opml-results-panel {
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.opml-pane .opml-result-list {
  max-height: none;
}

@media (max-width: 430px) {
  .compact-settings-grid {
    grid-template-columns: 1fr;
  }
}

.fetch-monitor-card {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at top right, rgba(255, 93, 93, 0.1), transparent 34%),
    var(--surface);
}

.fetch-monitor-card .detail-actions h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.fetch-monitor-content {
  padding: clamp(28px, 5vw, 52px) clamp(22px, 8vw, 92px) 72px;
  display: grid;
  gap: 18px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fetch-monitor-list {
  display: grid;
  gap: 8px;
}

.fetch-monitor-row,
.fetch-monitor-empty {
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--card-2);
}

.fetch-monitor-row {
  display: grid;
  gap: 10px;
}

.fetch-monitor-row.is-blocked {
  border-color: rgba(255, 93, 93, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 93, 93, 0.18);
}

.fetch-monitor-row-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) minmax(340px, 1.35fr) auto auto;
  gap: 12px;
  align-items: center;
}

.fetch-monitor-title-cell,
.fetch-monitor-status-cell,
.fetch-monitor-primary-actions,
.fetch-monitor-menu-cell {
  min-width: 0;
}

.fetch-monitor-title-cell {
  display: grid;
  gap: 4px;
}

.fetch-monitor-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fetch-monitor-title-line strong {
  min-width: 0;
  font-size: 17px;
  line-height: 1.2;
}

.fetch-monitor-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

.fetch-monitor-badge.blocked {
  border-color: rgba(255, 93, 93, 0.32);
  color: #ffd8d8;
  background: rgba(120, 20, 20, 0.24);
}

.fetch-monitor-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
}

.fetch-monitor-subline span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fetch-monitor-status-cell {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--surface);
}

.fetch-monitor-status-cell.error {
  border-color: rgba(255, 117, 117, 0.22);
}

.fetch-monitor-status-cell.blocked {
  border-color: rgba(255, 93, 93, 0.28);
  background: rgba(120, 20, 20, 0.16);
}

.fetch-monitor-status-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fetch-monitor-status-copy {
  font-size: 13px;
  line-height: 1.35;
  color: #f0d7d7;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.fetch-monitor-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.fetch-monitor-metric {
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}

.fetch-monitor-metric-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fetch-monitor-metric-value {
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.fetch-monitor-primary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fetch-monitor-primary-actions .outline-button,
.fetch-monitor-primary-actions .primary-button {
  min-height: 36px;
  padding: 0 12px;
}

.fetch-monitor-menu-cell {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.fetch-monitor-menu-button {
  min-height: 36px;
  padding: 0 12px;
}

.fetch-monitor-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 240px;
  z-index: 4;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--panel-2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.fetch-monitor-menu .menu-item {
  min-height: 44px;
  padding: 0 14px;
}

.fetch-monitor-menu .menu-item.danger {
  color: #ffb0b0;
}

.fetch-monitor-detail-panel {
  border-top: 1px solid var(--separator-overlay);
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
}

.fetch-monitor-detail-row {
  display: grid;
  gap: 4px;
}

.fetch-monitor-detail-row.wide {
  grid-column: 1 / -1;
}

.fetch-monitor-detail-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fetch-monitor-detail-row strong {
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.fetch-monitor-inline-form {
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  gap: 12px;
}

.fetch-monitor-inline-form.compact {
  width: min(100%, 720px);
}

.fetch-monitor-inline-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.fetch-monitor-inline-form input,
.fetch-monitor-inline-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  padding: 10px 12px;
}

.fetch-monitor-inline-form textarea {
  resize: vertical;
  min-height: 84px;
}

.fetch-monitor-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-head h3 {
  margin: 0;
  font-size: 22px;
}

.settings-card label {
  color: var(--muted);
  font-weight: 800;
  display: grid;
  gap: 6px;
}

.settings-card .preference-checkbox {
  align-items: center;
  display: flex;
  gap: 10px;
}

.settings-card input:not([type="checkbox"]),
.settings-card select,
.settings-card textarea {
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  padding: 0 12px;
}

.settings-card textarea {
  min-height: 132px;
  padding: 10px 12px;
  resize: vertical;
}

.settings-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.two-column-form,
.stacked-register-fields {
  display: grid;
  gap: 12px;
}

.two-column-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stacked-register-fields {
  grid-template-columns: 1fr;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: var(--text) !important;
  font-weight: 700 !important;
}

.form-copy {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.settings-actions.between {
  justify-content: space-between;
  align-items: center;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-hint {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.login-card {
  width: min(360px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  display: grid;
  gap: 16px;
}

.login-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
}

.login-marketing-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.login-marketing-link:hover,
.login-marketing-link:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--input-muted-bg);
}

.login-language-switcher button {
  min-width: 38px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.login-language-switcher button[aria-pressed="true"] {
  background: var(--green);
  color: var(--button-contrast-text);
}

.login-language-switcher button:not([aria-pressed="true"]):hover,
.login-language-switcher button:not([aria-pressed="true"]):focus-visible {
  color: var(--text);
  background: var(--hover-overlay);
}

.auth-brand-mark {
  display: block;
}

.login-card h2 {
  margin: 0;
  text-align: center;
}

.login-card label {
  color: var(--muted);
  font-weight: 800;
  display: grid;
  gap: 6px;
}

.login-card input {
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  padding: 0 12px;
}

.form-error {
  min-height: 18px;
  color: var(--danger);
  margin: 0;
  font-size: 13px;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-divider::before,
.login-divider::after {
  content: '';
  height: 1px;
  background: var(--line);
}

.apple-auth-button {
  min-height: 44px;
  border: 1px solid #f5f5f7;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.apple-auth-button:hover:not(:disabled),
.apple-auth-button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.12);
}

.apple-auth-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
  }

  .app-shell.drawer-collapsed {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 88vw);
    z-index: 15;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-resize-handle {
    display: none;
  }

  .app-shell.drawer-collapsed .sidebar {
    display: block;
  }

  .mobile-topbar {
    height: 54px;
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    background: var(--floating-surface);
    border-bottom: 1px solid var(--line);
    padding: 0 8px;
  }

  .feed-header {
    min-height: 108px;
    padding: 24px 18px;
  }

  .feed-header h1 {
    font-size: 28px;
  }

  .header-actions {
    align-self: flex-start;
  }

  .view-mode-select {
    min-width: 124px;
  }

  .desktop-drawer-toggle {
    display: none;
  }

  .content-grid {
    display: block;
    padding: 24px 18px 64px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .reader.detail-open {
    min-height: 100dvh;
  }

  .detail-pane {
    min-height: 100dvh;
  }

  .fetch-monitor-pane {
    min-height: 100dvh;
  }

  .profile-pane {
    min-height: 100dvh;
  }

  .preferences-pane {
    min-height: 100dvh;
  }

  .mute-pane {
    min-height: 100dvh;
  }

  .opml-pane {
    min-height: 100dvh;
  }

  .detail-actions {
    padding: 10px 14px;
    gap: 12px;
  }

  .detail-actions-right {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  #detailContent {
    padding: 22px 18px 48px;
  }

  .detail-content-shell {
    width: 100%;
    gap: 22px;
  }

  .detail-card h1 {
    font-size: 32px;
  }

  .detail-card .content {
    font-size: 16px;
  }

  .overlay-pane {
    padding: 64px 12px 12px;
    place-items: start center;
  }

  .opml-layout,
  .two-column-form,
  .stacked-register-fields {
    grid-template-columns: 1fr;
  }

  .feed-catalog-entry {
    grid-template-columns: 1fr;
  }

  .feed-catalog-entry .primary-button,
  .feed-catalog-entry .danger-button {
    width: 100%;
  }

  .opml-results-head,
  .opml-result-main {
    flex-direction: column;
  }

  .opml-summary-chips {
    justify-content: flex-start;
  }

  .opml-summary-chip {
    min-width: 78px;
    text-align: left;
  }

  .fetch-monitor-card {
    min-height: 100dvh;
  }

  .preferences-card {
    min-height: 100dvh;
  }

  .opml-card {
    min-height: 100dvh;
  }

  .opml-content {
    padding: 18px 14px 36px;
  }

  .feed-catalog-content {
    padding: 18px 14px 36px;
  }

  .fetch-monitor-content {
    padding: 22px 18px 48px;
  }

  .fetch-monitor-row-main {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .fetch-monitor-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fetch-monitor-primary-actions {
    flex-wrap: wrap;
  }

  .fetch-monitor-menu-cell {
    justify-content: flex-start;
  }

  .fetch-monitor-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
  }

  .fetch-monitor-detail-panel {
    grid-template-columns: 1fr;
  }

  .profile-content {
    padding: 22px 18px 48px;
  }

  .preferences-content {
    padding: 22px 18px 48px;
  }

  .mute-content {
    padding: 22px 18px 48px;
  }

  .opml-content {
    padding: 22px 18px 48px;
  }

  .article {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .article-card {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 14px;
  }

  .article.compact-plus .article-card,
  .article.headlines .article-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .article.grid .article-card,
  .article.magazine .article-card {
    display: block;
  }

  .thumb {
    width: 92px;
  }

  .article h2 {
    font-size: 15px;
  }

  .article-summary {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .article-actions {
    flex-direction: column;
    gap: 4px;
  }

  .feed-end {
    gap: 12px;
  }
}

@media (min-width: 900px) {
  .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .article-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
