/* CFL-FONTS-MID (halfway between backups/css-pre-fonts and the prior larger scale) */
/* Cash Flow Landlords — Maintenance Requests mockup
   Palette and type match cashflowlandlords.com */

:root {
  --ink: #1d1d1c;
  --ink-2: #2a2a28;
  --navy: #30312f;
  --navy-soft: #4a4a47;
  --amber: #8b534a;
  --amber-dark: #5c3833;
  --amber-deep: #4a302c;
  --amber-soft: #e4d6d0;
  --gold: #c4a36a;
  --cream: #e3ddcf;
  --paper: #f3eee6;
  --white: #fbf8f2;
  --text: #1d1d1c;
  --muted: #5c564e;
  --line: #d6cec0;
  --line-dark: rgba(255, 248, 240, 0.12);
  --cedar: #b07a4a;
  --cedar-dark: #8b5a32;
  --limestone: #b4ad9e;
  --mortar: #e9e3d5;
  --sage: #5a6b4e;
  --sage-soft: #dce4d4;
  --serif: "Libre Baskerville", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 18px 44px rgba(29, 29, 28, 0.12);
  --shadow-sm: 0 8px 20px rgba(29, 29, 28, 0.08);
  --radius: 8px;
  --header-h: 4.15rem;
  --banner-h: 2.15rem;
  --ease: 180ms ease;
  --sidebar-w: 15.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(243, 238, 230, 0.9), rgba(243, 238, 230, 0.9)),
    url("images/fieldstone-texture.jpg");
  background-size: auto, 780px;
  background-attachment: scroll;
  font-family: var(--sans);
  font-size: 1.1038rem;
  line-height: 1.55;
  letter-spacing: -0.011em;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--amber-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--amber); }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ----- Sample banner ----- */
.sample-banner {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.38rem 0.8rem;
  background: #1d1d1c;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
}
.sample-banner span { color: #f0dcc8; letter-spacing: 0.04em; font-weight: 600; text-transform: none; }

/* ----- Header ----- */
.app-header {
  position: relative;
  z-index: 80;
  height: auto;
  min-height: var(--header-h);
  color: var(--white);
  background: rgba(29, 29, 28, 0.97);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 8px 30px rgba(29, 29, 28, 0.22);
}
.app-header::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 8px;
  background: #1d1d1c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.app-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 8px;
  height: 3px;
  background: linear-gradient(to bottom, #c08a55, #8b5a32);
  pointer-events: none;
}
.header-inner {
  height: auto;
  min-height: var(--header-h);
  width: min(80rem, 100% - 2rem);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding-top: 11px;
  padding-bottom: 0.4rem;
  box-sizing: border-box;
}
.header-inner.is-flush { width: 100%; padding-inline: 1.15rem 1.25rem; }
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
}
.logo-mark { width: 1.85rem; height: 1.85rem; flex: 0 0 auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0225rem;
  letter-spacing: -0.015em;
}
.logo-text span {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-soft);
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #e9e3d5;
  font-size: 0.91rem;
}
.header-meta .who { display: none; color: #d6cec0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.5rem;
  border-radius: 99px;
  border: 1px solid rgba(196, 163, 106, 0.55);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.2rem;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  background: none;
}
.btn:active { transform: translateY(1px); }
.btn-full { width: 100%; }
.btn-amber {
  background: var(--amber);
  color: var(--white);
  border-color: #1a1917;
  box-shadow: 0 8px 24px rgba(155, 74, 60, 0.28);
}
.btn-amber:hover { background: var(--amber-dark); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ink:hover { background: var(--navy); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(251, 247, 240, 0.55);
  padding: 0.5rem 0.8rem;
  font-size: 0.9725rem;
}
.btn-ghost-light:hover { background: var(--white); color: var(--ink); }
.btn-sage {
  background: var(--sage);
  color: var(--white);
  border-color: #2a3326;
}
.btn-sage:hover { background: #44513c; color: var(--white); }
.btn-sm { padding: 0.58rem 0.85rem; font-size: 0.9925rem; }

/* ----- Badges ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
}
.badge-emergency { background: var(--amber); color: var(--white); }
.badge-soon { background: var(--cedar); color: var(--white); }
.badge-convenient { background: #efe4cd; color: #6a5428; }
.badge-submitted { background: var(--ink); color: var(--white); }
.badge-scheduled { background: var(--gold); color: var(--ink); }
.badge-progress { background: #5c3833; color: #f3eee6; }
.badge-done { background: var(--sage-soft); color: #2f3a28; }
.badge-sample { background: var(--amber-soft); color: var(--amber-deep); }

/* ----- Tenant shell ----- */
.tenant-shell {
  width: min(28.5rem, 100%);
  margin: 0 auto;
  min-height: calc(100vh - var(--banner-h));
  display: flex;
  flex-direction: column;
}
.tenant-shell .app-header { flex: 0 0 auto; }
.tenant-shell .header-inner { width: 100%; padding-inline: 1rem; }
.page {
  flex: 1;
  padding: 1.15rem 1rem 2.2rem;
}
.page-head { margin-bottom: 1.05rem; }
.for-you {
  margin: 0 0 0.7rem;
  color: #8b5a32;
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.45;
}
.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.page-head h1, .panel h1, .dash-head h1 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}
.page-head h1 { font-size: min(1.7437rem, 8.8vw); }
.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.0375rem;
}

