/* ===== Automated Drones — home-defense drone tycoon ===== */

.dr-page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
    font-variant-numeric: tabular-nums;
}

/* ---- Top bar ---- */
.dr-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0 1rem;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.dr-logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.25em;
    background: linear-gradient(135deg, #38bdf8, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dr-tagline {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.85rem;
    margin-left: 0.8rem;
}

.dr-session {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.9rem;
}

/* ---- Layout ---- */
.dr-layout {
    display: grid;
    grid-template-columns: 340px minmax(320px, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

.dr-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.dr-panel {
    background: var(--bg-card, #1a2235);
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 1rem;
}

.dr-panel h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary, #94a3b8);
    margin: 0.8rem 0 0.5rem;
}

.dr-panel h3:first-child {
    margin-top: 0;
}

/* ---- 3D viewport ---- */
.dr-viewport-wrap { position: relative; }

.dr-viewport {
    height: 320px;
    border: 1px solid #1e293b;
    border-radius: 12px;
    overflow: hidden;
    background: #070b16;
}

.dr-viewport canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ---- Stats ---- */
.dr-money {
    font-size: 2.1rem;
    font-weight: 800;
    color: #34d399;
}

/* Company level, XP bar and unspent skill points. */
.dr-level {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.35rem 0 0.15rem;
}

.dr-level-badge {
    font-size: 0.78rem;
    font-weight: 800;
    color: #c4b5fd;
    white-space: nowrap;
}

.dr-level-bar {
    flex: 1;
    height: 5px;
    background: #070b16;
    border-radius: 3px;
    overflow: hidden;
}

.dr-level-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6d28d9, #a78bfa);
    border-radius: 3px;
}

.dr-level-pts {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary, #94a3b8);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 0.08rem 0.45rem;
    white-space: nowrap;
}

.dr-level-pts.on {
    color: #c4b5fd;
    border-color: rgba(167, 139, 250, 0.55);
}

.dr-rep {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fbbf24;
    margin-top: 0.1rem;
}

.dr-substats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    margin: 0.3rem 0 0.9rem;
}

/* Trust with the four customer segments: one compact row each. */
.dr-segs {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0.5rem 0 0.7rem;
    padding: 0.45rem 0.55rem;
    background: #0d1424;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
}

.dr-seg-row {
    display: grid;
    grid-template-columns: 1.2rem 5rem 4.4rem 1fr 2.4rem;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    margin: 0;
    padding: 0.15rem 0.1rem;
    font: inherit;
    font-size: 0.7rem;
    color: var(--text-secondary, #94a3b8);
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.dr-seg-row:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.35);
    color: #e2e8f0;
}

