/*
scope: assets/css/gdcd
type: css
version: 0.1.0
updated_at: 2026-07-04
migration_status: current
owner: gdcd
tags: [css, 4S5R, layout, design-system]
*/

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
    --bg:        #0a1214;
    --bg-panel:  #132226;
    --bg-panel2: #1c2d31;
    --txt:       #ffffff;
    --txt-muted: #7fa4a6;
    --cyan:      #2ec4b6;
    --cyan-hi:   #5febe0;
    --orange:    #ff9f1c;
    --green:     #65e4a3;
    --danger:    #ef4444;
    --stroke:    rgba(5,10,11,0.85);
    --shadow:    rgba(5,10,11,0.45);

    --mn-w:   264px;
    --hd-h:   72px;
    --radius: 6px;
    --gap:    24px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--txt-muted);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ── Grid background ─────────────────────────────────────────────────────── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(95,235,224,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95,235,224,.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 80%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(95,235,224,.10), transparent 34rem),
        radial-gradient(circle at 90% 70%, rgba(255,159,28,.07), transparent 28rem);
}

/* ── 4S5R Layout grid ────────────────────────────────────────────────────── */
/*
    body
    ┌────────────────────────────┐
    │  .hd  (full-width topbar)  │
    ├──────────┬─────────────────┤
    │  .mn     │  .ct            │
    │ (sidebar)│ (content)       │
    ├──────────┴─────────────────┤
    │  .ft  (full-width footer)  │
    └────────────────────────────┘

    optional: body + .mnr adds a right panel
*/

body {
    display: grid;
    grid-template-columns: var(--mn-w) 1fr;
    grid-template-rows: var(--hd-h) 1fr auto;
    grid-template-areas:
        "hd  hd"
        "mn  ct"
        "ft  ft";
    position: relative;
    z-index: 1;
}

/* with right panel */
body:has(.mnr) {
    grid-template-columns: var(--mn-w) 1fr 300px;
    grid-template-areas:
        "hd  hd  hd"
        "mn  ct  mnr"
        "ft  ft  ft";
}

/* ── .hd — Header / Topbar ───────────────────────────────────────────────── */
.hd {
    grid-area: hd;
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(19,34,38,.96);
    border-bottom: 1px solid var(--stroke);
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 2px 18px var(--shadow);
}

.hd-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    width: var(--mn-w);
    flex: 0 0 var(--mn-w);
    padding: 0 22px;
    border-right: 1px solid var(--stroke);
    height: 100%;
}

.hd-brand .brand-mark {
    position: relative;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(95,235,224,.55);
    background: rgba(46,196,182,.1);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.hd-brand .brand-mark::after {
    content: attr(data-g);
    position: absolute;
    color: var(--cyan-hi);
    font-weight: 900;
    font-size: 14px;
    transform: rotate(-45deg);
}

.hd-brand strong,
.hd-brand small { display: block; text-transform: uppercase; }

.hd-brand strong {
    color: var(--txt);
    font-size: 12px;
    letter-spacing: .16em;
}

.hd-brand small {
    color: rgba(95,235,224,.75);
    font-size: 9px;
    letter-spacing: .22em;
    margin-top: 2px;
}

.hd-toolbar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gap);
    gap: 16px;
}

.terminal-label {
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--txt-muted);
    text-transform: uppercase;
}

.terminal-label span { color: var(--cyan); margin-right: 6px; }

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(95,235,224,.15);
    border-radius: var(--radius);
    padding: 0 12px;
    height: 36px;
    min-width: 240px;
}

.search-box span {
    color: var(--cyan);
    font-size: 13px;
    flex-shrink: 0;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--txt);
    font-size: 13px;
    width: 100%;
}

.search-box input::placeholder { color: rgba(127,164,166,.5); }

/* ── .mn — Sidebar Nav ───────────────────────────────────────────────────── */
.mn {
    grid-area: mn;
    background: rgba(19,34,38,.94);
    border-right: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: var(--hd-h);
    height: calc(100vh - var(--hd-h));
}

