:root{--canvas:#f4f6f5;--surface:#fff;--ink:#172c28;--muted:#52665f;--accent:#12624e;--soft:#e5f2ec;--border:#d7e1dc;--warning:#795500;--error:#a52c3a;--focus:#315fc4}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font:16px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer;background:var(--surface);border:1px solid #71867d;border-radius:8px;min-height:44px;padding:9px 14px;color:var(--ink);font-weight:600}button:hover{background:var(--soft)}button:disabled{opacity:.6;cursor:default}.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.primary:hover{background:#174b3e}.quiet{border:0;background:none}.danger{color:var(--error)}input,select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #71867d;border-radius:8px;background:var(--surface);color:var(--ink)}label{display:block;font-weight:600;font-size:14px;margin:14px 0 6px}a{color:var(--accent)}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.skip{position:fixed;top:-100px;left:16px;z-index:20;background:var(--surface);padding:10px}.skip:focus{top:16px}h1{font-size:30px;line-height:1.22;letter-spacing:-.7px;margin:0 0 8px}h2{font-size:20px;margin:0 0 14px}h3{font-size:17px;margin:0 0 6px}p{margin:7px 0;color:var(--muted)}small{color:var(--muted)}.auth{max-width:480px;margin:9vh auto;background:var(--surface);border:1px solid var(--border);padding:36px;border-radius:18px}.brand{font-size:24px;font-weight:750;letter-spacing:-.8px;margin-bottom:36px}.brandmark{display:inline-grid;place-items:center;width:32px;height:32px;background:var(--accent);color:#fff;border-radius:9px;margin-right:8px;font:700 22px monospace}.auth .primary,.auth form button{width:100%;margin-top:22px}.auth p{margin:10px 0}.layout{min-height:100vh;display:grid;grid-template-columns:230px minmax(0,1fr)}aside{padding:24px 14px;border-right:1px solid var(--border);background:var(--surface);display:flex;flex-direction:column}.orgswitch{width:100%;margin:12px 0 20px;text-align:left}.nav{display:grid;gap:4px}.nav button{width:100%;text-align:left;border:0;padding:12px 14px}.nav .active{background:var(--soft);color:var(--accent)}.sidefoot{margin-top:auto;padding:12px;font-size:13px;color:var(--muted)}.workspace{min-width:0}.top{min-height:70px;padding:12px 32px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--border);background:var(--surface)}.top .small{font-size:13px;color:var(--muted)}main{max-width:1280px;margin:auto;padding:36px 32px 100px}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px}.actions{display:flex;gap:8px;flex-wrap:wrap}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px;margin-bottom:14px}.card p{font-size:14px}.row{display:flex;justify-content:space-between;align-items:center;gap:16px}.rows{display:grid;gap:10px}.code{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.digits{font:650 24px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1.5px;direction:ltr;white-space:nowrap}.expiry{font-size:12px;color:var(--muted);text-align:center}.account{min-width:0}.account strong{display:block}.account small{overflow-wrap:anywhere}.badge{display:inline-block;background:var(--soft);color:var(--accent);font-size:12px;font-weight:650;padding:4px 9px;border-radius:6px}.muted{color:var(--muted)}.filters{display:flex;gap:6px;margin:12px 0 20px;flex-wrap:wrap}.filters button{font-size:14px;border:0}.filters .active{background:var(--soft);color:var(--accent)}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.note{background:var(--soft);padding:16px;border-radius:10px;margin:16px 0;color:var(--ink)}.groupcard{display:flex;justify-content:space-between;gap:12px;align-items:center}.inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.stack{display:grid;gap:12px}.table{overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:12px}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:15px;border-bottom:1px solid var(--border);vertical-align:middle}th{background:var(--canvas);font-size:13px;color:var(--muted)}tr:last-child td{border:0}#message{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--surface);padding:12px 20px;border-radius:9px;max-width:90%;z-index:10}#message:empty{display:none}dialog{width:min(560px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--border);border-radius:16px;padding:26px;background:var(--surface);color:var(--ink)}dialog::backdrop{background:#0b201b99}.dialogfoot{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.offline{text-align:center;padding:60px 15px}.bottom{display:none}.hidden{display:none!important}.last{margin-top:20px}.nowrap{white-space:nowrap}.pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--canvas);padding:14px;border-radius:8px}.warning{color:var(--warning)}.error{color:var(--error)}.log{padding:14px 0;border-bottom:1px solid var(--border)}.log:last-child{border:0}
@media(max-width:767px){.layout{display:block}aside{display:none}.top{padding:12px 16px}.top .small{display:none}main{padding:24px 16px 100px}.pagehead{align-items:flex-start}.pagehead h1{font-size:26px}.grid{grid-template-columns:1fr}.row{align-items:flex-start;flex-direction:column}.code{width:100%;justify-content:space-between;border-top:1px solid var(--border);padding-top:12px}.groupcard{align-items:flex-start;flex-wrap:wrap}.bottom{display:flex;position:fixed;bottom:0;left:0;right:0;justify-content:space-around;background:var(--surface);border-top:1px solid var(--border);padding:8px 4px calc(8px + env(safe-area-inset-bottom));z-index:5}.bottom button{border:0;min-width:68px;font-size:12px}.bottom .active{background:var(--soft);color:var(--accent)}.auth{margin:16px;padding:24px}.table{border:0;background:transparent}table,tbody,tr,td{display:block}thead{display:none}tr{border:1px solid var(--border);border-radius:10px;background:var(--surface);margin-bottom:10px;padding:8px 16px}td{padding:7px 0;border:0}td[data-label]:before{content:attr(data-label) ': ';font-size:12px;color:var(--muted)}#message{bottom:94px;width:calc(100% - 32px)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.qr-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.qr-actions button{flex:1 1 130px}.qr-drop{padding:22px 16px;border:2px dashed #71867d;border-radius:10px;background:var(--canvas);text-align:center;color:var(--muted)}.qr-drop.dragging,.qr-drop:focus-visible{border-color:var(--accent);background:var(--soft)}.scan-preview:not(:empty){display:grid;gap:10px;margin:16px 0}.scan-preview video{display:block;max-width:100%;max-height:260px;border-radius:10px;background:#172c28}.scan-preview button{justify-self:start}
input[type=checkbox]{width:auto;min-height:0;vertical-align:middle;accent-color:var(--accent)}

.terms-consent{display:flex;align-items:flex-start;gap:10px;font-weight:400;line-height:1.45}.terms-consent input{margin-top:5px;flex:none}.terms-consent a{font-weight:600}


.brand{display:flex;align-items:center}.brand-logo{display:block;width:210px;max-width:100%;height:auto}.auth .brand-logo{width:210px}aside .brand-logo{width:190px}
/* Platform management console */
.platform-console{max-width:1400px;margin:auto}.platform-eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.15em;color:#246584;margin:0 0 .4rem}.platform-tabs{display:flex;gap:.45rem;overflow-x:auto;padding:.35rem 0 1rem;margin-bottom:1rem;border-bottom:1px solid #d9e2e7}.platform-tabs button{white-space:nowrap;border:0;background:transparent;border-radius:8px;padding:.65rem .9rem;color:#425668;font-weight:650}.platform-tabs button.active{color:#135e77;background:#def1f3}.platform-content{min-width:0}.platform-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1rem}.platform-section-title h2{margin:0}.platform-section-title small,.platform-bar p{color:#516575}.platform-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:1rem;margin:1rem 0 1.5rem}.platform-stat{display:flex;flex-direction:column;gap:.35rem;min-height:130px}.platform-stat p{margin:0;color:#516575}.platform-stat strong{font-size:clamp(1.4rem,3vw,2rem);line-height:1.15;overflow-wrap:anywhere}.platform-stat small{color:#516575}.platform-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1rem;flex-wrap:wrap}.platform-bar p{margin:0;max-width:65ch}.platform-table{overflow-x:auto;border:1px solid #d9e2e7;border-radius:12px;background:#fff;margin-bottom:1rem}.platform-table table{width:100%;border-collapse:collapse;min-width:680px}.platform-table th,.platform-table td{text-align:left;padding:.85rem .9rem;border-bottom:1px solid #e7edef;vertical-align:top}.platform-table th{background:#f5f8f9;color:#465e69;font-size:.82rem}.platform-table tr:last-child td{border-bottom:0}.platform-table td button{margin:.1rem .2rem .1rem 0}.platform-table small.platform-block,.platform-member small{display:block;color:#627481;margin-top:.25rem}.platform-empty{margin:1rem 0}.platform-pagination{display:flex;gap:.75rem;align-items:center;justify-content:flex-end}.platform-search{max-width:520px;margin:0 0 1rem}.platform-search label{display:block;margin-bottom:.4rem}.platform-search .inline{display:flex;gap:.5rem}.platform-search input{flex:1;min-width:0}.platform-member{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 0;border-bottom:1px solid #d9e2e7}.platform-badge.suspended{background:#fff0d7;color:#7a4200}.platform-badge.published,.platform-badge.active{background:#e2f4e9;color:#225c36}.platform-content>h2{margin-top:2rem}@media(max-width:700px){.platform-section-title{display:block}.platform-section-title small{display:block;margin-top:.4rem}.platform-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.platform-table table{min-width:620px}.platform-tabs{margin-right:-1rem}.platform-bar{align-items:flex-start}}

.signup-plans{border:0;padding:0;margin:22px 0 18px;display:grid;gap:9px}.signup-plans legend{font-size:14px;font-weight:700;margin-bottom:7px}.signup-plan{display:flex;align-items:start;gap:10px;border:2px solid var(--accent);border-radius:10px;padding:14px!important;margin:0!important;cursor:pointer}.signup-plan input{flex:none;margin:4px 0 0}.signup-plan strong,.signup-plan small{display:block}.signup-plan strong{font-size:16px}.signup-plan small{font-size:13px;font-weight:400;margin-top:3px}.signup-plan .plan-price{font-size:14px;white-space:nowrap}.signup-plan.coming{border:1px solid var(--border);background:var(--canvas);color:var(--muted);cursor:default;padding-left:40px!important}.plan-soon{font-size:13px;margin-left:6px;font-weight:600}

.code-controls{display:grid;grid-template-columns:minmax(180px,2fr) repeat(2,minmax(150px,1fr));gap:8px 14px;align-items:end;margin-bottom:18px}.code-controls label{margin:0;grid-row:1}.code-controls input,.code-controls select{grid-row:2}.account:has(.platform-icon),.account:has(.platform-initial){display:flex;align-items:center;gap:14px}.platform-icon,.platform-initial{flex:none;width:42px;height:42px;border-radius:50%;padding:9px;background:#edf2f0}.platform-initial{display:grid;place-items:center;background:#d5ede3;color:#175641;font-weight:700;font-size:20px;padding:0}.identity-image{width:64px;height:64px;object-fit:cover;border-radius:12px;margin-right:12px}.import-item{display:flex;align-items:center;gap:8px;padding:8px;border-bottom:1px solid var(--border)}.import-item input{width:20px;min-height:20px;flex:none}.confirmation-dialog{z-index:100;max-width:440px}.confirmation-dialog::backdrop{background:rgba(8,28,22,.75)}.confirmation-dialog .card{margin:0}.confirmation-dialog form{display:grid;gap:12px}@media(max-width:700px){.code-controls{grid-template-columns:1fr}.code-controls label,.code-controls input,.code-controls select{grid-row:auto}.account:has(.platform-icon),.account:has(.platform-initial){gap:8px}.platform-icon,.platform-initial{width:34px;height:34px}}

/* Directory and identity */
.directory-section{margin-bottom:1rem}.directory-section .section-heading,.team-detail .section-heading,.profile-layout .section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.directory-section .section-heading h2,.team-detail .section-heading h2{margin:0}.directory-section .section-heading p,.team-detail .section-heading p{margin:.3rem 0 0;color:#53685f}.directory-section .grid{margin:0}.team-layout{display:grid;grid-template-columns:minmax(210px,280px) minmax(0,1fr);gap:1rem;align-items:start}.team-list{display:grid;gap:.5rem}.team-list-item{text-align:left;display:grid;gap:.25rem;width:100%;padding:.9rem;border:1px solid transparent;background:#f5f8f6;border-radius:10px;min-height:60px}.team-list-item.selected{border-color:#397b5c;background:#e7f5ed}.team-list-item small{color:#567066}.team-detail{min-width:0}.team-detail .filters{margin-bottom:1.25rem}.team-subhead{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:1.5rem 0 .5rem}.team-subhead h3{margin:0}.team-person{display:flex;align-items:center;gap:.8rem;border-top:1px solid var(--border);padding:.75rem 0;min-height:58px}.team-person strong{flex:1;min-width:0;overflow-wrap:anywhere}.team-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e4f1e9;color:#225a40;flex:none}.agent-avatar{background:#e7ecf7;color:#344f7b}.empty-copy{color:#586c63}.profile-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:1rem;align-items:start}.profile-hero,.org-profile-top{display:flex;align-items:center;gap:1rem}.profile-hero{margin-bottom:1.5rem}.profile-hero h2,.org-profile h3{margin:0}.profile-hero p,.org-profile p{margin:.3rem 0}.profile-avatar{width:72px;height:72px;border-radius:18px;object-fit:cover;flex:none}.profile-placeholder{display:grid;place-items:center;background:#e3efe8;color:#225a40;font-weight:700;font-size:1.6rem}.org-profile{border-top:1px solid var(--border);padding:1.1rem 0}.org-profile .identity-image{flex:none;margin:0}.access-person{border-top:1px solid var(--border);padding:.75rem 0}.access-person small{display:block;color:#546b60;margin-top:.2rem}.access-person p{margin:.4rem 0 0}.platform-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.4rem;overflow:visible;margin-right:0!important}.platform-tabs button{white-space:normal;text-align:left;min-height:44px}.platform-section-picker{display:none}.platform-icon{padding:3px;object-fit:contain}@media(max-width:750px){.team-layout,.profile-layout{grid-template-columns:1fr}.team-list{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.team-list-item{min-width:165px;scroll-snap-align:start}.platform-tabs{display:none}.platform-section-picker{display:grid;gap:.4rem;margin-bottom:1rem}.platform-section-picker select{min-height:44px}.platform-icon{padding:2px}}

.profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1rem}.profile-fields label{align-self:end}.profile-fields input{grid-row:auto}.profile-layout form>h3{margin-top:1.5rem}.profile-layout form>.primary{margin-top:1.5rem}.profile-facts{display:grid;grid-template-columns:120px minmax(0,1fr);gap:.45rem 1rem;font-size:.88rem;margin:1.25rem 0}.profile-facts dt{color:var(--muted)}.profile-facts dd{margin:0;overflow-wrap:anywhere}.owner-indicator{display:inline-flex;width:22px;height:22px;vertical-align:middle;color:var(--accent);margin-top:2px}.owner-indicator svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}@media(max-width:580px){.profile-fields{grid-template-columns:1fr}.profile-facts{grid-template-columns:100px minmax(0,1fr)}}

.auth .profile-layout{grid-template-columns:1fr}.directory-section .table{overflow-x:auto}.directory-section table{min-width:700px}.directory-section td .actions{flex-wrap:nowrap}.directory-section td .actions button{white-space:nowrap}#agentScopes[hidden]{display:none}

.help-hint{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 18px;margin:0 0 18px;background:#eff5ed;border:1px solid #d3e4ce;border-radius:11px;font-size:14px}.help-hint a,.onboarding>a,.help-search>a{color:#235750;font-weight:750}.help-hint a:hover,.onboarding>a:hover,.help-search>a:hover{text-decoration:underline}.onboarding{margin:0 0 20px;background:linear-gradient(120deg,#ecf5e9,#f7faf4);border-color:#cddfc8}.onboarding-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.onboarding-heading small{color:#51784e;font-weight:800;letter-spacing:.11em}.onboarding-heading h2{margin:7px 0 8px}.onboarding-heading p{margin:0}.onboarding ol{list-style:none;margin:20px 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.onboarding li{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:9px;background:white;border:1px solid #dce9d8}.onboarding li span{color:#397749;font-size:20px}.onboarding li button{border:0;background:none;padding:0;color:#193b38;text-align:left;font-weight:700;text-decoration:underline;text-underline-offset:3px}.help-search{margin-bottom:18px}.help-search label{display:block;font-weight:750;margin-bottom:9px}.help-search input{width:100%;max-width:480px}.help-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}.help-topic{display:flex;align-items:center;gap:12px;background:#f6f8f5;border:1px solid #dce6db;border-radius:9px;padding:17px;color:inherit;text-decoration:none}.help-topic strong{min-width:115px}.help-topic span:nth-child(2){color:#526373;font-size:13px;flex:1}.help-topic span:last-child{color:#296157}.help-topic:hover{border-color:#71a184}.help-topic[hidden],#helpEmpty[hidden]{display:none}.help-start{max-width:620px}@media(max-width:800px){.onboarding ol,.help-results{grid-template-columns:1fr}.onboarding-heading{flex-wrap:wrap}.help-topic{align-items:start}.help-topic strong{min-width:90px}}

/* Keep signup plan controls compact even though general form inputs fill the row. */
.signup-plans{width:100%;min-width:0}
.signup-plan{width:100%;min-width:0;align-items:center}
.signup-plan input[type="radio"]{appearance:auto;width:20px;height:20px;min-width:20px;min-height:20px;max-width:20px;padding:0;margin:0;flex:0 0 20px;accent-color:var(--accent)}
.signup-plan>span{flex:1;min-width:0;overflow-wrap:anywhere}
.signup-plan.coming{padding-left:44px!important}

/* A focused authenticator view on narrow screens. Desktop retains its management controls. */
.mobile-codes{display:none}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:767px){
 .desktop-codes{display:none}
 .mobile-codes{display:block;margin:-9px -16px 0}
 .mobile-codes-head{display:flex;align-items:center;justify-content:space-between;padding:4px 20px 14px}
 .mobile-codes-head h1{font-size:29px;letter-spacing:-.04em;margin:0}
 .mobile-add-code{display:grid;place-items:center;width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:var(--accent);color:white;font-size:29px;font-weight:400;line-height:1}
 .mobile-add-code:hover{background:#174b3e}
 .mobile-codes #mobileSearch{display:block;width:calc(100% - 40px);margin:0 20px 16px;padding:12px 15px;border:1px solid var(--border);background:#f7faf8;border-radius:12px;font-size:16px}
 .mobile-scopes{display:flex;gap:7px;overflow:auto;scrollbar-width:none;padding:0 20px 13px;scroll-padding:20px}
 .mobile-scopes::-webkit-scrollbar{display:none}
 .mobile-scopes button{white-space:nowrap;flex:none;border:1px solid var(--border);border-radius:22px;min-height:38px;padding:6px 15px;font-size:13px;background:var(--surface)}
 .mobile-scopes button.selected{background:var(--accent);border-color:var(--accent);color:#fff}
 .mobile-extra-filters{border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:13px}
 .mobile-extra-filters summary{display:block;width:max-content;min-height:38px;padding:9px 20px;cursor:pointer;font-weight:700;color:var(--muted)}
 .mobile-extra-filters summary::marker{content:''}
 .mobile-extra-filters summary:after{content:'⌄';margin-left:7px}
 .mobile-extra-filters[open] summary:after{content:'⌃'}
 .mobile-filter-body{padding:0 20px 15px;max-width:460px}
 .mobile-filter-body label{margin:8px 0 5px}
 .mobile-filter-body select{min-height:44px}
 .mobile-state-controls{display:flex;gap:8px;margin-top:13px;flex-wrap:wrap}
 .mobile-state-controls button{font-size:13px;min-height:38px}
 .mobile-state-controls button[aria-pressed="true"]{background:var(--soft);border-color:var(--accent);color:var(--accent)}
 .mobile-code-list{background:var(--surface)}
 .mobile-code-item{padding:9px 20px;border-bottom:1px solid var(--border)}
 .mobile-code-item[hidden]{display:none}
 .mobile-account{display:flex;align-items:center;gap:11px;min-width:0}
 .mobile-account .platform-icon,.mobile-account .platform-initial{width:36px;height:36px}
 .mobile-account>div{flex:1;min-width:0}
 .mobile-account strong,.mobile-account small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .mobile-account strong{font-size:15px;line-height:1.3}
 .mobile-account small{font-size:12px;color:var(--muted)}
 .mobile-account>button{border:0;background:transparent;min-width:44px;min-height:44px;padding:0;font-size:23px;line-height:1}
 .mobile-code-value{display:flex;align-items:center;gap:12px;margin:0 0 0 47px}
 .mobile-code-value>button:first-child{display:flex;flex:1;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;min-height:50px;padding:0;border:0;background:transparent;text-align:left}
 .mobile-code-value .digits{font-size:clamp(23px,7vw,31px);letter-spacing:2px;color:var(--ink)}
 .mobile-code-value .expiry{font-size:11px;text-align:left;color:var(--muted)}
 .mobile-copy{flex:none;min-height:40px;padding:7px 12px;border-color:var(--border);font-size:13px}
 .mobile-codes-empty,.mobile-search-empty{padding:24px 20px;color:var(--muted)}
 .mobile-codes-empty button{margin-top:10px}
 .mobile-codes>.onboarding{margin:18px 16px 0}
}
@media(max-width:767px){body:has(.bottom) .top .inline{display:none}.bottom{justify-content:center;gap:10px}.bottom button{min-width:96px;flex:1;max-width:190px}}

.install-banner{position:fixed;right:18px;bottom:18px;z-index:8;display:flex;align-items:center;gap:14px;width:min(440px,calc(100vw - 32px));padding:13px 14px;background:var(--surface);border:1px solid #b9d2c3;border-radius:14px;box-shadow:0 12px 34px #153c2c2e}
.import-dialog{min-width:0}.import-dialog .field-hint{font-size:13px;margin:0 0 8px}.import-dialog textarea{display:block;width:100%;min-height:94px;resize:vertical;padding:11px 12px;border:1px solid #71867d;border-radius:8px;background:var(--surface);color:var(--ink);font:inherit}.import-dialog .import-item{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:6px 12px;padding:14px 0}.import-dialog .import-item:first-child,.import-dialog .import-item:last-child{grid-column:1/-1}.import-dialog .import-item>label:first-child,.import-dialog .import-item>small{grid-column:1/-1}.import-dialog .import-item label{margin:0}.import-dialog .import-item input:not([type="checkbox"]){width:100%;min-height:44px}.import-dialog #importStatus{margin:8px 0 18px;font-size:13px}.import-dialog #importStatus.error{color:var(--error)}.import-dialog #importReview{margin:22px 0 12px}.import-dialog input[type="file"]{height:auto;min-height:44px;max-width:100%}@media(max-width:550px){.import-dialog .import-item{grid-template-columns:1fr}.import-dialog .import-item>label,.import-dialog .import-item>small{grid-column:1/-1}.import-dialog .dialogfoot{flex-wrap:wrap}.import-dialog .dialogfoot button{flex:1}}

.import-dialog [hidden]{display:none!important}.import-dialog .import-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.import-heading span{font-size:12px;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.06em}.import-heading .quiet{font-size:24px;padding:3px;width:40px;min-height:40px}.import-dialog h2{margin:0 0 12px}.import-dialog #importCollect>p{font-size:14px;line-height:1.5}.import-methods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;background:var(--canvas);border-radius:11px;margin:20px 0}.import-methods button{border:0;background:transparent;min-height:40px;padding:8px 4px;font-size:13px;border-radius:8px}.import-methods button[aria-pressed="true"]{background:var(--surface);color:var(--accent);box-shadow:0 1px 5px #172c281a}.import-upload{display:grid;place-items:center;gap:5px;text-align:center;border:2px dashed #8ca79b;border-radius:13px;padding:24px 18px;min-height:150px;margin:0;cursor:pointer;background:var(--canvas)}.import-upload>span{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--soft);color:var(--accent);font-size:23px}.import-upload small{max-width:340px;font-weight:400;font-size:12px}.import-upload:hover,.import-upload.dragging,.import-upload:focus-within{border-color:var(--accent);background:var(--soft)}.import-scan,.import-next{width:100%;margin-top:12px}.import-dialog [data-import-panel] > p{font-size:13px;margin-bottom:12px}.import-progress{margin:20px 0 12px;padding:14px;background:var(--soft);border-radius:10px}.import-progress strong{display:block;font-size:14px}.import-progress #importStatus{margin:4px 0 0;font-size:12px}.import-dialog #importReview{margin:0 0 20px}.import-review-summary{display:grid;gap:3px;margin:16px 0}.import-review-summary strong{font-size:17px}.import-review-summary span{font-size:12px;color:var(--muted)}.import-select-all{display:flex;align-items:center;gap:10px;font-size:13px;margin:0 0 12px;padding:0 4px}.import-select-all input,.import-account-choice input{width:18px;height:18px;min-height:18px;flex:none}.import-accounts{display:grid;gap:10px;max-height:48dvh;overflow:auto}.import-account{border:1px solid var(--border);border-radius:11px;padding:14px}.import-account-choice{display:flex;align-items:center;gap:10px;margin:0}.import-account-choice span{min-width:0}.import-account-choice strong,.import-account-choice small{display:block;overflow-wrap:anywhere}.import-account-choice small,.import-account>small{font-weight:400;color:var(--muted);font-size:12px}.import-account-fields{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;margin:12px 0 8px}.import-account-fields label{margin:0;font-size:12px;color:var(--muted)}.import-account-fields input{grid-row:2;min-width:0}.import-foot{display:flex;gap:8px;margin-top:20px}.import-foot button{flex:1}.import-dialog #importFormStatus{font-size:13px;margin:12px 0}.import-dialog #importFormStatus[hidden]{display:none}@media(max-width:550px){.import-methods button{font-size:12px}.import-account-fields{grid-template-columns:1fr}.import-account-fields input{grid-row:auto}.import-foot{flex-direction:column-reverse}.import-foot button{width:100%}}

/* Adding a code starts with a small method chooser and reveals details after scanning. */
dialog.add-choice-dialog{width:min(340px,calc(100vw - 32px));padding:12px;border-radius:18px;box-shadow:0 18px 60px #10291e38}.add-choice-head,.add-flow-head{display:flex;align-items:center;gap:12px}.add-choice-head{justify-content:space-between;padding:6px 8px 12px}.add-choice-head h2,.add-flow-head h2{margin:0;font-size:19px}.add-choice-head .quiet{font-size:25px;line-height:1;min-width:40px;min-height:40px;padding:4px}.add-methods{display:grid;gap:2px}.add-methods button{display:grid;grid-template-columns:34px 1fr 12px;align-items:center;gap:10px;width:100%;min-height:54px;text-align:left;border:0;border-radius:10px;padding:8px 12px;font-size:14px}.method-symbol{display:grid;place-items:center;width:32px;height:32px;background:var(--soft);color:var(--accent);border-radius:9px;font-size:19px;font-weight:500}.add-methods button span:last-child{color:var(--muted);font-size:21px}.add-import-link{border:0;border-top:1px solid var(--border);border-radius:0;background:none;width:100%;text-align:left;color:var(--accent);min-height:46px;font-size:13px;padding:12px 10px;margin-top:6px}.add-flow{max-width:430px;margin:auto}.add-flow-head{margin-bottom:18px}.add-back{border:0;background:var(--canvas);font-size:23px;line-height:1;padding:4px;width:40px;min-height:40px;flex:none}.add-flow p{font-size:14px}.add-flow #addMethodIntro>p:first-child{margin-bottom:20px}.add-flow [hidden]{display:none!important}.add-method-primary,.add-save{width:100%;margin:8px 0 18px}.add-flow .qr-drop{margin:4px 0 12px;padding:25px 14px;font-size:14px}.add-flow .add-privacy{font-size:12px;margin-top:16px}.add-details h3{margin:0 0 18px}.add-details label{margin-top:16px}.add-details #setupKey{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px}.add-details .field-hint{font-size:12px;margin-top:8px}.add-flow .scan-preview video{width:100%;max-height:300px;object-fit:cover}.add-flow .scan-preview button{width:100%}@media(max-width:550px){dialog:has(.add-flow){padding:22px 18px}.add-choice-head h2,.add-flow-head h2{font-size:18px}}
.install-banner>div{min-width:0;flex:1}.install-banner strong,.install-banner span{display:block}.install-banner strong{font-size:14px}.install-banner span{font-size:12px;color:var(--muted);line-height:1.3}
.install-banner .primary{flex:none;min-height:40px}.install-banner .install-later{flex:none;min-width:32px;min-height:40px;padding:4px;font-size:21px}
body:has(input:focus) .install-banner{display:none}
@media(max-width:767px){.install-banner{left:16px;right:16px;width:auto;bottom:calc(83px + env(safe-area-inset-bottom));padding:10px;gap:8px}.install-banner .primary{min-height:38px;padding:7px 12px;font-size:13px}.install-banner .install-later{min-width:30px;min-height:38px}.layout:has(~.install-banner) main{padding-bottom:205px}}
@media(max-width:767px){.auth~.install-banner{bottom:calc(16px + env(safe-area-inset-bottom))}}

.order-handle{flex:none;min-width:38px;min-height:44px;padding:0 6px;border:0;background:transparent;color:var(--muted);font-size:23px;line-height:1;cursor:grab;touch-action:none;user-select:none}
.platform-icon-new{background:#fff;border:1px solid var(--border);border-radius:10px;padding:4px}
.order-handle:active{cursor:grabbing}
.code-chosen{background:#f5fbf8}
.code-placeholder{opacity:.35;background:var(--soft);outline:2px dashed var(--accent);outline-offset:-2px}
.code-drag-clone{background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 16px 40px #11342735;opacity:.97;pointer-events:none}
@media(max-width:767px){.mobile-account .order-handle{min-width:32px;width:32px;margin-left:-9px;font-size:21px}.mobile-account .platform-icon,.mobile-account .platform-initial{flex:none}}
