/* Palette: deep teal ink on pale sea-glass, amber for "pending", coral for "look now".
   Type: Bricolage Grotesque for headings, Figtree for everything else. */
:root {
  --ink: #173a3f;
  --ink2: #4b686c;
  --paper: #f2f6f5;
  --card: #ffffff;
  --line: #d3e0de;
  --brand: #0f5c63;
  --on-brand: #ffffff;
  --sea: #dcede9;
  --amber: #b36f00;
  --amber-bg: #fcefd2;
  --coral: #b3361f;
  --coral-bg: #fbe3dc;
  --ok: #1b7a4b;
  --ok-bg: #dcf2e5;
  --info-bg: #dcecf3;
  --radius: 10px;
  --font-head: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--font-body); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1.1rem 0 .4rem; }
p { margin: 0 0 .75rem; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid #f0a81a; outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--ink2); }
.small { font-size: .85rem; }
.pad { padding: 1.5rem; }
.pre { white-space: pre-wrap; }
.owed { color: var(--coral); font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
code { background: var(--sea); padding: 1px 6px; border-radius: 4px; word-break: break-all; }

/* ---- shell: a slide-out menu (hamburger) on phones, a side rail on wide screens ---- */
.shell { min-height: 100vh; }
body.nav-lock { overflow: hidden; }
.top { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 5; }
.brand { font: 700 1.1rem var(--font-head); color: var(--ink); text-decoration: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); cursor: pointer; flex: none; padding: 0; }
.menu-btn:hover { background: var(--sea); }
.page { max-width: 880px; margin: 0 auto; padding: 18px 16px 40px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.back { display: inline-block; margin-bottom: 6px; font-size: .9rem; text-decoration: none; color: var(--ink2); }
.back::before { content: "\2039  "; }

.tabs { position: fixed; top: 0; bottom: 0; left: 0; width: min(84vw, 310px); background: var(--card); z-index: 30; display: flex; flex-direction: column; overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom); box-shadow: 4px 0 24px rgba(0, 0, 0, .18); transform: translateX(-104%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
.shell.nav-open .tabs { transform: none; visibility: visible; transition: transform .22s ease; }
.nav-scrim { position: fixed; inset: 0; background: rgba(23, 58, 63, .5); z-index: 25; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); font: 700 1.05rem var(--font-head); }
.tab { display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-decoration: none; color: var(--ink); font: 500 1.02rem var(--font-body); border: 0; border-left: 4px solid transparent; background: none; width: 100%; text-align: left; cursor: pointer; }
.tab:hover { background: var(--paper); }
.tab.on { color: var(--brand); border-left-color: var(--brand); background: var(--sea); }
.tab .count { margin-left: auto; }
.nav-gap { flex: 1; min-height: 12px; }
.nav-foot { border-top: 1px solid var(--line); padding: 6px 0; }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto auto 1fr; }
  .menu-btn, .drawer-head, .nav-scrim { display: none !important; }
  .top { grid-column: 1 / -1; padding: 12px 16px; }
  #banners { grid-column: 2; }
  .page { grid-column: 2; width: 100%; max-width: 920px; margin: 0; padding: 24px 32px 60px; }
  .tabs { position: static; grid-column: 1; grid-row: 2 / 4; width: auto; transform: none; visibility: visible; box-shadow: none; border-right: 1px solid var(--line);
    background: transparent; padding: 16px 12px; transition: none; overflow: visible; }
  .tab { padding: 10px 12px; font-size: .95rem; border-radius: 0 10px 10px 0; width: 100%; }
  .nav-foot { margin-top: 8px; }
}

