@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/next/vendor/source-serif-4/SourceSerif4Variable-Roman.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/next/vendor/source-serif-4/SourceSerif4Variable-Italic.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;
  --light-paper: #fbf9f6;
  --light-paper-bright: #fffdfa;
  --light-ink: #1f302b;
  --light-body: #303735;
  --light-muted: #73736d;
  --light-line: #d9d1c4;
  --light-line-strong: #c6bba9;
  --light-forest: #314d42;
  --light-moss: #728065;
  --light-moss-soft: #e8eadf;
  --light-terracotta: #bd4b2c;
  --light-terracotta-dark: #9d351d;
  --light-terracotta-soft: #f4e2d9;
  --light-gold: #cc9749;
  --light-gold-soft: #f4e8ce;
  --light-danger: #9f2d23;
  --light-focus: #245f8a;
  --light-nav-text: #323632;
  --light-placeholder: #807e78;
  --light-text-subtle: #4b514e;
  --light-icon-muted: #555b56;
  --light-gold-text: #805818;
  --light-accent-fill: #bd4b2c;
  --light-accent-fill-hover: #9d351d;
  --light-accent-on-fill: #ffffff;
  --light-solid-fill: #314d42;
  --light-solid-on-fill: #ffffff;
  --light-danger-fill: #9f2d23;
  --light-danger-on-fill: #ffffff;
  --light-toast-background: #1f302b;
  --light-toast-text: #ffffff;
  --dark-paper: #171b1a;
  --dark-paper-bright: #202624;
  --dark-ink: #f3efe7;
  --dark-body: #deddd7;
  --dark-muted: #b7b5ad;
  --dark-line: #404944;
  --dark-line-strong: #59645e;
  --dark-forest: #c9ddd4;
  --dark-moss: #aec29f;
  --dark-moss-soft: #2b382f;
  --dark-terracotta: #e47d5e;
  --dark-terracotta-dark: #ff9a7d;
  --dark-terracotta-soft: #3d2924;
  --dark-gold: #e3b666;
  --dark-gold-soft: #3c3322;
  --dark-danger: #ff8c82;
  --dark-focus: #7ec8ff;
  --dark-nav-text: #deddd7;
  --dark-placeholder: #aaa9a2;
  --dark-text-subtle: #cbc9c2;
  --dark-icon-muted: #b7b5ad;
  --dark-gold-text: #f0c879;
  --dark-accent-fill: #b94b32;
  --dark-accent-fill-hover: #a83f29;
  --dark-accent-on-fill: #ffffff;
  --dark-solid-fill: #c9ddd4;
  --dark-solid-on-fill: #18201d;
  --dark-danger-fill: #a83c35;
  --dark-danger-on-fill: #ffffff;
  --dark-toast-background: #eef2ed;
  --dark-toast-text: #18201d;
  --paper: var(--light-paper);
  --paper-bright: var(--light-paper-bright);
  --ink: var(--light-ink);
  --body: var(--light-body);
  --muted: var(--light-muted);
  --line: var(--light-line);
  --line-strong: var(--light-line-strong);
  --forest: var(--light-forest);
  --moss: var(--light-moss);
  --moss-soft: var(--light-moss-soft);
  --terracotta: var(--light-terracotta);
  --terracotta-dark: var(--light-terracotta-dark);
  --terracotta-soft: var(--light-terracotta-soft);
  --gold: var(--light-gold);
  --gold-soft: var(--light-gold-soft);
  --danger: var(--light-danger);
  --focus: var(--light-focus);
  --nav-text: var(--light-nav-text);
  --placeholder: var(--light-placeholder);
  --text-subtle: var(--light-text-subtle);
  --icon-muted: var(--light-icon-muted);
  --gold-text: var(--light-gold-text);
  --accent-fill: var(--light-accent-fill);
  --accent-fill-hover: var(--light-accent-fill-hover);
  --accent-on-fill: var(--light-accent-on-fill);
  --solid-fill: var(--light-solid-fill);
  --solid-on-fill: var(--light-solid-on-fill);
  --danger-fill: var(--light-danger-fill);
  --danger-on-fill: var(--light-danger-on-fill);
  --toast-background: var(--light-toast-background);
  --toast-text: var(--light-toast-text);
  --serif: "Source Serif 4 Variable", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content-width: 1360px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --radius-control: 4px;
  --radius-card: 7px;
  --elevation-hover: 0 0 0 10px var(--paper-bright);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: var(--dark-paper);
  --paper-bright: var(--dark-paper-bright);
  --ink: var(--dark-ink);
  --body: var(--dark-body);
  --muted: var(--dark-muted);
  --line: var(--dark-line);
  --line-strong: var(--dark-line-strong);
  --forest: var(--dark-forest);
  --moss: var(--dark-moss);
  --moss-soft: var(--dark-moss-soft);
  --terracotta: var(--dark-terracotta);
  --terracotta-dark: var(--dark-terracotta-dark);
  --terracotta-soft: var(--dark-terracotta-soft);
  --gold: var(--dark-gold);
  --gold-soft: var(--dark-gold-soft);
  --danger: var(--dark-danger);
  --focus: var(--dark-focus);
  --nav-text: var(--dark-nav-text);
  --placeholder: var(--dark-placeholder);
  --text-subtle: var(--dark-text-subtle);
  --icon-muted: var(--dark-icon-muted);
  --gold-text: var(--dark-gold-text);
  --accent-fill: var(--dark-accent-fill);
  --accent-fill-hover: var(--dark-accent-fill-hover);
  --accent-on-fill: var(--dark-accent-on-fill);
  --solid-fill: var(--dark-solid-fill);
  --solid-on-fill: var(--dark-solid-on-fill);
  --danger-fill: var(--dark-danger-fill);
  --danger-on-fill: var(--dark-danger-on-fill);
  --toast-background: var(--dark-toast-background);
  --toast-text: var(--dark-toast-text);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"],
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: var(--dark-paper);
    --paper-bright: var(--dark-paper-bright);
    --ink: var(--dark-ink);
    --body: var(--dark-body);
    --muted: var(--dark-muted);
    --line: var(--dark-line);
    --line-strong: var(--dark-line-strong);
    --forest: var(--dark-forest);
    --moss: var(--dark-moss);
    --moss-soft: var(--dark-moss-soft);
    --terracotta: var(--dark-terracotta);
    --terracotta-dark: var(--dark-terracotta-dark);
    --terracotta-soft: var(--dark-terracotta-soft);
    --gold: var(--dark-gold);
    --gold-soft: var(--dark-gold-soft);
    --danger: var(--dark-danger);
    --focus: var(--dark-focus);
    --nav-text: var(--dark-nav-text);
    --placeholder: var(--dark-placeholder);
    --text-subtle: var(--dark-text-subtle);
    --icon-muted: var(--dark-icon-muted);
    --gold-text: var(--dark-gold-text);
    --accent-fill: var(--dark-accent-fill);
    --accent-fill-hover: var(--dark-accent-fill-hover);
    --accent-on-fill: var(--dark-accent-on-fill);
    --solid-fill: var(--dark-solid-fill);
    --solid-on-fill: var(--dark-solid-on-fill);
    --danger-fill: var(--dark-danger-fill);
    --danger-on-fill: var(--dark-danger-on-fill);
    --toast-background: var(--dark-toast-background);
    --toast-text: var(--dark-toast-text);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--paper);
  overflow-x: clip;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 72%, transparent);
  outline-offset: 3px;
}

a {
  color: inherit;
}

.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;
}

.app-shell {
  width: min(var(--content-width), calc(100% - 88px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(22px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
}

.site-wordmark {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-wordmark:hover {
  color: var(--terracotta-dark);
}

.primary-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 2.4vw, 34px);
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nav-text);
  font-size: 0.96rem;
  font-weight: 540;
  text-decoration: none;
}

.primary-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 720;
}

.primary-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--terracotta);
  content: "";
}

.mobile-tab-bar,
.mobile-more-panel {
  display: none;
}

.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  font-size: 0.74rem;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.header-menu {
  position: relative;
}

.header-menu-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nav-text);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 680;
  padding: 0 12px;
}

.header-menu-toggle:hover,
.header-menu-toggle[aria-expanded="true"],
.header-menu-toggle[aria-current="page"] {
  background: var(--moss-soft);
  color: var(--ink);
}

.header-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 210px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--paper-bright);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--ink) 18%, transparent);
  padding: 8px;
}

.header-destination-menu,
.account-popover nav {
  display: grid;
  gap: 2px;
}

.header-popover a,
.header-menu-action {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--body);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 680;
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
}

.header-popover a:hover,
.header-popover a[aria-current="page"],
.header-menu-action:hover {
  background: var(--moss-soft);
  color: var(--ink);
}

.header-popover .ph {
  color: var(--terracotta-dark);
  font-size: 1.05rem;
}

.account-popover {
  min-width: 244px;
}

.account-name {
  color: var(--muted);
  font-size: 0.8rem;
}

.theme-control {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 0.86rem;
  font-weight: 680;
  margin: 6px 0;
  padding: 6px 10px;
}

.theme-control .ph {
  color: var(--terracotta-dark);
  font-size: 1rem;
}

.theme-control select {
  width: auto;
  min-width: 80px;
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--paper-bright);
  color: var(--body);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 5px 24px 5px 7px;
}

.quiet-button,
.text-button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--terracotta-dark);
  cursor: pointer;
  padding: 4px 6px;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--terracotta) 44%, transparent);
  text-underline-offset: 4px;
}

.capture-band {
  margin: 30px 0 4px;
}

.capture-band[data-mode="compact"] {
  margin: 18px 0 12px;
}

.capture-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-bright);
  color: var(--terracotta-dark);
  cursor: pointer;
  font-weight: 720;
  padding: 0 17px;
}

