:root{font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:#172d29;background:#f4f6f4;font-synthesis:none;line-height:1.6;--accent:#126a53;--muted:#53675f;--line:#dce4df}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #4d967f;outline-offset:3px}[hidden]{display:none!important}
.shell{max-width:1040px;padding:0 32px;margin:auto}.topbar{min-height:72px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);font-size:14px;font-weight:650}.brand-mark{width:32px;height:32px;background:var(--accent);color:#fff;display:grid;place-items:center;flex-shrink:0;border-radius:8px;font-size:12px}.topbar-label{margin-left:auto;font-size:12px;font-weight:450;color:var(--muted);white-space:nowrap}.layout{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:44px;padding:32px 0 24px}.introduction{min-width:0}h1{font-size:30px;line-height:1.25;letter-spacing:-.7px;font-weight:650;margin:0 0 20px}h2{font-size:22px;line-height:1.4;margin:10px 0 8px;letter-spacing:-.4px}
.disclosures{margin:0;font-size:13px}.disclosures>div{display:grid;grid-template-columns:60px minmax(0,1fr);gap:10px;padding:5px 0}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}.permission-summary{font-size:13px;line-height:1.8;color:#2d4e40;background:#eaf2eb;border:1px solid #d6e4d9;border-radius:8px;padding:12px 14px;margin:16px 0 6px}.introduction-links{display:flex;align-items:center;gap:16px}.public-confirmation-note{font-size:12px;line-height:1.7;color:var(--muted);margin:0;flex:1}#privacy-link{display:inline-flex;align-items:center;min-height:44px;flex-shrink:0;color:var(--accent);font-size:13px;text-underline-offset:4px;gap:5px}
.connection-card{background:#fff;border:1px solid var(--line);border-radius:12px;align-self:start;overflow:hidden;box-shadow:0 10px 30px #17372b05}.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;padding:14px 20px;margin:0;border-bottom:1px solid #e8ede9}.steps li{display:flex;align-items:center;gap:7px;font-size:12px;color:#6e7e74;white-space:nowrap}.steps .step-number{font-size:12px;font-variant-numeric:tabular-nums}.steps .active{color:var(--accent);font-weight:600}.card-body{padding:20px}.status-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:550;color:var(--accent);background:#edf5ef;border:1px solid #deebe1;border-radius:5px;padding:2px 8px}.status-badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.status-message{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 16px}
.public-consent-statement{font-size:12px;line-height:1.7;color:#455a51;margin:0 0 16px}.public-attempt-note{font-size:12px;line-height:1.7;color:#6d602f;background:#faf6e9;border:1px solid #ece3c7;padding:10px 12px;border-radius:6px;margin:0 0 14px}.public-new-panel p{font-size:13px;color:var(--muted);margin:0 0 14px}.consent-label{display:flex;gap:10px;font-size:13px;line-height:1.7;color:#455a51;margin:0 0 16px;align-items:flex-start}.consent-label input{margin:4px 0 0;accent-color:var(--accent);width:18px;height:18px;flex-shrink:0}
.button-primary{display:flex;width:100%;min-height:48px;justify-content:center;align-items:center;gap:12px;background:var(--accent);border:0;border-radius:7px;color:#fff;padding:12px 14px;text-align:center;font-size:14px;font-weight:600;line-height:1.5}.button-primary:hover:enabled{background:#0c5642}.button-secondary{min-height:44px;color:var(--accent);background:#fff;border:1px solid #b4cfc2;border-radius:6px;padding:10px 14px;font-size:13px}.button-text{min-height:44px;font-size:13px;border:0;background:none;color:#52685b;padding:10px 0;text-decoration:underline;text-underline-offset:4px}.public-new-panel .button-secondary{width:100%}.actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px}.actions:has(> [hidden]:first-child):has(> [hidden]:last-child){display:none}.card-footer{font-size:12px;line-height:1.6;color:#65766b;border-top:1px solid #e8ede9;background:#fafcf9;padding:10px 20px}
.pairing-phone-label{display:block;font-size:13px;font-weight:600;line-height:1.6;color:#304e40;margin-bottom:8px}.pairing-phone-input{width:100%;min-width:0;min-height:48px;padding:11px 12px;border:1px solid #a8bfaf;border-radius:7px;background:#fff;color:#172d29;font-size:16px;line-height:1.5}.pairing-phone-input::placeholder{color:#60756a;font-size:12px}.pairing-phone-input:disabled{background:#f4f7f3;color:#60756a}.pairing-note{font-size:12px;line-height:1.6;color:var(--muted);margin:8px 0 14px}.pairing-request-button{min-height:48px}.pairing-code-panel{padding:16px;background:#f2f7f2;border:1px solid #d9e5da;border-radius:8px}.pairing-code-label{font-size:13px;line-height:1.6;color:#40614c;margin:0 0 12px}.pairing-code-copy{display:flex;flex-direction:column;align-items:center;gap:5px;width:100%;min-height:88px;padding:10px;background:#fff;border:1px solid #b9d2c2;border-radius:7px;color:var(--accent);text-align:center}.pairing-code-copy:hover:enabled{background:#e8f2e9;border-color:#6c9c7e}.pairing-code{display:block;font-family:ui-monospace,Consolas,monospace;font-size:32px;font-weight:650;line-height:1.3;letter-spacing:3px;color:#15593f;white-space:nowrap;font-variant-numeric:tabular-nums;user-select:all}.pairing-copy-label{font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:3px}.pairing-copy-feedback{font-size:12px;line-height:1.7;color:#315c43;margin:8px 0 0;overflow-wrap:anywhere}.pairing-code-panel .pairing-note{margin:8px 0 12px}.pairing-steps{font-size:12px;line-height:1.8;color:#3c5947;margin:0;padding-left:18px}.pairing-steps li+li{margin-top:6px}.pairing-safety-note{font-size:12px;line-height:1.7;color:#626044;border-top:1px solid #dbe5d9;padding-top:10px;margin:12px 0 0}.pairing-mode-button{font-size:12px;margin-top:8px;text-align:left}#pairing-error{margin-top:12px}
.qr-frame{width:min(100%,280px);aspect-ratio:1;display:grid;place-items:center;margin:0 auto 16px;border:1px solid #e0e7e1;border-radius:8px;background:#fff;overflow:hidden}.qr-frame img{width:100%;height:auto;display:block}.qr-wait{font-size:13px;color:var(--muted);padding:24px}.phone-instruction{font-size:13px;color:#40564b;line-height:1.8;margin:10px 0}.qr-caption{font-size:12px;color:var(--muted)}.success-mark{display:grid;place-items:center;width:48px;height:48px;font-size:24px;border-radius:50%;color:var(--accent);background:#eef6ef;margin:10px 0 16px}.connected-panel p{font-size:13px;color:var(--muted)}.error-message{background:#fff6f2;border:1px solid #ead9cf;color:#8b4530;font-size:13px;padding:10px 12px;border-radius:6px;overflow-wrap:anywhere}.connection-help{font-size:13px;line-height:1.8;color:var(--muted);border-top:1px solid var(--line);padding:2px 0}.connection-help summary{display:flex;align-items:center;min-height:48px;cursor:pointer;color:#3b5b49;font-weight:550}.connection-help summary:before{content:"+";margin-right:8px;font-size:18px}.connection-help[open] summary:before{content:"−"}.connection-help p{margin:0 0 12px}.page-footer{padding:14px 0 24px;font-size:12px;color:#65766b}.preview-banner{text-align:center;background:#e9f1eb;color:#234c3c;font-size:12px;padding:8px}
/* Initial public flow has one heading and one explicit consent action. */
body[data-phase="public_consent"] #status-badge,body[data-phase="public_consent"] #status-message{display:none}body[data-phase="public_consent"] #connection-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:800px){.shell{max-width:540px;padding:0 16px}.topbar{min-height:56px;font-size:13px}.brand-mark{width:28px;height:28px;font-size:12px}.topbar-label{font-size:12px}.layout{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px 0}.introduction h1{font-size:23px;letter-spacing:-.5px;margin:0 0 10px}.disclosures{font-size:12px}.disclosures>div{grid-template-columns:54px minmax(0,1fr);gap:8px;padding:3px 0}.permission-summary{font-size:12px;line-height:1.7;padding:10px 12px;margin:10px 0 2px}.introduction-links{gap:14px}.public-confirmation-note{font-size:12px;line-height:1.6}.steps{padding:12px 16px;gap:8px}.steps li{font-size:12px;gap:5px}.card-body{padding:16px}.public-consent-statement{font-size:12px;line-height:1.65;margin-bottom:14px}.card-footer{padding:10px 16px}.pairing-code{font-size:30px;letter-spacing:2px}.pairing-code-panel{padding:14px}.pairing-phone-input::placeholder{font-size:12px}.connection-help{font-size:12px}.page-footer{font-size:12px;padding:10px 0 20px}
body[data-phase="starting"] .introduction h1,body[data-phase="qr"] .introduction h1,body[data-phase="connected"] .introduction h1{font-size:20px;margin-bottom:7px}body[data-phase="starting"] .permission-summary,body[data-phase="qr"] .permission-summary,body[data-phase="connected"] .permission-summary{margin-top:7px;padding:8px 10px}body[data-phase="starting"] .public-confirmation-note,body[data-phase="qr"] .public-confirmation-note,body[data-phase="connected"] .public-confirmation-note{display:none}}
@media(max-width:360px){.shell{padding:0 12px}.topbar-label{display:none}.steps{gap:5px;padding:11px 14px}.steps li{gap:4px}.card-body{padding:14px}.pairing-phone-input::placeholder{font-size:12px}.pairing-code{font-size:28px;letter-spacing:1.5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
