/* Equation Composer V1.1 — standalone-only shell. Integrated mode does not load this file. */
.ec-standalone-page{min-height:100vh;background:#eef5ff;color:#0f1f4b}
.ec-standalone-wrap{max-width:1380px;margin:auto;padding:20px 18px}
.ec-standalone-head{margin-bottom:12px;display:flex;align-items:center;gap:10px}
.ec-standalone-brand-logo{width:42px;height:42px;object-fit:contain;flex:0 0 auto}
.ec-standalone-head-copy{min-width:0}
.ec-standalone-head h1{font-size:1.25rem;margin:0;color:#163b73;font-weight:800}
.ec-standalone-head p{color:#64748b;margin:.3rem 0 0}
.ec-standalone-stage{position:relative;min-height:720px;border:1px solid #d8e5f5;border-radius:18px;background:linear-gradient(145deg,#fff,#f8fbff);overflow:hidden;box-shadow:0 14px 34px rgba(15,31,75,.07)}
.ec-standalone-composer{padding:92px 18px 18px}
.ec-standalone-status{position:absolute;right:12px;bottom:10px;z-index:2;padding:5px 9px;border:1px solid #dce7f5;border-radius:9px;background:rgba(255,255,255,.94);color:#64748b;font-size:.78rem;box-shadow:0 2px 8px rgba(15,31,75,.05)}
.ec-standalone-full-host{position:fixed;z-index:20;top:88px;right:24px;width:min(1180px,calc(100vw - 48px));height:min(760px,calc(100dvh - 112px));overflow:auto;border:1px solid #cad9eb;border-radius:18px;background:#f7faff;box-shadow:0 24px 70px rgba(15,31,75,.24);resize:both}
.ec-standalone-full-host:empty{display:none}
@media(max-width:767.98px){.ec-standalone-wrap{padding:12px 8px}.ec-standalone-head{align-items:flex-start}.ec-standalone-head h1{font-size:1.05rem}.ec-standalone-stage{min-height:calc(100dvh - 108px);border-radius:14px}.ec-standalone-composer{padding:78px 8px 14px}.ec-standalone-status{right:8px;bottom:8px}.ec-standalone-full-host{top:70px;right:8px;width:calc(100vw - 16px);height:calc(100dvh - 82px);border-radius:14px;resize:none}}

/* V2.0.4 / B01 PATCH_03 — Full Tool safe lane.
   JS updates these variables from the live floating-toolbar bounds so the
   additive Full Tool surface never opens underneath toolbar chrome. */
.ec-standalone-full-host{
  top:var(--ec-full-safe-top,88px);
  left:var(--ec-full-safe-left,auto);
  right:var(--ec-full-safe-right,24px);
  width:var(--ec-full-safe-width,min(1180px,calc(100vw - 48px)));
  height:var(--ec-full-safe-height,min(760px,calc(100dvh - 112px)));
  max-width:calc(100vw - 16px);
  max-height:calc(100dvh - 16px);
}
@media(max-width:767.98px){
  .ec-standalone-full-host{
    top:var(--ec-full-safe-top,70px);
    left:var(--ec-full-safe-left,8px);
    right:var(--ec-full-safe-right,8px);
    width:var(--ec-full-safe-width,auto);
    height:var(--ec-full-safe-height,calc(100dvh - 82px));
  }
}

/* V2.0.5 / B01 PATCH_04 — desktop-like Full Tool window chrome.
   Standalone Host owns drag/resize; integrated mode remains Host-owned. */
.ec-standalone-full-host{
  min-width:min(620px,calc(100vw - 16px));
  min-height:min(420px,calc(100dvh - 16px));
  resize:none;
  overflow:auto;
  overscroll-behavior:contain;
}
.ec-standalone-full-host[data-ec-window-manual="true"]{
  right:auto;
}
.ec-standalone-full-host .ec-full-appbar{
  cursor:move;
  user-select:none;
}
.ec-standalone-full-host .ec-full-appbar a,
.ec-standalone-full-host .ec-full-appbar button,
.ec-standalone-full-host .ec-full-appbar input,
.ec-standalone-full-host .ec-full-appbar select{cursor:pointer;user-select:auto}
.ec-full-resize-handle{position:absolute;z-index:60;touch-action:none;user-select:none}
.ec-full-resize-handle[data-edge="n"]{left:12px;right:12px;top:-4px;height:9px;cursor:n-resize}
.ec-full-resize-handle[data-edge="s"]{left:12px;right:12px;bottom:-4px;height:9px;cursor:s-resize}
.ec-full-resize-handle[data-edge="e"]{top:12px;bottom:12px;right:-4px;width:9px;cursor:e-resize}
.ec-full-resize-handle[data-edge="w"]{top:12px;bottom:12px;left:-4px;width:9px;cursor:w-resize}
.ec-full-resize-handle[data-edge="ne"]{top:-5px;right:-5px;width:16px;height:16px;cursor:ne-resize}
.ec-full-resize-handle[data-edge="nw"]{top:-5px;left:-5px;width:16px;height:16px;cursor:nw-resize}
.ec-full-resize-handle[data-edge="se"]{bottom:-5px;right:-5px;width:16px;height:16px;cursor:se-resize}
.ec-full-resize-handle[data-edge="sw"]{bottom:-5px;left:-5px;width:16px;height:16px;cursor:sw-resize}
@media(max-width:767.98px), (pointer:coarse){
  .ec-standalone-full-host{min-width:0;min-height:0}
  .ec-full-resize-handle{display:none}
  .ec-standalone-full-host .ec-full-appbar{cursor:default}
}
