:root {
  color-scheme: light;
  --ink: #122740;
  --blue: #1252c1;
  --navy: #102c59;
  --muted: #48617f;
  --line: #cbd9ec;
  --paper: #f2f6fc;
  --white: #fff;
  --sky: #eaf3ff;
  --focus: #005ae2;
  --mono: "IBM Plex Mono", Consolas, monospace;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); line-height: 1.65; background: var(--paper); }
a { color: var(--blue); text-underline-offset: .21em; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 12px; background: white; }
.shell {
  width: min(1180px, 100%); margin-inline: auto; padding-inline: 38px;
  padding-inline: max(38px, env(safe-area-inset-left)) max(38px, env(safe-area-inset-right));
}
.mast { color: var(--navy); background: var(--white); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.mast-inner, .footer-inner, .split, .panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.mast-inner { min-height: 76px; }
.brand, .main-nav a { text-decoration: none; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--navy); min-height: 46px; }
.brand-mark {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center; gap: 3px;
  width: 40px; height: 40px; overflow: hidden; border-radius: 10px 3px 10px 3px;
  background: linear-gradient(138deg,#1479e4,#154ba7 65%,#102e6f); box-shadow: inset 0 0 0 1px #ffffff26;
}
.brand-mark i { width: 4px; height: 13px; background: white; transform: skewX(-19deg); }
.brand-mark i:nth-child(2) { height: 20px; background: #bfe6ff; }
.brand-mark i:nth-child(3) { height: 25px; background: #77deff; }
.brand-type { line-height: 1.15; font-size: 21px; font-weight: 800; letter-spacing: .06em; }
.brand-type small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 550; letter-spacing: .03em; }
.main-nav, .footer-inner > div { display: flex; align-items: center; gap: 16px; }
.main-nav a, .nav-account, .text-action, .link-button, .back, .footer-inner a {
  display: inline-flex; align-items: center; min-height: 44px;
}
.main-nav > a { font-size: 14px; color: var(--ink); padding-inline: 6px; }
.main-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.main-nav .nav-account {
  background: var(--sky); color: #123d80; border: 1px solid #c1d4ee;
  border-radius: 8px; justify-content: center; padding: 6px 14px; font-size: 14px; font-weight: 650;
}
.main-shell { min-height: calc(100vh - 170px); min-height: calc(100svh - 170px); padding-bottom: clamp(34px,6vw,76px); }
.mast-foot { border-top: 1px solid var(--line); background: #eaf1f9; padding-bottom: env(safe-area-inset-bottom); }
.footer-inner { min-height: 76px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer-inner a { font-weight: 600; }
.footer-inner > .filing-info { flex-basis: 100%; flex-wrap: wrap; column-gap: 12px; row-gap: 0; padding-block: 4px; border-top: 1px solid var(--line); }
.foot-rule { width: 1px; height: 14px; background: var(--line); }
.demo-note { font-size: 13px; color: #3d5776; margin-top: 8px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { line-height: 1.32; overflow-wrap: anywhere; color: var(--navy); }
h2 { font-size: clamp(22px,2.6vw,30px); }
h3 { font-size: 19px; }
.section-kicker { color: var(--blue); font-size: 13px; font-weight: 750; letter-spacing: .07em; margin-bottom: 6px; }
.page-intro { padding-top: clamp(20px,4vw,52px); margin-bottom: clamp(18px,2.5vw,30px); }
.page-intro h1, .auth-intro h1 { font-size: clamp(29px,4vw,46px); margin-bottom: 8px; letter-spacing: -.025em; }
.page-intro p, .auth-intro > p:not(.section-kicker), .panel > p, .subtle { color: var(--muted); }
.back { font-size: 14px; }
.narrow { max-width: 720px; }
.full { width: 100%; }
.panel {
  min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  padding: clamp(18px,2.8vw,32px); box-shadow: 0 4px 16px #18355c07;
  overflow-wrap: anywhere;
}
.panel + .panel { margin-top: 18px; }
.stack > .panel + .panel { margin-top: 0; }
.panel h2 { font-size: clamp(20px,2.1vw,25px); margin-bottom: 13px; }
.panel p + form, .panel h3 + form { margin-top: 12px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.panel.stack h2 { margin: 0; }
.actions, .input-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.empty-state .actions, .page-intro .actions { margin-top: 16px; }
.btn {
  border: 1px solid transparent; border-radius: 9px; font-size: 16px; font-weight: 650;
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; padding: 10px 20px; text-decoration: none; line-height: 1.45;
}
.btn.primary { color: white; background: var(--blue); border-color: var(--blue); }
.btn.plain { color: var(--blue); background: var(--white); border-color: #a9bfdd; }
@media (hover:hover) {
  .btn.primary:hover { background: #0e42a1; }
  .btn.plain:hover, .nav-account:hover { background: var(--sky); }
  .main-nav > a:hover { color: var(--blue); }
}
.btn:disabled { color: #596c84; background: #e2e9f2; border-color: #d5dfec; }
.text-action, .link-button { color: var(--blue); font-weight: 650; text-decoration: underline; text-underline-offset: .24em; }
.link-button { margin: 0; padding: 0; border: 0; background: transparent; text-align: start; }
.notice { background: #e7f1ff; border: 1px solid #b4cdec; border-left: 4px solid var(--blue); padding: 12px 15px; margin-block: 14px; border-radius: 8px; color: var(--navy); overflow-wrap: anywhere; }
.notice ul { margin: 4px 0 0; padding-left: 21px; }
.notice-error { color: #86282e; background: #fff3f1; border-color: #e4b4b4; border-left-color: #bd434a; }
.badge, .tag { display: inline-block; background: #e7f0fe; color: #264f8a; padding: 3px 9px; border-radius: 6px; font-size: 13px; font-weight: 650; }
.badge.ok { color: #175d47; background: #e3f4eb; }
.badge.warn { color: #76520c; background: #fff0ce; }
.auth-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,430px); gap: 50px; align-items: start; max-width: 920px; margin: auto; padding-block: clamp(34px,7vw,90px); }
.auth-intro { padding-top: 14px; }
.auth-intro .text-action { margin-top: 12px; }
.auth-alternative { font-size: 15px; margin-top: 12px; }
.auth-alternative a { display: inline-flex; align-items: center; min-height: 44px; }
.form-grid, .profile-grid, .work-grid { display: grid; gap: 20px; }
.form-grid, .profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.profile-grid, .work-grid { align-items: start; }
.work-grid { grid-template-columns: minmax(0,1.55fr) minmax(250px,.85fr); }
.work-grid > *, .profile-grid > * { min-width: 0; }
.panel-head { align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.panel-head h2 { margin: 0; }
.field label, .invite-box label, label.field { display: block; font-weight: 650; }
.field label, .invite-box label { margin-bottom: 6px; }
.field small, .subtle, .file-link, .choice small, .member-row small { font-size: 14px; color: var(--muted); }
.choice small, .member-row small { display: block; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; font-size: 16px;
  font-weight: 450; color: var(--ink); background: white; border: 1px solid #9cb1cd;
  border-radius: 8px; padding: 10px 12px; line-height: 1.5;
}
label.field input, label.field select { margin-top: 6px; }
input[type="checkbox"], input[type="radio"] { width: 19px; height: 19px; flex: 0 0 19px; accent-color: var(--blue); }
fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
legend { font-size: 18px; font-weight: 700; padding: 0; margin-bottom: 9px; }
.choice { display: flex; align-items: flex-start; min-height: 48px; gap: 12px; padding: 13px 15px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.choice:has(:checked) { background: var(--sky); border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input, .check input { margin: 4px 0 0; }
.compact { align-items: center; padding-block: 9px; }
.compact input { margin: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; padding-block: 8px; min-height: 44px; cursor: pointer; }
.disclosure { border-block: 1px solid var(--line); }
summary { min-height: 44px; padding-block: 10px; color: var(--navy); font-weight: 650; }
.disclosure p { color: var(--muted); margin-bottom: 10px; font-size: 14px; }
.member-row, .material { padding: 14px 0; border-top: 1px solid var(--line); }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.member-row .badge { flex-shrink: 0; }
.invite-box { margin-top: 12px; border: 1px solid #c3d9f6; border-radius: 10px; padding: 14px; background: #f1f7ff; }
.invite-box .input-actions { flex-wrap: nowrap; }
.invite-box .input-actions input, .code-input { font-family: var(--mono); }
.invite-box .input-actions .btn { flex: none; }
.invite-box form { margin-top: 4px; }
.details { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 9px 14px; margin: 12px 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.status-panel { border-top: 3px solid var(--blue); background: linear-gradient(118deg,#eef6ff,white 68%); }
.status-panel .section-kicker { margin: 0; }
.status-panel h2 { margin: 8px 0; font-size: 28px; }
.receipt { border-top: 1px dashed #9cb9df; padding-top: 12px; margin-top: 12px; }
.receipt strong { color: var(--navy); font-family: var(--mono); }
.checklist { color: var(--muted); padding-left: 20px; }
.checklist + form { margin-top: 14px; }
.material h3 { font-size: 17px; }
.material p { margin: 5px 0; overflow-wrap: anywhere; }
.upload-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
input[type="file"] { max-width: 100%; min-width: 0; font-size: 16px; }
input[type="file"]::file-selector-button { font: inherit; min-height: 44px; background: var(--sky); border: 1px solid var(--line); border-radius: 8px; color: var(--navy); }
.bottom-actions { margin-top: 20px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th,td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 650; background: #edf4fd; }
td a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .shell { padding-inline: 22px; padding-inline: max(22px, env(safe-area-inset-left)) max(22px, env(safe-area-inset-right)); }
  .work-grid, .profile-grid { grid-template-columns: minmax(0,1fr); }
  .auth-layout { gap: 24px; }
}
@media (max-width: 620px) {
  .shell { padding-inline: 16px; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .mast-inner { min-height: 62px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 33px; height: 34px; }
  .brand-type { font-size: 18px; }
  .brand-type small { font-size: 10px; }
  .main-nav { gap: 5px; }
  .main-nav > a { padding-inline: 5px; }
  .main-nav .nav-guide, .wide-only { display: none; }
  .main-nav .nav-account { min-width: 44px; padding-inline: 9px; }
  .auth-layout, .form-grid { grid-template-columns: minmax(0,1fr); }
  .auth-layout { gap: 12px; padding-block: 22px; }
  .auth-intro { padding: 0; }
  .auth-intro .text-action { margin-top: 1px; }
  .page-intro { padding-top: 20px; }
  .profile-grid, .work-grid { gap: 14px; }
  .panel { padding: 16px; border-radius: 12px; }
  .panel-head { gap: 3px; }
  .stack { gap: 15px; }
  .stack > div > button.btn.primary, .panel > form > .btn.primary:only-child { width: 100%; }
  .footer-inner { padding-block: 12px; gap: 0; }
  .footer-inner > div { gap: 9px; flex-wrap: wrap; }
  .invite-box .input-actions .btn { padding-inline: 10px; }
  .roster thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .roster, .roster tbody, .roster tr { display: block; }
  .roster tr { padding-block: 8px; border-bottom: 1px solid var(--line); }
  .roster td { display: grid; grid-template-columns: 4.5em minmax(0,1fr); align-items: baseline; gap: 10px; padding: 3px 0; border: none; }
  .roster td::before { content: attr(data-label); color: var(--muted); font-size: 14px; }
  .roster td .badge { justify-self: start; }
}
@media (max-width: 360px) {
  .shell { padding-inline: 12px; padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
  .main-nav { gap: 2px; }
  .brand-type small { font-size: 9px; }
  .panel { padding: 14px; }
}

.identity-fields { border-top: 1px solid var(--line); padding-top: 12px; }
.identity-fields legend { padding-right: 8px; }
.lookup-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: start; }
.lookup-grid > .panel + .panel { margin: 0; }
.lookup-grid form { margin-top: 13px; }
.lookup-recovery > summary, .access-rotate > summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.lookup-recovery > .subtle, .access-rotate > .subtle { margin: 8px 0; }
.lookup-help { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.lookup-help .text-action { display: inline-block; margin-top: 7px; }
.access-card {
  max-width: 700px; background: #eef5ff; border: 1px solid #aac7ef; border-inline-start: 4px solid var(--blue);
  border-radius: 12px; padding: 18px 20px 8px; margin: 0 0 18px;
}
.access-card h2 { font-size: 21px; margin-bottom: 4px; }
.access-card p, .access-manage p { color: var(--muted); font-size: 14px; }
.access-card #recovery-code {
  margin: 10px 0; width: 100%; max-width: 28ch; min-height: 42px; padding: 6px 8px;
  font: 700 clamp(15px,4.6vw,20px)/1.5 var(--mono); letter-spacing: .015em; color: var(--navy);
  background: white; border-color: #b5cceb;
}
.access-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.access-tools .btn { flex: 0 1 auto; min-height: 44px; padding: 7px 14px; font-size: 15px; }
.access-tools .btn:first-child { background: var(--blue); border-color: var(--blue); color: white; }
.access-manage { margin: 0 0 14px; width: min(100%, 600px); }
.access-manage summary { color: var(--blue); font-size: 14px; }
.access-manage[open] { padding: 0 14px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; }
#code-image-dialog { width: min(380px,calc(100% - 32px)); border: 0; border-radius: 14px; padding: 18px; color: var(--ink); }
#code-image-dialog::backdrop { background: #0b2447aa; }
#code-image-dialog img { display: block; width: 100%; height: auto; margin: 12px auto; }
#code-image-dialog .btn { width: 100%; }
@media (max-width: 640px) {
  .lookup-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
}
@media (max-width: 360px) { .access-card { padding: 12px 12px 5px; } }
.status-panel > .text-action { display: inline-block; margin-top: 8px; }
.correction-callout { border-left: 4px solid #b76c1b; margin-bottom: 18px; }
.correction-callout h2 { font-size: clamp(20px, 3vw, 26px); }
.correction-item { padding: 10px 0; border-top: 1px solid var(--line); }
.correction-item p { margin: 3px 0 8px; overflow-wrap: anywhere; color: var(--muted); }
.correction-flow { display: grid; gap: 12px; max-width: 740px; }
.correction-flow > .panel { margin: 0; }
.correction-flow .correction-callout h2 { margin: 4px 0 12px; }
.correction-flow form + form { margin-top: 14px; }
.correction-flow .material { padding: 0; border: 0; }
.correction-flow .correction-reason { margin: 7px 0; overflow-wrap: anywhere; }
.correction-flow .needs-correction .tag { background: #fff0db; color: #74410a; }