/* strict 4S5R: ol > li > a > span */
.mn ol {
    list-style: none;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.mn li.mn-group {
    padding: 18px 8px 4px;
    color: rgba(46,196,182,.6);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mn li.mn-group:first-child { padding-top: 0; }

.mn li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--txt-muted);
    transition: background .15s, color .15s;
}

.mn li a span {
    width: 16px;
    text-align: center;
    color: rgba(95,235,224,.5);
    font-size: 12px;
    flex-shrink: 0;
}

.mn li a:hover {
    background: rgba(46,196,182,.08);
    color: var(--txt);
}

.mn li a.active {
    background: rgba(46,196,182,.12);
    color: var(--cyan-hi);
}

.mn li a.active span { color: var(--cyan); }

.mn-status {
    padding: 16px 22px;
    border-top: 1px solid var(--stroke);
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(127,164,166,.5);
    letter-spacing: .06em;
}

.mn-status span i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    margin-right: 6px;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

/* ── .ct — Main content ──────────────────────────────────────────────────── */
.ct {
    grid-area: ct;
    padding: var(--gap);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

/* strict 4S5R: .ct > section only */
.ct > section {
    position: relative;
    z-index: 1;
}

/* ── .mnr — Right panel (optional) ──────────────────────────────────────── */
.mnr {
    grid-area: mnr;
    border-left: 1px solid var(--stroke);
    background: rgba(19,34,38,.6);
    padding: var(--gap) 20px;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    overflow-y: auto;
    position: sticky;
    top: var(--hd-h);
    height: calc(100vh - var(--hd-h));
}

/* ── .ft — Footer ────────────────────────────────────────────────────────── */
.ft {
    grid-area: ft;
    border-top: 1px solid var(--stroke);
    padding: 16px var(--gap);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(127,164,166,.4);
    letter-spacing: .06em;
}

/* ── Section heading ─────────────────────────────────────────────────────── */
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 16px;
}

.section-heading div { display: flex; flex-direction: column; gap: 4px; }
.section-heading > div > span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cyan);
}
.section-heading h1,
.section-heading h2 { color: var(--txt); font-size: 18px; font-weight: 700; }

.section-heading a {
    font-size: 12px;
    color: var(--cyan);
    white-space: nowrap;
}
.section-heading a:hover { color: var(--cyan-hi); }

/* ── Tags & Badges ───────────────────────────────────────────────────────── */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(46,196,182,.15);
    color: var(--cyan);
}
.tag.orange  { background: rgba(255,159,28,.14); color: var(--orange); }
.tag.green   { background: rgba(101,228,163,.12); color: var(--green); }
.tag.danger  { background: rgba(239,68,68,.12); color: var(--danger); }

.rarity { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.rarity.legendary { color: #f59e0b; }
.rarity.epic      { color: #a855f7; }
.rarity.rare      { color: var(--cyan); }
.rarity.common    { color: var(--txt-muted); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    border: none;
    cursor: pointer;
    transition: opacity .15s;
    text-decoration: none;
}
.btn:hover { opacity: .85; }

.btn-primary {
    background: var(--cyan);
    color: #050a0b;
}
.btn-secondary {
    background: transparent;
    border: 1px solid rgba(95,235,224,.3);
    color: var(--cyan-hi);
}
.btn-danger {
    background: rgba(239,68,68,.15);
    border: 1px solid rgba(239,68,68,.3);
    color: var(--danger);
}
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Form elements ───────────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--txt-muted);
}
.form-control {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(95,235,224,.15);
    border-radius: var(--radius);
    color: var(--txt);
    padding: 9px 12px;
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: border-color .15s;
}
.form-control:focus { border-color: var(--cyan); }

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.filter-bar select { flex: 0 0 auto; min-width: 140px; }

/* ── Entity card ─────────────────────────────────────────────────────────── */
.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.entity-card {
    background: var(--bg-panel);
    border: 1px solid rgba(95,235,224,.08);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .15s;
}
.entity-card:hover { border-color: rgba(95,235,224,.22); }

.entity-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--bg-panel2);
}
.entity-card h2, .entity-card h3 {
    color: var(--txt);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}
