:root {
  --bg: #d8e2e7;
  --bg-accent: #17303c;
  --surface: rgba(245, 249, 251, 0.92);
  --surface-strong: #fbfdfe;
  --ink: #12202a;
  --muted: #607481;
  --line: rgba(18, 32, 42, 0.12);
  --accent: #119fb4;
  --accent-rgb: 17, 159, 180;
  --accent-deep: #0b7286;
  --green: #1b8d68;
  --shadow: 0 26px 64px rgba(14, 25, 32, 0.15);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

form {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI Variable", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.16), transparent 28%),
    radial-gradient(circle at right 18%, rgba(11, 114, 134, 0.16), transparent 24%),
    linear-gradient(180deg, #edf3f6 0%, #d2dde3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 2px,
      transparent 2px,
      transparent 72px
    );
  opacity: 0.3;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -12vw -18vh auto;
  width: 48vw;
  height: 44vh;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(17, 21, 24, 0.12), transparent 70%);
  filter: blur(12px);
}

.shell {
  width: min(1220px, calc(100% - 32px));
  margin: 32px auto 56px;
}

.shell--narrow {
  width: min(720px, calc(100% - 24px));
}

.shell--dashboard {
  width: min(1440px, calc(100% - 28px));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  font: 600 14px/1.1 "IBM Plex Mono", monospace;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fdfefe;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, #16afc5, #0b7286 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button--ghost {
  border-color: rgba(20, 25, 29, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.button--danger {
  color: #fff3ef;
  background: linear-gradient(135deg, #a8392a, #7d2719);
}

.button--small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.flash {
  padding: 16px 18px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(17, 21, 24, 0.07);
}

.flash--success {
  color: #173f2f;
  background: rgba(229, 246, 236, 0.95);
  border-color: rgba(44, 111, 80, 0.18);
}

.flash--info {
  color: #344458;
  background: rgba(235, 242, 250, 0.95);
  border-color: rgba(52, 68, 88, 0.14);
}

.flash--danger {
  color: #6f2218;
  background: rgba(255, 238, 232, 0.97);
  border-color: rgba(195, 59, 42, 0.22);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: 34px;
  border: 1px solid rgba(77, 89, 99, 0.28);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.24), transparent 24%),
    linear-gradient(135deg, #10202a 0%, #163845 48%, #21566b 100%);
  box-shadow: var(--shadow);
}

.hero--dashboard {
  grid-template-columns: minmax(0, 1.65fr) minmax(420px, 0.95fr);
  gap: 22px;
  padding: 28px 30px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(140, 234, 247, 0.86) 52%, rgba(255, 255, 255, 0.72) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  right: -110px;
  top: -120px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.11), transparent 66%);
  filter: blur(4px);
}

.eyebrow {
  margin: 0 0 12px;
  color: #8ceaf7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font: 600 12px/1.2 "IBM Plex Mono", monospace;
}

.eyebrow--muted {
  margin-bottom: 8px;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  color: #f7fbff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
}

.hero__lead {
  max-width: 52ch;
  margin: 16px 0 0;
  color: rgba(232, 240, 248, 0.78);
  font-size: 17px;
  line-height: 1.6;
}

.hero__content--dashboard {
  display: grid;
  align-content: center;
}

.hero__lead--compact {
  max-width: 46ch;
  font-size: 16px;
}

.hero--garage {
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.9fr);
  background:
    radial-gradient(circle at 84% 18%, rgba(var(--accent-rgb), 0.24), transparent 20%),
    radial-gradient(circle at 12% 112%, rgba(140, 234, 247, 0.18), transparent 28%),
    linear-gradient(135deg, #0f1d27 0%, #174252 52%, #205b6f 100%);
}

.hero__content--garage {
  display: grid;
  align-content: center;
}

.hero__lead--garage {
  max-width: 50ch;
  font-size: 16px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: end;
}

.hero__stats--dashboard {
  gap: 12px;
}

