:root {
 color-scheme: light;
 font-family: Hellix, system-ui, sans-serif;
 color: #16243a;
 background: #f5f4ef;
 --ink: #16243a;
 --muted: #4d5967;
 --line: #dedfd8;
 --paper: #fffefb;
 --navy: #172844;
 --quiet: #f0f1eb;
 --accent: #7b5930;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #966629; outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.12; overflow-wrap: anywhere; }
p { line-height: 1.55; overflow-wrap: anywhere; }
.skip { position: fixed; top: .75rem; left: 1rem; z-index: 10; padding: .7rem 1rem; background: white; border-radius: .5rem; transform: translateY(-170%); }
.skip:focus { transform: none; }
.shell { display: grid; grid-template-columns: 240px minmax(0,1fr); min-height: 100vh; }
.rail {
 position: sticky; top: 0; height: 100dvh; overflow: auto; display: flex; flex-direction: column;
 padding: 30px 20px 23px; border-right: 1px solid #dcdfd8;
 background: #eceee8;
 background: linear-gradient(158deg,#f4f4ec,#e9ede7 58%,#e3e8e5);
}
.brand, .identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand { padding: 0 5px; width: fit-content; }
.brandmark, .avatar { display: grid; flex: none; place-items: center; border-radius: 13px; width: 41px; height: 41px; }
.brandmark { background: var(--navy); color: #f7ead4; }
.brand b { display: block; font-size: 1rem; letter-spacing: -.025em; }
.brand small, .kicker { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.brand small { color: var(--accent); }
.building-name { margin: 37px 5px 17px; padding-bottom: 16px; border-bottom: 1px solid #d6d9d1; display: grid; gap: 4px; }
.building-name span, .identity small { color: var(--muted); font-size: .81rem; }
.building-name strong, .identity small { overflow-wrap: anywhere; }
.rail nav { display: grid; gap: 5px; }
.rail nav button {
 display: flex; align-items: center; gap: 11px; text-align: start; background: transparent; border: 1px solid transparent;
 padding: 10px 12px; border-radius: 12px; font-weight: 650; min-height: 44px;
}
.rail nav svg { flex: none; }
.rail nav button:hover { background: #f5f6f0; }
.rail nav button[aria-current] { background: #fffefa; border-color: #d7dcd4; box-shadow: 0 2px 5px #1728440a; }
.portal, .rail-contact { margin-top: auto; padding: 13px 7px 8px; font-size: .9rem; color: var(--muted); width: fit-content; }
.rail-contact + .portal { margin-top: 0; }
.portal:hover, .rail-contact:hover { text-decoration: underline; }
.top {
 position: sticky; z-index: 3; top: 0; padding: 15px clamp(18px,4vw,52px); display: flex; align-items: center;
 justify-content: space-between; gap: 16px; min-height: 76px; border-bottom: 1px solid var(--line); background: #fbfaf6;
}
@supports (backdrop-filter: blur(12px)) {
 .top { background: #fbfaf6eb; backdrop-filter: blur(16px); }
}
.identity div { min-width: 0; }
.identity strong, .identity small { display: block; }
.identity strong { font-size: .91rem; }
.avatar { color: var(--navy); background: #e7e7dc; width: 38px; height: 38px; border-radius: 50%; font-weight: 700; }
.demo { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.role-switch { display: inline-flex; gap: 3px; flex-wrap: wrap; padding: 3px; border-radius: 18px; border: 1px solid #dedfd7; background: #eeeee8; }
.role-switch button { border: 1px solid transparent; background: transparent; padding: 5px 11px; min-height: 36px; border-radius: 14px; font-size: .84rem; font-weight: 650; }
.role-switch button[aria-pressed="true"] { background: #fffefa; border-color: #dedfd7; }
.role-switch button:disabled { cursor: default; }
.building-switch { min-width: 0; max-width: 42%; }
#main { max-width: 1220px; margin-inline: auto; padding: 35px clamp(18px,4vw,52px) 52px; }
#main:focus { outline: none; }
.feedback:empty { display: none; }
.feedback { padding: .65rem 1rem; background: #ecf2e7; color: #28573b; border-radius: 9px; margin-bottom: 1rem; font-weight: 600; }
.intro { margin-bottom: 24px; }
.intro-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 15px; }
.intro h1, .unavailable h1 { font-size: clamp(2rem,4vw,3.25rem); font-weight: 650; letter-spacing: -.054em; }
.intro p { margin-top: 8px; color: var(--muted); }
.intro .kicker { display: block; color: var(--accent); margin-bottom: 7px; }
.hero {
 position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
 gap: 23px; min-height: 213px; padding: clamp(23px,4vw,35px); overflow: hidden;
 border: 1px solid #172844; border-radius: 23px; background: var(--navy); color: #fffefa;
}
.hero::before {
 content: ''; position: absolute; z-index: -1; pointer-events: none; width: 370px; height: 370px; right: -93px; top: -108px;
 border-radius: 50%; border: 1px solid #cdb58d38; box-shadow: 0 0 0 26px #cdb58d0e,0 0 0 54px #cdb58d0c,0 0 0 82px #cdb58d07;
}
.hero .kicker { color: #e3c99d; }
.hero h2 { font-size: clamp(1.55rem,3.7vw,2.65rem); letter-spacing: -.04em; margin-block: 9px 6px; }
.hero p { color: #e3e9ef; }
.visit-line { color: #f0d6a7; margin-top: 12px; font-variant-numeric: tabular-nums; }
.stats { margin: 17px 0 21px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.stats div, .panel, .service { border: 1px solid var(--line); background: var(--paper); border-radius: 17px; }
.stats div { padding: 15px 17px; display: flex; flex-direction: column-reverse; gap: 3px; }
.stats dt { font-size: .83rem; color: var(--muted); overflow-wrap: anywhere; }
.stats dd { font-variant-numeric: tabular-nums; font-size: 1.68rem; font-weight: 650; letter-spacing: -.045em; }
.panel { padding: 19px 20px; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 5px; }
.panel h2, .dialog-head h2 { font-size: 1.24rem; letter-spacing: -.03em; }
.job-list, .history { list-style: none; padding: 0; margin: 0; }
.job { display: flex; gap: 10px 24px; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #e8e8e1; }
.job:last-child { border-bottom: 0; }
.job-main { min-width: 0; }
.job h3 { font-size: 1.03rem; margin: 4px 0; }
.job p { color: var(--muted); font-size: .9rem; }
.job-ref { color: var(--accent); font-size: .76rem; font-weight: 650; }
.job-link { text-align: start; border: 0; background: transparent; padding: 0; font-weight: 700; line-height: 1.4; min-height: 25px; overflow-wrap: anywhere; }
.job-link:hover { text-decoration: underline; }
.job-meta { display: flex; flex-direction: column; gap: 7px; text-align: end; align-items: flex-end; color: var(--muted); font-size: .81rem; flex: 0 1 auto; }
.demo-picker { font-size: .78rem; }
.demo-picker select { min-height: 36px; padding-block: 5px; }
.roster-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 17px; }
.roster-controls label { width: min(100%,260px); }
.roster-switch button { min-height: 41px; }
.roster-switch button span, .roster-count { color: var(--muted); font-size: .79rem; font-variant-numeric: tabular-nums; padding-inline-start: 5px; }
.roster-hint { color: var(--muted); margin-bottom: 12px; }
.roster-row { flex-wrap: wrap; }
.roster-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.roster-impact { padding: 12px 14px; background: var(--quiet); border-radius: 10px; }
.roster-impact ul { padding-inline-start: 19px; margin-block: 5px; overflow-wrap: anywhere; }
.roster-impact p { font-size: .88rem; color: var(--muted); }
.pill { display: inline-flex; padding: 4px 9px; border-radius: 99px; background: #edf0ee; color: #344d48; font-weight: 650; font-size: .75rem; line-height: 1.3; }
.pill.late { color: #842e27; background: #f9e8e5; }
.status-review, .status-requested { color: #714b14; background: #f8edda; }
.status-assigned, .status-accepted, .status-inProgress { color: #244768; background: #e9f0f8; }
.status-closed { color: #24573a; background: #e6f1e8; }
.btn {
 display: inline-flex; justify-content: center; align-items: center; text-align: center; padding: 8px 13px; min-height: 42px;
 border: 1px solid #d7dbd4; background: #fffefa; border-radius: 11px; color: var(--ink); font-weight: 650; font-size: .9rem;
}
.btn:hover { background: #eeefe9; }
.btn.primary { color: #fffefa; background: var(--navy); border-color: var(--navy); }
.btn.primary:hover { background: #264266; }
.btn.light { color: var(--navy); background: #fff3dc; border-color: #fff3dc; }
.btn.light:hover { background: #f1dcb8; }
.empty { color: var(--muted); padding: 19px 0; }
.filters { display: grid; grid-template-columns: 1fr minmax(145px,.4fr); gap: 14px; margin-bottom: 11px; }
label { display: grid; gap: 5px; font-size: .89rem; font-weight: 650; min-width: 0; }
input, select, textarea {
 width: 100%; min-width: 0; min-height: 43px; padding: 8px 10px;
 background: #fffefa; border: 1px solid #b8c1ba; border-radius: 8px;
}
textarea { resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; line-height: 1.45; }
.checkbox input { width: 19px; min-height: 19px; flex: none; accent-color: var(--navy); margin: 1px 0 0; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,215px),1fr)); gap: 11px; }
.service { display: flex; align-items: center; gap: 11px; padding: 15px; min-height: 66px; text-align: start; font-weight: 650; }
.service:hover { background: #f1f2eb; }
.service svg { flex: none; color: var(--accent); }
.service svg:last-child { margin-inline-start: auto; }
.notice p, .muted { color: var(--muted); margin: 8px 0; white-space: pre-wrap; }
.notice-meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; color: var(--muted); margin-top: 9px; }
dialog {
 max-width: min(620px,calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); padding: clamp(17px,3vw,26px);
 border: 1px solid #d7dbd4; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px #15233e42;
}
dialog::backdrop { background: #14213872; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dismiss { min-width: 44px; min-height: 44px; font-size: 1.36rem; }
dialog form { display: grid; gap: 12px; }
.form-error { color: #842e27; font-weight: 650; font-size: .92rem; }
.form-error:empty { display: none; }
.form-footer, .detail-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.form-footer { justify-content: flex-end; }
.detail-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .82rem; }
.detail-next { font-weight: 700; margin: 12px 0 4px; }
.detail-copy { color: var(--muted); white-space: pre-wrap; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(132px,1fr)); gap: 11px; background: var(--quiet); border-radius: 12px; padding: 12px; margin: 13px 0; }
.detail-grid dt, .history small { display: block; font-size: .78rem; color: var(--muted); }
.detail-grid dd { font-weight: 600; font-size: .88rem; overflow-wrap: anywhere; }
.history-title { margin-top: 18px; font-size: .98rem; }
.history li { padding: 9px 0 9px 12px; border-left: 2px solid #ded7c4; }
.history li p { white-space: pre-wrap; font-size: .88rem; margin-top: 4px; }
.unavailable { min-height: 90vh; display: grid; align-content: center; justify-content: center; }
.unavailable .panel { max-width: 540px; }
.unavailable h1 { margin-top: 8px; }
.unavailable p { margin: 12px 0; }
.invite-card form { display: grid; gap: 9px; margin-top: 17px; }
.invite-card small { color: var(--muted); }
.invite-card .form-error { margin: 0; }
@media (max-width: 780px) {
 .shell { display: block; }
 .rail { position: relative; height: auto; display: grid; padding: 12px 15px; gap: 8px; border: 0; border-bottom: 1px solid var(--line); }
 .brand { padding: 0; }
 .building-name { margin: 0; padding: 0; border: 0; grid-row: 2; }
 .rail nav { display: flex; flex-wrap: wrap; }
 .rail nav button { padding-inline: 8px; font-size: .85rem; }
 .rail nav svg { width: 15px; height: 15px; }
 .portal, .rail-contact { padding: 4px 0; }
 .top { padding: 9px 15px; min-height: auto; flex-wrap: wrap; gap: 7px 12px; }
 #main { padding-top: 24px; }
}
@media (max-width: 470px) {
 .top { position: relative; }
 .job { flex-wrap: wrap; }
 .job-meta { align-items: flex-start; text-align: start; flex-direction: row; flex-wrap: wrap; align-items: center; }
 .filters { grid-template-columns: 1fr; }
 .stats { gap: 6px; }
 .stats div { padding: 9px; }
 .stats dt { font-size: .77rem; }
 .panel { padding: 15px; }
 .demo { justify-content: flex-start; }
}