.dr-seg-name { font-weight: 600; color: #dce6f5; }

.dr-seg-level {
    font-style: italic;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dr-seg-level.on { font-style: normal; font-weight: 700; color: #fbbf24; }

.dr-seg-bar {
    height: 4px;
    background: #070b16;
    border-radius: 2px;
    overflow: hidden;
}

.dr-seg-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #b45309, #fbbf24);
    border-radius: 2px;
    transition: width 0.25s linear;
}

.dr-seg-rep { text-align: right; font-variant-numeric: tabular-nums; }

/* Customer-segment chip on contract cards. */
.dr-seg-chip {
    font-weight: 700;
    color: #dce6f5;
    white-space: nowrap;
}

.dr-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.dr-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
}

.dr-badge.gold {
    color: #fde68a;
    border-color: rgba(250, 204, 21, 0.5);
}

/* Fixed-height alert strip: storms, night and empty credits come and go,
   but the panel below (and the PILOT button under it) must not jump
   around while the player is clicking. */
.dr-alerts {
    height: 3.6rem;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}

.dr-alert {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.dr-alert-night {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(129, 140, 248, 0.45);
    color: #c7d2fe;
}

.dr-alert-ok {
    background: rgba(52, 211, 153, 0.06);
    border-color: rgba(52, 211, 153, 0.25);
    color: #6ee7b7;
    font-weight: 500;
}

.dr-stat-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.82rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.dr-stat-row:last-child { border-bottom: none; }
.dr-stat-row span:first-child { color: var(--text-secondary, #94a3b8); }
.dr-stat-row em {
    font-style: normal;
    color: var(--text-muted, #64748b);
    font-size: 0.75rem;
}

/* ---- Meters ---- */
.dr-meter-bar {
    height: 7px;
    background: #0d1424;
    border-radius: 4px;
    overflow: hidden;
}

.dr-meter-fill {
    height: 100%;
    background: #38bdf8;
    border-radius: 4px;
    transition: width 0.25s linear;
}

.dr-meter-fill.run { background: linear-gradient(90deg, #38bdf8, #fbbf24); }

/* ---- Pilot button ---- */
.dr-pilot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
    padding: 0.9rem;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #1f1503;
    background: linear-gradient(135deg, #38bdf8, #fbbf24);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.05s, filter 0.15s;
}

.dr-pilot:hover { filter: brightness(1.12); }
.dr-pilot:active { transform: scale(0.97); }

.dr-pilot-sub {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* Pilot stamina: clicks tire the founder; the bar shows how much arm
   is left. */
.dr-pilot-meter {
    width: 70%;
    height: 5px;
    margin-top: 0.3rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 3px;
    overflow: hidden;
}

.dr-pilot-fill {
    display: block;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 3px;
    transition: width 0.2s linear;
}

.dr-pilot-fill.tired { background: #b91c1c; }

/* ---- Live incident decisions ---- */
/* Incident cards float over the 3D yard view (where the incident is
   actually happening) instead of reflowing the left column - the PILOT
   and contract buttons stay exactly where the cursor expects them. */
.dr-incidents { display: none; }
.dr-incidents.live {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    width: min(280px, calc(100% - 1.2rem));
    max-height: calc(100% - 1.2rem);
    overflow-y: auto;
    z-index: 5;
}

@keyframes dr-incident-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35); }
    50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12); }
}

.dr-incident-card {
    background: rgba(26, 11, 16, 0.92);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(239, 68, 68, 0.55);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    animation: dr-incident-pulse 1.2s ease-in-out infinite;
}

.dr-incident-head {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fca5a5;
}

.dr-incident-read {
    font-size: 0.95rem;
    margin: 0.25rem 0 0.1rem;
}

.dr-incident-read strong { color: #fbbf24; }

.dr-incident-ctx {
    font-size: 0.7rem;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 0.45rem;
}

.dr-incident-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.dr-incident-btn { font-weight: 700; }

.dr-incident-auto {
    font-size: 0.68rem;
    color: var(--text-secondary, #94a3b8);
    text-align: center;
    margin-top: 0.35rem;
}

/* ---- Hangar button ---- */
.dr-hangar-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
    padding: 0.7rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #dce6f5;
    background: #1c2740;
    border: 1px solid #38bdf8;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.05s, filter 0.15s;
}

.dr-hangar-open:hover { filter: brightness(1.2); }
.dr-hangar-open:active { transform: scale(0.97); }

/* ---- Hangar overlay ---- */
#dr-hangar-root { display: none; }
#dr-hangar-root.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 900;
}

.dr-hangar-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 14, 0.82);
    backdrop-filter: blur(4px);
}

.dr-hangar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    width: min(1120px, calc(100vw - 2rem));
    height: min(700px, calc(100vh - 2rem));
    background: #10182a;
    border: 1px solid #33466b;
    border-radius: 16px;
    overflow: hidden;
}

.dr-hangar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #1e293b;
}

.dr-hangar-title {
    font-weight: 800;
    letter-spacing: 0.18em;
    background: linear-gradient(135deg, #38bdf8, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dr-hangar-sub {
    margin-left: 0.7rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
}

.dr-hangar-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    flex: 1;
    min-height: 0;
}

.dr-hangar-view {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid #1e293b;
}

#dr-hangar-canvas {
    flex: 1;
    min-height: 0;
}

#dr-hangar-canvas canvas { display: block; }

.dr-hangar-viewbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.45rem 0.9rem;
    border-top: 1px solid #1e293b;
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
}

.dr-hangar-hint { white-space: nowrap; }

.dr-hangar-explode {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #7dd3fc;
}

.dr-hangar-explode input {
    width: 160px;
    accent-color: #38bdf8;
}

