:root {
  color-scheme: dark;
  --night: #111a22;
  --panel: #1c2730;
  --sand: #e7d5b5;
  --ink: #f3f1e9;
  --muted: #c1c9cd;
  --line: #48545d;
  font: 16px/1.6 "Instrument Sans","Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--ink);
  background: var(--night);
}
* { box-sizing: border-box; }
body { display: flex; min-height: 100vh; flex-direction: column; margin: 0; }
.wide { width: min(1180px, calc(100% - clamp(40px,8vw,112px))); margin-inline: auto; }
a { color: var(--sand); text-underline-offset: 4px; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #eccb86; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; inset: 0 auto auto 12px; transform: translateY(-120%); background: var(--night); padding: 7px 15px; }
.skip:focus { transform: none; }
.design-header { border-bottom: 1px solid var(--line); }
.heading-row, footer .wide { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-size: 19px; font-weight: 650; letter-spacing: .09em; line-height: 1.2; }
.brand small { display: block; font-size: 8px; letter-spacing: .18em; margin-top: 5px; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover { color: var(--sand); text-decoration: underline; }
.content { display: grid; flex: 1; align-content: start; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(24px,6vw,84px); padding-block: clamp(40px,8vw,112px); }
h1, h2, p { margin: 0; }
h1 { max-width: 13em; color: var(--ink); font: 540 clamp(36px,4.2vw,66px)/1.17 "Songti SC","STSong","SimSun",serif; letter-spacing: -.025em; }
.introduction { border-top: 2px solid var(--sand); padding-top: 24px; }
.introduction p { max-width: 28em; margin-top: 18px; color: var(--muted); }
h2 { font-size: clamp(20px,2.1vw,26px); font-weight: 620; line-height: 1.35; }
.login-card,#login-panel,#workspace section { min-width: 0; background: var(--panel); border: 1px solid var(--line); padding: clamp(20px,3vw,42px); }
.content section p { margin: 12px 0; }
.content section p:first-child { margin-top: 0; }
.form-field,label { display: block; }
form label { margin-top: 18px; font-weight: 550; }
input:not([type=checkbox]) { display: block; width: 100%; padding: 11px 13px; margin: 7px 0 0; background: #24323b; color: var(--ink); border-radius: 0; border: 1px solid #80909a; min-height: 45px; }
input::placeholder { color: #b8c3c8; }
input[type=checkbox] { width: 17px; height: 17px; margin: 0 7px 0 0; vertical-align: middle; accent-color: var(--sand); }
button { min-height: 42px; color: var(--ink); background: transparent; border: 1px solid #8e999e; padding: 7px 15px; cursor: pointer; border-radius: 0; }
form button[type=submit], form button.primary, .primary { background: var(--sand); border-color: var(--sand); color: #14202a; font-weight: 650; margin-top: 20px; }
button:hover:enabled { border-color: var(--sand); }
form button[type=submit]:hover:enabled, .primary:hover:enabled { background: #f9e8ca; }
button:disabled { opacity: .55; cursor: default; }
.card-note,.note,.muted { color: var(--muted); font-size: 14px; }
.content .card-note { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.note a,.card-note a { color: var(--sand); }
#message,#feedback,.feedback { overflow-wrap: anywhere; white-space: pre-line; }
#invite-title,#pending-notice { overflow-wrap: anywhere; }
#message[data-state=error],#feedback[data-error=true],.feedback[data-kind=error],.feedback.error { color: #ffbcac; }
#message[data-state=success] { color: #b1e6c6; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .wide { padding-block: 16px; }
.access-administration .content { align-content: start; row-gap: 16px; }
.access-administration #feedback { grid-column: 2; }
.access-administration #workspace { grid-column: 1/-1; display: grid; gap: 18px; min-width: 0; }
.access-administration:has(#workspace:not([hidden])) .content { padding-block: 30px 48px; }
.access-administration:has(#workspace:not([hidden])) .introduction { grid-column: 1/-1; border-top: none; padding: 0; }
.access-administration:has(#workspace:not([hidden])) h1 { font-size: 34px; }
.access-administration:has(#workspace:not([hidden])) .introduction p { display: none; }
.access-administration:has(#workspace:not([hidden])) #feedback { grid-column: 1/-1; }
.actions,.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 15px; margin-block: 12px; }
.actions label { margin: 0; font-size: 14px; }
.toolbar { justify-content: space-between; margin: 0 0 14px; }
#new-user { max-width: 32em; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th,td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-size: 14px; }
td button { margin: 3px 6px 3px 0; }
.device-flex button { display: block; margin: 4px 0 0; }
@media(max-width:700px) {
  .wide { width: calc(100% - 32px); }
  .heading-row { min-height: 63px; gap: 10px; }
  .brand { gap: 5px; }
  .brand img { width: 30px; height: 30px; }
  .brand span { font-size: 16px; }
  .brand small { display: none; }
  nav { gap: 6px 12px; }
  nav a { font-size: 13px; }
  .heading-row button { padding: 4px 8px; min-height: 36px; font-size: 13px; }
  .content { grid-template-columns: minmax(0,1fr); padding-block: 30px 40px; gap: 22px; }
  .introduction { padding-top: 16px; }
  .introduction p { margin-top: 8px; }
  .access-administration #feedback { grid-column: 1; }
  .member-name { max-width: 36vw; white-space: normal; overflow-wrap: anywhere; }
  .device-flex button { padding-inline: 10px; }
  footer .wide { align-items: start; flex-direction: column; justify-content: center; gap: 6px; }
}
