/* UI UX Pro Max polish: retain the illustrated v0.33 identity and all data rules. */
body.bw-enabled{--bw-muted:#536359;--bw-control:#809084;--bw-fast:140ms;--bw-ease:cubic-bezier(.2,.7,.3,1)}
.bw-enabled :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--brand);outline-offset:3px;scroll-margin-block:110px}
.bw-enabled #page:focus{outline:none}
.bw-skip-link{position:fixed;inset-block-start:12px;inset-inline-start:16px;z-index:300;transform:translateY(-180%);padding:12px 18px;border-radius:12px;background:var(--bw-paper);color:var(--bw-ink);font-weight:700}
.bw-skip-link:focus{transform:none}
.bw-enabled button{transition:background-color var(--bw-fast) var(--bw-ease),border-color var(--bw-fast) var(--bw-ease),box-shadow var(--bw-fast) var(--bw-ease);cursor:pointer}
.bw-enabled button:active:not(:disabled){box-shadow:inset 0 0 0 100px #25372f0c}
.bw-enabled button:disabled{cursor:default;opacity:.55}
.bw-workspace :is(h2,b,p,small),.bw-record :is(b,small){overflow-wrap:anywhere}
.bw-workspace h2{line-height:1.25;text-wrap:balance}
.bw-toolbar,.bw-toolbar>div{gap:8px}.bw-icon-button{min-width:44px;width:44px}
.bw-sync{font-size:12px!important;line-height:1.5;min-width:0}.bw-sync span{overflow-wrap:anywhere}
.bw-stats{gap:12px}.bw-stats>button{padding:20px;gap:8px}.bw-stats strong{font-size:clamp(22px,2.2vw,30px);line-height:1.25;letter-spacing:-.025em}
.bw-kicker{font-size:12px;letter-spacing:.04em;line-height:1.4}.bw-stats small{font-size:13px;line-height:1.5}
.bw-room-title .bw-kicker{font-size:12px}.bw-room-title h2{max-width:none;line-height:1.3}.bw-room-title>div{min-width:0}.bw-design{flex-shrink:0;font-size:13px!important}
.bw-area-tabs{gap:8px}.bw-area-tabs button{font-size:13px!important;border-color:var(--bw-control);line-height:1.4}
.bw-area-tabs button[aria-pressed=true]{box-shadow:0 3px 8px #25372f16;font-weight:700}
.bw-hotspot{border-color:var(--bw-control)}.bw-focus-panel b{font-size:16px}.bw-focus-panel p{font-size:14px;line-height:1.6}.bw-focus-actions{flex-wrap:wrap}.bw-focus-actions button{font-size:14px!important;min-height:48px}
.bw-panel{padding:24px}.bw-section-heading h2{font-size:18px}.bw-section-heading>span{font-size:12px}
.bw-task b,.bw-activity b,.bw-clear b{font-size:14px;line-height:1.5}.bw-task small,.bw-activity small,.bw-progress-card small,.bw-clear p{font-size:13px;line-height:1.5}
.bw-activity small{white-space:normal;max-width:none}.bw-activity strong{font-size:14px;white-space:normal;overflow-wrap:anywhere;text-align:end;max-width:36%}
.bw-progress-card b{font-size:16px}.bw-classic-link{font-size:14px!important}.bw-intro p{font-size:16px;max-width:65ch}
.bw-work-grid,.bw-record-grid{gap:12px}.bw-action{font-size:14px!important;line-height:1.5;padding:16px;min-height:88px}.bw-muted{font-size:14px!important}
.bw-enabled #mobileNav .bw-nav{font-size:12px;line-height:1.3;min-height:52px}.bw-enabled #mobileNav .bw-nav.active{background:var(--bw-soft);font-weight:700}
.bw-enabled dialog.bw-mobile-dialog{scroll-padding-block:24px 110px}.bw-enabled dialog .modal-head>div{min-width:0}.bw-enabled dialog .modal-head h2{overflow-wrap:anywhere;text-wrap:balance}
.bw-enabled dialog .modal-head p{font-size:14px;line-height:1.6}.bw-enabled dialog .close{min-width:44px;min-height:44px}.bw-enabled dialog .field>label{line-height:1.5}.bw-enabled dialog .check-row{min-height:48px;gap:12px}
.bw-theme-grid b{font-size:14px;line-height:1.4}.bw-draft-bar small{font-size:13px}.bw-enabled dialog .summary-line b{white-space:normal;overflow-wrap:anywhere;min-width:0;text-align:end}.bw-enabled dialog .summary-line{align-items:start}
.bw-enabled .toast{max-width:calc(100vw - 32px);line-height:1.5}.bw-enabled dialog::backdrop{background:#17271e75}
@media(max-width:700px){
 .bw-enabled .topbar{height:auto!important;min-height:78px}.bw-enabled .top-actions{gap:8px!important}
 .bw-toolbar{gap:8px;flex-wrap:wrap}.bw-toolbar>div{margin-inline-start:auto}.bw-toolbar .bw-text-button{font-size:12px!important;padding:8px!important}.bw-sync{font-size:12px!important;max-width:52%}
 .bw-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.bw-stats>button{padding:16px 14px;border-radius:18px}.bw-stats .bw-kicker{font-size:12px;letter-spacing:.02em}.bw-stats small{font-size:12px}.bw-stats strong{font-size:22px}
 .bw-stats>button:last-child{grid-column:1/-1;display:flex;align-items:flex-start;gap:6px;background:var(--bw-soft)}.bw-stats>button:last-child strong{font-size:28px}
 .bw-room-title{padding:20px 18px 4px}.bw-room-title h2{font-size:24px}.bw-room-title .bw-kicker{font-size:12px}.bw-design{font-size:12px!important;padding:8px;min-width:44px}
 .bw-area-tabs{padding:0 12px 16px;gap:8px}.bw-area-tabs button{font-size:12px!important;min-height:60px}.bw-focus-panel{padding:20px 18px}.bw-focus-panel p{font-size:14px}.bw-focus-actions button{padding:12px!important}
 .bw-panel{padding:20px}.bw-home-grid{gap:16px;margin-top:20px}.bw-section-heading h2{font-size:18px}.bw-work-grid,.bw-record-grid{gap:10px}.bw-action{font-size:14px!important;min-height:96px;padding:14px 12px}
 .bw-enabled .main{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}.bw-enabled .mobile-nav{gap:4px;padding-inline:10px!important}
 .bw-enabled dialog.bw-mobile-dialog{max-height:min(92dvh,var(--bw-viewport,92dvh))!important}.bw-enabled dialog .modal-card{padding-inline:20px!important}
}
@media(max-width:359px){.bw-toolbar .bw-sync{max-width:100%}.bw-stats{grid-template-columns:minmax(0,1fr)}.bw-stats>button:last-child{grid-column:auto}.bw-work-grid,.bw-record-grid{grid-template-columns:minmax(0,1fr)}.bw-room-title{flex-wrap:wrap}.bw-area-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:500px) and (max-width:900px){.bw-enabled .topbar{position:relative}.bw-enabled dialog.bw-mobile-dialog{max-height:95dvh!important}}
@media(prefers-reduced-motion:reduce){.bw-enabled *,.bw-enabled *::before,.bw-enabled *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Explicit foregrounds avoid inherited dark text on brand-coloured controls. */
.bw-enabled .bw-workspace .primary,.bw-enabled .bw-record .primary{color:var(--on-brand,#fff)}
.bw-enabled #mobileNav .bw-nav.active{color:var(--bw-ink)}
.bw-heading-aside{display:inline-flex;align-items:center;gap:10px;flex-shrink:0}
.bw-home-accent{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--canvas-soft,#ede6fb);color:var(--canvas-accent,#6750bd)}
.bw-home-accent svg{display:block;width:24px;height:24px}
