/* HEHLE controls: one palette, action hierarchy, spacing and keyboard language. */
html[data-hehle-actions]{--ha-green:#173f35;--ha-green-hover:#245748;--ha-gold:#c6a35e;--ha-ink:#173b33;--ha-line:#a5bdb2;--ha-paper:#fffefa;--ha-soft:#edf4ef;--ha-danger:#a02f37;--ha-radius:.6rem;--ha-height:2.75rem;--ha-gap:.65rem}
html[data-hehle-actions] [data-hehle-action]{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:.5rem!important;min-height:var(--ha-height)!important;max-width:100%;height:auto!important;padding:.65rem 1rem!important;border:1px solid var(--ha-line)!important;border-radius:var(--ha-radius)!important;background:var(--ha-paper)!important;background-image:none!important;color:var(--ha-ink)!important;font-family:inherit!important;font-size:.94rem!important;font-weight:700!important;line-height:1.35!important;text-align:center!important;text-decoration:none!important;white-space:normal!important;overflow-wrap:anywhere;box-shadow:none!important;cursor:pointer;vertical-align:middle;transition:background-color .15s ease,border-color .15s ease,color .15s ease!important}
html[data-hehle-actions] [data-hehle-action]:hover:not(:disabled):not([aria-disabled=true]){background:var(--ha-soft)!important;border-color:var(--ha-green)!important;transform:none!important}
html[data-hehle-actions] [data-hehle-action=primary]{background:var(--ha-green)!important;border-color:var(--ha-green)!important;color:#fffefa!important}
html[data-hehle-actions] [data-hehle-action=primary]:hover:not(:disabled):not([aria-disabled=true]){background:var(--ha-green-hover)!important;border-color:var(--ha-green-hover)!important}
html[data-hehle-actions] [data-hehle-action=create]{background:var(--ha-soft)!important;border-color:var(--ha-line)!important;color:var(--ha-green)!important}
html[data-hehle-actions] [data-hehle-action=danger]{background:#fff5f4!important;border-color:#cf9a9d!important;color:var(--ha-danger)!important}
html[data-hehle-actions] [data-hehle-action=danger]:hover:not(:disabled):not([aria-disabled=true]){background:#fbe4e4!important;border-color:var(--ha-danger)!important}
html[data-hehle-actions] [data-hehle-action=navigate]{background:transparent!important;border-color:transparent!important;color:var(--ha-ink)!important;padding:.5rem .65rem!important;text-decoration:underline!important;text-underline-offset:.22em!important}
html[data-hehle-actions] [data-hehle-action=quiet]{background:transparent!important;border-color:transparent!important;color:var(--ha-ink)!important}
html[data-hehle-actions] [data-hehle-action]:focus-visible,html[data-hehle-actions] .hehle-more-actions>summary:focus-visible{outline:3px solid var(--ha-gold)!important;outline-offset:3px!important;box-shadow:0 0 0 1px var(--ha-paper)!important}
html[data-hehle-actions] [data-hehle-action]:is(:disabled,[aria-disabled=true]){opacity:.5!important;cursor:not-allowed!important;filter:none!important;transform:none!important}
html[data-hehle-actions] [data-hehle-action][hidden],html[data-hehle-actions] [data-hehle-action-group][hidden],html[data-hehle-actions] .hehle-more-actions[hidden]{display:none!important}
html[data-hehle-actions] [data-hehle-action-size=icon]{flex:0 0 var(--ha-height);width:var(--ha-height)!important;min-width:var(--ha-height)!important;padding:.5rem!important}
html[data-hehle-actions] [data-hehle-action]>svg{flex-shrink:0;width:1.1rem;height:1.1rem;pointer-events:none}
html[data-hehle-actions] [data-hehle-action-group]{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ha-gap);min-width:0;max-width:100%}
html[data-hehle-actions] [data-action-bar=footer]{justify-content:flex-end;padding-top:1rem;margin-top:1rem;border-top:1px solid #d6e0da}
html[data-hehle-actions] [data-action-bar=header]{justify-content:flex-end}
html[data-hehle-actions] [data-action-kind=navigate][data-action-back]{margin-inline-end:auto}
html[data-hehle-actions] .hehle-more-actions{position:relative;flex:0 0 auto;min-width:0}
html[data-hehle-actions] .hehle-more-actions>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:.6rem;min-height:var(--ha-height);padding:.65rem 1rem;border:1px solid var(--ha-line);border-radius:var(--ha-radius);background:var(--ha-paper);color:var(--ha-ink);font-family:inherit;font-weight:700;font-size:.94rem;line-height:1.35;cursor:pointer}
html[data-hehle-actions] .hehle-more-actions>summary::-webkit-details-marker{display:none}
html[data-hehle-actions] .hehle-more-actions>summary::after{content:'⌄';font-size:1rem}
html[data-hehle-actions] .hehle-more-actions[open]>summary{border-color:var(--ha-green);background:var(--ha-soft)}
html[data-hehle-actions] .hehle-more-actions-content{position:absolute;z-index:30;top:calc(100% + .35rem);inset-inline-end:0;display:grid;gap:.4rem;width:max-content;max-width:min(24rem,calc(100vw - 3rem));min-width:13rem;padding:.65rem;border:1px solid var(--ha-line);border-radius:var(--ha-radius);background:var(--ha-paper);box-shadow:0 10px 28px #173f3524}
html[data-hehle-actions] .hehle-more-actions:not([open])>.hehle-more-actions-content{display:none!important}
html[data-hehle-actions] .hehle-more-actions-content [data-hehle-action]{width:100%;justify-content:flex-start!important;text-align:start!important}
html[data-hehle-actions] :is(dialog,[role=dialog]) [data-action-bar=footer]{position:sticky;bottom:0;background:var(--ha-paper);z-index:2;padding-bottom:.5rem}
@media(max-width:600px){html[data-hehle-actions] [data-hehle-action-group]>[data-hehle-action]:not([data-hehle-action-size=icon]){flex:1 1 10rem}html[data-hehle-actions] [data-action-bar=footer]>[data-hehle-action=primary]{flex-basis:100%}html[data-hehle-actions] .hehle-more-actions-content{max-width:calc(100vw - 2rem)}}
@media(prefers-reduced-motion:reduce){html[data-hehle-actions] [data-hehle-action]{transition:none!important}}
@media print{html[data-hehle-actions] [data-action-bar],html[data-hehle-actions] .hehle-more-actions{display:none!important}}
