.legacy-live .list-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0 22px}.legacy-live .list-tools[hidden]{display:none}.list-tools label{min-width:150px;flex:1}.list-view-toggle{display:flex;gap:4px;border:1px solid var(--line);border-radius:14px;padding:4px}.list-view-toggle button{padding:10px 15px;border-radius:10px;background:var(--paper);color:var(--ink);border:0}.list-view-toggle button[aria-pressed=true]{background:var(--brand);color:var(--paper)}.legacy-live .device-list-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:.8rem;padding:0 14px 8px}.legacy-live .device-menu{min-width:44px;min-height:44px;font-size:1.6rem;border:0;background:transparent;color:var(--ink);border-radius:12px}.legacy-live .device-menu:hover{background:var(--raised)}.legacy-live #devices.personal-list-view:not(.show-detail){display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.personal-list-view:not(.show-detail) .device-card{display:flex;flex-wrap:wrap;align-items:center;padding:8px 14px;gap:10px;min-width:0}.personal-list-view:not(.show-detail) .device-open{flex:1;display:flex;align-items:center;text-align:start;gap:18px;min-width:0;padding:8px}.personal-list-view:not(.show-detail) .device-row-top{margin:0;gap:8px;flex-wrap:wrap}.personal-list-view:not(.show-detail) .device-glyph{width:38px;height:38px}.personal-list-view:not(.show-detail) .device-name{margin:0;font-size:1rem;overflow-wrap:anywhere}.personal-list-view:not(.show-detail) .device-overview{font-size:.8rem}.personal-list-view:not(.show-detail) .device-list-meta{padding:0;max-width:160px}.personal-list-view:not(.show-detail) .quick-switch{width:auto;margin:0}.device-list-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--paper);color:var(--ink);font:inherit;text-align:start}.device-list-dialog::backdrop{background:#0008}.list-dialog-heading{display:flex;align-items:center;gap:12px;justify-content:space-between}.list-dialog-heading h2{font-size:1.2rem;margin:0 0 18px;overflow-wrap:anywhere}.list-dialog-heading button{min-width:44px;min-height:44px;background:transparent;color:var(--ink);border:0;font-size:1.8rem}.device-list-dialog form{display:grid;gap:14px;margin:14px 0}.device-list-dialog label{display:grid;gap:8px}.device-list-dialog input,.device-list-dialog select{box-sizing:border-box;width:100%;min-width:0;background:var(--raised);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px;font:inherit}.device-list-dialog .list-check{display:flex;align-items:start}.device-list-dialog input[type=checkbox]{width:22px;height:22px;flex-shrink:0}.room-edit-list form{border-top:1px solid var(--line);padding-top:18px}.list-danger{background:var(--paper);color:var(--danger,#c43b40);border:1px solid currentColor;border-radius:12px;padding:12px 16px;font:inherit;min-height:44px}.device-list-dialog button:disabled{opacity:.45}.list-order{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:24px 0}.list-reset-warning{line-height:1.9}.device-list-dialog .controls{flex-wrap:wrap}.device-list-dialog .notice{white-space:normal;overflow-wrap:anywhere}.device-is-open .list-tools{display:none}@media(max-width:480px){.personal-list-view:not(.show-detail) .device-list-meta{max-width:110px}.personal-list-view:not(.show-detail) .device-kind{display:none}.personal-list-view:not(.show-detail) .device-open{gap:10px}.personal-list-view:not(.show-detail) .device-row-top{flex-direction:column}.device-list-dialog{padding:16px}.list-tools .list-view-toggle{flex-shrink:0}}

.legacy-live #devices.personal-list-view:not(.show-detail) .device-row{min-height:0}.device-list-dialog button,.device-list-dialog input{max-width:100%}