/* ----- Forms ----- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-card { padding: 1rem 1rem 1.15rem; display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field-label, .legend {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}
.req { color: var(--amber); }
.hint {
  margin: 0;
  font-size: 0.89rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}
.hint-emergency {
  background: #f6ece8;
  border: 1px solid #e4d6d0;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  color: var(--amber-deep);
  font-size: 0.9rem;
}
.hint-emergency strong { font-weight: 700; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"],
input[type="time"], input[type="number"], select, textarea {
  padding: 0.72rem 0.8rem;
  border: 1px solid #cfc7b8;
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
}
.field input, .field select, .field textarea,
.composer input, .composer textarea,
.modal .field input, .modal select {
  width: 100%;
}
textarea { min-height: 7.4rem; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231d1d1c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; padding-right: 2.1rem; }
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
legend.legend { padding: 0; }
.input-sample { position: relative; }
.input-sample input { padding-right: 4.6rem; }
.input-sample .tag-abs {
  position: absolute;
  right: 0.55rem;
  top: 0.55rem;
  pointer-events: none;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.62rem 0.65rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
  font-size: 1.0025rem;
  font-weight: 600;
  color: var(--ink);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked), .choice.is-on {
  border-color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}
.choice svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; color: var(--cedar-dark); }
.choice-3 { grid-template-columns: 1fr; }
@media (min-width: 380px) {
  .choice-3 { grid-template-columns: 1fr 1fr 1fr; }
  .choice-3 .choice { flex-direction: column; text-align: center; gap: 0.28rem; padding: 0.7rem 0.4rem; font-size: 0.9525rem; }
}

.times { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.65rem;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 0.9625rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.chip:has(input:checked), .chip.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.chip input { display: none; }

.check-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 1.0025rem;
  padding: 0.7rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.check-row input { margin-top: 0.2rem; accent-color: var(--amber); width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.legal-note {
  margin: 0;
  padding: 0.7rem 0.8rem;
  background: #efe8dc;
  border-left: 3px solid var(--gold);
  font-size: 0.9rem;
  color: var(--muted);
  border-radius: 0 6px 6px 0;
}

/* Photo upload */
.photo-drop {
  display: grid;
  gap: 0.55rem;
}
.photo-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 5.4rem;
  border: 1.5px dashed #cfc7b8;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.9875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 0.8rem;
}
.photo-zone:hover, .photo-zone:focus-visible { border-color: var(--cedar); color: var(--ink); }
.photo-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.thumb {
  position: relative;
  width: 6.4rem;
  height: 4.8rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #2a1e14;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb figcaption, .thumb .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.15rem 0.3rem;
  background: rgba(29, 29, 28, 0.72);
  color: #f3eee6;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ----- Status tracker ----- */
.confirm-hero {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.confirm-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--sage);
  font-weight: 800;
  font-size: 0.89rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.confirm-hero h1 { font-size: 1.575rem; margin: 0; }
.req-id { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 1.0025rem; }

.tracker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0.35rem 0 0.2rem;
  padding: 0;
  list-style: none;
}
.tracker li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  padding: 0.35rem 0.15rem 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}
.tracker li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  right: 50%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.tracker li::after {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 50%;
  right: 0;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.tracker li:first-child::before { content: none; }
.tracker li:last-child::after { content: none; }
.tracker .dot {
  position: relative;
  z-index: 1;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.81rem;
  color: var(--white);
}
.tracker .is-done { color: var(--ink); }
.tracker .is-done .dot { background: var(--sage); border-color: var(--sage); }
.tracker .is-done::before, .tracker .is-done::after,
.tracker .is-current::before { background: var(--sage); }
.tracker .is-current { color: var(--amber-deep); }
.tracker .is-current .dot { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.tracker .when { font-size: 0.81rem; font-weight: 500; color: var(--muted); line-height: 1.25; }

.summary-dl {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.4rem 0.75rem;
  margin: 0;
  font-size: 1.0125rem;
}
.summary-dl dt { color: var(--muted); font-weight: 600; margin: 0; }
.summary-dl dd { margin: 0; }

.thread { display: grid; gap: 0.7rem; }
.msg {
  padding: 0.8rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}
.msg-ll { background: #f6f1ea; }
.msg header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.89rem;
}
.msg header strong { font-weight: 700; color: var(--ink); }
.msg header time { color: var(--muted); }
.msg p { margin: 0; font-size: 1.0125rem; }
.msg .sample-tag { margin-left: 0.3rem; }

.composer { display: grid; gap: 0.5rem; }
.section-title {
  margin: 1.15rem 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.1338rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ----- Landlord shell ----- */
.ll-page { display: flex; flex-direction: column; min-height: calc(100vh - var(--banner-h)); }
.ll-page .app-header { flex: 0 0 auto; }
.ll-page .header-inner { width: 100%; padding-inline: 1.15rem 1.25rem; }
.ll-shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; flex: 1; min-height: 0; }
.sidebar {
  background: var(--ink);
  color: #e9e3d5;
  padding: 0.85rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.sidebar .logo { padding: 0.95rem 1.05rem 0.85rem; }
.side-nav { display: grid; gap: 0.15rem; padding: 0.15rem 0.7rem; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #d6cec0;
  text-decoration: none;
  padding: 0.52rem 0.7rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.0125rem;
}
.side-nav a:hover { background: rgba(255, 248, 240, 0.07); color: #fff; }
.side-nav a.is-on { background: rgba(196, 163, 106, 0.16); color: var(--gold); }
.side-nav svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.side-foot {
  margin-top: auto;
  padding: 1rem 1.1rem 0.4rem;
  font-size: 0.875rem;
  color: #9a9488;
}
.ll-main { min-width: 0; }
.ll-header .who { display: inline; }
.dash { padding: 1.15rem 1.25rem 1.6rem; }
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.dash-head h1 { font-size: 1.9125rem; margin: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem 0.8rem;
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.8562rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat span {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat.is-alert b { color: var(--amber); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  margin-bottom: 0.95rem;
}
.filter-pair {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.filters label { font-size: 0.89rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.filters select, .filters .filter-select {
  width: auto;
  padding: 0.45rem 2rem 0.45rem 0.65rem;
  border: 1px solid #cfc7b8;
  border-radius: 6px;
  background-color: var(--white);
  min-width: 11.5rem;
  max-width: 18rem;
}
.view-toggle { margin-left: auto; display: flex; gap: 0.3rem; }

/* Board */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: start;
}
.col {
  background: rgba(233, 227, 213, 0.55);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.5rem 0.7rem;
  min-height: 22rem;
}
.col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.3rem 0.5rem;
  font-size: 0.89rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.col-head .count {
  background: var(--ink);
  color: var(--white);
  border-radius: 99px;
  min-width: 1.2rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  padding: 0 0.35rem;
}

.req-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.7rem 0.7rem 0.75rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 10px rgba(29, 29, 28, 0.05);
  transition: transform var(--ease), box-shadow var(--ease);
}
.req-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: #c4bba8;
}
.req-card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.req-card h3 {
  margin: 0 0 0.28rem;
  font-size: 1.0375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.req-card p, .req-card .meta {
  margin: 0;
  font-size: 0.89rem;
  color: var(--muted);
  line-height: 1.4;
}
.req-card .id { font-variant-numeric: tabular-nums; font-weight: 600; }

/* List view */
.list-view { display: none; }
.list-view.is-on, .board.is-on { display: grid; }
.board.is-off { display: none; }
table.req-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 1.0025rem;
}
.req-table th {
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  padding: 0.65rem 0.75rem;
  background: #efe8dc;
  border-bottom: 1px solid var(--line);
}
.req-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.req-table tr:last-child td { border-bottom: 0; }
.req-table a { color: inherit; text-decoration: none; font-weight: 700; }
.req-table a:hover { color: var(--amber-deep); text-decoration: underline; }
.hidden { display: none !important; }

/* ----- Detail ----- */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.85fr);
  gap: 1rem;
  align-items: start;
}
.panel { padding: 1rem 1.1rem 1.15rem; }
.panel h2, .side-card h2 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.232rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  font-size: 0.9875rem;
}
.crumb a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumb a:hover { color: var(--amber-deep); }
.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  margin-bottom: 0.25rem;
}
.title-row h1 { font-size: 1.7437rem; margin: 0; }
.photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.8rem 0 0.2rem;
}
.photos figure {
  margin: 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #2a1e14;
  aspect-ratio: 4 / 3;
}
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.3rem 0.45rem;
  background: rgba(29, 29, 28, 0.72);
  color: #f3eee6;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1rem 1.35rem;
  border-left: 2px solid var(--line);
  margin-left: 0.45rem;
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 0.2rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--cedar);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--cedar);
}
.timeline .t-done::before { background: var(--sage); box-shadow: 0 0 0 1px var(--sage); }
.timeline h3 { margin: 0 0 0.15rem; font-size: 1.0225rem; }
.timeline time, .timeline .by { font-size: 0.875rem; color: var(--muted); }
.timeline p { margin: 0.2rem 0 0; font-size: 1.0025rem; color: var(--text); }

