/* The Moat theme: the joinmoat.org look (near-black, icy hairlines, thin tracked Inter, square outline buttons).
   Loaded by connect.html (MoatConnect) and index.html (the admin CRM), after styles.css, so it redefines the shared
   tokens for both. The CRM adds its own layout bits in crm.css. investors.css and library.css draw from the same
   tokens. Dark only. */

/* ---------- tokens ---------- */
:root {
  --bg: #04060a; --panel: #080b11; --panel-2: #0e131b; --ink: #e6eef5; --muted: rgba(230, 238, 245, .56);
  --line: rgba(207, 227, 242, .13); --line-2: rgba(207, 227, 242, .34); --tick: rgba(230, 238, 245, .55);
  --accent: #cfe3f2; --accent-ink: #04060a; --accent-soft: rgba(207, 227, 242, .08);
  --good: #8fd3b6; --good-soft: rgba(143, 211, 182, .09);
  --warn: #e8bd74; --warn-soft: rgba(232, 189, 116, .09);
  --bad: #ff9e8f; --bad-soft: rgba(255, 158, 143, .09);
  --info: #9cc3e8; --info-soft: rgba(156, 195, 232, .09);
  --radius: 0px; --shadow: none; --ease: cubic-bezier(.2, .7, .2, 1);
  --track: .26em;
  color-scheme: dark;
}

/* ---------- ground ---------- */
html { background: var(--bg); }
html, body { color: var(--ink); font: 400 14px/1.6 Inter, "Inter Fallback", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
body { background: transparent; min-height: 100vh; }
/* the construction grid from the landing page's application panel, fading out down the page, under a vignette */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background-image: linear-gradient(to right, rgba(207, 227, 242, .045) 1px, transparent 1px), linear-gradient(to bottom, rgba(207, 227, 242, .045) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}
body::after { background: radial-gradient(ellipse at 50% 30%, transparent 45%, rgba(4, 6, 10, .8) 100%); }
* { scrollbar-color: rgba(207, 227, 242, .18) transparent; }
::selection { background: rgba(207, 227, 242, .24); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

/* ---------- type ---------- */
h1 { font-weight: 200; font-size: 34px; line-height: 1.15; letter-spacing: .005em; margin: 0 0 12px; }
h2 { font-weight: 400; font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; margin: 0 0 14px; color: var(--ink); }
h3 { font-weight: 400; font-size: 10.5px; letter-spacing: .22em; color: var(--muted); }
b, strong { font-weight: 500; }
.eyebrow { font-weight: 400; font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--line-2); }
.lede { color: var(--muted); font-size: 15px; font-weight: 300; line-height: 1.7; margin: 0 0 26px; max-width: 640px; }
.small { font-size: 12.5px; }
.muted { color: var(--muted); }
.err { color: var(--bad); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
p a:not(.btn), .small a:not(.btn), .notice a, .lede a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
p a:not(.btn):hover, .small a:not(.btn):hover, .notice a:hover { text-decoration-color: var(--ink); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(4, 6, 10, .74); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 0; padding: 0; color: var(--ink); font-weight: 200; }
.brand:hover { text-decoration: none; }
.brand .wm { font-size: 19px; letter-spacing: .5em; margin-right: -.5em; text-transform: lowercase; line-height: 1; }
.brand .sub { font-weight: 400; font-size: 9.5px; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); margin-left: 16px; padding-left: 14px; border-left: 1px solid var(--line-2); line-height: 1.4; }
.tabs { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 9px; border-radius: 0; color: var(--muted); font-weight: 400; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; transition: color .3s ease, box-shadow .3s ease; }
.tabs a:hover { color: var(--ink); text-decoration: none; background: none; }
.tabs a.on { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.tabs a .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--warn); margin-left: 7px; vertical-align: middle; }
.who { margin-left: auto; display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.who .link { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; }
.chip { font-size: 10px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--line); color: var(--muted); background: transparent; }
.chip.good { border-color: color-mix(in srgb, var(--good) 40%, transparent); color: var(--good); background: transparent; }
.chip.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); color: var(--warn); background: transparent; }

/* ---------- page ---------- */
main { max-width: 920px; margin: 0 auto; padding: 46px 20px 100px; }
main.wide { max-width: 1120px; }
.section { margin-top: 30px; }
.grow { flex: 1; min-width: 0; }
.list-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }

