@font-face {
  font-family: "Wanderer Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/InterVariable-4.1.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --canvas: #171b22;
  --surface: #20262f;
  --ink: #e7e0d6;
  --muted: #a7b0bd;
  --forest: #c4c9ce;
  --forest-soft: #293545;
  --accent: #e5a16e;
  --ember: #e5a16e;
  --danger: #e9a099;
  --danger-soft: #382827;
  --line: #394351;
  --shadow: none;
  font-family: "Wanderer Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}
a {
  color: var(--forest);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 0.12em;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
summary {
  min-height: 2.75rem;
  padding-block: 0.65rem;
  cursor: pointer;
}
.advanced-fields,
.translation-override {
  min-width: 0;
}
.advanced-fields > .form-grid {
  margin-top: 0.75rem;
}
[data-page-controls] {
  margin-top: 1rem;
}
[data-load-more] {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--forest);
  border-radius: 0;
  font-weight: 700;
}
[aria-disabled="true"] {
  opacity: 0.65;
  cursor: wait;
}
.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.filter-form label {
  flex: 1 1 12rem;
}
.notice a {
  color: inherit;
}

html {
  min-width: 0;
  background: var(--canvas);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  margin: 0;
  background: var(--canvas);
}

button,
input,
select,
textarea {
  max-width: 100%;
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--canvas);
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

input:not([type="checkbox"]),
select {
  height: 3rem;
}

button {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--forest);
  border-radius: 0;
  color: var(--canvas);
  background: var(--forest);
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

button:hover {
  background: #cce4f5;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: min(100%, 68rem);
  margin-inline: auto;
  padding: 1rem 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.site-footer a {
  min-width: 0;
  max-width: 100%;
  color: inherit;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

@media (min-width: 48rem) {
  .site-footer {
    padding-inline: 2rem;
  }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 68rem);
  margin-inline: auto;
  padding: 1rem;
}

.primary-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: min(100%, 68rem);
  margin-inline: auto;
  padding: 0 1rem 0.5rem;
}

.primary-navigation a {
  padding: 0.5rem 0.7rem;
  border-radius: 0;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 550;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a[aria-current="page"] {
  background: var(--forest-soft);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--ember);
}

.wordmark-mark svg {
  width: 100%;
  height: 100%;
}

.page-shell {
  width: min(100%, 68rem);
  margin-inline: auto;
  padding: 1.5rem 1rem 4rem;
  overflow-wrap: anywhere;
}

.auth-panel,
.hero {
  width: min(100%, 38rem);
  padding: clamp(1.25rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-panel {
  margin: clamp(1rem, 8vh, 5rem) auto 0;
}

.hero {
  margin-top: clamp(1rem, 8vh, 5rem);
}

.login-panel {
  width: min(100%, 48rem);
  padding: 0;
  border: 0;
}

.login-banner {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--canvas);
  border: 0;
}

.login-compass {
  flex: 0 0 auto;
  width: clamp(4rem, 12vw, 7rem);
  height: auto;
  color: var(--ember);
}

@media (max-width: 35rem) {
  .login-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.login-banner h1 {
  max-width: none;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.2;
}

.login-banner-rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  margin-top: 1.5rem;
  background: var(--ember);
}

.login-form-body {
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--line);
}

.login-form-body .stack {
  margin-top: 0;
}

.login-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.75rem;
}

.login-entry-row input {
  min-width: 0;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 11vw, 4.6rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

h4 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--ember);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

label {
  font-weight: 750;
}

input[type="password"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--canvas);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--forest);
  border-radius: 0;
  color: var(--canvas);
  background: var(--forest);
  font-weight: 700;
  text-decoration: none;
  touch-action: manipulation;
}

.button-link:hover {
  background: #cce4f5;
}

.notice {
  margin-block: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0;
}

.notice-error {
  color: var(--danger);
  background: var(--danger-soft);
}

.notice-info {
  display: grid;
  gap: 0.25rem;
  color: var(--forest);
  background: var(--forest-soft);
}

.notice-info span {
  color: var(--muted);
  line-height: 1.45;
}

.command {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem;
  overflow-x: auto;
  border-radius: 0;
  background: var(--forest-soft);
  white-space: nowrap;
}

