/* CI 2.0 approved 2026-10-07. Shared foundations and adapters for existing views.
   Functional circles and Android outer widget frames are deliberate exceptions. */
:root,body[data-live] .world{color-scheme:dark;--bg:#263c2e;--panel:#314735;--ink:#eee5cb;--muted:#b2baa3;--gold:#e5b95d;--line:#78836466;--paper:#d7cda2;--green:#e5b95d;--soft:#3d5541;--ci-nav:#1d3025;--ci-radius:4px;--ci-control:48px}
body{background:var(--bg);color:var(--ink);font:16px/1.5 Arial,sans-serif}body[data-live]{background:var(--bg)}
h1,h2,h3,h4{font-family:Georgia,serif;font-weight:400;overflow-wrap:anywhere}h1,.welcome h1{font-size:40px;line-height:1.2;letter-spacing:normal}h2{font-size:24px;line-height:1.25}h3,h4{font-size:20px;line-height:1.3}p{line-height:1.5}small,.hint,.field-note,.note,.meta,.device-note{font-size:13px;line-height:1.4;color:var(--muted)}
button,input,select,textarea,.button{font-family:Arial,sans-serif}button,.button,.gold,.outline,.green,.send,.variants button,.all-lights-off,.coop-favourites button,.product-select-button,.logs-tools button,.logs-more,.timer-presets button,.timer-controls button,.timer-list button{border-radius:var(--ci-radius);font:16px/1.25 Arial,sans-serif;min-height:var(--ci-control);padding:12px 16px;box-shadow:none;letter-spacing:normal;touch-action:manipulation}
button{background:transparent;color:var(--ink);border:1px solid #879477}.gold,.green,.send,.all-lights-off,.product-select-button,button[type=submit]:not(.quiet):not(.outline):not(.logout-link){background:var(--gold);border:1px solid var(--gold);color:#203528}.outline,.variants button,.timer-presets button,.timer-list button{background:var(--panel);border:1px solid #879477;color:var(--ink)}.quiet,.edit-link,.logout-link{background:transparent;color:var(--muted);border-color:transparent}.danger{color:#ffb8a3}.gold:hover,.send:hover,.all-lights-off:hover{filter:brightness(1.08)}button:disabled{opacity:.5;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{color:var(--ink);background:#23392b;border:1px solid #879477;border-radius:4px;min-height:48px;padding:12px;font:16px/1.5 Arial,sans-serif;max-width:100%}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}input[type=checkbox],input[type=radio],input[type=range]{accent-color:var(--gold)}label,.name-field,.search-label{font:14px/1.5 Arial,sans-serif;color:var(--muted)}
.panel,.ritual,.card,#view-content .room,#view-content .lamp,.layout>aside,.connection,.agenda-day{background:var(--panel);border-radius:4px;border:1px solid var(--line);padding:24px}.ritual,.ritual:nth-child(2n),.card:nth-child(3n+1),.card:nth-child(3n){transform:none}.ritual p{font:16px/1.5 Arial,sans-serif}.eyebrow,.tag,.stamp,.note-number{font-size:11px;line-height:1.4;letter-spacing:1.4px}.badge,.status,.local{font:13px/1.4 Arial,sans-serif;border-radius:4px}
.shell,.world{max-width:1500px}.shell{grid-template-columns:180px minmax(0,1fr)}main,.dashboard{min-width:0}.shell>main,.world>.dashboard{padding:32px}.shell>main>section.panel+section.panel{margin-top:24px}.rail,body[data-live] .world .rail{background:var(--ci-nav);padding:32px 16px;border-right:1px solid var(--line)}.rail nav{display:grid;gap:8px;margin-top:48px}.rail nav a,.rail nav button,.rail nav .ritual-nav,.rail nav .vacuum-nav{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 8px;width:100%;border:0;border-left:2px solid transparent;border-radius:4px;text-decoration:none;color:var(--muted);background:transparent;font:14px Arial}.rail nav a.active,.rail nav button.active{border-left-color:var(--gold);background:#e5b95d10;color:var(--gold)}.rail nav svg,.rail nav img,.rail nav .nav-icon{width:24px;height:24px;flex-shrink:0}.rail nav span,.rail nav .ritual-nav span{font:14px/1.3 Arial,sans-serif}.rail .brand,.rail .root-brand{font:18px/1.2 Georgia,serif}.rail .brand small,.rail .root-brand small{font:11px/1.4 Arial,sans-serif}.rail-foot,.rail-bottom{font-size:12px}.rail-foot small,.rail-bottom small{font-size:11px}
.content-grid,.ritual-grid,.grid{gap:16px}.editor-layout,.calendar-layout,.layout{gap:24px}.tabs{gap:8px;flex-wrap:wrap}.tabs button,.calendar-toolbar .tabs button{border-radius:4px;min-height:48px;padding:12px 16px;font:16px Arial}.tabs [aria-selected=true],.tabs [aria-pressed=true]{color:var(--gold);border-color:var(--gold)}.page-head{gap:24px;flex-wrap:wrap}.page-head p{font-size:16px}.calendar-toolbar button{min-width:48px}.calendar-scroll,.error,.secret,.recovery code{border-radius:4px}.error{background:#4b332b;color:#ffb8a3}.qr{background:#fff;border-radius:4px}.qr svg{color-scheme:light}.topbar{padding:24px 32px;background:var(--ci-nav);border-radius:4px}.topbar .brand{font:20px Georgia}.topbar .brand-icon{border-radius:4px;background:transparent}.topbar .brand span{text-transform:none}.auth>.panel{background:var(--panel);padding:24px}.auth h1{font-size:40px}.auth .intro{font-size:16px}.home-nav{flex-wrap:wrap}.topbar form button{width:auto}.topbar .quiet{min-height:48px}
body[data-live] .panel{padding:24px;border-radius:4px}body[data-live] .panel h2,.dashboard-list h2{font-size:20px;line-height:1.3}body[data-live] .welcome h1{font-size:40px}body[data-live] .welcome p{font-size:16px}body[data-live] .dashboard-list{padding:24px;border-radius:4px}.dashboard-list .list-entry{font-size:16px;min-height:48px}.dashboard-list .list-text{font:16px/1.5 Arial,sans-serif}.dashboard-list .list-remove{width:48px;min-width:48px;height:48px;padding:0}.dashboard-list .list-feedback,.coop-favourites p,.coop-favourites a{font-size:13px}.dashboard-list[data-list=shopping] .list-entries{max-height:336px;overflow-y:auto}.paper,.dashboard-list{border-radius:4px}.paper input:not([type=checkbox]),.dashboard-list input:not([type=checkbox]):not([type=range]){background:#eee5cb;color:#263c2e}.paper button,.dashboard-list button{color:#263c2e}.paper button.send,.dashboard-list .product-select-button,.dashboard-list .coop-send{background:var(--gold);color:#203528}.paper .meta,.paper .note,.paper .eyebrow,.dashboard-list .note-number{color:#44583c}.paper .note,.paper .meta{font-size:13px}.paper .row span{font:16px/1.5 Arial}.paper .row button{min-width:48px;min-height:48px}.shopping-card{background:#c9c6a0}.paper .list{max-height:336px;overflow-y:auto}.card{border-radius:4px}.card h3{font-size:20px}.card .add{width:48px;height:48px;padding:0;border-radius:4px}.art{object-fit:contain}.card .meta{font-size:13px}
#view-content .room{margin:24px 0;padding:24px}#view-content h3{font:24px/1.25 Georgia}#view-content h4{font:20px/1.3 Georgia;min-height:52px}#view-content .room-head p,#view-content .state{font-size:14px}#view-content label,#view-content .fixed{font-size:13px}#view-content .lamps{gap:16px}#view-content .lamp{padding:16px;flex-basis:208px}#view-content .art{border:0;background:transparent;padding:0;border-radius:4px}.logs-tools p,.log-entry p{font-size:16px}.log-entry time,.log-entry small,.log-lamps li{font-size:13px}.log-day>h3{font-size:24px}.log-lamps code{font-size:12px;overflow-wrap:anywhere}.log-entry{gap:16px}.logs-status button{margin-left:12px}.android-app-menu{border-radius:4px;font:14px Arial;min-height:48px}
/* Vacuum map keeps its own ink/paper tokens scoped to parchment, not UI text. */
body.ci-vacuum{--ink:#eee5cb;background:#263c2e;color:#eee5cb}.ci-vacuum .parchment{--ink:#68462e;--paper:#e8d7aa;--edge:#b49361;border-radius:4px}.ci-vacuum .layout>aside{padding:24px}.ci-vacuum .layout>aside button{font:16px/1.5 Arial;color:var(--ink);padding:12px;border-radius:4px;min-height:48px}.ci-vacuum .note,.ci-vacuum #variant-description{font-size:13px;color:#b2baa3}.ci-vacuum header p{font-size:16px;color:#b2baa3}
/* Functional geometry: small calendar cells and timeline actions, circular dials/toggles. */
button.power,button.toggle,#view-content .room-toggle,button.light-toggle{border-radius:24px;min-height:29px;padding:0}button.toggle{width:54px}.power{min-height:30px}button.day-number{min-height:32px;min-width:32px;width:32px;height:32px;border-radius:50%;padding:0;font:14px Arial}button.time-day{padding:8px;border-radius:0}button.hour-slot{padding:0;border-radius:0;min-height:55px}button.cal-event{min-height:0;padding:5px 6px;font:12px/1.35 Arial;border-radius:4px}.cal-event small{font-size:11px}button.more-events{min-height:32px;padding:4px;font:12px Arial}.timer-page .timer-start{border-radius:50%;width:130px;height:130px;padding:0;font:22px Georgia;background:radial-gradient(circle at 35% 20%,#f0d383,#b48a3c)}.timer-page .time-picker input{font:64px Georgia;color:var(--gold);background:transparent;padding:20px 0}.timer-page .timer-label input{font:22px Georgia;background:transparent}.timer-label,.time-picker label,.timer-note{font-size:14px}.timer-page .dial-inner strong,.compact .time{font-variant-numeric:tabular-nums}.timer-page .timer-presets button,.timer-page .timer-list button{border-radius:4px}.time-picker{gap:16px}.timer-page h1{font-size:40px}
@media(max-width:850px){.shell{grid-template-columns:160px minmax(0,1fr)}.rail{padding:24px 12px}}
@media(max-width:650px){h1,.welcome h1,.auth h1,.timer-page h1{font-size:30px;line-height:1.2}h2{font-size:24px}.shell,.world{display:block}.shell>main,.world>.dashboard,.timer-page{padding:24px 16px}.rail,body[data-live] .world .rail{position:sticky;top:0;z-index:20;padding:8px 12px;width:100%;height:auto;border-right:0;border-bottom:1px solid var(--line)}.rail .brand,.rail .root-brand{font-size:14px}.rail nav{display:flex;gap:4px;margin:8px 0 0;overflow-x:auto;max-width:100%;scrollbar-width:thin}.rail nav a,.rail nav button,.rail nav .ritual-nav,.rail nav .vacuum-nav{min-width:48px;width:48px;min-height:48px;height:48px;padding:12px;flex-shrink:0;justify-content:center}.rail nav span,.rail nav .ritual-nav span{display:none}.rail nav svg,.rail nav img,.rail nav .nav-icon{width:24px;height:24px}.rail-foot,.rail-bottom{display:none}.panel,.ritual,.card,#view-content .room,.layout>aside,.connection,.agenda-day,body[data-live] .panel,body[data-live] .dashboard-list{padding:16px}.content-grid{gap:12px}.page-head{gap:16px}.page-head p{font-size:16px}.topbar{padding:16px;flex-wrap:wrap}body>main{padding:24px 16px}.topbar .brand{font-size:18px}.calendar-toolbar{gap:8px}.calendar-toolbar .tabs button{padding:12px;font-size:14px}.month-cell .cal-event{font-size:11px;padding:3px 2px}.time-picker input,.timer-page .time-picker input{font-size:48px}.timer-presets{flex-wrap:wrap}.log-entry{grid-template-columns:1fr;gap:8px}.logs-tools{flex-wrap:wrap}.dashboard-list .list-text{font-size:14px}.ci-vacuum .layout>aside{padding:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Shared rail and material exceptions, independent of historical selectors. */
.rail .brand.root-brand{display:flex;align-items:flex-start;gap:8px;white-space:normal;overflow-wrap:anywhere}.rail .brand.root-brand img{width:30px;height:30px}.rail .brand.root-brand span{font:18px/1.2 Georgia;min-width:0}.rail .brand.root-brand small{font:11px/1.4 Arial;margin-top:8px}.rail nav .nav-icon:not(img){fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.rail nav img.nav-icon{object-fit:contain}.rail-bottom{margin-top:48px;display:grid;gap:12px}.rail-bottom .security-link{font:13px/1.4 Arial;color:var(--muted)}.rail-bottom .logout-link{font:14px Arial;padding:12px 0;text-align:left}.rail-bottom small{font:11px Arial;color:var(--muted)}
.layout>aside.paper,.paper{background:#d7cda2;color:#263c2e}.ci-catalog .paper{background:#c9c6a0}.paper .small,.paper .small p,.paper label,.paper .note,.paper .meta{color:#44583c}.paper h2,.paper h3,.paper p,.paper .eyebrow{color:#263c2e}.paper .proposal-label,.paper .note-row,.paper .paper-check{color:#44583c;font-size:13px}.catalog-page{min-width:0}.ci-catalog .catalog-page>header,.ci-catalog .catalog-page>main,.ci-catalog .catalog-page>footer{padding:32px}.ci-catalog .catalog-page>header{gap:16px;flex-wrap:wrap}.ci-catalog .brand{font:20px Georgia}.preview-banner,.library-top,.ritual .edit-link,.editor-actions .quiet,.editor-actions .danger,.permissions-grid span,.action-value,.name-field,.check,.examples button,.ruth-hint p,.note-row,legend small,.action-top button{font-size:13px;line-height:1.5}.editor-actions .quiet,.editor-actions .danger{min-height:48px;padding:12px}.calendar-choice small,.calendar-choice label{font-size:13px}.ritual h3{font-size:20px}.panel-top .stamp{font-size:11px}.timer-label{font-size:14px}.android-app-menu svg{width:24px;height:24px}
@media(max-width:650px){.rail .brand.root-brand span{font-size:16px}.rail .brand.root-brand small{display:none}.rail .rail-bottom{display:none}.ci-catalog .catalog-page>header,.ci-catalog .catalog-page>main,.ci-catalog .catalog-page>footer{padding:24px 16px}.ci-catalog .catalog-page>header .local{display:none}.ci-catalog .catalog-home{display:none}.rail nav a,.rail nav button,.rail nav .ritual-nav{padding:12px!important;min-width:48px!important}.rail nav svg,.rail nav img{width:24px!important;height:24px!important}}

/* Compact Home typography must fit two real columns, without breaking words. */
body[data-live] .weather h2,body[data-live] .lights h2{overflow-wrap:normal;hyphens:auto}body[data-live] .lights .lamp-art{height:190px}.ci-more{display:none}
@media(max-width:650px){body[data-live] .weather h2,body[data-live] .lights h2{font-size:18px}body[data-live] .panel-top{flex-wrap:wrap;gap:8px}body[data-live] .panel-top .stamp{font-size:10px}body[data-live] .lights .lamp-art{height:125px}.rail nav{flex-wrap:wrap;overflow:visible}.rail nav .ci-extra{display:none}.rail nav .ci-more{display:flex;order:5}.rail[data-expanded=true] nav .ci-extra{display:flex;width:100%;order:6;justify-content:flex-start}.rail[data-expanded=true] nav .ci-extra span{display:inline}.rail nav .ci-more[aria-expanded=true]{color:var(--gold);background:#e5b95d10}.rail[data-expanded=true]{position:relative}}

.rail .brand.root-brand{text-decoration:none}.timer-page #timer-hours,.timer-page #timer-minutes,.timer-page #timer-seconds{font:64px/1.2 Georgia;color:var(--gold);text-align:center;background:transparent;border:0;border-block:1px solid #a5935d66;border-radius:4px;padding:20px 0;font-variant-numeric:tabular-nums}.timer-page #timer-label{font:22px Georgia;background:transparent;border:0;border-bottom:1px solid #a5935d66;text-align:center}.timer-page .timer-presets button{padding:12px}.toggle::before,.power::before{content:'';position:absolute;inset:-10px 0;min-height:48px}.power,.toggle{position:relative}.timer-page .timer-presets{flex-wrap:nowrap}.timer-page .timer-presets button{flex:1;white-space:nowrap}
@media(max-width:650px){.timer-page #timer-hours,.timer-page #timer-minutes,.timer-page #timer-seconds{font-size:48px}.timer-page .timer-presets button{font-size:14px;padding:12px 8px}.ci-catalog .catalog-page>header{display:none}}

.button:not(.quiet),.gold,.send{color:#203528}.gold,.outline,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.timer-start{display:block}.panel label,.fields label{font-weight:400}.rail nav .ci-more.active{color:var(--gold)}

.shell{display:grid;min-height:100vh;background:var(--bg)}.rail nav .ci-more{display:none}.rail .brand.root-brand small{display:block}.rail .brand.root-brand span{overflow-wrap:anywhere}.ci-catalog .rail .brand.root-brand{font-size:18px}
@media(max-width:650px){.shell{display:block}.rail nav .ci-more{display:flex}.rail .brand.root-brand small{display:none}}

/* Sauberwisch uses the same page frame; parchment remains its own material. */
.vacuum-shell{display:grid;max-width:1500px;grid-template-columns:180px minmax(0,1fr)}.vacuum-content{padding:32px}.vacuum-shell .rail{padding:32px 16px;border-right:1px solid var(--line)}.ci-vacuum .rail nav{display:grid;gap:8px;margin-top:48px;justify-content:normal}.ci-vacuum .rail .brand small{letter-spacing:normal}.ci-vacuum .rail-bottom a{letter-spacing:normal}
@media(min-width:651px) and (max-width:850px){.vacuum-shell{grid-template-columns:160px minmax(0,1fr)}}
@media(max-width:650px){.vacuum-shell{display:block}.vacuum-content{padding:24px 16px}.vacuum-shell .rail{padding:8px 12px;border-right:0;border-bottom:1px solid var(--line)}.ci-vacuum .rail nav{display:flex;gap:8px;margin-top:8px;justify-content:flex-start;flex-wrap:wrap}.ci-vacuum .rail nav a.active{border-bottom:0}}

/* Shared page geometry must override historical view-specific brand layouts. */
html{scrollbar-gutter:stable}.world,.shell,.vacuum-shell{margin:0 auto;max-width:1500px;grid-template-columns:180px minmax(0,1fr)}
.rail .brand.root-brand,body[data-live] .world .rail .brand.root-brand{display:flex;flex-direction:row;align-items:flex-start;gap:8px;margin:0;min-height:64px;padding:0}
.rail .brand.root-brand img{width:30px;height:30px;flex:none}.rail .brand.root-brand span,body[data-live] .world .rail .root-brand span{white-space:normal;font:18px/1.2 Georgia;overflow-wrap:anywhere}
.rail .brand.root-brand small,body[data-live] .world .rail .root-brand small{font:11px/1.4 Arial;letter-spacing:normal;max-width:none;margin-top:8px}
body[data-live] .world .rail,.rail{position:static;height:auto;align-self:stretch}
.coop-favourites .product-select-button,.dashboard-list .coop-favourites .product-select-button{border-radius:4px;background:var(--gold);color:#203528;border:1px solid var(--gold);box-shadow:none;min-height:48px;padding:12px 16px;font:16px/1.25 Arial}
@media(min-width:651px) and (max-width:850px){.world,.shell,.vacuum-shell{grid-template-columns:160px minmax(0,1fr)}}
@media(max-width:650px){.rail .brand.root-brand,body[data-live] .world .rail .brand.root-brand{min-height:30px}.rail .brand.root-brand span,body[data-live] .world .rail .root-brand span{font-size:16px}.rail .brand.root-brand small,body[data-live] .world .rail .root-brand small{display:none}}

/* Mobile: one shared full-width header, all seven destinations always visible. */
@media(max-width:650px){
html{scrollbar-gutter:auto}body{margin:0!important;padding:0!important}
.world,.shell,.vacuum-shell,body[data-live] .world{display:block!important;width:100%!important;max-width:none!important;margin:0!important;border:0!important;overflow:visible!important}
.rail,body[data-live] .world .rail,.vacuum-shell .rail{display:block!important;position:static!important;width:100%!important;box-sizing:border-box!important;height:auto!important;min-height:0!important;margin:0!important;padding:12px 8px 8px!important;background:#263c2e!important;border:0!important}
.rail .brand.root-brand,body[data-live] .world .rail .brand.root-brand{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;min-height:32px!important;height:32px!important;margin:0 4px!important;padding:0!important}
.rail .brand.root-brand img{width:30px!important;height:30px!important}.rail .brand.root-brand span,body[data-live] .world .rail .brand.root-brand span{font:18px/1.2 Georgia!important;white-space:nowrap!important}.rail .brand.root-brand small{display:none!important}
.rail nav,body[data-live] .world .rail nav,.ci-vacuum .rail nav{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:0!important;margin:8px 0 0!important;padding:0!important;width:100%!important;overflow:visible!important;justify-content:normal!important}
.rail nav a,.rail nav button,.rail nav .ci-extra,.rail[data-expanded=true] nav .ci-extra{display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:48px!important;height:48px!important;margin:0!important;padding:8px 0!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:4px!important;order:initial!important;background:transparent!important}
.rail nav a.active,.rail nav button.active{border-bottom-color:#e5b95d!important;background:#e5b95d10!important}.rail nav span,.rail[data-expanded=true] nav .ci-extra span{display:none!important}.rail nav .ci-more{display:none!important}.rail nav .nav-icon{width:24px!important;height:24px!important}.rail nav img.nav-icon{filter:brightness(0) invert(1)}
.rail .rail-bottom,.rail-foot{display:none!important}
.world>.dashboard,.shell>main,.vacuum-content,.ci-catalog .catalog-page>main{width:100%!important;box-sizing:border-box!important;margin:0!important;padding:16px 8px!important}
body[data-live] .content-grid{gap:8px!important}body[data-live] .panel,body[data-live] .dashboard-list{padding:12px!important}.ci-catalog .catalog-page>header{display:none!important}
}
@media(max-width:650px){.world,.shell,.vacuum-shell,body[data-live] .world{padding:0!important}.rail nav img.nav-icon{opacity:1!important}body[data-live] .lights h2{font-size:16px!important;hyphens:none;overflow-wrap:normal}body[data-live] .all-lights-off{font-size:14px;padding:12px 6px;width:100%}}

@media(max-width:650px){.world,body[data-live] .world{overflow:hidden!important}.rail nav img.nav-icon{filter:brightness(0) invert(1)!important}}

/* Keep the room illustration inside its button on narrow screens. */
body[data-live] .lights .lamp-art{padding:0;border:0;background:transparent;width:100%;overflow:hidden}body[data-live] .lights #home-lamp-vector{height:100%;min-height:0;display:grid;place-items:center}body[data-live] .lights #home-lamp-vector svg{display:block;height:100%;max-height:100%;width:100%}
.coop-favourites .product-select-button,.coop-favourites #coop-send{display:inline-flex;align-items:center;justify-content:center;gap:12px;margin:8px 6px 8px 0;padding:12px 16px;min-height:48px;box-sizing:border-box;border:1px solid #87683b;border-radius:var(--ci-radius);background:linear-gradient(#ecd499,#d4b269);color:#263c2e;font:16px/1.25 Arial,sans-serif;box-shadow:none;text-decoration:none}.coop-favourites .product-select-button:hover,.coop-favourites #coop-send:hover{background:linear-gradient(#f3dfad,#dfbf77);color:#263c2e}
