:root {
  --platform-ink: #192932;
  --platform-bg: #f4f6f7;
  --platform-accent: #185b56;
  --platform-muted: #52676e;
  --platform-line: #dae3e5;
}

.platform-shell { color: var(--platform-ink); background: var(--platform-bg); }
.platform-shell .sidebar { background: #18333b; }
.platform-brand { display: flex; align-items: center; gap: 12px; padding: 12px 4px 25px; color: white; text-decoration: none; font-weight: 730; }
.platform-brand small { display: block; margin-top: 3px; color: #b2c9ca; font-size: 12px; font-weight: 400; }
.platform-mark { display: grid; flex: 0 0 38px; height: 38px; place-items: center; background: #d8e8e2; color: #18333b; border-radius: 6px; font-size: 18px; }
.platform-nav-label { margin: 8px 4px; color: #b2c9ca; font-size: 12px; }
.platform-nav-link { display: grid; grid-template-columns: 19px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 44px; margin-bottom: 3px; padding: 6px 8px; border-radius: 6px; color: #edf5f4; font-size: 14px; text-decoration: none; }
.platform-nav-link svg, .platform-shortcut svg, .platform-crumb svg { width: 17px; height: 17px; }
.platform-nav-link small { color: #c0d4d4; font-size: 11px; }
.platform-nav-link[aria-current="page"] { background: #30545a; color: #fff; box-shadow: inset 3px 0 #9cd7c0; }
.platform-nav-link:hover { background: #2b4b54; }
.platform-topbar { justify-content: flex-start; padding-block: 6px; min-height: 64px; gap: 8px; }
.platform-shell .menu-toggle { display: none; }
.platform-top-actions { margin-left: auto; }
.platform-top-actions, .platform-crumb { display: flex; align-items: center; gap: 10px; min-width: 0; }
.platform-crumb { color: var(--platform-muted); font-size: 14px; }
.platform-crumb a { white-space: nowrap; color: var(--platform-accent); }
.platform-crumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-crumb svg { flex: 0 0 15px; }
.platform-identity { min-width: 0; text-align: right; }
.platform-identity strong, .platform-identity small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-identity small { color: var(--platform-muted); font-size: 12px; }
.platform-tool { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; color: var(--platform-accent); background: #fff; border: 1px solid var(--platform-line); border-radius: 6px; }
.platform-tool svg { width: 19px; height: 19px; }
.inbox-bell { position: relative; }
.inbox-count { position: absolute; right: -3px; top: -4px; padding: 0 4px; min-width: 17px; border-radius: 9px; background: #a53434; color: #fff; font: 600 11px/17px system-ui; text-align: center; }
.inbox-section-head, .inbox-meta, .inbox-row-title, .inbox-tabs, .inbox-pager, .inbox-section-head a, .inbox-back { display: flex; align-items: center; gap: 10px; }
.inbox-section-head { justify-content: space-between; margin-bottom: 10px; }
.inbox-section-head h2 { margin: 0; }
.inbox-section-head svg, .inbox-back svg { width: 16px; height: 16px; }
.inbox-rows, .inbox-detail, .inbox-empty { margin: 0; padding: 0; list-style: none; background: white; border: 1px solid var(--platform-line); border-radius: 8px; }
.inbox-rows li + li { border-top: 1px solid var(--platform-line); }
.inbox-rows a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; color: inherit; text-decoration: none; }
.inbox-rows a:hover { background: #f2f7f5; }
.inbox-row-title { min-width: 0; overflow-wrap: anywhere; }
.inbox-meta { flex-wrap: wrap; color: var(--platform-muted); font-size: 13px; }
.inbox-rows .inbox-meta { flex-shrink: 0; }
.inbox-unread { font-weight: 650; color: #12614f; }
.inbox-important { display: inline-block; flex-shrink: 0; padding: 2px 6px; background: #fcf1dc; color: #764b10; font-size: 12px; border-radius: 4px; }
.inbox-empty, .inbox-detail { padding: 20px; }
.inbox-detail h1 { margin: 8px 0; font-size: 24px; overflow-wrap: anywhere; }
.inbox-body { padding-top: 18px; border-top: 1px solid var(--platform-line); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.inbox-back, .inbox-tabs { margin-bottom: 16px; }
.inbox-tabs a { padding: 8px 4px; color: var(--platform-muted); }
.inbox-tabs a[aria-current] { color: var(--platform-accent); font-weight: 700; border-bottom: 2px solid currentColor; }
.inbox-pager { margin-top: 12px; }
@media (max-width: 800px) {
  .inbox-rows a { align-items: flex-start; flex-direction: column; gap: 6px; }
  .platform-topbar .platform-crumb { flex: 1 1 0; }
  .platform-topbar .inbox-bell { flex-shrink: 0; }
}
.platform-tool:hover, .platform-shortcut:hover { background: #eaf4ef; }
.platform-drawer-close { display: none; }
.platform-content { min-width: 0; }
.platform-page-head { margin-bottom: 22px; }
.platform-page-head h1, .platform-status h1 { margin: 0; font-size: 28px; line-height: 1.25; }
.platform-page-head p, .platform-status p { margin: 8px 0 0; color: var(--platform-muted); }
.platform-status .btn { margin-top: 18px; }
.platform-summary { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.platform-stat { flex: 1 1 160px; min-width: 0; background: #fff; border: 1px solid var(--platform-line); border-radius: 8px; padding: 15px 17px; }
.platform-stat span { color: var(--platform-muted); }
.platform-stat strong { display: block; margin-top: 7px; font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.platform-section { margin-top: 28px; }
.platform-section h2 { margin: 0 0 12px; font-size: 18px; }
.platform-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px 12px; }
.platform-shortcut { display: grid; grid-template-columns: 19px 1fr 17px; gap: 10px; align-items: center; min-height: 50px; padding: 8px 12px; background: white; border: 1px solid var(--platform-line); border-radius: 6px; color: var(--platform-accent); text-decoration: none; }
.platform-records { overflow-x: auto; background: white; border: 1px solid var(--platform-line); border-radius: 8px; }
.platform-auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; color: var(--platform-ink); background: var(--platform-bg); }
.platform-auth-inner { width: min(100%, 570px); }
.platform-auth-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--platform-line); font-size: 17px; font-weight: 700; }
.platform-auth .auth-card { width: 100%; margin: 0; }
.platform-auth h1 { margin-top: 0; font-size: 27px; }
.platform-auth form .form-grid { grid-template-columns: 1fr; }
.platform-auth form .btn, .platform-auth input, .platform-auth select { min-height: 44px; }
.platform-auth .form-actions { flex-wrap: wrap; }
.platform-auth .form-actions .primary { background: var(--platform-accent); }
.platform-auth .platform-login-error:not(:empty) { margin-top: 12px; color: #96352d; }
.platform-shell :is(a, button):focus-visible, .platform-auth :is(a, button, input):focus-visible { outline: 2px solid #21826a; outline-offset: 2px; }
@media (max-width: 800px) {
  .platform-shell .sidebar { position: fixed; padding-top: 19px; }
  .platform-shell .sidebar:not(.open) { visibility: hidden; }
  .platform-drawer-close { display: grid; place-items: center; position: absolute; top: 18px; right: 10px; width: 44px; height: 44px; padding: 0; }
  .platform-topbar { padding-inline: 9px; }
  .platform-crumb a, .platform-crumb svg { display: none; }
  .platform-top-actions { gap: 5px; margin-left: auto; }
  .platform-identity strong, .platform-identity small { max-width: 85px; }
  .platform-shell .menu-toggle { display: grid; place-items: center; flex: 0 0 44px; min-height: 44px; }
  .platform-page-head h1, .platform-status h1 { font-size: 24px; }
}

.platform-auth.flight-login {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: 4%;
  align-items: stretch;
  justify-items: stretch;
  padding: 0 7% 0 0;
  min-height: 100vh;
  min-height: 100svh;
  color: #252b30;
  background: #f4eff1 url("/login-paper.webp") repeat;
  background-size: 400px 200px;
}
.flight-art { display: block; position: relative; grid-column: 1; grid-row: 1 / -1; min-width: 0; pointer-events: none; }
.flight-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left bottom; }
.flight-brand, .flight-login .college-signin { grid-column: 2; width: min(100%, 425px); }
.flight-brand { grid-row: 2; padding-top: 34px; }
.flight-brand h1 { margin: 0; color: #20272d; font: 600 62px/1.2 "STSong", "SimSun", "Songti SC", serif; }
.flight-brand p { margin: 7px 0 27px; font: 500 35px/1.3 "STSong", "SimSun", "Songti SC", serif; }
.flight-login .college-signin { grid-row: 3; padding-bottom: 30px; min-width: 0; }
.college-signin h2 { margin: 0; color: #21382b; font-size: 29px; line-height: 1.35; }
.college-signin h2 + p { margin: 10px 0 32px; color: #576259; font-size: 15px; }
.college-signin .form-grid { gap: 19px; }
.college-signin .field label { color: #344339; font-size: 14px; }
.college-signin .field input { height: 48px; border: 1px solid #aebcb0; border-radius: 5px; font-size: 16px; background: #fff; }
.college-signin .form-actions { display: block; margin: 24px 0 12px; padding: 0; border: 0; }
.college-signin .form-actions .btn { width: 100%; height: 48px; border-radius: 5px; background: #294d39; border-color: #294d39; color: white; font-size: 16px; gap: 12px; }
.college-signin .form-actions .btn:hover { background: #1e3d2c; }
.college-signin .auth-help { display: flex; justify-content: space-between; margin: 0; }
.college-signin .auth-help a { display: inline-flex; align-items: center; min-height: 44px; color: #405d4b; font-size: 14px; }

.platform-shell { --platform-bg: #f7f8f4; --platform-accent: #305640; --platform-line: #d9dfd7; }
.platform-shell .sidebar { background: #203b30; }
.platform-shell .platform-nav-link[aria-current="page"] { background: #385849; box-shadow: inset 3px 0 #c1d5b9; }
.platform-shell .platform-nav-link:hover { background: #304c3e; }
.platform-topbar { min-height: 58px; height: 58px; border-bottom: 1px solid var(--platform-line); }
.platform-topbar .platform-tool { background: transparent; border-color: transparent; }
.platform-topbar .platform-tool:hover { background: #edf2eb; }
.college-desk { max-width: 1400px; margin: 0 auto; color: #24322a; }
.desk-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 18px 0 24px; border-bottom: 1px solid #cbd6cb; }
.desk-head h1 { font-size: 32px; margin: 0; }
.desk-head p { margin: 6px 0 0; color: #57665b; }
.desk-head .platform-summary { gap: 0; }
.desk-head .platform-stat { flex: 0 1 auto; padding: 0 18px; border: 0; border-left: 1px solid #ccd6cc; border-radius: 0; background: transparent; }
.desk-head .platform-stat strong { font-size: 24px; color: #294733; margin-top: 4px; }
.desk-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 28px; }
.college-desk .platform-section { min-width: 0; }
.college-desk .platform-section h2 { font-size: 18px; margin-bottom: 12px; }
.college-desk .inbox-section-head h2 { margin-bottom: 0; }
.college-desk .inbox-section-head { margin-bottom: 12px; }
.college-desk .inbox-rows a { align-items: flex-start; flex-direction: column; gap: 5px; padding: 13px 16px; }
.college-desk .inbox-rows .inbox-meta { gap: 8px; }
.college-desk .platform-shortcuts { grid-template-columns: 1fr; gap: 7px; }
.college-desk .platform-shortcut { min-height: 53px; }
.college-desk .platform-records, .college-desk .inbox-rows, .college-desk .platform-shortcut { border-radius: 5px; }
.college-desk .platform-records .empty { color: #52665a; }
@media (min-width: 801px) {
  .platform-shell { grid-template-columns: 216px minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .desk-columns { grid-template-columns: minmax(0,1fr); gap: 0; }
  .desk-head { align-items: flex-start; padding: 4px 0 18px; }
  .desk-head h1 { font-size: 26px; }
  .desk-head .platform-stat { padding: 0 10px; }
}
@media (max-width: 700px) {
  .platform-auth.flight-login {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    grid-template-rows: auto 1fr;
    gap: 0;
    padding: 0;
  }
  .flight-art { grid-row: 1; height: clamp(150px, 24svh, 230px); }
  .flight-art img { object-position: center bottom; mask-image: linear-gradient(to bottom, #000 90%, transparent); }
  .flight-brand { grid-row: 1; align-self: center; padding: 16px 12px 12px 0; }
  .flight-brand h1 { font-size: 33px; }
  .flight-brand p { margin: 6px 0 0; font-size: 21px; }
  .flight-login .college-signin { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: min(100%, 440px); padding: 23px 24px 28px; }
}
@media (max-width: 370px) {
  .flight-brand h1 { font-size: 28px; }
  .flight-brand p { font-size: 18px; }
}
.flight-login .college-signin h2 { color: #272d32; font-size: 25px; }
.flight-login .college-signin h2 + p { color: #454b51; margin-bottom: 22px; }
.flight-login .college-signin input { background: rgb(255 255 255 / 56%); border-color: #9d9fa4; }
.flight-login .form-actions .btn { background: #28323c; border-color: #28323c; }
.flight-login .form-actions .btn:hover { background: #17212b; }
.flight-login .auth-help a { color: #38444e; }
@media (min-width: 701px) and (max-width: 1000px) {
  .platform-auth.flight-login { grid-template-columns: 1fr 1fr; padding-right: 5%; }
  .flight-brand h1 { font-size: 46px; }
  .flight-brand p { font-size: 28px; }
}
@media (min-width: 701px) and (max-height: 520px) {
  .flight-brand { padding-top: 12px; }
  .flight-brand h1 { font-size: 33px; }
  .flight-brand p { margin: 2px 0 10px; font-size: 21px; }
  .flight-login .college-signin { padding-bottom: 6px; }
  .flight-login .college-signin h2 { font-size: 20px; }
  .flight-login .college-signin h2 + p { margin: 3px 0 9px; }
  .flight-login .form-grid { gap: 7px; }
  .flight-login .college-signin input { height: 44px; }
  .flight-login .form-actions { margin: 10px 0 0; }
  .flight-login .form-actions .btn { height: 44px; }
}