/* panels, with the landing page's corner ticks on the main ones */
.card { background: rgba(8, 11, 17, .82); border: 1px solid var(--line); border-radius: 0; padding: 22px; position: relative; }
.modal-card::before { inset: 0 !important; }
.card::before, .modal-card::before, .lib-card::before, .lib-hero::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(var(--tick), var(--tick)) top left / 9px 1px no-repeat, linear-gradient(var(--tick), var(--tick)) top left / 1px 9px no-repeat,
    linear-gradient(var(--tick), var(--tick)) top right / 9px 1px no-repeat, linear-gradient(var(--tick), var(--tick)) top right / 1px 9px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom left / 9px 1px no-repeat, linear-gradient(var(--tick), var(--tick)) bottom left / 1px 9px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom right / 9px 1px no-repeat, linear-gradient(var(--tick), var(--tick)) bottom right / 1px 9px no-repeat;
}
.card.empty { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { font: 400 11px/1.2 Inter, system-ui, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); background: rgba(4, 6, 10, .35);
  border: 1px solid var(--line-2); border-radius: 0; padding: 11px 16px 11px calc(16px + .24em); cursor: pointer; white-space: nowrap; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .35s ease, color .35s ease, border-color .35s ease; }
.btn:hover { background: rgba(230, 238, 245, .06); border-color: var(--ink); text-decoration: none; }
.btn.primary { background: rgba(230, 238, 245, .05); border-color: var(--ink); color: var(--ink); }
.btn.primary:hover { background: var(--ink); color: var(--bg); filter: none; }
.btn.sm { font-size: 10px; letter-spacing: .22em; padding: 8px 12px 8px calc(12px + .22em); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn.danger:hover { background: var(--bad); color: var(--bg); border-color: var(--bad); }
.btn:disabled { opacity: .4; cursor: wait; }
.btn:disabled:hover { background: rgba(4, 6, 10, .35); color: var(--ink); }
.link { color: var(--muted); }
.link:hover { color: var(--ink); }

/* ---------- forms ---------- */
input, select, textarea { font: 300 15px/1.4 Inter, system-ui, sans-serif; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  border-radius: 0; padding: 10px 2px; width: 100%; transition: border-color .3s ease; }
input::placeholder, textarea::placeholder { color: rgba(230, 238, 245, .28); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { border: 1px solid var(--line-2); padding: 10px 12px; background: rgba(230, 238, 245, .015); min-height: 78px; }
select { border: 1px solid var(--line-2); padding: 9px 10px; font-size: 14px; background: rgba(4, 6, 10, .6); }
select option { background: #0b0f15; color: var(--ink); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--ink); }
input[type=time] { border: 1px solid var(--line-2); padding: 6px 8px; font-size: 14px; }
label { font-weight: 400; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); gap: 6px; }
label input, label textarea, label select { letter-spacing: 0; text-transform: none; }
label.check { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink); line-height: 1.55; }
.field-label { font-weight: 400; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field-hint { letter-spacing: 0; text-transform: none; }

/* Find */
.search { display: flex; flex-direction: column; gap: 14px; }
.ask { display: flex; gap: 0; }
.ask input { font-size: 17px; font-weight: 300; padding: 15px 16px; border: 1px solid var(--line-2); border-right: 0; background: rgba(4, 6, 10, .55); }
.ask input:focus { border-color: var(--ink); }
.ask .btn { padding: 0 26px 0 calc(26px + .24em); }
.seg { display: inline-flex; flex-wrap: wrap; background: transparent; border: 1px solid var(--line); border-radius: 0; padding: 0; gap: 0; }
.seg button, .inv-nav .seg a { font: 400 10.5px/1.2 Inter, system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; border: 0; border-radius: 0; background: none;
  color: var(--muted); padding: 10px 14px; cursor: pointer; transition: color .3s ease, background .3s ease; }
.seg button:hover, .inv-nav .seg a:hover { color: var(--ink); text-decoration: none; }
.seg button.on, .inv-nav .seg a.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.examples { display: flex; gap: 6px; flex-wrap: wrap; }
.examples button { font: 300 12.5px Inter, system-ui, sans-serif; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 0; padding: 6px 11px; cursor: pointer; transition: color .3s, border-color .3s; }
.examples button:hover { color: var(--ink); border-color: var(--line-2); }
.more-toggle { font-size: 12.5px; }

/* people */
.people { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.person { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: start; background: rgba(8, 11, 17, .78); border: 1px solid var(--line);
  border-radius: 0; padding: 16px 18px; transition: border-color .3s ease; }
.person:hover { border-color: var(--line-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 300; font-size: 12px; letter-spacing: .1em; background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
.person .name { font-weight: 500; font-size: 15px; }
.person .role { color: var(--muted); font-size: 13px; }
.path { font-size: 13px; margin-top: 8px; color: var(--muted); }
.path .pill { margin-right: 6px; }
.path b { font-weight: 500; color: var(--ink); }
.why { font-size: 13.5px; margin-top: 8px; color: var(--ink); opacity: .82; font-weight: 300; }
.acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 180px; }

/* pills, tags */
.pill { max-width: 100%; white-space: normal; border-radius: 0; background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 400; font-size: 11.5px; padding: 2px 8px; }
.pill.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, transparent); background: var(--good-soft); }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-soft); }
.pill.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); }
.pill.info { color: var(--info); border-color: color-mix(in srgb, var(--info) 35%, transparent); background: var(--info-soft); }

