/* Everest Futures portal. Same palette and type as the main site. */
:root {
  --night: #0a0c10; --twilight: #0c1222;
  --canvas: #f3f5f8; --card: #ffffff; --tint: #f7f8fa;
  --line: #e4e8ed; --line-2: #d3d9e0;
  --ink: #0b0d12; --ink-2: #3e444d; --ink-3: #69717d;
  --side-ink: #a4acb8;
  --glow: #f2a766; --glow-ink: #a9521a; --glow-wash: #fdf1e7;
  --rose: #ef8e7f; --rose-ink: #b03f4f; --rose-wash: #fcebe9;
  --glacier: #6ea8dc; --glacier-ink: #1d6896; --glacier-wash: #eaf2fa;
  --violet: #a99be6; --violet-ink: #5b4fb8; --violet-wash: #efedfb;
  --ok: #2f7d4f; --ok-wash: #e7f3eb; --warn: #9a5a10; --warn-wash: #fdf1e2; --bad: #a33a46; --bad-wash: #fbeaea;
  --sans: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 14px; --r-sm: 9px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--canvas); }
body { margin: 0; font: 400 15px/1.5 var(--sans); color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--glacier-ink); text-underline-offset: 3px; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.sp { flex: 1; }
.nowrap { white-space: nowrap; }
.ta-r { text-align: right; }
.strong { font-weight: 600; }
.is-late { color: var(--bad); font-weight: 500; }
.ic { width: 19px; height: 19px; flex: none; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--ink-3); font-size: 14px; }

/* ---------- shell ---------- */
.pt { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--night) 0 264px, var(--canvas) 264px); }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 22px 14px 18px; color: var(--side-ink);
  background: linear-gradient(180deg, var(--twilight) 0%, var(--night) 46%); }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 30px; color: #fff; text-decoration: none; }