.capture-toggle:hover {
  border-color: var(--terracotta);
  background: var(--terracotta-soft);
}

.capture-band[data-mode="compact"][data-expanded="true"] .capture-toggle {
  margin-bottom: 10px;
}

.capture-details-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 7px;
  color: var(--terracotta-dark);
  font-size: 0.86rem;
  font-weight: 720;
  text-underline-offset: 4px;
}

.capture-help-link,
.context-help-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  color: var(--terracotta-dark);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.capture-help-link {
  margin-left: 14px;
}

.context-help-link:hover,
.capture-help-link:hover {
  color: var(--ink);
}

.help-page {
  display: grid;
  gap: 30px;
}

.help-heading-tools .back-link {
  margin: 0;
}

.help-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-topic-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-bright);
  color: var(--body);
  font-size: 0.84rem;
  font-weight: 720;
  padding: 0 15px;
  text-decoration: none;
}

.help-topic-link:hover,
.help-topic-link[aria-current="page"] {
  border-color: var(--terracotta);
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
}

.help-intro {
  border-left: 4px solid var(--moss);
  border-radius: 0 var(--radius-large) var(--radius-large) 0;
  background: color-mix(in srgb, var(--moss-soft) 62%, transparent);
  padding: clamp(22px, 4vw, 34px);
}

.help-intro h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.help-intro p {
  max-width: 72ch;
  margin: 0;
}

.help-topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.help-topic {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--moss);
  border-radius: var(--radius-large);
  background: var(--paper-bright);
  box-shadow: var(--shadow-small);
  padding: clamp(22px, 3vw, 32px);
}

.help-topic.is-selected {
  border-top-color: var(--terracotta);
  box-shadow: var(--shadow-soft);
}

.help-topic h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
}

.help-topic p,
.help-topic li {
  overflow-wrap: anywhere;
}

.help-topic-summary {
  color: var(--forest);
  font-weight: 700;
}

.help-topic-bullets {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.help-topic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.help-topic-actions a {
  min-height: 44px;
}

.capture-form {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-bright);
  padding: 12px 14px 12px 28px;
}

.capture-form .ph {
  color: var(--terracotta);
  font-size: 1.85rem;
}

.capture-form input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--body);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.capture-form input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.primary-button {
  min-height: 48px;
  border: 1px solid var(--accent-fill);
  border-radius: 4px;
  background: var(--accent-fill);
  color: var(--accent-on-fill);
  cursor: pointer;
  font-weight: 760;
  padding: 0 38px;
}

.primary-button:hover {
  border-color: var(--accent-fill-hover);
  background: var(--accent-fill-hover);
}

.primary-button:disabled {
  border-color: var(--line-strong);
  background: var(--line-strong);
  cursor: wait;
}

.form-message {
  min-height: 1.3rem;
  margin: 8px 4px 0;
  color: var(--moss);
  font-size: 0.86rem;
}

.error-message {
  color: var(--danger);
}

.route-status {
  min-height: 0;
}

.route-status:not(:empty) {
  margin: 24px 0;
  color: var(--muted);
}

.page {
  min-height: 420px;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.99fr);
  grid-template-areas:
    "focus coming"
    "ready recent"
    "quick .";
  column-gap: clamp(72px, 9vw, 130px);
  row-gap: 56px;
  align-items: start;
}

.home-section {
  min-width: 0;
}

.home-section-focus { grid-area: focus; }
.home-section-coming { grid-area: coming; }
.home-section-ready { grid-area: ready; }
.home-section-recent { grid-area: recent; }
.home-section-quick { grid-area: quick; }

.section-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.section-header h1,
.section-header h2,
.page-heading h1,
.item-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-header h2 {
  font-size: clamp(1.85rem, 2.4vw, 2.35rem);
  line-height: 1.08;
}

.section-header p,
.page-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.editorial-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.editorial-row {
  border-bottom: 1px solid var(--line);
}

.editorial-row:last-child {
  border-bottom: 0;
}

.editorial-link {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  color: var(--body);
  text-decoration: none;
}

.decision-section .editorial-link {
  min-height: 68px;
}

.decision-section .item-symbol {
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
}

.editorial-link:hover .row-title,
.compact-link:hover .row-title {
  color: var(--terracotta-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.item-symbol {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--moss-soft);
  color: var(--moss);
  font-size: 1.7rem;
}

.item-symbol.question {
  border: 1px solid var(--terracotta);
  background: transparent;
  color: var(--terracotta);
}

.item-symbol.gold {
  background: var(--gold-soft);
  color: var(--gold-text);
}

.item-symbol.terracotta {
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
}

.row-copy {
  min-width: 0;
}

.row-title {
  display: block;
  overflow: hidden;
  color: var(--body);
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-arrow {
  color: var(--icon-muted);
  font-size: 1.3rem;
}

.section-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  margin: 14px 8px 0;
  color: var(--terracotta-dark);
  font-size: 0.92rem;
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.commitment-row {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 48px 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.commitment-date {
  display: grid;
  justify-items: center;
  color: var(--ink);
  line-height: 1;
}

.commitment-date small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.commitment-date strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--moss);
}

.status-dot.now {
  background: var(--terracotta);
}

.status-dot.next {
  background: var(--gold);
}

.status-dot.plan {
  background: var(--terracotta);
}

.commitment-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px 0;
}

.commitment-copy .row-title {
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  white-space: normal;
}

.commitment-attribution {
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.commitment-time {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.compact-link {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.compact-link .item-symbol {
  width: 34px;
  height: 34px;
  font-size: 1.15rem;
}

.compact-link .row-title {
  font-size: 0.94rem;
}

.compact-time {
  color: var(--muted);
  font-size: 0.75rem;
}

.empty-state {
  margin: 0;
  padding: 26px 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 18px;
}

.page-heading h1 {
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  line-height: 1;
}

.goals-groups {
  display: grid;
  gap: 54px;
  margin-top: 18px;
}

.goal-create-panel {
  margin-top: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--paper-bright);
  box-shadow: var(--shadow-small);
  padding: clamp(22px, 4vw, 38px);
}

.structured-create-panel {
  margin-top: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--paper-bright);
  box-shadow: var(--shadow-small);
  padding: clamp(22px, 4vw, 38px);
}

.structured-create-panel > h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
}

.structured-type-choices {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  margin: 0 0 28px;
  padding: 0;
}

.structured-type-choices legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.structured-type-choice {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--body);
  cursor: pointer;
  padding: 8px 10px;
}

.structured-type-choice:has(input:checked) {
  border-color: var(--terracotta);
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  font-weight: 760;
}

.structured-type-choice input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.structured-edit-grid {
  margin-top: 0;
}

.book-lookup {
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  padding: 20px;
}

.book-lookup h3,
.book-lookup h4,
.book-lookup p {
  margin: 0;
}

.book-lookup h3,
.book-lookup h4 {
  color: var(--ink);
  font-family: var(--serif);
}

.book-lookup > p,
.book-lookup-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
}

.book-lookup-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 16px;
}

.book-lookup-controls input {
  min-width: 0;
}

.book-lookup .form-message {
  min-height: 1.25em;
  margin-top: 10px;
}

.book-lookup-results {
  display: grid;
  gap: 10px;
}

.book-lookup-result {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.book-lookup-result:not(:has(img)) {
  grid-template-columns: minmax(0, 1fr);
}

.book-lookup-result img {
  width: 64px;
  height: 88px;
  border-radius: 3px;
  object-fit: cover;
}

.book-lookup-copy {
  min-width: 0;
}

.book-lookup-copy h4 {
  overflow-wrap: anywhere;
}

.book-lookup-copy button {
  margin-top: 10px;
}

.structured-create-form[aria-busy="true"] {
  opacity: 0.76;
}

.bulk-create-panel,
.bulk-review {
  margin-top: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--paper-bright);
  box-shadow: var(--shadow-small);
  padding: clamp(22px, 4vw, 38px);
}

.bulk-create-panel > h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
}

.bulk-type-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bulk-paste-field {
  display: grid;
  gap: 8px;
}

.bulk-paste-field textarea {
  min-height: 280px;
  resize: vertical;
}

.field-help {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.bulk-format-help {
  margin: 20px 0;
}

.bulk-format-help pre {
  margin: 14px 0 0;
  overflow-x: auto;
  white-space: pre-wrap;
  color: var(--body);
  font: 0.88rem/1.55 var(--sans);
}

.bulk-review-toolbar,
.bulk-confirm-bar,
.bulk-record-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bulk-select-all,
.bulk-record-header {
  min-height: 44px;
}

.bulk-select-all {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.bulk-select-all input,
.bulk-record-header input {
  width: 20px;
  min-height: 20px;
  flex: 0 0 auto;
}

.bulk-review-list,
.bulk-saved-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.bulk-review-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  padding: 18px;
}

.bulk-review-item.is-duplicate,
.bulk-review-item.is-invalid {
  background: var(--moss-soft);
}

.bulk-record-header {
  justify-content: flex-start;
}

.bulk-record-header h3 {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.bulk-record-meta,
.bulk-record-outcome {
  margin: 10px 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.9rem;
}

.bulk-goal-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 12px 0;
}

.bulk-goal-preview-meta div {
  display: flex;
  gap: 7px;
}

.bulk-goal-preview-meta dt {
  color: var(--muted);
  font-weight: 700;
}

.bulk-goal-preview-meta dd {
  margin: 0;
}

.bulk-goal-preview-steps {
  margin: 12px 0;
  padding-left: 24px;
}

.bulk-goal-preview-steps li + li {
  margin-top: 6px;
}

.bulk-confirm-bar {
  position: sticky;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 2;
  margin: 24px -10px -10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--paper-bright);
  padding: 14px;
}

