/* ============================================================ tokens * Every color has a light and dark value; contrast figures are against the tile. * text #1d1d1f / #f5f5f7 16.8:1 / 15.6:1 * text-2 #6e6e73 / #a1a1a6 5.1:1 / 6.6:1 * accent #0066cc / #0a84ff (white label 5.6:1 / 3.7:1, semibold) * lit #ffedc7 / #ffe2a8 (lit-text 6.2:1+ for secondary, 10.7:1 primary) */ :root { --canvas: #f2f2f7; --surface: #ffffff; --tile: #ffffff; --text: #1d1d1f; --text-2: #6e6e73; --separator: rgba(60, 60, 67, 0.16); --fill: rgba(120, 120, 128, 0.14); --fill-strong: rgba(120, 120, 128, 0.24); --accent: #0066cc; --on-accent: #ffffff; --lit: #ffedc7; --lit-text: #3d2c0a; --lit-text-2: #6b5426; --warn: #c93400; --crit: #d70015; --ok: #248a3d; --glass: rgba(255, 255, 255, 0.72); --glass-edge: rgba(255, 255, 255, 0.6); --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06); --focus: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; --font-num: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color-scheme: light dark; } @media (prefers-color-scheme: dark) { :root { --canvas: #0f0f11; --surface: #1c1c1e; --tile: #1c1c1e; --text: #f5f5f7; --text-2: #a1a1a6; --separator: rgba(84, 84, 88, 0.55); --fill: rgba(118, 118, 128, 0.24); --fill-strong: rgba(118, 118, 128, 0.36); --accent: #0a84ff; --lit: #ffe2a8; --warn: #ff9f0a; --crit: #ff453a; --ok: #30d158; --glass: rgba(30, 30, 32, 0.68); --glass-edge: rgba(255, 255, 255, 0.08); --shadow: none; } } @media (prefers-contrast: more) { :root { --text-2: var(--text); --separator: color-mix(in srgb, var(--text) 45%, transparent); --glass: var(--surface); } .w { border-color: var(--d-separator) !important; } } @media (prefers-reduced-transparency: reduce) { :root { --glass: var(--surface); } } /* ============================================================ base */ * { box-sizing: border-box; } html, body { margin: 0; height: 100%; } body { font: 14px/1.4 var(--font); background: var(--canvas); color: var(--text); overflow: hidden; -webkit-font-smoothing: antialiased; } button, input, select, textarea { font: inherit; color: inherit; } h2, h3 { margin: 0; } .muted { color: var(--text-2); } .small { font-size: 13px; } .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; } .i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; } .i.f { fill: currentColor; stroke: none; } .i.inline { vertical-align: -2px; margin-right: 3px; } :focus { outline: none; } :focus-visible { box-shadow: var(--focus); border-radius: 8px; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* ============================================================ chrome */ #app { position: relative; height: 100vh; } /* Floating toolbar: the one glass surface, part of the functional layer. */ #topbar { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 30; height: 52px; padding: 0 8px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--glass); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border: 1px solid var(--glass-edge); border-radius: 18px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); } .tb-group { display: flex; align-items: center; gap: 4px; min-width: 0; } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; min-width: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--fill); cursor: pointer; font-weight: 500; white-space: nowrap; } .btn:hover { background: var(--fill-strong); } .btn .i { font-size: 18px; } .btn.icon { padding: 0; width: 36px; background: transparent; } .btn.icon:hover { background: var(--fill); } .btn.primary { background: var(--accent); color: var(--on-accent); font-weight: 600; } .btn.primary:hover { filter: brightness(1.08); } .btn.danger { color: var(--crit); } .btn.danger-fill { background: var(--crit); color: #fff; font-weight: 600; } .btn:disabled { opacity: 0.35; cursor: default; } .picker { position: relative; display: flex; align-items: center; } .picker select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; cursor: pointer; font-size: 17px; font-weight: 650; padding: 6px 28px 6px 8px; border-radius: 10px; max-width: 46vw; text-overflow: ellipsis; } .picker select:hover { background: var(--fill); } .picker .i { position: absolute; right: 8px; pointer-events: none; font-size: 14px; color: var(--text-2); } .conn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--crit); padding: 0 6px; } .conn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; } .conn.ok { display: none; } .conn.connecting { color: var(--text-2); } .conn.connecting::before { animation: conn-pulse 1.2s ease-in-out infinite; } @keyframes conn-pulse { 50% { opacity: .3; } } @media (prefers-reduced-motion: reduce) { .conn.connecting::before { animation: none; } } .save-status { font-size: 13px; color: var(--text-2); padding: 0 6px; white-space: nowrap; } .menu { position: absolute; right: 8px; top: calc(100% + 6px); z-index: 50; background: var(--glass); backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4); border: 1px solid var(--glass-edge); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); padding: 6px; display: flex; flex-direction: column; min-width: 220px; } .menu[hidden] { display: none; } .menu button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; text-align: left; padding: 9px 10px; border-radius: 8px; cursor: pointer; min-height: 36px; } .menu button .i { font-size: 17px; color: var(--text-2); } .menu button:hover { background: var(--fill); } .menu .danger, .menu .danger .i { color: var(--crit); } .menu hr { border: 0; border-top: 1px solid var(--separator); margin: 4px 6px; } #workspace { position: absolute; inset: 0; display: flex; } #palette, #inspector { flex: none; overflow-y: auto; background: var(--surface); padding: 76px 14px 20px; } #palette { width: 232px; border-right: 1px solid var(--separator); } #inspector { width: 300px; border-left: 1px solid var(--separator); } .panel-title { font-size: 17px; font-weight: 650; margin: 2px 2px 12px; display: flex; align-items: center; gap: 8px; } .panel-title .i { font-size: 20px; color: var(--text-2); } .hint { margin: 16px 2px 0; font-size: 13px; color: var(--text-2); } #palette-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .pal-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; padding: 10px 4px; border-radius: 12px; border: 0; background: var(--fill); font-size: 13px; text-align: center; cursor: pointer; } .pal-item:hover { background: var(--fill-strong); } .pal-item .i { font-size: 22px; } .pal-item span { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; line-height: 1.2; } body:not(.editing) .edit-only { display: none !important; } body.editing .view-only { display: none !important; } #stage { flex: 1; overflow: auto; min-width: 0; position: relative; padding-top: 72px; display: flex; align-items: flex-start; } #canvas { flex: 1; min-width: 0; align-self: stretch; } #grid { position: relative; margin: 0 auto; } /* inspector form: grouped like a settings list */ .field { margin-bottom: 12px; } .field > label, .field-label { display: block; font-size: 13px; color: var(--text-2); margin: 0 2px 4px; } .field.check > label { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; min-height: 28px; cursor: pointer; } .field.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; } .section { border-top: 1px solid var(--separator); margin-top: 16px; padding-top: 14px; } .section-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 2px 10px; } .row { display: flex; gap: 8px; align-items: flex-end; } .row > * { flex: 1; min-width: 0; } select.input, input.input, textarea.input { width: 100%; min-width: 0; min-height: 34px; padding: 6px 10px; background: var(--fill); border: 1px solid transparent; border-radius: 9px; } input.input:focus, select.input:focus, textarea.input:focus { border-color: var(--accent); box-shadow: var(--focus); background: var(--surface); } textarea.input { resize: vertical; min-height: 76px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; } /* taste-skill-ignore: the JSON field is code */ .input.invalid { border-color: var(--crit); } .seg { display: flex; background: var(--fill); border-radius: 9px; padding: 2px; gap: 2px; } .seg button { flex: 1; border: 0; background: transparent; border-radius: 7px; min-height: 30px; padding: 0 6px; cursor: pointer; font-size: 13px; white-space: nowrap; } .seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); font-weight: 600; } .color-row { display: flex; gap: 6px; } .color-row input[type=color] { width: 34px; height: 34px; padding: 0; border: 1px solid var(--separator); border-radius: 9px; background: none; flex: none; cursor: pointer; } .icon-row { display: flex; gap: 6px; align-items: center; } .ip-search { margin: 12px 0 10px; } .ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; max-height: 50vh; overflow-y: auto; padding: 2px; } .ip-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border: 0; border-radius: 10px; background: var(--fill); cursor: pointer; min-width: 0; } .ip-icon .i { font-size: 22px; } .ip-icon span { font-size: 11px; color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ip-icon:hover { background: var(--fill-strong); } .ip-icon.on { box-shadow: inset 0 0 0 2px var(--accent); } .icon-prev { border: 0; cursor: pointer; color: inherit; } .icon-row .icon-prev { width: 34px; height: 34px; border-radius: 9px; background: var(--fill); display: grid; place-items: center; flex: none; font-size: 18px; } .ent-item { display: flex; gap: 6px; margin-bottom: 6px; } .ent-item .btn { flex: none; } .ent-hint { font-size: 13px; color: var(--text-2); margin: 4px 2px 0; } .insp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; } .insp-actions .btn { flex: 1 1 auto; white-space: nowrap; } .presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .preset { height: 52px; border-radius: 10px; border: 2px solid transparent; padding: 0; position: relative; overflow: hidden; cursor: pointer; } .preset span { position: absolute; left: 7px; bottom: 5px; font-size: 12px; font-weight: 600; } .preset i { position: absolute; right: 7px; top: 7px; width: 16px; height: 16px; border-radius: 5px; } .preset[aria-pressed="true"] { border-color: var(--accent); } /* sheets, alerts, toasts */ .modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; } .modal[hidden] { display: none; } .modal-card { background: var(--surface); border-radius: 18px; padding: 20px; width: 420px; max-width: 100%; max-height: 85vh; overflow: auto; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35); } .modal-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; } .modal-card p { margin: 6px 0 0; color: var(--text-2); } .modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; } .modal-actions .btn { min-width: 96px; } .modal-card.wide { width: 560px; } .assign-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; } .assign-row .input { flex: 1; min-width: 0; } .assign-row select.input { flex: 1.2; } .assign-name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .assign-kiosk { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; } .assign-kiosk input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; } @media (max-width: 560px) { .assign-row[data-dev] { flex-wrap: wrap; } .assign-row[data-dev] .input { flex-basis: 100%; } } /* climate popup */ .cl-dial { position: relative; width: min(240px, 70vw); margin: 8px auto 0; aspect-ratio: 1; } .cl-dial svg { width: 100%; height: 100%; } .cl-dial path { fill: none; stroke-width: 14; stroke-linecap: round; } .cl-track { stroke: var(--fill-strong); } .cl-fill { stroke: var(--cl); transition: d .3s; } .cl-knob { fill: #fff; stroke: var(--cl); stroke-width: 4; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .3)); } .cl-cur { fill: var(--text); } .cl-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .cl-target { font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; } .cl-mode { font-size: 14px; font-weight: 600; color: var(--cl); margin-bottom: 4px; } .cl-dial.is-off .cl-target { color: var(--text-2); } .cl-steps { display: flex; justify-content: center; gap: 28px; margin-top: -18px; } .round-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--fill); font-size: 22px; display: grid; place-items: center; cursor: pointer; } .round-btn:hover { background: var(--fill-strong); } .cl-chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 0; background: var(--fill); cursor: pointer; font-weight: 500; } .chip-btn .i { font-size: 16px; } .chip-btn[aria-pressed="true"] { background: var(--text); color: var(--surface); font-weight: 600; } .changelog { margin-top: 8px; } .changelog h4 { margin: 16px 0 4px; font-size: 15px; } .changelog ul { margin: 0; padding-left: 20px; color: var(--text); } .changelog li { margin: 4px 0; line-height: 1.45; } .attr-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 14px; } .attr-table td { border-top: 1px solid var(--separator); padding: 7px 4px; vertical-align: top; word-break: break-word; } .attr-table td:first-child { color: var(--text-2); width: 40%; } #toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; } .toast { background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--glass-edge); color: var(--text); padding: 10px 16px; border-radius: 14px; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); } .toast.err { color: var(--crit); font-weight: 500; } /* ============================================================ dashboard canvas * Themed via --d-* on #stage. "System" leaves them on the adaptive tokens. */ #stage { --d-bg: var(--canvas); --d-tile: var(--tile); --d-text: var(--text); --d-text-2: var(--text-2); --d-accent: var(--accent); --d-separator: var(--separator); --d-fill: var(--fill); --d-lit: var(--lit); --d-shadow: var(--shadow); background: var(--d-bg); background-size: cover; background-position: center; background-attachment: local; color: var(--d-text); } .w { position: absolute; border-radius: var(--d-radius, 20px); background: var(--w-bg, var(--d-tile)); color: var(--w-color, var(--d-text)); --accent-w: var(--w-accent, var(--d-accent)); box-shadow: var(--d-shadow); border: 1px solid transparent; backdrop-filter: blur(var(--d-blur, 0px)); -webkit-backdrop-filter: blur(var(--d-blur, 0px)); overflow: hidden; transition: left .2s, top .2s, width .2s, height .2s, background-color .25s; user-select: none; container-type: size; } .w.transparent, .surface-plain .w { background: transparent; box-shadow: none; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; } .surface-outline .w:not(.transparent) { background: transparent; box-shadow: none; border-color: var(--d-separator); backdrop-filter: none; } .w-body { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; min-height: 0; } .w-body.flush { padding: 0; } .w.transparent .w-body, .surface-plain .w .w-body { padding: 6px 4px; } .w.transparent .w-body.flush, .surface-plain .w .w-body.flush { padding: 0; } .pad { padding: 16px; height: 100%; display: flex; } /* Lit: a light that is on turns its tile into lamplight — the signature moment. */ .w.lit-lamp:not(.transparent) { background: var(--w-bg, color-mix(in srgb, var(--lamp, var(--d-lit)) 32%, var(--d-lit))); color: var(--lit-text); --d-text-2: var(--lit-text-2); --d-fill: rgba(61, 44, 10, 0.12); --d-separator: rgba(61, 44, 10, 0.14); } .w.lit-lamp .badge { background: rgba(255, 255, 255, 0.55); color: var(--lit-text); } .surface-plain .w.lit-lamp, .surface-outline .w.lit-lamp { background: transparent; color: var(--w-color, var(--d-text)); --d-text-2: var(--text-2); --d-fill: var(--fill); } .surface-plain .w.lit-lamp .badge, .surface-outline .w.lit-lamp .badge { background: color-mix(in srgb, var(--lamp, var(--d-lit)) 45%, var(--d-lit)); color: var(--lit-text); } .w.lit-on .badge { background: var(--accent-w); color: var(--d-on-accent, #fff); } /* edit mode */ body.editing #grid { background-image: var(--cell-bg); background-repeat: repeat; min-height: calc(100% - 16px); } body.editing .w { cursor: grab; } body.editing .w-body { pointer-events: none; } body.editing .surface-plain .w, body.editing .w.transparent { outline: 1px dashed var(--d-separator); outline-offset: -1px; } body.editing .w.selected { outline: 2px solid var(--accent); outline-offset: 2px; z-index: 5; } body.editing .w.drop-into { outline: 3px solid var(--accent); outline-offset: 4px; } body.editing .w.drop-into::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: color-mix(in srgb, var(--accent) 18%, transparent); pointer-events: none; } .align-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .align-grid .btn { justify-content: center; } #palette-search { width: 100%; margin-bottom: 10px; } .ent-pop { position: fixed; z-index: 120; overflow-y: auto; background: var(--surface, var(--bg)); border: 1px solid var(--separator); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 4px; } .ent-pop[hidden] { display: none; } .ep-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; min-height: 40px; } .ep-item:hover { background: var(--fill); } .ep-item.on { background: color-mix(in srgb, var(--accent) 16%, transparent); } .ep-item > svg { width: 20px; height: 20px; flex: none; color: var(--text-2, inherit); } .ep-text { display: flex; flex-direction: column; min-width: 0; flex: 1; } .ep-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ep-id { font-size: 11px; color: var(--text-2, #8e8e93); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ep-state { font-size: 11px; color: var(--text-2, #8e8e93); flex: none; max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ep-none { padding: 10px; font-size: 13px; color: var(--text-2, #8e8e93); } .w.dragging { transition: none; z-index: 20; cursor: grabbing; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); } .w-resize { position: absolute; right: 2px; bottom: 2px; width: 24px; height: 24px; cursor: nwse-resize; z-index: 3; opacity: 0; transition: opacity .1s; color: var(--accent); } .w-resize::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 10px; height: 10px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; border-bottom-right-radius: 4px; } .w-tools { position: absolute; top: 8px; right: 8px; z-index: 3; display: none; gap: 4px; } .w-tools button { width: 30px; height: 30px; border-radius: 9px; border: 0; display: grid; place-items: center; background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); cursor: pointer; font-size: 16px; } .w-tools button.del { color: var(--crit); } body.editing .w.selected .w-tools { display: flex; } body.editing .w:hover .w-resize, body.editing .w.selected .w-resize { opacity: 1; } .placeholder { position: absolute; border-radius: var(--d-radius, 20px); background: color-mix(in srgb, var(--accent) 16%, transparent); border: 2px dashed var(--accent); pointer-events: none; z-index: 1; } /* ============================================================ widget content */ .wbtn { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; } .wbtn:focus-visible { box-shadow: var(--focus); border-radius: 12px; } .wt { font-size: 14px; color: var(--d-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wt.wrap { white-space: normal; } .empty { margin: auto; text-align: center; color: var(--d-text-2); font-size: 14px; line-height: 1.45; } .name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .glyph { font-size: 20px; line-height: 1; } .badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--d-fill); font-size: 22px; flex: none; transition: background-color .25s, color .25s; } .level { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; color: var(--warn); background: color-mix(in srgb, currentColor 16%, transparent); } .heading { display: flex; flex-direction: column; justify-content: center; height: 100%; gap: 2px; } .heading .h-main { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; } .tile { display: flex; flex-direction: column; justify-content: space-between; height: 100%; width: 100%; gap: 8px; } .tile-text { display: flex; flex-direction: column; min-width: 0; } .state { font-size: 14px; color: var(--d-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } @container (max-height: 110px) { .tile { flex-direction: row; align-items: center; justify-content: flex-start; } } .value { display: flex; flex-direction: column; justify-content: space-between; height: 100%; width: 100%; gap: 4px; } .value-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .value-ico { font-size: 20px; color: var(--d-text-2); display: flex; } .big { font-size: clamp(26px, min(30cqh, 24cqw), 56px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; } .unit { font-size: 0.42em; font-weight: 600; color: var(--d-text-2); margin-left: 3px; letter-spacing: 0; } .value.warn .big { color: var(--warn); } .value.crit .big { color: var(--crit); } .value.warn .level { color: var(--warn); } .value.crit .level { color: var(--crit); } .car .level { color: var(--crit); align-self: center; } .gauge { display: flex; flex-direction: column; align-items: center; height: 100%; width: 100%; } .gauge svg { flex: 1; width: 100%; min-height: 0; } .tile-row { display: flex; align-items: center; gap: 12px; min-width: 0; } /* Brightness: a wide pill slider like Control Center, filled with the lamp's color. */ .slider { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; border-radius: 14px; cursor: pointer; background: var(--d-fill); outline: none; } .w.lit-lamp .slider { --slider-fill: color-mix(in srgb, var(--lamp, #f0a83a) 65%, #f0a83a); } .surface-plain .w.lit-lamp .slider, .surface-outline .w.lit-lamp .slider { --slider-fill: color-mix(in srgb, var(--lamp, #f5b942) 60%, #f5b942); } .slider::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 26px; border-radius: 3px; background: transparent; } .slider::-moz-range-thumb { width: 6px; height: 26px; border: 0; background: transparent; } .slider:focus-visible { box-shadow: var(--focus); } .slider.thin { height: 28px; border-radius: 10px; flex: 1; min-width: 60px; } .climate { display: flex; flex-direction: column; height: 100%; gap: 8px; } .climate .temps { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 8px; } .climate .target { font-size: clamp(28px, min(22cqh, 18cqw), 56px); font-weight: 700; } .round { width: 44px; height: 44px; border-radius: 50%; background: var(--d-fill); display: grid; place-items: center; font-size: 20px; flex: none; } .round:hover { background: color-mix(in srgb, var(--d-text) 16%, transparent); } .round.primary { background: var(--d-text); color: var(--d-tile); } .chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { border-radius: 99px; padding: 0 14px; min-height: 32px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; background: var(--d-fill); } .chip[aria-pressed="true"] { background: var(--d-text); color: var(--d-tile); font-weight: 600; } .graph { display: flex; flex-direction: column; height: 100%; gap: 6px; } .graph .legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--d-text-2); } .graph .legend span { display: inline-flex; align-items: center; gap: 6px; } .graph .legend svg { flex: none; } .graph .legend b { font-size: 15px; color: var(--d-text); } .graph .plot { flex: 1; min-height: 0; position: relative; } .graph .plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; } .graph .axis { font-size: 11px; fill: var(--d-text-2); } .clock { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; text-align: center; } .clock .time { font-size: clamp(30px, min(38cqh, 22cqw), 96px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; } .clock .date { color: var(--d-text-2); margin-top: 6px; font-size: 15px; } .clock-time { display: flex; flex-direction: column; align-items: center; } .clock-wx { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin-top: 12px; padding: 6px 12px; border-radius: 99px; background: var(--d-fill); max-width: 100%; } .clock-wx-ico { font-size: 20px; display: flex; color: var(--d-text-2); } .clock-wx-temp { font-size: 17px; font-weight: 700; } .clock-wx-text { font-size: 14px; color: var(--d-text-2); } .clock-hl { font-size: 14px; color: var(--d-text-2); } .clock-hl:empty { display: none; } @container (max-height: 175px) { .clock-wx-text, .clock-hl { display: none; } .clock-wx { margin-top: 6px; } } .cam-btn { position: absolute; inset: 0; } .cam { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; } .cam-label { position: absolute; left: 12px; bottom: 10px; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); pointer-events: none; } .media { display: flex; flex-direction: column; height: 100%; gap: 6px; justify-content: space-between; } .media .title { font-weight: 650; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .media .ctrls { display: flex; gap: 8px; align-items: center; } .weather { display: flex; align-items: center; gap: 16px; height: 100%; width: 100%; } .wx-ico { font-size: clamp(36px, min(45cqh, 20cqw), 72px); display: flex; color: var(--d-text-2); } .wx-text { display: flex; flex-direction: column; min-width: 0; } .wx-temp { font-size: clamp(26px, min(26cqh, 16cqw), 48px); font-weight: 700; line-height: 1.05; } .list { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; margin: 4px -6px 0; } .list-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 6px; border-radius: 10px; } .list-row + .list-row { box-shadow: inset 0 1px 0 var(--d-separator); } .list-row:hover { background: var(--d-fill); } .row-ico { font-size: 20px; display: flex; color: var(--d-text-2); } .list-row .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; } .list-row .st { color: var(--d-text-2); font-size: 14px; white-space: nowrap; } .switch { display: inline-block; vertical-align: middle; width: 46px; height: 28px; border-radius: 14px; background: var(--d-fill); position: relative; flex: none; transition: background-color .2s; } .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); } [aria-checked="true"] > .switch { background: var(--ok); } [aria-checked="true"] > .switch::after { transform: translateX(18px); } .btn-widget { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; height: 100%; width: 100%; gap: 8px; } .btn-widget:active .badge { background: var(--accent-w); color: var(--d-on-accent, #fff); } .text-w { white-space: pre-wrap; overflow: auto; height: 100%; line-height: 1.45; } .frame { width: 100%; height: 100%; border: 0; display: block; } .img-w { width: 100%; height: 100%; display: block; } /* tab menu: a sidebar on wide screens, a rail on tablets, a tab bar on phones */ #tabnav { position: sticky; top: 4px; flex: none; z-index: 10; width: 220px; margin: 8px 0 16px 16px; padding: 8px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 92px); overflow-y: auto; background: color-mix(in srgb, var(--d-tile) 82%, transparent); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); border: 1px solid var(--d-separator); border-radius: var(--d-radius, 20px); color: var(--d-text); } #tabnav[hidden] { display: none; } .tabnav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; font-size: 15px; font-weight: 500; text-align: left; } .tabnav-item:hover { background: var(--d-fill); } .tabnav-item[aria-current="page"] { background: color-mix(in srgb, var(--d-accent) 18%, transparent); font-weight: 650; } .tabnav-ico { font-size: 20px; display: flex; color: var(--d-text-2); flex: none; } .tabnav-item[aria-current="page"] .tabnav-ico { color: var(--d-accent); } .tabnav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tabnav-item.add { color: var(--d-text-2); margin-top: 4px; } .tabnav-item.add .i { font-size: 20px; } body.kiosk #tabnav { top: 6px; max-height: calc(100vh - 20px); } /* Icon-only rail: full height on the left edge, names as tooltips. */ @media (min-width: 641px) { #tabnav.icons { top: 72px; width: 76px; height: calc(100vh - 72px); max-height: none; margin: 0; padding: 12px 10px; justify-content: center; align-items: center; gap: 10px; overflow: visible; border: 0; border-right: 1px solid var(--d-separator); border-radius: 0; background: color-mix(in srgb, var(--d-tile) 72%, transparent); } body.kiosk #tabnav.icons { top: 6px; height: calc(100vh - 6px); } #tabnav.icons .tabnav-item { position: relative; width: 56px; height: 56px; min-height: 0; padding: 0; justify-content: center; border-radius: 16px; transition: background-color .2s, transform .1s; } #tabnav.icons .tabnav-item:active { transform: scale(0.94); } #tabnav.icons .tabnav-ico { font-size: 25px; } #tabnav.icons .tabnav-item[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 16px; bottom: 16px; width: 4px; border-radius: 0 3px 3px 0; background: var(--d-accent); } #tabnav.icons .tabnav-item.add { margin-top: 6px; border: 1.5px dashed var(--d-separator); } #tabnav.icons .tabnav-label { position: absolute; left: calc(100% + 14px); top: 50%; z-index: 40; transform: translate(-4px, -50%); opacity: 0; pointer-events: none; padding: 6px 10px; border-radius: 9px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); transition: opacity .15s, transform .15s; } #tabnav.icons .tabnav-item:hover .tabnav-label, #tabnav.icons .tabnav-item:focus-visible .tabnav-label { opacity: 1; transform: translate(0, -50%); } .surface-plain #tabnav.icons { border-right-color: transparent; } } .surface-plain #tabnav { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; } .i.flip { transform: rotate(180deg); } .about { display: flex; align-items: center; gap: 12px; } .about img { border-radius: 10px; flex: none; } .tab-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; } .tab-item { display: flex; gap: 4px; align-items: center; } .tab-item .input { min-width: 0; } .tab-item .tab-icon { width: 76px; flex: none; } .tab-item .icon-prev { width: 30px; height: 30px; font-size: 16px; } .tab-item .btn.icon { width: 30px; min-width: 30px; flex: none; } /* waste */ .bin { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bin); color: #fff; font-size: 19px; flex: none; } .w-body > .wt { flex: none; } .waste-next { flex: none; display: flex; align-items: center; gap: 14px; padding: 8px 0 12px; } .waste-next + .waste-list { border-top: 1px solid var(--d-separator); padding-top: 4px; } .waste-bins { display: flex; } .waste-bins .bin { width: 52px; height: 52px; border-radius: 14px; font-size: 28px; } .waste-bins .bin + .bin { margin-left: -12px; box-shadow: 0 0 0 3px var(--d-tile); } .waste-next-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; } .waste-when { font-size: 24px; font-weight: 700; line-height: 1.15; } .waste-next.soon .waste-when { color: var(--d-accent); } .waste-types { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .waste-next .level { color: var(--d-accent); margin-top: 4px; } .waste-row .bin { width: 28px; height: 28px; border-radius: 8px; font-size: 16px; } .waste-day { font-size: 14px; font-weight: 600; white-space: nowrap; } .waste-day.soon { color: var(--d-accent); } @container (max-width: 300px) { .waste-row .st { display: none; } } /* visibility */ .w.cond-hidden { opacity: 0.5; } .w-hidden { position: absolute; left: 8px; bottom: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); } .rule { padding: 8px; border-radius: 10px; background: var(--fill); margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; } .rule .input { background: var(--surface); } .rule-row { display: flex; gap: 6px; } .rule-row select { flex: 1.1; } .rule-row input { flex: 1; min-width: 0; } .rule-row .btn { flex: none; } .vis-status { display: flex; align-items: center; gap: 6px; margin: 0 2px 10px; color: var(--text-2); } /* media players */ .mp { gap: 8px; } .mp-switch { display: flex; gap: 6px; overflow-x: auto; flex: none; scrollbar-width: none; } .mp-switch .chip { flex: none; gap: 6px; } .mp-switch .chip[aria-selected="true"] { background: var(--d-text); color: var(--d-tile); font-weight: 600; } .mp-now { display: flex; align-items: center; gap: 12px; min-height: 0; flex: 1; } .mp-art { width: clamp(48px, 32cqh, 96px); aspect-ratio: 1; border-radius: 10px; object-fit: cover; flex: none; background: var(--d-fill); } .mp-art.ph { display: grid; place-items: center; font-size: 28px; color: var(--d-text-2); } .mp-meta { display: flex; flex-direction: column; min-width: 0; } .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; } .eq i { width: 3px; background: currentColor; border-radius: 1px; animation: eq 0.9s ease-in-out infinite; } .eq i:nth-child(1) { height: 50%; } .eq i:nth-child(2) { height: 100%; animation-delay: -0.3s; } .eq i:nth-child(3) { height: 70%; animation-delay: -0.6s; } @keyframes eq { 0%, 100% { transform: scaleY(0.4); transform-origin: bottom; } 50% { transform: scaleY(1); transform-origin: bottom; } } @container (max-height: 170px) { .mp-art { display: none; } } /* appliance: ring on the left at two rows high, stacked when taller */ .appl { display: flex; align-items: center; gap: 16px; height: 100%; min-width: 0; } .appl-ring { position: relative; flex: none; height: min(100%, 132px); aspect-ratio: 1; display: grid; place-items: center; } .appl-ring > svg { position: absolute; inset: 0; transform: rotate(-90deg); } .appl-ring circle { fill: none; stroke-width: 7; } .appl-ring .track { stroke: var(--d-fill); } .appl-ring .fill { stroke: var(--d-accent); stroke-linecap: round; transition: stroke-dasharray .6s; } .phase-done .appl-ring .fill { stroke: var(--ok); } .appl-ico { width: 64%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(22px, 22cqh, 40px); background: var(--d-fill); } .phase-running .appl-ico { background: color-mix(in srgb, var(--d-accent) 18%, transparent); color: var(--d-accent); } .phase-done .appl-ico { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); } .appl-pct { position: absolute; bottom: -2px; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--w-bg, var(--d-tile)); color: var(--d-text-2); } .appl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .appl-top { display: flex; align-items: center; gap: 8px; min-width: 0; } .appl-top .name { flex: 1; min-width: 0; } .appl-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--d-fill); white-space: nowrap; flex: none; } .appl.phase-running .appl-status { background: var(--d-accent); color: var(--d-on-accent, #fff); } .appl.phase-done .appl-status { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); } .appl-program { font-size: 13px; color: var(--d-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .appl-main { margin-top: 2px; } .appl-big { font-size: clamp(20px, 15cqh, 30px); font-weight: 700; line-height: 1.1; } .appl-off { color: var(--d-text-2); } .appl-sub { font-size: 13px; color: var(--d-text-2); } .appl-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; } .appl-main { display: flex; align-items: center; gap: 8px; } .appl-main-text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; } .appl-ctrls { display: flex; gap: 6px; flex: none; } .appl-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--d-fill); font-size: 18px; } .appl-btn:hover { background: color-mix(in srgb, var(--d-text) 16%, transparent); } .appl.phase-attention .appl-status { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); } .appl.phase-error .appl-status { background: color-mix(in srgb, var(--crit) 18%, transparent); color: var(--crit); } .appl.phase-scheduled .appl-status, .appl.phase-stopping .appl-status { background: var(--d-fill); } .phase-attention .appl-ico { color: var(--warn); } .phase-error .appl-ico { color: var(--crit); } .appl-fact { white-space: nowrap; } .appl-fact span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* two rows high: one line of facts, tighter spacing */ @container (max-height: 180px) { .appl-text { gap: 0; } .appl-facts { flex-wrap: nowrap; overflow: hidden; margin-top: 3px; } .appl-fact { min-width: 0; flex-shrink: 1; } .appl-big { font-size: 22px; } .appl-btn { width: 36px; height: 36px; font-size: 16px; } } .appl-fact { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--d-fill); } .appl-fact .i { font-size: 14px; } .appl-fact.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); } .theme-outline .w:not(.transparent) { border-color: var(--d-separator); } @container (max-width: 260px) { .appl-ring { display: none; } } @container (min-height: 260px) { .appl { flex-direction: column; justify-content: center; text-align: center; } .appl-ring { height: min(55%, 170px); } .appl-text { align-items: center; flex: none; width: 100%; } .appl-top { justify-content: center; } .appl-top .name { flex: none; } .appl-main, .appl-main-text, .appl-facts { justify-content: center; } .appl-main { flex-direction: column; } .appl-main-text { flex: none; } } /* containers: horizontal scroll and swipe */ .w.child { position: relative; flex: none; height: 100%; } .hs { position: relative; height: 100%; display: flex; flex-direction: column; gap: 6px; } .hs-title { flex: none; padding: 0 4px; } .hs-track { flex: 1; min-height: 0; display: flex; gap: var(--d-gap, 14px); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 2px; scrollbar-width: none; overscroll-behavior-x: contain; } .hs-track::-webkit-scrollbar { display: none; } .hs-track > .w.child { width: var(--own-w, var(--item-w, 260px)); scroll-snap-align: start; } .hs-track:focus-visible { box-shadow: var(--focus); border-radius: var(--d-radius, 20px); } .hs-nav { position: absolute; top: 50%; z-index: 4; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--text); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); font-size: 18px; opacity: 0; transition: opacity .15s; } .hs-nav.prev { left: 6px; } .hs-nav.next { right: 6px; } .hs:hover .hs-nav, .hs-nav:focus-visible { opacity: 1; } .hs.at-start .hs-nav.prev, .hs.at-end .hs-nav.next { opacity: 0; pointer-events: none; } @media (hover: none) { .hs-nav { display: none; } } .i.back { transform: rotate(90deg); } .i.fwd { transform: rotate(-90deg); } .sw { position: relative; height: 100%; overflow: hidden; border-radius: var(--d-radius, 20px); touch-action: pan-y; } .sw-track { display: flex; height: 100%; will-change: transform; user-select: none; -webkit-user-select: none; outline: none; } .sw-track > .w.child { flex: 0 0 100%; width: 100%; } .sw.dragging .sw-track { cursor: grabbing; } .sw.dragging .w.child { pointer-events: none; } .sw img { -webkit-user-drag: none; user-select: none; } .sw-track:focus-visible { box-shadow: inset var(--focus); } /* Dots float over the cards and only show while swiping, hovering or focused. */ .sw-dots { position: absolute; left: 50%; bottom: 10px; z-index: 4; transform: translate(-50%, 6px); display: flex; gap: 0; padding: 2px 6px; border-radius: 99px; background: var(--glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; } .sw.dots-on .sw-dots, .sw:has(:focus-visible) .sw-dots { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; } .sw-dot { width: 22px; height: 22px; display: grid; place-items: center; } .sw-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text); opacity: .35; transition: width .2s, opacity .2s; } .sw-dot[aria-selected="true"]::after { width: 18px; border-radius: 4px; opacity: 1; } .btn.back { margin: 0 0 10px; padding-left: 8px; } .child-list { display: flex; flex-direction: column; gap: 6px; } .child-item { display: flex; gap: 4px; align-items: center; } .child-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: var(--fill); cursor: pointer; text-align: left; } .child-open:hover { background: var(--fill-strong); } .child-open .grow { display: flex; flex-direction: column; min-width: 0; flex: 1; } .child-open .grow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .child-open .i { font-size: 18px; flex: none; } .child-item .btn.icon { width: 30px; min-width: 30px; flex: none; } /* clock: text position and background image */ .clock { position: relative; } .clock-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: inherit; text-align: inherit; max-width: 100%; } .clock-content .clock-time { align-items: inherit; } .clock.pos-top-left, .clock.pos-top, .clock.pos-top-right { justify-content: flex-start; } .clock.pos-bottom-left, .clock.pos-bottom, .clock.pos-bottom-right { justify-content: flex-end; } .clock.pos-top-left, .clock.pos-left, .clock.pos-bottom-left { align-items: flex-start; text-align: left; } .clock.pos-top-right, .clock.pos-right, .clock.pos-bottom-right { align-items: flex-end; text-align: right; } .clock-bg { position: absolute; inset: 0; margin: -16px; z-index: 0; border-radius: inherit; } .w.transparent .clock-bg, .surface-plain .clock-bg { margin: -6px -4px; } .clock.on-image, .photos[data-act] { cursor: pointer; } /* taste-skill-ignore: a neutral scrim over the photo */ .clock-dim { position: absolute; inset: 0; margin: -16px; z-index: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, calc(var(--dim) * 0.8)), rgba(0, 0, 0, var(--dim))); } /* taste-skill-ignore: a neutral scrim over the photo */ .clock.on-image { color: #fff; --d-text-2: rgba(255, 255, 255, 0.86); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); } .clock.on-image .clock-wx { background: rgba(0, 0, 0, 0.32); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } .pos9 { display: grid; grid-template-columns: repeat(3, 34px); gap: 4px; padding: 4px; background: var(--fill); border-radius: 10px; width: max-content; } .pos9 button { width: 34px; height: 28px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; display: grid; place-items: center; } .pos9 button i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); opacity: .4; } .pos9 button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); } .pos9 button[aria-pressed="true"] i { width: 14px; height: 10px; border-radius: 3px; background: var(--accent); opacity: 1; } /* light card */ .swatches { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex: none; } .swatch { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); flex: none; display: grid; place-items: center; font-size: 15px; } .swatches.compact .swatch { width: 22px; height: 22px; } .swatch.more { background: var(--d-fill); } .swatch:hover { transform: scale(1.1); } .w.lit-lamp .swatch.more { background: rgba(255, 255, 255, 0.55); } /* light popup */ .lp-head { display: flex; align-items: center; gap: 12px; } .lp-head p { margin: 2px 0 0; } .lp-dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--tint); color: #2a1d05; flex: none; } .lp-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 48px; border-radius: 14px; margin: 0; cursor: pointer; background: var(--fill); overflow: hidden; } .lp-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 4px; height: 48px; border-radius: 0; background: var(--fill-c, #ffd58a); box-shadow: -2000px 0 0 2000px var(--fill-c, #ffd58a); } .lp-slider::-moz-range-progress { height: 100%; background: var(--fill-c, #ffd58a); } .lp-slider::-moz-range-thumb { width: 4px; height: 48px; border: 0; border-radius: 0; background: var(--fill-c, #ffd58a); } /* taste-skill-ignore: the colour-temperature scale itself, warm to cool */ .lp-temp { height: 36px; background: linear-gradient(to right, #ffb35c, #fff4e5 55%, #cfe2ff); } /* taste-skill-ignore: the colour-temperature scale itself */ .lp-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; } .swatch.big { width: 38px; height: 38px; border: 0; cursor: pointer; } /* taste-skill-ignore: the colour wheel of the custom colour picker */ .swatch.custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); color: #fff; position: relative; overflow: hidden; } /* taste-skill-ignore: the colour wheel of the custom colour picker */ .swatch.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; } /* light groups */ /* energy flow */ .energy { display: flex; flex-direction: column; height: 100%; gap: 10px; } .ef-diagram { position: relative; flex: 1; min-height: 0; } .ef-diagram > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; } .ef-line, .ef-flow { fill: none; vector-effect: non-scaling-stroke; } .ef-line { stroke: var(--d-fill); stroke-width: 2; } .ef-flow { stroke-dasharray: 2 12; stroke-linecap: round; animation: ef-flow linear infinite; } .ef-flow.solar { stroke: #f5a524; } .ef-flow.grid { stroke: var(--d-text-2); } .ef-flow.battery { stroke: var(--ok); } @keyframes ef-flow { to { stroke-dashoffset: -28; } } .ef-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; width: 33%; } .ef-solar { left: 50%; top: 14%; } .ef-grid { left: 14%; top: 50%; } .ef-home { left: 86%; top: 50%; } .ef-battery { left: 50%; top: 86%; } .ef-ico { width: clamp(34px, 13cqmin, 52px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(17px, 6cqmin, 24px); background: var(--w-bg, var(--d-tile)); border: 2px solid; } .ef-solar .ef-ico { border-color: #f5a524; color: #f5a524; } .ef-grid .ef-ico { border-color: var(--d-text-2); } .ef-home .ef-ico { border-color: var(--d-accent); color: var(--d-accent); } .ef-battery .ef-ico { border-color: var(--ok); color: var(--ok); } .ef-val { font-size: clamp(13px, 5cqmin, 17px); font-weight: 700; white-space: nowrap; } .ef-label { font-size: 11px; color: var(--d-text-2); white-space: nowrap; } .ef-val, .ef-label { position: relative; padding: 0 5px; border-radius: 5px; background: var(--w-bg, var(--d-tile)); } .surface-plain .ef-val, .surface-plain .ef-label, .w.transparent .ef-val, .w.transparent .ef-label { background: var(--d-bg); } .ef-totals { flex: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--d-text-2); justify-content: center; } .ef-total b { color: var(--d-text); font-size: 13px; } /* to-do */ .todo { display: flex; flex-direction: column; height: 100%; gap: 10px; } .todo-head { display: flex; align-items: center; gap: 8px; } .todo-head .name { flex: 1; min-width: 0; font-size: 17px; } .todo-count { font-size: 13px; font-weight: 700; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: grid; place-items: center; background: var(--d-fill); } .todo-add { display: flex; gap: 6px; flex: none; margin: 0; } .todo-input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--d-fill); color: inherit; font: inherit; outline: none; } .todo-input:focus { box-shadow: var(--focus); } .todo-plus { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--d-text); color: var(--d-tile); font-size: 20px; flex: none; } .todo-list { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px; } .todo-row { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--d-separator); transition: transform .15s, opacity .15s; touch-action: pan-y; } .todo-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--d-text-2); display: grid; place-items: center; font-size: 14px; color: transparent; flex: none; } .todo-row.done .todo-check { background: var(--ok); border-color: var(--ok); color: #fff; } .todo-text { flex: 1; min-width: 0; font-size: 15px; display: flex; flex-direction: column; } .todo-text small { font-size: 12px; color: var(--d-text-2); } .todo-row.done .todo-text { color: var(--d-text-2); text-decoration: line-through; } .todo-del { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--d-text-2); opacity: 0; font-size: 15px; } .todo-row:hover .todo-del, .todo-del:focus-visible { opacity: 1; } @media (hover: none) { .todo-del { opacity: .5; } } .todo-more { display: block; margin: 8px 0; font-size: 13px; font-weight: 600; color: var(--d-text-2); } .todo-empty { color: var(--d-text-2); font-size: 14px; padding: 12px 0; } /* who's home */ .people { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; align-content: start; height: 100%; overflow-y: auto; } .pp { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; padding: 4px 0; } .pp-av { position: relative; width: clamp(48px, 30cqh, 72px); aspect-ratio: 1; border-radius: 50%; background: var(--d-fill); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--d-fill); } .pp.home .pp-av { box-shadow: 0 0 0 3px var(--ok); } .pp-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; } .pp:not(.home) .pp-av img { filter: grayscale(.7); opacity: .8; } .pp-init { font-size: clamp(16px, 9cqh, 24px); font-weight: 700; } .pp-dot { position: absolute; right: 2%; bottom: 2%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: var(--d-text-2); box-shadow: 0 0 0 2px var(--w-bg, var(--d-tile)); } .pp.home .pp-dot { background: var(--ok); } .pp-text { display: flex; flex-direction: column; min-width: 0; max-width: 100%; } .pp-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pp-where { font-size: 12px; color: var(--d-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .people.as-list { grid-template-columns: 1fr; gap: 4px; } .people.as-list .pp { flex-direction: row; text-align: left; gap: 12px; } .people.as-list .pp-av { width: 40px; } /* forecast */ .fc { display: flex; flex-direction: column; height: 100%; gap: 12px; min-height: 0; } .fc-now { display: flex; align-items: center; gap: 12px; flex: none; } .fc-ico { font-size: 40px; display: flex; color: var(--d-text-2); } .fc-temp { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; } .fc-cond { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--d-text-2); } .fc-cond b { font-size: 15px; color: var(--d-text); } .fc-sun { margin-left: auto; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--d-text-2); } .fc-sun span { display: inline-flex; align-items: center; gap: 6px; } .fc-hours { display: flex; gap: 6px; overflow-x: auto; flex: none; scrollbar-width: none; padding-bottom: 2px; } .fc-hours::-webkit-scrollbar { display: none; } .fc-hour { flex: 0 0 52px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 12px; background: var(--d-fill); font-size: 18px; } .fc-hour b { font-size: 14px; } .fc-t { font-size: 12px; color: var(--d-text-2); } .fc-rain { font-size: 11px; color: var(--d-accent); font-weight: 600; min-height: 13px; } .fc-days { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; } .fc-day { display: grid; grid-template-columns: 52px 22px 36px 34px 1fr 34px; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; border-top: 1px solid var(--d-separator); } .fc-day .i { font-size: 18px; } .fc-dn { font-weight: 600; text-transform: capitalize; } .fc-lo { color: var(--d-text-2); text-align: right; } .fc-bar { position: relative; height: 6px; border-radius: 3px; background: var(--d-fill); } .fc-bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; } @container (max-height: 300px) { .fc-days { display: none; } } @container (max-width: 360px) { .fc-sun { display: none; } } /* timer */ .tm { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 8px; } .tm-name { align-self: flex-start; font-size: 15px; font-weight: 600; } .tm-ring { position: relative; flex: 1; min-height: 0; aspect-ratio: 1; display: grid; place-items: center; } .tm-ring > svg { position: absolute; inset: 0; transform: rotate(-90deg); } .tm-ring circle { fill: none; stroke-width: 7; } .tm-ring .track { stroke: var(--d-fill); } .tm-ring .fill { stroke: var(--d-accent); stroke-linecap: round; transition: stroke-dasharray 1s linear; } .tm.idle .tm-ring .fill { stroke: var(--d-text-2); opacity: .4; } .tm-time { font-size: clamp(22px, 14cqh, 40px); font-weight: 700; } .tm.done .tm-time { color: var(--ok); animation: tm-blink 1s ease-in-out infinite; } .tm.done .tm-ring .fill { stroke: var(--ok); } @keyframes tm-blink { 50% { opacity: .35; } } .tm-ctrls { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; flex: none; } /* blinds */ .cv { display: flex; flex-direction: column; height: 100%; gap: 10px; min-height: 0; } .cv-head { display: flex; align-items: center; gap: 6px; } .cv-head .name { flex: 1; min-width: 0; } .cv-win { position: relative; width: 44px; aspect-ratio: 3 / 4; border-radius: 6px; border: 2px solid var(--d-text-2); background: #d4e9ff; overflow: hidden; flex: none; } /* taste-skill-ignore: the slats of the drawn blind */ .cv-blind { position: absolute; left: 0; right: 0; top: 0; background: repeating-linear-gradient(to bottom, var(--d-text-2) 0 3px, color-mix(in srgb, var(--d-text-2) 60%, transparent) 3px 5px); transition: height .4s; } /* taste-skill-ignore: the slats of the drawn blind */ .cv.one .cv-main { flex: 1; min-height: 0; display: flex; align-items: center; gap: 16px; } .cv.one .cv-win { width: auto; height: min(100%, 150px); } .cv-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .cv-pct { font-size: 28px; font-weight: 700; } .cv-btns { display: flex; gap: 6px; flex: none; } .cv-btns .round { width: 40px; height: 40px; } .cv-btns .round:disabled { opacity: .35; cursor: default; } .cv-tilt { display: flex; align-items: center; gap: 10px; } .cv-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; } .cv-row { display: flex; align-items: center; gap: 12px; } .cv-row .cv-win { width: 30px; } .cv-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .cv-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cv-name b { color: var(--d-text-2); font-weight: 600; } .cv-slider { height: 10px; } /* alarm */ .al { display: flex; flex-direction: column; height: 100%; gap: 10px; } .al-head { display: flex; align-items: center; gap: 12px; } .al-shield { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--d-fill); flex: none; } .al[class*="state-armed"] .al-shield { background: var(--d-accent); color: var(--d-on-accent, #fff); } .al.state-triggered .al-shield { background: var(--crit); color: #fff; animation: tm-blink 1s infinite; } .al.state-disarmed .al-shield { color: var(--d-text-2); } .al-state { font-size: 14px; color: var(--d-text-2); font-weight: 600; } .al.state-triggered .al-state { color: var(--crit); } .al-open { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); font-size: 13px; font-weight: 600; } .al-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .al-code { text-align: center; font-size: 26px; letter-spacing: .3em; min-height: 32px; } .al-code .wt { letter-spacing: 0; font-size: 14px; } .al-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1; min-height: 0; } .al-key { display: grid; place-items: center; min-height: 40px; border-radius: 12px; background: var(--d-fill); font-size: 20px; font-weight: 600; } .al-key:active { background: color-mix(in srgb, var(--d-text) 20%, transparent); } .al-modes { display: flex; gap: 6px; flex: none; } .al-mode { flex: 1; min-height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--d-fill); font-weight: 600; font-size: 14px; } .al-mode.on { background: var(--d-accent); color: var(--d-on-accent, #fff); } .al-mode.off { background: var(--d-text); color: var(--d-tile); } /* notifications */ .nt { display: flex; flex-direction: column; height: 100%; gap: 10px; } .nt-head { display: flex; align-items: center; gap: 8px; } .nt-head .name { flex: 1; font-size: 17px; } .nt-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; } .nt-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 12px; background: var(--d-fill); } .nt-item.update .nt-ico { color: var(--d-accent); } .nt-ico { font-size: 18px; display: flex; padding-top: 1px; color: var(--d-text-2); } .nt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; } .nt-body b { font-size: 14px; } .nt-msg { color: var(--d-text-2); overflow-wrap: anywhere; } .nt-msg a, .nt-link { color: var(--d-accent); } .nt-time { font-size: 11px; color: var(--d-text-2); } .nt-x { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--d-text-2); } .nt-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--d-text-2); font-size: 14px; } .nt-empty .i { font-size: 28px; color: var(--ok); } /* room */ background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.6)), var(--room-img) center / cover; } /* taste-skill-ignore: a neutral scrim over the photo */ /* vacuum: compact on small cards, a robot with stats on bigger ones */ /* the more room, the more it shows */ /* photos */ .photos { position: absolute; inset: 0; background: #000; overflow: hidden; } .ph-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: var(--fit, cover); opacity: 0; transition: opacity 1.2s ease; } .ph-layer.on { opacity: 1; } .ph-msg { position: absolute; inset: 0; display: flex; padding: 16px; color: #fff; --d-text-2: rgba(255, 255, 255, 0.75); } .ph-msg:empty { display: none; } .ph-date { position: absolute; left: 14px; bottom: 12px; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); } .albums { display: flex; flex-direction: column; gap: 2px; background: var(--fill); border-radius: 9px; padding: 4px; max-height: 220px; overflow-y: auto; } .album { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 8px; border-radius: 7px; cursor: pointer; } .album:hover { background: var(--fill); } .album input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; } .album .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* calendar */ .cal { flex: 1; min-height: 0; overflow-y: auto; margin: 4px -4px 0; padding: 0 4px; } .cal-day { font-size: 13px; font-weight: 650; color: var(--d-text-2); margin: 12px 0 4px; } .cal-day:first-child { margin-top: 4px; } .cal-ev { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; } .cal-bar { width: 4px; align-self: stretch; min-height: 20px; border-radius: 2px; flex: none; } .cal-when { width: 92px; flex: none; font-size: 14px; color: var(--d-text-2); padding-top: 1px; } .cal-what { display: flex; flex-direction: column; min-width: 0; flex: 1; } .cal-sum { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cal-sub { font-size: 13px; color: var(--d-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cal-now { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; color: var(--d-accent); background: color-mix(in srgb, currentColor 16%, transparent); align-self: center; } @container (max-width: 260px) { .cal-ev { flex-wrap: wrap; } .cal-when { width: auto; order: 2; flex-basis: 100%; padding-left: 14px; } } /* pill button with icon and label (media "Turn on") */ .car-act { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--d-fill); font-size: 14px; font-weight: 500; } .car-act .i { font-size: 18px; } /* car: in the style of the Tesla app. Square cards show the car from the front, wide ones from the side. */ .tz { --tz-c: var(--d-text); --tz-paint: color-mix(in srgb, var(--d-text) 22%, #b9bec6); display: grid; grid-template-areas: "head" "art" "ctrls" "charge" "rows"; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto auto; row-gap: 10px; height: 100%; min-height: 0; min-width: 0; } .tz.charging { --tz-c: var(--ok); } .tz.low { --tz-c: var(--crit); } .tz.fuel:not(.low) { --tz-c: var(--warn); } .tz-head { grid-area: head; display: flex; align-items: flex-start; gap: 10px; min-width: 0; } .tz-title { flex: 1; min-width: 0; } .tz-name { font-size: clamp(17px, 7.5cqw, 24px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tz-status { margin-top: 2px; font-size: 13px; color: var(--d-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tz.charging .tz-status { color: var(--ok); } .tz-batt { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 6px; font-size: 14px; font-weight: 600; flex: none; padding-top: 3px; } .tz-brange { grid-column: 1 / -1; justify-self: end; font-size: 12px; font-weight: 500; color: var(--d-text-2); } .tz-bicon { width: 28px; height: 14px; display: block; } .tz-bshell { fill: none; stroke: var(--d-text-2); stroke-width: 1.5; } .tz-blevel { fill: var(--tz-c); } .tz-bnub { stroke: var(--d-text-2); stroke-width: 2; stroke-linecap: round; } .tz-bbolt { fill: var(--d-tile); stroke: var(--d-tile); stroke-width: .6; stroke-linejoin: round; } .tz-big { grid-area: big; display: none; flex-direction: column; gap: 2px; } .tz-pct { font-size: clamp(40px, 10cqw, 64px); font-weight: 700; letter-spacing: -0.045em; line-height: .9; } .tz-pct small { font-size: .42em; font-weight: 600; color: var(--d-text-2); margin-left: 2px; letter-spacing: 0; } .tz-rng { font-size: 15px; font-weight: 500; color: var(--d-text-2); } .tz-art { grid-area: art; min-height: 0; display: flex; align-items: center; justify-content: center; } .tz-front, .tz-side { width: 100%; height: 100%; min-height: 0; } .tz-front { max-height: 190px; } .tz-side { display: none; max-height: 200px; } .tz-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); } .tz-paint { fill: var(--tz-paint); } .tz-shadow { fill: #000; opacity: .3; } .tz.charging .tz-shadow { fill: var(--ok); opacity: .4; } .tz-tyre { fill: #16171a; } .tz-rim { fill: #3b3e45; } .tz-spokes { stroke: #6d717a; stroke-width: 1.6; } .tz-hub { fill: #9a9ea6; } .tz-crease { fill: none; stroke: #000; stroke-opacity: .16; stroke-width: 1; } .tz-handle { stroke: #000; stroke-opacity: .25; stroke-width: 1.6; stroke-linecap: round; } .tz-lamp { fill: #f3f6fb; } .tz-lamp-s { stroke: #f3f6fb; stroke-width: 2.4; stroke-linecap: round; } .tz-tail { stroke: #e0353b; stroke-width: 2.4; stroke-linecap: round; } .tz-intake { fill: #15161a; opacity: .85; } .tz-port { fill: var(--ok); stroke: var(--d-tile); stroke-width: 1.5; } .tz.charging .tz-port, .tz.charging .tz-bar i { animation: tz-pulse 2s ease-in-out infinite; } @keyframes tz-pulse { 50% { opacity: .55; } } .tz-charge { grid-area: charge; display: flex; flex-direction: column; gap: 6px; min-width: 0; } .tz-cl, .tz-cs { display: flex; justify-content: space-between; gap: 8px; min-width: 0; } .tz-ct { font-size: 13px; font-weight: 600; white-space: nowrap; flex: none; } .tz.charging .tz-ct { color: var(--ok); } .tz-ct .num { color: var(--d-text-2); font-weight: 500; margin-left: 4px; } .tz-cr { min-width: 0; font-size: 13px; color: var(--d-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tz-cs { font-size: 11px; color: var(--d-text-2); } .tz-bar { position: relative; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--d-text) 12%, transparent); } .tz-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--tz-c); } .tz-bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--d-text-2); } .tz-ctrls { grid-area: ctrls; display: flex; justify-content: space-around; gap: 4px; } .tz-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--d-text-2); transition: color .2s, background-color .2s; } .tz-btn:hover { background: var(--d-fill); } .tz-btn.on { color: var(--d-accent); } .tz-btn.ok { color: var(--ok); } .tz-btn.warn { color: var(--warn); } .tz-rows { grid-area: rows; display: none; flex-direction: column; border-top: 1px solid var(--d-separator); } .tz-row { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 2px; border-bottom: 1px solid var(--d-separator); text-align: left; width: 100%; } .tz-row:last-child { border-bottom: 0; } .tz-row > .i:first-child { font-size: 19px; color: var(--d-text-2); } .tz-rt { flex: 1; font-size: 15px; font-weight: 500; } .tz-rs { font-size: 13px; color: var(--d-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; } .tz-row > .i:last-child { font-size: 14px; color: var(--d-text-2); } @media (prefers-reduced-motion: reduce) { .tz.charging .tz-port, .tz.charging .tz-bar i { animation: none; } } /* a standard square card keeps its room for the car */ @container (max-height: 380px) { .tz.tz-sq .tz-cs { display: none; } } @container (max-height: 380px) and (max-aspect-ratio: 8 / 5) { .tz.tz-auto .tz-cs { display: none; } } /* tall square cards list the details, like the Tesla app's menu */ @container (min-height: 470px) { .tz:not(.tz-wide) .tz-rows { display: flex; } } /* short: no drawing, just the numbers and the bar */ @container (max-height: 280px) { .tz.tz-sq .tz-front { display: none; } .tz.tz-sq .tz-side { display: block; } .tz-btn { width: 40px; height: 40px; font-size: 19px; } } @container (max-height: 280px) and (max-aspect-ratio: 8 / 5) { .tz.tz-auto .tz-front { display: none; } .tz.tz-auto .tz-side { display: block; } } @container (max-width: 210px) { .tz-head { flex-direction: column; gap: 4px; } .tz-batt { display: flex; flex-wrap: wrap; padding-top: 0; } .tz-brange { flex-basis: 100%; } .tz-cs, .tz-ct .num { display: none; } .tz-btn { width: 36px; height: 36px; font-size: 18px; } } /* wide: the car from the side on the right, the numbers on the left */ .tz.tz-wide { grid-template-areas: "head art" "big art" "big ctrls" "charge charge"; grid-template-columns: minmax(170px, .8fr) minmax(0, 1.2fr); grid-template-rows: auto minmax(0, 1fr) auto auto; column-gap: 24px; } .tz.tz-wide .tz-batt { display: none; } .tz.tz-wide .tz-big { display: flex; } .tz.tz-wide .tz-front { display: none; } .tz.tz-wide .tz-side { display: block; } .tz.tz-wide .tz-charge { align-self: end; } .tz.tz-wide .tz-ctrls { justify-content: center; align-self: end; } .tz.tz-wide .tz-rows { display: none; } .tz.tz-wide .tz-art { align-self: stretch; } .tz.tz-wide .tz-big { align-self: start; } @container (min-aspect-ratio: 8 / 5) { .tz.tz-auto { grid-template-areas: "head art" "big art" "big ctrls" "charge charge"; grid-template-columns: minmax(170px, .8fr) minmax(0, 1.2fr); grid-template-rows: auto minmax(0, 1fr) auto auto; column-gap: 24px; } .tz.tz-auto .tz-batt { display: none; } .tz.tz-auto .tz-big { display: flex; } .tz.tz-auto .tz-front { display: none; } .tz.tz-auto .tz-side { display: block; } .tz.tz-auto .tz-charge { align-self: end; } .tz.tz-auto .tz-ctrls { justify-content: center; align-self: end; } .tz.tz-auto .tz-rows { display: none; } .tz.tz-auto .tz-art { align-self: stretch; } .tz.tz-auto .tz-big { align-self: start; } } /* very short, whatever the width: name, battery and the bar */ @container (max-height: 170px) { .tz.tz { grid-template-areas: "head" "ctrls" "charge"; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; } .tz.tz .tz-art, .tz.tz .tz-big, .tz.tz .tz-cs, .tz.tz .tz-rows { display: none; } .tz.tz .tz-batt { display: grid; } .tz.tz .tz-ctrls { align-self: center; } } @container (max-height: 120px) { .tz.tz .tz-ctrls { display: none; } } /* parcels */ .pc { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; } .pc-sum { font-size: 14px; color: var(--d-text-2); } .pc-sum b { font-size: 22px; color: var(--d-text); margin-right: 2px; } .pc-today { color: var(--d-accent); font-weight: 600; } .pc-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; } .pc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--d-fill); color: inherit; text-decoration: none; min-width: 0; } .pc-row.today { background: color-mix(in srgb, var(--d-accent) 14%, transparent); } .pc-row.done { opacity: .6; } .pc-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--d-tile); font-size: 17px; flex: none; } .pc-row.today .pc-ico { color: var(--d-accent); } .pc-row.done .pc-ico { color: var(--ok); } .pc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pc-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pc-status { font-size: 12px; color: var(--d-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pc-when { font-size: 12px; font-weight: 600; color: var(--d-text-2); white-space: nowrap; text-align: right; } .pc-row.today .pc-when { color: var(--d-accent); } /* air quality */ .aq { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; } .aq-row { --aq: var(--ok); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--d-fill); } .aq-row.lvl1 { --aq: var(--warn); } .aq-row.lvl2 { --aq: var(--crit); } .aq-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--aq); box-shadow: 0 0 0 4px color-mix(in srgb, var(--aq) 22%, transparent); } .aq-room { display: flex; flex-direction: column; min-width: 0; } .aq-room b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .aq-room span { font-size: 12px; color: var(--d-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .aq-row.lvl2 .aq-room span { color: var(--crit); font-weight: 600; } .aq-vals { display: flex; gap: 4px; } .aq-val { display: flex; flex-direction: column; align-items: center; min-width: 44px; padding: 3px 6px; border-radius: 9px; background: var(--d-tile); } .aq-val small { font-size: 10px; color: var(--d-text-2); } .aq-val span { font-size: 13px; font-weight: 600; } .aq-val.lvl1 span { color: var(--warn); } .aq-val.lvl2 span { color: var(--crit); } @container (max-width: 300px) { .aq-val small { display: none; } .aq-val { min-width: 36px; } } /* water and gas */ .us-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-width: 0; } .us-head .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .us-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: #0a84ff; background: color-mix(in srgb, #0a84ff 16%, transparent); flex: none; } .us-ico.gas { color: #ff9f0a; background: color-mix(in srgb, #ff9f0a 16%, transparent); } .us-ico.electricity { color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); } .us { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; } .us-now { display: flex; flex-direction: column; gap: 2px; } .us-big { font-size: clamp(26px, 9cqw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; } .us-big small { font-size: .45em; font-weight: 600; color: var(--d-text-2); margin-left: 3px; } .us-cmp { font-size: 12px; color: var(--d-text-2); } .us-cmp .up { color: var(--warn); } .us-cmp .down { color: var(--ok); } .us-bars { position: relative; flex: 1; min-height: 40px; display: flex; align-items: stretch; gap: 4px; } .us-day { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; } .us-bar { width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--d-text) 18%, transparent); } .us-day.today .us-bar { background: #0a84ff; } .us.gas .us-day.today .us-bar { background: #ff9f0a; } .us.electricity .us-day.today .us-bar { background: var(--ok); } .us-lbl { font-size: 10px; color: var(--d-text-2); } .us-avg { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--d-text-2); opacity: .6; margin-bottom: 18px; pointer-events: none; } .us-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--d-text-2); } @container (max-height: 200px) { .us-bars, .us-foot { display: none; } } /* solar forecast */ .sf { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; } .sf-top { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; } .sf-top > div { display: flex; flex-direction: column; } .sf-lbl { font-size: 12px; color: var(--d-text-2); } .sf-big { font-size: clamp(28px, 10cqw, 42px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; } .sf-mid { font-size: 18px; font-weight: 600; } .sf-big small, .sf-mid small { font-size: .5em; color: var(--d-text-2); margin-left: 3px; font-weight: 600; } .sf-bars { flex: 1; min-height: 50px; display: flex; align-items: stretch; gap: 3px; padding-bottom: 14px; } .sf-h { position: relative; flex: 1; display: flex; align-items: flex-end; } .sf-h i { width: 100%; border-radius: 4px 4px 1px 1px; background: color-mix(in srgb, #ffcc00 55%, transparent); } .sf-h.past i { opacity: .45; } .sf-h.best i { background: #ff9f0a; } .sf-h.now i { background: #ffcc00; box-shadow: 0 0 0 2px var(--d-tile), 0 0 0 3px #ffcc00; } .sf-h span { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--d-text-2); } .sf-best { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, #ff9f0a 14%, transparent); } .sf-best .i { color: #ff9f0a; font-size: 18px; flex: none; } @container (max-height: 220px) { .sf-bars { display: none; } } /* garage and gate */ .gt { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; height: 100%; min-height: 0; } .gt-head { display: flex; align-items: center; gap: 8px; min-width: 0; } .gt-head .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gt-state { font-size: 12px; font-weight: 600; color: var(--d-text-2); } .gt.open .gt-state { color: var(--warn); } .gt-btn { justify-self: center; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 0; } .gt-ring { width: clamp(64px, 34cqmin, 116px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(28px, 14cqmin, 50px); background: var(--d-fill); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--d-text) 10%, transparent); transition: background-color .25s, color .25s, transform .15s; } .gt-btn:active .gt-ring { transform: scale(.96); } .gt.open .gt-ring { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--warn) 55%, transparent); } .gt.moving .gt-ring { animation: gt-pulse 1.2s ease-in-out infinite; } @keyframes gt-pulse { 50% { opacity: .55; } } .gt-lbl { font-size: 14px; font-weight: 600; } .gt-since { font-size: 12px; color: var(--d-text-2); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @media (prefers-reduced-motion: reduce) { .gt.moving .gt-ring { animation: none; } } /* sports */ /* Formula One */ /* announcements */ #announce { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } #announce[hidden] { display: none; } .an-card { width: min(640px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: #fff; } .an-ico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; background: var(--accent); color: #fff; animation: an-pop .5s cubic-bezier(.2, 1.4, .4, 1); } @keyframes an-pop { from { transform: scale(.4); opacity: 0; } } .an-title { font-size: 18px; font-weight: 600; opacity: .8; } .an-msg { font-size: clamp(30px, 6vw, 56px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; white-space: pre-line; } .an-ok { min-height: 52px; min-width: 160px; font-size: 18px; margin-top: 10px; } @media (prefers-reduced-motion: reduce) { .an-ico { animation: none; } } #btn-guest[hidden] { display: none; } #btn-guest { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); } /* editor: alignment guides, presets, templates, undo history */ .guide { position: absolute; z-index: 6; pointer-events: none; background: #ff2d92; } .guide.v { top: 0; bottom: 0; width: 1px; } .guide.h { left: 0; right: 0; height: 1px; } .pal-sub { grid-column: 1 / -1; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin: 6px 2px 0; } .pal-preset { position: relative; display: grid; } .pal-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; font-size: 12px; background: var(--surface); color: var(--text-2); } .pal-preset:hover .pal-del, .pal-del:focus-visible { display: grid; } .modal-card:has(.tpl-grid) { width: 640px; } .tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 14px; max-height: 52vh; overflow-y: auto; } .tpl { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--separator); cursor: pointer; } .tpl input { position: absolute; opacity: 0; pointer-events: none; } .tpl:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); } .tpl:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; } .tpl-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: var(--fill); flex: none; } .tpl > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-2); } .tpl b { color: var(--text); font-size: 14px; } .undo-row { width: 100%; text-align: left; border-radius: 10px; } .undo-row:hover { background: var(--fill); } /* share */ .share-qr { width: 220px; max-width: 70%; margin: 14px auto 12px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--separator); } .share-qr svg { display: block; width: 100%; height: auto; } .share-row { display: flex; gap: 8px; } .share-row .input { flex: 1; min-width: 0; font-size: 13px; } .share-row .btn { flex: none; } /* offline note: visible without the top bar too (phones, kiosk) */ #offline-note { position: fixed; z-index: 85; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translateX(-50%); padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(28, 28, 30, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 16px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); text-align: center; } #offline-note[hidden] { display: none; } body.editing #offline-note { display: none; } /* pull to refresh */ #ptr { position: fixed; z-index: 86; left: 50%; top: calc(8px + env(safe-area-inset-top)); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text-2); box-shadow: 0 4px 16px rgba(0, 0, 0, .2); transform: translate(-50%, 0); pointer-events: none; } #ptr[hidden] { display: none; } #ptr svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } #ptr.ready { color: var(--accent); } #ptr.spin svg { animation: ptr-spin .8s linear infinite; } @keyframes ptr-spin { to { transform: rotate(360deg); } } /* popups as bottom sheets on phones */ @media (max-width: 600px) { .modal { align-items: flex-end; padding: 0; } .modal-card, .modal-card:has(.tpl-grid) { width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; padding: 26px 18px calc(18px + env(safe-area-inset-bottom)); transition: transform .25s ease; animation: sheet-up .3s cubic-bezier(.2, .9, .3, 1); } .modal-card::before { content: ""; position: sticky; top: -18px; display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--separator); margin: -14px auto 12px; } .modal-actions { flex-wrap: wrap; } .modal-actions .btn { flex: 1 1 auto; min-height: 46px; } } @keyframes sheet-up { from { transform: translateY(100%); } } @media (prefers-reduced-motion: reduce) { .modal-card { animation: none !important; } } /* phone editing: the bar with "Add widget" and the settings */ #edit-bar { display: none; position: fixed; z-index: 63; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); gap: 8px; padding: 6px; border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); } #edit-bar { max-width: calc(100% - 24px); } #edit-bar .btn { min-height: 44px; border-radius: 99px; padding: 0 18px; white-space: nowrap; } #sheet-backdrop { position: fixed; inset: 0; z-index: 61; background: rgba(0, 0, 0, .35); } #sheet-backdrop[hidden] { display: none; } .sheet-close { display: none; position: sticky; top: 0; float: right; width: 34px; height: 34px; border-radius: 50%; place-items: center; font-size: 20px; z-index: 2; } body:not(.editing) #edit-bar { display: none !important; } @media (pointer: coarse) { body.editing .w.selected { touch-action: none; } body.editing .w.selected .w-resize { width: 34px; height: 34px; } body.editing .w-tools button { width: 38px; height: 38px; } } @media (prefers-reduced-motion: reduce) { body.editing #palette, body.editing #inspector { transition: none; } } /* suggestions */ .pal-sug { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; text-align: left; font-size: 13px; font-weight: 500; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); } .pal-sug .i { font-size: 17px; flex: none; } .sg-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--separator); } .sg-row:last-child { border-bottom: 0; } .sg-row .grow { display: flex; flex-direction: column; min-width: 0; } .sg-row b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sg-row .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sg-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); font-size: 17px; flex: none; } .sg-row .btn { flex: none; } body:not(.editing) .w { -webkit-touch-callout: none; } /* ============================================================ phone dashboards */ body.phone-ui:not(.peek) #topbar { display: none; } #phone-menu { display: none; position: fixed; z-index: 62; top: calc(8px + env(safe-area-inset-top)); right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(120, 120, 128, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); } #phone-menu svg { width: 20px; height: 20px; stroke-width: 2.6; } body.phone-ui:not(.peek):not(.kiosk) #phone-menu { display: grid; } #phone-menu { transition: opacity .2s, transform .2s; } body.menu-away #phone-menu { opacity: 0; transform: translateY(-12px); pointer-events: none; } /* the install button in the top bar is for phones and tablets; computers have it in the menu */ @media (pointer: fine) { #btn-app { display: none; } } #btn-app[hidden] { display: none; } a.btn { text-decoration: none; color: inherit; } .modal-card ol.steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; } body.phone-ui #stage { padding-top: calc(env(safe-area-inset-top) + 6px); } body.phone-ui.peek #stage { padding-top: 72px; } body.phone-ui.peek #topbar { animation: peek-in .2s ease-out; } @keyframes peek-in { from { opacity: 0; transform: translateY(-8px); } } /* ============================================================ kiosk */ body.kiosk #topbar, body.kiosk #palette, body.kiosk #inspector { display: none !important; } body.kiosk #stage { padding-top: 6px; } body.kiosk.idle, body.kiosk.idle * { cursor: none !important; } #saver { position: fixed; inset: 0; z-index: 80; background: #000; color: #8e8e93; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: none; } #saver[hidden] { display: none; } #saver .time { font-size: min(22vw, 220px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; } #saver .date { font-size: 22px; margin-top: 12px; color: #636366; } #saver .photos { display: none; } #saver.photo .photos { display: block; } #saver.photo .saver-clock { position: absolute; left: 32px; bottom: 28px; text-align: left; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.55); } #saver.photo .time { font-size: clamp(40px, 9vw, 96px); } #saver.photo .date { color: rgba(255,255,255,.85); font-size: 18px; margin-top: 4px; } #saver .ph-msg { position: absolute; inset: 0; display: grid; place-items: center; } #doorbell { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; } #doorbell[hidden] { display: none; } #doorbell .db-cam { flex: 1; min-height: 0; display: grid; place-items: center; } #doorbell .db-cam > img { width: 100%; height: 100%; object-fit: contain; } #doorbell .db-icon > svg { width: 120px; height: 120px; color: #fff; animation: db-ring 1s ease-in-out infinite; } @keyframes db-ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(12deg); } 75% { transform: rotate(-12deg); } } #doorbell .db-bar { display: flex; align-items: center; gap: 16px; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); background: rgba(28,28,30,.9); color: #fff; } #doorbell .db-title { flex: 1; font-size: 22px; font-weight: 600; } #doorbell .db-close { min-height: 52px; padding: 0 28px; font-size: 18px; } #night-dim { position: fixed; inset: 0; z-index: 70; pointer-events: none; background: #000; opacity: var(--night-dim, 0); transition: opacity 2s ease; } @media (prefers-reduced-motion: reduce) { #doorbell .db-icon > svg { animation: none; } #night-dim { transition: none; } } /* ============================================================ motion + sizes */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } } /* While editing (and on tablets) the menu becomes a compact rail to leave room for the grid. */ @media (min-width: 641px) { body.editing #tabnav:not(.icons) { width: 84px; padding: 6px; margin-left: 10px; } body.editing #tabnav:not(.icons) .tabnav-item { flex-direction: column; justify-content: center; gap: 3px; padding: 8px 4px; min-height: 60px; text-align: center; } body.editing #tabnav:not(.icons) .tabnav-label { font-size: 11px; font-weight: 600; max-width: 100%; } } @media (max-width: 900px) { #tabnav:not(.icons) { width: 84px; padding: 6px; margin-left: 10px; } #tabnav:not(.icons) .tabnav-item { flex-direction: column; justify-content: center; gap: 3px; padding: 8px 4px; min-height: 60px; text-align: center; } #tabnav:not(.icons) .tabnav-label { font-size: 11px; font-weight: 600; max-width: 100%; } #palette { width: 180px; } #inspector { width: 260px; } #palette-list { grid-template-columns: 1fr; } .save-status { display: none; } } @media (max-width: 640px) { body:not(.editing) #tabnav { position: fixed; top: auto; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; margin: 0; flex-direction: row; max-height: none; overflow-x: auto; padding: 6px; border-radius: 22px; background: var(--glass); border-color: var(--glass-edge); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); } body:not(.editing) #tabnav .tabnav-item { flex: 1; min-width: 64px; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 4px; min-height: 56px; width: auto; height: auto; } /* A tab bar keeps its names on phones: there's no hover to reveal them. */ body:not(.editing) #tabnav.icons .tabnav-label { position: static; opacity: 1; transform: none; background: none; box-shadow: none; padding: 0; font-size: 11px; color: inherit; pointer-events: auto; max-width: 100%; } body:not(.editing) #tabnav.icons .tabnav-item[aria-current="page"]::before { display: none; } body.has-tabs:not(.editing) #canvas { padding-bottom: 96px; } body.editing #tabnav { position: static; width: auto; flex-direction: row; overflow-x: auto; max-height: none; margin: 4px 10px; } body.editing #stage { flex-direction: column; align-items: stretch; } #workspace { flex-direction: column; } body.editing #stage { order: 1; flex: 1; } /* editing on a phone: the widget list and the settings slide up as sheets */ body.editing #palette, body.editing #inspector { position: fixed; left: 0; right: 0; bottom: 0; z-index: 62; width: auto; height: 72vh; max-height: none; overflow-y: auto; padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); border: 0; border-radius: 20px 20px 0 0; background: var(--surface); box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); } body.editing.sheet-palette #palette, body.editing.sheet-inspector #inspector { transform: none; } body.editing #palette .hint { display: none; } body.editing #palette-list { grid-template-columns: repeat(3, 1fr); } body.editing #edit-bar { display: flex; } body.editing .sheet-close { display: grid; } body.editing #canvas { padding-bottom: 90px; } .btn.label-wide span { display: none; } } .hist-list { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; margin-top: 12px; } .hist-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--separator); } .hist-row:last-child { border-bottom: 0; } .hist-when { font-weight: 500; } /* ============================================================ screens: Dashboard, Builder, Admin */ .mode-seg { display: flex; gap: 2px; padding: 2px; border-radius: 11px; background: var(--fill); } .mode-seg[hidden] { display: none; } .mode-seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 9px; min-height: 32px; padding: 0 12px; cursor: pointer; font-weight: 500; color: var(--text-2); } .mode-seg button .i { font-size: 17px; } .mode-seg button:hover { color: var(--text); } .mode-seg button.on { background: var(--surface); color: var(--text); font-weight: 650; } .mode-seg button[data-mode="builder"].on { background: var(--accent); color: var(--on-accent); } @media (max-width: 760px) { .mode-seg button span { display: none; } .mode-seg button { padding: 0 9px; } } body.admin-mode #workspace, body.admin-mode #topbar .picker, body.admin-mode #btn-new, body.admin-mode #topbar .view-only, body.admin-mode #topbar .edit-only { display: none !important; } body.admin-mode #topbar::before { content: "Dashboard Studio"; font-weight: 650; font-size: 17px; padding-left: 8px; } /* ============================================================ admin */ #admin { position: absolute; inset: 0; display: flex; padding-top: 72px; background: var(--canvas); } #admin[hidden] { display: none; } .adm-nav { flex: none; width: 220px; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--separator); background: var(--surface); overflow-y: auto; } .adm-nav button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; border-radius: 10px; padding: 9px 12px; min-height: 40px; cursor: pointer; font-size: 15px; text-align: left; color: var(--text); } .adm-nav button .i { font-size: 19px; color: var(--text-2); } .adm-nav button:hover { background: var(--fill); } .adm-nav button.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 650; } .adm-nav button.on .i { color: var(--accent); } .adm-body { flex: 1; min-width: 0; overflow-y: auto; padding: 22px 28px 60px; } .adm-body > * { max-width: 1040px; margin-left: auto; margin-right: auto; } .adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; } .adm-head h2 { font-size: 28px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; } .adm-head p { margin: 0; max-width: 640px; } .adm-actions { display: flex; gap: 8px; flex-wrap: wrap; } .adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; } .adm-card { background: var(--surface); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); border: 1px solid var(--separator); } .ac-top { display: flex; gap: 12px; align-items: center; } .ac-top h3 { margin: 0 0 2px; font-size: 17px; overflow-wrap: anywhere; } .ac-swatch { width: 52px; height: 52px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); } .ac-swatch .i { font-size: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); } .ac-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); } .ac-who .i { font-size: 16px; flex: none; } .ac-actions { display: flex; gap: 8px; margin-top: auto; } .ac-actions .btn:not(.icon) { flex: 1; } .adm-list { display: flex; flex-direction: column; gap: 10px; } #admin .grow { flex: 1; min-width: 0; } .person { background: var(--surface); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--separator); } .person.everyone { border-style: dashed; } .p-head { display: flex; align-items: center; gap: 12px; } .p-name { font-weight: 650; font-size: 16px; } .p-badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); vertical-align: 2px; margin-left: 4px; } .adm-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--fill); font-weight: 700; color: var(--text-2); } .adm-avatar.admin { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); } .adm-avatar .i { font-size: 19px; } .p-access { margin: 12px 0 0 52px; display: flex; flex-direction: column; gap: 10px; } .p-access .seg { max-width: 460px; } .p-access .field { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--text-2); } .p-access .field .input { max-width: 240px; } .adm-chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip-check { position: relative; } .chip-check input { position: absolute; opacity: 0; pointer-events: none; } .chip-check span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border-radius: 99px; background: var(--fill); font-size: 13px; font-weight: 500; cursor: pointer; } .chip-check input:checked + span { background: var(--accent); color: var(--on-accent); } .chip-check input:checked + span::before { content: ""; width: 8px; height: 4px; margin: -3px 8px 0 1px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); } .chip-check input:disabled + span { opacity: .55; cursor: default; } .chip-check input:focus-visible + span { box-shadow: var(--focus); } .dev-row, .act-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 14px; padding: 10px 14px; border: 1px solid var(--separator); } .dev-row .grow .input { max-width: 320px; font-weight: 600; } .dev-row select.input { width: 200px; flex: none; } .dev-gap { width: 36px; flex: none; } .adm-panel { background: var(--surface); border-radius: 16px; padding: 18px; border: 1px solid var(--separator); margin-top: 18px; } .adm-panel h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 17px; } .adm-panel h3 .i { color: var(--accent); } .an-form { display: grid; grid-template-columns: 1fr 2fr 180px auto; gap: 8px; margin-top: 12px; } .haven-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; } .haven-grid .adm-panel { margin-top: 0; display: flex; flex-direction: column; gap: 6px; } .haven-step .btn { align-self: flex-start; } .hs-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; } .act-list { display: flex; flex-direction: column; gap: 6px; } .act-list .btn { justify-content: flex-start; } .kp-dashes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 6px 0 4px; } .kp-dashes .btn { min-height: 56px; justify-content: flex-start; font-size: 16px; font-weight: 600; } @media (max-width: 760px) { #admin { flex-direction: column; } .adm-nav { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--separator); padding: 8px; } .adm-nav button { flex: none; padding: 8px 12px; } .adm-body { padding: 18px 14px 60px; } .adm-head h2 { font-size: 24px; } .p-access { margin-left: 0; } .dev-row { flex-wrap: wrap; } .dev-row .grow { flex-basis: calc(100% - 52px); } .dev-row select.input { flex: 1; width: auto; } .an-form { grid-template-columns: 1fr; } } /* preview as someone else, and nothing to show */ #preview-bar { position: fixed; z-index: 70; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 14px; background: rgba(28, 28, 30, .9); color: #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 8px 30px rgba(0, 0, 0, .3); max-width: calc(100% - 24px); font-size: 14px; } #preview-bar[hidden] { display: none; } #preview-bar .btn { background: rgba(255, 255, 255, .16); color: #fff; flex: none; } body.previewing #btn-new { display: none; } #empty-note { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: var(--canvas); } #empty-note[hidden] { display: none; } .en-card { max-width: 420px; text-align: center; } .en-ico { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--fill); } .en-ico .i { font-size: 34px; color: var(--text-2); } .en-card h2 { margin: 0 0 8px; } .en-card p { color: var(--text-2); margin: 0; } body.empty #app { display: none; } body.in-haven #btn-new { display: none; } .haven-head { justify-content: flex-start; align-items: center; } .haven-head img { width: 64px; height: 64px; border-radius: 16px; flex: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); } .haven-head > div { flex: 1; min-width: 240px; } /* ============================================================ cards One card system in three device bands, picked by the screen itself (nothing to set): - desktop: a mouse and a wide screen, compact, with hover states; - tablet and wall panel: touch, or 641-1100px wide: larger type and 44px controls, read from across the room; - phone: 640px and narrower: the tablet's touch sizes in a tighter frame, rows that scroll sideways. Inside a band, each card's own size still decides what it shows (the container queries above). The rules: the card's answer is its largest thing, set at regular weight in tabular figures with the unit as a grey suffix; icons are plain outlines, never in a tinted circle; colour only where something is on, live or needs attention; one title style; status as a pale pill. */ #grid { --c-pad: 16px; --c-gap: 10px; --c-row: 40px; --c-ctl: 36px; --c-ico: 20px; --c-r: 12px; --c-fs-title: 14px; --c-fs-body: 14px; --c-fs-name: 15px; --c-fs-meta: 12px; --c-fs-mid: 20px; --c-hue: var(--d-accent); --c-sun: #e09a14; font-variant-numeric: tabular-nums; } @media (max-width: 1100px), (pointer: coarse) { #grid { --c-pad: 18px; --c-gap: 12px; --c-row: 48px; --c-ctl: 44px; --c-ico: 22px; --c-r: 14px; --c-fs-title: 15px; --c-fs-body: 15px; --c-fs-name: 16px; --c-fs-meta: 13px; --c-fs-mid: 22px; } } @media (max-width: 640px) { #grid { --c-pad: 14px; --c-gap: 10px; --c-fs-title: 14px; --c-fs-name: 15px; --c-fs-mid: 20px; } } /* the frame */ .w-body { padding: var(--c-pad); } .pad { padding: var(--c-pad); } .clock-bg, .clock-dim { margin: calc(-1 * var(--c-pad)); } /* one title style, one name style, one meta style */ .wt { font-size: var(--c-fs-title); font-weight: 600; color: var(--d-text); } .heading .wt { font-weight: 400; color: var(--d-text-2); font-size: var(--c-fs-body); } .heading .h-main { font-weight: 650; letter-spacing: -0.02em; margin: 0; } .value-top .wt, .gauge .wt, .al-code .wt, .vac-hero-text .wt, .clock .wt { font-weight: 400; color: var(--d-text-2); } .name { font-size: var(--c-fs-name); font-weight: 600; } .state { font-size: var(--c-fs-body); } .empty { font-size: var(--c-fs-body); } /* icons: plain outlines; the colour says the thing is on, never a tinted disc */ .badge { width: 28px; height: 28px; background: transparent !important; font-size: calc(var(--c-ico) + 4px); color: var(--d-text-2); place-items: center; border-radius: 0; } .w.lit-lamp .badge, .surface-plain .w.lit-lamp .badge, .surface-outline .w.lit-lamp .badge { color: var(--lit-text); } .surface-plain .w.lit-lamp .badge, .surface-outline .w.lit-lamp .badge { color: color-mix(in srgb, var(--lamp, #e3a12f) 70%, #b77a10); } .w.lit-on .badge { color: var(--accent-w); } .btn-widget:active .badge { color: var(--accent-w); } .row-ico, .value-ico, .wx-ico, .fc-ico, .clock-wx-ico { color: var(--d-text-2); } /* figures: regular weight, tabular, unit in grey */ .big, .climate .target, .clock .time, .wx-temp, .fc-temp, .tm-time, .cv-pct, .us-big, .sf-big, .appl-big, .vac-headline, .waste-when, .sp-score, .sp-time, .tz-pct { font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; } .clock .time { font-weight: 300; letter-spacing: -0.04em; } .unit, .us-big small, .sf-big small, .sf-mid small { font-weight: 400; color: var(--d-text-2); letter-spacing: 0; } .sf-mid, .clock-wx-temp, .vac-stat-v, .pc-sum b, .ef-val { font-weight: 500; } .num { font-variant-numeric: tabular-nums; } /* controls: flat, one fill, sized for the device */ .round { width: var(--c-ctl); height: var(--c-ctl); } .chip { min-height: calc(var(--c-ctl) - 4px); font-size: var(--c-fs-meta); padding: 0 12px; } .switch::after { box-shadow: none; } .slider { height: calc(var(--c-ctl) + 8px); border-radius: var(--c-r); } .slider.thin { height: 28px; } .list-row { min-height: var(--c-row); } .list-row .grow { font-size: var(--c-fs-body); } .list-row .st { font-size: var(--c-fs-meta); } @media (hover: hover) { .round:hover, .al-key:hover, .vac-btn:not(.primary):not(:disabled):hover, .appl-btn:hover { background: color-mix(in srgb, var(--d-text) 14%, transparent); } } .wbtn:active { transform: scale(.97); } @media (prefers-reduced-motion: reduce) { .wbtn:active { transform: none; } } /* status as a pale pill: the hue's own tint with its text */ .appl-status, .level, .cal-now { font-size: var(--c-fs-meta); font-weight: 600; } .appl.phase-running .appl-status { background: color-mix(in srgb, var(--d-accent) 16%, transparent); color: var(--d-accent); } /* pictures: the label sits on a dark plate, no text shadow */ .cam-label, .ph-date { text-shadow: none; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .58); font-size: var(--c-fs-meta); } .clock.on-image { text-shadow: none; } .clock.on-image .clock-wx { background: rgba(0, 0, 0, .45); backdrop-filter: none; -webkit-backdrop-filter: none; } /* entity tile and value */ .tile .tile-text .name { font-size: var(--c-fs-name); } .value .big { font-size: clamp(28px, min(34cqh, 26cqw), 64px); } /* light: brightness as one wide bar, colours in one row */ .swatch { width: 24px; height: 24px; } .swatch.more { color: var(--d-text-2); } /* thermostat */ .climate .target { font-size: clamp(32px, min(26cqh, 22cqw), 72px); } /* graph */ .graph .legend { font-size: var(--c-fs-meta); } .graph .legend b { font-size: var(--c-fs-body); font-weight: 500; } .graph .axis { font-size: 12px; } /* clock */ .clock .date { font-size: var(--c-fs-body); } .clock-wx { gap: 4px 8px; } /* weather */ .wx-temp { font-size: clamp(30px, min(32cqh, 20cqw), 60px); } .wx-ico { font-size: clamp(32px, min(38cqh, 16cqw), 60px); } /* media */ .media .title { font-size: var(--c-fs-name); font-weight: 600; } .mp-switch .chip { min-height: 30px; } /* forecast: no box per hour, the range as a flat bar */ .fc-hour { background: transparent; padding: 6px 0; border-radius: 10px; } .fc-hour:first-child { background: var(--d-fill); } .fc-hour b { font-weight: 500; } .fc-rain, .fc-t { font-size: 12px; } .fc-bar i { background: color-mix(in srgb, var(--d-text) 55%, transparent); } .fc-day:first-child .fc-bar i { background: var(--c-hue); } .fc-day { font-size: var(--c-fs-body); min-height: var(--c-row); } .fc-temp { font-size: clamp(32px, 12cqw, 48px); } /* timer: a thin ring */ .tm-ring circle { stroke-width: 4; } .tm-name { font-size: var(--c-fs-title); } /* blinds */ .cv-btns .round { width: var(--c-ctl); height: var(--c-ctl); } .cv-name { font-size: var(--c-fs-body); } /* alarm: the shield is a plain mark, coloured only when armed or triggered */ .al-shield { background: transparent !important; width: 28px; height: 28px; font-size: calc(var(--c-ico) + 4px); color: var(--d-text-2); } .al[class*="state-armed"] .al-shield { color: var(--d-accent); } .al.state-triggered .al-shield { color: var(--crit); } .al-key { min-height: var(--c-ctl); font-weight: 500; font-size: calc(var(--c-fs-body) + 5px); } .al-mode { min-height: var(--c-ctl); font-size: var(--c-fs-body); font-weight: 500; } .al-mode.on { background: color-mix(in srgb, var(--d-accent) 18%, transparent); color: var(--d-accent); font-weight: 600; } .al-code { font-variant-numeric: tabular-nums; } /* notifications: rows one step off the card */ .nt-head .name, .todo-head .name { font-size: var(--c-fs-title); } .nt-item { border-radius: var(--c-r); padding: 10px 12px; } .nt-body { font-size: var(--c-fs-meta); } .nt-body b { font-size: var(--c-fs-body); font-weight: 600; } .nt-time { font-size: 12px; } .nt-x { width: 32px; height: 32px; } .todo-count { font-weight: 600; font-size: var(--c-fs-meta); } .todo-row { min-height: var(--c-row); } .todo-text { font-size: var(--c-fs-body); } .todo-input { min-height: var(--c-ctl); border-radius: var(--c-r); } .todo-plus { width: var(--c-ctl); height: var(--c-ctl); border-radius: var(--c-r); } /* who's home: a green ring for home, nothing for away */ .pp-av { box-shadow: none; } .pp.home .pp-av { box-shadow: 0 0 0 2px var(--ok); } .pp-init { font-weight: 600; } .pp-name { font-size: var(--c-fs-body); } .pp-where { font-size: var(--c-fs-meta); } /* room: a plain mark, chips and devices without a filled icon */ /* vacuum: the state in words, the battery as a bar */ /* appliance: a thin progress ring with a plain icon inside */ .appl-ring circle { stroke-width: 4; } .appl-ico { background: transparent !important; width: 60%; font-size: clamp(22px, 18cqh, 36px); color: var(--d-text-2); } .phase-running .appl-ico { color: var(--d-accent); } .phase-done .appl-ico { color: var(--ok); } .appl-pct { font-size: 12px; font-weight: 600; } .appl-fact { font-size: var(--c-fs-meta); font-weight: 500; } .appl-big { font-size: clamp(22px, 17cqh, 34px); } /* litter box: compact; icon, name and controls on top, what it's doing, today's figures in one line */ .lb { display: flex; align-items: stretch; gap: 16px; height: 100%; min-width: 0; } .lb-ring { display: none; } .lb-ring > svg { transform: none; } .lb-spin { transform-origin: 50px 50px; animation: lb-spin 1.6s linear infinite; } @keyframes lb-spin { to { transform: rotate(360deg); } } @media (prefers-reduced-motion: reduce) { .lb-spin { animation: none; } } .lb-body { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico name name" "state state acts" "figs figs figs" "warn warn warn"; align-content: space-between; align-items: center; column-gap: 8px; row-gap: 2px; } .lb-ico { grid-area: ico; display: flex; font-size: var(--c-ico); color: var(--d-text-2); } .lb-name { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lb-acts { grid-area: acts; display: flex; align-items: center; gap: 8px; } .lb-state { grid-area: state; min-width: 0; font-size: clamp(20px, 16cqh, 32px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lb-figs { grid-area: figs; min-width: 0; display: flex; flex-wrap: wrap; column-gap: 12px; font-size: var(--c-fs-meta); color: var(--d-text-2); } .lb-fig { white-space: nowrap; } .lb-fig b { font-size: var(--c-fs-body); font-weight: 500; color: var(--d-text); } .lb-warn { grid-area: warn; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; min-width: 0; } .lb.phase-cleaning .lb-state, .lb.phase-cleaning .lb-ico, .lb.phase-cleaning .appl-ico { color: var(--d-accent); } .lb.phase-attention .lb-state, .lb.phase-attention .lb-ico, .lb.phase-attention .appl-ico { color: var(--warn); } .lb-clean { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--c-ctl); min-width: var(--c-ctl); padding: 0 12px; border-radius: 99px; background: var(--d-fill); font-size: var(--c-fs-meta); font-weight: 600; } .lb-clean:disabled { opacity: .5; cursor: default; } @media (hover: hover) { .lb-clean:not(:disabled):hover { background: color-mix(in srgb, var(--d-text) 14%, transparent); } } .lb-auto { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: var(--c-fs-meta); color: var(--d-text-2); } /* narrow: the controls as icons */ @container (max-width: 320px) { .lb-clean { padding: 0; } .lb-clean span { display: none; } } /* narrow: clean now stays, auto clean (a setting you rarely change) goes; the tiniest cards keep just the state */ @container (max-width: 260px) { .lb-auto-l { display: none; } .lb-acts:has(.lb-clean) .lb-auto { display: none; } .lb-figs { column-gap: 8px; } } @container (max-width: 150px) { .lb-acts { display: none; } .lb-ico { display: none; } .lb-body { column-gap: 0; } } /* one row high: everything on one line */ @container (max-height: 110px) { .lb-body { grid-template-columns: auto minmax(0, max-content) minmax(0, 1fr) auto; grid-template-areas: "ico state figs acts"; align-content: center; column-gap: 12px; } .lb-name, .lb-warn { display: none; } .lb-state { font-size: var(--c-fs-mid); } .lb-figs { line-height: 22px; height: 22px; overflow: hidden; } /* figures that don't fit wrap out of sight, whole */ } @container (max-height: 110px) and (max-width: 440px) { .lb-figs { display: none; } .lb-body { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico state acts"; } } @container (max-height: 110px) and (max-width: 280px) { .lb-acts:has(.lb-clean) .lb-auto { display: none; } } /* camera and photos: square label plates (above) */ /* car */ .tz-name { font-weight: 600; } /* parcels: a plain mark per row */ .pc-ico { background: transparent; width: 24px; height: 24px; font-size: var(--c-ico); color: var(--d-text-2); } .pc-sum b { font-size: var(--c-fs-mid); font-weight: 400; } .pc-row { border-radius: var(--c-r); min-height: var(--c-row); } .pc-name { font-size: var(--c-fs-body); } .pc-status, .pc-when { font-size: var(--c-fs-meta); } /* air quality: a dot per room, labels you can read */ .aq-dot { box-shadow: none; width: 10px; height: 10px; } .aq-row { border-radius: var(--c-r); min-height: var(--c-row); } .aq-room b { font-size: var(--c-fs-body); font-weight: 600; } .aq-room span { font-size: var(--c-fs-meta); } .aq-val { background: transparent; padding: 2px 4px; min-width: 48px; align-items: flex-end; } .aq-val small { font-size: 12px; } .aq-val span { font-size: var(--c-fs-body); font-weight: 500; } /* water and gas: the meter's own hue on today only, a plain mark by the name */ .us-ico { background: transparent !important; width: 22px; height: 22px; font-size: var(--c-ico); } .us-head .name { font-size: var(--c-fs-title); } .us-big { font-size: clamp(30px, 11cqw, 44px); } .us-cmp, .us-foot { font-size: var(--c-fs-meta); } .us-lbl { font-size: 12px; } .us-bar { border-radius: 3px 3px 0 0; } /* solar forecast: the sun's hue, flat; the best hours in it, the rest pale */ .sf-big { font-size: clamp(30px, 11cqw, 44px); } .sf-lbl { font-size: var(--c-fs-meta); } .sf-h i { background: color-mix(in srgb, var(--c-sun) 58%, var(--d-fill)); border-radius: 3px 3px 0 0; } .sf-h.past i { opacity: .5; } .sf-h.best i { background: var(--c-sun); } .sf-h.now i { background: color-mix(in srgb, var(--c-sun) 58%, var(--d-fill)); box-shadow: none; outline: 2px solid var(--c-sun); outline-offset: 1px; } .sf-h span { font-size: 12px; bottom: -17px; } .sf-bars { padding-bottom: 18px; } .sf-best { background: var(--d-fill); border-radius: var(--c-r); font-size: var(--c-fs-meta); } .sf-best .i { color: var(--c-sun); } /* garage and gate: the state is the answer, the button runs the width */ .gt { grid-template-rows: auto 1fr auto; gap: 6px; } .gt-head { gap: 8px; } .gt-ico { font-size: var(--c-ico); color: var(--d-text-2); display: flex; } .gt.open .gt-ico { color: var(--warn); } .gt-head .name { font-size: var(--c-fs-title); } .gt-now { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 0; } .gt-big { font-size: clamp(26px, min(24cqh, 16cqw), 44px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; } .gt.open .gt-big { color: var(--warn); } .gt.moving .gt-big { animation: gt-pulse 1.2s ease-in-out infinite; } .gt-since { text-align: left; font-size: var(--c-fs-meta); } .gt-btn { justify-self: stretch; align-self: end; flex-direction: row; justify-content: center; min-height: calc(var(--c-ctl) + 4px); border-radius: var(--c-r); background: var(--d-text); color: var(--d-tile); } .gt.open .gt-btn { background: var(--d-fill); color: var(--d-text); } .gt-lbl { font-size: var(--c-fs-body); font-weight: 600; } @media (prefers-reduced-motion: reduce) { .gt.moving .gt-big { animation: none; } } /* sports: sentence case, crests without a disc */ /* Formula One: the next race on one flat step, no gradient */ /* calendar */ .cal-sum { font-size: var(--c-fs-body); } .cal-when, .cal-sub { font-size: var(--c-fs-meta); } .cal-day { font-size: var(--c-fs-meta); font-weight: 600; } /* waste: the bin colours are the bins' own, kept small */ .waste-when { font-size: clamp(22px, 9cqw, 32px); } .waste-types { font-size: var(--c-fs-body); } .waste-day { font-size: var(--c-fs-body); font-weight: 500; } /* swipe and scroll containers: dots and arrows as plain floating controls */ .sw-dots, .hs-nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); } /* energy: the power flow */ .pf { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; } .pf-head { display: flex; align-items: baseline; justify-content: space-between; } .pf-nodes { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px 10px; } .pf-nodes.n2 { --n: 2; } .pf-nodes.n3 { --n: 3; } .pf-node { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .pf-lbl { display: flex; align-items: center; gap: 6px; font-size: var(--c-fs-meta); color: var(--d-text-2); white-space: nowrap; } .pf-lbl .i { font-size: 16px; flex: none; } .pf-sun .pf-lbl .i { color: var(--c-sun); } .pf-fig { font-size: clamp(22px, 7.5cqw, 32px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; } .pf-fig small { font-size: .5em; color: var(--d-text-2); margin-left: 3px; letter-spacing: 0; } .pf-sub { font-size: var(--c-fs-meta); color: var(--d-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pf-flows { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; } .pf-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; align-items: baseline; font-size: var(--c-fs-body); } .pf-flow-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pf-flow-v { font-weight: 500; } .pf-flow i { grid-column: 1 / -1; display: block; height: 4px; border-radius: 2px; background: var(--d-text); min-width: 4px; } .pf-flow.pf-sun i { background: var(--c-sun); } .pf-flow.pf-grid i { background: color-mix(in srgb, var(--d-text) 35%, transparent); } .pf-none { font-size: var(--c-fs-body); color: var(--d-text-2); } .pf-totals { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--c-fs-meta); color: var(--d-text-2); } .pf-total b { color: var(--d-text); font-weight: 500; font-size: var(--c-fs-body); } /* a square card: the four places as two by two */ @container (max-width: 520px) { .pf-nodes.n4, .pf-nodes.n3 { --n: 2; } } /* not much height: the flows say what the sublines would */ @container (max-height: 440px) { .pf-sub { display: none; } .pf-nodes { row-gap: 8px; } } @container (max-height: 260px) { .pf-flows { display: none; } } /* ---------------- the tablet and wall panel band */ @media (max-width: 1100px), (pointer: coarse) { .swatch { width: 30px; height: 30px; } .swatches { gap: 10px; } .todo-del { opacity: .6; width: var(--c-ctl); height: var(--c-ctl); } .fc-hour { flex-basis: 58px; } .cv-btns { gap: 8px; } .nt-x { width: var(--c-ctl); height: var(--c-ctl); } .mp-switch .chip { min-height: 38px; } .f1-tabs button { min-height: 38px; } } /* ---------------- the phone band */ @media (max-width: 640px) { /* colours and hours run in one row you can swipe, so the card keeps its height */ .swatches { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .swatches::-webkit-scrollbar { display: none; } .vac-btn span { display: none; } .vac-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .al-keys { gap: 8px; } .pf-nodes { gap: 12px; } .room-devices { grid-template-columns: repeat(2, minmax(0, 1fr)); } .appl-facts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .an-form { grid-template-columns: 1fr; } } /* round controls: an outline, filled only while pressed or when they are the main action */ .round { background: transparent; box-shadow: inset 0 0 0 1.5px var(--d-separator); } .round.primary { box-shadow: none; } .appl-btn, .nt-x { background: transparent; box-shadow: inset 0 0 0 1.5px var(--d-separator); } .nt-x { box-shadow: none; } .swatch { box-shadow: none; border: 1px solid rgba(0, 0, 0, .12); box-sizing: border-box; } /* sliders: a flat track with a flat fill (the thumb paints the filled part), no gradient */ .slider { background: var(--d-fill); overflow: hidden; } .slider::-webkit-slider-thumb, .lm-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 4px; height: 100px; border: 0; border-radius: 0; background: var(--slider-fill, var(--d-text)); box-shadow: -2000px 0 0 2000px var(--slider-fill, var(--d-text)); } .slider::-moz-range-thumb { width: 4px; height: 100px; border: 0; border-radius: 0; background: var(--slider-fill, var(--d-text)); } .slider::-moz-range-progress { height: 100%; background: var(--slider-fill, var(--d-text)); } /* the night dimmer only exists while it dims */ body:not([style*="--night-dim: 0."]):not([style*="--night-dim: 1"]) #night-dim { display: none; } /* a heading keeps its set size, but a phone's title stays phone-sized */ @media (max-width: 640px) { .heading .h-main { font-size: min(var(--h-size, 24px), 24px) !important; } } /* outlines and separators as borders, so nothing at rest carries a shadow */ .round { box-shadow: none; border: 1.5px solid var(--d-separator); box-sizing: border-box; } .round.primary { border-color: transparent; } .appl-btn { box-shadow: none; border: 1.5px solid var(--d-separator); box-sizing: border-box; } .list-row + .list-row { box-shadow: none; border-top: 1px solid var(--d-separator); } #grid .seg button[aria-pressed="true"], #grid .f1-tabs button[aria-selected="true"] { box-shadow: none; } .hs-nav { box-shadow: none; border: 1px solid var(--separator); } .swatch.more, .w.lit-lamp .swatch.more { background: transparent; border-color: color-mix(in srgb, currentColor 30%, transparent); } /* each slider knows its track height, and its fill-painting thumb is exactly that tall */ .slider { --trk: calc(var(--c-ctl) + 8px); height: var(--trk); } .slider.thin { --trk: 28px; } .slider::-webkit-slider-thumb, .lm-slider::-webkit-slider-thumb { height: var(--trk); } .slider::-moz-range-thumb { height: var(--trk); } /* solar: today's hours in the sun's colour, the hours gone faded */ .sf-h i, .sf-h.now i { background: var(--c-sun); } .sf-h.past i { opacity: .35; } .sf-h.best i { background: var(--c-sun); } .sf-h:not(.best) i { opacity: .7; } .sf-h.past:not(.best) i { opacity: .3; } /* light: the brightness bar never gives way; the colours stay one row you can swipe */ .swatches { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .swatches::-webkit-scrollbar { display: none; } .sf-h:not(.best) i { opacity: 1; } .sf-h.past:not(.best) i, .sf-h.past i { opacity: .35; } /* narrow cards: a tablet's four-column card is about 250px, so names get the width and figures go underneath */ @container (max-width: 340px) { .aq-row { grid-template-columns: auto minmax(0, 1fr); row-gap: 4px; } .aq-vals { grid-column: 2; justify-content: flex-start; gap: 12px; } .aq-val { flex-direction: row; align-items: baseline; gap: 4px; min-width: 0; padding: 0; } .aq-val small { display: inline; } .pc-row { flex-wrap: wrap; row-gap: 2px; } .pc-when { flex-basis: 100%; text-align: left; padding-left: 34px; } .cv-head { flex-wrap: wrap; } .cv-head .name { flex-basis: 100%; } .cv-row { flex-wrap: wrap; row-gap: 8px; } .cv-row-main { flex-basis: calc(100% - 42px); } .cv-btns { margin-left: 42px; } .nt-item { flex-wrap: wrap; } } /* very narrow (half a phone): blinds keep only what each row needs, the timer's figure fits its ring */ @container (max-width: 240px) { .cv-head .chip, .cv-head .wbtn:not(.name) { display: none; } .cv-row .cv-win { display: none; } .cv-row-main { flex-basis: 100%; } .cv-btns { margin-left: 0; width: 100%; justify-content: space-between; } .cv-btns .round { width: 40px; height: 40px; } .climate .round { width: 38px; height: 38px; } } .tm-time { font-size: clamp(20px, min(14cqh, 15cqw), 44px); } /* vacuum: the robot beside its dock, the last clean, maintenance */ .vac { display: flex; flex-direction: column; height: 100%; gap: 12px; min-height: 0; } .vac-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; } .vac-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .vac-title .name { font-size: var(--c-fs-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vac-status { font-size: clamp(22px, 8cqw, 30px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .vac.state-error .vac-status { color: var(--crit); } .vac-batt { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 2px; } .vac-batt-v { font-size: var(--c-fs-mid); line-height: 1; } .vac-batt-v small { font-size: .6em; color: var(--d-text-2); margin-left: 1px; } .vac-meter { display: block; width: 64px; height: 5px; border-radius: 3px; background: var(--d-fill); overflow: hidden; } .vac-meter i { display: block; height: 100%; border-radius: 3px; background: var(--d-text); } .charging .vac-meter i { background: var(--ok); } .vac-meter.low i { background: var(--crit); } .vac-art { flex: 1; min-height: 64px; display: grid; place-items: center; } .vac-map { width: 100%; height: 100%; object-fit: contain; border-radius: var(--c-r); background: var(--d-fill); } .vac-scene { width: 100%; height: 100%; max-height: 132px; overflow: visible; } .vs-dock { fill: color-mix(in srgb, var(--d-text) 12%, var(--w-bg, var(--d-tile))); } .vs-plate { fill: color-mix(in srgb, var(--d-text) 30%, transparent); } .vs-led { fill: color-mix(in srgb, var(--d-text) 30%, transparent); } .vs-led.on { fill: var(--ok); } .vs-trail { fill: none; stroke: var(--d-accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 8; opacity: .8; } .vs-robot { transition: transform .8s cubic-bezier(.3, .7, .3, 1); } .vs-body { fill: color-mix(in srgb, var(--d-text) 7%, var(--w-bg, var(--d-tile))); stroke: color-mix(in srgb, var(--d-text) 26%, transparent); stroke-width: 2; } .vs-bumper { fill: none; stroke: color-mix(in srgb, var(--d-text) 45%, transparent); stroke-width: 3; stroke-linecap: round; } .vs-lidar { fill: color-mix(in srgb, var(--d-text) 20%, var(--w-bg, var(--d-tile))); stroke: color-mix(in srgb, var(--d-text) 35%, transparent); stroke-width: 1.5; } .vs-brush line { stroke: color-mix(in srgb, var(--d-text) 40%, transparent); stroke-width: 1.5; stroke-linecap: round; } .vs-robot.busy .vs-brush { animation: vs-spin .5s linear infinite; transform-box: fill-box; transform-origin: center; } .vs-robot.busy .vs-lidar { stroke: var(--d-accent); } .vs-robot.err .vs-body { stroke: var(--crit); } @keyframes vs-spin { to { rotate: 360deg; } } @media (prefers-reduced-motion: reduce) { .vs-robot.busy .vs-brush { animation: none; } .vs-robot { transition: none; } } .vac-facts { display: flex; gap: 24px; flex-wrap: wrap; } .vac-fact { display: flex; flex-direction: column; gap: 1px; } .vac-fv { font-size: var(--c-fs-mid); line-height: 1.1; } .vac-fl { font-size: var(--c-fs-meta); color: var(--d-text-2); } .vac-maint { display: flex; flex-direction: column; gap: 6px; } .vac-mrow { display: grid; grid-template-columns: minmax(0, 7em) minmax(0, 1fr) 3em; align-items: center; gap: 10px; font-size: var(--c-fs-meta); } .vac-ml { color: var(--d-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vac-mbar { height: 4px; border-radius: 2px; background: var(--d-fill); overflow: hidden; } .vac-mbar i { display: block; height: 100%; background: color-mix(in srgb, var(--d-text) 55%, transparent); } .vac-mrow.low .vac-mbar i { background: var(--warn); } .vac-mrow.low .vac-mv { color: var(--warn); } .vac-mv { text-align: right; } .vac-fan { flex: none; } .vac-actions { display: flex; gap: 8px; flex: none; } .vac-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--c-ctl); padding: 0 12px; border-radius: var(--c-r); background: var(--d-fill); font-size: var(--c-fs-body); font-weight: 600; } .vac-btn .i { font-size: 18px; flex: none; } .vac-btn.primary { background: var(--d-text); color: var(--d-tile); } .vac-btn:disabled { opacity: .4; cursor: default; } @media (hover: hover) { .vac-btn:not(.primary):not(:disabled):hover { background: color-mix(in srgb, var(--d-text) 14%, transparent); } } /* the more room, the more it shows */ @container (max-width: 330px) { .vac-btn span { display: none; } } @container (max-height: 460px) { .vac-maint { display: none; } } @container (max-height: 380px) { .vac-facts { display: none; } } @container (max-height: 320px) { .vac-fan { display: none; } } @container (max-height: 240px) { .vac-art { display: none; } } @media (max-width: 640px) { .vac-btn span { display: none; } } /* Formula One: the official look (carbon black, F1 red, white), or the dashboard's theme */ .f1 { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; --f1-red: #e10600; --f1-ink: var(--d-text); --f1-mute: var(--d-text-2); --f1-step: var(--d-fill); } .f1.f1-official { margin: calc(-1 * var(--c-pad)); padding: var(--c-pad); height: calc(100% + 2 * var(--c-pad)); border-radius: inherit; background: #15151e; color: #fff; --f1-ink: #fff; --f1-mute: #b5b5c0; --f1-step: #26262f; --d-separator: #2c2c36; } .f1-brand { display: flex; align-items: center; gap: 10px; min-height: 22px; } .f1-logo { height: 20px; width: auto; max-width: 96px; object-fit: contain; } .f1-mark { width: 30px; height: 8px; border-radius: 2px; background: var(--f1-red); transform: skewX(-24deg); } .f1-round { font-size: var(--c-fs-meta); color: var(--f1-mute); margin-left: auto; } .f1-next { display: flex; flex-direction: column; gap: 4px; } .f1-race { font-size: clamp(20px, 7.5cqw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; } .f1-place { font-size: var(--c-fs-meta); color: var(--f1-mute); } .f1-clock { display: flex; gap: 6px; margin-top: 8px; } .f1-cd { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 8px; border-radius: 6px; background: var(--f1-step); } .f1-cd b { font-size: var(--c-fs-mid); font-weight: 700; line-height: 1.1; } .f1-cd small { font-size: 12px; color: var(--f1-mute); } .f1-sessions { display: flex; flex-direction: column; margin-top: 8px; } .f1-s { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 28px; padding: 0 8px; font-size: var(--c-fs-meta); border-left: 3px solid transparent; } .f1-sd { color: var(--f1-mute); } .f1-sn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .f1-s.past { opacity: .45; } .f1-s.next { border-left-color: var(--f1-red); background: var(--f1-step); font-weight: 700; } .f1-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--d-separator); flex: none; } .f1-tabs button { padding: 8px 0; font-size: var(--c-fs-meta); font-weight: 600; color: var(--f1-mute); border-bottom: 3px solid transparent; margin-bottom: -1px; } .f1-tabs button[aria-selected="true"] { color: var(--f1-ink); border-bottom-color: var(--f1-red); } .f1-list { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; } .f1-row { display: grid; grid-template-columns: 22px 4px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid var(--d-separator); } .f1-row:last-child { border-bottom: 0; } .f1-pos { font-weight: 700; text-align: right; } .f1-stripe { display: block; width: 4px; height: 22px; border-radius: 1px; background: var(--team); } .f1-name { display: flex; flex-direction: column; min-width: 0; } .f1-name b { font-size: var(--c-fs-body); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .f1-code { font-weight: 800; } .f1-name > span { font-size: 12px; color: var(--f1-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .f1-val { font-size: var(--c-fs-body); font-weight: 700; text-align: right; } .f1-val small { font-size: 12px; font-weight: 400; color: var(--f1-mute); margin-left: 3px; } @container (max-height: 520px) { .f1-sessions { display: none; } } @container (max-height: 380px) { .f1-clock { display: none; } } /* a person's text size, chosen by an admin */ body.text-large #grid { --c-fs-title: 17px; --c-fs-body: 17px; --c-fs-name: 18px; --c-fs-meta: 15px; --c-fs-mid: 25px; --c-ctl: 48px; --c-row: 52px; } body.text-xl #grid { --c-fs-title: 19px; --c-fs-body: 19px; --c-fs-name: 21px; --c-fs-meta: 17px; --c-fs-mid: 28px; --c-ctl: 54px; --c-row: 58px; } .p-look { margin: 12px 0 0 52px; display: flex; flex-wrap: wrap; gap: 8px 20px; } .p-look .field { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--text-2); } .p-look .input { width: auto; min-width: 120px; } @media (max-width: 760px) { .p-look { margin-left: 0; } } /* guests */ body.guest .guest-hide { display: none; } .inv-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 12px; } .inv-form .field { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); } .inv-host { margin: 14px 0 4px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); max-width: 360px; } .inv-fresh { margin-top: 16px; max-width: 420px; } .inv-fresh .share-qr { margin-left: 0; } .inv-row.ended { opacity: .6; } .adm-panel.notice { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); } @media (max-width: 760px) { .inv-form { grid-template-columns: 1fr; } } /* sports: the match as a match centre shows it: crests in the teams' colours, the time or score in the middle */ .sp { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; justify-content: space-between; } .sp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: var(--c-fs-meta); color: var(--d-text-2); } .sp-league { font-weight: 600; color: var(--d-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sp-tv { flex: none; } .sp-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; } .sp-side { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; } .sp-logo, .sp-crest { width: clamp(40px, 15cqmin, 64px); height: clamp(40px, 15cqmin, 64px); object-fit: contain; } .sp-crest { height: auto; aspect-ratio: 40 / 46; } .sp-name { font-size: var(--c-fs-body); font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sp-meta { font-size: var(--c-fs-meta); color: var(--d-text-2); } .sp.done .sp-side:not(.win) { opacity: .6; } .sp-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; } .sp-time, .sp-score { font-size: clamp(28px, 12cqmin, 46px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; } .sp-score i { font-style: normal; color: var(--d-text-2); margin: 0 6px; } .sp-sub { font-size: var(--c-fs-meta); color: var(--d-text-2); white-space: nowrap; } .sp-until { font-size: var(--c-fs-meta); font-weight: 600; color: var(--d-accent); white-space: nowrap; } .sp-live { color: var(--crit); } .sp-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--crit); margin-right: 5px; vertical-align: 1px; animation: tz-pulse 1.4s infinite; } @media (prefers-reduced-motion: reduce) { .sp-live::before { animation: none; } } .sp-odds { display: flex; flex-direction: column; gap: 4px; } .sp-bar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; } .sp-bar i { display: block; height: 100%; background: color-mix(in srgb, var(--d-text) 60%, transparent); } .sp-bar i.d { background: var(--d-fill); } .sp-odds-l { display: flex; justify-content: space-between; font-size: var(--c-fs-meta); color: var(--d-text-2); } .sp-place, .sp-play { display: flex; align-items: center; gap: 6px; font-size: var(--c-fs-meta); color: var(--d-text-2); min-width: 0; } .sp-place .i { font-size: 14px; flex: none; } .sp-place span, .sp-play { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sp-play { color: var(--d-text); } @container (max-height: 230px) { .sp-odds, .sp-place, .sp-play { display: none; } } @container (max-height: 170px) { .sp-meta, .sp-head { display: none; } } /* light: the card is the lamp. Off it's the theme's card; on, it takes the lamp's colour and the brightness fills it from the left in a deeper shade. Drag anywhere across it to dim. */ .lt { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: 8px; } .fader { position: relative; overflow: hidden; isolation: isolate; --fill: color-mix(in srgb, var(--tint, #ffc46b) 72%, #e8962a); } .fader-fill { position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); background: var(--fill); z-index: -1; transition: width .25s ease; } .fader.on .fader-fill { opacity: 1; } .fader-input { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 1; touch-action: pan-y; } button.fader-input { cursor: pointer; } .fader-input:focus-visible { opacity: 1; background: transparent; outline: 2px solid var(--accent); outline-offset: -3px; border-radius: inherit; } .fader > :not(.fader-fill):not(.fader-input) { position: relative; z-index: 2; pointer-events: none; } .fader .wbtn:not(.fader-input), .fader .swatches { pointer-events: auto; } @media (prefers-reduced-motion: reduce) { .fader-fill { transition: none; } } /* the single light fills the whole card */ .lt-main { flex: 1; min-height: 0; margin: calc(-1 * var(--c-pad)); padding: var(--c-pad); border-radius: inherit; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; } .lt.group .lt-main { flex: none; min-height: 112px; margin-bottom: 0; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .lt-top { display: flex; align-items: center; gap: 10px; min-width: 0; } .lt-ico { width: 32px; height: 32px; display: grid; place-items: center; font-size: calc(var(--c-ico) + 4px); color: var(--d-text-2); flex: none; border-radius: 50%; } .lt.on .lt-ico { color: var(--lit-text); } .lt-title { flex: 1; min-width: 0; display: flex; flex-direction: column; } .lt-title .name { font-size: var(--c-fs-name); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lt-sub { font-size: var(--c-fs-meta); color: var(--d-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .light-switch { flex: none; display: flex; } .lt-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-width: 0; } .lt-big { font-size: clamp(30px, min(26cqh, 16cqw), 64px); font-weight: 400; letter-spacing: -0.03em; line-height: .95; } .lt:not(.on) .lt-big { color: var(--d-text-2); } .lt-foot .swatches { flex: 0 1 auto; min-width: 0; margin-left: auto; justify-content: flex-start; } .lt-foot .swatch { width: 22px; height: 22px; } .w.lit-lamp .swatch.more { color: var(--lit-text); } /* a group: the group's fader on top, then a fader per light, each in its own colour */ .lt-rows { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; } .lf-row { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: var(--c-row); padding: 0 6px 0 14px; border-radius: var(--c-r); background: var(--d-fill); } .w.lit-lamp .lf-row { background: rgba(255, 255, 255, .45); } .lf-name { font-size: var(--c-fs-body); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lf-pct { font-size: var(--c-fs-meta); color: var(--d-text-2); } .lf-row.on .lf-pct { color: inherit; } .lf-row .switch { transform: scale(.85); } /* not much room: the colours go (the bulb opens them) */ /* room: the name and what's going on, the climate in large figures, then its devices as tiles that light up */ .rm { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; } .rm.on-image { margin: calc(-1 * var(--c-pad)); padding: var(--c-pad); border-radius: inherit; color: #fff; --d-text-2: rgba(255, 255, 255, 0.86); --d-fill: rgba(255, 255, 255, 0.18); background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.6)), var(--room-img) center / cover; } /* taste-skill-ignore: a neutral scrim over the photo */ .rm-head { display: flex; align-items: center; gap: 10px; min-width: 0; } .rm-ico { font-size: calc(var(--c-ico) + 4px); color: var(--d-text-2); display: flex; flex: none; } .rm-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .rm-name { font-size: calc(var(--c-fs-name) + 3px); font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rm-said { font-size: var(--c-fs-meta); color: var(--d-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rm-climate { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; } .rm-temp { font-size: clamp(30px, 11cqw, 48px); font-weight: 400; letter-spacing: -0.03em; line-height: 1; } .rm-temp small, .rm-hum small { font-size: .45em; color: var(--d-text-2); margin-left: 2px; letter-spacing: 0; } .rm-hum { display: inline-flex; align-items: baseline; gap: 4px; font-size: var(--c-fs-mid); } .rm-hum .i { font-size: 16px; color: var(--d-text-2); align-self: center; } .rm-heat { display: inline-flex; align-items: center; gap: 6px; font-size: var(--c-fs-meta); font-weight: 600; padding: 0 12px; min-height: 30px; border-radius: 99px; background: var(--d-fill); margin-left: auto; align-self: center; } .rm-heat .i { font-size: 15px; } .rm-warn { display: flex; align-items: center; gap: 8px; font-size: var(--c-fs-meta); font-weight: 600; color: var(--warn); } .rm-warn .i { font-size: 16px; flex: none; } .rm-devs { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); align-content: start; gap: 8px; } .rd { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-height: calc(var(--c-row) + 8px); padding: 8px 12px; border-radius: var(--c-r); background: var(--d-fill); text-align: left; --fill: color-mix(in srgb, var(--tint, #ffc46b) 72%, #e8962a); } .rd-fill { position: absolute; inset: 0 auto 0 0; width: 0; z-index: -1; } .rd.on { background: color-mix(in srgb, var(--d-text) 88%, transparent); color: var(--d-tile); --d-text-2: color-mix(in srgb, var(--d-tile) 70%, transparent); } .rd.light.on { background: color-mix(in srgb, var(--tint, #ffc46b) 32%, var(--d-lit, #ffedc7)); color: var(--lit-text); --d-text-2: var(--lit-text-2); } .rd.light.on .rd-fill { width: var(--pct, 0%); background: var(--fill); } .rd-ico { grid-row: span 2; display: flex; font-size: var(--c-ico); } .rd-name { font-size: var(--c-fs-meta); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rd-state { font-size: 12px; color: var(--d-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } @container (max-height: 220px) { .rm-devs { display: none; } } @container (max-height: 150px) { .rm-climate { display: none; } } @media (max-width: 640px) { .rm-devs { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* very narrow light and room cards: the name gets its own line, nothing is cut off */ @container (max-width: 200px) { .lt-top { flex-wrap: wrap; row-gap: 6px; } .lt-title { order: 3; flex-basis: 100%; } .lt-ico { width: 28px; height: 28px; } .lf-row { grid-template-columns: minmax(0, 1fr) auto; padding-right: 10px; } .lf-row .light-switch { display: none; } .rm-climate { gap: 6px 12px; } .rm-heat { margin-left: 0; } .rm-head .rm-ico { display: none; } } @container (max-width: 200px) and (max-height: 190px) { .lt-sub { display: none; } .lt-big { font-size: 28px; } .lt-main { gap: 4px; } } /* the light's colours, behind a palette button */ .lt-pal { flex: none; width: var(--c-ctl); height: var(--c-ctl); border-radius: 50%; display: grid; place-items: center; font-size: 18px; border: 1.5px solid color-mix(in srgb, currentColor 28%, transparent); box-sizing: border-box; } .lt.on .lt-pal { color: var(--lit-text); } .lt-colors { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; } .lt-colors .swatches { flex: 1; min-width: 0; margin: 0; justify-content: flex-start; } .lt-colors .swatch { width: 28px; height: 28px; } /* tall: a ring on top, the rest centred below */ @container (min-height: 260px) { .lb { flex-direction: column; align-items: center; justify-content: center; text-align: center; } .lb-body { flex: none; width: 100%; grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "state" "figs" "acts" "warn"; justify-items: center; row-gap: 4px; } .lb-ico { display: none; } .lb-figs { justify-content: center; } .lb-acts { margin-top: 6px; } } @container (min-height: 260px) and (min-width: 180px) { .lb-ring { display: grid; height: min(50%, 170px); } } /* ================================================================ phone dashboards: Small cards and Rows Each card's summary: an icon, the one figure that matters, a name, and at most one control. A tap anywhere does what the card does (phc-tap lies under everything); controls sit on top. */ .phc { position: relative; height: 100%; min-width: 0; color: var(--d-text); } .phc-tap { position: absolute; inset: calc(-1 * var(--c-pad)); z-index: 0; background: none; border-radius: inherit; } .phc-top, .phc-bottom, .phc-text, .phc-ico, .phc-art, .phc-val { position: relative; z-index: 1; pointer-events: none; } .phc-ctl { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; flex: none; } .phc-ico { display: flex; font-size: var(--c-ico); color: var(--d-text-2); } .phc.on .phc-ico { color: var(--phc-tint, var(--d-accent)); } .w.lit-lamp .phc .phc-ico, .w.lit-on .phc .phc-ico { color: inherit; } /* plain and outline surfaces keep the card's own background: the icon lights up instead */ .surface-plain .w.lit-lamp .phc .phc-ico, .surface-outline .w.lit-lamp .phc .phc-ico { color: color-mix(in srgb, var(--lamp, #e3a12f) 70%, #b77a10); } .surface-plain .w.lit-on .phc .phc-ico, .surface-outline .w.lit-on .phc .phc-ico { color: var(--accent-w); } .phc-art { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; } .phc-btn { width: var(--c-ctl); height: var(--c-ctl); border-radius: 50%; display: grid; place-items: center; background: var(--d-fill); font-size: 17px; flex: none; } .phc-btn.wide { width: auto; padding: 0 14px; border-radius: 99px; font-size: var(--c-fs-meta); font-weight: 600; } .phc-btn:disabled { opacity: .45; } .phc-btn.wide { display: inline-flex; gap: 6px; } .phc-s .phc-btn.wide { width: 34px; padding: 0; justify-content: center; } .phc-s .phc-btn.wide span { display: none; } .phc-bin { display: flex; } .phc-val { font-size: 30px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .phc-val small { font-size: .5em; color: var(--d-text-2); margin-left: 3px; letter-spacing: 0; } .phc-word { font-size: 21px; letter-spacing: -0.02em; } .phc-name { font-size: var(--c-fs-body); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .phc-sub { font-size: var(--c-fs-meta); color: var(--d-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .phc-meter { display: block; height: 4px; border-radius: 2px; background: var(--d-fill); margin: 5px 0 6px; overflow: hidden; } .phc-meter i { display: block; height: 100%; border-radius: inherit; background: var(--phc-tint, var(--d-accent)); } .tone-ok .phc-val { color: var(--ok); } .tone-ok .phc-meter i { background: var(--ok); } .tone-warn .phc-val { color: var(--warn); } .tone-warn .phc-meter i { background: var(--warn); } .tone-crit .phc-val { color: var(--crit); } .tone-crit .phc-meter i { background: var(--crit); } .tone-accent .phc-val { color: var(--d-accent); } .w.lit-lamp .phc .phc-val, .w.lit-on .phc .phc-val, .w.lit-lamp .phc-val small, .w.lit-lamp .phc-sub { color: inherit; } .phc-clock .time { font: inherit; letter-spacing: inherit; } .phc-clock .date { font-size: var(--c-fs-meta); color: var(--d-text-2); letter-spacing: 0; margin-top: 2px; } /* Small (and Large): the icon and control on top, the figure and name at the bottom */ .phc-s, .phc-l { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; } .phc-s .phc-top, .phc-l .phc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; min-height: var(--c-ctl); } .phc-s .phc-ctl .phc-btn { width: 34px; height: 34px; font-size: 16px; } .phc-s .phc-bottom, .phc-l .phc-bottom { display: flex; flex-direction: column; min-width: 0; } .phc-s .phc-sub, .phc-l .phc-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .phc-s .phc-val + .phc-name, .phc-s .phc-meter + .phc-name { margin-top: 2px; } /* Row: one line: icon, name and what it says, the figure, a control */ .phc-row { display: flex; align-items: center; gap: 12px; } .phc-row .phc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; } .phc-row .phc-val { flex: none; max-width: 45%; font-size: 24px; } .phc-row .phc-word { font-size: 17px; } .phc-row .phc-art { width: 36px; height: 36px; } .phc-row .phc-clock .date { display: none; } .w.ph-row .w-body { padding-top: 0; padding-bottom: 0; justify-content: center; } /* a light as a Row: the fader the group card uses, filling the card */ .w.ph-row .w-body:has(.phc-light) { padding: 0; } .phc-light { height: 100%; } .phc-light .lf-row { height: 100%; grid-template-columns: auto minmax(0, 1fr) auto auto; padding: 0 10px 0 12px; border-radius: inherit; } .phc-light .lt-ico { position: relative; z-index: 2; } .phc-l .phc-ico { font-size: 34px; } .phc-l .phc-val { font-size: 64px; } .phc-l .phc-word { font-size: 34px; } .phc-l .phc-name { font-size: 18px; } .phc-l .phc-sub { font-size: var(--c-fs-body); } .phc-l .phc-meter { height: 6px; border-radius: 3px; } /* Medium: the icon, name and control on one line, the figure large below */ .phc-m { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; } .phc-m .phc-top { display: flex; align-items: center; gap: 12px; min-width: 0; } .phc-m .phc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; } .phc-m .phc-bottom { display: flex; flex-direction: column; min-width: 0; } .phc-m .phc-val { font-size: 42px; } .phc-m .phc-word { font-size: 26px; } /* Medium cards drawn in full: what doesn't fit two rows on a phone makes way */ .w.ph-m .appl-fact ~ .appl-fact { display: none; } .w.ph-m .f1-tabs, .w.ph-m .f1-list { display: none; } .w.ph-m .fc-days { display: none; } .w.ph-m .graph .legend > span ~ span { display: none; } /* cards that draw edge to edge (camera, photos) still get their padding as a summary */ .w-body.flush:has(> .phc) { padding: var(--c-pad); } .w.ph-row .w-body.flush:has(> .phc) { padding: 0 var(--c-pad); } /* nothing to show but a name (a button): the name, larger, in the middle */ .phc-m:not(:has(.phc-bottom)) { justify-content: center; } .phc-m:not(:has(.phc-bottom)) .phc-name { font-size: 20px; } .phc-l:not(:has(.phc-val)) .phc-name { font-size: 24px; } /* the details sheet: the state in words, a day's history, the controls; the technical details folded away */ .mi-head { display: flex; align-items: center; gap: 10px; } .mi-head h3 { margin: 0; } .mi-ico { display: flex; font-size: 22px; color: var(--text-2); } .mi-state { font-size: 34px; font-weight: 400; letter-spacing: -0.02em; margin: 14px 0 2px; } .mi-graph { margin-top: 14px; } .mi-graph svg { display: block; width: 100%; height: 90px; } .mi-graph-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; } .mi-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; } .mi-actions .btn { flex: 1; min-width: 0; justify-content: center; } .mi-more { margin-top: 16px; } .mi-more summary { cursor: pointer; font-size: 13px; color: var(--text-2); padding: 6px 0; } .mi-more .attr-table { margin-top: 4px; } /* lit tiles keep the lamp's dark text */ .phc { color: inherit; }