.button-quiet {
  min-height: 2.5rem;
  border-color: transparent;
  color: var(--forest);
  background: transparent;
}

.button-quiet:hover {
  background: var(--forest-soft);
}

.page-intro {
  width: min(100%, 44rem);
  padding-top: 0.5rem;
}

.trip-intro {
  padding-top: 1.5rem;
}

.breadcrumb {
  display: inline-flex;
  margin-top: 0.5rem;
  color: var(--forest);
  font-weight: 750;
  text-decoration: none;
}

.page-intro h1 {
  max-width: 24ch;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.sticky-notice {
  border: 1px solid rgb(155 47 47 / 20%);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-block: 0.25rem 0.8rem;
}

.section-nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 0;
  color: var(--forest);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.profile-section {
  min-width: 0;
  padding-top: 3.5rem;
  scroll-margin-top: 1rem;
}

.compact-section {
  padding-top: 1.5rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 8vw, 2.6rem);
}

.section-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.section-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-card.connection-card {
  width: 100%;
  margin-block: 0.6rem;
  padding: 0.8rem 0.9rem;
  border: 0;
  border-block: 1px solid #425775;
  border-radius: 0;
  background: #222d3c;
  box-shadow: none;
}

.connection-card::before,
.connection-card::after {
  display: block;
  width: fit-content;
  margin-inline: auto;
  color: #a8bedc;
  content: "➜";
  font-size: 2rem;
  line-height: 1;
  transform: rotate(90deg);
}

.connection-card::before {
  margin-bottom: 0.45rem;
}

.connection-card::after {
  margin-top: 0.45rem;
}

.connection-from-home::before,
.connection-to-home::after {
  display: none;
}

.connection-card h3 {
  margin-bottom: 0;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.25;
}

.connection-card .status-label {
  color: #a8bedc;
}

.connection-card .date-badge {
  background: transparent;
}

.connection-card .route-line {
  margin-bottom: 0.35rem;
}

