@font-face { font-family: "Source Sans 3"; font-weight: 400; src: url("panel/fonts/SourceSans3-Regular.otf.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; src: url("panel/fonts/SourceSans3-Semibold.otf.woff2") format("woff2"); }

:root {
  --pasteboard: #3a3a3a;   /* Illustrator-style canvas grey */
  --panel: #0f0e0e;
  --dark-200: #1f1f1f;
  --dark-400: #878787;
  --text: #ccc9c9;
  --gold: #f8ce62;
  --panel-w: 434px;        /* CEP panel default width (manifest Geometry) */
  --gutter: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--pasteboard); }
body { font-family: "Source Sans 3", -apple-system, sans-serif; color: var(--text); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

#stage { position: fixed; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
#stage.is-panning { cursor: grabbing; }
#artboard { position: absolute; background: #fff; box-shadow: 0 2px 18px rgba(0,0,0,.35); pointer-events: none; }
#dots { position: absolute; pointer-events: none; }

/* empty state sits in the free area left of the panel */
.empty { position: absolute; top: 50%; left: calc((100% - var(--panel-w) - var(--gutter)) / 2);
  transform: translate(-50%, -50%); width: min(440px, calc(100% - var(--panel-w) - 64px)); min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(15,14,14,.35); border: 2px dashed rgba(248,206,98,.55); border-radius: 16px;
  color: var(--gold); font: inherit; cursor: pointer; padding: 24px; text-align: center; }
.empty:hover { background: rgba(248,206,98,.08); border-color: var(--gold); }
.empty-title { font-size: 22px; font-weight: 600; }
.empty-sub { font-size: 14px; color: var(--text); opacity: .75; }

.drop-hint { position: absolute; inset: 12px; border: 2px dashed var(--gold); border-radius: 16px;
  background: rgba(248,206,98,.08); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 22px; font-weight: 600; pointer-events: none; z-index: 5; }

.zoombar { position: absolute; left: var(--gutter); bottom: var(--gutter); display: flex; align-items: center; gap: 4px;
  background: var(--panel); border: 1px solid var(--dark-200); border-radius: 10px; padding: 4px; font-size: 13px; cursor: default; }
.zoombar button { background: transparent; color: var(--text); border: 0; border-radius: 6px; font: inherit; min-width: 28px; height: 28px; padding: 0 8px; cursor: pointer; }
.zoombar button:hover { background: var(--dark-200); }
#zoomPct { min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.art-name { color: var(--dark-400); padding: 0 8px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.float { position: fixed; top: var(--gutter); right: var(--gutter); width: var(--panel-w);
  height: calc(100% - 2 * var(--gutter)); max-height: 1400px; z-index: 10;
  border-radius: 12px; overflow: hidden; background: var(--panel);
  box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); }
.float iframe { display: block; width: 100%; height: 100%; border: 0; }

/* phone: the panel docks as a bottom sheet and the canvas uses the top */
@media (max-width: 760px) {
  :root { --panel-w: 0px; }
  .float { top: auto !important; left: 0 !important; right: 0; bottom: 0; width: 100%; height: 58%; border-radius: 14px 14px 0 0; }
  .empty { left: 50%; top: 21%; width: calc(100% - 32px); min-height: 150px; }
  .zoombar { bottom: calc(58% + 10px); }
  .art-name { display: none; }
}
