/* VYSHKA presentation only. Root JS owns consent, focus, requests and status.
   The explicit hidden rule must survive every presentation stylesheet. */
body.gis-r7 #gis-assistant.gis-assistant { --gis-assistant-bottom: 20px; --gis-assistant-available-height: calc(100dvh - 104px); position: fixed; z-index: 80; right: 20px; bottom: var(--gis-assistant-bottom); color: #132844; font: 400 14px/1.6 var(--r7-body-font, system-ui); }
body.gis-r7 .gis-assistant-launcher { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 52px; max-width: min(300px, calc(100vw - 40px)); padding: 12px 18px; border: 1px solid #dce5f1; border-radius: 18px; background: #fff; color: #132844; font: 650 14px/1.4 var(--r7-body-font, system-ui); box-shadow: 0 8px 28px rgba(19,40,68,.14); cursor: pointer; }
body.gis-r7 .gis-assistant-launcher:hover { border-color: #a5b8d8; background: #edf3ff; }
body.gis-r7 .gis-assistant-launcher :where(svg,.gis-assistant-mark) { width: 28px; height: 28px; border-radius: 9px; color: #2456d9; flex-shrink: 0; }
body.gis-r7 .gis-assistant-panel { position: absolute; right: 0; bottom: 66px; display: grid; grid-template-rows: auto minmax(64px,1fr) auto auto auto auto; width: 400px; max-width: calc(100vw - 40px); height: min(620px, var(--gis-assistant-available-height)); max-height: var(--gis-assistant-available-height); border: 1px solid #dce5f1; border-radius: 24px; background: #fff; box-shadow: 0 18px 70px rgba(19,40,68,.2); overflow: hidden; }
body.gis-r7 #gis-assistant.gis-assistant .gis-assistant-panel[hidden] { display: none !important; }
body.gis-r7 #gis-assistant.gis-assistant [hidden] { display: none !important; }
body.gis-r7 .gis-assistant-panel[data-open="true"]:not([hidden]) { display: grid; }
body.gis-r7 .gis-assistant-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #dce5f1; color: #132844; background: #f8faff; }
body.gis-r7 .gis-assistant-header :where(h2,h3,strong) { margin: 0; color: #132844; font: 700 17px/1.3 var(--r7-heading-font,system-ui); letter-spacing: -.015em; }
body.gis-r7 .gis-assistant-header :where(p,small) { display: block; margin: 4px 0 0; color: #51647c; font-size: 11px; line-height: 1.5; }
body.gis-r7 .gis-assistant-close { display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 6px; border: 1px solid #a5b8d8; border-radius: 13px; color: #132844; background: #fff; font-size: 23px; line-height: 1; cursor: pointer; }
body.gis-r7 .gis-assistant-close:hover { background: #edf3ff; }
body.gis-r7 .gis-assistant-messages { min-height: 0; padding: 18px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; }
body.gis-r7 .gis-assistant-message { max-width: 95%; margin: 0 0 12px; padding: 13px 15px; border: 1px solid #dce5f1; border-radius: 17px; color: #132844; background: #edf3ff; overflow-wrap: anywhere; white-space: pre-wrap; }
body.gis-r7 .gis-assistant-message[data-role="assistant"] { margin-right: auto; border-bottom-left-radius: 6px; }
body.gis-r7 .gis-assistant-message[data-role="user"] { margin-left: auto; border-color: #2456d9; border-bottom-right-radius: 6px; color: #fff; background: #2456d9; }
body.gis-r7 .gis-assistant-message p { margin: 0 0 10px; font-size: inherit; line-height: inherit; }
body.gis-r7 .gis-assistant-message > :last-child { margin-bottom: 0; }
body.gis-r7 .gis-assistant-message a { color: #163eab; text-decoration: underline; }
body.gis-r7 .gis-assistant-message[data-role="user"] a { color: #fff; }
body.gis-r7 .gis-assistant-status { margin: 0; min-height: 24px; padding: 3px 18px 6px; color: #51647c; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
body.gis-r7 .gis-assistant-status[data-state="error"], body.gis-r7 .gis-assistant-status[data-state="failed"] { color: #a32833; }
body.gis-r7 .gis-assistant-status[data-state="loading"] { color: #163eab; }
body.gis-r7 .gis-assistant-suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 12px; }
body.gis-r7 .gis-assistant-suggestions :where(button,a) { min-height: 44px; max-width: 100%; padding: 9px 11px; border: 1px solid #a5b8d8; border-radius: 12px; background: #fff; color: #2456d9; font: 500 12px/1.4 var(--r7-body-font,system-ui); text-align: left; text-decoration: none; cursor: pointer; }
body.gis-r7 .gis-assistant-suggestions :where(button,a):hover { background: #edf3ff; }
body.gis-r7 .gis-assistant-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; margin: 0; padding: 12px 18px; border-top: 1px solid #dce5f1; background: #fff; }
body.gis-r7 .gis-assistant-input { display: block; width: 100%; min-width: 0; height: 50px; min-height: 50px; max-height: 112px; resize: none; padding: 13px 12px; border: 1px solid #7d90ac; border-radius: 14px; color: #132844; background: #fff; font: 400 16px/1.45 var(--r7-body-font,system-ui); }
body.gis-r7 .gis-assistant-input::placeholder { color: #51647c; opacity: 1; }
body.gis-r7 .gis-assistant-send { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; min-height: 50px; max-width: 110px; padding: 10px 13px; border: 1px solid #2456d9; border-radius: 14px; color: #fff; background: #2456d9; font: 650 13px/1.4 var(--r7-body-font,system-ui); cursor: pointer; }
body.gis-r7 .gis-assistant-send:hover { background: #163eab; border-color: #163eab; }
body.gis-r7 .gis-assistant-send:disabled { opacity: .6; cursor: not-allowed; }
body.gis-r7 .gis-assistant-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; padding: 0 18px 10px; font-size: 11px; line-height: 1.5; }
body.gis-r7 .gis-assistant-links a { display: inline-flex; align-items: center; min-height: 44px; color: #2456d9; }
body.gis-r7 .gis-assistant-consent { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 0 18px 13px; margin: 0; color: #51647c; font-size: 11px; line-height: 1.6; cursor: pointer; }
body.gis-r7 .gis-assistant-form .gis-assistant-consent { grid-column: 1 / -1; padding: 0; }
body.gis-r7 .gis-assistant-consent input[type="checkbox"] { display: block; width: 20px; height: 20px; flex: 0 0 20px; padding: 0; margin: 2px 0 0; accent-color: #2456d9; }
body.gis-r7 .gis-assistant-consent a { color: #2456d9; }
body.gis-r7 #gis-assistant :focus-visible { outline: 3px solid #2456d9; outline-offset: 3px; }
@media (max-width:640px) {
  body.gis-r7 #gis-assistant.gis-assistant { right: 12px; --gis-assistant-bottom: calc(88px + env(safe-area-inset-bottom,0px)); --gis-assistant-available-height: calc(100dvh - 176px - env(safe-area-inset-bottom,0px)); }
  body.gis-r7 .gis-assistant-launcher { width: 52px; height: 52px; min-height: 52px; padding: 0; gap: 0; border-radius: 17px; font-size: 0; }
  body.gis-r7 .gis-assistant-launcher::before { content: "В"; display: grid; place-items: center; width: 30px; height: 30px; color: #2456d9; font: 750 23px/1 var(--r7-heading-font,system-ui); }
  body.gis-r7 .gis-assistant-launcher > * { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body.gis-r7 .gis-assistant-panel { width: calc(100vw - 24px); max-width: calc(100vw - 24px); bottom: 60px; border-radius: 22px; }
  body.gis-r7 .gis-assistant-header { padding: 12px 14px; }
  body.gis-r7 .gis-assistant-messages { padding: 14px; }
  body.gis-r7 .gis-assistant-status { padding-inline: 14px; }
  body.gis-r7 .gis-assistant-suggestions { padding-inline: 14px; gap: 6px; }
  body.gis-r7 .gis-assistant-form { padding: 11px 14px; gap: 8px; }
  body.gis-r7 .gis-assistant-links { padding: 0 14px 6px; }
  body.gis-r7 .gis-assistant-consent { padding: 0 14px 11px; }
}
@media (max-width:360px) { body.gis-r7 .gis-assistant-send { max-width: 82px; padding-inline: 10px; font-size: 12px; } }
@media (prefers-reduced-motion:reduce) { body.gis-r7 #gis-assistant * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors:active) { body.gis-r7 #gis-assistant :focus-visible { outline-color: Highlight; } body.gis-r7 .gis-assistant-message, body.gis-r7 .gis-assistant-launcher, body.gis-r7 .gis-assistant-close, body.gis-r7 .gis-assistant-send { border-color: CanvasText; } }
@media print { body.gis-r7 #gis-assistant.gis-assistant { display: none; } }

/* Root integration of actual label, notice, consent and two action buttons. */
body.gis-r7 #gis-assistant .gis-assistant-form { grid-template-columns:minmax(0,1fr); }
body.gis-r7 #gis-assistant .gis-assistant-form > * { grid-column:1 / -1; }
body.gis-r7 #gis-assistant .gis-assistant-form > label:first-child { color:#132844; font-size:13px; font-weight:650; }
body.gis-r7 #gis-assistant .gis-assistant-form .gis-note { margin:0; font-size:11px; line-height:1.5; }
body.gis-r7 #gis-assistant .gis-assistant-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
body.gis-r7 #gis-assistant .gis-assistant-send { max-width:none; min-height:44px; }
body.gis-r7 #gis-assistant .gis-assistant-clear { min-height:44px; padding:10px 13px; border:1px solid #a5b8d8; border-radius:14px; background:#fff; color:#2456d9; font:500 12px/1.4 var(--r7-body-font,system-ui); cursor:pointer; }
body.gis-r7 #gis-assistant .gis-assistant-panel { overflow-y:auto; overscroll-behavior:contain; }
body.gis-r7 #gis-assistant .gis-assistant-header { position:sticky; top:0; z-index:1; }
body.gis-r7 #gis-assistant .gis-assistant-panel { grid-template-rows:max-content minmax(160px,1fr) max-content max-content max-content max-content; }
body.gis-r7 #gis-assistant .gis-assistant-messages { min-height:160px; }
body.gis-r7 #gis-assistant .gis-assistant-status { height:auto; min-height:min-content; max-height:none; white-space:normal; align-self:start; }
body.gis-r7 #gis-assistant[data-availability="unavailable"] .gis-assistant-panel { height:auto; grid-template-rows:max-content max-content max-content max-content; }
body.gis-r7 #gis-assistant[data-availability="unavailable"] .gis-assistant-messages { min-height:0; }
/* The expanded panel already provides its own close control. */
body.gis-r7 #gis-assistant[data-open="true"] .gis-assistant-launcher { visibility:hidden; pointer-events:none; }
