:root {
  color-scheme: dark;
  --night: #0a0a09;
  --night-soft: #11110f;
  --surface: #171715;
  --yellow: #ffc107;
  --white: #f2f0e9;
  --muted: #a29e93;
  --line: rgba(242,240,233,.15);
  --head: "Arial Narrow", "Aptos Display", "Segoe UI", sans-serif;
  --body: "Trebuchet MS", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; min-height: 100vh; background: var(--night); color: var(--white); font-family: var(--body); font-size: 14px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.admin-layout { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 3; width: 262px; padding: 30px 20px 17px; display: flex; flex-direction: column; background: var(--night-soft); border-right: 1px solid var(--line); }
.admin-brand { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; padding: 0 7px 40px; }
.admin-brand img { width: 180px; height: auto; }
.admin-brand > span { color: var(--yellow); font-size: 8px; letter-spacing: .16em; }
.sidebar-caption { margin: 0; padding: 0 10px 13px; color: #827e72; font-size: 8px; letter-spacing: .16em; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { min-height: 46px; padding: 0 11px; display: flex; align-items: center; gap: 14px; border-left: 2px solid transparent; color: #c2bfb5; font-size: 12px; transition: color .18s ease, background .18s ease; }
.nav-link > span { color: #827e72; font-size: 9px; letter-spacing: .06em; }
.nav-link:hover, .nav-link.selected { border-left-color: var(--yellow); background: #1b1912; color: var(--yellow); }
.nav-link.selected > span, .nav-link:hover > span { color: var(--yellow); }
.sidebar-bottom { margin-top: auto; padding: 13px 3px 1px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); font-size: 10px; }
.sidebar-initials { width: 35px; height: 35px; display: grid; place-items: center; background: #2b2518; color: var(--yellow); font-size: 11px; }
.sidebar-bottom > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.sidebar-bottom small { color: var(--muted); font-size: 9px; }
.sidebar-bottom form button { padding: 4px 7px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.sidebar-bottom form button:hover { color: var(--yellow); }
.admin-main { min-height: 100vh; margin-left: 262px; padding: 0 clamp(34px, 6vw, 91px); display: flex; flex-direction: column; }
.admin-topbar { min-height: 115px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.admin-topbar > div > p { margin: 0 0 4px; color: var(--muted); font-size: 8px; letter-spacing: .15em; }
.admin-topbar h1 { margin: 0; font-family: var(--head); font-size: 26px; font-weight: 650; letter-spacing: -.035em; }
.top-logout { padding: 8px 0 8px 12px; border: 0; background: none; color: var(--muted); font-size: 10px; cursor: pointer; }
.top-logout:hover { color: var(--yellow); }
.welcome { position: relative; min-height: 223px; margin-top: 32px; padding: 35px 38px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: #151410; border: 1px solid #29271f; }
.eyebrow { margin: 0 0 11px; color: var(--yellow); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.welcome h2, .roster-intro h2 { position: relative; z-index: 1; margin: 0 0 8px; font-family: var(--head); font-size: 39px; font-weight: 650; letter-spacing: -.055em; line-height: 1.05; }
.welcome > p:last-of-type, .roster-intro > p:last-child { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 12px; }
.welcome-initials { position: absolute; top: 50%; right: 48px; color: rgba(255,193,7,.095); font-family: var(--head); font-size: 141px; font-weight: 750; letter-spacing: -.12em; line-height: 1; transform: translateY(-54%); }
.admin-links { max-width: 780px; margin-top: 42px; }
.admin-links > .eyebrow { margin-bottom: 13px; }
.admin-links > a { min-height: 89px; padding: 0 8px; display: grid; grid-template-columns: 53px 1fr 25px; align-items: center; border-top: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.admin-links > a:hover { padding-right: 12px; padding-left: 13px; background: #13120f; }
.admin-link-copy { display: flex; flex-direction: column; }
.admin-link-copy strong { font-family: var(--head); font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
.admin-link-copy small { color: var(--muted); font-size: 10px; }
.admin-link-arrow { justify-self: end; color: var(--yellow); font-size: 15px; }
.admin-footer { min-height: 61px; margin-top: auto; padding-top: 15px; display: flex; align-items: flex-start; justify-content: space-between; border-top: 1px solid var(--line); color: #807c72; font-size: 9px; }
.admin-footer form button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 9px; cursor: pointer; }
.admin-footer form button:hover { color: var(--yellow); }
.roster-intro { padding: 51px 0 31px; }
.roster-intro .eyebrow { margin-bottom: 8px; }
.roster-intro h2 { font-size: 43px; }
.roster-intro > p:last-child { max-width: 390px; margin-top: 11px; }
.roster { max-width: 940px; }
.leader { padding: 21px 0; display: grid; grid-template-columns: 117px 1fr; gap: 24px; border-top: 1px solid var(--line); }
.leader-monogram { width: 117px; height: 129px; display: grid; place-items: center; background: #262218; color: var(--yellow); font-family: var(--head); font-size: 38px; font-weight: 650; letter-spacing: -.07em; }
.monogram-b { background: #1e211b; }
.monogram-c { background: #251f1a; }
.monogram-d { background: #20201b; }
.leader-info .eyebrow { margin-bottom: 3px; font-size: 7px; }
.leader-info h2 { margin: 0; font-family: var(--head); font-size: 25px; font-weight: 650; letter-spacing: -.04em; }
.leader-info > p:not(.eyebrow) { max-width: 600px; margin: 3px 0 8px; color: var(--muted); font-size: 10px; }
.leader-info blockquote { margin: 6px 0 6px; padding: 3px 0 3px 11px; border-left: 1px solid var(--yellow); color: #dedad1; font-size: 10px; font-style: italic; }
.leader-info > a { color: var(--yellow); font-size: 10px; }
.leader-info > a:hover { text-decoration: underline; }
.fare-intro { padding-bottom: 24px; }
.fare-intro h2 { font-size: 41px; }
.fare-intro > p:last-child { max-width: 445px; }
.fare-table-wrap { max-width: 980px; }
.fare-table { width: 100%; border-collapse: collapse; text-align: left; }
.fare-table th { padding: 11px 12px; color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: .12em; }
.fare-table td { padding: 14px 12px; border-top: 1px solid var(--line); color: #d6d2c8; font-size: 10px; }
.fare-table td:first-child { display: flex; flex-direction: column; }
.fare-table td strong { color: var(--white); font-size: 11px; font-weight: 600; }
.fare-table td span { color: var(--muted); font-size: 9px; }
.fare-table td:last-child { color: var(--yellow); font-size: 11px; white-space: nowrap; }
.fare-note { margin: 14px 12px; color: var(--muted); font-size: 10px; }
.admin-contact-note { max-width: 980px; margin: 20px 0; padding: 18px 21px; display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 15px; background: #151410; }
.admin-contact-note .eyebrow, .admin-contact-note p { margin: 0; }
.admin-contact-note > p:not(.eyebrow) { color: var(--muted); font-size: 10px; }
.admin-contact-note > a { justify-self: end; color: var(--yellow); font-size: 11px; white-space: nowrap; }
.login-page { min-height: 100vh; padding: 42px 24px 92px; display: flex; align-items: center; flex-direction: column; justify-content: center; background: radial-gradient(ellipse at 56% 43%, #18160f, var(--night) 64%); }
.login-shell { width: min(100%, 410px); padding: 31px 37px 34px; background: #11110f; border: 1px solid #302c22; }
.login-shell .login-brand { width: fit-content; margin-bottom: 42px; padding: 0; align-items: flex-start; }
.login-shell .login-brand img.login-logo { width: 180px; max-width: 100%; height: auto; object-fit: contain; object-position: left; }
.login-shell > .eyebrow { margin-bottom: 7px; }
.login-shell > h1 { margin: 0; font-family: var(--head); font-size: 49px; font-weight: 650; letter-spacing: -.055em; line-height: 1; }
.login-copy { margin: 10px 0 25px; color: var(--muted); font-size: 11px; }
#login-form { display: grid; gap: 8px; }
#login-form label { margin-top: 7px; color: #dedbd2; font-size: 10px; }
#login-form input { width: 100%; height: 43px; padding: 0 11px; outline: 0; border: 1px solid #37352f; border-radius: 0; background: #0b0b0a; color: var(--white); font-size: 12px; }
#login-form input:focus { border-color: var(--yellow); }
#login-form .login-message { margin: 9px 0 0; padding: 9px 11px; border-left: 2px solid var(--yellow); background: #211e17; color: var(--white); font-size: 10px; }
#login-form .login-message[hidden] { display: none; }
.login-submit { min-height: 46px; margin-top: 11px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border: 0; background: var(--yellow); color: var(--night); font-size: 11px; font-weight: 800; cursor: pointer; transition: background .2s ease; }
.login-submit:hover { background: #ffd54b; }
.login-submit:disabled { opacity: .65; cursor: wait; }
.login-footnote { margin: 17px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.login-footer { position: fixed; right: 30px; bottom: 18px; left: 30px; display: flex; justify-content: space-between; color: #8a867b; font-size: 8px; letter-spacing: .1em; }
@media (max-width: 1080px) {
  .sidebar { width: 220px; }
  .admin-main { margin-left: 220px; padding-right: 38px; padding-left: 38px; }
  .leader { grid-template-columns: 100px 1fr; }
  .leader-monogram { width: 100px; height: 118px; }
}
@media (max-width: 700px) {
  .sidebar { width: 65px; align-items: center; padding: 17px 6px; }
  .admin-brand { align-items: center; padding: 0 0 25px; }
  .admin-brand img { width: 46px; height: 41px; object-fit: cover; object-position: left; }
  .admin-brand > span, .sidebar-caption, .nav-link:not(.selected) { font-size: 0; }
  .sidebar nav { width: 100%; }
  .nav-link, .nav-link.selected { min-height: 48px; justify-content: center; padding: 0; font-size: 0; }
  .nav-link > span { font-size: 8px; }
  .sidebar-bottom { flex-direction: column; }
  .sidebar-bottom > span:nth-child(2), .sidebar-bottom form { display: none; }
  .admin-main { margin-left: 65px; padding: 0 20px; }
  .admin-topbar { min-height: 95px; }
  .admin-topbar h1 { font-size: 21px; }
  .today { display: none; }
  .welcome { min-height: 190px; padding: 24px 20px; }
  .welcome h2 { max-width: 80%; font-size: 31px; }
  .welcome-initials { right: 7px; font-size: 95px; }
  .roster-intro { padding: 37px 0 23px; }
  .roster-intro h2 { font-size: 36px; }
  .leader { grid-template-columns: 78px 1fr; gap: 15px; }
  .leader-monogram { width: 78px; height: 96px; font-size: 30px; }
  .fare-table th, .fare-table td { padding-right: 6px; padding-left: 6px; font-size: 9px; }
  .admin-contact-note { grid-template-columns: 1fr; gap: 4px; }
  .admin-contact-note > a { justify-self: start; }
  .login-shell { padding: 28px 24px; }
}
.nav-link > .nav-mark, .admin-link-mark { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--yellow); }
.nav-link > .nav-mark { margin-right: 8px; }
.nav-link.selected > .nav-mark, .nav-link:hover > .nav-mark { box-shadow: 0 0 9px rgba(255,193,7,.7); }
.admin-links > a { grid-template-columns: 22px 1fr 25px; }
.admin-link-mark { align-self: center; }
.welcome-mark { position: absolute; right: 61px; width: 84px; height: 84px; border: 1px solid rgba(255,193,7,.32); border-radius: 50%; }
.welcome-mark::after { position: absolute; inset: 30px; border-radius: 50%; background: var(--yellow); content: ""; }
.admin-editor { max-width: 940px; margin: 13px 0 31px; padding: 24px 26px; border: 1px solid var(--line); background: #11110f; }
.admin-editor h2 { margin: 0 0 15px; font-family: var(--head); font-size: 20px; font-weight: 650; }
.admin-editor form { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px 15px; }
.admin-editor label { color: #d6d2c8; font-size: 10px; }
.admin-editor input:not([type="hidden"]):not([type="checkbox"]), .admin-editor textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #333027; border-radius: 0; background: #0b0b0a; color: var(--white); font: inherit; font-size: 11px; }
.admin-editor textarea { min-height: 70px; resize: vertical; }
.admin-editor input:focus, .admin-editor textarea:focus { border-color: var(--yellow); outline: none; }
.admin-editor .check-line { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; margin: 5px 0; }
.check-line input { accent-color: var(--yellow); }
.editor-actions { grid-column: 1 / -1; display: flex; gap: 9px; }
.admin-action { min-height: 33px; padding: 6px 11px; border: 1px solid #464237; background: transparent; color: var(--white); font: inherit; font-size: 10px; cursor: pointer; }
.admin-action:hover { border-color: var(--yellow); color: var(--yellow); }
.admin-action.primary { border-color: var(--yellow); background: var(--yellow); color: var(--night); font-weight: 700; }
.admin-action.primary:hover { background: #ffd54b; }
.admin-action.danger:hover { border-color: #d9896d; color: #f1a386; }
.leader-phone { margin: 4px 0 9px; padding: 0; border: 0; background: none; color: var(--yellow); font: inherit; font-size: 10px; text-align: left; cursor: pointer; }
.leader-phone .copy-feedback { padding-left: 8px; color: var(--white); font-size: 9px; }
.record-actions { display: flex; gap: 7px; }
.admin-status { min-height: 16px; margin: 9px 0 0; color: var(--yellow); font-size: 10px; }
.admin-status.error { color: #f1a386; }
.empty-state { padding: 19px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.fare-admin-list { max-width: 980px; }
.fare-admin-row { min-height: 67px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 17px; border-top: 1px solid var(--line); }
.fare-admin-row > div { display: flex; flex-direction: column; }
.fare-admin-row > div strong { color: var(--white); font-size: 11px; font-weight: 600; }
.fare-admin-row > div span { color: var(--muted); font-size: 9px; }
.fare-admin-amount { color: var(--yellow); font-size: 11px; white-space: nowrap; }
.fare-editor { max-width: 980px; }
.fare-editor form { grid-template-columns: 1fr 1.4fr 1fr auto auto; }
.fare-editor form label { display: none; }
@media (max-width: 700px) {
  .admin-editor { padding: 18px 15px; }
  .admin-editor form, .fare-editor form { grid-template-columns: 1fr; }
  .fare-editor form label { display: block; }
  .fare-admin-row { grid-template-columns: 1fr auto; }
  .fare-admin-row .record-actions { grid-column: 1 / -1; }
  .welcome-mark { right: 23px; width: 52px; height: 52px; }
  .welcome-mark::after { inset: 18px; }
}