.stat-card {
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.stat-card__label {
  display: block;
  margin-bottom: 10px;
  color: rgba(232, 240, 248, 0.62);
  font: 600 12px/1.2 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.1;
}

.toolbar {
  position: relative;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(20, 25, 29, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(240, 246, 251, 0.96)),
    linear-gradient(90deg, rgba(88, 166, 214, 0.08), transparent 28%);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px rgba(17, 21, 24, 0.09);
}

.toolbar::before,
.browser-panel::before,
.focus-panel::before,
.editor-panel::before,
.editor-form::before,
.editor-hero::before,
.login-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 14px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(88, 166, 214, 0.88), transparent 74%);
}

.toolbar--dense {
  margin-top: 16px;
  padding: 18px 20px;
}

.page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.page-actions--dashboard {
  margin-top: 16px;
}

.page-actions__status {
  flex: 1 1 auto;
}

.page-actions__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font: 600 12px/1.2 "IBM Plex Mono", monospace;
}

.auth-pill--active {
  color: #f7fbff;
  background: linear-gradient(135deg, #233341, #15202a);
}

.toolbar__section + .toolbar__section {
  margin-top: 16px;
}

.toolbar__group + .toolbar__group {
  margin-top: 18px;
}

.toolbar__label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font: 600 12px/1.2 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toolbar__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.toolbar__meta--dashboard {
  margin-top: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(20, 25, 29, 0.12);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 166, 214, 0.4);
}

.chip--active {
  border-color: rgba(23, 29, 34, 0.24);
  color: #f7fbff;
  background: linear-gradient(135deg, #23313c, #141d25);
}

.chip small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(31, 36, 31, 0.08);
  font: 600 12px/1 "IBM Plex Mono", monospace;
}

.chip--active small {
  background: rgba(247, 251, 255, 0.14);
}

.chip__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.chip__icon svg {
  width: 100%;
  height: 100%;
}

.chip--category {
  --chip-accent-rgb: var(--accent-rgb);
  gap: 8px;
  border-color: rgba(var(--chip-accent-rgb), 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(var(--chip-accent-rgb), 0.08));
}

.chip--category .chip__icon {
  color: rgba(var(--chip-accent-rgb), 0.94);
}

.chip--category.chip--active {
  border-color: rgba(var(--chip-accent-rgb), 0.3);
  background: linear-gradient(135deg, rgba(var(--chip-accent-rgb), 0.94), rgba(16, 30, 39, 0.92));
}

.chip--category.chip--active .chip__icon {
  color: #f7fbff;
}

.chip--maintenance {
  --chip-accent-rgb: 205, 154, 62;
}

.chip--engine {
  --chip-accent-rgb: 208, 96, 84;
}

.chip--transmission {
  --chip-accent-rgb: 53, 150, 184;
}

.chip--suspension {
  --chip-accent-rgb: 72, 114, 208;
}

.chip--brakes {
  --chip-accent-rgb: 214, 104, 64;
}

.chip--body {
  --chip-accent-rgb: 98, 113, 129;
}

.chip--lights {
  --chip-accent-rgb: 194, 146, 54;
}

.chip--interior {
  --chip-accent-rgb: 88, 131, 149;
}

.chip--tires {
  --chip-accent-rgb: 69, 83, 96;
}

.chip--steering {
  --chip-accent-rgb: 58, 140, 102;
}

.chip--electrics {
  --chip-accent-rgb: 66, 126, 215;
}

.chip--fluids {
  --chip-accent-rgb: 43, 157, 149;
}

.chip--other {
  --chip-accent-rgb: 86, 111, 128;
}

.chip--sort {
  min-height: 44px;
}

.planning-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.88fr);
  gap: 18px;
  margin-top: 18px;
}

.planning-panel__main,
.planning-panel__forecast {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(20, 25, 29, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(240, 246, 251, 0.97)),
    linear-gradient(90deg, rgba(88, 166, 214, 0.06), transparent 40%);
  box-shadow: 0 18px 40px rgba(17, 21, 24, 0.1);
}

.planning-panel__main::before,
.planning-panel__forecast::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 14px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(140, 234, 247, 0.88), transparent 74%);
}

.planning-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.planning-panel__header h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
}

