/* AKS Çizgi Plan Stüdyosu — Evini Kendin Tasarla
   Sitenin kurumsal dilini izler: lacivert + kurumsal yeşil, köşeli kartlar,
   çizgili etiketler ve teknik çizim (blueprint) dokusu. */
.pd-page {
    --pd-navy: var(--aks-brand-navy, #102a46);
    --pd-navy-deep: #0b2036;
    --pd-green: var(--aks-brand-green, #03503c);
    --pd-green-dark: var(--aks-brand-green-dark, #024332);
    --pd-green-soft: var(--aks-brand-green-soft, #e7f1ee);
    --pd-accent: #62b99e;
    --pd-text: #102a46;
    --pd-muted: #6b7c89;
    --pd-border: #dce5eb;
    --pd-surface: #f4f7f9;
    --pd-radius: 6px;
    position: relative;
    z-index: 2;
    padding: 56px 0 72px;
    background: linear-gradient(180deg, #f4f7f9 0%, #ffffff 340px);
    color: var(--pd-text);
}

/* Nasıl çalışır şeridi */
.pd-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 28px; padding: 0; list-style: none; border: 1px solid var(--pd-border); background: #fff; }
.pd-flow li { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 18px 22px; border-top: 3px solid transparent; }
.pd-flow li + li { border-left: 1px solid var(--pd-border); }
.pd-flow li:first-child { border-top-color: var(--pd-green); }
.pd-flow span { grid-row: span 2; color: var(--pd-green); font-size: 13px; font-weight: 800; letter-spacing: .08em; padding-top: 2px; }
.pd-flow strong { font-size: 16px; font-weight: 800; }
.pd-flow small { color: var(--pd-muted); font-size: 13px; }

/* Stüdyo çerçevesi */
.pd-studio { display: grid; grid-template-columns: 280px minmax(0, 1fr); background: #fff; border: 1px solid var(--pd-border); box-shadow: 0 24px 60px rgba(8, 25, 39, .08); }
.pd-rail {
    position: relative;
    display: flex; flex-direction: column; gap: 22px;
    padding: 26px 20px;
    color: #fff;
    background-color: var(--pd-navy);
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 22px 22px;
}
.pd-rail::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 3px; background: var(--pd-green); }
.pd-rail-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pd-rail-brand strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.pd-rail-brand small { display: block; color: rgba(255, 255, 255, .6); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.pd-rail-mark { position: relative; flex: 0 0 38px; width: 38px; height: 38px; border: 3px solid #fff; border-right-color: transparent; }
.pd-rail-mark::after { content: ""; position: absolute; left: 7px; top: 7px; width: 12px; height: 12px; background: var(--pd-accent); }

.pd-steps { position: relative; display: grid; gap: 4px; }
.pd-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 1px; background: rgba(255, 255, 255, .16); }
.pd-step-pill { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px 8px 0; border: 0; background: transparent; color: rgba(255, 255, 255, .55); text-align: left; font-size: 14px; font-weight: 700; transition: color .2s; }
.pd-step-no { position: relative; z-index: 1; flex: 0 0 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); background: var(--pd-navy); color: inherit; font-size: 12px; font-weight: 800; letter-spacing: .04em; transition: .2s; }
.pd-step-pill:disabled { cursor: default; }
.pd-step-pill.is-done { color: rgba(255, 255, 255, .85); }
.pd-step-pill.is-done .pd-step-no { border-color: var(--pd-accent); color: var(--pd-accent); }
.pd-step-pill.is-active { color: #fff; }
.pd-step-pill.is-active .pd-step-no { background: var(--pd-green); border-color: var(--pd-green); color: #fff; box-shadow: 0 0 0 4px rgba(98, 185, 158, .22); }
.pd-step-pill:not(:disabled):hover { color: #fff; }

.pd-picks { display: grid; gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); }
.pd-picks:empty { display: none; }
.pd-pick { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; background: rgba(9, 29, 45, .55); font-size: 13px; }
.pd-pick span { color: rgba(255, 255, 255, .6); }
.pd-pick strong { color: #fff; font-weight: 700; text-align: right; }
.pd-rail-call { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .16); transition: .2s; }
.pd-rail-call:hover { color: #fff; border-color: var(--pd-accent); background: rgba(98, 185, 158, .08); }
.pd-rail-call i { color: var(--pd-accent); font-size: 20px; }
.pd-rail-call small { display: block; color: rgba(255, 255, 255, .6); font-size: 11px; }
.pd-rail-call strong { font-size: 16px; }

/* Ana içerik */
.pd-card-main { min-width: 0; display: flex; flex-direction: column; }
.pd-step { display: none; padding: 34px 36px 28px; flex: 1; }
.pd-step.is-active { display: block; animation: pdIn .28s ease; }
@keyframes pdIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pd-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--pd-green); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.pd-kicker::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.pd-kicker-light { color: var(--pd-accent); }
.pd-title { margin: 0 0 8px; color: var(--pd-text); font-size: clamp(24px, 2.4vw, 34px); font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.pd-lead { max-width: 640px; margin: 0 0 26px; color: var(--pd-muted); font-size: 15px; line-height: 1.65; }
.pd-field-label { display: block; margin-bottom: 8px; color: var(--pd-muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* 01 Metrekare */
.pd-area { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.pd-area-figure { position: relative; margin: 0; }
.pd-area-figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pd-area-figure figcaption { position: absolute; right: -1px; bottom: -1px; padding: 14px 20px; background: var(--pd-green); color: #fff; }
.pd-area-figure figcaption > span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.pd-area-figure figcaption strong { font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
#pdAreaRange { width: 100%; accent-color: var(--pd-green); height: 28px; }
.pd-area-scale { display: flex; justify-content: space-between; color: var(--pd-muted); font-size: 11px; border-top: 1px solid var(--pd-border); padding-top: 6px; margin-top: 2px; }
.pd-area-input { display: flex; align-items: center; gap: 8px; margin: 18px 0; }
.pd-area-input input { width: 110px; height: 44px; text-align: center; border: 1px solid var(--pd-border); color: var(--pd-text); font-size: 20px; font-weight: 800; }
.pd-area-input input:focus { outline: 2px solid var(--pd-green); outline-offset: -1px; }
.pd-unit { color: var(--pd-muted); font-weight: 700; margin-right: 4px; }
.pd-area-hints { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; background: var(--pd-border); border: 1px solid var(--pd-border); }
.pd-area-hints li { padding: 10px 14px; background: #fff; color: var(--pd-muted); font-size: 13px; }
.pd-area-hints strong { color: var(--pd-text); margin-right: 6px; }

/* Seçenek kartları */
.pd-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 760px; }
.pd-option { position: relative; display: block; margin: 0; cursor: pointer; }
.pd-option input { position: absolute; opacity: 0; pointer-events: none; }
.pd-option-surface { position: relative; display: block; height: 100%; background: #fff; border: 1px solid var(--pd-border); border-top: 3px solid var(--pd-border); transition: border-color .2s, box-shadow .2s, transform .2s; }
.pd-option-media { display: block; overflow: hidden; }
.pd-option-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.pd-option-body { display: block; padding: 16px 18px 18px; }
.pd-option-no { display: block; margin-bottom: 6px; color: var(--pd-green); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.pd-option-body strong { display: block; color: var(--pd-text); font-size: 18px; font-weight: 800; }
.pd-option-body small { display: block; margin-top: 4px; color: var(--pd-muted); font-size: 13px; line-height: 1.5; }
.pd-option-check { position: absolute; top: 0; right: 0; width: 38px; height: 38px; display: grid; place-items: center; background: var(--pd-green); color: #fff; opacity: 0; transform: scale(.7); transition: .2s; }
.pd-option:hover .pd-option-surface { border-top-color: var(--pd-accent); box-shadow: 0 16px 34px rgba(8, 25, 39, .08); transform: translateY(-2px); }
.pd-option:hover .pd-option-media img { transform: scale(1.04); }
.pd-option input:checked + .pd-option-surface { border-color: var(--pd-green); border-top-color: var(--pd-green); box-shadow: 0 16px 34px rgba(3, 80, 60, .14); }
.pd-option input:checked + .pd-option-surface .pd-option-check { opacity: 1; transform: none; }
.pd-option input:focus-visible + .pd-option-surface { outline: 3px solid rgba(3, 80, 60, .35); outline-offset: 2px; }

.pd-room-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pd-room-option .pd-option-body { text-align: center; padding: 18px 10px; }
.pd-room-option svg { display: block; width: 100%; max-width: 110px; height: 54px; margin: 0 auto 10px; }
.pd-room-option strong { font-size: 24px; letter-spacing: -.02em; }
.pd-option.is-disabled { cursor: not-allowed; }
.pd-option.is-disabled .pd-option-surface { opacity: .42; transform: none !important; box-shadow: none !important; border-top-color: var(--pd-border) !important; }

/* 05 Editör */
.pd-step-editor { padding-top: 28px; }
.pd-step-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pd-step-head .pd-title { margin: 0; }
.pd-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.pd-tool-actions { display: flex; gap: 6px; }
.pd-tool { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border: 1px solid var(--pd-border); background: #fff; color: var(--pd-text); font-size: 13px; font-weight: 700; transition: .2s; }
.pd-tool i { color: var(--pd-green); }
.pd-tool:hover { border-color: var(--pd-green); }
.pd-tool:disabled { opacity: .45; }

.pd-board { border: 1px solid var(--pd-navy); background: #fff; }
.pd-board-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; background: var(--pd-navy); color: #fff; }
.pd-board-title { flex: 1; min-width: 90px; color: rgba(255, 255, 255, .85); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; text-align: center; }
.pd-seg { display: inline-flex; gap: 2px; padding: 2px; background: rgba(255, 255, 255, .08); }
.pd-seg:empty { display: none; }
.pd-seg button { border: 0; background: transparent; padding: 6px 12px; color: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 700; transition: .15s; }
.pd-seg button:hover { color: #fff; }
.pd-seg button.is-active { background: var(--pd-green); color: #fff; }
.pd-canvas-wrap { position: relative; background: #f6f8fa; overflow: hidden; }
.pd-plan { display: block; width: 100%; height: auto; max-height: 70vh; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.pd-plan .pd-room { cursor: grab; }
.pd-plan.is-dragging .pd-room { cursor: grabbing; }
.pd-plan .pd-room.is-selected .pd-room-rect { stroke: var(--pd-green); }
.pd-plan .pd-room.is-overlap .pd-room-rect { stroke: #d9363e; stroke-dasharray: .25 .15; }
.pd-plan [data-handle] { cursor: nwse-resize; }
.pd-plan .pd-handle.is-ne, .pd-plan .pd-handle.is-sw { cursor: nesw-resize; }
.pd-plan .pd-handle:hover rect { fill: #03503c; }
.pd-plan text { pointer-events: none; }
.pd-board-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--pd-border); color: var(--pd-muted); font-size: 12px; }
.pd-scale { position: relative; display: inline-grid; grid-template-columns: repeat(3, 26px); height: 22px; }
.pd-scale i { height: 6px; margin-top: 2px; border: 1px solid var(--pd-text); }
.pd-scale i:nth-child(odd) { background: var(--pd-text); }
.pd-scale b { position: absolute; top: 10px; font-size: 10px; font-weight: 700; color: var(--pd-text); transform: translateX(-50%); }
.pd-scale b:nth-of-type(1) { left: 0; } .pd-scale b:nth-of-type(2) { left: 26px; } .pd-scale b:nth-of-type(3) { left: 52px; } .pd-scale b:nth-of-type(4) { left: 82px; white-space: nowrap; }
.pd-hint i { color: var(--pd-green); margin-right: 4px; }

.pd-toast { position: absolute; left: 50%; bottom: 14px; max-width: calc(100% - 24px); padding: 10px 14px; background: var(--pd-navy); color: #fff; font-size: 13px; font-weight: 600; border-left: 3px solid #e0a73a; box-shadow: 0 10px 30px rgba(8, 25, 39, .25); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: .25s ease; }
.pd-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.pd-warnings:empty { display: none; }
.pd-warnings { margin-top: 10px; padding: 10px 14px; background: #fff4f4; border-left: 3px solid #d9363e; color: #a6262d; font-size: 13px; }
.pd-area-list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--pd-border); background: var(--pd-surface); font-size: 13px; color: var(--pd-muted); }
.pd-area-list strong { color: var(--pd-text); }
.pd-area-list .pd-area-total { flex-basis: 100%; padding-top: 8px; margin-top: 2px; border-top: 1px dashed var(--pd-border); }

.pd-panel { border: 1px solid var(--pd-border); background: #fff; padding: 16px; }
.pd-panel + .pd-panel { margin-top: 12px; }
.pd-panel-label { margin-bottom: 10px; color: var(--pd-muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pd-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--pd-border); background: #fff; color: var(--pd-text); font-size: 13px; font-weight: 700; transition: .15s; }
.pd-chip:hover { border-color: var(--pd-green); }
.pd-chip.is-active { background: var(--pd-navy); border-color: var(--pd-navy); color: #fff; }
.pd-chip .pd-dot { width: 10px; height: 10px; border: 1px solid rgba(0, 0, 0, .18); }
.pd-chip-add i { color: var(--pd-green); font-size: 11px; }

.pd-badge { flex: 0 0 auto; padding: 4px 9px; background: var(--pd-green); color: #fff; font-size: 12px; font-weight: 800; }
.pd-link-btn { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--pd-green); font-size: 13px; font-weight: 800; }

.pd-props-empty { padding: 6px 0; color: var(--pd-muted); font-size: 13px; text-align: center; }
.pd-props-name { width: 100%; padding: 8px 10px; border: 1px solid var(--pd-border); color: var(--pd-text); font-size: 17px; font-weight: 800; }
.pd-props-name:focus { outline: 2px solid var(--pd-green); outline-offset: -1px; }
.pd-props-dims { margin: 6px 0 14px; color: var(--pd-muted); font-size: 13px; }
.pd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; }
.pd-row-label { color: var(--pd-text); font-size: 14px; font-weight: 600; }
.pd-stepper { display: inline-flex; align-items: center; gap: 6px; }
.pd-stepper output { min-width: 60px; text-align: center; color: var(--pd-text); font-size: 14px; font-weight: 800; }
.pd-sq-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--pd-border); background: #fff; color: var(--pd-text); font-size: 12px; touch-action: manipulation; transition: .15s; }
.pd-sq-btn:hover { border-color: var(--pd-green); color: var(--pd-green); }
.pd-sq-btn:active { background: var(--pd-green); border-color: var(--pd-green); color: #fff; }
.pd-sub-head { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.pd-sub-head .pd-panel-label { margin-bottom: 8px; }
.pd-mini-link { border: 0; background: none; color: var(--pd-green); font-size: 13px; font-weight: 800; }
.pd-dir-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pd-dir-grid button { padding: 8px 0; border: 1px solid var(--pd-border); background: #fff; color: var(--pd-text); transition: .15s; }
.pd-dir-grid button.is-active { background: var(--pd-navy); border-color: var(--pd-navy); color: #fff; }
.pd-range { width: 100%; accent-color: var(--pd-green); }
.pd-note { margin: 4px 0 0; color: var(--pd-muted); font-size: 12px; }
.pd-props-actions { display: flex; gap: 6px; margin-top: 14px; }
.pd-props-actions button { flex: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 6px; border: 1px solid var(--pd-border); background: #fff; color: var(--pd-text); font-size: 12px; font-weight: 700; transition: .15s; }
.pd-props-actions button i { font-size: 14px; color: var(--pd-green); }
.pd-props-actions button:hover { border-color: var(--pd-green); }
.pd-props-actions .is-danger i { color: #c0262d; }
.pd-props-actions .is-danger:hover { border-color: #c0262d; }
.pd-props-actions .is-danger { color: #c0262d; }

/* 06 Gönder */
.pd-summary { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.pd-summary-plans figure { margin: 0 0 14px; border: 1px solid var(--pd-navy); background: #f6f8fa; }
.pd-summary-plans figcaption { padding: 8px 12px; background: var(--pd-navy); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pd-summary-plans svg { display: block; width: 100%; height: auto; }
.pd-summary-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.pd-summary-list { margin: 0; display: grid; grid-template-columns: auto 1fr; border: 1px solid var(--pd-border); font-size: 13px; align-content: start; }
.pd-summary-list dt, .pd-summary-list dd { margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--pd-border); }
.pd-summary-list dt { color: var(--pd-muted); font-weight: 600; background: var(--pd-surface); }
.pd-summary-list dd { color: var(--pd-text); font-weight: 800; text-align: right; }
.pd-room-table { width: 100%; border: 1px solid var(--pd-border); font-size: 13px; }
.pd-room-table td { padding: 6px 12px; color: var(--pd-text); border-bottom: 1px solid #edf1f4; }
.pd-room-table td:last-child { text-align: right; font-weight: 800; }
.pd-room-table tr.is-floor td { background: var(--pd-surface); color: var(--pd-muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pd-room-table tr.is-total td { background: var(--pd-green-soft); color: var(--pd-green); font-weight: 800; }

.pd-send { position: sticky; top: 110px; padding: 24px; background: var(--pd-navy); color: #fff; border-top: 3px solid var(--pd-green); }
.pd-send-head h3 { margin: 0 0 16px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; color: #fff; }
.pd-send-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pd-input label { display: block; margin-bottom: 5px; color: rgba(255, 255, 255, .78); font-size: 12px; font-weight: 700; }
.pd-input label span { color: var(--pd-accent); }
.pd-input label small { color: rgba(255, 255, 255, .5); font-weight: 500; }
.pd-input input, .pd-input textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font-size: 14px; border-radius: 0; }
.pd-input input::placeholder, .pd-input textarea::placeholder { color: rgba(255, 255, 255, .38); }
.pd-input input:focus, .pd-input textarea:focus { outline: none; border-color: var(--pd-accent); background: rgba(255, 255, 255, .1); }
.pd-input.has-error input { border-color: #ff8a8f; }
.pd-input-wide { grid-column: 1 / -1; }
.pd-input-error { display: block; min-height: 0; color: #ff9da1; font-size: 12px; margin-top: 3px; }
.pd-input-error:empty { display: none; }
.pd-consent { display: flex; gap: 10px; margin: 14px 0 4px; color: rgba(255, 255, 255, .72); font-size: 12px; line-height: 1.5; cursor: pointer; }
.pd-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--pd-accent); }
.pd-consent a { color: #fff; text-decoration: underline; }
.pd-send-alert { margin: 10px 0 0; padding: 10px 12px; background: rgba(217, 54, 62, .16); border-left: 3px solid #ff8a8f; color: #ffd6d8; font-size: 13px; }
.pd-send .pd-btn-primary { margin-top: 16px; background: var(--pd-green); box-shadow: none; }
.pd-send .pd-btn-primary:hover { background: #046b51; }
.pd-send-note { margin: 10px 0 0; color: rgba(255, 255, 255, .5); font-size: 12px; text-align: center; }
.pd-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pd-btn.is-loading { pointer-events: none; opacity: .75; }

.pd-sent { position: sticky; top: 110px; padding: 28px 24px; border: 1px solid var(--pd-border); border-top: 3px solid var(--pd-green); background: #fff; text-align: center; }
.pd-sent-icon { width: 58px; height: 58px; display: inline-grid; place-items: center; margin-bottom: 12px; background: var(--pd-green); color: #fff; font-size: 22px; }
.pd-sent h3 { margin: 0 0 8px; color: var(--pd-text); font-size: 22px; font-weight: 800; }
.pd-sent p { color: var(--pd-muted); font-size: 14px; }
.pd-sent .pd-btn { margin-top: 10px; }

/* Alt bar */
.pd-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 36px; border-top: 1px solid var(--pd-border); background: var(--pd-surface); }
.pd-actions-count { color: var(--pd-muted); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.pd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 0; font-size: 14px; font-weight: 800; text-decoration: none; transition: .2s; }
.pd-btn-primary { background: var(--pd-green); color: #fff; }
.pd-btn-primary:hover { background: var(--pd-green-dark); color: #fff; }
.pd-btn-outline { background: #fff; border-color: var(--pd-border); color: var(--pd-text); }
.pd-btn-outline:hover { border-color: var(--pd-navy); color: var(--pd-text); }
.pd-btn-ghost { background: var(--pd-green-soft); color: var(--pd-green); }
.pd-btn-ghost:hover { color: var(--pd-green-dark); }
.pd-btn[hidden], .pd-actions [hidden] { display: none !important; }
.pd-actions .pd-btn[hidden] + .pd-actions-count { margin-left: 0; }

@media (max-width: 1199px) {
    .pd-studio { grid-template-columns: minmax(0, 1fr); }
    .pd-rail { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px; }
    .pd-rail::after { top: auto; left: 0; width: auto; height: 3px; }
    .pd-rail-brand { padding: 0; border: 0; }
    .pd-steps { order: 3; flex-basis: 100%; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
    .pd-steps::-webkit-scrollbar { display: none; }
    .pd-steps::before { display: none; }
    .pd-step-pill { flex: 0 0 auto; width: auto; padding: 0 10px 0 0; gap: 8px; font-size: 13px; }
    .pd-step-no { flex-basis: 30px; height: 30px; }
    .pd-picks { order: 4; flex-basis: 100%; display: flex; flex-wrap: wrap; background: none; border: 0; gap: 6px; }
    .pd-pick { padding: 5px 9px; border: 1px solid rgba(255, 255, 255, .14); font-size: 12px; gap: 6px; }
    .pd-rail-call { margin: 0 0 0 auto; padding: 8px 12px; }
    .pd-editor, .pd-summary { grid-template-columns: minmax(0, 1fr); }
    .pd-send, .pd-sent { position: static; }
    /* Dar ekranda oda ayarları planın hemen altında */
    .pd-editor { display: flex; flex-direction: column; gap: 10px; }
    .pd-editor-main, .pd-editor-side { display: contents; }
    .pd-board { order: 1; }
    .pd-warnings { order: 2; margin: 0; }
    .pd-panel-rooms { order: 3; }
    #pdProps { order: 5; }
    .pd-area-list { order: 6; margin: 0; }
    .pd-editor .pd-panel + .pd-panel { margin-top: 0; }
}
@media (max-width: 767px) {
    .pd-page { padding: 28px 0 40px; }
    .pd-flow { grid-template-columns: minmax(0, 1fr); margin-bottom: 18px; }
    .pd-flow li + li { border-left: 0; border-top: 1px solid var(--pd-border); }
    .pd-flow li { padding: 12px 16px; }
    .pd-rail-call small { display: none; }
    .pd-step { padding: 24px 16px 18px; }
    .pd-area { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .pd-area-figure figcaption strong { font-size: 32px; }
    .pd-option-grid { grid-template-columns: minmax(0, 1fr); }
    .pd-room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-tool span { display: none; }
    .pd-board-title { display: none; }
    .pd-plan { max-height: none; }
    .pd-hint { display: none; }
    .pd-summary-facts { grid-template-columns: minmax(0, 1fr); }
    .pd-send-grid { grid-template-columns: minmax(0, 1fr); }
    .pd-actions { position: sticky; bottom: 0; z-index: 5; padding: 12px 16px; box-shadow: 0 -8px 20px rgba(8, 25, 39, .07); }
    .pd-actions .pd-btn { flex: 1; padding: 0 12px; }
    .pd-actions-count { display: none; }
}

/* ---- Telefon: sade görünüm — yalnızca adımlar ve çalışma alanı ---- */
.pd-board { width: 100%; }
@media (max-width: 767px) {
    /* Üst görsel alanı kısalt (yalnızca bu sayfada) */
    body:has(#planDesigner) .aks-page-hero { min-height: 0; padding: 34px 0 30px; }
    body:has(#planDesigner) .aks-page-hero p { display: none; }
    body:has(#planDesigner) .aks-page-hero h1 { font-size: 30px; }

    .pd-page { padding: 14px 0 28px; }
    .pd-page > .container-fluid { padding-left: 0; padding-right: 0; }
    .pd-flow, .pd-rail-brand, .pd-rail-call, .pd-picks { display: none !important; }
    .pd-rail { padding: 10px 10px 12px; gap: 0; }
    .pd-steps { padding-bottom: 0; }
    .pd-step-pill { font-size: 12px; color: rgba(255, 255, 255, .6); }
    .pd-step-pill:not(.is-active) span:last-child { display: none; } /* yalnızca aktif adımın adı yazsın */
    .pd-step-no { flex-basis: 30px; height: 30px; font-size: 11px; }
    .pd-step { padding: 18px 12px 14px; }
    .pd-step-editor { padding-top: 16px; }
    .pd-title { font-size: 22px; }
    .pd-lead { font-size: 14px; margin-bottom: 16px; }
    .pd-step-head { margin-bottom: 10px; }
    .pd-board-foot { padding: 6px 10px; }
    .pd-area-figure img { aspect-ratio: 16 / 9; }
}

/* Oda ayarları: masaüstünde yan panel, mobil/tablette alttan açılan panel */
.pd-sheet-head, .pd-sheet-backdrop { display: none; }
@media (max-width: 991.98px) {
    #pdProps { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060; max-height: 58vh; margin: 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; border: 0; border-top: 3px solid var(--pd-green); box-shadow: 0 -14px 40px rgba(8, 25, 39, .22); transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
    #pdProps.is-sheet-open { transform: none; visibility: visible; transition: transform .25s ease; }
    .pd-sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -16px 10px; padding: 16px 16px 10px; background: #fff; border-bottom: 1px solid var(--pd-border); }
    .pd-sheet-grip { position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #cfd6dd; }
    .pd-sheet-close { min-height: 38px; padding: 0 18px; border: 0; background: var(--pd-green); color: #fff; font-size: 14px; font-weight: 800; }
    .pd-sheet-backdrop { position: fixed; inset: 0; z-index: 1059; background: rgba(8, 25, 39, .18); }
    .pd-sheet-backdrop.is-open { display: block; }
    body.pd-sheet-lock { overflow: hidden; }
    /* Dokunmatikte daha büyük butonlar */
    #pdProps .pd-sq-btn { width: 44px; height: 44px; font-size: 14px; }
    #pdProps .pd-dir-grid button { padding: 12px 0; }
    #pdProps .pd-props-actions button { padding: 12px 8px; }
    .pd-hint { display: none; }
    .pd-hint-mobile { display: inline !important; }
}
.pd-hint-mobile { display: none; color: var(--pd-muted); font-size: 12px; }
.pd-hint-mobile i { color: var(--pd-green); margin-right: 4px; }

@media (min-width: 992px) {
    /* Masaüstü: oda ayarları seçili odanın yanında açılan pencere */
    #pdProps { position: fixed; left: -9999px; top: 0; z-index: 1060; width: 300px; max-height: calc(100vh - 24px); margin: 0 !important; padding: 0 16px 16px; overflow-y: auto; border-top: 3px solid var(--pd-green); box-shadow: 0 18px 48px rgba(8, 25, 39, .22); visibility: hidden; opacity: 0; transition: opacity .15s ease; }
    #pdProps.is-sheet-open { visibility: visible; opacity: 1; }
    .pd-sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -16px 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--pd-border); }
    .pd-sheet-grip { display: none; }
    .pd-sheet-close { min-height: 32px; padding: 0 14px; border: 0; background: var(--pd-green); color: #fff; font-size: 13px; font-weight: 800; }
    .pd-sheet-close:hover { background: var(--pd-green-dark); }
}

/* Oda ayarları: boyut kutuları ve kapı çizimi */
/* Boyut: alt alta satırlar, sağda hap şeklinde − değer + kontrolü */
.pd-size-list { border: 1px solid var(--pd-border); }
.pd-size-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.pd-size-row + .pd-size-row { border-top: 1px solid var(--pd-border); }
.pd-size-icon { width: 30px; height: 30px; flex: 0 0 auto; display: inline-grid; place-items: center; background: var(--pd-green-soft); color: var(--pd-green); font-size: 13px; }
.pd-size-label { flex: 1; color: var(--pd-text); font-size: 14px; font-weight: 700; }
.pd-size-ctrl { display: inline-flex; align-items: stretch; height: 34px; border: 1px solid var(--pd-border); border-radius: 999px; overflow: hidden; background: #fff; }
.pd-size-ctrl button { width: 34px; padding: 0; border: 0; background: var(--pd-surface); color: var(--pd-text); font-size: 11px; touch-action: manipulation; transition: .15s; }
.pd-size-ctrl button:hover { color: var(--pd-green); }
.pd-size-ctrl button:active { background: var(--pd-green); color: #fff; }
.pd-size-ctrl output { min-width: 62px; display: inline-grid; place-items: center; border-left: 1px solid var(--pd-border); border-right: 1px solid var(--pd-border); color: var(--pd-text); font-size: 14px; font-weight: 800; white-space: nowrap; }
.pd-door-pad { --pad-h: 130px; position: relative; width: min(100%, calc(var(--pad-h) * var(--r, 1.4))); aspect-ratio: var(--r, 1.4); margin: 0 auto; border: 5px solid #3b4250; background: var(--pd-surface); cursor: crosshair; touch-action: none; }
.pd-door-pad::after { content: ""; position: absolute; inset: 12px; border: 1px dashed #c7cfd6; pointer-events: none; }
.pd-door-mark { position: absolute; pointer-events: none; background: var(--pd-green); }
.pd-door-mark.is-top, .pd-door-mark.is-bottom { height: 9px; }
.pd-door-mark.is-left, .pd-door-mark.is-right { width: 9px; }
.pd-door-mark.is-top { top: -7px; }
.pd-door-mark.is-bottom { bottom: -7px; }
.pd-door-mark.is-left { left: -7px; }
.pd-door-mark.is-right { right: -7px; }
.pd-door-info { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--pd-text); font-size: 13px; font-weight: 700; }
.pd-door-info i { color: var(--pd-green); }
@media (max-width: 991.98px) {
    #pdProps .pd-size-ctrl { height: 42px; }
    #pdProps .pd-size-ctrl button { width: 44px; font-size: 13px; }
    #pdProps .pd-door-pad { --pad-h: 150px; }
}

/* Bu sayfa ekranı tam kaplar: yan boşluk yok, plan daha büyük */
.pd-page > .pd-wide { max-width: none; padding-left: 0; padding-right: 0; }
.pd-page > .pd-wide .pd-flow { border-left: 0; border-right: 0; }
.pd-page > .pd-wide .pd-studio { border-left: 0; border-right: 0; box-shadow: none; }
@media (min-width: 768px) { .pd-page .pd-plan { max-height: calc(100vh - 150px); } }
@media (min-width: 1600px) {
    .pd-editor { grid-template-columns: minmax(0, 1fr) 360px; }
}
