/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 * Copyright © 2026 Marcel Rymenhout and IniqDash contributors */
/* ==========================================================================
   SIMPLICITY — a DESIGN COLLECTION of the standard widgets .

   One visual family for every standard widget: calm cards with soft depth, a clear heading hierarchy, pill toggles with a white knob,
   round-thumb sliders, generous inner rows — PAINT AND TYPE ONLY. The widgets, their DOM, their data, controls, sizes and behaviour
   are the standard ones (components/editor/registry.js creates them; MaisonFit still decides their own-size layouts).

   OPT-IN, two scopes:
     [data-design="simplicity"]       a widget whose config says design: "simplicity" (registry.js bound(): the widget ROOT)
     [data-dash-design="simplicity"]  a dashboard whose app.design is "simplicity" (editor.js: the dashboard surface and its popup /
                                      notification layers) — page headings, navigation and layout containers
   Nothing here applies anywhere else: a dashboard / widget without it looks exactly as before.

   COLOURS come from the dashboard THEME only (tokens.css names: --device-surface-*, --text-*, --accent, --card-border …), so the same
   widgets are dark under a dark theme and light under a light one; the accent follows the theme. The theme's tone
   (data-theme-tone="light" | "dark", components/theme/theme.js) only tunes the depth (shadow colour and strength).

   STRUCTURE OF THIS FILE: 1 the foundation (Simplicity's own variables + the shared widget tokens re-derived) · 2 shared controls
   (switches, sliders, segmented controls, buttons, information rows) · 3 dashboard scope (headings, navigation, containers, sidebar)
   · 4 per-widget refinements, by the widget's own root class (the inventory lists them), batch A → D.
   ========================================================================== */

/* ================================================================== 1 · FOUNDATION */
[data-design="simplicity"] {
  /* geometry */
  --sp-r: 20px;                     /* the card */
  --sp-r-inner: 14px;               /* rows, tiles and wells inside a card */
  --sp-r-ctrl: 12px;                /* buttons, chips */
  /* colour, derived from the theme */
  --sp-mid: var(--device-surface-mid, var(--surface-primary));
  --sp-hi: color-mix(in srgb, var(--text-primary) 7%, transparent);                     /* the light top edge */
  --sp-line: color-mix(in srgb, var(--text-primary) 8%, transparent);                   /* separators, outlines */
  --sp-inset: color-mix(in srgb, var(--text-primary) 4.5%, var(--sp-mid));              /* inner rows and tiles */
  --sp-inset-hover: color-mix(in srgb, var(--text-primary) 8%, var(--sp-mid));
  --sp-track: color-mix(in srgb, var(--text-primary) 13%, var(--sp-mid));               /* switch / slider track (off) */
  --sp-icon: color-mix(in srgb, var(--text-primary) 82%, transparent);                   /* outline icons */
  --sp-card:
    radial-gradient(120% 85% at 0% 0%, color-mix(in srgb, var(--text-primary) 3.5%, transparent), transparent 62%),
    linear-gradient(180deg, var(--device-surface-top, var(--surface-primary-top, var(--surface-primary))) 0%, var(--device-surface-bottom, var(--surface-primary)) 100%);
  --sp-depth: 0 22px 38px -28px rgba(2, 6, 16, .85), 0 2px 8px -4px rgba(2, 6, 16, .35);
  --sp-glow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 75%, transparent);        /* an active accent control */

  /* the SHARED widget tokens (tokens.css) the standard widgets already paint with — re-derived for Simplicity */
  --radius-widget: var(--sp-r);
  --radius-device: var(--sp-r);
  --radius-lg: var(--sp-r-inner);
  --radius-md: var(--sp-r-ctrl);
  --device-surface: var(--sp-card);
  --device-shadow: inset 0 1px 0 var(--sp-hi), inset 0 0 0 1px var(--card-border), var(--sp-depth);
  --shadow-primary: var(--device-shadow);
  --control-well: var(--sp-track);
  --control-well-shadow: inset 0 0 0 1px var(--sp-line);
  --control-raised: linear-gradient(180deg, color-mix(in srgb, var(--text-primary) 16%, var(--sp-mid)), color-mix(in srgb, var(--text-primary) 10%, var(--sp-mid)));
  --slider-track: var(--sp-track);
  /* type: medium headings and values (the hierarchy is size and colour, not heavy weight) */
  --iq-fw-title: 600;
  --iq-fw-display: 600;
  --iq-fw-control: 600;
  --iq-fw-status: 500;
  --iq-fw-caption: 500;
  --iq-fw-subtitle: 400;
}
/* a light theme: lighter, cooler depth; a bright top edge */
:where([data-theme-tone="light"]) [data-design="simplicity"] {
  --sp-hi: rgba(255, 255, 255, .9);
  --sp-depth: 0 18px 34px -24px rgba(22, 38, 70, .32), 0 1px 3px rgba(22, 38, 70, .08);
  --sp-inset: color-mix(in srgb, var(--text-primary) 3.5%, var(--sp-mid));
  --sp-inset-hover: color-mix(in srgb, var(--text-primary) 6%, var(--sp-mid));
  --sp-track: color-mix(in srgb, var(--text-primary) 12%, var(--sp-mid));
  --sp-icon: color-mix(in srgb, var(--text-primary) 75%, transparent);
}

/* the CARD: every Simplicity widget root has the Simplicity corners and depth. A widget whose own surface is a picture (room tile,
   camera, image, event spotlight), a text label and a floating menu keep theirs; an owner's own Appearance (iq-wsurf) always wins. */
[data-design="simplicity"][data-design]:not(.iq-rt, .cam, .im, .iq-spot, .tx, .rm, .bw) { border-radius: var(--sp-r); }

