/* RD-Keyboard — shared product, workspace and administration design */
:root{color-scheme:dark;--bg:#080d13;--surface:#101822;--field:#0a111a;--line:#243140;--accent:#90d5ff;--accent-ink:#09263a;--text:#f0f5fb;--muted:#98aabe;--gold:#ecd093;--danger:#ffaaa6;--radius:22px;font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;font-size:16px;font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;background:radial-gradient(ellipse at 85% 0,#13304a55,transparent 48%),var(--bg);color:var(--text);line-height:1.6;min-height:100vh}button,input,textarea,select{font:inherit}button,a,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button,a{transition:background .18s,border-color .18s,transform .18s}button:disabled{cursor:not-allowed;opacity:.45}a{color:var(--accent);text-underline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.75rem,3vw,2.5rem);font-weight:650;letter-spacing:-.045em;line-height:1.17}h2{font-size:1.2rem;letter-spacing:-.025em;font-weight:650}h3{font-size:1.05rem}p{color:var(--muted);margin:12px 0;font-size:.94rem}small{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.69rem;font-weight:700;color:var(--accent);margin:0 0 14px}.heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text);font-size:.92rem;font-weight:700;letter-spacing:.015em}.brand b{color:var(--accent)}.brand small{display:block;letter-spacing:0;font-weight:400;font-size:.73rem;margin-top:3px}.brand img{width:40px;height:40px}.primary,.secondary,.quiet{display:inline-flex;justify-content:center;align-items:center;gap:9px;border-radius:11px;padding:12px 19px;font-weight:600;font-size:.875rem;min-height:46px;text-decoration:none}.primary{border:1px solid var(--accent);background:var(--accent);color:var(--accent-ink);box-shadow:0 4px 20px #90d5ff10}.primary:hover:not(:disabled){background:#b6e4ff;transform:translateY(-1px)}.secondary{border:1px solid #344658;background:#1a2939;color:var(--text)}.secondary:hover:not(:disabled){background:#22374a;border-color:#55748e}.quiet{border:1px solid transparent;background:transparent;color:var(--muted)}.quiet:hover:not(:disabled){background:#ffffff06;color:var(--text)}.card{border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(145deg,#131e2a,#0e1620);padding:32px;min-width:0}.card>p{max-width:760px}.card>h2,.card>form,.card>details{margin-top:24px}.card>.primary{margin-top:18px}.app-shell{display:grid;grid-template-columns:208px minmax(0,1fr);column-gap:36px;max-width:1400px;padding:0 40px 28px;margin:auto}.app-shell>header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;min-height:106px;border-bottom:1px solid #ffffff09;gap:18px}.app-shell>header #account{border:1px solid var(--line);background:#111c28;border-radius:40px;padding:10px 20px}.app-shell>#global-status{grid-column:2;font-size:.73rem;margin:20px 0;min-height:20px}.app-shell>.main-nav{grid-column:1;grid-row:3;align-self:start;position:sticky;top:28px;display:flex;flex-direction:column;gap:7px;padding-top:10px}.app-shell>.main-nav:before{content:"ARBEITSBEREICH";color:#657d95;font-size:.63rem;letter-spacing:.17em;padding:0 16px 18px;font-weight:700}.main-nav button{display:flex;align-items:center;gap:12px;background:transparent;border:1px solid transparent;color:var(--muted);font-size:.85rem;text-align:left;padding:13px 16px;border-radius:11px;min-height:48px}.main-nav button:hover{background:#ffffff04;color:var(--text)}.main-nav button.selected{background:linear-gradient(100deg,#1c3b52,#162a3d);border-color:#375a74;color:var(--accent)}.nav-icon{width:19px;height:19px;flex-shrink:0}.main-nav .premium-mark{font-size:.7rem;margin-left:auto}.app-shell>[data-view]{grid-column:2;grid-row:3;align-self:start;min-height:580px}.app-shell>footer{grid-column:2}footer{display:flex;justify-content:space-between;gap:20px;margin-top:30px;padding:20px 0;color:#788da3;font-size:.73rem}footer strong{color:#b7c8d8;font-weight:500}.welcome-hero{padding:12px 0 28px;max-width:650px}.welcome-hero h1{font-size:clamp(2.2rem,4.2vw,3.6rem);max-width:560px;margin-bottom:20px}.welcome-hero h1 span{color:var(--accent)}.welcome-hero p{font-size:1rem;max-width:510px;margin:18px 0 24px}.hero-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.connection-panel{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:14px;background:#090f1755;padding:18px 20px;margin:12px 0 28px}.connection-panel .status-orb{height:11px;width:11px;border-radius:50%;background:var(--muted);box-shadow:0 0 0 6px #98aabe0c;flex-shrink:0}.connection-panel p{margin:2px 0 0;font-size:.85rem}.connection-panel strong{font-size:.83rem;font-weight:600}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.quick-card{background:#111e2c;border:1px solid var(--line);border-radius:16px;padding:22px;text-align:left;color:var(--text)}.quick-card:hover{background:#182a3b;border-color:#4a6c87;transform:translateY(-2px)}.quick-card .step-number{display:block;color:var(--accent);font-size:.73rem;margin-bottom:23px}.quick-card strong{display:block;font-size:.92rem}.quick-card small{display:block;font-size:.8rem;line-height:1.6;margin-top:8px}.quick-card .card-arrow{display:block;color:var(--accent);margin-top:16px}label{display:block;color:#bdcddd;font-size:.8rem;font-weight:550;margin:21px 0 8px}input,textarea,select{width:100%;border:1px solid #2b3b4e;border-radius:11px;background:var(--field);color:var(--text);padding:13px 15px;outline:none;min-width:0}textarea{resize:vertical;min-height:150px;line-height:1.85}textarea::placeholder,input::placeholder{color:#617990}textarea:focus,input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #90d5ff12}input[type=checkbox]{width:auto;accent-color:var(--accent)}select{margin-bottom:14px}form>button{margin-top:14px}#text{font-size:1.03rem;min-height:310px;background:#0a111a;border-radius:16px;padding:24px}#send{width:100%;margin-top:18px}#notes{min-height:125px}.meta{display:flex;justify-content:space-between;gap:16px;font-size:.73rem;color:#7a93aa;margin:12px 0 24px;font-variant-numeric:tabular-nums}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.actions button:first-child{margin-right:auto}.hint{font-size:.77rem;line-height:1.7;margin-top:18px}.badge{display:inline-flex;align-items:center;border:1px solid #31536b;background:#16304370;border-radius:7px;padding:5px 10px;font-size:.7rem;color:var(--accent);font-weight:550;white-space:normal}.premium-mark{color:var(--gold)}details{border:1px solid var(--line);border-radius:14px;padding:5px 18px;background:#0a141e66}details[open]{padding-bottom:20px}summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:16px 0;font-size:.87rem;font-weight:550}summary::-webkit-details-marker{display:none}summary:after{content:"＋";color:var(--accent);font-size:1.2rem}details[open]>summary:after{content:"−"}hr{border:0;border-top:1px solid var(--line);margin:30px 0 24px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.86rem}#totp-qr{max-width:100%;border-radius:12px;margin-top:22px}#devices article,#sessions article{padding:20px;background:var(--field);border:1px solid var(--line);border-radius:14px;margin:15px 0}.install-steps{padding-left:24px}.install-steps li{color:var(--muted);margin:15px 0;padding-left:5px}dialog{color:var(--text);background:#101c28;border:1px solid #365169;border-radius:24px;padding:34px;max-width:470px;width:calc(100% - 32px);box-shadow:0 35px 130px #0009}dialog::backdrop{background:#040911d9;backdrop-filter:blur(9px)}dialog h2{font-size:1.5rem}dialog .primary{width:100%;margin-top:24px}dialog .quiet{margin-top:12px}dialog p{font-size:.85rem}.error{color:var(--danger)!important}.success{color:var(--accent)!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:30px 0}.admin-stats>div{border:1px solid #293e52;border-radius:16px;padding:21px;background:linear-gradient(130deg,#1a2c3e,#111e2c);display:flex;flex-direction:column-reverse;gap:14px}.admin-stats strong{color:var(--text);font-size:2.2rem;font-weight:550;line-height:1.1;letter-spacing:-.045em;font-variant-numeric:tabular-nums}.admin-stats span{font-size:.73rem;color:#9fb5c9}.admin-stats>div:nth-child(2) strong{color:var(--accent)}.admin-search{display:grid;grid-template-columns:2fr 1fr auto;gap:12px;align-items:end;background:#090f1766;border:1px solid var(--line);border-radius:15px;padding:17px}.admin-search label{margin:0 0 8px}.admin-search select{margin:0;height:50px}.admin-search input,.admin-search button{min-height:50px}.admin-search button{margin:0}#admin-results{font-size:.75rem;margin:22px 0 12px}#admin-content article{border:1px solid var(--line);border-radius:15px;padding:22px;margin-top:13px;background:#0d1823;overflow-wrap:anywhere}#admin-content .heading{align-items:center;flex-wrap:wrap;margin:0 0 10px}#admin-content .heading h2{margin:0;font-size:.95rem;letter-spacing:0}#admin-content .heading p{font-size:.73rem;margin:4px 0}#admin-content article>p{font-size:.76rem;margin:7px 0}#admin-content details{margin-top:16px;background:#0a121b}#admin-content form{max-width:580px}#admin-content form p{font-size:.78rem}.customer-identity{display:flex;align-items:center;gap:13px;min-width:0}.customer-avatar{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex-shrink:0;background:#213b51;border:1px solid #35536c;color:var(--accent);border-radius:13px;font-weight:600}.admin-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0;font-size:.76rem;color:var(--muted)}.admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.admin-table{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.76rem}td,th{padding:13px 10px;text-align:left;border-bottom:1px solid var(--line)}th{color:var(--muted);font-weight:500}#admin-audit td{overflow-wrap:anywhere;min-width:120px}.product-shell{max-width:1200px;margin:auto;padding:0 40px}.product-shell header{display:flex;align-items:center;justify-content:space-between;min-height:102px;gap:20px;border-bottom:1px solid #ffffff0b}.product-nav{display:flex;align-items:center;gap:25px}.product-nav a{color:var(--muted);text-decoration:none;font-size:.81rem}.product-nav a:hover{color:var(--text)}.product-shell section{scroll-margin-top:28px}.product-hero{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:65px;padding:90px 0 80px}.product-hero h1{font-size:clamp(3.2rem,6vw,5.6rem);letter-spacing:-.06em;line-height:1.03;font-weight:620}.product-hero h1 span{color:var(--accent)}.product-hero .lead{font-size:1.05rem;line-height:1.85;max-width:510px;margin:27px 0}.product-hero .hint{font-size:.73rem;margin-top:20px}.hero-tag{display:inline-flex;align-items:center;gap:9px;border:1px solid #325570;border-radius:50px;padding:6px 12px;color:var(--accent);font-size:.69rem;letter-spacing:.06em;margin-bottom:27px}.hero-tag:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent)}.product-visual{position:relative;padding:18px 0 30px}.product-visual:before{content:"";position:absolute;inset:-40px;background:radial-gradient(ellipse,#3781b027,transparent 68%);z-index:-1}.demo-window{border:1px solid #3f5d77;border-radius:22px;background:linear-gradient(150deg,#1a2d40,#0b131f);box-shadow:0 30px 80px #0005;overflow:hidden;transform:rotate(-3deg)}.demo-top{display:flex;align-items:center;gap:6px;border-bottom:1px solid #334b60;padding:17px 20px}.demo-top i{width:6px;height:6px;border-radius:50%;background:#607a91}.demo-top span{margin-left:auto;color:#9eb6cb;font-size:.62rem;letter-spacing:.09em}.demo-body{padding:28px}.demo-body>strong{font-size:1.35rem;letter-spacing:-.025em;display:block}.demo-input{margin-top:22px;padding:24px;background:#080f19;border:1px solid #273c51;border-radius:12px;color:#d5e4f2;font-size:.94rem;line-height:1.9;min-height:155px}.demo-line{height:6px;background:#2d4156;border-radius:9px;margin-top:14px;width:82%}.demo-line.short{width:54%}.demo-footer{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:22px;color:#a4bdd2;font-size:.7rem}.demo-key{border-radius:8px;padding:9px 14px;background:var(--accent);color:var(--accent-ink);font-weight:600}.device-chip{position:relative;width:max-content;margin:-4px 0 0 auto;transform:rotate(3deg);padding:14px 20px;border:1px solid #42637d;border-radius:14px;background:#152b3d;box-shadow:0 16px 35px #0005;color:var(--accent);font-size:.78rem}.product-strip{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:26px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:.8rem;color:#afc1d2}.product-section{padding:78px 0 12px}.section-intro{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:28px}.section-intro h2{font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.2;letter-spacing:-.04em;max-width:540px}.section-intro>p{max-width:320px;font-size:.88rem}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.feature-card{border:1px solid var(--line);background:linear-gradient(135deg,#142131,#0e1823);padding:25px;border-radius:18px}.feature-card .step-number{display:block;color:var(--accent);font-size:.75rem;margin-bottom:32px}.feature-card h3{font-size:.95rem}.feature-card p{font-size:.8rem;margin-bottom:0}.pricing-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.price-card{padding:34px;border:1px solid var(--line);border-radius:22px;background:#101b27}.price-card.featured{border-color:#5c90b3;background:linear-gradient(135deg,#1c344b,#111f2e)}.price-value{font-size:2.7rem;letter-spacing:-.055em;line-height:1.1;margin:25px 0}.price-value small{font-size:.82rem;letter-spacing:0;font-weight:400}.check-list{padding:0;list-style:none;color:#becfde;font-size:.87rem}.check-list li{padding:10px 0}.check-list li:before{content:"✓";color:var(--accent);margin-right:12px}.purchase-card{display:flex;justify-content:space-between;gap:35px;align-items:center;padding:35px;border:1px solid #35516b;border-radius:22px;background:linear-gradient(110deg,#192d42,#101c2a);margin-top:65px}.purchase-card h2{font-size:1.7rem}.purchase-card p{max-width:590px}.faq-layout{display:grid;grid-template-columns:.75fr 1.25fr;gap:60px}.faq-layout details{margin-bottom:12px}.faq-layout h2{font-size:2rem;line-height:1.25}.product-shell footer{border-top:1px solid var(--line);margin-top:65px;padding-top:26px}.product-shell footer a{margin-left:16px}.product-shell #legal-placeholder{padding-bottom:25px;font-size:.7rem}
@media(min-width:1400px){.app-shell>[data-view]{padding:40px}}
@media(max-width:1000px){.app-shell{grid-template-columns:170px minmax(0,1fr);gap:0 24px;padding:0 24px 20px}.main-nav button{padding:12px}.card{padding:25px}.quick-grid{grid-template-columns:1fr}.quick-card{padding:18px;display:grid;grid-template-columns:28px 1fr 20px;gap:5px 12px}.quick-card .step-number{grid-column:1;grid-row:1/3;margin:0}.quick-card strong,.quick-card small{grid-column:2;margin:0}.quick-card .card-arrow{grid-column:3;grid-row:1/3;margin:0;align-self:center}.admin-stats{grid-template-columns:repeat(2,1fr)}.product-hero{gap:30px}.product-nav{gap:14px}.feature-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.app-shell{display:block;padding:0 16px 100px}.app-shell>header{min-height:82px}.brand{font-size:.8rem;gap:9px}.brand small{font-size:.65rem}.brand img{height:35px;width:35px}.app-shell>header #account{padding:8px 13px;font-size:.76rem;min-height:40px}.app-shell>#global-status{font-size:.68rem;margin:15px 3px}.app-shell>.main-nav{position:fixed;bottom:0;top:auto;left:0;right:0;z-index:10;display:flex;flex-direction:row;justify-content:space-around;gap:2px;padding:8px 6px calc(8px + env(safe-area-inset-bottom));background:#0d1827f5;border-top:1px solid #33475a;backdrop-filter:blur(18px)}.app-shell>.main-nav:before{display:none}.main-nav button{flex:1;flex-direction:column;justify-content:center;gap:4px;padding:7px 2px;border-radius:9px;font-size:.61rem;min-height:50px;min-width:0;line-height:1.3}.main-nav .nav-icon{width:19px;height:19px}.main-nav .premium-mark{position:absolute;font-size:.5rem;margin-left:30px;margin-top:-28px}.card{padding:24px 19px;border-radius:19px}.app-shell>[data-view]{min-height:0}.welcome-hero{padding:7px 0 24px}.welcome-hero h1{font-size:2.5rem}.welcome-hero p{font-size:.92rem}.hero-actions{gap:5px}.hero-actions .primary{width:100%}.hero-actions .quiet{width:100%}.heading{gap:12px;flex-wrap:wrap}.heading h1{font-size:1.65rem}.heading>.secondary{font-size:.73rem;padding:8px 12px;min-height:38px}.connection-panel{padding:17px}.quick-grid{gap:10px}.admin-stats{gap:9px;margin:24px 0}.admin-stats>div{padding:17px}.admin-stats strong{font-size:1.8rem}.admin-search{grid-template-columns:1fr;padding:14px}.admin-search input,.admin-search select{font-size:1rem}.admin-search button{min-height:42px}.admin-stats span{font-size:.7rem}#admin-content article{padding:17px}#admin-content .heading h2{font-size:.83rem}#admin-content .badge{font-size:.65rem}#text{padding:18px;min-height:280px;font-size:1rem}footer{flex-direction:column;gap:8px;text-align:center;padding:14px 0}.actions{gap:7px}.actions button{font-size:.8rem;padding:10px 12px}dialog{padding:26px}.product-shell{padding:0 22px}.product-shell header{min-height:82px;flex-wrap:wrap;padding:18px 0;gap:15px}.product-nav{order:3;width:100%;justify-content:space-between}.product-nav a{font-size:.72rem}.product-hero{grid-template-columns:1fr;padding:50px 0 35px;gap:28px}.product-hero h1{font-size:3.5rem}.product-hero .lead{font-size:.95rem}.product-visual{max-width:430px;width:100%;margin:auto;padding:10px}.demo-window{transform:rotate(-2deg)}.demo-body{padding:24px}.demo-input{min-height:125px;padding:20px}.product-strip{display:grid;grid-template-columns:1fr 1fr;font-size:.72rem;gap:16px}.product-section{padding-top:55px}.section-intro{display:block}.section-intro>p{margin-top:17px}.feature-grid{gap:10px}.feature-card{padding:20px}.feature-card .step-number{margin-bottom:24px}.pricing-grid{grid-template-columns:1fr;gap:16px}.price-card{padding:28px}.purchase-card{display:block;padding:27px;margin-top:45px}.faq-layout{grid-template-columns:1fr;gap:25px}.product-shell footer{margin-top:45px}.product-shell footer a{margin:0 8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* Keep the compact action cards readable without squeezing their step labels. */
@media(max-width:1000px){.quick-card{grid-template-columns:minmax(0,1fr) 20px;gap:7px 12px}.quick-card .step-number{grid-column:1;grid-row:1;margin-bottom:5px}.quick-card strong{grid-column:1;grid-row:2}.quick-card small{grid-column:1;grid-row:3}.quick-card .card-arrow{grid-column:2;grid-row:1/4}}
.product-visual:before{inset:0}
.offline-shell{max-width:640px;margin:12vh auto;padding:35px}.offline-shell img{margin-bottom:28px}.offline-shell a{display:inline-block;margin:15px 0}

.documentation-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.demo-document-label{display:block;font-size:.58rem;letter-spacing:.12em;color:var(--accent);margin-bottom:14px}.product-hero h1{font-size:clamp(3rem,5.1vw,4.8rem)}.product-hero .primary{font-size:.8rem}.product-hero .lead{font-size:1rem}.device-chip{max-width:100%;white-space:normal}.demo-footer{flex-wrap:wrap}@media(max-width:720px){.documentation-grid{grid-template-columns:1fr}.product-hero h1{font-size:clamp(2.5rem,10.3vw,3.5rem)}.product-hero .lead{font-size:.93rem}.product-hero .primary{padding:12px 10px}.demo-top span{font-size:.5rem}.device-chip{font-size:.68rem}}

.time-comparison .install-steps{margin-bottom:0}.time-comparison .install-steps li{font-size:.88rem}.time-benefit{border-top:1px solid #41637e;padding-top:18px;color:var(--accent);font-weight:550}.product-hero h1{font-size:clamp(2.7rem,4.6vw,4.25rem)}@media(max-width:720px){.product-hero h1{font-size:clamp(2rem,8.8vw,3rem)}}




.connection-panel .status-orb.online{background:#3bdd8f;box-shadow:0 0 0 6px #3bdd8f24,0 0 15px #3bdd8f80}
.admin-config-card{margin-top:26px;border:1px solid #35516b;border-radius:16px;background:#0d1925;padding:20px}.admin-config-card summary{font-weight:650;color:var(--accent)}.admin-config-card form{max-width:800px}.admin-config-card textarea{min-height:280px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.84rem;line-height:1.55}.admin-config-card input{max-width:600px}.admin-config-card .hint{margin:14px 0}

.legal-shell{max-width:980px;margin:0 auto;padding:0 28px 40px}.legal-header{min-height:100px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.legal-card{margin:40px 0 0;padding:clamp(24px,5vw,54px);border:1px solid var(--line);border-radius:22px;background:linear-gradient(145deg,#131e2a,#0e1620)}.legal-card>h1{font-size:clamp(2rem,5vw,3.3rem)}.legal-card>p{max-width:740px}.legal-card section{padding:26px 0;border-top:1px solid var(--line)}.legal-card section:first-of-type{margin-top:32px}.legal-card h2{font-size:1.15rem;margin-bottom:12px}.legal-card p,.legal-card address{font-size:.94rem;line-height:1.8;color:#c2d2e1;max-width:760px}.legal-card address{font-style:normal}.legal-card code{color:var(--accent);font-size:.87em}.legal-card a{overflow-wrap:anywhere}.legal-shell footer{border-top:1px solid var(--line)}.legal-shell footer a{margin-left:18px}.auth-legal{font-size:.73rem;line-height:1.6;margin-top:18px}@media(max-width:720px){.legal-shell{padding:0 16px 32px}.legal-header{min-height:84px}.legal-header .quiet{font-size:.72rem;padding:9px}.legal-card{margin-top:22px}.legal-card section{padding:21px 0}.legal-shell footer a{margin:0 9px}}

.login-shell{max-width:1120px;margin:0 auto;min-height:100vh;padding:0 28px 60px}.login-header{display:flex;align-items:center;min-height:100px;border-bottom:1px solid var(--line)}.login-card{max-width:510px;margin:clamp(48px,10vh,110px) auto 0;padding:clamp(28px,5vw,48px);border:1px solid #35516b;border-radius:24px;background:linear-gradient(145deg,#162637,#0d1723);box-shadow:0 24px 80px #0004}.login-card h1{font-size:clamp(2rem,4vw,2.8rem)}.login-card>p{line-height:1.7}.login-card form{margin-top:28px}.login-card label{margin-top:18px}.login-card form .primary{width:100%;margin-top:22px}.login-card #try-again{width:100%;margin-top:8px}.login-card #login-feedback{min-height:26px;font-size:.83rem}.login-modes{display:flex;gap:8px;margin:24px 0 2px;padding:4px;border:1px solid var(--line);border-radius:13px;background:#09121c}.login-modes a{flex:1;padding:10px 14px;border-radius:9px;text-align:center;color:var(--muted);font-size:.82rem;text-decoration:none}.login-modes a[aria-current="page"]{background:#1c3b52;color:var(--accent);font-weight:650}.login-card .login-legal{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:22px;margin-top:24px;font-size:.78rem}.login-card .error{color:var(--danger)}@media(max-width:720px){.login-shell{padding:0 16px 32px}.login-header{min-height:82px}.login-card{margin-top:42px;padding:28px 22px}}
/* Preview shared or imported text before replacing the editor. */
.import-dialog{width:min(92vw,680px);max-height:90dvh;overflow:auto}
.import-dialog textarea{width:100%;resize:vertical}
.import-dialog button{margin-top:12px}
.product-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:36px}.product-photo{margin:0;padding:0;min-width:0}.product-photo img{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 24px 28px #0005)}#hardware-price{color:var(--text);font-size:1.25rem;font-weight:600}.purchase-card #buy{flex-shrink:0;text-align:center}@media(max-width:720px){.product-hero{grid-template-columns:1fr}.product-photo{max-width:100%;padding:0}.purchase-card #buy{display:block}}
.purchase-card{display:grid;grid-template-columns:minmax(200px,.7fr) minmax(0,1.3fr);gap:40px}.purchase-photo{margin:0;min-width:0}.purchase-photo img{display:block;width:100%;height:360px;object-fit:contain;filter:drop-shadow(0 20px 24px #0005)}.purchase-content{min-width:0}.purchase-content #buy{margin-top:16px}@media(max-width:720px){.purchase-card{grid-template-columns:1fr;gap:22px}.purchase-photo img{height:260px}.purchase-content #buy{width:100%}}
.start-install-panel{display:flex;align-items:center;gap:14px;padding:17px;border:1px solid #31526b;background:#14283875;border-radius:15px;margin:0 0 22px}.start-install-panel>img{border-radius:11px;flex-shrink:0}.start-install-panel>div{flex:1;min-width:0}.start-install-panel strong{font-size:.82rem}.start-install-panel p{font-size:.76rem;margin:4px 0 0}.start-install-panel button{font-size:.76rem;max-width:240px}#install-dialog>img{border-radius:15px;margin-bottom:18px}#install-dialog h2{font-size:1.35rem}#install-dialog .install-steps{padding-left:22px}#install-dialog .install-steps li{font-size:.86rem}@media(max-width:720px){.start-install-panel{flex-wrap:wrap}.start-install-panel button{width:100%;max-width:none}}

#support-open{font-size:.75rem;margin-left:auto}#support-dialog h2,#delete-user-dialog h2{font-size:1.4rem}#support-message{min-height:150px}#support-identity,#delete-user-identity{overflow-wrap:anywhere}.admin-table td{overflow-wrap:anywhere}.app-shell>header{flex-wrap:wrap}@media(max-width:550px){#support-open{order:3;width:100%;margin:0;padding:7px}.app-shell>header #account{margin-left:auto}.app-shell>header{gap:8px}}

#clear,#logout{background:#c62828;border-color:#c62828;color:#fff}#clear:hover:not(:disabled),#logout:hover:not(:disabled){background:#ad2020;border-color:#ad2020;color:#fff}

.connection-panel-split{display:block}.connection-device{margin-top:16px}.connection-device>strong{display:block;color:var(--muted);overflow-wrap:anywhere;margin-bottom:12px}.connection-checks{display:grid;grid-template-columns:1fr 1fr;gap:12px}.connection-check{display:flex;align-items:center;gap:14px;padding:15px;border:1px solid var(--line);border-radius:12px;background:#101c28;min-width:0}.connection-check>div{display:flex;flex-direction:column;gap:3px}.connection-check>div>span{color:var(--muted);font-size:.72rem}.connection-panel-split #connection{margin-top:14px;font-size:.75rem}@media(max-width:360px){.connection-check{gap:10px;padding:12px}.connection-check strong{font-size:.75rem}}

/* Indeterminate progress stays visible until the draft request settles. */
#ai-status.is-loading{display:flex;align-items:center;gap:14px;padding:17px 18px;margin:16px 0;border:1px solid #90d5ff50;border-radius:14px;background:linear-gradient(120deg,#152e41,#101e2b);color:var(--accent);font-weight:600;line-height:1.5}
#ai-status.is-loading::before{content:"";display:block;flex:0 0 auto;width:22px;height:22px;border:3px solid #90d5ff30;border-top-color:var(--accent);border-right-color:var(--accent);border-radius:50%;animation:rd-draft-spin .9s linear infinite}
@keyframes rd-draft-spin{to{transform:rotate(360deg)}}

#premium-status.is-active,#premium-status.is-cancelled{padding:14px 16px;border:1px solid;border-radius:12px;font-weight:600}
#premium-status.is-active{color:#3bdd8f;border-color:#3bdd8f50;background:#3bdd8f0d}
#premium-status.is-cancelled{color:#ffaaa6;border-color:#ffaaa650;background:#ffaaa60d}

.setup-help{margin:22px 0;padding:20px;border:1px solid #90d5ff40;border-radius:14px;background:#90d5ff08}.setup-help h2{font-size:1.1rem;margin:0 0 8px}.setup-help p{margin:0 0 16px}.setup-help-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.guide-link{display:inline-block;line-height:1.5;overflow-wrap:anywhere}.guide-link span{display:block;font-size:.75rem;font-weight:400;color:var(--muted);margin-top:3px}.setup-help-compact{padding:14px 16px;margin:18px 0}.setup-help-compact .guide-link{font-size:.86rem}@media(max-width:550px){.setup-help-actions>*{width:100%;text-align:center}}

#guide-dialog{position:fixed;inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#080d13;overflow:hidden}#guide-frame{display:block;width:100%;height:100%;border:0}

#guide-dialog[open]{display:flex;flex-direction:column}#guide-frame{flex:1;min-height:0}.guide-toolbar{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;background:#101822;border-bottom:1px solid #35516b}.guide-toolbar button{font-size:.85rem;padding:10px 12px}.guide-toolbar a{font-size:.8rem}

#pair-success-dialog{max-width:480px;max-height:calc(100dvh - 32px);overflow-y:auto}#pair-success-title{font-size:1.65rem;line-height:1.2}.pair-success-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;border:1px solid #90d5ff55;background:#90d5ff15;color:var(--accent);margin-bottom:24px}.pair-success-icon svg{width:34px;height:34px}.pair-success-details{margin:22px 0;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:var(--field)}.pair-success-details>div+div{margin-top:12px}.pair-success-details dt{font-size:.7rem;color:var(--muted)}.pair-success-details dd{margin:3px 0 0;color:var(--text);font-size:.9rem;overflow-wrap:anywhere}.pair-success-actions{display:flex;flex-direction:column;gap:8px;margin-top:22px}.pair-success-actions button{width:100%}#pair-success-dialog .eyebrow{font-size:.62rem}#pair-form button[aria-busy=true]{cursor:wait}
:root .trial-notice{padding:16px 18px;border:1px solid #3b6682;border-radius:14px;background:#102c40;color:#c8eaff;line-height:1.6}
.order-card{margin:20px 0;padding:22px;border:1px solid var(--line,#2c4357);border-radius:18px;background:#101c28;overflow-wrap:anywhere}
.order-card h2{font-size:1.3rem}.order-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:18px 0}.order-columns p{margin:5px 0}.order-card p button{margin-left:12px}
#shipping-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}
@media(max-width:620px){.order-columns{grid-template-columns:1fr}.order-card{padding:16px}.order-card .heading{align-items:flex-start;flex-wrap:wrap}}

.ai-privacy-note{padding:14px 16px;border-left:3px solid #90d5ff;background:rgba(144,213,255,.06);border-radius:0 10px 10px 0;font-size:.84rem;line-height:1.65;overflow-wrap:anywhere}.ai-privacy-note a,.ai-privacy-details a{color:#90d5ff;text-underline-offset:3px}.ai-privacy-details{margin-top:22px}
/* Compact start menu: two square tiles per row, including on phones. */
[data-view=start] .writing-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:640px;margin:0 auto 20px}
[data-view=start] .writing-choice{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;aspect-ratio:1;min-width:0;width:100%;padding:22px 12px;border:1px solid #365269;border-radius:20px;background:linear-gradient(145deg,#192c3f,#101c2a);color:var(--text);text-align:center}
[data-view=start] .writing-choice:hover{border-color:var(--accent);background:#1d3449;transform:translateY(-2px)}
[data-view=start] .choice-icon{width:54px;height:54px;flex-shrink:0;color:var(--accent)}
[data-view=start] .writing-choice strong{font-size:1.1rem;font-weight:650;line-height:1.35;letter-spacing:-.02em}
[data-view=start] .choice-crown{position:absolute;top:12px;right:14px;font-size:17px;line-height:1}
[data-view=start] .start-privacy-link{text-align:center;font-size:.76rem;margin:0 0 20px}
[data-view=start] .start-install-panel{margin:20px 0 0}
@media(max-width:720px){[data-view=start] .writing-choices{gap:12px}[data-view=start] .writing-choice{padding:16px 8px;gap:12px;border-radius:16px}[data-view=start] .choice-icon{width:36px;height:36px}[data-view=start] .writing-choice strong{font-size:.9rem}[data-view=start] .choice-crown{top:9px;right:10px;font-size:14px}}
@media(max-width:360px){[data-view=start] .writing-choices{gap:10px}[data-view=start] .writing-choice{gap:8px;padding:12px 5px}[data-view=start] .choice-icon{width:28px;height:28px}[data-view=start] .writing-choice strong{font-size:.78rem}}
@media(prefers-reduced-motion:reduce){[data-view=start] .writing-choice:hover{transform:none}}

/* Direct writing modules, with the AI input integrated into the page. */
.writing-module .heading{margin-bottom:24px;align-items:center}.module-title{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.module-title h1{font-size:clamp(1.2rem,2.3vw,1.8rem);line-height:1.25}.module-title svg{display:block;width:32px;height:32px;color:var(--accent)}
.writing-module #clear{padding:9px 14px;min-height:40px;font-size:.8rem}.writing-module .module-ai-input{margin:0 0 22px;padding:0;border:0;background:none}.writing-module label{margin:0 0 8px;font-size:.86rem}.writing-module #notes{min-height:130px;margin:0 0 10px}.writing-module #generate{width:100%;margin:0}.writing-module #ai-status:empty,.writing-module #send-status:empty{display:none}.writing-module #text{min-height:200px;padding:16px;margin:0}.writing-module .meta{font-size:.72rem;margin:8px 0 20px;gap:8px}.writing-module .module-send{margin-top:6px}.writing-module #send{width:100%;margin-top:12px}.writing-module .actions{margin-top:14px;gap:8px;flex-wrap:wrap}.writing-module .actions button{font-size:.76rem;min-height:38px;padding:8px 12px}.writing-module .module-privacy{font-size:.72rem;margin:18px 0 0;line-height:1.5}
@media(max-width:720px){.writing-module .heading{gap:10px;flex-wrap:nowrap}.module-title{gap:9px}.module-title svg{width:26px;height:26px}.writing-module .module-title h1{font-size:1.16rem}.writing-module #clear{padding:8px 11px}.writing-module #text{min-height:180px}.writing-module .actions{justify-content:flex-start}}