/* ---- banners, chips, badges ---- */
.banner { display: block; padding: 11px 16px; font-size: .95rem; text-decoration: none; color: var(--ink); background: var(--info-bg); border-radius: var(--radius); margin: 0 0 12px; }
#banners .banner { border-radius: 0; margin: 0; }
.banner.warn { background: var(--amber-bg); }
.banner.bad { background: var(--coral-bg); color: #6e1d0e; }
.banner.ok { background: var(--ok-bg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.chip { display: inline-block; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font: 500 .88rem var(--font-body); white-space: nowrap; cursor: pointer; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--sea); color: var(--ink); white-space: nowrap; }
.stage-inquiry { background: #e6e9ec; }
.stage-quote_sent { background: var(--amber-bg); color: #6e4400; }
.stage-accepted { background: #d8e9f5; color: #0f3f66; }
.stage-deposit_paid { background: #cfeee0; color: #0d5a35; }
.stage-confirmed { background: var(--brand); color: var(--on-brand); }
.stage-done { background: #e3e8e7; color: var(--ink2); }
.stage-lost, .stage-cancelled { background: var(--coral-bg); color: #6e1d0e; }
.q-draft { background: #e6e9ec; } .q-sent { background: var(--amber-bg); color: #6e4400; } .q-accepted { background: var(--ok-bg); color: #0d5a35; } .q-superseded, .q-expired, .q-declined { background: #e3e8e7; color: var(--ink2); }
.pay-succeeded { background: var(--ok-bg); color: #0d5a35; } .pay-pending, .pay-processing { background: var(--amber-bg); color: #6e4400; }
.pay-failed, .pay-refunded, .pay-partially_refunded { background: var(--coral-bg); color: #6e1d0e; }

/* ---- the money ledger and the bubble strip ---- */
.ledger { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0 4px; }
.ledger > div { padding: 12px 10px; border-right: 1px solid var(--line); }
.ledger > div:last-child { border-right: 0; }
.ledger .k { display: block; font-size: .8rem; color: var(--ink2); }
.ledger .v { display: block; font: 700 1.2rem var(--font-head); margin-top: 2px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 1.6rem; }
.section-head h2 { margin: 0 0 .5rem; }
.legend { font-size: .78rem; color: var(--ink2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 4px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); min-height: 86px; }
.day:hover { border-color: var(--brand); }
.day .dow { font-size: .72rem; color: var(--ink2); }
.day .dnum { font: 700 1.05rem var(--font-head); }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 3px; max-width: 40px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: transparent; }
.dot.held { background: var(--brand); border-color: var(--brand); }
.dot.tent { border-color: var(--amber); border-style: dashed; }
.dot.over { background: var(--coral); border-color: var(--coral); }
.dot.free { border-color: var(--line); background: var(--paper); }
.legend .dot { width: 10px; height: 10px; }

/* ---- lists ---- */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list > li { border-bottom: 1px solid var(--line); }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; color: var(--ink); text-decoration: none; }
a.item:hover { background: var(--sea); }
.item.static { cursor: default; }
.item.off { opacity: .6; }
.list.tight .item { padding: 9px 4px; }
.grow { flex: 1; min-width: 0; }
.sub { display: block; font-size: .85rem; color: var(--ink2); font-weight: 400; overflow-wrap: anywhere; }
.right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.datebox { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; flex: none; line-height: 1.1; }
.datebox .dow { font-size: .7rem; color: var(--ink2); }
.datebox .dnum { font: 700 1.3rem var(--font-head); }
.datebox .mon { font-size: .7rem; color: var(--ink2); }
.datebox.nodate .dow { font-size: .8rem; }
.sevdot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--line); }
.sev3 .sevdot { background: var(--coral); } .sev2 .sevdot { background: #e0a21a; } .sev1 .sevdot { background: #8aa6a9; }
.empty { color: var(--ink2); padding: 14px 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sea); color: var(--brand); display: flex; align-items: center; justify-content: center; font: 700 1rem var(--font-head); flex: none; }
.search { width: 100%; margin: 0 0 12px; }
.timeline { list-style: none; margin: 10px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.timeline li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0 6px 10px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--brand); }
.timeline li.t-payment_received::before { background: var(--ok); border-color: var(--ok); }
.timeline li.t-dispute_opened::before, .timeline li.t-payment_failed::before, .timeline li.t-email_failed::before { background: var(--coral); border-color: var(--coral); }
.timeline time { white-space: nowrap; }

/* ---- event detail ---- */
.stages { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.step { font: 500 .85rem var(--font-body); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); cursor: pointer; }
.step.past { background: var(--sea); color: var(--ink); }
.step.now { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.step.quiet { border-style: dashed; margin-left: auto; }
.step.quiet + .step.quiet { margin-left: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 16px; margin: 0 0 12px; }
.facts > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .8rem; color: var(--ink2); }
.facts dd { margin: 0; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }

/* ---- forms and buttons ---- */
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 500; color: var(--ink2); }
.field.inline { display: inline-flex; }
input, select, textarea { font: 400 1rem var(--font-body); color: var(--ink); background: var(--card); border: 1px solid #b9cdca; border-radius: 8px; padding: 9px 11px; width: 100%; min-height: 44px; }
textarea { min-height: 80px; resize: vertical; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--brand); flex: none; }
input[type=color] { padding: 3px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--ink); font-weight: 400; }
.check.big { align-items: flex-start; }
.check.big input { margin-top: 3px; }
.btn { font: 600 .95rem var(--font-body); padding: 10px 16px; min-height: 44px; border-radius: 8px; border: 1px solid #a9c2bf; background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { background: var(--sea); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: .88rem; }
.btn.big { width: 100%; min-height: 52px; font-size: 1.05rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 4px 2px; color: var(--brand); font: 500 .95rem var(--font-body); cursor: pointer; text-decoration: underline; }
.linkbtn.small { font-size: .85rem; }

/* ---- quote builder ---- */
.lines { display: flex; flex-direction: column; gap: 12px; }
.line { display: grid; grid-template-columns: 1fr 70px 100px; gap: 8px; align-items: end; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.line .field.grow { grid-column: 1 / -1; }
.line .check, .line .linkbtn { align-self: center; }
.line .lbl { font-size: .75rem; }
@media (min-width: 640px) { .line { grid-template-columns: 1fr 80px 120px auto auto; } .line .field.grow { grid-column: auto; } }
.totals { margin: 0; padding: 0; max-width: 360px; margin-left: auto; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.totals dt { color: var(--ink2); } .totals dd { margin: 0; font-weight: 600; }
.totals .grand { border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 8px; font: 700 1.2rem var(--font-head); }
.totals .grand dt { color: var(--ink); }
.sticky { position: sticky; bottom: 0; background: var(--paper); padding: 10px 0; border-top: 1px solid var(--line); }

/* ---- modal and toasts ---- */
#modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.scrim { position: absolute; inset: 0; background: rgba(23, 58, 63, .5); }
.sheet { position: relative; background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 20px 18px 24px; border-radius: 16px 16px 0 0; }
.sheet h2 { margin-top: 0; }
@media (min-width: 640px) { #modal { align-items: center; } .sheet { border-radius: 16px; } }
#toasts { position: fixed; left: 12px; right: 12px; bottom: 20px; z-index: 30; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; max-width: 460px; font-size: .95rem; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.toast.bad { background: var(--coral); } .toast.warn { background: #8a5a00; }
.qr { width: 200px; height: 200px; display: block; margin: 8px auto; }

/* ---- sign-in and public pages ---- */
.auth { display: flex; justify-content: center; padding: 8vh 16px 40px; }
.authbox { width: 100%; max-width: 420px; }
.authbox h1 { font-size: 2.1rem; margin-bottom: 6px; }
.lead { font-size: 1.1rem; }
.public { background: var(--card); }
.qdoc { max-width: 680px; margin: 0 auto; padding: 24px 18px 60px; --brand: #0f5c63; }
.qdoc h1 { font-size: 1.6rem; color: var(--brand); margin-bottom: 4px; }
.qhead { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 3px solid var(--brand); }
.qhead .logo { max-height: 48px; max-width: 160px; }
.bizname { font: 700 1.2rem var(--font-head); }
.qtable { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: .95rem; }
.qtable th { text-align: left; font-weight: 600; color: var(--ink2); font-size: .8rem; padding: 6px 4px; border-bottom: 2px solid var(--line); }
.qtable td { padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.qtable .num { text-align: right; white-space: nowrap; }
.qtotals { margin: 8px 0 18px auto; max-width: 340px; }
.qtotals > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.qtotals dt { color: var(--ink2); } .qtotals dd { margin: 0; font-weight: 600; }
.qtotals .grand { border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 8px; font: 700 1.25rem var(--font-head); }
.qdoc .btn.primary { background: var(--brand); border-color: var(--brand); }
.terms { margin: 18px 0; } .terms summary { cursor: pointer; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media print { .btn, .linkbtn, form, .tabs, .top { display: none !important; } .qdoc { padding: 0; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ---- owner console, help, PDFs ---- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 8px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi .k { font-size: .8rem; color: var(--ink2); }
.kpi .v { font: 700 1.55rem var(--font-head); line-height: 1.1; }
.kpi .sub { font-size: .78rem; color: var(--ink2); }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .75rem; text-align: center; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 150px; margin: 8px 0 14px; padding-top: 18px; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; }
.bar i { display: block; width: 100%; max-width: 46px; min-height: 3px; background: var(--brand); border-radius: 6px 6px 0 0; }
.bar .amt { font-size: .7rem; color: var(--ink2); margin-bottom: 3px; white-space: nowrap; }
.bar .lbl { font-size: .75rem; color: var(--ink2); margin-top: 4px; }
.thread { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); max-width: 92%; }
.msg.customer { align-self: flex-start; }
.msg.staff { align-self: flex-end; background: var(--sea); }
.msg.system { align-self: center; background: transparent; border-style: dashed; font-size: .9rem; color: var(--ink2); }
.msg.internal { background: var(--amber-bg); border-color: #e3c370; }
.msg .who { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 2px; }
.msg p { margin: 0; }
.plist { list-style: none; margin: 0 0 12px; padding: 0; }
.plist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pdflink { font-weight: 600; }
ol { padding-left: 1.2rem; }

/* ---- setup checklist ---- */
.row.between { justify-content: space-between; }
.setup-card { background: var(--sea); border: 1px solid #b9d6d1; border-radius: 12px; padding: 14px 16px; margin: 4px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.setup-card p { margin: 0; }
.progress { height: 8px; background: #fff; border-radius: 999px; overflow: hidden; border: 1px solid #b9d6d1; }
.progress.big { height: 12px; margin: 8px 0 16px; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step-item { display: flex; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.step-item.done { opacity: .7; }
.step-item .mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; font-weight: 700; color: #fff; }
.step-item.done .mark { background: var(--ok); border-color: var(--ok); }
.step-item p { margin: 2px 0 8px; }
.ok-text { color: var(--ok); font-weight: 600; }
.logo-preview { max-height: 56px; max-width: 180px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.btn:focus-within { outline: 3px solid #f0a81a; outline-offset: 2px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.dashboard-kpis { margin: 10px 0 18px; }
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th { color: var(--ink2); font-size: .78rem; text-align: left; text-transform: uppercase; letter-spacing: .05em; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.data-table tbody tr { border-left: 3px solid var(--brand); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table a { color: var(--ink); text-decoration: none; }
.data-table a:hover { color: var(--brand); }
.catalogue-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); flex: none; }
.catalogue-preview { width: 120px; height: 120px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }

/* ---- pipeline and calendar ------------------------------------------------ */
.project-board { display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr)); gap: 18px; overflow-x: auto; padding-bottom: 8px; }
.project-column { min-height: 420px; }
.project-column h2 { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); }
.project-column h2 span { font: 400 .85rem var(--font-body); }
.project-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 8px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.project-card a { display: block; color: var(--ink); text-decoration: none; margin-bottom: 10px; }
.project-card a:hover strong { color: var(--brand); }
.project-card select { min-height: 36px; padding: 6px 9px; font-size: .86rem; }
.calendar-legend { display: flex; gap: 18px; color: var(--ink2); font-size: .85rem; margin: -4px 0 12px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calendar-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.calendar-dot.booked { background: var(--brand); }
.calendar-dot.tentative { border: 2px dashed var(--amber); }
.calendar-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.calendar-head, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(100px, 1fr)); min-width: 700px; }
.calendar-head { background: var(--sea); border-bottom: 1px solid var(--line); }
.calendar-head span { padding: 10px; color: var(--ink2); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.calendar-day { min-height: 104px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day b { display: block; font-size: .85rem; margin-bottom: 6px; }
.muted-day { background: rgba(0,0,0,.025); color: var(--ink2); }
.today-day b { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.calendar-event { display: flex; align-items: center; gap: 5px; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); text-decoration: none; font-size: .76rem; padding: 3px 4px; border-radius: 4px; margin-top: 3px; }
.calendar-event:hover { background: var(--sea); }
.calendar-event i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--brand); }
.calendar-event.tentative i { background: transparent; border: 1px dashed var(--amber); }
@media (max-width: 1050px) { .project-board { grid-template-columns: repeat(4, minmax(230px, 1fr)); } }