.bulk-review[aria-busy="true"] {
  opacity: 0.76;
}

.bulk-saved-list .editorial-link {
  min-height: 48px;
}

.goal-create-panel h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
}

.goal-create-panel > p {
  margin: 8px 0 24px;
  color: var(--muted);
}

.personal-note-editor form {
  display: grid;
  gap: 12px;
}

.personal-note-editor .small-button {
  justify-self: start;
}

.goals-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-strong);
  padding: 18px 0 10px;
}

.goals-group-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.1;
}

.goals-group-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.goals-group-count {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.goals-grid > li {
  min-width: 0;
}

.goal-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-bright);
  color: inherit;
  padding: 22px;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.goal-card:hover,
.goal-card:focus-visible {
  border-color: var(--line-strong);
  box-shadow: var(--elevation-hover);
  transform: translateY(-1px);
}

.goal-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--terracotta-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.goal-card-header .row-arrow {
  margin-left: auto;
}

.goal-priority {
  border-radius: 999px;
  background: var(--moss-soft);
  color: var(--forest);
  padding: 2px 8px;
  letter-spacing: 0.03em;
}

.goal-priority-now {
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
}

.goal-priority-next {
  background: var(--gold-soft);
  color: var(--gold-text);
}

.goal-card-title {
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  font-weight: 700;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.goal-card-summary {
  margin-top: 8px;
  color: var(--text-subtle);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.goal-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.goal-card-meta div {
  min-width: 0;
}

.goal-card-meta dt {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.goal-card-meta dd {
  margin: 3px 0 0;
  color: var(--body);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.goal-card-progress {
  margin-top: auto;
  padding-top: 18px;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
}

.todoist-page {
  display: grid;
  gap: 26px;
}

.todoist-connection {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-bright);
  padding: 20px;
}

.todoist-connection-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--moss-soft);
  color: var(--forest);
  font-size: 1.35rem;
}

.todoist-connection.is-unconfigured .todoist-connection-icon {
  background: var(--gold-soft);
  color: var(--gold-text);
}

.todoist-connection.is-unavailable .todoist-connection-icon {
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
}

.todoist-connection-copy {
  min-width: 0;
}

.todoist-connection-actions {
  align-self: center;
}

.todoist-connection-message,
.todoist-page-message {
  min-height: 1.25em;
  margin: 8px 0 0;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 680;
}

.todoist-connection-message.error-message {
  color: var(--danger);
}

.todoist-page-message {
  margin: -10px 0 0;
}

.todoist-connection h2,
.todoist-section-heading h2,
.todoist-task-group h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
}

.todoist-connection h2 {
  font-size: 1.35rem;
}

.todoist-connection p {
  margin: 5px 0 0;
  color: var(--text-subtle);
}

.todoist-connection .todoist-last-sync {
  color: var(--muted);
  font-size: 0.8rem;
}

.todoist-completed-control {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  color: var(--body);
  cursor: pointer;
  font-weight: 680;
}

.todoist-completed-control input {
  width: 20px;
  height: 20px;
}

.todoist-result-count {
  margin: -18px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.todoist-results {
  display: grid;
  gap: 48px;
}

.todoist-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 10px;
}

.todoist-section-heading h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
}

.todoist-section-heading span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.todoist-task-group {
  margin-top: 24px;
}

.todoist-task-group h3 {
  font-size: 1.08rem;
}

.todoist-task-list {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.todoist-task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-bright);
  padding: 18px 20px;
}

.todoist-task-copy {
  min-width: 0;
}

.todoist-task-title {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.todoist-task-meta,
.todoist-task-synced {
  margin: 6px 0 0;
  color: var(--text-subtle);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.todoist-task-synced {
  color: var(--muted);
}

.todoist-task-actions {
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px 16px;
}

.todoist-task-actions .text-link,
.todoist-import-links .text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.todoist-import-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.todoist-attach-disclosure {
  min-width: min(100%, 330px);
}

.todoist-attach-trigger {
  white-space: nowrap;
}

.todoist-attach-panel {
  width: min(440px, calc(100vw - 64px));
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  padding: 16px;
  white-space: normal;
}

.todoist-attach-form,
.todoist-attach-fields {
  display: grid;
  gap: 14px;
}

.todoist-attach-form .action-help {
  margin: 0;
}

.todoist-attach-form .form-actions {
  margin-top: 0;
}

.todoist-attach-form .inline-status {
  margin: 0;
}

.todoist-attach-reload {
  justify-self: start;
  min-height: 44px;
}

.todoist-goal-links {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.todoist-goal-links-label {
  margin: 0;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 760;
}

.todoist-goal-links ul {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 20px;
}

.todoist-group-empty {
  margin-top: 12px;
}

.todoist-empty {
  margin-top: 0;
}

.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.library-heading-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.library-filter-toggle {
  display: none;
}

.library-filter-count {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  font-size: 0.74rem;
  font-weight: 800;
}

.library-filter-panel {
  display: grid;
  gap: 0;
}

.library-filter-panel .page-toolbar {
  margin-top: 18px;
}

.mutual-place-filter {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-bright);
  color: var(--body);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 720;
  padding: 0 14px;
}

.mutual-place-filter input {
  width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin: 0;
  padding: 0;
}

.search-field,
.select-field,
.form-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}

input,
select,
textarea {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper-bright);
  color: var(--body);
  padding: 9px 11px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.search-field input {
  min-width: min(320px, 70vw);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 30px;
  margin-top: 10px;
}

.library-type-bar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  padding: 10px 0 12px;
  scrollbar-width: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.library-type-bar::-webkit-scrollbar {
  display: none;
}

.library-type-chip {
  min-height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-bright);
  color: var(--body);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 14px;
}

.library-status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.library-status-chip {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--body);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 14px;
}

.library-status-chip:hover,
.library-status-chip[aria-pressed="true"] {
  border-color: var(--terracotta-dark);
  background: var(--terracotta-soft);
  color: var(--ink);
}

.library-type-chip:hover,
.library-type-chip[aria-pressed="true"] {
  border-color: var(--forest);
  background: var(--solid-fill);
  color: var(--solid-on-fill);
}

.library-results {
  min-height: 220px;
}

.places-compare-host:empty {
  display: none;
}

.places-compare {
  margin-top: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper-bright);
  box-shadow: var(--elevation-rest);
  padding: clamp(18px, 3vw, 30px);
}

.places-compare-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.places-compare-heading h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
}

.places-compare-heading p,
.places-compare-guidance,
.places-compare-limit,
.places-compare-scroll-hint {
  max-width: 650px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.places-compare-limit {
  color: var(--body);
  font-weight: 700;
}

.places-compare-filter-message {
  margin: 16px 0 0;
  border-left: 3px solid var(--terracotta-dark);
  color: var(--body);
  line-height: 1.5;
  padding-left: 12px;
}

.places-compare-scroll-hint {
  margin-top: 20px;
  font-size: 0.82rem;
}

.places-compare-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.places-compare-selection li {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--moss-soft);
  color: var(--body);
  padding-left: 14px;
}

.place-compare-remove {
  min-height: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--terracotta-dark);
  cursor: pointer;
  font-weight: 750;
  padding: 0 14px 0 10px;
}

.places-compare-scroll {
  margin-top: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  overscroll-behavior-inline: contain;
}

.places-compare-scroll:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.places-compare-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  color: var(--body);
  font-size: 0.86rem;
  line-height: 1.45;
}

.places-compare-table th,
.places-compare-table td {
  min-width: 190px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.places-compare-table tr > :first-child {
  min-width: 150px;
  position: sticky;
  z-index: 1;
  left: 0;
  background: var(--paper-bright);
  color: var(--ink);
  font-weight: 750;
}

.places-compare-table thead th {
  background: var(--moss-soft);
  color: var(--ink);
}

.places-compare-table tr:last-child > * {
  border-bottom: 0;
}

.places-compare-table tr > :last-child {
  border-right: 0;
}

.places-compare-title,
.places-compare-category {
  display: block;
}

.places-compare-title {
  font-family: var(--serif);
  font-size: 1rem;
}

.places-compare-category {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.library-group {
  scroll-margin-top: 70px;
}

.library-group + .library-group {
  margin-top: 48px;
}

.library-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-strong);
  padding: 28px 0 8px;
}

.library-group-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 500;
}

.library-group-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.library-empty {
  margin-top: 34px;
}

.library-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  padding: 18px 0;
  text-decoration: none;
  transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.library-card-shell {
  display: grid;
  align-content: start;
  border-bottom: 1px solid var(--line);
}

.library-card-shell .library-card {
  border-bottom: 0;
}

.place-compare-toggle {
  min-height: 44px;
  justify-self: start;
  margin: -8px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 760;
  padding: 0 13px;
}

.place-compare-toggle:hover,
.place-compare-toggle[aria-pressed="true"] {
  border-color: var(--forest);
  background: var(--solid-fill);
  color: var(--solid-on-fill);
}

.place-compare-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.library-card:hover,
.library-card:focus-visible {
  background: var(--paper-bright);
  box-shadow: var(--elevation-hover);
  transform: translateY(-1px);
}

.library-card.has-image {
  grid-template-columns: 94px minmax(0, 1fr) auto;
}

.library-image {
  width: 94px;
  height: 76px;
  border-radius: 4px;
  background: var(--moss-soft);
  object-fit: cover;
}

.library-image[hidden] {
  display: none;
}