/* notices, toast, modal */
.notice { border-radius: 0; font-size: 13.5px; border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); background: var(--info-soft); color: var(--info); padding: 13px 16px; }
.notice.warn { border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-soft); color: var(--warn); }
.notice.bad { border-color: color-mix(in srgb, var(--bad) 30%, transparent); background: var(--bad-soft); color: var(--bad); }
.toast { background: #0b0f15; color: var(--ink); border: 1px solid var(--line-2); border-radius: 0; font-weight: 300; letter-spacing: .03em; padding: 12px 18px; animation: mc-rise .5s var(--ease); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.modal { background: radial-gradient(ellipse at 50% 50%, rgba(4, 6, 10, .6), rgba(4, 6, 10, .93)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: mc-fade .35s ease; }
.modal-card { position: relative; background: rgba(6, 9, 14, .96); border: 1px solid var(--line); border-radius: 0; padding: 30px; animation: mc-rise .55s var(--ease); }
.modal-card h2 { font-size: 22px; font-weight: 200; letter-spacing: .005em; text-transform: none; margin-bottom: 10px; }
.copybox, pre.msg { background: var(--panel-2); border: 1px solid var(--line); border-radius: 0; font: 300 14px/1.6 Inter, system-ui, sans-serif; color: var(--ink); }
textarea.copybox { border: 1px solid var(--line) !important; }

/* loading */
.skeleton { height: 86px; border-radius: 0; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(207, 227, 242, .02), rgba(207, 227, 242, .07), rgba(207, 227, 242, .02)); background-size: 200% 100%; animation: sh 1.6s infinite linear; }
@keyframes sh { to { background-position: -200% 0; } }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); border-top-color: var(--ink); animation: spin 1.1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* tables */
th { font-weight: 400; font-size: 10px; letter-spacing: .2em; color: var(--muted); }

/* Join */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.steps li::before, .fixes li::before { width: 28px; height: 28px; border-radius: 0; background: transparent; border: 1px solid var(--line-2); color: var(--ink);
  display: grid; place-items: center; font-weight: 300; font-size: 12px; }
.steps li::before { content: counter(step, decimal-leading-zero); }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; font-weight: 300; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border: 1px dashed var(--line-2); border-radius: 0;
  padding: 28px 16px; background: rgba(230, 238, 245, .015); cursor: pointer; color: var(--muted); font-size: 13px; letter-spacing: 0; text-transform: none; transition: border-color .3s, background .3s; }
.drop b { display: block; color: var(--ink); font-size: 14px; font-weight: 400; margin-bottom: 2px; }
.drop:hover, .drop.over { border-color: var(--ink); background: var(--accent-soft); }
.drop input { display: none; }