.planning-panel__badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #edf9f2;
  background: linear-gradient(135deg, #2c6f50, #173f2f);
  font: 600 12px/1.1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.planning-panel__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.planning-metric {
  padding: 16px;
  border: 1px solid rgba(20, 25, 29, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.planning-metric span,
.planning-forecast__card span {
  display: block;
  color: var(--muted);
  font: 600 11px/1.2 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.planning-metric strong,
.planning-forecast__card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.15;
}

.planning-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.planning-form__actions {
  display: flex;
  align-items: flex-end;
}

.planning-forecast__grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.planning-forecast__card {
  padding: 18px;
  border: 1px solid rgba(20, 25, 29, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.planning-forecast__card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font: 600 12px/1.2 "IBM Plex Mono", monospace;
}

.planning-forecast__card--accent {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(var(--accent-rgb), 0.12)),
    rgba(255, 255, 255, 0.86);
}

.planning-forecast__hint {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.planning-forecast__hint span,
.planning-forecast__note {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(20, 25, 29, 0.05);
  font: 600 12px/1.45 "IBM Plex Mono", monospace;
}

.planning-forecast__note,
.planning-forecast__empty {
  margin: 14px 0 0;
}

.planning-forecast__empty {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.entries {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.browser-panel,
.focus-panel {
  position: relative;
  border: 1px solid rgba(20, 25, 29, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(240, 246, 251, 0.97)),
    linear-gradient(90deg, rgba(88, 166, 214, 0.05), transparent 36%);
  box-shadow: 0 18px 40px rgba(17, 21, 24, 0.1);
}

.browser-panel {
  position: sticky;
  top: 18px;
  overflow: hidden;
}

.browser-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
}

.browser-panel__header h2 {
  margin: 0;
  font-size: 24px;
}

.browser-panel__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(var(--accent-rgb), 0.12);
  font: 600 14px/1 "IBM Plex Mono", monospace;
}

.browser-list {
  display: grid;
  gap: 10px;
  max-height: min(74vh, 980px);
  padding: 14px;
  overflow: auto;
}

.browser-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(20, 25, 29, 0.08);
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(238, 245, 250, 0.88));
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.browser-item:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 166, 214, 0.28);
  box-shadow: 0 12px 24px rgba(17, 21, 24, 0.08);
}

.browser-item--active {
  border-color: rgba(88, 166, 214, 0.34);
  background:
    linear-gradient(135deg, rgba(88, 166, 214, 0.12), rgba(11, 114, 134, 0.08)),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 4px 0 0 rgba(88, 166, 214, 0.95),
    0 16px 28px rgba(17, 21, 24, 0.12);
}

.browser-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.browser-item__id {
  color: var(--accent-deep);
  font: 600 12px/1 "IBM Plex Mono", monospace;
}

.browser-item__title {
  font-size: 16px;
  line-height: 1.45;
}

.browser-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.browser-item__meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(31, 36, 31, 0.05);
  font: 500 12px/1.2 "IBM Plex Mono", monospace;
}

.browser-item__meta--compact span {
  font-size: 11px;
}

.focus-panel {
  padding: 24px;
}

.focus-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.focus-panel__title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.focus-panel__title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.focus-panel__title p {
  margin: 8px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.focus-panel__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-chip {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 25, 29, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(238, 245, 250, 0.9));
}

.metric-chip span {
  color: var(--muted);
  font: 600 11px/1.2 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-chip strong {
  font-size: 18px;
  line-height: 1.25;
}

.focus-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.entry-card {
  overflow: hidden;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(17, 21, 24, 0.09);
}

.entry-card[open] {
  background: var(--surface-strong);
}

.entry-card__summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 24px 22px;
}

.entry-card__summary::-webkit-details-marker {
  display: none;
}

.entry-card__headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.entry-card__title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.entry-card__title-group h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
}