.side-stack { display: grid; gap: 0.75rem; }
.side-card { padding: 0.95rem 1rem 1.05rem; }
.action-grid { display: grid; gap: 0.5rem; }
.kv { display: grid; grid-template-columns: 6.4rem 1fr; gap: 0.3rem 0.5rem; margin: 0; font-size: 1.0025rem; }
.kv dt { color: var(--muted); margin: 0; }
.kv dd { margin: 0; }
.cost-row { display: grid; grid-template-columns: 1fr auto; gap: 0.45rem; align-items: center; }

/* Modal + toast */
.modal-root[hidden] { display: none !important; }
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(29, 29, 28, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal {
  width: min(36rem, 100%);
  max-height: min(90vh, 44rem);
  overflow: auto;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem 1.3rem;
}
.modal h2 { margin: 0 0 0.7rem; font-family: var(--serif); font-size: 1.4625rem; }
.notice-doc {
  background: #fbf8f2;
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem;
  font-size: 1.0025rem;
  line-height: 1.55;
}
.notice-doc h3 {
  font-family: var(--serif);
  font-size: 1.265rem;
  margin: 0 0 0.2rem;
  letter-spacing: -0.02em;
}
.notice-doc .sub { font-size: 0.875rem; color: var(--muted); margin: 0 0 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.toast {
  position: fixed;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-size: 1.0025rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 220;
  max-width: min(28rem, calc(100% - 2rem));
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Chooser */
.chooser {
  width: min(52rem, calc(100% - 2rem));
  margin: 2.2rem auto 3rem;
}
.chooser h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 0.5rem; font-family: var(--serif); }
.pick-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin-top: 1.3rem; }
@media (min-width: 720px) { .pick-grid { grid-template-columns: 1fr 1fr; } }
.pick {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.3rem 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--ease), box-shadow var(--ease);
}
.pick:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.pick h2 { margin: 0; font-family: var(--serif); font-size: 1.5188rem; }
.pick p { margin: 0; color: var(--muted); }

.muted { color: var(--muted); }
.fine { font-size: 0.89rem; color: var(--muted); }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0.2rem 0; }

@media (max-width: 960px) {
  .ll-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .filters .view-toggle { margin-left: 0; }
}

/* t854 font gap: measured in the real fonts, long page titles wrapped to 4 lines on 320px phones. One step smaller there only. */
@media (max-width: 340px) { html body .page-head h1, html body.cl-skin .page-head h1, html body.cl-skin main .page-head h1, html body.cl-skin main h1 { font-size: 1.5rem !important; line-height: 1.25 !important; } }