/* ================================================================== 2 · SHARED CONTROLS (components/controls, components/slider) */
/* SWITCH: a pill track — the theme accent when on, a quiet track when off — with a white knob. An owner's own colours (data-c-*) win. */
[data-design="simplicity"] .iqc-btn[data-style="switch"]:not([data-c-track]):not([data-on="true"]):not([data-look="fixed"]) {
  background: var(--sp-track); box-shadow: inset 0 0 0 1px var(--sp-line);
}
[data-design="simplicity"] .iqc-btn[data-style="switch"]:not([data-c-trackon]):is([data-on="true"], [data-look="fixed"]) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--iqc-c, var(--accent)) 82%, #fff), var(--iqc-c, var(--accent)));
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--iqc-c, var(--accent)) 80%, transparent);
}
[data-design="simplicity"] .iqc-btn[data-style="switch"]:not([data-c-knob]):not([data-c-knobon]) .iqc-btn__k {
  background: #ffffff; color: color-mix(in srgb, var(--iqc-c, var(--accent)) 90%, #000); box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(0, 0, 0, .06);
}
[data-design="simplicity"] .iqc-btn[data-style="switch"][data-on="false"]:not([data-c-knob]) .iqc-btn__k { color: #8b93a3; }

/* SLIDER (the shared IniqSlider): a calm track, the accent fill, a round white handle */
[data-design="simplicity"] { --iqsl-thumb-c: #ffffff; --iqsl-glow: 0 1px 4px rgba(0, 0, 0, .35), 0 0 0 .5px rgba(0, 0, 0, .08); }

/* ROUND CONTROL BUTTONS (off): a soft raised disc; on: the accent */
[data-design="simplicity"] .iqc-btn:not([data-style="switch"]):not([data-style="bare"]):not([data-c-bg]):not([data-on="true"]) {
  background: var(--sp-inset); box-shadow: inset 0 0 0 1px var(--sp-line);
}

/* SEGMENTED controls (modes, options): the selected option is the accent tint with the accent icon */
[data-design="simplicity"] .iqc-seg { background: var(--sp-inset); box-shadow: inset 0 0 0 1px var(--sp-line); }

/* ================================================================== 3 · DASHBOARD SCOPE (app.design) */
/* the page heading: a large, confident title with a quiet subtitle */
[data-dash-design="simplicity"] .ed-dash-title { font-size: clamp(26px, 2.4vw + 6px, 40px); font-weight: 700; letter-spacing: -.015em; color: var(--text-heading, var(--text-primary)); }
[data-dash-design="simplicity"] .ed-dash-sub { font-size: clamp(13px, .5vw + 9px, 17px); color: var(--text-secondary); margin-top: 4px; }
/* the page frame (theme look "panel"): the page and its navigation share Simplicity's large radius */
[data-dash-design="simplicity"] { --page-radius: 28px; }
/* THE APP SHELL (a framed app): a deep backdrop, ONE rounded app frame holding the sidebar panel and the page — the page
   sits on the frame itself (no second panel), the sidebar is its own slightly lighter panel with a hairline edge */
.ed-frame[data-dash-design="simplicity"] { box-sizing: border-box; padding: 22px;
  background: radial-gradient(110% 80% at 50% -10%, color-mix(in srgb, var(--page-bg-lighter, #162033) 70%, transparent), transparent 60%), var(--page-bg-darker, var(--page-bg)); }
.ed-frame[data-dash-design="simplicity"] > .msh { height: 100%; border-radius: 28px; overflow: hidden;
  background: linear-gradient(165deg, var(--page-bg-lighter, var(--page-bg)) 0%, var(--page-bg) 55%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border-primary, rgba(98, 114, 150, .32)) 90%, transparent), 0 28px 70px rgba(2, 6, 15, .45); }
.ed-frame[data-dash-design="simplicity"] .isb__surface { border-radius: 28px 0 0 28px; }
.ed-frame[data-dash-design="simplicity"] .isb__surface > .iq-look__paint { background: linear-gradient(180deg, color-mix(in srgb, var(--nav-bg, var(--surface-primary)) 100%, #ffffff 2%), var(--nav-bg, var(--surface-primary)));
  box-shadow: inset -1px 0 0 color-mix(in srgb, var(--border-primary, rgba(98, 114, 150, .32)) 80%, transparent); }
.ed-frame[data-dash-design="simplicity"] .ed-canvas { background: none; box-shadow: none; border-radius: 0; padding: 30px 8px 8px 8px; }
.ed-frame[data-dash-design="simplicity"] .ed-dash-head { margin: 0 24px 0 24px; }
.ed-frame[data-dash-design="simplicity"] .ed-dash-title { font-size: 40px; line-height: 1.1; }
.ed-frame[data-dash-design="simplicity"] .ed-dash-sub { font-size: 20px; margin-top: 8px; color: var(--text-secondary); }

/* ================================================================== 4 · PER WIDGET */
/* ---- every widget: the TITLE — medium weight, the primary colour, a touch tighter (sizes stay the widget's own: MaisonFit). Titles drawn ON
   A PHOTO (room tile, camera) keep their own light colour, whatever the theme. */
[data-design="simplicity"] :is(.lw__name, .xw__name, .iq-dev__name, .cw__name, .fw__name, .sw__name, .gg__name, .ns__name, .vw__name, .aw__name, .bw__text,
  .iq-sun__name, .iq-timer__name, .iq-cd__name, .ch__name, .iq-energy__name, .iq-sol__name, .iq-veh__name, .iq-bat__title, .mw__title, .lk__name, .al__name,
  .apw__name, .iq-robot__name, .iq-hum__name, .iq-cg__name, .pr__name, .iq-pres__name, .iq-todo__name, .iq-upd__name, .iq-act__name, .iq-alog__title, .ibx-l__h,
  .iq-hb__name, .iq-elist__name, .ca__cal-name, .wx__cond) {
  font-weight: 500; letter-spacing: -.005em; color: var(--text-primary);
}
/* ---- every widget: secondary lines in the theme's secondary colour, regular weight */
[data-design="simplicity"] :is(.xw__sub, .fw__sub, .ns__sub, .vw__sub, .apw__sub, .iq-robot__sub, .iq-elist__sub, .iq-pres__count, .iq-cg__avg, .iq-todo__count, .wx__loc) {
  color: var(--text-secondary); font-weight: 400;
}
/* ---- ICON WELLS: a calm rounded square in the card's inset colour (the icon keeps its meaning colour) */
.sw[data-design="simplicity"][data-avail] .sw__icon,
[data-design="simplicity"] :is(.xw__icon, .iq-bat__ic, .iq-act__ic, .iq-alog__ic, .iq-hum__ic, .iq-sol__ic, .iq-elist__ic) {
  border-radius: 12px; background: var(--sp-inset); box-shadow: inset 0 0 0 1px var(--sp-line);
}

/* ------------------------------------------------------------------ BATCH A — dashboard essentials */
/* SENSOR: no tone hairline on top — the value and its icon carry the meaning */
.sw[data-design="simplicity"]::before { display: none; }
.sw[data-design="simplicity"] .sw__value { letter-spacing: -.02em; }
/* DEVICE TILE · ROOM-LESS cards that were flat: the Simplicity card */
.iq-dev[data-design="simplicity"]:not(.iq-wsurf--layered) { background: var(--sp-card); box-shadow: var(--device-shadow); }
/* ENTITY LIST: every row an inset rounded row with air between them (room rows) */
.iq-elist[data-design="simplicity"] .iq-elist__list { gap: 8px; }
.iq-elist[data-design="simplicity"] .iq-elist__row { border: 0; border-radius: var(--sp-r-inner); background: var(--sp-inset); box-shadow: inset 0 0 0 1px var(--sp-line); padding-inline: 12px; }
.iq-elist[data-design="simplicity"] .iq-elist__row + .iq-elist__row { border-top: 0; }
/* CLIMATE / DIALS: the state arc thick and calm, the track quiet; no tick ring */
[data-design="simplicity"] .iqdl[data-design="arc"] :is(.iqdl__track, .iqdl__act) { stroke-width: 13; }
[data-design="simplicity"] .iqdl[data-design="arc"] .iqdl__track { stroke: var(--sp-track); }
[data-design="simplicity"] .iqdl[data-design="arc"] .iqdl__act { stroke: url(#none); stroke: var(--iqdl-tone); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--iqdl-tone) 45%, transparent)); }
[data-design="simplicity"] .iqdl[data-design="minimal"] :is(.iqdl__track, .iqdl__act) { stroke-width: 6; }
[data-design="simplicity"] .iqdl[data-design="minimal"] .iqdl__track { stroke: var(--sp-track); }
[data-design="simplicity"] .iqdl[data-design="minimal"] .iqdl__act { stroke: var(--iqdl-tone); }
/* ACTION (scene): the icon in a soft accent disc, the name below — already a quick action; calmer surface */
.aw[data-design="simplicity"] .aw__icon { box-shadow: var(--sp-glow); }
/* LIGHT: the brightness bar's handle white, the colour chip calm */
.lw[data-design="simplicity"] .iq-light-more { background: var(--sp-inset); box-shadow: inset 0 0 0 1px var(--sp-line); }

/* ------------------------------------------------------------------ BATCH B — energy and information */
/* GAUGE: a thick, round-capped arc on a quiet track */
.gg[data-design="simplicity"] :is(.gg__track, .gg__fill, .gg__arc) { stroke-width: 11; stroke-linecap: round; }
.gg[data-design="simplicity"] .gg__track { stroke: var(--sp-track); }
/* CHART: bars and lines on a quiet grid */
.ch[data-design="simplicity"] :is(.ch__grid, .ch__axis) { stroke: var(--sp-line); }
/* READINGS · ACTIVITY LOG · BATTERIES: cards (they were drawn straight on the page) */
:is(.iq-rd, .iq-alog, .iq-bat)[data-design="simplicity"]:not(.iq-wsurf--layered) { background: var(--sp-card); box-shadow: var(--device-shadow); }
.iq-rd[data-design="simplicity"] { padding: 14px; }
.iq-alog[data-design="simplicity"] { padding: 16px; }
/* TEXT / LABEL: headings in the page's voice */
.tx[data-design="simplicity"][data-variant="heading"] .tx__p { font-weight: 600; letter-spacing: -.01em; }
.tx[data-design="simplicity"] .tx__s { color: var(--text-secondary); }

/* ------------------------------------------------------------------ BATCH C — devices, media and security */
/* MEDIA: the play button in the accent with soft glow; secondary buttons calm discs */
.mw[data-design="simplicity"] .iqc-btn[data-on="true"]:not([data-style="switch"]) { box-shadow: var(--sp-glow); }
/* PERSON / WHO'S HOME: avatars ringed in the presence colour — unchanged; names medium (title rule) */

/* ------------------------------------------------------------------ BATCH D — lists, navigation, layout */
/* LIVE ACTIVITY · NOTIFICATIONS: rows as inset rounded rows */
[data-design="simplicity"] :is(.iq-act__row, .iq-act__item) { border-radius: var(--sp-r-inner); }

/* ================================================================== 3b · DASHBOARD SCOPE — layout containers (no design of their own) */
[data-dash-design="simplicity"] .mc.mc--primary { border-radius: 22px; }

/* ENTITY LIST's own switch: the same pill as the shared switch */
.iq-elist[data-design="simplicity"] .iq-elist__sw { background: var(--sp-track); box-shadow: inset 0 0 0 1px var(--sp-line); }
.iq-elist[data-design="simplicity"] .iq-elist__sw i { background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.iq-elist[data-design="simplicity"] .iq-elist__sw[aria-checked="true"] { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent)); box-shadow: var(--sp-glow); }
.iq-elist[data-design="simplicity"] .iq-elist__sw[aria-checked="true"] i { background: #ffffff; }

/* CHART bars: the past in a quiet slate, the current period in the accent (single-series bar charts; a multi-series chart keeps its colours) */
.ch[data-design="simplicity"]:not(:has(.ch__data ~ .ch__data)) .ch__data--bar rect:not(.ch__bar-now) { fill: color-mix(in srgb, var(--text-primary) 26%, var(--sp-mid)); opacity: 1; }
.ch[data-design="simplicity"] .ch__data--bar rect { rx: 7px; }

/* HISTORY under a value (sensor graph, readings): a crisp accent line over a soft fading fill */
[data-design="simplicity"] .iq-hist__line { stroke-width: 2.2; opacity: .95; }
[data-design="simplicity"] .iq-hist__area { opacity: .14; }
[data-design="simplicity"] .iq-hist { -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, .35)); mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, .35)); }

/* LIGHT (slider presentation) under a LIGHT theme: the large percentage in the text colour (white on a pale fill is unreadable) */
:where([data-theme-tone="light"]) .lw[data-design="simplicity"][data-variant="slider"][data-lit="on"] .lw__big { color: var(--text-primary); text-shadow: none; }

/* ENERGY FLOW (house): the source / store nodes on the theme's card colours (the standard widget paints them dark, whatever the theme) */
.iq-energy[data-design="simplicity"][data-house="true"] .iq-energy__n:not(.iq-energy__n--home) {
  background: linear-gradient(150deg, color-mix(in srgb, var(--iq-energy-tone) 12%, var(--device-surface-top, var(--surface-primary))), var(--sp-mid) 70%);
}
/* …the house picture's chips (its power and "Home") are dark glass on the photo: their text is light in every theme */
.iq-energy[data-design="simplicity"][data-house="true"] .iq-energy__n--home :is(.iq-energy__nl, .iq-energy__nv) { color: #ffffff; }

/* RADIAL MENU (a floating button, no card — it follows the dashboard's design): the centre button in the accent with the soft glow */
[data-dash-design="simplicity"] .rm__centre { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); }

/* ================================================================== 5 · COMPOSITION — the card anatomy
   Every Simplicity card reads the same way: a HEADING row (an outline icon + a medium title, top-left), the main value large and
   light-weighted with its unit at the same scale, then the content. Inner tiles are inset rounded panels. */
[data-design="simplicity"] {
  --sp-pad: 20px;
  --sp-title: 17px;                 /* card heading */
  --sp-hi-size: 24px;               /* heading icon */
  --sp-value: clamp(24px, 9cqi, 34px);
}
/* ---- HEADING ICON (config.headIcon): an outline icon before the title, in the title's line */
[data-design="simplicity"][data-sp-head] :is(h3, [class*="__name"], [class*="__title"]):has(> .sp-hi) {
  display: flex; align-items: center; gap: 12px; font-size: var(--sp-title); font-weight: 500; color: var(--text-primary); overflow: visible; letter-spacing: -.005em;
}
[data-design="simplicity"] .sp-hi { flex: none; display: inline-grid; width: var(--sp-hi-size); height: var(--sp-hi-size); color: var(--sp-icon); }
[data-design="simplicity"] .sp-hi svg { width: 100%; height: 100%; }

/* ---- SENSOR as a STAT CARD (graph presentation): heading, the value, the history in the lower right fading in from the left */
.sw[data-design="simplicity"][data-variant="graph"] .sw__in { padding: 18px var(--sp-pad); }
.sw[data-design="simplicity"] .sw__id { gap: 12px; }
.sw[data-design="simplicity"][data-variant="graph"] .sw__icon,
.sw[data-design="simplicity"][data-variant="graph"][data-avail] .sw__icon { --sw-icon: var(--sp-hi-size); width: var(--sp-hi-size); height: var(--sp-hi-size); background: none; box-shadow: none; color: var(--sp-icon); border-radius: 0; }
.sw[data-design="simplicity"][data-variant="graph"] .sw__icon svg { width: 100%; height: 100%; }
.sw[data-design="simplicity"][data-variant="graph"] .sw__name { font-size: var(--sp-title); font-weight: 500; color: var(--text-primary); }
.sw[data-design="simplicity"][data-variant="graph"] .sw__reading { margin-top: 8px; }
.sw[data-design="simplicity"] .sw__value { font-weight: 500; text-shadow: none; }
.sw[data-design="simplicity"][data-variant="graph"] .sw__value { font-size: var(--sp-value); letter-spacing: -.01em; }
.sw[data-design="simplicity"][data-variant="graph"] .sw__unit { font-size: var(--sp-value); font-weight: 500; color: var(--text-primary); margin-left: .25em; }
.sw[data-design="simplicity"][data-variant="graph"] .iq-hist[data-pos="bottom"] { left: 34%; height: 58%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); }
.sw[data-design="simplicity"][data-variant="graph"] .iq-hist__area { opacity: .3; }
/* the CHANGE line under the value ("↓ −0.4°C vs. last hour") and the graph BESIDE the value (graphPlace side) */
.sw[data-design="simplicity"] .sw__chg { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 0; font-size: 15px; color: var(--text-secondary); white-space: nowrap; }
.sw[data-design="simplicity"] .sw__chg[hidden] { display: none; }
.sw[data-design="simplicity"] .sw__chg-a { font-size: 17px; }
.sw[data-design="simplicity"] .sw__chg :is(.sw__chg-a, .sw__chg-v) { color: var(--sp-change, var(--success)); font-weight: 500; }
.sw[data-design="simplicity"] .sw__chg[data-dir="up"] { --sp-change: var(--accent); }
.sw[data-design="simplicity"] .sw__chg[data-dir="flat"] { --sp-change: var(--text-secondary); }
.sw[data-design="simplicity"][data-variant="graph"][data-graph-place="side"] .iq-hist[data-pos="bottom"] { left: 52%; right: var(--sp-pad); top: auto; bottom: 26%; height: 40%;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.sw[data-design="simplicity"][data-variant="graph"][data-graph-place="side"] .iq-hist[data-style="bars"] { -webkit-mask-image: none; mask-image: none; bottom: 22%; height: 36%; }
.sw[data-design="simplicity"][data-variant="graph"][data-graph-place="side"] .sw__in { padding-right: 50%; }
.sw[data-design="simplicity"][data-variant="graph"][data-graph-place="side"] .sw__id { margin-right: -100%; }

/* ---- READINGS with a title: the heading, then the values — in one or two columns, separated by a hairline; with four or more
   values each one is an inset TILE (icon left, the label above the value) */
.iq-rd[data-design="simplicity"] { padding: 18px var(--sp-pad); }
/* four values or more: tiles */
.iq-rd[data-design="simplicity"]:has(.iq-rd__it:nth-child(4)) :is(.iq-rd__v, .iq-rd__u) { font-size: clamp(18px, 5cqi, 26px); }

/* ---- HOME BATTERY (ring): the heading, a large accent ring, quiet rows */
.iq-hb[data-design="simplicity"] { --iq-hb-ring: var(--accent); }

/* ---- CHART: the heading left, the value right; bars round-topped; no footer line (the axis says it) */
.ch[data-design="simplicity"] .ch__in { padding: 18px var(--sp-pad) 14px; }
.ch[data-design="simplicity"] .ch__name { font-size: var(--sp-title); font-weight: 500; color: var(--text-primary); }
.ch[data-design="simplicity"] .ch__val { font-size: clamp(20px, 4.5cqi, 26px); font-weight: 500; }
.ch[data-design="simplicity"] .ch__unit { font-size: clamp(16px, 3.4cqi, 20px); color: var(--text-primary); }
.ch[data-design="simplicity"] .ch__foot { display: none; }

/* ---- ENERGY FLOW (house): compact source cards (icon, value, label) on the inset colour, the house picture free-standing */
/* a TRANSPARENT house picture (a .png illustration): no frame, no shade — the picture stands in the card, its power and "Home" under it */
/* the battery ring keeps its size: the first three facts on a card of normal height, all of them on a tall one */
@container hb (max-height: 460px) { .iq-hb[data-design="simplicity"][data-variant="ring"] .iq-hb__rows li:nth-child(n + 4) { display: none; } }

/* ---- ROOM TILE: a room card — its icon, name and summary as the HEADING (top left, an outline icon, no colour block),
   the open chevron top right, the room's live chips (humidity, lights) as glass pills along the bottom; the photo darkens from the top */
.iq-rt[data-design="simplicity"] { padding: 22px var(--sp-pad) 18px; grid-template-rows: auto minmax(0, 1fr) auto; }
/* a very small room tile: only the quick actions that fit (the room's popup still has them all) */
@container iq-rt (max-width: 199px) { .iq-rt[data-design="simplicity"] .iq-rt__act:nth-child(n+3) { display: none; } }

/* ---- CLIMATE (dial): the heading top left, the ring large in the middle, − / + as calm discs either side, the value with the action under it */
.cw[data-design="simplicity"][data-sp-head] .cw__id { position: absolute; top: 18px; left: var(--sp-pad); right: var(--sp-pad); text-align: left; z-index: 2; }
.cw[data-design="simplicity"][data-sp-head] .cw__state { display: none; }
.cw[data-design="simplicity"] .cw__btn:is([data-k="minus"], [data-k="plus"]) .iqc-btn__k { background: var(--sp-inset) !important; color: var(--text-primary) !important; box-shadow: inset 0 0 0 1px var(--sp-line) !important; }
.cw[data-design="simplicity"] .cw__btn:is([data-k="minus"], [data-k="plus"]) { box-shadow: none !important; }
.cw[data-design="simplicity"] .iqdl__ro { display: flex; flex-direction: column; align-items: center; }
.cw[data-design="simplicity"] .iqdl__act-t { order: 2; color: var(--text-secondary); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 15px; }
.cw[data-design="simplicity"] .iqdl__target { font-weight: 600; }
.cw[data-design="simplicity"] .iqdl__dec { display: none; }
.cw[data-design="simplicity"][data-sp-head] .cw__dlayer { top: 30px; }

/* ---- ENTITY LIST: rows are a name and its switch — the type icon and the state word stay out (the switch says it) */
.iq-elist[data-design="simplicity"] { padding: 18px var(--sp-pad); }
.iq-elist[data-design="simplicity"] .iq-elist__name { font-size: var(--sp-title); font-weight: 500; }
.iq-elist[data-design="simplicity"] .iq-elist__head { margin-bottom: 6px; }
.iq-elist[data-design="simplicity"] .iq-elist__row:has(.iq-elist__sw) :is(.iq-elist__ic, .iq-elist__val) { display: none; }
.iq-elist[data-design="simplicity"] .iq-elist__row { min-height: 52px; padding-inline: 18px 14px; }
.iq-elist[data-design="simplicity"] .iq-elist__n { font-weight: 400; font-size: 15px; }

/* ---- CHART (time axis only): day names under quiet bars */
.ch[data-design="simplicity"] .ch__grid text { fill: var(--text-secondary); }

/* ---- MEDIA (artwork): the heading, then a now-playing PANEL — the cover left, the title and artist right, the controls below */

/* ---- SENSOR as a STAT TILE (standard presentation): a large rounded icon block on the left, the name above the value on the right */
.sw[data-design="simplicity"][data-variant="standard"] .sw__in { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr;
  grid-template-areas: "icon id" "icon reading" "icon status"; column-gap: 18px; row-gap: 4px; align-content: start; padding: 20px var(--sp-pad); }
.sw[data-design="simplicity"][data-variant="standard"] .sw__id { display: contents; }
.sw[data-design="simplicity"][data-variant="standard"] .sw__icon { grid-area: icon; align-self: start; --sw-icon: 52px; width: 52px; height: 52px; border-radius: 14px; color: var(--text-primary); }
.sw[data-design="simplicity"][data-variant="standard"][data-avail] .sw__icon { background: var(--sp-inset); color: var(--text-primary); }
.sw[data-design="simplicity"][data-variant="standard"] .sw__icon svg { width: 26px; height: 26px; }
.sw[data-design="simplicity"][data-variant="standard"] .sw__name { grid-area: id; font-size: 15px; font-weight: 400; color: var(--text-primary); align-self: end; }
.sw[data-design="simplicity"][data-variant="standard"] .sw__reading { grid-area: reading; align-self: start; }
.sw[data-design="simplicity"][data-variant="standard"] .sw__value { font-size: clamp(24px, 8cqi, 32px); }
.sw[data-design="simplicity"][data-variant="standard"] .sw__unit { font-size: clamp(18px, 6cqi, 26px); color: var(--text-primary); font-weight: 500; }
.sw[data-design="simplicity"][data-variant="standard"] :is(.sw__level) { display: none; }

/* ---- ALARM (status): a ROW — the shield in an icon block on the left, the name small above the state with its dot */
.al[data-design="simplicity"][data-variant="status"] .al__in { justify-content: center; padding: 20px var(--sp-pad); }
.al[data-design="simplicity"][data-variant="status"] .al__head { flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; gap: 18px; }
.al[data-design="simplicity"][data-variant="status"] .al__shield { width: 52px; height: 52px; border-radius: 14px; background: var(--sp-inset); box-shadow: inset 0 0 0 1px var(--sp-line); flex: none; }
.al[data-design="simplicity"][data-variant="status"] .al__shield svg { width: 26px; height: 26px; }
.al[data-design="simplicity"][data-variant="status"] .al__name { font-size: 15px; font-weight: 400; color: var(--text-primary); }
.al[data-design="simplicity"][data-variant="status"] .al__state { font-size: clamp(18px, 7cqi, 24px); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.al[data-design="simplicity"][data-variant="status"] .al__state::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; flex: none; }
.al[data-design="simplicity"][data-variant="status"] { background: var(--sp-card); }

/* ---- the SIDEBAR's widgets (Simplicity dashboard): a frameless clock, a weather row, the brand's small caps line */
[data-dash-design="simplicity"] .isb .tx[data-variant="heading"] .tx__s { text-transform: uppercase; letter-spacing: .28em; font-size: 11.5px; margin-top: 6px; }
[data-dash-design="simplicity"] .isb .iq-clock[data-design="simplicity"] { box-shadow: none; }
[data-dash-design="simplicity"] .isb .iq-clock[data-design="simplicity"] .iq-clock__label { display: none; }
[data-dash-design="simplicity"] .isb .iq-clock[data-design="simplicity"] .iq-clock__line { text-transform: uppercase; letter-spacing: .02em; color: var(--text-secondary); }
.wx[data-design="simplicity"][data-variant="compact"] .wx__in { grid-template-columns: 1fr; grid-template-areas: "now"; padding: 16px 20px; }
.wx[data-design="simplicity"][data-variant="compact"] .wx__fc { display: none !important; }
.wx[data-design="simplicity"][data-variant="compact"] .wx__now { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "g t" "g c"; column-gap: 18px; align-content: center; align-items: center; height: 100%; }
.wx[data-design="simplicity"][data-variant="compact"] .wx__glyph { grid-area: g; width: 64px; height: 64px; position: static; }
.wx[data-design="simplicity"][data-variant="compact"] .wx__glyph svg { width: 100%; height: 100%; }
.wx[data-design="simplicity"][data-variant="compact"] .wx__temp { grid-area: t; position: static; font-size: 34px; font-weight: 500; margin: 0; align-self: end; line-height: 1.05; }
.wx[data-design="simplicity"][data-variant="compact"] .wx__cond { grid-area: c; position: static; font-size: 15px; color: var(--text-secondary); margin: 0; align-self: start; font-weight: 400; }
.wx[data-design="simplicity"][data-variant="compact"] .wx__loc { display: none; }
.wx[data-design="simplicity"][data-variant="compact"] .wx__temp { justify-self: start; }
.wx[data-design="simplicity"][data-variant="compact"] .wx__glyph { align-self: center; }
.wx[data-design="simplicity"][data-variant="compact"] .wx__cond { justify-self: start; }
.cw[data-design="simplicity"] .cw__btn:is([data-k="minus"], [data-k="plus"]) { background: var(--sp-inset) !important; color: var(--text-primary) !important; box-shadow: inset 0 0 0 1px var(--sp-line) !important; }
/* stat tiles and the status row: their content centred in the card's height */
.sw[data-design="simplicity"][data-variant="standard"] .sw__in { align-content: center; grid-template-rows: auto auto; grid-template-areas: "icon id" "icon reading"; }
.sw[data-design="simplicity"][data-variant="standard"] .sw__icon { align-self: center; }
.sw[data-design="simplicity"][data-variant="standard"] .sw__status { display: none; }
.wx[data-design="simplicity"][data-variant="compact"] .wx__now { grid-template-rows: auto auto; }
/* glows drawn round rings must not be cut at the drawing's square edge */
[data-design="simplicity"] :is(.iq-hb__ring svg, .iqdl svg) { overflow: visible; }

/* ================================================================== 6 · TYPE SCALE AND CHART TONE (the Simplicity visual design system) */
[data-design="simplicity"] { --sp-title: 19px; --sp-value: clamp(26px, 10cqi, 40px); }
.sw[data-design="simplicity"] .sw__value, .sw[data-design="simplicity"][data-variant="graph"] .sw__unit { font-weight: 600; }
.sw[data-design="simplicity"][data-variant="standard"] .sw__value { font-size: clamp(26px, 9cqi, 36px); font-weight: 600; }
.iq-rd[data-design="simplicity"] :is(.iq-rd__v, .iq-rd__u) { font-weight: 600; }
.ch[data-design="simplicity"] .ch__val { font-weight: 600; }
/* the past in a cool blue-grey, the current period in the accent */
.ch[data-design="simplicity"]:not(:has(.ch__data ~ .ch__data)) .ch__data--bar rect:not(.ch__bar-now) { fill: color-mix(in srgb, var(--text-muted) 52%, var(--sp-mid)); }

/* the compositions above need room: below these sizes each widget keeps its own compact layout (no overflow, the standard sizes) */
@container mw (min-width: 240px) and (min-height: 200px) {
  .mw[data-design="simplicity"] .mw__in { padding: 18px var(--sp-pad); display: grid; grid-template-columns: 78px minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr);
    grid-template-areas: "dev dev" "art media" "ctrls ctrls"; column-gap: 16px; row-gap: 14px; align-content: start; }
  .mw[data-design="simplicity"] .mw__dev { grid-area: dev; }
  .mw[data-design="simplicity"] .mw__dev-name { font-size: var(--sp-title); font-weight: 500; color: var(--text-primary); display: flex; align-items: center; gap: 12px; }
  .mw[data-design="simplicity"] .mw__state { display: none; }
  .mw[data-design="simplicity"] .mw__art { grid-area: art; width: 78px; height: 78px; border-radius: 14px; margin: 0; align-self: center;
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 70%, #6b4c8c), #1b2440); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .7); }
  .mw[data-design="simplicity"] .mw__art .mw__icon { color: rgba(255, 255, 255, .85); }
  .mw[data-design="simplicity"] .mw__media { grid-area: media; align-self: center; text-align: left; margin: 0; }
  .mw[data-design="simplicity"] .mw__title { font-size: 16px; font-weight: 500; }
  .mw[data-design="simplicity"] .mw__artist { color: var(--text-secondary); font-size: 13.5px; }
  .mw[data-design="simplicity"] .mw__ctrls { grid-area: ctrls; justify-content: center; gap: 22px; margin-top: 4px; }
  .mw[data-design="simplicity"] .mw__vol { display: none; }
  .mw[data-design="simplicity"] .mw__skip { background: none; box-shadow: none; }
}
@container iq-rt (min-width: 200px) and (min-height: 170px) {
  .iq-rt[data-design="simplicity"] .iq-rt__shade { background: linear-gradient(180deg, rgba(8, 10, 16, .82) 0%, rgba(8, 10, 16, .35) 34%, rgba(8, 10, 16, .1) 60%, rgba(8, 10, 16, .55) 100%); }
  .iq-rt[data-design="simplicity"] .iq-rt__foot { grid-row: 1; align-self: start; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; }
  .iq-rt[data-design="simplicity"] .iq-rt__top { grid-row: 3; justify-content: flex-start; gap: 10px; }
  .iq-rt[data-design="simplicity"] .iq-rt__temp { display: none; }
  .iq-rt[data-design="simplicity"] .iq-rt__ic { width: 30px; height: 30px; background: none; box-shadow: none; color: #fff; border-radius: 0; margin-top: 1px; }
  .iq-rt[data-design="simplicity"] .iq-rt__ic svg { width: 28px; height: 28px; }
  .iq-rt[data-design="simplicity"] .iq-rt__name { font-size: clamp(18px, 4.2cqi, 26px); font-weight: 500; }
  .iq-rt[data-design="simplicity"] .iq-rt__sub { font-size: clamp(13px, 2.6cqi, 16px); margin-top: 4px; color: rgba(255, 255, 255, .78); }
  .iq-rt[data-design="simplicity"] .iq-rt__go { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
  .iq-rt[data-design="simplicity"] .iq-rt__chip { margin: 0; padding: 0 16px 0 12px; height: 48px; border-radius: 999px; background: rgba(30, 34, 46, .58); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); font-size: 15px; }
  .iq-rt[data-design="simplicity"] .iq-rt__chip > span svg { width: 22px; height: 22px; }
  .iq-rt[data-design="simplicity"] .iq-rt__chip[data-k="lights"][data-on="true"] { background: color-mix(in srgb, var(--accent) 30%, rgba(30, 34, 46, .6)); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
  .iq-rt[data-design="simplicity"] .iq-rt__chip[data-k="lights"][data-on="true"] > span { color: var(--accent); filter: none; }
}
@container iq-energy (min-width: 300px) and (min-height: 220px) {
  .iq-energy[data-design="simplicity"] .iq-energy__name { font-size: var(--sp-title); font-weight: 500; }
  .iq-energy[data-design="simplicity"] .iq-energy__in { padding: 18px var(--sp-pad); }
  .iq-energy[data-design="simplicity"][data-house="true"] .iq-energy__n--home:is([style*=".png"], [style*=".webp"]) {
    background-color: transparent; background-size: auto calc(100% - 54px); background-position: center top; box-shadow: none; border-radius: 0;
  }
  .iq-energy[data-design="simplicity"][data-house="true"] .iq-energy__n:not(.iq-energy__n--home),
  .iq-energy[data-design="simplicity"][data-house="true"] .iq-energy__n[data-flow="true"]:not(.iq-energy__n--home) {
    background: var(--sp-inset); box-shadow: inset 0 0 0 1px var(--sp-line); border-radius: var(--sp-r-inner); grid-template-areas: "i v" "i l"; column-gap: 14px; padding: 0 16px;
  }
  .iq-energy[data-design="simplicity"][data-house="true"] .iq-energy__n:not(.iq-energy__n--home) .iq-energy__nw { display: none; }
  .iq-energy[data-design="simplicity"][data-house="true"] .iq-energy__n:not(.iq-energy__n--home) .iq-energy__ni { width: 34px; height: 34px; filter: none; }
  .iq-energy[data-design="simplicity"][data-house="true"] .iq-energy__n:not(.iq-energy__n--home) .iq-energy__ni svg { width: 30px; height: 30px; }
  .iq-energy[data-design="simplicity"][data-house="true"] .iq-energy__n:not(.iq-energy__n--home) .iq-energy__nv { font-size: 20px; font-weight: 500; }
  .iq-energy[data-design="simplicity"][data-house="true"] .iq-energy__n:not(.iq-energy__n--home) .iq-energy__nl { font-size: 14px; }
  .iq-energy[data-design="simplicity"][data-house="true"] .iq-energy__n--home:is([style*=".png"], [style*=".webp"]) .iq-energy__nv {
    top: auto; right: auto; left: 50%; bottom: 22px; transform: translateX(-50%); background: none; padding: 0; font-size: 20px; font-weight: 500; color: var(--text-primary);
  }
  .iq-energy[data-design="simplicity"][data-house="true"] .iq-energy__n--home:is([style*=".png"], [style*=".webp"]) .iq-energy__nl {
    bottom: 0; background: none; box-shadow: none; padding: 0; font-size: 14px; color: var(--text-secondary); backdrop-filter: none;
  }
}
@container hb (min-width: 200px) and (min-height: 230px) {
  .iq-hb[data-design="simplicity"] .iq-hb__rp { font-weight: 600; font-size: clamp(24px, 10cqmin, 38px); }
  .iq-hb[data-design="simplicity"] .iq-hb__name { font-size: var(--sp-title); font-weight: 500; }
  .iq-hb[data-design="simplicity"] .iq-hb__rt { stroke: var(--sp-track); }
  .iq-hb[data-design="simplicity"] .iq-hb__rows li { padding: 6px 4px; font-size: 14px; }
  .iq-hb[data-design="simplicity"] .iq-hb__rows li + li { border-top-color: var(--sp-line); }
  .iq-hb[data-design="simplicity"] .iq-hb__rows span { color: var(--text-primary); }
  .iq-hb[data-design="simplicity"][data-variant="ring"] .iq-hb__ring { max-height: 200px; }
  }
@container iq-rd (min-width: 200px) and (min-height: 170px) {
  .iq-rd[data-design="simplicity"]:has(.iq-rd__it:nth-child(4)) .iq-rd__grid { gap: 12px; }
  .iq-rd[data-design="simplicity"] .iq-rd__title { font-size: var(--sp-title); font-weight: 500; }
  .iq-rd[data-design="simplicity"] .iq-rd__b[data-icon] { padding: 6px 10px; display: grid; justify-items: center; align-content: center; gap: 4px; text-align: center; }
  .iq-rd[data-design="simplicity"] .iq-rd__b[data-icon] .iq-rd__ic { position: static; margin: 0; width: 24px; height: 24px; color: var(--accent); }
  .iq-rd[data-design="simplicity"] .iq-rd__v, .iq-rd[data-design="simplicity"] .iq-rd__u { font-size: clamp(18px, 6.5cqi, 28px); font-weight: 500; color: var(--text-primary); }
  .iq-rd[data-design="simplicity"] .iq-rd__l { font-size: 14px; color: var(--text-secondary); }
  .iq-rd[data-design="simplicity"] .iq-rd__it[data-left] { border-left-color: var(--sp-line); }
  .iq-rd[data-design="simplicity"] .iq-rd__it[data-left] .iq-rd__b { margin-block: 8px; }
  .iq-rd[data-design="simplicity"]:has(.iq-rd__it:nth-child(4)) .iq-rd__it { border: 0; }
  .iq-rd[data-design="simplicity"]:has(.iq-rd__it:nth-child(4)) .iq-rd__b { border-radius: var(--sp-r-inner); background: var(--sp-inset); box-shadow: inset 0 0 0 1px var(--sp-line); margin: 0; }
  .iq-rd[data-design="simplicity"]:has(.iq-rd__it:nth-child(4)) .iq-rd__b[data-icon] { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "i l" "i v";
    justify-items: start; text-align: left; column-gap: 16px; row-gap: 2px; padding: 10px 16px; }
  .iq-rd[data-design="simplicity"]:has(.iq-rd__it:nth-child(4)) .iq-rd__ic { grid-area: i; width: 30px; height: 30px; align-self: center; }
  .iq-rd[data-design="simplicity"]:has(.iq-rd__it:nth-child(4)) .iq-rd__val { grid-area: v; }
  .iq-rd[data-design="simplicity"]:has(.iq-rd__it:nth-child(4)) .iq-rd__l { grid-area: l; color: var(--text-primary); font-size: 14px; }
}
/* a very small energy card (its list form): the heading without its icon, at the widget's own size */
@container iq-energy (max-height: 219px) {
  .iq-energy[data-design="simplicity"] .sp-hi { display: none; }
  .iq-energy[data-design="simplicity"][data-sp-head] .iq-energy__name { font-size: inherit; }
}

/* ---- ROOM TILE with QUICK ACTIONS (the Rooms page): the heading (icon, name, summary) top left and the temperature top right,
   the photo, then the round action buttons bottom left and the chevron bottom right; the humidity / lights chips give way to them */
.iq-rt[data-acts]:not([data-acts="0"]) { grid-template-rows: auto 1fr auto auto; }
@container iq-rt (min-width: 200px) and (min-height: 170px) {
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__top { display: none; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__acts { grid-row: 3; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__go { position: absolute; right: var(--sp-pad); bottom: 18px; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__temp:not(:empty) { display: flex; position: absolute; top: 22px; right: var(--sp-pad); align-items: center; gap: 6px;
    font-size: 16px; font-weight: 500; letter-spacing: 0; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__temp:not(:empty)::before { content: ""; width: 16px; height: 16px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 14.8V5a2 2 0 1 0-4 0v9.8a4 4 0 1 0 4 0z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 14.8V5a2 2 0 1 0-4 0v9.8a4 4 0 1 0 4 0z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__foot { padding-right: 70px; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__name { font-size: clamp(16px, 3.6cqi, 22px); }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__sub { font-size: 13px; margin-top: 2px; }
  .iq-rt[data-design="simplicity"] .iq-rt__act { width: 42px; height: 42px; }
}
/* room tile with actions: one-line name (ellipsis), the summary under it */
@container iq-rt (min-width: 200px) and (min-height: 170px) {
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__foot { padding-right: 62px; gap: 10px; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__name { font-size: 15.5px; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__temp:not(:empty) { font-size: 15px; }
}
/* an appliance card's heading: a little smaller than a card title (its name sits under the picture) */
.apw[data-design="simplicity"][data-sp-head] .apw__name, .apw[data-design="simplicity"] .apw__name { font-size: 16px; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ---- CLIMATE with a DEVICE picture (a stove, a radiator, a boiler from the image library — a transparent cut-out, not a room photo):
   the device stands at the lower right of the card on the card's own surface, the dial stays clear (the Heating card) */
.cw[data-design="simplicity"][data-image]:has(.cw__img[src*="/library/appliances/"], .cw__img[src*="/library/smart-home/"], .cw__img[src*="/library/small-appliances/"]) .cw__media { background: none; }
.cw[data-design="simplicity"][data-image]:has(.cw__img[src*="/library/appliances/"], .cw__img[src*="/library/smart-home/"], .cw__img[src*="/library/small-appliances/"]) .cw__img {
  inset: auto 3% 64px auto; width: 34%; height: 70%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .45)) drop-shadow(0 0 28px color-mix(in srgb, var(--accent) 22%, transparent)); }
.cw[data-design="simplicity"][data-image]:has(.cw__img[src*="/library/appliances/"], .cw__img[src*="/library/smart-home/"], .cw__img[src*="/library/small-appliances/"]) .cw__shade { display: none; }
.cw[data-design="simplicity"][data-image]:has(.cw__img[src*="/library/appliances/"], .cw__img[src*="/library/smart-home/"], .cw__img[src*="/library/small-appliances/"]) { background: var(--sp-card); }
.cw[data-design="simplicity"][data-image]:has(.cw__img[src*="/library/appliances/"], .cw__img[src*="/library/smart-home/"], .cw__img[src*="/library/small-appliances/"]) .cw__name { text-shadow: none; }
/* a light drawn on its PHOTO (Artwork): its name stays light on the picture, whatever the theme */
.lw[data-design="simplicity"][data-variant="image"] .lw__name { color: #ffffff; }
/* ROOM TILE, LIVE SUMMARY: the temperature is in the summary line ("4 devices on • 21°C") — not repeated at the top */
@container iq-rt (min-width: 200px) and (min-height: 170px) { .iq-rt[data-design="simplicity"][data-summary="live"] .iq-rt__temp { display: none !important; } }
/* ROOM TILE as the page's HERO (the Home page, a wide card): the large heading, the chevron in a glass circle top right, and the quick
   actions in a glass dock along the bottom left */
@container iq-rt (min-width: 480px) and (min-height: 240px) {
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__name { font-size: 27px; font-weight: 500; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__sub { font-size: 17px; margin-top: 6px; white-space: pre; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__ic { width: 38px; height: 38px; margin-top: 4px; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__ic svg { width: 36px; height: 36px; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__foot { gap: 22px; padding-right: 80px; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__go { top: 22px; bottom: auto; width: 40px; height: 40px; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__acts { justify-self: start; gap: 22px; padding: 10px 14px; border-radius: 26px; overflow: visible;
    background: rgba(28, 33, 46, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__act { width: 52px; height: 52px; background: rgba(72, 78, 94, .55); border-color: rgba(255, 255, 255, .1); }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__act svg { width: 24px; height: 24px; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__act[data-on="true"] { background: color-mix(in srgb, var(--accent) 28%, rgba(46, 40, 34, .7)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
}
/* ---- THE SIDEBAR (the left panel): the brand without its accent rule, a hairline under the menu, a calm clock (time + the
   date in small capitals), the weather and the home status as flat inset cards, a Settings row at the bottom */
[data-dash-design="simplicity"] .isb .tx[data-variant="heading"] .tx__in::before { display: none; }
[data-dash-design="simplicity"] .isb .tx[data-variant="heading"] .tx__p { font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
[data-dash-design="simplicity"] .isb .iq-clock[data-design="simplicity"] { background: none; border-top: 1px solid color-mix(in srgb, var(--border-primary, rgba(98, 114, 150, .32)) 80%, transparent); border-radius: 0; }
[data-dash-design="simplicity"] .isb .iq-clock[data-design="simplicity"] .iq-clock__time { font-size: 46px; font-weight: 600; letter-spacing: -.01em; }
[data-dash-design="simplicity"] .isb .iq-clock[data-design="simplicity"] .iq-clock__line { font-size: 14px; letter-spacing: .02em; }
[data-dash-design="simplicity"] .isb .wx[data-design="simplicity"] { background: var(--sp-card); background-image: none; }
[data-dash-design="simplicity"] .isb .wx[data-design="simplicity"] .wx__temp { font-size: 36px; }
[data-dash-design="simplicity"] .isb .wx[data-design="simplicity"] .wx__cond { font-size: 17px; }
[data-dash-design="simplicity"] .isb .al[data-variant="status"] .al__shield { position: relative; background: none; box-shadow: none; width: 48px; height: 48px; color: var(--text-primary); }
[data-dash-design="simplicity"] .isb .al[data-variant="status"] .al__shield svg { width: 46px; height: 46px; }
[data-dash-design="simplicity"] .isb .al[data-variant="status"] .al__shield::after { content: ""; position: absolute; right: 2px; bottom: 4px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--al-tone, var(--success)); box-shadow: 0 0 0 3px var(--sp-card, #1f283a); }
[data-dash-design="simplicity"] .isb .al[data-variant="status"] .al__state::before { display: none; }
[data-dash-design="simplicity"] .isb .al[data-variant="status"] .al__name { font-size: 14px; color: var(--text-secondary); }
[data-dash-design="simplicity"] .isb .al[data-variant="status"] .al__state { font-size: 22px; color: var(--text-primary); }
[data-dash-design="simplicity"] .isb .bw[data-design="simplicity"] { background: var(--sp-card); justify-content: flex-start; }
[data-dash-design="simplicity"] .isb .bw[data-design="simplicity"] .bw__text { font-size: 17px; font-weight: 400; }
/* entity list rows without a second line: the name sits on the row's centre line (room rows) */
@container iq-elist (min-width: 240px) and (min-height: 220px) {
  .iq-elist[data-design="simplicity"] .iq-elist__row:is(:has(.iq-elist__sw), :not(:has(.iq-elist__val:not(:empty)))) { grid-template-areas: "ic who ctl"; min-height: 56px; }
  .iq-elist[data-design="simplicity"] .iq-elist__row .iq-elist__who b { font-size: 17px; font-weight: 400; }
}
/* the sidebar's Settings row fills its cell */
[data-dash-design="simplicity"] .isb .bw[data-design="simplicity"] .bw__b { width: 100%; justify-content: flex-start; padding-inline: 22px; gap: 14px; }

/* the framed shell: the sidebar and the page fill the FRAME (not the window) */
.ed-frame[data-dash-design="simplicity"] .msh__in, .ed-frame[data-dash-design="simplicity"] .msh__main { height: 100%; min-height: 0; }
.ed-frame[data-dash-design="simplicity"] .msh__main > .isb { height: 100%; max-height: 100%; top: 0; }
/* …and the PAGE scrolls inside the frame (the frame clips at its rounded edge; the sidebar stays where it is) */
.ed-frame[data-dash-design="simplicity"] .msh__main > .ed-canvas { box-sizing: border-box; height: 100%; max-height: 100%; min-height: 0; align-self: stretch;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  /* a DISCREET scrollbar: invisible at rest, a thin pill while the pointer is over the page (it still scrolls with the wheel, touch and keys) */
  scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color .3s; }
.ed-frame[data-dash-design="simplicity"] .msh__main > .ed-canvas:hover { scrollbar-color: color-mix(in srgb, var(--text-primary, #fff) 22%, transparent) transparent; }
.ed-frame[data-dash-design="simplicity"] .msh__main > .ed-canvas::-webkit-scrollbar { width: 6px; }
.ed-frame[data-dash-design="simplicity"] .msh__main > .ed-canvas::-webkit-scrollbar-track { background: transparent; }
.ed-frame[data-dash-design="simplicity"] .msh__main > .ed-canvas::-webkit-scrollbar-thumb { border-radius: 6px; background: transparent; }
.ed-frame[data-dash-design="simplicity"] .msh__main > .ed-canvas:hover::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text-primary, #fff) 22%, transparent); }
.ed-frame[data-dash-design="simplicity"] .isb__surface { height: 100%; }
/* the sidebar clock: the date stays under the time (a compact clock, set sizes) */
[data-dash-design="simplicity"] .isb .iq-clock[data-design="simplicity"] .iq-clock__line { display: block !important; }
[data-dash-design="simplicity"] .isb .iq-clock[data-design="simplicity"] .iq-clock__in { gap: 4px; justify-content: center; }
[data-dash-design="simplicity"] .isb .bw[data-design="simplicity"] { place-items: stretch; }
[data-dash-design="simplicity"] .isb .bw[data-design="simplicity"] .bw__b { max-width: none; height: 100%; }
/* MEDIA (the Home page): the player in an inset panel under the heading — "Now playing", the title and artist, the controls */
@container mw (min-width: 260px) and (min-height: 220px) {
  .mw[data-design="simplicity"] .mw__in { position: relative; grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "dev dev" "art media" ". ." "ctrls ctrls"; }
  .mw[data-design="simplicity"] .mw__art { margin: 18px 0 0 18px; }
  .mw[data-design="simplicity"] .mw__media { margin-top: 18px; padding-right: 18px; }
  .mw[data-design="simplicity"] .mw__ctrls { margin-bottom: 22px; }
  .mw[data-design="simplicity"] .mw__in::before { content: ""; position: absolute; left: 18px; right: 18px; top: 60px; bottom: 18px; border-radius: var(--sp-r-inner, 16px);
    background: var(--sp-inset); box-shadow: inset 0 0 0 1px var(--sp-line); pointer-events: none; }
  .mw[data-design="simplicity"] :is(.mw__art, .mw__media, .mw__ctrls, .mw__prog, .mw__progress) { position: relative; z-index: 1; }
  .mw[data-design="simplicity"][data-state="playing"] .mw__media::before, .mw[data-design="simplicity"][data-state="paused"] .mw__media::before {
    content: "Now playing"; display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
}
[data-dash-design="simplicity"] .isb .bw[data-design="simplicity"] .bw__b { width: 100cqw !important; }
/* the chevron of a card that opens a page or popup (top right) */
.sp-chev { position: absolute; top: 20px; right: 20px; width: 24px; height: 24px; color: var(--text-secondary); pointer-events: none; z-index: 2; }
.sp-chev svg { width: 100%; height: 100%; }
/* STAT TILES (the Home page's bottom row): the icon block and the text start at the top left; the label, then the value large */
.sw[data-design="simplicity"][data-variant="standard"] .sw__in { height: 100%; box-sizing: border-box; align-content: start; padding: 24px var(--sp-pad); }
.sw[data-design="simplicity"][data-variant="standard"] .sw__name { align-self: start; font-size: 17px; margin-top: 2px; }
.sw[data-design="simplicity"][data-variant="standard"] .sw__value { font-size: clamp(24px, 9cqi, 34px); font-weight: 600; }
.al[data-design="simplicity"][data-variant="status"] .al__in { justify-content: flex-start; padding: 24px var(--sp-pad); }
.al[data-design="simplicity"][data-variant="status"] .al__head { align-items: flex-start; }
.al[data-design="simplicity"][data-variant="status"] .al__name { font-size: 17px; margin-bottom: 8px; }
.al[data-design="simplicity"][data-variant="status"] .al__state { color: var(--text-primary); font-size: clamp(18px, 7cqi, 26px); }
.al[data-design="simplicity"][data-variant="status"] .al__state::before { background: var(--al-tone, var(--success)); }
/* ENTITY LIST with brightness sliders (the Lights page's Rooms card): each row an inset bar — its icon in a square, the name, the
   switch, the slider and the % */
@container iq-elist (min-width: 360px) and (min-height: 220px) {
  .iq-elist[data-design="simplicity"][data-sliders="on"] .iq-elist__row.iq-elist__row--level { grid-template-columns: auto minmax(0, 1fr) auto minmax(120px, 1.5fr); grid-template-areas: "ic who ctl lvl"; min-height: 60px; }
  .iq-elist[data-design="simplicity"][data-sliders="on"] .iq-elist__row .iq-elist__ic { display: grid !important; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: color-mix(in srgb, var(--text-primary) 6%, transparent); color: var(--text-secondary); }
  .iq-elist[data-design="simplicity"][data-sliders="on"] .iq-elist__row .iq-elist__ic svg { width: 22px; height: 22px; }
  .iq-elist[data-design="simplicity"][data-sliders="on"] .iq-elist__row .iq-elist__val { display: none; }
}

/* ---- SENSOR · LEVEL with BANDS (air quality): the heading, the band word large with its tone dot, the value under it, the level bar */
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__in { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 18px var(--sp-pad); }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__icon,
.sw[data-design="simplicity"][data-variant="level"][data-band="true"][data-avail] .sw__icon { --sw-icon: var(--sp-hi-size); width: var(--sp-hi-size); height: var(--sp-hi-size); background: none; box-shadow: none; color: var(--sp-icon); border-radius: 0; }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__icon svg { width: 100%; height: 100%; }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__name { font-size: var(--sp-title); font-weight: 500; color: var(--text-primary); }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__status { order: 2; display: flex; align-items: center; gap: 14px; margin: auto 0 0 6px; font-size: clamp(24px, 9cqi, 36px); font-weight: 500; color: var(--text-primary); }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__dot { width: 14px; height: 14px; flex: none; background: var(--sw-tone-text); box-shadow: none; }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__reading { order: 3; margin: 4px 0 0 34px; }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] :is(.sw__value, .sw__unit, .sw__pre) { font-size: 19px; font-weight: 400; color: var(--text-secondary); letter-spacing: 0; }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__pre { margin-right: .3em; }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__level { order: 4; margin: auto 6px 6px; height: 14px; border-radius: 8px; background: var(--sp-inset); }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__level > i { border-radius: 8px; background: linear-gradient(90deg, color-mix(in srgb, var(--sw-tone-text) 75%, transparent), var(--sw-tone-text)); }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__secondary { order: 5; }

/* ENTITY LIST rows with your own icon, or showing one of the entity's values (a thermostat's target): both stay beside the switch;
   a row NOTE (a schedule's hours) under the name */
.iq-elist[data-design="simplicity"] .iq-elist__row[data-icon]:has(.iq-elist__sw) .iq-elist__ic { display: grid; place-items: center; width: 26px; color: var(--sp-icon, var(--accent)); }
.iq-elist[data-design="simplicity"] .iq-elist__row[data-icon] .iq-elist__ic svg { width: 26px; height: 26px; }
.iq-elist[data-design="simplicity"] .iq-elist__row[data-shows="value"]:has(.iq-elist__sw) .iq-elist__val { display: block; font-size: 19px; font-weight: 500; color: var(--text-primary); text-align: right; }
.iq-elist[data-design="simplicity"] .iq-elist__row[data-shows="value"]:has(.iq-elist__sw) { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "who val ctl"; column-gap: 22px; }
.iq-elist[data-design="simplicity"] .iq-elist__row.iq-elist__row--note { min-height: 64px; column-gap: 16px; }
.iq-elist[data-design="simplicity"] .iq-elist__row.iq-elist__row--note .iq-elist__note { font-size: 15px; margin-top: 2px; }
@container iq-elist (min-width: 240px) and (min-height: 220px) {
  .iq-elist[data-design="simplicity"] .iq-elist__row[data-shows="value"]:has(.iq-elist__sw) { grid-template-areas: "who val ctl"; min-height: 64px; }
  .iq-elist[data-design="simplicity"] .iq-elist__row[data-icon]:has(.iq-elist__sw) { grid-template-areas: "ic who ctl"; }
}

/* SENSOR (graph · level): with a design heading the heading carries the icon (the sensor's own icon well is not repeated); the parts
   stack — heading, value, the change line */
.sw[data-design="simplicity"][data-sp-head] .sw__id .sw__icon { display: none; }
.sw[data-design="simplicity"][data-variant="graph"] .sw__in { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.sw[data-design="simplicity"][data-variant="graph"] .sw__id { display: flex; align-items: center; min-width: 0; }
.sw[data-design="simplicity"][data-variant="graph"] .sw__reading { margin-top: auto; }
.sw[data-design="simplicity"][data-variant="graph"][data-has-change="true"] .sw__reading { margin-top: auto; }
.sw[data-design="simplicity"][data-variant="graph"] .sw__chg { margin-bottom: 4px; }
.sw[data-design="simplicity"][data-variant="graph"] :is(.sw__status, .sw__secondary) { display: none; }
.sw[data-design="simplicity"][data-variant="graph"][data-graph-place="side"] .sw__in { padding-right: var(--sp-pad); }
.sw[data-design="simplicity"][data-variant="graph"][data-graph-place="side"] .sw__id { margin-right: 0; }
.sw[data-design="simplicity"][data-variant="graph"][data-graph-place="side"] :is(.sw__reading, .sw__chg) { max-width: 50%; }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__status { background: none; box-shadow: none; padding: 0; justify-content: flex-start; align-self: flex-start; }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__level { max-height: none; margin: auto 0 4px; }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__reading { align-self: flex-start; }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__status { margin-top: 22px; }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__level { margin-top: auto; }

/* CLIMATE: the subtitle under the heading (aligned with the heading's text), the larger mode bar of the thermostat */
.cw[data-design="simplicity"] .cw__sub { margin: 2px 0 0; font-size: 16px; color: var(--text-secondary); line-height: 1.25; }
.cw[data-design="simplicity"][data-sp-head] .cw__sub { padding-left: calc(var(--sp-hi-size) + 12px); }
.cw[data-design="simplicity"][data-sp-head][data-sub] .cw__dlayer { top: 46px; }

.sw[data-design="simplicity"][data-variant="graph"] .sw__reading { border-inline: 0; padding-inline: 0; }
.sw[data-design="simplicity"][data-variant="graph"] .sw__id { align-self: stretch; justify-content: flex-start; text-align: left; }
.cw.cw--art[data-design="simplicity"][data-sp-head] .cw__id { position: static; }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__status { margin-top: 30px; }
.sw[data-design="simplicity"][data-variant="level"][data-band="true"] .sw__level { margin: 40px 0 auto; }

/* READINGS with two or three values (Grid import / export): each value centred in its column — its arrow above, the label below */
@container iq-rd (min-width: 200px) and (min-height: 100px) {
  .iq-rd[data-design="simplicity"]:not(:has(.iq-rd__it:nth-child(4))) .iq-rd__b[data-icon] { padding: 4px 8px; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; }
  .iq-rd[data-design="simplicity"]:not(:has(.iq-rd__it:nth-child(4))) .iq-rd__b[data-icon] .iq-rd__ic { position: static; margin: 0; width: 26px; height: 26px; color: var(--accent); order: -1; }
  .iq-rd[data-design="simplicity"]:not(:has(.iq-rd__it:nth-child(4))) :is(.iq-rd__v, .iq-rd__u) { font-size: clamp(18px, 7cqi, 26px); font-weight: 500; }
  .iq-rd[data-design="simplicity"]:not(:has(.iq-rd__it:nth-child(4))) .iq-rd__l { order: 2; font-size: 15px; color: var(--text-secondary); }
}
/* four or more values (Key metrics): larger values, coloured icons */
.iq-rd[data-design="simplicity"]:has(.iq-rd__it:nth-child(4)) :is(.iq-rd__v, .iq-rd__u) { font-size: clamp(20px, 6cqi, 28px); }
.iq-rd[data-design="simplicity"]:has(.iq-rd__it:nth-child(4)) .iq-rd__ic { width: 34px; height: 34px; }

/* ROOM TILE in a GRID of rooms (the Rooms page): the quick actions in one glass dock along the whole bottom, the chevron at its end */
@container iq-rt (min-width: 200px) and (max-width: 479px) and (min-height: 170px) {
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__acts { justify-self: stretch; justify-content: flex-start; gap: 6px; margin: 0 10px 10px; padding: 6px 56px 6px 8px; border-radius: 20px;
    background: rgba(24, 28, 40, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__act { width: 40px; height: 40px; background: transparent; border-color: transparent; }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__act[data-on="true"] { background: color-mix(in srgb, var(--accent) 30%, rgba(46, 40, 34, .7)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
  .iq-rt[data-design="simplicity"]:not([data-acts="0"]) .iq-rt__go { right: 20px; bottom: 20px; width: 30px; height: 30px; background: none; box-shadow: none; }
}