.library-kicker,
.item-kicker,
.eyebrow {
  color: var(--terracotta-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-title {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.22;
}

.library-summary {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.library-card-status,
.library-card-context {
  display: block;
  margin-top: 5px;
  color: var(--body);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.library-card-context {
  color: var(--muted);
  font-weight: 560;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.inbox-list {
  max-width: 960px;
  margin-top: 16px;
}

.inbox-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.inbox-actions {
  display: flex;
  gap: 6px;
}

.small-button {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--body);
  cursor: pointer;
  padding: 0 11px;
}

.small-button:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}

.item-page {
  max-width: 1140px;
  margin: 0 auto;
}

.capture-review-page {
  width: min(100%, 680px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-top: 5px solid var(--terracotta);
  border-radius: var(--radius-card);
  background: var(--paper-bright);
  box-shadow: var(--elevation-soft);
  padding: clamp(24px, 5vw, 48px);
}

.capture-review-page h1 {
  margin: 5px 0 12px;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 0.98;
}

.capture-review-intro {
  max-width: 54ch;
  margin: 0 0 28px;
  color: var(--text-subtle);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.55;
}

.capture-review-form {
  display: grid;
  gap: 18px;
}

.capture-review-form .form-hint {
  margin: -10px 0 0;
}

.capture-review-preview-host {
  min-height: 0;
}

.capture-review-preview {
  width: min(100%, 440px);
  max-height: 440px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--terracotta-dark);
}

.item-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 34px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.item-title {
  max-width: 850px;
  margin-top: 6px;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.item-summary {
  max-width: 68ch;
  margin: 20px 0 0;
  color: var(--text-subtle);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.6;
}

.item-header-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.secondary-button {
  min-height: 44px;
  border: 1px solid var(--forest);
  border-radius: 4px;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-weight: 720;
  padding: 0 20px;
}

.secondary-button:hover {
  background: var(--solid-fill);
  color: var(--solid-on-fill);
}

.item-content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.72fr);
  gap: 70px;
  padding-top: 36px;
}

.item-main {
  min-width: 0;
}

.item-image {
  width: 100%;
  max-height: 480px;
  display: block;
  border-radius: 5px;
  object-fit: cover;
}

.item-section {
  border-bottom: 1px solid var(--line);
  padding: 0 0 28px;
}

.private-photo-controls {
  margin-top: 28px;
}

.private-photo-controls h2 {
  margin-bottom: 6px;
}

.private-photo-controls > p {
  max-width: 60ch;
  color: var(--text-subtle);
}

.private-photo-controls form {
  margin-top: 18px;
}

.shared-actions {
  margin-bottom: 28px;
  border-top: 4px solid var(--terracotta);
  background: color-mix(in srgb, var(--paper-bright) 72%, transparent);
  padding: 26px 28px 30px;
}

.shared-actions > h2 {
  margin: 4px 0 8px;
}

.shared-actions-intro,
.action-help {
  color: var(--muted);
  font-size: 0.88rem;
}

.shared-actions-intro {
  margin-bottom: 22px !important;
}

.shared-action-group {
  min-width: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
}

.shared-action-group + .shared-action-group {
  margin-top: 20px;
}

.goal-steps-host + .todoist-actions-host {
  margin-top: 20px;
}

.shared-action-group legend {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 700;
  padding: 0 10px 0 0;
}

.shared-rating-rows,
.goal-action-list,
.todoist-action-list {
  display: grid;
  gap: 10px;
}

.shared-rating-row,
.goal-action-row,
.todoist-action-row-next {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.shared-rating-name,
.todoist-action-label {
  color: var(--body);
  font-size: 0.88rem;
  font-weight: 720;
}

.shared-rating-readonly {
  color: var(--muted);
  font-size: 0.86rem;
}

.rating-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rating-choice {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--body);
  cursor: pointer;
}

.rating-choice:hover,
.rating-choice.selected {
  border-color: var(--terracotta);
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
}

.rating-clear {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.goal-action-row {
  grid-template-columns: minmax(0, 1fr) auto;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
  padding: 6px 0 10px;
}

.goal-action-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.goal-step-check {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-wrap: anywhere;
}

.goal-step-check input {
  width: 22px;
  min-height: 22px;
  flex: 0 0 auto;
  accent-color: var(--terracotta);
}

.goal-action-row.complete .goal-step-check span {
  color: var(--muted);
  text-decoration: line-through;
}

.goal-step-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.goal-step-controls .text-button {
  min-height: 44px;
  padding-inline: 10px;
}

.danger-text {
  color: var(--danger);
}

.goal-step-linked {
  grid-column: 1;
  margin-left: 34px;
  color: var(--muted);
  font-size: 0.78rem;
}

.goal-step-empty {
  color: var(--muted);
  padding: 8px 0;
}

.goal-step-add-form,
.goal-step-edit-form {
  display: grid;
  gap: 10px;
}

.goal-step-add-form {
  margin-top: 18px;
}

.goal-step-add-form .small-button {
  justify-self: start;
}

.goal-step-edit-form {
  grid-column: 1 / -1;
  width: 100%;
}

.todoist-due-field {
  display: grid;
  gap: 6px;
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.todoist-action-row-next {
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
}

.todoist-action-label {
  overflow-wrap: anywhere;
}

.todoist-existing {
  color: var(--terracotta-dark);
  font-size: 0.82rem;
  text-decoration: none;
}

.todoist-existing:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.todoist-existing.pending {
  color: var(--gold);
}

.todoist-sync {
  margin-top: 14px;
  padding-left: 0;
}

.inline-status {
  min-height: 1.2rem;
  margin: 8px 0 0 !important;
  color: var(--moss);
  font-size: 0.82rem;
}

.guided-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.guided-current-status {
  margin: 8px 0 0;
  color: var(--text-subtle);
  font-size: 0.86rem;
  font-weight: 680;
}

.guided-status-choice {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--paper-bright);
  color: var(--body);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 680;
  padding: 9px 13px;
}

.guided-status-choice:hover {
  border-color: var(--terracotta);
  color: var(--ink);
}

.guided-status-choice[aria-pressed="true"] {
  border-color: var(--terracotta-dark);
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
}

.guided-status[aria-busy="true"] {
  opacity: 0.72;
}

.guided-status .inline-status {
  color: var(--forest);
}

.jobs-page {
  display: grid;
  gap: 30px;
}

.jobs-heading-tools {
  display: grid;
  justify-items: end;
  gap: 12px;
  width: min(100%, 1120px);
}

.jobs-career-profile-button {
  min-height: 44px;
}

.jobs-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(5, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  width: min(100%, 1120px);
}

.jobs-toolbar label,
.jobs-toolbar input,
.jobs-toolbar select {
  min-width: 0;
  width: 100%;
}

.jobs-result-count {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.jobs-scope-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.jobs-scope-chip {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--body);
  cursor: pointer;
  font-weight: 720;
  padding: 0 16px;
}

.jobs-scope-chip:hover,
.jobs-scope-chip[aria-pressed="true"] {
  border-color: var(--forest);
  background: var(--solid-fill);
  color: var(--solid-on-fill);
}

.jobs-compare-host:empty {
  display: none;
}

.job-review-host:empty {
  display: none;
}

.job-review-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--terracotta);
  border-radius: 7px;
  background: var(--paper-bright);
  box-shadow: var(--elevation-rest);
  padding: clamp(22px, 4vw, 38px);
}

.job-review-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.job-review-heading > div:first-child {
  min-width: 0;
}

.job-review-heading h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.job-review-heading-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 14px;
}

.job-review-heading-actions a,
.job-review-heading-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.job-review-current,
.job-review-summary,
.job-review-focus,
.job-review-outside {
  color: var(--body);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.job-review-current {
  margin: 12px 0 0;
  font-weight: 720;
}

.job-review-summary {
  max-width: 820px;
  margin: 24px 0 0;
  white-space: pre-wrap;
}

.job-review-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
}

.job-review-facts div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.job-review-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.job-review-facts dd {
  margin: 4px 0 0;
  color: var(--body);
  overflow-wrap: anywhere;
}

.job-review-details {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.job-review-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 620;
}

.job-generated-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.job-posting-section {
  min-width: 0;
  margin-top: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: color-mix(in srgb, var(--paper-bright) 90%, var(--moss-soft));
  padding: 18px;
}

.job-posting-section h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.job-posting-details {
  min-width: 0;
  margin-top: 8px;
}

.job-posting-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--body);
  cursor: pointer;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.job-posting-text {
  max-height: 34rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--body);
  font: inherit;
  line-height: 1.55;
  overflow-wrap: anywhere;
  padding: 16px;
  white-space: pre-wrap;
}

.job-posting-form {
  display: grid;
  gap: 12px;
}

.job-posting-form textarea {
  width: 100%;
  min-height: 22rem;
  resize: vertical;
  white-space: pre-wrap;
}

.job-posting-counter,
.job-posting-form .field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.job-posting-form[aria-busy="true"] {
  opacity: 0.72;
}

.career-profile-panel,
.job-analysis-view {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--moss);
  border-radius: 7px;
  background: var(--paper-bright);
  box-shadow: var(--elevation-rest);
  padding: clamp(22px, 4vw, 38px);
}

.career-profile-heading,
.career-evidence-heading,
.job-analysis-view-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.job-analysis-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.job-analysis-action-message:empty {
  display: none;
}