.connection-card > .muted {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.add-panel {
  width: min(100%, 20rem);
}

.wide-panel {
  width: min(100%, 44rem);
}

details {
  min-width: 0;
}

summary {
  width: fit-content;
  padding: 0.6rem 0;
  color: var(--forest);
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.add-panel[open] {
  flex-basis: 100%;
  width: 100%;
  padding: 1rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.card-grid,
.timeline-list {
  display: grid;
  min-width: 0;
  gap: 0.85rem;
}

.card-grid.trip-list-grid {
  grid-template-columns: minmax(0, 1fr);
}

.profile-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 0 0.5rem 1.5rem rgb(30 48 40 / 5%);
}

.profile-card.is-archived {
  opacity: 0.68;
  background: var(--canvas);
}

.card-heading {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.6rem;
}

.status-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-badge,
.importance-badge {
  display: inline-flex;
  max-width: 100%;
  padding: 0.25rem 0;
  border-radius: 0;
  color: var(--forest);
  background: transparent;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.importance-badge {
  color: var(--ember);
  background: #372b26;
  font-size: 1rem;
}

.muted,
.hint {
  color: var(--muted);
}

.muted {
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.hint {
  display: block;
  margin: 0.15rem 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  margin: 0.7rem 0;
}

.meta-row span {
  max-width: 100%;
  padding: 0.25rem 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.selectable-card {
  cursor: pointer;
}

.itinerary-card {
  border-left: 0.35rem solid var(--forest);
}

.scope-region {
  border-left-color: #8196bb;
}

.scope-city {
  border-left-color: var(--ember);
}

.depth-1 {
  margin-left: clamp(0.5rem, 3vw, 1.5rem);
}

.depth-2 {
  margin-left: clamp(1rem, 6vw, 3rem);
}

.route-line {
  color: var(--forest);
  font-weight: 750;
  line-height: 1.5;
}

.source-url {
  overflow-wrap: anywhere;
  color: var(--forest);
  font-size: 0.9rem;
}

.card-title-link {
  color: var(--ink);
  text-decoration-color: #65768c;
  text-underline-offset: 0.2em;
}

.source-preview {
  display: -webkit-box;
  margin-top: 0.8rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.source-item-card.severity-critical {
  border-left: 0.35rem solid var(--danger);
}

.source-item-card.severity-high {
  border-left: 0.35rem solid var(--accent);
}

.query-preview {
  display: block;
  margin-block: 0.8rem;
  padding: 0.75rem;
  border-radius: 0;
  color: var(--forest);
  background: var(--forest-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.compact-card-grid {
  margin-top: 0.85rem;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.source-detail-intro {
  width: min(100%, 52rem);
}

.source-detail-intro h1 {
  max-width: 28ch;
}

.external-source-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.source-add-panel[open] {
  margin-top: 1.5rem;
}

.source-text-panel {
  min-width: 0;
  margin-bottom: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.source-text-panel summary {
  width: auto;
  padding: 0;
}

.source-text-panel[open] summary {
  margin-bottom: 0.8rem;
}

/* Disclosure shells stay flat; retained content and records remain cards. */
details.source-text-panel,
details.profile-card {
  padding: 0;
  border: 0;
  background: transparent;
}

details.source-text-panel > summary,
details.profile-card > summary {
  padding-block: 0.6rem;
  min-height: 2.75rem;
}

.source-text {
  color: var(--ink);
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.compact-evidence-card h3 {
  font-size: 1rem;
}

.compact-form {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.form-grid {
  display: grid;
  min-width: 0;
  gap: 0.8rem;
}

.form-grid label,
.compact-form > label,
.fixed-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.35rem;
}

.fixed-field > span {
  font-weight: 700;
}

.fixed-field > strong {
  display: flex;
  min-height: 3rem;
  align-items: center;
  margin-top: auto;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--forest);
  background: var(--canvas);
}

.form-grid label > input:not([type="checkbox"]),
.form-grid label > select,
.form-grid label > textarea {
  margin-top: auto;
}

.check-field {
  display: flex !important;
  align-items: center;
  align-self: end;
  min-height: 2.9rem;
}

.form-grid label.check-field, .compact-form > label.check-field {
  flex-direction: row;
  gap: 0.6rem;
}

.check-field input {
  width: 1.25rem;
  flex: 0 0 1.25rem;
  min-height: 1.25rem;
}

.button-secondary {
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  border-color: var(--line);
  color: var(--forest);
  background: transparent;
  font-size: 0.85rem;
}

.trip-actions,
.card-actions,
.form-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.trip-actions {
  margin-top: 1rem;
}

.card-actions {
  justify-content: space-between;
  margin-top: 0.75rem;
}

.text-link {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  color: var(--forest);
  font-weight: 800;
  text-underline-offset: 0.2em;
  touch-action: manipulation;
}

.form-page {
  width: min(100%, 48rem);
  margin-top: 1.5rem;
}

.form-page h1 {
  max-width: 16ch;
}

.form-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.settings-panel {
  width: min(100%, 48rem);
  margin-top: 1.5rem;
}

.button-secondary:hover {
  border-color: var(--forest);
  color: var(--ink);
  background: var(--forest-soft);
}

.lifecycle-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.lifecycle-panel > * {
  margin-bottom: 0;
}

.delete-confirmation {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(155 47 47 / 35%);
  border-radius: 0;
  background: var(--danger-soft);
}

.delete-confirmation summary,
.delete-confirmation p {
  color: var(--danger);
}

.delete-confirmation p {
  line-height: 1.5;
}

.button-danger {
  border-color: var(--danger);
  background: var(--danger);
}

.button-danger:hover {
  border-color: #f1b6b0;
  background: #f1b6b0;
}

.empty-state {
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 0;
  color: var(--muted);
  background: transparent;
}

.status-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.status-card {
  display: flex;
  min-width: 0;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.status-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-dot {
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.25rem;
  border-radius: 0;
  background: var(--accent);
  box-shadow: 0 0 0 0.3rem rgb(116 217 245 / 10%);
}

.activity-identifier {
  overflow-wrap: anywhere;
}

.feed-hero {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.feed-hero h1 {
  max-width: 11ch;
}

.feed-hero-actions,
.detail-actions,
.inline-actions,
.filter-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.filter-panel > .filter-icon-control {
  display: flex;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-height: 2.75rem;
  list-style: none;
}

.feed-tools {
  position: relative;
  margin-top: 1.5rem;
}

.feed-tools > .filter-panel {
  margin-top: 0;
}

.feed-review-link {
  position: absolute;
  top: 1rem;
  right: 4.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-height: 2.75rem;
}

.feed-review-link:hover,
.feed-review-link:focus-visible {
  color: var(--accent);
}

.filter-icon-control::-webkit-details-marker {
  display: none;
}

.filter-panel[open] > .filter-icon-control,
.filter-panel > .filter-icon-control:hover {
  color: var(--accent);
}

.filter-panel {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.filter-panel summary {
  color: var(--forest);
  font-weight: 800;
  cursor: pointer;
}

.filter-grid {
  display: grid;
  min-width: 0;
  gap: 0.8rem;
  margin-top: 1rem;
}

.filter-grid label {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
}

.date-filter-pair {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.feed-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.feed-groups {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.feed-group-heading {
  margin-bottom: 0.75rem;
}

.feed-group-heading .eyebrow {
  margin-bottom: 0.25rem;
}

.feed-group-heading h2 {
  font-size: clamp(1.6rem, 7vw, 2.25rem);
}

.feed-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 0.35rem solid var(--forest);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 0 0.4rem 1.4rem rgb(30 48 40 / 5%);
}

.feed-card.urgency-critical,
.feed-card.urgency-high {
  border-left-color: var(--ember);
}

.feed-card.is-read {
  background: var(--canvas);
}

.feed-card-score {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 0;
  color: var(--forest);
  background: var(--forest-soft);
  font-weight: 850;
}

.feed-card-body,
.feed-card-body h2,
.feed-card-body p {
  min-width: 0;
}

.feed-card-body p {
  line-height: 1.5;
}

.feed-card-meta {
  margin-bottom: 0.45rem;
}

.urgency-label {
  color: var(--ember);
  font-weight: 800;
}

.feed-reason {
  font-size: 0.92rem;
}

.feed-card-footer {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 0.75rem;
  margin-top: 0.7rem;
}

.feed-card-tags {
  margin: 0;
}

.feed-card-actions {
  flex-wrap: nowrap;
}

.inline-actions form,
.detail-actions form {
  margin: 0;
}

.feed-detail-intro {
  width: min(100%, 52rem);
}

.detail-actions {
  margin-top: 1.25rem;
}

.feed-detail-grid {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.fact-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.fact-list div {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0.25rem 0 0;
}

.review-card p {
  line-height: 1.5;
}

@media (min-width: 48rem) {
  .site-header,
  .primary-navigation,
  .page-shell {
    padding-inline: 2rem;
  }

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

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

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

  .field-wide {
    grid-column: 1 / -1;
  }

  .feed-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .feed-hero-actions {
    justify-content: flex-end;
  }

  .filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .date-filter-pair {
    grid-column: span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-actions {
    grid-column: 1 / -1;
  }

  .feed-detail-grid {
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
    gap: 2rem;
  }

}

/* Dusk presentation: slate surfaces, cool light, and fine route-like rules.
   Component geometry and disclosure behavior are intentionally unchanged. */
.profile-card,
.feed-card,
.status-card,
.form-panel,
.source-text-panel,
.filter-panel,
.add-panel[open],
.auth-panel,
.hero,
.empty-state {
  border-radius: 0;
  box-shadow: none;
}

button,
.button-link,
input,
input[type="password"],
select,
textarea,
[data-load-more],
.notice,
.section-nav a {
  border-radius: 0;
}

button,
.button-link,
label,
.text-link,
.route-line,
summary,
.add-panel > summary,
.filter-panel summary {
  font-weight: 550;
}

h1,
h2 {
  font-weight: 400;
}

.eyebrow,
.status-label {
  font-weight: 550;
}

.card-title-link {
  text-decoration-thickness: 1px;
}

.primary-navigation a[aria-current="page"] {
  color: var(--ember);
  background: transparent;
  box-shadow: inset 0 -2px var(--ember);
}

.primary-navigation a {
  border-radius: 0;
  color: var(--muted);
}

.primary-navigation a:hover {
  color: var(--ember);
  background: transparent;
}

.section-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px var(--ember);
  background: transparent;
  color: var(--ember);
}

.section-nav a:hover,
.section-nav a:focus-visible,
.breadcrumb:hover,
.breadcrumb:focus-visible {
  color: var(--ember);
}

button:hover,
.button-link:hover {
  background: #ffc49c;
}

.button-secondary:hover,
.button-quiet:hover {
  color: var(--ember);
  background: #372d29;
}

.button-danger:hover {
  background: #f1b6b0;
}

.card-title-link:hover,
.card-title-link:focus-visible,
.text-link:hover {
  color: var(--accent);
}

.card-title-link:hover,
.card-title-link:focus-visible {
  text-decoration-color: var(--accent);
}

button:not(.button-secondary):not(.button-quiet):not(.button-danger),
.button-link:not(.button-secondary):not(.button-quiet):not(.button-danger) {
  border-color: var(--ember);
  background: var(--ember);
  color: var(--canvas);
}

button:not(.button-secondary):not(.button-quiet):not(.button-danger):hover,
.button-link:not(.button-secondary):not(.button-quiet):not(.button-danger):hover {
  background: #ffc49c;
}

.feed-card-score {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

input[type="checkbox"] {
  accent-color: var(--ember);
}

/* Feed experiment: content carries the emphasis; metadata stays unframed. */
.feed-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 2.75rem);
  gap: 0.6rem;
}

.feed-card-footer .feed-card-tags {
  grid-column: 1;
  grid-row: 1;
}

.feed-card-actions,
.feed-card-actions .icon-disclosure {
  display: contents;
}

.feed-card-actions .icon-disclosure > summary {
  grid-column: 2;
  grid-row: 1;
}

.feed-card-actions > form {
  grid-column: 3;
  grid-row: 1;
}

.feed-card-actions > form:last-child {
  grid-column: 4;
}

.feed-card-actions .icon-disclosure::details-content {
  display: contents;
}

.feed-card-actions .icon-disclosure:not([open]) > p {
  display: none;
}

.feed-card-actions .icon-disclosure > p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}

.feed-card-actions .icon-disclosure > p,
.reason-disclosure > p,
.reason-text {
  border-left: 2px solid var(--ember);
  padding-left: 1rem;
  line-height: 1.6;
}

@media (max-width: 35rem) {
  .feed-card-footer .feed-card-tags {
    grid-column: 1 / -1;
  }

  .feed-card-actions .icon-disclosure > summary,
  .feed-card-actions > form {
    grid-row: 2;
  }

  .feed-card-actions .icon-disclosure > p {
    grid-row: 3;
  }
}

.site-header .logout-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
}

@media (max-width: 35rem) {
  .page-shell {
    padding-top: 0.75rem;
  }

  .feed-hero h1,
  .page-intro h1 {
    margin-bottom: 0;
  }

  .feed-tools,
  .page-intro + .filter-panel {
    margin-top: 0.25rem;
  }

  .filter-grid {
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .form-page {
    margin-top: 0.75rem;
  }

  .profile-section:not(.compact-section) {
    padding-top: 2rem;
  }
}

.icon-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.65rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  list-style: none;
}

.icon-disclosure > summary::-webkit-details-marker {
  display: none;
}

.icon-control:hover,
.icon-control:focus-visible,
.icon-control.is-saved,
.icon-disclosure[open] > summary {
  color: var(--ember);
}

.icon-control.is-saved .ui-icon {
  fill: currentColor;
}

.ui-icon {
  flex: 0 0 auto;
}

.feed-card {
  border-left-width: 1px;
  border-left-color: var(--line);
}

.feed-card.urgency-critical,
.feed-card.urgency-high {
  border-left: 2px solid var(--ember);
}

.feed-card-score {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.feed-card-body h2,
.profile-card h2,
.profile-card h3,
.source-text-panel h3 {
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media (max-width: 30rem) {
  .page-intro h1,
.feed-hero h1,
.form-page h1 {
  font-size: 1.85rem;
}
  .page-intro h1 {
  max-width: none;
}
  .feed-card {
  grid-template-columns: minmax(0, 1fr);
}
  .feed-card-score {
  display: none;
}
}