.entry-id {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(var(--accent-rgb), 0.1);
  font: 600 12px/1 "IBM Plex Mono", monospace;
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  font: 600 13px/1.1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pill--small {
  padding: 7px 10px;
  font-size: 11px;
}

.status-pill--done {
  color: #edf9f2;
  background: linear-gradient(135deg, #2c6f50, #173f2f);
}

.status-pill--plan {
  color: #eef6ff;
  background: linear-gradient(135deg, #3d79c9, #234f92);
}

.status-pill--check {
  color: #fff3ef;
  background: linear-gradient(135deg, #b3412d, #7d2719);
}

.entry-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.entry-card__meta span {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(31, 36, 31, 0.05);
  font: 500 13px/1.2 "IBM Plex Mono", monospace;
}

.entry-card__preview {
  margin: 16px 0 0;
  max-width: 72ch;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.entry-card__hint {
  margin: 14px 0 0;
  color: var(--muted);
  font: 600 12px/1.5 "IBM Plex Mono", monospace;
}

.entry-card__hint code {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(var(--accent-rgb), 0.09);
}

.entry-card__body {
  padding: 0 24px 24px;
}

.entry-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-block {
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(238, 245, 250, 0.9));
}

.detail-block--wide {
  grid-column: span 3;
}

.detail-block__label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font: 600 12px/1.2 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-block p,
.detail-block a {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
}

.detail-block a:hover,
.attachment-link:hover {
  color: var(--accent-deep);
}

.attachments {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(20, 25, 29, 0.08);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(244, 249, 253, 0.94), rgba(233, 241, 247, 0.92)),
    linear-gradient(90deg, rgba(88, 166, 214, 0.08), transparent 36%);
}

.attachments--focus {
  margin-top: 18px;
}

.attachments__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.attachments__header h3 {
  margin: 0;
  font-size: 18px;
}

.attachments__header span {
  color: var(--muted);
  font: 600 12px/1.2 "IBM Plex Mono", monospace;
}

.attachments__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.attachment-card {
  overflow: hidden;
  border: 1px solid rgba(20, 25, 29, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.attachment-preview {
  display: block;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(42, 51, 58, 0.16), rgba(88, 166, 214, 0.16)),
    rgba(237, 239, 241, 0.92);
}

.attachment-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
}

.attachment-link span {
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.attachment-link small {
  color: var(--muted);
  font: 600 12px/1.2 "IBM Plex Mono", monospace;
}

.empty-state {
  margin-top: 24px;
  padding: 42px 30px;
  border: 1px dashed rgba(20, 25, 29, 0.18);
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
}

.empty-state h2 {
  margin: 0 0 10px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.timeline-intro {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid rgba(20, 25, 29, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(240, 246, 250, 0.96)),
    linear-gradient(90deg, rgba(17, 159, 180, 0.08), transparent 40%);
  box-shadow: 0 16px 34px rgba(17, 21, 24, 0.08);
}

.timeline-intro::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 14px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(140, 234, 247, 0.88), transparent 76%);
}

.timeline-intro__copy h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.timeline-intro__copy p:last-child {
  max-width: 66ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.timeline-intro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.route-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(20, 25, 29, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font: 600 12px/1.1 "IBM Plex Mono", monospace;
}

.route-pill--button {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.route-pill--button:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.timeline-shell {
  --timeline-rail-width: 88px;
  --timeline-gap: 20px;
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.timeline-sections {
  display: grid;
  gap: 28px;
}

.timeline-section {
  display: grid;
  gap: 14px;
}

.timeline-section__header {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-left: calc(var(--timeline-rail-width) + var(--timeline-gap));
  padding: 14px 16px;
  border: 1px solid rgba(20, 25, 29, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(253, 254, 255, 0.9), rgba(244, 249, 252, 0.82)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(var(--accent-rgb), 0.06));
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 28px rgba(17, 21, 24, 0.08);
}

.timeline-section__copy {
  min-width: 0;
}

.timeline-section__eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font: 600 11px/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-section__header h3 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.05;
}

.timeline-section__count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(20, 25, 29, 0.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  font: 600 12px/1.1 "IBM Plex Mono", monospace;
}

.timeline-section__header::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.94), transparent 72%);
  opacity: 0.72;
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline-entry {
  --entry-accent: #119fb4;
  --entry-accent-rgb: var(--accent-rgb);
  display: grid;
  grid-template-columns: var(--timeline-rail-width) minmax(0, 1fr);
  gap: var(--timeline-gap);
  align-items: start;
  scroll-margin-top: 22px;
}

.timeline-entry:last-child .timeline-entry__line {
  bottom: 26px;
}

.timeline-entry__rail {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100%;
  padding-left: 8px;
  overflow: visible;
}

.timeline-entry__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -20px;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(var(--entry-accent-rgb), 0.12) 0%,
      rgba(var(--entry-accent-rgb), 0.74) 20%,
      rgba(26, 34, 41, 0.88) 100%
    );
}

.timeline-node {
  position: sticky;
  top: 18px;
  z-index: 2;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #edf8ff;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(145deg, rgba(var(--entry-accent-rgb), 0.98), rgba(17, 27, 35, 0.96));
  box-shadow:
    0 18px 26px rgba(14, 25, 32, 0.2),
    0 0 0 10px rgba(var(--entry-accent-rgb), 0.1);
  font: 700 14px/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.timeline-node::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(12, 21, 28, 0.92), rgba(34, 48, 58, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -8px 14px rgba(0, 0, 0, 0.18);
  z-index: -1;
}

.timeline-node::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  opacity: 0.6;
  z-index: -2;
}

.timeline-entry--selected .timeline-node {
  transform: translateY(-1px) scale(1.06);
  box-shadow:
    0 22px 32px rgba(14, 25, 32, 0.24),
    0 0 0 12px rgba(var(--entry-accent-rgb), 0.14);
}

.timeline-entry:hover .timeline-node {
  transform: translateY(-1px) scale(1.03);
}

.timeline-node__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.timeline-node__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.08));
}

