/* WESTON OFFICE v2 — offline Android interface, no external dependencies */
:root{font:14px/1.45 system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;color-scheme:light;--navy:#06274f;--navy2:#0b3971;--navy3:#071d3d;--orange:#ff940e;--teal:#10cabd;--purple:#9052eb;--green:#19b58d;--ink:#0c2450;--muted:#587092;--bg:#f3f6fb;--card:#fff;--card2:#f9fbff;--line:#dce5f2;--chip:#edf2f9;--shadow:0 8px 22px rgba(13,39,84,.07);--nav-bg:#fff;--soft-orange:#fff1e3;--soft-teal:#dbf8f5;--input:#f9fbff}
body[data-theme=dark]{color-scheme:dark;--ink:#f4f8ff;--muted:#b2c9e0;--bg:#031c37;--card:#0c2c4d;--card2:#092747;--line:#27516e;--chip:#183d5d;--shadow:0 9px 22px rgba(0,0,0,.12);--nav-bg:#052440;--soft-orange:#54371d;--soft-teal:#0c4647;--input:#103452}
*{box-sizing:border-box}html,body{min-height:100%;margin:0}html{scroll-behavior:smooth}body{background:var(--bg);color:var(--ink);-webkit-tap-highlight-color:transparent}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--teal);outline-offset:2px}img{max-width:100%}a{color:var(--navy2)}.hidden{display:none!important}.app-shell{min-height:100vh;max-width:1180px;margin:auto;position:relative;overflow:hidden;background:var(--bg);padding-bottom:100px}
.app-header{background:linear-gradient(135deg,var(--navy3),var(--navy) 55%,#0b3d74);color:white;min-height:214px;padding:17px 18px 42px;position:relative;isolation:isolate;overflow:hidden}
.app-header:before{content:"";position:absolute;inset:0;background:linear-gradient(85deg,transparent 53%,rgba(0,182,230,.08)),radial-gradient(circle at 82% 65%,rgba(18,204,193,.15),transparent 40%);z-index:-1;pointer-events:none;animation:glimmer 14s ease-in-out infinite alternate}.header-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(94,189,233,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(94,189,233,.055) 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(90deg,transparent 25%,black);z-index:-1;animation:blueprintDrift 26s linear infinite;pointer-events:none}
.header-top,.header-context{position:relative;z-index:2}.header-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.header-brand{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;background:transparent;border:0;color:#fff;padding:0}.header-brand img{width:38px;height:38px;object-fit:cover;border-radius:9px}.header-brand>span{font-size:16px;line-height:1.05;letter-spacing:.4px;font-weight:900;display:grid;text-align:left}.header-brand small{display:flex;align-items:center;gap:5px;letter-spacing:3px;font-size:9px;font-weight:800;margin-top:4px}.header-brand i{width:13px;height:2px;background:var(--orange);display:inline-block}.header-brand i:last-child{background:var(--teal)}.icon-btn{display:grid;place-items:center;min-width:34px;min-height:34px;font-size:23px;border:0;background:transparent;color:inherit}.head-icon{color:#fff}.bell{position:relative;font-size:24px}.bell #alertDot{position:absolute;right:5px;top:3px;width:7px;height:7px;background:var(--orange);border-radius:50%}
.header-context{padding-top:26px;display:flex;align-items:center;justify-content:space-between;gap:10px}.header-context h1{font-size:25px;line-height:1.15;margin:5px 0 7px;font-weight:850;letter-spacing:-.6px;max-width:240px}.header-kicker{color:#8de2dd;font-size:9px;font-weight:800;letter-spacing:2px;margin:0;text-transform:uppercase}.header-context p:last-of-type{font-size:12px;max-width:230px;line-height:1.45;color:#d8eafa;margin:0}.header-page-icon{display:grid;place-items:center;font-size:38px;color:var(--orange);background:rgba(255,255,255,.05);border:1px solid rgba(49,211,201,.15);border-radius:16px;width:58px;height:58px;flex:none}.blueprint-drawing{position:absolute;right:-40px;bottom:-34px;width:260px;height:180px;pointer-events:none;opacity:.38;z-index:0;animation:houseFloat 12s ease-in-out infinite}.blueprint-drawing svg{width:100%;height:100%}.blueprint-lines{stroke-dasharray:420;stroke-dashoffset:0;animation:drawingTravel 22s linear infinite}.drawing-accent{stroke-dasharray:380;stroke-dashoffset:380;animation:traceHouse 8s ease-in-out infinite}
.content{padding:0 14px 22px;position:relative;margin-top:-14px;z-index:1;max-width:850px;margin-left:auto;margin-right:auto}.page-section{animation:pageIn .25s ease both}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:17px 0 10px}.section-heading h2{font-size:17px;line-height:1.2;margin:0;letter-spacing:-.3px}.section-heading p{color:var(--muted);font-size:11px;margin:4px 0 0}.section-heading button{background:transparent;color:var(--orange);border:0;font-weight:750}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);color:var(--ink);overflow:hidden}.accent-left{border-left:4px solid var(--orange)}.accent-teal{border-left-color:var(--teal)}.accent-purple{border-left-color:var(--purple)}.accent-green{border-left-color:var(--green)}.card.pad{padding:16px}.stack{display:grid;gap:8px}.muted{color:var(--muted)}.tiny{font-size:11px}.mini-icon{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--soft-orange);color:var(--orange);font-size:17px;flex:none}.mini-icon.teal{background:var(--soft-teal);color:var(--teal)}.mini-icon.purple{background:rgba(144,82,235,.12);color:var(--purple)}
.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}.hero-stat{padding:13px 8px;text-align:center;background:var(--card);border-radius:14px;border:1px solid var(--line);box-shadow:var(--shadow)}.hero-stat span{display:block;font-size:11px;color:var(--muted)}.hero-stat strong{font-size:24px;display:block;line-height:1.3;color:var(--navy2)}body[data-theme=dark] .hero-stat strong{color:#e4f7ff}.hero-stat:nth-child(2) strong{color:#f08b17}.hero-stat:nth-child(3) strong{color:#09a69c}.hero-graphic{padding:12px 14px;background:linear-gradient(115deg,#0c355d,#071b35);border-radius:16px;color:white;margin:0 0 14px;position:relative;overflow:hidden}.hero-graphic:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent,transparent 17px,rgba(78,190,233,.1) 18px),repeating-linear-gradient(90deg,transparent,transparent 17px,rgba(78,190,233,.1) 18px);mask-image:linear-gradient(90deg,transparent 20%,black);animation:blueprintDrift 35s linear infinite}.hero-graphic:after{content:"⌂";position:absolute;right:16px;top:-28px;font-size:135px;color:rgba(18,205,191,.17);animation:houseFloat 10s ease-in-out infinite}.hero-graphic b,.hero-graphic small{position:relative;z-index:1}.hero-graphic b{font-size:15px;display:block}.hero-graphic small{display:block;margin-top:3px;color:#b6e2ed}.home-shortcut-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.shortcut{border:1px solid var(--line);box-shadow:var(--shadow);background:var(--card);border-radius:13px;display:grid;justify-items:center;gap:3px;padding:12px 2px;color:var(--ink);font-size:10px;font-weight:750}.shortcut-icon{font-size:22px;line-height:1.3;color:var(--orange)}.shortcut:nth-child(3) .shortcut-icon,.shortcut:nth-child(4) .shortcut-icon{color:var(--teal)}.shortcut:active,.button:active,.fab:active{transform:scale(.98)}.home-metric{display:flex;align-items:center;padding:14px;gap:12px;margin:9px 0;min-height:68px}.home-metric .metric-content{flex:1;min-width:0}.home-metric b{display:block;font-size:14px}.home-metric small{color:var(--muted);display:block}.home-metric .metric-number{color:var(--orange);font-size:26px;font-weight:850}.home-metric.accent-teal .metric-number{color:var(--teal)}.home-metric .arrow{color:var(--muted)}.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px}.quick-action{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 3px;display:grid;gap:5px;justify-items:center;color:var(--ink);font-size:10px;font-weight:750}.quick-action span:first-child{color:var(--orange);font-size:23px}.quick-action:nth-child(2) span:first-child,.quick-action:nth-child(3) span:first-child{color:var(--teal)}
.filter-bar{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:2px 0 9px;margin-bottom:3px}.filter-bar::-webkit-scrollbar{display:none}.chip{border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:11px;font-weight:750;padding:8px 12px;border-radius:999px;white-space:nowrap}.chip.active{background:var(--orange);color:white;border-color:var(--orange)}.search-wrap{background:var(--card);border:1px solid var(--line);border-radius:22px;display:flex;align-items:center;gap:9px;padding:9px 14px;margin-bottom:10px;box-shadow:var(--shadow)}.search-wrap span{font-size:18px;color:var(--muted)}.search-wrap input{flex:1;min-width:0;background:transparent;border:0;color:var(--ink);outline:none;font-size:12px}.search-wrap input::placeholder{color:var(--muted)}
.item-card{display:flex;gap:10px;padding:13px 10px;margin-bottom:8px;align-items:flex-start}.item-card .row-body{flex:1;min-width:0}.item-card .row-title{font-size:13px;font-weight:800;line-height:1.25;overflow-wrap:anywhere}.item-card .row-desc{font-size:11px;color:var(--muted);line-height:1.35;margin:3px 0 5px;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.item-card .meta{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-top:7px}.row-date{font-size:10px;color:var(--muted);white-space:nowrap}.row-leading{color:var(--orange);font-size:23px;width:27px;flex:none;text-align:center}.row-leading.teal{color:var(--teal)}.row-leading.purple{color:var(--purple)}.badge{display:inline-block;padding:2px 7px;font-weight:800;font-size:10px;border-radius:999px;background:var(--chip);color:var(--ink)}.badge.orange{background:var(--soft-orange);color:#ad5e08}.badge.teal{background:var(--soft-teal);color:#077c78}.badge.purple{background:rgba(144,82,235,.15);color:#9b62eb}.badge.red{background:rgba(226,79,53,.13);color:#d95f47}body[data-theme=dark] .badge.orange{color:#ffba66}body[data-theme=dark] .badge.teal{color:#62e1d8}.item-card .row-controls{display:flex;flex-direction:column;gap:2px}.mini-button{border:0;background:transparent;color:var(--muted);font-size:16px;width:30px;min-height:25px}.check-btn{flex:none;width:24px;height:24px;border:2px solid var(--muted);border-radius:6px;background:transparent;color:var(--card);font-size:14px;display:grid;place-items:center;padding:0;margin-top:2px}.check-btn.done{background:var(--teal);border-color:var(--teal);color:#fff}.done-text{text-decoration:line-through;opacity:.64}.list-empty{padding:38px 16px;text-align:center;color:var(--muted)}.list-empty strong{display:block;font-size:16px;color:var(--ink);margin-bottom:5px}.list-empty .empty-icon{font-size:32px;color:var(--teal);margin-bottom:6px}
.progress-card{padding:13px 14px;margin-bottom:10px}.progress-head{display:flex;align-items:center;justify-content:space-between;font-weight:800}.progress-head span:last-child{font-size:11px;color:var(--muted)}.progress-track{height:12px;border-radius:10px;background:var(--chip);margin-top:10px;overflow:hidden}.progress-track>span{height:100%;display:block;border-radius:10px;background:linear-gradient(90deg,#02d0bf,#0ca78e);transition:width .5s}
.survey-group{font-size:12px;font-weight:800;padding:11px 12px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between}.survey-info{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:4px 0}.survey-info .bullet{color:var(--orange)}.survey-title{display:flex;gap:6px;align-items:center;justify-content:space-between;font-size:13px;font-weight:850}.survey-card{padding:12px;margin-bottom:9px}.status-line{display:flex;align-items:center;justify-content:space-between;gap:6px}.status-line b{min-width:0;overflow-wrap:anywhere}
.segment{display:flex;background:#081f3d;border:1px solid rgba(125,174,214,.35);padding:3px;border-radius:13px;gap:3px;margin-bottom:12px}.segment button{background:transparent;border:0;color:#ebf6ff;flex:1;border-radius:10px;font-weight:750;padding:9px 3px;font-size:12px}.segment button.active{background:linear-gradient(120deg,#ff9b1f,#ff8500);box-shadow:0 3px 8px #001b3050;color:white}.calendar-panel{background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow);padding:12px 9px;margin-bottom:12px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 4px 10px}.calendar-toolbar strong{font-size:16px}.calendar-toolbar button{border:0;background:transparent;color:var(--ink);font-size:24px;width:34px;height:32px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.weekday{text-align:center;color:var(--muted);font-weight:800;font-size:10px;padding:4px 0}.day{height:53px;border:0;background:transparent;color:var(--ink);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:5px 0 3px;gap:2px;font-size:12px}.day.other{opacity:.35}.day.today{outline:1px solid var(--teal)}.day.selected{background:var(--navy);color:#fff;outline:2px solid var(--teal);outline-offset:-2px}.dots{display:flex;gap:2px;align-items:center;min-height:6px}.dot{width:5px;height:5px;border-radius:50%;background:var(--orange)}.dot.teal{background:var(--teal)}.dot.purple{background:var(--purple)}.day-events .dot{width:5px;height:5px}.agenda-head{display:flex;justify-content:space-between;align-items:center;margin:12px 2px 8px}.agenda-head b{font-size:15px}.agenda-head span{color:var(--muted);font-size:11px}.event-card{padding:11px 12px;display:flex;gap:10px;align-items:center;margin-bottom:6px}.event-card .event-symbol{font-size:21px;width:26px;text-align:center;color:var(--orange);flex:none}.event-card.accent-teal .event-symbol{color:var(--teal)}.event-card.accent-purple .event-symbol{color:var(--purple)}.event-card .event-main{flex:1;min-width:0}.event-card b{font-size:12px;display:block;overflow-wrap:anywhere}.event-card small{font-size:10px;display:block;color:var(--muted);margin-top:2px}.event-card .arrow{color:var(--muted)}.week-list{display:grid;gap:5px}.week-day{display:flex;align-items:center;padding:10px 9px;gap:11px}.week-day strong{font-size:12px;min-width:55px}.week-day>span{font-size:11px;color:var(--muted);flex:1}.week-day.active{border-color:var(--teal)}
.map-area{border-radius:16px;border:1px solid var(--line);height:232px;overflow:hidden;margin-bottom:12px;position:relative;background:linear-gradient(125deg,#d9ecd9 0%,#eaf1e8 38%,#b5d7e5 80%)}body[data-theme=dark] .map-area{background:linear-gradient(125deg,#083d42,#105568 66%,#0c2f56)}.map-area svg{width:100%;height:100%;position:absolute;inset:0;opacity:.84}.map-area .map-note{position:absolute;left:10px;bottom:8px;border-radius:7px;background:var(--card);padding:5px 7px;font-size:9px;color:var(--muted);max-width:78%}.map-pin{position:absolute;border:2px solid white;width:29px;height:29px;border-radius:50% 50% 50% 0;transform:translate(-50%,-50%) rotate(-45deg);background:var(--orange);box-shadow:0 3px 12px #0004;color:white}.map-pin:after{content:'●';display:block;transform:rotate(45deg);font-size:12px;margin-left:0px;margin-top:1px}.map-pin.teal{background:#05afa7}.map-pin.purple{background:#884ee6}.location-card{padding:12px;display:flex;gap:10px;align-items:center;margin-bottom:8px}.location-card>span{color:var(--orange);font-size:23px}.location-card .place-main{flex:1;min-width:0}.location-card b{font-size:13px}.location-card small{font-size:10px;display:block;color:var(--muted);overflow-wrap:anywhere;margin-top:2px}.place-actions{display:flex;gap:4px}.place-actions button{border:1px solid var(--line);background:var(--chip);color:var(--ink);border-radius:10px;min-height:35px;min-width:35px}
.organiser-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.organiser-tile{display:flex;align-items:center;gap:9px;padding:16px 12px;text-align:left;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);font-weight:800}.organiser-tile span{font-size:23px;color:var(--orange)}.organiser-tile:nth-child(2n) span{color:var(--teal)}
.settings-group{padding:14px;margin-bottom:13px}.settings-group h2{font-size:15px;margin:0 0 12px}.settings-row{display:flex;align-items:center;gap:10px;padding:12px 3px;border-top:1px solid var(--line);color:var(--ink);width:100%;background:transparent;text-align:left;border-left:0;border-right:0;border-bottom:0}.settings-row:first-of-type{border-top:0}.settings-row .label-group{flex:1;min-width:0}.settings-row b{font-size:12px;display:block}.settings-row small{font-size:11px;color:var(--muted);display:block;margin-top:2px}.settings-row .settings-icon{font-size:21px;color:var(--orange);width:27px;text-align:center}.switch{width:43px;height:24px;border:0;border-radius:99px;background:#9bafc2;padding:3px;flex:none;transition:background .18s}.switch span{display:block;width:18px;height:18px;background:white;border-radius:50%;box-shadow:0 1px 3px #0026;transition:transform .18s}.switch.on{background:#00a99e}.switch.on span{transform:translateX(19px)}.settings-blurb{font-size:11px;line-height:1.5;color:var(--muted)}.info-note{padding:11px;background:var(--chip);border-radius:11px;font-size:11px;color:var(--muted);margin:8px 0}.color-swatches{display:flex;gap:8px;margin-top:6px}.swatch{flex:1;border:2px solid var(--line);border-radius:11px;background:var(--card);padding:9px 3px;text-align:center;color:var(--ink);font-weight:800;font-size:10px}.swatch span{display:block;margin:auto auto 4px;width:25px;height:25px;border-radius:50%}.swatch.active{border-color:var(--teal)}.button{border:1px solid transparent;border-radius:11px;padding:10px 14px;font-weight:800;font-size:12px}.button.primary{background:var(--orange);color:#fff}.button.secondary{background:var(--chip);color:var(--ink);border-color:var(--line)}.button.danger{background:#d55244;color:#fff}.button-row{display:flex;gap:8px;flex-wrap:wrap}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:6;max-width:1180px;margin:auto;background:var(--nav-bg);border-top:1px solid var(--line);display:flex;justify-content:space-around;align-items:center;padding:8px 6px calc(7px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 18px #001d3712}.bottom-nav button{width:20%;border:0;background:transparent;color:var(--muted);font-size:9px;font-weight:700;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:47px;justify-content:center}.bottom-nav button .nav-icon{font-size:21px;line-height:1.15}.bottom-nav button.active{color:var(--orange)}.bottom-nav .nav-center{opacity:0;pointer-events:none}.fab{position:fixed;bottom:calc(35px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);z-index:9;display:grid;place-items:center;width:53px;height:53px;border-radius:50%;border:3px solid var(--nav-bg);background:linear-gradient(135deg,#ffa323,#ff8400);color:#fff;font-size:34px;line-height:1;box-shadow:0 5px 13px #0004}.fab:active{transform:translateX(-50%) scale(.94)}
.drawer-shade,.quick-shade{position:fixed;inset:0;background:#00162a9a;z-index:14}.drawer{position:fixed;top:0;bottom:0;left:0;background:var(--nav-bg);color:var(--ink);width:min(86vw,340px);z-index:15;transform:translateX(-105%);transition:transform .22s ease;box-shadow:10px 0 30px #0003;display:flex;flex-direction:column}.drawer.open{transform:translateX(0)}.drawer-head{display:flex;align-items:center;gap:9px;background:var(--navy);color:white;padding:25px 13px 18px}.drawer-head img{width:49px;height:49px;border-radius:12px}.drawer-head div{flex:1;min-width:0}.drawer-head strong{font-size:16px;display:block}.drawer-head small{font-size:10px;display:block;opacity:.8}.drawer-items{padding:13px;display:grid;gap:3px;overflow-y:auto}.drawer-items button{border:0;background:transparent;color:var(--ink);text-align:left;padding:11px 13px;border-radius:10px;font-weight:750}.drawer-items button.active{background:var(--chip);color:var(--orange)}.drawer-items span{font-size:19px;display:inline-block;width:30px}.drawer-bottom{margin-top:auto;padding:17px;border-top:1px solid var(--line);font-size:12px}.drawer-bottom span,.drawer-bottom small{display:block}.drawer-bottom small{color:var(--muted)}.quick-shade{z-index:17}.quick-sheet{position:fixed;bottom:0;left:0;right:0;margin:auto;max-width:850px;background:var(--nav-bg);color:var(--ink);border-radius:24px 24px 0 0;z-index:18;padding:12px 17px calc(22px + env(safe-area-inset-bottom,0px));box-shadow:0 -10px 50px #0004}.sheet-handle{width:42px;height:4px;background:var(--line);border-radius:20px;margin:0 auto 15px}.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.sheet-head strong{font-size:16px}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.quick-grid button{border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:13px;padding:15px 5px;display:grid;justify-items:center;font-size:11px;font-weight:800;gap:3px}.quick-grid button span{font-size:25px;color:var(--orange)}.quick-grid button:nth-child(2n) span{color:var(--teal)}
.editor-dialog,.confirm-dialog{border:0;padding:0;border-radius:19px;background:var(--card);color:var(--ink);width:min(96vw,520px);max-height:calc(100vh - 45px);box-shadow:0 22px 80px #00182b7a}.editor-dialog::backdrop,.confirm-dialog::backdrop{background:#001428ad}.editor-dialog form,.confirm-wrap{padding:20px;max-height:calc(100vh - 45px);overflow-y:auto}.editor-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:15px}.tiny-label{color:var(--teal);font-size:10px;letter-spacing:1px;font-weight:850}.editor-head h2{font-size:20px;line-height:1.2;margin:4px 0}.field{font-size:12px;font-weight:750;display:block;margin-bottom:13px}.field input,.field textarea,.field select{border:1px solid var(--line);background:var(--input);color:var(--ink);width:100%;border-radius:10px;padding:11px 12px;display:block;margin-top:6px;font-size:13px;min-height:42px}.field textarea{resize:vertical;min-height:95px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.editor-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:14px}.form-error{color:#d45e47;font-size:11px;min-height:14px}.confirm-wrap h2{font-size:18px}.confirm-wrap p{color:var(--muted);font-size:13px}.toast{position:fixed;bottom:98px;left:50%;transform:translate(-50%,80px);padding:11px 17px;border-radius:12px;background:#092c55;color:#fff;z-index:40;font-size:12px;pointer-events:none;opacity:0;transition:opacity .18s,transform .18s;max-width:88vw;text-align:center}.toast.show{transform:translate(-50%,0);opacity:1}
@keyframes blueprintDrift{0%{background-position:0 0}100%{background-position:68px 34px}}@keyframes houseFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes glimmer{0%{opacity:.35}100%{opacity:1}}@keyframes drawingTravel{0%{stroke-dashoffset:420}45%,100%{stroke-dashoffset:0}}@keyframes traceHouse{0%,10%{stroke-dashoffset:380}65%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:-380}}@keyframes pageIn{from{opacity:.5;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
body[data-motion=off] *,body[data-motion=off] *:before,body[data-motion=off] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:750px){.app-shell{box-shadow:0 0 65px #001a3540}.app-header{padding:25px 5% 45px}.header-context h1{font-size:29px}.header-context p:last-of-type{max-width:none}.content{padding:0 5% 40px}.home-shortcut-grid{gap:12px}.organiser-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:340px){.content{padding-left:9px;padding-right:9px}.header-brand>span{font-size:12px}.header-brand small{font-size:8px}.header-brand img{width:32px;height:32px}.home-shortcut-grid{gap:4px}.shortcut{font-size:9px;padding:11px 2px}.chip{padding:7px 9px}.field-grid{grid-template-columns:1fr}}

/* Accent choice affects action controls, not the fixed company identity or status colours. */
body[data-accent="teal"] .chip.active,body[data-accent="teal"] .button.primary{background:var(--teal);border-color:var(--teal);color:#042b43}
body[data-accent="teal"] .segment button.active,body[data-accent="teal"] .fab{background:linear-gradient(130deg,#10cabd,#008c99);color:#fff}
body[data-accent="teal"] .bottom-nav button.active,body[data-accent="teal"] .section-heading button{color:var(--teal)}
body[data-accent="orange"] .home-metric.accent-teal{border-left-color:var(--orange)}
body[data-accent="orange"] .quick-action:nth-child(2) span,body[data-accent="orange"] .quick-action:nth-child(3) span{color:var(--orange)}


/* Weston Office 2.1 — site drawings and background controls */
.drawing-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;margin-bottom:12px;border-left:4px solid var(--orange)}
.drawing-entry b{display:block;font-size:13px}.drawing-entry small{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:4px}
.drawing-entry .button{flex:none;max-width:42%;font-size:11px;padding:11px 9px}
.sketch-preview-button{display:block;background:var(--card2);border:1px solid var(--line);border-radius:12px;padding:7px;width:100%;text-align:left;margin-top:8px;color:var(--muted)}
.sketch-preview-button canvas{display:block;width:100%;height:125px;border-radius:6px;object-fit:contain;touch-action:auto}
.sketch-preview-button small{font-size:10px;display:block;margin-top:3px}
.sketch-dialog{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:0;width:min(98vw,950px);max-height:94dvh;box-shadow:0 15px 70px #001b3e75}
.sketch-dialog::backdrop{background:#001428c4}.sketch-shell{padding:14px;max-height:92dvh;overflow:auto;overscroll-behavior:contain}
.sketch-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.sketch-head h2{margin:2px 0 8px;font-size:21px}
.sketch-top-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sketch-top-fields .field{margin-bottom:9px}.sketch-top-fields textarea{min-height:43px;max-height:110px}
.sketch-tools{display:flex;align-items:center;gap:5px;overflow-x:auto;white-space:nowrap;padding:8px 1px;margin:0 0 6px}
.sketch-tool{display:grid;place-items:center;min-width:37px;min-height:36px;border:1px solid var(--line);background:var(--card2);border-radius:9px;color:var(--ink);flex:none}
.sketch-tool.active{outline:2px solid var(--orange);outline-offset:-2px;background:var(--chip)}
.sketch-tool>span{display:block;background:var(--swatch);width:19px;height:19px;border-radius:50%;border:1px solid #ffffff89}
.sketch-text-tool{padding:5px 9px;font-size:11px;font-weight:750}.sketch-separator{height:22px;border-left:1px solid var(--line);margin:0 4px}
.sketch-paper-wrap{background:#fff;border:2px solid #afc5dd;border-radius:12px;overflow:hidden;box-shadow:0 4px 18px #00183619}
#sketchCanvas{display:block;background:#fff;width:100%;height:auto;aspect-ratio:3/2;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair}
.sketch-hint{font-size:11px;color:var(--muted);margin:8px 0}.sketch-actions{display:flex;justify-content:flex-end;gap:8px}
body[data-background="grid"] .blueprint-drawing{opacity:.06}
body[data-background="grid"] .header-grid{mask-image:none;opacity:.8}
body[data-background="minimal"] .blueprint-drawing,body[data-background="minimal"] .header-grid{opacity:0!important;animation:none!important}
body[data-background="minimal"] .app-header:before{opacity:.35}
body[data-motion-speed="slow"] .header-grid{animation-duration:55s}
body[data-motion-speed="slow"] .blueprint-drawing{animation-duration:26s}
body[data-motion-speed="slow"] .blueprint-lines{animation-duration:42s}
body[data-motion-speed="lively"] .header-grid{animation-duration:12s}
body[data-motion-speed="lively"] .blueprint-drawing{animation-duration:6s}
body[data-motion-speed="lively"] .blueprint-lines{animation-duration:11s}
body[data-motion-speed="lively"] .app-header:before{animation-duration:7s}
@media(max-width:530px){.sketch-dialog{width:100vw;max-height:96dvh;border-radius:18px 18px 0 0;margin:auto auto 0}.sketch-shell{max-height:94dvh;padding:11px}.sketch-top-fields{grid-template-columns:1fr}.sketch-top-fields .field{margin-bottom:6px}.sketch-top-fields textarea{min-height:55px}.sketch-tool{min-height:39px;min-width:37px}}


/* Weston Office v2.2 — personal workspaces, colour palettes and layered blueprint art */
body{--surface-radius:16px}
body[data-cards="rounded"]{--surface-radius:16px}
body[data-cards="compact"]{--surface-radius:8px}
body[data-cards="soft"]{--surface-radius:23px}
.card,.hero-stat,.shortcut,.quick-action,.hero-graphic,.weather-card,.editor-dialog,.settings-group,.segment{border-radius:var(--surface-radius)}
body[data-design="teal-workshop"]{--navy:#06495b;--navy2:#13667b;--navy3:#032d42;--orange:#31d6c8;--teal:#06a7bb;--soft-orange:#e4faf7}
body[data-design="orange-site"]{--navy:#453054;--navy2:#65416e;--navy3:#251e3c;--orange:#ff9820;--teal:#e67454;--soft-orange:#fff1d8}
body[data-design="blueprint-night"]{--navy:#002b60;--navy2:#1559a0;--navy3:#001b42;--orange:#63acfa;--teal:#1cd7d2;--soft-orange:#e0efff}
body[data-design="graphite"]{--navy:#273344;--navy2:#3d5266;--navy3:#17242f;--orange:#adbad0;--teal:#5ee1d4;--soft-orange:#e5e9f3}
body[data-design="warm-wood"]{--navy:#493d44;--navy2:#6a5b63;--navy3:#2c2a36;--orange:#c38e52;--teal:#78c3ad;--soft-orange:#faeee0}
/* Theme variables also shape the hero/header and active navigation */
.app-header{background:linear-gradient(135deg,var(--navy3),var(--navy) 55%,var(--navy2))}
.hero-graphic{background:linear-gradient(115deg,var(--navy),var(--navy3))}
.fab{background:linear-gradient(135deg,var(--orange),var(--orange))}
body[data-theme="dark"][data-design="warm-wood"]{--bg:#1c1a22;--card:#2a2831;--card2:#302e37;--nav-bg:#22232d;--ink:#fcf6ea}
body[data-theme="dark"][data-design="graphite"]{--bg:#121a22;--card:#1d2a36;--card2:#202f3b;--nav-bg:#17232d}
body[data-background="brick"] .header-grid{background-image:repeating-linear-gradient(0deg,transparent 0 25px,rgba(98,207,226,.17) 25px 26px),repeating-linear-gradient(90deg,transparent 0 62px,rgba(98,207,226,.15) 62px 63px);background-size:124px 52px}
body[data-background="brick"] .blueprint-drawing{opacity:.18}
body[data-background="diagonal"] .header-grid{background-image:repeating-linear-gradient(132deg,transparent 0 22px,rgba(98,207,226,.14) 23px 24px);background-size:75px 75px}
body[data-background="diagonal"] .blueprint-drawing{opacity:.13}
body[data-background="tools"] .header-grid{background-image:radial-gradient(circle,rgba(74,202,207,.18) 1px,transparent 2px);background-size:25px 25px}
body[data-background="tools"] .blueprint-drawing{opacity:.2}
body[data-background="timber"] .header-grid{background-image:repeating-linear-gradient(0deg,rgba(128,186,201,.02) 0px,rgba(128,186,201,.17) 1px,transparent 2px,transparent 17px);background-size:100% 50px}
body[data-background="timber"] .blueprint-drawing{opacity:.1}
body[data-background="skyline"] .header-grid{background-image:linear-gradient(rgba(90,179,229,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(90,179,229,.08) 1px,transparent 1px);background-size:65px 65px}
body[data-background="skyline"] .blueprint-drawing{opacity:.65;transform:scale(1.05)}
body[data-background="minimal"] .work-symbols{display:none}
.work-symbols{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.work-symbols span{position:absolute;font-size:25px;color:rgba(141,215,224,.19);animation:workSymbolFloat 14s ease-in-out infinite}
.work-symbols span:nth-child(1){top:73px;right:12%;font-size:30px;animation-delay:-3s}
.work-symbols span:nth-child(2){bottom:20px;left:5%;font-size:36px;animation-delay:-9s}
.work-symbols span:nth-child(3){bottom:13px;right:31%;animation-delay:-5s}
.work-symbols span:nth-child(4){top:43px;right:34%;font-size:18px;animation-delay:-2s}
@keyframes workSymbolFloat{0%,100%{transform:translateY(0) rotate(-7deg);opacity:.2}50%{transform:translateY(-17px) rotate(5deg);opacity:.65}}
body[data-float-icons="off"] .work-symbols{display:none}
body[data-draw-house="off"] .drawing-accent,body[data-draw-house="off"] .blueprint-lines{animation:none!important}
body[data-grid-motion="off"] .header-grid,body[data-grid-motion="off"] .hero-graphic:before{animation:none!important}
body[data-glow="off"] .app-header:before{animation:none!important;opacity:.3}
body[data-card-entrance="off"] .page-section{animation:none!important}
.weather-card{display:flex;align-items:flex-start;gap:10px;padding:12px 11px;margin-bottom:14px;min-height:88px}
.weather-symbol{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:11px;background:var(--soft-teal);font-size:22px;color:var(--navy)}
.weather-words{min-width:0;flex:1}.weather-words b{display:block;font-size:12px;line-height:1.4}.weather-words span,.weather-words small{display:block;color:var(--muted);font-size:10px;margin-top:5px;line-height:1.35}
.weather-words small{font-size:9px}.weather-refresh{border:1px solid var(--line);border-radius:10px;background:var(--card2);color:var(--ink);font-size:21px;width:36px;min-height:35px}
.settings-group{margin-bottom:13px}.setting-name{padding:9px 3px}
.theme-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px 0 12px}
.theme-choice{display:flex;gap:8px;align-items:center;min-height:49px;padding:9px;border:1px solid var(--line);background:var(--card2);color:var(--ink);border-radius:12px;text-align:left;font-size:11px}
.theme-choice b{flex:1;line-height:1.3}.theme-choice.active{border-color:var(--teal);box-shadow:0 0 0 1px var(--teal)}
.theme-dot{width:26px;height:26px;flex:none;border-radius:8px;border:1px solid rgba(255,255,255,.35)}
@media(min-width:650px){.theme-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.work-symbols *{animation:none!important}}

/* Weston Office updater status */
.update-track{height:9px;overflow:hidden;border-radius:99px;background:var(--line);margin-top:12px}.update-track span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#ff940e,#0dcabb);transition:width .15s linear}

.personal-message{padding:12px 15px;font-weight:650;margin-bottom:10px;border-left:3px solid #10cabd}.completion-burst{position:fixed;z-index:9999;left:50%;top:45%;width:0;height:0;pointer-events:none}.completion-ring{position:absolute;left:-30px;top:-30px;width:60px;height:60px;border-radius:50%;display:grid;place-items:center;background:#0a867d;color:white;border:3px solid #fff;font-size:36px;font-weight:900;box-shadow:0 5px 20px #0004;animation:weston-ring 1s both}.completion-burst i{position:absolute;width:9px;height:13px;left:-4px;top:-6px;border-radius:2px;animation:weston-confetti .95s ease-out both}@keyframes weston-ring{0%{transform:scale(.25);opacity:0}20%{transform:scale(1.15);opacity:1}45%{transform:scale(1)}100%{transform:scale(.9);opacity:0}}@keyframes weston-confetti{0%{transform:translate(0,0);opacity:1}75%{opacity:1}100%{transform:translate(var(--dx),var(--dy)) rotate(var(--spin));opacity:0}}@media(prefers-reduced-motion:reduce){.completion-burst{display:none}}
/* Weston Office 4.0 — compact home, distinct animated scenes, projects and drawing studio */
.header-kicker[data-slogan="orange"]{color:#ffb45d}.header-kicker[data-slogan="teal"]{color:#59e4d8}
.blueprint-drawing,.work-symbols{display:none!important}.custom-scene{position:absolute;right:-8px;bottom:0;width:60%;height:96%;pointer-events:none;opacity:.38;overflow:hidden}.custom-scene svg{width:100%;height:100%;fill:none;stroke:#8ee8ee;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.custom-scene path{stroke-dasharray:1400;stroke-dashoffset:0}.custom-scene[data-scene="minimal"]{opacity:.15}.custom-scene[data-scene="tools"] svg{transform-origin:70% 70%}.custom-scene[data-scene="timber"] svg{stroke:#ffbd78}.custom-scene[data-scene="brick"] svg{stroke:#ffa969}.custom-scene[data-scene="electrical"] svg{stroke:#ffcf72}.custom-scene[data-scene="waves"] svg{stroke:#55efdc}
body[data-motion="on"][data-draw-house="on"] .custom-scene path{animation:scene-trace 12s ease-in-out infinite}body[data-motion="on"][data-draw-house="on"] .custom-scene[data-scene="tools"] svg{animation:scene-tool 6s ease-in-out infinite}body[data-motion="on"][data-draw-house="on"] .custom-scene[data-scene="brick"] path{animation:scene-brick 7s steps(5,end) infinite}body[data-motion="on"][data-draw-house="on"] .custom-scene[data-scene="grid"] svg,body[data-motion="on"][data-draw-house="on"] .custom-scene[data-scene="tiles"] svg{animation:scene-grid 9s ease-in-out infinite}body[data-motion="on"][data-draw-house="on"] .custom-scene[data-scene="timber"] svg,body[data-motion="on"][data-draw-house="on"] .custom-scene[data-scene="waves"] svg{animation:scene-wave 7s ease-in-out infinite}body[data-motion="on"][data-draw-house="on"] .custom-scene[data-scene="electrical"] path{animation:scene-electric 4s linear infinite}body[data-motion="on"][data-draw-house="on"] .custom-scene[data-scene="diagonal"] svg{animation:scene-diagonal 8s linear infinite}body[data-motion="on"][data-draw-house="on"] .custom-scene[data-scene="minimal"] svg{animation:scene-pulse 8s ease-in-out infinite}body[data-motion="on"][data-draw-house="on"] .custom-scene[data-scene="skyline"] svg{animation:scene-sky 9s ease-in-out infinite}
@keyframes scene-trace{0%,10%{stroke-dashoffset:1400}55%,90%{stroke-dashoffset:0}100%{stroke-dashoffset:1400}}@keyframes scene-tool{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(4deg)}}@keyframes scene-brick{0%{stroke-dashoffset:1000}80%,100%{stroke-dashoffset:0}}@keyframes scene-grid{0%,100%{transform:scale(.95)}50%{transform:scale(1.06)}}@keyframes scene-wave{0%,100%{transform:translateX(-8px)}50%{transform:translateX(10px)}}@keyframes scene-electric{0%{stroke-dashoffset:1300;opacity:.4}70%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:.4}}@keyframes scene-diagonal{0%{transform:translateX(-20px)}100%{transform:translateX(20px)}}@keyframes scene-pulse{0%,100%{opacity:.35}50%{opacity:1}}@keyframes scene-sky{0%,100%{transform:translateY(4px)}50%{transform:translateY(-5px)}}
.weather-strip{position:relative;display:flex;align-items:center;gap:9px;padding:8px 10px;margin:0 0 12px;overflow:hidden;min-height:52px}.weather-strip .weather-words{min-width:0;flex:1;z-index:1}.weather-strip .weather-words b{font-size:12px;line-height:1.25}.weather-strip .weather-words span{font-size:10px}.weather-mini{font-size:23px;z-index:1;color:var(--teal)}.weather-strip .weather-refresh{z-index:2;flex-shrink:0}.weather-particles{position:absolute;inset:0 0 0 auto;width:70px;pointer-events:none;opacity:.45;overflow:hidden}.weather-particles i{position:absolute;left:calc(var(--n)*10px);top:-10px;width:2px;height:9px;background:#60bfff;border-radius:5px;animation:weather-fall 2s linear infinite;animation-delay:calc(var(--n)*-.27s)}.weather-strip[data-weather-kind="snow"] .weather-particles i{background:#b7defe;width:5px;height:5px;animation:weather-snow 3s linear infinite;animation-delay:calc(var(--n)*-.4s)}.weather-strip[data-weather-kind="sun"] .weather-particles i{top:calc(var(--n)*7px);background:#ffc04a;width:6px;height:6px;animation:scene-pulse 2s ease-in-out infinite;animation-delay:calc(var(--n)*-.3s)}.weather-strip[data-weather-kind="cloud"] .weather-particles i,.weather-strip[data-weather-kind="fog"] .weather-particles i,.weather-strip[data-weather-kind="wind"] .weather-particles i{top:calc(var(--n)*7px);width:16px;height:2px;background:#90afc6;animation:scene-wave 3s ease-in-out infinite;animation-delay:calc(var(--n)*-.2s)}@keyframes weather-fall{0%{transform:translate(4px,-10px);opacity:0}15%{opacity:1}85%{opacity:1}100%{transform:translate(-4px,65px) scaleX(3) scaleY(.2);opacity:0}}@keyframes weather-snow{0%{transform:translate(-5px,-8px)}100%{transform:translate(6px,65px)}}
body[data-motion="off"] .weather-particles,body[data-motion="off"] .custom-scene *{animation:none!important}body[data-motion="off"] .weather-particles{display:none}.settings-group{min-width:0}.color-swatches,.theme-choices{display:flex!important;max-width:100%;overflow-x:auto!important;overflow-y:hidden;flex-wrap:nowrap!important;touch-action:pan-x;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:10px;justify-content:flex-start}.color-swatches>*{flex:0 0 auto}.theme-choices>*{flex:0 0 145px}.color-swatches .swatch{white-space:nowrap}.settings-group .color-swatches:has([data-background]){scroll-snap-type:x proximity}.settings-group .color-swatches:has([data-background]) .swatch{scroll-snap-align:start}
body[data-design="forest"]{--navy:#24443a;--navy2:#3d6450;--navy3:#182f26;--orange:#a5c98b;--teal:#5ebf99;--soft-orange:#e4f0dc}body[data-design="slate"]{--navy:#35415e;--navy2:#4f6284;--navy3:#252d43;--orange:#a9b6d4;--teal:#8faef6;--soft-orange:#e9eefb}body[data-design="copper"]{--navy:#4e3934;--navy2:#795348;--navy3:#302322;--orange:#e8a46a;--teal:#d69b84;--soft-orange:#f9ebdf}body[data-design="ocean"]{--navy:#063b59;--navy2:#0a5d7a;--navy3:#04263f;--orange:#5bd4ff;--teal:#29bfae;--soft-orange:#def5fc}
.project-tile{display:block;text-align:left;width:100%;padding:14px;margin-bottom:12px;color:var(--ink)}.project-tile p{margin:8px 0;color:var(--muted);font-size:12px}.project-tile small{display:block;margin-bottom:9px;color:var(--muted)}.task-attachments{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 10px;padding:0 8px}.task-attachments .chip{font-size:11px;max-width:100%;overflow-wrap:anywhere}.project-tile .status-line b{overflow-wrap:anywhere}
.sketch-dialog{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.sketch-shell{height:100%;max-height:100%;overflow:auto;padding:10px;display:flex;flex-direction:column;gap:5px}.sketch-head,.sketch-top-fields,.sketch-tools,.sketch-links,.sketch-actions{flex-shrink:0}.sketch-top-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px}.sketch-top-fields .field{margin:0;font-size:11px}.sketch-top-fields input,.sketch-top-fields textarea{min-height:34px!important;height:35px;padding:5px;font-size:12px}.sketch-links{display:grid;grid-template-columns:1fr 1fr;gap:5px}.sketch-links label{font-size:11px;min-width:0}.sketch-links select{display:block;width:100%;min-height:34px;font-size:12px}.sketch-tools{gap:5px;padding:3px 0;flex-wrap:wrap}.sketch-paper-wrap{flex:1 0 auto;min-height:150px;display:flex;align-items:center;justify-content:center;background:#e9eff6}.sketch-paper-wrap canvas{width:100%;height:auto;max-height:none;aspect-ratio:3/2;object-fit:contain;touch-action:none;display:block}.sketch-actions{position:sticky;bottom:0;background:var(--card);padding-top:5px;margin-top:0}.sketch-hint{font-size:10px;margin:2px 0}.sketch-shell #sketchText{width:100%;padding:8px}.sketch-shell #sketchText[hidden]{display:none}.sketch-head h2{margin:0}.sketch-shell .sketch-tool{min-height:35px}.sketch-shell .sketch-actions button{min-height:40px}
@media(prefers-reduced-motion:reduce){.custom-scene *,.weather-particles *{animation:none!important}.weather-particles{display:none}}
.scene-floats{position:absolute;inset:0;color:#a6e5eb;pointer-events:none}.scene-floats span{position:absolute;left:calc(22% + var(--i)*26%);top:calc(16% + var(--i)*21%);font-size:20px;opacity:.45}.scene-floats span:nth-child(2){top:10%}.scene-floats span:nth-child(3){top:66%}body[data-motion="on"][data-float-icons="on"] .scene-floats span{animation:scene-sky 6s ease-in-out infinite;animation-delay:calc(var(--i)*-1.5s)}body[data-float-icons="off"] .scene-floats{display:none}body[data-motion-speed="slow"] .custom-scene *{animation-duration:16s!important}body[data-motion-speed="lively"] .custom-scene *{animation-duration:4s!important}
@media(prefers-reduced-motion:reduce){.scene-floats span{animation:none!important}}

/* 4.1 — smooth dual-brand header, longer layered scenes, compact 3x2 shortcuts */
.header-kicker[data-mode="home"]{position:relative;display:grid;align-items:center;min-height:15px;line-height:1.4;letter-spacing:1.25px;font-size:9px;isolation:isolate}
.header-kicker[data-mode="home"] span{grid-area:1/1;transition:opacity .65s ease,transform .65s cubic-bezier(.2,.8,.2,1);white-space:nowrap;transform:translateY(4px);opacity:0}
.slogan-property{color:#ffb45d}.slogan-kitchens{color:#59e4d8}.header-kicker[data-slogan="orange"] .slogan-property,.header-kicker[data-slogan="teal"] .slogan-kitchens{opacity:1;transform:translateY(0)}
.home-shortcut-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 4px}.home-shortcut-grid .shortcut{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-height:49px;padding:8px 9px;font-size:11px;text-align:left;white-space:nowrap}.home-shortcut-grid .shortcut-icon{display:grid;place-items:center;width:25px;flex:none;font-size:20px;line-height:1}.home-shortcut-grid .shortcut:nth-child(even) .shortcut-icon{color:var(--teal)}
@media(max-width:355px){.home-shortcut-grid{gap:5px}.home-shortcut-grid .shortcut{padding:6px;gap:4px;font-size:10px}.home-shortcut-grid .shortcut-icon{width:20px;font-size:17px}.header-kicker[data-mode="home"]{letter-spacing:.6px}}
.custom-scene{inset:0;width:100%;height:100%;opacity:.42;z-index:0;mask-image:linear-gradient(90deg,rgba(0,0,0,.30),rgba(0,0,0,.65) 52%,black 95%);-webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.30),rgba(0,0,0,.65) 52%,black 95%)}
.custom-scene svg{stroke:var(--scene-color,#9de1e4);stroke-width:1.15;overflow:hidden}.custom-scene .scene-base{opacity:.28}.custom-scene .scene-base path{stroke-dasharray:none!important;stroke-dashoffset:0!important;animation:none!important}.custom-scene .scene-detail path{stroke-dasharray:100;stroke-dashoffset:0;opacity:.8;animation:none!important}.custom-scene[data-scene="timber"],.custom-scene[data-scene="brick"]{--scene-color:#f4bc8d}.custom-scene[data-scene="electrical"]{--scene-color:#f7d48a}.custom-scene[data-scene="garden"]{--scene-color:#b6e6a4}.custom-scene[data-scene="mountains"]{--scene-color:#e0d5fa}.custom-scene[data-scene="waves"]{--scene-color:#91e9e2}
.app-header .custom-scene svg{animation:none!important;transform-origin:center}.header-context h1,.header-context p{text-shadow:0 1px 5px #0007}.scene-floats span:nth-child(1){left:12%;top:30%}.scene-floats span:nth-child(2){left:56%;top:19%}.scene-floats span:nth-child(3){left:82%;top:74%}
body[data-motion="on"][data-draw-house="on"] .app-header .custom-scene .scene-detail path{animation:detail-draw var(--scene-duration,22s) ease-in-out infinite!important;animation-delay:calc(var(--layer)*-1.7s)!important}body[data-motion-speed="slow"]{--scene-duration:34s}body[data-motion-speed="normal"]{--scene-duration:22s}body[data-motion-speed="lively"]{--scene-duration:13s}
body[data-motion="on"][data-draw-house="on"] .app-header .custom-scene[data-scene="tools"] .scene-detail path{animation-name:tool-sway!important;transform-box:fill-box;transform-origin:center}body[data-motion="on"][data-draw-house="on"] .app-header .custom-scene[data-scene="electrical"] .scene-detail path{animation-name:circuit-current!important}body[data-motion="on"][data-draw-house="on"] .app-header .custom-scene[data-scene="brick"] .scene-detail path{animation-timing-function:steps(7,end)!important}body[data-motion="on"][data-draw-house="on"] .app-header .custom-scene:is([data-scene="waves"],[data-scene="timber"],[data-scene="minimal"],[data-scene="garden"]) .scene-detail path{animation-name:flow-lines!important}body[data-motion="on"][data-draw-house="on"] .app-header .custom-scene:is([data-scene="grid"],[data-scene="tiles"]) .scene-detail path{animation-name:tile-reveal!important}body[data-motion="on"][data-draw-house="on"] .app-header .custom-scene[data-scene="diagonal"] .scene-detail path{animation-name:diagonal-slide!important}
@keyframes detail-draw{0%,6%{stroke-dashoffset:100;opacity:.2}48%,86%{stroke-dashoffset:0;opacity:.85}100%{stroke-dashoffset:0;opacity:.2}}@keyframes tool-sway{0%,100%{stroke-dashoffset:35;transform:rotate(-3deg);opacity:.45}35%,75%{stroke-dashoffset:0;transform:rotate(4deg);opacity:.95}}@keyframes circuit-current{0%{stroke-dasharray:18 82;stroke-dashoffset:100}95%,100%{stroke-dasharray:18 82;stroke-dashoffset:0}}@keyframes flow-lines{0%,100%{transform:translateX(-5px);opacity:.35}50%{transform:translateX(7px);opacity:.9}}@keyframes tile-reveal{0%,100%{stroke-dashoffset:80;opacity:.3}45%,80%{stroke-dashoffset:0;opacity:1}}@keyframes diagonal-slide{0%,100%{transform:translateX(-14px);opacity:.35}50%{transform:translateX(14px);opacity:.95}}
.weather-strip{min-height:56px;gap:6px}.weather-strip .weather-words span{display:block;line-height:1.2}.weather-strip .weather-mini{flex:none;font-size:20px}.weather-mascot{width:70px;height:46px;flex:0 0 70px;align-self:flex-end;margin-bottom:-6px;color:var(--muted);overflow:hidden;pointer-events:none;z-index:1}.weather-strip .weather-refresh{width:30px;min-width:30px;padding:0}.mascot-person{transform-origin:37px 44px}.mascot-umbrella{transform-origin:51px 29px}.mascot-sun{transform-origin:58px 10px}
body[data-motion="on"] .weather-mascot[data-mascot="wind"] .mascot-person{animation:mascot-gust 4.8s ease-in-out infinite}body[data-motion="on"] .weather-mascot[data-mascot="wind"] .mascot-wind{animation:mascot-air 1.7s linear infinite}body[data-motion="on"] .mascot-umbrella{animation:mascot-open 7s ease-in-out infinite}body[data-motion="on"] .mascot-rain{animation:mascot-fall 1.2s linear infinite;animation-delay:calc(var(--i)*-.17s)}body[data-motion="on"] .mascot-snow{animation:mascot-flakes 3.2s linear infinite;animation-delay:calc(var(--i)*-.52s)}body[data-motion="on"] .weather-mascot:is([data-mascot="cold"],[data-mascot="snow"]) .mascot-person{animation:mascot-shiver 3.7s ease-in-out infinite}body[data-motion="on"] .mascot-sun{animation:mascot-sunshine 10s linear infinite}body[data-motion="on"] .weather-mascot[data-mascot="sun"] .mascot-person{animation:mascot-gust 5s ease-in-out infinite}body[data-motion="on"] .mascot-flash{animation:mascot-lightning 7s infinite}body[data-motion="on"] .weather-mascot[data-mascot="fog"] .mascot-wind{animation:mascot-air 4s ease-in-out infinite}
@keyframes mascot-gust{0%,100%{transform:rotate(0)}30%{transform:rotate(-13deg) translateX(-2px)}55%{transform:rotate(8deg)}75%{transform:rotate(-7deg)}}@keyframes mascot-air{0%{transform:translateX(9px);opacity:0}35%{opacity:.9}100%{transform:translateX(-8px);opacity:0}}@keyframes mascot-open{0%,8%{transform:scaleX(.13) scaleY(.7)}19%,90%{transform:scale(1)}100%{transform:scaleX(.13) scaleY(.7)}}@keyframes mascot-fall{0%{transform:translate(4px,-5px);opacity:0}15%{opacity:1}100%{transform:translate(-7px,52px);opacity:0}}@keyframes mascot-flakes{0%{transform:translate(0,-8px);opacity:0}20%{opacity:.9}100%{transform:translate(7px,55px);opacity:0}}@keyframes mascot-shiver{0%,60%,100%{transform:translateX(0)}65%,75%,85%{transform:translateX(-1.5px)}70%,80%,90%{transform:translateX(1.5px)}}@keyframes mascot-sunshine{to{transform:rotate(360deg)}}@keyframes mascot-lightning{0%,91%,95%,100%{opacity:0}93%{opacity:.9}}
@media(max-width:355px){.weather-mascot{width:55px;flex-basis:55px}.weather-strip{gap:4px}.weather-strip .weather-words b{font-size:11px}}
body[data-motion="off"] .header-kicker span{transition:none!important}body[data-motion="off"] .weather-mascot *{animation:none!important}
@media(prefers-reduced-motion:reduce){.header-kicker span{transition:none!important}.app-header .custom-scene .scene-detail path,.weather-mascot *{animation:none!important}}

body[data-design="burgundy"]{--navy:#56283b;--navy2:#793d54;--navy3:#311d2a;--orange:#f4aa97;--teal:#e4b9cf}
body[data-design="sandstone"]{--navy:#66523c;--navy2:#8a7150;--navy3:#403426;--orange:#e7b16e;--teal:#b8d4b0}
body[data-design="olive"]{--navy:#465039;--navy2:#697550;--navy3:#2d3526;--orange:#d4c783;--teal:#b2d1a0}
body[data-design="lavender"]{--navy:#51426a;--navy2:#78638f;--navy3:#322940;--orange:#e4b4ff;--teal:#c7c6f2}
body[data-design="ember"]{--navy:#713b27;--navy2:#a15b39;--navy3:#47271f;--orange:#ffb473;--teal:#f0c5a0}
body[data-design="mono"]{--navy:#383838;--navy2:#565656;--navy3:#202020;--orange:#e2c28f;--teal:#b8d7d1}
body[data-theme="dark"][data-design="forest"]{--bg:#19271e;--card:#2a4030;--card2:#304735;--line:#47604c;--chip:#304735;--input:#304735;--nav-bg:#223329;--ink:#f2f8ed;--muted:#c4c4bf;--soft-orange:#47604c;--soft-teal:#304735}
body[data-theme="light"][data-design="forest"]{--bg:#eef3e9;--card:#fcfdf9;--card2:#e4eddf;--line:#cbdcc6;--chip:#e4eddf;--input:#e4eddf;--nav-bg:#fcfdf9;--ink:#273d2c;--muted:#625f5a;--soft-orange:#e4eddf;--soft-teal:#e4eddf}
body[data-theme="dark"][data-design="copper"]{--bg:#261d1b;--card:#3b2c27;--card2:#47342d;--line:#68483b;--chip:#47342d;--input:#47342d;--nav-bg:#32241f;--ink:#fff1e6;--muted:#c4c4bf;--soft-orange:#68483b;--soft-teal:#47342d}
body[data-theme="light"][data-design="copper"]{--bg:#f7eee7;--card:#fffaf6;--card2:#f1e3d8;--line:#e1cbbd;--chip:#f1e3d8;--input:#f1e3d8;--nav-bg:#fffaf6;--ink:#4a3025;--muted:#625f5a;--soft-orange:#f1e3d8;--soft-teal:#f1e3d8}
body[data-theme="dark"][data-design="warm-wood"]{--bg:#241f1b;--card:#372e28;--card2:#40352c;--line:#65513f;--chip:#40352c;--input:#40352c;--nav-bg:#2e261f;--ink:#fff5e9;--muted:#c4c4bf;--soft-orange:#65513f;--soft-teal:#40352c}
body[data-theme="light"][data-design="warm-wood"]{--bg:#f5efe8;--card:#fffaf5;--card2:#eee4d8;--line:#dfcdbb;--chip:#eee4d8;--input:#eee4d8;--nav-bg:#fffaf5;--ink:#43352b;--muted:#625f5a;--soft-orange:#eee4d8;--soft-teal:#eee4d8}
body[data-theme="dark"][data-design="orange-site"]{--bg:#2c201c;--card:#463027;--card2:#52392e;--line:#774c35;--chip:#52392e;--input:#52392e;--nav-bg:#36271f;--ink:#fff5e8;--muted:#c4c4bf;--soft-orange:#774c35;--soft-teal:#52392e}
body[data-theme="light"][data-design="orange-site"]{--bg:#fff0e6;--card:#fffaf5;--card2:#f8e4d7;--line:#ebcfbd;--chip:#f8e4d7;--input:#f8e4d7;--nav-bg:#fffaf5;--ink:#513021;--muted:#625f5a;--soft-orange:#f8e4d7;--soft-teal:#f8e4d7}
body[data-theme="dark"][data-design="graphite"]{--bg:#151c23;--card:#25303a;--card2:#2e3a45;--line:#41515f;--chip:#2e3a45;--input:#2e3a45;--nav-bg:#1c262e;--ink:#f2f7fb;--muted:#c4c4bf;--soft-orange:#41515f;--soft-teal:#2e3a45}
body[data-theme="light"][data-design="graphite"]{--bg:#edf0f3;--card:#fcfdff;--card2:#e7ebef;--line:#d0d8e0;--chip:#e7ebef;--input:#e7ebef;--nav-bg:#fcfdff;--ink:#303e49;--muted:#625f5a;--soft-orange:#e7ebef;--soft-teal:#e7ebef}
body[data-theme="dark"][data-design="slate"]{--bg:#202735;--card:#313c50;--card2:#3b465b;--line:#52627d;--chip:#3b465b;--input:#3b465b;--nav-bg:#293344;--ink:#f2f5fd;--muted:#c4c4bf;--soft-orange:#52627d;--soft-teal:#3b465b}
body[data-theme="light"][data-design="slate"]{--bg:#edf0f7;--card:#fcfdff;--card2:#e5e9f3;--line:#ccd5e5;--chip:#e5e9f3;--input:#e5e9f3;--nav-bg:#fcfdff;--ink:#34415b;--muted:#625f5a;--soft-orange:#e5e9f3;--soft-teal:#e5e9f3}
body[data-theme="dark"][data-design="ocean"]{--bg:#092b38;--card:#133e4b;--card2:#184957;--line:#316271;--chip:#184957;--input:#184957;--nav-bg:#0c3543;--ink:#edfaff;--muted:#c4c4bf;--soft-orange:#316271;--soft-teal:#184957}
body[data-theme="light"][data-design="ocean"]{--bg:#eaf5f7;--card:#fbfeff;--card2:#e1f0f3;--line:#bddce3;--chip:#e1f0f3;--input:#e1f0f3;--nav-bg:#fbfeff;--ink:#204b58;--muted:#625f5a;--soft-orange:#e1f0f3;--soft-teal:#e1f0f3}
body[data-theme="dark"][data-design="teal-workshop"]{--bg:#0d2e2b;--card:#1a4540;--card2:#214d47;--line:#35655c;--chip:#214d47;--input:#214d47;--nav-bg:#123a35;--ink:#effbf8;--muted:#c4c4bf;--soft-orange:#35655c;--soft-teal:#214d47}
body[data-theme="light"][data-design="teal-workshop"]{--bg:#e8f5f0;--card:#fbfefa;--card2:#e0f0e9;--line:#c4ded4;--chip:#e0f0e9;--input:#e0f0e9;--nav-bg:#fbfefa;--ink:#244b40;--muted:#625f5a;--soft-orange:#e0f0e9;--soft-teal:#e0f0e9}
body[data-theme="dark"][data-design="burgundy"]{--bg:#21161e;--card:#392631;--card2:#412b39;--line:#654250;--chip:#412b39;--input:#412b39;--nav-bg:#301e2a;--ink:#fff3f7;--muted:#c4c4bf;--soft-orange:#654250;--soft-teal:#412b39}
body[data-theme="light"][data-design="burgundy"]{--bg:#f7edf1;--card:#fffafd;--card2:#f4e3eb;--line:#e3c9d5;--chip:#f4e3eb;--input:#f4e3eb;--nav-bg:#fffafd;--ink:#422536;--muted:#625f5a;--soft-orange:#f4e3eb;--soft-teal:#f4e3eb}
body[data-theme="dark"][data-design="sandstone"]{--bg:#26211a;--card:#393126;--card2:#40382b;--line:#64543c;--chip:#40382b;--input:#40382b;--nav-bg:#30281e;--ink:#fff4e4;--muted:#c4c4bf;--soft-orange:#64543c;--soft-teal:#40382b}
body[data-theme="light"][data-design="sandstone"]{--bg:#f6efe2;--card:#fffaf0;--card2:#f2e6d4;--line:#dfcfb8;--chip:#f2e6d4;--input:#f2e6d4;--nav-bg:#fffaf0;--ink:#493a29;--muted:#625f5a;--soft-orange:#f2e6d4;--soft-teal:#f2e6d4}
body[data-theme="dark"][data-design="olive"]{--bg:#1e241a;--card:#303a29;--card2:#38412f;--line:#586449;--chip:#38412f;--input:#38412f;--nav-bg:#293122;--ink:#f2f5e6;--muted:#c4c4bf;--soft-orange:#586449;--soft-teal:#38412f}
body[data-theme="light"][data-design="olive"]{--bg:#eef0e4;--card:#fafbf5;--card2:#e4e9d7;--line:#cfd7bf;--chip:#e4e9d7;--input:#e4e9d7;--nav-bg:#fafbf5;--ink:#35402b;--muted:#625f5a;--soft-orange:#e4e9d7;--soft-teal:#e4e9d7}
body[data-theme="dark"][data-design="lavender"]{--bg:#211b2c;--card:#342b43;--card2:#3d334e;--line:#625174;--chip:#3d334e;--input:#3d334e;--nav-bg:#2c243a;--ink:#f9f1ff;--muted:#c4c4bf;--soft-orange:#625174;--soft-teal:#3d334e}
body[data-theme="light"][data-design="lavender"]{--bg:#f4eef9;--card:#fefaff;--card2:#ece2f4;--line:#d7c8e5;--chip:#ece2f4;--input:#ece2f4;--nav-bg:#fefaff;--ink:#453453;--muted:#625f5a;--soft-orange:#ece2f4;--soft-teal:#ece2f4}
body[data-theme="dark"][data-design="ember"]{--bg:#271b17;--card:#3f2a23;--card2:#483028;--line:#704739;--chip:#483028;--input:#483028;--nav-bg:#35241d;--ink:#fff2e8;--muted:#c4c4bf;--soft-orange:#704739;--soft-teal:#483028}
body[data-theme="light"][data-design="ember"]{--bg:#f9ede5;--card:#fffaf6;--card2:#f4e1d5;--line:#e5c6b4;--chip:#f4e1d5;--input:#f4e1d5;--nav-bg:#fffaf6;--ink:#502f23;--muted:#625f5a;--soft-orange:#f4e1d5;--soft-teal:#f4e1d5}
body[data-theme="dark"][data-design="mono"]{--bg:#171717;--card:#292929;--card2:#323232;--line:#484848;--chip:#323232;--input:#323232;--nav-bg:#222222;--ink:#f7f7f7;--muted:#c4c4bf;--soft-orange:#484848;--soft-teal:#323232}
body[data-theme="light"][data-design="mono"]{--bg:#f0f0f0;--card:#fff;--card2:#f6f6f6;--line:#d5d5d5;--chip:#f6f6f6;--input:#f6f6f6;--nav-bg:#fff;--ink:#303030;--muted:#625f5a;--soft-orange:#f6f6f6;--soft-teal:#f6f6f6}
body:not([data-design="classic"]):not([data-design="blueprint-night"]) .hero-stat strong{color:var(--ink)}body:not([data-design="classic"]):not([data-design="blueprint-night"]) .hero-stat:nth-child(2) strong{color:var(--orange)}body:not([data-design="classic"]):not([data-design="blueprint-night"]) .hero-stat:nth-child(3) strong{color:var(--teal)}
body[data-theme="light"] .hero-stat:nth-child(2) strong,body[data-theme="light"] .hero-stat:nth-child(3) strong{color:var(--ink)}

body[data-theme="light"] .home-shortcut-grid .shortcut-icon{color:var(--navy2)}body[data-theme="light"] .home-shortcut-grid .shortcut:nth-child(even) .shortcut-icon{color:var(--navy)}body[data-theme="light"] .weather-mini{color:var(--navy2)}

/* 4.2 — playful micro-interactions, isolated from core app logic */
.fun-icon{width:43px;height:45px;display:block;overflow:visible}.empty-icon .fun-icon{width:62px;height:64px;margin:0 auto 4px}.header-page-icon .fun-icon{color:#9ee9e3}.fun-moving{transform-box:fill-box;transform-origin:center}.mini-work-scene{position:absolute;right:8px;bottom:3px;width:88px;height:54px;opacity:.45;pointer-events:none}.hero-graphic[data-mini-scene=on]:after{display:none}.hero-graphic[data-mini-scene=on]{padding-right:96px;min-height:62px}.hero-graphic[data-mini-scene=on] small{line-height:1.35}.mini-hoist{transform-box:fill-box;transform-origin:top}.mini-sweep{stroke-dasharray:70;stroke-dashoffset:0}
body[data-motion=on][data-little-extras=on] .fun-moving{animation:fun-bob 3.6s ease-in-out 2}body[data-motion=on][data-little-extras=on] [data-fun-icon=tasks] .fun-moving{stroke-dasharray:30;animation:fun-check 2.8s ease-in-out 2}body[data-motion=on][data-little-extras=on] [data-fun-icon=reminders] .fun-moving{animation:fun-ring 2.5s ease-in-out 2}body[data-motion=on][data-little-extras=on] .mini-hoist{animation:fun-hoist 8s ease-in-out 2}body[data-motion=on][data-little-extras=on] .mini-sweep{animation:fun-trace 6s ease-in-out 2}body[data-motion=on][data-little-extras=on] .shortcut:active .shortcut-icon,body[data-motion=on][data-little-extras=on] .quick-grid button:active span{animation:fun-press .22s ease-out}body[data-motion=on][data-little-extras=on] .quick-sheet:not(.hidden) .quick-grid button{animation:fun-arrive .38s both;animation-delay:calc(var(--fun-index,0)*35ms)}.quick-grid button:nth-child(2){--fun-index:1}.quick-grid button:nth-child(3){--fun-index:2}.quick-grid button:nth-child(4){--fun-index:3}.quick-grid button:nth-child(5){--fun-index:4}.quick-grid button:nth-child(6){--fun-index:5}.quick-grid button:nth-child(7){--fun-index:6}
body[data-motion=on][data-little-extras=on] .progress-track>span:not([style="width:0%"]){position:relative;overflow:hidden}body[data-motion=on][data-little-extras=on] .progress-track>span:not([style="width:0%"]):after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,#ffffff70 50%,transparent 80%);animation:fun-shine 2s ease-out 1 both}body[data-motion=on][data-little-extras=on] .toast.fun-save{animation:fun-saved .8s ease-out;box-shadow:0 0 0 2px #40cfbd}body[data-motion=on][data-little-extras=on] .header-brand.fun-logo img{animation:fun-logo 1s ease-in-out}
@keyframes fun-bob{0%,100%{transform:translateY(0)}45%{transform:translateY(-3px)}60%{transform:translateY(-3px)}}@keyframes fun-check{0%{stroke-dashoffset:30}40%,100%{stroke-dashoffset:0}}@keyframes fun-ring{0%,100%{opacity:.35}45%,70%{opacity:1}}@keyframes fun-hoist{0%,100%{transform:translateY(0)}40%,65%{transform:translateY(8px)}}@keyframes fun-trace{0%{stroke-dashoffset:70;opacity:.3}55%,100%{stroke-dashoffset:0;opacity:1}}@keyframes fun-press{50%{transform:scale(.85)}}@keyframes fun-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes fun-shine{from{transform:translateX(-100%)}to{transform:translateX(100%)}}@keyframes fun-saved{0%{box-shadow:0 0 0 0 #40cfbd99}100%{box-shadow:0 0 0 10px #40cfbd00}}@keyframes fun-logo{0%,100%{transform:rotate(0)}25%{transform:rotate(-12deg) scale(1.08)}65%{transform:rotate(12deg) scale(1.08)}}
@media(prefers-reduced-motion:reduce){.fun-icon *,.mini-work-scene *,.fun-logo img,.toast.fun-save,.quick-grid button,.progress-track>span:after{animation:none!important}}
/* 4.3 Personality — CSS-only local illustrations */
.weather-strip:has(.w-stage){display:grid;grid-template-columns:24px minmax(0,1fr) 30px;gap:4px 8px;padding:8px 10px 0}.w-stage{grid-column:1/-1;display:block;width:100%;padding:0;border:0;background:linear-gradient(180deg,transparent,var(--navy3,#153b50) 160%);color:var(--muted);border-radius:8px 8px 0 0;overflow:hidden;cursor:pointer}.w-scene{display:block;width:100%;height:66px;overflow:hidden}.w-worker,.w-arm-b,.w-head,.w-leg-a,.w-leg-b{transform-box:fill-box;transform-origin:center}.w-arm-b{transform-origin:10% 80%}.w-leg-a,.w-leg-b{transform-origin:50% 5%}.w-hammer,.w-scarf,.w-glasses{display:none}.w-scene:is([data-mode=rain],[data-mode=hail],[data-mode=storm]) .w-hammer,.w-scene:is([data-mode=wind],[data-mode=snow],[data-mode=frost],[data-mode=cold]) .w-scarf,.w-scene:is([data-mode=sun],[data-mode=hot]) .w-glasses{display:block}.w-position{transform:translateX(0)}.w-impact{opacity:0}.w-paper{transform:translate(20px,15px)}.w-shovel{transform:translate(190px,34px)}.w-sun{transform-origin:268px 21px}.w-umbrella{transform-origin:0 7px}.w-scene[data-mode=night] .w-position{transform:translate(77px,0)}.w-scene[data-mode=night] .w-worker{transform:rotate(-68deg) scale(.85)}.w-scene[data-mode=sun] .w-position,.w-scene[data-mode=hot] .w-position{transform:translate(80px,2px)}
body[data-motion=on] .w-scene[data-mode=wind] .w-position{animation:w-gust 20s linear infinite}body[data-motion=on] .w-scene[data-mode=wind] .w-worker{animation:w-tumble 20s ease-in-out infinite}body[data-motion=on] .w-scene[data-mode=wind] .w-impact{animation:w-hit 20s infinite}body[data-motion=on] .w-paper{animation:w-paper 5s linear infinite}body[data-motion=on] .w-gusts{animation:w-air 2s linear infinite}body[data-motion=on] .w-scene[data-mode=wind] .w-leg-a{animation:w-walk .45s ease-in-out infinite alternate}body[data-motion=on] .w-scene[data-mode=wind] .w-leg-b{animation:w-walk .45s ease-in-out infinite alternate-reverse}
body[data-motion=on] .w-drop{animation:w-fall var(--fall) linear infinite;animation-delay:calc(var(--i)*-.16s)}body[data-motion=on] .w-leakdrop{animation:w-leak 1.2s linear infinite;animation-delay:calc(var(--i)*-.4s)}body[data-motion=on] .w-splash{animation:w-splash 1.2s infinite;transform-origin:156px 56px}body[data-motion=on] .w-puddle{animation:w-puddle 5s ease-in-out infinite}body[data-motion=on] .w-scene:is([data-mode=rain],[data-mode=hail],[data-mode=storm]) .w-position{animation:w-repair 22s ease-in-out infinite}body[data-motion=on] .w-scene:is([data-mode=rain],[data-mode=hail],[data-mode=storm]) .w-arm-b{animation:w-hammer 22s infinite}body[data-motion=on] .w-umbrella{animation:w-open 22s infinite}body[data-motion=on] .w-lightning{animation:w-storm 22s infinite}body[data-motion=on] .weather-strip:has(.w-scene[data-mode=rain]) .weather-refresh:after{content:'';position:absolute;inset:-4px;pointer-events:none;border-top:2px dotted #75c7ff;border-radius:50%;animation:w-button-splash 2s infinite}
body[data-motion=on] .w-snow{animation:w-snow 5s linear infinite;animation-delay:calc(var(--i)*-.4s)}body[data-motion=on] .w-snowman{animation:w-build 24s ease-in-out infinite;transform-origin:224px 66px}body[data-motion=on] .w-scene:is([data-mode=snow],[data-mode=frost]) .w-position{animation:w-snowwork 24s ease-in-out infinite}body[data-motion=on] .w-scene:is([data-mode=cold],[data-mode=frost]) .w-worker{animation:w-shiver 1.3s ease-in-out infinite}body[data-motion=on] .w-breath{animation:w-breath 2.4s infinite}body[data-motion=on] .w-sun{animation:w-sun 24s linear infinite}body[data-motion=on] .w-scene:is([data-mode=sun],[data-mode=hot]) .w-position{animation:w-sunbreak 24s ease-in-out infinite}body[data-motion=on] .w-star{animation:w-twinkle 3s infinite;animation-delay:calc(var(--i)*-.4s)}body[data-motion=on] .w-zzz{animation:w-zzz 3.5s infinite}body[data-motion=on] .w-fog{animation:w-fog 9s ease-in-out infinite}body[data-motion=on] .w-tea{animation:w-puddle 4s infinite}body[data-motion=on] .w-wave .w-arm-b{animation:w-wave .4s ease-in-out 3!important}body[data-motion=on] .w-dizzy .w-worker{animation:w-dizzy 1s ease-in-out!important}
@keyframes w-gust{0%,8%{transform:translateX(0)}12%{transform:translateX(176px)}15%{transform:translateX(178px)}22%{transform:translateX(161px)}30%{transform:translateX(150px)}48%{transform:translateX(60px)}62%,70%{transform:translateX(0)}73%{transform:translateX(178px)}78%{transform:translateX(160px)}100%{transform:translateX(0)}}@keyframes w-tumble{0%,8%,30%,62%,70%,100%{transform:rotate(0)}12%,15%,73%,75%{transform:rotate(32deg)}18%,78%{transform:rotate(65deg)}24%,83%{transform:rotate(-12deg)}}@keyframes w-hit{0%,10%,18%,70%,80%,100%{opacity:0}12%,15%,73%,76%{opacity:1}}@keyframes w-paper{0%{transform:translate(-20px,20px) rotate(0)}100%{transform:translate(340px,48px) rotate(480deg)}}@keyframes w-air{0%{transform:translateX(-25px);opacity:.25}50%{opacity:.9}100%{transform:translateX(25px);opacity:.25}}@keyframes w-walk{from{transform:rotate(-16deg)}to{transform:rotate(18deg)}}@keyframes w-fall{0%{transform:translate(0,-6px);opacity:0}10%{opacity:.85}90%{opacity:.7}100%{transform:translate(-12px,82px);opacity:0}}@keyframes w-leak{0%{transform:translateY(0);opacity:1}90%{opacity:1}100%{transform:translateY(42px);opacity:0}}@keyframes w-splash{0%,72%,100%{opacity:0;transform:scale(.3)}80%{opacity:1;transform:scale(1)}95%{opacity:0;transform:scale(1.3)}}@keyframes w-puddle{0%,100%{opacity:.3}50%{opacity:.8}}@keyframes w-repair{0%,8%,48%{transform:translateX(10px)}13%,42%{transform:translateX(18px)}60%,82%{transform:translateX(93px)}100%{transform:translateX(10px)}}@keyframes w-hammer{0%,8%,44%,100%{transform:rotate(0)}12%,22%,32%,42%{transform:rotate(-75deg)}17%,27%,37%{transform:rotate(-15deg)}}@keyframes w-open{0%,45%,100%{transform:scale(.05);opacity:0}55%,85%{transform:scale(1);opacity:1}}@keyframes w-storm{0%,100%{opacity:.7}30%,65%{opacity:1}32%,67%{opacity:.2}}@keyframes w-button-splash{0%,65%,100%{opacity:0;transform:scale(.8)}75%{opacity:1;transform:scale(1.1)}}@keyframes w-snow{0%{transform:translate(0,-8px)}100%{transform:translate(16px,90px)}}@keyframes w-build{0%,100%{transform:scale(.65)}40%,80%{transform:scale(1)}}@keyframes w-snowwork{0%,100%{transform:translateX(0)}25%,50%{transform:translateX(76px)}70%{transform:translateX(30px)}}@keyframes w-shiver{0%,100%{transform:translateX(-1px)}50%{transform:translateX(1px)}}@keyframes w-breath{0%{opacity:.1;transform:translateX(-8px) scale(.8)}70%{opacity:.65}100%{opacity:0;transform:translateX(14px)}}@keyframes w-sun{to{transform:translate(268px,21px) rotate(360deg)}}@keyframes w-sunbreak{0%,10%,100%{transform:translateX(0)}30%,80%{transform:translate(80px,5px)}}@keyframes w-twinkle{0%,100%{opacity:.3}50%{opacity:1}}@keyframes w-zzz{0%{transform:translateY(7px);opacity:0}45%{opacity:1}100%{transform:translateY(-8px);opacity:0}}@keyframes w-fog{0%,100%{transform:translateX(-18px);opacity:.2}50%{transform:translateX(18px);opacity:.7}}@keyframes w-wave{0%,100%{transform:rotate(-40deg)}50%{transform:rotate(-95deg)}}@keyframes w-dizzy{0%,100%{transform:rotate(0)}25%{transform:rotate(20deg)}75%{transform:rotate(-20deg)}}
.season-decoration{position:absolute;inset:0;pointer-events:none;overflow:hidden;opacity:.6}.season-decoration span{position:absolute;top:-18px;font-size:11px;color:#f2eaff}body[data-motion=on] .season-decoration span{animation:season-drift 6s linear infinite;animation-delay:calc(var(--i)*-.56s)}@keyframes season-drift{0%{transform:translateY(0) rotate(0)}100%{transform:translateY(85px) rotate(140deg)}}.personality-empty{display:grid;justify-items:center;gap:4px}.personality-empty small{font-size:11px;color:var(--muted);font-weight:500}.personality-empty svg:not(.fun-icon){width:120px;height:42px;color:var(--teal)}body[data-motion=on] .empty-crane{animation:fun-hoist 4s ease-in-out infinite}.personality-milestone{display:grid;gap:4px;padding:11px 14px;margin-bottom:12px;border-left:3px solid var(--teal)}.personality-milestone small{color:var(--muted)}body[data-motion=on][data-button-effects=on] button:active:not(.w-stage){transform:scale(.98);transition:transform .12s}.custom-scene[data-scene=workshop]{--scene-color:#f3c071}.custom-scene[data-scene=countryside]{--scene-color:#b4d692}.custom-scene[data-scene=marble]{--scene-color:#f1ded2}.custom-scene[data-scene=nordic]{--scene-color:#e6bf94}.custom-scene[data-scene=industrial]{--scene-color:#e0c695}.custom-scene[data-scene=coastal]{--scene-color:#91e9df}.custom-scene[data-scene=sunset]{--scene-color:#ffc685}.custom-scene[data-scene=architectural]{--scene-color:#e2e2e2}body[data-motion=on][data-draw-house=on] .app-header .custom-scene:is([data-scene=coastal],[data-scene=nordic],[data-scene=marble],[data-scene=countryside],[data-scene=sunset]) .scene-detail path{animation-name:flow-lines!important}body[data-motion=on][data-draw-house=on] .app-header .custom-scene[data-scene=industrial] .scene-detail path{animation-name:tool-sway!important;transform-box:fill-box;transform-origin:center}
body[data-personality=balanced] .w-scene{height:46px}body[data-personality=balanced] .season-decoration span:nth-child(n+5),body[data-personality=playful] .season-decoration span:nth-child(n+9){display:none}body[data-personality=minimal] .fun-icon *,body[data-personality=minimal] .mini-work-scene *,body[data-personality=minimal] .progress-track>span:after{animation:none!important}body[data-motion=off] .season-decoration span{top:3px}body[data-motion=off] .w-stage *,body[data-motion=off] .season-decoration *,body[data-motion=off] .personality-empty *{animation:none!important}body.personality-paused *{animation-play-state:paused!important}@media(prefers-reduced-motion:reduce){.w-stage *,.season-decoration *,.personality-empty *,.weather-refresh:after{animation:none!important}body[data-button-effects=on] button:active{transform:none!important;transition:none!important}.season-decoration span{top:3px}}@media(max-width:355px){.w-scene{height:57px}}

body[data-design="midnight"]{--navy:#373332;--navy2:#504643;--navy3:#211f20;--orange:#edaa55;--teal:#aec2ca}
body[data-theme="dark"][data-design="midnight"]{--bg:#191719;--card:#302b2c;--card2:#403638;--line:#594a4b;--chip:#403638;--input:#403638;--nav-bg:#302b2c;--ink:#f6efeb;--muted:#c6c5c0;--soft-orange:#594a4b;--soft-teal:#403638}
body[data-theme="light"][data-design="midnight"]{--bg:#f6f0eb;--card:#fffdf9;--card2:#e9e1da;--line:#d6c6bb;--chip:#e9e1da;--input:#e9e1da;--nav-bg:#fffdf9;--ink:#3d3029;--muted:#625f5a;--soft-orange:#e9e1da;--soft-teal:#e9e1da}

body[data-design="meadow"]{--navy:#435b38;--navy2:#627b4c;--navy3:#2d3e28;--orange:#d4bc76;--teal:#a8c58c}
body[data-theme="dark"][data-design="meadow"]{--bg:#1e291a;--card:#2e4028;--card2:#394c30;--line:#536a46;--chip:#394c30;--input:#394c30;--nav-bg:#2e4028;--ink:#f1f7e8;--muted:#c6c5c0;--soft-orange:#536a46;--soft-teal:#394c30}
body[data-theme="light"][data-design="meadow"]{--bg:#eff5e8;--card:#fffdf9;--card2:#e1ebd6;--line:#c6d6b8;--chip:#e1ebd6;--input:#e1ebd6;--nav-bg:#fffdf9;--ink:#344c2b;--muted:#625f5a;--soft-orange:#e1ebd6;--soft-teal:#e1ebd6}

body[data-design="marble-luxe"]{--navy:#686052;--navy2:#897b68;--navy3:#443e35;--orange:#d4b48a;--teal:#ede3d3}
body[data-theme="dark"][data-design="marble-luxe"]{--bg:#24211e;--card:#39342e;--card2:#494138;--line:#655749;--chip:#494138;--input:#494138;--nav-bg:#39342e;--ink:#fff7e9;--muted:#c6c5c0;--soft-orange:#655749;--soft-teal:#494138}
body[data-theme="light"][data-design="marble-luxe"]{--bg:#faf6ed;--card:#fffdf9;--card2:#eee7db;--line:#d8cdbb;--chip:#eee7db;--input:#eee7db;--nav-bg:#fffdf9;--ink:#493f32;--muted:#625f5a;--soft-orange:#eee7db;--soft-teal:#eee7db}

body[data-design="nordic"]{--navy:#655142;--navy2:#8a6b51;--navy3:#40362d;--orange:#d8b48a;--teal:#b9d4c3}
body[data-theme="dark"][data-design="nordic"]{--bg:#251e19;--card:#392e25;--card2:#493a2d;--line:#635140;--chip:#493a2d;--input:#493a2d;--nav-bg:#392e25;--ink:#fff5ea;--muted:#c6c5c0;--soft-orange:#635140;--soft-teal:#493a2d}
body[data-theme="light"][data-design="nordic"]{--bg:#f8f1e8;--card:#fffdf9;--card2:#eee1d2;--line:#dac6b1;--chip:#eee1d2;--input:#eee1d2;--nav-bg:#fffdf9;--ink:#4a3829;--muted:#625f5a;--soft-orange:#eee1d2;--soft-teal:#eee1d2}

body[data-design="industrial"]{--navy:#4b5055;--navy2:#626b70;--navy3:#30353a;--orange:#e5b35b;--teal:#b1c0c9}
body[data-theme="dark"][data-design="industrial"]{--bg:#1c2023;--card:#2e3539;--card2:#394248;--line:#4e5b65;--chip:#394248;--input:#394248;--nav-bg:#2e3539;--ink:#f5f7f8;--muted:#c6c5c0;--soft-orange:#4e5b65;--soft-teal:#394248}
body[data-theme="light"][data-design="industrial"]{--bg:#f1f3f3;--card:#fffdf9;--card2:#e4e8ea;--line:#cbd1d5;--chip:#e4e8ea;--input:#e4e8ea;--nav-bg:#fffdf9;--ink:#343f47;--muted:#625f5a;--soft-orange:#e4e8ea;--soft-teal:#e4e8ea}

body[data-design="coastal"]{--navy:#225757;--navy2:#367f79;--navy3:#153b3a;--orange:#e5cc97;--teal:#85dfd3}
body[data-theme="dark"][data-design="coastal"]{--bg:#132d2d;--card:#214342;--card2:#2d514e;--line:#426660;--chip:#2d514e;--input:#2d514e;--nav-bg:#214342;--ink:#eafbfa;--muted:#c6c5c0;--soft-orange:#426660;--soft-teal:#2d514e}
body[data-theme="light"][data-design="coastal"]{--bg:#eaf7f3;--card:#fffdf9;--card2:#dcefe9;--line:#b9d8d0;--chip:#dcefe9;--input:#dcefe9;--nav-bg:#fffdf9;--ink:#24524b;--muted:#625f5a;--soft-orange:#dcefe9;--soft-teal:#dcefe9}

body[data-design="sunset"]{--navy:#694259;--navy2:#8e5265;--navy3:#422b3e;--orange:#ffc078;--teal:#e59eb9}
body[data-theme="dark"][data-design="sunset"]{--bg:#2b2029;--card:#44303b;--card2:#523c4a;--line:#74505f;--chip:#523c4a;--input:#523c4a;--nav-bg:#44303b;--ink:#fff2f6;--muted:#c6c5c0;--soft-orange:#74505f;--soft-teal:#523c4a}
body[data-theme="light"][data-design="sunset"]{--bg:#fff0ed;--card:#fffdf9;--card2:#f4dfe0;--line:#e3c3c7;--chip:#f4dfe0;--input:#f4dfe0;--nav-bg:#fffdf9;--ink:#5a3749;--muted:#625f5a;--soft-orange:#f4dfe0;--soft-teal:#f4dfe0}

body[data-design="blackwhite"]{--navy:#363636;--navy2:#565656;--navy3:#171717;--orange:#eeeeee;--teal:#a5a5a5}
body[data-theme="dark"][data-design="blackwhite"]{--bg:#111111;--card:#272727;--card2:#353535;--line:#535353;--chip:#353535;--input:#353535;--nav-bg:#272727;--ink:#fafafa;--muted:#c6c5c0;--soft-orange:#535353;--soft-teal:#353535}
body[data-theme="light"][data-design="blackwhite"]{--bg:#f5f5f5;--card:#fffdf9;--card2:#e9e9e9;--line:#d0d0d0;--chip:#e9e9e9;--input:#e9e9e9;--nav-bg:#fffdf9;--ink:#303030;--muted:#625f5a;--soft-orange:#e9e9e9;--soft-teal:#e9e9e9}
.project-building{display:block;width:100%;height:44px;margin:5px 0 0;color:var(--muted)}body[data-motion=on] .project-brick{animation:brick-pop .5s ease-out both;animation-delay:calc(var(--i)*.065s);transform-box:fill-box;transform-origin:center}@keyframes brick-pop{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mascot-preview{padding:10px 0;color:var(--muted);font-size:12px}.mascot-preview summary{cursor:pointer;font-weight:700}.mascot-preview .w-stage{margin-top:8px}.w-stage{background:linear-gradient(180deg,transparent 20%,rgba(66,113,139,.14))}body[data-theme=dark] .w-stage{background:linear-gradient(180deg,transparent,rgba(0,0,0,.17))}@media(prefers-reduced-motion:reduce){.project-brick{animation:none!important}}
/* 4.4 — Character theatre: no overlays on working controls. */
.mascot-canvas{width:100%;height:auto;max-height:112px;display:block;object-fit:contain;pointer-events:none}.w-stage:has(.mascot-canvas){border-top:1px solid color-mix(in srgb,var(--muted) 17%,transparent);border-radius:0 0 8px 8px;min-width:0;display:block;overflow:hidden}.mascot-theatre{width:100%;display:block;padding:0;border:0;color:inherit;background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--navy) 12%,transparent));border-radius:8px;overflow:hidden;cursor:pointer}.mascot-panel{padding:6px 10px 0;margin:7px 0 12px;overflow:hidden}.mascot-caption{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);padding:3px 1px 0}.mascot-caption b{color:var(--ink)}.mascot-caption span:last-child{margin-left:auto;text-align:right}.mascot-dot{width:6px;height:6px;flex-shrink:0;background:var(--teal);border-radius:50%}.mascot-panel .mascot-canvas,.delivery-theatre .mascot-canvas{max-height:83px}.delivery-theatre{margin:-7px 0 9px;border:1px solid var(--line);border-radius:8px;overflow:hidden}.delivery-theatre .mascot-canvas{max-height:70px}.mascot-preview .mascot-theatre{margin-top:7px}.mascot-cheers{position:absolute;left:50%;top:calc(50% + 40px);transform:translateX(-50%);width:min(270px,80vw);pointer-events:none}.mascot-cheers canvas{width:100%;display:block}.sketch-mascot-details{font-size:10px;color:var(--muted);padding:2px 7px}.sketch-mascot-details summary{cursor:pointer}.sketch-mascot-details .mascot-canvas{max-height:65px}.weather-strip:has(.w-stage[data-weather-scene]){position:relative}.weather-refresh{position:relative;overflow:visible}.weather-refresh:before,.weather-refresh:after{pointer-events:none}body[data-motion=on] .weather-strip:has(.w-stage[data-weather-scene=rain]) .weather-refresh:before,body[data-motion=on] .weather-strip:has(.w-stage[data-weather-scene=storm]) .weather-refresh:before{content:'';position:absolute;left:50%;top:-11px;width:3px;height:7px;border-radius:100%;background:#8ed8ff;animation:mascot-button-drop 1.8s infinite linear}body[data-motion=on] .weather-strip:has(.w-stage[data-weather-scene=rain]) .weather-refresh:after,body[data-motion=on] .weather-strip:has(.w-stage[data-weather-scene=storm]) .weather-refresh:after{content:'';position:absolute;top:-5px;left:25%;width:50%;height:10px;border-top:2px dotted #a1e8ff;border-radius:50%;animation:mascot-button-bounce 1.8s infinite linear}@keyframes mascot-button-drop{0%{transform:translateY(-6px);opacity:0}12%{opacity:.9}38%{transform:translateY(9px);opacity:.9}40%,100%{opacity:0}}@keyframes mascot-button-bounce{0%,37%,80%,100%{opacity:0;transform:scale(.3)}44%{opacity:1;transform:scale(1) translateY(-2px)}70%{opacity:0;transform:scale(1.7) translateY(3px)}}body[data-personality=balanced] .w-stage .mascot-canvas{max-height:67px}body[data-motion=off] .weather-refresh:before,body[data-motion=off] .weather-refresh:after{animation:none!important;display:none}@media(prefers-reduced-motion:reduce){.weather-refresh:before,.weather-refresh:after{animation:none!important;display:none!important}}@media(max-width:350px){.mascot-panel .mascot-canvas{max-height:70px}.mascot-caption{font-size:9px}}
/* 4.5: organised settings and scene-specific visual feedback */
.settings-summary{display:flex;align-items:center;gap:12px;padding:14px;margin-bottom:12px}.settings-summary img{width:44px;height:44px;object-fit:contain;border-radius:12px}.settings-summary>div{flex:1;min-width:0;display:grid;gap:3px}.settings-summary small,.settings-destination small{color:var(--muted);font-size:11px;line-height:1.35}.settings-menu{display:grid;gap:8px}.settings-destination{display:grid;grid-template-columns:43px minmax(0,1fr) 16px;align-items:center;gap:11px;padding:12px;text-align:left;color:inherit;width:100%}.settings-destination>span:nth-child(2){display:grid;gap:4px}.settings-menu-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:color-mix(in srgb,var(--teal) 13%,transparent);color:var(--teal);font-size:22px;font-weight:800}.settings-destination:nth-child(odd) .settings-menu-icon{background:color-mix(in srgb,var(--orange) 13%,transparent);color:var(--orange)}.settings-back{margin-bottom:12px;min-height:42px}.update-ready{color:var(--teal)!important;font-weight:700}.settings-subpage .settings-group{margin-bottom:12px}.scene-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:8px 0 18px}.scene-choice{min-width:0;display:grid;gap:0;text-align:left;overflow:hidden;background:var(--card);color:inherit;border:1px solid var(--line);border-radius:13px;padding:0}.scene-choice.active{border:2px solid var(--teal);box-shadow:0 0 0 1px var(--teal)}.scene-choice-art{position:relative;display:block;aspect-ratio:1.9;background:linear-gradient(140deg,#172d3a,#243c4c);overflow:hidden;color:var(--scene-tint)}.scene-choice-art svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;opacity:.72}.scene-choice-icon{position:absolute;bottom:5px;right:6px;display:grid;place-items:center;font-size:22px;width:33px;height:33px;background:#152630df;border:1px solid currentColor;border-radius:9px;box-shadow:0 2px 8px #0006}.scene-choice-label{display:flex;align-items:center;justify-content:space-between;padding:9px;font-size:12px;font-weight:700;min-height:34px}.scene-choice-label b{color:var(--teal)}.feed-shortcut{width:100%;text-align:left;margin:0 0 12px}.feed-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.feed-tabs .button{font-size:12px;padding:10px 5px}.feed-brand{border-left:4px solid var(--orange)}.feed-brand.kitchens{border-left-color:var(--teal)}.feed-brand p{color:var(--muted);font-size:13px;margin:0 0 10px}.feed-brand h2{margin-bottom:5px}.settings-group h3{font-size:14px;margin:18px 0 8px}
/* The art remains behind the readable header text. */
.app-header .custom-scene{opacity:.76;mask-image:linear-gradient(90deg,#0003,#0008 56%,#000 92%);-webkit-mask-image:linear-gradient(90deg,#0003,#0008 56%,#000 92%)}.app-header .custom-scene .scene-base{opacity:.36}.app-header .custom-scene svg{stroke-width:1.8}.app-header .custom-scene .scene-detail path{filter:drop-shadow(0 0 2px var(--scene-color));opacity:.94}.scene-particles{position:absolute;inset:0;pointer-events:none;overflow:hidden;color:var(--fx-color);display:none}.scene-particles i{position:absolute;left:var(--x);top:var(--y);width:4px;height:4px;background:currentColor;border-radius:50%;opacity:0;box-shadow:0 0 6px currentColor;transform-origin:center}.scene-particles[data-fx=spark] i{width:13px;height:2px;border-radius:1px;box-shadow:0 0 7px currentColor}.scene-particles[data-fx=dust] i{width:8px;height:8px;filter:blur(1px);box-shadow:0 0 3px currentColor}.scene-particles[data-fx=water] i{width:8px;height:8px;background:transparent;border:1px solid currentColor;box-shadow:none}.scene-particles[data-fx=leaf] i{width:8px;height:4px;border-radius:100% 0 100% 0;box-shadow:none}.scene-particles[data-fx=measure] i{width:10px;height:1px;box-shadow:none}.scene-particles[data-fx=snow] i{width:5px;height:5px}.scene-burst-icon{position:absolute;inset:0;display:grid;place-items:center;font-size:40px;font-weight:900;color:var(--fx-color);text-shadow:0 0 14px currentColor;opacity:0}.selection-burst{z-index:3}.selection-burst i{left:50%;top:50%}.selection-burst[data-fx=dust] i{width:13px;height:13px}.selection-burst[data-fx=spark] i{width:20px;height:2px}
body[data-motion=on][data-draw-house=on]:not([data-personality=minimal]) .custom-scene .scene-particles{display:block}body[data-motion=on][data-draw-house=on] .custom-scene .scene-particles i{animation:scene-ambient 6s ease-in-out infinite;animation-delay:calc(var(--i)*-.49s)}body[data-motion=on] .custom-scene .scene-particles[data-fx=spark] i{animation:scene-spark 4s ease-out infinite;animation-delay:calc(var(--i)*-.31s)}body[data-motion=on] .custom-scene .scene-particles[data-fx=dust] i{animation:scene-dust 7s ease-out infinite;animation-delay:calc(var(--i)*-.53s)}body[data-motion=on] .custom-scene .scene-particles[data-fx=water] i{animation:scene-ripple 5s ease-out infinite;animation-delay:calc(var(--i)*-.4s)}body[data-motion=on] .custom-scene .scene-particles[data-fx=leaf] i,body[data-motion=on] .custom-scene .scene-particles[data-fx=snow] i{animation:scene-fall 7s ease-in-out infinite;animation-delay:calc(var(--i)*-.57s)}body[data-motion=on][data-button-effects=on] .selection-burst{display:block}body[data-motion=on] .selection-burst i{animation:scene-burst 1.15s cubic-bezier(.15,.7,.25,1) both;animation-delay:calc(var(--i)*.025s)}body[data-motion=on] .scene-burst-icon{animation:scene-icon-pop 1.3s ease-out both}
@keyframes scene-ambient{0%,100%{opacity:0;transform:translate(0,0) scale(.5)}25%{opacity:.8}80%{opacity:.1;transform:translate(15px,-20px) scale(1.4)}}@keyframes scene-spark{0%,38%,100%{opacity:0;transform:translate(0,0) rotate(calc(var(--i)*27deg)) scale(.4)}43%{opacity:1;transform:translate(0,0) rotate(calc(var(--i)*27deg)) scale(1.3)}63%{opacity:0;transform:translate(calc(var(--dx)*.35),calc(var(--dy)*.35)) rotate(calc(var(--i)*27deg)) scale(.3)}}@keyframes scene-dust{0%,100%{opacity:0;transform:translate(0,8px) scale(.5)}20%{opacity:.8}80%{opacity:0;transform:translate(28px,-32px) scale(2.5)}}@keyframes scene-ripple{0%,100%{opacity:0;transform:scale(.2)}18%{opacity:.9}76%{opacity:0;transform:scale(5)}}@keyframes scene-fall{0%{opacity:0;transform:translate(-8px,-20px) rotate(0)}25%{opacity:.8}90%,100%{opacity:0;transform:translate(18px,35px) rotate(160deg)}}@keyframes scene-burst{0%{opacity:0;transform:translate(0,0) rotate(calc(var(--i)*31deg)) scale(.3)}14%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(calc(var(--i)*31deg)) scale(1.4)}}@keyframes scene-icon-pop{0%{opacity:0;transform:scale(.2) rotate(-20deg)}20%{opacity:1;transform:scale(1.25) rotate(5deg)}48%{opacity:.9;transform:scale(.95)}100%{opacity:0;transform:scale(1.1)}}
body.personality-paused .scene-particles *,body.personality-paused .custom-scene *{animation-play-state:paused!important}@media(prefers-reduced-motion:reduce){.scene-particles,.selection-burst{display:none!important}.scene-particles *{animation:none!important}}body[data-motion=off] .scene-particles{display:none!important}

/* Pixel art is nearest-neighbour scaled and each scene keeps its full composition. */
canvas[data-mascot-scene], canvas[data-pixel-theme] { image-rendering:pixelated; }
.mascot-panel { padding:0; }
.mascot-caption { padding:8px 11px; }
.mascot-panel .mascot-theatre { border-radius:0; }
.mascot-theatre, .w-stage { background:#354f58; }
.mascot-canvas, .mascot-panel .mascot-canvas, .delivery-theatre .mascot-canvas,
.sketch-mascot-details .mascot-canvas, body[data-personality=balanced] .w-stage .mascot-canvas {
  width:100%; max-height:none; aspect-ratio:192/68; object-fit:contain;
}
.mascot-panel, .delivery-theatre, .w-stage, .pixel-studio { max-width:620px; margin-inline:auto; }
.mascot-panel,.w-stage,.delivery-theatre { width:100%; box-sizing:border-box; }
.pixel-studio { display:grid; gap:7px; padding-bottom:12px; }
.pixel-studio label { color:var(--ink); font-size:12px; font-weight:700; }
.pixel-studio small { color:var(--muted); font-size:11px; }
.pixel-picker { display:grid; grid-template-columns:42px minmax(0,1fr) 42px; gap:5px; }
.pixel-picker select,.pixel-picker button { min-width:0; height:42px; border:1px solid var(--line); background:var(--input); color:var(--ink); border-radius:8px; }
.pixel-picker select { padding-inline:8px; font:inherit; font-size:13px; }
.pixel-picker button { font-size:21px; }
.scene-choice-art { aspect-ratio:2; }
.scene-choice-art canvas { display:block; width:100%; height:100%; }
.app-header .custom-scene { opacity:.85; mask-image:linear-gradient(90deg,transparent 12%,#0004 52%,#000b 88%); -webkit-mask-image:linear-gradient(90deg,transparent 12%,#0004 52%,#000b 88%); }
.custom-scene canvas { position:absolute; right:0; bottom:0; width:auto; min-width:58%; height:100%; }
.scene-particles[data-fx=dust] i, .selection-burst[data-fx=dust] i {
  width:5px; height:3px; border-radius:0; filter:none; box-shadow:4px -3px 0 -1px #efcb91;
}
.scene-particles[data-fx=spark] i { width:9px; height:2px; border-radius:0; box-shadow:3px -2px 0 -0.5px #fff5bb; }
.scene-burst-icon { text-shadow:2px 2px 0 #223645; }
@media (min-width:680px) {
  .pixel-studio { width:100%; }
  .mascot-panel .mascot-canvas,.w-stage .mascot-canvas,.delivery-theatre .mascot-canvas { max-height:150px; }
}

/* Professional workspace additions */
[hidden]{display:none!important}.pro-record{margin-block:9px;overflow-wrap:anywhere}.pro-record .status-line{gap:8px}.pro-detail{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line,rgba(127,127,127,.18));font-size:.86rem}.pro-detail span{color:var(--muted);flex:1}.pro-detail b{text-align:right;flex:1;font-weight:600}.pro-linked{margin:12px 0;display:flex;flex-wrap:wrap;gap:6px}.pro-linked b{width:100%}.pro-stage{display:flex;align-items:center;gap:10px;padding:8px 4px;font-size:.88rem;color:var(--muted)}.pro-stage span{width:22px;text-align:center;font-weight:700}.pro-stage.current{font-weight:700;color:var(--text);background:rgba(39,159,145,.14);border-radius:8px}.pro-subtasks{margin-top:-4px;font-size:.88rem}.pro-subtasks label,.pro-switch{display:flex;align-items:center;gap:9px;padding:8px 0}.pro-subtasks input,.pro-switch input,.pro-draw-tools input{width:19px!important;height:19px!important;min-height:0!important;accent-color:#159a90;flex:0 0 19px}.pro-result{border-radius:12px;background:rgba(33,160,146,.13);padding:18px 12px;margin:12px 0;font-weight:750;font-size:1.18rem;overflow-wrap:anywhere}.pro-draw-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:5px 10px;font-size:.8rem}.pro-draw-tools label{display:flex;align-items:center;gap:6px}.pro-draw-tools select{max-width:170px}.pro-record summary,.pro-subtasks summary{cursor:pointer;padding-block:5px;font-weight:650}.pro-record details{margin-top:12px}.button-row{flex-wrap:wrap}.pro-record button{max-width:100%}

.pro-quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.pro-quick-links button{font-size:.72rem;min-width:0;padding:8px 4px;white-space:normal}.pro-stage.current{border-left:3px solid #159a90}

/* Release notes: theme-aware, compact and accessible, no remote markup. */
.release-current,.release-available{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--card2);overflow-wrap:anywhere}.release-available{border-inline-start:4px solid var(--teal)}.release-kicker{font-size:10px;letter-spacing:.09em;font-weight:800;color:var(--muted);margin-bottom:6px}.release-current h3,.release-available h3{font-size:17px;line-height:1.3;margin:0 0 9px;color:var(--ink)}.release-highlights{padding-inline-start:19px;margin:8px 0 0;color:var(--ink);font-size:13px}.release-highlights li{margin:6px 0;padding-inline-start:3px}.release-highlights li::marker{color:var(--teal)}.release-previous{margin-top:13px;border:1px solid var(--line);border-radius:12px;padding:0 12px}.release-previous summary,.release-entry summary{cursor:pointer;padding:12px 0;color:var(--ink);font-weight:600;overflow-wrap:anywhere}.release-previous summary small{display:block;margin:3px 0 0 15px;color:var(--muted);font-size:11px;font-weight:400}.release-entry{border-top:1px solid var(--line)}.release-entry .release-highlights{margin:0 0 12px}.release-note-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;color:var(--ink);line-height:1.55}.release-previous summary:focus-visible,.release-entry summary:focus-visible{outline:2px solid var(--teal);outline-offset:2px}

/* 4.7.2 — a calmer, larger-target workspace */
[hidden]{display:none!important}
body[data-page="home"] .app-header{padding-bottom:25px;min-height:0}
body[data-page="home"] .header-context{padding-top:17px;padding-bottom:4px}
body[data-page="home"] .header-context h1{max-width:none;font-size:clamp(22px,6vw,28px);line-height:1.16;margin:6px 0}
body[data-page="home"] .header-context p:last-of-type{max-width:100%;font-size:12px}
body[data-page="home"] .header-page-icon{display:none}
body[data-page="home"] .custom-scene{opacity:.48}
.simple-home{padding-top:3px;display:flex;flex-direction:column;gap:12px}
.simple-home .weather-strip,.simple-home .weather-card{margin:0}
.home-dayline{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px 12px;font-size:12px;color:var(--muted);padding:0 3px}
.home-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 2px}
.home-section-title h2{font-size:18px;font-weight:800;margin:0;letter-spacing:-.35px}
.home-edit-link{background:transparent;border:0;color:var(--ink);font-size:13px;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:8px 4px}
.simple-tools.home-shortcut-grid,.simple-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}
.home-tool{display:flex;align-items:center;gap:10px;min-width:0;min-height:61px;padding:12px 10px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:14px;text-align:left;box-shadow:none}
.home-tool-wide{grid-column:1/-1;min-height:62px}
.home-tool-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;color:var(--orange);background:var(--chip);font-size:20px;line-height:1}
.home-tool:nth-child(2n) .home-tool-icon{color:var(--teal)}
.home-tool-name{font-size:14px;font-weight:750;line-height:1.25;overflow-wrap:anywhere;flex:1;min-width:0}
.home-tool-arrow{font-size:20px;color:var(--muted);flex:none}
.home-tool:active{transform:scale(.985)}
.home-add-tools{display:flex;align-items:center;gap:10px;background:transparent;color:var(--ink);border:1px dashed var(--line);border-radius:13px;min-height:47px;padding:10px 13px;font-weight:700;text-align:left;font-size:13px}
.home-add-tools span:first-child{font-size:20px;color:var(--orange)}.home-add-tools span:last-child{margin-left:auto;color:var(--muted);font-size:20px}
.simple-home .section-heading{margin:4px 0 0}.simple-home .hero-graphic{margin:0}
.home-customise .card{margin-bottom:12px}.home-customise h2{margin:0 0 8px;font-size:17px}.home-core-list{display:flex;flex-wrap:wrap;gap:7px}.home-core-list span{padding:7px 10px;border-radius:9px;background:var(--chip);font-size:12px;font-weight:650}.home-customise .pro-switch{min-height:44px;display:flex;align-items:center;gap:10px;font-size:14px}.home-customise .pro-switch input{width:20px;height:20px;flex:none}
.drawer-toolbar{display:flex;justify-content:space-between;align-items:center;padding:9px 15px 4px;flex:none}.drawer-toolbar button,.drawer-order-hint button{border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:8px;padding:8px 11px;min-height:40px;font-size:13px;font-weight:700}.drawer-order-hint{padding:0 15px 8px;font-size:12px;color:var(--muted);line-height:1.5;flex:none}.drawer-order-hint button{display:block;margin:5px 0 0}.drawer-items{display:flex;flex-direction:column;flex:1;min-height:0;gap:3px;padding:4px 9px 10px;overflow:auto}.drawer-row{display:flex;align-items:center;gap:3px;flex:none;min-width:0}.drawer-items .drawer-link{flex:1;min-width:0;min-height:46px;display:flex;align-items:center;gap:7px;padding:8px 7px;line-height:1.2;font-size:14px}.drawer-items .drawer-link span{width:24px;flex:0 0 24px;text-align:center;font-size:18px}.drawer-order-controls{display:flex;gap:2px;flex:none}.drawer-items .drawer-order-controls button{width:33px;height:40px;padding:0;text-align:center;border:1px solid var(--line);border-radius:7px;font-size:19px;font-weight:750;background:var(--card)}.drawer-items .drawer-order-controls button:disabled{opacity:.3}.drawer-bottom{flex:none;padding:9px 14px;font-size:10px}.drawer-bottom small{line-height:1.25}
@media(max-width:350px){.home-tool{padding:10px 7px;gap:6px}.home-tool-icon{width:28px;flex-basis:28px;height:28px}.home-tool-name{font-size:13px}.drawer-items .drawer-order-controls button{width:29px}.drawer-items .drawer-link{font-size:12px;gap:3px}.drawer-items .drawer-link span{width:20px;flex-basis:20px}}
@media(prefers-reduced-motion:reduce){.home-tool:active{transform:none}}

/* 4.7.3 – compact forecast, optional planning hints */
.forecast-icon{border:0;background:transparent;padding:0;color:inherit;cursor:pointer;min-height:34px;min-width:24px}.forecast-link{display:block;background:none;border:0;color:var(--teal);font-size:11px;font-weight:800;text-align:left;padding:4px 0 2px;cursor:pointer}.forecast-panel{padding:12px;min-width:0;margin:0 0 10px}.forecast-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.forecast-days,.forecast-hours{display:flex;gap:7px;overflow-x:auto;max-width:100%;padding:8px 0;scrollbar-width:thin;overscroll-behavior-x:contain}.forecast-days button{flex:none;background:var(--card2);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:7px 10px;font-size:12px}.forecast-days button.active{border-color:var(--teal);color:var(--teal);font-weight:800}.forecast-hour{display:flex;flex:0 0 76px;flex-direction:column;gap:5px;align-items:center;border:1px solid var(--line);background:var(--card2);padding:9px 4px;border-radius:10px;font-size:12px}.forecast-hour small{font-size:10px;color:var(--muted)}.forecast-symbol{font-size:24px;color:var(--teal)}.task-weather{display:block;color:var(--muted);font-size:11px;line-height:1.45;padding:5px 9px;margin:2px 0 7px;border-left:2px solid var(--teal);background:var(--card2);border-radius:5px;overflow-wrap:anywhere}.event-main .task-weather{margin:5px 0 0}.forecast-panel .button{font-size:12px;min-height:36px}.forecast-panel .tiny{margin:6px 0 9px}

/* Everyday essentials: compact, optional controls */
.ess-back{margin:0 0 10px}.ess-back .button{min-height:40px;padding:8px 14px}.ess-undo-bar{max-width:680px;margin:0 auto;width:100%;padding:0 16px}.ess-undo-bar:has(button:not([hidden])){padding-top:8px}.ess-undo-bar button[hidden],#duplicateEditor[hidden]{display:none!important}.ess-project-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--project-colour);margin-right:6px;vertical-align:middle;flex:none}.ess-days{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0}.ess-days label{display:flex;align-items:center;gap:4px;font-size:13px}.ess-days input{width:18px;height:18px;min-height:0}.ess-work-summary{font-size:12px;color:var(--muted);margin:8px 4px}.ess-hours-note{color:var(--muted);font-weight:600}.ess-guide-step{border-top:1px solid var(--line);padding:14px 0}.ess-guide-step p{margin:5px 0 9px}.editor-actions{flex-wrap:wrap}.row-controls{flex-shrink:0}.row-controls [data-pin-task][aria-pressed=true]{color:#e59b37}

.ess-calendar-controls{display:flex;align-items:center;gap:8px}.ess-calendar-controls .segment{flex:1;min-width:0}.ess-calendar-controls>.button{flex:none;padding:8px 12px}.day.ess-nonwork:not(.selected):not(.today){background:var(--card2)}.ess-undo-bar:not(:has(button:not([hidden]))){display:none}.ess-undo-bar .button{font-size:12px;min-height:34px}


.app-header{padding-top:calc(17px + env(safe-area-inset-top,0px));}.drawer{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);}input,textarea,select{font-size:16px!important;}
