/* Product Designer 8.0 — Fase 1 final */
:root {
    --pd8-teal: #178b8b;
    --pd8-ink: #172029;
    --pd8-muted: #66727b;
    --pd8-line: #e2e7e9;
    --pd8-bg: #f7f3ec;
}

.pd8-page {
    min-height: 100vh;
    padding: 28px 0 70px;
    background: var(--pd8-bg);
    color: var(--pd8-ink);
}

.pd8-shell {
    width: min(1450px, calc(100% - 36px));
    margin: 0 auto;
}

.pd8-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 24px;
}

.pd8-header h1 {
    margin: 7px 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.pd8-header p {
    margin: 0;
    color: var(--pd8-muted);
}

.pd8-back,
.pd8-admin-link {
    color: #315e68;
    text-decoration: none;
    font-weight: 800;
}

.pd8-eyebrow {
    display: block;
    margin-top: 13px;
    color: var(--pd8-teal);
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.pd8-admin-link {
    padding: 11px 15px;
    background: #fff;
    border: 1px solid var(--pd8-line);
    border-radius: 10px;
}

.pd8-warning {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 9px;
    background: #fff4d9;
    color: #735210;
}

.pd8-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}

.pd8-stage {
    min-height: 700px;
    display: grid;
    place-items: center;
    padding: 38px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 25% 15%, rgba(255,255,255,.85), transparent 30%),
        linear-gradient(135deg, #ded8ce, #f2efe9);
    overflow: auto;
}

.pd8-canvas {
    position: relative;
    width: min(760px, 100%);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(23, 32, 41, .22);
}

.pd8-photo-slot,
.pd8-text-slot {
    position: absolute;
    box-sizing: border-box;
    overflow: hidden;
}

.pd8-photo-slot {
    display: grid;
    place-items: center;
    border: 2px dashed rgba(23, 139, 139, .8);
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,.72),
            rgba(255,255,255,.72) 12px,
            rgba(23,139,139,.08) 12px,
            rgba(23,139,139,.08) 24px
        );
    color: #315f67;
    font-weight: 800;
    font-size: .78rem;
}

.pd8-shape-circle { border-radius: 50%; }
.pd8-shape-rounded { border-radius: 14px; }
.pd8-shape-square,
.pd8-shape-rectangle { border-radius: 0; }

.pd8-text-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.pd8-diagnostics {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--pd8-line);
    border-radius: 14px;
}

.pd8-diagnostics h2 { margin-top: 0; }
.pd8-diagnostics dl > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0;
}
.pd8-diagnostics dt { color: var(--pd8-muted); }
.pd8-diagnostics dd { margin: 0; font-weight: 800; }
.pd8-diagnostics p {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--pd8-line);
    color: var(--pd8-muted);
    font-size: .88rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .pd8-workspace { grid-template-columns: 1fr; }
    .pd8-stage { min-height: 550px; padding: 22px; }
}

@media (max-width: 620px) {
    .pd8-shell { width: min(100% - 20px, 100%); }
    .pd8-header { align-items: flex-start; flex-direction: column; }
    .pd8-stage { min-height: 390px; padding: 12px; }
    .pd8-photo-slot { font-size: .62rem; border-width: 1px; }
}
