/* HM_ONE_UI_FIX2_2026_09_13. Scoped to the Platform projection. */
.hm-platform-legacy-metric{display:none!important}
.hm-platform-overview-card{min-width:0}
.hm-platform-overview-card h3{font:600 12px system-ui;margin:0 0 12px}
.hm-platform-card-state{font:600 clamp(14px,1.45vw,21px) system-ui;overflow-wrap:anywhere;margin-bottom:5px;color:#dbcbef}
.hm-platform-dialog [data-tone="ok"],#hmRendererOverviewState[data-tone="ok"]{color:#65e0b1}.hm-platform-dialog [data-tone="warn"],#hmRendererOverviewState[data-tone="warn"]{color:#edb365}
.hm-platform-card-button{display:inline-block;margin-top:9px;padding:0;background:none;border:0;color:#c9a4ec;font:12px system-ui;text-decoration:underline;cursor:pointer}
.hm-platform-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-height:88dvh;padding:0;border:1px solid #55415f;border-radius:20px;background:#15101d;color:#f4edf8;box-shadow:0 24px 90px #000a;font:14px/1.5 system-ui;overflow:hidden}
.hm-platform-dialog::backdrop{background:#050208c9;backdrop-filter:blur(4px)}
.hm-platform-dialog-head{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid #ffffff17}
.hm-platform-dialog-head h2{margin:0;font:500 23px Georgia,serif}
.hm-platform-eyebrow{margin:0 0 3px;color:#d7b474;font-size:10px;letter-spacing:2px}
#hmPlatformClose{border:0;background:none;color:#ece3f6;font-size:28px;cursor:pointer;padding:0 4px}
.hm-platform-dialog-body{padding:18px 22px;max-height:calc(88dvh - 91px);overflow:auto;box-sizing:border-box}
.hm-platform-renderer-summary h3{margin:0 0 4px;font-size:15px}
.hm-platform-renderer-summary p{margin:6px 0 16px;color:#b8adc2;font-size:12px}
.hm-platform-current{font-size:20px;font-weight:500}
.hm-platform-facts{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(0,1.3fr);gap:7px 18px;margin:0 0 18px;font-size:12px}
.hm-platform-facts dt{color:#b8adc2}.hm-platform-facts dd{margin:0;overflow-wrap:anywhere}
.hm-platform-details{padding:12px 0;border-top:1px solid #ffffff17}
.hm-platform-details summary{cursor:pointer;color:#e0c9f1;font-size:13px}
.hm-platform-details .hm-platform-facts{margin-top:12px}
.hm-platform-note{font:11px/1.5 system-ui;color:#b8adc2}
.hm-platform-chips{display:flex;gap:5px;flex-wrap:wrap}
.hm-platform-chip{padding:4px 8px;border:1px solid #ffffff23;border-radius:30px;font-size:11px}
.hm-platform-selection{padding-top:14px;border-top:1px solid #ffffff17}
.hm-platform-selection label{display:block;font-size:12px;color:#cdb9dd;margin-bottom:7px}
.hm-platform-selection select{box-sizing:border-box;width:100%;padding:10px;border:1px solid #574265;border-radius:9px;background:#201629;color:#f4edf8;font:13px system-ui}
.hm-platform-button{box-sizing:border-box;border:1px solid #63427c;border-radius:25px;padding:8px 13px;background:#24182f;color:#eedff8;font:12px/1.3 system-ui;cursor:pointer}
.hm-platform-button:disabled{opacity:.5;cursor:default}
.hm-platform-button:focus-visible,.hm-platform-card-button:focus-visible,#hmPlatformClose:focus-visible{outline:2px solid #d7b474;outline-offset:3px}
.hm-platform-actions{display:flex;flex-wrap:wrap;gap:8px}
.hm-platform-hero-link{text-align:center;margin:14px auto 0;max-width:95%}
.hm-platform-hero-link .hm-platform-button{font-size:11px;background:#19101dcc;color:#cbb2dd}
.hm-platform-settings-link{padding:12px 0}
.hm-platform-fallback-button{position:fixed;right:16px;bottom:18px;z-index:100}
#hmRendererMsgR2{font-size:12px;overflow-wrap:anywhere}
@media(max-width:480px){.hm-platform-dialog-head{padding:14px 16px}.hm-platform-dialog-body{padding:15px 16px}.hm-platform-facts{grid-template-columns:1fr;gap:2px}.hm-platform-facts dd{margin-bottom:8px}.hm-platform-card-state{font-size:15px}}

/* HM_ONE_DEVICE_CONNECT_PREP_R1. Ruby Coming Soon surface. */
.hm-device-nav-preview{position:relative;border:1px solid rgba(180,63,83,.36)!important;background:linear-gradient(90deg,rgba(99,22,42,.34),rgba(41,15,29,.18))!important}
.hm-device-nav-preview:hover{background:linear-gradient(90deg,rgba(123,28,50,.44),rgba(50,18,34,.25))!important}
.hm-device-nav-preview small{margin-left:auto!important;color:#ff9caf!important;font:700 8px/1 system-ui!important;letter-spacing:.08em!important;border:1px solid rgba(255,108,135,.28);padding:4px 6px;border-radius:99px;background:rgba(116,24,44,.25)}
.hm-device-nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
.hm-device-nav-info{display:grid;place-items:center;width:18px;height:18px;margin-left:6px;border:1px solid rgba(255,174,188,.35);border-radius:50%;color:#ffd1d9;font:700 10px Georgia,serif}
.hm-device-settings-preview em{font-style:normal;color:#ff9caf;font-size:8px;letter-spacing:.08em;margin-left:7px}
.hm-device-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 20px));max-height:92dvh;padding:0;border:1px solid rgba(179,72,91,.52);border-radius:24px;background:linear-gradient(180deg,#181018,#100d14 58%,#0d0b10);color:#f7edf2;box-shadow:0 30px 100px rgba(0,0,0,.72),0 0 60px rgba(132,26,52,.15);font:14px/1.55 system-ui;overflow:hidden}
.hm-device-dialog::backdrop{background:rgba(4,2,6,.82);backdrop-filter:blur(6px)}
.hm-device-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid rgba(255,255,255,.08);background:linear-gradient(90deg,rgba(105,24,44,.28),transparent)}
.hm-device-dialog-head h2{margin:0;font:500 24px Georgia,serif}.hm-device-eyebrow{color:#d7b474;font-size:9px;letter-spacing:.18em;margin-bottom:3px}
#hmDeviceConnectClose{border:0;background:none;color:#f4e8ed;font-size:30px;cursor:pointer;padding:0 4px}.hm-device-dialog-body{box-sizing:border-box;max-height:calc(92dvh - 71px);overflow:auto;padding:18px 20px 24px}
.hm-device-hero{padding:18px;border:1px solid rgba(200,70,95,.27);border-radius:18px;background:radial-gradient(circle at 90% 0,rgba(141,30,55,.23),transparent 42%),rgba(255,255,255,.025)}
.hm-device-hero h3{font:500 clamp(21px,4.8vw,31px)/1.15 Georgia,serif;margin:10px 0 8px}.hm-device-hero p{max-width:650px;margin:0;color:#cdbdc5}
.hm-device-coming,.hm-device-card-status{display:inline-flex;align-items:center;border:1px solid rgba(255,116,142,.35);border-radius:99px;background:rgba(126,24,46,.24);color:#ff9fb2;padding:5px 8px;font:700 9px/1 system-ui;letter-spacing:.1em}.hm-device-coming[data-live="true"]{color:#79e4b6;border-color:#79e4b655;background:#1f6c4b33}
.hm-device-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:15px}.hm-device-actions button{border:1px solid rgba(180,71,92,.42);border-radius:24px;padding:9px 13px;background:#4b1726;color:#ffccd6;font-weight:650}.hm-device-actions button:disabled{opacity:.55}.hm-device-actions span{font-size:11px;color:#a99aa2}
.hm-device-three{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0}.hm-device-three article{padding:13px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(255,255,255,.025)}.hm-device-three article>span{color:#d7b474;font:700 10px system-ui}.hm-device-three h4{margin:5px 0 4px;font-size:13px}.hm-device-three p{margin:0;color:#ad9fa7;font-size:11px}
.hm-device-section{padding:17px 0;border-top:1px solid rgba(255,255,255,.07)}.hm-device-section>small,.hm-device-section-title small{color:#d7b474;font-size:9px;letter-spacing:.16em}.hm-device-section h3{margin:3px 0 12px;font:500 19px Georgia,serif}.hm-device-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.hm-device-info{width:27px;height:27px;border:1px solid rgba(255,155,174,.35);border-radius:50%;background:rgba(101,21,39,.26);color:#ffd1d9;font:700 13px Georgia,serif;cursor:pointer}
.hm-device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hm-device-card{padding:14px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:linear-gradient(180deg,rgba(82,27,43,.18),rgba(255,255,255,.018))}.hm-device-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.hm-device-card-head small{color:#a998a0;font-size:9px;text-transform:uppercase;letter-spacing:.1em}.hm-device-card h3{margin:2px 0 9px;font:500 17px Georgia,serif}.hm-device-card-status{font-size:7px;padding:4px 6px}.hm-device-card p{color:#a99da3;font-size:10px;margin:10px 0 0}.hm-device-caps{display:flex;flex-wrap:wrap;gap:5px}.hm-device-cap{padding:4px 7px;border:1px solid rgba(255,255,255,.08);border-radius:99px;background:rgba(255,255,255,.025);color:#d8cbd1;font-size:9px}
.hm-device-info-panel{margin-top:10px;padding:13px;border-left:2px solid #8e2b43;background:rgba(103,28,47,.12);border-radius:0 11px 11px 0}.hm-device-info-panel h4{margin:0 0 5px}.hm-device-info-panel p{margin:5px 0;color:#baaeb4;font-size:11px}
.hm-device-authority{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.hm-device-authority span{display:flex;flex-direction:column;gap:3px;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.02)}.hm-device-authority b{font-size:11px}.hm-device-authority small{font-size:9px;color:#a99da3}
.hm-device-premium-note{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid rgba(215,180,116,.18);border-radius:12px;background:rgba(215,180,116,.055)}.hm-device-premium-note b{color:#e0bd7d;font-size:11px;white-space:nowrap}.hm-device-premium-note span{font-size:10px;color:#b5a9af}.hm-device-footnote{margin:12px 2px 0;color:#8e8389;font-size:9px}
.hm-device-nav-preview:focus-visible,.hm-device-settings-preview:focus-visible,.hm-device-info:focus-visible,#hmDeviceConnectClose:focus-visible{outline:2px solid #d7b474;outline-offset:3px}
@media(max-width:600px){.hm-device-dialog{width:calc(100vw - 12px);max-height:94dvh;border-radius:20px}.hm-device-dialog-body{padding:14px;max-height:calc(94dvh - 66px)}.hm-device-three{grid-template-columns:1fr}.hm-device-grid{grid-template-columns:1fr}.hm-device-authority{grid-template-columns:repeat(2,1fr)}.hm-device-card-status{font-size:7px}.hm-device-dialog-head{padding:14px}.hm-device-hero{padding:15px}}

/* HM_ONE_DEVICE_CONNECT_PREMIUM_REFERENCE_R4. Scoped drawer presentation. */
.hm-drawer-nav .hm-device-premium-drawer {
  margin: 0;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
}
.hm-drawer-nav .hm-device-premium-drawer.is-expanded { padding-bottom: 0; }
.hm-drawer-nav .hm-device-premium-toggle,
.hm-drawer-nav .hm-device-premium-item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
}
.hm-drawer-nav .hm-device-premium-toggle {
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding: 0 7px 3px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hm-device-premium-left,
.hm-device-premium-right { display: flex; align-items: center; min-width: 0; }
.hm-device-premium-left { gap: 12px; }
.hm-device-premium-title {
  color: #f1ce82;
  font: 400 9.5px/1.2 system-ui, sans-serif;
  letter-spacing: .19em;
  white-space: nowrap;
}
.hm-device-premium-crown {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #f2cf87;
  filter: drop-shadow(0 0 5px rgba(239, 195, 107, .25));
}
.hm-device-premium-crown svg { display: block; width: 100%; height: 100%; fill: currentColor; stroke: none; }
.hm-device-premium-right { margin-left: auto; gap: 10px; }
.hm-drawer-nav .hm-device-premium-toggle small,
.hm-drawer-nav .hm-device-premium-item small {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 17px;
  padding: 1px 8px;
  border: 1px solid rgba(228, 186, 99, .65);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(195, 146, 55, .09), rgba(104, 74, 25, .05));
  color: #f3ce80;
  font: 500 8.5px/1.2 system-ui, sans-serif;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 222, 148, .035);
}
.hm-device-premium-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 16px;
  flex: 0 0 12px;
  color: #f2cf87;
  transition: transform .16s ease;
}
.hm-device-premium-chevron svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-device-premium-chevron.is-open { transform: rotate(180deg); }
.hm-device-premium-goldline {
  height: 1px;
  background: linear-gradient(90deg, rgba(229, 184, 91, .72), #f1d597 48%, rgba(229, 184, 91, .75));
  box-shadow: 0 0 7px rgba(225, 179, 87, .16);
}
.hm-device-premium-body { display: grid; gap: 7px; padding: 7px 0 0; }
.hm-device-premium-body[hidden] { display: none !important; }
.hm-drawer-nav .hm-device-premium-item {
  min-height: 30px;
  gap: 20px;
  padding: 4px 13px;
  border: 1px solid rgba(210, 167, 83, .38);
  border-radius: 11px;
  background: rgba(163, 119, 47, .035);
  box-shadow: none;
}
.hm-device-premium-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #c7ae7a;
  filter: none;
}
.hm-device-premium-item-icon svg { display: block; width: 20px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-device-premium-item-label {
  min-width: 0;
  color: #f3edf6;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}
.hm-drawer-nav .hm-device-premium-item small { margin-left: auto; }
.hm-drawer-nav .hm-device-premium-item[data-premium-state="coming-soon"] {
  border-color: rgba(184, 154, 96, .2);
  background: rgba(255, 255, 255, .012);
}
.hm-device-premium-item[data-premium-state="coming-soon"] .hm-device-premium-item-label { color: #b8adbf; }
.hm-device-premium-item[data-premium-state="coming-soon"] .hm-device-premium-item-icon { color: #a99470; }
.hm-drawer-nav .hm-device-premium-item[data-premium-state="coming-soon"] small {
  color: #b9a887;
  border-color: rgba(184, 154, 96, .25);
  background: transparent;
  box-shadow: none;
}
.hm-drawer-nav .hm-device-premium-item[data-premium-state="active"] {
  border-color: rgba(242, 201, 119, .85);
  background: linear-gradient(110deg, rgba(190, 141, 50, .2), rgba(143, 95, 29, .09) 70%, rgba(190, 141, 50, .13));
  box-shadow: inset 0 0 0 1px rgba(255, 224, 162, .035), 0 0 17px rgba(224, 172, 68, .14);
}
.hm-device-premium-item[data-premium-state="active"] .hm-device-premium-item-label { color: #fff2d4; }
.hm-device-premium-item[data-premium-state="active"] .hm-device-premium-item-icon { color: #ffdda0; filter: drop-shadow(0 0 5px rgba(230, 181, 82, .3)); }
.hm-drawer-nav .hm-device-premium-item[data-premium-state="active"] small,
.hm-premium-feature-badge[data-premium-state="active"] {
  color: #ffe3a3;
  border-color: rgba(242, 201, 119, .75);
  background: rgba(190, 141, 50, .12);
  font-weight: 600;
}
.hm-device-premium-item[data-premium-state="active"] small::before { content: ""; width: 4px; height: 4px; margin-right: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 5px rgba(255, 217, 137, .45); }
.hm-device-premium-toggle:hover .hm-device-premium-title,
.hm-device-premium-item:hover .hm-device-premium-item-label { color: #fff1d0; }
.hm-device-premium-toggle:focus-visible,
.hm-device-premium-item:focus-visible,
.hm-device-settings-preview:focus-visible,
.hm-device-info:focus-visible,
#hmDeviceConnectClose:focus-visible { outline: 2px solid #d7b474; outline-offset: 3px; }
@media (max-width: 380px) {
  .hm-drawer-nav .hm-device-premium-toggle { gap: 8px; padding-right: 4px; }
  .hm-device-premium-left { gap: 9px; }
  .hm-device-premium-right { gap: 8px; }
  .hm-drawer-nav .hm-device-premium-item { gap: 10px; padding: 4px 10px; }
  .hm-device-premium-item-icon { width: 18px; flex-basis: 18px; }
  .hm-device-premium-item-label { font-size: 11px; }
  .hm-drawer-nav .hm-device-premium-toggle small,
  .hm-drawer-nav .hm-device-premium-item small { font-size: 8px; padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-device-premium-chevron { transition: none; }
}

.hm-premium-feature-dialog {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 24px));
  max-height: 92dvh;
  padding: 0;
  border: 1px solid rgba(210, 167, 83, .55);
  border-radius: 24px;
  background: linear-gradient(180deg, #1a141e, #110e17 58%, #100d15);
  color: #f3edf6;
  font: 14px/1.6 system-ui, sans-serif;
  box-shadow: 0 30px 100px #000b, 0 0 60px rgba(171, 127, 51, .09);
  overflow: hidden;
}
.hm-premium-feature-dialog[open] { display: flex; flex-direction: column; }
.hm-premium-feature-dialog::backdrop { background: rgba(4, 2, 6, .82); backdrop-filter: blur(6px); }
.hm-premium-feature-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid rgba(210, 167, 83, .18); background: linear-gradient(90deg, rgba(149, 104, 37, .12), transparent); }
.hm-premium-feature-head small { display: block; color: #d7b474; font-size: 9px; letter-spacing: .16em; }
.hm-premium-feature-head h2 { margin: 2px 0 0; font: 500 24px/1.2 Georgia, serif; }
.hm-premium-feature-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; margin-left: 12px; padding: 0; border: 1px solid rgba(210, 167, 83, .25); border-radius: 12px; background: transparent; color: #f2cf87; font: 26px/1 system-ui; cursor: pointer; }
.hm-premium-feature-close:focus-visible { outline: 2px solid #d7b474; outline-offset: 3px; }
.hm-premium-feature-body { box-sizing: border-box; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 18px 20px 24px; scrollbar-width: thin; scrollbar-color: #725a3b transparent; }
.hm-premium-feature-hero { padding: 20px; border: 1px solid rgba(210, 167, 83, .25); border-radius: 18px; background: radial-gradient(ellipse at 100% 0, rgba(179, 130, 46, .14), transparent 65%), rgba(255, 255, 255, .02); }
.hm-premium-feature-badge { display: inline-flex; padding: 4px 9px; border: 1px solid rgba(210, 167, 83, .55); border-radius: 999px; background: rgba(179, 130, 46, .08); color: #f3ce80; font: 500 9px/1.2 system-ui; letter-spacing: .06em; }
.hm-premium-feature-hero > small { display: block; margin-top: 16px; color: #d7b474; font-size: 9px; letter-spacing: .14em; }
.hm-premium-feature-hero h3 { margin: 6px 0 12px; font: 500 clamp(23px, 4.8vw, 32px)/1.2 Georgia, serif; }
.hm-premium-feature-hero p { margin: 0; color: #d0c3d6; }
.hm-premium-feature-hero .hm-premium-session-status { margin-top: 16px; color: #ead29f; }
.hm-live-context-session-toggle { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 13px 15px; border: 1px solid rgba(210, 167, 83, .26); border-radius: 13px; background: rgba(179, 130, 46, .07); color: #f0dfbe; font-size: 13px; line-height: 1.45; cursor: pointer; }
.hm-live-context-session-toggle:focus-within { outline: 2px solid #d7b474; outline-offset: 2px; }
.hm-live-context-session-toggle input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: #d7b474; }
.hm-live-context-session-toggle input:disabled { cursor: not-allowed; }
.hm-premium-feature-hero .hm-premium-upgrade-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(210, 167, 83, .18); color: #b8adc2; font-size: 12px; }
.hm-premium-upgrade-note strong { display: block; margin-bottom: 4px; color: #d7c49e; font-weight: 500; }
.hm-premium-feature-action { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hm-premium-feature-action button { padding: 9px 14px; border: 1px solid rgba(210, 167, 83, .3); border-radius: 24px; background: rgba(179, 130, 46, .1); color: #bdab8c; font: 500 12px/1.3 system-ui; cursor: not-allowed; }
.hm-premium-feature-action span { color: #aa9bb2; font-size: 11px; }
.hm-premium-feature-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.hm-premium-feature-steps article { padding: 14px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.hm-premium-feature-steps article > span { color: #d7b474; font: 600 10px/1.2 system-ui; }
.hm-premium-feature-steps h4 { margin: 7px 0 5px; font-size: 13px; font-weight: 600; }
.hm-premium-feature-steps p { margin: 0; color: #b8adc2; font-size: 12px; }
.hm-premium-feature-section { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.hm-premium-feature-section > small { color: #d7b474; font-size: 9px; letter-spacing: .14em; }
.hm-premium-feature-section > h3 { margin: 4px 0 14px; font: 500 21px/1.3 Georgia, serif; }
.hm-premium-feature-section > p { color: #c5b7cd; margin: 0; }
.hm-premium-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hm-premium-feature-grid article { padding: 15px; border: 1px solid rgba(210, 167, 83, .12); border-radius: 14px; background: linear-gradient(150deg, rgba(151, 108, 42, .07), rgba(255, 255, 255, .015)); }
.hm-premium-feature-grid h4 { color: #f0d49b; font-size: 14px; font-weight: 500; margin: 0 0 7px; }
.hm-premium-feature-grid p { color: #bfb0c7; font-size: 13px; margin: 0; }
.hm-premium-feature-section > .hm-premium-feature-note { margin-top: 14px; padding: 12px 14px; border-left: 2px solid #b49355; border-radius: 0 10px 10px 0; background: rgba(184, 144, 71, .065); color: #cabda9; font-size: 12px; }
.hm-premium-feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hm-premium-feature-chips span { padding: 5px 12px; border: 1px solid rgba(210, 167, 83, .3); border-radius: 999px; color: #e7c990; font-size: 12px; }
.hm-premium-feature-faq details { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hm-premium-feature-faq summary { padding: 12px 3px; color: #e7d7ef; font-size: 13px; cursor: pointer; }
.hm-premium-feature-faq summary:focus-visible { outline: 2px solid #d7b474; outline-offset: 2px; border-radius: 4px; }
.hm-premium-feature-faq p { color: #bfb0c7; margin: 0; padding: 0 3px 14px; font-size: 13px; }
.hm-premium-feature-footnote { margin: 0; color: #a191a9; font-size: 11px; }
@media (max-width: 600px) {
  .hm-premium-feature-dialog { width: calc(100vw - 12px); max-height: 94dvh; border-radius: 20px; }
  .hm-premium-feature-head { padding: 14px; }
  .hm-premium-feature-body { padding: 14px; }
  .hm-premium-feature-hero { padding: 16px; }
  .hm-premium-feature-steps, .hm-premium-feature-grid { grid-template-columns: 1fr; }
  .hm-premium-feature-section { padding: 20px 0; }
}

/* Compact, collapsible area summary. Count follows the same confirmed state as the chips. */
.hm-drawer-areas { padding: 8px 0; }
.hm-drawer-areas .hm-areas-heading { min-height: 34px; height: auto; padding: 0; }
.hm-areas-heading .hm-areas-toggle {
  box-sizing: border-box; display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 12px; min-width: 0; min-height: 34px;
  padding: 0 7px 3px 4px; border-radius: 7px; color: #b4a4bd; font-size: 10px;
  letter-spacing: .02em; text-transform: none; cursor: pointer;
}
.hm-areas-label { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.hm-areas-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
#activeAreaCount { color: #c5a4df; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-areas-chevron { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hm-areas-toggle[aria-expanded="true"] .hm-areas-chevron { transform: rotate(180deg); }
.hm-areas-heading button:hover { color: #efdcff; background: rgba(174, 114, 225, .06); }
.hm-areas-heading button:focus-visible { outline: 1px solid #c392e8; outline-offset: 2px; }
.hm-drawer-areas .hm-area-summary[hidden] { display: none; }
.hm-drawer-areas .hm-area-summary { margin: 6px 0 4px; }
.hm-drawer-areas .hm-area-chip.is-active {
  box-shadow: 0 0 8px rgba(154, 78, 255, .10), inset 0 0 8px rgba(219, 177, 255, .04);
}

/* Shared header rhythm: category at left, confirmed activity count and arrow at right. */
.hm-drawer-nav .hm-device-premium-toggle { padding-right: 7px; }
#activePremiumCount {
  color: #bba477; font: 400 10px/1.2 system-ui, sans-serif; letter-spacing: .02em;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
#activePremiumCount[data-active="true"] { color: #f2cf87; }
.hm-device-premium-chevron { height: 12px; }
.hm-device-premium-chevron svg { width: 12px; height: 12px; stroke-width: 1.5; }

/* Current controls stay together; history expands without an inner scroll area. */
.hm-drawer { overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #55415f transparent; }
.hm-drawer > * { flex-shrink: 0; }
.hm-drawer-footer { margin-top: auto; }
.hm-drawer-current { position: relative; padding: 8px 0 12px; border-top: 1px solid rgba(255,255,255,.055); }
.hm-current-session-heading { padding: 5px 4px 7px; color: #82718e; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
.hm-drawer-current > .hm-drawer-section { padding: 0; border-top: 0; }
.hm-drawer-current .hm-areas-heading, .hm-session-history .hm-areas-heading { min-height: 34px; height: auto; padding: 0; }
.hm-drawer .hm-session-history { flex: 0 0 auto; max-height: none; overflow: visible; padding: 8px 0; }
.hm-drawer-current .hm-session-drawer-controls { grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; margin: 7px 0 0; }
.hm-drawer-current .hm-session-drawer-controls button { min-height: 32px; padding: 5px 4px; border-radius: 9px; font-size: 10px; font-weight: 400; white-space: nowrap; }
#activeProgramCount { color: #97859f; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#programSummaryToggle[data-active="true"] #activeProgramCount { color: #d3a8f1; }
.hm-drawer-program-body[hidden], #sessionHistoryBody[hidden] { display: none; }
.hm-drawer-program-body { padding: 4px 0 10px; }
#programSummaryList { display: grid; gap: 6px; }
#programSummaryList > small { padding: 6px; color: #a08eaa; font-size: 10px; }
.hm-drawer-program-row { padding: 9px 10px; border: 1px solid rgba(174,128,209,.12); border-radius: 10px; background: rgba(126,81,154,.025); }
.hm-drawer-program-row span { display: block; color: #b8a9c1; font-size: 11px; }
.hm-drawer-program-row small { display: block; margin-top: 5px; color: #92849a; font-size: 9px; line-height: 1.5; }
.hm-drawer-program-row[data-active="true"] { border-color: rgba(190,127,235,.55); background: rgba(152,78,205,.10); }
.hm-drawer-program-row[data-active="true"] span { color: #efdbff; }
#drawerProgramsManageBtn, #allSessionsBtn { display: block; min-height: 32px; margin: 4px 0 0 auto; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: #bda3cf; font: inherit; font-size: 11px; cursor: pointer; }
#drawerProgramsManageBtn:hover, #allSessionsBtn:hover { background: rgba(174,114,225,.06); color: #efdcff; }
#drawerProgramsManageBtn:disabled { opacity: .45; cursor: default; }
.hm-history-empty { display: block; padding: 7px 5px; color: #97869f; font-size: 10px; }
.hm-history-dialog { box-sizing: border-box; width: min(560px,calc(100vw - 24px)); max-height: 86dvh; padding: 0; border: 1px solid rgba(176,127,214,.3); border-radius: 20px; background: #15111c; color: #e3d4ec; box-shadow: 0 22px 80px #0008; }
.hm-history-dialog::backdrop { background: #08060dcc; backdrop-filter: blur(5px); }
.hm-history-dialog > header { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px 20px; border-bottom: 1px solid #ffffff0b; }
.hm-history-dialog header small { color: #a58db8; font-size: 9px; letter-spacing: 1px; }
.hm-history-dialog h2 { margin: 4px 0 0; font: 500 23px Georgia,serif; }
.hm-history-dialog button { cursor: pointer; }
.hm-history-dialog-close { width: 34px; height: 34px; border: 1px solid #ffffff17; border-radius: 11px; color: #c6b4d3; background: transparent; font-size: 24px; }
.hm-history-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; color: #a18dae; font-size: 11px; }
.hm-history-dialog-refresh { min-height: 32px; border: 0; border-radius: 7px; background: transparent; color: #cab0dd; font-size: 11px; }
.hm-history-dialog-list { display: grid; gap: 3px; max-height: 60dvh; overflow-y: auto; padding: 0 12px 15px; }
.hm-history-dialog .hm-history-item { min-height: 53px; gap: 5px; }
.hm-history-dialog .hm-history-item:hover { background: #ac70d414; }
.hm-history-dialog button:focus-visible, #allSessionsBtn:focus-visible, #drawerProgramsManageBtn:focus-visible { outline: 1px solid #c392e8; outline-offset: 2px; }
#sessionProgramManagerSheet .hm-program-card small { text-transform: none; letter-spacing: 0; line-height: 1.6; }

/* Product-sheet R2: user-facing device controls and a clearly provisional access model. */
.hm-device-hero p + p { margin-top: 10px; }
.hm-device-section-copy { margin: 0 0 12px; color: #bfb0b8; font-size: 12px; line-height: 1.65; }
.hm-device-status-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.hm-device-status-facts span { padding: 5px 8px; border: 1px solid rgba(188,93,114,.23); border-radius: 999px; background: rgba(117,38,56,.08); color: #d5bdc7; font-size: 10px; }
.hm-device-access-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.hm-device-access-grid article { padding: 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.02); }
.hm-device-access-label { color: #c8b4bf; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.hm-device-access-grid h4 { margin: 7px 0 8px; font-size: 14px; font-weight: 500; color: #ead9e2; }
.hm-device-access-grid p { margin: 0 0 11px; color: #bdacb5; font-size: 12px; line-height: 1.65; }
.hm-device-access-grid small { display: block; color: #a2919a; font-size: 10px; line-height: 1.5; }
.hm-device-access-grid .hm-device-access-premium { border-color: rgba(215,180,116,.26); background: linear-gradient(145deg,rgba(159,114,43,.08),rgba(87,33,48,.035)); }
.hm-device-access-premium .hm-device-access-label, .hm-device-access-premium h4 { color: #dfc48c; }
.hm-device-commercial-note { padding-left: 10px; border-left: 2px solid rgba(215,180,116,.35); margin: 13px 0 0; color: #b5a89b; font-size: 11px; line-height: 1.6; }
@media(max-width:600px) {
  .hm-device-access-grid { grid-template-columns: 1fr; }
  .hm-device-premium-note { flex-direction: column; gap: 5px; }
}

/* Explicitly fictional device-state example. No device transport or live session state. */
.hm-device-demo { margin-top: 16px; padding: 15px; border: 1px solid rgba(189,102,123,.26); border-radius: 16px; background: rgba(106,35,54,.045); }
.hm-device-demo-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.hm-device-demo-heading h4 { margin: 0; color: #e3cbd5; font-size: 14px; font-weight: 500; }
.hm-device-demo-heading > span { padding: 4px 7px; border: 1px dashed rgba(215,180,116,.4); border-radius: 6px; color: #d4bc91; font-size: 8px; letter-spacing: .09em; }
.hm-device-demo-intro { margin: 9px 0 12px; color: #aa98a2; font-size: 11px; }
.hm-device-demo-modes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.hm-device-demo-modes button { min-height: 32px; padding: 6px 9px; border: 1px solid rgba(212,150,170,.16); border-radius: 9px; background: rgba(255,255,255,.02); color: #baa5b1; font: 11px/1.3 system-ui; cursor: pointer; }
.hm-device-demo-modes button[aria-pressed="true"] { border-color: rgba(213,123,150,.6); background: rgba(138,51,77,.18); color: #f3d6e2; }
.hm-device-demo button:focus-visible { outline: 2px solid #d7b474; outline-offset: 2px; }
.hm-device-demo-card { border: 1px solid rgba(226,171,190,.14); border-radius: 12px; background: #171018; overflow: hidden; }
.hm-device-demo-summary { box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 12px; padding: 14px; border: 0; border-radius: 0; background: transparent; color: #ecdce5; text-align: left; font: inherit; cursor: pointer; }
.hm-device-demo-summary > span:first-child { min-width: 0; }
.hm-device-demo-summary strong { display: block; font-size: 14px; font-weight: 500; }
.hm-device-demo-summary small { display: block; margin-top: 3px; color: #ab96a2; font-size: 10px; }
.hm-device-demo-summary-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 11px; color: #c2a7b6; }
.hm-device-demo-summary svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hm-device-demo-summary[aria-expanded="true"] svg { transform: rotate(180deg); }
.hm-device-demo-details { padding: 0 14px 13px; }
.hm-device-demo-details[hidden] { display: none; }
.hm-device-demo-observation { padding: 12px; border: 1px solid rgba(201,158,179,.13); border-radius: 10px; background: rgba(196,155,173,.025); }
.hm-device-demo-observation > span { display: block; color: #a890a0; font-size: 8px; letter-spacing: .1em; }
.hm-device-demo-observation strong { display: block; margin: 4px 0; font-size: 18px; color: #dcc5d1; font-weight: 500; }
.hm-device-demo-observation small { display: block; color: #99858f; font-size: 10px; line-height: 1.5; }
.hm-device-demo-exchange { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 13px 0; }
.hm-device-demo-exchange dt { color: #a8909e; font-size: 10px; }
.hm-device-demo-exchange dd { margin: 3px 0; color: #d4beca; font-size: 12px; }
.hm-device-demo-exchange small { display: block; color: #927e89; font-size: 9px; }
.hm-device-demo-explanation { margin: 0; padding-top: 10px; border-top: 1px solid #ffffff0b; color: #bfa9b5; font-size: 11px; line-height: 1.6; }
.hm-device-demo-placement { margin: 10px 0 0; color: #9b8592; font-size: 10px; }
.hm-device-demo[data-scenario="requested"] #hmDeviceDemoReply, .hm-device-demo[data-scenario="answered"] #hmDeviceDemoReply { color: #d7bb86; }
.hm-device-demo[data-scenario="reported"] #hmDeviceDemoReportedState, .hm-device-demo[data-scenario="reported"] #hmDeviceDemoCompactState { color: #9dccb6; }
.hm-device-demo[data-scenario="missing"] #hmDeviceDemoReply, .hm-device-demo[data-scenario="missing"] #hmDeviceDemoCompactState { color: #d6ac89; }
.hm-device-demo[data-scenario="missing"] .hm-device-demo-observation { border-style: dashed; }
@media(max-width:600px) {
  .hm-device-demo { padding: 12px; }
  .hm-device-demo-summary { padding: 12px; gap: 8px; }
  .hm-device-demo-summary-right { gap: 6px; font-size: 10px; }
  .hm-device-demo-details { padding: 0 12px 12px; }
  .hm-device-demo-exchange { grid-template-columns: 1fr; gap: 10px; }
}
