.fp-studio {
  --fp-accent:#ffd700;
  --fp-ink:#090900;
  --fp-panel:rgba(10,10,20,.9);
  margin-top:18px;
  border:1px solid rgba(255,215,0,.2);
  border-radius:24px;
  background:linear-gradient(145deg,rgba(18,18,29,.98),rgba(5,5,14,.98));
  box-shadow:0 24px 70px rgba(0,0,0,.35);
  overflow:hidden;
}
.fp-studio.is-expanded {
  position:fixed;
  inset:12px;
  z-index:10020;
  margin:0;
  display:flex;
  flex-direction:column;
  max-height:calc(100dvh - 24px);
  box-shadow:0 0 0 9999px rgba(0,0,8,.88),0 32px 90px rgba(0,0,0,.72);
}
.fp-head {
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  padding:20px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.fp-head h3 {
  margin:4px 0 6px;
  color:#fff;
  font-size:clamp(20px,2.4vw,30px);
}
.fp-head p {
  margin:0;
  max-width:660px;
  color:var(--muted,#aaa);
  font-size:12px;
  line-height:1.55;
}
.fp-kicker {
  color:var(--fp-accent);
  font:800 10px/1.2 Poppins,sans-serif;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.fp-head-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}
.fp-dirty {
  padding:7px 10px;
  border-radius:999px;
  color:#ffe9a3;
  background:rgba(255,215,0,.09);
  border:1px solid rgba(255,215,0,.2);
  font-size:10px;
  font-weight:800;
}
.fp-btn {
  min-height:40px;
  padding:9px 13px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:12px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font:800 11px Poppins,sans-serif;
  cursor:pointer;
}
.fp-btn:hover:not(:disabled),
.fp-btn:focus-visible {
  border-color:rgba(255,215,0,.55);
  outline:none;
}
.fp-btn:disabled {
  opacity:.42;
  cursor:not-allowed;
}
.fp-btn.primary {
  border-color:var(--fp-accent);
  background:var(--fp-accent);
  color:var(--fp-ink);
}
.fp-btn.ghost {
  background:rgba(255,255,255,.045);
}
.fp-btn.danger {
  border-color:rgba(255,92,115,.36);
  background:rgba(255,92,115,.1);
  color:#ffb9c4;
}
.fp-area-tabs {
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:12px 20px;
  border-bottom:1px solid rgba(255,255,255,.07);
  scrollbar-width:none;
}
.fp-area-tabs::-webkit-scrollbar {
  display:none;
}
.fp-area-tabs button {
  flex:0 0 auto;
  min-height:36px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:var(--muted,#aaa);
  font:800 11px Poppins,sans-serif;
  cursor:pointer;
}
.fp-area-tabs button[aria-selected="true"] {
  border-color:var(--fp-accent);
  background:var(--fp-accent);
  color:var(--fp-ink);
}
.fp-area-tabs button.add {
  border-style:dashed;
  color:#ffe178;
}
.fp-toolbar {
  display:flex;
  align-items:flex-end;
  flex-wrap:wrap;
  gap:9px;
  padding:12px 20px;
  background:rgba(0,0,8,.45);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.fp-toolbar label,
.fp-inspector label {
  display:grid;
  gap:5px;
  color:var(--muted,#aaa);
  font-size:10px;
  font-weight:800;
}
.fp-toolbar select,
.fp-toolbar input:not([type="range"]),
.fp-inspector input,
.fp-inspector select {
  min-height:40px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:11px;
  padding:8px 10px;
  background:#10101b;
  color:#fff;
  font:700 11px Inter,sans-serif;
}
.fp-toolbar select:focus,
.fp-toolbar input:not([type="range"]):focus,
.fp-inspector input:focus,
.fp-inspector select:focus {
  border-color:var(--fp-accent);
  outline:none;
}
.fp-zoom {
  min-width:130px;
}
.fp-zoom input {
  accent-color:var(--fp-accent);
}
.fp-workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) 240px;
  min-height:440px;
}
.fp-studio.is-expanded .fp-workspace {
  flex:1;
  min-height:0;
}
.fp-stage-wrap {
  position:relative;
  min-width:0;
  overflow:auto;
  padding:18px;
  background:radial-gradient(circle at 20% 5%,rgba(255,215,0,.06),transparent 34%),#05050d;
  overscroll-behavior:contain;
}
.fp-stage {
  min-width:620px;
  border:1px solid rgba(255,215,0,.2);
  border-radius:18px;
  overflow:hidden;
  background:#070712;
  box-shadow:0 18px 44px rgba(0,0,0,.42);
}
.fp-stage svg {
  display:block;
  width:100%;
  aspect-ratio:1000 / 620;
  transform-origin:top left;
  touch-action:none;
  user-select:none;
}
.fp-stage-hint {
  position:sticky;
  left:14px;
  bottom:12px;
  width:max-content;
  max-width:min(520px,calc(100% - 28px));
  margin-top:10px;
  padding:8px 11px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  background:rgba(5,5,14,.88);
  color:var(--muted,#aaa);
  font-size:10px;
  font-weight:700;
  backdrop-filter:blur(12px);
}
.fp-canvas-bg {
  cursor:crosshair;
}
.fp-object {
  cursor:grab;
}
.fp-object:active {
  cursor:grabbing;
}
.fp-object rect,
.fp-object path {
  vector-effect:non-scaling-stroke;
  transition:stroke .18s ease,fill .18s ease;
}
.fp-object text {
  fill:#eaeaf4;
  text-anchor:middle;
  dominant-baseline:middle;
  font:800 12px Poppins,sans-serif;
  pointer-events:none;
}
.fp-object .fp-subtext {
  fill:rgba(255,255,255,.65);
  font-size:8px;
}
.fp-structure rect,
.fp-structure path {
  fill:rgba(255,255,255,.035);
  stroke:rgba(255,255,255,.2);
  stroke-width:2;
  stroke-dasharray:8 5;
}
.fp-fixture rect,
.fp-fixture path {
  fill:rgba(214,51,255,.08);
  stroke:rgba(214,51,255,.45);
  stroke-width:2;
}
.fp-kind-kitchen rect,
.fp-kind-storage rect {
  fill:rgba(255,255,255,.045);
  stroke:rgba(255,255,255,.24);
}
.fp-kind-bar rect {
  fill:rgba(25,201,221,.1);
  stroke:rgba(25,201,221,.52);
}
.fp-kind-bench rect {
  fill:rgba(255,184,77,.1);
  stroke:rgba(255,184,77,.55);
}
.fp-kind-couch rect {
  fill:rgba(77,163,255,.11);
  stroke:rgba(77,163,255,.58);
}
.fp-table .fp-table-body {
  fill:#161625;
  stroke:rgba(255,215,0,.5);
  stroke-width:2;
}
.fp-table .fp-chair {
  fill:#7b1735;
  stroke:#ea5d7f;
  stroke-width:1.5;
  vector-effect:non-scaling-stroke;
}
.fp-table.is-selected .fp-chair {
  fill:#ffd700;
  stroke:#fff3a3;
}
.fp-table .fp-chair.is-arranging {
  cursor:grab;
  pointer-events:all;
  filter:drop-shadow(0 0 5px rgba(255,215,0,.8));
}
.fp-table .fp-chair.is-arranging:active { cursor:grabbing; }
.fp-table .fp-chair.is-seat-selected {
  fill:#19c9dd;
  stroke:#d8fbff;
  stroke-width:3;
  filter:drop-shadow(0 0 8px rgba(25,201,221,.95));
}
.fp-seat-rotation { display:grid; gap:9px; margin-top:12px; padding:11px; border:1px solid rgba(25,201,221,.28); border-radius:12px; background:rgba(25,201,221,.07); }
.fp-seat-rotation>div { display:flex; align-items:center; justify-content:space-between; gap:7px; }
.fp-seat-rotation>div:last-child { display:grid; grid-template-columns:1fr 1.35fr 1fr; }
.fp-seat-rotation strong { font-size:11px; }
.fp-seat-rotation span { color:#71eaf7; font-size:11px; font-weight:900; }
.fp-seat-rotation input { width:100%; accent-color:#19c9dd; }
.fp-seat-rotation .fp-btn { min-height:34px; padding:0 7px; font-size:9px; }
.fp-table .fp-bar-stool {
  fill:#7b1735;
  stroke:#ea5d7f;
  stroke-width:2;
  vector-effect:non-scaling-stroke;
}
.fp-table.is-selected .fp-bar-stool {
  fill:#ffd700;
  stroke:#fff3a3;
}
.fp-object.is-selected .fp-table-body,
.fp-object.is-selected:not(.fp-table) rect,
.fp-object.is-selected path {
  stroke:#fff06d;
  stroke-width:4;
  filter:drop-shadow(0 0 8px rgba(255,215,0,.35));
}
.fp-object.is-locked {
  cursor:not-allowed;
  opacity:.72;
}
.fp-object.is-hidden {
  opacity:.34;
}
.fp-object.is-hidden rect,
.fp-object.is-hidden path {
  stroke-dasharray:4 5;
}
.fp-inspector {
  display:grid;
  align-content:start;
  gap:12px;
  padding:18px;
  border-left:1px solid rgba(255,255,255,.08);
  background:rgba(8,8,17,.92);
  overflow-y:auto;
}
.fp-inspector-head,
.fp-inspector-empty {
  display:grid;
  gap:4px;
}
.fp-inspector-head strong,
.fp-inspector-empty strong {
  color:#fff;
  font-size:13px;
}
.fp-inspector-head span,
.fp-inspector-empty span {
  color:var(--muted,#aaa);
  font-size:10px;
  line-height:1.45;
}
.fp-inspector-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.fp-inspector-grid label:last-child {
  grid-column:1 / -1;
}
.fp-inspector-actions {
  display:grid;
  gap:8px;
  margin-top:4px;
}
.fp-status {
  min-height:20px;
  padding:10px 20px 14px;
  color:var(--muted,#aaa);
  font-size:10px;
}
.fp-status.is-success {
  color:#9df5ca;
}
.fp-status.is-note,
.fp-status.is-warning {
  color:#ffe9a3;
}
.fp-status.is-error {
  color:#ffb7c2;
}
@media (max-width:900px) {
  .fp-head {
    flex-direction:column;
  }
  .fp-head-actions {
    justify-content:flex-start;
  }
  .fp-workspace {
    grid-template-columns:1fr;
  }
  .fp-inspector {
    border-left:0;
    border-top:1px solid rgba(255,255,255,.08);
    max-height:300px;
  }
}
@media (max-width:620px) {
  .fp-studio.is-expanded {
    inset:0;
    max-height:100dvh;
    border-radius:0;
  }
  .fp-head,
  .fp-toolbar,
  .fp-area-tabs {
    padding-left:13px;
    padding-right:13px;
  }
  .fp-head-actions {
    width:100%;
  }
  .fp-head-actions .fp-btn {
    flex:1 1 42%;
  }
  .fp-workspace {
    min-height:380px;
  }
  .fp-stage-wrap {
    padding:10px;
  }
  .fp-stage {
    min-width:560px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .fp-object rect,
  .fp-object path {
    transition:none;
  }
}
