/* Sweet3D — photo for laser engraving. Uses the editors' layout and classes from /style.css and
   /porta-chaves/porta-chaves.css (.kc-styles); only the extras live here. */
@import url('/porta-chaves/porta-chaves.css');

/* the stage: the picture sits in the free space between the side rail and the settings card */
.fl-stage { display: flex; align-items: center; justify-content: center; padding: 96px 392px 96px 100px;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--panel2) 70%, transparent), transparent 70%); }
.fl-empty { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; max-width: 520px; }
.fl-empty[hidden] { display: none; }
.fl-hero { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.fl-hero img { width: min(340px, 40vh); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.fl-hero figcaption { display: flex; flex-direction: column; gap: 4px; max-width: 420px; }
.fl-hero b { font: 800 20px/1.2 var(--head); }
.fl-drop { max-width: 520px; }
.fl-result { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fl-result img { max-width: 100%; max-height: calc(100vh - 230px); object-fit: contain; display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .28)); }
.fl-result figcaption { text-align: center; max-width: 440px; }
.fl-crop { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.fl-crop canvas { cursor: grab; touch-action: none; border-radius: 6px; box-shadow: var(--shadow); }
.fl-crop canvas:active { cursor: grabbing; }
.dock label.dock-new { border: none; background: transparent; padding: 10px 14px; border-radius: 13px; font-weight: 600; font-size: 13px;
  color: var(--accent); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.dock label.dock-new b { font-size: 16px; }

/* materials: a little swatch (bare / engraved) and the name */
.fl-mats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fl-mats button { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--panel2); color: var(--text); font-size: 12.5px; font-weight: 600; text-align: left; min-width: 0; }
.fl-mats button i { flex: none; width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.fl-mats button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-mats button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.fl-shapes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fl-shapes button { font-size: 11px; padding: 7px 2px 6px; }
.fl-shapes svg { width: 44px; height: 24px; }
.fl-aspect { flex-wrap: wrap; }
.fl-aspect button { flex: 1 0 22%; font-size: 12px; }
.fl-zoom { margin-top: 10px; }
.fl-check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.fl-check input { width: 18px; height: 18px; accent-color: var(--accent); }
#text { width: 100%; }
#text:disabled { opacity: .5; }
.fl-editor .font-grid { margin-top: 8px; }
.fl-textopts { margin-top: 10px; }
.fl-textopts[hidden] { display: none; }
.fl-privacy { margin: 0; padding-top: 4px; border-top: 1px solid var(--line); }

@media (max-width: 1240px) { .fl-editor .steps { display: none; } }
@media (max-width: 900px) {
  .fl-stage { padding: 122px 14px 50vh; align-items: flex-start; }
  #editor.sheet-closed .fl-stage { padding-bottom: 140px; }
  .fl-result img { max-height: 42vh; }
  #editor.sheet-closed .fl-result img { max-height: calc(100vh - 260px); }
  .fl-empty { gap: 12px; }
  .fl-hero img { width: min(170px, 22vh); }
  .fl-hero figcaption span { display: none; }
  .fl-stage { overflow-y: auto; }
  .fl-hero b { font-size: 17px; }
}
@media (max-width: 420px) {
  .fl-shapes svg { width: 36px; }
  .fl-mats button { font-size: 12px; }
}
