/* One look for every client's app and our dashboard: mint and light blue, quiet and sharp. */
:root {
  --bg: #f3faf9;
  --bg-glow: #e6f5fb;
  --surface: #ffffff;
  --soft: #f5fbfb;
  --ink: #0e2a33;
  --muted: #557079;
  --line: #d9ebeb;
  --line-strong: #bfdcdd;
  --mint: #19b394;
  --mint-soft: #e2f7f0;
  --mint-ink: #0b6f5b;
  --sky: #2f9fe0;
  --sky-soft: #e4f3fc;
  --sky-ink: #0d5f91;
  --primary: #0f8a87;
  --primary-hover: #0c7472;
  --on-primary: #ffffff;
  --warn-soft: #fff4dc;
  --warn-ink: #7a5300;
  --shadow: 0 1px 2px rgba(14, 42, 51, .05), 0 6px 20px -8px rgba(14, 42, 51, .12);
  --radius: 14px;
  --radius-sm: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1a1f;
    --bg-glow: #0e2530;
    --surface: #11242b;
    --soft: #0e1f25;
    --ink: #e6f4f3;
    --muted: #8fb0b4;
    --line: #1f3a42;
    --line-strong: #2c4c55;
    --mint: #3fd5b2;
    --mint-soft: #123a33;
    --mint-ink: #7fe8cd;
    --sky: #5bb9ef;
    --sky-soft: #11304a;
    --sky-ink: #9cd5f7;
    --primary: #2bc4b5;
    --primary-hover: #4fd6c8;
    --on-primary: #05201e;
    --warn-soft: #3a2c0c;
    --warn-ink: #f5d08a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -10px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(1200px 500px at 85% -10%, var(--bg-glow), transparent 60%), var(--bg);
  background-attachment: fixed;
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Inter, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--sky) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--mint-soft); }

