/* Website palette: warm sand, graphite and burnt orange. */
:root{
 --canvas:#f6f5f2;
 --surface:#ffffff;
 --surface-warm:#fcfaf7;
 --surface-soft:#f3ede5;
 --ink:#292622;
 --ink-soft:#4b443c;
 --muted:#756a5e;
 --accent:#ad4527;
 --accent-hover:#91371e;
 --accent-text:#955236;
 --accent-wash:#ead2c1;
 --border:#e5ddd2;
 --border-strong:#cda88d;
 --focus:#b5673e;
 --success:#46764e;
 --success-soft:#eff4eb;
 --success-border:#dce6d5;
 --danger:#ad3d32;
}
@font-face{font-family:Space;font-display:swap;src:url('/fonts/Space-Grotesk.ttf')}@font-face{font-family:DM;font-display:swap;src:url('/fonts/DM-Sans.ttf')}@font-face{font-family:Mono;font-display:swap;src:url('/fonts/JetBrains-Mono.ttf')}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font-family:DM,system-ui,sans-serif;font-size:14px;line-height:1.6}button,input{font:inherit}button,a,input{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button svg,a svg{flex-shrink:0}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}a{color:var(--accent);text-decoration:none}h1,h2,h3,.brand{font-family:Space,DM,sans-serif}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(34px,4.1vw,54px);letter-spacing:-2px;line-height:1.16;font-weight:700;margin-bottom:18px}h1 span,dialog h2 span{color:var(--accent)}h2{font-size:21px;letter-spacing:-.7px;line-height:1.35;margin:0}h3{font-size:16px;letter-spacing:-.3px;margin:0}small,.fine{font-size:11px;color:var(--muted)}.muted{color:var(--muted);line-height:1.8}.icon-library{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-weight:700;font-size:23px;letter-spacing:-.8px}.brand-mark{display:flex;align-items:center;justify-content:center;background:var(--accent);color:white;width:35px;height:35px;border-radius:11px}.brand-mark svg{width:23px;height:23px}.brand-light{color:var(--muted);font-size:17px;font-weight:500;margin-left:4px;letter-spacing:-.4px}.eyebrow,.micro-label,.sidebar-caption{font-family:Mono,monospace;font-size:9px;letter-spacing:1.8px;font-weight:400;color:var(--muted)}.eyebrow{display:flex;align-items:center;gap:8px;margin-bottom:20px}.dot{width:5px;height:5px;background:var(--accent);border-radius:50%}.button{border:1px solid transparent;border-radius:8px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:43px;font-size:12px;font-weight:500;line-height:1.4;transition:background .15s,box-shadow .15s}.button svg{width:16px;height:16px}.primary{color:white;background:var(--accent);border-color:var(--accent);box-shadow:0 3px 6px #4b321f14}.primary:hover{background:var(--accent-hover)}.secondary{background:var(--surface);border-color:var(--border);color:var(--muted)}.secondary:hover{background:var(--surface-warm);border-color:var(--border-strong)}.danger{background:var(--danger);color:white}.wide{width:100%;margin-top:20px}.text-link{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.text-link svg{width:15px;height:15px}.link-button{border:0;background:transparent;color:var(--accent);padding:5px 0;font-size:12px;font-weight:500}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;background:transparent;border-radius:7px;width:32px;height:32px;color:var(--muted);padding:6px}.icon-button:hover{background:var(--surface-soft);color:var(--accent)}.icon-button svg{width:16px;height:16px}.badge{background:var(--surface-warm);color:var(--muted);font-family:Mono,monospace;font-size:9px;letter-spacing:1.2px;padding:5px 8px;border:1px solid var(--border);border-radius:5px}.auth-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh}.auth-brand{padding:42px 55px;background:var(--surface-soft);position:relative;border-right:1px solid var(--border);overflow:hidden}.auth-story{max-width:440px;margin:75px auto 0}.auth-story h1{font-size:clamp(46px,5vw,67px);letter-spacing:-2.8px}.auth-story>p:not(.eyebrow){color:var(--muted);line-height:1.9;font-size:14px}.auth-bottom{font-size:11px;color:var(--muted);margin-top:25px}.phone-art{height:250px;position:relative;max-width:360px;margin-top:35px}.art-orbit{border:1px solid var(--border);border-radius:50%;width:245px;height:245px;position:absolute;left:45px;top:0}.art-orbit:after{content:'';position:absolute;inset:22px;border:1px dashed var(--border);border-radius:50%}.art-phone{width:125px;height:222px;background:linear-gradient(155deg,var(--surface),var(--surface-warm));border:1px solid var(--border-strong);border-radius:21px;position:absolute;top:12px;left:109px;transform:rotate(-9deg);box-shadow:0 24px 50px #4b321f12;padding:28px 15px 15px}.art-camera{position:absolute;top:9px;left:43px;border-radius:3px;background:var(--surface-soft);width:36px;height:5px}.art-app{width:35px;height:35px;background:var(--accent);border-radius:11px;color:var(--surface);display:flex;align-items:center;justify-content:center;margin:5px 0 17px}.art-line{width:58px;height:5px;background:var(--surface-soft);border-radius:3px;margin-bottom:9px}.art-line.long{width:80px}.art-box{background:var(--surface-soft);border-radius:9px;padding:9px;margin-top:15px;display:flex;gap:6px}.art-box span{width:17px;height:20px;border-radius:4px;background:var(--surface-soft)}.art-button{background:var(--accent-wash);width:85px;height:13px;border-radius:4px;margin-top:17px}.art-note{position:absolute;bottom:21px;right:0;display:flex;gap:8px;align-items:center;background:white;border:1px solid var(--border);border-radius:8px;padding:11px 15px;font-size:10px;color:var(--muted);box-shadow:0 8px 30px #4b321f0a}.status-dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:var(--success);flex-shrink:0}.auth-form-side{padding:38px 50px;display:flex;flex-direction:column;background:var(--surface-warm)}.auth-top{display:flex;justify-content:flex-end}.auth-form-wrap{width:100%;max-width:350px;margin:auto;padding:60px 0 35px}.auth-form-wrap h2{font-size:36px;line-height:1.2;letter-spacing:-1.4px;margin-bottom:17px}.auth-form-wrap .muted{font-size:13px;margin-bottom:30px}label{display:block;font-size:12px;color:var(--muted);margin:16px 0 7px}input{width:100%;min-height:43px;border:1px solid var(--border-strong);background:var(--surface);border-radius:7px;padding:11px 12px;color:var(--ink-soft);font-family:Mono,monospace;font-size:11px;line-height:1.5;transition:border-color .15s}input::placeholder{color:var(--muted)}input:focus{border-color:var(--border-strong);outline:none;box-shadow:0 0 0 3px #4b321f0b}.password-wrap{position:relative}.password-wrap input{padding-right:65px}.show-password{position:absolute;right:11px;top:12px;border:0;background:none;font-size:10px;color:var(--muted);padding:0}.form-error{color:var(--danger);min-height:19px;font-size:12px;margin:10px 0 0}#auth-submit{justify-content:space-between;margin-top:10px}.auth-switch{text-align:center;font-size:12px;color:var(--muted);margin-top:23px}.auth-switch button{margin-left:6px}.auth-footnote{display:flex;gap:10px;align-items:flex-start;border-top:1px solid var(--border);padding-top:23px;margin-top:26px;color:var(--muted);font-size:11px;line-height:1.8}.auth-footnote svg{width:16px;height:16px;flex-shrink:0;color:var(--accent-text)}.auth-copyright{font-size:10px;color:var(--muted);text-align:center;padding-bottom:6px}.workspace{display:grid;grid-template-columns:222px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;background:var(--surface-warm);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:34px 20px 0}.sidebar>.brand{padding-left:9px}.sidebar-caption{font-size:8px;margin:50px 12px 14px}.sidebar nav{display:flex;flex-direction:column;gap:7px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;background:transparent;border:1px solid transparent;border-radius:8px;padding:11px 12px;font-size:12px;color:var(--muted);text-align:left}.nav-item svg{width:17px;height:17px}.nav-item.active{background:var(--surface-soft);color:var(--accent);border-color:var(--border)}.nav-item:hover{color:var(--accent)}.nav-count{margin-left:auto;font-family:Mono,monospace;font-size:9px;background:var(--surface-soft);border-radius:4px;padding:1px 6px}.sidebar-tip{margin-top:auto;padding:22px 13px 25px}.tip-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--border);background:var(--surface-warm);border-radius:9px;color:var(--accent-text);margin-bottom:13px}.tip-icon svg{width:17px;height:17px}.sidebar-tip h3{font-size:12px;color:var(--muted);line-height:1.7}.sidebar-tip p{font-size:10px;line-height:1.9;color:var(--muted);margin:9px 0 13px}.sidebar-tip .text-link{font-size:10px;color:var(--muted)}.user-row{display:flex;gap:10px;align-items:center;padding:19px 0;border-top:1px solid var(--border)}.avatar{display:inline-flex;width:33px;height:33px;align-items:center;justify-content:center;background:var(--surface-soft);border-radius:10px;color:var(--accent-text);font-family:Space,sans-serif;font-size:13px}.user-row strong{display:block;font-size:11px;font-weight:600}.user-row small{display:block;font-size:9px}.user-row .icon-button{margin-left:auto}.main-shell{min-width:0}.topbar{height:77px;border-bottom:1px solid var(--border);padding:0 42px;display:flex;align-items:center;justify-content:space-between}.breadcrumb{font-size:11px;color:var(--muted);display:flex;gap:13px;align-items:center}.breadcrumb span{color:var(--muted)}.breadcrumb strong{font-weight:400;color:var(--muted)}.connection-label{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.content{padding:41px 42px 0;max-width:1500px;margin:auto}.page-heading{display:flex;justify-content:space-between;gap:25px;align-items:center;margin-bottom:32px}.page-heading .eyebrow{margin-bottom:17px}.page-heading .muted{font-size:12px;margin-bottom:0}.page-heading>.button{align-self:center}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:38px}.stat{display:flex;align-items:center;gap:13px;padding:20px;background:white;border:1px solid var(--border);border-radius:11px;position:relative;min-height:101px}.stat-icon{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;background:var(--surface-warm);border:1px solid var(--border);border-radius:10px;color:var(--accent-text);flex-shrink:0}.stat-icon svg{width:17px;height:17px}.stat-icon.green{background:var(--success-soft);border-color:var(--success-border)}.stat p{font-size:11px;color:var(--muted);margin:0 0 1px}.stat strong{font-family:Space,sans-serif;font-size:25px;line-height:1.1;font-weight:600}.stat-note{font-size:8px;color:var(--muted);position:absolute;right:16px;bottom:17px}.section-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.section-row h2{font-size:16px;letter-spacing:-.5px}.section-row h2>span{font-family:Mono,monospace;font-size:10px;color:var(--muted);padding-left:8px}.section-row .link-button{font-size:10px;color:var(--muted)}.refresh-symbol{font-size:15px;margin-left:7px}.phone-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:20px}.phone-card{background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden;transition:border-color .2s,box-shadow .2s}.phone-card.selected{border-color:var(--border-strong);box-shadow:0 0 0 3px #4b321f08}.phone-card-top{display:flex;align-items:center;justify-content:space-between;padding:17px 20px 0}.phone-glyph{display:flex;width:38px;height:38px;background:var(--surface-warm);border:1px solid var(--border);border-radius:11px;align-items:center;justify-content:center;color:var(--muted)}.phone-glyph svg{width:23px;height:23px}.status-tag{display:flex;align-items:center;gap:6px;font-size:9px;padding:4px 8px;border-radius:5px;color:var(--success);background:var(--success-soft)}.status-tag.offline{color:var(--muted);background:var(--surface-warm)}.status-tag.offline .status-dot{background:var(--muted)}.phone-card-body{padding:20px 20px 17px}.phone-name-line{display:flex;align-items:center;gap:7px}.phone-name-line h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px}.phone-name-line .icon-button{width:25px;height:25px}.phone-model{font-size:10px;color:var(--muted);margin:4px 0 21px}.phone-features{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.feature{font-size:9px;color:var(--muted);display:flex;align-items:center;gap:5px}.feature svg{width:12px;height:12px}.feature.ready{color:var(--muted)}.phone-card-bottom{display:flex;align-items:center;justify-content:space-between;background:var(--surface);border-top:1px solid var(--border);padding:12px 20px}.phone-card-bottom .link-button{font-size:10px}.remove-phone{border:none;background:transparent;font-size:9px;color:var(--muted)}.empty-state{border:1px dashed var(--border-strong);border-radius:12px;text-align:center;padding:55px 20px;background:var(--surface-warm)}.empty-phone{width:57px;height:65px;background:var(--surface-soft);border:1px solid var(--border);color:var(--accent-text);border-radius:17px;margin:0 auto 20px;display:flex;align-items:center;justify-content:center}.empty-phone svg{width:31px;height:31px}.empty-state h2{font-size:23px;margin-bottom:12px}.empty-state p{color:var(--muted);font-size:12px;line-height:1.9;margin-bottom:22px}.control-panel,.card{background:white;border:1px solid var(--border);border-radius:13px;padding:26px}.control-panel{margin-top:26px}.control-panel>.section-row .eyebrow{margin:0 0 6px;font-size:8px}.control-layout{display:grid;grid-template-columns:minmax(210px,.7fr) minmax(0,1fr);gap:30px}.screen-panel{min-height:340px;border:1px solid var(--border);border-radius:10px;background:var(--surface-warm);display:flex;align-items:center;justify-content:center;flex-direction:column;padding:23px;gap:24px}.screen-panel>div{text-align:center;color:var(--accent-text);max-width:200px}.screen-panel>div>svg{width:49px;height:49px;stroke-width:1;margin-bottom:15px}.screen-panel h3{color:var(--muted);margin-bottom:8px}.screen-panel p{font-size:11px}.screen-panel img{max-height:430px;max-width:100%;border-radius:7px}.commands h3{font-size:16px}.commands>.section-row{margin-bottom:8px}.commands .micro-label{font-size:7px}.commands .muted{font-size:11px}.button-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:15px 0}.button-row .button{padding:9px 12px;font-size:10px;min-height:35px}.input-action{display:flex;align-items:center;gap:9px}.input-action input{min-width:0;flex:1}.input-action .button{flex-shrink:0}.target-options{display:flex;gap:17px}.target-options label{display:flex;align-items:center;font-size:10px;gap:6px;margin-top:9px}.target-options input{width:12px;height:12px;min-height:12px;accent-color:var(--accent)}.optional{font-size:10px;color:var(--muted)}.command-status{font-size:11px;color:var(--muted);min-height:20px;margin-top:20px}details{margin-top:23px;border-top:1px solid var(--border);padding-top:14px}summary{font-size:11px;color:var(--muted);cursor:pointer}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-warm);color:var(--muted);font-family:Mono,monospace;font-size:10px;max-height:370px;overflow:auto;padding:18px;border:1px solid var(--border);border-radius:8px}.integration-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:23px}.card .muted{font-size:12px}.api-note{background:var(--surface-warm)}.api-note h2{font-size:25px;margin-top:22px}.api-note>p{font-size:12px;color:var(--muted);line-height:1.9;margin-top:17px}.api-note code{display:block;font-size:10px;font-family:Mono,monospace;padding:9px 10px;border:1px solid var(--border);border-radius:5px;margin-top:11px;color:var(--muted);overflow-wrap:anywhere}.key-list{margin-top:24px}.key-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:15px 0;border-top:1px solid var(--border)}.key-row strong{display:block;font-size:12px;font-weight:500}.key-row small{font-family:Mono,monospace;font-size:9px}.revoke-key{background:transparent;border:0;color:var(--danger);font-size:10px}.new-key{background:var(--surface-warm);border:1px solid var(--border);border-radius:9px;padding:16px;margin-top:23px}.new-key strong{font-size:12px;color:var(--accent-text)}.new-key p{font-size:11px;color:var(--muted);margin:5px 0 12px}.new-key input{font-size:10px}.activity-row{display:flex;align-items:center;gap:14px;padding:17px 0;border-top:1px solid var(--border)}.activity-icon{width:31px;height:31px;color:var(--muted);background:var(--surface-warm);border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.activity-icon svg{width:15px;height:15px}.activity-main{flex:1}.activity-main strong{font-size:12px;font-weight:500}.activity-main p{font-size:10px;margin:3px 0 0;color:var(--muted)}.activity-row time{font-family:Mono,monospace;font-size:9px;color:var(--muted);text-align:right}footer{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:33px 0 22px;font-size:9px;color:var(--muted)}footer a{display:flex;align-items:center;gap:7px;color:var(--muted)}footer a svg{width:12px;height:12px}dialog{border:1px solid var(--border);border-radius:17px;background:var(--surface);padding:28px;width:450px;max-width:calc(100% - 30px);color:var(--ink);box-shadow:0 25px 120px #4b321f1a}dialog::backdrop{background:#4b321f52;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.dialog-illustration{display:flex;align-items:center;justify-content:center;width:59px;height:69px;color:var(--accent-text);background:var(--surface-soft);border:1px solid var(--border);border-radius:17px;margin-bottom:20px}.dialog-illustration svg{width:33px;height:33px}dialog h2{font-size:29px;line-height:1.3;letter-spacing:-1px}dialog .muted{font-size:12px;margin-top:13px}.setup-steps{list-style:none;margin:24px 0 0;padding:0}.setup-steps li{display:flex;align-items:flex-start;gap:14px;margin-bottom:20px}.setup-steps li>span{font-family:Mono,monospace;font-size:9px;background:var(--surface-warm);border:1px solid var(--border);border-radius:5px;color:var(--accent-text);padding:4px 6px}.setup-steps strong{font-size:12px;font-weight:500}.setup-steps p{font-size:11px;line-height:1.8;color:var(--muted);margin:5px 0 0}dialog .fine{font-size:10px;line-height:1.8;margin-top:14px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--surface);padding:12px 20px;border-radius:9px;box-shadow:0 10px 40px #4b321f2b;font-size:12px;max-width:calc(100% - 30px);z-index:100}
@media(min-width:1450px){.content{padding:49px 65px 0}.topbar{padding:0 65px}.page-heading{margin-bottom:39px}.stats{gap:22px}.stat{padding:25px;min-height:110px}.phone-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}}@media(max-width:1050px){.workspace{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:30px 14px 0}.content{padding:33px 25px 0}.topbar{padding:0 25px}.stat{padding:15px;gap:9px}.stat-note{display:none}.control-layout{gap:18px}.auth-brand{padding:35px}.auth-form-side{padding:35px}.auth-story{margin-top:65px}}@media(max-width:780px){.auth-layout{grid-template-columns:1fr}.auth-brand{padding:24px;background:var(--surface-soft);border-right:0;border-bottom:1px solid var(--border)}.auth-story,.auth-bottom{display:none}.auth-form-side{min-height:calc(100dvh - 84px);padding:23px}.auth-form-wrap{padding:40px 0;max-width:360px}.auth-top .text-link{font-size:11px}.workspace{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:16px 18px 10px;border-bottom:1px solid var(--border);border-right:0;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}.sidebar>.brand{padding:0;flex:1;font-size:21px}.sidebar-caption,.sidebar-tip,.user-row small{display:none}.user-row{border:0;padding:0;order:1}.sidebar nav{order:2;flex-direction:row;width:100%;gap:5px;margin-top:6px}.nav-item{justify-content:center;padding:10px 8px;font-size:11px;gap:7px}.nav-count{margin-left:2px}.topbar{height:53px;padding:0 20px}.content{padding:28px 20px 0}.page-heading{gap:14px;margin-bottom:25px;align-items:flex-start}.page-heading h1{font-size:34px;letter-spacing:-1.5px}.page-heading>.button{padding:10px 12px;min-height:38px;align-self:flex-start;margin-top:31px;font-size:10px}.page-heading .muted{font-size:11px;max-width:230px}.eyebrow{font-size:7px;letter-spacing:1.3px}.stats{gap:8px;margin-bottom:28px}.stat{display:block;padding:13px 11px;min-height:93px}.stat-icon{width:26px;height:26px;border-radius:8px;margin-bottom:7px}.stat-icon svg{width:14px;height:14px}.stat p{font-size:8px}.stat strong{font-size:21px}.stat>div{display:flex;align-items:center;justify-content:space-between;gap:4px}.section-row h2{font-size:13px}.section-row .link-button{font-size:9px}.phone-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}.control-layout,.integration-layout{grid-template-columns:1fr}.control-panel,.card{padding:19px}.screen-panel{min-height:250px}.screen-panel img{max-height:400px}.screen-panel>div{max-width:100%}.micro-label{font-size:7px;letter-spacing:1px}.user-row .avatar{width:28px;height:28px;font-size:11px}.user-row strong{font-size:10px}.user-row .icon-button{width:25px}.control-panel>.section-row h2{font-size:16px}.activity-row time{font-size:8px}.auth-form-wrap h2{font-size:34px}footer{font-size:8px;padding-top:24px}}