.job-skill-goal-action {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.job-skill-goal-action h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.job-skill-goal-action > p {
  max-width: 68ch;
  color: var(--body);
  overflow-wrap: anywhere;
}

.job-skill-goal-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.job-skill-goal-controls button {
  min-height: 44px;
}

.job-skill-goal-message:empty {
  display: none;
}

.career-profile-heading h2,
.career-evidence-heading h3,
.job-analysis-view-heading h3,
.job-analysis-details h4 {
  overflow-wrap: anywhere;
}

.career-profile-heading h2 {
  margin: 5px 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.career-profile-form-next {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.career-profile-core-fields,
.career-preferences-next,
.career-qualification-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.career-profile-core-fields .form-field,
.career-evidence-field,
.career-qualification-remove {
  grid-column: 1 / -1;
}

.career-preferences-next,
.career-qualification-card {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 18px;
}

.career-preferences-next legend,
.career-qualification-card legend {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 650;
  padding: 0 6px;
}

.career-simulation-toggle {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.career-simulation-toggle input {
  width: 20px;
  height: 20px;
}

.career-evidence-editor {
  display: grid;
  gap: 16px;
}

.career-evidence-heading h3,
.job-analysis-view-heading h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
}

.career-evidence-heading p,
.career-profile-heading p,
.job-analysis-view-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.career-qualification-list {
  display: grid;
  gap: 16px;
}

.career-qualification-card.is-removed {
  grid-template-columns: 1fr auto;
  background: color-mix(in srgb, var(--paper) 80%, var(--danger-fill));
}

.career-profile-message {
  min-height: 1.5em;
}

.job-analysis-view {
  margin-top: 26px;
  border-top-color: var(--gold);
  box-shadow: none;
}

.job-analysis-currency {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  color: var(--muted);
}

.job-analysis-currency strong {
  color: var(--forest);
}

.analysis-stale-notice {
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  color: var(--gold-text);
  padding: 12px 14px;
}

.analysis-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.analysis-summary-grid div,
.analysis-gap-card,
.requirement-item,
.skill-plan-phase {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 14px;
}

.analysis-summary-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.analysis-summary-grid dd {
  margin: 5px 0 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.analysis-narrative,
.requirement-item p,
.analysis-gap-card p,
.skill-plan-phase p,
.job-analysis-details li,
.job-analysis-details blockquote {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.job-analysis-details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.job-analysis-details > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 650;
}

.requirement-list,
.gap-analysis {
  display: grid;
  gap: 14px;
}

.requirement-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.requirement-heading h4,
.analysis-gap-card h4,
.skill-plan-phase h4 {
  margin: 0;
  color: var(--ink);
}

.analysis-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.analysis-badge {
  display: inline-flex;
  border-radius: 999px;
  background: var(--moss-soft);
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 720;
  padding: 4px 9px;
}

.analysis-text-list,
.analysis-task-list,
.skill-resource-links {
  overflow-wrap: anywhere;
}

.skill-resource-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.job-review-status {
  margin-top: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 18px;
}

.job-review-status legend {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 620;
  padding: 0 6px;
}

.job-review-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.job-review-status-choice {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--body);
  cursor: pointer;
  font-weight: 720;
  padding: 0 16px;
}

.job-review-status-choice:hover,
.job-review-status-choice[aria-pressed="true"] {
  border-color: var(--terracotta-dark);
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
}

.job-review-status[aria-busy="true"] {
  opacity: 0.72;
}

.job-review-message {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.job-review-message p {
  margin: 0;
}

.job-pass-dialog {
  width: min(92vw, 520px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper-bright);
  color: var(--body);
  box-shadow: var(--elevation-raised);
  padding: 0;
}

.job-pass-dialog::backdrop {
  background: rgb(20 26 23 / 68%);
}

.job-pass-dialog form {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.job-pass-dialog h3,
.job-pass-dialog p {
  margin: 0;
  overflow-wrap: anywhere;
}

.jobs-hidden-selection {
  margin: 12px 0 0;
  border-left: 3px solid var(--terracotta-dark);
  color: var(--body);
  padding-left: 12px;
}

.jobs-group + .jobs-group {
  margin-top: 44px;
}

.jobs-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 10px;
}

.jobs-group-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
}

.jobs-group-heading span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
}

.jobs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.job-workspace-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--moss);
  border-radius: 7px;
  background: var(--paper-bright);
  box-shadow: var(--elevation-rest);
  padding: 20px;
}

.job-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.job-card-heading > div {
  min-width: 0;
}

.job-card-kicker {
  margin: 0;
  color: var(--terracotta-dark);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.job-card-title {
  margin: 5px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.job-card-organization {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.job-card-summary {
  margin: 18px 0 0;
  color: var(--body);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.job-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.job-focus-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--moss-soft);
  color: var(--body);
  font-size: 0.76rem;
  font-weight: 680;
  padding: 6px 10px;
}

.job-compare-control {
  min-height: 44px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--body);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 720;
}

.job-compare-control input {
  width: 20px;
  height: 20px;
}

.job-compare-control:has(input:disabled) {
  color: var(--muted);
  cursor: not-allowed;
}

.job-card-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
}

.job-card-facts div {
  min-width: 0;
}

.job-card-facts dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.job-card-facts dd {
  margin: 4px 0 0;
  color: var(--body);
  overflow-wrap: anywhere;
}

.job-reason-list {
  display: grid;
  gap: 7px;
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--body);
  line-height: 1.45;
}

.job-card-footer {
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 12px;
}

.job-card-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.jobs-compare-table th:not(:first-child),
.jobs-compare-table td:not(:first-child) {
  min-width: 220px;
}

.trips-page {
  display: grid;
  gap: 30px;
}

.trips-archive-notice {
  max-width: 900px;
  border-left: 4px solid var(--moss);
  background: var(--moss-soft);
  padding: 20px 24px;
}

.trips-archive-notice h2,
.trip-archive-heading h2,
.trip-destination-heading h3,
.trip-day h4,
.trip-card h5,
.trip-card h6 {
  color: var(--ink);
  font-family: var(--serif);
}

.trips-archive-notice h2 {
  margin: 5px 0 8px;
  font-size: 1.5rem;
}

.trips-archive-notice p,
.trip-archive-heading p,
.trip-weather-note,
.trip-card-summary,
.trip-next-step,
.trip-notes-empty {
  color: var(--body);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.trips-archive-notice p {
  max-width: 72ch;
  margin: 0;
}

.trips-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.8fr) repeat(2, minmax(150px, 1fr)) auto auto;
  align-items: end;
  gap: 12px;
  width: min(100%, 1040px);
}

.trips-toolbar label,
.trips-toolbar input,
.trips-toolbar select {
  min-width: 0;
  width: 100%;
}

.trips-toolbar button,
.trip-source-link {
  min-height: 44px;
}

.trips-result-count {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.trips-results {
  display: grid;
  gap: 42px;
}

.trip-archive {
  min-width: 0;
  border-top: 5px solid var(--terracotta);
  background: color-mix(in srgb, var(--paper-bright) 72%, transparent);
  box-shadow: var(--elevation-rest);
  padding: clamp(22px, 4vw, 40px);
}

.trip-archive-heading,
.trip-destination-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.trip-archive-heading > div,
.trip-destination-heading h3 {
  min-width: 0;
}

.archive-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  text-transform: uppercase;
}

.trip-archive-heading h2 {
  margin: 9px 0 4px;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.trip-archive-heading p,
.trip-weather-note {
  margin: 8px 0 0;
  color: var(--muted);
}

.trip-archive-count,
.trip-destination-heading > span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 760;
}

.trip-weather-note {
  max-width: 72ch;
  border-left: 3px solid var(--moss);
  padding-left: 12px;
}

.trip-destination {
  margin-top: 36px;
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}

.trip-destination-heading h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  overflow-wrap: anywhere;
}

.trip-day {
  margin-top: 28px;
}

.trip-day h4 {
  margin: 0 0 13px;
  color: var(--terracotta-dark);
  font-size: 1.14rem;
}

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

.trip-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-bright);
  box-shadow: var(--shadow-soft);
}

.trip-card-image {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
}

.trip-card-copy {
  min-width: 0;
  padding: 20px;
}

.trip-card-kicker {
  margin: 0;
  color: var(--terracotta-dark);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trip-card h5 {
  margin: 5px 0 0;
  font-size: 1.32rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.trip-card-summary {
  margin: 14px 0 0;
  white-space: pre-wrap;
}

.trip-card-facts,
.trip-card-ratings dl,
.trip-card-notes dl {
  display: grid;
  grid-template-columns: minmax(100px, auto) minmax(0, 1fr);
  gap: 7px 12px;
  margin: 18px 0 0;
}

.trip-card-facts dt,
.trip-card-ratings dt,
.trip-card-notes dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
}

.trip-card-facts dd,
.trip-card-ratings dd,
.trip-card-notes dd {
  min-width: 0;
  margin: 0;
  color: var(--body);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.trip-card-ratings,
.trip-card-notes {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.trip-card h6 {
  margin: 0;
  font-size: 1rem;
}

.trip-card-ratings dl,
.trip-card-notes dl {
  margin-top: 10px;
}

.trip-notes-empty,
.trip-next-step {
  display: block;
  margin: 18px 0 0;
}

.trip-source-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  overflow-wrap: anywhere;
}

.trips-empty {
  max-width: 680px;
}

.review-page {
  display: grid;
  gap: 34px;
}

.review-toolbar select {
  width: auto;
  min-width: 170px;
}

.review-card {
  max-width: 780px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--terracotta);
  border-radius: 7px;
  background: var(--paper-bright);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 4vw, 42px);
}

.review-card-header h2 {
  margin: 4px 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.review-summary {
  max-width: 62ch;
  color: var(--body);
  font-size: 1.02rem;
  white-space: pre-wrap;
}

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

.review-prompts div {
  border-left: 3px solid var(--moss-soft);
  padding-left: 12px;
}

.review-prompts dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-prompts dd {
  margin: 4px 0 0;
  color: var(--body);
  overflow-wrap: anywhere;
}

.review-card .guided-status {
  margin-top: 28px;
}

.review-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.review-card-actions a,
.review-card-actions button {
  min-height: 44px;
}

.review-empty {
  max-width: 680px;
}

.review-empty > .ph {
  color: var(--moss);
  font-size: 2rem;
}

.item-section + .item-section {
  padding-top: 28px;
}

.item-section h2,
.item-aside h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
}

.item-section p {
  margin: 0;
  white-space: pre-wrap;
}

