#drkt-help{--ha-bg:#fff;--ha-soft:#f2f7f6;--ha-text:#173a3c;--ha-muted:#50696a;--ha-line:#d8e6e3;--ha-accent:#087f83;--ha-shadow:0 16px 60px #062c3430;font:400 14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ha-text);position:relative;z-index:10000}
#drkt-help *{box-sizing:border-box}#drkt-help [hidden]{display:none!important}#drkt-help button,#drkt-help textarea,#drkt-help a{font:inherit}#drkt-help button,#drkt-help a{touch-action:manipulation}#drkt-help button{cursor:pointer}#drkt-help button:disabled{cursor:wait;opacity:.65}#drkt-help :focus-visible{outline:3px solid #d69d39;outline-offset:3px}#drkt-help a{color:var(--ha-accent)}
#drkt-help .ha-float{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;z-index:10000}
#drkt-help .ha-launch{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;border:1px solid #ffffff25;border-radius:999px;background:#087f83;color:#fff;padding:12px 20px;box-shadow:0 6px 24px #043a3d35;font-weight:700;letter-spacing:.01em}
#drkt-help svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#drkt-help .ha-top{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--ha-line);background:var(--ha-bg);color:var(--ha-text);box-shadow:0 4px 18px #043a3d20;padding:0}
#drkt-help .ha-dot{width:8px;height:8px;background:#f7ca70;border-radius:50%}
#drkt-help dialog{position:fixed;inset:auto max(16px,env(safe-area-inset-right)) max(84px,calc(env(safe-area-inset-bottom) + 72px)) auto;margin:0;padding:0;width:min(410px,calc(100vw - 32px));height:min(660px,calc(100dvh - 106px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border:1px solid var(--ha-line);border-radius:22px;background:var(--ha-bg);color:var(--ha-text);box-shadow:var(--ha-shadow);overflow:hidden;overscroll-behavior:contain}
#drkt-help dialog[open]{display:flex;flex-direction:column}#drkt-help dialog::backdrop{background:#072d351f}
#drkt-help .ha-header{display:flex;align-items:center;gap:12px;flex-shrink:0;background:#087f83;color:#fff;padding:18px 18px 16px}
#drkt-help .ha-avatar{display:grid;place-items:center;border-radius:14px;background:#ffffff21;width:42px;height:42px;font-size:30px;font-weight:500;line-height:1}
#drkt-help h2{font:700 17px/1.3 system-ui,sans-serif;margin:0;color:inherit;letter-spacing:0}#drkt-help .ha-header p{font-size:12px;margin:3px 0 0;color:#e3f7f6}
#drkt-help .ha-close{margin-left:auto;background:#ffffff14;border:1px solid #ffffff35;color:#fff;border-radius:50%;width:36px;height:36px;min-width:36px;padding:0;font-size:26px;line-height:1}
#drkt-help .ha-notice{font-size:11px;line-height:1.5;padding:10px 18px;margin:0;background:var(--ha-soft);color:var(--ha-muted);border-bottom:1px solid var(--ha-line);flex-shrink:0}
#ha-messages{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:18px 16px;display:flex;flex-direction:column;gap:14px}
#drkt-help .ha-message{max-width:94%;background:var(--ha-soft);border:1px solid var(--ha-line);border-radius:4px 16px 16px;padding:11px 13px;flex-shrink:0;align-self:flex-start;overflow-wrap:anywhere}
#drkt-help .ha-message p{margin:4px 0 0;white-space:pre-wrap}#drkt-help .ha-sender{font-size:11px;color:var(--ha-muted);font-weight:700}
#drkt-help .ha-user{align-self:flex-end;border-radius:16px 4px 16px 16px;background:#087f83;color:#fff;border-color:#087f83}#drkt-help .ha-user .ha-sender{color:#d9f3f2}
#drkt-help .ha-links{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}#drkt-help .ha-links a,#drkt-help .ha-links button{display:inline-block;border:1px solid var(--ha-line);border-radius:8px;color:var(--ha-accent);background:var(--ha-bg);padding:7px 9px;font-size:12px;text-decoration:none}
#drkt-help .ha-suggestions{display:flex;gap:6px;padding:0 16px 10px;flex-wrap:wrap;flex-shrink:0}#drkt-help .ha-suggestions button{background:var(--ha-bg);color:var(--ha-accent);border:1px solid var(--ha-line);border-radius:999px;padding:6px 9px;font-size:11px}
#drkt-help .ha-compose{display:flex;gap:8px;margin:0;padding:10px 14px;border-top:1px solid var(--ha-line);flex-shrink:0}#drkt-help textarea{flex:1;min-width:0;max-height:84px;resize:none;border:1px solid var(--ha-line);border-radius:10px;background:var(--ha-bg);color:var(--ha-text);padding:10px;font-size:16px;line-height:1.4}#drkt-help textarea::placeholder{color:var(--ha-muted)}#drkt-help .ha-compose button{align-self:center;background:#087f83;color:#fff;border:0;border-radius:10px;padding:11px 12px;min-height:44px}
#drkt-help .ha-escalation{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:var(--ha-soft);padding:12px 14px 4px;flex-shrink:0;border:0;margin:0}#drkt-help .ha-escalation a,#drkt-help .ha-escalation button,#drkt-help .ha-unavailable{display:flex;justify-content:center;align-items:center;text-align:center;min-height:42px;padding:8px 6px;font-size:12px;font-weight:650;border:1px solid var(--ha-line);border-radius:10px;background:var(--ha-bg);color:var(--ha-accent);text-decoration:none}
#drkt-help .ha-footnote{margin:0;background:var(--ha-soft);padding:7px 16px 12px;font-size:10px;line-height:1.5;color:var(--ha-muted);flex-shrink:0}#ha-error{margin:0;padding:8px 16px;color:#a52824;background:#fff0ed;font-size:12px;flex-shrink:0}#drkt-help .ha-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(prefers-color-scheme:dark){#drkt-help{--ha-bg:#172b2d;--ha-soft:#203638;--ha-text:#eef8f7;--ha-muted:#b8cecc;--ha-line:#365354;--ha-accent:#86ded9;--ha-shadow:0 16px 60px #0007}#ha-error{color:#ffd6ce;background:#572f2b}}
/* R20: compact controls, an unobstructed conversation, and persistent safety guidance. */
#drkt-help .ha-float {right:calc(12px + env(safe-area-inset-right,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px));gap:8px}
#drkt-help .ha-launch {min-height:44px;padding:9px 14px;gap:7px;font-size:13px}
#drkt-help .ha-launch svg {width:20px;height:20px}
#drkt-help[data-actions-blocked="true"] .ha-float,
body.public-menu-open #drkt-help .ha-float {visibility:hidden;pointer-events:none}
#drkt-help .ha-header {padding:10px 14px;gap:9px}
#drkt-help .ha-header>div:nth-child(2) {min-width:0;flex:1}
#drkt-help .ha-avatar {width:32px;height:32px;flex:0 0 32px;border-radius:10px;font-size:24px}
#drkt-help h2 {font-size:16px}
#drkt-help .ha-header p {overflow-wrap:anywhere;max-height:3em;overflow:auto;line-height:1.4}
#drkt-help .ha-close {width:44px;height:44px;min-width:44px}
#drkt-help .ha-notice {font-size:12px;line-height:1.4;padding:7px 14px;display:block}
#drkt-help .ha-details {margin:0;border-bottom:1px solid var(--ha-line);background:var(--ha-soft);font-size:12px;flex:0 1 auto;min-height:44px;overflow:auto}
#drkt-help .ha-details summary {min-height:44px;padding:12px 14px;cursor:pointer;font-weight:650;color:var(--ha-text)}
#drkt-help .ha-details-body {max-height:24dvh;overflow-y:auto;padding:0 14px 10px;overflow-wrap:anywhere;color:var(--ha-muted)}
#drkt-help .ha-details p {margin:0 0 8px}
#drkt-help #ha-messages {padding:12px;gap:10px;min-height:72px}
#drkt-help .ha-message {padding:9px 11px}
#drkt-help .ha-compose {padding:8px 12px}
#drkt-help textarea {min-height:44px;max-height:84px;padding:10px;line-height:1.4}
#drkt-help .ha-escalation {padding:8px 12px;gap:6px}
#drkt-help .ha-escalation a,#drkt-help .ha-escalation button,#drkt-help .ha-unavailable {min-height:44px}
#drkt-help .ha-escalation>a:last-child:nth-child(3) {grid-column:1/-1}
#drkt-help .ha-suggestions {flex-wrap:nowrap;overflow-x:auto;padding:0 12px 8px;scrollbar-width:thin}
#drkt-help .ha-suggestions button {flex:0 0 auto;min-height:44px;white-space:nowrap}
#drkt-help #ha-error {max-height:72px;overflow-y:auto}
#drkt-help .ha-keyboard .ha-suggestions {display:none}
#drkt-help dialog.ha-keyboard {top:calc(var(--ha-vv-top,0px) + 8px);bottom:auto;height:calc(var(--ha-vv-height,100dvh) - 16px);max-height:none;overflow-y:auto}
@media (max-width:767px) {
  #drkt-help dialog {
    top:calc(var(--ha-vv-top,0px) + 8px + env(safe-area-inset-top,0px));
    bottom:auto;left:calc(8px + env(safe-area-inset-left,0px));right:auto;
    width:calc(100% - 16px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));
    height:calc(var(--ha-vv-height,100dvh) - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
    max-height:none;max-width:none;border-radius:16px;
  }
}
@media (max-height:700px) {#drkt-help .ha-suggestions {display:none}}
@media (max-height:440px) {
  #drkt-help dialog {top:calc(var(--ha-vv-top,0px) + 4px);bottom:auto;height:calc(var(--ha-vv-height,100dvh) - 8px);max-height:none;overflow-y:auto}
  #drkt-help .ha-header {padding:4px 10px}
  #drkt-help .ha-details {flex-shrink:0}
}
@media print {#drkt-help {display:none!important}}
.consultation-live #drkt-help {display:none}
