:root{color-scheme:light;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;line-height:1.5;text-rendering:optimizeLegibility;--ink: #16151d;--muted: #606877;--surface: #ffffff;--surface-soft: #f7f8fb;--surface-tint: #fff8f5;--line: #e6e8ed;--brand-red: #ea4f5e;--brand-orange: #f5a832;--brand-blue: #2f69b7;--success: #18794e;--danger: #b4233a;--shadow: 0 24px 70px rgba(21, 24, 34, .15);--focus: 0 0 0 4px rgba(47, 105, 183, .18);--footer-bg: #171922;--footer-text: rgba(255, 255, 255, .78);--footer-link-hover: #ffffff}@media(prefers-color-scheme:dark){:root{color-scheme:dark;--ink: #f3f5f8;--muted: #aab2c1;--surface: #101116;--surface-soft: #181a22;--surface-tint: #1b1719;--line: rgba(255, 255, 255, .13);--brand-red: #ff6b7a;--brand-orange: #f7ad45;--brand-blue: #8bbcff;--success: #65d7a5;--danger: #ff8a9a;--shadow: 0 28px 80px rgba(0, 0, 0, .5);--focus: 0 0 0 4px rgba(139, 188, 255, .22);--footer-bg: #090a0f;--footer-text: rgba(255, 255, 255, .74);--footer-link-hover: #ffffff}}*{box-sizing:border-box}html{background:var(--surface);color:var(--ink);min-width:320px}body{margin:0;min-height:100vh}button,input{color:inherit;font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled,input:disabled{cursor:not-allowed;opacity:.56}a{color:inherit}svg,img{display:block}.visually-hidden{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0 0 0 0);white-space:nowrap}.app-shell{background:var(--surface);display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;overflow:hidden}.installer-hero{background:linear-gradient(140deg,rgba(47,105,183,.18),transparent 42%),linear-gradient(293deg,var(--brand-orange) 0%,var(--brand-red) 100%);color:#fff;min-height:560px;overflow:hidden;padding:24px clamp(18px,4vw,56px) 76px;position:relative}.installer-hero:after{background:var(--surface);bottom:-1px;clip-path:polygon(0 61%,100% 61%,100% 100%,0 100%);content:"";height:clamp(70px,10vw,132px);left:0;position:absolute;right:0;z-index:1}.installer-header,.hero-inner,.installer-footer-inner{margin-inline:auto;max-width:1140px;position:relative;z-index:2}.installer-header{align-items:center;display:flex;justify-content:flex-start;min-height:56px}.installer-header img{height:auto;width:200px}.hero-inner{padding-top:clamp(64px,9vh,104px)}.hero-copy{max-width:780px;width:min(100%,780px)}.hero-copy h1{font-size:clamp(48px,8vw,82px);font-weight:750;letter-spacing:0;line-height:1.05;margin:0;text-wrap:balance}.hero-copy>p{font-size:clamp(19px,2.1vw,25px);font-weight:400;margin:22px 0 0;max-width:700px}.installer-main{background:var(--surface);flex:1 0 auto}.installer-section{padding:clamp(42px,6vw,70px) clamp(18px,4vw,56px) clamp(68px,10vw,112px)}.installer-section-inner{margin-inline:auto;max-width:1140px}.installer-footer{background:var(--footer-bg);color:var(--footer-text);flex-shrink:0;padding:24px clamp(18px,4vw,56px)}.installer-footer-inner{align-items:center;display:flex;gap:24px;justify-content:space-between}.installer-footer p{align-items:center;display:inline-flex;gap:6px;margin:0}.installer-footer p svg{fill:none;flex:0 0 auto;height:16px;stroke:currentColor;stroke-width:2;width:16px}.x-footer-link{align-items:center;color:var(--footer-link-hover);display:inline-flex;height:42px;justify-content:center;width:42px}.x-footer-link svg{fill:currentColor;height:21px;width:21px}@media(max-width:940px){.installer-hero:not(.gate-hero){min-height:0}.installer-header img{width:168px}.hero-inner{padding-top:30px;text-align:center}.hero-copy{margin-inline:auto}.hero-copy>p{font-size:18px;margin-left:auto;margin-right:auto;margin-top:16px;max-width:18rem;text-wrap:balance}.hero-copy h1{font-size:36px;margin-left:auto;margin-right:auto;max-width:8.5em}.installer-footer-inner{gap:12px;flex-wrap:wrap;justify-content:center;text-align:center}}@media(max-width:620px){.installer-hero{padding-bottom:66px}.installer-header{justify-content:center;text-align:center}.installer-header img{width:168px}.hero-inner{max-width:calc(100vw - 36px);width:100%}}.dialog h2{letter-spacing:-.035em}.primary-button{align-items:center;background:var(--ink);border:0;border-radius:13px;color:var(--surface);display:inline-flex;font-weight:740;gap:9px;justify-content:center;min-height:50px;padding:0 19px;transition:.16s ease}.primary-button:hover:not(:disabled){transform:translateY(-1px)}.primary-button svg{height:18px;width:18px}.secondary-button{align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:13px;display:inline-flex;font-weight:740;justify-content:center;min-height:50px;padding:0 19px;transition:.16s ease}.secondary-button:hover:not(:disabled){background:var(--surface-soft)}.danger-button{align-items:center;background:var(--danger);border:0;border-radius:13px;color:#fff;display:inline-flex;font-weight:740;justify-content:center;min-height:50px;padding:0 19px;transition:.16s ease}.danger-button:hover:not(:disabled){filter:brightness(.92);transform:translateY(-1px)}.error-banner{background:color-mix(in srgb,var(--danger) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--danger) 28%,transparent);border-radius:13px;color:var(--danger);display:grid;font-size:13px;gap:4px;margin-top:24px;padding:14px 16px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.file-picker{align-items:center;display:grid;gap:18px;grid-template-columns:minmax(150px,.75fr) minmax(230px,1.25fr);margin-top:30px}.field-label{display:block;font-size:14px;font-weight:760}.field-hint{color:var(--muted);display:block;font-size:12px;line-height:1.45;margin:5px 0 0}.file-picker-control{align-items:center;background:var(--surface-soft);border:1px dashed color-mix(in srgb,var(--muted) 45%,transparent);border-radius:14px;cursor:pointer;display:flex;gap:13px;min-height:72px;padding:13px 16px;transition:.16s ease}.file-picker-control:hover{border-color:var(--brand-blue);transform:translateY(-1px)}.file-picker-control.has-file{border-color:color-mix(in srgb,var(--success) 52%,transparent);border-style:solid}.file-picker-control>svg{color:var(--brand-blue);height:23px;width:23px}.file-picker-control.has-file>svg{color:var(--success)}.file-picker-copy{min-width:0}.file-picker-copy strong,.file-picker-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-picker-copy strong{font-size:13px}.file-picker-copy small{color:var(--muted);font-size:11px;margin-top:4px}.form-stack{display:grid;gap:22px}.form-stack>.file-picker{margin-top:0}.field-grid{display:grid;gap:18px;grid-template-columns:1fr 1fr}.text-field input,.code-input{background:var(--surface);border:1px solid var(--line);border-radius:12px;display:block;margin-top:9px;outline:none;padding:13px 14px;transition:.15s ease;width:100%}.text-field input:focus,.code-input:focus{border-color:var(--brand-blue);box-shadow:var(--focus)}@media(max-width:640px){.file-picker,.field-grid{grid-template-columns:1fr}}.dialog-backdrop{align-items:center;background:#090a0fb8;display:flex;inset:0;justify-content:center;padding:20px;position:fixed;z-index:20}.dialog{background:var(--surface);border-radius:22px;box-shadow:var(--shadow);max-width:420px;padding:34px;position:relative;text-align:center;width:100%}.dialog-close{background:transparent;border:0;padding:7px;position:absolute;right:12px;top:12px}.dialog-close svg{height:20px;width:20px}.dialog h2{font-size:22px;font-weight:750;letter-spacing:0;line-height:1.2;margin:15px 0 8px}.dialog>p{color:var(--muted);font-size:16px;line-height:1.55}.dialog form{display:grid;gap:14px;margin-top:22px}.code-input{font-size:26px;font-variant-numeric:tabular-nums;letter-spacing:.4em;text-align:center}.certificate-replacement-dialog{max-width:520px;text-align:left}.certificate-list{border:0;display:grid;gap:10px;margin:0;max-height:min(300px,38vh);overflow-y:auto;padding:0}.certificate-option{align-items:center;background:var(--surface-soft);border:1px solid var(--line);border-radius:13px;cursor:pointer;display:flex;gap:12px;padding:13px 14px}.certificate-option:has(input:checked){border-color:var(--brand-blue);box-shadow:var(--focus)}.certificate-option input{accent-color:var(--brand-blue);flex:0 0 auto}.certificate-option strong,.certificate-option small{display:block}.certificate-option strong{font-size:14px}.certificate-option small{color:var(--muted);font-size:12px;margin-top:3px}.certificate-replacement-warning{color:var(--danger);font-size:13px;line-height:1.5;margin:0}.identity-recovery-dialog,.identity-passphrase-dialog{max-width:500px;text-align:left}.generated-identity-passphrase{background:var(--surface-soft);border:1px solid var(--line);border-radius:12px;display:block;font-size:17px;font-weight:750;letter-spacing:.03em;margin:22px 0;overflow-wrap:anywhere;padding:16px;text-align:center;user-select:all}.identity-passphrase-saved{align-items:flex-start;display:flex;font-size:13px;gap:10px;line-height:1.45;margin-bottom:18px}.identity-passphrase-saved input{accent-color:var(--brand-blue);margin-top:2px}.identity-passphrase-field{display:grid;font-size:14px;font-weight:700;gap:7px}.identity-recovery-actions{grid-template-columns:1fr 1fr}.identity-replacement-explanation{display:grid;gap:12px;margin:20px 0 24px}.identity-replacement-explanation p{color:var(--danger);font-size:14px;line-height:1.55;margin:0}.dialog-actions{display:grid;gap:10px;grid-template-columns:minmax(110px,.45fr) minmax(220px,1fr)}@media(max-width:520px){.dialog-actions{grid-template-columns:1fr}}.connection-step{align-items:center;animation:connection-step-enter .18s ease-out;display:flex;flex-direction:column;justify-content:center;min-height:420px;text-align:center}.connection-step>svg{color:var(--ink);height:54px;width:54px}.connection-step h2{font-size:clamp(34px,5vw,54px);font-weight:740;letter-spacing:0;line-height:1.05;margin:24px 0 0;max-width:620px;text-wrap:balance}.connection-step p{color:var(--muted);font-size:clamp(17px,2vw,20px);line-height:1.5;margin:18px 0 0;max-width:560px}.connection-step .connection-developer-mode-guidance{font-size:15px}.connection-step .connection-guidance{font-size:15px;margin-top:24px}.connection-step-button{margin-top:30px;min-width:180px}.connection-guidance+.connection-step-button{margin-top:12px}.connected-step{animation:connection-step-enter .18s ease-out;min-height:420px;padding-top:64px;position:relative}.connected-step-header{align-items:center;display:flex;justify-content:space-between;left:0;position:absolute;right:0;top:0}.step-back-button{align-items:center;background:transparent;border:0;color:var(--muted);display:inline-flex;font-size:13px;font-weight:740;gap:7px;padding:8px 0}.step-back-button:hover{color:var(--ink)}.step-back-button:disabled{cursor:not-allowed;opacity:.5}.step-back-button svg{height:17px;width:17px}.connected-device-label{color:var(--muted);font-size:13px;font-weight:700;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.connected-step-content{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:356px}.connected-step-content>h2{font-size:clamp(34px,5vw,54px);font-weight:740;letter-spacing:0;line-height:1.05;margin:0}.connected-step-content>p{color:var(--muted);font-size:clamp(17px,2vw,20px);line-height:1.5;margin:18px 0 0}.combined-signing-step{align-items:center;display:flex;flex-direction:column;width:min(100%,780px)}.signing-step-title{align-self:stretch;font-size:clamp(34px,5vw,54px);font-weight:740;letter-spacing:0;line-height:1.05;margin:0 0 32px;text-align:left}.signing-method-divider{border-top:1px solid var(--line);height:0;margin:52px 0;text-align:center;width:100%}.signing-method-divider span{background:var(--surface);color:var(--muted);font-size:13px;font-weight:800;letter-spacing:.08em;padding:0 16px;position:relative;top:-.72em}.certificate-step-form{width:100%}.certificate-password-field>.field-hint{margin-top:8px}.certificate-validation-error{line-height:1.5}.certificate-continue-button{margin-top:24px;min-width:180px}.apple-account-step-form{width:100%}.apple-account-intro{color:var(--text);font-size:clamp(17px,1.8vw,20px);line-height:1.5;margin:0 0 28px;text-align:left}.apple-account-privacy-note{display:block}.apple-authentication-error{line-height:1.5}.apple-account-continue-button{margin-top:24px;min-width:180px}.app-store-subtitle{line-height:1.5;max-width:620px;text-align:center}.app-store-qr-link{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 32px #15182214;display:block;margin-top:28px;overflow:hidden;padding:10px}.app-store-qr-link svg{display:block;height:220px;width:220px}.app-store-error{line-height:1.5;max-width:620px;text-align:left;width:100%}.app-store-continue-button{margin-top:24px;min-width:180px}.installation-step-status{align-items:center;display:flex;flex-direction:column;max-width:620px;text-align:center;width:100%}.post-install-status{max-width:720px;text-align:center}.post-install-status h2{font-size:clamp(34px,5vw,54px);font-weight:740;letter-spacing:0;line-height:1.05;margin:0}.post-install-status p{font-size:clamp(17px,2vw,20px);line-height:1.5;margin:18px 0 0}.post-install-trust-guidance,.post-install-validity{color:var(--muted)}.installation-step-status>svg{color:var(--brand-blue);height:48px;width:48px}.installation-step-status h2{font-size:clamp(34px,5vw,54px);font-weight:740;letter-spacing:0;line-height:1.05;margin:20px 0 0}.installation-step-status p{color:var(--muted);font-size:clamp(17px,2vw,20px);line-height:1.5;margin:18px 0 0}.installation-step-error{margin-top:20px;text-align:left;width:100%}.installation-retry-button{margin-top:18px;min-width:180px}@keyframes connection-step-enter{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.connection-step,.connected-step{animation:none}}@media(max-width:940px){.connection-step h2,.connected-step-content>h2,.signing-step-title,.installation-step-status h2,.post-install-status h2{font-size:32px}}.gate-shell{display:flex;flex-direction:column}.gate-hero{flex:1;min-height:calc(100vh - 80px)}.gate-hero:after{display:none}.gate-card{background:var(--surface);border:1px solid rgba(255,255,255,.28);border-radius:24px;box-shadow:var(--shadow);color:var(--ink);margin:110px auto 20px;max-width:650px;padding:clamp(30px,6vw,56px);text-align:center}.gate-card>svg{color:var(--brand-red);height:54px;margin:0 auto 24px;width:54px}.gate-card h1{font-size:clamp(34px,6vw,54px);font-weight:740;letter-spacing:0;line-height:1.05;margin:0 0 18px}.gate-card>p:last-child{color:var(--muted);font-size:17px;line-height:1.5;margin:0}@media(max-width:640px){.gate-hero{min-height:calc(100vh - 120px);padding-bottom:40px}.gate-card{margin-top:72px;padding:34px 24px}}
