:root {
  color-scheme: light;
  --ink: #172825;
  --muted: #4d665f;
  --dark: #0d2d28;
  --deep: #0a211e;
  --accent: #236853;
  --mint: #ccf1e1;
  --line: #d8e3de;
  --paper: #f2f6f4;
  --white: #fff;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font: 1rem/1.55 var(--font);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box }
body { margin: 0 }
h1, h2, p, dl, dd { margin: 0 }
h1 { font-size: clamp(1.85rem, 3.8vw, 2.55rem); line-height: 1.15; letter-spacing: -.045em; overflow-wrap: anywhere }
h2 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.018em }
a { color: inherit; text-decoration: none }
button, input, select { font: inherit }
button { cursor: pointer }
button:disabled { cursor: default }
:focus-visible { outline: 3px solid #25846a; outline-offset: 3px }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }

.brand { display: inline-flex; align-items: center; gap: .72rem; width: fit-content; max-width: 100%; color: #effbf5 }
.brand-icon { display: grid; place-items: center; padding: .45rem; border-radius: .65rem; background: #183934; border: 1px solid #42665b }
.brand-icon img { display: block }
.brand strong, .brand small { display: block; line-height: 1.25 }
.brand strong { font-size: 1rem; font-weight: 750; letter-spacing: .03em }
.brand small { margin-top: .22rem; font-size: .65rem; letter-spacing: .08em; color: #b5cfc4 }
html[lang="en"] .brand strong { font-size: .79rem }
.language { display: inline-block }
.language button { border: 1px solid var(--line); border-radius: .45rem; background: var(--white); color: var(--ink); font-size: .875rem; padding: .45rem .78rem }
.language button:hover { background: #edf4f0 }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem;
  border: 1px solid transparent; border-radius: .48rem; font-weight: 670; padding: .55rem 1rem;
}
.primary { background: var(--accent); color: var(--white) }
.primary:hover:not(:disabled) { background: #184e3e }
.primary:disabled { background: #d9e5e0; color: #49645a }
.secondary { border-color: var(--line); background: var(--white); color: var(--ink) }
.secondary:hover { background: var(--paper) }
.light { color: var(--deep); background: var(--mint) }
.light:hover { background: #a9e9ce }
.text-link { color: #1b614c; font-size: .875rem; font-weight: 700 }
.text-link:hover { text-decoration: underline }
.stack { display: grid; gap: 1rem }
.stack > button { width: 100% }
label { display: grid; gap: .36rem; color: var(--ink); font-size: .9rem; font-weight: 650 }
label small { color: var(--muted); font-size: .81rem; font-weight: 400 }
input:not([type="hidden"]), select { min-height: 2.77rem; width: 100%; min-width: 0; padding: .56rem .7rem; border: 1px solid #c4d3cd; border-radius: .42rem; background: var(--white); color: var(--ink); font-size: 1rem }
input::placeholder { color: #637b72; font-size: .86rem }
input:disabled, input[readonly] { background: #edf4f0 }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, #36564b 50%), linear-gradient(135deg, #36564b 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat }
.notice { background: #edf4f0; color: #234b3f; border: 1px solid #d7e7df; border-radius: .46rem; padding: .66rem .8rem; font-size: .875rem; margin-bottom: .85rem }
.notice.error { color: #852f2a; background: #fff2ee; border-color: #f0d4cc }
.notice.success { color: #215841; background: #edf8f0 }
.version { white-space: nowrap; font: .75rem/1.45 ui-monospace, monospace }

.signin { display: grid; min-height: 100svh; grid-template-columns: minmax(20rem, 44fr) minmax(25rem, 56fr) }
.signin-cover {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; min-height: 40rem; padding: clamp(1.5rem, 4.4vw, 4.5rem); background: var(--deep); color: #f0fff8;
}
.signin-cover::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse at 58% 53%, #143f34 0%, transparent 66%);
}
.signin-cover .brand { position: relative; z-index: 1 }
.wafer-field {
  position: absolute; z-index: -1; display: grid; place-items: center;
  width: min(94%, 38rem); aspect-ratio: 1; left: 52%; top: 53%; transform: translate(-50%, -50%);
  opacity: .94;
  background: linear-gradient(90deg, transparent 49.9%, #639c8738 50%, transparent 50.1%),
    linear-gradient(0deg, transparent 49.9%, #639c8738 50%, transparent 50.1%);
}
.wafer-field::before, .wafer-field::after { content: ""; position: absolute; border: 1px solid #8ccc9e2a; border-radius: 50%; inset: 5% }
.wafer-field::after { inset: 0; border-style: dashed; border-color: #8ccc9e25 }
.wafer {
  width: 78%; aspect-ratio: 1; border-radius: 50%; position: relative; overflow: hidden;
  border: 1px solid #80d7b080; box-shadow: 0 0 4rem #54b18d22, inset 0 0 3rem #61cca639;
  background: radial-gradient(ellipse at 77% 28%, #6fd8a852 1%, transparent 53%),
    radial-gradient(ellipse at 29% 71%, #3bb89c37, transparent 67%),
    repeating-linear-gradient(90deg, transparent 0 18px, #a4f5d53b 18px 19px, transparent 19px 20px),
    repeating-linear-gradient(0deg, transparent 0 18px, #a4f5d539 18px 19px, transparent 19px 20px),
    linear-gradient(135deg, #14382b, #27634d 49%, #12382f 81%);
  transform: rotate(-18deg) scaleX(.96);
}
.wafer::before {
  content: ""; position: absolute; inset: 0; opacity: .62;
  background: repeating-linear-gradient(0deg, transparent 0 4px, #8ffad92b 4px 5px, transparent 5px 10px),
    repeating-linear-gradient(90deg, transparent 0 4px, #8ffad922 4px 5px, transparent 5px 10px);
  mask-image: linear-gradient(145deg, #000, transparent 51%, #000);
}
.wafer::after { content: ""; position: absolute; width: 1.25rem; height: .52rem; left: calc(50% - .625rem); bottom: -1px; background: #154136; border-radius: .35rem .35rem 0 0 }
.cover-copy { margin-top: auto; padding-top: 8rem; background: linear-gradient(0deg,#0a211e 9%,#0a211ef0 42%,transparent); }
.cover-label { display: flex; align-items: center; gap: .55rem; color: #a8d9c5; font-weight: 650; letter-spacing: .12em; font-size: .78rem; margin-bottom: .6rem }
.cover-label span { width: 1.6rem; height: 1px; background: #73b99f }
.cover-title { font-weight: 690; font-size: clamp(1.8rem, 4.5vw, 4.15rem); line-height: 1.08; letter-spacing: -.05em }
.signin-main { display: grid; grid-template-rows: auto 1fr auto; background: #f8fbf9; padding: 1.6rem clamp(1.4rem, 5vw, 4rem) }
.signin-header { display: flex; justify-content: flex-end }
.auth { width: min(100%, 25rem); margin: auto; padding: 2rem 0 2.5rem }
.auth-icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: .65rem; color: #23644f; background: #def1e8; margin-bottom: 1rem }
.intro { color: var(--muted); margin-top: .7rem }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; background: #eaf1ed; border: 1px solid #e0eae5; border-radius: .55rem; padding: .25rem; margin: 1.6rem 0 1.2rem }
.methods a { text-align: center; display: flex; justify-content: center; align-items: center; gap: .42rem; padding: .58rem .3rem; border-radius: .35rem; font-size: .9rem; color: var(--muted); font-weight: 650 }
.methods a:hover { color: #184d3d }
.methods [aria-current] { background: var(--white); box-shadow: 0 1px 4px #15392b16; color: #154d3e }
.auth form button { margin-top: .3rem }
.signin-footer, .shell-footer { display: flex; justify-content: space-between; gap: .65rem 1rem; flex-wrap: wrap; color: var(--muted); align-items: center; font-size: .81rem }

.shell { display: grid; grid-template-columns: minmax(13.5rem, 15.1rem) minmax(0, 1fr); min-height: 100svh }
.rail { display: flex; flex-direction: column; gap: 2.35rem; padding: 1.55rem 1rem 1.15rem; background: var(--deep); color: #c2d9d0 }
.rail .brand { margin-left: .22rem }
.rail nav { display: grid; gap: .35rem }
.rail nav a, .signout { display: flex; align-items: center; gap: .66rem; border-radius: .45rem; padding: .63rem .7rem; color: inherit; font-size: .9rem }
.rail nav a:hover, .signout:hover { background: #173e34; color: white }
.rail nav [aria-current] { background: #c5ebdb; color: #12392d; font-weight: 700 }
.rail :focus-visible, .signin-cover :focus-visible { outline-color: #a3e8cb }
.rail-bottom { display: grid; gap: .6rem; border-top: 1px solid #36554c; margin-top: auto; padding-top: 1rem }
.rail-person { display: flex; gap: .6rem; align-items: center; padding: .12rem .25rem; word-break: break-word }
.rail-person strong, .rail-person small, .identity small, .activity small { display: block }
.rail-person strong { color: #e9faf2; font-size: .86rem }
.rail-person small, .identity small, .activity small { font-size: .8rem }
.signout { width: 100%; background: transparent; border: 0; text-align: start }
.avatar { width: 2rem; height: 2rem; flex: 0 0 2rem; display: grid; place-items: center; border-radius: .42rem; color: #1a5946; background: #dceee6; font-size: .85rem; font-weight: 700 }
.shell-main { min-width: 0; display: grid; grid-template-rows: auto 1fr auto }
.topbar { min-height: 4.35rem; display: flex; align-items: center; justify-content: space-between; gap: .7rem; background: #fbfdfc; border-bottom: 1px solid var(--line); padding: .7rem clamp(1rem, 4vw, 3.4rem); font-size: .9rem; font-weight: 650 }
.topbar a { color: var(--accent) }
.separator { display: inline-block; margin: 0 .55rem; color: var(--muted) }
.content { width: min(100%, 92rem); margin: 0 auto; padding: clamp(1.15rem, 3.9vw, 3.4rem) }
.shell-footer { border-top: 1px solid var(--line); padding: .9rem clamp(1rem, 4vw, 3.4rem) }
.welcome { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.1rem; padding: clamp(1.4rem, 3.6vw, 2.65rem); color: #f0fff8; background-color: var(--dark); background-image: radial-gradient(circle at 90% 12%, #31775d7a 0, transparent 58%); border-radius: .8rem; overflow: hidden }
.welcome > div { min-width: 0 }
.welcome p { color: #c1e2d4; margin-top: .55rem; overflow-wrap: anywhere }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.15rem 0 }
.metrics a { display: grid; gap: .8rem; min-width: 0; padding: 1rem 1.15rem; background: var(--white); border: 1px solid var(--line); border-radius: .65rem }
.metrics a:hover { border-color: #60a890 }
.metrics span { font-size: .9rem; display: flex; align-items: center; gap: .55rem; color: var(--muted) }
.metrics svg { flex: 0 0 auto; color: var(--accent) }
.metrics strong { font-size: 2rem; line-height: 1; font-weight: 740; letter-spacing: -.04em }
.panel { border: 1px solid var(--line); border-radius: .7rem; background: var(--white); min-width: 0 }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem; padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--line) }
.activity { list-style: none; padding: 0 1.2rem; margin: 0 }
.activity li { display: grid; align-items: center; grid-template-columns: auto 1fr auto; gap: .65rem; padding: .7rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-size: .9rem }
.activity li:last-child { border-bottom: 0 }
.activity-icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; color: var(--accent); background: var(--paper); border-radius: .4rem }
.activity time, .activity small { font-size: .8rem; color: var(--muted) }
.page-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.35rem }
.page-head p { color: var(--muted); margin-top: .55rem }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; padding: 1rem; align-items: end }
.filters .search { position: relative; flex: 1 1 14rem }
.search svg { position: absolute; top: .78rem; left: .65rem; color: var(--muted) }
.search input { padding-left: 2.15rem }
.table-wrap { overflow: auto }
table { border-collapse: collapse; min-width: 43rem; width: 100%; text-align: left; font-size: .88rem }
th, td { padding: .72rem .85rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere }
th { background: #f0f5f2; font-weight: 690; color: #36574b; white-space: nowrap }
td:first-child, th:first-child { padding-left: 1.05rem }
.identity { display: flex; align-items: center; gap: .56rem }
.identity small { color: var(--muted) }
.status { display: inline-flex; gap: .35rem; align-items: center; border-radius: 1rem; padding: .16rem .5rem; white-space: nowrap; font-size: .8rem; font-weight: 650 }
.status::before { content: ""; width: .35rem; height: .35rem; border-radius: 50%; background: currentColor }
.status.active { color: #246447; background: #e3f2e9 }
.status.inactive { color: #555f5b; background: #edf0ef }
.empty { min-height: 12rem; display: grid; justify-items: center; align-content: center; gap: .48rem; text-align: center }
.empty .auth-icon { margin: 0 }
.pagination, .pagination nav { display: flex; justify-content: space-between; gap: .8rem; align-items: center }
.pagination { padding: .85rem 1rem; color: var(--muted); font-size: .84rem }
.detail-form { max-width: 52rem; padding: clamp(1rem, 3.2vw, 1.5rem) }
.form-grid, .details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.05rem; align-items: start }
.form-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.35rem }
.account-summary { max-width: 52rem; margin: 1.15rem 0 }
.details { padding: 1rem 1.2rem }
.details dt { color: var(--muted); font-size: .85rem }
.details dd { font-weight: 650; overflow-wrap: anywhere }
.password-form { max-width: 33rem }
.password-form .notice { margin-bottom: 0 }
.password-form button { width: fit-content }
.error-page { display: grid; min-height: 100svh; grid-template-rows: 1fr auto; padding-top: 1rem }
.error-page .panel { align-self: center; justify-self: center; margin: 1rem; display: grid; gap: 1rem; width: min(calc(100% - 2rem), 29rem); justify-items: start }
.error-page .brand { background: var(--deep); border-radius: .55rem; padding: .35rem .65rem .35rem .35rem }

@media (max-width: 850px) {
  .signin { grid-template-columns: minmax(17rem, 40fr) minmax(21rem, 60fr) }
  .signin-cover { min-height: 31rem }
  .shell { grid-template-columns: 12.5rem minmax(0, 1fr) }
  .metrics a { padding: .8rem }
}
@media (max-width: 650px) {
  .signin, .shell { grid-template-columns: minmax(0, 1fr) }
  .signin-cover { min-height: 9.5rem; padding: 1rem 1.15rem; gap: .95rem }
  .cover-copy { padding: 0; background: none }
  .cover-label { display: none }
  .cover-title { font-size: 1.55rem }
  .wafer-field { width: 14rem; left: auto; right: -2.9rem; top: 58%; transform: translateY(-49%); opacity: .55 }
  .signin-main { min-height: calc(100svh - 9.5rem); padding: .85rem 1.1rem 1rem }
  .auth { padding: 1.1rem 0 1.8rem }
  .auth .auth-icon { display: none }
  .rail { padding: .85rem; gap: .8rem }
  .rail nav { display: flex; flex-wrap: wrap }
  .rail nav a { padding: .45rem .5rem }
  .rail nav a svg { width: 1rem; height: 1rem }
  .rail-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: .55rem }
  .rail-person small { font-size: .74rem }
  .topbar { min-height: 3.45rem }
  .metrics { gap: .4rem }
  .metrics span { font-size: .79rem; align-items: start; flex-direction: column; gap: .3rem }
  .metrics strong { font-size: 1.65rem }
  .form-grid { grid-template-columns: 1fr }
  .activity li { grid-template-columns: auto 1fr }
  .activity time { grid-column: 2 }
}
@media (max-width: 370px) {
  .methods a { font-size: .82rem }
  .rail nav a { font-size: .82rem }
}