/* switch */
.switch { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; cursor: pointer; font-weight: 400; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.switch input { width: 34px; height: 18px; appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid var(--line-2); border-radius: 0; position: relative; cursor: pointer; padding: 0; transition: background .25s, border-color .25s; flex: 0 0 auto; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; background: var(--muted); transition: left .25s var(--ease), background .25s; }
.switch input:checked { background: var(--ink); border-color: var(--ink); }
.switch input:checked::after { left: 19px; background: var(--bg); }

/* Tools */
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tool-card { display: flex; flex-direction: column; gap: 12px; }
.tool-card h2 { margin: 0; font-size: 20px; font-weight: 200; letter-spacing: .01em; text-transform: none; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 300; flex: 1; }
.tool-card.locked { opacity: .8; }
.report-head { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.score-big { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: transparent; border: 1px solid currentColor; color: var(--good); }
.score-big b { font-size: 42px; font-weight: 200; line-height: 1; display: block; letter-spacing: -.01em; }
.score-big span { font-size: 9.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
.score-big.mid { background: transparent; color: var(--warn); } .score-big.low { background: transparent; color: var(--bad); }
.verdict { font-size: 18px; font-weight: 300; line-height: 1.5; margin: 0; }
.sec-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sec-row:last-child { border-bottom: 0; }
.sec-top { display: flex; align-items: center; gap: 12px; }
.sec-top .lbl { font-weight: 500; width: 190px; flex-shrink: 0; }
.sec-top .bar { display: flex; gap: 3px; flex: 1; max-width: 220px; }
.sec-top .bar i { flex: 1; height: 4px; border-radius: 0; background: var(--line); }
.sec-top .bar i.on { background: var(--good); } .sec-top .bar.mid i.on { background: var(--warn); } .sec-top .bar.low i.on { background: var(--bad); }
.sec-row p { margin: 6px 0 0; font-size: 13.5px; } .sec-row p.ev { color: var(--muted); font-weight: 300; }
.fixes { counter-reset: fx; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.fixes li { counter-increment: fx; display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.fixes li::before { content: counter(fx); }
.fixes .copybox { margin: 8px 0 0; }
details.slide { border-bottom: 1px solid var(--line); padding: 12px 0; }
details.slide:last-child { border-bottom: 0; }
details.slide summary { cursor: pointer; font-weight: 500; }
details.slide p { margin: 8px 0 0; font-size: 14px; font-weight: 300; }
.qa { padding: 12px 0; border-bottom: 1px solid var(--line); } .qa:last-child { border-bottom: 0; }
.qa b { display: block; font-weight: 500; } .qa p { margin: 4px 0 0; font-size: 14px; color: var(--muted); font-weight: 300; }
.copybox { white-space: pre-wrap; padding: 14px; margin: 10px 0 14px; }

/* Specialists: cards, the profile modal, the booking page */
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sp-card { display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: border-color .3s ease; }
.sp-card:hover, .sp-card:focus-visible { border-color: var(--line-2); outline: none; }
.sp-row { display: flex; gap: 14px; align-items: flex-start; }
.sp-ph { width: 56px; height: 56px; object-fit: cover; flex: none; border: 1px solid var(--line-2); background: var(--panel-2); }
.sp-ph.none { display: grid; place-items: center; font-weight: 300; font-size: 13px; letter-spacing: .12em; color: var(--ink); }
.sp-ph.mid { width: 96px; height: 96px; font-size: 18px; }
.sp-ph.big { width: 132px; height: 132px; font-size: 24px; }
.sp-topic { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.sp-card .name { font-weight: 500; font-size: 16px; }
.sp-card .why { margin: 0; }
.sp-clamp, .sp-clamp3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sp-clamp3 { -webkit-line-clamp: 3; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.sp-hero { display: flex; gap: 24px; align-items: center; margin: 6px 0 18px; }
.sp-hero h1 { margin-bottom: 6px; }
.sp-head { font-size: 15px; font-weight: 300; line-height: 1.5; margin: 6px 0 0; opacity: .88; }
.modal-card.sp-modal { max-width: 720px; padding: 36px; }
.modal-card .x { position: absolute; top: 8px; right: 10px; z-index: 1; background: none; border: 0; color: var(--muted); font: 200 28px/1 Inter, system-ui, sans-serif; padding: 6px 10px; cursor: pointer; }
.modal-card .x:hover { color: var(--ink); }
.sp-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.sp-id .eyebrow { margin-bottom: 8px; }
.modal-card .sp-id h2 { font-size: 30px; margin: 0; }
.sp-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sp-sec { padding-top: 22px; }
.sp-sec h3 { margin: 0 0 10px; text-transform: uppercase; }
.sp-about { margin: 0; white-space: pre-line; font-weight: 300; font-size: 15px; line-height: 1.75; }
.sp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sp-list li { position: relative; padding-left: 22px; font-weight: 300; font-size: 14.5px; line-height: 1.6; }
.sp-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 11px; height: 1px; background: var(--line-2); }
.sp-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.examples.slots button { font-size: 14px; padding: 7px 12px; }
.hrs-row { align-items: center; flex-wrap: wrap; }
.hrs-day { width: 100px; font-weight: 500; text-transform: capitalize; }
.hrs-range { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hrs-range input[type=time] { width: auto; }

/* Close Review */
.call-tx { min-height: 220px; font-size: 14px; line-height: 1.55; }
.drop.slim { padding: 16px; }
.call-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.call-top { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.mail-subj { font-weight: 500; margin: 2px 0 10px; }
.mail-body { margin: 0; max-height: 380px; overflow: auto; }
.moment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.moment:last-child { border-bottom: 0; padding-bottom: 0; }
.moment:first-of-type { padding-top: 0; }
.moment-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.moment blockquote { margin: 10px 0; padding: 2px 0 2px 14px; border-left: 1px solid var(--line-2); font-weight: 300; font-size: 15px; }
.moment p { margin: 0 0 8px; font-size: 14px; font-weight: 300; }
.moment .copybox, .qa .copybox { margin: 6px 0 0; }

/* ---------- overflow guards ----------
   Names, links, pasted text and AI output can be one long word: wrap it rather than pushing the page sideways. */
main, .modal-card, .toast { overflow-wrap: anywhere; }
.btn, .tabs a, .chip, .seg button, .seg a, th { overflow-wrap: normal; }
.list-row > div, .person > div, .grid > *, .stack > * { min-width: 0; }
.copybox { overflow-x: auto; }
.toast { max-width: calc(100vw - 32px); }
.modal-card { max-height: min(88vh, 88svh); overscroll-behavior: contain; }
.modal { padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); }
img { max-width: 100%; }

/* ---------- motion ---------- */
/* page changes (connect.html route()): the old page goes at once; a slow new one shows a placeholder until it's drawn */
main.switching { opacity: 0; }
main.loading > * { display: none !important; }
main.loading::before, main.loading::after { content: ""; display: block; border: 1px solid var(--line); margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(207, 227, 242, .02), rgba(207, 227, 242, .07), rgba(207, 227, 242, .02)); background-size: 200% 100%; animation: sh 1.6s infinite linear; }
main.loading::before { height: 92px; width: min(560px, 100%); }
main.loading::after { height: 240px; }
@keyframes mc-rise { from { opacity: .01; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mc-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- sign-in (signed out): the landing page's first screen, with the moat scene behind it ---------- */
body.signed-out .top { display: none; }
body.signed-out main { max-width: none; padding: 0; }
body.signed-out::before, body.signed-out::after { display: none; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 2.4s ease; z-index: 0; }
#scene.ready { opacity: 1; }
.signin .vignette { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(4, 6, 10, .85) 100%); }
.signin-hero { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: 22vh 20px 40px; gap: 2.2rem; text-align: center; pointer-events: none; }
.signin-hero > * { pointer-events: auto; }
.signin .wordmark { font-weight: 200; font-size: clamp(3rem, 9vw, 7.5rem); letter-spacing: .5em; margin: 0 -.5em -1rem 0; line-height: 1; text-transform: lowercase; opacity: .01; animation: mc-rise 2.2s .4s var(--ease) forwards; }
.signin .kicker { margin: 0; font-weight: 300; font-size: .74rem; letter-spacing: .6em; margin-right: -.6em; text-transform: uppercase; color: rgba(230, 238, 245, .78); opacity: .01; animation: mc-rise 2.2s .55s var(--ease) forwards; }
.signin h1 { margin: 0; font-weight: 300; font-size: clamp(.95rem, 1.6vw, 1.15rem); letter-spacing: .14em; line-height: 1.6; max-width: 34em; opacity: .01; animation: mc-rise 2.2s .7s var(--ease) forwards; }
.signin .cta { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; font-weight: 300; font-size: .75rem; letter-spacing: .42em; text-transform: uppercase;
  padding: .95rem 1.9rem .95rem 2.32rem; border: 1px solid var(--line-2); background: rgba(4, 6, 10, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .4s ease, background .4s ease, color .4s ease; opacity: .01; animation: mc-rise 2.2s .9s var(--ease) forwards; }
.signin .cta svg { width: 16px; height: 12px; fill: currentColor; flex: 0 0 auto; }
.signin .cta:hover, .signin .cta:focus-visible { border-color: var(--ink); background: var(--ink); color: var(--bg); outline: none; text-decoration: none; }
.signin .about .note { margin: 1.2rem 0 0; font-size: .8rem; font-weight: 300; letter-spacing: .04em; color: var(--muted); }
.lock-card h2, .card h2.big { font-size: 22px; font-weight: 200; letter-spacing: .005em; text-transform: none; }
.signin [data-flash]:empty { display: none; }
.signin [data-flash] { max-width: 460px; width: 100%; text-align: left; }
.signin [data-flash] .notice { margin: 0 !important; backdrop-filter: blur(6px); }
.signin .about { position: relative; z-index: 1; isolation: isolate; max-width: 660px; margin: 0 auto; padding: 8rem 1.4rem 3rem; text-align: center; }
.signin .about::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none; background: linear-gradient(rgba(4, 6, 10, 0), rgba(4, 6, 10, .88) 8rem); }
.signin .about h2 { font-weight: 200; font-size: 1.15rem; letter-spacing: .32em; text-transform: lowercase; margin-bottom: 1.4rem; }
.signin .about > p { font-weight: 300; font-size: .92rem; line-height: 1.85; color: var(--muted); margin: 0; }
.signin .about ul { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; gap: 1.6rem; }
.signin .about li { display: grid; gap: .4rem; }
.signin .about li b { font-weight: 300; font-size: .72rem; letter-spacing: .38em; text-transform: uppercase; }
.signin .about li span { font-weight: 300; font-size: .88rem; color: var(--muted); }
.signin-foot { position: relative; z-index: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; padding: 2rem 1rem calc(2.4rem + env(safe-area-inset-bottom, 0px));
  font-weight: 300; font-size: .72rem; letter-spacing: .2em; color: var(--muted); background: rgba(4, 6, 10, .88); box-shadow: 0 0 0 100vmax rgba(4, 6, 10, .88); clip-path: inset(0 -100vmax); }
.signin-foot a { color: var(--muted); }
.signin-foot a:hover { color: var(--ink); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .signin .wordmark, .signin .kicker, .signin h1, .signin .cta { opacity: 1; }
}

/* ---------- header on narrower screens: tabs move to their own row ---------- */
@media (max-width: 1240px) {
  .top-in { flex-wrap: wrap; gap: 6px 16px; padding-bottom: 0; }
  .tabs { order: 3; width: calc(100% + 40px); margin: 6px -20px 0; padding: 0 12px; border-top: 1px solid var(--line); }
  .tabs a { padding: 12px 9px; }
  .tabs a.on { box-shadow: inset 0 -1px 0 var(--ink); }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .top-in { gap: 6px 10px; padding: 12px 16px 0; }
  .brand .wm { font-size: 17px; }
  .brand .sub { margin-left: 12px; padding-left: 10px; letter-spacing: .3em; }
  .who { gap: 10px; }
  .chip { letter-spacing: .1em; padding: 4px 7px; }
  .who .link { letter-spacing: .14em; }
  .tabs { width: calc(100% + 32px); margin: 6px -16px 0; padding: 0 8px; }
  .tabs { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .tabs a { padding: 12px 8px; }
  main { padding: 30px 16px 70px; }
  h1 { font-size: 28px; }
  .person { grid-template-columns: 36px 1fr; padding: 14px; }
  .avatar { width: 36px; height: 36px; }
  .acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .acts .btn { flex: 1; }
  .ask { flex-direction: column; } .ask input { border-right: 1px solid var(--line-2); border-bottom: 0; } .ask .btn { padding: 13px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; }
  .tool-grid, .sp-grid, .call-top { grid-template-columns: 1fr; }
  .sp-top { grid-template-columns: 1fr; gap: 16px; }
  .sp-ph.big { width: 104px; height: 104px; }
  .sp-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sp-ph.mid { width: 76px; height: 76px; }
  .modal-card.sp-modal { padding: 26px 20px; }
  .modal-card .sp-id h2 { font-size: 26px; }
  .hrs-day { width: 100%; }
  .report-head { grid-template-columns: 1fr; justify-items: start; }
  .sec-top { flex-wrap: wrap; } .sec-top .lbl { width: auto; flex: 1 1 100%; }
  .card { padding: 18px; }
  .modal-card { padding: 22px; }
  .signin-hero { padding-top: 24vh; gap: 2rem; }
  .signin .cta { letter-spacing: .32em; padding: .9rem 1.4rem .9rem 1.72rem; }
}