/* Allow grid/flex contents to shrink instead of widening the mobile viewport. */
.auth-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.auth-layout>*,.workspace>*,.control-layout>*,.integration-layout>*,.stats>*,.commands,.page-heading>div,.section-row>div,.activity-main,.key-row>div,.user-row>div{min-width:0}
.brand-mark,.avatar,.icon-button{flex-shrink:0}
.phone-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr))}
.phone-model,.fine,.command-status,.activity-main,.key-row>div,.user-row strong,.muted{overflow-wrap:anywhere}
.phone-name-line{min-width:0}.phone-name-line h3{min-width:0}.phone-name-line .icon-button{flex-shrink:0}
.input-action{min-width:0}.input-action input{width:0;min-width:0}
.screen-panel{min-width:0}.screen-panel img{display:block;object-fit:contain;height:auto;width:auto;max-width:100%}
.target-options{flex-wrap:wrap;column-gap:17px;row-gap:0}
.dialog-head>h2,.dialog-head>.badge{min-width:0;overflow-wrap:anywhere}
.setup-steps li>div{min-width:0}
dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.toast{width:max-content;overflow-wrap:anywhere;padding-bottom:max(12px,env(safe-area-inset-bottom))}
@media(min-width:1450px){.phone-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}}
@media(max-width:1050px){.control-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:780px){
 .auth-layout{grid-template-columns:minmax(0,1fr)}
 .workspace{grid-template-columns:minmax(0,1fr)}
 .sidebar{padding-top:max(16px,env(safe-area-inset-top));gap:12px}
 .sidebar>.brand{flex:1 1 auto}.user-row{max-width:60%;gap:8px}.user-row>div{overflow:hidden}.user-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .sidebar nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .nav-item{min-width:0;width:100%;min-height:44px;gap:5px;flex-wrap:wrap}.nav-count{margin-left:0}
 .topbar{height:auto;min-height:56px;flex-wrap:wrap;gap:8px 16px;padding:12px 20px}
 .breadcrumb{flex-wrap:wrap;gap:8px}.connection-label{min-width:0;overflow-wrap:anywhere}
 .page-heading{flex-direction:column;align-items:stretch;gap:18px}
 .page-heading h1{font-size:clamp(30px,8vw,40px)}
 .page-heading .muted{max-width:none;font-size:13px}
 .page-heading>.button{align-self:flex-start;margin-top:0;min-height:44px;padding:12px 16px;font-size:12px}
 .phone-grid{grid-template-columns:minmax(0,1fr)}
 .stats{gap:8px}.stat{padding:12px 10px}.stat>div{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.stat p{font-size:11px;overflow-wrap:anywhere}.stat strong{font-size:25px}
 .section-row{flex-wrap:wrap;gap:10px}.section-row h2{font-size:15px}.section-row .link-button{font-size:12px;min-height:44px}
 .control-panel>.section-row{flex-wrap:nowrap}#control-title{overflow-wrap:anywhere}
 .control-panel,.card{padding:18px}.control-layout,.integration-layout{grid-template-columns:minmax(0,1fr);gap:20px}
 .screen-panel{padding:16px;min-height:240px;gap:18px}.screen-panel img{max-height:min(60dvh,480px)}
 .button-row .button,.input-action .button,.button,.link-button,.remove-phone,.revoke-key{min-height:44px}
 .button-row .button{font-size:12px;padding:11px 13px}.icon-button{width:44px;height:44px}.user-row .icon-button,.phone-name-line .icon-button{width:44px;height:44px}
 .phone-card-bottom .link-button,.remove-phone,.revoke-key{font-size:12px}.phone-card-bottom{padding-top:8px;padding-bottom:8px;gap:12px}
 input,.new-key input{font-size:16px;min-height:48px}label{font-size:13px}
 .target-options input{min-height:16px;width:16px;height:16px}.target-options label{min-height:44px;margin-top:0;font-size:12px}
 .show-password{top:0;right:0;min-height:48px;min-width:60px;font-size:12px}
 .activity-row{align-items:flex-start;gap:10px;flex-wrap:wrap}.activity-main{flex:1 1 150px}.activity-row time{font-size:10px;flex:0 0 auto}.activity-main p{font-size:12px}
 .key-row{gap:10px;flex-wrap:wrap}.key-row small{font-size:10px;overflow-wrap:anywhere}
 .auth-form-wrap{padding:32px 0}.auth-form-side{padding:20px}.auth-form-wrap h2{font-size:clamp(28px,8vw,34px)}
 .brand-light{font-size:14px}.auth-brand{padding:20px}.brand{gap:9px;font-size:21px}
 dialog{padding:20px;max-width:calc(100% - 24px);max-height:calc(100dvh - 24px)}dialog h2{font-size:27px}.badge{letter-spacing:.8px}
 footer{font-size:11px;padding-bottom:max(24px,env(safe-area-inset-bottom))}footer a{min-height:44px}
}
@media(max-width:420px){
 .content{padding:24px 14px 0}.sidebar{padding-left:14px;padding-right:14px}.topbar{padding-left:14px;padding-right:14px}
 .input-action{flex-wrap:wrap}.input-action input{width:100%;flex:1 1 100%}.input-action>.button{width:100%}
 .new-key .input-action{flex-wrap:nowrap}.new-key .input-action input{width:0;flex:1 1 0}
 .commands>.section-row{align-items:flex-start}.commands .micro-label{width:100%}
 .activity-row time{margin-left:41px;flex-basis:calc(100% - 41px);text-align:left}
 .nav-item{font-size:10px}.nav-item svg{width:16px;height:16px}
 .user-row{max-width:57%}.sidebar>.brand{font-size:19px;gap:7px}.sidebar .brand-mark{width:30px;height:30px}
}

/* Decide guest vs saved-session presentation before slower application assets load. */
html:not([data-session-pending]) .session-loading{display:none}
html[data-session-pending] #auth-view{display:none}
#auth-connection{min-height:20px;margin-top:8px}
.session-loading{min-height:100dvh;display:grid;place-items:center;padding:24px}
.session-card{width:100%;max-width:400px;text-align:center}
.session-card .brand-mark{margin:0 auto 24px;width:44px;height:44px}
.session-card h1{font-size:26px;letter-spacing:-.8px;margin-bottom:12px;overflow-wrap:anywhere}
.session-card p,.session-noscript{font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.session-noscript{text-align:center;padding:20px}

/* A compact device task conversation, in the workspace palette. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.device-chat{min-width:0;border:1px solid var(--border);border-radius:15px;background:var(--surface-warm);overflow:hidden}
.chat-header{display:flex;align-items:center;gap:11px;padding:16px 17px;background:var(--surface);border-bottom:1px solid var(--border)}
.chat-avatar{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;border-radius:11px;color:var(--accent);background:var(--surface-soft)}.chat-avatar svg{width:19px;height:19px}.chat-header>div{flex:1;min-width:0}.chat-header h3{font-size:15px;margin:0}.chat-header p{font-size:11px;color:var(--muted);margin:1px 0 0}.chat-header .icon-button{width:32px;height:36px}.chat-badge{font-size:10px;color:var(--muted);white-space:nowrap}.chat-badge.ready{color:var(--success)}
.chat-log{height:300px;overflow:auto;overscroll-behavior:contain;padding:18px;display:flex;flex-direction:column;gap:14px;scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}.chat-welcome{margin:auto 0;text-align:center;padding:16px 8px;color:var(--muted)}.chat-welcome>svg{width:29px;height:29px;color:var(--accent);margin-bottom:8px}.chat-welcome h4{font-family:Space,sans-serif;color:var(--ink);font-size:18px;letter-spacing:-.4px;margin:0 0 5px}.chat-welcome p{font-size:12px;line-height:1.7;margin:0 auto;max-width:270px}
.chat-message{max-width:95%;align-self:flex-start;min-width:0;font-size:12px;line-height:1.75;overflow-wrap:anywhere;white-space:pre-wrap}.chat-message.user{align-self:flex-end;padding:10px 14px;background:var(--surface-soft);color:var(--ink);border:1px solid var(--border);border-radius:13px 13px 3px 13px}.chat-message.agent{padding:0 2px}.chat-message.error{color:var(--danger)}.chat-message-label{font-family:Space,sans-serif;font-size:12px;font-weight:600;display:flex;align-items:center;gap:7px;margin-bottom:4px;color:var(--ink)}.chat-message-label svg{width:14px;height:14px;color:var(--accent)}.chat-message p{margin:0;color:var(--ink-soft)}.chat-actions{list-style:none;padding:0;margin:8px 0 0;color:var(--muted);font-size:11px}.chat-actions li{display:flex;align-items:center;gap:7px;margin-top:3px}.chat-actions svg{width:12px;height:12px;color:var(--success);flex-shrink:0}.chat-meta{display:block;color:var(--muted);font-size:10px;margin-top:6px}.chat-suggestions{display:flex;gap:7px;flex-wrap:wrap;padding:0 17px 13px}.chat-suggestions button{display:flex;align-items:center;gap:7px;font:inherit;font-size:11px;min-height:34px;padding:5px 9px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--ink-soft)}.chat-suggestions svg{width:12px;height:12px;color:var(--accent)}
.chat-composer{margin:0 12px;padding:10px 12px 9px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.chat-composer:focus-within{border-color:var(--focus);box-shadow:0 0 0 3px #ad452710}.chat-composer textarea{display:block;resize:vertical;width:100%;min-height:52px;max-height:150px;padding:0;border:0;outline:0;background:transparent;color:var(--ink);font:13px/1.65 Mono,monospace;overflow-wrap:anywhere}.chat-composer textarea::placeholder{color:var(--muted);opacity:1}.chat-composer-bottom{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:6px}.chat-composer-bottom>span{flex:1;font-size:10px;color:var(--muted);line-height:1.5;max-width:230px;margin-right:auto}.chat-send{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border:0;border-radius:10px;background:var(--accent);color:white}.chat-send svg{width:18px;height:18px}.chat-send:hover:not(:disabled){background:var(--accent-hover)}.chat-stop{display:flex;align-items:center;gap:6px;border:1px solid var(--border);background:var(--surface);color:var(--danger);border-radius:9px;min-height:38px;padding:6px 10px;font:inherit;font-size:11px}.chat-stop svg{width:13px;height:13px}.chat-notice{font-size:10px;color:var(--muted);line-height:1.6;min-height:16px;margin:9px 17px 12px}.manual-controls{margin-top:16px;padding-top:14px}.manual-controls>summary{font-size:12px;color:var(--ink-soft);min-height:32px}.manual-body{padding-top:12px}.manual-body>.section-row{margin-bottom:8px}.manual-body .muted{font-size:11px}.screen-panel{align-self:start;width:100%}
@media(max-width:700px){.control-layout{grid-template-columns:minmax(0,1fr)}.commands{grid-row:1}.chat-log{height:280px}.chat-header{padding:14px}.chat-header .icon-button{min-width:36px}.chat-composer textarea{font-size:16px}.chat-send{width:44px;height:44px}.chat-stop{min-height:44px}.chat-suggestions button{min-height:40px}.chat-header .chat-badge{font-size:9px}.screen-panel{grid-row:2}.chat-composer-bottom>span{font-size:9px}.chat-composer{margin:0 10px}.chat-suggestions{padding:0 12px 12px}.chat-log{padding:15px}.chat-message{font-size:13px}}

.chat-actions .accepted svg{color:var(--muted)}.chat-actions .verified svg{color:var(--success)}

.chat-capture{display:block;max-width:100%;max-height:260px;object-fit:contain;border:1px solid var(--border);border-radius:9px;margin-top:8px}.chat-message.capture{max-width:100%}

/* Keyboard focus must remain visible on fields and scrollable response panes. */
:where([tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
input:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-color:var(--accent);box-shadow:none}
.chat-composer:focus-within{border-color:var(--accent)}
.chat-composer textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* Keep account actions reachable when desktop height is reduced or text is enlarged. */
@media(min-width:781px){
 .sidebar{overflow-y:auto;overscroll-behavior:contain}
 .sidebar>.brand,.sidebar-caption,.sidebar nav,.sidebar-tip,.user-row{flex-shrink:0}
}
@media(max-width:780px){
 .chat-header .icon-button{width:44px;min-width:44px;height:44px}
 .chat-suggestions button{min-height:44px}
 .manual-controls>summary{min-height:44px}
}

/* Device names may be unbroken identifiers; keep headings within their column. */
.phone-name-line h3{white-space:normal;overflow-wrap:anywhere}
#control-title,.chat-notice{overflow-wrap:anywhere}

/* Keep the desktop password toggle target usable without covering field text. */
@media(min-width:781px){
 .show-password{top:50%;right:6px;transform:translateY(-50%);min-height:28px;min-width:44px;padding:4px 6px}
}

/* Standalone download links need a full pointer target, including on desktop. */
.auth-top .text-link{min-height:24px}

/* Shared form treatment: neutral at rest, one clear focus indicator. */
input:not([type=radio]),textarea{
 border-color:var(--border);border-radius:12px;background:var(--surface);
 font-family:Mono,monospace;transition:border-color .15s,box-shadow .15s,background .15s;
}
input:not([type=radio]){min-height:48px;padding:12px 14px}
input:not([type=radio]):hover,textarea:hover{border-color:var(--border-strong)}
input:not([type=radio]):focus,textarea:focus{
 border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #ad45271a;
}
input:not([type=radio]):focus-visible,textarea:focus-visible{outline:none}
.button{border-radius:11px;font-weight:600}
.card,.control-panel,.phone-card{border-radius:18px}
dialog{border-radius:22px}

/* Auth uses the same warm palette with a compact, elevated form card. */
.auth-brand{background:radial-gradient(ellipse at 20% 80%,#ead2c166,transparent 65%),var(--surface-soft)}
.auth-form-side{gap:32px;background:var(--canvas);padding:32px clamp(24px,4vw,64px)}
.auth-top .text-link{min-height:40px;padding:8px 13px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.auth-top .text-link:hover{border-color:var(--border-strong);color:var(--ink)}
.auth-form-wrap{
 max-width:430px;padding:34px;background:var(--surface);border:1px solid var(--border);
 border-radius:24px;box-shadow:0 4px 8px #29262203,0 20px 60px #29262206;
}
.auth-emblem{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid var(--border);border-radius:14px;background:var(--surface-warm);color:var(--accent);margin-bottom:24px}
.auth-emblem svg{width:24px;height:24px}
.auth-form-wrap .eyebrow{font-size:9px;letter-spacing:1.4px;margin-bottom:10px}
.auth-form-wrap h2{font-size:clamp(28px,3vw,36px);letter-spacing:-1.3px;margin-bottom:10px}
.auth-form-wrap .muted{font-size:13px;line-height:1.7;margin-bottom:26px}
.auth-form-wrap label{font-size:12px;font-weight:600;color:var(--ink-soft);margin:18px 0 8px}
.auth-form-wrap input{min-height:50px;background:var(--surface-warm);font-size:12px}
.auth-form-wrap input:focus{background:var(--surface)}
.password-wrap input{padding-right:76px}
.show-password{top:50%;right:5px;transform:translateY(-50%);min-width:58px;min-height:40px;border-radius:8px;font-size:11px;padding:8px}
.show-password:hover{color:var(--ink);background:var(--surface-soft)}
.show-password:focus-visible{outline:2px solid var(--focus);outline-offset:0}
#auth-submit{min-height:50px;padding:13px 16px;margin-top:20px;font-size:13px;box-shadow:0 4px 10px #ad45271a}
#auth-error:empty{display:none}
#auth-connection{min-height:0;margin:0}
#auth-connection:not(:empty){margin-top:12px}
.auth-switch{margin:22px 0 0;font-size:12px}
.auth-switch .link-button{min-height:32px}
.auth-footnote{margin-top:24px;padding-top:20px;font-size:11px;align-items:center}
.auth-footnote svg{width:18px;height:18px}
.auth-copyright{padding:0}
@media(max-width:780px){
 .auth-brand{background:var(--surface);padding:20px 24px}
 .auth-form-side{padding:20px 24px 28px;gap:24px;min-height:calc(100dvh - 76px)}
 .auth-form-wrap{padding:28px;max-width:430px}
 .auth-form-wrap input{font-size:16px}
}
@media(max-width:420px){
 .auth-brand{padding:18px 20px}
 .auth-form-side{padding:16px 16px 24px;gap:20px}
 .auth-form-wrap{padding:24px 20px;border-radius:20px}
 .auth-form-wrap h2{font-size:29px}
 .auth-emblem{margin-bottom:20px}
 .auth-copyright{font-size:9px}
}
@media(prefers-reduced-motion:reduce){input:not([type=radio]),textarea,.button{transition:none}}

/* Modal errors must remain inside the active dialog's accessibility tree. */
dialog .form-error{overflow-wrap:anywhere}
dialog .form-error:empty{display:none}
/* Forced-color modes suppress shadows; retain a visible keyboard focus outline. */
@media(forced-colors:active){
 input:not([type=radio]):focus-visible,.chat-composer textarea:focus-visible{
  outline:2px solid Highlight;outline-offset:2px;box-shadow:none;
 }
}