.entity-card p {
    font-size: 12px;
    line-height: 1.5;
    flex: 1;
}
.entity-card .entity-link {
    font-size: 11px;
    color: var(--cyan);
    margin-top: auto;
}
.entity-card .entity-link:hover { color: var(--cyan-hi); }

/* ── Template card ───────────────────────────────────────────────────────── */
.template-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.template-card {
    background: var(--bg-panel);
    border: 1px solid rgba(95,235,224,.08);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .15s;
}
.template-card:hover { border-color: rgba(95,235,224,.2); }
.template-card.featured { border-color: rgba(95,235,224,.22); }

.template-card h3 { color: var(--txt); font-size: 15px; font-weight: 600; }
.template-card p  { font-size: 13px; }

.template-card dl {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.template-card dl div { display: flex; flex-direction: column; gap: 2px; }
.template-card dl dt { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.template-card dl dd { color: var(--txt); font-size: 13px; font-weight: 600; }

.template-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(127,164,166,.6);
    border-top: 1px solid var(--stroke);
    padding-top: 10px;
    margin-top: 4px;
}
.template-card footer a { color: var(--cyan); }
.template-card footer a:hover { color: var(--cyan-hi); }

/* ── Data table ──────────────────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.data-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--txt-muted);
    border-bottom: 1px solid var(--stroke);
}
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(5,10,11,.5);
    color: var(--txt-muted);
}
.data-table tr:hover td { background: rgba(46,196,182,.04); }
.data-table td strong, .data-table td a { color: var(--txt); }

/* ── Stats strip ─────────────────────────────────────────────────────────── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.stats-strip article {
    background: var(--bg-panel);
    border: 1px solid rgba(95,235,224,.08);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stats-strip strong {
    color: var(--cyan-hi);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.01em;
}
.stats-strip span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ── Event card ──────────────────────────────────────────────────────────── */
.event-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255,159,28,.2);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.event-card h3 { color: var(--txt); font-size: 14px; font-weight: 600; }
.event-card p { font-size: 12px; }

.pulse-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--orange);
}
.pulse-label i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}

.countdown {
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    font-variant-numeric: tabular-nums;
}

/* ── Section block ───────────────────────────────────────────────────────── */
.section-block {
    background: var(--bg-panel);
    border: 1px solid rgba(95,235,224,.07);
    border-radius: var(--radius);
    padding: 22px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--gap);
    align-items: start;
    padding: 8px 0 12px;
}

.hero-copy { display: flex; flex-direction: column; gap: 14px; }
.hero-copy .eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--cyan);
}
.hero-copy h1 { color: var(--txt); font-size: 26px; font-weight: 800; line-height: 1.3; }
.hero-copy p  { font-size: 15px; max-width: 52ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
nav.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    font-size: 12px;
    margin-bottom: 20px;
}
nav.breadcrumb li { display: flex; align-items: center; gap: 6px; }
nav.breadcrumb li::before { content: "/"; color: rgba(127,164,166,.3); }
nav.breadcrumb li:first-child::before { display: none; }
nav.breadcrumb a { color: var(--cyan); }
nav.breadcrumb [aria-current="page"] { color: var(--txt-muted); }

