/* Copyright (c) 2026. All rights reserved. See LICENSE. */
/* Drawing a facade on the elevations (facadedraw.js), for the form and Studio alike */
.fd {
  width: min(1180px, calc(100vw - 32px)); height: min(860px, calc(100vh - 32px)); padding: 0;
  border: 1px solid var(--graphite); border-radius: 4px; background: var(--paper); color: var(--graphite);
  box-shadow: 0 24px 60px rgba(35, 39, 43, .35); font-family: var(--font);
}
.fd[open] { display: flex; flex-direction: column; }
.fd::backdrop { background: rgba(35, 39, 43, .45); }
.fd-head { display: flex; align-items: flex-start; gap: 16px; padding: 14px 20px 10px; border-bottom: 1px solid var(--rule); }
.fd-head > div { flex: 1; }
.fd-head h2 { margin: 0; font-size: 30px; line-height: 1; font-weight: 740; font-stretch: 64%; }
.fd-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--lead); max-width: 80ch; }
.fd-x { border: 0; background: none; padding: 0 4px; cursor: pointer; font-size: 26px; line-height: 1; color: var(--lead); }
.fd-x:hover { color: var(--graphite); }
.fd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 20px; border-bottom: 1px solid var(--rule); }
.fd-bar button {
  padding: 6px 12px; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--paper);
  font: inherit; font-size: 13.5px; cursor: pointer; color: var(--graphite);
}
.fd-bar button:hover:not(:disabled) { background: var(--film); }
.fd-bar button:disabled { opacity: .45; cursor: default; }
.fd-sides, .fd-tools { display: flex; }
.fd-sides button, .fd-tools button { border-radius: 0; margin-left: -1px; }
.fd-sides button:first-child, .fd-tools button:first-child { border-radius: 3px 0 0 3px; margin-left: 0; }
.fd-sides button:last-child, .fd-tools button:last-child { border-radius: 0 3px 3px 0; }
.fd-sides button[aria-selected="true"], .fd-tools button[aria-pressed="true"] {
  background: var(--graphite); border-color: var(--graphite); color: var(--paper); position: relative;
}
.fd-pick { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.fd-pick span { color: var(--lead); }
.fd-pick select { padding: 5px 6px; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--paper); font: inherit; font-size: 13.5px; }
.fd-stage { flex: 1; min-height: 0; padding: 12px 20px; background: #f3f5f2; display: flex; }
.fd-view { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; cursor: crosshair; touch-action: none; user-select: none; }
.fd-view[data-tool="erase"] { cursor: default; }
.fd-view.loading svg { opacity: .7; transition: opacity .2s .25s; }
.fd-view svg { width: 100%; height: 100%; max-height: 100%; display: block; background: #fff; border: 1px solid var(--rule); }
.fd-mark { fill: none; stroke: var(--ink); stroke-width: 2px; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.fd-view[data-tool="erase"] .fd-mark { fill: rgba(43, 111, 158, .06); pointer-events: all; cursor: pointer; }
.fd-view[data-tool="erase"] .fd-mark.hot { fill: rgba(200, 50, 43, .18); stroke: var(--red); stroke-dasharray: none; }
.fd-drag { fill: rgba(43, 111, 158, .18); stroke: var(--ink); stroke-width: 2px; vector-effect: non-scaling-stroke; pointer-events: none; }
.fd-foot { display: flex; align-items: center; gap: 14px; padding: 10px 20px; border-top: 1px solid var(--rule); }
.fd-status { flex: 1; font-size: 13px; color: var(--lead); }
.fd-status.bad { color: var(--red); }
.fd-done {
  padding: 9px 26px; border: 1px solid var(--graphite); border-radius: 3px; background: var(--graphite); color: var(--paper);
  font: inherit; font-size: 15px; cursor: pointer;
}
.fd-done:hover { background: #3a4046; }
