.mc4-kite{
  --mc4-kite-bg:#061722;
  --mc4-kite-panel:#0b2230;
  --mc4-kite-surface:#102d3d;
  --mc4-kite-surface-2:#153747;
  --mc4-kite-text:#f5fbff;
  --mc4-kite-muted:#a9c1ce;
  --mc4-kite-border:rgba(109,200,242,.2);
  --mc4-kite-success:#45d990;
  --mc4-kite-warning:#ffb84d;
  --mc4-kite-danger:#ff6b7b;
  max-width:920px;
  color:var(--mc4-kite-text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.mc4-kite[data-theme="light"]{
  --mc4-kite-bg:#edf7fb;
  --mc4-kite-panel:#fff;
  --mc4-kite-surface:#f3f9fc;
  --mc4-kite-surface-2:#e8f4f9;
  --mc4-kite-text:#092232;
  --mc4-kite-muted:#58717e;
  --mc4-kite-border:#cee3ec;
}
@media(prefers-color-scheme:light){
  .mc4-kite[data-theme="auto"]{
    --mc4-kite-bg:#edf7fb;
    --mc4-kite-panel:#fff;
    --mc4-kite-surface:#f3f9fc;
    --mc4-kite-surface-2:#e8f4f9;
    --mc4-kite-text:#092232;
    --mc4-kite-muted:#58717e;
    --mc4-kite-border:#cee3ec;
  }
}
.mc4-kite *{box-sizing:border-box}
.mc4-kite [hidden]{display:none!important}
.mc4-kite button,.mc4-kite a,.mc4-kite input,.mc4-kite select{font:inherit}
.mc4-kite svg{display:block;width:22px;height:22px;fill:currentColor}

.mc4-kite--card{
  position:relative;
  overflow:hidden;
  padding:28px;
  border:1px solid var(--mc4-kite-border);
  border-radius:24px;
  background:linear-gradient(145deg,var(--mc4-kite-panel),var(--mc4-kite-bg));
  box-shadow:0 22px 70px rgba(0,20,34,.2);
}
.mc4-kite--card:after{
  position:absolute;
  z-index:0;
  right:-100px;
  top:-120px;
  width:280px;
  height:280px;
  border-radius:50%;
  background:radial-gradient(circle,color-mix(in srgb,var(--mc4-kite-accent) 22%,transparent),transparent 68%);
  content:"";
  pointer-events:none;
}
.mc4-kite__card,.mc4-kite__actions,.mc4-kite__offline{position:relative;z-index:1}
.mc4-kite__card{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:17px;
  align-items:center;
  margin-bottom:23px;
}
.mc4-kite__card-icon,.mc4-kite__brandmark{
  display:grid;
  flex:0 0 auto;
  place-items:center;
  color:#062033;
  background:var(--mc4-kite-accent);
}
.mc4-kite__card-icon{width:58px;height:58px;border-radius:18px}
.mc4-kite__brandmark{width:42px;height:42px;border-radius:13px}
.mc4-kite__card-copy{display:grid;gap:4px}
.mc4-kite__card-copy strong{font-size:20px;line-height:1.2}
.mc4-kite__card-copy>span:last-child,.mc4-kite__privacy{color:var(--mc4-kite-muted)}
.mc4-kite__eyebrow{color:var(--mc4-kite-accent)!important;font-size:11px;font-weight:800;letter-spacing:.14em}
.mc4-kite__presence{display:flex;align-items:center;gap:8px;color:var(--mc4-kite-muted);font-size:13px;white-space:nowrap}
.mc4-kite__presence i,.mc4-kite__header-status i{width:9px;height:9px;border-radius:50%;background:#8297a3}
.mc4-kite__presence--online i{background:var(--mc4-kite-success);box-shadow:0 0 0 5px rgba(69,217,144,.12)}
.mc4-kite__presence--busy i{background:var(--mc4-kite-warning)}
.mc4-kite__presence--offline i{background:var(--mc4-kite-danger)}

.mc4-kite__actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.mc4-kite__button,.mc4-kite__mode,.mc4-kite__offline a,.mc4-kite__start{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:50px;
  padding:0 21px;
  border-radius:13px;
  text-decoration:none;
  font-weight:760;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.mc4-kite__button,.mc4-kite__start{
  border:0;
  color:#062033;
  background:var(--mc4-kite-accent);
  box-shadow:0 13px 34px color-mix(in srgb,var(--mc4-kite-accent) 28%,transparent);
}
.mc4-kite__mode{border:1px solid var(--mc4-kite-border);color:var(--mc4-kite-text);background:transparent}
.mc4-kite__button:hover,.mc4-kite__mode:hover,.mc4-kite__start:hover{transform:translateY(-2px)}
.mc4-kite button:focus-visible,.mc4-kite a:focus-visible,.mc4-kite input:focus-visible,.mc4-kite select:focus-visible{outline:3px solid color-mix(in srgb,var(--mc4-kite-accent) 60%,white);outline-offset:2px}
.mc4-kite__offline{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;border-radius:14px;background:rgba(255,107,123,.1)}
.mc4-kite__offline a{color:#062033;background:var(--mc4-kite-accent)}
.mc4-kite--button{display:inline-block}
.mc4-kite--floating{position:fixed;right:28px;bottom:28px;z-index:99990}
.mc4-kite--floating .mc4-kite__button{border-radius:999px;box-shadow:0 16px 50px rgba(0,20,34,.32)}

.mc4-kite__backdrop{
  position:fixed;
  inset:0;
  z-index:100000;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(0,13,22,.78);
  backdrop-filter:blur(11px);
  animation:mc4-kite-fade .2s ease-out;
}
.mc4-kite__dialog{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  overflow:hidden;
  width:min(1180px,96vw);
  height:min(820px,92vh);
  min-height:560px;
  border:1px solid var(--mc4-kite-border);
  border-radius:24px;
  background:var(--mc4-kite-panel);
  box-shadow:0 34px 110px rgba(0,0,0,.5);
  animation:mc4-kite-rise .24s ease-out;
}
.mc4-kite__header{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:18px;
  min-height:74px;
  padding:13px 17px 13px 20px;
  border-bottom:1px solid var(--mc4-kite-border);
  background:color-mix(in srgb,var(--mc4-kite-panel) 95%,transparent);
}
.mc4-kite__brand{display:flex;align-items:center;gap:12px;min-width:0}
.mc4-kite__brand>span:last-child{display:grid;gap:2px;min-width:0}
.mc4-kite__brand strong{overflow:hidden;font-size:16px;text-overflow:ellipsis;white-space:nowrap}
.mc4-kite__brand small{color:var(--mc4-kite-muted);font-size:11px;letter-spacing:.04em}
.mc4-kite__header-status{display:flex;align-items:center;gap:8px;color:var(--mc4-kite-muted);font-size:12px;white-space:nowrap}
.mc4-kite__dialog[data-connection-state="connected"] .mc4-kite__header-status i,
.mc4-kite__dialog[data-connection-state="ready"] .mc4-kite__header-status i{background:var(--mc4-kite-success);box-shadow:0 0 0 5px rgba(69,217,144,.1)}
.mc4-kite__dialog[data-connection-state="loading"] .mc4-kite__header-status i{background:var(--mc4-kite-warning);animation:mc4-kite-pulse 1.1s ease-in-out infinite}
.mc4-kite__dialog[data-connection-state="error"] .mc4-kite__header-status i{background:var(--mc4-kite-danger)}
.mc4-kite__window-actions{display:flex;justify-content:flex-end;gap:5px}
.mc4-kite__window-actions button{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  padding:0;
  border:0;
  border-radius:11px;
  color:var(--mc4-kite-text);
  background:transparent;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.mc4-kite__window-actions button:hover{background:var(--mc4-kite-surface)}
.mc4-kite__window-actions .mc4-kite__close{font-size:29px}
.mc4-kite__body{position:relative;min-width:0;min-height:0;background:var(--mc4-kite-bg)}

.mc4-kite__lobby{display:grid;height:100%;grid-template-columns:minmax(0,1.12fr) minmax(380px,.88fr)}
.mc4-kite__welcome{
  position:relative;
  display:flex;
  overflow:hidden;
  flex-direction:column;
  justify-content:center;
  padding:clamp(42px,6vw,84px);
  background:
    radial-gradient(circle at 85% 20%,color-mix(in srgb,var(--mc4-kite-accent) 22%,transparent),transparent 27%),
    linear-gradient(145deg,var(--mc4-kite-bg),color-mix(in srgb,var(--mc4-kite-bg) 78%,#075178));
}
.mc4-kite__welcome:after{
  position:absolute;
  right:-90px;
  bottom:-120px;
  width:360px;
  height:360px;
  border:1px solid color-mix(in srgb,var(--mc4-kite-accent) 22%,transparent);
  border-radius:50%;
  box-shadow:0 0 0 40px color-mix(in srgb,var(--mc4-kite-accent) 4%,transparent),0 0 0 90px color-mix(in srgb,var(--mc4-kite-accent) 3%,transparent);
  content:"";
  pointer-events:none;
}
.mc4-kite__welcome>*{position:relative;z-index:1}
.mc4-kite__welcome h2{max-width:610px;margin:16px 0;font-size:clamp(34px,4.1vw,58px);font-weight:780;line-height:1.04;letter-spacing:-.035em}
.mc4-kite__welcome>p{max-width:580px;margin:0;color:var(--mc4-kite-muted);font-size:17px;line-height:1.65}
.mc4-kite__benefits{display:flex;flex-wrap:wrap;gap:10px;margin:29px 0}
.mc4-kite__benefits span{display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid var(--mc4-kite-border);border-radius:999px;background:color-mix(in srgb,var(--mc4-kite-surface) 68%,transparent);font-size:12px;font-weight:650}
.mc4-kite__benefits i{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;color:#052235;background:var(--mc4-kite-success);font-size:11px;font-style:normal}
.mc4-kite__wildix-note{display:grid;gap:4px;max-width:520px;margin-top:16px;padding:17px 19px;border-left:3px solid var(--mc4-kite-accent);border-radius:0 14px 14px 0;background:color-mix(in srgb,var(--mc4-kite-surface) 72%,transparent)}
.mc4-kite__wildix-note strong{font-size:14px}
.mc4-kite__wildix-note span{color:var(--mc4-kite-muted);font-size:12px;line-height:1.5}

.mc4-kite__connect-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  padding:clamp(34px,5vw,62px);
  background:var(--mc4-kite-panel);
}
.mc4-kite__connect-head{display:grid;gap:5px;margin-bottom:24px}
.mc4-kite__connect-head span{color:var(--mc4-kite-accent);font-size:11px;font-weight:800;letter-spacing:.13em}
.mc4-kite__connect-head strong{font-size:28px}
.mc4-kite__preflight{display:grid;grid-template-columns:auto 1fr;gap:11px;align-items:center;margin-bottom:22px;padding:14px;border:1px solid var(--mc4-kite-border);border-radius:14px;background:var(--mc4-kite-surface)}
.mc4-kite__preflight-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--mc4-kite-surface-2);font-weight:800}
.mc4-kite__preflight>span:last-child{display:grid;gap:2px}
.mc4-kite__preflight strong{font-size:13px}
.mc4-kite__preflight small{color:var(--mc4-kite-muted);font-size:11px;line-height:1.45}
.mc4-kite__preflight.is-ready .mc4-kite__preflight-icon{color:#052235;background:var(--mc4-kite-success)}
.mc4-kite__preflight.is-warning .mc4-kite__preflight-icon{color:#3c2800;background:var(--mc4-kite-warning)}
.mc4-kite__identity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mc4-kite__identity:has(> :only-child){grid-template-columns:1fr}
.mc4-kite__field{display:grid;gap:7px;margin:0 0 15px}
.mc4-kite__field>span{color:var(--mc4-kite-muted);font-size:12px;font-weight:700}
.mc4-kite__field input,.mc4-kite__field select{
  width:100%;
  min-height:48px;
  padding:10px 13px;
  border:1px solid var(--mc4-kite-border);
  border-radius:12px;
  color:var(--mc4-kite-text);
  background:var(--mc4-kite-surface);
}
.mc4-kite__start{width:100%;min-height:56px;margin-top:3px;font-size:15px}
.mc4-kite__start-note,.mc4-kite__privacy{display:block;margin-top:11px;text-align:center;font-size:11px;line-height:1.5}
.mc4-kite__privacy{margin-top:5px}
.mc4-kite__privacy a{color:inherit;text-decoration:underline}

.mc4-kite__loading,.mc4-kite__error{
  display:grid;
  height:100%;
  place-content:center;
  justify-items:center;
  gap:12px;
  padding:30px;
  text-align:center;
  background:
    radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--mc4-kite-accent) 12%,transparent),transparent 28%),
    var(--mc4-kite-bg);
}
.mc4-kite__loading>strong,.mc4-kite__error>strong{font-size:21px}
.mc4-kite__loading>small,.mc4-kite__error p{max-width:500px;margin:0;color:var(--mc4-kite-muted);line-height:1.55}
.mc4-kite__spinner{width:52px;height:52px;border:4px solid var(--mc4-kite-border);border-top-color:var(--mc4-kite-accent);border-radius:50%;animation:mc4-kite-spin .8s linear infinite}
.mc4-kite__loading button,.mc4-kite__error button,.mc4-kite__error a{min-height:42px;padding:0 16px;border:1px solid var(--mc4-kite-border);border-radius:11px;color:var(--mc4-kite-text);background:var(--mc4-kite-surface);text-decoration:none;cursor:pointer}
.mc4-kite__error>span{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;color:#fff;background:var(--mc4-kite-danger);font-size:27px;font-weight:800}
.mc4-kite__error>div{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin-top:5px}
.mc4-kite__error button{border-color:transparent;color:#062033;background:var(--mc4-kite-accent);font-weight:750}
.mc4-kite__frame{width:100%;height:100%;border:0;background:#fff}

.mc4-kite__backdrop.is-minimized{place-items:end;background:transparent;backdrop-filter:none;pointer-events:none}
.mc4-kite__dialog.is-minimized{width:min(430px,calc(100vw - 32px));height:auto;min-height:0;border-radius:18px;pointer-events:auto}
.mc4-kite__dialog.is-minimized .mc4-kite__body,.mc4-kite__dialog.is-minimized .mc4-kite__header-status,.mc4-kite__dialog.is-minimized [data-mc4-kite-reload],.mc4-kite__dialog.is-minimized [data-mc4-kite-fullscreen]{display:none!important}
.mc4-kite__dialog.is-minimized .mc4-kite__header{grid-template-columns:1fr auto;border:0}
.mc4-kite__dialog.is-maximized,.mc4-kite__dialog:fullscreen{width:100vw;height:100vh;max-width:none;max-height:none;border:0;border-radius:0}
.mc4-kite-open{overflow:hidden}
.mc4-kite-notice{padding:14px;border-left:4px solid #dba617;background:#fff7db;color:#382d0b}

@keyframes mc4-kite-spin{to{transform:rotate(360deg)}}
@keyframes mc4-kite-pulse{50%{opacity:.4}}
@keyframes mc4-kite-fade{from{opacity:0}}
@keyframes mc4-kite-rise{from{opacity:0;transform:translateY(12px) scale(.985)}}

@media(max-width:900px){
  .mc4-kite__dialog{height:min(900px,94vh)}
  .mc4-kite__lobby{grid-template-columns:1fr;overflow:auto}
  .mc4-kite__welcome{min-height:300px;padding:42px}
  .mc4-kite__welcome h2{font-size:40px}
  .mc4-kite__connect-card{padding:38px 42px}
}
@media(max-width:700px){
  .mc4-kite--card{padding:20px;border-radius:18px}
  .mc4-kite__card{grid-template-columns:auto 1fr}
  .mc4-kite__presence{grid-column:2}
  .mc4-kite__actions>*{width:100%}
  .mc4-kite__backdrop{padding:0}
  .mc4-kite__dialog{width:100%;height:100%;min-height:0;border:0;border-radius:0}
  .mc4-kite__header{grid-template-columns:1fr auto;min-height:66px;padding:10px 9px 10px 13px}
  .mc4-kite__header-status{display:none}
  .mc4-kite__window-actions{gap:1px}
  .mc4-kite__window-actions button{width:37px;height:37px}
  .mc4-kite__window-actions [data-mc4-kite-minimize],.mc4-kite__window-actions [data-mc4-kite-fullscreen]{display:none}
  .mc4-kite__welcome{min-height:310px;padding:34px 25px}
  .mc4-kite__welcome h2{font-size:34px}
  .mc4-kite__welcome>p{font-size:15px}
  .mc4-kite__benefits{margin:22px 0 10px}
  .mc4-kite__wildix-note{display:none}
  .mc4-kite__connect-card{padding:30px 22px 36px}
  .mc4-kite__identity{grid-template-columns:1fr}
  .mc4-kite--floating{right:16px;bottom:16px}
  .mc4-kite--floating .mc4-kite__button span:last-child{display:none}
  .mc4-kite--floating .mc4-kite__button{min-width:58px;height:58px;padding:0}
}
@media(prefers-reduced-motion:reduce){
  .mc4-kite__backdrop,.mc4-kite__dialog{animation:none}
  .mc4-kite__button,.mc4-kite__mode,.mc4-kite__start{transition:none}
}
