:root {
  --navy: #082b4c;
  --navy-2: #0d3b66;
  --yellow: #f5c518;
  --yellow-soft: #fff8d8;
  --ink: #16283a;
  --muted: #637487;
  --line: #dce4eb;
  --canvas: #f4f7f9;
  --white: #ffffff;
  --green: #18774b;
}

/* DreamHost Version 1 server-rendered surfaces */
*{box-sizing:border-box}body{margin:0;background:var(--page,#f4f7fb);color:var(--ink,#14213d);font-family:Arial,Helvetica,sans-serif;line-height:1.5}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:1rem;top:1rem;background:#fff;padding:.7rem;z-index:100}.site-header{background:var(--navy,#082b55);border-bottom:5px solid var(--yellow,#f4bf1b);color:#fff}.header-inner{width:min(1180px,calc(100% - 32px));margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:88px}.brand{display:flex;align-items:center;gap:13px;color:#fff;text-decoration:none}.brand img{width:74px;height:58px;object-fit:contain;background:#fff;border-radius:4px;padding:3px}.brand span{display:grid}.brand b{font-size:1.15rem}.brand small{color:#ffe083}.site-header nav{display:flex;flex-wrap:wrap;gap:8px}.site-header nav a{color:#fff;text-decoration:none;padding:9px 11px;border-radius:5px}.site-header nav a:hover,.site-header nav a:focus{background:rgba(255,255,255,.15)}.page-shell{width:min(1180px,calc(100% - 32px));margin:30px auto 60px}.site-footer{background:#082b55;color:#fff;text-align:center;padding:24px}.notice{border-left:5px solid #1d6fa5;background:#eef7ff;padding:12px 15px;margin:0 0 18px;border-radius:4px}.notice.error{border-color:#b2292e;background:#fff0f0}.notice.success{border-color:#24834b;background:#eefaf2}.hero-panel{background:linear-gradient(125deg,#082b55,#124b84);color:#fff;border-radius:10px;padding:34px;margin-bottom:24px;border-bottom:7px solid #f4bf1b}.hero-panel h1{margin:.2rem 0;font-size:clamp(2rem,4vw,3.5rem)}.hero-panel p{max-width:760px}.action-grid,.summary-grid,.profile-grid,.document-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:18px}.action-card,.panel,.summary-card,.document-card,.profile-index-card{background:#fff;border:1px solid #ccd8e7;border-radius:8px;padding:21px;box-shadow:0 3px 12px rgba(10,40,75,.08)}.action-card{display:flex;flex-direction:column}.action-card h2,.panel h2{margin-top:0}.action-card .button-primary,.action-card .button-secondary{margin-top:auto}.button-primary,.button-secondary,.danger-button,button{display:inline-block;border:0;border-radius:5px;padding:10px 15px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none}.button-primary,button{background:#0b4d86;color:#fff}.button-secondary{background:#e6edf5;color:#173b63}.danger-button{background:#a62f35;color:#fff}.button-primary:hover,button:hover{background:#063b6b}.eyebrow{text-transform:uppercase;letter-spacing:.11em;font-size:.77rem;font-weight:800;color:#b77900}.auth-shell{min-height:100vh;display:grid;place-items:center;background:#eaf0f7;padding:24px}.auth-card{width:min(600px,100%);background:#fff;padding:32px;border:1px solid #ccd8e7;border-top:7px solid #f4bf1b;border-radius:8px}.auth-card>img{width:130px;display:block;margin-bottom:16px}.auth-card form,.form-stack{display:grid;gap:15px}.auth-card label,.form-grid label,.form-stack label{display:grid;gap:6px;font-weight:700}.auth-card input,.form-grid input,.form-grid select,.form-grid textarea,.form-stack input,.form-stack select,.form-stack textarea,.table-input{width:100%;padding:10px;border:1px solid #9fb0c3;border-radius:4px;font:inherit;background:#fff}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid .full{grid-column:1/-1}.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.admin-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:22px;border-bottom:2px solid #bccadc}.admin-tabs a{padding:10px 14px;text-decoration:none;color:#173b63;font-weight:700}.admin-tabs a.active{background:#0b4d86;color:#fff;border-radius:5px 5px 0 0}.table-wrap{overflow:auto;background:#fff;border:1px solid #cad5e3;border-radius:7px}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{text-align:left;vertical-align:top;padding:11px 12px;border-bottom:1px solid #dbe3ed}.data-table th{background:#e9eff6;color:#173b63}.workflow-pill{display:inline-block;border-radius:999px;background:#dfe8f2;padding:3px 9px;font-size:.78rem;font-weight:800}.workflow-pill.approved,.workflow-pill.active{background:#d7f1df;color:#176338}.workflow-pill.changes_requested,.workflow-pill.rejected,.workflow-pill.suspended{background:#f9d9da;color:#8a252a}.workflow-pill.awaiting_review,.workflow-pill.pending,.workflow-pill.submitted{background:#fff0be;color:#735400}.summary-card strong{display:block;font-size:1.8rem;color:#0b4d86}.profile-index-card{padding:0;overflow:hidden;display:flex;flex-direction:column}.profile-index-card img,.profile-placeholder{width:100%;height:190px;object-fit:cover;background:linear-gradient(135deg,#dce6f0,#f6f8fa);display:grid;place-items:center;color:#60768f}.profile-copy{padding:18px}.profile-copy h3{margin:0 0 4px}.profile-logo{margin-top:auto;border-top:1px solid #dbe3ed;padding:10px 18px;display:flex;align-items:center;gap:10px}.profile-logo img{width:64px;height:44px;object-fit:contain}.division-group{margin:32px 0}.division-group>h2{background:#0b3e70;color:#fff;border-left:8px solid #f4bf1b;padding:10px 14px}.profile-hero{display:grid;grid-template-columns:minmax(260px,1fr) 1.2fr;gap:24px}.profile-hero img{width:100%;max-height:430px;object-fit:cover;border-radius:7px}.definition-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.definition-grid div{background:#f3f6fa;padding:12px;border-radius:5px}.definition-grid dt{font-weight:800;color:#315779}.definition-grid dd{margin:3px 0;white-space:pre-line}.document-card{display:flex;flex-direction:column;gap:9px}.document-card h3{margin:0}.document-card small{color:#5e7084}.review-comments{display:grid;gap:10px}.comment{border-left:4px solid #829bb6;background:#f4f7fa;padding:10px 13px}.comment p{white-space:pre-line}.print-only{display:none}.theme-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.theme-choice{border:2px solid #bccadc;padding:14px;border-radius:6px}.theme-choice.active{border-color:#0b4d86;background:#eef6ff}.theme-choice strong{display:block}.inline-form{display:inline-flex;gap:7px;align-items:center;flex-wrap:wrap}.muted{color:#637387}.text-preline{white-space:pre-line}.logo-footer{height:58px;object-fit:contain!important;background:#fff!important}.report-group{break-inside:avoid;margin-bottom:24px}.report-comment{border-left:3px solid #416f9e;padding:4px 12px;margin:12px 0}.danger-zone{border:1px solid #d89ca0;background:#fff5f5;padding:17px;border-radius:6px}
@media(max-width:760px){.header-inner{align-items:flex-start;flex-direction:column;padding:13px 0}.form-grid,.profile-hero,.theme-grid{grid-template-columns:1fr}.page-shell{width:min(100% - 20px,1180px);margin-top:18px}.hero-panel{padding:24px}.data-table{min-width:760px}}
@media print{.site-header,.site-footer,.admin-tabs,.no-print,.form-actions{display:none!important}.page-shell{width:100%;margin:0}.print-only{display:block}.panel{box-shadow:none;border:0;padding:0}.report-group{break-inside:avoid}}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }

.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; color: white; background: var(--navy); border-bottom: 4px solid var(--yellow); position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: white; text-decoration: none; }
.official-logo { width: 142px; height: 58px; object-fit: contain; padding: 4px 8px; border-radius: 6px; background: white; }
.brand-context { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.28); }
.brand small { display: block; margin-top: 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: #cddae6; }
.header-meta { display: flex; align-items: center; gap: 16px; }
.header-link { color: #e7eef5; font-size: 12px; font-weight: 800; text-decoration: none; }
.header-link:hover { color: var(--yellow); }
.season-pill { padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 12px; color: #e7eef5; }
.admin-page-switcher { display: flex; align-items: center; gap: 8px; }
.admin-page-switcher > span { color: #cddae6; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-page-switcher select { min-width: 190px; padding: 8px 32px 8px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 7px; color: white; background: var(--navy-2); font-size: 12px; font-weight: 800; }
.admin-page-switcher select:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
.avatar { width: 38px; height: 38px; border: 0; border-radius: 50%; background: white; color: var(--navy); font-size: 12px; font-weight: 800; }

.portal-shell { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.sidebar { padding: 27px 22px; background: white; border-right: 1px solid var(--line); }
.sidebar > label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.sidebar select { width: 100%; padding: 11px 34px 11px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: 13px; }
.team-card { display: flex; align-items: center; gap: 12px; padding: 21px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.team-monogram { flex: 0 0 auto; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 10px; background: var(--yellow-soft); color: #6d5600; font-weight: 900; }
.team-card h2 { margin: 0 0 4px; font-size: 14px; line-height: 1.25; }
.team-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 12px; border: 0; border-radius: 8px; background: transparent; color: #526579; text-align: left; font-size: 13px; font-weight: 700; }
.sidebar nav button span { color: #75879a; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.sidebar-public-link { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 8px; color: #526579; text-decoration: none; font-size: 13px; font-weight: 700; }
.sidebar-public-link span { color: #75879a; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.sidebar-public-link:hover { background: #eef4f8; color: var(--navy); }
.sidebar nav button:hover, .sidebar nav .nav-current { background: #eef4f8; color: var(--navy); }
.sidebar nav .nav-current { box-shadow: inset 3px 0 var(--yellow); }
.help-card { display: flex; gap: 11px; margin-top: 30px; padding: 15px; border-radius: 10px; background: var(--navy); color: white; }
.help-card > span { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 900; }
.help-card strong { font-size: 12px; }
.help-card p { margin: 4px 0 0; color: #c8d7e5; font-size: 10px; line-height: 1.5; }

.workspace { width: 100%; max-width: 1260px; padding: 29px 42px 70px; }
.breadcrumb { margin-bottom: 24px; color: #7b8b9a; font-size: 12px; }
.breadcrumb span { margin: 0 7px; color: #abb8c4; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 7px !important; color: #776000 !important; font-size: 10px !important; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.welcome-row h1 { margin: 0 0 8px; color: var(--navy); font-size: clamp(28px, 4vw, 40px); letter-spacing: -.035em; }
.welcome-row p { max-width: 720px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.car-badge { min-width: 170px; padding: 13px 16px; border-left: 3px solid var(--yellow); background: white; }
.car-badge span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.car-badge input { display: block; width: 100%; margin-top: 5px; padding: 3px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; color: var(--navy); font: inherit; font-size: 15px; font-weight: 800; }
.car-badge input:hover { border-bottom-color: #c8d2da; }
.car-badge input:focus { outline: 0; border-bottom-color: var(--yellow); }
.car-badge input::placeholder { color: var(--muted); font-weight: 700; }

.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.summary-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: white; text-align: left; box-shadow: 0 5px 18px rgba(18, 45, 69, .04); }
.summary-card:hover, .summary-card.active { border-color: #9cb2c5; box-shadow: 0 7px 22px rgba(18, 45, 69, .08); }
.summary-card.active { box-shadow: inset 0 -3px var(--yellow), 0 7px 22px rgba(18, 45, 69, .08); }
.summary-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 9px; background: var(--navy); color: white; font-size: 11px; font-weight: 800; }
.summary-card small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.summary-card strong { color: var(--navy); font-size: 14px; }
.chevron { color: #8fa0af; font-size: 24px; }
.notice { margin-bottom: 18px; padding: 12px 15px; border-left: 4px solid var(--yellow); background: var(--yellow-soft); color: #5c4a08; font-size: 13px; font-weight: 700; }

.panel { border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; box-shadow: 0 8px 28px rgba(18, 45, 69, .05); }
.panel-heading { display: flex; justify-content: space-between; gap: 20px; padding: 25px 27px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0 0 7px; color: var(--navy); font-size: 22px; letter-spacing: -.02em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.status { align-self: start; padding: 7px 10px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.status.draft { background: #eef2f5; color: #526579; }
.status.submitted { background: #dcf3e7; color: var(--green); }
.seeded-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.seeded-details > div { min-height: 82px; padding: 18px; background: #f9fbfc; }
.seeded-details span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.seeded-details strong { color: var(--ink); font-size: 12px; line-height: 1.45; }
.panel form { padding: 27px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.form-grid label { display: grid; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 800; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid label small { color: var(--muted); font-size: 9px; font-weight: 500; }
.form-section-title { grid-column: 1 / -1; margin: 8px 0 -3px; padding: 12px 0 8px; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 15px; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid #cfd9e2; border-radius: 7px; padding: 11px 12px; color: var(--ink); background: white; outline: none; font-weight: 400; }
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .sidebar select:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(13,59,102,.12); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 23px; }
.team-media-section { margin: 0 27px 4px; padding: 22px 0 25px; border-bottom: 1px solid var(--line); }
.team-media-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.team-media-heading h3 { margin: 0; color: var(--navy); font-size: 17px; }
.team-media-heading > span { color: var(--muted); font-size: 10px; font-weight: 800; }
.team-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.media-upload-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #f9fbfc; }
.media-preview { grid-row: 1 / 3; width: 92px; height: 76px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #b7c5d1; border-radius: 7px; background: white; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.media-preview img { width: 100%; height: 100%; object-fit: cover; }
.media-preview.team_logo img { object-fit: contain; padding: 6px; }
.media-upload-copy h4 { margin: 0 0 4px; color: var(--navy); font-size: 12px; }
.media-upload-copy p { margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.media-upload-card .upload-button { justify-self: start; padding: 8px 11px; }
.button-primary, .button-secondary, .upload-button { border-radius: 7px; padding: 10px 15px; font-size: 11px; font-weight: 900; }
.button-primary { border: 1px solid var(--navy); background: var(--navy); color: white; }
.button-secondary { border: 1px solid #c8d3dd; background: white; color: var(--navy); }
.button-primary:hover { background: var(--navy-2); }

.document-list { display: grid; }
.document-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 15px; padding: 16px 22px; border-bottom: 1px solid #e8edf1; }
.document-row:last-child { border-bottom: 0; }
.doc-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #ccd7df; border-radius: 8px; color: #728394; background: #f7f9fa; font-size: 9px; font-weight: 900; }
.doc-icon.complete { border-color: #a5d4bd; background: #e8f5ee; color: var(--green); }
.document-copy h3 { margin: 0 0 4px; color: var(--navy); font-size: 13px; }
.document-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.doc-state { color: #8b6d00; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.doc-state.uploaded { color: var(--green); }
.upload-button { min-width: 77px; border: 1px solid #c6d2dc; background: white; color: var(--navy); }
.upload-button:hover { border-color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.loading-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--navy); }
.sun-loader { width: 40px; height: 40px; border: 6px solid #f6e9a8; border-top-color: var(--yellow); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.admin-shell { width: min(1440px, 100%); margin: 0 auto; padding: 36px 42px 70px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.admin-heading h1 { margin: 0 0 9px; color: var(--navy); font-size: clamp(30px, 4vw, 43px); letter-spacing: -.04em; }
.admin-heading > div > p:last-child { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.6; }
.admin-total { min-width: 140px; padding: 14px 18px; border-left: 4px solid var(--yellow); background: white; }
.admin-total strong { display: block; color: var(--navy); font-size: 28px; }
.admin-total span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.metric-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 11px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; text-align: left; }
.metric-card:hover, .metric-card.selected { border-color: #91a8bb; box-shadow: 0 5px 18px rgba(18,45,69,.08); }
.metric-card.selected { box-shadow: inset 0 -3px var(--yellow), 0 5px 18px rgba(18,45,69,.08); }
.metric-card strong { color: var(--navy); font-size: 24px; line-height: 1; }
.metric-card small { grid-column: 2; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.status-dot { grid-row: 1 / 3; align-self: center; width: 10px; height: 10px; border-radius: 50%; background: #9aa8b4; }
.status-dot.submitted { background: #1676a8; }.status-dot.approved { background: var(--green); }.status-dot.changes_requested { background: #c05b35; }.status-dot.draft { background: #a58100; }
.status-dot.awaiting_review { background: #1676a8; }.status-dot.all { background: #74879a; }
.admin-table-card { border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; box-shadow: 0 8px 28px rgba(18,45,69,.05); }
.table-tools { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.table-tools h2 { margin: 0 0 5px; color: var(--navy); font-size: 20px; }
.table-tools p { margin: 0; color: var(--muted); font-size: 11px; }
.table-actions { display: flex; gap: 9px; }
.table-actions input, .table-actions select { min-height: 39px; border: 1px solid #cfd9e2; border-radius: 7px; padding: 8px 11px; background: white; color: var(--ink); font-size: 12px; }
.table-actions input { width: 245px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { padding: 12px 16px; color: #6f8090; background: #f7f9fb; text-align: left; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 15px 16px; border-top: 1px solid #e8edf1; vertical-align: middle; }
.admin-table td:first-child strong, .admin-table td:first-child span { display: block; }
.admin-table td:first-child strong { color: var(--navy); font-size: 13px; }
.admin-table td:first-child span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.team-review-link { display: inline-block; color: var(--navy); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.team-review-link:hover, .team-review-link:focus-visible { text-decoration-color: currentColor; }
.workflow-pill { display: inline-block; padding: 6px 8px; border-radius: 999px; background: #eef2f5; color: #526579; font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.workflow-pill.submitted { background: #e0f1fa; color: #11638d; }.workflow-pill.approved { background: #dcf3e7; color: var(--green); }.workflow-pill.changes_requested { background: #fae8e1; color: #9e4525; }.workflow-pill.draft { background: var(--yellow-soft); color: #765e00; }
.workflow-pill.awaiting_review { background: #e0f1fa; color: #11638d; }
.file-count { color: var(--navy); }.file-count b { font-size: 14px; }.independent-note { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.review-button { display: inline-block; border: 1px solid #bdcad5; border-radius: 6px; padding: 8px 11px; background: white; color: var(--navy); font-size: 10px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.review-button:hover { border-color: var(--navy); }
.review-overlay { position: fixed; inset: 0; z-index: 30; display: flex; justify-content: flex-end; background: rgba(5, 25, 43, .54); }
.review-drawer { width: min(590px, 100%); height: 100%; overflow-y: auto; background: #f7f9fb; box-shadow: -20px 0 55px rgba(0,0,0,.18); }
.drawer-top { display: flex; justify-content: space-between; gap: 20px; padding: 25px 27px; color: white; background: var(--navy); border-bottom: 4px solid var(--yellow); }
.drawer-top .eyebrow { color: var(--yellow) !important; }.drawer-top h2 { margin: 0 0 5px; font-size: 24px; }.drawer-top p:last-child { margin: 0; color: #c9d8e5; font-size: 12px; }
.drawer-close { align-self: start; width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: white; background: transparent; font-size: 25px; line-height: 1; }
.review-section, .private-details, .review-note { margin: 18px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.section-label { display: flex; justify-content: space-between; gap: 15px; padding: 15px 17px; border-bottom: 1px solid var(--line); }.section-label strong { color: var(--navy); font-size: 13px; }.section-label span { color: var(--green); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.review-section dl, .private-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.review-section dl > div, .private-details dl > div { padding: 14px 17px; border-bottom: 1px solid #edf1f4; }.review-section dl .wide { grid-column: 1 / -1; }
.review-section dt, .private-details dt { margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.review-section dd, .private-details dd { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.5; }
.private-details summary { padding: 15px 17px; color: var(--navy); cursor: pointer; font-size: 12px; font-weight: 800; }.private-details summary span { float: right; color: #9e4525; font-size: 9px; text-transform: uppercase; }
.review-note { padding: 16px 17px; }.review-note label { display: block; margin-bottom: 8px; color: var(--navy); font-size: 11px; font-weight: 800; }.review-note textarea { width: 100%; padding: 10px; border: 1px solid #cfd9e2; border-radius: 7px; resize: vertical; }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 18px; }.drawer-actions button { padding: 12px; border-radius: 7px; font-size: 11px; font-weight: 900; }.changes-button { border: 1px solid #c96948; background: white; color: #9e4525; }.approve-button { border: 1px solid var(--navy); background: var(--navy); color: white; }
.decision-footnote { margin: 13px 22px 28px; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }

.technical-admin-shell { max-width: 1500px; }
.technical-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.technical-doc-name, .technical-filename { display: block; }.technical-doc-name { color: var(--navy); font-size: 12px; }.technical-filename { max-width: 260px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.technical-overlay { align-items: stretch; justify-content: stretch; padding: 22px; }
.technical-drawer { width: min(1420px, 100%); height: 100%; margin: auto; overflow: hidden; border-radius: 13px; background: #f7f9fb; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.technical-drawer .drawer-top { height: 104px; padding: 20px 25px; }
.technical-review-layout { height: calc(100% - 104px); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(380px, .75fr); }
.pdf-column { min-width: 0; display: grid; grid-template-rows: auto 1fr; padding: 18px; background: #dfe5ea; }
.pdf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 15px; border-radius: 8px 8px 0 0; color: white; background: #1d3449; }
.pdf-toolbar strong, .pdf-toolbar span { display: block; }.pdf-toolbar strong { max-width: 570px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.pdf-toolbar span { margin-top: 3px; color: #bfcddd; font-size: 9px; }.pdf-toolbar a { flex: 0 0 auto; padding: 8px 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; color: white; font-size: 10px; font-weight: 800; text-decoration: none; }
.pdf-column iframe { width: 100%; height: 100%; border: 0; background: white; }
.review-column { min-width: 0; overflow-y: auto; border-left: 1px solid var(--line); background: white; }
.review-context { padding: 17px 19px; border-bottom: 1px solid var(--line); }.review-context p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.version-history { border-bottom: 1px solid var(--line); }.version-history summary { padding: 15px 19px; color: var(--navy); cursor: pointer; font-size: 12px; font-weight: 800; }.version-history summary > span { float: right; min-width: 22px; padding: 3px 6px; border-radius: 999px; background: #eef2f5; text-align: center; font-size: 9px; }.version-history button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 19px; border: 0; border-top: 1px solid #edf1f4; color: var(--ink); background: white; text-align: left; }.version-history button.current { box-shadow: inset 3px 0 var(--yellow); background: #f8fafb; }.version-history button strong, .version-history button small { display: block; }.version-history button strong { font-size: 11px; }.version-history button small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.thread-heading { display: flex; justify-content: space-between; padding: 17px 19px 10px; }.thread-heading strong { color: var(--navy); font-size: 12px; }.thread-heading span { color: var(--muted); font-size: 9px; }
.empty-thread { margin: 0; padding: 4px 19px 18px; color: var(--muted); font-size: 11px; }
.comment-card { margin: 0 19px 10px; padding: 12px 13px; border: 1px solid var(--line); border-left: 3px solid #4d93ba; border-radius: 7px; background: #f9fbfc; }.comment-card.staff_only { border-left-color: #c05b35; background: #fff9f7; }.comment-card > div { display: flex; justify-content: space-between; gap: 15px; }.comment-card strong { color: var(--navy); font-size: 10px; }.comment-card span, .comment-card small { color: var(--muted); font-size: 8px; }.comment-card p { margin: 8px 0; font-size: 11px; line-height: 1.5; }
.comment-composer { display: grid; gap: 8px; padding: 16px 19px; border-top: 1px solid var(--line); }.comment-composer > label:first-child { color: var(--navy); font-size: 11px; font-weight: 800; }.comment-composer textarea { width: 100%; padding: 10px; border: 1px solid #cfd9e2; border-radius: 7px; resize: vertical; }.comment-privacy-note { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }.comment-composer .button-secondary { justify-self: end; }
.technical-decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 19px; }.technical-decision-actions button { padding: 11px; border-radius: 7px; font-size: 10px; font-weight: 900; }
.review-loading { padding: 35px; color: var(--muted); }

.matrix-admin-shell { max-width: none; padding-right: 24px; padding-left: 24px; }
.matrix-heading { align-items: center; }
.matrix-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 15px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.matrix-legend > span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 800; white-space: nowrap; }
.matrix-legend b { min-width: 22px; padding: 3px 6px; border-radius: 999px; color: var(--navy); background: #eef3f6; text-align: center; }
.matrix-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 8px 28px rgba(18,45,69,.05); }
.matrix-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.matrix-tools h2 { margin: 0 0 4px; color: var(--navy); font-size: 17px; }
.matrix-tools p { margin: 0; color: var(--muted); font-size: 10px; }
.matrix-tools input { width: min(360px, 100%); padding: 10px 12px; border: 1px solid #cfd9e2; border-radius: 7px; color: var(--ink); background: white; outline: none; font-size: 11px; }
.matrix-tools input:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(13,59,102,.12); }
.matrix-scroll { max-height: calc(100vh - 290px); overflow: auto; scrollbar-color: #a8b6c2 #eef2f5; }
.status-matrix { min-width: 2060px; width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.status-matrix th, .status-matrix td { border-right: 1px solid #e4eaf0; border-bottom: 1px solid #e4eaf0; }
.status-matrix thead th { width: 112px; height: 116px; padding: 10px 8px; vertical-align: bottom; color: #40566b; background: #eef3f6; font-size: 9px; line-height: 1.25; text-align: left; }
.status-matrix thead th > span:last-child { display: block; }
.matrix-column-number { display: block; margin-bottom: 7px; color: #8797a6; font-size: 8px; }
.status-matrix .matrix-team-column { left: 0; width: 250px; min-width: 250px; position: sticky; z-index: 2; }
.status-matrix thead { position: sticky; top: 0; z-index: 4; }
.status-matrix thead .matrix-team-column { z-index: 5; padding: 16px; vertical-align: bottom; color: var(--navy); background: #e5edf3; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.status-matrix tbody .matrix-team-column { padding: 11px 14px; background: white; text-align: left; }
.status-matrix tbody tr:nth-child(even) .matrix-team-column, .status-matrix tbody tr:nth-child(even) td { background: #fafcfd; }
.status-matrix tbody tr:hover .matrix-team-column, .status-matrix tbody tr:hover td { background: #fffbed; }
.status-matrix tbody .matrix-team-column a { display: block; color: inherit; text-decoration: none; }
.status-matrix tbody .matrix-team-column strong, .status-matrix tbody .matrix-team-column small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-matrix tbody .matrix-team-column strong { color: var(--navy); font-size: 11px; }
.status-matrix tbody .matrix-team-column small { margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 500; }
.status-matrix td { height: 58px; padding: 8px; background: white; text-align: center; }
.matrix-light-link { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 8px; text-decoration: none; }
.matrix-light-link:hover, .matrix-light-link:focus-visible { outline: 2px solid var(--navy); outline-offset: -1px; background: rgba(8,43,76,.06); }
.matrix-light { width: 26px; height: 26px; display: inline-grid; place-items: center; border: 2px solid rgba(0,0,0,.08); border-radius: 50%; color: white; font-size: 11px; font-style: normal; font-weight: 900; line-height: 1; box-shadow: inset 0 -3px 5px rgba(0,0,0,.14), 0 1px 2px rgba(0,0,0,.12); }
.matrix-light.approved { background: #1e9a60; }
.matrix-light.awaiting_review { background: #e5aa08; color: #4c3800; }
.matrix-light.changes_requested { background: #d34f3f; }
.matrix-light.not_uploaded { background: #bd3e35; opacity: .66; }
.matrix-note { margin: 0; padding: 11px 18px; border-top: 1px solid var(--line); color: var(--muted); background: #f8fafb; font-size: 9px; }

.inactive-team { filter: grayscale(.75); opacity: .52; }
.inactive-team:hover { opacity: .72; }
.inactive-label { display: inline-block; margin-left: 7px; padding: 3px 6px; border-radius: 999px; color: #586672; background: #e3e7ea; font-size: 8px; font-style: normal; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.setup-shell { max-width: 1280px; }
.setup-year-picker { min-width: 210px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.setup-year-picker label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.setup-year-picker select { width: 100%; padding: 10px 11px; border: 1px solid #cfd9e2; border-radius: 7px; color: var(--navy); background: white; font-weight: 800; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.setup-card { padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 8px 28px rgba(18,45,69,.05); }
.setup-card + .setup-card.setup-wide-card { margin-top: 18px; }
.setup-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.setup-card-heading h2 { margin: 0; color: var(--navy); font-size: 21px; }
.setup-card-heading > span { color: var(--muted); font-size: 10px; font-weight: 800; }
.setup-card > p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.setup-inline-form { display: flex; gap: 9px; margin-bottom: 12px; }
.setup-inline-form input, .requirement-create input { min-width: 0; padding: 10px 11px; border: 1px solid #cfd9e2; border-radius: 7px; color: var(--ink); background: white; }
.setup-inline-form input { width: 130px; }
.archive-button, .deactivate-button, .activate-button { padding: 9px 12px; border-radius: 7px; font-size: 10px; font-weight: 900; }
.archive-button, .deactivate-button { border: 1px solid #cf765f; color: #934229; background: #fff; }
.activate-button { border: 1px solid #3e936b; color: #18774b; background: #f3fbf7; }
.reminder-badge { padding: 6px 9px; border-radius: 999px; color: #755800 !important; background: var(--yellow-soft); }
.setup-wide-card { padding: 0; overflow: hidden; }
.setup-wide-card > .setup-card-heading, .setup-wide-card > p { padding-right: 23px; padding-left: 23px; }
.setup-wide-card > .setup-card-heading { padding-top: 23px; }
.requirement-create { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr) 160px auto; gap: 9px; padding: 17px 23px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f7f9fb; }
.setup-list { display: grid; }
.setup-list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 72px; padding: 13px 23px; border-bottom: 1px solid #e8edf1; }
.setup-list-row:last-child { border-bottom: 0; }
.setup-list-row strong, .setup-list-row span { display: block; }
.setup-list-row strong { color: var(--navy); font-size: 12px; }
.setup-list-row span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.setup-list-row label { display: grid; grid-template-columns: auto 145px; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.setup-list-row label input { padding: 9px; border: 1px solid #cfd9e2; border-radius: 7px; color: var(--navy); background: white; }
.team-status-list { max-height: 600px; overflow-y: auto; }

.team-review-shell { max-width: 1500px; }
.review-breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--muted); font-size: 11px; }
.review-breadcrumb a { color: var(--navy); font-weight: 800; text-decoration: none; }
.team-review-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.team-review-heading h1 { margin: 0 0 7px; color: var(--navy); font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.team-review-heading p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.review-heading-status { min-width: 210px; padding: 16px 18px; border-left: 4px solid var(--yellow); background: white; }
.review-heading-status strong, .review-heading-status small { display: block; }
.review-heading-status strong { margin-top: 11px; color: var(--navy); font-size: 20px; }
.review-heading-status small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.review-heading-actions { display: flex; align-items: stretch; gap: 10px; }
.comment-report-button { display: grid; place-items: center; padding: 12px 16px; border-color: var(--navy); background: var(--navy); color: white; }
.comment-report-button:hover { border-color: var(--navy-2); background: var(--navy-2); }
.team-review-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.team-review-overview article { padding: 16px 17px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.team-review-overview span, .team-review-overview strong, .team-review-overview small { display: block; }
.team-review-overview span { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.team-review-overview strong { margin: 7px 0 4px; color: var(--navy); font-size: 18px; }
.team-review-overview small { color: var(--muted); font-size: 9px; }
.team-review-grid { display: grid; grid-template-columns: minmax(420px, .85fr) minmax(560px, 1.15fr); gap: 18px; align-items: start; }
.review-work-card { border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; box-shadow: 0 8px 28px rgba(18,45,69,.05); }
.review-card-heading { display: flex; justify-content: space-between; gap: 18px; padding: 21px 22px; border-bottom: 1px solid var(--line); }
.review-card-heading h2 { margin: 0 0 6px; color: var(--navy); font-size: 20px; }
.review-card-heading p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.inline-review-section, .inline-private { margin: 16px; }
.registration-decision-box { padding: 0 16px 18px; }
.registration-decision-box > label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 11px; font-weight: 800; }
.registration-decision-box textarea { width: 100%; padding: 10px; border: 1px solid #cfd9e2; border-radius: 7px; resize: vertical; }
.registration-decision-box > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.registration-decision-box button { padding: 11px; border-radius: 7px; font-size: 10px; font-weight: 900; }
.registration-decision-box p { margin: 10px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.published-profile-link { padding: 0 16px 18px; }
.team-document-list { display: grid; }
.team-document-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 14px 17px; border-bottom: 1px solid #e8edf1; }
.team-document-item:last-child { border-bottom: 0; }
.team-document-item.missing { background: #fbfcfd; }
.team-doc-index { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: #eef3f6; color: var(--muted); font-size: 9px; font-weight: 900; }
.team-document-item.uploaded .team-doc-index { background: var(--yellow-soft); color: #6d5600; }
.team-doc-copy { min-width: 0; }
.team-doc-copy > div { display: flex; align-items: center; gap: 9px; }
.team-doc-copy h3 { margin: 0; color: var(--navy); font-size: 12px; }
.team-doc-copy p { margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.team-doc-copy small { display: block; margin-top: 4px; color: #758596; font-size: 9px; }
.missing-label { color: #8a98a5; font-size: 9px; font-weight: 800; text-transform: uppercase; }

.comment-report-page { min-height: 100vh; background: #e9eef2; }
.comment-report-shell { width: min(980px, calc(100% - 34px)); margin: 34px auto 60px; padding: 42px 48px; background: white; box-shadow: 0 10px 35px rgba(18,45,69,.11); }
.comment-report-actions { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.comment-report-heading { display: grid; grid-template-columns: 135px minmax(0, 1fr) auto; align-items: start; gap: 24px; padding-bottom: 24px; border-bottom: 4px solid var(--yellow); }
.comment-report-heading > img { width: 135px; height: 80px; object-fit: contain; }
.comment-report-heading h1 { margin: 0 0 9px; color: var(--navy); font-size: 29px; letter-spacing: -.03em; }
.comment-report-heading h2 { margin: 0 0 6px; color: var(--ink); font-size: 18px; }
.comment-report-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.comment-report-heading dl { min-width: 120px; margin: 0; }
.comment-report-heading dl > div { padding: 6px 0; border-bottom: 1px solid var(--line); }
.comment-report-heading dt { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.comment-report-heading dd { margin: 3px 0 0; color: var(--navy); font-size: 13px; font-weight: 900; }
.comment-report-privacy { margin: 18px 0 24px; padding: 11px 13px; border-left: 4px solid #c05b35; background: #fff4f0; color: #813b24; font-size: 10px; font-weight: 800; }
.comment-report-group { margin-top: 24px; break-inside: avoid; }
.comment-report-group-heading { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--navy); color: white; }
.comment-report-group-heading > span { color: var(--yellow); font-size: 12px; font-weight: 900; }
.comment-report-group-heading h2 { margin: 0; font-size: 16px; }
.comment-report-group-heading p { margin: 3px 0 0; color: #cad8e4; font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.comment-report-comments { border: 1px solid var(--line); border-top: 0; }
.comment-report-comments article { padding: 16px 18px; border-bottom: 1px solid var(--line); break-inside: avoid; }
.comment-report-comments article:last-child { border-bottom: 0; }
.comment-report-meta { display: flex; align-items: center; gap: 9px; }
.comment-report-meta > strong { color: var(--navy); font-size: 10px; }
.comment-report-meta > span:not(.workflow-pill) { flex: 1; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.comment-report-comments article > p { margin: 12px 0; color: var(--ink); font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.comment-report-comments footer { display: flex; gap: 10px; color: var(--muted); font-size: 8px; }
.comment-report-comments footer strong { color: var(--navy); }
.comment-report-empty { padding: 44px 20px; border: 1px solid var(--line); text-align: center; }
.comment-report-empty h2 { margin: 0 0 8px; color: var(--navy); }
.comment-report-empty p { margin: 0; color: var(--muted); }
.comment-report-footer { margin-top: 32px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; text-align: center; }

.public-loading-logo { width: 220px; padding: 12px; border-radius: 9px; background: white; }
.public-team-page { min-height: 100vh; background: #f1f4f6; }
.public-site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(28px, calc((100vw - 1180px) / 2)); border-bottom: 5px solid var(--yellow); background: var(--navy); }
.public-site-header img { width: 188px; height: 72px; object-fit: contain; padding: 7px 10px; border-radius: 6px; background: white; }
.public-site-header > div { display: flex; align-items: center; gap: 20px; color: white; }
.public-site-header span { font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.public-site-header a:last-child { padding: 9px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; color: white; text-decoration: none; font-size: 11px; font-weight: 800; }
.public-team-hero { min-height: 360px; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 65px max(28px, calc((100vw - 1180px) / 2)); color: white; background: linear-gradient(118deg, #06243f 0%, #0c4777 68%, #12679b 100%); }
.public-hero-copy { max-width: 780px; }
.public-team-hero .eyebrow { color: var(--yellow) !important; }
.public-team-hero h1 { margin: 0; font-size: clamp(42px, 7vw, 76px); line-height: .98; letter-spacing: -.055em; }
.public-school { margin: 18px 0 0; color: #d5e1eb; font-size: 17px; line-height: 1.5; }
.public-vehicle-name { display: inline-flex; align-items: baseline; gap: 13px; margin-top: 28px; padding: 13px 17px; border-left: 4px solid var(--yellow); background: rgba(255,255,255,.08); }
.public-vehicle-name span { color: #bed0de; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.public-vehicle-name strong { font-size: 19px; }
.public-team-logo { width: min(230px, 28vw); max-height: 190px; object-fit: contain; padding: 18px; border-radius: 14px; background: white; box-shadow: 0 22px 55px rgba(0,0,0,.25); }
.public-team-content { width: min(1180px, calc(100% - 40px)); margin: -32px auto 0; padding-bottom: 70px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 22px; position: relative; }
.public-story-card, .public-facts-card, .public-specs-section, .public-roster-section { border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 12px 35px rgba(11,42,68,.08); overflow: hidden; }
.public-story-card { grid-column: 1; }
.public-team-photo, .public-photo-placeholder { width: 100%; height: min(42vw, 470px); object-fit: cover; }
.public-photo-placeholder { display: grid; place-items: center; background: #dfe7ed; color: var(--muted); font-weight: 800; }
.public-story { padding: 30px 34px 35px; }
.public-story h2, .public-section-heading h2, .public-roster-section h2 { margin: 0 0 13px; color: var(--navy); font-size: 27px; }
.public-story > p:last-child { margin: 0; color: #43576a; font-size: 15px; line-height: 1.75; white-space: pre-line; }
.public-facts-card { grid-column: 2; align-self: start; padding: 26px; }
.public-facts-card dl { margin: 0; }
.public-facts-card dl > div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.public-facts-card dl > div:last-child { border-bottom: 0; }
.public-facts-card dt { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.public-facts-card dd { margin: 6px 0 0; color: var(--navy); font-size: 14px; font-weight: 800; line-height: 1.5; }
.public-specs-section, .public-roster-section { grid-column: 1 / -1; padding: 31px 34px 35px; }
.public-section-heading { margin-bottom: 20px; }
.public-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.public-spec-grid article { min-height: 105px; padding: 19px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8fafb; }
.public-spec-grid article:nth-child(3n) { border-right: 0; }
.public-spec-grid article:nth-last-child(-n+3) { border-bottom: 0; }
.public-spec-grid span, .public-spec-grid strong { display: block; }
.public-spec-grid span { margin-bottom: 9px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.public-spec-grid strong { color: var(--navy); font-size: 14px; line-height: 1.45; }
.public-roster-section { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 35px; }
.public-roster-section ul { columns: 3; gap: 30px; margin: 0; padding: 0; list-style: none; }
.public-roster-section li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); color: #344b60; font-size: 13px; }
.public-roster-section > p { color: var(--muted); }
.public-team-footer { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 130px; padding: 25px; color: #bdccd9; background: var(--navy); }
.public-team-footer img { width: 150px; padding: 6px; border-radius: 5px; background: white; }
.public-team-footer p { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.team-profiles-page { min-height: 100vh; background: #f3f6f8; }
.profiles-hero { padding: 64px max(28px, calc((100vw - 1180px) / 2)) 70px; color: white; background: linear-gradient(118deg, #06243f 0%, #0c4777 68%, #12679b 100%); }
.profiles-hero > div { max-width: 780px; }
.profiles-hero .eyebrow { color: var(--yellow) !important; }
.profiles-hero h1 { margin: 0; font-size: clamp(42px, 7vw, 72px); line-height: 1; letter-spacing: -.055em; }
.profiles-hero p:last-child { max-width: 680px; margin: 18px 0 0; color: #d6e3ed; font-size: 16px; line-height: 1.65; }
.profiles-year-nav { display: flex; align-items: center; gap: 16px; padding: 17px max(28px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); background: white; }
.profiles-year-nav strong { flex: 0 0 auto; color: var(--navy); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.profiles-year-nav > div { display: flex; flex-wrap: wrap; gap: 7px; }
.profiles-year-nav a, .profiles-current-year { min-width: 44px; padding: 7px 9px; border-radius: 6px; font-size: 11px; font-weight: 900; text-align: center; }
.profiles-year-nav a { color: var(--navy); background: #edf3f7; text-decoration: none; }
.profiles-year-nav a:hover { color: white; background: var(--navy); }
.profiles-current-year { color: var(--navy); background: var(--yellow); }
.profiles-content { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 72px; }
.profiles-introduction { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.profiles-introduction h2 { margin: 0; color: var(--navy); font-size: 32px; }
.profiles-introduction > p { margin: 0; color: var(--muted); font-size: 11px; font-weight: 800; }
.profiles-message { padding: 44px 30px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: white; text-align: center; }
.profiles-message h2 { margin: 0 0 8px; color: var(--navy); }
.profiles-message p { margin: 0; }
.profiles-message.error { color: #923d34; background: #fff5f2; }
.division-profile-group { margin-top: 34px; }
.division-profile-group > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; padding: 0 3px 11px; border-bottom: 3px solid var(--navy); }
.division-profile-group > header h2 { margin: 0; color: var(--navy); font-size: 23px; }
.division-profile-group > header span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.division-team-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.profile-index-card { position: relative; display: grid; grid-template-columns: 6px 190px minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: 240px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 8px 24px rgba(8,43,76,.05); }
.profile-card-accent { background: var(--yellow); }
.profile-card-accent { grid-row: 1 / -1; }
.profile-card-photo-link { grid-row: 1 / -1; display: block; min-width: 0; overflow: hidden; background: #dce5eb; }
.profile-card-photo { display: block; width: 100%; height: 100%; min-height: 240px; object-fit: cover; transition: transform .25s ease; }
.profile-card-photo-link:hover .profile-card-photo { transform: scale(1.025); }
.profile-card-photo-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; width: 100%; height: 100%; min-height: 240px; color: #6c8291; background: linear-gradient(145deg, #e8eef2, #d7e2e8); text-align: center; }
.profile-card-photo-placeholder > span { display: grid; place-items: center; width: 64px; height: 64px; border: 3px solid rgba(6,36,63,.18); border-radius: 50%; color: rgba(6,36,63,.42); font-size: 16px; font-weight: 950; letter-spacing: .06em; }
.profile-card-photo-placeholder small { width: 100px; font-size: 9px; font-weight: 850; line-height: 1.4; text-transform: uppercase; }
.profile-card-copy { padding: 23px 20px 12px; }
.profile-card-copy h3 { margin: 0 0 7px; font-size: 20px; line-height: 1.25; }
.profile-card-copy h3 a { color: var(--navy); text-decoration: none; }
.profile-card-copy h3 a:hover { text-decoration: underline; }
.profile-card-school { margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.profile-card-copy dl { display: grid; gap: 8px; margin: 0; }
.profile-card-copy dl > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 9px; }
.profile-card-copy dt { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.profile-card-copy dd { margin: 0; color: #344b60; font-size: 11px; font-weight: 700; line-height: 1.4; }
.profile-card-footer { display: flex; align-items: end; justify-content: space-between; gap: 16px; min-height: 65px; padding: 5px 19px 18px 20px; }
.profile-card-logo { display: block; width: auto; max-width: 92px; height: auto; max-height: 54px; object-fit: contain; object-position: left bottom; }
.profile-card-link { display: flex; align-items: center; gap: 9px; margin-left: auto; color: var(--navy); font-size: 10px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.profile-card-link:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .admin-page-switcher > span { display: none; }
  .admin-page-switcher select { min-width: 170px; }
  .portal-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav, .help-card { display: none; }
  .team-card { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
  .workspace { padding: 27px 24px 60px; }
  .seeded-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .technical-review-layout { grid-template-columns: 1fr; overflow-y: auto; }.pdf-column { min-height: 620px; }.review-column { overflow: visible; border-left: 0; }.technical-drawer { overflow-y: auto; }
  .team-review-grid { grid-template-columns: 1fr; }
  .team-review-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-team-content { grid-template-columns: 1fr; }
  .public-story-card, .public-facts-card { grid-column: 1; }
  .table-tools { align-items: stretch; flex-direction: column; }
  .matrix-heading { align-items: stretch; }
  .matrix-legend { justify-content: flex-start; }
  .requirement-create { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header { height: 68px; padding: 0 16px; }
  .season-pill { display: none; }
  .header-link { display: none; }
  .header-meta { gap: 0; }
  .admin-page-switcher select { width: min(46vw, 185px); min-width: 0; padding: 8px 26px 8px 8px; font-size: 11px; }
  .official-logo { width: 112px; height: 50px; }
  .brand-context { display: none; }
  .portal-shell { min-height: calc(100vh - 68px); }
  .workspace { padding: 22px 16px 50px; }
  .welcome-row { align-items: start; flex-direction: column; }
  .car-badge { width: 100%; }
  .summary-grid, .form-grid, .seeded-details { grid-template-columns: 1fr; }
  .panel-heading { padding: 20px; }
  .panel form { padding: 20px; }
  .team-media-section { margin: 0 20px 4px; }
  .team-media-grid { grid-template-columns: 1fr; }
  .document-row { grid-template-columns: auto 1fr auto; padding: 14px; }
  .doc-state { display: none; }
  .upload-button { grid-column: 2 / -1; justify-self: start; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions button { width: 100%; }
  .admin-shell { padding: 25px 14px 50px; }
  .admin-heading { align-items: start; flex-direction: column; }
  .admin-total { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .technical-overlay { padding: 0; }.technical-drawer { border-radius: 0; }.technical-drawer .drawer-top { height: auto; }.technical-review-layout { height: auto; }.pdf-column { min-height: 480px; padding: 10px; }.technical-table th:nth-child(3), .technical-table td:nth-child(3), .technical-table th:nth-child(5), .technical-table td:nth-child(5) { display: none; }.technical-decision-actions { grid-template-columns: 1fr; }
  .table-actions { flex-direction: column; }.table-actions input { width: 100%; }
  .admin-table th:nth-child(2), .admin-table td:nth-child(2), .admin-table th:nth-child(5), .admin-table td:nth-child(5) { display: none; }
  .review-section dl, .private-details dl { grid-template-columns: 1fr; }
  .review-section dl .wide { grid-column: auto; }
  .drawer-actions { grid-template-columns: 1fr; }
  .team-review-heading { align-items: start; flex-direction: column; }
  .review-heading-actions { width: 100%; flex-direction: column-reverse; }
  .review-heading-status { width: 100%; }
  .team-review-overview { grid-template-columns: 1fr; }
  .team-document-item { grid-template-columns: auto minmax(0, 1fr); }
  .team-document-item > .review-button, .team-document-item > .missing-label { grid-column: 2; justify-self: start; }
  .registration-decision-box > div { grid-template-columns: 1fr; }
  .public-site-header { height: 76px; padding: 0 15px; }
  .public-site-header img { width: 135px; height: 58px; }
  .public-site-header span { display: none; }
  .public-team-hero { min-height: 0; align-items: start; flex-direction: column; padding: 45px 20px 64px; }
  .public-team-logo { width: 160px; max-height: 140px; }
  .public-team-content { width: calc(100% - 24px); margin-top: -28px; }
  .public-team-photo, .public-photo-placeholder { height: 62vw; }
  .public-story, .public-specs-section, .public-roster-section { padding: 23px; }
  .public-spec-grid { grid-template-columns: 1fr; }
  .public-spec-grid article, .public-spec-grid article:nth-child(3n), .public-spec-grid article:nth-last-child(-n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .public-spec-grid article:last-child { border-bottom: 0; }
  .public-roster-section { grid-template-columns: 1fr; gap: 10px; }
  .public-roster-section ul { columns: 1; }
  .public-team-footer { align-items: flex-start; flex-direction: column; }
  .profiles-hero { padding: 44px 20px 50px; }
  .profiles-year-nav { align-items: flex-start; flex-direction: column; padding: 15px 20px; }
  .profiles-content { width: calc(100% - 24px); padding-top: 34px; }
  .profiles-introduction { align-items: flex-start; flex-direction: column; gap: 8px; }
  .division-team-list { grid-template-columns: 1fr; }
  .profile-index-card { grid-template-columns: 5px minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .profile-card-accent { grid-row: 1 / -1; }
  .profile-card-photo-link { grid-column: 2; grid-row: 1; height: 58vw; max-height: 310px; }
  .profile-card-photo, .profile-card-photo-placeholder { min-height: 0; height: 100%; }
  .profile-card-copy { grid-column: 2; grid-row: 2; }
  .profile-card-footer { grid-column: 2; grid-row: 3; }
  .matrix-admin-shell { padding-right: 10px; padding-left: 10px; }
  .matrix-tools { align-items: stretch; flex-direction: column; }
  .matrix-tools input { width: 100%; }
  .matrix-scroll { max-height: calc(100vh - 330px); }
  .status-matrix .matrix-team-column { width: 176px; min-width: 176px; }
  .setup-grid { grid-template-columns: 1fr; }
  .setup-year-picker { width: 100%; }
  .requirement-create { grid-template-columns: 1fr; }
  .setup-list-row { align-items: stretch; grid-template-columns: 1fr; }
  .setup-list-row label { grid-template-columns: 1fr; }
  .setup-inline-form { align-items: stretch; flex-direction: column; }
  .setup-inline-form input { width: 100%; }
  .comment-report-shell { width: 100%; margin: 0; padding: 24px 18px; box-shadow: none; }
  .comment-report-heading { grid-template-columns: 1fr; }
  .comment-report-heading > img { width: 120px; }
  .comment-report-heading dl { display: flex; gap: 20px; }
}

@media print {
  @page { size: auto; margin: 14mm; }
  body, .comment-report-page { background: white; }
  .report-screen-only { display: none !important; }
  .comment-report-shell { width: 100%; margin: 0; padding: 0; box-shadow: none; }
  .comment-report-heading { grid-template-columns: 110px minmax(0, 1fr) auto; }
  .comment-report-heading > img { width: 110px; height: 68px; }
  .comment-report-heading h1 { font-size: 23px; }
  .comment-report-group { margin-top: 17px; }
  .comment-report-comments article { padding: 12px 14px; }
  .comment-report-footer { position: running(report-footer); }
}
.access-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background: linear-gradient(145deg, #eef4f8, #fff9dc);
}

.access-card {
  width: min(720px, 100%);
  background: #fff;
  border: 1px solid #dce5ea;
  border-radius: 22px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 24px 70px rgba(3, 43, 68, .12);
}

.access-card > img { width: min(360px, 100%); height: auto; margin-bottom: 28px; }
.access-card h1 { margin: 4px 0 12px; color: #062f4f; font-size: clamp(2rem, 5vw, 3.25rem); }
.access-card > p { color: #4b6372; line-height: 1.65; }
.access-card label { display: block; margin: 22px 0 8px; color: #173c54; font-weight: 700; }
.access-card label span { color: #71828d; font-weight: 400; }
.access-card select, .access-card textarea, .access-card input { width: 100%; border: 1px solid #bacbd5; border-radius: 10px; padding: 12px 14px; background: #fff; color: #173c54; }
.access-type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; padding: 5px; border-radius: 12px; background: #edf3f6; }
.access-type-switch button { padding: 11px; border: 0; border-radius: 8px; color: #526879; background: transparent; font-weight: 800; }
.access-type-switch button.selected { color: white; background: #082f4f; box-shadow: 0 4px 12px rgba(8,47,79,.2); }
.access-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.access-actions a { text-decoration: none; }

.account-request-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 28px; }
.account-request-card, .empty-access { background: #fff; border: 1px solid #dce5ea; border-radius: 16px; padding: 22px; }
.account-request-card h2, .empty-access h2 { color: #062f4f; margin: 4px 0; }
.account-request-card > p { color: #5b707d; }
.account-request-card dl { display: grid; gap: 8px; margin: 18px 0; }
.account-request-card dl div { display: grid; grid-template-columns: 86px 1fr; gap: 10px; }
.account-request-card dt { color: #71828d; }
.account-request-card dd { margin: 0; color: #173c54; overflow-wrap: anywhere; }
.account-request-card blockquote { margin: 16px 0; padding: 12px 14px; border-left: 4px solid #f3bd24; background: #fff9df; color: #425b69; }
.account-request-card > div:last-child { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.staff-access-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, .65fr) minmax(190px, .8fr) minmax(180px, .75fr) auto; align-items: end; gap: 16px; margin-bottom: 24px; padding: 20px; border: 1px solid #dce5ea; border-radius: 16px; background: #fff; }
.staff-access-form h2 { margin: 2px 0 4px; color: #062f4f; }
.staff-access-form p { margin: 0; color: #637487; font-size: 12px; }
.staff-access-form label { display: grid; gap: 7px; color: #173c54; font-size: 11px; font-weight: 800; }
.staff-access-form input { min-width: 0; padding: 11px 12px; border: 1px solid #cfd9e2; border-radius: 7px; }
.password-reset { display: flex; min-width: 250px; gap: 8px; }
.password-reset input { min-width: 145px; padding: 9px 10px; border: 1px solid #cfd9e2; border-radius: 7px; }
.password-reset button { white-space: nowrap; }
.account-admin-table { min-width: 1160px; }
.account-controls { display: flex; min-width: 270px; gap: 7px; flex-wrap: wrap; }
.account-controls button { white-space: nowrap; }
.danger-button { border: 1px solid #c94d48; border-radius: 7px; padding: 9px 11px; color: #a62f2b; background: #fff; font-weight: 800; }
.danger-button:hover { color: #fff; background: #a62f2b; }
.current-account-note { color: #617584; font-size: 12px; font-weight: 700; }
.login-card form { margin-top: 16px; }
.login-help { margin: 22px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.login-help a { color: var(--navy); font-weight: 800; }
.credential-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.request-section-heading { margin: 10px 0 14px; }
.request-section-heading h2 { margin: 3px 0 0; color: var(--navy); }

.portal-landing { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); background: #f4f8fa; }
.portal-welcome { width: min(820px, 100%); align-self: center; justify-self: center; padding: clamp(32px, 6vw, 78px); }
.portal-welcome > img { width: min(390px, 80%); height: auto; margin-bottom: 34px; }
.portal-welcome h1 { max-width: 720px; margin: 7px 0 16px; color: var(--navy); font-size: clamp(36px, 5vw, 62px); line-height: 1.02; letter-spacing: -.055em; }
.portal-intro { max-width: 680px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.portal-audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 38px; }
.portal-audience-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 320px; padding: 27px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 14px 36px rgba(12,47,72,.07); }
.portal-audience-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--yellow); }
.portal-audience-card.staff::before { background: #1676a8; }
.portal-audience-card.register::before { background: #2b7a50; }
.portal-card-number { align-self: flex-start; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--navy); background: var(--yellow-soft); font-size: 11px; font-weight: 900; }
.portal-audience-card.staff .portal-card-number { color: #0d628d; background: #e1f1f9; }
.portal-audience-card.register .portal-card-number { color: #226542; background: #e2f3e9; }
.portal-audience-card h2 { margin: 20px 0 8px; color: var(--navy); font-size: 24px; }
.portal-audience-card p { flex: 1; margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.58; }
.portal-primary-action { display: block; padding: 13px 16px; border-radius: 8px; color: white; background: var(--navy); font-size: 12px; font-weight: 900; text-align: center; text-decoration: none; }
.portal-primary-action:hover { background: #0d4d77; }
.portal-profiles-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 16px 18px; border: 1px solid #d4dee6; border-left: 5px solid var(--yellow); border-radius: 10px; color: var(--navy); background: white; text-decoration: none; box-shadow: 0 8px 22px rgba(12,47,72,.05); }
.portal-profiles-link span, .portal-profiles-link strong, .portal-profiles-link small { display: block; }
.portal-profiles-link strong { font-size: 15px; }
.portal-profiles-link small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 700; }
.portal-profiles-link b { font-size: 20px; }
.portal-profiles-link:hover { border-color: #aebdca; transform: translateY(-1px); }
.portal-request-link { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--navy); font-size: 11px; font-weight: 900; text-decoration: none; }
.portal-request-link:hover { text-decoration: underline; }
.portal-card-note { min-height: 25px; margin-top: 14px; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.35; }
.portal-help { margin: 20px 0 0; color: #6f8290; font-size: 11px; line-height: 1.5; }
.portal-visual { position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: flex-end; padding: clamp(36px, 6vw, 76px); color: white; background: linear-gradient(155deg, #0b3a5e 0%, #061f34 70%); }
.portal-visual::before, .portal-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.portal-visual::before { width: 620px; height: 620px; top: -210px; right: -280px; }
.portal-visual::after { width: 430px; height: 430px; top: -115px; right: -170px; }
.portal-sun { position: absolute; top: clamp(90px, 16vh, 180px); left: clamp(40px, 7vw, 100px); width: 145px; height: 145px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 28px rgba(246,194,36,.08), 0 0 0 58px rgba(246,194,36,.04); }
.portal-sun::after { content: ""; position: absolute; left: -120px; top: 116px; width: 440px; height: 3px; transform: rotate(-12deg); background: linear-gradient(90deg, transparent, rgba(246,194,36,.72), transparent); }
.portal-visual-copy { position: relative; z-index: 1; max-width: 420px; }
.portal-visual-copy p { margin: 0 0 12px; color: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.portal-visual-copy strong { font-size: clamp(24px, 3vw, 40px); line-height: 1.18; letter-spacing: -.03em; }

@media (max-width: 680px) {
  .access-actions > * { width: 100%; text-align: center; }
  .staff-access-form { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .portal-landing { grid-template-columns: 1fr; }
  .portal-visual { min-height: 340px; }
  .portal-audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .portal-welcome { padding: 30px 18px 40px; }
  .portal-welcome h1 { font-size: 38px; }
  .portal-audience-grid { grid-template-columns: 1fr; }
  .portal-audience-card { min-height: 290px; }
}

.new-team-card { width: min(820px, 100%); }
.new-team-card fieldset { margin: 28px 0 0; padding: 0; border: 0; }
.new-team-card legend { width: 100%; padding: 0 0 10px; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 16px; font-weight: 900; }
.new-team-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.new-team-grid .wide { grid-column: 1 / -1; }
.new-team-complete h2 { margin-top: 28px; color: var(--navy); }
.new-team-complete ol { margin: 0 0 28px; padding-left: 22px; color: var(--muted); line-height: 1.7; }
.new-team-complete .approve-button { display: inline-block; text-decoration: none; }

@media (max-width: 620px) {
  .new-team-grid { grid-template-columns: 1fr; }
  .new-team-grid .wide { grid-column: auto; }
}

/* Theme studio ----------------------------------------------------------- */
.theme-studio { margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 22px rgba(12,47,72,.05); }
.theme-studio-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.theme-studio-heading h2 { margin: 3px 0 6px; color: var(--navy); font-size: 20px; }
.theme-studio-heading > div > p:last-child { max-width: 520px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.theme-kicker { margin: 0; color: #776000; font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.theme-studio-heading label { flex: 0 0 190px; }
.theme-studio-heading label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.theme-studio-heading select { width: 100%; padding: 10px 32px 10px 11px; border: 1px solid #c7d4de; border-radius: 7px; color: var(--navy); background: white; font-size: 11px; font-weight: 800; }
.theme-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.theme-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #f9fbfc; text-align: left; }
.theme-choice:hover { border-color: #9fb1bf; background: white; }
.theme-choice.selected { border-color: var(--navy); box-shadow: inset 0 -3px var(--yellow); background: white; }
.theme-swatches { display: flex; width: 39px; height: 32px; overflow: hidden; border: 1px solid rgba(0,0,0,.12); border-radius: 6px; }
.theme-swatches i { flex: 1; }
.theme-choice-copy strong, .theme-choice-copy small { display: block; }
.theme-choice-copy strong { color: var(--navy); font-size: 10px; }
.theme-choice-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.theme-choice-state { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.theme-choice.selected .theme-choice-state { color: var(--green); }

/* SCC Heritage: intentionally close to the current solarcarchallenge.org. */
html[data-theme="scc-heritage"] {
  --navy: #00224d;
  --navy-2: #003b70;
  --yellow: #ffcc00;
  --yellow-soft: #fff3b3;
  --ink: #111111;
  --muted: #515151;
  --line: #a3a3a3;
  --canvas: #dedede;
  --green: #004416;
  --burgundy: #84000a;
}
html[data-theme="scc-heritage"] body { font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #cfcfcf; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 2px, rgba(0,0,0,.025) 2px 4px); }
html[data-theme="scc-heritage"] .site-header { max-width: 1280px; margin: 0 auto; background: var(--navy); border-right: 1px solid #777; border-left: 1px solid #777; border-bottom-color: var(--yellow); }
html[data-theme="scc-heritage"] .official-logo { border-radius: 0; }
html[data-theme="scc-heritage"] .portal-shell { width: min(1280px, 100%); margin: 0 auto; border-right: 1px solid #777; border-left: 1px solid #777; background: #f3f3f3; }
html[data-theme="scc-heritage"] .sidebar { border-right: 2px solid #888; }
html[data-theme="scc-heritage"] .sidebar nav { gap: 1px; }
html[data-theme="scc-heritage"] .sidebar nav button, html[data-theme="scc-heritage"] .sidebar-public-link { border-radius: 0; color: white; background: var(--green); }
html[data-theme="scc-heritage"] .sidebar nav button:nth-child(2) { background: var(--burgundy); }
html[data-theme="scc-heritage"] .sidebar nav button:nth-child(3) { background: var(--navy); }
html[data-theme="scc-heritage"] .sidebar-public-link { color: #111; background: var(--yellow); }
html[data-theme="scc-heritage"] .sidebar nav button span, html[data-theme="scc-heritage"] .sidebar-public-link span { color: inherit; opacity: .78; }
html[data-theme="scc-heritage"] .sidebar nav button:hover, html[data-theme="scc-heritage"] .sidebar nav .nav-current { color: white; filter: brightness(1.18); background: var(--green); box-shadow: inset 8px 0 rgba(255,255,255,.28); }
html[data-theme="scc-heritage"] .panel, html[data-theme="scc-heritage"] .summary-card, html[data-theme="scc-heritage"] .review-work-card, html[data-theme="scc-heritage"] .setup-card, html[data-theme="scc-heritage"] .matrix-card { border-radius: 0; box-shadow: none; }
html[data-theme="scc-heritage"] .panel-heading, html[data-theme="scc-heritage"] .review-card-heading, html[data-theme="scc-heritage"] .setup-card-heading { border-bottom: 5px solid var(--yellow); }
html[data-theme="scc-heritage"] .panel-heading h2, html[data-theme="scc-heritage"] .review-card-heading h2 { font-family: Arial, Helvetica, sans-serif; }
html[data-theme="scc-heritage"] .button-primary, html[data-theme="scc-heritage"] .button-secondary, html[data-theme="scc-heritage"] .upload-button, html[data-theme="scc-heritage"] .review-button, html[data-theme="scc-heritage"] .approve-button, html[data-theme="scc-heritage"] input, html[data-theme="scc-heritage"] select, html[data-theme="scc-heritage"] textarea { border-radius: 0 !important; }
html[data-theme="scc-heritage"] .portal-landing { width: min(1120px, 100%); margin: 0 auto; grid-template-columns: minmax(0, 1fr) 265px; border-right: 2px solid #888; border-left: 2px solid #888; background: white; }
html[data-theme="scc-heritage"] .portal-welcome { width: 100%; padding: 38px 44px 48px; }
html[data-theme="scc-heritage"] .portal-welcome > img { width: 265px; margin-bottom: 23px; }
html[data-theme="scc-heritage"] .portal-welcome h1 { font-family: Arial, Helvetica, sans-serif; font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -.025em; }
html[data-theme="scc-heritage"] .portal-audience-card, html[data-theme="scc-heritage"] .portal-profiles-link, html[data-theme="scc-heritage"] .theme-studio, html[data-theme="scc-heritage"] .theme-choice { border-radius: 0; box-shadow: none; }
html[data-theme="scc-heritage"] .portal-audience-card.team::before { background: var(--green); }
html[data-theme="scc-heritage"] .portal-audience-card.staff::before { background: var(--burgundy); }
html[data-theme="scc-heritage"] .portal-primary-action { border-radius: 0; }
html[data-theme="scc-heritage"] .portal-visual { background: linear-gradient(180deg, var(--burgundy) 0 23%, var(--green) 23% 52%, var(--navy) 52% 80%, #111 80% 100%); }
html[data-theme="scc-heritage"] .portal-visual::before, html[data-theme="scc-heritage"] .portal-visual::after { display: none; }
html[data-theme="scc-heritage"] .portal-sun { width: 105px; height: 105px; border: 8px solid white; box-shadow: none; }
html[data-theme="scc-heritage"] .portal-sun::after { display: none; }
html[data-theme="scc-heritage"] .theme-studio { border-top: 7px solid var(--navy); }
html[data-theme="scc-heritage"] .theme-choice.selected { box-shadow: inset 6px 0 var(--yellow); }
html[data-theme="scc-heritage"] .access-page { background: #d1d1d1; }
html[data-theme="scc-heritage"] .access-card { border-radius: 0; border: 2px solid #777; box-shadow: none; }
html[data-theme="scc-heritage"] .access-card h1, html[data-theme="scc-heritage"] .access-card label, html[data-theme="scc-heritage"] .account-request-card h2, html[data-theme="scc-heritage"] .empty-access h2 { color: var(--navy); }
html[data-theme="scc-heritage"] .team-profiles-page, html[data-theme="scc-heritage"] .public-team-page { width: min(1060px, 100%); margin: 0 auto; border-right: 2px solid #888; border-left: 2px solid #888; background: white; }
html[data-theme="scc-heritage"] .public-site-header { height: 94px; padding: 0 18px; border-bottom: 2px solid #888; background: white; }
html[data-theme="scc-heritage"] .public-site-header img { width: 165px; height: 93px; padding: 0; border-radius: 0; }
html[data-theme="scc-heritage"] .public-site-header > div { color: var(--navy); }
html[data-theme="scc-heritage"] .public-site-header a:last-child { border-radius: 0; color: white; background: var(--navy); }
html[data-theme="scc-heritage"] .profiles-hero { padding: 35px 30px; color: #111; background: white; border-bottom: 1px solid #999; }
html[data-theme="scc-heritage"] .profiles-hero .eyebrow { color: var(--burgundy) !important; }
html[data-theme="scc-heritage"] .profiles-hero h1 { font-family: Arial, Helvetica, sans-serif; font-size: clamp(32px, 5vw, 46px); letter-spacing: -.02em; }
html[data-theme="scc-heritage"] .profiles-hero p:last-child { color: #333; }
html[data-theme="scc-heritage"] .profiles-year-nav { padding: 14px 30px; }
html[data-theme="scc-heritage"] .profiles-year-nav a, html[data-theme="scc-heritage"] .profiles-current-year { border-radius: 0; }
html[data-theme="scc-heritage"] .profiles-content { width: calc(100% - 60px); padding-top: 30px; }
html[data-theme="scc-heritage"] .division-profile-group > header { margin-bottom: 2px; padding: 7px 10px; border: 0; color: white; background: var(--green); }
html[data-theme="scc-heritage"] .division-profile-group > header h2, html[data-theme="scc-heritage"] .division-profile-group > header span { color: white; font-size: 13px; }
html[data-theme="scc-heritage"] .division-team-list { grid-template-columns: 1fr; gap: 0; }
html[data-theme="scc-heritage"] .profile-index-card { min-height: 190px; grid-template-columns: 170px minmax(0, 1fr); grid-template-rows: 1fr auto; border: 0; border-bottom: 1px solid var(--green); border-radius: 0; box-shadow: none; }
html[data-theme="scc-heritage"] .profile-card-accent { display: none; }
html[data-theme="scc-heritage"] .profile-card-photo-link { grid-column: 1; grid-row: 1 / -1; }
html[data-theme="scc-heritage"] .profile-card-photo, html[data-theme="scc-heritage"] .profile-card-photo-placeholder { min-height: 190px; }
html[data-theme="scc-heritage"] .profile-card-copy { padding: 15px 18px; text-align: center; }
html[data-theme="scc-heritage"] .profile-card-copy dl { display: block; }
html[data-theme="scc-heritage"] .profile-card-copy dl > div { display: inline; }
html[data-theme="scc-heritage"] .profile-card-copy dt, html[data-theme="scc-heritage"] .profile-card-copy dd { display: inline; }
html[data-theme="scc-heritage"] .profile-card-copy dt::after { content: ": "; }
html[data-theme="scc-heritage"] .profile-card-copy dd::after { content: "  |  "; }
html[data-theme="scc-heritage"] .profile-card-copy dl > div:last-child dd::after { content: ""; }
html[data-theme="scc-heritage"] .profile-card-footer { grid-column: 2; padding: 2px 18px 14px; }
html[data-theme="scc-heritage"] .profile-card-link { align-self: center; margin: 0; }
html[data-theme="scc-heritage"] .public-team-hero { min-height: 0; padding: 34px 30px 56px; background: var(--green); }
html[data-theme="scc-heritage"] .public-team-hero h1 { font-family: Arial, Helvetica, sans-serif; font-size: clamp(36px, 6vw, 58px); letter-spacing: -.025em; }
html[data-theme="scc-heritage"] .public-team-content { width: calc(100% - 60px); }
html[data-theme="scc-heritage"] .public-story-card, html[data-theme="scc-heritage"] .public-facts-card, html[data-theme="scc-heritage"] .public-specs-section, html[data-theme="scc-heritage"] .public-roster-section, html[data-theme="scc-heritage"] .public-team-logo { border-radius: 0; box-shadow: none; }

/* Heritage Refined: the SCC palette with current portal ergonomics. */
html[data-theme="heritage-refined"] {
  --navy: #00224d;
  --navy-2: #123f6c;
  --yellow: #ffcc00;
  --yellow-soft: #fff5bf;
  --ink: #18252d;
  --muted: #5f6e72;
  --line: #d9d7cc;
  --canvas: #f4f1e8;
  --green: #004f20;
  --burgundy: #84000a;
}
html[data-theme="heritage-refined"] body { background: var(--canvas); }
html[data-theme="heritage-refined"] .site-header { background: linear-gradient(100deg, var(--navy) 0 67%, var(--green) 67% 100%); border-bottom: 5px solid var(--yellow); }
html[data-theme="heritage-refined"] .sidebar nav .nav-current { box-shadow: inset 4px 0 var(--burgundy); }
html[data-theme="heritage-refined"] .help-card { background: var(--green); }
html[data-theme="heritage-refined"] .panel, html[data-theme="heritage-refined"] .summary-card, html[data-theme="heritage-refined"] .review-work-card, html[data-theme="heritage-refined"] .setup-card, html[data-theme="heritage-refined"] .matrix-card { border-radius: 8px; box-shadow: 0 8px 22px rgba(30,41,38,.07); }
html[data-theme="heritage-refined"] .panel-heading, html[data-theme="heritage-refined"] .review-card-heading { box-shadow: inset 5px 0 var(--burgundy); }
html[data-theme="heritage-refined"] .portal-landing { background: #f7f4ec; }
html[data-theme="heritage-refined"] .portal-audience-card, html[data-theme="heritage-refined"] .portal-profiles-link, html[data-theme="heritage-refined"] .theme-studio { border-radius: 9px; }
html[data-theme="heritage-refined"] .portal-audience-card.team::before { background: var(--burgundy); }
html[data-theme="heritage-refined"] .portal-audience-card.staff::before { background: var(--green); }
html[data-theme="heritage-refined"] .portal-visual { background: linear-gradient(155deg, var(--green), var(--navy) 72%); }
html[data-theme="heritage-refined"] .portal-visual::before { border-color: rgba(255,204,0,.24); }
html[data-theme="heritage-refined"] .access-page { background: linear-gradient(145deg, #efece3, #fff4b6); }
html[data-theme="heritage-refined"] .access-card { border-radius: 10px; border-top: 7px solid var(--burgundy); }
html[data-theme="heritage-refined"] .access-card h1, html[data-theme="heritage-refined"] .access-card label, html[data-theme="heritage-refined"] .account-request-card h2, html[data-theme="heritage-refined"] .empty-access h2 { color: var(--navy); }
html[data-theme="heritage-refined"] .profiles-hero, html[data-theme="heritage-refined"] .public-team-hero { background: linear-gradient(120deg, var(--green), var(--navy)); }
html[data-theme="heritage-refined"] .division-profile-group > header { padding: 10px 12px; border: 0; border-left: 7px solid var(--yellow); color: white; background: var(--green); }
html[data-theme="heritage-refined"] .division-profile-group > header h2, html[data-theme="heritage-refined"] .division-profile-group > header span { color: white; }
html[data-theme="heritage-refined"] .profile-card-accent { background: var(--burgundy); }
html[data-theme="heritage-refined"] .public-site-header, html[data-theme="heritage-refined"] .public-team-footer { background: var(--navy); }

/* Trackside: a high-energy race-day option using the same SCC identity. */
html[data-theme="trackside"] {
  --navy: #031c35;
  --navy-2: #0b395f;
  --yellow: #ffd32a;
  --yellow-soft: #fff3ad;
  --ink: #14212b;
  --muted: #61727e;
  --line: #cfd7dc;
  --canvas: #eef1f2;
  --green: #00632f;
  --burgundy: #84000a;
}
html[data-theme="trackside"] .site-header { background: var(--navy); border-bottom: 7px solid var(--yellow); }
html[data-theme="trackside"] .site-header::after { content: ""; position: absolute; right: 0; bottom: -7px; width: 150px; height: 7px; background: repeating-linear-gradient(90deg, #111 0 10px, white 10px 20px); }
html[data-theme="trackside"] .summary-card, html[data-theme="trackside"] .panel, html[data-theme="trackside"] .review-work-card, html[data-theme="trackside"] .setup-card, html[data-theme="trackside"] .matrix-card { border-radius: 5px; border-top: 4px solid var(--navy); }
html[data-theme="trackside"] .summary-card.active, html[data-theme="trackside"] .theme-choice.selected { box-shadow: inset 0 -5px var(--yellow); }
html[data-theme="trackside"] .portal-landing { background: #f2f4f5; }
html[data-theme="trackside"] .portal-welcome h1, html[data-theme="trackside"] .profiles-hero h1, html[data-theme="trackside"] .public-team-hero h1 { text-transform: uppercase; letter-spacing: -.045em; }
html[data-theme="trackside"] .portal-audience-card, html[data-theme="trackside"] .portal-profiles-link, html[data-theme="trackside"] .theme-studio { border-radius: 6px; }
html[data-theme="trackside"] .portal-audience-card.team::before { background: var(--yellow); }
html[data-theme="trackside"] .portal-audience-card.staff::before { background: var(--burgundy); }
html[data-theme="trackside"] .portal-visual { background-color: var(--navy); background-image: linear-gradient(155deg, rgba(3,28,53,.55), rgba(3,28,53,.95)), repeating-conic-gradient(rgba(255,255,255,.08) 0 25%, transparent 0 50%) 50% / 42px 42px; }
html[data-theme="trackside"] .portal-sun { border-radius: 4px; transform: rotate(45deg); box-shadow: 0 0 0 20px rgba(255,211,42,.08); }
html[data-theme="trackside"] .portal-sun::after { display: none; }
html[data-theme="trackside"] .portal-visual-copy p { color: var(--yellow); }
html[data-theme="trackside"] .access-page { background-color: #eef1f2; background-image: repeating-linear-gradient(45deg, rgba(3,28,53,.035) 0 12px, transparent 12px 24px); }
html[data-theme="trackside"] .access-card { border-radius: 6px; border-top: 8px solid var(--yellow); }
html[data-theme="trackside"] .access-card h1, html[data-theme="trackside"] .access-card label, html[data-theme="trackside"] .account-request-card h2, html[data-theme="trackside"] .empty-access h2 { color: var(--navy); }
html[data-theme="trackside"] .profiles-hero, html[data-theme="trackside"] .public-team-hero { background-color: var(--navy); background-image: linear-gradient(110deg, rgba(3,28,53,.25), rgba(3,28,53,.9)), repeating-conic-gradient(rgba(255,255,255,.065) 0 25%, transparent 0 50%) 50% / 48px 48px; }
html[data-theme="trackside"] .division-profile-group > header { padding: 9px 12px; border: 0; border-left: 8px solid var(--yellow); background: var(--navy); }
html[data-theme="trackside"] .division-profile-group > header h2, html[data-theme="trackside"] .division-profile-group > header span { color: white; }
html[data-theme="trackside"] .profile-card-accent { background: var(--yellow); }
html[data-theme="trackside"] .public-team-footer { border-top: 7px solid var(--yellow); }

@media (max-width: 980px) {
  .theme-studio-heading { align-items: stretch; flex-direction: column; }
  .theme-studio-heading label { flex-basis: auto; }
  html[data-theme="scc-heritage"] .portal-landing { grid-template-columns: 1fr; }
}

/* Version 1 final overrides: keep shared heritage tokens while using the PHP layout. */
.site-header{height:auto;display:block;padding:0;position:sticky;top:0}.header-inner{width:min(1180px,calc(100% - 32px));margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:88px}.site-header .brand img{width:74px;height:58px;object-fit:contain;background:#fff;border-radius:4px;padding:3px}.site-header .brand span{display:grid}.site-header .brand small{color:#ffe083}.site-header nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.site-header nav a{color:#fff;text-decoration:none;padding:9px 11px;border-radius:5px}.site-header nav a:hover,.site-header nav a:focus{background:rgba(255,255,255,.15)}.page-shell{width:min(1180px,calc(100% - 32px));margin:30px auto 60px;min-height:calc(100vh - 210px)}.site-footer{text-align:center;padding:24px}.panel{margin-bottom:22px}.action-card .button-primary,.action-card .button-secondary{margin-top:9px}.action-card .button-primary+ .button-secondary{margin-top:8px}.profile-index-card{display:flex;flex-direction:column}.profile-index-card>a>img{width:100%;height:190px;object-fit:cover}.profile-logo img{width:64px;height:44px;object-fit:contain}.auth-card{margin-left:auto;margin-right:auto}.auth-card label{color:var(--ink)}
@media(max-width:760px){.site-header{height:auto;padding:0}.header-inner{align-items:flex-start;flex-direction:column;padding:13px 0;min-height:0}.site-header nav{padding-bottom:8px}.page-shell{width:min(100% - 20px,1180px);margin-top:18px}}

@media (max-width: 620px) {
  .theme-choice-grid { grid-template-columns: 1fr; }
  .theme-studio { padding: 16px; }
  html[data-theme="scc-heritage"] .portal-welcome { padding: 28px 18px 40px; }
  html[data-theme="scc-heritage"] .profiles-content, html[data-theme="scc-heritage"] .public-team-content { width: calc(100% - 24px); }
  html[data-theme="scc-heritage"] .profile-index-card { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  html[data-theme="scc-heritage"] .profile-card-photo-link { grid-column: 1; grid-row: 1; height: 58vw; max-height: 310px; }
  html[data-theme="scc-heritage"] .profile-card-photo, html[data-theme="scc-heritage"] .profile-card-photo-placeholder { min-height: 0; height: 100%; }
  html[data-theme="scc-heritage"] .profile-card-copy { grid-column: 1; grid-row: 2; }
  html[data-theme="scc-heritage"] .profile-card-footer { grid-column: 1; grid-row: 3; }
}


/* First portal visit in each browser session. The overlay is opt-in via splash-init.js. */
.session-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 42%, rgba(18, 103, 166, .72), transparent 48%),
    linear-gradient(145deg, #03182c, #082b4c 58%, #0b4779);
  opacity: 1;
  transition: opacity .32s ease;
}
html.show-session-splash {
  overflow: hidden;
}
html.show-session-splash .session-splash {
  display: grid;
  animation: scc-splash-failsafe .01s linear 5s forwards;
}
.session-splash.is-leaving {
  opacity: 0;
}
.session-splash-card {
  width: min(440px, 88vw);
  text-align: center;
}
.session-splash-card img {
  display: block;
  width: min(360px, 76vw);
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .34));
  animation: scc-splash-arrive .7s ease-out both;
}
.session-splash-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 4.8vw, 2rem);
  font-weight: 900;
  letter-spacing: .02em;
}
.session-splash-subtitle {
  margin: 3px 0 14px;
  color: #ffe36a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.session-splash-progress {
  display: flex;
  justify-content: center;
  gap: 7px;
}
.session-splash-progress span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffe36a;
  animation: scc-splash-dot .9s ease-in-out infinite alternate;
}
.session-splash-progress span:nth-child(2) { animation-delay: .18s; }
.session-splash-progress span:nth-child(3) { animation-delay: .36s; }

@keyframes scc-splash-arrive {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes scc-splash-dot {
  from { opacity: .35; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-5px); }
}
@keyframes scc-splash-failsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .session-splash { transition: none; }
  .session-splash-card img,
  .session-splash-progress span { animation: none; }
}

.form-grid .notification-choice>span{display:inline-flex;align-items:center;gap:9px;width:max-content;max-width:100%;font-size:1rem;line-height:1.3;text-transform:none}.form-grid .notification-choice input[type="checkbox"]{display:inline-block;flex:0 0 auto;width:18px;height:18px;margin:0;padding:0;vertical-align:middle}

.page-shell.section-matrix{width:calc(100% - 32px);max-width:none}
.matrix-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.matrix-summary{margin-bottom:22px}
.matrix-summary .summary-card strong{font-size:1.45rem}
.matrix-legend{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:16px}
.matrix-shell{overflow:auto;border:1px solid #cad5e3;border-radius:7px;background:#fff}
.matrix-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}
.matrix-table th,.matrix-table td{border-right:1px solid #dbe3ed;border-bottom:1px solid #dbe3ed;vertical-align:middle}
.matrix-table thead tr{height:auto}
.matrix-table thead th{position:sticky;top:0;z-index:2;width:84px;min-width:84px;max-width:84px;height:auto;padding:8px 4px;background:#e9eff6;color:#173b63;font-size:.72rem;line-height:1.15;text-align:center;vertical-align:middle}
.matrix-table thead .matrix-category-row{height:34px}
.matrix-table thead .matrix-category-row th{top:0}
.matrix-table thead .matrix-category-row th:first-child{left:0;z-index:5;width:220px;min-width:220px;max-width:260px;height:auto;padding:8px;text-align:left;vertical-align:middle}
.matrix-table thead .matrix-category-heading{width:auto;min-width:0;max-width:none;height:34px;padding:7px 6px;color:#fff;font-size:.75rem;letter-spacing:.05em;text-transform:uppercase}
.matrix-table thead .matrix-category-heading.category-electrical{background:#0b4d86}
.matrix-table thead .matrix-category-heading.category-mechanical{background:#28714b}
.matrix-table thead .matrix-category-heading.category-administrative{background:#765500}
.matrix-table thead .matrix-document-row th{top:34px}
.matrix-table thead .matrix-document-heading span{display:block;width:76px;white-space:normal;overflow-wrap:anywhere;hyphens:auto;writing-mode:horizontal-tb;transform:none}
.matrix-table thead .matrix-document-heading.category-electrical{box-shadow:inset 0 4px #0b4d86}
.matrix-table thead .matrix-document-heading.category-mechanical{box-shadow:inset 0 4px #28714b}
.matrix-table thead .matrix-document-heading.category-administrative{box-shadow:inset 0 4px #765500}
.matrix-table tbody td{width:84px;min-width:84px;max-width:84px;padding:3px;text-align:center}
.matrix-table tbody tr:not(.matrix-division-row)>th{position:sticky;left:0;z-index:1;width:220px;min-width:220px;max-width:260px;padding:8px;background:#fff;text-align:left}
.matrix-table tbody th a{display:block;color:#173b63;font-weight:800}
.matrix-table tbody th small{display:block;color:#637387;font-weight:400}
.matrix-division-row th{position:sticky;left:0;z-index:3;padding:9px 12px;color:#fff;background:#0b3e70;text-align:left}
.matrix-division-row small{color:#fff;font-weight:400}
.matrix-status{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:6px 8px;font-size:.74rem;font-weight:800;text-decoration:none;white-space:nowrap}
.matrix-table .matrix-status{display:inline-grid;place-items:center;width:32px;height:32px;min-width:0;padding:0;font-size:1.05rem;line-height:1}
.matrix-status.missing{color:#5e6d7c;background:#edf1f4}
.matrix-status.awaiting_review{color:#735400;background:#fff0be}
.matrix-status.changes_requested{color:#8a252a;background:#f9d9da}
.matrix-status.approved{color:#176338;background:#d7f1df}
.matrix-status:hover,.matrix-status:focus{outline:2px solid #0b4d86;outline-offset:1px}
.matrix-inactive{opacity:.68}
@media(max-width:760px){.page-shell.section-matrix{width:calc(100% - 12px)}.matrix-table thead .matrix-document-heading,.matrix-table tbody td{width:76px;min-width:76px;max-width:76px}.matrix-table thead .matrix-document-heading span{width:68px}.matrix-table thead .matrix-category-row th:first-child,.matrix-table tbody tr:not(.matrix-division-row)>th{width:175px;min-width:175px;max-width:210px}}


/* Required-document discipline groups. */
.document-category-section{margin-top:26px;padding-top:2px}
.document-category-section+.document-category-section{border-top:1px solid #dbe3ed;padding-top:24px}
.document-category-heading{margin:0 0 14px;padding:8px 12px;border-left:7px solid #0b4d86;border-radius:4px;background:#eef4fa;color:#173b63}
.document-category-section.category-electrical .document-category-heading{border-left-color:#0b4d86;background:#eaf3fb}
.document-category-section.category-mechanical .document-category-heading{border-left-color:#28714b;background:#eaf5ee;color:#205d3e}
.document-category-section.category-administrative .document-category-heading{border-left-color:#765500;background:#fff5cf;color:#654900}

/* Multi-review technical outcomes and inline PDF workspace. */
.workflow-pill.concerns,.matrix-status.concerns{color:#765500;background:#fff0b8}
.workflow-pill.conflict,.matrix-status.conflict{color:#62318a;background:#eadcf7}
.notice.warning{border-color:#d49b19;color:#634800;background:#fff4cf}
.matrix-table .matrix-status{position:relative}
.matrix-review-count{position:absolute;right:-6px;top:-7px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:999px;color:#fff;background:#173b63;font-size:.65rem;font-weight:900;line-height:1}
.page-shell.section-technical-review{width:min(1500px,calc(100% - 32px));max-width:none}
.technical-review-actions{justify-content:flex-start;padding-top:0}
.pdf-review-panel{padding-bottom:16px}
.pdf-review-frame{display:block;width:100%;height:clamp(520px,72vh,900px);border:1px solid #b8c7d7;border-radius:6px;background:#eef2f5}
.pdf-review-fallback{margin-bottom:0}
.reviewer-outcome-list{display:grid;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.reviewer-outcome-list li{display:grid;grid-template-columns:minmax(160px,1fr) auto auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid #d7e0e9;border-radius:6px;background:#f8fafc}
.reviewer-outcome-list small{color:#637387}
.review-outcome-actions{justify-content:flex-start;padding-top:4px}
.concern-button{color:#563d00;background:#ffd76a}
.concern-button:hover,.concern-button:focus{background:#f2c94c}
@media(max-width:760px){.page-shell.section-technical-review{width:calc(100% - 12px)}.pdf-review-frame{height:62vh;min-height:430px}.reviewer-outcome-list li{grid-template-columns:1fr auto}.reviewer-outcome-list small{grid-column:1/-1}.review-outcome-actions button{width:100%}}


/* Team workspace tabs and one-action document uploads. */
.workspace-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 22px;padding:6px;border:1px solid #cad5e3;border-radius:8px;background:#e9eff6}
.workspace-tabs a{display:grid;place-items:center;min-height:46px;padding:10px 14px;border-radius:6px;color:#173b63;font-weight:800;text-align:center;text-decoration:none}
.workspace-tabs a:hover,.workspace-tabs a:focus{background:#fff}
.workspace-tabs a.active{color:#fff;background:#0b4d86;box-shadow:0 2px 7px rgba(10,40,75,.18)}
.workspace-tab-panel{scroll-margin-top:18px}
.form-section-heading{margin:8px 0 0;padding-bottom:8px;border-bottom:2px solid #dbe3ed;color:#173b63}
.shared-data-note{margin:0 0 20px}
.bulk-document-form .document-card label{display:grid;gap:7px;margin-top:auto;color:#315779;font-weight:800}
.bulk-document-form .document-card input[type=file]{width:100%;padding:9px;border:1px solid #9fb0c3;border-radius:5px;background:#f8fafc;color:#14213d;font:inherit}
.bulk-upload-actions{position:sticky;bottom:12px;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:24px;padding:16px 18px;border:1px solid #9fb0c3;border-left:7px solid #0b4d86;border-radius:8px;background:#fff;box-shadow:0 6px 22px rgba(10,40,75,.18)}
.bulk-upload-actions>div{display:grid;gap:3px}
.bulk-upload-actions small{color:#5e7084}
.bulk-upload-actions button{white-space:nowrap}
@media(max-width:760px){.workspace-tabs{gap:4px;padding:4px}.workspace-tabs a{min-height:44px;padding:8px 5px;font-size:.88rem}.bulk-upload-actions{bottom:6px;align-items:stretch;flex-direction:column}.bulk-upload-actions button{width:100%}}

/* Prominent team website actions */
.profile-website-cta{
  background:var(--yellow,#f5c518);
  color:var(--navy,#082b4c);
  border:2px solid rgba(8,43,76,.22);
  padding:12px 18px;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}
.profile-website-cta:hover,
.profile-website-cta:focus{
  background:#ffe06a;
  color:var(--navy,#082b4c);
  transform:translateY(-1px);
}

/* Reserve a bounded top-right slot; contain keeps wide and tall logos uncropped. */
.hero-panel.profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(12px, 3vw, 28px);
}
.profile-header-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-header-logo {
  display: block;
  grid-column: 2;
  justify-self: end;
  width: clamp(76px, 16vw, 160px);
  height: clamp(64px, 12vw, 120px);
  object-fit: contain;
  object-position: right top;
}
@media (max-width: 600px) {
  .profile-header-copy h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* Align the website action with the right edge of the whole profile header. */
.profile-header-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  margin-top: 0;
}
