:root {
  color-scheme: light;
  --ink: #172a43;
  --muted: #566b83;
  --line: #dce5ef;
  --paper: #fff;
  --background: #f3f7fc;
  --navy: #13263e;
  --blue: #175fc4;
  --deep-blue: #124b9a;
  --danger: #9b2440;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--background); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible { outline: 3px solid #7aafff; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 3.2vw, 2rem); font-weight: 720; line-height: 1.3; }
h2 { font-size: 1.125rem; }
.muted { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.wordmark { display: flex; align-items: center; gap: 11px; font-size: 1.15rem; font-weight: 720; }
.wordmark img { object-fit: contain; }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(310px, 45%) 1fr; }
.login-brand {
  color: #f7fbff;
  background: radial-gradient(ellipse at 95% 90%, #1c4874, transparent 70%), var(--navy);
  padding: clamp(28px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-brand::after {
  content: "";
  border: 1px solid #a4c7e630;
  border-radius: 50%;
  width: 660px;
  height: 660px;
  position: absolute;
  right: -400px;
  bottom: -420px;
  box-shadow: 0 0 0 64px #a4c7e611, 0 0 0 128px #a4c7e60b;
  pointer-events: none;
}
.login-heading { margin: auto 0; padding: 70px 0; position: relative; z-index: 1; }
.login-heading h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: -.025em; }
.login-heading p { color: #c5d7eb; margin-top: 16px; line-height: 1.7; }
.login-panel { display: grid; align-content: center; justify-items: center; padding: 36px 24px; }
#login-form { width: min(100%, 400px); }
#login-form h2 { font-size: 1.8rem; }
#login-form > .muted { margin: 8px 0 28px; }
label { display: grid; gap: 9px; color: var(--ink); font-weight: 620; font-size: .9rem; }
input {
  min-width: 0;
  min-height: 46px;
  width: 100%;
  border: 1px solid #b8c9dc;
  border-radius: 8px;
  background: var(--paper);
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 450;
  font-size: 1rem;
}
input::placeholder { color: #677d94; }
#login-form label + label { margin-top: 19px; }
#login-form button { width: 100%; margin-top: 25px; }
.primary, .secondary {
  min-height: 43px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 650;
}
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: var(--deep-blue); }
.secondary { color: var(--ink); background: var(--paper); border-color: #c2d0e0; }
.secondary:hover { background: #e9f1fb; }
.text-button {
  border: 0;
  padding: 7px 4px;
  border-radius: 5px;
  background: transparent;
  color: var(--deep-blue);
  font-size: .9rem;
  font-weight: 630;
  white-space: nowrap;
}
.text-button:hover { text-decoration: underline; }
.danger { color: var(--danger); }
.notice { margin: 16px 0 0; padding: 11px 13px; border: 1px solid #cadff6; background: #eef6ff; border-radius: 8px; color: #264c79; font-size: .875rem; line-height: 1.55; }
.notice.error { border-color: #edc7cf; background: #fff0f3; color: var(--danger); }
.notice.success { border-color: #bde2cc; background: #eaf8ef; color: #17603c; }
.workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy); color: #fff; padding: 24px 16px; }
.sidebar .wordmark { margin: 0 9px 34px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar button { text-align: left; border: 0; border-radius: 7px; background: transparent; padding: 12px 14px; color: #c4d6ea; white-space: nowrap; font-size: .95rem; }
.sidebar button:hover, .sidebar button[aria-current="page"] { background: #244363; color: #fff; }
.topbar { min-height: 65px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: var(--paper); padding: 12px clamp(17px, 4vw, 48px); font-size: .94rem; }
.account { display: flex; align-items: center; gap: 16px; min-width: 0; }
.account strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { max-width: 1270px; margin: 0 auto; padding: 34px clamp(17px, 4vw, 48px) 50px; }
.content > .notice { margin: 0 0 20px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.heading p { margin-top: 6px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric, .card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.metric { padding: 19px 20px 20px; }
.metric h2 { color: #324a64; font-size: .95rem; font-weight: 640; }
.metric p { margin: 13px 0 7px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric strong { font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1.2; }
.metric p > span { color: var(--muted); font-size: .9rem; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: 15px 20px; }
th { background: #edf3fa; color: #34506c; font-weight: 650; white-space: nowrap; }
td { border-top: 1px solid #e5edf5; font-variant-numeric: tabular-nums; }
td:last-child { white-space: nowrap; }
tr:last-child td { border-radius: 0 0 11px 11px; }
.empty { padding: 26px 20px 32px; color: var(--muted); font-size: .925rem; }
.notification-card { max-width: 680px; padding: 20px; }
.notification-card .notice:first-child { margin: 0 0 18px; }
.notification-card form > .muted { margin: 9px 0 15px; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 840px) {
  .workspace { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .sidebar { display: flex; align-items: center; gap: 18px; padding: 10px 14px; }
  .sidebar .wordmark { margin: 0; white-space: nowrap; }
  .sidebar nav { display: flex; }
  .sidebar button { padding: 10px; }
}
@media (max-width: 590px) {
  .login { min-height: 100svh; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-brand { padding: 23px; }
  .login-heading { padding: 33px 0 7px; }
  .login-heading p { margin-top: 7px; }
  .login-panel { align-content: start; }
  .sidebar { flex-wrap: wrap; gap: 8px; }
  .sidebar .wordmark { width: 100%; }
  .sidebar nav { gap: 4px; }
  .sidebar button { font-size: .875rem; }
  .content { padding-top: 23px; }
  .metrics { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .metric { padding: 14px 16px; }
  .metric p { margin: 7px 0 3px; }
  th, td { padding: 11px 12px; }
  .card-title { padding-inline: 13px; }
}
