:root{color-scheme:light;--bg:#f4f4ef;--card:#fff;--ink:#192823;--sub:#53635b;--line:#dce3db;--accent:#245a49;--warn:#8d4c16}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}header{background:#192e27;color:#fff;padding:16px max(16px,calc((100vw - 1040px)/2));display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;top:0;z-index:5}header small{display:block;color:#c4d3c9;font-size:10px;letter-spacing:.13em}.brand{font-weight:700;letter-spacing:.16em;font-size:14px}main{max-width:1040px;margin:auto;padding:24px 16px 80px}h1{font-size:clamp(27px,4vw,42px);line-height:1.15;letter-spacing:-.035em;margin:0 0 12px}h2{font-size:21px;line-height:1.3}h3{font-size:17px}p{margin:8px 0 14px}small,.muted{font-size:13px;color:var(--sub)}button,input,textarea,select{font:inherit;color:inherit}button,a.action{border:1px solid var(--line);background:white;padding:11px 15px;border-radius:12px;min-height:44px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:var(--ink)}button.primary{background:var(--accent);border-color:var(--accent);color:white}button:disabled{opacity:.45;cursor:default}input,textarea,select{border:1px solid #bfcac1;border-radius:10px;background:#fff;padding:12px;width:100%;min-height:46px}textarea{resize:vertical;line-height:1.55}label{display:block;font-weight:600;font-size:14px;margin:12px 0 6px}.card{background:white;border:1px solid var(--line);border-radius:18px;padding:20px;margin-bottom:14px;box-shadow:0 4px 20px #20372806}.intro{background:#233c32;color:white}.intro .muted{color:#c8d9ce}.stack{display:grid;gap:10px}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.grow{flex:1}.meta{color:var(--sub);font-size:12px;letter-spacing:.03em}.intro h1{max-width:700px}#banner{position:sticky;top:65px;z-index:4;background:#e0eee4;padding:10px 16px;font-size:13px;text-align:center;border-bottom:1px solid #cfdfd0}#banner.warn{background:#fff0d9;color:var(--warn)}#banner.error{background:#fae4e3;color:#7d2928}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.reel{padding:0;overflow:hidden}.reel summary{padding:19px;cursor:pointer;list-style:none;display:flex;gap:14px;align-items:start}.reel summary::-webkit-details-marker{display:none}.reel .num{background:#e5eee7;padding:8px 10px;border-radius:10px;color:var(--accent);font-weight:700}.reel .title{font-weight:650;font-size:18px;line-height:1.3;display:block}.reel .content{padding:0 19px 20px}.quote{border-left:3px solid #88a897;background:#f3f6f2;padding:12px;border-radius:0 10px 10px 0;white-space:pre-wrap}.fragment{border-bottom:1px solid var(--line);padding:10px 0 16px}.fragment:last-child{border:0}.field-actions{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0}.field-actions button{font-size:13px;padding:8px 10px}.status{font-size:12px;font-weight:600;color:var(--accent);display:block;margin-top:6px}.verify{background:#faf6ea;padding:14px;border-radius:12px;color:#614923}.voice{border:1px solid var(--line);padding:12px;margin-top:8px;border-radius:12px}.voice audio{width:100%;max-width:420px}.conflict{background:#fff1d6;padding:12px;border-radius:10px;margin:8px 0}.conflict pre,.history pre{white-space:pre-wrap;font-family:inherit;overflow-wrap:anywhere}.history{padding:8px 0;border-top:1px solid var(--line)}.login{max-width:440px;margin:40px auto}.login button.primary{width:100%;margin-top:16px}.error-msg{color:#a02b2b}.toolbar{margin:12px 0}.tag{padding:4px 10px;border-radius:100px;background:#e8eee7;font-size:12px}.hidden,[hidden]{display:none!important}a{color:var(--accent)}.mic-active{background:#a22b29;color:white}.warning{color:var(--warn)}@media(max-width:600px){main{padding:16px 12px 72px}header{padding:13px 12px}header button{font-size:12px;padding:7px 9px}#banner{top:62px}.card{padding:16px;border-radius:15px}.reel{padding:0}.reel summary{padding:14px 12px;gap:9px}.reel .content{padding:0 13px 16px}.grid{grid-template-columns:1fr}.field-actions button{flex:1}textarea,input,select{font-size:16px}h1{font-size:30px}}

/* v0.3: standalone and mobile safe areas; preserve existing form sizing. */
header{padding-top:calc(16px + env(safe-area-inset-top,0px))}#banner{top:calc(65px + env(safe-area-inset-top,0px))}main{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}.intro .meta{color:#c8d9ce}.install-help{margin-top:16px;border-top:1px solid #ffffff30;padding-top:12px}.install-help summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#e4eae2}.install-help p{font-size:13px;color:#e4eae2}.reel{scroll-margin-top:calc(115px + env(safe-area-inset-top,0px))}@media(max-width:600px){header{padding-top:calc(13px + env(safe-area-inset-top,0px));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}#banner{top:calc(62px + env(safe-area-inset-top,0px))}main{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}}

/* v0.4: palette only. Status, warnings and recording colors retain their meaning. */
:root{--theme-head:#192e27;--theme-soft:#e5eee7;--theme-intro:#233c32;--theme-field:#bfcac1;--theme-quote:#f3f6f2;--theme-quote-border:#88a897;--theme-on-dark:#c8d9ce;--theme-tag:#e8eee7;--theme-shadow:#20372806}
:root[data-theme="beauty"]{--bg:#f8f1ed;--card:#fff;--ink:#382b2d;--sub:#69585c;--line:#e5d7d3;--accent:#895b65;--theme-head:#895b65;--theme-intro:#80525d;--theme-soft:#f0e1df;--theme-field:#c7aeb2;--theme-quote:#f9f2f0;--theme-quote-border:#b28a91;--theme-on-dark:#fff0f0;--theme-tag:#f0e1df;--theme-shadow:#382b2d06}
:root[data-theme="lavender"]{--bg:#f3f1f7;--card:#fff;--ink:#2e2937;--sub:#60576d;--line:#dcd5e5;--accent:#695a7d;--theme-head:#62566f;--theme-intro:#5c506e;--theme-soft:#e8e2f0;--theme-field:#bcb0cb;--theme-quote:#f5f2f9;--theme-quote-border:#a092b6;--theme-on-dark:#f6f0ff;--theme-tag:#e8e2f0;--theme-shadow:#2e293706}
:root[data-theme="beauty"] header,:root[data-theme="lavender"] header{background:var(--theme-head)}
:root[data-theme="beauty"] header small,:root[data-theme="lavender"] header small{color:var(--theme-on-dark)}
:root[data-theme="beauty"] .intro,:root[data-theme="lavender"] .intro{background:var(--theme-intro)}
:root[data-theme="beauty"] .intro .meta,:root[data-theme="lavender"] .intro .meta,:root[data-theme="beauty"] .intro .muted,:root[data-theme="lavender"] .intro .muted,:root[data-theme="beauty"] .install-help p,:root[data-theme="lavender"] .install-help p,:root[data-theme="beauty"] .install-help summary,:root[data-theme="lavender"] .install-help summary{color:var(--theme-on-dark)}
:root[data-theme="beauty"] .reel .num,:root[data-theme="lavender"] .reel .num{background:var(--theme-soft)}
:root[data-theme="beauty"] .tag,:root[data-theme="lavender"] .tag{background:var(--theme-tag)}
:root[data-theme="beauty"] .quote,:root[data-theme="lavender"] .quote{background:var(--theme-quote);border-left-color:var(--theme-quote-border)}
:root[data-theme="beauty"] input,:root[data-theme="lavender"] input,:root[data-theme="beauty"] textarea,:root[data-theme="lavender"] textarea,:root[data-theme="beauty"] select,:root[data-theme="lavender"] select{border-color:var(--theme-field)}
:root[data-theme="beauty"] .card,:root[data-theme="lavender"] .card{box-shadow:0 4px 20px var(--theme-shadow)}
.appearance summary{cursor:pointer;font-weight:600;min-height:44px;line-height:44px}.appearance:not([open]) summary{min-height:0;line-height:1.55}.theme-swatches{display:flex;gap:6px;margin:8px 0}.theme-swatches span{height:24px;flex:1;border-radius:5px;border:1px solid var(--line)}.theme-swatches span:nth-child(1){background:var(--theme-head)}.theme-swatches span:nth-child(2){background:var(--accent)}.theme-swatches span:nth-child(3){background:var(--theme-soft)}.theme-swatches span:nth-child(4){background:var(--bg)}

/* 0.4.2: compact cabinet, identical components in all three palettes. */
.cab-name{font-size:clamp(29px,4vw,38px);margin:8px 0 20px}.cab-view{max-width:760px;margin:auto}.cab-card{padding:22px}.cab-card h2,.cab-wait h2{font-size:clamp(21px,3vw,26px);letter-spacing:-.02em;margin:18px 0 12px}.cab-label{display:flex;align-items:center;gap:12px;font-weight:550;font-size:19px}.cab-label svg{width:26px;height:26px;color:var(--accent);flex-shrink:0}.cab-sub{color:var(--sub);font-size:16px}.cab-wide{width:100%;min-height:52px;font-weight:600}.cab-dev{font-size:13px;font-weight:600;color:var(--sub);margin:0 0 12px}.cab-upload{display:flex;flex-direction:column;width:100%;min-height:130px;background:var(--bg);border-color:var(--theme-field);color:var(--accent);gap:6px;padding:20px 12px}.cab-upload svg{width:34px;height:34px}.cab-upload small{color:var(--sub);font-size:13px}.cab-style{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 12px;font-size:14px}.cab-style-button{border:0;color:var(--accent);background:transparent;padding:6px 0;text-align:right}.cab-nav{position:fixed;bottom:0;left:0;right:0;z-index:6;display:flex;justify-content:center;gap:0;background:var(--card);border-top:1px solid var(--line);padding:7px max(8px,env(safe-area-inset-left,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-right,0px));box-shadow:0 -4px 24px #00000006}.cab-tab{flex:1;max-width:185px;min-width:0;display:flex;flex-direction:column;gap:3px;padding:5px 2px;border:0;border-radius:10px;color:var(--sub);background:transparent;font-size:12px;line-height:1.35}.cab-tab svg{width:24px;height:24px}.cab-tab[aria-current="page"]{color:var(--accent);font-weight:650}.cab-tab:focus-visible,.cab-upload:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.cab-wait{text-align:left}.cab-view .intro h2{margin:8px 0 12px;font-size:24px}.cab-view .intro button{color:var(--ink)}main{padding-bottom:calc(105px + env(safe-area-inset-bottom,0px))}.cab-view .card summary{cursor:pointer}.cab-view .reel{padding:0}@media(max-width:600px){.cab-card{padding:18px}.cab-name{margin-bottom:16px}.cab-label{font-size:18px}.cab-card h2{margin-top:16px}.cab-upload{min-height:120px}.cab-tab{font-size:11px}main{padding-bottom:calc(95px + env(safe-area-inset-bottom,0px))}}

@media(max-width:600px){.cab-view>.meta{font-size:11px}.cab-name{margin:5px 0 13px}.cab-card{padding:16px;margin-bottom:12px}.cab-card h2{margin:12px 0 8px}.cab-card .cab-sub{margin:6px 0 12px}.cab-dev{margin:0 0 9px}.cab-upload{min-height:106px;padding:13px 10px}.cab-style{margin:4px 0 8px}.cab-wide{min-height:48px}}

/* 0.4.3 planning */
.plan-stage-title{font-size:19px;margin:22px 0 10px;color:var(--accent)}.plan-card>summary,.plan-hk>summary{font-weight:650;font-size:18px;min-height:44px;cursor:pointer}.plan-stage-control{margin:12px 0}.plan-top>button{margin-bottom:8px}.plan-hk{scroll-margin-top:130px}.plan-card textarea{min-height:90px}.plan-hk .intro{margin:12px 0}.plan-hk .reel{margin:12px 0}.plan-hk{padding:14px}.plan-card .field-actions{margin-bottom:14px}.plan-stage>.muted{margin:8px 0 16px}

/* 0.4.4 — informational roadmap only, no new data actions. */
.future-panel{scroll-margin-top:calc(130px + env(safe-area-inset-top,0px));padding:16px}.future-summary{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px;list-style:none;cursor:pointer}.future-summary::-webkit-details-marker{display:none}.future-summary .cab-label{font-size:16px;gap:8px;min-width:0}.future-summary .cab-label svg{width:22px;height:22px}.future-tag{color:var(--sub);background:var(--bg);font-size:11px;font-weight:600;padding:5px 8px;border-radius:6px;white-space:nowrap}.future-summary::after{content:'⌄';color:var(--accent)}.future-panel[open] .future-summary::after{content:'⌃'}.future-list{display:grid;gap:0}.future-item{padding:12px 0;border-top:1px solid var(--line)}.future-item .cab-sub{font-size:14px;margin:4px 0 0}.future-stage{font-size:20px;margin:22px 0 10px}.future-home .cab-wide{color:var(--accent);background:var(--card);border-color:var(--theme-field)}.future-home .cab-dev{margin-bottom:8px}@media(max-width:380px){.future-summary{flex-wrap:wrap}.future-summary .cab-label{flex:1 1 65%}.future-tag{font-size:10px}}


.pilot-video{margin:14px 0}.video-pane{margin-top:16px;display:grid;gap:12px}.video-pane[hidden]{display:none}.video-pane video{display:block;width:100%;max-height:min(65vh,620px);background:#201e1e;border-radius:12px;object-fit:contain}.video-list{display:grid;gap:8px}.video-list button{width:100%;text-align:left;white-space:normal}.video-viewer{display:grid;gap:10px;min-width:0}.video-viewer[hidden]{display:none}.video-viewer textarea{width:100%;box-sizing:border-box}.video-viewer audio{width:100%;max-width:100%}.video-viewer .fragment{margin:8px 0}.video-viewer .primary{min-height:46px}.pilot-video .future-summary{display:flex;justify-content:space-between;align-items:center;gap:8px}.pilot-video .future-tag{white-space:normal}.pilot-video input[type=file]{max-width:100%}
