.home-mode-grid,.home-mode-shortcuts,.home-mode-dialog{--hm-text:var(--pc-text,var(--text,#e4eeeb));--hm-muted:var(--pc-muted,var(--muted,#9cadaa));--hm-line:var(--pc-line,var(--line,#2b3c44));--hm-panel:var(--pc-surface,var(--panel,#142229));--hm-accent:var(--pc-accent,var(--mint,#a5e5be));color:var(--hm-text);font-family:Inter,ui-sans-serif,system-ui,sans-serif}
.home-mode-grid[hidden],.home-mode-shortcuts[hidden],.home-mode-dialog [hidden]{display:none!important}.home-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 20px}.home-mode-card{--mode-color:#c8c9e8;position:relative;min-width:0;padding:18px 20px 12px;border:1px solid var(--hm-line);border-radius:20px;background:linear-gradient(125deg,#7185b51a,#ad825c14),var(--hm-panel);box-shadow:inset 0 1px 0 #ffffff06;overflow:hidden}.home-mode-card.is-back{--mode-color:#a5e5be;background:linear-gradient(125deg,#6cb5a520,#669ea90b),var(--hm-panel)}.home-mode-card:before{content:'';position:absolute;top:0;left:18px;right:18px;height:1px;background:linear-gradient(90deg,transparent,var(--mode-color),transparent);opacity:.25}.home-mode-card-top{display:flex;align-items:center;gap:10px;min-width:0}.home-mode-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;border:1px solid #b1c3cc26;border-radius:11px;color:var(--mode-color,var(--hm-accent));background:#98afbc09}.home-mode-icon svg{width:22px;height:22px}.home-mode-kicker{font-size:9px;line-height:1.4;letter-spacing:.11em;font-weight:700;color:var(--hm-muted)}.home-mode-count{margin-left:auto;white-space:nowrap;font-size:10px;color:var(--hm-muted);border:1px solid var(--hm-line);border-radius:20px;padding:4px 7px}.home-mode-card h2{font-size:23px;letter-spacing:-.6px;line-height:1.2;margin:12px 0 4px;color:var(--hm-text)}.home-mode-lead{font-size:12px;line-height:1.5;margin:0;color:var(--hm-muted)}.home-mode-schedule{font-size:10px;line-height:1.5;color:var(--mode-color);margin:10px 0 14px;min-height:15px;overflow-wrap:anywhere}.home-mode-card-actions{display:flex;gap:9px;align-items:center}.home-mode-card button,.home-mode-dialog button{font:inherit;cursor:pointer;touch-action:manipulation}.home-mode-card button:disabled,.home-mode-dialog button:disabled{opacity:.42;cursor:not-allowed}.home-mode-card button:focus-visible,.home-mode-dialog :is(button,input,select):focus-visible,.home-mode-shortcuts button:focus-visible{outline:2px solid var(--hm-accent);outline-offset:3px}.home-mode-card .home-mode-run{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:133px;min-height:35px;padding:8px 12px;border:1px solid #b7c5dc38;border-radius:10px;background:#a2b1cf12;color:var(--hm-text);font-size:12px;font-weight:650}.home-mode-card.is-back .home-mode-run{border-color:#a5e5be45;background:#a5e5be14}.home-mode-run:hover:not(:disabled){filter:brightness(1.15)}.home-mode-run>span{color:var(--mode-color)}.home-mode-card .home-mode-config{display:flex;align-items:center;justify-content:center;gap:6px;min-height:35px;padding:7px 8px;border:0;background:transparent;color:var(--hm-muted);font-size:11px}.home-mode-config svg{width:15px;height:15px}.home-mode-config:hover:not(:disabled){color:var(--hm-text)}.home-mode-status{font-size:10px;line-height:1.5;min-height:15px;margin:8px 0 0;color:var(--hm-muted)}.home-mode-status:empty{display:none}.home-mode-status.is-error{color:#e7bd99}
.home-mode-shortcuts{display:inline-flex;align-items:center;gap:5px;flex:none}.home-mode-pill{display:flex;align-items:center;border:1px solid var(--hm-line);border-radius:10px;background:#8da2bc08;overflow:visible;color:var(--hm-muted)}.home-mode-pill.is-back{color:var(--hm-accent)}.home-mode-pill button,.dom-top .home-mode-pill button,html.pc-ui #navigation .home-mode-pill button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:30px;padding:6px 8px;border:0;border-radius:9px;background:transparent;color:inherit;font:600 11px/1.2 system-ui;cursor:pointer}.home-mode-pill svg{width:17px;height:17px;flex:none}.home-mode-pill button:hover:not(:disabled){background:#9bacbf12}.home-mode-pill button:disabled{opacity:.42;cursor:not-allowed}.home-mode-pill .home-mode-pill-config,.dom-top .home-mode-pill .home-mode-pill-config,html.pc-ui #navigation .home-mode-pill .home-mode-pill-config{min-width:25px;padding:6px 5px;border-left:1px solid var(--hm-line);border-top-left-radius:0;border-bottom-left-radius:0}.home-mode-pill-config svg{width:12px;height:12px}.dom-top .home-mode-shortcuts{margin-left:auto}.dom-top:has(.home-mode-shortcuts) nav{min-width:0;flex:1}
.home-mode-dialog{width:min(720px,calc(100vw - 32px));max-height:min(850px,calc(100dvh - 36px));padding:0;border:1px solid var(--hm-line);border-radius:22px;background:var(--hm-panel);box-shadow:0 30px 110px #0009;overflow:auto}.home-mode-dialog::backdrop{background:#030a0ed1;backdrop-filter:blur(8px)}.home-mode-dialog :is(input,select,button){box-sizing:border-box;font-family:inherit}.home-mode-dialog-head{display:flex;align-items:center;gap:12px;padding:22px 24px 19px;border-bottom:1px solid var(--hm-line)}.home-mode-dialog-head .home-mode-icon{width:44px;height:44px}.home-mode-dialog-head .home-mode-icon svg{width:26px;height:26px}.home-mode-dialog-head h2{font-size:25px;line-height:1.2;letter-spacing:-.5px;margin:3px 0;color:var(--hm-text)}.home-mode-dialog-head p{font-size:12px;color:var(--hm-muted);margin:4px 0 0}.home-mode-dialog-head>button{align-self:flex-start;margin-left:auto;min-width:32px;min-height:32px;border:1px solid var(--hm-line);border-radius:50%;background:transparent;color:var(--hm-muted);font-size:23px}.home-mode-dialog-body{padding:0 24px}.home-mode-editor-section{padding:22px 0;border-bottom:1px solid var(--hm-line)}.home-mode-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.home-mode-section-heading h3{font-size:14px;margin:0 0 4px}.home-mode-section-heading p{font-size:11px;color:var(--hm-muted);margin:0;line-height:1.5}.home-mode-section-heading>span{font-size:11px;font-variant-numeric:tabular-nums;color:var(--hm-muted);white-space:nowrap}.home-mode-step-list{display:flex;flex-direction:column;gap:9px}.home-mode-step{min-width:0;border:1px solid var(--hm-line);border-radius:13px;background:#8798ae05;padding:11px}.home-mode-step-heading{display:flex;align-items:center;gap:9px;min-width:0}.home-mode-step-number{display:flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;border:1px solid var(--hm-line);border-radius:7px;font-size:10px;color:var(--hm-muted)}.home-mode-step-heading>label{flex:1;min-width:0}.home-mode-field-label{display:block;font-size:9px;line-height:1.4;color:var(--hm-muted);margin-bottom:4px}.home-mode-dialog input:not([type=checkbox],[type=color]),.home-mode-dialog select{width:100%;min-width:0;min-height:35px;padding:7px 9px;border:1px solid var(--hm-line);border-radius:8px;background:var(--pc-bg,#0b171d);color:var(--hm-text);font-size:12px}.home-mode-dialog select{padding-right:25px}.home-mode-step-tools{display:flex;gap:3px;align-self:flex-end}.home-mode-step-tools button,.home-mode-time button{display:inline-flex;align-items:center;justify-content:center;width:27px;min-width:27px;height:32px;border:0;border-radius:7px;background:transparent;color:var(--hm-muted);font-size:16px}.home-mode-step-tools button:hover:not(:disabled),.home-mode-time button:hover{background:#9bafb711;color:var(--hm-text)}.home-mode-value{margin:9px 0 0 31px}.home-mode-number{display:flex;align-items:center;gap:10px}.home-mode-number input{max-width:140px}.home-mode-number>span{color:var(--hm-muted);font-size:10px}.home-mode-dialog input[type=color]{display:block;width:70px;height:34px;border:1px solid var(--hm-line);border-radius:8px;background:transparent;padding:3px}.home-mode-dialog .home-mode-add,.home-mode-dialog .home-mode-add-time{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 10px;margin-top:11px;border:1px dashed var(--hm-line);border-radius:9px;background:transparent;color:var(--hm-accent);font-size:11px}.home-mode-add{width:100%}.home-mode-schedule-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer}.home-mode-schedule-toggle strong{display:block;font-size:13px;font-weight:650}.home-mode-schedule-toggle small{display:block;font-size:11px;line-height:1.5;color:var(--hm-muted);margin-top:4px}.home-mode-schedule-toggle input{width:33px;height:19px;accent-color:var(--hm-accent);cursor:pointer}.home-mode-zone{font-size:10px;line-height:1.5;color:var(--hm-muted);margin:18px 0 10px}.home-mode-zone strong{font-weight:550;color:var(--hm-text)}.home-mode-days{display:flex;gap:6px}.home-mode-dialog .home-mode-days button{flex:1;max-width:56px;min-width:0;min-height:34px;border:1px solid var(--hm-line);border-radius:9px;background:transparent;color:var(--hm-muted);font-size:11px}.home-mode-dialog .home-mode-days button[aria-pressed=true]{color:var(--hm-accent);border-color:#a5e5be65;background:#a5e5be10}.home-mode-times{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.home-mode-time{display:grid;grid-template-columns:minmax(0,1fr) 27px;align-items:center;gap:4px;width:140px}.home-mode-time>span{grid-column:1/-1;font-size:9px;color:var(--hm-muted)}.home-mode-dialog input[type=time]{padding:6px 7px;min-width:102px;color-scheme:dark}.home-mode-fine{font-size:10px;line-height:1.6;color:var(--hm-muted);margin:11px 0 0}.home-mode-run-history{margin-top:18px;font-size:11px;color:var(--hm-muted)}.home-mode-run-history summary{cursor:pointer;min-height:28px;padding-block:5px}.home-mode-run-history ol{padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}.home-mode-run-history li{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;padding:8px 10px;border:1px solid var(--hm-line);border-radius:8px}.home-mode-run-history li>span{flex:1;min-width:120px}.home-mode-run-history li>strong{font-size:10px;font-weight:550}.home-mode-run-history li>small{flex-basis:100%;color:#e7bd99;line-height:1.5}.home-mode-run-history .is-done>strong{color:var(--hm-accent)}.home-mode-run-history .is-error>strong,.home-mode-fine.is-error{color:#e7bd99}.home-mode-feedback{min-height:17px;margin:14px 0 17px;color:var(--hm-accent);font-size:11px;line-height:1.5}.home-mode-feedback.is-error{color:#e7bd99}.home-mode-dialog-foot{display:flex;align-items:center;gap:9px;padding:16px 24px 20px;border-top:1px solid var(--hm-line);background:#8196a305}.home-mode-dialog-foot>span{font-size:10px;line-height:1.5;color:var(--hm-muted);margin-right:auto;max-width:230px}.home-mode-dialog-foot button{min-height:36px;padding:8px 12px;border:1px solid var(--hm-line);border-radius:9px;font-size:11px;white-space:nowrap}.home-mode-cancel{background:transparent;color:var(--hm-muted)}.home-mode-save{background:#a5e5be17;color:var(--hm-accent);border-color:#a5e5be50!important}
@media(min-width:761px) and (max-width:1250px){.shell-header .home-mode-pill button>span{display:none}.shell-header .home-mode-pill>button:first-child{width:29px;padding:5px}.shell-header .home-mode-pill-config{width:22px;min-width:22px!important}.shell-header .home-mode-shortcuts{gap:4px}}
@media(max-width:760px){.home-mode-grid{gap:10px;margin-bottom:16px}.home-mode-card{padding:14px 14px 11px;border-radius:16px}.home-mode-kicker{font-size:8px;letter-spacing:.07em}.home-mode-count{font-size:9px;padding:3px 6px}.home-mode-card-top{gap:7px;flex-wrap:wrap}.home-mode-card-top .home-mode-kicker{flex:1}.home-mode-card h2{font-size:21px;margin-top:11px}.home-mode-lead{font-size:11px;min-height:33px}.home-mode-schedule{font-size:9px;min-height:27px;margin-block:8px 11px}.home-mode-card-actions{gap:5px}.home-mode-card .home-mode-run{min-width:0;flex:1;min-height:34px;padding:7px 9px;font-size:11px;gap:8px}.home-mode-card .home-mode-config{flex:none;width:31px;min-height:34px;padding:7px}.home-mode-card .home-mode-config span{display:none}.home-mode-card-top .home-mode-count{width:auto;margin-left:0}.home-mode-icon{width:30px;height:30px;border-radius:9px}.home-mode-icon svg{width:20px;height:20px}.home-mode-card-top .home-mode-count{display:none}.home-mode-status{font-size:9px}.home-mode-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:17px}.home-mode-dialog-head{padding:18px 16px 16px;gap:10px}.home-mode-dialog-head h2{font-size:23px}.home-mode-dialog-head p{font-size:11px}.home-mode-dialog-body{padding-inline:15px}.home-mode-step{padding:9px}.home-mode-step-heading{gap:6px;flex-wrap:wrap}.home-mode-step-heading>label{flex-basis:calc(100% - 31px)}.home-mode-step-tools{margin-left:27px;order:2}.home-mode-value{margin-left:0;margin-top:8px}.home-mode-step-tools button{height:28px}.home-mode-dialog-foot{padding:14px 15px;flex-wrap:wrap}.home-mode-dialog-foot>span{flex-basis:100%;max-width:none;font-size:9px}.home-mode-dialog-foot button{flex:1}.home-mode-days{gap:4px}.home-mode-dialog .home-mode-days button{font-size:10px;min-height:34px}.home-mode-shortcuts{gap:4px}.home-mode-pill button>span{display:none}.home-mode-pill>button:first-child,.dom-top .home-mode-pill>button:first-child,html.pc-ui #navigation .home-mode-pill>button:first-child{width:28px;padding:5px;min-height:30px}.home-mode-pill .home-mode-pill-config,.dom-top .home-mode-pill .home-mode-pill-config{width:22px;min-width:22px;padding:5px 4px}.home-mode-pill svg{width:16px;height:16px}.home-mode-pill-config svg{width:11px;height:11px}.dom-top:has(.home-mode-shortcuts){flex-wrap:wrap;gap:8px}.dom-top:has(.home-mode-shortcuts) nav{order:5;flex-basis:100%;width:100%}.dom-top:has(.home-mode-shortcuts) .admin-tag{display:none}
 html.pc-ui.pc-mobile-shell:has(#shell-home-modes:not([hidden])){--mobile-head:86px}
 html.pc-ui.pc-mobile-shell .shell-header:has(#shell-home-modes:not([hidden])){height:var(--mobile-head);flex-wrap:wrap;align-content:center;gap:4px 8px;padding-block:4px}
 html.pc-ui.pc-mobile-shell .shell-header:has(#shell-home-modes:not([hidden]))>.brand{margin-right:auto}
 html.pc-ui.pc-mobile-shell .shell-header:has(#shell-home-modes:not([hidden])) #shell-mobile-utilities{order:10;flex-basis:100%;justify-content:center;min-width:0;gap:5px;height:33px}
 html.pc-ui.pc-mobile-shell #shell-mobile-utilities .home-mode-pill>button:first-child{width:27px;min-width:27px;min-height:30px;padding:5px}
 html.pc-ui.pc-mobile-shell #shell-mobile-utilities .home-mode-pill-config{width:21px;min-width:21px;padding:5px 4px}
}
@media(max-width:380px){.home-mode-card{padding:12px 11px 10px}.home-mode-card .home-mode-kicker{font-size:7px;letter-spacing:.02em}.home-mode-card h2{font-size:20px}.home-mode-card .home-mode-lead{font-size:10px}.home-mode-dialog-head .home-mode-icon{display:none}html.pc-ui.pc-mobile-shell .shell-header:has(#shell-home-modes:not([hidden])) #shell-mobile-utilities{gap:3px}}
@media(prefers-reduced-motion:reduce){.home-mode-grid *,.home-mode-dialog *,.home-mode-shortcuts *{scroll-behavior:auto;transition:none!important;animation:none!important}}
.home-mode-alarm-help{margin-top:12px;border:1px solid var(--hm-line);border-radius:10px;padding:10px 12px;color:var(--hm-muted);font-size:10px;line-height:1.6}.home-mode-alarm-help p{margin:0 0 7px}.home-mode-alarm-help button{background:transparent;border:0;color:var(--hm-accent);font-size:10px;padding:3px 0;min-height:28px;margin-right:14px}.home-mode-alarm-help button:hover{text-decoration:underline}
/* Keep Away/Back readable; the shared utility row retains every existing tool. */
@media(min-width:761px) and (max-width:1250px){.shell-header .home-mode-pill button>span{display:inline}.shell-header .home-mode-pill>button:first-child{width:38px;padding:5px;font-size:10px}.shell-header .home-mode-pill>button:first-child svg{display:none}}
@media(max-width:760px){.home-mode-pill button>span{display:inline}.home-mode-pill>button:first-child,.dom-top .home-mode-pill>button:first-child,html.pc-ui #navigation .home-mode-pill>button:first-child{width:auto;min-width:38px;padding:5px 6px;font-size:10px}.home-mode-pill>button:first-child svg{display:none}
 html.pc-ui.pc-mobile-shell:has(#shell-home-modes:not([hidden])){--mobile-head:86px;--shell-head:126px;--mobile-chrome:126px}
 html.pc-ui.pc-mobile-shell .shell-header:has(#shell-home-modes:not([hidden])){gap:4px 5px;padding-inline:8px}
 html.pc-ui.pc-mobile-shell .shell-header:has(#shell-home-modes:not([hidden])) #shell-home-modes{order:1;margin-left:0}
 html.pc-ui.pc-mobile-shell .shell-header:has(#shell-home-modes:not([hidden])) #shell-mobile-utilities{gap:6px}
 html.pc-ui.pc-mobile-shell:has(#shell-home-modes:not([hidden])) #mobile-quick-nav{top:var(--mobile-head)}
 html.pc-ui.pc-mobile-shell:has(#shell-home-modes:not([hidden])) :is(.module-menu,body.menu-open .module-menu){top:var(--mobile-head)}
 html.pc-ui.pc-mobile-shell:has(#shell-home-modes:not([hidden])) .menu-backdrop{top:var(--mobile-head)}
}
.home-mode-notice{position:fixed;left:50%;bottom:max(22px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:150;max-width:min(520px,calc(100vw - 30px));padding:12px 17px;border:1px solid var(--pc-line,var(--line,#2b3c44));border-radius:12px;box-shadow:0 10px 40px #0006;background:var(--pc-surface,var(--panel,#142229));color:var(--pc-text,var(--text,#e4eeeb));font:12px/1.6 Inter,system-ui,sans-serif;overflow-wrap:anywhere;pointer-events:none}.home-mode-notice[hidden]{display:none!important}
@media(max-width:760px){html.pc-ui.pc-mobile-shell .shell-header:has(#shell-home-modes:not([hidden])) #shell-mobile-utilities{width:100%;max-width:none;flex-wrap:nowrap;flex:0 0 100%;justify-content:center;gap:6px}}
