.dev-header,#devBottomNav,.dev-page{display:none}
@media(max-width:600px){
 html{--dev-bg:#faf8f3;--dev-ink:#292a35;--dev-muted:#74747e;--dev-line:#e8e4dc;--dev-surface:#fff;--dev-accent:#a55822}
 html[data-theme="dark"]{--dev-bg:#171b22;--dev-ink:#f1eee8;--dev-muted:#a5adba;--dev-line:#303743;--dev-surface:#222832;--dev-accent:#efbe85}
 body{background:var(--dev-bg)!important;color:var(--dev-ink);height:100dvh;display:flex;flex-direction:column;overflow:hidden}
 .room,.top,.mobile-workspace-views,#deskDock,#monitorDock,.phone::after,.front-face::before{display:none!important}
 .dev-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px 10px;border-bottom:1px solid var(--dev-line);background:var(--dev-bg);min-height:68px}
 .dev-brand{display:block;font:700 9px var(--sans);letter-spacing:.14em;color:var(--dev-muted);margin-bottom:5px}.dev-header h1{font:600 19px/1.2 var(--serif);margin:0;color:var(--dev-ink)}
 .dev-review-link{font:600 11px var(--sans);min-height:40px;padding:8px 12px;border:1px solid var(--dev-line);background:var(--dev-surface);border-radius:12px;color:var(--dev-accent);white-space:nowrap}.dev-review-link[hidden]{display:none}
 .desk,body.app-view .desk{display:flex;flex:1;min-height:0;height:auto!important;padding:0;gap:0;max-width:none;overflow:hidden;position:relative}
 .phone-col{display:contents}.phone,body:not([data-mobile-view="companion"]) .phone,body[data-mobile-view="companion"] .phone{display:none!important}
 body[data-dev-page="app"] .phone{display:block!important;order:0;width:100%!important;height:100%!important;flex:1;position:relative;inset:auto;transform:none!important;margin:0}
 .phone .shell,.phone .faces,.phone .front-face{width:100%!important;height:100%!important;padding:0;margin:0;border:0!important;border-radius:0!important;box-shadow:none!important;aspect-ratio:auto;overflow:hidden;background:var(--dev-bg)}
 #app{width:100%!important;height:100%!important;transform:none!important}
 .monitor-col,html[data-theme="light"] .monitor-col,body[data-mobile-view="companion"] .monitor-col{display:none!important}
 body[data-dev-page="ledger"] .monitor-col,body[data-dev-page="review"] .monitor-col,body[data-dev-page="vision"] .monitor-col,body[data-dev-page="chat"] .monitor-col{display:block!important;order:0;flex:1;min-height:0;height:auto;width:100%;border:0;border-radius:0;padding:0;box-shadow:none;background:var(--dev-bg)!important;overflow:hidden}
 .monitor-col .panel-col,html[data-theme="light"] .monitor-col .panel-col{width:100%;height:100%;border:0;border-radius:0;box-shadow:none;background:var(--dev-bg);scrollbar-gutter:auto;--review-ink:var(--dev-ink);--review-muted:var(--dev-muted);--glass-edge:var(--dev-line)}
 #deskBoard .page{padding:20px 18px}#deskBoard .sec-head h2{font-size:27px}#deskBoard .tabs{display:none}#deskBoard .sec-head .go-front{display:none}#deskBoard .review-section{min-height:0}
 body[data-dev-page="review"] .review-section:not(.dev-current){display:none}#deskBoard .section-guide{margin:18px 0}#deskBoard .section-guide h3{font-size:22px}#deskBoard .guide-prompt{font-size:13px;line-height:1.55}
 .dev-page:not([hidden]){display:block;width:100%;height:100%;overflow-y:auto;padding:24px 18px;background:var(--dev-bg)}.dev-page[hidden]{display:none!important}
 .dev-intro{font:400 14px/1.6 var(--sans);color:var(--dev-muted);margin:0 0 20px}
 .dev-page-list{display:grid;gap:8px}.dev-page-list>button{display:flex;align-items:center;gap:14px;width:100%;min-height:66px;padding:12px;border:1px solid var(--dev-line);border-radius:16px;background:var(--dev-surface);color:var(--dev-ink);text-align:left}
 .dev-page-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#dba87016;color:var(--dev-accent)}.dev-page-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6}.dev-page-list strong{font:600 15px var(--sans)}.dev-page-list small{display:block;margin-top:5px;color:var(--dev-muted);font:400 11px var(--sans)}.dev-chevron{margin-left:auto;font-size:25px;color:var(--dev-muted)}
 .dev-tools{display:grid;gap:12px}.dev-tools>button{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--dev-line);border-radius:16px;background:var(--dev-surface);color:var(--dev-ink);font:600 15px var(--sans);text-align:left}.dev-tools svg{width:22px;height:22px;fill:none;stroke:var(--dev-accent);stroke-width:1.6}.dev-tools small{display:block;margin-top:7px;font:400 12px/1.5 var(--sans);color:var(--dev-muted)}.dev-theme{display:flex;align-items:center;gap:7px;padding:18px;border:1px solid var(--dev-line);border-radius:16px;background:var(--dev-surface);font:600 13px var(--sans)}.dev-theme>span{margin-right:auto}.dev-theme button{padding:10px 12px;border-radius:10px;color:var(--dev-muted);border:1px solid var(--dev-line)}.dev-theme button[aria-pressed="true"]{background:#edc997;color:#3d3023}
 #feedbackRail,.feedback-card{display:none!important}
 body[data-dev-page="review"] #feedbackRail{display:block!important;order:1;position:relative;height:60px;width:100%;flex:none;padding:10px 18px;border-top:1px solid var(--dev-line);background:var(--dev-bg)}
 body[data-dev-page="review"] .feedback-card,body[data-dev-page="vision"][data-idea-box="on"] .feedback-card{display:block!important;order:2;flex:none;padding:0 18px 14px;width:100%;background:var(--dev-bg)}
 #feedbackRail .kinds-row{height:40px;gap:18px}:is(#deskTalk,#feedbackRail) .kind,html[data-theme="light"] :is(#deskTalk,#feedbackRail) .kind{width:40px;height:40px;border:1px solid var(--dev-line);background:var(--dev-surface);color:var(--dev-muted);box-shadow:none}:is(#deskTalk,#feedbackRail) .kind[aria-pressed="true"]{background:#f0d2a7;color:#704313;border-color:#cda366}
 #deskTalk form{display:flex;flex-direction:column;gap:12px}#deskTalk .prompt-glass,html[data-theme="light"] #deskTalk .prompt-glass{background:var(--dev-surface);border:1px solid var(--dev-line);box-shadow:none;backdrop-filter:none;border-radius:16px;padding:8px}
 #deskTalk .prompt-glass [name="text"]{font:400 16px/1.45 var(--sans);padding:5px;border:0;resize:none;min-width:0;flex:1;height:70px;background:none;color:var(--dev-ink)}#deskTalk .prompt-glass [name="text"]::placeholder{color:var(--dev-muted)}#deskTalk .csend,#deskTalk .cmic{width:40px;height:40px;flex:none;align-self:flex-end}
 #deskTalk .mobile-visibility{display:flex;align-items:center;justify-content:space-between;font:500 11px var(--sans);color:var(--dev-muted)}#deskTalk .mobile-visibility .aud{margin:0;display:flex;background:var(--dev-surface);border:1px solid var(--dev-line);padding:3px;border-radius:11px;box-shadow:none}#deskTalk .mobile-visibility .aud label{height:32px;min-height:32px;padding:0}#deskTalk .mobile-visibility .aud label span{height:32px;min-width:66px;display:grid;place-items:center;color:var(--dev-muted);font-size:12px;border-radius:8px}#deskTalk .mobile-visibility .aud label:has(input:checked){background:#f0d2a7;color:#704313}
 #devBottomNav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));flex:none;height:calc(72px + env(safe-area-inset-bottom));padding:8px 4px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--dev-line);background:var(--dev-surface);z-index:30}
 #devBottomNav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:13px;color:var(--dev-muted);font:600 10px var(--sans);min-height:48px}#devBottomNav button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#devBottomNav button[aria-current="page"]{background:#dba87018;color:var(--dev-accent)}
 .feedback-question{bottom:calc(100% + 8px);z-index:35}.connection-status{position:absolute;top:68px;z-index:40}
}
@media(max-width:600px){#deskTalk .mobile-visibility .aud label:has(input:checked) span{color:#493118}.dev-header .dev-review-link:focus-visible,#devBottomNav button:focus-visible,.dev-page button:focus-visible{outline:2px solid var(--dev-accent);outline-offset:-3px}}
@media(max-width:600px){#deskBoard .board .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#deskBoard .board{padding:22px 18px}}
@media(max-width:600px){#deskTalk .cry-chip{position:relative;display:flex;align-items:center;justify-content:center;width:42px;min-width:42px;height:42px;padding:0;border-radius:12px;background:#c86a3b22}#deskTalk .cry-chip .play{display:grid;place-items:center;width:36px;min-width:36px;height:36px;border-radius:50%;background:#f0d2a7;color:#754019}#deskTalk .cry-chip .play svg{width:14px;height:14px;fill:currentColor;stroke:none}#deskTalk .cry-chip .x{position:absolute;right:-6px;top:-6px;width:20px;height:20px;border-radius:50%;background:var(--dev-surface);color:var(--dev-ink);font-size:14px;border:1px solid var(--dev-line)}#deskTalk .cry-rec{display:flex;align-items:center;gap:12px;font:600 15px var(--sans);color:var(--dev-ink)}#deskTalk .cry-rec .dotlive{width:7px;height:7px;border-radius:50%;background:#bc6045}#deskTalk .wave{display:none}}
@media(max-width:600px){.dev-header{padding-top:calc(12px + env(safe-area-inset-top))}}
