:root {
  color-scheme: light;
  --paper: #edf3f9;
  --surface: #fff;
  --surface-subtle: #f5f8fc;
  --ink: #17304f;
  --muted: #586c82;
  --line: #dce5ef;
  --primary: #174e80;
  --primary-hover: #103963;
  --link: #17558c;
  --soft: #e6eef8;
  --table-head: #f0f5fa;
  --shared: #93620c;
  --focus: #6ba6e0;
  --header: #103963;
  --on-header: #edf5ff;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #091a2c;
  --surface: #12273d;
  --surface-subtle: #172f49;
  --ink: #e9f2fc;
  --muted: #abc0d7;
  --line: #2b435c;
  --primary: #174e80;
  --primary-hover: #236caa;
  --link: #9dcdff;
  --soft: #203b58;
  --table-head: #172f49;
  --shared: #e3bc74;
  --focus: #8ab8e5;
  --header: #12273d;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--link); text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: 36px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.2; }
[hidden] { display: none !important; }
.top { min-height: 90px; background: var(--header); color: var(--on-header); display: flex; align-items: center; justify-content: space-between; padding: 18px max(4vw, 24px); gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .8px; line-height: 1.4; }
.brand img { width: 48px; height: 50px; object-fit: contain; flex: 0 0 auto; }
.brand small { display: block; color: #bdcfe3; font-size: 10px; font-weight: 400; letter-spacing: .3px; margin-top: 4px; }
.header-actions, .account { display: flex; align-items: center; gap: 22px; }
.account { font-size: 12px; }
.account form { margin: 0; }
.text-button { border: 0; background: none; color: inherit; cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.account .text-button { color: #c0d2e6; }
.internal-label { color: #bdcddd; font-size: 12px; }
.theme-toggle { width: 40px; height: 40px; flex: 0 0 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: var(--ink); background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.theme-toggle:hover { background: var(--soft); }
.theme-icon { width: 21px; height: 21px; }
.theme-icon.sun { display: none; }
[data-theme="dark"] .theme-icon.sun { display: block; }
[data-theme="dark"] .theme-icon.moon { display: none; }
.top .theme-toggle { background: #ffffff09; color: #e5f1ff; border-color: #ffffff2e; }
.top .theme-toggle:hover { background: #ffffff18; }
main { max-width: 1440px; margin: 0 auto; padding: 44px max(4vw, 24px) 55px; }
.eyebrow { font-size: 10px; font-weight: 650; color: var(--muted); letter-spacing: 1.6px; }
.lead { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.page-heading .eyebrow { margin-bottom: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 44px; padding: 11px 16px; border-radius: 6px; border: 1px solid transparent; text-decoration: none; font-size: 12px; font-weight: 600; cursor: pointer; }
.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.primary:hover { background: var(--primary-hover); }
.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.secondary:hover { background: var(--soft); }
.filters { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(230px, .55fr) auto; align-items: end; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 22px 24px; }
.filters label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.filters input, .filters select { width: 100%; border: 1px solid var(--line); border-radius: 5px; min-height: 46px; padding: 10px 12px; background: var(--surface); color: var(--ink); }
.filters input::placeholder { color: var(--muted); opacity: 1; }
.reset { color: var(--muted); font-size: 12px; margin: 0 0 6px 5px; white-space: nowrap; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0 12px; }
.list-heading p { font-weight: 600; font-size: 13px; }
.list-heading span { font-size: 11px; color: var(--muted); }
.directory { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface); }
.table-labels, .contact { display: grid; grid-template-columns: minmax(250px, 1.4fr) minmax(130px, .65fr) minmax(210px, 1fr) minmax(120px, .55fr) 62px; gap: 16px; align-items: center; padding: 20px 22px; }
.table-labels { background: var(--table-head); font-size: 9px; color: var(--muted); letter-spacing: .8px; font-weight: 600; padding-top: 13px; padding-bottom: 13px; }
.contact { border-top: 1px solid var(--line); font-size: 12px; min-height: 105px; }
.contact:hover { background: var(--surface-subtle); }
.person-cell { display: flex; gap: 13px; align-items: center; min-width: 0; }
.person-cell h2 { font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -.1px; }
.person-cell p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.avatar { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--link); background: var(--soft); font-size: 12px; font-weight: 600; }
.phone-cell a { font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.shared { display: block; font-size: 10px; margin-top: 5px; color: var(--shared); }
.email-cell { overflow-wrap: anywhere; font-size: 13px; }
.email-cell a { text-decoration: none; }
.email-cell a:hover, .phone-cell a:hover { text-decoration: underline; }
.office-cell { color: var(--muted); }
.repair-cell a { font-size: 11px; color: var(--muted); text-decoration: none; }
.repair-cell a:hover { color: var(--link); text-decoration: underline; }
.missing { color: var(--muted); font-size: 12px; }
.mobile-label { display: none; }
.list-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.list-bottom > span { font-size: 12px; color: var(--muted); }
.help-note { margin-top: 35px; padding: 20px 23px; border: 1px solid var(--line); background: var(--soft); display: flex; align-items: start; gap: 20px; border-radius: 7px; font-size: 12px; }
.help-note strong { white-space: nowrap; }
.help-note span { color: var(--muted); flex: 1; }
.help-note a { white-space: nowrap; }
.empty { text-align: center; padding: 70px 24px; }
.empty h2 { font-size: 20px; }
.empty p { color: var(--muted); margin-top: 8px; }
footer { border-top: 1px solid var(--line); max-width: 1280px; margin: 0 auto; padding: 24px max(2vw, 24px) 30px; font-size: 10px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.message { padding: 70px 0; max-width: 750px; }
.message h1 { margin-top: 15px; }
.message .button { margin-top: 28px; }
.skip { position: absolute; left: 15px; top: -100px; background: var(--surface); padding: 10px; z-index: 100; }
.skip:focus { top: 10px; }
/* The academy's shared two-panel sign-in style, with the approved contacts photo. */
.login-page main { max-width: none; padding: 0; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; }
.login-intro { position: relative; color: #fff; padding: 50px 58px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-width: 0; min-height: 100vh; min-height: 100svh; background: linear-gradient(180deg, rgba(7, 32, 60, .62), rgba(7, 32, 60, .2) 30%, rgba(7, 32, 60, .84) 67%, rgba(7, 32, 60, .8)), url('/static/phones-office-v1.png') 30% center / cover no-repeat; }
.login-intro .brand { font-size: 14px; letter-spacing: 1px; }
.login-intro .brand img { width: 50px; height: 50px; }
.login-intro .brand small { color: #d2e4f6; font-size: 9px; letter-spacing: .4px; }
.login-copy h1 { font-family: Georgia, serif; font-size: 49px; font-weight: 600; letter-spacing: -1.4px; line-height: 1.2; margin: 20px 0; }
.login-copy .eyebrow { color: #d2e4f6; }
.login-copy .lead { color: #d2e4f6; font-size: 14px; line-height: 1.6; max-width: 320px; }
.login-footer { font-size: 10px; color: #d2e4f6; line-height: 1.7; }
.login-panel { display: grid; place-items: center; padding: 90px 40px 70px; min-width: 0; background: var(--surface); }
.login-card { width: 100%; max-width: 380px; }
.login-card h2 { font-size: 30px; line-height: 1.5; font-weight: 600; letter-spacing: -.7px; margin-top: 15px; }
.login-card .lead { font-size: 13px; margin-top: 11px; }
.school-login-button { width: 100%; justify-content: space-between; padding: 16px 19px; margin-top: 26px; min-height: 57px; font-size: 14px; font-weight: 650; border-radius: 8px; }
.school-login-button svg { width: 24px; height: 24px; flex: 0 0 24px; }
.school-login-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 13px; text-align: center; }
.login-context { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 26px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 11px; }
.note-dot { height: 6px; width: 6px; flex-shrink: 0; background: #77a8d2; border-radius: 50%; }
.login-tools { position: absolute; top: 22px; right: 24px; z-index: 5; }
@media (max-width: 1100px) {
  .table-labels, .contact { grid-template-columns: minmax(200px, 1.2fr) minmax(120px, .65fr) minmax(180px, 1fr) 85px 52px; gap: 12px; padding-left: 16px; padding-right: 16px; }
  .avatar { display: none; }
  .office-cell { font-size: 11px; }
  .help-note { flex-wrap: wrap; }
  .login-intro { padding: 42px 36px; }
  .login-copy h1 { font-size: 44px; }
}
@media (max-width: 850px) {
  .top { min-height: 80px; padding: 16px 20px; gap: 14px; }
  .brand { font-size: 10px; gap: 10px; }
  .brand img { width: 35px; height: 43px; }
  .brand small { font-size: 10px; }
  .header-actions { gap: 13px; }
  .account { display: block; text-align: right; font-size: 11px; }
  .account .text-button { font-size: 10px; padding: 4px 0; }
  .internal-label { display: none; }
  main { padding: 32px 20px 40px; }
  h1 { font-size: 32px; }
  .page-heading { align-items: start; flex-direction: column; gap: 18px; }
  .filters { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .reset { justify-self: start; margin: 0; }
  .list-heading { align-items: start; }
  .list-heading span { max-width: 140px; text-align: right; }
  .table-labels { display: none; }
  .contact { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 20px; font-size: 13px; }
  .person-cell { grid-column: 1 / -1; }
  .person-cell h2 { font-size: 16px; }
  .avatar { display: flex; width: 40px; height: 40px; }
  .phone-cell { padding-left: 53px; }
  .email-cell { grid-column: 1 / -1; padding-left: 53px; grid-row: 3; }
  .office-cell { grid-column: 1; padding-left: 53px; grid-row: 4; font-size: 12px; }
  .repair-cell { grid-column: 2; grid-row: 4; }
  .mobile-label { display: inline; }
  .help-note { display: block; padding: 18px; }
  .help-note span { display: block; margin: 8px 0 12px; }
  footer { display: block; padding: 20px; }
  footer span { display: block; margin-top: 5px; }
}
@media (max-width: 760px) {
  .login-layout { display: flex; flex-direction: column; }
  .login-intro { min-height: 400px; padding: 25px; gap: 35px; background-position: 32% 42%; }
  .login-intro .brand { padding-right: 45px; font-size: 11px; }
  .login-intro .brand img { width: 40px; height: 45px; }
  .login-copy h1 { font-size: 36px; margin: 13px 0; }
  .login-copy .lead { max-width: 310px; font-size: 13px; }
  .login-footer { display: none; }
  .login-panel { padding: 36px 25px 42px; flex: 1; }
  .login-card { max-width: 420px; }
  .login-card h2 { margin-top: 10px; font-size: 27px; }
  .login-tools { top: 24px; right: 20px; }
  .login-tools .theme-toggle { color: #edf5ff; background: #103963b8; border-color: #ffffff55; }
}
@media (max-width: 420px) {
  .header-actions { gap: 9px; }
  .top { padding-left: 14px; padding-right: 14px; }
  .brand { font-size: 9px; }
  .brand small { font-size: 9px; }
  .brand img { width: 30px; }
  .account > span { display: none; }
  .account .text-button { font-size: 10px; }
  .theme-toggle { width: 38px; height: 38px; flex-basis: 38px; }
  .contact { padding: 18px 14px; }
  .email-cell, .phone-cell, .office-cell { padding-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button, input, select { transition: background-color .15s, border-color .15s; }
}