.timeline-entry--maintenance,
.timeline-entry--oil {
  --entry-accent: #cd9a3e;
  --entry-accent-rgb: 205, 154, 62;
}

.timeline-entry--engine {
  --entry-accent: #d06054;
  --entry-accent-rgb: 208, 96, 84;
}

.timeline-entry--transmission {
  --entry-accent: #3596b8;
  --entry-accent-rgb: 53, 150, 184;
}

.timeline-entry--suspension {
  --entry-accent: #4872d0;
  --entry-accent-rgb: 72, 114, 208;
}

.timeline-entry--brakes {
  --entry-accent: #d66840;
  --entry-accent-rgb: 214, 104, 64;
}

.timeline-entry--body {
  --entry-accent: #627181;
  --entry-accent-rgb: 98, 113, 129;
}

.timeline-entry--lights {
  --entry-accent: #c29236;
  --entry-accent-rgb: 194, 146, 54;
}

.timeline-entry--interior {
  --entry-accent: #588395;
  --entry-accent-rgb: 88, 131, 149;
}

.timeline-entry--tires {
  --entry-accent: #455360;
  --entry-accent-rgb: 69, 83, 96;
}

.timeline-entry--steering {
  --entry-accent: #3a8c66;
  --entry-accent-rgb: 58, 140, 102;
}

.timeline-entry--electrics {
  --entry-accent: #427ed7;
  --entry-accent-rgb: 66, 126, 215;
}

.timeline-entry--fluids {
  --entry-accent: #2b9d95;
  --entry-accent-rgb: 43, 157, 149;
}

.timeline-entry--other {
  --entry-accent: #566f80;
  --entry-accent-rgb: 86, 111, 128;
}

.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 25, 29, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 250, 0.97)),
    linear-gradient(90deg, rgba(var(--entry-accent-rgb), 0.05), transparent 32%);
  box-shadow: 0 20px 42px rgba(17, 21, 24, 0.1);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, rgba(var(--entry-accent-rgb), 0.94), rgba(16, 30, 39, 0.9));
}

.timeline-entry--selected .service-card {
  border-color: rgba(var(--entry-accent-rgb), 0.34);
  box-shadow:
    0 24px 48px rgba(17, 21, 24, 0.12),
    0 0 0 1px rgba(var(--entry-accent-rgb), 0.1);
}

.service-card[open] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 249, 252, 0.98)),
    linear-gradient(90deg, rgba(var(--entry-accent-rgb), 0.06), transparent 34%);
}

.service-card__summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  padding: 26px 28px 22px;
  cursor: pointer;
  list-style: none;
}

.service-card__summary::-webkit-details-marker {
  display: none;
}