.dr-hangar-partinfo {
    padding: 0.55rem 0.9rem;
    border-top: 1px solid #1e293b;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary, #94a3b8);
    min-height: 3.4em;
}

.dr-hangar-partinfo strong { color: #6ee7b7; }

.dr-hangar-side {
    overflow-y: auto;
    padding: 0.9rem;
}

.dr-hangar-side h3 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary, #94a3b8);
    margin: 0.9rem 0 0.5rem;
}

.dr-hangar-side h3:first-child { margin-top: 0; }

.dr-hangar-note {
    margin: -0.15rem 0 0.6rem;
    line-height: 1.5;
    font-size: 0.72rem;
}

.dr-hangar-note strong { color: #fda4af; }

.dr-hangar-slots {
    float: right;
    color: #fbbf24;
    letter-spacing: 0.02em;
}

.dr-hangar-frame-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.dr-previewing { border-color: #fbbf24; }

.dr-hangar-partlist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.dr-hangar-part {
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    color: #dce6f5;
    background: #131c2e;
    border: 1px solid #1e293b;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
    transition: border-color 0.15s, filter 0.15s;
}

.dr-hangar-part:hover { filter: brightness(1.3); }
.dr-hangar-part.active { border-color: #53e0a8; color: #6ee7b7; }

@media (max-width: 900px) {
    .dr-hangar-body { grid-template-columns: 1fr; grid-template-rows: 55% 1fr; }
    .dr-hangar-view { border-right: none; border-bottom: 1px solid #1e293b; }
}

/* ---- Contracts (center) ---- */
/* Grow with content so every offer and in-delivery contract stays
   visible — no panel-level or per-card scroll. */
.dr-contracts { max-height: none; overflow: visible; }

.dr-con {
    background: #131c2e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.5rem;
}

.dr-offer {
    display: flex;
    flex-direction: column;
}

.dr-offer .dr-accept {
    margin-top: 0.15rem;
    align-self: stretch;
}

.dr-con-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.dr-con-pay { color: #34d399; white-space: nowrap; }
.dr-con-eta { color: var(--text-secondary, #94a3b8); font-size: 0.75rem; white-space: nowrap; }

.dr-con-meta {
    font-size: 0.72rem;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 0.35rem;
}

.dr-disc { font-style: normal; font-weight: 700; }
.dr-disc-hardware { color: #fda4af; }
.dr-disc-software { color: #a5b4fc; }
.dr-disc-search { color: #86efac; }
.dr-disc-vision { color: #f9a8d4; }
.dr-disc-swarm { color: #fcd34d; }
.dr-disc-any { color: #7dd3fc; }

.dr-con-tags {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.3rem;
    margin-bottom: 0.45rem;
}

.dr-tag {
    font-size: 0.66rem;
    font-weight: 600;
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 999px;
    padding: 0.08rem 0.45rem;
}

.dr-tag.missing {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.5);
}

/* Delivery deadline chip on running contracts. */
.dr-con-deadline {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
    margin-top: 0.3rem;
}

.dr-con-deadline.late {
    color: #fca5a5;
    font-weight: 700;
}

.dr-substats-bad span { color: #fca5a5; }

.dr-accept { width: 100%; }

.dr-empty {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.82rem;
    font-style: italic;
    padding: 0.3rem 0;
}

/* ---- Skill trees (center summary) ---- */
.dr-trees-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.dr-trees-head h3 { margin: 0; flex: 1; }

/* Unspent-skill-point chip in the trees header. */
.dr-tree-pts {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary, #94a3b8);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
    white-space: nowrap;
}

.dr-tree-pts.on {
    color: #c4b5fd;
    border-color: rgba(167, 139, 250, 0.55);
}

.dr-tree-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
    margin: 0.55rem 0 0.35rem;
}

.dr-tab-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    color: #f0f4f8;
    background: #131c2e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.5rem 0.3rem;
}

.dr-tab-summary.gold { border-color: rgba(250, 204, 21, 0.45); }

.dr-tree-hint {
    margin: 0.2rem 0 0;
    font-size: 0.74rem;
    font-style: italic;
    color: var(--text-secondary, #94a3b8);
}

.dr-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}

.dr-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    font: inherit;
    color: #f0f4f8;
    background: #131c2e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.5rem 0.3rem;
    cursor: pointer;
    transition: border-color 0.15s, filter 0.15s;
}

.dr-tab:hover { filter: brightness(1.25); }
.dr-tab.active { border-color: #38bdf8; box-shadow: 0 0 0 1px #38bdf8; }

.dr-tab-name { font-size: 0.76rem; font-weight: 700; text-align: center; }
.dr-tab-count { font-size: 0.68rem; color: var(--text-secondary, #94a3b8); }
.dr-tab-count.gold { color: #fde68a; font-weight: 700; }

.dr-tree-blurb {
    font-size: 0.78rem;
    color: var(--text-secondary, #94a3b8);
    margin: 0 0 0.7rem;
    line-height: 1.5;
}

.dr-tree-blurb .gold, strong.gold { color: #fde68a; }

.dr-tree { display: flex; flex-direction: column; gap: 0.35rem; }

.dr-skill {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: left;
    font: inherit;
    color: #f0f4f8;
    background: #131c2e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    margin-left: calc(var(--depth, 0) * 14px);
    width: calc(100% - var(--depth, 0) * 14px);
    cursor: pointer;
    transition: border-color 0.15s, filter 0.15s;
    box-sizing: border-box;
}

.dr-skill:hover:not(:disabled):not(.locked) { filter: brightness(1.25); }
.dr-skill:disabled { opacity: 0.45; cursor: not-allowed; }

.dr-skill.owned {
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(52, 211, 153, 0.06);
}

.dr-skill.owned .dr-skill-name { color: #6ee7b7; }

.dr-skill.locked {
    opacity: 0.45;
    cursor: default;
}

.dr-skill-name { font-size: 0.84rem; font-weight: 600; }
.dr-skill-desc { font-size: 0.7rem; color: var(--text-secondary, #94a3b8); }
.dr-skill-cost { font-size: 0.76rem; font-weight: 700; color: #c4b5fd; }

/* Footer chips per skill: customer segments won + payload-module note. */
.dr-skill-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.6rem;
    margin-top: 0.1rem;
}

.dr-skill-segs {
    font-size: 0.66rem;
    color: var(--text-muted, #64748b);
    letter-spacing: 0.06em;
}

.dr-skill-mod {
    font-size: 0.62rem;
    font-weight: 700;
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 999px;
    padding: 0.02rem 0.4rem;
    white-space: nowrap;
}

.dr-tree-legend {
    font-size: 0.68rem;
    color: var(--text-muted, #64748b);
    margin: -0.2rem 0 0.6rem;
    letter-spacing: 0.02em;
}

/* Cross-tree prerequisite tag on locked skills */
.dr-cross {
    font-style: normal;
    font-size: 0.64rem;
    font-weight: 700;
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 999px;
    padding: 0.02rem 0.4rem;
    white-space: nowrap;
}

/* ---- Full skill map overlay ---- */
#dr-skillmap-root { display: none; }
#dr-skillmap-root.open {
    display: block;
    position: fixed;
    inset: 0;
    /* Same layer as the sticky site navbar and the modal root: DOM order
       puts the navbar below this overlay and modals above it. */
    z-index: 1000;
    background: rgba(4, 7, 14, 0.9);
    backdrop-filter: blur(4px);
}

.dr-map {
    position: absolute;
    inset: 1rem;
    display: flex;
    flex-direction: column;
    background: #0a0f1c;
    border: 1px solid #33466b;
    border-radius: 16px;
    overflow: hidden;
}

.dr-map-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #1e293b;
    background: #0d1424;
}

.dr-map-title {
    font-weight: 800;
    letter-spacing: 0.18em;
    background: linear-gradient(135deg, #38bdf8, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dr-map-sub {
    margin-left: 0.7rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
}

.dr-map-segs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.dr-map-segs-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    margin-right: 0.15rem;
}

.dr-map-seg {
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    color: #dce6f5;
    background: #131c2e;
    border: 1px solid #1e293b;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.dr-map-seg:hover {
    border-color: rgba(251, 191, 36, 0.55);
    background: rgba(251, 191, 36, 0.08);
}

.dr-map-seg.active {
    color: #0a0f1c;
    background: #fbbf24;
    border-color: #fbbf24;
}

.dr-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    font-size: 0.7rem;
    color: var(--text-secondary, #94a3b8);
}

.dr-map-key::before {
    content: '';
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    border-radius: 3px;
    margin-right: 0.35em;
    vertical-align: -0.05em;
    border: 1px solid #33466b;
    background: #131c2e;
}

.dr-map-key.owned::before { border-color: rgba(52, 211, 153, 0.8); background: rgba(52, 211, 153, 0.25); }
.dr-map-key.avail::before { border-color: #38bdf8; }
.dr-map-key.locked::before { opacity: 0.4; }
.dr-map-key.seghl::before {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.55);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.75);
}
.dr-map-key.cross::before {
    height: 0;
    border: none;
    border-top: 2px dashed #fbbf24;
    border-radius: 0;
    background: none;
    vertical-align: 0.25em;
}

.dr-map-tools { display: flex; gap: 0.4rem; }

.dr-map-viewport {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    background:
        radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.06), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.05), transparent 45%),
        #0a0f1c;
}

.dr-map-viewport:active { cursor: grabbing; }

.dr-map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
}

.dr-map-edges {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.dr-map-edge {
    stroke-width: 1.5;
    opacity: 0.18;
    transition: opacity 0.2s;
}

.dr-map-edge.cross { stroke-dasharray: 6 5; }
.dr-map-edge.half { opacity: 0.5; }
.dr-map-edge.on { opacity: 0.85; stroke-width: 2; }
.dr-map-edge.hl { opacity: 1; stroke-width: 3; }
.dr-map-edge.seg-hl {
    opacity: 1;
    stroke-width: 3.5;
    stroke: #fbbf24;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.7));
}

.dr-map-divider {
    position: absolute;
    left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.dr-map-band-head {
    position: absolute;
    transform: translateY(-0.2em);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dr-map-band-count {
    margin-left: 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #94a3b8);
}

.dr-map-band-count.gold { color: #fde68a; }

.dr-map-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    width: 172px;
    height: 56px;
    padding: 0.3rem 0.55rem;
    box-sizing: border-box;
    text-align: left;
    font: inherit;
    color: #f0f4f8;
    background: #131c2e;
    border: 1px solid #1e293b;
    border-left: 3px solid var(--tc, #38bdf8);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, filter 0.15s, box-shadow 0.15s, opacity 0.2s, transform 0.15s;
}

.dr-map-node:hover { filter: brightness(1.3); }

.dr-map-canvas.seg-filter .dr-map-node:not(.seg-hl) {
    opacity: 0.1;
    filter: grayscale(0.85) brightness(0.55);
    box-shadow: none;
}

.dr-map-canvas.seg-filter .dr-map-edge:not(.seg-hl) {
    opacity: 0.03;
}

.dr-map-canvas.seg-filter .dr-map-band-head {
    opacity: 0.35;
}

.dr-map-node.seg-hl {
    border-color: #fbbf24;
    border-left-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(19, 28, 46, 0.95));
    box-shadow:
        0 0 0 2px rgba(251, 191, 36, 0.55),
        0 0 22px rgba(251, 191, 36, 0.55),
        0 0 8px rgba(251, 191, 36, 0.35);
    z-index: 3;
    opacity: 1;
    filter: none;
    transform: scale(1.04);
}

.dr-map-node.seg-hl::after {
    content: 'needed';
    position: absolute;
    top: -0.45rem;
    right: 0.4rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0a0f1c;
    background: #fbbf24;
    border-radius: 999px;
    padding: 0.08rem 0.4rem;
    line-height: 1.2;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.dr-map-node.owned {
    border-color: rgba(52, 211, 153, 0.55);
    border-left-color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.18);
}

.dr-map-node.owned.seg-hl {
    border-color: #fbbf24;
    border-left-color: #34d399;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(52, 211, 153, 0.18));
    box-shadow:
        0 0 0 2px rgba(251, 191, 36, 0.6),
        0 0 22px rgba(251, 191, 36, 0.5),
        0 0 10px rgba(52, 211, 153, 0.35);
}

.dr-map-node.owned.seg-hl::after {
    content: 'needed · learned';
    background: linear-gradient(90deg, #fbbf24, #34d399);
}

.dr-map-node.owned .dr-map-node-name { color: #6ee7b7; }
.dr-map-node.owned .dr-map-node-sub { color: rgba(110, 231, 183, 0.75); }

.dr-map-node.locked { opacity: 0.42; }

/* Customer filter wins over the usual locked dimming so needed skills stay obvious. */
.dr-map-canvas.seg-filter .dr-map-node.seg-hl {
    opacity: 1;
    filter: none;
}

.dr-map-node.afford {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.dr-map-node.afford.seg-hl {
    border-color: #fbbf24;
    box-shadow:
        0 0 0 2px rgba(251, 191, 36, 0.55),
        0 0 22px rgba(251, 191, 36, 0.55),
        0 0 8px rgba(251, 191, 36, 0.35);
}

.dr-map-node.selected {
    border-color: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.6), 0 0 16px rgba(251, 191, 36, 0.3);
    opacity: 1;
}

.dr-map-node-name {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dr-map-node-sub {
    font-size: 0.62rem;
    font-weight: 600;
    color: #34d399;
}

.dr-map-node.locked .dr-map-node-sub { color: var(--text-secondary, #94a3b8); }

.dr-map-hint {
    position: absolute;
    right: 0.9rem;
    bottom: 0.7rem;
    font-size: 0.72rem;
    color: var(--text-secondary, #94a3b8);
    pointer-events: none;
}

.dr-map-hint.seg-active {
    left: 0.9rem;
    right: auto;
    bottom: auto;
    top: 0.85rem;
    max-width: min(420px, calc(100% - 2rem));
    font-size: 0.82rem;
    font-weight: 700;
    color: #0a0f1c;
    background: #fbbf24;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.45);
    line-height: 1.35;
}

.dr-map-inspector {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    width: min(400px, calc(100% - 2rem));
    max-height: min(340px, 60%);
    overflow-y: auto;
    background: rgba(13, 20, 36, 0.96);
    border: 1px solid #33466b;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    cursor: auto;
}

.dr-map-ins-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.dr-map-ins-head .dr-modal-close { position: static; }

.dr-map-ins-tree {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dr-map-inspector h4 { margin: 0 0 0.35rem; font-size: 1rem; }

.dr-map-ins-desc {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #7dd3fc;
}

.dr-map-ins-segs {
    margin: 0 0 0.4rem;
    font-size: 0.74rem;
    color: #fcd34d;
}

.dr-map-ins-slot {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    color: #7dd3fc;
}

.dr-map-ins-req {
    margin: 0 0 0.5rem;
    font-size: 0.74rem;
    color: var(--text-secondary, #94a3b8);
}

.dr-map-pre-ok { color: #6ee7b7; }
.dr-map-pre-missing { color: #fca5a5; }

.dr-map-ins-learn {
    margin: 0 0 0.6rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-secondary, #94a3b8);
}

.dr-map-ins-actions { display: flex; justify-content: flex-end; }

.dr-map-ins-owned { font-size: 0.85rem; font-weight: 700; color: #34d399; }
.dr-map-ins-locked { font-size: 0.85rem; font-weight: 600; color: #fca5a5; }

@media (max-width: 700px) {
    .dr-map { inset: 0.4rem; }
    .dr-map-legend { display: none; }
}

/* ---- Buttons ---- */
.dr-btn {
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f0f4f8;
    background: #263650;
    border: 1px solid #33466b;
    border-radius: 8px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: filter 0.15s;
}

a.dr-btn {
    display: inline-block;
    text-decoration: none;
}

.dr-btn:hover:not(:disabled) { filter: brightness(1.2); }
.dr-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.dr-btn-primary { background: linear-gradient(135deg, #0369a1, #b45309); border: none; }
.dr-btn-small { font-size: 0.75rem; padding: 0.3rem 0.7rem; }
.dr-btn-block { display: block; width: 100%; margin-bottom: 0.6rem; }

/* ---- Log ---- */
.dr-log {
    height: 170px;
    overflow-y: auto;
    font-size: 0.78rem;
    line-height: 1.5;
}

.dr-log-line { color: var(--text-secondary, #94a3b8); }
.dr-log-earn { color: #34d399; }
.dr-log-buy { color: #7dd3fc; }
.dr-log-milestone { color: #facc15; font-weight: 600; }

/* ---- Shop ---- */
.dr-shop {
    max-height: 80vh;
    overflow-y: auto;
}

.dr-shop-section { margin-bottom: 0.9rem; }

.dr-shop-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    width: 100%;
    text-align: left;
    font: inherit;
    color: #f0f4f8;
    background: #131c2e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.4rem;
    cursor: pointer;
    transition: border-color 0.15s, filter 0.15s;
}

.dr-shop-item:hover:not(:disabled) { filter: brightness(1.25); }
.dr-shop-item:disabled { opacity: 0.45; cursor: not-allowed; }
.dr-shop-special { border-color: #38bdf8; }

.dr-current {
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(52, 211, 153, 0.06);
}

.dr-shop-name { font-size: 0.85rem; font-weight: 600; }
.dr-owned { font-style: normal; color: #34d399; font-size: 0.72rem; }
.dr-shop-desc { font-size: 0.7rem; color: var(--text-secondary, #94a3b8); }
.dr-shop-cost { font-size: 0.78rem; font-weight: 700; color: #34d399; }

/* ---- Modals ---- */
#dr-modal-root { display: none; }
#dr-modal-root.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.dr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 15, 0.75);
    backdrop-filter: blur(3px);
}

.dr-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(480px, calc(100vw - 2rem));
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg-card, #1a2235);
    border: 1px solid #33466b;
    border-radius: 16px;
    padding: 1.6rem;
}

.dr-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.9rem;
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    color: var(--text-secondary, #94a3b8);
    background: none;
    border: none;
    padding: 0.3rem;
    cursor: pointer;
}

.dr-modal-close:hover { color: #f0f4f8; }

.dr-modal h2 { margin: 0 0 0.7rem; font-size: 1.25rem; }
.dr-modal p { color: var(--text-secondary, #94a3b8); font-size: 0.9rem; line-height: 1.6; }

.dr-learn-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.5);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    margin-bottom: 0.7rem;
}

.dr-field {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 0.8rem;
}

.dr-field input,
.dr-start-lookup input {
    display: block;
    width: 100%;
    margin-top: 0.3rem;
    font: inherit;
    font-size: 0.9rem;
    color: #f0f4f8;
    background: #0d1424;
    border: 1px solid #33466b;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    box-sizing: border-box;
}

.dr-hint { font-size: 0.78rem; color: var(--text-secondary, #94a3b8); }

.dr-seg-cap-list {
    margin: 0.4rem 0 0.8rem;
    padding-left: 1.15rem;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.86rem;
    line-height: 1.55;
}

.dr-seg-cap-list strong { color: #e2e8f0; }

.dr-seg-skill {
    color: #94a3b8;
    font-size: 0.82rem;
}

.dr-seg-skill.owned { color: #6ee7b7; }

.dr-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1rem;
}

.dr-modal-error { color: #fca5a5; font-size: 0.8rem; margin-top: 0.6rem; }

/* ---- Test range overlay ---- */
.dr-range-open { border-color: #34d399; }

#dr-range-root { display: none; }
#dr-range-root.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 950;
}

.dr-range-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 14, 0.82);
    backdrop-filter: blur(4px);
}

.dr-range {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    width: min(920px, calc(100vw - 2rem));
    height: min(620px, calc(100vh - 2rem));
    background: #10182a;
    border: 1px solid #33466b;
    border-radius: 16px;
    overflow: hidden;
}

.dr-range-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #1e293b;
}

.dr-range-title {
    font-weight: 800;
    letter-spacing: 0.18em;
    background: linear-gradient(135deg, #34d399, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dr-range-sub {
    margin-left: 0.7rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
}

.dr-range-body {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    flex: 1;
    min-height: 0;
}

.dr-range-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.9rem;
    overflow-y: auto;
    border-right: 1px solid #1e293b;
}

.dr-range-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: left;
    font: inherit;
    color: #f0f4f8;
    background: #131c2e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    transition: border-color 0.15s, filter 0.15s;
}

.dr-range-item:hover { filter: brightness(1.25); }
.dr-range-item.active { border-color: #34d399; }

.dr-range-item-name { font-size: 0.84rem; font-weight: 700; }
.dr-range-item-desc { font-size: 0.7rem; color: var(--text-secondary, #94a3b8); }

.dr-range-result {
    padding: 1rem 1.2rem;
    overflow-y: auto;
    font-size: 0.88rem;
    line-height: 1.6;
}

.dr-range-idle {
    color: var(--text-secondary, #94a3b8);
    font-style: italic;
}

.dr-range-run-title {
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.dr-range-step {
    padding: 0.25rem 0 0.25rem 0.8rem;
    border-left: 2px solid #33466b;
    margin-bottom: 0.25rem;
    animation: dr-step-in 0.3s ease-out;
}

@keyframes dr-step-in {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

.dr-range-step.ok { border-left-color: #34d399; color: #6ee7b7; }
.dr-range-step.bad { border-left-color: #ef4444; color: #fca5a5; }
.dr-range-step.info { color: #cbd5e1; }

.dr-range-verdict {
    margin-top: 0.8rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-size: 0.82rem;
    animation: dr-step-in 0.3s ease-out;
}

.dr-range-verdict.pass { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.45); }
.dr-range-verdict.fail { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.45); }
.dr-range-verdict.mixed { background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.45); }

.dr-range-verdict-tag { font-weight: 800; letter-spacing: 0.08em; margin-right: 0.4rem; }

@media (max-width: 700px) {
    .dr-range-body { grid-template-columns: 1fr; grid-template-rows: 40% 1fr; }
    .dr-range-list { border-right: none; border-bottom: 1px solid #1e293b; flex-direction: row; flex-wrap: wrap; }
    .dr-range-item { flex: 1 1 45%; }
}

/* ---- Start screen ---- */
.dr-start-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-align: center;
    background: linear-gradient(135deg, #38bdf8, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.dr-start-sub { text-align: center; margin-bottom: 1.4rem; }

.dr-start-divider {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
    margin: 1rem 0 0.6rem;
}

.dr-start-lookup {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.dr-start-lookup input { margin-top: 0; flex: 1; }

.dr-session-row {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    width: 100%;
    text-align: left;
    font: inherit;
    color: #f0f4f8;
    background: #131c2e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.4rem;
    cursor: pointer;
}

.dr-session-row:hover { border-color: #38bdf8; }
.dr-session-name { font-weight: 600; font-size: 0.9rem; }
.dr-session-meta { font-size: 0.75rem; color: var(--text-secondary, #94a3b8); }

/* ---- Ranking page ---- */
.dr-ranking {
    max-width: 640px;
    margin: 1.5rem auto 0;
}

.dr-ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dr-ranking-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card, #1a2235);
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 0.8rem 1.1rem;
    margin-bottom: 0.5rem;
}

.dr-ranking-first {
    border-color: #facc15;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.35);
}

.dr-ranking-pos {
    flex: 0 0 2rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-secondary, #94a3b8);
    text-align: center;
}

.dr-ranking-first .dr-ranking-pos { color: #facc15; }

.dr-ranking-name {
    flex: 1;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dr-ranking-score {
    font-weight: 800;
    color: #34d399;
    white-space: nowrap;
}

.dr-ranking-hint {
    text-align: center;
    margin-top: 1rem;
}

/* ---- Toast ---- */
.dr-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translate(-50%, 20px);
    background: #263650;
    border: 1px solid #33466b;
    color: #f0f4f8;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1100;
    pointer-events: none;
}

.dr-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .dr-layout { grid-template-columns: 1fr 1fr; }
    .dr-col-center { order: -1; grid-column: 1 / -1; }
    .dr-tabs, .dr-tree-summary { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .dr-layout { grid-template-columns: 1fr; }
    .dr-shop { max-height: none; }
    .dr-viewport { height: 240px; }
    .dr-tabs, .dr-tree-summary { grid-template-columns: repeat(2, 1fr); }
}
