/* Size & position editor (public/static/self-placement.js). One stylesheet for
   every page that mounts it: the self-service phone page and, since v291, the
   PC station (maker-agent serves this file at /assets/self-placement.css).
   Colours fall back to the phone palette where a page has no such variable. */
.self-place-material { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: 6px 0 0 !important; color: var(--ink, #1a1410) !important; }
.self-place-material span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: rgba(26,20,16,.6); }
.self-place-intro { margin: 4px 0 10px !important; font-size: 13px !important; }
.self-place-stage { display: flex; justify-content: center; }
.self-place-pad { display: block; width: 100%; max-width: min(100%, 52vh); height: auto; aspect-ratio: 1; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.self-place-caption, .self-place-hint { margin: 6px 0 !important; text-align: center; font-size: 13px !important; }
.self-place-tools, .self-place-steps { display: flex; justify-content: center; gap: 10px; margin: 8px 0; }
.self-place-tools button, .self-place-steps button { flex: 1; max-width: 180px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line, #d8cdbd); background: var(--paper, #fffdf8); color: var(--ink, #1a1410); font: 600 15px var(--font-body, inherit); }
.self-place-fine { margin: 8px 0; border: 1px solid var(--line, #d8cdbd); border-radius: 12px; }
.self-place-fine summary { min-height: 44px; padding: 12px 14px; cursor: pointer; font-weight: 600; }
.self-place-fine[open] summary { border-bottom: 1px solid var(--line, #d8cdbd); }
.self-place-fields { padding: 12px; }
.self-place-size { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.self-place-size label { display: grid; gap: 6px; font-size: 13px; color: rgba(26,20,16,.7); }
.self-place-size input { width: 100%; min-width: 0; padding: 10px; border-radius: 10px; border: 1px solid #c9bdab; background: #fff; color: var(--ink, #1a1410); font-size: 18px; }
.self-place-size input[aria-invalid="true"] { border-color: #9b3326; }
.self-place-label { margin: 10px 0 4px !important; font-size: 13px !important; text-align: center; }
.self-place-nudge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 210px); margin: 8px auto 4px; }
.self-place-nudge button { min-height: 44px; border-radius: 10px; border: 1px solid var(--line, #d8cdbd); background: var(--paper, #fffdf8); color: var(--ink, #1a1410); font-size: 20px; }
.self-place-problem { margin: 6px 0 !important; color: #9b3326 !important; font-weight: 600; font-size: 13px !important; }
/* BeamSelfPlacement.preview (Admin material settings): read-only tiles. */
.self-place-preview { margin: 0; }
.self-place-preview .self-place-pad { max-width: 100%; }
.self-place-preview figcaption { display: grid; gap: 2px; margin-top: 4px; font-size: 12px; text-align: center; }
.self-place-preview [data-preview-outside], .self-place-preview [data-preview-error] { color: #b3261e; }
/* softBounds (PC station): off the material is allowed, and shouts. */
.self-place .self-place-outside { margin: 8px 0 !important; padding: 10px 12px; border-radius: 8px; background: #b3261e; color: #fff !important; font-weight: 700; font-size: 14px !important; line-height: 1.4; text-align: center; }
.self-place-pad.outside [data-material-outline] { stroke: #d42a1f; stroke-width: 4; }
.self-place-pad.outside [data-artwork-outline] { stroke: #d42a1f; stroke-width: 3; stroke-dasharray: none; }
.self-place .self-crop-warning { margin: 8px 0 !important; padding: 10px 12px; border-left: 4px solid #b3402b; background: #fff0e5; color: #8b3422 !important; font-weight: 600; font-size: 13px !important; line-height: 1.4; }

.self-place-tools { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-width:370px; margin:8px auto; }
.self-place-tools button { min-width:0; max-width:none; }

.self-place-tools [data-place="invert"] { grid-column:1 / -1; max-width:none; }
.self-place-tools [data-place="invert"][aria-pressed="true"] { border-color:#245b4c; background:#dcebe5; color:#173d34; font-weight:750; }