.guide-reading-section {
  border-top: 4px solid var(--moss);
  background: color-mix(in srgb, var(--paper-bright) 78%, transparent);
  padding: 26px 28px 30px;
}

.guide-instructions {
  color: var(--body);
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.guide-link-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-useful-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: var(--terracotta-dark);
  overflow-wrap: anywhere;
}

.guide-edit-grid .guide-instructions-field textarea {
  min-height: 260px;
  line-height: 1.55;
}

.guide-quick-reference {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper-bright);
  padding: 14px 16px;
}

.guide-quick-reference input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}

.guide-quick-reference span,
.guide-quick-reference small {
  display: block;
}

.guide-quick-reference small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.45;
}

.item-aside {
  align-self: start;
  border-left: 1px solid var(--line);
  padding-left: 30px;
}

.metadata-list {
  margin: 0;
}

.metadata-list div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.metadata-list dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
  text-transform: uppercase;
}

.metadata-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li,
.stage-chip,
.priority-chip {
  border-radius: 999px;
  background: var(--moss-soft);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
}

.priority-chip.now {
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
}

.priority-chip.next {
  background: var(--gold-soft);
  color: var(--gold-text);
}

.source-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--terracotta-dark);
  text-decoration: none;
}

.source-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.item-edit-form {
  margin-top: 34px;
}

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

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

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 20px;
}

.advanced-details {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.advanced-details summary {
  color: var(--terracotta-dark);
  cursor: pointer;
  font-weight: 720;
}

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

.danger-zone {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.83rem;
}

.danger-zone a {
  color: var(--danger);
}

.item-delete-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.item-delete-zone h2 {
  margin: 0 0 5px;
  color: var(--danger);
  font-family: var(--sans);
  font-size: 1rem;
}

.item-delete-zone p {
  margin: 0;
  color: var(--muted);
}

.item-delete-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.danger-button {
  min-height: 44px;
  border: 1px solid var(--danger);
  border-radius: 4px;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-weight: 720;
  padding: 0 20px;
}

.danger-button:hover:not(:disabled) {
  background: var(--danger-fill);
  color: var(--danger-on-fill);
}

.danger-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 72px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.45;
}

.home-layout + .site-footer {
  margin-top: 64px;
}

.site-footer .ph {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--moss-soft);
  color: var(--moss);
  font-size: 1.45rem;
}

.login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 16px;
  border-top: 4px solid var(--terracotta);
  background: var(--paper-bright);
  padding: 40px;
}

.login-card h1 {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 3rem;
  letter-spacing: -0.04em;
}

.login-intro {
  margin: -8px 0 8px;
  color: var(--muted);
}

.login-card label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.text-link {
  justify-self: start;
  color: var(--terracotta-dark);
  font-size: 0.86rem;
  text-underline-offset: 4px;
}

.toast,
.update-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: min(440px, calc(100vw - 44px));
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--toast-background);
  color: var(--toast-text);
  padding: 13px 16px;
}

.update-notice {
  display: flex;
  align-items: center;
  gap: 14px;
}

.update-notice button {
  flex: none;
  border: 1px solid var(--toast-text);
  border-radius: 3px;
  background: transparent;
  color: var(--toast-text);
  cursor: pointer;
  padding: 6px 10px;
}

.plans-page,
.plan-page {
  min-width: 0;
  display: grid;
  gap: 30px;
}

.plans-groups {
  display: grid;
  gap: 22px;
}

.lifecycle-status-bar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  padding: 10px 0 12px;
  scrollbar-width: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lifecycle-status-bar::-webkit-scrollbar {
  display: none;
}

.lifecycle-status-chip {
  min-height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--body);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 14px;
}

.lifecycle-status-chip:hover,
.lifecycle-status-chip[aria-pressed="true"] {
  border-color: var(--terracotta-dark);
  background: var(--terracotta-soft);
  color: var(--ink);
}

.lifecycle-group-result {
  min-height: 210px;
}

.plans-group {
  min-width: 0;
}

.plans-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-strong);
  padding: 0 0 10px;
}

.plans-group-heading h2,
.plan-create-panel h2,
.plan-editor h2,
.plan-notes h2,
.plan-readonly h2,
.plan-lifecycle-actions h2,
.plan-archive-notice h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.15;
}

.plans-group-heading h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  font-weight: 600;
}

.plans-group-count {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.plans-grid > li {
  min-width: 0;
}

.plan-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-bright);
  color: inherit;
  padding: 22px;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.plan-card:hover,
.plan-card:focus-visible {
  border-color: var(--line-strong);
  box-shadow: var(--elevation-hover);
  transform: translateY(-1px);
}

.plan-card-kicker {
  color: var(--terracotta-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plan-card-title {
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  font-weight: 700;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.plan-card-summary {
  margin-top: 8px;
  color: var(--text-subtle);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.plan-card-meta {
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  padding-top: 18px;
}

.plan-create-panel,
.plan-editor,
.plan-notes,
.plan-readonly,
.plan-lifecycle-actions {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-bright);
  padding: clamp(22px, 4vw, 38px);
}

.plan-create-panel > p,
.plan-notes > p,
.plan-archive-notice p,
.plan-summary {
  max-width: 72ch;
  color: var(--text-subtle);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.plan-create-form,
.plan-core-form,
.plan-note-form {
  min-width: 0;
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.plan-core-form fieldset {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.plan-core-form fieldset + fieldset {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.plan-core-form legend,
.plan-core-form fieldset > h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
}

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

.plan-metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
}

.plan-metadata div {
  min-width: 0;
}

.plan-metadata dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-metadata dd {
  margin: 4px 0 0;
  color: var(--body);
  overflow-wrap: anywhere;
}

.plan-members-list,
.plan-steps-list,
.plan-members-readonly,
.plan-steps-readonly {
  min-width: 0;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-member-row,
.plan-step-row,
.plan-note-readonly {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--paper) 45%, var(--paper-bright));
  padding: 18px;
}

.plan-member-row h3,
.plan-note-readonly h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.plan-member-schedule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-order-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 12px;
}

.plan-order-controls button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.6;
}

.danger-text {
  color: var(--danger);
}

.plan-member-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 16px;
}

.plan-step-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.plan-step-row .plan-order-controls {
  margin-top: 0;
}

.plan-step-row.complete input[type="text"] {
  color: var(--muted);
  text-decoration: line-through;
}

.plan-step-done {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 720;
}

.plan-step-done input {
  width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin: 0;
  padding: 0;
}

.plan-notes {
  border-left: 4px solid var(--moss);
}

.plan-note-form {
  max-width: 760px;
}

.character-count {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.plan-other-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.plan-note-readonly p {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.plan-archive-notice {
  border-left: 4px solid var(--moss);
  background: var(--moss-soft);
  padding: 20px 24px;
}

.plan-archive-notice h2 {
  margin-top: 5px;
}

.plan-readonly {
  display: grid;
  gap: 32px;
}

.plan-readonly section {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.plan-members-readonly li,
.plan-steps-readonly li {
  display: grid;
  gap: 3px;
  overflow-wrap: anywhere;
}

.plan-members-readonly span {
  color: var(--muted);
  font-size: 0.86rem;
}

.plan-notes-readonly {
  display: grid;
  grid-template-columns: minmax(100px, auto) minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.plan-notes-readonly dt {
  color: var(--muted);
  font-weight: 760;
}

.plan-notes-readonly dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.plan-lifecycle-actions .form-actions {
  justify-content: flex-start;
}

.plan-create-form[aria-busy="true"],
.plan-core-form[aria-busy="true"],
.plan-note-form[aria-busy="true"] {
  opacity: 0.76;
}

.together-page,
.together-detail-page {
  min-width: 0;
  display: grid;
  gap: 30px;
}

.together-groups {
  display: grid;
  gap: 22px;
}

.detail-page-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.detail-page-content {
  min-width: 0;
  display: grid;
  gap: 30px;
}

.page-jump-nav {
  position: sticky;
  top: 20px;
  min-width: 0;
}

.page-jump-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.page-jump-links {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line-strong);
  padding-left: 10px;
}

.page-jump-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 680;
  padding: 7px 10px;
  text-decoration: none;
}

.page-jump-links a:hover,
.page-jump-links a:focus-visible {
  background: var(--moss-soft);
  color: var(--ink);
}

.detail-page-content [id] {
  scroll-margin-top: 26px;
}

.together-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 10px;
}

.together-group-heading h2,
.together-create-panel h2,
.together-editor h2,
.together-entries h2,
.together-outcomes h2,
.together-lifecycle h2,
.together-archived-notice h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.15;
}

.together-group-heading h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
}

.together-group-count {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.together-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.together-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-bright);
  color: inherit;
  padding: 22px;
  text-decoration: none;
}

.together-card:hover,
.together-card:focus-visible {
  border-color: var(--line-strong);
  box-shadow: var(--elevation-hover);
}

