:root {
  color-scheme: light;
  --ink: #112f38;
  --teal: #007684;
  --aqua: #009fb1;
  --muted: #50646e;
  --line: #d7e3e5;
  --warm: #f5b91a;
  --wash: #f0f8f8;
  font: 16px/1.6 "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: white;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0 0 .65em; }
h1, h2, h3 { line-height: 1.3; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: #005562; }
small, .muted { color: var(--muted); }
.page-width, .site-bar { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: 172px; height: auto; }
.site-nav { display: flex; align-items: stretch; gap: 28px; align-self: stretch; }
.site-nav a { position: relative; display: inline-flex; align-items: center; font-size: .95rem; font-weight: 650; color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--teal); }
.site-nav a[aria-current]::after { content: ""; background: var(--aqua); position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }
.layout { display: grid; grid-template-columns: minmax(215px, 280px) minmax(0, 1fr); gap: 24px; align-items: start; }
.layout > *, .card { min-width: 0; }
.card { border: 1px solid var(--line); background: white; border-radius: 15px; padding: clamp(18px, 2.2vw, 28px); margin-bottom: 16px; }
.bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-block: 14px; }
button, .upload { display: inline-block; font: inherit; font-weight: 600; font-size: .91rem; line-height: 1.45; background: white; color: var(--teal); border: 1px solid #accace; border-radius: 8px; padding: 8px 13px; cursor: pointer; text-decoration: none; }
button:hover, .upload:hover { background: #e8f5f5; border-color: var(--teal); }
button.primary, .primary { background: var(--teal); color: white; border-color: var(--teal); }
button.primary:hover, .primary:hover { background: #005f6a; color: white; }
button:disabled { opacity: .48; cursor: default; }
.upload { max-width: 100%; }
.upload input[type=file] { display: block; font-size: .8rem; max-width: 100%; }
input, select, textarea { max-width: 100%; min-width: 0; font: inherit; color: var(--ink); background: white; border: 1px solid #b2c7ca; border-radius: 7px; padding: 6px 9px; }
label > input:not([type=file]), label > textarea { display: block; width: 100%; }
textarea { resize: vertical; }
ul, ol { padding-inline-start: 22px; overflow-wrap: anywhere; }
li button { margin-block: 3px; }
img, video { max-width: 100%; }
.step { border-inline-start: 3px solid #76c4c8; background: #f3f9f9; padding: 16px; margin-block: 16px; }
.step label { display: block; margin-block: 8px; }
.step img, .step video { max-height: 430px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--wash); padding: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
details { margin-block: 14px; }
summary { cursor: pointer; }
:focus-visible { outline: 3px solid #007784; outline-offset: 3px; }
#notice { color: var(--muted); }
#notice.error, #validation { color: #a33819; }
.invalid-step { outline: 2px solid #bd4928; }
#review { overflow-x: auto; }
#review table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
#review th, #review td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
@media (max-width: 760px) {
  .page-width, .site-bar { width: calc(100% - 36px); }
  .site-bar { flex-wrap: wrap; min-height: 64px; gap: 8px 16px; }
  .brand img { width: 144px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: .84rem; min-height: 42px; }
  .layout { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 520px) {
  .site-bar { padding-top: 12px; gap: 5px; }
  .site-nav { width: 100%; }
}

.site-nav button { align-self: center; font: inherit; white-space: nowrap; }
.login-card { max-width: 440px; margin: 48px auto; }

.session-identity { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.session-banner { margin: 16px auto; max-width: 1100px; }
.site-nav { flex-wrap: wrap; gap: 8px 20px; }
.site-bar { flex-wrap: wrap; padding-block: 8px; }
@media (max-width: 760px) {
 .site-nav { flex: 1 1 100%; gap: 4px 14px; }
 .site-nav a, .site-nav button { min-height: 44px; }
 .session-identity { flex: 1 1 100%; }
 .bar { flex-wrap: wrap; }
}