/* Header */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar div { max-width: 920px; margin: 0 auto; padding: 10px 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bar strong { flex: 1; font-size: 16px; letter-spacing: -.01em; }
.bar strong a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.bar strong a::before {
  content: ""; width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 2px 8px -2px color-mix(in srgb, var(--sky) 60%, transparent);
}
.bar .btn { padding: 7px 12px; font-size: 14px; border-color: transparent; background: transparent; box-shadow: none; }
.bar .btn:hover { background: var(--soft); border-color: var(--line); }

/* Layout */
main { max-width: 920px; margin: 0 auto; padding: 32px 20px 72px; display: flex; flex-direction: column; gap: 18px; }
main.small { max-width: 420px; padding-top: 12vh; }
main.small > h1 { text-align: center; }
main.small > h1::before {
  content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 13px;
  background: linear-gradient(135deg, var(--mint), var(--sky));
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--sky) 70%, transparent);
}
main.small > .muted, main.small > p:last-child { text-align: center; }
h1 { font-size: 28px; line-height: 1.2; margin: 0; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 12px; margin: 0; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
p { margin: 0; }
form { margin: 0; }
ul { margin: 0; padding-left: 20px; }
li + li { margin-top: 4px; }
.muted { color: var(--muted); font-size: 14px; }
.top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.name { font-weight: 650; font-size: 17px; overflow-wrap: anywhere; letter-spacing: -.01em; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wide { overflow-x: auto; }
[hidden] { display: none !important; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: var(--shadow);
}
a.card, .lead { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover, .lead:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(14, 42, 51, .05), 0 12px 28px -12px rgba(14, 42, 51, .2); color: inherit; }

/* Tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; box-shadow: var(--shadow); }
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 550; color: var(--muted); }
.tabs a:hover { color: var(--ink); background: var(--soft); }
.tabs a[aria-current] { background: var(--primary); color: var(--on-primary); }

/* Badges */
.score {
  background: var(--mint-soft); color: var(--mint-ink); font-weight: 650; font-size: 12.5px;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid color-mix(in srgb, var(--mint) 25%, transparent);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: 14.5px; line-height: 1.2;
  padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--soft); border-color: var(--primary); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.main, .btn.primary {
  background: var(--primary); color: var(--on-primary); border-color: transparent;
  box-shadow: 0 1px 1px rgba(14, 42, 51, .08), 0 6px 16px -8px color-mix(in srgb, var(--primary) 80%, transparent);
}
.btn.main:hover, .btn.primary:hover { background: var(--primary-hover); color: var(--on-primary); }

/* Notices */
.notice {
  background: var(--sky-soft); color: var(--sky-ink); border: 1px solid color-mix(in srgb, var(--sky) 30%, transparent);
  border-radius: var(--radius-sm); padding: 11px 14px; font-weight: 550;
}
.notice[role="alert"] { background: var(--warn-soft); color: var(--warn-ink); border-color: color-mix(in srgb, var(--warn-ink) 25%, transparent); }

/* Forms */
label { font-weight: 600; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
input, textarea, select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
textarea { min-height: 260px; resize: vertical; line-height: 1.55; }
textarea.short { min-height: 110px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
label.check input { width: 18px; flex: none; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-weight: 600; font-size: 13.5px; padding: 0 0 6px; }
fieldset label.check { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); }
fieldset label.check:has(input:checked) { border-color: var(--primary); background: var(--mint-soft); }

/* Password eye */
.pw { position: relative; display: block; }
.pw input { padding-right: 52px; }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.eye:hover { color: var(--ink); }
.eye.on { color: var(--primary); }
.eye:not(.on) .slash { display: none; }

/* Draft text */
.draft { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Tables */
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-strong); }
td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }

@media (max-width: 560px) {
  main { padding: 22px 16px 56px; }
  h1 { font-size: 24px; }
  .card { padding: 16px; }
  .bar div { padding: 8px 12px; gap: 2px 4px; }
  .bar strong { flex-basis: 100%; padding: 2px 4px 4px; }
  .bar .btn { padding: 6px 10px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  a.card:hover, .lead:hover, .btn:active { transform: none; }
}

/* Wide pages: a list with a side column */
main:has(> .split) { max-width: 1200px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.page-head .muted { margin-top: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
.side .card { padding: 18px; gap: 14px; }

/* Lead rows */
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 18px; gap: 16px; align-items: center; padding: 16px 18px; color: inherit; text-decoration: none; transition: background .15s; }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: color-mix(in srgb, var(--mint-soft) 45%, var(--surface)); color: inherit; }
.row:hover .chev { color: var(--primary); transform: translateX(2px); }
.row-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row-main .name { font-size: 16px; }
.about { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.when { color: var(--muted); font-size: 12.5px; }
.chev { color: var(--line-strong); transition: transform .15s, color .15s; }

.fit {
  --p: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--sky) calc(var(--p) * 1%), var(--line) 0);
}
.fit.high { background: conic-gradient(var(--mint) calc(var(--p) * 1%), var(--line) 0); }
.fit b { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 15px; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; font-weight: 550; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.pill { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.pill.ok { background: var(--mint-soft); color: var(--mint-ink); border-color: color-mix(in srgb, var(--mint) 25%, transparent); }
.pill.sky { background: var(--sky-soft); color: var(--sky-ink); border-color: color-mix(in srgb, var(--sky) 25%, transparent); }
.empty { color: var(--muted); }

/* Side numbers */
.funnel { display: flex; flex-direction: column; gap: 12px; }
.stage { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.stage-top { display: flex; justify-content: space-between; gap: 8px; }
.stage-top .muted { font-size: 12.5px; }
.meter { display: block; height: 8px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mint), var(--sky)); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.kpi b { font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: 12.5px; }
.towns { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.towns li { display: grid; grid-template-columns: 96px 1fr 28px; gap: 10px; align-items: center; font-size: 14px; margin: 0; }
.towns li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.towns b { text-align: right; }

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 560px) {
  .row { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; }
  .row-side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .chev { display: none; }
  .fit { width: 40px; height: 40px; }
  .fit b { width: 31px; height: 31px; font-size: 14px; }
}
.about::first-letter { text-transform: uppercase; }
.split > * { min-width: 0; }
body:has(.split) .bar div { max-width: 1200px; }

/* Team page */
main:has(> .team) { max-width: 1200px; }
body:has(.team) .bar div { max-width: 1200px; }
.eyebrow { color: var(--primary); font-weight: 650; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.team-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.team-head h1 { font-size: 34px; }
.team-head .muted { margin-top: 6px; }
.shift { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shift i, .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; display: inline-block; }
.shift.done i, .dot.done { background: var(--mint); }
.shift.working i, .dot.working { background: var(--sky); box-shadow: 0 0 0 0 var(--sky); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 22px; }
.mate {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 22px; display: flex; flex-direction: column; gap: 16px; overflow: hidden;
}
.mate::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 96px; background: linear-gradient(120deg, var(--mint-soft), var(--sky-soft)); }
.mate > * { position: relative; }
.mate-top { display: flex; gap: 16px; align-items: flex-end; }
.avatar { border-radius: 50%; border: 4px solid var(--surface); box-shadow: 0 6px 18px -8px rgba(14, 42, 51, .35); background: var(--surface); flex: none; }
.mate-top > div { padding-bottom: 4px; min-width: 0; }
.mate-name { font-size: 21px; color: var(--ink); text-transform: none; letter-spacing: -.01em; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai { font-size: 11px; font-weight: 650; letter-spacing: .03em; color: var(--sky-ink); background: var(--sky-soft); border: 1px solid color-mix(in srgb, var(--sky) 30%, transparent); border-radius: 999px; padding: 2px 8px; }
.mate-role { color: var(--muted); font-weight: 550; margin-top: 2px; }
.mate-hours { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.mate-intro { font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mate-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mate-numbers div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.mate-numbers b { font-size: 24px; line-height: 1.1; letter-spacing: -.02em; }
.mate-numbers span { font-size: 12px; color: var(--muted); }
.mate-today h3 { font-size: 12px; margin: 0 0 6px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mate-today ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.mate-today li { display: flex; gap: 8px; margin: 0; }
.mate-today li::before { content: ""; width: 16px; height: 16px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--mint-soft); }
.mate-today li { position: relative; }
.mate-today li::after { content: ""; position: absolute; left: 5.5px; top: 5px; width: 4px; height: 7px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mate-go { margin-top: auto; width: 100%; padding: 12px 16px; }
.mate.hire { border-style: dashed; box-shadow: none; background: transparent; align-items: center; justify-content: center; text-align: center; min-height: 260px; }
.mate.hire::before { display: none; }
.mate.hire .avatar { opacity: .7; }
.mate.hire .mate-name { justify-content: center; font-size: 18px; }
@media (max-width: 560px) {
  .team { grid-template-columns: 1fr; }
  .team-head h1 { font-size: 28px; }
  .avatar { width: 80px; height: 80px; }
}
.crumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; text-decoration: none; box-shadow: var(--shadow); }
.crumb img { border-radius: 50%; }
.crumb b { color: var(--ink); }
.crumb:hover { border-color: var(--primary); color: var(--muted); }