/* Stable home geometry in both themes and both display modes. */
.legacy-live #notice.notice{box-sizing:border-box;block-size:76px;min-block-size:76px;margin:10px 0;padding:10px 12px;line-height:1.75;font-size:.85rem;overflow:auto;overflow-wrap:anywhere;scrollbar-gutter:stable;border-radius:12px}
.legacy-live #notice.notice:empty{background:transparent}
/* Product silhouettes share a fixed right-hand baseline; menus are independent. */
.legacy-live #devices:not(.show-detail)>.device-card{position:relative;display:grid;grid-template-rows:minmax(0,1fr) 32px 44px;block-size:308px;align-content:stretch;gap:0;padding:0;overflow:hidden}
.legacy-live #devices:not(.show-detail) .device-open{box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-width:0;width:100%;height:100%;min-height:0;padding:14px;gap:8px;margin:0;text-align:start;overflow:hidden}
.legacy-live #devices:not(.show-detail) .device-row-top{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;min-width:0;flex:none;gap:4px;margin:0}
.legacy-live #devices:not(.show-detail) .device-glyph{display:grid;place-items:center;flex:none;width:52px;height:52px;min-width:52px;padding:0;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--brand)}
.legacy-live #devices:not(.show-detail) .device-glyph.cooler{background:transparent;color:var(--teal)}
.legacy-live #devices:not(.show-detail) .device-glyph svg{width:52px;height:52px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.legacy-live #devices:not(.show-detail) .status{font-size:.7rem;line-height:1.6;padding:2px 7px;margin:0;white-space:nowrap}
.legacy-live #devices:not(.show-detail) .device-card-copy{display:block;min-width:0;flex:none}
.legacy-live #devices:not(.show-detail) .device-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.6;height:3.2em;margin:0 0 3px;font-size:.95rem;overflow-wrap:anywhere}
.legacy-live #devices:not(.show-detail) .device-overview{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.8rem;line-height:1.8;height:1.8em;min-height:0}
.legacy-live #devices:not(.show-detail) .device-kind{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:.72rem;line-height:1.6;height:3.2em;margin-top:2px;overflow-wrap:anywhere}
.legacy-live #devices:not(.show-detail) .device-list-meta{box-sizing:border-box;display:flex;align-items:center;height:32px;min-width:0;max-width:none;padding:0 14px;gap:0}
.legacy-live #devices:not(.show-detail) .device-list-meta>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.legacy-live #devices:not(.show-detail) .device-menu{position:absolute;left:5px;right:auto;top:6px;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;display:grid;place-items:center;z-index:1;font-size:1.5rem;background:transparent;color:var(--muted)}
.legacy-live #devices:not(.show-detail) .device-menu:hover{background:var(--raised)}
.legacy-live #devices:not(.show-detail) .quick-switch{box-sizing:border-box;width:calc(100% - 24px);height:38px;min-height:38px;margin:0 12px 6px;padding:4px 8px;font-size:.8rem;white-space:nowrap;overflow:hidden}
.legacy-live #devices:not(.show-detail) .quick-switch-space{height:44px}
.legacy-live #devices.personal-list-view:not(.show-detail)>.device-card{grid-template-columns:minmax(0,1fr) 108px;grid-template-rows:110px 44px;block-size:156px;gap:0}
.legacy-live #devices.personal-list-view:not(.show-detail) .device-open{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:60px minmax(0,1fr);align-items:start;gap:12px;padding:12px 14px 4px 50px;text-align:start}
.legacy-live #devices.personal-list-view:not(.show-detail) .device-row-top{align-items:flex-start;justify-content:flex-start}
.legacy-live #devices.personal-list-view:not(.show-detail) .device-name{height:3.2em;font-size:.92rem;margin:0}
.legacy-live #devices.personal-list-view:not(.show-detail) .device-overview{font-size:.76rem}
.legacy-live #devices.personal-list-view:not(.show-detail) .device-kind{display:block;height:1.6em;white-space:nowrap;text-overflow:ellipsis;font-size:.72rem;margin:0}
.legacy-live #devices.personal-list-view:not(.show-detail) .device-list-meta{grid-column:1;grid-row:2;height:44px;padding-inline:14px 0}
.legacy-live #devices.personal-list-view:not(.show-detail) .quick-switch,.legacy-live #devices.personal-list-view:not(.show-detail) .quick-switch-space{grid-column:2;grid-row:2;width:96px;margin:0 0 6px 12px;align-self:center}
@media(max-width:420px){.legacy-live #devices:not(.show-detail) .device-name{font-size:.9rem}.legacy-live #devices.personal-list-view:not(.show-detail) .device-open{gap:8px;padding-right:12px}.legacy-live #devices:not(.show-detail) .device-list-meta{font-size:.72rem}}

/* Transparent, colored monoline products; fill and text belong to the SVG. */
.legacy-live #devices:not(.show-detail) .device-glyph svg[viewBox="0 0 104 104"]{stroke:none;fill:none;overflow:visible}
[data-theme="dark"] .legacy-live #devices:not(.show-detail) .device-glyph svg[viewBox="0 0 104 104"]{filter:brightness(1.45) saturate(.85)}

/* Product photographs: 52px × 1.2, shared size and baseline in both layouts. */
.legacy-live #devices:not(.show-detail)>.device-card{block-size:328px}
.legacy-live #devices:not(.show-detail) .device-glyph,.legacy-live #devices:not(.show-detail) .device-glyph svg{width:62.4px;height:62.4px;min-width:62.4px}
.legacy-live #devices.personal-list-view:not(.show-detail) .device-open{grid-template-columns:74px minmax(0,1fr)}
.legacy-live #devices:not(.show-detail) .product-photo{position:relative;display:block;width:62.4px;height:62.4px;flex:none;background:transparent}
.legacy-live #devices:not(.show-detail) .product-photo img{display:block;width:100%;height:100%;object-fit:contain;background:transparent;border:0;border-radius:0;filter:none}
.legacy-live #devices:not(.show-detail) .photo-count{position:absolute;bottom:-1px;left:-1px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 3px;border-radius:6px;background:var(--brand);color:var(--paper);font:bold 11px Arial,sans-serif}
[data-theme="dark"] .legacy-live #devices:not(.show-detail) .product-photo img{filter:drop-shadow(0 0 .6px #ffffff70)}

/* Compact uniform cards: no type caption, placeholder action or spare action row. */
.legacy-live #devices:not(.show-detail)>.device-card{block-size:184px;grid-template-rows:auto auto;align-content:start;padding:0 0 8px}
.legacy-live #devices:not(.show-detail) .device-open{height:auto;padding:12px 14px 0;gap:6px}
.legacy-live #devices:not(.show-detail) .device-row-top{flex-direction:row;align-items:center;gap:8px;padding-left:28px}
.legacy-live #devices:not(.show-detail) .device-card-copy{width:100%}
.legacy-live #devices:not(.show-detail) .device-kind:empty,.legacy-live #devices:not(.show-detail) .device-overview:empty{display:none}
.legacy-live #devices:not(.show-detail) .device-name{margin:0;font-size:.92rem;line-height:1.4;height:2.8em}
.legacy-live #devices:not(.show-detail) .device-kind:not(:empty){height:auto;-webkit-line-clamp:1}
.legacy-live #devices:not(.show-detail) .device-list-meta{height:30px;padding-inline:14px;align-self:start}
.legacy-live #devices.personal-list-view:not(.show-detail)>.device-card{block-size:126px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 26px}
.legacy-live #devices.personal-list-view:not(.show-detail) .device-open{grid-template-columns:74px minmax(0,1fr);grid-row:1;padding:4px 14px 0 46px;align-items:center;gap:10px}
.legacy-live #devices.personal-list-view:not(.show-detail) .device-row-top{padding:0;position:static;flex-direction:column;align-items:center;gap:6px;flex-wrap:nowrap}
.legacy-live #devices.personal-list-view:not(.show-detail) .device-row-top .status{position:static;flex:none;max-width:100%;box-sizing:border-box;font-size:.62rem;line-height:1.6;padding:1px 6px}
.legacy-live #devices.personal-list-view:not(.show-detail) .device-list-meta{grid-column:1;grid-row:2;max-width:none;height:26px;padding-inline-start:94px}
@media(max-width:360px){.legacy-live #devices:not(.show-detail) .device-row-top{gap:4px;padding-left:16px}.legacy-live #devices:not(.show-detail) .status{font-size:.62rem;padding:2px 4px}}
