/* Art Mirror – konyhatervező. A régi oldal rendszerében (Poppins, papírszürke, bordó jel), szoftverfelület-szabályokkal:
   egy fő cselekvés lépésenként, nagy célfelületek, azonnali visszajelzés, mozgás nélküli gyakori műveletek. */

.am-planner-page .am-page-hero { min-height: 0; }
.am-planner-page .am-page-hero-in { padding-bottom: 1.6rem; }
.am-planner { width: min(1440px, calc(100% - 2 * var(--am-gutter))); margin: 1.5rem auto clamp(3rem, 6vw, 5rem); }
.am-planner-boot { padding: 3rem; text-align: center; background: var(--am-paper); }

.am-p-steps { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; counter-reset: s; }
.am-p-steps button { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .75rem .9rem; min-height: 52px; background: var(--am-paper); border: 0; border-bottom: 3px solid transparent; font: 500 .92rem var(--am-font); color: var(--am-ink); cursor: pointer; text-align: left; }
.am-p-steps button span { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid #bdb5ae; font-size: .82rem; }
.am-p-steps [aria-selected="true"] { background: #fff; border-bottom-color: var(--am-red); box-shadow: var(--am-shadow); }
.am-p-steps [aria-selected="true"] span { background: var(--am-ink); color: #fff; border-color: var(--am-ink); }
.am-p-steps .is-done span { background: var(--am-red); border-color: var(--am-red); color: #fff; }
@media (max-width: 700px) { .am-p-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .am-p-steps button { flex-direction: column; font-size: .72rem; padding: .5rem .3rem; text-align: center; gap: .3rem; } }

.am-p-body { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 980px) { .am-p-body { grid-template-columns: 1fr; } .am-p-stage { order: -1; } }
.am-p-panel { background: #fff; border: 1px solid var(--am-line); padding: 1.3rem; max-height: calc(100vh - 120px); overflow: auto; position: sticky; top: 96px; }
@media (max-width: 980px) { .am-p-panel { position: static; max-height: none; } }
.am-p-panel h2 { font-size: 1.25rem; margin: 0 0 .9rem; }
.am-p-panel h3 { font-size: .98rem; margin: 1.3rem 0 .6rem; display: flex; justify-content: space-between; gap: .5rem; }
.am-p-panel h3 small { font-weight: 400; color: var(--am-muted); }
.am-p-note-t { font-size: .86rem; color: var(--am-muted); }
.am-p-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 1rem; }
.am-p-card { display: grid; justify-items: center; gap: .3rem; padding: .7rem .2rem .55rem; border: 1px solid var(--am-line); background: #fff; font: inherit; font-size: .78rem; color: var(--am-ink); cursor: pointer; }
.am-p-card svg { width: 34px; height: 34px; color: var(--am-muted); }
.am-p-card[aria-checked="true"] { border-color: var(--am-ink); box-shadow: inset 0 -3px 0 var(--am-red); }
.am-p-card[aria-checked="true"] svg { color: var(--am-ink); }
.am-p-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: .6rem 0; }
.am-p-field { display: grid; gap: .25rem; font-size: .82rem; color: var(--am-ink); margin: 0 0 .7rem; }
.am-p-field span { font-weight: 500; }
.am-p-field small { color: var(--am-muted); }
.am-p-field input, .am-p-field select { font: inherit; font-size: .95rem; min-height: 44px; padding: .5rem .6rem; border: 1px solid #cfcac5; background: #fff; color: var(--am-ink); width: 100%; }
.am-p-seg { display: flex; align-items: center; gap: 4px; margin: -.4rem 0 1rem; font-size: .82rem; color: var(--am-muted); }
.am-p-seg span { margin-right: .3rem; }
.am-p-seg button { font: inherit; padding: .35rem .7rem; border: 1px solid var(--am-line); background: #fff; color: var(--am-ink); cursor: pointer; }
.am-p-seg button[aria-checked="true"] { border-color: var(--am-ink); box-shadow: inset 0 -2px 0 var(--am-red); }
.am-p-check { display: flex; gap: .55rem; align-items: center; font-size: .88rem; margin: .5rem 0; cursor: pointer; }
.am-p-check input { width: 20px; height: 20px; accent-color: var(--am-red); }
.am-p-nav { display: flex; justify-content: space-between; gap: .6rem; margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--am-line); }
.am-p-nav .am-btn-solid { margin-left: auto; }

.am-p-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.am-p-style { position: relative; border: 0; padding: 0; background: var(--am-paper); cursor: pointer; text-align: left; font: inherit; color: #fff; overflow: hidden; aspect-ratio: 4 / 3; outline: 1px solid var(--am-line); }
.am-p-style img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--am-ease); }
.am-p-style span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem .7rem .55rem; background: linear-gradient(transparent, rgba(20, 16, 22, .8)); font-weight: 500; font-size: .9rem; }
.am-p-style:hover img { transform: scale(1.05); }
.am-p-style[aria-checked="true"] { outline: 3px solid var(--am-red); outline-offset: -3px; }
.am-p-styletext { font-size: .9rem; margin: .8rem 0 .5rem; }
.am-p-insp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.am-p-insp img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.am-p-lbl-t { font-size: .82rem; font-weight: 500; color: var(--am-ink); margin: .9rem 0 .4rem; }
.am-p-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.am-p-swatches button { display: flex; align-items: center; gap: .4rem; padding: .3rem .55rem .3rem .3rem; min-height: 40px; border: 1px solid var(--am-line); background: #fff; cursor: pointer; font: inherit; font-size: .78rem; color: var(--am-ink); }
.am-p-sw { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.am-p-swatches [aria-checked="true"] { border-color: var(--am-ink); box-shadow: inset 0 -2px 0 var(--am-red); }

.am-p-run { border-top: 1px solid var(--am-line); }
.am-p-mods { list-style: none; margin: 0 0 .4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.am-p-chip { border: 1px solid var(--am-line); background: #fff; padding: .4rem .6rem; min-height: 36px; font: inherit; font-size: .78rem; color: var(--am-ink); cursor: pointer; display: inline-flex; align-items: center; gap: .2rem; }
.am-p-chip b { font-weight: 600; color: var(--am-muted); }
.am-p-chip.is-sel { border-color: var(--am-red); box-shadow: inset 0 0 0 1px var(--am-red); }
.am-p-chip.t-sink, .am-p-chip.t-hob, .am-p-chip.t-dw, .am-p-chip.t-fridge, .am-p-chip.t-oven, .am-p-chip.t-range, .am-p-chip.t-wine { background: #f6f1ea; }
.am-p-edit { background: var(--am-paper); padding: .9rem 1rem; margin: 1rem 0; border-left: 3px solid var(--am-red); }
.am-p-edit h3 { margin-top: 0; }
.am-p-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 0; }
.am-p-row .am-btn { min-height: 40px; padding: .4em .8em; font-size: .82rem; }
.am-p-palette { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 5px; }
.am-p-palette h3 { flex-basis: 100%; }
.am-p-palette small { flex-basis: 100%; color: var(--am-muted); font-size: .76rem; }

.am-p-summary { background: var(--am-paper); padding: .8rem 1rem; font-size: .88rem; }
.am-p-summary p { margin: .2rem 0; }
.am-p-form { margin-top: 1rem; }

.am-p-stage { min-width: 0; }
.am-p-stagebar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.am-p-viewtoggle { display: inline-flex; border: 1px solid var(--am-ink); }
.am-p-viewtoggle button { border: 0; background: #fff; padding: .5rem 1rem; min-height: 42px; font: 500 .85rem var(--am-font); color: var(--am-ink); cursor: pointer; }
.am-p-viewtoggle [aria-checked="true"] { background: var(--am-ink); color: #fff; }
.am-p-tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.am-p-tools .am-btn { min-height: 42px; padding: .45em .9em; font-size: .82rem; }
.am-p-views { display: grid; gap: .8rem; }
.am-p-views[data-view="both"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.am-p-views[data-view="2d"] .am-p-3d, .am-p-views[data-view="3d"] .am-p-2d { display: none; }
.am-p-photo, .am-p-views[data-view="photo"] .am-p-2d, .am-p-views[data-view="photo"] .am-p-3d { display: none; }
.am-p-views[data-view="photo"] .am-p-photo { display: block; }
@media (max-width: 1200px) { .am-p-views[data-view="both"] { grid-template-columns: 1fr; } }
.am-p-2d, .am-p-3d { background: #fff; border: 1px solid var(--am-line); position: relative; min-height: 380px; }
.am-p-3d { height: clamp(380px, 52vh, 620px); background: #ece8e2; }
.am-p-3d canvas { display: block; touch-action: none; }
.am-p-3d-hint { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--am-muted); font-size: .9rem; padding: 1rem; text-align: center; }
.am-p-svg { display: block; width: 100%; height: auto; max-height: 70vh; touch-action: none; }
.am-p-mod { cursor: grab; }
.am-p-mod:focus { outline: none; }
.am-p-mod:focus-visible rect:first-child { stroke: var(--am-red); stroke-width: 3; }
.am-p-mod:hover rect:first-child { stroke: var(--am-ink); stroke-width: 2; }
.am-p-lbl { font: 600 10px var(--am-font); fill: var(--am-ink); pointer-events: none; }
.am-p-w { font-weight: 400; fill: #6b6470; }
.is-tall .am-p-lbl { fill: var(--am-ink); }
.am-p-note { font: 11px var(--am-font); fill: var(--am-muted); }
.am-p-dim path { stroke: var(--am-red); stroke-width: 1; fill: none; }
.am-p-dim text { font: 12px var(--am-font); fill: var(--am-red); }
.am-p-warn { font: 600 12px var(--am-font); fill: var(--am-red); }
.am-p-under { margin-top: 1rem; }
.am-p-under h3 { font-size: 1rem; margin: 0 0 .5rem; }
.am-p-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .88rem; }
.am-p-checks li { padding: .55rem .8rem .55rem 2.2rem; position: relative; background: var(--am-paper); }
.am-p-checks li::before { position: absolute; left: .75rem; top: .55rem; font-weight: 700; }
.am-p-checks .is-ok::before { content: '✓'; color: #2f6b3a; }
.am-p-checks .is-tip::before { content: 'i'; color: #2f5d8a; font-family: Georgia, serif; font-style: italic; }
.am-p-checks .is-warn { background: #fbefee; }
.am-p-checks .is-warn::before { content: '!'; color: var(--am-red); }
.am-p-status { min-height: 1.4em; font-size: .88rem; color: #2f6b3a; }

@media print {
	.am-header, .am-footer, .am-p-panel, .am-p-stagebar, .am-consent, .am-page-hero { display: none !important; }
	.am-p-body { display: block; }
}

/* ---------- A te konyhádban: a terv a saját fotódon ---------- */
.am-p-ph-empty { display: grid; justify-items: start; gap: .2rem; padding: clamp(1.4rem, 4vw, 2.6rem); border: 1px dashed rgba(36, 31, 38, .4); background: #fff linear-gradient(rgba(36, 31, 38, .04) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(36, 31, 38, .04) 1px, transparent 1px) 0 0 / 22px 22px; }
.am-p-ph-empty h3 { margin: 0 0 .4rem; font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--am-ink); }
.am-p-ph-empty p { margin: 0 0 .6rem; max-width: 56ch; }
.am-p-ph-empty ol { margin: .2rem 0 1.2rem; padding-left: 1.2em; max-width: 60ch; }
.am-p-ph-empty li { margin: .25rem 0; }
.am-p-ph-empty li::marker { color: var(--am-red); font-weight: 600; }
.am-p-ph-empty small { color: var(--am-muted); margin-top: .7rem; max-width: 60ch; }
.am-p-ph-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
label.am-btn { position: relative; cursor: pointer; }
label.am-btn:focus-within { outline: 3px solid var(--am-red); outline-offset: 2px; }
.am-p-ph-hint { margin: 0 0 .6rem; font-size: .9rem; color: var(--am-text); }
.am-p-ph-frame { position: relative; overflow: hidden; transition: padding .35s var(--am-ease); background: #1f1b21; }
.am-p-ph-frame.is-edit { padding: 8% 12%; background: #1f1b21 linear-gradient(rgba(235, 230, 221, .07) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, rgba(235, 230, 221, .07) 1px, transparent 1px) 0 0 / 20px 20px; }
.am-p-ph-stage { position: relative; width: 100%; background: #1f1b21; user-select: none; -webkit-user-select: none; }
.am-p-ph-img, .am-p-ph-3d { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.am-p-ph-lines { position: absolute; left: -30%; top: -30%; width: 160%; height: 160%; }
.am-p-ph-img { object-fit: fill; display: block; }
.am-p-ph-3d canvas { display: block; }
.am-p-ph-frame.is-edit .am-p-ph-3d { opacity: .82; }
.am-p-ph-lines { pointer-events: none; opacity: 0; transition: opacity .3s; }
.am-p-ph-frame.is-edit .am-p-ph-lines { opacity: 1; }
.am-p-ph-floor { fill: rgba(155, 46, 51, .08); stroke: #fff; stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.am-p-ph-back { fill: none; stroke: var(--am-red); stroke-width: 3; vector-effect: non-scaling-stroke; }
.am-p-ph-pt { position: absolute; z-index: 3; width: 34px; height: 34px; margin: 0; padding: 0; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--am-ink); background: rgba(255, 255, 255, .94); color: var(--am-ink); font: 600 .82rem var(--am-font); display: none; place-items: center; cursor: grab; touch-action: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.am-p-ph-pt::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; }
.am-p-ph-pt::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: currentColor; opacity: 0; }
.am-p-ph-pt.is-back { background: var(--am-red); border-color: #fff; color: #fff; }
.am-p-ph-pt.is-drag { cursor: grabbing; transform: translate(-50%, -50%) scale(1.15); }
.am-p-ph-pt.is-drag span { opacity: 0; }
.am-p-ph-pt.is-drag::after { opacity: 1; }
.am-p-ph-pt:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.am-p-ph-frame.is-edit .am-p-ph-pt { display: grid; }
.am-p-ph-loupe { position: absolute; z-index: 4; width: 96px; height: 96px; margin: -150px 0 0 -48px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); background-repeat: no-repeat; pointer-events: none; }
.am-p-ph-loupe::before, .am-p-ph-loupe::after { content: ''; position: absolute; background: var(--am-red); }
.am-p-ph-loupe::before { left: 47px; top: 30px; width: 2px; height: 36px; }
.am-p-ph-loupe::after { top: 47px; left: 30px; height: 2px; width: 36px; }
.am-p-ph-divider { position: absolute; top: 0; bottom: 0; z-index: 2; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 14px rgba(0, 0, 0, .4); pointer-events: none; }
.am-p-ph-divider span { position: absolute; top: 10px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.am-p-ph-divider span:first-child { right: 10px; }
.am-p-ph-divider span:last-child { left: 10px; }
.am-p-ph-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; margin-top: .7rem; }
.am-p-ph-split { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--am-muted); }
.am-p-ph-split input { width: min(240px, 46vw); accent-color: var(--am-red); }
.am-p-ph-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.am-p-ph-btns .am-btn { min-height: 42px; padding: .45em .9em; font-size: .82rem; }
.am-p-ph-info { margin: .6rem 0 0; font-size: .85rem; color: var(--am-muted); }
.am-p-ph-info.is-warn { color: var(--am-red); }
.am-p-ph-fov { display: none; }
.am-p-ph-frame.is-edit ~ .am-p-ph-tools .am-p-ph-fov { display: flex; }
.am-p-ph-fov input { width: min(160px, 36vw); }
@media (max-width: 700px) {
	.am-p-ph-frame.is-edit { padding: 5% 8%; }
	.am-p-ph-pt { width: 30px; height: 30px; }
	.am-p-viewtoggle [data-v="both"] { display: none; }
	.am-p-viewtoggle button { padding: .5rem .7rem; }
}


/* felismerés: pásztázó vonal, majd a felmérés rajza (a hátsó fal töve, a mennyezet, a sarkok, a méretek) */
.am-p-ph-stage.is-scanning .am-p-ph-3d { opacity: 0; }
.am-p-ph-3d { transition: opacity .6s var(--am-ease); }
.am-p-ph-scan { position: absolute; inset: 0; z-index: 5; overflow: hidden; background: rgba(31, 27, 33, .28); }
.am-p-ph-scanline { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: #fff; box-shadow: 0 0 18px 4px rgba(155, 46, 51, .55); animation: am-p-scan 2.2s var(--am-ease) infinite alternate; }
@keyframes am-p-scan { from { top: 8%; } to { top: 92%; } }
.am-p-ph-scantext { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); margin: 0; padding: .45rem .9rem; background: rgba(31, 27, 33, .82); color: #fff; font-size: .82rem; letter-spacing: .02em; white-space: nowrap; border-radius: var(--am-radius); }
.am-p-ph-survey { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.am-p-ph-survey.is-on { opacity: 1; }
.am-p-ph-survey.is-off { opacity: 0; transition-duration: 1.4s; }
.am-p-ph-survey svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.am-p-ph-survey path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.am-p-ph-survey.is-on path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--am-ease); }
.am-p-ph-survey .am-p-sv-floor { stroke: var(--am-red); stroke-width: 3; }
.am-p-ph-survey .am-p-sv-ceil { stroke: #fff; stroke-width: 2; transition-delay: .5s; }
.am-p-ph-survey .am-p-sv-up { stroke: rgba(255, 255, 255, .85); stroke-width: 1.5; transition-delay: .9s; }
.am-p-sv-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; border: 2px solid var(--am-red); }
.am-p-sv-tag { position: absolute; transform: translate(-50%, -140%); padding: .2rem .5rem; background: var(--am-red); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; border-radius: var(--am-radius); font-variant-numeric: tabular-nums; }
.am-p-sv-tag.is-v { transform: translate(12px, -50%); background: rgba(31, 27, 33, .85); }
.am-p-ph-sug { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.am-p-ph-chip { border: 1px solid var(--am-red); background: #fff; color: var(--am-red); font: 500 .8rem var(--am-font); padding: .45rem .8rem; min-height: 38px; cursor: pointer; border-radius: 999px; }
.am-p-ph-chip:hover { background: var(--am-red); color: #fff; }
@media (prefers-reduced-motion: reduce) {
	.am-p-ph-scanline { animation: none; top: 50%; }
	.am-p-ph-survey.is-on path { transition: none; }
}

/* A sziget helye (Zsolt, 2026-11-09): csúszka, mellette a szöveges érték */
.am-p-range { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .8rem; }
.am-p-range > span { grid-column: 1 / -1; }
.am-p-range input[type="range"] { width: 100%; accent-color: var(--am-red, #9b2e33); }
.am-p-range output { font-size: .85rem; color: var(--am-ink-2, #3a3340); min-width: 9ch; text-align: right; }
