:root {
  --ink: #202a2a; --muted: #737f7c; --line: #dce3e0; --paper: #f8faf9;
  --green: #14755d; --mint: #e9f4ef; --amber: #9b6718; --red: #b63d48;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scrollbar-gutter: stable; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.6 "Segoe UI", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #65bda2; outline-offset: 3px; }
svg { width: 19px; height: 19px; flex-shrink: 0; stroke-width: 1.7; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 19px; } h2 { font-size: 23px; } h3 { font-size: 15px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 218px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 30px 16px 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 25px; font-weight: 700; line-height: 1.2; padding: 0 10px; }
.brand small { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; }
.brand-mark { width: 37px; height: 40px; background: var(--green); color: #fff; display: grid; place-items: center; border-radius: 6px; flex-shrink: 0; }
.brand-mark svg { width: 23px; height: 23px; }
.nav-label { font-size: 11px; color: #8d9793; margin: 44px 12px 12px; }
nav { display: grid; gap: 6px; }
.nav-item { height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 13px; color: #66736e; border-radius: 5px; font-size: 13px; }
.nav-item:hover { background: #f3f6f4; }
.nav-item.active { background: var(--mint); color: var(--green); font-weight: 600; }
.sidebar-foot { border-top: 1px solid var(--line); margin-top: auto; padding: 18px 8px 0; font-size: 10px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.sidebar-foot span:last-child { margin-left: auto; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
main { margin-left: 218px; padding: 0 38px; min-width: 0; }
.topbar { height: 95px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 10px; }
.eyebrow { font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.connection { color: var(--green); font-size: 11px; margin-right: 8px; }
.connection.offline { color: var(--red); }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 5px; display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; color: #67766f; }
.icon-button:hover { background: var(--mint); color: var(--green); }
.view { padding: 28px 0 36px; max-width: 1400px; min-height: calc(100vh - 158px); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.section-heading p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 39px; border: 1px solid var(--green); background: var(--green); color: #fff; padding: 8px 15px; border-radius: 5px; font-weight: 600; font-size: 12px; }
.primary-button:hover { background: #105b49; }
.full { width: 100%; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: #fff; margin-bottom: 30px; }
.metric { padding: 20px; border-right: 1px solid var(--line); min-height: 132px; }
.metric:last-child { border: 0; }
.metric > span { color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin: 10px 0 5px; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.metric small { font-size: 10px; color: var(--muted); }
.text-amber { color: var(--amber); }
.overview-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; }
.section-block { min-width: 0; }
.block-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.badge { font-size: 10px; padding: 3px 8px; background: var(--mint); color: var(--green); border-radius: 3px; white-space: nowrap; }
.badge.neutral { background: #eef0f0; color: #76817d; }
.badge.failed { background: #faecee; color: var(--red); }
.badge.uncertain { background: #faf0df; color: var(--amber); }
.flow { list-style: none; padding: 0; margin: 4px 0; }
.flow li { display: flex; align-items: center; gap: 13px; min-height: 72px; position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; width: 1px; height: 16px; background: var(--line); left: 18px; bottom: -8px; }
.step-icon { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); background: #fff; border-radius: 50%; color: #8a9690; flex-shrink: 0; }
.flow strong { font-size: 12px; } .flow small { display: block; color: var(--muted); font-size: 10px; }
.step-status { margin-left: auto; font-size: 10px; color: #96a29b; }
.flow .done .step-icon { color: var(--green); border-color: #aed2be; background: var(--mint); }
.flow .done .step-status { color: var(--green); }
.settings-list { margin: 0; }
.settings-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e8edeb; padding: 15px 0; font-size: 12px; }
.settings-list dt { color: var(--muted); flex-shrink: 0; }
.settings-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px; background: #eef4f5; color: #576e78; margin-top: 18px; font-size: 11px; }
.recent-heading { margin-top: 30px; }
.text-link { display: inline-flex; gap: 5px; align-items: center; color: var(--green); font-size: 11px; }
.text-link svg { width: 14px; }
.demo-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 48px; }
label:not(.check-row):not(.search-field) { display: block; margin: 21px 0 7px; color: #57685e; font-size: 12px; font-weight: 600; }
input:not([type=checkbox]), select { width: 100%; height: 42px; border: 1px solid #ced9d3; border-radius: 4px; padding: 8px 11px; background: #fff; color: var(--ink); min-width: 0; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 26px 0; font-size: 12px; cursor: pointer; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--green); margin: 3px 0 0; }
.check-row small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.muted-note { font-size: 11px; color: var(--muted); margin-top: 14px; overflow-wrap: anywhere; }
.empty-state { padding: 66px 16px; text-align: center; color: #8c9991; }
.empty-state svg { width: 30px; height: 30px; margin-bottom: 8px; }
.empty-state p { font-size: 12px; }
.result-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 6px; }
.result-value { padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.result-value span { display: block; color: var(--muted); font-size: 11px; }
.result-value strong { font-size: 14px; display: block; margin-top: 7px; overflow-wrap: anywhere; }
.result-error { margin-top: 18px; padding: 14px; border-left: 3px solid var(--amber); background: #faf2e3; color: #7d591f; font-size: 12px; overflow-wrap: anywhere; }
.result-events { margin-top: 23px; } .result-events summary { cursor: pointer; color: var(--green); font-size: 12px; }
.audit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.search-field { display: flex; align-items: center; position: relative; flex: 1; max-width: 420px; }
.search-field svg { position: absolute; left: 12px; color: #8c9991; width: 16px; }
.search-field input { padding-left: 37px; height: 38px; font-size: 12px; }
.audit-toolbar select { width: 180px; height: 38px; font-size: 12px; }
.audit-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
.audit-table th { text-align: left; color: var(--muted); font-weight: 400; font-size: 10px; padding: 11px 8px; background: #f0f4f1; }
.audit-table td { border-bottom: 1px solid var(--line); padding: 13px 8px; vertical-align: top; overflow-wrap: anywhere; }
.audit-table th:nth-child(1) { width: 26%; } .audit-table th:nth-child(2) { width: 25%; }
.audit-table th:nth-child(3) { width: 29%; } .audit-table th:nth-child(4) { width: 20%; }
.audit-table small { display: block; font-size: 9px; color: #8d9991; }
.audit-table .error-row td:first-child { color: var(--red); }
.alert { margin-top: 18px; padding: 12px; font-size: 12px; color: var(--red); background: #faecee; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 19px 0; border-top: 1px solid var(--line); font-size: 10px; color: #91a096; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 11px 18px; background: #263e34; color: #fff; border-radius: 5px; font-size: 12px; z-index: 10; }
.boot-message { padding: 40px; color: var(--muted); }
.login-page { min-height: 100vh; display: grid; place-items: center; border-top: 4px solid var(--green); background: #f7faf8; }
.login-main { margin: 0; width: min(390px, calc(100% - 40px)); padding: 45px 0; }
.login-brand { padding: 0; margin-bottom: 44px; }
.login-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.login-title h1 { font-size: 21px; } .login-title svg { color: #758d7f; }
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.password-field .icon-button { position: absolute; right: 3px; top: 3px; border: 0; }
.login-error { min-height: 45px; padding: 10px 0; font-size: 12px; color: var(--red); }
.login-form .primary-button { min-height: 44px; }
.login-footer { margin-top: 35px; text-align: center; font-size: 10px; color: #91a096; }
.registration-layout { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 48px; }
.secondary-button { display: inline-flex; align-items:center; justify-content:center; gap:8px; min-height:39px; padding:8px 13px; border:1px solid var(--line); border-radius:5px; background:#fff; color:var(--ink); font-size:12px; }
.secondary-button:hover { background:var(--mint); }
.run-meta { padding:16px 0 0; font-weight:600; overflow-wrap:anywhere; }
.run-meta small { display:block; font-size:10px; font-weight:400; color:var(--muted); }
.run-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.otp-form { padding:18px; background:#eaf4ef; border-left:3px solid var(--green); margin:16px 0; }
.otp-row { display:flex; align-items:center; gap:12px; margin-top:16px; }
.otp-row input { flex:1; min-width:0; }
.otp-row button { flex-shrink:0; }
.inline-error { color:var(--red); font-size:12px; min-height:24px; padding:10px 0; overflow-wrap:anywhere; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px; }
fieldset { border:0; margin:0; padding:0; min-width:0; }
fieldset:disabled { opacity:.65; }
.advanced-settings { border-top:1px solid var(--line); margin-top:32px; padding-top:18px; }
.advanced-settings summary { cursor:pointer; color:var(--green); font-size:13px; }
.settings-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:12px; }
.settings-actions .muted-note { margin:0; }
.probe-result { font-size:12px; color:#526b61; margin-bottom:22px; overflow-wrap:anywhere; }
.history-table { width:100%; min-width:650px; border-collapse:collapse; font-size:12px; }
.history-table td,.history-table th { border-bottom:1px solid var(--line); padding:14px 10px; text-align:left; }
.history-table th { font-size:11px; color:var(--muted); font-weight:400; background:#f0f4f1; }
.history-table small { display:block; font-size:10px; color:var(--muted); }
.table-scroll { overflow-x:auto; max-width:100%; }
.badge.starting,.badge.verifying,.badge.cancelling { color:#38638b; background:#e8eff8; }
.badge.cancelled,.badge.expired { color:#7b6d54; background:#f2eee5; }
dialog { border:1px solid var(--line); border-radius:7px; width:min(460px,calc(100% - 32px)); padding:24px; color:var(--ink); }
dialog::backdrop { background:rgba(23,35,29,.4); }
dialog p { font-size:13px; margin-top:20px; }
.dialog-actions { display:flex; justify-content:flex-end; gap:10px; }
.invitation-summary { margin-top:28px; }
.invitation-code-row { display:flex; align-items:center; gap:12px; margin-top:18px; }
.invitation-code-row strong { font-size:20px; overflow-wrap:anywhere; min-width:0; }
.invitation-history-heading { margin-top:30px; margin-bottom:12px; }
#custom-ref { margin-top:12px; }
#view-invitation > select { max-width:580px; }
.invitation-table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:12px; }
.invitation-table td,.invitation-table th { padding:12px 8px; border-bottom:1px solid var(--line); text-align:left; overflow-wrap:anywhere; }
.invitation-table th { color:var(--muted); background:#f0f4f1; }
@media(max-width:950px) { .registration-layout { grid-template-columns:250px minmax(0,1fr); gap:28px; } }
@media(max-width:740px) { .registration-layout { grid-template-columns:1fr; gap:32px; } .otp-row { flex-wrap:wrap; } .otp-row input { flex-basis:100%; } .form-grid { gap:0 12px; } }
@media (min-width: 1750px) { main { padding-left: 64px; padding-right: 64px; } }
@media (max-width: 1050px) {
  .sidebar { width: 76px; padding-left: 12px; padding-right: 12px; }
  .brand { padding: 0 7px; } .sidebar .brand > span:last-child, .nav-label, .nav-item span, .sidebar-foot { display: none; }
  nav { margin-top: 42px; } .nav-item { justify-content: center; padding: 0; }
  main { margin-left: 76px; padding: 0 24px; } .demo-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
  .metric { padding: 16px; } .metric strong { font-size: 21px; }
}
@media (max-width: 740px) {
  .overview-grid, .demo-layout { grid-template-columns: 1fr; gap: 28px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 0; } .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric { min-height: 118px; } .topbar { height: 85px; }
  .audit-table th:nth-child(3), .audit-table td:nth-child(3) { display: none; }
  .audit-table th:nth-child(1) { width: 36%; } .audit-table th:nth-child(2) { width: 36%; } .audit-table th:nth-child(4) { width: 28%; }
  .audit-toolbar { flex-wrap: wrap; } .search-field { flex-basis: 100%; max-width: none; }
  .result-panel { min-height: 220px; }
}
@media (max-width: 480px) {
  .sidebar { width: 58px; padding: 24px 7px; } .brand { padding: 0 3px; } .brand-mark { width: 34px; }
  main { margin-left: 58px; padding: 0 15px; }
  h1 { font-size: 17px; } h2 { font-size: 20px; }
  .top-actions { gap: 5px; } .connection { font-size: 0; margin: 0; } .connection::after { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
  .connection.offline::after { background: var(--red); }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .section-heading .primary-button { min-height: 34px; padding: 6px 9px; }
  .metric { padding: 14px 10px; } .metric strong { font-size: 20px; }
  .metric small { font-size: 9px; } .step-status { font-size: 9px; }
  footer { display: block; } footer span { display: block; margin-top: 4px; }
  .login-main { margin: 0; padding: 40px 0; }
}
