:root {
  color-scheme: light;
  font-family: "Source Sans 3", "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
  color: #18251f;
  background: #eff2ec;
  --pine: #182c23;
  --green: #176044;
  --mint: #d5e8d8;
  --muted: #51635b;
  --line: #d8e0d7;
  --paper: #fcfdfa;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #34a277; outline-offset: 3px; }
h1, h2, p { margin: 0; }
.brand { font-family: "IBM Plex Mono", "Cascadia Mono", monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: .16em; color: #b4e3bc; }
.primary { padding: .68rem 1.2rem; border: 1px solid var(--green); border-radius: .45rem; background: var(--green); color: white; font-weight: 650; }
.primary:hover { background: #104b35; }
.quiet { padding: .35rem .4rem; border: 0; background: transparent; color: inherit; }
.quiet:hover { text-decoration: underline; }
.signin { display: grid; grid-template-columns: minmax(310px, 1.1fr) minmax(310px, .9fr); min-height: 100dvh; }
.signin-identity { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2rem, 7vw, 8rem); background: var(--pine); color: #f4f9ec; }
.signin-identity h1 { margin-top: clamp(3rem, 13vh, 11rem); font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -.08em; line-height: 1.1; }
.signin-identity p { margin-top: 1.5rem; color: #b5ccbe; }
.radar-grid { position: absolute; z-index: -1; right: -22%; bottom: -22%; width: max(48vw, 450px); aspect-ratio: 1; border-radius: 50%; opacity: .5; background: repeating-radial-gradient(circle, transparent 0 39px, #6c9f7c 40px 41px, transparent 42px 70px), conic-gradient(from 270deg, transparent 0deg 264deg, #6c9f7c33 310deg, #98d191 359deg, transparent 360deg); }
.signin-form { display: grid; place-items: center; padding: 2rem; background: var(--paper); }
.signin-form form { width: min(100%, 340px); display: grid; gap: 1rem; }
.signin-form h2 { margin-bottom: .6rem; font-size: 1.65rem; }
label { display: grid; gap: .42rem; font-weight: 600; font-size: .94rem; }
input, select { width: 100%; min-height: 2.7rem; padding: .55rem .65rem; border: 1px solid #b7c9be; border-radius: .4rem; background: white; color: inherit; }
.workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { display: flex; flex-direction: column; align-items: stretch; gap: .6rem; padding: 1.75rem 1.1rem 1.15rem; background: var(--pine); color: #eff6ed; }
.sidebar > .brand, .sidebar > strong { margin-inline: .65rem; }
.sidebar nav { display: grid; gap: .38rem; margin-top: 1.9rem; }
.sidebar nav button { text-align: left; padding: .73rem .65rem; border: 0; border-left: 2px solid transparent; border-radius: .3rem; color: #d8e8dc; background: transparent; }
.sidebar nav button:hover { background: #243f32; }
.sidebar nav [aria-current="page"] { border-left-color: #9fdbac; background: #2a4939; color: #fff; font-weight: 650; }
.sidebar-account { margin-top: auto; padding: .85rem .5rem 0; border-top: 1px solid #41584a; color: #d4e2d7; overflow-wrap: anywhere; }
.sidebar-account div { margin-top: .35rem; font-size: .86rem; }
.content { padding: clamp(1.4rem, 4vw, 4.5rem); }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: 1.35rem; border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(1.6rem, 4vw, 2.75rem); letter-spacing: -.04em; }
.page-header p { margin-top: .5rem; color: var(--muted); }
.page-header button { flex: none; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.15rem; }
.filters button, .actions button, .actions a { padding: .35rem .72rem; border: 1px solid #c6d3c8; border-radius: .32rem; background: var(--paper); color: var(--green); font-weight: 600; text-decoration: none; white-space: nowrap; }
.filters [aria-pressed="true"], .filters button:hover, .actions button:hover, .actions a:hover { background: var(--mint); border-color: #abc5b2; }
.records { margin-top: 1rem; overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: .55rem; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .92rem; }
th, td { padding: .92rem .9rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { color: #3b5147; background: #e7eee6; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 650; }
.actions { display: flex; gap: .38rem; flex-wrap: wrap; }
.empty, .status { padding: .9rem; color: var(--muted); }
.status { margin-top: .8rem; border-left: 3px solid #8eb79a; background: #e4eee4; }
.status[data-error], .error { color: #9a3427; }
.error { overflow-wrap: anywhere; }
dialog { width: min(440px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); border: 1px solid var(--line); border-radius: .65rem; padding: 1.2rem 1.35rem; background: var(--paper); color: #18251f; }
dialog::backdrop { background: #13251dc0; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.15rem; }
.dialog-head h2 { font-size: 1.3rem; overflow-wrap: anywhere; }
#dialog-fields { display: grid; gap: .9rem; margin-bottom: .75rem; }
.check { display: flex; gap: .55rem; align-items: center; }
.check input { width: 1.1rem; min-height: 1.1rem; margin: 0; }
.dialog-actions { text-align: right; margin-top: .9rem; }
@media (max-width: 700px) {
  .signin, .workspace { grid-template-columns: 1fr; }
  .signin { grid-template-rows: auto 1fr; }
  .signin-identity { padding: 2rem; }
  .signin-identity h1 { margin-top: 1.5rem; }
  .sidebar { padding: 1rem; }
  .sidebar nav { display: flex; flex-wrap: wrap; margin-top: .4rem; }
  .sidebar-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem; }
  .sidebar-account div { margin: 0; }
}
