/* HM Device Connect + Live UI preparation R11. Scoped product surfaces. */
.hm-device-submenu[hidden],.hm-live-strip[hidden]{display:none!important}
.hm-device-submenu{margin:0 3px 4px 24px;padding:4px 0 4px 12px;border-left:1px solid #80663d55;display:grid;gap:3px}
.hm-drawer-nav .hm-device-submenu button{min-height:34px;padding:7px 9px;gap:8px;font-size:12px;color:#c5b8cb;background:transparent;border:0;border-radius:8px;display:flex;align-items:center;width:100%;text-align:left}
.hm-drawer-nav .hm-device-submenu button:hover{background:#d8b66c0b;color:#f0dfb9}
.hm-drawer-nav .hm-device-submenu button>span:last-child{margin-left:auto;color:#b5a17c}
.hm-drawer-nav .hm-device-submenu button small{font-size:9px;margin-left:auto;color:#a89baf;border:0;padding:0}
.hm-device-sub-chevron{width:12px;flex:0 0 12px;color:#b9a887;display:inline-flex}
.hm-device-sub-chevron svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.7;transition:transform .18s}
#deviceConnectNavBtn[aria-expanded=true] .hm-device-sub-chevron svg{transform:rotate(180deg)}
.hm-drawer-nav #deviceConnectNavBtn{gap:10px}
.hm-drawer-nav #deviceConnectNavBtn .hm-device-premium-item-label{white-space:normal}
#hmDeviceCards{grid-template-columns:1fr}
.hm-model-launch{display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;border:1px solid #84435866;border-radius:12px;padding:14px 16px;background:#25141d;color:#f1dce5;cursor:pointer;font:inherit}
.hm-model-launch strong{display:block;font-size:14px;font-weight:600}
.hm-model-launch small{display:block;font-size:12px;color:#c3a9b6;margin-top:5px}
.hm-model-launch>span:last-child{font-size:22px;color:#d097ac}
.hm-experience-dialog{box-sizing:border-box;width:min(820px,calc(100vw - 28px));max-height:92dvh;padding:0;border:1px solid #77415499;border-radius:20px;background:#160f16;color:#f1e6ed;box-shadow:0 30px 100px #0009;overflow:hidden}
.hm-experience-dialog::backdrop{background:#050307c9;backdrop-filter:blur(5px)}
.hm-experience-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;background:linear-gradient(90deg,#401624,#160f16);border-bottom:1px solid #5a354755}
.hm-experience-head small{display:block;color:#d4acbc;font-size:10px;letter-spacing:.13em}
.hm-experience-head h2{font:500 25px/1.25 Georgia,serif;margin:5px 0 0;color:#f4e6ee;overflow-wrap:anywhere}
.hm-experience-close{flex:none;width:34px;height:34px;border:1px solid #7b536966;border-radius:10px;color:#e4c3d2;background:#2a1723;cursor:pointer;font:24px/1 system-ui}
.hm-experience-body{box-sizing:border-box;max-height:calc(92dvh - 95px);overflow:auto;padding:22px;font:13px/1.65 system-ui,sans-serif;overscroll-behavior:contain}
.hm-experience-body p{color:#c9b7c2;margin:8px 0 14px}
.hm-experience-intro{font-size:14px;max-width:650px}
.hm-experience-badge{display:inline-block;border:1px solid #bd6a8555;border-radius:99px;padding:4px 9px;font-size:9px;letter-spacing:.09em;color:#e8aabe;background:#61223a3b}
.hm-model-filters{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0 8px}
.hm-model-filters button{padding:7px 14px;border:1px solid #72455666;border-radius:99px;color:#c6aebc;background:#22141d;font:inherit;font-size:12px;cursor:pointer}
.hm-model-filters button[aria-pressed=true]{color:#ffe5ee;border-color:#b66c86;background:#5a293c}
.hm-model-count{font-size:11px;color:#b59dac!important;margin-bottom:16px!important}
.hm-model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hm-model-card{border:1px solid #69364770;border-radius:16px;padding:16px;background:linear-gradient(140deg,#2b1722,#1c121b);min-width:0;display:flex;flex-direction:column}
.hm-model-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hm-model-card-top small{color:#c595a8;font-size:10px;letter-spacing:.06em}
.hm-model-card-top>span{color:#b998a8;font-size:8px;letter-spacing:.07em}
.hm-model-card h3{font:500 23px/1.2 Georgia,serif;margin:9px 0 0;color:#f3e3ec}
.hm-model-card p{font-size:12px;margin:9px 0 13px;flex:1}
.hm-model-tags{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px}
.hm-model-tags span{display:inline-block;font-size:10px;line-height:1.5;color:#d7b3c4;background:#77334c26;border:1px solid #95516b40;border-radius:99px;padding:3px 8px}
.hm-model-card>button{margin-top:6px;border:0;border-top:1px solid #86536a33;padding:12px 0 0;display:flex;justify-content:space-between;gap:10px;background:transparent;text-align:left;color:#efbbd1;cursor:pointer;font:500 12px system-ui}
.hm-model-card>button span{font-size:18px;line-height:1}
.hm-model-action{display:inline-flex;align-items:center;justify-content:center;margin:9px 0 0;padding:10px 14px;border:1px solid #a85e7999;border-radius:12px;background:#502237;color:#f1c9da;cursor:pointer;font:500 12px/1.5 system-ui;text-align:left}
.hm-model-action:disabled{opacity:.55;cursor:not-allowed}
.hm-model-hero{padding:19px;border:1px solid #8c425c66;border-radius:16px;background:radial-gradient(ellipse at 100% 0,#70344744,transparent 70%),#25151e}
.hm-model-hero>small{display:block;font-size:10px;letter-spacing:.1em;color:#d8a2b6;margin-top:16px}
.hm-model-hero h3{font:500 clamp(22px,4vw,29px)/1.25 Georgia,serif;color:#f4e1ec;margin:12px 0 8px}
.hm-model-section{padding:22px 0 5px;border-bottom:1px solid #77425633}
.hm-model-section>small{color:#d3a1b6;font-size:10px;letter-spacing:.13em}
.hm-model-section h3{font:500 21px/1.3 Georgia,serif;color:#f2e1eb;margin:7px 0 10px}
.hm-model-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.hm-model-authority{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.hm-model-authority span{font-size:11px;border:1px solid #80546866;border-radius:8px;padding:7px 10px;color:#cfb7c3}
.hm-experience-footnote{font-size:11px;margin:20px 0 2px!important;color:#a892a0!important}
.hm-live-system-info{display:flex;align-items:center;width:100%;border:0;padding:12px 14px;text-align:left;background:transparent;color:#b6a5c0;cursor:pointer;font:12px system-ui}
.hm-live-strip{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
#hmLiveIndicators{flex:0 1 auto;max-width:calc(100% - 126px)}
.hm-composer-row:has(#hmLiveIndicators:not([hidden])){height:auto;min-height:38px;align-items:flex-end}
.hm-live-chip{box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:32px;padding:6px 9px;border:1px solid #90536b77;border-radius:999px;background:#2b1925;color:#eedce6;cursor:pointer;font:11px/1.35 system-ui;text-align:left}
.hm-live-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}
.hm-live-chip-state{flex-shrink:0;color:#d7a0b7;font-size:10px}
.hm-live-dot{width:5px;height:5px;border-radius:50%;background:#d687a5;flex:none}
.hm-live-chip[data-tone=unknown],.hm-live-chip[data-tone=attention]{background:#302416;border-color:#a3834488}
.hm-live-chip[data-tone=unknown] .hm-live-dot,.hm-live-chip[data-tone=attention] .hm-live-dot{background:#e1bd75}
.hm-live-chip[data-tone=unknown] .hm-live-chip-state,.hm-live-chip[data-tone=attention] .hm-live-chip-state{color:#e1bd75}
.hm-live-chip[data-tone=task]{background:#271b36;border-color:#8f65b877}
.hm-live-chip[data-tone=task] .hm-live-dot{background:#c79aee}
.hm-live-chip[data-tone=task] .hm-live-chip-state{color:#d5b9ee;font-variant-numeric:tabular-nums}
.hm-live-chip[data-tone=context]{background:#18242a;border-color:#678b9477}
.hm-live-chip[data-tone=context] .hm-live-dot{background:#9abcc4}
.hm-live-chip[data-tone=context] .hm-live-chip-state{color:#b0cbd0}
.hm-live-more{min-height:32px;padding:6px 9px;border:1px solid #72566d66;border-radius:99px;background:#20171e;color:#d7b9cb;cursor:pointer;font:11px system-ui}
.hm-live-chip:hover,.hm-live-more:hover{filter:brightness(1.2)}
.hm-live-arrival{animation:hm-live-once 1.1s ease-out 1}
@keyframes hm-live-once{40%{box-shadow:0 0 14px #d88ca35c}100%{box-shadow:none}}
.hm-live-demo-select{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:24px 0 13px;color:#d3b6c6;font-size:12px}
.hm-live-demo-select select{max-width:100%;padding:9px 11px;border:1px solid #78566b;border-radius:9px;background:#281a25;color:#f3deeb;font:13px system-ui}
.hm-live-demo-composer{padding:16px 13px 12px;border:1px solid #79528188;border-radius:18px;background:#1b1322}
.hm-live-demo-placeholder{color:#a391af;font-size:13px;padding:0 3px 19px}
.hm-live-demo-row{display:flex;align-items:flex-end;gap:8px}
.hm-live-demo-row .hm-live-strip{flex:1}
.hm-live-demo-plus{flex:none;display:grid;place-items:center;width:30px;height:32px;border:1px solid #564160;border-radius:50%;color:#baa5c5;font-size:23px}
.hm-live-demo-send{flex:none;margin-left:auto;display:grid;place-items:center;width:30px;height:32px;border-radius:50%;color:#eee1f5;background:#8152a5;font-size:21px}
.hm-live-demo-explanation{min-height:38px;font-size:12px;color:#d5b8c7!important;margin-top:12px!important}
.hm-live-detail-title{font:500 27px Georgia,serif;color:#f4e5ef;margin:17px 0 10px}
.hm-live-detail-state{display:inline-block;border:1px solid #527c6466;border-radius:9px;background:#1b2a23;padding:9px 13px;color:#c3e2cd;font-size:14px;font-variant-numeric:tabular-nums}
.hm-live-detail-state[data-tone=unknown],.hm-live-detail-state[data-tone=attention]{border-color:#aa8c5488;background:#302616;color:#e9cb8e}
.hm-live-detail-state[data-tone=task]{background:#2f2040;border-color:#9e72bd88;color:#dcc0f2}
.hm-live-facts{margin:20px 0 10px}
.hm-live-facts>div{display:grid;grid-template-columns:1fr 1.5fr;gap:18px;border-bottom:1px solid #6d4d6044;padding:11px 0;font-size:12px}
.hm-live-facts dt{color:#b8a2b0}.hm-live-facts dd{margin:0;color:#e5cfdd;overflow-wrap:anywhere}
.hm-live-list-item{display:flex;width:100%;align-items:center;gap:12px;padding:14px;margin-top:10px;border:1px solid #6c425866;border-radius:11px;background:#2b1925;color:#edd6e4;cursor:pointer;font:13px system-ui;text-align:left}
.hm-live-list-item small{margin-left:auto;color:#c8a7b9;font-size:11px}
.hm-experience-dialog button:focus-visible,.hm-experience-dialog select:focus-visible,.hm-live-strip button:focus-visible,.hm-device-submenu button:focus-visible{outline:2px solid #d3b27a;outline-offset:3px}
@media(max-width:540px){
 .hm-experience-dialog{width:calc(100vw - 16px);border-radius:16px}
 .hm-experience-head{padding:15px}.hm-experience-head h2{font-size:22px}
 .hm-experience-body{padding:15px;max-height:calc(92dvh - 88px)}
 .hm-model-grid,.hm-model-detail-grid{grid-template-columns:1fr}.hm-model-detail-grid{gap:0}
 .hm-model-card{padding:16px}.hm-model-hero{padding:16px}
 .hm-live-facts>div{grid-template-columns:1fr;gap:4px}
 .hm-live-demo-select select{font-size:16px;width:100%}
 .hm-live-name{max-width:100px}.hm-live-chip{font-size:10px;gap:5px;padding:6px 8px}
 #hmLiveIndicators .hm-live-chip{width:100%}#hmLiveIndicators .hm-live-name{flex:1}
}
/* iPhone composer: keep live chips in their own column so they never cover tasks or controls. */
@media(max-width:540px){
 .hm-composer-row:has(#hmLiveIndicators:not([hidden])){display:grid;grid-template-columns:34px minmax(0,1fr) 34px 34px;align-items:center;height:auto;min-height:38px;gap:7px}
 #hmLiveIndicators{grid-column:2;display:flex;flex:initial;flex-direction:column;align-items:stretch;width:100%;min-width:0;max-width:none;gap:6px}
 #hmLiveIndicators .hm-live-chip{display:flex;width:100%;min-width:0;max-width:100%}
 .hm-composer-row:has(#hmLiveIndicators:not([hidden])) .hm-composer-spacer{display:none}
}
@media(pointer:coarse){.hm-model-card>button,.hm-model-action,.hm-model-filters button,.hm-experience-close,.hm-live-strip button,.hm-drawer-nav .hm-device-submenu button{min-height:44px}.hm-experience-close{min-width:44px}}
@media(prefers-reduced-motion:reduce){.hm-live-arrival{animation:none}.hm-device-sub-chevron svg{transition:none}}
