/* Harbor & Dune Desk: the made-up client's own look, sand and driftwood with a
   tangerine accent. mVara appears only in the strip above and the mark in the corner. */
:root {
  --sand: #f6f0e6;
  --paper: #fffdf9;
  --wood: #3b3530;
  --wood-2: #6b625a;
  --line: #e6dccd;
  --tang: #e8792b;
  --tang-deep: #b85a17;
  --tang-soft: #fde8d6;
  --sea: #3f7f78;
  --sea-soft: #dcefeb;
  --warn: #9a6b00;
  --warn-soft: #fbefcf;
  --teal: #2dd4bf;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--sand); color: var(--wood); font: 15px/1.5 "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tang); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.demo-strip { background: var(--wood); color: #f3ece2; font-size: 13px; text-align: center; padding: 8px 16px; text-wrap: balance; }
.demo-strip a { color: var(--teal); font-weight: 600; text-decoration: none; }

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 36px); }
.side { background: var(--paper); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: calc(100vh - 36px); }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.brand strong { display: block; font: 600 18px/1.1 "Fraunces", Georgia, serif; }
.brand small { color: var(--wood-2); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.mark { width: 34px; height: 34px; border-radius: 10px; background: radial-gradient(circle at 50% 120%, var(--tang) 0 45%, transparent 46%), linear-gradient(#f9d9b8, #fcebd8); box-shadow: inset 0 -2px 0 rgba(59, 53, 48, 0.12); }
#nav { display: flex; flex-direction: column; gap: 2px; }
#nav a { text-decoration: none; padding: 9px 12px; border-radius: 9px; color: var(--wood-2); font-weight: 500; }
#nav a:hover { background: var(--sand); color: var(--wood); }
#nav a[aria-current="page"] { background: var(--tang-soft); color: var(--tang-deep); font-weight: 600; }
.capture { display: block; text-align: center; text-decoration: none; background: var(--tang); color: #fff; font-weight: 600; padding: 10px 12px; border-radius: 10px; }
.capture:hover { background: var(--tang-deep); }
.as { font-size: 12px; color: var(--wood-2); display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.as select { padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; }
.built { font-size: 12px; color: var(--wood-2); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.built::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

main { padding: 30px 36px 60px; max-width: 1240px; width: 100%; min-width: 0; outline: none; }
.page-head { margin-bottom: 22px; }
.eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wood-2); }
.eyebrow a { text-decoration: none; color: var(--tang-deep); }
h1 { margin: 0; font: 500 clamp(28px, 3.2vw, 38px)/1.1 "Fraunces", Georgia, serif; letter-spacing: -0.01em; text-wrap: balance; }
h2 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wood-2); font-weight: 600; }
h3 { margin: 0; }
.lead-in { margin: 8px 0 0; color: var(--wood-2); max-width: 70ch; }

.grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 12px; }
.card.wide { grid-column: 1 / -1; }
.card.narrow { max-width: 640px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); text-decoration: none; }
.row:first-of-type { border-top: 0; }
h2 + .row, .hint + .row, .big + .hint + .row { border-top: 0; }
a.row:hover strong { color: var(--tang-deep); }
.row strong { display: block; font-weight: 600; }
.row small, .tile small, .home-card small { display: block; color: var(--wood-2); font-size: 13px; }
.row .when { white-space: nowrap; }
.task { justify-content: flex-start; }
.task a { text-decoration: none; flex: 1; }
.task.late small { color: #b3401e; font-weight: 600; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); cursor: pointer; flex: 0 0 auto; }
.tick:hover { border-color: var(--sea); background: var(--sea-soft); }
.hint { margin: -4px 0 8px; font-size: 13px; color: var(--wood-2); }
.empty { color: var(--wood-2); font-style: italic; margin: 6px 0 12px; }
.big { margin: 0 0 4px; font: 500 34px/1 "Fraunces", Georgia, serif; font-variant-numeric: tabular-nums; }

.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sand); color: var(--wood-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip.new { background: var(--tang-soft); color: var(--tang-deep); }
.chip.good { background: var(--sea-soft); color: var(--sea); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.muted { opacity: 0.75; }
.consent { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.pill { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--wood); border-color: var(--wood); color: #fff; }
.sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: #efe6d9; border-radius: 12px; padding: 10px; min-height: 180px; display: flex; flex-direction: column; gap: 8px; transition: background 0.15s; }
.col.over { background: var(--tang-soft); }
.col h3 { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; padding: 2px 4px 4px; }
.col h3 span { color: var(--wood-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; text-decoration: none; cursor: grab; }
.tile:hover { border-color: var(--tang); }
.tile strong { font-weight: 600; display: block; }

.stepper { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; }
.stepper button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.stepper .done button { background: var(--sea-soft); border-color: transparent; color: var(--sea); }
.stepper .now button { background: var(--tang); border-color: var(--tang); color: #fff; font-weight: 600; }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 8px; font-size: 14px; }
.facts dt { color: var(--wood-2); }
.facts dd { margin: 0; font-weight: 500; }

.note textarea, .form input, .form select, .form textarea, .search input { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; }
.note-row { display: flex; gap: 8px; justify-content: flex-end; margin: 8px 0 14px; }
.note-row select { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px; }
.btn { border: 0; background: var(--tang); color: #fff; font-weight: 600; padding: 10px 16px; border-radius: 10px; cursor: pointer; }
.btn:hover { background: var(--tang-deep); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.timeline .kind { font-size: 12px; font-weight: 600; color: var(--tang-deep); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 2px; }
.timeline p { margin: 0 0 2px; }
.timeline small { color: var(--wood-2); }

.search { margin-bottom: 14px; }
.search input { font-size: 16px; margin-bottom: 10px; max-width: 520px; display: block; }
.card.list .row:first-child { border-top: 0; }

.homes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.home-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.home-card:hover { border-color: var(--tang); }
.home-card strong { font: 600 17px/1.2 "Fraunces", Georgia, serif; }
.facts-inline, .nums { font-size: 13px; color: var(--wood-2); }
.nums b { color: var(--wood); font-variant-numeric: tabular-nums; }
.home-card .chip { align-self: flex-start; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stats b { display: block; font: 500 26px/1.1 "Fraunces", Georgia, serif; font-variant-numeric: tabular-nums; }
.stats small { color: var(--wood-2); font-size: 13px; }

.reach { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.reach th, .reach td { text-align: right; padding: 10px 8px; border-top: 1px solid var(--line); }
.reach thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--wood-2); font-weight: 600; }
.reach tbody th { text-align: left; font-weight: 500; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--wood-2); }
.form .full { grid-column: 1 / -1; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--wood); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); z-index: 10; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side > * { min-width: 0; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  #nav { flex-direction: row; overflow-x: auto; width: 100%; order: 3; }
  #nav a { white-space: nowrap; }
  .capture { margin-left: auto; padding: 8px 12px; }
  .as, .built { display: none; }
  main { padding: 20px 16px 50px; }
  .grid.two, .form, .stats { grid-template-columns: 1fr 1fr; }
  .grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stats, .form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
