:root {
  color-scheme: light;
  --bg: #f7f9fa;
  --paper: #fff;
  --ink: #112b33;
  --muted: #48616a;
  --accent: #087160;
  --accent-dark: #075549;
  --line: #d3e0e1;
  --soft: #e9f4f1;
  --error: #922b25;
  --radius: 10px;
  font-family: "Avenir Next", Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.75; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; inset: 8px auto auto 8px; z-index: 4; padding: 10px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.topbar nav { display: flex; gap: 34px; }
.topbar a { text-decoration: none; }
.topbar nav a { color: var(--muted); font-size: .91rem; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1rem; font-weight: 730; color: var(--ink); white-space: nowrap; }
.brand-mark { display: inline-block; width: 27px; height: 27px; border: 7px solid var(--accent); border-right-width: 11px; border-radius: 5px; transform: rotate(-8deg); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .7rem 1.3rem; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #fff; font-weight: 680; line-height: 1.25; text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { background: var(--accent-dark); }
.button:active { transform: translateY(1px); }
.button.secondary { border-color: var(--line); background: var(--paper); color: var(--accent-dark); }
.button.secondary:hover { background: var(--soft); }
.button:disabled { opacity: .62; cursor: wait; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.15rem, 4vw, 2.15rem); }
.auth { width: min(490px, calc(100% - 40px)); margin: 65px auto 95px; }
.stack { display: grid; gap: 1.1rem; }
.stack h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
form label { display: grid; font-weight: 650; gap: .45rem; }
input:not([type=checkbox]), textarea, select { width: 100%; display: block; min-height: 44px; padding: .7rem .8rem; border: 1px solid #8da6aa; border-radius: var(--radius); background: var(--paper); color: var(--ink); }
textarea { min-height: 115px; resize: vertical; }
input::placeholder, textarea::placeholder, .muted { color: var(--muted); }
.check { display: flex; align-items: flex-start; }
.check input { accent-color: var(--accent); margin: 4px 4px 0 0; }
[role=alert] { color: var(--error); }
[role=alert]:empty { display: none; }
.footer { padding-block: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }
.area { padding-block: 45px 80px; min-height: 66vh; }
.area h1 { font-size: clamp(1.7rem, 4vw, 2.55rem); }
.area h2 { font-size: 1.25rem; }
.area-header, .actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.summary { padding-left: 0; list-style: none; margin: 0; }
.summary li { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: space-between; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.state { background: var(--soft); color: var(--accent-dark); padding: .3rem .55rem; border-radius: 5px; font-size: .83rem; font-weight: 680; }
.details { margin: 0; overflow-wrap: anywhere; }
.details dt { font-weight: 700; }
.details dd { margin: .2rem 0 1rem; white-space: pre-wrap; }
.identity-images { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.identity-images figure { margin: 0; color: var(--muted); font-size: .9rem; }
.identity-images img { display: block; width: 100%; max-height: 240px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .topbar-inner { gap: 10px; min-height: 65px; }
  .topbar nav { display: none; }
  .columns { grid-template-columns: 1fr; }
}
