:root {
  --navy: #183a63;
  --teal: #18796d;
  --ink: #203247;
  --muted: #627487;
  --line: #dbe4ec;
  --ground: #f4f7fa;
  --paper: #fff;
  --danger: #a83836;
  --wash: #edf5f3;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--ground);
  font-synthesis: none;
  line-height: 1.65;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: var(--teal); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #b77e23; outline-offset: 4px; }
button, input, a { touch-action: manipulation; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 5; padding: 10px 18px; background: var(--paper); }
.skip-link:focus { top: 12px; }
.site-header { max-width: 1280px; margin: auto; padding: 30px 48px 25px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; font-size: 23px; font-weight: 750; line-height: 1.25; }
.brand small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 1px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: white; background: var(--navy); border-radius: 12px; font-family: Georgia, serif; font-size: 31px; }
.brand-mark span { position: absolute; width: 7px; height: 7px; right: -2px; bottom: 3px; border-radius: 50%; background: var(--teal); outline: 3px solid var(--ground); }
.header-label { border-left: 1px solid var(--line); padding-left: 26px; font-size: 14px; color: var(--muted); }
.header-account { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
#headerName { max-width: 180px; overflow-wrap: anywhere; }
.text-button { border: 0; padding: 6px 0; background: transparent; color: var(--teal); font-size: 14px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.layout { max-width: 1160px; margin: 42px auto 64px; padding: 0 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 450px); gap: 90px; align-items: start; }
.introduction { padding-top: 24px; }
.intro-label { font-size: 14px; color: var(--teal); font-weight: 600; margin: 0 0 22px; }
h1 { font-size: clamp(34px, 3.7vw, 49px); line-height: 1.4; letter-spacing: -1.6px; font-weight: 650; margin: 0 0 22px; color: var(--navy); }
.intro-copy { color: var(--muted); font-size: 16px; max-width: 26em; margin: 0; }
.system-overview { margin-top: 42px; padding-top: 25px; border-top: 1px solid var(--line); }
.overview-item { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.overview-icon { color: var(--navy); background: #e6edf5; border-radius: 10px; width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; }
.overview-icon svg { width: 29px; height: 29px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.overview-item:last-child .overview-icon { color: var(--teal); background: #e4f0ec; }
.overview-item strong { font-size: 16px; font-weight: 600; }
.overview-item p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.download-shortcut { margin: 32px 0 0; max-width: 28em; font-size: 13px; color: var(--muted); }
.download-shortcut a { display: inline-block; margin-left: 3px; }
.entry-panel { padding: 32px 34px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 32px #183a6306; }
.panel-heading { margin-bottom: 25px; }
.panel-heading h2 { font-size: 25px; font-weight: 650; color: var(--navy); line-height: 1.4; margin: 0 0 7px; }
.panel-heading > p { font-size: 14px; color: var(--muted); margin: 0; }
.panel-heading .welcome-label { color: var(--teal); margin-bottom: 7px; }
.role-switch { border: 0; padding: 0; margin: 0 0 23px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.role-switch legend { font-size: 13px; font-weight: 550; margin-bottom: 10px; }
.role-switch label { position: relative; min-width: 0; cursor: pointer; }
.role-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role-switch span { display: block; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); }
.role-switch strong { display: block; font-size: 15px; font-weight: 600; }
.role-switch small { display: block; font-size: 11px; margin-top: 2px; }
.role-switch input:checked + span { border-color: var(--teal); color: var(--teal); background: var(--wash); }
.role-switch input:focus-visible + span { outline: 3px solid #b77e23; outline-offset: 3px; }
.role-switch input:disabled + span { opacity: .6; cursor: wait; }
.field { margin-top: 18px; }
.field > label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 7px; }
.field input { width: 100%; border: 1px solid #cbd8e3; border-radius: 8px; padding: 12px 13px; min-height: 48px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.4; }
.field input::placeholder { color: #8998a5; font-size: 14px; }
.field input:disabled { background: #f5f7fa; }
.password-field { position: relative; }
.password-field input { padding-right: 65px; }
.password-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); padding: 9px; background: none; border: 0; color: var(--muted); font-size: 12px; }
.primary-button, .secondary-button { min-height: 46px; border-radius: 8px; display: flex; justify-content: center; align-items: center; padding: 11px 16px; text-decoration: none; font-size: 14px; line-height: 1.5; font-weight: 600; width: 100%; }
.primary-button { color: white; background: var(--teal); border: 1px solid var(--teal); }
.primary-button:hover:not(:disabled) { background: #11675d; border-color: #11675d; }
.secondary-button { color: var(--navy); background: var(--paper); border: 1px solid #b8c9d8; }
.secondary-button:hover { background: #f2f6fa; }
.login-button { margin-top: 26px; }
.login-note { color: var(--muted); font-size: 11px; margin: 14px 0 0; }
.status-message { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; margin: 18px 0 0; min-height: 1.6em; }
.status-message.error { color: var(--danger); }
.status-message.loading::before { content: ""; display: inline-block; width: 10px; height: 10px; border: 2px solid #c5dcd7; border-top-color: var(--teal); border-radius: 50%; margin-right: 8px; vertical-align: -1px; animation: spin .8s linear infinite; }
.retry-button { margin-top: 6px; }
.network-message { margin: 12px 0 0; padding: 10px 12px; background: #fff7e9; color: #795f2c; border-radius: 7px; font-size: 12px; }
.system-card { padding: 20px 0; border-top: 1px solid var(--line); }
.system-card:last-child { padding-bottom: 0; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-heading h3 { margin: 0; font-size: 17px; font-weight: 650; }
.role-badge, .test-badge { font-size: 10px; white-space: nowrap; padding: 2px 7px; border-radius: 4px; background: var(--wash); color: var(--teal); }
.test-badge { color: #796133; background: #f8f1e3; }
.system-card > p { color: var(--muted); font-size: 13px; margin: 10px 0 16px; }
.system-card .card-footnote { margin: 9px 0 0; font-size: 11px; }
.site-footer { max-width: 1184px; margin: auto; padding: 22px 36px 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) {
  .layout { gap: 40px; padding-inline: 30px; grid-template-columns: minmax(0, 1fr) minmax(330px, 420px); }
  .site-header { padding-inline: 30px; }
  .entry-panel { padding-inline: 26px; }
}
@media (max-width: 720px) {
  .site-header { padding: 22px 20px; gap: 16px; flex-wrap: wrap; }
  .brand { font-size: 20px; }
  .brand-mark { width: 38px; height: 38px; font-size: 27px; border-radius: 10px; }
  .header-label { padding-left: 16px; font-size: 12px; }
  .header-account { flex: 1 1 100%; justify-content: flex-end; padding-top: 4px; }
  .layout { display: flex; flex-direction: column; gap: 20px; margin: 0 auto 30px; padding: 0 20px; }
  .introduction { padding-top: 0; width: 100%; }
  .intro-label { margin-bottom: 6px; font-size: 12px; }
  h1 { font-size: 28px; line-height: 1.3; letter-spacing: -.4px; margin-bottom: 9px; }
  h1 br { display: initial; }
  .intro-copy { font-size: 13px; }
  .system-overview { display: none; }
  .download-shortcut { margin-top: 10px; font-size: 12px; }
  .entry-panel { width: 100%; padding: 26px 22px 22px; border-radius: 13px; }
  .site-footer { margin-inline: 20px; padding: 18px 0 26px; flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .status-message.loading::before { animation: none; } }
