/* ============================================================ 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; } .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; } .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; } .light { display: flex; flex-direction: column; height: 100%; gap: 10px; justify-content: space-between; } .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: linear-gradient(to right, var(--slider-fill, var(--d-text)) var(--pct, 0%), var(--d-fill) var(--pct, 0%)); 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; } .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))); } .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 */ .light-head { display: flex; align-items: center; gap: 12px; min-width: 0; } .light-badge { cursor: pointer; } .light-toggle { flex: 1; min-width: 0; display: flex; flex-direction: column; } .light-switch { flex: none; display: flex; } .lm-switch { display: flex; } .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); } .light.is-group { justify-content: flex-start; gap: 10px; } .light-members2 { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin: 0 -4px; padding: 0 4px; } .lm-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: var(--d-fill); } .lm-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: color-mix(in srgb, var(--d-text) 8%, transparent); } .lm-row.on .lm-dot { background: var(--tint, var(--d-lit)); color: #2a1d05; } .lm-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .lm-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lm-state { font-size: 12px; color: var(--d-text-2); } .lm-slider { height: 8px; border-radius: 4px; } .lm-slider::-webkit-slider-thumb { height: 16px; width: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); } .lm-slider::-moz-range-thumb { height: 16px; width: 16px; border-radius: 50%; background: #fff; } .lm-pct { font-size: 12px; color: var(--d-text-2); min-width: 32px; text-align: right; } .w.lit-lamp .lm-row { background: rgba(255, 255, 255, 0.45); } .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: linear-gradient(to right, var(--fill-c, #ffd58a) var(--pct, 0%), var(--fill) var(--pct, 0%)); } .lp-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 30px; border-radius: 3px; background: rgba(255, 255, 255, .9); box-shadow: 0 1px 3px rgba(0,0,0,.3); } .lp-slider::-moz-range-thumb { width: 6px; height: 30px; border: 0; border-radius: 3px; background: #fff; } .lp-temp { height: 36px; background: linear-gradient(to right, #ffb35c, #fff4e5 55%, #cfe2ff); } .lp-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; } .swatch.big { width: 38px; height: 38px; border: 0; cursor: pointer; } .swatch.custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); color: #fff; position: relative; overflow: hidden; } .swatch.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; } /* light groups */ .light-members { flex: 1; min-height: 0; margin: 0 -6px; } .light:has(.light-members) { justify-content: flex-start; } /* 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; background: linear-gradient(to right, #5ac8fa, #ffcc00, #ff9500); } @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: linear-gradient(#bfe0ff, #e8f4ff); overflow: hidden; flex: none; } .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; } .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 */ .room { position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; } .room.on-image { margin: -16px; padding: 16px; 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; } .room-head { display: flex; align-items: center; gap: 12px; min-width: 0; } .room-name { font-size: 17px; } .room-chips { display: flex; flex-wrap: wrap; gap: 6px; } .room-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 99px; background: var(--d-fill); font-size: 13px; font-weight: 600; max-width: 100%; } .room-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .room-chip .i { font-size: 16px; flex: none; } .room-chip.on { background: var(--d-text); color: var(--d-tile); } .room-chip.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); } .room-devices { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); align-content: start; gap: 8px; } .room-dev { display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 48px; border-radius: 12px; background: var(--d-fill); min-width: 0; } .room-dev.on { background: var(--d-text); color: var(--d-tile); --d-text-2: color-mix(in srgb, var(--d-tile) 70%, transparent); } .room-dev-ico { font-size: 18px; display: flex; flex: none; } .room-dev-text { display: flex; flex-direction: column; min-width: 0; } .room-dev-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .room-dev-state { font-size: 12px; color: var(--d-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .w.lit-lamp .room-dev.on { background: rgba(255, 255, 255, 0.7); color: var(--lit-text); --d-text-2: var(--lit-text-2); } .w.lit-lamp .room-chip.on { background: rgba(61, 44, 10, 0.85); color: #fff6e6; } @container (max-height: 200px) { .room-devices { display: none; } } /* vacuum: compact on small cards, a robot with stats on bigger ones */ .vac { display: flex; flex-direction: column; height: 100%; gap: 12px; } .vac-head { display: flex; align-items: center; gap: 12px; min-width: 0; } .vac-batt { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--d-text-2); white-space: nowrap; } .vac-batt .i { font-size: 18px; } .vac-hero { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 18px; } .vac-map { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; background: var(--d-fill); } .vac-robot { position: relative; width: clamp(84px, 32cqh, 150px); aspect-ratio: 1; flex: none; display: grid; place-items: center; } .vac-ring { position: absolute; inset: 0; transform: rotate(-90deg); } .vac-ring circle { fill: none; stroke-width: 5; } .vac-ring .track { stroke: var(--d-fill); } .vac-ring .fill { stroke: var(--ok); stroke-linecap: round; transition: stroke-dasharray .6s; } .vac-ring .fill.low { stroke: var(--crit); } .vac-robot-ico { position: relative; z-index: 1; width: 62%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(30px, 12cqh, 54px); background: var(--d-fill); } .state-cleaning .vac-robot-ico, .state-returning .vac-robot-ico { background: var(--accent-w); color: var(--d-on-accent, #fff); } .vac-pulse { position: absolute; inset: 19%; border-radius: 50%; } .vac-robot.is-cleaning .vac-pulse { animation: vac-pulse 1.8s ease-out infinite; border: 2px solid var(--accent-w); } @keyframes vac-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.45); opacity: 0; } } .vac-charge { position: absolute; z-index: 2; right: 8%; bottom: 8%; width: 28%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #04210f; font-size: clamp(14px, 4cqh, 20px); box-shadow: 0 0 0 3px var(--w-bg, var(--d-tile)); } .vac-hero-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .vac-headline { font-size: clamp(18px, 6cqh, 26px); font-weight: 700; line-height: 1.15; } .vac-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; flex: none; } .vac-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--d-fill); min-width: 0; } .vac-stat .i { grid-row: span 2; font-size: 18px; color: var(--d-text-2); } .vac-stat-v { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vac-stat-l { font-size: 12px; color: var(--d-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vac-fan { flex: none; background: var(--d-fill); } .vac-fan button { color: inherit; display: grid; place-items: center; } .vac-fan button[aria-pressed="true"] { background: var(--d-tile); color: var(--d-text); } .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: 44px; padding: 0 12px; border-radius: 14px; background: var(--d-fill); font-size: 14px; 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; } .vac.state-error .state { color: var(--crit); font-weight: 600; } /* the more room, the more it shows */ @container (max-width: 330px) { .vac-btn span { display: none; } .vac-hero-text { display: none; } } @container (max-height: 370px) { .vac-stats { display: none; } } @container (max-height: 330px) { .vac-fan { display: none; } } @container (max-height: 250px) { .vac-hero { display: none; } } @container (min-height: 251px) { .vac-head .vac-batt, .vac-head .state { display: none; } } @container (min-height: 251px) and (max-width: 330px) { .vac-head .vac-batt { display: inline-flex; } } /* 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 */ .sp { display: flex; flex-direction: column; gap: 8px; height: 100%; justify-content: center; min-height: 0; } .sp-league { font-size: 12px; font-weight: 600; color: var(--d-text-2); text-align: center; text-transform: uppercase; letter-spacing: .04em; } .sp-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; } .sp-team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; } .sp-team img { width: clamp(36px, 16cqmin, 64px); aspect-ratio: 1; object-fit: contain; } .sp-badge { width: clamp(36px, 16cqmin, 64px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--d-fill); font-weight: 700; font-size: 13px; } .sp-team > span:last-child { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sp-team.win > span:last-child { color: var(--ok); } .sp-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; } .sp-score { font-size: clamp(26px, 11cqmin, 40px); font-weight: 700; letter-spacing: -0.02em; } .sp-score i { font-style: normal; color: var(--d-text-2); margin: 0 6px; } .sp-time { font-size: clamp(22px, 9cqmin, 32px); font-weight: 700; } .sp-sub { font-size: 12px; color: var(--d-text-2); 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: 4px; vertical-align: 1px; animation: tz-pulse 1.4s infinite; } .sp-extra { font-size: 12px; color: var(--d-text-2); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Formula One */ .f1 { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; } .f1-next { padding: 12px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, #e10600 22%, var(--d-fill)), var(--d-fill)); } .f1-top { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--d-text-2); } .f1-top .i { color: #e10600; font-size: 15px; } .f1-top b { margin-left: auto; color: var(--d-text); font-weight: 600; } .f1-race { font-size: 18px; font-weight: 700; margin-top: 4px; letter-spacing: -0.01em; } .f1-place { font-size: 12px; color: var(--d-text-2); } .f1-sessions { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 12px; } .f1-sessions > div { display: flex; justify-content: space-between; gap: 8px; } .f1-sessions .past { opacity: .5; } .f1-sessions .next { font-weight: 700; color: var(--d-text); } .f1-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--d-fill); } .f1-tabs button { flex: 1; padding: 5px 4px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--d-text-2); } .f1-tabs button[aria-selected="true"] { background: var(--d-tile); color: var(--d-text); box-shadow: 0 1px 3px rgba(0,0,0,.12); } .f1-list { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; } .f1-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--d-separator); } .f1-row:last-child { border-bottom: 0; } .f1-pos { font-weight: 700; color: var(--d-text-2); text-align: center; } .f1-row:first-child .f1-pos { color: #e10600; } .f1-name { display: flex; flex-direction: column; min-width: 0; } .f1-name b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .f1-name span { font-size: 11px; color: var(--d-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .f1-val { font-size: 13px; font-weight: 600; } @container (max-height: 380px) { .f1-sessions { display: none; } } /* 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; } 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; }