:root {
    color-scheme: dark;
    --canvas: #101419;
    --surface: #171d24;
    --ink: #f5f1e8;
    --muted: #a7b1be;
    --dim: #8b97a6;
    --line: #303a47;
    --lime: #e8fa9b;
    --aqua: #8ad8c2;
    --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.15rem; letter-spacing: -.025em; }
h3 { font-size: .95rem; }
p { color: var(--muted); line-height: 1.62; }
small, .subtle { color: var(--dim); }
small { font-size: .76rem; }
code, .mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; }
.mono { color: var(--muted); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: 10px; left: 10px; background: var(--surface); padding: 12px; }

.shell { display: grid; grid-template-columns: 202px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100dvh; background: #12171d; border-right: 1px solid #282f39; padding: 25px 15px 14px; display: flex; flex-direction: column; z-index: 2; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 1.05rem; font-weight: 760; letter-spacing: -.04em; line-height: 1.05; padding: 3px 9px; }
.brand:hover { text-decoration: none; }
.brand-line { display: block; color: var(--lime); }
.brand-icon { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid #dced96; color: var(--lime); border-radius: 10px; flex: 0 0 auto; background: #20271e; box-shadow: 0 0 16px #e8fa9b19; }
.brand-icon i { width: 14px; height: 14px; border: 1px solid currentColor; transform: rotate(45deg); position: relative; }
.brand-icon i::after { content: ''; width: 6px; height: 6px; background: currentColor; position: absolute; inset: 3px; }
.rail nav { display: grid; gap: 5px; margin-top: 47px; }
.rail nav a { display: flex; align-items: center; padding: 11px 12px; border-radius: 8px; color: var(--muted); font-size: .88rem; font-weight: 620; gap: 11px; }
.rail nav a span { color: var(--dim); font-size: 1rem; width: 17px; text-align: center; }
.rail nav a:hover, .rail nav a.active { background: #252e2a; color: var(--lime); text-decoration: none; }
.rail nav a.active span { color: var(--lime); }
.profile { margin-top: auto; padding: 14px 5px 1px; border-top: 1px solid #282f39; display: flex; align-items: center; gap: 8px; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: #343b2b; color: var(--lime); font-weight: 700; font-size: .8rem; }
.profile-name { flex: 1; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plain { border: 0; background: none; color: var(--muted); padding: 7px; }
.workspace { min-width: 0; }
.top { height: 62px; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(18px, 3.4vw, 54px); border-bottom: 1px solid #282f39; }
.top-date { color: var(--muted); font-size: .78rem; }
.signal { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 13px #e8fa9b80; margin: 0 5px 1px 0; }
.main-content { max-width: 1500px; padding: 28px clamp(18px, 3.4vw, 54px) 60px; margin: auto; }
.hero { isolation: isolate; position: relative; min-height: 245px; overflow: hidden; display: flex; align-items: flex-end; gap: 28px; justify-content: space-between; padding: clamp(22px, 3.3vw, 48px); background: linear-gradient(125deg, #202a25, #172422 66%, #223c34); border: 1px solid #3e5140; border-radius: 18px; }
.hero::before, .access-art::before { content: ''; position: absolute; inset: 0; z-index: -2; opacity: .38; background-image: linear-gradient(#9edfba38 1px, transparent 1px), linear-gradient(90deg, #9edfba38 1px, transparent 1px); background-size: 27px 27px; mask-image: linear-gradient(90deg, transparent, #000 58%); }
.hero::after { content: ''; position: absolute; z-index: -1; width: min(50vw, 530px); aspect-ratio: 1; right: -6%; bottom: -108%; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 42px, #c5f6ad35 43px 44px), radial-gradient(circle, #b5eb822e, transparent 68%); }
.hero-eyebrow { color: #c9dca7; }
.hero h1, .page-heading h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.07em; margin: 12px 0; font-weight: 800; }
.hero h1 span, .page-heading h1 span, .access-copy h1 span { color: var(--lime); }
.hero p { color: #cfdfcc; margin-bottom: 22px; }
.hero-side { flex: 0 1 246px; min-width: 186px; padding: 15px 18px; background: #13211dd9; border: 1px solid #62745a81; border-radius: 12px; display: grid; gap: 5px; }
.hero-side .mono { font-size: .65rem; color: #c2d7b7; }
.hero-side a { display: grid; gap: 2px; color: var(--ink); }
.hero-side strong { color: var(--lime); font-size: 2.2rem; letter-spacing: -.075em; line-height: 1.06; }
.hero-side span { font-size: .78rem; }
.button { min-height: 40px; align-items: center; justify-content: center; gap: 5px; display: inline-flex; width: fit-content; border: 1px solid transparent; border-radius: 8px; padding: 8px 13px; font-size: .83rem; font-weight: 740; text-align: center; }
.button:hover { text-decoration: none; }
.primary { background: var(--lime); color: #192215; }
.primary:hover { background: #f2ffb7; }
.secondary { color: var(--ink); background: #202731; border-color: #3c4653; }
.secondary:hover { border-color: #879680; background: #2a333f; }
.danger { color: #fda6a5; }
.wide { width: 100%; justify-content: space-between; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 15px 0 27px; }
.metrics a { position: relative; min-height: 105px; padding: 14px 15px; display: grid; align-content: space-between; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; }
.metrics a:hover { background: #1e2530; text-decoration: none; border-color: #586655; }
.metrics a span { color: var(--muted); font-size: .78rem; padding-right: 20px; font-weight: 650; }
.metrics strong { font-size: 2.15rem; font-weight: 780; letter-spacing: -.065em; }
.metric-icon { position: absolute; right: 14px; top: 13px; color: var(--aqua); font-style: normal; font-size: .85rem; }
.queue, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.queue { overflow: hidden; }
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; gap: 14px; }
.section-head p { margin-top: 3px; font-size: .75rem; }
.tabs { display: flex; background: #11161b; border: 1px solid #333c47; border-radius: 8px; padding: 3px; }
.tabs a { color: var(--muted); padding: 5px 11px; border-radius: 5px; font-size: .78rem; font-weight: 670; }
.tabs a.selected { color: var(--lime); background: #343e2b; }
.filters { display: flex; align-items: center; gap: 8px; padding: 0 18px 15px; flex-wrap: wrap; }
.filters input { flex: 1 1 245px; min-width: 195px; }
.filters select { width: auto; max-width: 200px; }
.filter-reset { font-size: .8rem; margin-left: 3px; }
.table-scroll { overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; min-width: 635px; text-align: left; font-size: .84rem; }
.data-table th { padding: 9px 13px; color: #b7bfca; font-size: .64rem; text-transform: uppercase; letter-spacing: .09em; font-family: var(--mono); background: #11171e; border-block: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 14px 13px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #1b242c; }
.data-table th:first-child, .data-table td:first-child { padding-left: 18px; }
.title-link { color: var(--ink); font-weight: 740; display: inline-block; }
.title-link:hover { color: var(--lime); }
.row-sub { display: block; color: var(--muted); font-size: .73rem; margin-top: 5px; }
.row-sub span { padding: 0 3px; color: var(--dim); }
.amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-arrow { color: var(--aqua); padding: 6px; font-size: 1.05rem; }
.data-table .empty { text-align: center; padding: 30px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid #52614a; border-radius: 999px; padding: 4px 8px; color: #d5e5be; background: #293329; font-size: .69rem; font-weight: 720; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stage-draft { background: #382f24; color: #ffd39a; border-color: #6e5136; }
.stage-submitted { background: #223346; color: #b9dcff; border-color: #475f7f; }
.stage-in_review { background: #352a46; color: #e6cbff; border-color: #675486; }
.stage-closed_won { background: #1f3e32; color: #a9f6cc; border-color: #3d735b; }
.stage-closed_lost { background: #442a2c; color: #f4b6bc; border-color: #6e494f; }
.board { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 10px; padding: 12px 17px 18px; overflow-x: auto; }
.lane { background: #11161c; border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-height: 245px; }
.lane-label { display: flex; justify-content: space-between; gap: 5px; align-items: center; margin-bottom: 10px; font-size: .8rem; color: var(--muted); }
.lane > p { font-size: .75rem; padding: 5px; }
.lane-card { display: grid; gap: 7px; margin-top: 8px; background: #212a32; padding: 11px; color: var(--ink); border: 1px solid #394550; border-radius: 8px; font-size: .85rem; }
.lane-card > span { color: var(--muted); font-size: .71rem; }
.lane-card:hover { border-color: var(--lime); text-decoration: none; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: .8rem; }

.page-heading { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; margin: 10px 0 23px; }
.page-heading h1 { font-size: clamp(2rem, 4.4vw, 3.65rem); line-height: 1.03; overflow-wrap: anywhere; }
.page-heading p { font-size: .88rem; }
.back { font-size: .84rem; color: var(--muted); margin: 3px 0 4px; display: inline-block; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.stack { display: grid; gap: 14px; min-width: 0; }
.panel { padding: 18px; }
.panel h2 { margin-bottom: 13px; }
.panel p { font-size: .88rem; }
.panel p + h3, .panel p + p { margin-top: 12px; }
.panel h3 + p { margin-top: 6px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.panel-head h2 { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-heading .actions { flex-shrink: 0; }
.prose { white-space: pre-line; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.tags span { font-size: .71rem; border: 1px solid #3b4751; background: #232c36; padding: 4px 8px; border-radius: 999px; color: #d1dae4; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.fact-grid > div { background: #12171d; border: 1px solid var(--line); border-radius: 8px; padding: 11px; overflow-wrap: anywhere; }
.fact-grid dt, .facts dt { color: var(--muted); font-size: .77rem; font-weight: 640; }
.fact-grid dd { margin: 5px 0; font-size: 1.05rem; font-weight: 750; }
.fact-grid > div > span { color: var(--muted); font-size: .76rem; }
.fact-grid a { display: block; margin-top: 4px; font-size: .76rem; }
.facts { margin: 0 0 12px; }
.facts > div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dd { margin: 0; text-align: right; font-size: .8rem; overflow-wrap: anywhere; }
.comparison { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; border-top: 1px solid var(--line); padding: 12px 0; font-size: .82rem; }
.comparison:last-child { padding-bottom: 0; }
.comparison > p, .comparison > div:last-child { grid-column: 1 / -1; }
.comparison h3 + span { display: block; font-size: .75rem; margin-top: 4px; }
.comparison-result { display: grid; align-content: start; justify-items: end; text-align: right; gap: 3px; }
.comparison-result strong { color: var(--lime); }
.comparison-result span { color: var(--muted); }
.link-list, .documents, .events { margin: 9px 0; padding: 0; list-style: none; }
.link-list li, .documents li, .events li { font-size: .81rem; padding: 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.documents li { display: flex; justify-content: space-between; gap: 8px; }
.documents li > span, .events li > span { color: var(--muted); }
.events li > span { display: block; margin: 4px 0; }
.form-stack { display: grid; align-items: start; gap: 12px; }
.form-stack + p { margin-top: 15px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.span-all { grid-column: 1 / -1; min-width: 0; }
.record-form { max-width: 900px; }
label { display: grid; gap: 5px; color: #dce3ec; font-size: .8rem; font-weight: 650; }
input, textarea, select { min-width: 0; width: 100%; color: var(--ink); background: #10161c; border: 1px solid #424d5a; border-radius: 7px; padding: 9px 10px; min-height: 40px; font-size: .88rem; }
input::placeholder, textarea::placeholder { color: #8392a4; }
textarea { resize: vertical; }
input[type="file"] { font-size: .76rem; }
input[type="file"]::file-selector-button { color: var(--ink); background: #253341; border: 1px solid #4a5b69; border-radius: 4px; padding: 4px 6px; margin-right: 6px; }
.repeatable { margin-top: 8px; }
.repeatable-item { background: #11171c; border: 1px solid #354153; padding: 12px; border-radius: 8px; margin-bottom: 8px; }
.repeatable-item .button { align-self: end; }
.json-input { margin-top: 8px; }
.vault-record { border-block-start: 1px solid var(--line); padding: 10px 0; }
.vault-record summary { color: var(--lime); cursor: pointer; padding: 4px; font-size: .88rem; font-weight: 670; }
.vault-record form { padding: 8px 4px 0; }
.narrow { max-width: 620px; }
.sources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); gap: 13px; }
.source-card { display: flex; flex-direction: column; color: var(--ink); min-height: 154px; }
.source-card:hover { border-color: #879e78; text-decoration: none; }
.source-card h2 { margin: 0 0 7px; }
.source-card .panel-head { color: var(--lime); }
.source-meta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: auto; padding-top: 14px; font-size: .76rem; color: var(--muted); }
.feedback { background: #292e23; border: 1px solid #536345; padding: 10px 12px; color: var(--lime); border-radius: 9px; margin-bottom: 15px; font-size: .88rem; }
.feedback.error { background: #362527; border-color: #724f51; color: #ffc1bd; }
.feedback ul { margin: 6px 0 0; padding-left: 20px; }

.guest { display: grid; place-items: center; min-height: 100dvh; padding: 20px; background: radial-gradient(ellipse at 30% 35%, #223029 0, #11161b 55%); }
.access { display: grid; grid-template-columns: 1.15fr 1fr; width: min(920px, 100%); min-height: 510px; border: 1px solid #405047; border-radius: 21px; overflow: hidden; box-shadow: 0 24px 110px #0007; }
.access-art { padding: clamp(22px, 4vw, 43px); position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow: hidden; background: linear-gradient(150deg, #293c31, #172722 55%, #101a16); }
.access-art::before { mask-image: linear-gradient(150deg,#000,transparent 90%); }
.access-orbit { position: absolute; width: 360px; aspect-ratio: 1; left: 31%; top: -60px; border: 1px solid #b5dca36a; border-radius: 50%; z-index: -1; background: repeating-radial-gradient(circle, transparent 0 33px, #d4ff9c2c 34px 35px), conic-gradient(from 15deg, transparent 140deg, #bfff6b24 220deg, #bfff6b59 270deg, transparent 271deg); }
.access-orbit i { position: absolute; background: var(--lime); width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 12px #e8fa9b; left: 40%; top: 35%; }
.access-orbit i:nth-child(2) { left: 18%; top: 62%; width: 5px; height: 5px; }
.access-orbit i:nth-child(3) { left: 59%; top: 62%; width: 4px; height: 4px; }
.access-brand { display: flex; align-items: center; gap: 10px; font-weight: 760; font-size: .76rem; letter-spacing: .12em; }
.access-copy h1 { font-size: clamp(2.9rem, 6vw, 5.7rem); letter-spacing: -.09em; line-height: .9; margin-bottom: 13px; }
.access-copy p { max-width: 260px; color: #ccd9ca; font-size: .94rem; }
.access-form { background: var(--surface); display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 4vw, 42px); }
.form-head { margin-bottom: 18px; }
.form-head h2 { margin: 7px 0 5px; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.065em; line-height: 1.05; }
.form-head p, .access-help { font-size: .82rem; }
.access-help { margin-top: 14px; }

@media (max-width: 1020px) {
    .shell { grid-template-columns: 160px minmax(0, 1fr); }
    .rail { padding-inline: 10px; }
    .detail-grid { grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr); }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
}
@media (max-width: 760px) {
    .shell { display: block; }
    .rail { height: auto; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 9px 13px; border-right: 0; border-bottom: 1px solid var(--line); gap: 8px; }
    .brand { padding: 0; font-size: .85rem; gap: 5px; }
    .brand-icon { width: 27px; height: 27px; }
    .rail nav { display: flex; flex-wrap: wrap; gap: 3px; margin: 0; }
    .rail nav a { padding: 7px; font-size: .75rem; gap: 3px; }
    .rail nav a span, .profile-name, .profile .avatar { display: none; }
    .profile { margin: 0; padding: 0; border: 0; }
    .top { height: 43px; }
    .main-content { padding-top: 17px; }
    .hero { min-height: auto; align-items: start; flex-direction: column; gap: 14px; }
    .hero-side { flex: 0 0 auto; width: min(100%, 245px); }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .metrics a { min-height: 84px; }
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .access { min-height: auto; grid-template-columns: 1fr; }
    .access-art { gap: 31px; }
    .access-copy h1 { font-size: clamp(2.15rem, 8vw, 4.3rem); }
}
