:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#332330;background:#fbf8f6;font-synthesis:none;--muted:#81797c;--line:#ece8e6;--accent:#be3e24;--soft:#f0ebe9;--sidebar:#f4f1ef;--danger:#a74239;--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button{color:inherit}button:focus-visible,a:focus-visible{outline:2px solid #cc4a2c;outline-offset:3px}input,textarea,select{outline-color:#cc4a2c}button[hidden],[hidden]{display:none!important}a{color:var(--accent)}
.app-shell{height:100vh;height:var(--viewport-height,100dvh);display:grid;grid-template-columns:288px minmax(0,1fr);max-width:1800px;margin:0 auto}.sidebar{display:flex;flex-direction:column;background:var(--sidebar);padding:26px 18px calc(14px + var(--safe-bottom));border-right:1px solid var(--line);min-height:0}.brand{display:flex;gap:11px;align-items:center;color:inherit;text-decoration:none;font-weight:650;font-size:16px;letter-spacing:-.3px;padding:0 5px}.brand-icon{width:36px;height:36px;background:#e9e2df;border-radius:11px;display:grid;place-items:center;color:var(--accent);font-size:25px}.brand small{font-size:10px;display:block;font-weight:400;letter-spacing:.1px;color:var(--muted);margin-top:5px}.sidebar-actions{margin-top:28px}.primary{background:var(--accent);color:white;border:0;border-radius:12px;padding:12px 17px;font-size:14px;font-weight:550}.primary span{font-size:18px;margin-right:5px}.wide{width:100%}.search-field{margin:18px 0 22px;display:flex;align-items:center;gap:8px;padding:0 11px;background:#eee9e7;border-radius:10px;color:#8d7f85}.search-field span{font-size:24px;line-height:1}.search-field input{border:0;min-width:0;width:100%;background:transparent;padding:11px 0;font-size:13px}.list-heading{display:flex;justify-content:space-between;align-items:center;padding:0 7px;font-size:11px;color:var(--muted);margin-bottom:10px}.text-button{background:none;border:0;padding:5px 0;color:var(--muted);font-size:11px}.sessions{overflow-y:auto;flex:1;min-height:80px}.session-row{width:100%;display:block;text-align:left;border:0;background:none;padding:12px 12px;margin:3px 0;border-radius:11px}.session-row:hover,.session-row.active{background:#e9e3e0}.session-row .row-title{display:flex;gap:6px;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-title span:first-child{flex:1;overflow:hidden;text-overflow:ellipsis}.row-pin{font-size:10px;color:var(--accent)}.session-row small{display:block;color:var(--muted);font-size:11px;margin-top:6px}.list-empty{font-size:12px;line-height:1.8;color:var(--muted);padding:22px 10px}.sidebar-footer{border-top:1px solid #e6e1de;margin-top:12px;padding-top:10px}.nav-button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;padding:11px 10px;border-radius:10px;text-align:left;font-size:13px}.nav-button:hover{background:#ebe6e4}.nav-button>span:first-child{font-size:18px;width:19px;text-align:center}.local-badge{margin-left:auto;font-size:9px;color:#897c81;border:1px solid #e2dbd7;border-radius:5px;padding:2px 5px}.nav-button i{width:6px;height:6px;background:#bdaea6;border-radius:50%;margin-left:auto}.nav-button i.verified{background:#3f9076}
.workspace{min-height:0;display:flex;flex-direction:column;background:#fff}.topbar{height:88px;flex-shrink:0;display:flex;gap:10px;align-items:center;border-bottom:1px solid #f3f0ef;padding:0 34px}.conversation-heading{min-width:0;flex:1}.topbar h1{font-size:15px;margin:0;font-weight:600;letter-spacing:-.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar p{font-size:11px;color:var(--muted);margin:6px 0 0}.icon-button{border:0;background:transparent;font-size:25px;padding:5px 9px;line-height:1.2;border-radius:9px}.icon-button:hover{background:var(--sidebar)}.conversation{flex:1;overflow:auto;overscroll-behavior:contain;padding:30px max(28px,calc((100% - 760px)/2));scroll-behavior:smooth}.welcome{max-width:580px;margin:clamp(15px,10vh,100px) auto 30px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2px;color:#958089;margin-bottom:18px}.welcome h2{font-size:clamp(26px,3.2vw,38px);font-weight:500;letter-spacing:-1.4px;line-height:1.4;margin:0 0 15px}.welcome>p{color:var(--muted);font-size:13px;line-height:1.9;max-width:440px;margin:0}.welcome-icon{width:46px;height:46px;margin-bottom:25px;background:var(--soft);border-radius:14px;display:grid;place-items:center;font-size:26px;color:var(--accent)}.message{font-size:14px;line-height:1.85;margin:0 0 25px;overflow-wrap:anywhere}.message .message-label{font-size:10px;font-weight:600;color:#86757c;margin-bottom:7px;letter-spacing:.6px}.message .message-body{white-space:pre-wrap}.message.user{margin-left:auto;max-width:88%;width:fit-content;background:#f3f0ee;border-radius:17px 17px 3px 17px;padding:12px 17px}.message.user .message-label{display:none}.message.system,.message.tool{border-left:2px solid #e0d8d4;padding-left:13px;color:#81787c;font-size:12px}.message.pending .message-body:after{content:'●';font-size:9px;color:#987c88;animation:pulse 1.4s infinite;margin-left:5px}@keyframes pulse{50%{opacity:.25}}.error-notice{color:var(--danger);background:#fbf1ee;border:1px solid #f0dcd6;border-radius:10px;font-size:12px;padding:12px 14px;line-height:1.7;margin:12px 0}.composer-wrap{padding:10px max(28px,calc((100% - 760px)/2)) calc(12px + var(--safe-bottom));flex-shrink:0}.composer{border:1px solid #e7e1de;border-radius:19px;background:#fdfcfb;padding:14px 14px 10px;box-shadow:0 3px 15px #36263106}.composer textarea{resize:none;border:0;outline:0;display:block;background:transparent;width:100%;max-height:180px;min-height:35px;padding:2px 2px 9px;font-size:14px;line-height:1.6}.composer textarea::placeholder{color:#a49b9f}.composer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px}.composer-options{display:flex;align-items:center;gap:5px;min-width:0}.composer select{border:0;background:transparent;font-size:11px;color:#7b666f;max-width:160px;padding:6px 0;min-width:0}.send-button{background:var(--accent);color:#fff;width:31px;height:31px;border:0;border-radius:10px;font-size:24px;line-height:1;flex-shrink:0}.stop-button{font-size:12px}.run-status{font-size:11px;color:var(--accent);padding:0 5px 10px}.mobile-only{display:none}
dialog{color:inherit;border:1px solid var(--line);padding:0;box-shadow:0 20px 80px #2f212a22}dialog::backdrop{background:#281b2452;backdrop-filter:blur(3px)}.panel-dialog{width:min(620px,calc(100% - 28px));max-height:88dvh;border-radius:23px}.panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:25px 26px 17px;border-bottom:1px solid var(--line)}.panel-header h2{font-size:19px;font-weight:600;letter-spacing:-.5px;margin:0}.panel-header p{font-size:11px;color:var(--muted);margin:8px 0 0;line-height:1.7}.panel-body{padding:21px 26px 26px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:25px 0 12px}.section-heading:first-child{margin-top:0}.section-heading h3{font-size:13px;font-weight:600;margin:0}.section-heading button,.secondary-button{background:#f4f1ef;border:1px solid #e5dfdc;border-radius:8px;color:var(--accent);padding:8px 11px;font-size:11px}.field{display:block;margin:15px 0;font-size:11px;font-weight:550}.field>span{display:block;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;font-weight:400;background:#fbfaf9;border:1px solid #e6e1de;border-radius:9px;padding:11px;font-size:13px;color:#3c2a36}.field textarea{min-height:120px;resize:vertical}.field small{display:block;color:var(--muted);font-weight:400;font-size:10px;line-height:1.7;margin-top:6px}.field-row{display:flex;gap:14px}.field-row>*{flex:1;min-width:0}.check-field{display:flex;align-items:center;gap:8px;font-size:12px;margin:16px 0}.check-field input{accent-color:var(--accent)}.panel-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.panel-actions .primary{font-size:12px;padding:10px 14px;border-radius:9px}.quiet-note{font-size:11px;line-height:1.8;color:var(--muted);margin:12px 0}.status-box{padding:13px 15px;border:1px solid #e9e2df;background:#f8f5f3;border-radius:11px;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.status-box.bad{background:#fcf3ef;border-color:#efdcd3;color:#965b42}.provider-card,.skill-card{padding:14px;border:1px solid var(--line);border-radius:11px;margin:10px 0}.card-title{font-size:13px;font-weight:550;margin-bottom:6px}.card-detail{font-size:10px;color:var(--muted);line-height:1.8;overflow-wrap:anywhere}.card-actions{display:flex;gap:13px;margin-top:10px}.card-actions button{border:0;background:none;color:var(--accent);padding:3px 0;font-size:11px}.card-actions button.danger,.danger{color:var(--danger)}.tag{font-size:9px;color:#775d68;background:#f3ece9;padding:2px 5px;border-radius:4px;margin-left:5px;font-weight:400}.panel-tabs{display:flex;gap:6px;margin-bottom:20px;background:#f3f0ee;padding:4px;border-radius:9px}.panel-tabs button{border:0;flex:1;padding:8px;background:none;border-radius:7px;font-size:12px;color:var(--muted)}.panel-tabs button.active{background:white;color:#52394a;box-shadow:0 1px 4px #36253010}.empty-card{text-align:center;padding:27px 15px;color:var(--muted);font-size:12px;line-height:1.9;border:1px dashed #e6dfdc;border-radius:12px}.action-dialog{width:min(350px,calc(100% - 32px));border-radius:17px;padding:9px}.action-dialog h3{font-size:12px;color:var(--muted);font-weight:400;margin:10px 12px}.action-item{display:block;width:100%;text-align:left;background:none;border:0;border-radius:9px;padding:12px;font-size:13px}.action-item:hover{background:#f4f0ee}.toast{position:fixed;left:50%;bottom:calc(28px + var(--safe-bottom));transform:translateX(-50%);padding:11px 18px;border-radius:12px;background:#3b2935;color:white;font-size:12px;z-index:1000;box-shadow:0 5px 20px #1f151c22;max-width:calc(100% - 30px);line-height:1.6}.storage-meter{height:5px;background:#ede6e2;border-radius:4px;overflow:hidden;margin:10px 0}.storage-meter span{display:block;height:100%;background:#957985;width:0}.diagnostic-json{font-size:10px;white-space:pre-wrap;max-height:180px;overflow:auto;background:#f9f6f5;border-radius:9px;padding:10px}.provider-form{border-top:1px solid var(--line);margin-top:18px;padding-top:8px}
@media(min-width:1300px){.sidebar{padding-top:30px}.topbar{height:94px}}
@media(max-width:760px){.app-shell{display:block}.sidebar{height:100%;padding-top:calc(22px + env(safe-area-inset-top,0px));border:0}.brand{font-size:19px}.brand small{font-size:11px}.brand-icon{width:43px;height:43px}.sidebar-actions{margin-top:24px}.search-field input{font-size:16px}.session-row{padding:15px 12px}.session-row .row-title{font-size:14px}.session-row small{font-size:11px}.list-heading{font-size:12px}.nav-button{font-size:14px;padding:13px 10px}.workspace{height:100%;display:none}.app-shell.in-conversation .sidebar{display:none}.app-shell.in-conversation .workspace{display:flex}.mobile-only{display:block}.topbar{height:calc(70px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 13px 0;gap:5px}.topbar h1{font-size:14px}.topbar p{font-size:10px}.icon-button{font-size:27px}.conversation{padding:23px 20px}.welcome{margin:7vh auto 20px}.welcome h2{font-size:29px;letter-spacing:-1px}.welcome>p{font-size:12px}.composer-wrap{padding:8px 12px calc(9px + var(--safe-bottom))}.composer{padding:12px 12px 9px;border-radius:18px}.composer textarea{font-size:16px}.composer select{font-size:11px;max-width:128px}.message{font-size:14px}.message.user{max-width:91%}.panel-dialog{width:100%;max-height:94dvh;margin:auto 0 0;border-radius:22px 22px 0 0;border-bottom:0;padding-bottom:var(--safe-bottom)}.panel-header{padding:23px 20px 16px}.panel-body{padding:17px 20px 25px}.field input,.field select,.field textarea{font-size:16px}.field-row{gap:10px}.field-row .field{min-width:0}.field-row input{font-size:16px}.primary{font-size:14px}.composer-options{gap:6px}.panel-tabs button{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important}}

.brand-name{line-height:1.25}.brand-name small{line-height:1.5}

.settings-section{margin:22px 0;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.settings-section>summary{font-size:13px;font-weight:550;cursor:pointer}.settings-section form{padding-top:8px}

.site-shell{max-width:1120px;margin:auto;padding:0 32px;background:#fbf8f6;min-height:100dvh}.site-header{display:flex;align-items:center;gap:24px;padding:28px 0;border-bottom:1px solid var(--line)}.site-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;font-size:13px;font-weight:650;letter-spacing:-.3px}.site-header nav{margin-left:auto;display:flex;gap:23px}.site-header nav a{font-size:12px;text-decoration:none;color:var(--muted)}.site-header nav a.active{color:var(--accent);font-weight:600}.site-header>button{font-size:10px;white-space:nowrap}.site-hero{padding:85px 0 65px;max-width:810px}.site-hero h1{font-size:clamp(36px,6vw,65px);font-weight:520;letter-spacing:-2px;line-height:1.15;margin:18px 0 24px}.site-hero>p{font-size:16px;line-height:1.9;color:var(--muted);max-width:650px}.site-cta{display:flex;gap:11px;align-items:center;margin:28px 0 18px}.site-cta a{text-decoration:none;display:inline-block;padding:13px 19px;font-size:12px;border-radius:10px}.site-hero .site-platform-note{font-size:11px}.site-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:55px}.site-feature-grid article{padding:25px;border:1px solid #e7e2df;border-radius:18px;background:white}.site-feature-grid article>span{font-size:25px;color:var(--accent)}.site-feature-grid h2{font-size:15px;font-weight:600;margin-top:23px}.site-feature-grid p{font-size:12px;color:var(--muted);line-height:1.9}.site-how{padding:25px 0 50px}.site-how h2{font-size:23px;font-weight:500}.site-how ol{padding-left:20px;color:var(--muted);font-size:13px;line-height:2.6}.site-footer{display:flex;justify-content:space-between;gap:20px;font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding:25px 0 35px}.site-page-heading{padding:50px 0 28px}.site-page-heading h1{font-size:36px;font-weight:500;letter-spacing:-1px;margin:15px 0}.site-page-heading p{font-size:14px;color:var(--muted);line-height:1.8;max-width:720px}.site-page-heading button{margin-top:16px}.language-field{margin-top:0;padding-bottom:20px;border-bottom:1px solid var(--line)}
@media(max-width:760px){.site-shell{padding:0 20px}.site-header{gap:12px;flex-wrap:wrap;padding:22px 0}.site-brand{font-size:12px;max-width:240px}.site-header nav{order:3;width:100%;margin:7px 0 0;gap:12px 24px;flex-wrap:wrap}.site-header>button{margin-left:auto;padding:6px 9px}.site-hero{padding:55px 0 32px}.site-hero h1{font-size:39px;letter-spacing:-1.3px}.site-hero>p{font-size:14px}.site-feature-grid{grid-template-columns:1fr;gap:11px;margin-bottom:25px}.site-feature-grid article{padding:21px}.site-feature-grid h2{margin-top:14px}.site-feature-grid p{margin-bottom:0}.site-how{padding-bottom:25px}.site-footer{flex-direction:column;gap:8px}.site-page-heading{padding-top:35px}.site-page-heading h1{font-size:30px}}

.community-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0 55px}.community-grid .skill-card{margin:0;background:white;padding:20px}.community-grid .card-title{overflow-wrap:anywhere}.community-grid .card-detail{font-size:12px}.community-grid button{margin-top:12px}.skill-source{color:var(--accent)}#skill-editor textarea{min-height:260px;line-height:1.7;font-family:ui-monospace,SFMono-Regular,monospace}@media(max-width:760px){.community-grid{grid-template-columns:1fr}.card-actions{flex-wrap:wrap}}

#flash-controls{max-width:660px;margin:20px 0 55px}#flash-progress{width:100%;height:10px;accent-color:var(--accent);margin-top:22px}#flash-stage{margin-bottom:20px}

.site-shell.flashing .site-header nav{pointer-events:none;opacity:.5}.site-shell.flashing .site-brand{pointer-events:none}
.compatibility-gate{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;align-items:center;overflow:auto;background:#f5f2f1;padding:calc(26px + env(safe-area-inset-top,0px)) 22px calc(26px + var(--safe-bottom))}.compatibility-card{width:100%;max-width:460px;flex-shrink:0;margin:auto 0;background:#fff;border:1px solid #e7e2df;border-radius:23px;padding:30px;box-shadow:0 12px 55px #33233010}.compatibility-card>svg{display:block;margin-bottom:25px}.compatibility-card .eyebrow{font-size:9px;letter-spacing:1.5px;margin-bottom:14px}.compatibility-card h1{font-size:25px;font-weight:550;letter-spacing:-.6px;line-height:1.35;margin:0 0 17px}.compatibility-card p{font-size:13px;color:var(--muted);line-height:1.9}.compatibility-card .compatibility-reason{padding:12px 14px;border-radius:10px;background:#f5f1ef;color:#66525a;margin:19px 0 24px}.compatibility-card button{font-size:13px;white-space:normal;line-height:1.5}body.compatibility-locked{overflow:hidden}@media(max-width:480px){.compatibility-card{padding:25px 23px}.compatibility-card h1{font-size:23px}}

/* A notification must remain above native modal dialogs. */
.toast[popover]{top:auto;right:auto;margin:0;border:0;width:max-content}.dialog-toast{max-width:min(560px,calc(100% - 40px))}

/* The heading is fixed; only panel content scrolls, including on small iPhones. */
.panel-dialog{overflow:hidden;max-height:min(88dvh,900px)}
#panel-content{display:flex;flex-direction:column;max-height:inherit;min-height:0}
.panel-header{flex:0 0 auto;align-items:center;background:var(--bg,#fbf8f6);z-index:2}
.panel-header>div{min-width:0}.panel-header .icon-button{flex:0 0 44px;width:44px;height:44px;align-self:flex-start}
.panel-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.panel-header p:empty{display:none}.sidebar-actions{display:flex;gap:8px;align-items:center}.sidebar-actions .primary{flex:1}
.brand{min-width:0;gap:9px;font-size:16px;white-space:nowrap}.brand-icon{width:34px;height:34px;flex:0 0 34px;background:none;border-radius:0}.brand-name{white-space:nowrap;font-size:clamp(14px,4.25vw,18px);line-height:1.3;letter-spacing:-.4px}
.site-brand{white-space:nowrap;min-width:0}.site-brand img{flex:0 0 34px}.site-brand span{white-space:nowrap}.topbar h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){.panel-dialog{inset:0;width:100%;height:var(--viewport-height,100dvh);max-height:var(--viewport-height,100dvh);margin:0;border:0;border-radius:0;padding:0}#panel-content{height:100%;max-height:100%}.panel-header{padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px}.panel-body{padding:16px 20px calc(24px + var(--safe-bottom))}.sidebar .brand{font-size:16px}.sidebar .brand-icon{width:34px;height:34px}.site-header{padding-top:calc(16px + env(safe-area-inset-top,0px))}.site-header nav a{padding:6px 0;min-height:32px}.site-brand{max-width:none}.site-brand span{font-size:12px}}
@media(max-width:760px){.panel-dialog{max-width:100%}}

/* Mobile application surfaces share one canvas; only their content scrolls. */
:root{--bg:#fff;--sidebar:#fff;--muted:#776a70;--line:#e9ebed;--soft:#f6f3f2;background:#fff;color:#332330;color-scheme:light}
html,body{background:#fff;overscroll-behavior-y:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.harness-surface{position:fixed;inset:0;overflow:hidden}
.harness-surface .app-shell{position:fixed;top:var(--viewport-top,0px);left:0;right:0;height:var(--viewport-height,100dvh);margin:0 auto}
.sidebar{background:#fff;padding:22px 22px calc(16px + var(--safe-bottom));overflow:hidden;--accent:#be3e24;--muted:#858a88}
.session-home-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}
.session-home-header .brand{padding:0;gap:9px;min-width:0}
.session-home-header .brand-icon{width:26px;height:26px;flex-basis:26px}
.session-home-header .brand-name{font-size:16px;font-weight:600;letter-spacing:-.55px}
.session-home-header .icon-button{display:grid;place-items:center;flex:none;width:40px;height:44px;padding:8px;color:#553b4c}
.session-library-heading{display:flex;align-items:center;gap:10px;flex:none;margin:20px 0 12px;padding:0}
.session-library-heading h1{flex:0 1 auto;min-width:0;margin:0;font-size:clamp(20px,5.6vw,26px);font-weight:650;letter-spacing:-.8px;color:#30222b}
.device-status-row{display:flex;align-items:center;gap:6px;width:auto;max-width:46%;flex:0 1 auto;margin:0 0 0 auto;padding:8px 0;min-height:44px;border:0;background:transparent;text-align:left;color:#817a7d}
.device-status-row>i{flex:none;width:6px;height:6px;border-radius:50%;background:#c0b1a9}
.device-status-row>i.verified{background:#24835f}
.device-status-row>span:first-of-type{min-width:0}.device-status-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:400;line-height:1.3}
.device-status-row small{display:none}.device-status-row>span:last-child{font-size:16px}
.session-library-heading .icon-button{display:grid;place-items:center;width:40px;height:44px;flex:none;padding:8px;border-radius:12px}
.session-library-heading .icon-button[aria-expanded=true]{background:#f5f3f2}
.session-search-wrap{display:flex;align-items:center;gap:10px;flex:none;margin:0 0 10px}
.session-search-wrap .search-field{flex:1;min-width:0;margin:0}
.session-search-wrap>.text-button{font-size:14px;min-height:44px;color:#68535c;white-space:nowrap;padding:5px}
.search-field{margin:0;background:#f7f5f4;border:1px solid transparent;flex:none;padding:0 14px;gap:9px;border-radius:14px}
.search-field>img{opacity:.4;flex:none}
.search-field:focus-within{border-color:#ccc1bb;background:#fff}
.search-field input{appearance:none;-webkit-appearance:none;border-radius:0;padding:12px 0;font-size:16px;line-height:22px;color:#30212b}
.search-field input::placeholder{color:#9f999c;font-size:14px}
.sessions{min-height:0;overscroll-behavior:contain;scroll-padding:12px;position:relative}
.session-row{padding:15px 10px;margin:0;border-radius:12px}.session-row:hover,.session-row.active{background:#f7f4f3}
.session-row .row-title{font-size:15px;font-weight:500}.session-row small{font-size:11px;margin-top:6px;color:#9c9699}
.list-empty{padding:62px 26px 20px;text-align:center;max-width:300px;margin:0 auto;font-size:13px;line-height:1.8;color:#9d9699}
.list-empty strong{display:block;font-size:20px;font-weight:500;letter-spacing:-.5px;color:#53394a}
.list-empty p{margin:10px auto 0;max-width:230px;font-size:13px;line-height:1.9;color:#9a9295}
.archive-back{align-self:flex-start;margin:0 0 8px;font-size:13px}
.sidebar-footer{display:flex;gap:0;align-items:center;flex:none;margin-top:12px;padding:12px 0 0;border:0;background:#fff}
.sidebar-footer .nav-button{display:flex;justify-content:center;gap:9px;min-height:50px;width:auto;flex:0 0 96px;font-size:14px;padding:12px;border:1px solid #ece8e6;border-radius:16px;background:#fff}
.sidebar-footer .nav-button>span:first-child,.sidebar-footer .nav-button>span:last-child{font-size:14px;width:auto;color:#5f5559}
.sidebar-footer .primary{display:flex;align-items:center;justify-content:center;gap:10px;flex:1;min-height:50px;background:#be3e24;border-radius:16px;border:0;font-size:15px;font-weight:500}
.sidebar-footer .primary img{filter:invert(1);opacity:.9}.sidebar-footer .primary span{font-size:15px;margin:0}
.conversation-status{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;min-height:38px;padding:0 16px;border-bottom:1px solid var(--line);background:#fbf8f6}
.capture-status{display:flex;align-items:center;gap:6px;min-width:0;min-height:36px;margin:0;font-size:11px;font-weight:500;line-height:1.3;color:var(--muted)}
.capture-status-button{display:flex;align-items:center;border:0;background:transparent;padding:0;text-align:left;font:inherit;cursor:pointer}
.capture-status-button:disabled{cursor:default;opacity:1}
.capture-status-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.capture-status::before{content:"";width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#a59b9f}
.capture-status.sharing::before{background:#3f9076}
.conversation-device{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;flex:0 1 auto;max-width:58%;min-width:0;min-height:36px;border:0;background:transparent;color:var(--muted);font-size:11px;font-weight:500;line-height:1.3;text-align:right;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation-device::before{content:"";display:inline-block;width:14px;height:14px;flex:0 0 14px;background:currentColor;-webkit-mask:url("./icons/cpu.svg") center/contain no-repeat;mask:url("./icons/cpu.svg") center/contain no-repeat}
.conversation-device.connected{color:var(--accent)}
.conversation-status .capture-status-button,.conversation-status .conversation-device{font:500 11px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:11px!important;line-height:1.3!important;letter-spacing:0!important}
.conversation-status .capture-status-button{min-height:36px!important;padding:0!important}
.conversation-status .conversation-device{min-height:36px!important;padding:0!important}
.panel-dialog,.panel-header,.panel-body{background:#fff}
.panel-header{gap:8px;padding:16px 20px;min-height:68px}.panel-header>div{flex:1}.panel-header h2{font-size:18px;letter-spacing:-.3px}
.panel-header .icon-button{align-self:center}
.panel-header .icon-button:focus-visible{outline:0!important;outline-offset:0!important;box-shadow:none!important;background:transparent!important}
.panel-body{scroll-padding-top:16px;scroll-padding-bottom:28px}.provider-form{border:0;margin:0;padding:0}
.field{font-size:13px;margin:20px 0}.field input,.field select,.field textarea{background:#fcfaf9;border-color:#e8dedd;color:#332330;min-height:46px}
.field small,.quiet-note{font-size:12px;line-height:1.65}.check-field{font-size:14px;line-height:1.6}
.panel-actions button{min-height:40px}.secondary-button{font-size:13px;border-color:#e8dedd;background:#f7f4f3}
.section-heading h3{font-size:15px}.card-title{font-size:15px}.card-detail{font-size:12px}.card-actions button{font-size:13px;min-height:32px}
.settings-section{border-color:var(--line)}.settings-section>summary{font-size:15px;padding-block:16px}
@media(max-width:760px){
 .sidebar{padding:calc(14px + env(safe-area-inset-top,0px)) 22px calc(16px + var(--safe-bottom))}
 .panel-dialog{top:var(--viewport-top,0px);bottom:auto;height:var(--viewport-height,100dvh);max-height:var(--viewport-height,100dvh)}
 .panel-header{padding:calc(10px + env(safe-area-inset-top,0px)) 14px 10px;min-height:64px}
 .panel-body{padding:8px 20px calc(24px + var(--safe-bottom))}
 .field input,.field select,.field textarea{font-size:16px}
 .keyboard-visible{--safe-bottom:0px}
 .brand-name{overflow:hidden;text-overflow:ellipsis}
}

.settings-navigation{padding:8px 0 18px}
.settings-group{margin-bottom:24px;border:1px solid #ede9e7;border-radius:16px;overflow:hidden}
.settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:55px;width:100%;text-align:left;background:#fff;border:0;padding:14px 16px;font-size:15px;color:#362631}
.settings-row+.settings-row{border-top:1px solid #f1eeec}
.settings-row>span:last-child{font-size:21px;color:#a39a9e}
.settings-row:hover{background:#f9f8f7}
.standalone-mcp>.settings-section{border:0;margin:0;padding:0}
.standalone-mcp>.settings-section>summary{display:none}
@media(max-width:350px){.session-library-heading{gap:6px}.session-library-heading h1{font-size:20px}.device-status-row{max-width:34%}.device-status-row strong{font-size:11px}}

.clipboard-panel{border:1px solid var(--line);border-radius:14px;background:#f8f7f6;padding:14px;margin:0 0 10px;font-size:13px;line-height:1.6;max-height:45dvh;overflow:auto}.clipboard-panel>strong{font-size:14px}.clipboard-panel p{margin:8px 0;color:#74696e}.clipboard-panel textarea{font:inherit;font-size:16px;border:1px solid #e6e1de;border-radius:8px;padding:8px;background:#fff;resize:vertical}.clipboard-panel .panel-actions{margin-top:10px}

/* Layout width stays stable; only keyboard occlusion changes the usable height. */
.harness-surface .app-shell{left:var(--viewport-left,0px);right:auto;width:var(--viewport-width,100%)}
.panel-dialog,.action-dialog{position:fixed;inset:auto;left:calc(var(--viewport-left,0px) + var(--viewport-width,100vw)/2);top:calc(var(--viewport-top,0px) + var(--viewport-height,100dvh)/2);transform:translate(-50%,-50%);margin:0;max-width:calc(var(--viewport-width,100vw) - 24px);max-height:calc(var(--viewport-height,100dvh) - 24px)}
.action-dialog{overflow:auto}
.compact-viewport .app-shell{display:block}
.compact-viewport .sidebar{height:100%;border:0;padding:calc(14px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) calc(16px + var(--safe-bottom)) max(16px,env(safe-area-inset-left,0px))}
.compact-viewport .workspace{height:100%;display:none}
.compact-viewport .app-shell.in-conversation .sidebar{display:none}
.compact-viewport .app-shell.in-conversation .workspace{display:flex}
.compact-viewport .mobile-only{display:block}
.compact-viewport .topbar{height:calc(60px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) max(13px,env(safe-area-inset-right,0px)) 0 max(13px,env(safe-area-inset-left,0px));gap:5px}
.compact-viewport .conversation{min-height:0;padding:20px}
.compact-viewport .composer-wrap{padding:8px max(12px,env(safe-area-inset-right,0px)) calc(9px + var(--safe-bottom)) max(12px,env(safe-area-inset-left,0px))}
.harness-surface input,.harness-surface textarea,.harness-surface select,.panel-dialog input,.panel-dialog textarea,.panel-dialog select,.action-dialog input,.action-dialog textarea,.action-dialog select{font-size:16px}
.compact-viewport .composer-options{flex-wrap:wrap;gap:6px}
.compact-viewport .composer select{min-width:0;max-width:100%;text-overflow:ellipsis}
.compact-viewport .panel-dialog{top:var(--viewport-top,0px);left:var(--viewport-left,0px);transform:none;width:var(--viewport-width,100vw);max-width:var(--viewport-width,100vw);height:var(--viewport-height,100dvh);max-height:var(--viewport-height,100dvh);margin:0;border:0;border-radius:0;padding:0}
.compact-viewport #panel-content{height:100%;max-height:100%}
.compact-viewport .panel-header{padding:calc(10px + env(safe-area-inset-top,0px)) max(14px,env(safe-area-inset-right,0px)) 10px max(14px,env(safe-area-inset-left,0px));min-height:64px}
.compact-viewport .panel-body{padding:8px max(20px,env(safe-area-inset-right,0px)) calc(24px + var(--safe-bottom)) max(20px,env(safe-area-inset-left,0px))}
.compact-viewport .brand-name{overflow:hidden;text-overflow:ellipsis}
.compact-viewport.keyboard-visible{--safe-bottom:0px}
.compact-viewport.short-viewport .sidebar{padding-top:4px;padding-bottom:4px}
.compact-viewport.short-viewport .session-library-heading{margin:0}
.compact-viewport.short-viewport .sidebar-footer{margin-top:4px;padding-top:0}
.compact-viewport.short-viewport .topbar{height:44px;min-height:44px;padding-top:0}

.compact-viewport.short-viewport .composer-wrap{padding-top:4px;padding-bottom:4px}
.compact-viewport.short-viewport .panel-header{padding-top:4px;padding-bottom:4px;min-height:52px}
/* Conversation output stays compact; the original images remain available on demand. */
.message.activity{border:0;padding:0;color:var(--muted);font-size:12px;margin-bottom:14px}
.message.activity .message-label{display:none}
.message-images{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0;align-items:flex-start}
.screenshot-thumbnail{display:block;width:88px;height:128px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--soft);overflow:hidden;flex:0 0 auto;cursor:zoom-in}
.screenshot-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}
.image-preview{position:fixed;inset:0;margin:auto;width:min(96vw,900px);height:92dvh;max-width:96vw;max-height:92dvh;background:#111;border:0;border-radius:14px;padding:44px 12px 12px;overflow:auto}
.image-preview img{display:block;width:100%;height:100%;object-fit:contain}
.image-preview-close{position:absolute;top:4px;right:8px;color:#fff;background:#222;z-index:1}
.message-debug{font:11px system-ui;color:var(--muted);margin:8px 0}
.message-debug pre{font:11px ui-monospace,monospace;white-space:pre-wrap;max-height:240px;overflow:auto;background:var(--soft);padding:10px;border-radius:8px}
.task-plan{border:1px solid var(--line);border-radius:12px;padding:14px;margin:12px 0}
.task-plan p{margin:8px 0}.task-plan ol{padding-left:22px}.task-plan li{margin:5px 0}
.resume-run{margin-bottom:10px;min-height:42px}
.conversation{scroll-behavior:auto;overflow-anchor:none}
.device-info-step[data-complete="true"]{border-color:#ddcdc5;background:#fbf8f7}
.device-information-complete{font-size:13px;color:var(--accent);margin:8px 0}
.device-info-step[data-complete="true"] .primary{display:inline-block;background:transparent;color:var(--accent);border:0;padding:4px 0;min-height:0;text-align:left;text-decoration:underline;font-size:12px}
.panel-header>div{flex:1;min-width:0}
/* Sharing state stays readable above the Safari safe area. */

.composer-wrap{padding-bottom:calc(10px + var(--safe-bottom))}
#reasoning-select{max-width:116px;flex:0 1 auto;font-size:16px}
@media(prefers-reduced-motion:no-preference){.session-search-wrap:not([hidden]){animation:search-reveal .16s ease-out}@keyframes search-reveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}}

.compact-viewport .composer-wrap{padding-bottom:calc(9px + var(--safe-bottom))}
.conversation-surface{position:relative;display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}.conversation-surface>.conversation{min-height:0;width:100%}
.conversation-latest{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:11px;border:1px solid var(--line);border-radius:50%;color:var(--accent);background:var(--panel,#fff);box-shadow:0 2px 10px #30212b14;z-index:2}
.session-swipe{position:relative;overflow:hidden;border-radius:12px;margin-bottom:4px;touch-action:pan-y;--session-swipe-x:0px}
.session-swipe-front{position:relative;z-index:1;display:flex;align-items:stretch;background:var(--sidebar,#fff);transform:translateX(var(--session-swipe-x));transition:transform .18s ease;will-change:transform}
.session-swipe.swipe-dragging .session-swipe-front{transition:none}
.session-swipe-front .session-row{flex:1;min-width:0;margin:0;background:transparent}
.session-swipe.active .session-swipe-front{background:#f3f0ee}
.session-row-menu{flex:0 0 32px;font-size:16px;background:transparent;color:var(--muted);padding:0 6px}
.session-swipe-actions{position:absolute;inset:0 0 0 auto;display:flex;align-items:stretch;z-index:0}
.session-swipe-action{min-width:78px;border:0;background:#e9e0dc;color:#3c2a36;padding:12px 10px;font-size:12px}
.session-swipe-action:nth-child(2){background:#dccfc9}.session-swipe-action.danger-action{background:#b83d39;color:#fff}
@media(prefers-reduced-motion:reduce){.session-swipe-front{transition:none}}

/* The library switches in place; archives use the same list and row actions. */
.session-list-title{display:inline-flex;align-items:center;position:relative;margin:0;min-width:0;max-width:55%;font-size:1.5rem;line-height:1.3}
.session-list-title select{position:absolute;inset:0;width:100%;height:100%;min-height:44px;opacity:0;cursor:pointer;z-index:1}
.session-list-title{min-height:44px;gap:6px}.session-list-title:focus-within{outline:2px solid #cc4a2c;outline-offset:3px;border-radius:8px}.session-list-title>span{min-width:0;pointer-events:none}.session-list-title #session-list-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-list-title>span:last-child{flex:none;font-size:1rem}
.site-guide{max-width:960px;margin:72px auto;padding:0 24px}.site-guide>p{max-width:720px;color:var(--muted);line-height:1.7}.site-guide ol{list-style:none;counter-reset:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:24px 40px}.site-guide li{border-top:1px solid var(--line);padding-top:20px}.site-guide li p{color:var(--muted);line-height:1.75;margin:8px 0}.site-guide li h3{font-size:1.08rem;margin:0}.site-guide .guide-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}@media(max-width:620px){.site-guide ol{grid-template-columns:1fr}.site-guide{margin:44px auto}}
/* Real recording and illustrative UI examples have distinct captions. */
.site-showcase{margin:64px auto;max-width:1040px}.showcase-heading{max-width:720px;margin-bottom:24px}.showcase-heading h2{font-size:clamp(25px,3vw,36px);font-weight:550;letter-spacing:-.6px;line-height:1.25;margin:10px 0 14px}.showcase-heading>p{color:var(--muted);line-height:1.75;margin:0}.alarm-demo{margin:0;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#171015}.alarm-demo video{display:block;width:100%;max-height:620px;height:auto;object-fit:contain;background:#171015}.alarm-demo figcaption{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;padding:16px 20px;font-size:13px;line-height:1.5;color:var(--muted)}.alarm-demo figcaption a{color:var(--accent);font-weight:600;text-decoration:none}.gallery-heading{margin-top:52px}.gallery-heading h2{font-size:25px}.showcase-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.showcase-gallery figure{margin:0;min-width:0}.showcase-image-link{display:block;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 30px #30212b08}.showcase-image-link img{display:block;width:100%;height:auto}.showcase-gallery figcaption{padding:16px 3px 0}.showcase-gallery h3{font-size:16px;line-height:1.4;margin:0 0 7px;font-weight:600}.showcase-gallery p{color:var(--muted);font-size:13px;line-height:1.7;margin:0}.site-showcase a:focus-visible{outline:3px solid var(--accent);outline-offset:4px}@media(max-width:620px){.site-showcase{margin:42px auto}.alarm-demo{border-radius:15px}.alarm-demo video{max-height:70svh}.alarm-demo figcaption{padding:13px 16px}.showcase-gallery{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(75vw,260px);gap:18px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 4px 14px;margin:0 -4px;scrollbar-width:thin}.showcase-gallery figure{scroll-snap-align:start}.gallery-heading{margin-top:38px}.showcase-heading h2{letter-spacing:-.4px}.showcase-gallery figcaption{padding-top:13px}}
.site-architecture{max-width:1120px;margin:64px auto;padding:0 24px}.site-architecture p{max-width:800px;color:var(--muted);line-height:1.75}.site-architecture img{display:block;width:100%;height:auto;border-radius:18px;margin-top:24px}

/* App gestures keep the canvas steady while scrollable content moves normally. */
.harness-surface .app-shell,.harness-surface .sessions,.harness-surface .conversation,.panel-dialog,.panel-body,.action-dialog{touch-action:pan-x pan-y}
.composer-options{flex:1;overflow:hidden}.composer select{font-size:16px;text-overflow:ellipsis}.composer #model-select{flex:1;min-width:0}
.provider-card{padding:18px;border-radius:15px;background:#fff}
.provider-card .card-title{line-height:1.5;margin-bottom:8px}
.card-actions{gap:8px;flex-wrap:wrap;margin-top:16px}
.card-actions button{border:1px solid #e6e1de;background:#f9f8f7;border-radius:9px;padding:9px 13px;min-height:40px;font-size:13px;font-weight:500}
.card-actions button:hover{background:#f2efed}.card-actions button.danger{background:#fff;border-color:#e8d9d7}
.provider-model-chips{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0}
.provider-model-chip{max-width:100%;border:1px solid #e8e3e0;border-radius:7px;background:#f8f6f5;padding:5px 8px;font-size:12px;line-height:1.4;overflow-wrap:anywhere;color:#5a474f}
@media(prefers-reduced-motion:reduce){.session-search-wrap{animation:none!important}}

.provider-model-picker{position:relative;display:block}
.provider-model-picker input{padding-right:56px}
.provider-model-picker select{position:absolute;right:0;top:0;width:46px;height:100%;opacity:0;z-index:1;cursor:pointer}
.provider-model-picker .provider-model-arrow{position:absolute;right:0;top:0;bottom:0;width:46px;display:grid;place-items:center;border-left:1px solid #e8dedd;color:var(--accent);pointer-events:none}
.provider-model-picker:focus-within{outline:2px solid #cc4a2c;outline-offset:2px;border-radius:9px}
.provider-model-picker input:focus{outline:0}
.provider-model-picker:has(select:disabled) .provider-model-arrow{opacity:.35}

/* Mobile settings are pages, with a single native scrolling surface. */
body.panel-route{position:static;inset:auto;overflow:visible;min-height:100svh;background:#fff;overscroll-behavior-y:none}
.panel-route #app,.panel-route #site{display:none!important}
.panel-route .panel-dialog[open]{display:block;position:relative;inset:auto;transform:none;width:100%;max-width:none;height:auto;max-height:none;min-height:100svh;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;overflow:visible;touch-action:pan-x pan-y}
.panel-route #panel-content{display:block;height:auto;max-height:none;overflow:visible}
.panel-route .panel-dialog .panel-header{position:sticky;top:0;z-index:2;min-height:64px;padding:calc(10px + env(safe-area-inset-top,0px)) max(14px,env(safe-area-inset-right,0px)) 10px max(14px,env(safe-area-inset-left,0px));background:#fff}
.panel-route .panel-body{overflow:visible;max-height:none;padding:16px max(20px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px))}
.panel-route .panel-body{max-width:720px;margin:0 auto}
.quiet-note:empty,.topbar p:empty{display:none}

.provider-form>.field:first-child{margin-top:0}

/* Shared controls use the same Lucide geometry, independent of text fonts. */
.ui-icon{display:inline-block;width:20px;height:20px;flex:0 0 20px;vertical-align:middle;background:currentColor;mask:var(--icon) center/contain no-repeat;-webkit-mask:var(--icon) center/contain no-repeat}
.ui-icon-down{--icon:url('./icons/chevron-down.svg')}.ui-icon-back{--icon:url('./icons/chevron-left.svg')}.ui-icon-next{--icon:url('./icons/chevron-right.svg')}.ui-icon-close{--icon:url('./icons/x.svg')}.ui-icon-more{--icon:url('./icons/ellipsis.svg')}
.icon-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;font-size:0;border-radius:12px;color:#625259}
.icon-button:hover{background:#f2efed}.session-list-title .ui-icon{width:18px;height:18px;flex-basis:18px;color:#79686f}
.device-status-row .ui-icon{width:16px;height:16px;flex-basis:16px}
.field select,.composer select{appearance:none;-webkit-appearance:none;background-image:url('./icons/chevron-down.svg');background-position:right 14px center;background-size:18px 18px;background-repeat:no-repeat;padding-right:42px;cursor:pointer}
.composer select{background-position:right 4px center;padding-right:27px}
.provider-model-arrow::before{content:'';width:18px;height:18px;background:currentColor;mask:url('./icons/chevron-down.svg') center/contain no-repeat;-webkit-mask:url('./icons/chevron-down.svg') center/contain no-repeat}
.panel-body summary,.site-shell summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:44px}
.panel-body summary::-webkit-details-marker,.site-shell summary::-webkit-details-marker{display:none}
.panel-body summary::after,.site-shell summary::after{content:'';flex:0 0 18px;width:18px;height:18px;margin-left:auto;background:currentColor;mask:url('./icons/chevron-down.svg') center/contain no-repeat;-webkit-mask:url('./icons/chevron-down.svg') center/contain no-repeat;color:#79686f}
.panel-body details[open]>summary::after,.site-shell details[open]>summary::after{transform:rotate(180deg)}
body.panel-route,.panel-route .panel-dialog[open]{background:#fbf8f6}
.panel-route .panel-body{min-height:calc(100svh - 64px);padding-top:20px;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
.panel-route .panel-dialog .panel-header{border-bottom:1px solid #e9e4e1}
.panel-header h2{font-size:19px;font-weight:650;letter-spacing:-.35px}
.provider-form,#context-form,#skill-editor,#location-settings{background:#fff;border:1px solid #e8e2df;border-radius:18px;padding:20px;box-shadow:0 2px 8px #33233004}
.field{font-size:13px;font-weight:600;margin:20px 0;color:#635259}.field>span{margin-bottom:8px}
.field input,.field select,.field textarea{min-height:48px;border-radius:12px;border-color:#e5dedb;background-color:#fcfbfa;box-shadow:0 1px 2px #33233003;line-height:1.5}
.field input:focus,.field textarea:focus,.field select:focus{background-color:#fff}
.provider-model-picker:focus-within{border-radius:12px}.provider-model-picker .provider-model-arrow{color:#6c545e;border-color:#e9e4e2}
.primary{min-height:46px;border-radius:12px;font-size:14px;font-weight:600;line-height:1.45;padding:12px 17px}
.secondary-button,.section-heading button{min-height:42px;border-radius:10px;font-size:13px;font-weight:500;padding:10px 13px;background:#f7f5f4;border-color:#e5dfdc;line-height:1.45}
.panel-actions{gap:10px}.panel-actions .primary{min-height:46px;border-radius:12px;font-size:14px;padding:12px 17px}
.provider-form>.panel-actions:last-child{margin-top:24px}.provider-form>.panel-actions:last-child>.primary{width:100%}
.provider-auth-section{padding:16px;border:1px solid #e9e2df;border-radius:14px;background:#faf7f6;margin:22px 0}
.provider-auth-overview{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}
.provider-auth-actions.panel-actions{margin:0}.provider-auth-status{margin:0;font-size:12px;line-height:1.5;color:#705b64}
.provider-advanced-settings{margin-top:12px;border-top:1px solid #e8e2df;padding-top:4px;font-size:12px;color:#77656c}
.provider-advanced-settings summary{font-weight:500}.provider-advanced-settings .field{margin-bottom:0}
#codex-verification>a{display:inline-flex;align-items:center;text-decoration:none;margin-top:14px}#codex-verification ol{padding-left:20px;font-size:13px;line-height:1.7;color:#635259}
.settings-navigation{padding:0}.settings-group{border-color:#e8e2df;border-radius:16px;box-shadow:0 2px 8px #33233003;margin-bottom:18px}
.settings-row{min-height:58px;gap:12px;padding:14px 16px;font-weight:500}.settings-row>span:last-child{margin-left:auto;width:18px;height:18px;flex-basis:18px;color:#96878d}
.settings-row::before{content:'';width:20px;height:20px;flex:0 0 20px;background:#b3462a;mask:var(--setting-icon) center/contain no-repeat;-webkit-mask:var(--setting-icon) center/contain no-repeat}
#settings-accounts{--setting-icon:url('./icons/bot.svg')}#settings-devices{--setting-icon:url('./icons/cpu.svg')}#open-skills{--setting-icon:url('./icons/blocks.svg')}#settings-mcp{--setting-icon:url('./icons/plug.svg')}#settings-context{--setting-icon:url('./icons/sliders-horizontal.svg')}#settings-location{--setting-icon:url('./icons/map-pin.svg')}#settings-language{--setting-icon:url('./icons/languages.svg')}#settings-storage{--setting-icon:url('./icons/database.svg')}#settings-behavior{--setting-icon:url('./icons/flag.svg')}#import-session{--setting-icon:url('./icons/file-up.svg')}
.provider-card,.skill-card{background:#fff;border-color:#e8e2df;border-radius:16px;box-shadow:0 2px 8px #33233003}.card-detail{color:#77666d}
.check-field{min-height:44px;gap:10px}.check-field input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:0}
.session-library-heading{margin-top:18px}.device-status-row{border:1px solid #ebe6e3;border-radius:20px;padding:7px 9px;background:#faf9f8;max-width:48%}.device-status-row strong{font-size:11px}
.composer{background:#fcfbfa;border-color:#e5dfdc;box-shadow:0 2px 10px #33233006}.send-button{width:36px;height:36px;border-radius:11px}
@media(max-width:380px){.provider-form,#context-form,#skill-editor,#location-settings{padding:16px}.panel-route .panel-body{padding-left:14px;padding-right:14px}.device-status-row{max-width:46%}}

.image-preview .image-preview-close{color:#fff;background:#362530}

.mcp-server-card{margin-bottom:14px;padding:16px;background:#fff;border:1px solid #e8e2df;border-radius:16px;box-shadow:0 2px 8px #33233003}
.mcp-server-card>summary{cursor:pointer;overflow-wrap:anywhere;font-size:15px}.mcp-server-card>summary strong{min-width:0}
.mcp-server-card [data-mcp-summary]{margin:0;font-size:12px;flex:0 1 auto;min-width:0}.mcp-server-card [data-mcp-summary].bad{color:var(--danger)}
.mcp-server-body{padding-top:6px}.mcp-server-body>.field:first-child{margin-top:10px}.mcp-server-body>.check-field:last-child{margin-bottom:0}

#context-form>button[type=submit]{width:100%;margin-top:4px}

/* Public pages share a full-width canvas and a consistent reading grid. */
.site-shell{max-width:none;width:100%;margin:0;padding:0;background:#fbf8f6;min-height:100dvh}
.site-header{max-width:none;margin:0;padding:20px max(28px,calc((100% - 1280px)/2));gap:28px;background:#fff;border-bottom:1px solid #e8e3e1}
.site-brand{font-size:15px;letter-spacing:-.35px}.site-brand span{font-size:15px}.site-header nav{gap:28px;align-items:center}.site-header nav a{font-size:14px;line-height:1.5;padding:8px 0}.site-header>button{font-size:12px;padding:9px 12px;min-height:40px}
.site-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);align-items:center;gap:56px;max-width:none;margin:0;padding:64px max(28px,calc((100% - 1280px)/2)) 72px;background:linear-gradient(120deg,#fff0e8 0%,#fffbf8 60%,#fcebe1 100%)}
.site-hero-copy{max-width:700px;min-width:0}.site-hero h1{font-size:clamp(40px,4.6vw,68px);line-height:1.16;letter-spacing:-.045em;font-weight:650;color:#332330;margin:0 0 26px;text-wrap:balance}
.site-hero-copy>p{font-size:17px;line-height:1.85;color:#67515a;max-width:630px;margin:0 0 24px}.site-hero-copy>.site-platform-note{font-size:13px;line-height:1.7;margin:20px 0 0;color:#7d6a72}
.site-cta{gap:12px;flex-wrap:wrap;margin:30px 0 0}.site-cta a{display:inline-flex;align-items:center;justify-content:center;padding:14px 20px;font-size:14px;border-radius:12px;min-height:48px}.site-cta .secondary-button{background:#ffffffb8}
.site-hero-media{min-width:0;width:min(100%,354px);justify-self:center}.site-hero-media .alarm-demo{width:100%;margin:0;border:1px solid #e1d9d5;border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 18px 60px #33233018}
.site-hero-media .alarm-demo video{display:block;width:100%;height:auto;max-height:480px;aspect-ratio:9/16;object-fit:contain;background:#150e13}
.site-hero-media .alarm-demo figcaption{padding:14px 18px;font-size:12px;line-height:1.6}
.site-hero-media .showcase-heading{margin:18px 0 0}.site-hero-media .showcase-heading h2{font-size:19px;font-weight:600;letter-spacing:-.3px;margin:0 0 8px}.site-hero-media .showcase-heading p{font-size:13px;line-height:1.7;color:#7b666f}
.site-feature-grid{width:min(1280px,calc(100% - 56px));margin:56px auto;gap:20px;grid-template-columns:repeat(3,minmax(0,1fr))}
.site-feature-grid article{padding:28px;background:#fff;border:1px solid #e7e2df;border-radius:20px;box-shadow:0 3px 16px #33233004}
.site-feature-grid article>.ui-icon{width:28px;height:28px;color:#be3e24;display:block;font-size:0}.ui-icon-cpu{--icon:url('./icons/cpu.svg')}.ui-icon-blocks{--icon:url('./icons/blocks.svg')}.ui-icon-database{--icon:url('./icons/database.svg')}
.site-feature-grid h2{font-size:19px;line-height:1.45;margin:22px 0 12px;color:#3a2934}.site-feature-grid p{font-size:14px;line-height:1.85;margin:0;color:#77656c}
.site-showcase{max-width:1280px;margin:72px auto;padding:0 28px}.showcase-heading{max-width:760px;margin-bottom:28px}.gallery-heading{margin-top:0}.showcase-heading h2{font-size:32px;font-weight:600;letter-spacing:-.8px}.showcase-heading>p{font-size:15px}
.showcase-gallery{gap:32px;grid-template-columns:repeat(3,minmax(0,1fr))}.showcase-image-link{max-width:310px;margin:0 auto;border-color:#e5dedb;border-radius:20px;box-shadow:0 8px 28px #33233009}.showcase-gallery figcaption{padding:20px 8px 0;max-width:326px;margin:0 auto}.showcase-gallery h3{font-size:18px}.showcase-gallery p{font-size:14px}
.site-guide{max-width:1280px;margin:80px auto;padding:36px 32px;background:#fff;border:1px solid #e7e2df;border-radius:24px}.site-guide>h2,.site-architecture>h2{font-size:30px;font-weight:600;letter-spacing:-.7px;margin:0 0 18px}.site-guide>p{font-size:15px;max-width:860px;color:#77656c}
.site-guide ol{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 32px;margin-top:28px}.site-guide li{padding-top:18px;border-color:#e9e4e1}.site-guide li h3{font-size:17px;line-height:1.5;color:#45303e}.site-guide li p{font-size:14px;line-height:1.85}.site-guide .guide-links{gap:10px;margin-top:30px}.guide-links a{text-decoration:none}
.site-architecture{max-width:1280px;margin:72px auto;padding:0 28px}.site-architecture p{font-size:14px;line-height:1.9;max-width:900px}.site-architecture img{border:1px solid #e7e0dd;background:white;border-radius:20px;margin-top:26px}
.site-page-heading{padding:56px max(28px,calc((100% - 1280px)/2)) 42px;background:#fff1e9;border-bottom:1px solid #e8e2df}.site-page-heading h1{font-size:clamp(32px,3.2vw,46px);font-weight:650;color:#332330;line-height:1.2;margin:0 0 18px}.site-page-heading p{font-size:16px;line-height:1.8;margin:0;color:#736168;max-width:800px}
.site-community-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:32px;width:min(1280px,calc(100% - 56px));margin:40px auto 64px;align-items:start}
.site-content-card{min-width:0}.site-community-authoring{padding:24px;border:1px solid #e7e2df;border-radius:18px;background:#fff}.site-community-authoring h2,.site-community-browser h2{font-size:21px;line-height:1.45;font-weight:600;margin:0 0 20px;color:#402c39}.site-community-authoring .panel-actions{gap:8px}.site-community-authoring .panel-actions button{max-width:100%;white-space:normal;text-align:left}.site-community-authoring .community-grid{grid-template-columns:1fr;margin:22px 0 0}
.site-community-browser .community-grid{grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr));margin:0;gap:18px}.site-community-browser .skill-card{padding:22px}.site-community-browser .card-title{font-size:17px;line-height:1.5}.site-community-browser .card-detail{font-size:13px;line-height:1.8}.site-community-browser #community-status:empty{display:none}
.site-setup-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:start;gap:28px;width:min(1280px,calc(100% - 56px));margin:40px auto 72px}
.site-setup-card{min-width:0;padding:28px;border:1px solid #e7e2df;border-radius:20px;background:#fff;box-shadow:0 3px 16px #33233004}.site-setup-card #flash-controls{max-width:none;margin:0}.site-setup-card .usb-setup{margin:0;padding:0;border:0}.site-setup-card h2{font-size:22px;font-weight:600;margin:0 0 18px;color:#402c39}.site-setup-card .field:first-child{margin-top:0}.site-setup-card #flash-install{min-width:180px}.site-setup-card .settings-section{margin-bottom:0}.site-setup-card details>summary{cursor:pointer}
.site-footer{display:flex;max-width:none;gap:20px;margin:0;padding:28px max(28px,calc((100% - 1280px)/2));background:#332330;color:#ded0c9;border:0;font-size:13px;line-height:1.7}.site-footer a{color:#f3ece9;text-decoration:none}
@media(max-width:1350px){.site-guide{margin:64px 28px}.site-showcase,.site-architecture{width:100%}}
@media(max-width:1000px){.site-header{gap:18px}.site-header nav{gap:18px}.site-brand span{font-size:13px}.site-hero{gap:32px;grid-template-columns:minmax(0,1.1fr) minmax(240px,.9fr);padding-top:44px;padding-bottom:48px}.site-hero h1{font-size:44px}.site-hero-copy>p{font-size:15px}.site-hero-media{max-width:300px}.site-hero-media .alarm-demo video{max-height:410px}.site-community-layout{grid-template-columns:250px minmax(0,1fr);gap:24px}.site-guide ol{grid-template-columns:1fr 1fr}.site-setup-card{padding:22px}}
@media(max-width:760px){.site-header{padding:18px 20px;gap:12px;flex-wrap:wrap}.site-brand span{font-size:13px}.site-header nav{order:3;width:100%;margin:2px 0 0;gap:12px 24px;flex-wrap:wrap}.site-header>button{margin-left:auto;font-size:11px;min-height:36px;padding:7px 10px}.site-hero{display:flex;flex-direction:column;align-items:stretch;gap:36px;padding:40px 20px}.site-hero h1{font-size:clamp(34px,8.5vw,46px);line-height:1.2}.site-hero-copy>p{font-size:15px;line-height:1.85}.site-cta{margin-top:24px;gap:10px}.site-cta a{padding:12px 16px;font-size:13px}.site-hero-media{align-self:center;width:min(100%,330px);max-width:330px}.site-hero-media .alarm-demo video{max-height:440px}.site-feature-grid{width:calc(100% - 40px);grid-template-columns:1fr;margin:32px auto;gap:14px}.site-feature-grid article{padding:22px}.site-feature-grid h2{margin-top:16px;font-size:18px}.site-showcase{margin:42px auto;padding:0 20px}.showcase-heading h2{font-size:27px}.showcase-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.showcase-image-link{border-radius:14px}.site-guide{margin:40px 20px;padding:24px 20px;border-radius:18px}.site-guide>h2,.site-architecture>h2{font-size:26px}.site-guide ol{grid-template-columns:1fr;gap:18px}.site-architecture{margin:42px auto;padding:0 20px}.site-page-heading{padding:34px 20px 28px}.site-page-heading p{font-size:14px}.site-community-layout,.site-setup-grid{width:calc(100% - 40px);grid-template-columns:1fr;gap:22px;margin:28px auto 40px}.site-community-authoring,.site-setup-card{padding:22px}.site-community-authoring .panel-actions button{width:auto}.site-community-browser .community-grid{grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr))}.site-footer{padding:24px 20px;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}.site-community-authoring .community-grid:empty{margin:0}}
@media(max-width:620px){.showcase-gallery{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(76vw,280px);gap:18px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 4px 14px;margin:0 -4px}.showcase-gallery figure{scroll-snap-align:start}.site-guide .guide-links>a{flex:1 1 auto;text-align:center}.site-brand{max-width:none}.site-header .site-brand img{width:30px;height:30px;flex-basis:30px}}
.site-usb-card:has(#usb-setup-controls:empty){display:none}
.site-setup-grid:has(#usb-setup-controls:empty){grid-template-columns:minmax(0,1fr)}
.site-hero h1:lang(zh-Hans),.site-hero h1:lang(zh-Hant){font-size:clamp(34px,4vw,60px);text-wrap:wrap}

.site-shell{display:flex;flex-direction:column}#site-main{flex:1}.site-header,.site-footer{flex:none}

/* Approved brand accents; success states retain their semantic green. */
:root{--brand-orange:#ff582d;--brand-ink:#332330;--accent:#be3e24;--muted:#776a70;--line:#e8dedd;--soft:#fff0e9;--bg:#fff}
.primary:hover,.send-button:hover{background:#a9321e}.primary:disabled,.send-button:disabled{background:var(--accent)}
.site-brand img{width:42px;height:42px;flex-basis:42px}.session-home-header .brand-icon{width:36px;height:36px;flex-basis:36px}.session-home-header .brand{gap:8px}
.compatibility-logo{display:block;width:64px;height:64px;margin-bottom:22px}

/* Follow the keyboard's opening and closing motion without moving the header. */
.harness-surface .app-shell{transition:height var(--keyboard-layout-duration,0ms) cubic-bezier(.2,0,0,1)}
@media(prefers-reduced-motion:reduce){.harness-surface .app-shell{transition:none}}

.conversation-latest .ui-icon-down{--icon:url('./icons/arrow-down.svg')}

/* Native picker selection stays borderless inside the compact composer. */
.composer select,.composer select:focus{outline:none;caret-color:transparent;border-radius:8px}
.composer select:focus-visible{box-shadow:none}
#reasoning-select{text-align:right;text-align-last:right}

/* Context details float above the composer without changing keyboard geometry. */
.composer-toolbar{justify-content:flex-end;flex-wrap:nowrap;gap:8px}
.composer-toolbar .composer-options{margin-left:auto;justify-content:flex-end;flex-wrap:nowrap;min-width:0;max-width:calc(100% - 84px)}
.composer-toolbar #model-select{flex:1 1 auto;min-width:0;text-align:right;text-align-last:right}
.composer-toolbar #reasoning-select{flex:0 1 auto;text-align:right;text-align-last:right}
.context-meter{position:relative;flex:0 0 auto;margin-right:auto;min-width:0}
.context-meter-button{display:flex;align-items:center;justify-content:center;width:34px;min-height:34px;padding:6px;border:0;background:transparent;color:var(--muted);font-family:inherit;font-size:11px;font-weight:500;line-height:1.2;white-space:nowrap;cursor:pointer}
.context-meter-button:disabled{opacity:.45;cursor:default}
.context-meter-ring{width:21px;height:21px;flex:none;fill:none;stroke-width:2.2;transform:rotate(-90deg)}
.context-meter-track{stroke:var(--line,#eaded7)}
.context-meter-progress{stroke:var(--accent);stroke-linecap:round;transition:stroke-dasharray .2s}
.context-meter-high .context-meter-progress{stroke:var(--danger,#bb3927)}
.context-meter-popup{position:absolute;bottom:calc(100% + 10px);left:0;z-index:1000;margin:0;padding:16px;border:1px solid var(--line,#eaded7);border-radius:16px;background:var(--panel,#fff);box-shadow:0 12px 40px #33233020;color:var(--text,#332330);font-size:13px;max-height:calc(var(--viewport-height,100dvh) - 24px);overflow:auto;box-sizing:border-box}
.context-meter-popup[hidden]{display:none}
.context-meter-popup header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.context-meter-popup header strong{font-size:15px}
.context-compact-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 9px;font:inherit;font-size:12px;white-space:nowrap;border:1px solid var(--line,#eaded7);border-radius:9px;background:var(--soft,#fff4ed);color:var(--accent);cursor:pointer}
.context-compact-button:disabled{opacity:.4;cursor:default}
.context-compact-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.context-meter-source{font-size:11px;color:var(--muted);margin:4px 0 12px}
.context-meter-popup dl{margin:0;display:grid;gap:10px}
.context-meter-popup dl>div{display:flex;justify-content:space-between;gap:16px}
.context-meter-popup dt{color:var(--muted)}
.context-meter-popup dd{margin:0;font-variant-numeric:tabular-nums;text-align:right}
.context-meter-unknown,.context-meter-last,.context-meter-status{font-size:11px;line-height:1.55;color:var(--muted);margin:12px 0 0}
.context-meter-popup p[hidden]{display:none}
.context-meter-button:focus-visible,.context-compact-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:380px){.composer-toolbar{gap:5px}.composer-toolbar .composer-options{gap:3px;max-width:calc(100% - 84px)}.context-meter-button{font-size:10px;gap:3px}.context-meter-ring{width:19px;height:19px}}



/* Native 16px controls retain Safari's zoom-safe hit targets; captions are 14px. */
.composer-options .composer-picker{position:relative;display:flex;align-items:center;justify-content:flex-end;min-width:0;min-height:34px;padding:5px 20px 5px 0;overflow:hidden;color:#7b666f;box-sizing:border-box}
.composer-options .composer-picker[hidden]{display:none}
.composer-options .composer-model-picker{flex:1 1 auto}
.composer-options .composer-reasoning-picker{flex:0 1 auto;max-width:110px}
.composer-picker-caption{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:400;line-height:1.35;text-align:right}
.composer-picker::after{content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);width:15px;height:15px;background:url('./icons/chevron-down.svg') center/contain no-repeat;pointer-events:none}
.composer .composer-picker select,.composer .composer-picker #model-select,.composer .composer-picker #reasoning-select{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;padding:0;opacity:0;font-size:16px;line-height:normal;border:0;border-radius:0;background:none;outline:none;box-shadow:none;cursor:pointer;text-align:right;text-align-last:right}
.composer .composer-picker select:focus,.composer .composer-picker select:focus-visible{outline:none;box-shadow:none}
.composer-picker:has(select:disabled){opacity:.5}

/* A location request stays with its conversation until the user responds. */
.location-request-panel{margin:8px 12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--soft);font-size:14px}.location-request-panel p{margin:0 0 10px}.location-request-panel .panel-actions{display:flex;gap:8px;flex-wrap:wrap}.location-request-panel .quiet-note{margin:10px 0 0}

/* Keep both task demonstrations together, with room for playback on phones. */
.site-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
.site-hero-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px;width:100%;max-width:620px}
.site-hero-media .alarm-demo{min-width:0;border-radius:18px}
.site-hero-media .alarm-demo video{max-height:none}
.site-hero-media .alarm-demo figcaption{display:block;padding:14px}
.site-hero-media .alarm-demo h2{font-size:17px;line-height:1.4;margin:0 0 8px;font-weight:600}
@media(max-width:1000px){.site-hero{gap:28px;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}.site-hero-media{max-width:620px}}
@media(max-width:760px){.site-hero-media{width:100%;max-width:620px;gap:14px}.site-hero-media .alarm-demo video{max-height:none}}
@media(max-width:460px){.site-hero-media{grid-template-columns:1fr;max-width:330px;gap:24px}}