.together-card-kicker {
  color: var(--terracotta-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.together-card-title {
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.together-card-meta {
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  padding-top: 18px;
}

.together-create-panel,
.together-editor,
.together-entries,
.together-outcomes,
.together-lifecycle {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-bright);
  padding: clamp(22px, 4vw, 38px);
}

.together-create-form,
.together-core-form,
.together-draft-form {
  min-width: 0;
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.together-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.together-entry-card,
.together-outcome-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  padding: 20px;
}

.together-entry-card h3,
.together-outcome-card h3 {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.together-entry-card textarea {
  min-height: 180px;
  resize: vertical;
}

.together-shared-snapshot {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  white-space: pre-wrap;
}

.together-shared-snapshot p {
  overflow-wrap: anywhere;
}

.section-intro {
  max-width: 72ch;
  color: var(--text-subtle);
}

.together-outcome-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 22px;
}

.together-outcome-create .form-message {
  grid-column: 1 / -1;
}

.together-outcome-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.together-outcome-actions,
.together-target-chooser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.together-target-chooser {
  flex: 1 1 360px;
  margin-top: 0;
}

.together-target-chooser select {
  min-width: min(360px, 100%);
  flex: 1 1 260px;
}

.together-archived-notice {
  border-left: 4px solid var(--moss);
  background: var(--moss-soft);
  padding: 20px 24px;
}

.together-archived-notice p {
  margin-bottom: 0;
}

.together-create-form[aria-busy="true"],
.together-core-form[aria-busy="true"],
.together-draft-form[aria-busy="true"] {
  opacity: 0.76;
}

@media (max-width: 1050px) {
  .app-shell {
    width: min(100% - 48px, var(--content-width));
  }

  .site-header {
    column-gap: 20px;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .primary-nav a {
    min-height: 48px;
  }

  .home-layout {
    column-gap: 56px;
  }

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

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 28px, var(--content-width));
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .capture-review-page {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 24px 0 12px;
  }

  .capture-review-form .form-actions,
  .private-photo-controls .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .capture-review-form .form-actions button,
  .private-photo-controls .form-actions button {
    width: 100%;
    min-height: 48px;
  }

  .site-header {
    min-height: 62px;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
  }

  .site-wordmark {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    justify-self: end;
  }

  .desktop-more-menu {
    display: none;
  }

  .account-menu-toggle {
    max-width: 148px;
  }

  .account-menu-toggle .account-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-popover {
    right: 0;
    max-width: calc(100vw - 28px);
  }

  .together-grid,
  .together-entry-grid {
    grid-template-columns: 1fr;
  }

  .together-outcome-create {
    grid-template-columns: 1fr;
  }

  .together-outcome-create .form-message {
    grid-column: auto;
  }

  .review-prompts {
    grid-template-columns: 1fr;
  }

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

  .help-topic-list {
    grid-template-columns: 1fr;
  }

  .todoist-connection {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .todoist-connection-actions {
    grid-column: 1 / -1;
  }

  .todoist-task-actions,
  .todoist-goal-links {
    grid-column: 1;
  }

  .todoist-task-actions {
    justify-content: flex-start;
    white-space: normal;
  }

  .todoist-attach-disclosure,
  .todoist-attach-panel {
    width: 100%;
  }

  .quiet-button {
    min-height: 44px;
    font-size: 0.8rem;
  }

  .primary-nav {
    display: none;
  }

  .mobile-tab-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 24;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    border-top: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--paper-bright) 94%, transparent);
    box-shadow: 0 -10px 30px color-mix(in srgb, var(--ink) 10%, transparent);
    padding: 7px 8px max(7px, env(safe-area-inset-bottom));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .mobile-tab-bar a,
  .mobile-tab-bar button {
    position: relative;
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 720;
    line-height: 1.1;
    padding: 4px 2px;
    text-decoration: none;
  }

  .mobile-tab-bar .ph {
    font-size: 1.35rem;
  }

  .mobile-tab-bar a[aria-current="page"],
  .mobile-tab-bar button[aria-current="page"] {
    background: var(--terracotta-soft);
    color: var(--terracotta-dark);
  }

  .mobile-nav-count {
    position: absolute;
    top: 2px;
    left: calc(50% + 7px);
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--paper-bright);
    border-radius: 999px;
    background: var(--terracotta);
    color: var(--accent-on-fill);
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
    padding: 0 4px;
  }

  .mobile-more-panel {
    position: fixed;
    right: 10px;
    bottom: calc(73px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 23;
    display: block;
    max-height: min(62vh, 420px);
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--paper-bright);
    box-shadow: 0 18px 48px color-mix(in srgb, var(--ink) 24%, transparent);
    padding: 12px;
  }

  .mobile-more-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .mobile-more-panel a {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    color: var(--body);
    font-size: 0.88rem;
    font-weight: 720;
    padding: 8px 12px;
    text-decoration: none;
  }

  .mobile-more-panel a:hover,
  .mobile-more-panel a[aria-current="page"] {
    background: var(--moss-soft);
    color: var(--ink);
  }

  .mobile-more-panel .ph {
    color: var(--terracotta-dark);
    font-size: 1.15rem;
  }

  .capture-band {
    margin: 18px 0 24px;
  }

  .capture-band[data-mode="compact"] {
    margin: 12px 0 18px;
  }

  .capture-band[data-viewport="mobile"][data-expanded="false"] {
    display: none;
  }

  .capture-form {
    min-height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .capture-form .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .home-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "focus"
      "coming"
      "ready"
      "recent"
      "quick";
    row-gap: 50px;
  }

  .detail-page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-jump-nav {
    top: 0;
    z-index: 6;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    padding: 8px 0;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .page-jump-label {
    margin: 0 0 5px;
  }

  .page-jump-links {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-left: 0;
    padding: 0 0 2px;
    scrollbar-width: none;
  }

  .page-jump-links::-webkit-scrollbar {
    display: none;
  }

  .page-jump-links a {
    min-height: 44px;
    flex: 0 0 auto;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper-bright);
    color: var(--body);
    padding: 0 14px;
  }

  .detail-page-content [id] {
    scroll-margin-top: 98px;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .page-toolbar {
    justify-content: stretch;
  }

  .library-heading-tools {
    justify-content: flex-start;
  }

  .library-filter-toggle {
    display: inline-flex;
  }

  .library-filter-panel[data-expanded="false"] {
    display: none;
  }

  .library-filter-panel .page-toolbar {
    margin-top: 8px;
  }

  .library-filter-panel .library-type-bar {
    position: static;
    margin-top: 4px;
  }

  .places-compare-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .places-compare-heading .quiet-button {
    align-self: flex-start;
  }

  .places-compare {
    margin-right: -4px;
    margin-left: -4px;
  }

  .places-compare-table th,
  .places-compare-table td {
    min-width: 170px;
  }

  .places-compare-table tr > :first-child {
    min-width: 125px;
  }

  .page-toolbar > * {
    flex: 1 1 100%;
  }

  .search-field input {
    min-width: 0;
  }

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

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

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

  .plans-grid,
  .plan-other-notes,
  .plan-core-fields,
  .plan-member-schedule {
    grid-template-columns: 1fr;
  }

  .plan-core-fields .form-field.wide {
    grid-column: auto;
  }

  .plan-step-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-step-done {
    justify-self: start;
  }

  .plan-member-add {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-member-add .secondary-button {
    justify-self: start;
  }

  .trips-toolbar .search-field,
  .trips-toolbar button {
    grid-column: 1 / -1;
  }

  .trip-card-grid {
    grid-template-columns: 1fr;
  }

  .jobs-heading-tools {
    justify-items: stretch;
  }

  .jobs-career-profile-button {
    justify-self: start;
  }

  .career-profile-heading,
  .career-evidence-heading,
  .job-analysis-view-heading,
  .requirement-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .career-profile-core-fields,
  .career-preferences-next,
  .career-qualification-card {
    grid-template-columns: 1fr;
  }

  .career-profile-core-fields .form-field,
  .career-evidence-field,
  .career-qualification-remove {
    grid-column: auto;
  }

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

  .jobs-toolbar .search-field,
  .jobs-toolbar button {
    grid-column: 1 / -1;
  }

  .jobs-list {
    grid-template-columns: 1fr;
  }

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

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

  .library-type-bar {
    margin-right: -14px;
    padding-right: 14px;
  }

  .inbox-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .inbox-actions {
    grid-column: 2;
    flex-wrap: wrap;
  }

  .item-header,
  .item-content {
    grid-template-columns: 1fr;
  }

  .item-header-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .item-delete-zone {
    align-items: flex-start;
    flex-direction: column;
  }

  .item-content {
    gap: 40px;
  }

  .item-aside {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 28px;
    padding-left: 0;
  }

  .shared-actions {
    padding: 24px 20px 26px;
  }

  .guide-reading-section {
    padding: 22px 18px 26px;
  }

  .edit-grid,
  .advanced-grid {
    grid-template-columns: 1fr;
  }

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

  .bulk-review-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .bulk-review {
    padding-bottom: 180px;
  }

  .bulk-confirm-bar {
    align-items: center;
    bottom: calc(74px + env(safe-area-inset-bottom));
    flex-direction: row;
    gap: 8px;
    padding: 10px;
  }

  .bulk-confirm-bar .primary-button {
    min-height: 44px;
  }

  .bulk-review-item,
  .bulk-review-item button,
  .bulk-review-item input {
    scroll-margin-bottom: 184px;
  }

  .toast,
  .update-notice {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .form-field.wide,
  .advanced-details {
    grid-column: auto;
  }

  .site-footer {
    margin-top: 56px;
  }
}

@media (max-width: 480px) {
  .together-create-panel,
  .together-editor,
  .together-entries,
  .together-outcomes,
  .together-lifecycle {
    padding: 20px 16px;
  }

  .together-create-form .form-actions,
  .together-core-form .form-actions,
  .together-draft-form .form-actions,
  .together-lifecycle .form-actions,
  .together-outcome-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .together-create-form .form-actions button,
  .together-core-form .form-actions button,
  .together-draft-form .form-actions button,
  .together-lifecycle .form-actions button,
  .together-outcome-actions button,
  .together-target-chooser,
  .together-target-chooser button,
  .together-target-chooser select {
    width: 100%;
    min-height: 48px;
  }

  .plan-create-panel,
  .plan-editor,
  .plan-notes,
  .plan-readonly,
  .plan-lifecycle-actions {
    padding: 20px 16px;
  }

  .plan-core-form .form-actions,
  .plan-note-form .form-actions,
  .plan-lifecycle-actions .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .plan-core-form .form-actions button,
  .plan-note-form .form-actions button,
  .plan-lifecycle-actions .form-actions button,
  .plan-member-add button,
  .plan-steps-editor > button,
  .plan-order-controls button {
    width: 100%;
    min-height: 48px;
  }

  .plan-order-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-order-controls .danger-text {
    grid-column: 1 / -1;
  }

  .plan-notes-readonly {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .plan-notes-readonly dd + dt {
    margin-top: 10px;
  }

  .help-topic-nav,
  .help-topic-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .help-topic-link,
  .help-topic-actions a,
  .help-heading-tools .back-link {
    width: 100%;
    min-height: 48px;
  }

  .capture-help-link {
    margin-left: 0;
  }

  .job-analysis-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .job-analysis-actions button {
    width: 100%;
    min-height: 48px;
  }

  .job-skill-goal-controls,
  .job-skill-goal-controls button {
    width: 100%;
  }

  .job-skill-goal-controls button {
    min-height: 48px;
  }
  .structured-type-choices {
    grid-template-columns: 1fr;
  }

  .structured-create-panel {
    padding: 20px 16px;
  }

  .book-lookup {
    padding: 16px;
  }

  .book-lookup-controls {
    grid-template-columns: 1fr;
  }

  .book-lookup-controls button {
    min-height: 48px;
  }

  .bulk-create-panel,
  .bulk-review {
    padding: 20px 16px;
  }

  .bulk-type-choices {
    grid-template-columns: 1fr;
  }

  .structured-create-form .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .structured-create-form .form-actions button {
    min-height: 48px;
  }

  .account-menu {
    gap: 8px;
  }

  .review-toolbar,
  .review-toolbar select {
    width: 100%;
  }

  .review-card {
    padding: 22px 16px;
  }

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

  .guided-status-choice {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .editorial-link {
    min-height: 76px;
    gap: 12px;
  }

  .item-symbol {
    width: 42px;
    height: 42px;
    font-size: 1.45rem;
  }

  .row-title {
    font-size: 0.93rem;
  }

  .commitment-row {
    grid-template-columns: 42px 10px minmax(0, 1fr);
    gap: 10px;
  }

  .commitment-time {
    grid-column: 3;
    margin: -8px 0 8px;
  }

  .library-card.has-image {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }

  .library-image {
    width: 72px;
    height: 64px;
  }

  .goal-card {
    padding: 18px;
  }

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

  .login-card {
    padding: 28px 22px;
  }

  .toast,
  .update-notice {
    right: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 28px);
  }

  .update-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .shared-rating-row,
  .goal-action-row,
  .todoist-action-row-next {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .goal-step-controls {
    justify-content: flex-start;
    margin-left: 34px;
  }

  .todoist-action-row-next .small-button {
    width: 100%;
  }

  .jobs-toolbar {
    grid-template-columns: 1fr;
  }

  .trips-archive-notice,
  .trip-archive,
  .trip-card-copy {
    padding-right: 16px;
    padding-left: 16px;
  }

  .trips-toolbar {
    grid-template-columns: 1fr;
  }

  .trips-toolbar .search-field,
  .trips-toolbar button {
    grid-column: auto;
  }

  .trips-toolbar button {
    width: 100%;
    min-height: 48px;
  }

  .trip-archive-heading,
  .trip-destination-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .trip-card-facts,
  .trip-card-ratings dl,
  .trip-card-notes dl {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .trip-card-facts dd + dt,
  .trip-card-ratings dd + dt,
  .trip-card-notes dd + dt {
    margin-top: 8px;
  }

  .jobs-toolbar .search-field,
  .jobs-toolbar button {
    grid-column: auto;
  }

  .job-card-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .job-compare-control {
    align-self: flex-start;
  }

  .job-card-facts {
    grid-template-columns: 1fr;
  }

  .job-review-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .job-review-heading-actions {
    justify-content: flex-start;
  }

  .job-review-facts {
    grid-template-columns: 1fr;
  }

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

  .job-review-status-choice {
    width: 100%;
  }

  .job-posting-section {
    padding: 16px;
  }

  .job-posting-form .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .job-posting-form .form-actions button {
    width: 100%;
    min-height: 48px;
  }

  .career-profile-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .career-profile-actions button,
  .career-profile-heading button,
  .career-evidence-heading button,
  .job-analysis-view-heading button {
    width: 100%;
    min-height: 48px;
  }

  .analysis-summary-grid {
    grid-template-columns: 1fr;
  }

  .job-card-footer a {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.storygraph-workspace,
.storygraph-book-page {
  display: grid;
  gap: var(--space-6);
}

.storygraph-import-panel,
.storygraph-results,
.storygraph-thread-section,
.storygraph-book-overview,
.storygraph-library-link {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-bright);
  padding: clamp(18px, 3vw, 32px);
}

.storygraph-library-link,
.storygraph-results-heading,
.storygraph-book-overview,
.storygraph-book-card,
.storygraph-open-library-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.storygraph-library-link p,
.storygraph-snapshot-card span,
.storygraph-results-heading p,
.storygraph-book-copy > p,
.storygraph-thread-section > p,
.storygraph-comment time {
  color: var(--muted);
}

.storygraph-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.storygraph-snapshot-card {
  display: grid;
  gap: var(--space-2);
  border-left: 3px solid var(--moss);
  background: var(--moss-soft);
  padding: var(--space-4);
}

.storygraph-import-form,
.storygraph-thread-form,
.storygraph-comment-form {
  display: grid;
  gap: var(--space-4);
}

.storygraph-filter-form,
.storygraph-inline-form {
  display: flex;
  align-items: end;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.storygraph-filter-form label,
.storygraph-inline-form input {
  min-width: min(100%, 230px);
}

.storygraph-book-list,
.storygraph-comment-list,
.storygraph-open-library-results {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.storygraph-pagination {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.storygraph-book-card,
.storygraph-match-card,
.storygraph-comment,
.storygraph-open-library-card {
  border-top: 1px solid var(--line);
  padding: var(--space-4) 0;
}

.storygraph-book-card:first-child,
.storygraph-match-card:first-child,
.storygraph-comment:first-child,
.storygraph-open-library-card:first-child {
  border-top: 0;
}

.storygraph-book-card img,
.storygraph-book-overview img,
.storygraph-open-library-card img {
  width: 82px;
  max-height: 124px;
  object-fit: cover;
  border-radius: var(--radius-control);
}

.storygraph-book-copy {
  flex: 1;
}

.storygraph-source-list {
  margin: var(--space-3) 0;
  padding-left: 20px;
}

.storygraph-lifecycle {
  display: inline-block;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-text);
  padding: 4px 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.storygraph-prompt-list {
  display: grid;
  gap: var(--space-4);
  padding-left: 28px;
}

.storygraph-prompt-list li input {
  width: 100%;
}

.storygraph-comment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-4);
}

.storygraph-comment p,
.storygraph-comment .form-actions {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .storygraph-snapshot-grid {
    grid-template-columns: 1fr;
  }

  .storygraph-library-link,
  .storygraph-results-heading,
  .storygraph-book-overview,
  .storygraph-book-card,
  .storygraph-open-library-card {
    align-items: stretch;
    flex-direction: column;
  }

  .storygraph-book-card > button,
  .storygraph-library-link > a,
  .storygraph-filter-form button,
  .storygraph-inline-form button {
    width: 100%;
  }

  .storygraph-filter-form,
  .storygraph-inline-form {
    display: grid;
  }

  .storygraph-pagination button {
    flex: 1;
  }
}

/* Shared discovery and conversation use the existing paper and forest palette. */
.sharing-section { margin-block: 1.5rem; padding-block: 1rem; border-top: 1px solid var(--border, #d9ddd5); }
.sharing-section > h2 { margin-block: 0 .8rem; }
.sharing-form { display: grid; gap: 1rem; max-width: 48rem; }
.sharing-actions, .sharing-workspaces { display: flex; flex-wrap: wrap; gap: .65rem; margin-block: 1rem; }
.sharing-actions > *, .sharing-workspaces > * { min-height: 44px; display: inline-flex; align-items: center; }
.sharing-workspaces { padding: 1rem; }
.sharing-preview { padding: 1rem; border: 1px solid var(--border, #d9ddd5); border-radius: 12px; }
.conversation-message { padding: 1rem 0; border-bottom: 1px solid var(--border, #d9ddd5); }
.conversation-message p, .sharing-preview p { white-space: pre-wrap; overflow-wrap: anywhere; }
.conversation-message button { margin-right: .5rem; min-height: 44px; }
.sharing-comparison { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin-block: 1rem; }
.sharing-comparison article { padding: 1rem; border: 1px solid var(--border, #d9ddd5); border-radius: 12px; }
.sharing-list-item { display: grid; gap: .6rem; margin-block: 1rem; }
.sharing-section .editorial-link { display: block; padding-block: .6rem; }
body[data-sharing-navigation] .mobile-tab-bar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body[data-sharing-navigation] .mobile-tab-bar a { font-size: .75rem; overflow-wrap: anywhere; min-height: 48px; }
@media (max-width: 760px) { .sharing-actions > * { flex: 1 1 auto; justify-content: center; } .sharing-section { margin-block: 1rem; } }

/* Keep all five destination names readable on narrow phones. */
@media (max-width: 700px) {
  body[data-sharing-navigation] .mobile-tab-bar a { font-size: 11px; padding-inline: 2px; white-space: nowrap; letter-spacing: -0.2px; }
}
.sharing-section blockquote { border-left: 3px solid var(--accent, #bc6541); margin: 0.5rem 0; padding: 0.5rem 1rem; white-space: pre-wrap; }
.sharing-section details > summary, .sharing-form summary { cursor: pointer; padding: 12px 0; }
.sharing-section input, .sharing-section select, .sharing-section textarea { max-width: 100%; min-width: 0; }