.service-card__summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: rgba(247, 251, 255, 0.96);
  background: linear-gradient(135deg, rgba(var(--entry-accent-rgb), 0.94), rgba(16, 30, 39, 0.9));
  font: 700 20px/1 "IBM Plex Mono", monospace;
}

.service-card[open] .service-card__summary::after {
  content: "−";
}

.service-card__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card__summary-main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.service-card__summary-main h2 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.service-card__subline {
  margin: 0;
  color: var(--muted);
  font: 600 12px/1.35 "IBM Plex Mono", monospace;
}

.service-card__preview {
  max-width: 72ch;
  margin: 0;
  max-height: 6.4rem;
  color: rgba(18, 32, 42, 0.86);
  font-size: 15px;
  line-height: 1.55;
  overflow: hidden;
}

.service-card__summary-side {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 12px;
  padding-right: 42px;
}

.service-card__figure {
  display: grid;
  gap: 8px;
  min-width: 170px;
  padding: 16px 18px;
  border: 1px solid rgba(var(--entry-accent-rgb), 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(var(--entry-accent-rgb), 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 18px rgba(17, 21, 24, 0.06);
}

.service-card__figure-label {
  color: var(--muted);
  font: 600 11px/1.2 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-card__figure strong {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1;
}

.service-card__figure small {
  color: var(--muted);
  font: 600 12px/1.2 "IBM Plex Mono", monospace;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 12px/1.1 "IBM Plex Mono", monospace;
}

.service-pill__icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  opacity: 0.88;
}

.service-pill__icon svg {
  width: 100%;
  height: 100%;
}

.service-pill--car {
  color: var(--muted);
  border-color: rgba(20, 25, 29, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.service-pill--system {
  color: var(--accent-deep);
  border-color: rgba(var(--entry-accent-rgb), 0.16);
  background: rgba(var(--entry-accent-rgb), 0.14);
}

.service-pill--mileage {
  color: var(--ink);
  border-color: rgba(20, 25, 29, 0.08);
  background: rgba(20, 25, 29, 0.05);
}

.service-pill--oil {
  color: var(--accent-deep);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(255, 255, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.service-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 26px 18px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
}

.service-card__meta span {
  padding: 8px 11px;
  border: 1px solid rgba(20, 25, 29, 0.06);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font: 500 12px/1.2 "IBM Plex Mono", monospace;
}

.service-card__body {
  padding: 22px 26px 26px;
}

.service-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.detail-grid--timeline {
  gap: 14px;
}

.detail-block--reminder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(var(--entry-accent-rgb), 0.08)),
    rgba(255, 255, 255, 0.9);
}

.detail-block--oil {
  border-color: rgba(var(--accent-rgb), 0.22);
  background:
    linear-gradient(180deg, rgba(248, 252, 254, 0.96), rgba(var(--accent-rgb), 0.08)),
    rgba(255, 255, 255, 0.92);
}

.detail-block--oil .detail-block__label {
  color: var(--accent-deep);
}

.media-strip {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(20, 25, 29, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(248, 251, 253, 0.94), rgba(238, 245, 249, 0.96)),
    linear-gradient(90deg, rgba(var(--entry-accent-rgb), 0.08), transparent 36%);
}

[data-journal-density="compact"] .timeline-sections {
  gap: 22px;
}

[data-journal-density="compact"] .timeline {
  gap: 18px;
}

[data-journal-density="compact"] .timeline-shell {
  --timeline-rail-width: 76px;
  --timeline-gap: 16px;
}

[data-journal-density="compact"] .timeline-section__header {
  gap: 14px;
  top: 10px;
  padding: 12px 14px;
}

[data-journal-density="compact"] .timeline-section__header h3 {
  font-size: clamp(20px, 2.3vw, 24px);
}

[data-journal-density="compact"] .timeline-node {
  width: 54px;
  height: 54px;
  margin-top: 16px;
  box-shadow:
    0 14px 20px rgba(14, 25, 32, 0.18),
    0 0 0 8px rgba(var(--entry-accent-rgb), 0.09);
}

[data-journal-density="compact"] .timeline-node__icon {
  width: 24px;
  height: 24px;
}

[data-journal-density="compact"] .service-card__summary {
  gap: 16px;
  padding: 20px 22px 16px;
}

[data-journal-density="compact"] .service-card__summary-side {
  gap: 10px;
  padding-right: 40px;
}

[data-journal-density="compact"] .service-card__figure {
  min-width: 152px;
  padding: 14px 16px;
}

[data-journal-density="compact"] .service-card__preview {
  max-height: 0;
  opacity: 0;
}

[data-journal-density="compact"] .service-card__meta {
  padding: 0 22px 14px;
}

[data-journal-density="compact"] .service-card__body {
  padding: 18px 22px 22px;
}

@media (prefers-reduced-motion: no-preference) {
  [data-journal-state][data-density-ready="true"] .timeline-section__header,
  [data-journal-state][data-density-ready="true"] .timeline-sections,
  [data-journal-state][data-density-ready="true"] .timeline,
  [data-journal-state][data-density-ready="true"] .timeline-entry,
  [data-journal-state][data-density-ready="true"] .timeline-node,
  [data-journal-state][data-density-ready="true"] .service-card,
  [data-journal-state][data-density-ready="true"] .service-card__summary,
  [data-journal-state][data-density-ready="true"] .service-card__summary-side,
  [data-journal-state][data-density-ready="true"] .service-card__figure,
  [data-journal-state][data-density-ready="true"] .service-card__meta,
  [data-journal-state][data-density-ready="true"] .service-card__body,
  [data-journal-state][data-density-ready="true"] .service-card__preview,
  [data-journal-state][data-density-ready="true"] .route-pill--button {
    transition:
      gap 220ms ease,
      padding 220ms ease,
      margin 220ms ease,
      max-height 220ms ease,
      opacity 180ms ease,
      top 220ms ease,
      width 220ms ease,
      height 220ms ease,
      box-shadow 220ms ease,
      border-color 220ms ease,
      background 220ms ease,
      transform 220ms ease;
  }

  [data-journal-state][data-density-animating="true"] .timeline-entry {
    transform: translateY(-1px);
  }
}

.media-strip__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.media-strip__header h3 {
  margin: 0;
  font-size: 18px;
}

.media-strip__header span {
  color: var(--muted);
  font: 600 12px/1.2 "IBM Plex Mono", monospace;
}

.media-strip__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.media-card {
  overflow: hidden;
  border: 1px solid rgba(20, 25, 29, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  scroll-snap-align: start;
}

.media-card__preview {
  display: block;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(var(--entry-accent-rgb), 0.18), rgba(42, 51, 58, 0.18)),
    rgba(237, 239, 241, 0.92);
}

.media-card__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
}

.media-card__link span {
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.media-card__link small {
  color: var(--muted);
  font: 600 12px/1.2 "IBM Plex Mono", monospace;
}

.login-card,
.editor-panel,
.editor-form,
.editor-hero {
  position: relative;
  border: 1px solid rgba(20, 25, 29, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(240, 246, 251, 0.97)),
    linear-gradient(90deg, rgba(88, 166, 214, 0.05), transparent 36%);
  box-shadow: 0 18px 40px rgba(17, 21, 24, 0.1);
}

.login-card {
  padding: 32px;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.login-form__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.editor-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
}

.editor-hero__content {
  min-width: 0;
}

.editor-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.editor-hero__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(20, 25, 29, 0.08);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font: 600 12px/1.1 "IBM Plex Mono", monospace;
}

.editor-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 20px;
  margin-top: 20px;
}

.editor-main,
.editor-side {
  min-width: 0;
}

.editor-form,
.editor-panel {
  padding: 24px;
}

.editor-section + .editor-section {
  margin-top: 22px;
}

.editor-section__header {
  margin-bottom: 14px;
}

.editor-section__header h2,
.editor-panel__header h2 {
  margin: 0;
  font-size: 22px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--wide {
  grid-column: span 2;
}

.form-field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font: 600 12px/1.2 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-field__label small {
  color: rgba(96, 112, 127, 0.78);
  font-size: 11px;
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 25, 29, 0.14);
  border-radius: 14px;
  color: var(--ink);
  font: 500 15px/1.45 "Space Grotesk", "Segoe UI Variable", sans-serif;
  background: rgba(255, 255, 255, 0.92);
}

.form-input:focus {
  outline: none;
  border-color: rgba(88, 166, 214, 0.42);
  box-shadow: 0 0 0 4px rgba(88, 166, 214, 0.1);
}

.form-input--textarea {
  min-height: 120px;
  resize: vertical;
}

.editor-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.editor-panel__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.editor-panel__header span,
.upload-form__hint,
.editor-panel__empty {
  color: var(--muted);
  font: 500 14px/1.5 "Space Grotesk", "Segoe UI Variable", sans-serif;
}

.upload-form {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
}

.upload-form__hint {
  margin: 0;
}

.editor-attachments {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.attachment-card__footer {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

@media (max-width: 960px) {
  .shell {
    width: min(100% - 20px, 1220px);
    margin: 20px auto 40px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

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

  .timeline-intro,
  .service-card__summary {
    grid-template-columns: 1fr;
  }

  .timeline-intro {
    align-items: stretch;
  }

  .timeline-intro__meta {
    justify-content: flex-start;
  }

  .timeline-shell {
    --timeline-rail-width: 76px;
    --timeline-gap: 18px;
  }

  .service-card__summary-side {
    justify-items: start;
    padding-right: 0;
  }

  .service-card__figure {
    min-width: 0;
  }

  .media-strip__rail {
    grid-auto-columns: minmax(220px, 260px);
  }

  .browser-panel {
    position: static;
  }

  .browser-list {
    max-height: none;
  }

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

  .detail-block--wide {
    grid-column: span 2;
  }

  .planning-panel {
    grid-template-columns: 1fr;
  }

  .planning-panel__metrics,
  .planning-forecast__grid {
    grid-template-columns: 1fr 1fr;
  }

  .planning-form {
    grid-template-columns: 1fr;
  }

  .focus-panel__metrics {
    grid-template-columns: 1fr 1fr;
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero__stats,
  .detail-grid,
  .focus-panel__metrics,
  .planning-panel__metrics,
  .planning-forecast__grid {
    grid-template-columns: 1fr;
  }

  .timeline-shell {
    --timeline-rail-width: 68px;
    --timeline-gap: 12px;
  }

  .timeline-section__header {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    top: 10px;
    padding: 12px 14px;
  }

  .timeline-node {
    width: 50px;
    height: 50px;
    margin-top: 16px;
    font-size: 12px;
    box-shadow:
      0 14px 22px rgba(14, 25, 32, 0.2),
      0 0 0 8px rgba(var(--entry-accent-rgb), 0.1);
  }

  .timeline-node__icon {
    width: 22px;
    height: 22px;
  }

  .service-card__subline {
    font-size: 11px;
  }

  .timeline-intro,
  .service-card__summary,
  .service-card__body,
  .service-card__meta,
  .media-strip,
  .planning-panel__main,
  .planning-panel__forecast {
    padding-left: 16px;
    padding-right: 16px;
  }

  .service-card__summary {
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .service-card__summary::after {
    right: 14px;
    top: 18px;
  }

  .service-card__kicker,
  .service-card__actions,
  .timeline-intro__meta {
    gap: 8px;
  }

  .media-strip__rail {
    grid-auto-columns: minmax(210px, 86vw);
  }

  .detail-block--wide {
    grid-column: span 1;
  }

  .entry-card__summary,
  .entry-card__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .entry-card__headline {
    flex-direction: column;
  }

  .focus-panel__header,
  .focus-panel__title {
    flex-direction: column;
  }

  .page-actions,
  .editor-hero,
  .editor-form__actions,
  .editor-hero__actions,
  .login-form__actions,
  .page-actions__controls,
  .planning-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-actions__controls .button,
  .page-actions__controls .auth-pill,
  .editor-hero__actions .button,
  .planning-form__actions .button {
    width: 100%;
  }

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

  .form-field--wide {
    grid-column: span 1;
  }

  .toolbar,
  .attachments,
  .login-card,
  .editor-form,
  .editor-panel,
  .editor-hero,
  .focus-panel {
    padding: 16px;
  }
}