/* ── Alert / errors ──────────────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    border: 1px solid transparent;
}
.alert-danger  { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.25); color: #fca5a5; }
.alert-success { background: rgba(101,228,163,.1); border-color: rgba(101,228,163,.25); color: var(--green); }

/* ── Admin layout tweaks ─────────────────────────────────────────────────── */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.admin-stat-card {
    background: var(--bg-panel);
    border: 1px solid rgba(95,235,224,.08);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-stat-card strong { color: var(--cyan-hi); font-size: 28px; font-weight: 800; }
.admin-stat-card span   { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.admin-stat-card.alert-card strong { color: var(--orange); }

/* ── Pagination (Laravel default override) ───────────────────────────────── */
.pagination { display: flex; gap: 4px; list-style: none; margin-top: 24px; flex-wrap: wrap; }
.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
    border-radius: var(--radius);
    border: 1px solid rgba(95,235,224,.15);
    color: var(--txt-muted);
    transition: all .15s;
}
.pagination .page-item .page-link:hover { border-color: var(--cyan); color: var(--cyan); }
.pagination .page-item.active .page-link { background: var(--cyan); color: #050a0b; border-color: var(--cyan); }
.pagination .page-item.disabled .page-link { opacity: .35; pointer-events: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    :root { --mn-w: 0px; }
    body { grid-template-columns: 1fr; grid-template-areas: "hd" "ct" "ft"; }
    .mn { display: none; position: fixed; left: 0; top: var(--hd-h); width: 264px; z-index: 40; background: var(--bg-panel); }
    .mn.open { display: flex; }
    .hd-brand { display: none; }
    .hd-toolbar { padding: 0 16px; }
    body:has(.mnr) { grid-template-columns: 1fr; grid-template-areas: "hd" "ct" "mnr" "ft"; }
    .mnr { position: static; height: auto; border-left: none; border-top: 1px solid var(--stroke); }
    .hero { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    :root { --gap: 16px; }
    .entity-grid { grid-template-columns: 1fr 1fr; }
    .stats-strip { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   SYNERGY LAB
   ═══════════════════════════════════════════════════════════════════ */

/* Lab 2-column grid (div inside .ct section — 4S5R: max 4 divs OK) */
.lab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: start;
}

.lab-panel {
    background: var(--bg-panel);
    border: 1px solid rgba(95,235,224,.07);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lab-panel-title {
    color: var(--txt);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0;
}

/* ── Turret picker ── */
.turret-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.turret-pick-card {
    background: var(--bg-panel2);
    border: 1px solid rgba(95,235,224,.08);
    border-radius: var(--radius);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    user-select: none;
    text-align: center;
}

.turret-pick-card:hover  { border-color: rgba(95,235,224,.25); }
.turret-pick-card:focus  { outline: 2px solid var(--cyan); outline-offset: 2px; }

.turret-pick-card.selected {
    border-color: var(--cyan);
    background: rgba(46,196,182,.1);
}

.turret-pick-card.maxed { border-color: var(--orange); }

.turret-pick-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255,255,255,.04);
}

.turret-pick-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(46,196,182,.1);
    border: 1px solid rgba(95,235,224,.2);
    border-radius: 4px;
    color: var(--cyan-hi);
    font-weight: 800;
    font-size: 16px;
}

.turret-pick-info { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.turret-pick-info strong { color: var(--txt); font-size: 11px; line-height: 1.3; }

/* damage type tags */
.tag.damage-fire        { background: rgba(255,159,28,.14); color: var(--orange); }
.tag.damage-energy      { background: rgba(46,196,182,.14); color: var(--cyan); }
.tag.damage-electric    { background: rgba(234,179,8,.14);  color: #eab308; }
.tag.damage-physical    { background: rgba(156,163,175,.12); color: #9ca3af; }
.tag.damage-force-field { background: rgba(167,139,250,.14); color: #a78bfa; }

/* Level stepper */
.level-stepper {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,.2);
    border-radius: 4px;
    padding: 2px 4px;
}

.level-stepper button {
    background: none;
    border: none;
    color: var(--cyan);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 1px 5px;
    border-radius: 3px;
    transition: background .1s;
}

.level-stepper button:hover { background: rgba(46,196,182,.15); }

.ls-val {
    min-width: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--txt);
    font-variant-numeric: tabular-nums;
}

/* ── Score display ── */
.score-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.score-row {
    display: grid;
    grid-template-columns: 60px 1fr 36px;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.score-row > span { color: var(--txt-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.score-row > strong { color: var(--txt); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

.score-track {
    height: 6px;
    background: rgba(255,255,255,.06);
    border-radius: 3px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .3s ease;
}
.score-boss    { background: var(--danger); }
.score-farm    { background: var(--green); }
.score-event   { background: var(--orange); }
.score-endless { background: var(--cyan); }

/* ── Combo result cards ── */
.result-section-title {
    color: var(--txt);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 16px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-section-title:first-child { margin-top: 0; }

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--cyan);
    color: #050a0b;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
}

.combo-list { display: flex; flex-direction: column; gap: 8px; }

.result-combo {
    background: rgba(46,196,182,.06);
    border: 1px solid rgba(46,196,182,.18);
    border-radius: var(--radius);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.result-combo header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.result-combo header strong { color: var(--txt); font-size: 13px; }

.result-combo p { font-size: 12px; }

.combo-requires {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    flex-wrap: wrap;
}

.req-met {
    background: rgba(101,228,163,.14);
    color: var(--green);
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
}

.req-missing {
    background: rgba(239,68,68,.12);
    color: var(--danger);
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
    text-decoration: line-through;
    opacity: .7;
}

/* Near miss */
.near-miss {
    background: rgba(255,159,28,.05);
    border: 1px solid rgba(255,159,28,.18);
    border-radius: var(--radius);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.near-miss strong { color: var(--txt); font-size: 13px; }
.near-miss p { font-size: 12px; }
.near-hint { color: var(--orange) !important; font-size: 11px !important; }

/* Warnings */
.synergy-warn {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    margin-bottom: 4px;
}
.synergy-warn.warn { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); color: #fca5a5; }
.synergy-warn.info { background: rgba(46,196,182,.08); border: 1px solid rgba(46,196,182,.2); color: var(--cyan-hi); }

.synergy-empty, .result-empty, .result-hint {
    font-size: 12px;
    opacity: .5;
    text-align: center;
    padding: 16px 0;
}

.result-hint { opacity: .4; padding: 4px 0 8px; text-align: left; }

/* Legend */
.lab-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 10px;
    color: rgba(127,164,166,.5);
    letter-spacing: .06em;
    margin-top: 8px;
}

.req-met-sample     { background: rgba(101,228,163,.14); color: var(--green); padding: 1px 5px; border-radius: 3px; font-weight: 700; }
.req-missing-sample { background: rgba(239,68,68,.12);   color: var(--danger); padding: 1px 5px; border-radius: 3px; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .lab-grid { grid-template-columns: 1fr; }
    .turret-picker { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════════════
   PROGRESSION PLANNER
   ═══════════════════════════════════════════════════════════════════ */

.planner-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.planner-rule {
    background: var(--bg-panel2);
    border: 1px solid rgba(95,235,224,.07);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .15s;
}

.planner-rule:hover { border-color: rgba(95,235,224,.18); }

.planner-rule-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.planner-rule-title {
    color: var(--txt);
    font-size: 14px;
}

.priority-badge {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-shrink: 0;
}

.priority-badge span {
    color: var(--cyan-hi);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.priority-badge small {
    font-size: 10px;
    color: var(--txt-muted);
}

.planner-gain {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
}

.planner-gain span { margin-right: 4px; }

.planner-reason {
    font-size: 12px;
    color: var(--txt-muted);
    line-height: 1.6;
    border-left: 2px solid rgba(46,196,182,.2);
    padding-left: 10px;
}

.turret-score-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.turret-score-row {
    display: grid;
    grid-template-columns: 140px 1fr 32px;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.turret-score-name {
    color: var(--txt-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════════════
   EVENT ASSISTANT
   ═══════════════════════════════════════════════════════════════════ */

.strategy-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.strategy-card {
    background: var(--bg-panel2);
    border: 1px solid rgba(95,235,224,.07);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strategy-card.strategy-active {
    border-color: rgba(46,196,182,.25);
    background: rgba(46,196,182,.05);
}

.strategy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.strategy-header strong { color: var(--txt); font-size: 14px; }

.strategy-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--txt-muted);
    margin-bottom: 8px;
}

.strategy-section-label.danger { color: var(--danger); }

.strategy-ordered-list {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.strategy-ordered-list li { font-size: 12px; }

.strategy-card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.strategy-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
}

.tag.cyan-dim {
    background: rgba(46,196,182,.1);
    color: var(--cyan);
    padding: 1px 4px;
    font-size: 10px;
}

.strategy-notes {
    border-top: 1px solid var(--stroke);
    padding-top: 10px;
}

.strategy-notes summary {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--txt-muted);
    cursor: pointer;
    user-select: none;
}

.strategy-notes summary:hover { color: var(--txt); }

.strategy-notes p {
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.7;
    border-left: 2px solid rgba(255,159,28,.3);
    padding-left: 10px;
    color: rgba(255,159,28,.85);
}