.brand img { width: 46px; height: 38px; object-fit: contain; }
.brand-t { display: flex; flex-direction: column; gap: 6px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .2); }
.brand-t b { font-size: 14px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; line-height: 1; color: #fff; }
.brand-t i { font-style: normal; font-size: 8.5px; font-weight: 500; letter-spacing: .56em; text-transform: uppercase; line-height: 1; color: var(--glow); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-i { display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--side-ink);
  font-size: 15px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.nav-i:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-i.is-on { background: #fff; color: var(--ink); }
.nav-i.is-on .ic { color: var(--glow-ink); }
.nav-chev { margin-left: auto; width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav-ext { margin-left: auto; width: 14px; height: 14px; opacity: .55; }
.nav-g.is-open > .nav-gt { color: #fff; }
.nav-g.is-open .nav-chev { transform: rotate(180deg); }
.nav-sub { display: none; margin: 2px 0 8px 21px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .13); }
.nav-g.is-open .nav-sub { display: grid; gap: 1px; }
.nav-s { display: block; padding: 8px 12px; border-radius: 8px; color: var(--side-ink); font-size: 14.5px; text-decoration: none; transition: color .15s, background-color .15s; }
.nav-s:hover { color: #fff; }
.nav-s.is-on { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 2px 0 0 var(--glow); }
.side-f { margin-top: auto; padding-top: 28px; }
.side-f p { margin-top: 14px; padding: 0 10px; font-size: 12px; color: rgba(255, 255, 255, .38); }
.btn-side { width: 100%; height: 40px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.btn-side:hover { background: rgba(255, 255, 255, .1); }
.scrim { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 32px; border-bottom: 1px solid var(--line);
  background: rgba(243, 245, 248, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.me { position: relative; }
.me-btn { display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px 14px; border: 0; border-radius: 999px; background: none; cursor: pointer; }
.me-btn:hover { background: rgba(11, 13, 18, .05); }
.me-t { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.me-t b { font-size: 14px; font-weight: 600; }
.me-t i { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(10, 12, 16, .12); }
.me-mail { padding: 10px 10px 12px; font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--line); margin-bottom: 6px; overflow-wrap: anywhere; }
.me-out { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: none; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
.me-out:hover { background: var(--canvas); }
.me-out .ic { width: 17px; height: 17px; color: var(--ink-3); }
.page { width: 100%; max-width: 1320px; padding: 34px 40px 72px; outline: 0; }
.loading { padding: 80px 0; text-align: center; color: var(--ink-3); font-size: 14px; }

/* ---------- page header ---------- */
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.ph h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.ph-sub { margin-top: 8px; font-size: 15.5px; color: var(--ink-3); max-width: 64ch; text-wrap: pretty; }
.ph-a { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ph-person { align-items: center; }
.who-lg { display: flex; align-items: center; gap: 18px; }
.who-lg .chips { margin-top: 10px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; color: var(--ink-3); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.back:hover { color: var(--ink); }
.back .ic { width: 16px; height: 16px; }

/* ---------- cards and grid ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: 1 / -1; }
.stack { display: grid; gap: 20px; align-content: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; min-width: 0; }
.card + .card, .grid + .card, .card + .grid, .stats + .card, .search + .card, .hint + .card { margin-top: 20px; }
.grid > *, .stack > * { margin-top: 0 !important; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-h h2, .card > h2 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.card > h2 { margin-bottom: 12px; }
.card-h .muted { margin-top: 2px; font-size: 13.5px; }
.card-link { font-size: 13.5px; font-weight: 500; color: var(--ink-3); text-decoration: none; }
.card-link:hover { color: var(--ink); text-decoration: underline; }
.card-f { margin-top: 20px; }
.card h3 { font-size: 13.5px; font-weight: 500; color: var(--ink-3); margin-bottom: 8px; }
.card-night { background: radial-gradient(120% 90% at 85% 0%, rgba(239, 142, 127, .14), transparent 55%), linear-gradient(180deg, var(--twilight), var(--night)); border-color: transparent; color: #f4f5f7; }
.card-night .card-link { color: rgba(255, 255, 255, .62); }
.card-night .card-link:hover { color: #fff; }
.card-climb { padding: 28px 32px 24px; }
.empty { padding: 30px 0; text-align: center; }
.empty h2 { font-size: 18px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }
.empty-card { max-width: 560px; margin: 48px auto; padding: 40px; text-align: center; }
.empty-card h1, .empty-card h2 { font-size: 22px; margin-bottom: 8px; letter-spacing: -.02em; }
.empty-card .btn { margin-top: 18px; }
.locked .ic { width: 28px; height: 28px; margin: 0 auto 14px; color: var(--ink-3); }
.hint { margin: -4px 0 18px; font-size: 13.5px; color: var(--ink-3); max-width: 80ch; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bullets { padding-left: 18px; color: var(--ink-2); }
.bullets li { margin: 7px 0; max-width: 72ch; }
.bullets li::marker { color: var(--glow); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn .ic { width: 16px; height: 16px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #262a32; }
.btn-secondary { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover:not(:disabled) { border-color: var(--ink-3); }
.btn-quiet { background: none; color: var(--ink-2); }
.btn-quiet:hover:not(:disabled) { background: rgba(11, 13, 18, .05); color: var(--ink); }
.btn-danger { background: var(--rose-ink); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #93323f; }
.btn-danger-quiet { background: none; color: var(--rose-ink); }
.btn-danger-quiet:hover { background: var(--rose-wash); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; height: 46px; font-size: 15px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink-3); cursor: pointer; }
.icon-btn:hover { background: rgba(11, 13, 18, .06); color: var(--ink); }
.icon-btn .ic { width: 17px; height: 17px; }
.top .menu-btn { display: none; }
.link { padding: 0; border: 0; background: none; color: var(--glacier-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-out { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; text-decoration: none; }
.link-out:hover { text-decoration: underline; }
.link-out .ic { width: 14px; height: 14px; }

/* ---------- people, chips, pills ---------- */
.avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--night); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .03em; box-shadow: inset 0 0 0 1.5px rgba(242, 167, 102, .55); }
.avatar.lg { width: 48px; height: 48px; font-size: 15px; }
.avatar.xl { width: 64px; height: 64px; font-size: 20px; }
.person { display: flex; align-items: center; gap: 12px; }
.person b { display: block; font-size: 15px; font-weight: 600; }
.person a { font-size: 13.5px; overflow-wrap: anywhere; }
.who { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.who b { font-size: 14.5px; font-weight: 600; }
.who .muted { font-size: 13px; }
a.who:hover b { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--tint); color: var(--ink-2); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-glow { background: var(--glow-wash); color: var(--glow-ink); }
.chip-glacier { background: var(--glacier-wash); color: var(--glacier-ink); }
.chip-rose { background: var(--rose-wash); color: var(--rose-ink); }
.chip-violet { background: var(--violet-wash); color: var(--violet-ink); }
td .chips { margin-top: 6px; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pill-ok { background: var(--ok-wash); color: var(--ok); }
.pill-warn { background: var(--warn-wash); color: var(--warn); }
.pill-bad { background: var(--bad-wash); color: var(--bad); }
.pill-neutral { background: #eef1f4; color: #555c66; }
.pill-info, .pill-glacier { background: var(--glacier-wash); color: var(--glacier-ink); }
.pill-rose { background: var(--rose-wash); color: var(--rose-ink); }
.pill-violet { background: var(--violet-wash); color: var(--violet-ink); }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.flags span { padding: 2px 8px; border-radius: 6px; background: var(--warn-wash); color: var(--warn); font-size: 12px; font-weight: 500; }
td .flags { margin-left: 48px; }
.tally { display: inline-flex; align-items: baseline; gap: 6px; padding: 0 4px; font-size: 13.5px; color: var(--ink-3); }
.tally b { font-size: 15px; color: var(--ink); }

/* ---------- dashboard ---------- */
.facts { margin-top: 18px; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-2); font-size: 14.5px; }
.facts dd { font-size: 14.5px; font-weight: 500; text-align: right; }
.facts dd b.num { font-size: 15px; }
.goals { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--tint); }
.goals p { color: var(--ink-2); font-size: 14.5px; }
.goals p + p { margin-top: 8px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.next-when { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.duo .muted { margin: 2px 0 12px; font-size: 14px; }
.tbl-h { margin: 20px 0 4px; }
.upcoming { list-style: none; padding: 0; }
.upcoming li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.upcoming .muted { margin: 2px 0 10px; font-size: 14px; }
.stat-card { display: flex; flex-direction: column; justify-content: space-between; }
.stat-l { font-size: 13px; color: var(--ink-3); }
.stat-card .stat-v { font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: 8px 0 18px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stat a { display: block; color: inherit; text-decoration: none; }
.stat a:hover .stat-l { color: var(--ink); text-decoration: underline; }
.stat-v { margin-top: 6px; font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat.is-warn .stat-v { color: var(--warn); }

/* ---------- climb ---------- */
.climb-svg { width: calc(100% + 12px); height: auto; margin: 2px -6px 0; }
.climb-peak { font: 11px var(--mono); fill: rgba(255, 255, 255, .55); letter-spacing: .04em; }
.climb-f { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.climb-l { font-size: 12.5px; color: rgba(255, 255, 255, .56); }
.climb-v { margin-top: 4px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.climb-v.num { font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.climb-v span { font-size: 14px; color: rgba(255, 255, 255, .56); }
.climb-s { margin-top: 3px; font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.climb-n { text-align: right; flex: none; }

/* ---------- tables ---------- */
.tbl-wrap { position: relative; overflow-x: auto; margin: 0 -2px; padding: 0 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl-people td { vertical-align: top; }
.tbl-people td.ta-r { vertical-align: middle; }
.tbl .num { font-size: 13.5px; }
.cell-note { font-size: 13px; margin-top: 2px; max-width: 46ch; }
.row-link { cursor: pointer; }
.row-link:hover td { background: #fafbfc; }

/* ---------- tasks ---------- */
.tasks { list-style: none; padding: 0; }
.task { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task-c { position: relative; flex: none; width: 20px; height: 20px; margin-top: 1px; }
.task-c input { position: absolute; inset: 0; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.task-c .box { display: block; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-2); background: #fff center / 12px no-repeat; transition: background-color .15s, box-shadow .15s; }
.task-c input:hover + .box { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.task-c input:checked + .box { background-color: var(--ink); box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.25 5 8.75 9.5 3.5' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.task-c input:focus-visible + .box { outline: 2px solid var(--glow); outline-offset: 2px; }
.task-b { flex: 1; min-width: 0; }
.task-t { font-size: 15px; font-weight: 500; }
.task.is-done .task-t { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.task-d { margin-top: 2px; font-size: 14px; }
.task-m { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.task-a { display: flex; flex: none; }
.grp-h { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 2px; }
.card .grp-h:first-child { margin-top: 0; }
.grp-h span { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.done-list { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.done-list summary { cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.done-list summary span { margin-left: 6px; }

/* ---------- roadmap ---------- */
.ms-list { list-style: none; padding: 0; }
.ms { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ms:last-child { border-bottom: 0; }
.ms-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 11.5px; color: var(--ink-3); box-shadow: inset 0 0 0 1.25px var(--line-2); }
.ms-done .ms-n { background: var(--glow); color: #fff; box-shadow: none; }
.ms-in_progress .ms-n { color: var(--glow-ink); box-shadow: inset 0 0 0 1.5px var(--glow); }
.ms-t { font-size: 15.5px; font-weight: 500; }
.ms-done .ms-t { color: var(--ink-2); }
.ms-m { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.ms-b > .muted { margin-top: 6px; font-size: 14px; }
.ms-a { display: flex; align-items: center; gap: 4px; }
.select-sm { height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-size: 13.5px; cursor: pointer; }

/* ---------- reviews and questions ---------- */
.reqs { list-style: none; padding: 0; }
.req { padding: 18px 0; border-bottom: 1px solid var(--line); }
.req:first-child { padding-top: 4px; }
.req:last-child { border-bottom: 0; padding-bottom: 4px; }
.req-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.req-who { font-size: 12.5px; font-weight: 600; color: var(--glacier-ink); margin-bottom: 2px; }
.req-t { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.req-m { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.req-body { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; max-width: 72ch; }
.req-body p + p, .reply p + p, .tl-b p + p, .dlg-read p + p { margin-top: 8px; }
.req .row { margin-top: 12px; }
.reply { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--tint); box-shadow: inset 2px 0 0 var(--glow); max-width: 80ch; }
.reply-l { margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.reply-l span { font-weight: 400; color: var(--ink-3); }
.reply p { color: var(--ink-2); font-size: 14.5px; }
.reply .link-out { margin-top: 8px; }

/* ---------- mentors ---------- */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #e6e9ee; }
.seg-b { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.seg-b.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(10, 12, 16, .08); }
.seg-b .num { font-size: 12px; color: var(--ink-3); }
.seg-filter { margin-bottom: 16px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-filter::-webkit-scrollbar { display: none; }
.seg-filter .seg-b { flex: none; }
.tabs { display: flex; gap: 2px; margin-bottom: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-3); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.checkin-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; box-shadow: inset 3px 0 0 var(--line-2); }
.checkin-bar.is-ok { box-shadow: inset 3px 0 0 var(--ok); }
.checkin-bar.is-warn { box-shadow: inset 3px 0 0 #c47a1c; }
.checkin-bar.is-bad { box-shadow: inset 3px 0 0 var(--rose-ink); }
.ci-v { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 14px; }
.ci-note { margin-top: 8px; color: var(--ink-2); max-width: 72ch; }
.checkin-bar .row { flex: none; }
.timeline { list-style: none; padding: 0; }
.tl { position: relative; padding: 4px 0 22px 24px; border-left: 1px solid var(--line); margin-left: 6px; }
.tl:last-child { padding-bottom: 4px; }
.tl::before { content: ""; position: absolute; left: -5px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); box-shadow: 0 0 0 3px #fff; }
.tl-ok::before { background: var(--ok); } .tl-warn::before { background: #c47a1c; } .tl-bad::before { background: var(--rose-ink); }
.tl-h { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.tl-b { margin-top: 8px; color: var(--ink-2); max-width: 72ch; }

/* ---------- calendar ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: -4px 0 14px; }
.lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.lg i { width: 9px; height: 9px; border-radius: 3px; }
.lg-session i { background: var(--glacier); } .lg-task i { background: var(--glow); } .lg-milestone i { background: var(--violet); } .lg-deadline i { background: var(--rose); }
.cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal-w { padding: 8px 10px; font-size: 12px; font-weight: 500; color: var(--ink-3); background: var(--tint); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-c { display: flex; flex-direction: column; gap: 3px; min-height: 108px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.cal-c.is-pad { background: var(--tint); }
.cal-d { align-self: flex-start; padding: 1px 6px; font-size: 12px; color: var(--ink-3); border-radius: 999px; }
.cal-c.is-today .cal-d { background: var(--ink); color: #fff; }
.ev { display: block; padding: 2px 6px; border-radius: 5px; font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-session { background: var(--glacier-wash); color: var(--glacier-ink); }
.ev-task { background: var(--glow-wash); color: var(--glow-ink); }
.ev-milestone { background: var(--violet-wash); color: var(--violet-ink); }
.ev-deadline { background: var(--rose-wash); color: var(--rose-ink); }
.ev-more { padding: 0 6px; font-size: 11.5px; color: var(--ink-3); }
.cal-next .ic { transform: rotate(180deg); }
.cal-list { display: none; }
.cal-list ul { list-style: none; padding: 0; }
.cal-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cal-list li .num { flex: none; width: 52px; font-size: 13px; color: var(--ink-3); }

/* ---------- resources ---------- */
.folders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.folder { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: inherit; text-decoration: none; transition: border-color .2s; }
.folder:hover { border-color: var(--ink-3); }
.folder h2 { margin-top: 12px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.folder .muted { font-size: 14.5px; max-width: 52ch; }
.folder-i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.folder-i .ic { width: 21px; height: 21px; }
.folder-glow .folder-i, .res-glow { background: var(--glow-wash); color: var(--glow-ink); }
.folder-rose .folder-i, .res-rose { background: var(--rose-wash); color: var(--rose-ink); }
.folder-violet .folder-i, .res-violet { background: var(--violet-wash); color: var(--violet-ink); }
.folder-glacier .folder-i, .res-glacier { background: var(--glacier-wash); color: var(--glacier-ink); }
.folder-n { margin-top: auto; padding-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.folder-n b { font-size: 15px; color: var(--ink); }
.search { display: flex; align-items: center; gap: 10px; max-width: 520px; height: 44px; padding: 0 14px; margin-bottom: 18px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.search:focus-within { border-color: var(--glow); box-shadow: 0 0 0 3px rgba(242, 167, 102, .18); }
.search .ic { color: var(--ink-3); width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15px; }
.res-list { list-style: none; padding: 0; }
.res { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.res:first-child { padding-top: 2px; }
.res:last-child { border-bottom: 0; padding-bottom: 2px; }
.res-i { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; }
.res-i .ic { width: 18px; height: 18px; }
.res-b { flex: 1; min-width: 0; }
.res-t { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.res-t:hover { text-decoration: underline; }
.res-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.res-d { margin-top: 4px; font-size: 14px; max-width: 72ch; }
.res-a { display: flex; align-items: center; gap: 4px; flex: none; }
.res-a .btn .ic { width: 14px; height: 14px; }

/* ---------- dialogs ---------- */
.dlg { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 24px 64px rgba(10, 12, 16, .24); }
.dlg-sm { width: min(440px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(10, 12, 16, .5); backdrop-filter: blur(2px); }
.dlg > form { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.dlg-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px 0; }
.dlg-h h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.dlg-intro { padding: 8px 24px 0; color: var(--ink-3); font-size: 14.5px; }
.dlg-b { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 24px; overflow-y: auto; }
.dlg-read { padding: 14px 24px 18px; overflow-y: auto; color: var(--ink-2); }
.dlg-read h3 { margin: 16px 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.is-full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field-l { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-3); }
.field-h { font-size: 12.5px; color: var(--ink-3); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .auth-form input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 15px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .auth-form input:focus { border-color: var(--glow); box-shadow: 0 0 0 3px rgba(242, 167, 102, .18); }
.field input:disabled { background: var(--tint); color: var(--ink-3); }
.checks, .radios { display: flex; flex-wrap: wrap; gap: 8px; }
.check, .radio { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 14px; cursor: pointer; }
.check:has(input:checked), .radio:has(input:checked) { border-color: var(--ink); background: var(--tint); }
.check input, .radio input, .toggle input { accent-color: var(--ink); margin: 0; }
.toggle { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.toggle input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.dlg-err { padding: 0 24px 4px; color: var(--bad); font-size: 13.5px; font-weight: 500; }
.dlg-err:empty { display: none; }
.dlg-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 24px 20px; border-top: 1px solid var(--line); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 10px; background: var(--night); color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 30px rgba(10, 12, 16, .25); opacity: 0; transform: translate(-50%, 16px); transition: opacity .2s, transform .25s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--rose-ink); }

/* ---------- sign in ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(440px, 1fr); min-height: 100vh; }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 44px 44px; overflow: hidden; color: #fff; background: var(--night); isolation: isolate; }
.auth-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; z-index: -2; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 16, .62) 0%, rgba(10, 12, 16, .05) 38%, rgba(10, 12, 16, .25) 62%, rgba(10, 12, 16, .9) 100%); }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand img { width: 46px; height: 38px; object-fit: contain; }
.auth-copy { max-width: 560px; }
.auth-k { font-size: 14px; color: rgba(255, 255, 255, .7); }
.auth-h { max-width: 15ch; margin-top: 10px; font-size: clamp(28px, 3.1vw, 44px); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.auth-pane { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; background: var(--canvas); }
.auth-card { width: min(400px, 100%); }
.auth-card h1 { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.auth-sub { margin: 10px 0 24px; color: var(--ink-3); font-size: 15px; }
.auth-sub + .auth-sub { margin-top: -12px; }
.auth-sub b { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.auth-note { margin: -8px 0 18px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ok-wash); color: var(--ok); font-size: 14px; }
.btn-google { width: 100%; height: 46px; background: #fff; border-color: var(--line-2); color: var(--ink); font-size: 15px; gap: 12px; }
.btn-google:hover { border-color: var(--ink-3); }
.btn-google svg { width: 18px; height: 18px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--ink-3); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-form .field-l + input { margin-bottom: 10px; }
.auth-form input { height: 46px; }
.auth-err { min-height: 0; margin: 0 0 8px; color: var(--bad); font-size: 13.5px; font-weight: 500; }
.auth-err:empty { display: none; }
.auth-card > .auth-err { margin-top: 12px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; font-size: 14px; }
.auth-links a { color: var(--ink-2); }
.auth-back { margin-top: 36px; font-size: 13.5px; }
.auth-back a { color: var(--ink-3); }
.demo { margin-top: 28px; padding: 16px; border: 1px dashed var(--line-2); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.demo p { width: 100%; font-size: 13px; color: var(--ink-3); }
code { font: 13px var(--mono); background: var(--tint); padding: 2px 6px; border-radius: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .span-4, .span-5, .span-7, .span-8 { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pt { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; width: 284px; transform: translateX(-100%); transition: transform .28s var(--ease); }
  .side-open .side { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .4); }
  .scrim { position: fixed; inset: 0; z-index: 30; background: rgba(10, 12, 16, .45); }
  .side-open .scrim { display: block; }
  .top .menu-btn { display: inline-grid; margin-left: -8px; }
  .pt { background: var(--canvas); }
  .top { padding: 0 20px; }
  .page { padding: 24px 20px 56px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { min-height: 240px; padding: 24px 22px 26px; }
  .auth-h { font-size: 28px; }
  .auth-pane { justify-content: flex-start; padding: 32px 20px 40px; }
  .folders { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ph { flex-direction: column; align-items: flex-start; }
  .ph-a { justify-content: flex-start; }
  .ph-person .who-lg { align-items: flex-start; }
  .card { padding: 20px; }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dlg-b { grid-template-columns: minmax(0, 1fr); }
  .cal-g, .legend { display: none; }
  .cal-list { display: block; }
  .checkin-bar { flex-direction: column; align-items: flex-start; }
  .climb-f { flex-direction: column; align-items: flex-start; gap: 12px; }
  .climb-n { text-align: left; }
  .me-t { display: none; }
  td .flags { margin-left: 0; }
  .res { flex-wrap: wrap; }
  .tbl-stack thead { display: none; }
  .tbl-stack, .tbl-stack tbody { display: block; }
  .tbl-stack tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .tbl-stack tr:last-child { border-bottom: 0; }
  .tbl-stack td { display: block; padding: 0 !important; border: 0 !important; white-space: normal; }
  .tbl-stack td:first-child, .tbl-stack td.ta-r { grid-column: 1 / -1; }
  .tbl-stack td.ta-r { text-align: left; }
  .tbl-stack td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
  .res-a { width: 100%; justify-content: flex-end; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .stat { padding: 14px 16px; }
  .stat-v { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- invites ---------- */
.code-box { margin: 16px 0 18px; padding: 18px 20px; border-radius: 12px; text-align: center; color: #fff;
  background: radial-gradient(120% 120% at 85% 0%, rgba(239, 142, 127, .18), transparent 55%), linear-gradient(180deg, var(--twilight), var(--night)); }
.code-l { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.code-v { margin: 6px 0 4px; font-size: 34px; font-weight: 600; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.code-s { font-size: 13px; color: rgba(255, 255, 255, .62); }
.copy-row { display: flex; gap: 8px; margin-top: 6px; }
.copy-row input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--tint); font-size: 13.5px; color: var(--ink-2); }
.dlg-read > p b { color: var(--ink); font-weight: 600; }
.invites { list-style: none; padding: 0; }
.inv { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.inv:first-child { padding-top: 2px; }
.inv:last-child { border-bottom: 0; padding-bottom: 2px; }
.inv-code { flex: none; padding: 6px 10px; border-radius: 8px; background: var(--tint); font-size: 14px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.inv-b { flex: 1; min-width: 0; }
.inv-t { font-size: 15px; font-weight: 500; }
.inv-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.inv-a { display: flex; gap: 6px; flex: none; }
#invites > .card { margin-top: 20px; }
.auth-join { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.auth-join a { color: var(--ink); font-weight: 500; }
.auth-hint { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
.auth-two { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.auth-two > div { display: flex; flex-direction: column; gap: 6px; }
.auth-form select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 15px; }
.auth-form .auth-two { margin-bottom: 10px; }
@media (max-width: 720px) { .inv { flex-wrap: wrap; } .inv-a { width: 100%; justify-content: flex-end; } }
