/* Оболочка: приложение в iframe под Штурманом */
.vzlet-app-frame{
  position:fixed;inset:0;width:100%;height:100%;border:0;z-index:40;background:#14161a;display:none;
  /* height переопределяется vzlet-nav.css на мобилке под таббар */
  opacity:1;transition:opacity .18s ease;
}
.vzlet-shell-veil{
  position:fixed;inset:0;z-index:45;pointer-events:none;
  background:#14161a;opacity:0;transition:opacity .16s ease;display:none;
}
.vzlet-shell-veil.show{display:block;opacity:1;pointer-events:auto}
html.vzlet-shell-active,html.vzlet-shell-active body{overflow:hidden;height:100%;max-height:100%;overscroll-behavior:none}
html.vzlet-shell-fading .vzlet-app-frame-active{opacity:.92}
.shturman-fab{
  position:fixed;z-index:58;right:12px;
  bottom:calc(16px + env(safe-area-inset-bottom) + var(--vzlet-tab-h, 0px));
  width:52px;height:52px;border-radius:50%;border:1px solid #f3ffc9;
  background:linear-gradient(165deg,#e8f7a8 0%,#b7d45e 48%,#7ea338 100%);color:#14200a;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  box-shadow:0 0 0 3px #b6d36a73,0 10px 24px #000a,0 0 20px #d4ee8a8c;
}
.shturman-fab svg{width:28px;height:28px}
.shturman-fab:hover{
  border-color:#fbffe4;
  background:linear-gradient(165deg,#f5ffc6 0%,#c9e57a 48%,#90b648 100%);
}
.shturman-fab:active{transform:scale(.97)}
.shturman-fab:focus-visible{outline:2px solid #f5ffc6;outline-offset:3px}
.shturman-panel{
  position:fixed;z-index:59;right:12px;
  bottom:calc(78px + env(safe-area-inset-bottom) + var(--vzlet-tab-h, 0px));
  width:min(420px, calc(100vw - 24px));max-height:min(70dvh, 640px);
  display:none;flex-direction:column;background:#1b1e23;border:1px solid #333941;
  border-radius:16px;box-shadow:0 20px 50px #000b;overflow:hidden;
  color:#eceef1;font:14px/1.45 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}
.shturman-panel.open{display:flex}
.shturman-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;border-bottom:1px solid #333941}
.shturman-head h3{margin:0;font-size:14px}
.shturman-head small{display:block;color:#9aa3ad;font-size:10px;margin-top:2px}
.shturman-tools{display:flex;gap:6px;flex:0 0 auto}
.shturman-tool{
  height:28px;padding:0 8px;border-radius:8px;border:1px solid #333941;background:#23272e;
  color:#eceef1;font:inherit;font-size:11px;cursor:pointer;
}
.shturman-tool:hover{border-color:#8aa15c}
.shturman-msgs{padding:12px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:8px;min-height:120px}
.shturman-msg{max-width:90%;padding:8px 11px;border-radius:12px;font-size:12.5px;line-height:1.45;white-space:pre-wrap}
.shturman-bot{
  display:flex;flex-direction:column;align-items:stretch;white-space:normal;
  background:#23272e;border:1px solid #333941;align-self:flex-start;border-bottom-left-radius:4px;
}
.shturman-body{overflow-wrap:anywhere}
.shturman-body p{margin:0 0 6px}
.shturman-body p:last-child,.shturman-body ul:last-child,.shturman-body ol:last-child,.shturman-body pre:last-child,.shturman-h:last-child{margin-bottom:0}
.shturman-h{font-weight:650;margin:0 0 4px}
.shturman-body ul,.shturman-body ol{margin:0 0 6px;padding-left:1.2em}
.shturman-body li{margin:1px 0}
.shturman-body a{color:#d5ee9a}
.shturman-body code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;background:#14161a;padding:0 3px;border-radius:4px}
.shturman-body pre{margin:0 0 6px;padding:8px;background:#14161a;border-radius:8px;overflow:auto;white-space:pre-wrap}
.shturman-body pre code{padding:0;background:none}
.shturman-copy{
  align-self:flex-start;margin-top:8px;height:24px;padding:0 8px;border-radius:8px;
  border:1px solid #3a424c;background:#1b1e23;color:#d5e0c4;font:inherit;font-size:11px;cursor:pointer;
}
.shturman-copy:hover,.shturman-copy.shturman-copied{border-color:#c6e184;color:#f3ffc9}
.shturman-user{background:#8aa15c26;border:1px solid #8aa15c55;align-self:flex-end;border-bottom-right-radius:4px}
.shturman-note{background:none;border:0;color:#9aa3ad;font-size:12px;align-self:stretch;text-align:left;padding:2px 2px 0}
.shturman-chips,.shturman-links{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 8px}
.shturman-chip,.shturman-link,.shturman-retry{
  font:inherit;font-size:11px;padding:6px 9px;border-radius:999px;border:1px solid #333941;
  background:#23272e;color:#eceef1;cursor:pointer;text-decoration:none;
}
.shturman-chip:hover,.shturman-link:hover,.shturman-retry:hover{border-color:#8aa15c;color:#8aa15c}
.shturman-proposal{
  align-self:stretch;padding:10px 11px;border:1px solid #8aa15c88;border-radius:12px;
  background:#8aa15c18;color:#eceef1;font-size:12px;
}
.shturman-proposal strong{display:block;margin-bottom:8px}
.shturman-proposal-line{color:#c7cdd3;font-size:11px;margin:2px 0}
.shturman-proposal-actions{display:flex;gap:7px}
.shturman-proposal-actions button{
  border:1px solid #8aa15c;border-radius:9px;background:#8aa15c;color:#14161a;
  padding:6px 10px;font:inherit;font-size:11px;cursor:pointer;
}
.shturman-proposal-actions button+button{background:#23272e;color:#eceef1;border-color:#333941}
.shturman-form{display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #333941;align-items:center}
.shturman-form input{
  flex:1;height:36px;border-radius:10px;border:1px solid #333941;background:#14161a;color:#eceef1;
  padding:0 10px;font:inherit;font-size:12.5px;outline:none;min-width:0;
}
.shturman-form input:focus{border-color:#8aa15c}
.shturman-form button{
  width:36px;height:36px;border-radius:10px;border:0;background:#8aa15c;color:#14161a;cursor:pointer;
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;
}
.shturman-form button:disabled{opacity:.5;cursor:default}
.shturman-mic{
  background:#23272e!important;color:#eceef1!important;border:1px solid #333941!important;
  user-select:none;-webkit-user-select:none;
}
.shturman-mic:hover{border-color:#8aa15c!important;color:#8aa15c!important}
.shturman-mic.mic-on{
  border-color:#d16a5a!important;color:#d16a5a!important;background:#d16a5a22!important;
}
.shturman-mic.mic-busy{opacity:.7}
.shturman-speak{
  background:#23272e!important;color:#eceef1!important;border:1px solid #333941!important;
  font-size:15px;line-height:1;
}
.shturman-speak:hover{border-color:#8aa15c!important}
.shturman-mic-dot{
  width:10px;height:10px;border-radius:50%;background:#d16a5a;
  box-shadow:0 0 0 0 #d16a5a88;animation:shturman-pulse 1.2s ease-out infinite;
}
@keyframes shturman-pulse{0%{box-shadow:0 0 0 0 #d16a5a66}70%{box-shadow:0 0 0 10px #d16a5a00}100%{box-shadow:0 0 0 0 #d16a5a00}}
.shturman-mic-spin{
  width:14px;height:14px;border:2px solid #333941;border-top-color:#8aa15c;border-radius:50%;
  animation:shturman-spin .7s linear infinite;
}
@keyframes shturman-spin{to{transform:rotate(360deg)}}
.shturman-level{
  height:3px;margin:0 12px 8px;border-radius:99px;background:#14161a;overflow:hidden;border:1px solid #333941;
}
.shturman-level[hidden]{display:none!important}
.shturman-level i{display:block;height:100%;width:0;background:#d16a5a;border-radius:99px}
@media (max-width:720px){
  .shturman-panel.open{
    left:0;right:0;top:0;bottom:0;width:auto;max-width:none;max-height:none;height:100dvh;
    border:0;border-radius:0;z-index:70;
  }
  .shturman-panel.shturman-vv{
    top:var(--vv-top, 0px);height:var(--vv-h, 100dvh);bottom:auto;max-height:none;
  }
  .shturman-msg{font-size:13.5px;max-width:92%}
  .shturman-form input{height:42px;font-size:14px}
  .shturman-form button{width:42px;height:42px}
  .shturman-fab{z-index:71}
  .shturman-fab[aria-expanded="true"]{display:none}
}
