:root {
    color-scheme: dark;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
    background: #050b22;
    color: #edf5ff;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 10% 12%, rgba(34, 69, 166, .26), transparent 25rem),
        radial-gradient(circle at 82% 10%, rgba(98, 37, 142, .18), transparent 22rem),
        linear-gradient(135deg, #07133b 0%, #05081d 48%, #090827 100%);
}

button { font: inherit; }

.site-shell { width: min(1600px, 100%); margin: auto; padding: .7rem; }

.loading-screen {
    display: grid;
    min-height: 70vh;
    place-content: center;
    gap: 1rem;
    color: #9fc7ff;
    font-size: clamp(.76rem, 1.5vw, 1rem);
    letter-spacing: .12em;
    text-align: center;
}

.loading-screen__spark { color: #ffe14c; font-size: 2.5rem; animation: twinkle 900ms ease-in-out infinite alternate; }

.tracker-dashboard {
    --game-accent-rgb: 98, 204, 255;
    --game-accent: #62ccff;
    --game-accent-bright: #95e7ff;
    --game-accent-pale: #d6edff;
    --game-accent-muted: #91b8ec;
    --game-accent-deep: #19356d;
    --game-accent-panel: rgba(11, 28, 74, .96);
    --game-accent-panel-deep: rgba(5, 10, 35, .96);
    --game-accent-header: rgba(4, 11, 39, .62);
    --game-accent-row: rgba(16, 45, 103, .46);
    --game-accent-row-end: rgba(7, 17, 51, .58);
    --game-accent-selected: rgba(28, 115, 196, .54);
    --game-accent-selected-deep: rgba(12, 45, 105, .5);
    --game-page-glow: rgba(34, 69, 166, .26);
    --game-page-glow-alt: rgba(98, 37, 142, .18);
    --game-page-start: #07133b;
    --game-page-middle: #05081d;
    --game-page-end: #090827;
    position: relative;
    isolation: isolate;
    display: grid;
    gap: .7rem;
}

.tracker-dashboard::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 12%, var(--game-page-glow), transparent 25rem),
        radial-gradient(circle at 82% 10%, var(--game-page-glow-alt), transparent 22rem),
        linear-gradient(135deg, var(--game-page-start) 0%, var(--game-page-middle) 48%, var(--game-page-end) 100%);
    content: "";
    transition: background .25s ease;
}

.game-theme--firered {
    --game-accent-rgb: 255, 92, 102;
    --game-accent: #ff5c66;
    --game-accent-bright: #ff969d;
    --game-accent-pale: #ffdadd;
    --game-accent-muted: #e9a2aa;
    --game-accent-deep: #6c1c2d;
    --game-accent-panel: rgba(65, 16, 35, .96);
    --game-accent-panel-deep: rgba(24, 7, 20, .97);
    --game-accent-header: rgba(42, 9, 25, .68);
    --game-accent-row: rgba(103, 25, 43, .5);
    --game-accent-row-end: rgba(44, 10, 27, .62);
    --game-accent-selected: rgba(148, 39, 57, .62);
    --game-accent-selected-deep: rgba(83, 18, 35, .56);
    --game-page-glow: rgba(174, 32, 50, .29);
    --game-page-glow-alt: rgba(118, 23, 70, .2);
    --game-page-start: #310912;
    --game-page-middle: #150710;
    --game-page-end: #260919;
}

.game-theme--leafgreen {
    --game-accent-rgb: 84, 220, 130;
    --game-accent: #54dc82;
    --game-accent-bright: #8ef2aa;
    --game-accent-pale: #d9ffe4;
    --game-accent-muted: #9cddb0;
    --game-accent-deep: #165c36;
    --game-accent-panel: rgba(10, 56, 36, .96);
    --game-accent-panel-deep: rgba(5, 24, 22, .97);
    --game-accent-header: rgba(5, 39, 27, .68);
    --game-accent-row: rgba(17, 83, 46, .5);
    --game-accent-row-end: rgba(6, 38, 30, .62);
    --game-accent-selected: rgba(31, 124, 67, .62);
    --game-accent-selected-deep: rgba(10, 76, 40, .56);
    --game-page-glow: rgba(29, 142, 72, .27);
    --game-page-glow-alt: rgba(26, 105, 86, .2);
    --game-page-start: #062b19;
    --game-page-middle: #061510;
    --game-page-end: #08251d;
}

.tracker-topbar,
.mission-strip,
.panel,
.stat-card {
    border: 1px solid rgba(var(--game-accent-rgb), .36);
    box-shadow: 0 0 0 1px rgba(7, 10, 37, .9), inset 0 1px rgba(255, 255, 255, .08);
}

.tracker-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 4.25rem;
    padding: .6rem .8rem;
    background: var(--game-accent-panel-deep);
}

.tracker-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-size: clamp(.82rem, 1.4vw, 1.08rem); font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.tracker-brand__ball { position: relative; width: 1.32rem; height: 1.32rem; border: 2px solid #fff; border-radius: 50%; background: linear-gradient(var(--game-accent) 0 43%, #fff 45%); box-shadow: 0 0 0 2px var(--game-accent-deep); }
.tracker-brand__ball::after { position: absolute; top: 50%; left: 50%; width: .38rem; height: .38rem; border: 2px solid var(--game-accent-deep); border-radius: 50%; background: #fff; content: ""; transform: translate(-50%, -50%); }

.tracker-title { min-width: 0; text-align: center; }
.tracker-title__label,
.panel__eyebrow,
.mission-strip span,
.stat-card > span:not(.stat-card__icon),
.run-selector small,
.phase-table thead { color: var(--game-accent-muted); font-size: .61rem; font-weight: 900; letter-spacing: .09em; }
.tracker-title h1 { max-width: 32rem; margin: .08rem 0 0; overflow: hidden; color: #fff; font-size: clamp(.78rem, 1.6vw, 1.14rem); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.tracker-title__run { display: inline-block; margin-top: .28rem; padding: .2rem .38rem; border: 1px solid rgba(var(--game-accent-rgb), .48); background: rgba(var(--game-accent-rgb), .16); color: var(--game-accent-pale); font-size: .56rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.live-indicator { justify-self: end; display: inline-flex; align-items: center; gap: .42rem; padding: .38rem .56rem; border: 1px solid rgba(var(--game-accent-rgb), .28); background: rgba(var(--game-accent-rgb), .08); color: var(--game-accent-muted); font-size: .64rem; font-weight: 900; letter-spacing: .08em; }
.live-indicator > span { width: .48rem; height: .48rem; border-radius: 50%; background: currentColor; }
.live-indicator--live { border-color: #29d88b; background: rgba(7, 100, 73, .35); color: #82f4b8; }
.live-indicator--live > span { box-shadow: 0 0 .7rem #39ef9b; }
.live-indicator--offline { color: #d7a8c2; }

.mission-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--game-accent-panel-deep); }
.mission-strip__item { display: grid; align-content: center; min-height: 4.75rem; gap: .3rem; padding: .7rem 1rem; border-right: 1px solid rgba(var(--game-accent-rgb), .2); }
.mission-strip__item:last-child { border-right: 0; }
.mission-strip strong { overflow: hidden; color: #f6fbff; font-size: clamp(1rem, 2.25vw, 1.54rem); text-overflow: ellipsis; white-space: nowrap; }
.mission-strip__item--highlight strong { color: #ffdc4f; text-shadow: 0 0 .55rem rgba(255, 199, 62, .3); }
.run-tabs { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; min-height: 4.45rem; }
.run-tabs__header { display: grid; grid-template-columns: auto auto; align-content: center; align-items: center; gap: .7rem; min-width: 15.8rem; padding: .72rem .9rem; border-right: 1px solid rgba(var(--game-accent-rgb), .24); background: var(--game-accent-header); color: var(--game-accent-pale); font-size: .62rem; font-weight: 900; letter-spacing: .07em; }
.run-tabs__header > div:first-child { display: grid; gap: .34rem; }
.run-tabs__shiny-counter { display: grid; justify-items: end; gap: .2rem; padding-left: .7rem; border-left: 1px solid rgba(var(--game-accent-rgb), .24); text-align: right; }
.run-tabs__shiny-counter > span { color: #d9c784; font-size: .48rem; letter-spacing: .05em; white-space: nowrap; }
.run-tabs__shiny-counter > strong { color: #ffe35c; font-size: .8rem; text-shadow: 0 0 .4rem rgba(255, 221, 80, .35); }
.run-tabs__list { display: flex; min-width: 0; overflow-x: auto; }
.run-tabs__list .empty-state { display: grid; align-items: center; padding: 0 1rem; }
.run-tab { position: relative; display: inline-flex; flex: 1 0 max-content; align-items: center; gap: .55rem; min-width: 10.2rem; padding: .72rem .85rem; border-right: 1px solid rgba(var(--game-accent-rgb), .16); background: rgba(var(--game-accent-rgb), .055); color: var(--game-accent-muted); font-size: .7rem; font-weight: 900; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; transition: background .15s ease; }
.run-tab:hover { background: rgba(var(--game-accent-rgb), .16); color: #fff; }
.run-tab--selected,
.run-tab--selected:hover { background: linear-gradient(180deg, var(--game-accent-selected), var(--game-accent-selected-deep)); color: #fff; box-shadow: inset 0 -3px var(--game-accent); }
.run-tab--statistics { min-width: 9.65rem; flex: 0 0 auto; border-left: 1px solid rgba(255, 224, 94, .22); }
.run-tab--statistics .run-tab__game { border-color: rgba(255, 224, 94, .55); background: rgba(109, 82, 23, .62); color: #ffe36a; font-size: .86rem; }
.run-tab__game { display: grid; width: 1.72rem; height: 1.72rem; flex: none; place-items: center; border: 1px solid rgba(var(--game-accent-rgb), .52); background: var(--game-accent-deep); color: var(--game-accent-pale); font-size: .57rem; }
.run-tab__game img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.run-tab--firered .run-tab__game { border-color: rgba(255, 92, 102, .62); background: #6c1c2d; color: #ffdadd; }
.run-tab--leafgreen .run-tab__game { border-color: rgba(84, 220, 130, .62); background: #165c36; color: #d9ffe4; }
.run-tab__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-tab__status { width: .48rem; height: .48rem; margin-left: auto; flex: none; border: 1px solid #5d6c88; border-radius: 50%; background: #2a344a; }
.run-tab__status--online { border-color: #8bf3bc; background: #3ff097; box-shadow: 0 0 .45rem #3ff097; }

.cumulative-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: .92rem 1rem; border: 1px solid rgba(var(--game-accent-rgb), .36); background: linear-gradient(135deg, var(--game-accent-panel), var(--game-accent-panel-deep)); box-shadow: 0 0 0 1px rgba(7, 10, 37, .9), inset 0 1px rgba(255, 255, 255, .08); }
.cumulative-page-heading > div { display: grid; gap: .3rem; }
.cumulative-page-heading h2 { margin: 0; color: #fff; font-size: clamp(.9rem, 1.6vw, 1.2rem); text-transform: uppercase; }
.cumulative-page-heading p { max-width: 38rem; margin: 0; color: var(--game-accent-muted); font-size: .62rem; line-height: 1.55; }
.cumulative-page-heading__updated { flex: none; color: var(--game-accent-muted); font-size: .54rem; font-weight: 900; letter-spacing: .04em; text-align: right; }

.cumulative-target-panel,
.cumulative-shiny-panel { min-width: 0; }
.cumulative-target-list,
.cumulative-shiny-list { min-width: 0; overflow: auto; }
.cumulative-target-list__header,
.cumulative-target-row { display: grid; grid-template-columns: minmax(7.5rem, 1.35fr) minmax(3.2rem, .5fr) repeat(2, minmax(3.4rem, .62fr)) minmax(4rem, .8fr) minmax(4.5rem, .9fr) minmax(3.1rem, .6fr); min-width: 33.2rem; }
.cumulative-target-list__header { border-bottom: 1px solid rgba(var(--game-accent-rgb), .24); background: var(--game-accent-header); }
.cumulative-target-list__header span { padding: .48rem .38rem; color: var(--game-accent-muted); font-size: .5rem; font-weight: 900; letter-spacing: .06em; text-align: center; }
.cumulative-target-list__header span:first-child { padding-left: .7rem; text-align: left; }
.cumulative-target-row { min-height: 3.65rem; border-bottom: 1px solid rgba(var(--game-accent-rgb), .14); background: linear-gradient(90deg, var(--game-accent-row), var(--game-accent-row-end)); }
.cumulative-target-row:hover { background: rgba(var(--game-accent-rgb), .18); }

.cumulative-shiny-list__header,
.cumulative-shiny-row { display: grid; grid-template-columns: minmax(8.5rem, .85fr) minmax(16rem, 2fr) minmax(5rem, .5fr); min-width: 31rem; }
.cumulative-shiny-list__header { border-bottom: 1px solid rgba(255, 219, 92, .3); background: rgba(37, 34, 63, .78); }
.cumulative-shiny-list__header span { padding: .48rem .35rem; color: #d9c784; font-size: .48rem; font-weight: 900; letter-spacing: .05em; text-align: center; }
.cumulative-shiny-list__header span:first-child { padding-left: .65rem; text-align: left; }
.cumulative-shiny-row { min-height: 3.55rem; border-bottom: 1px solid rgba(255, 224, 94, .15); background: linear-gradient(90deg, rgba(97, 75, 31, .34), rgba(11, 17, 47, .62)); box-shadow: inset 3px 0 rgba(255, 224, 94, .8); }
.cumulative-shiny-row:hover { background: rgba(116, 94, 38, .34); }
.cumulative-shiny-row__games { display: flex; align-content: center; align-items: center; flex-wrap: wrap; gap: .34rem; padding: .35rem .48rem; border-left: 1px solid rgba(255, 224, 94, .15); }
.cumulative-shiny-row__games > span { padding: .24rem .36rem; border: 1px solid rgba(255, 224, 94, .25); background: rgba(255, 224, 94, .08); color: #dceaff; font-size: .55rem; line-height: 1.2; white-space: nowrap; }
.cumulative-shiny-row__games strong { margin-left: .16rem; color: #ffe35c; }
.cumulative-shiny-row__count { display: grid; min-width: 0; place-items: center; padding: .3rem; border-left: 1px solid rgba(255, 224, 94, .15); color: #ffe35c; font-size: .8rem; text-shadow: 0 0 .4rem rgba(255, 221, 80, .45); }

.progression-strip { display: grid; grid-template-columns: minmax(15rem, .78fr) minmax(12rem, .56fr) minmax(0, 2.2fr); min-height: 7.25rem; }
.progression-strip__step,
.progression-strip__summary { display: grid; align-content: center; min-width: 0; gap: .35rem; padding: .78rem .95rem; border-right: 1px solid rgba(var(--game-accent-rgb), .22); background: var(--game-accent-header); }
.progression-strip__step > strong { overflow: hidden; color: #fff; font-size: clamp(.76rem, 1.25vw, .94rem); line-height: 1.35; text-overflow: ellipsis; text-transform: uppercase; }
.progression-strip__step > small { overflow: hidden; color: var(--game-accent-muted); font-size: .52rem; font-weight: 900; letter-spacing: .04em; line-height: 1.45; text-overflow: ellipsis; text-transform: uppercase; }
.progression-strip__summary-heading { display: grid; gap: .2rem; min-width: 0; }
.progression-strip__summary-heading span,
.progression-strip__targets-heading span { color: var(--game-accent-muted); font-size: .52rem; font-weight: 900; letter-spacing: .09em; }
.progression-strip__summary-heading strong { overflow: hidden; color: var(--game-accent-pale); font-size: .66rem; line-height: 1.35; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.progression-strip__summary > small { color: var(--game-accent-muted); font-size: .5rem; }
.progression-strip__progress-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .48rem; }
.progression-strip__progress-row > strong { color: var(--game-accent-bright); font-size: .62rem; }
.progression-strip__progress { height: .42rem; overflow: hidden; background: var(--game-accent-panel-deep); }
.progression-strip__progress i { display: block; width: var(--phase-progress); height: 100%; background: linear-gradient(90deg, var(--game-accent), var(--game-accent-bright)); box-shadow: 0 0 .5rem rgba(var(--game-accent-rgb), .58); transition: width .25s ease; }
.progression-strip__targets { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; padding: .6rem .7rem .7rem; overflow: hidden; }
.progression-strip__targets-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 .12rem .45rem; }
.progression-strip__targets-heading strong { display: grid; min-width: 1.42rem; height: 1.18rem; padding-inline: .28rem; place-items: center; border: 1px solid rgba(var(--game-accent-rgb), .48); color: var(--game-accent-pale); font-size: .56rem; }
.progression-targets { display: flex; min-width: 0; gap: .4rem; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: var(--game-accent-deep) var(--game-accent-panel-deep); scrollbar-width: thin; }
.progression-target { display: grid; grid-template-rows: minmax(0, 1fr) .38rem; align-items: center; width: 4.65rem; min-width: 4.65rem; min-height: 4.25rem; gap: .28rem; padding: .2rem .36rem .4rem; overflow: hidden; border: 1px solid rgba(var(--game-accent-rgb), .25); background: linear-gradient(135deg, var(--game-accent-row), var(--game-accent-row-end)); cursor: help; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.progression-target--complete { border-color: rgba(85, 235, 153, .7); background: linear-gradient(135deg, rgba(20, 104, 81, .56), rgba(7, 34, 47, .86)); box-shadow: inset 0 0 .7rem rgba(54, 222, 137, .12); }
.progression-target img,
.progression-target__sprite-fallback { display: block; width: 100%; height: 3.15rem; object-fit: contain; image-rendering: pixelated; }
.progression-target__sprite-fallback { display: grid; place-items: center; color: var(--game-accent-bright); font-size: 1rem; }
.progression-target__bars { display: flex; align-items: stretch; gap: .16rem; width: 100%; height: .38rem; }
.progression-target__bars i { min-width: 0; flex: 1; border: 1px solid rgba(var(--game-accent-rgb), .28); background: var(--game-accent-panel-deep); box-shadow: inset 0 1px rgba(255, 255, 255, .04); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.progression-target__bars .progression-target__bar--caught { border-color: #5af0a2; background: linear-gradient(180deg, #71f5af, #25bb78); box-shadow: 0 0 .34rem rgba(68, 238, 149, .62); }
.progression-strip__ready,
.progression-strip__loading { display: flex; align-items: center; min-width: 0; gap: .7rem; color: #bfead6; }
.progression-strip__loading { color: var(--game-accent-muted); }
.progression-strip__ready > span { display: grid; width: 2rem; height: 2rem; flex: none; place-items: center; border: 1px solid #39d891; background: rgba(12, 104, 72, .3); color: #83f1b8; font-size: .9rem; }
.progression-strip__ready > div,
.progression-strip__loading > div { display: grid; min-width: 0; gap: .25rem; }
.progression-strip__ready strong,
.progression-strip__loading strong { color: #eafff3; font-size: .64rem; text-transform: uppercase; }
.progression-strip__loading strong { color: var(--game-accent-pale); }
.progression-strip__ready small,
.progression-strip__loading small { color: #91b3c9; font-size: .52rem; line-height: 1.45; }
.progression-strip__loading small { color: var(--game-accent-muted); }
.progression-strip__loading { grid-column: 1 / -1; min-height: 7.25rem; justify-content: center; padding: 1rem; text-align: left; }
.progression-strip__loading > span { color: var(--game-accent); font-size: 1.6rem; animation: twinkle 900ms ease-in-out infinite alternate; }

.dashboard-empty { display: grid; min-height: 22rem; place-content: center; gap: .65rem; padding: 2rem; color: var(--game-accent-muted); text-align: center; }
.dashboard-empty > span { color: var(--game-accent); font-size: 2.4rem; }
.dashboard-empty h2 { margin: 0; color: #f0f7ff; font-size: 1rem; text-transform: uppercase; }
.dashboard-empty p { max-width: 26rem; margin: 0; color: var(--game-accent-muted); font-size: .72rem; line-height: 1.6; }

.live-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(21rem, .85fr); grid-template-areas: "video targets" "telemetry telemetry"; gap: .7rem; }
.feed-column { display: contents; }
.video-panel { grid-area: video; min-width: 0; }
.telemetry-grid { grid-area: telemetry; }
.target-panel { grid-area: targets; }
.telemetry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.panel { overflow: hidden; background: linear-gradient(160deg, var(--game-accent-panel), var(--game-accent-panel-deep)); }
.panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; min-height: 4rem; padding: .78rem .95rem .68rem; border-bottom: 1px solid rgba(var(--game-accent-rgb), .25); background: var(--game-accent-header); }
.panel__header h2 { margin: .12rem 0 0; color: #fff; font-size: clamp(.84rem, 1.5vw, 1.08rem); letter-spacing: -.04em; text-transform: uppercase; }
.party { display: grid; grid-template-columns: repeat(6, minmax(1.95rem, 2.45rem)); align-self: center; gap: .25rem; }
.party-slot { display: grid; grid-template-rows: minmax(0, 1fr) .25rem; align-items: center; min-width: 0; height: 2.65rem; padding: .16rem; border: 1px solid rgba(var(--game-accent-rgb), .35); background: rgba(var(--game-accent-rgb), .12); }
.party-slot--interactive { color: inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease; }
.party-slot--interactive:hover { border-color: var(--game-accent-bright); background: rgba(var(--game-accent-rgb), .24); transform: translateY(-1px); }
.party-slot--interactive:focus-visible { outline: 2px solid var(--game-accent-bright); outline-offset: 2px; box-shadow: 0 0 .65rem rgba(var(--game-accent-rgb), .5); }
.party-slot img,
.party-slot__sprite-fallback { display: block; width: 100%; height: 1.92rem; object-fit: contain; image-rendering: pixelated; }
.party-slot__sprite-fallback { display: grid; place-items: center; color: var(--game-accent-muted); font-size: .85rem; }
.party-slot--empty { border-color: rgba(var(--game-accent-rgb), .2); border-style: dashed; background: rgba(var(--game-accent-rgb), .045); }
.party-slot--ko img,
.party-slot--ko .party-slot__sprite-fallback { filter: grayscale(1) brightness(.68); opacity: .68; }
.party-slot__health { display: block; width: 100%; height: .25rem; overflow: hidden; background: #271d34; }
.party-slot__health i { display: block; width: var(--party-health); height: 100%; transition: width .2s ease; }
.party-slot__health-fill--high { background: #74e98c; }
.party-slot__health-fill--medium { background: #ffe061; }
.party-slot__health-fill--low { background: #ff6572; }

.pokemon-dialog-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 1rem; overflow: auto; background: rgba(1, 4, 17, .82); backdrop-filter: blur(7px); animation: pokemon-dialog-fade-in .16s ease-out; }
.pokemon-dialog { width: min(58rem, 100%); max-height: calc(100vh - 2rem); overflow: auto; border: 1px solid rgba(var(--game-accent-rgb), .58); background: linear-gradient(145deg, var(--game-accent-panel), var(--game-accent-panel-deep)); box-shadow: 0 1.4rem 5rem rgba(0, 0, 0, .62), 0 0 2rem rgba(var(--game-accent-rgb), .2); animation: pokemon-dialog-enter .18s ease-out; }
.pokemon-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem .9rem; border-bottom: 1px solid rgba(var(--game-accent-rgb), .28); background: var(--game-accent-header); }
.pokemon-dialog__header h2 { margin: .16rem 0 0; color: #fff; font-size: clamp(1.05rem, 3vw, 1.55rem); letter-spacing: -.04em; text-transform: uppercase; }
.pokemon-dialog__header p { display: flex; flex-wrap: wrap; gap: .4rem; margin: .35rem 0 0; color: var(--game-accent-muted); font-size: .58rem; font-weight: 900; text-transform: uppercase; }
.pokemon-dialog__header p span { padding-right: .4rem; border-right: 1px solid rgba(var(--game-accent-rgb), .3); }
.pokemon-dialog__header p span:last-child { padding-right: 0; border-right: 0; }
.pokemon-dialog__close { display: grid; width: 2.15rem; height: 2.15rem; flex: none; place-items: center; padding: 0; border: 1px solid rgba(var(--game-accent-rgb), .42); background: rgba(var(--game-accent-rgb), .1); color: var(--game-accent-pale); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.pokemon-dialog__close:hover,
.pokemon-dialog__close:focus-visible { border-color: var(--game-accent-bright); outline: 0; background: rgba(var(--game-accent-rgb), .28); color: #fff; }
.pokemon-dialog__body { display: grid; grid-template-columns: minmax(12rem, .68fr) minmax(0, 1.8fr); }
.pokemon-dialog__profile { display: grid; align-content: start; gap: .85rem; padding: 1.05rem; border-right: 1px solid rgba(var(--game-accent-rgb), .2); background: linear-gradient(180deg, rgba(var(--game-accent-rgb), .12), transparent); }
.pokemon-dialog__sprite { display: grid; min-height: 11rem; place-items: center; border: 1px solid rgba(var(--game-accent-rgb), .24); background: radial-gradient(circle, rgba(var(--game-accent-rgb), .22), rgba(var(--game-accent-rgb), .045) 62%, transparent 63%); }
.pokemon-dialog__sprite img,
.pokemon-dialog__sprite > span { width: min(10rem, 80%); height: 10rem; object-fit: contain; image-rendering: pixelated; }
.pokemon-dialog__sprite > span { display: grid; place-items: center; color: var(--game-accent-bright); font-size: 3rem; }
.pokemon-dialog__sprite--ko img { filter: grayscale(1) brightness(.68); opacity: .72; }
.pokemon-dialog__hp { display: grid; gap: .35rem; }
.pokemon-dialog__hp > div { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.pokemon-dialog__hp span { color: var(--game-accent-muted); font-size: .52rem; font-weight: 900; }
.pokemon-dialog__hp strong { color: #f2f7ff; font-size: .68rem; }
.pokemon-dialog__hp-track { display: block; width: 100%; height: .42rem; overflow: hidden; background: #271d34; }
.pokemon-dialog__hp-track i { display: block; width: var(--party-health); height: 100%; transition: width .2s ease; }
.pokemon-dialog__metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: 0; }
.pokemon-dialog__metadata div { min-width: 0; padding: .55rem; border: 1px solid rgba(var(--game-accent-rgb), .16); background: rgba(var(--game-accent-rgb), .065); }
.pokemon-dialog__metadata dt { color: var(--game-accent-muted); font-size: .43rem; font-weight: 900; letter-spacing: .05em; }
.pokemon-dialog__metadata dd { overflow: hidden; margin: .24rem 0 0; color: #f2f7ff; font-size: .58rem; font-weight: 900; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.pokemon-dialog__details { display: grid; align-content: start; gap: 1rem; min-width: 0; padding: 1.05rem; }
.pokemon-dialog__section { min-width: 0; }
.pokemon-dialog__section h3 { margin: 0 0 .55rem; color: var(--game-accent-pale); font-size: .64rem; letter-spacing: .08em; }
.pokemon-stats-table { border: 1px solid rgba(var(--game-accent-rgb), .2); }
.pokemon-stats-table__header,
.pokemon-stats-table__row { display: grid; grid-template-columns: minmax(5rem, 1.25fr) repeat(3, minmax(3rem, .65fr)); }
.pokemon-stats-table__header { background: rgba(var(--game-accent-rgb), .14); }
.pokemon-stats-table__header span { padding: .42rem .5rem; color: var(--game-accent-muted); font-size: .45rem; font-weight: 900; text-align: center; }
.pokemon-stats-table__header span:first-child { text-align: left; }
.pokemon-stats-table__row { border-top: 1px solid rgba(var(--game-accent-rgb), .12); }
.pokemon-stats-table__row strong,
.pokemon-stats-table__row span { display: grid; min-width: 0; place-items: center; padding: .48rem .5rem; border-left: 1px solid rgba(var(--game-accent-rgb), .1); color: #f2f7ff; font-size: .6rem; }
.pokemon-stats-table__row strong { place-items: center start; border-left: 0; color: var(--game-accent-pale); }
.pokemon-stats-table__row span:nth-child(3) { color: #8fddff; }
.pokemon-stats-table__row span:nth-child(4) { color: #8df0ae; }
.pokemon-moves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.pokemon-move { min-width: 0; border: 1px solid rgba(var(--game-accent-rgb), .2); background: linear-gradient(135deg, rgba(var(--game-accent-rgb), .12), rgba(var(--game-accent-rgb), .035)); }
.pokemon-move__heading { display: flex; align-items: center; min-width: 0; gap: .5rem; padding: .52rem .58rem; border-bottom: 1px solid rgba(var(--game-accent-rgb), .13); }
.pokemon-move__heading > strong { overflow: hidden; color: #fff; font-size: .64rem; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.pokemon-move__type { flex: none; padding: .22rem .3rem; border: 1px solid rgba(var(--game-accent-rgb), .36); background: var(--game-accent-deep); color: var(--game-accent-pale); font-size: .42rem; font-weight: 900; text-transform: uppercase; }
.pokemon-move__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pokemon-move__metrics > span { display: grid; min-width: 0; gap: .2rem; padding: .46rem .34rem; border-right: 1px solid rgba(var(--game-accent-rgb), .1); text-align: center; }
.pokemon-move__metrics > span:last-child { border-right: 0; }
.pokemon-move__metrics small { color: var(--game-accent-muted); font-size: .4rem; font-weight: 900; }
.pokemon-move__metrics strong { color: #f2f7ff; font-size: .57rem; }
.pokemon-moves-empty { margin: 0; padding: 1rem; border: 1px dashed rgba(var(--game-accent-rgb), .22); color: var(--game-accent-muted); font-size: .58rem; text-align: center; }

.video-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #01050e; }
.video-stage__feed { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.video-stage__scanlines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 4px); mix-blend-mode: multiply; }
.video-stage__live { position: absolute; bottom: .65rem; left: .65rem; display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .45rem; background: rgba(2, 7, 26, .82); color: #84f9bc; font-size: clamp(.56rem, 1vw, .68rem); font-weight: 900; line-height: 1; }
.video-stage__live i { width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 .48rem currentColor; }
.video-placeholder { display: grid; min-height: min(49vw, 32rem); place-content: center; gap: .65rem; padding: 2rem; background: repeating-linear-gradient(45deg, var(--game-accent-panel-deep) 0 12px, var(--game-accent-header) 12px 24px); color: var(--game-accent-muted); text-align: center; }
.video-placeholder__icon { color: var(--game-accent); font-size: 3rem; }
.video-placeholder strong { color: #e8f4ff; font-size: .9rem; text-transform: uppercase; }
.video-placeholder p { max-width: 24rem; margin: 0; color: var(--game-accent-muted); font-size: .7rem; line-height: 1.6; }

.encounter-log { overflow-x: auto; }
.encounter-log-empty { padding: 1.2rem; color: var(--game-accent-muted); font-size: .68rem; line-height: 1.5; text-align: center; }
.encounter-log-empty code { color: var(--game-accent-pale); font-family: inherit; }
.encounter-log__header,
.encounter-log__row { display: grid; grid-template-columns: minmax(6.3rem, .88fr) minmax(12.2rem, 1.72fr) minmax(4.25rem, .6fr); min-width: 22.75rem; }
.encounter-log__header { border-bottom: 1px solid rgba(var(--game-accent-rgb), .24); background: var(--game-accent-header); }
.encounter-log__header span { padding: .48rem .38rem; color: var(--game-accent-muted); font-size: .5rem; font-weight: 900; letter-spacing: .06em; text-align: center; }
.encounter-log__header span:first-child { padding-left: .65rem; text-align: left; }
.encounter-log__row { min-height: 3.55rem; border-bottom: 1px solid rgba(var(--game-accent-rgb), .14); background: linear-gradient(90deg, var(--game-accent-row), var(--game-accent-row-end)); }
.encounter-log__row:hover { background: rgba(var(--game-accent-rgb), .18); }
.encounter-log__row--shiny { box-shadow: inset 3px 0 #ffe45d; }
.encounter-log__pokemon { display: flex; align-items: center; min-width: 0; gap: .4rem; padding: .32rem .55rem; }
.encounter-log__pokemon img,
.encounter-log__sprite-fallback { width: 2.5rem; height: 2.5rem; flex: none; object-fit: contain; image-rendering: pixelated; }
.encounter-log__sprite-fallback { display: grid; place-items: center; border: 1px solid rgba(var(--game-accent-rgb), .35); background: var(--game-accent-deep); color: var(--game-accent-bright); font-size: 1.1rem; }
.encounter-log__pokemon strong { overflow: hidden; color: #f5f9ff; font-size: .64rem; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.encounter-log__ivs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: stretch; border-left: 1px solid rgba(var(--game-accent-rgb), .13); }
.encounter-iv { display: grid; align-content: center; gap: .16rem; min-width: 0; padding: .25rem .08rem; border-right: 1px solid rgba(var(--game-accent-rgb), .1); color: #e8f3ff; text-align: center; }
.encounter-iv small { color: var(--game-accent-muted); font-size: .42rem; font-weight: 900; letter-spacing: .02em; }
.encounter-iv strong { font-size: .66rem; }
.encounter-iv--increased { background: rgba(220, 61, 78, .36); color: #ffb2bc; }
.encounter-iv--increased small { color: #ffbdc6; }
.encounter-iv--decreased { background: rgba(47, 172, 236, .32); color: #c1efff; }
.encounter-iv--decreased small { color: #b9edff; }
.encounter-log__shiny-value { display: grid; min-width: 0; place-items: center; padding: .3rem; border-left: 1px solid rgba(var(--game-accent-rgb), .13); color: #d8e9ff; font-size: .72rem; }
.encounter-log__row--shiny .encounter-log__shiny-value { color: #ffe35c; text-shadow: 0 0 .4rem rgba(255, 221, 80, .45); }

.shiny-log-panel { min-width: 0; }
.shiny-log { overflow-x: auto; }
.shiny-log__header,
.shiny-log__row { display: grid; grid-template-columns: minmax(6.3rem, .82fr) minmax(12.2rem, 1.58fr) minmax(4.25rem, .58fr) minmax(4.9rem, .62fr) minmax(6.6rem, .76fr); min-width: 34.25rem; }
.shiny-log__header { border-bottom: 1px solid rgba(255, 219, 92, .3); background: rgba(37, 34, 63, .78); }
.shiny-log__header span { padding: .48rem .35rem; color: #d9c784; font-size: .48rem; font-weight: 900; letter-spacing: .05em; text-align: center; }
.shiny-log__header span:first-child { padding-left: .65rem; text-align: left; }
.shiny-log__row { min-height: 3.55rem; border-bottom: 1px solid rgba(255, 224, 94, .15); background: linear-gradient(90deg, rgba(97, 75, 31, .34), rgba(11, 17, 47, .62)); box-shadow: inset 3px 0 rgba(255, 224, 94, .8); }
.shiny-log__row:hover { background: rgba(116, 94, 38, .34); }
.shiny-log__shiny-value,
.shiny-log__total-encounters,
.shiny-log__duration { display: grid; min-width: 0; place-items: center; padding: .3rem; border-left: 1px solid rgba(255, 224, 94, .15); text-align: center; }
.shiny-log__shiny-value { color: #ffe35c; font-size: .72rem; text-shadow: 0 0 .4rem rgba(255, 221, 80, .45); }
.shiny-log__total-encounters { color: #e5efff; font-size: .68rem; }
.shiny-log__duration { color: #b6cbea; font-size: .57rem; font-style: normal; line-height: 1.35; }

.target-panel { min-width: 0; container-type: inline-size; }
.target-empty { display: grid; min-height: 17rem; place-content: center; gap: .6rem; padding: 1.3rem; color: var(--game-accent-muted); text-align: center; }
.target-empty > span { color: var(--game-accent); font-size: 2.35rem; }
.target-empty strong { color: #edf5ff; font-size: .75rem; text-transform: uppercase; }
.target-empty p { max-width: 20rem; margin: 0; color: var(--game-accent-muted); font-size: .64rem; line-height: 1.55; }
.target-empty code { color: var(--game-accent-pale); font-family: inherit; font-size: inherit; }
.target-list { min-width: 0; overflow: auto; }
.target-list__header,
.target-row { display: grid; grid-template-columns: minmax(7.5rem, 1.35fr) minmax(4.4rem, .75fr) repeat(2, minmax(3.1rem, .6fr)) minmax(4rem, .8fr) minmax(4.5rem, .9fr) minmax(3.1rem, .6fr); min-width: 30rem; }
.target-list__header { border-bottom: 1px solid rgba(var(--game-accent-rgb), .24); background: var(--game-accent-header); }
.target-list__header span { padding: .48rem .38rem; color: var(--game-accent-muted); font-size: .5rem; font-weight: 900; letter-spacing: .06em; text-align: center; }
.target-list__header span:first-child { padding-left: .7rem; text-align: left; }
.target-row { min-height: 3.65rem; border-bottom: 1px solid rgba(var(--game-accent-rgb), .14); background: linear-gradient(90deg, var(--game-accent-row), var(--game-accent-row-end)); }
.target-row:hover { background: rgba(var(--game-accent-rgb), .18); }
.target-row__pokemon { display: flex; align-items: center; min-width: 0; gap: .48rem; padding: .32rem .65rem; }
.target-row__capture-bars { display: flex; flex-direction: column; align-items: stretch; width: .62rem; height: 2.55rem; flex: none; gap: .09rem; }
.target-row__capture-bars i { min-height: 0; flex: 1; border: 1px solid rgba(var(--game-accent-rgb), .28); background: var(--game-accent-panel-deep); box-shadow: inset 1px 0 rgba(255, 255, 255, .04); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.target-row__capture-bars .target-row__capture-bar--caught { border-color: #5af0a2; background: linear-gradient(180deg, #71f5af, #25bb78); box-shadow: 0 0 .34rem rgba(68, 238, 149, .62); }
.target-row__pokemon img,
.target-row__sprite-fallback { width: 2.55rem; height: 2.55rem; flex: none; object-fit: contain; image-rendering: pixelated; }
.target-row__sprite-fallback { display: grid; place-items: center; border: 1px solid rgba(var(--game-accent-rgb), .35); background: var(--game-accent-deep); color: var(--game-accent-bright); font-size: 1.1rem; }
.target-row__pokemon strong { overflow: hidden; color: #f5f9ff; font-size: .68rem; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.target-row__value { display: grid; min-width: 0; place-items: center; padding: .35rem .2rem; border-left: 1px solid rgba(var(--game-accent-rgb), .13); color: #eaf4ff; font-size: .72rem; }
.target-row__value--rate { color: #ff6677; }
.target-row__value--rate-full { color: #8de0ff; }
.target-row__value--rate-high { color: #83ed86; }
.target-row__value--rate-medium { color: #ffe061; }
.target-row__value--rate-low { color: #ff9d4a; }
.target-row__value--rate-rare { color: #ff6677; }
.target-row__value--range { align-content: center; gap: .13rem; font-size: .64rem; line-height: 1; }
.target-row__value--range span { white-space: nowrap; }
.target-row__value--iv-range { color: #b9edff; }
.target-row__value--sv-range { color: #d8e9ff; }
.target-row__value--shiny { color: #ffe061; }

@container (max-width: 34rem) {
    .target-list__header,
    .target-row { grid-template-columns: minmax(3.45rem, .55fr) minmax(3.8rem, .7fr) repeat(2, minmax(2.7rem, .55fr)) minmax(3.7rem, .72fr) minmax(4.1rem, .8fr) minmax(2.7rem, .55fr); min-width: 23rem; }
    .target-list__header span:first-child { padding-left: .38rem; text-align: center; }
    .target-row__pokemon { justify-content: center; padding: .32rem; }
    .target-row__pokemon strong { display: none; }
    .target-row__value { padding-inline: .1rem; }
}

.panel__counter { padding: .32rem .52rem; border: 1px solid rgba(var(--game-accent-rgb), .48); color: var(--game-accent-pale); font-size: .67rem; font-weight: 900; }
.run-monitor__list { display: grid; }
.run-selector { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .7rem; width: 100%; min-height: 5.08rem; padding: .7rem .9rem; border: 0; border-bottom: 1px solid rgba(var(--game-accent-rgb), .16); background: transparent; color: #ecf5ff; text-align: left; cursor: pointer; transition: background .15s ease; }
.run-selector:hover { background: rgba(var(--game-accent-rgb), .16); }
.run-selector--selected { background: linear-gradient(90deg, rgba(var(--game-accent-rgb), .28), rgba(var(--game-accent-rgb), .08)); box-shadow: inset 3px 0 var(--game-accent); }
.run-selector__game { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid rgba(var(--game-accent-rgb), .52); background: var(--game-accent-deep); color: var(--game-accent-pale); font-size: .66rem; font-weight: 900; }
.run-selector__main { min-width: 0; display: grid; gap: .2rem; }
.run-selector__main strong { overflow: hidden; color: #fff; font-size: .76rem; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.run-selector__main small { overflow: hidden; color: var(--game-accent-muted); font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }
.run-selector__phase { display: grid; gap: .2rem; text-align: right; }
.run-selector__phase strong { color: #ffdc50; font-size: .85rem; }
.run-selector__status { width: .53rem; height: .53rem; border: 1px solid #5d6c88; border-radius: 50%; background: #2a344a; }
.run-selector__status--online { border-color: #8bf3bc; background: #3ff097; box-shadow: 0 0 .45rem #3ff097; }
.empty-state { margin: 0; padding: 1.4rem; color: var(--game-accent-muted); font-size: .72rem; line-height: 1.6; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.stat-card { position: relative; display: grid; align-content: center; min-height: 7.4rem; gap: .36rem; padding: .82rem 1rem; overflow: hidden; background: linear-gradient(135deg, var(--game-accent-panel), var(--game-accent-panel-deep)); }
.stat-card::after { position: absolute; right: -1.4rem; bottom: -1.9rem; color: rgba(var(--game-accent-rgb), .08); content: "✦"; font-size: 6rem; }
.stat-card__icon { color: var(--game-accent-bright); font-size: 1.12rem; }
.stat-card strong { position: relative; z-index: 1; color: #f4f9ff; font-size: clamp(.98rem, 1.7vw, 1.3rem); }
.stat-card strong em { color: var(--game-accent-muted); font-size: .6em; font-style: normal; }
.stat-card__species { color: #ffe26d !important; text-transform: capitalize; }
.stat-card__compact { overflow: hidden; font-size: clamp(.72rem, 1.35vw, 1rem) !important; text-overflow: ellipsis; white-space: nowrap; }

.phase-table-panel__hint { align-self: center; color: var(--game-accent-muted); font-size: .59rem; }
.phase-table-wrap { overflow-x: auto; }
.phase-table { width: 100%; min-width: 52rem; border-collapse: collapse; font-size: .68rem; }
.phase-table th { padding: .68rem .85rem; background: var(--game-accent-header); font-size: .57rem; text-align: left; }
.phase-table td { padding: .78rem .85rem; border-top: 1px solid rgba(var(--game-accent-rgb), .14); color: #dbeaff; }
.phase-table tbody tr:hover { background: rgba(var(--game-accent-rgb), .12); }
.phase-table__offline { opacity: .55; }
.phase-table__shiny { color: #ffe05d !important; font-weight: 900; }
.phase-table__empty { padding: 1.5rem; color: var(--game-accent-muted); text-align: center; }
.table-run { display: inline-flex; align-items: center; gap: .42rem; color: #fff; font-weight: 900; text-transform: uppercase; }
.table-run i { width: .42rem; height: .42rem; border-radius: 50%; background: var(--game-accent-muted); }
.table-run__online { background: #4af5a0 !important; box-shadow: 0 0 .4rem #4af5a0; }

#blazor-error-ui { display: none; position: fixed; right: 0; bottom: 0; left: 0; padding: 1rem; background: #fef3c7; color: #1f2937; }

@keyframes twinkle { to { opacity: .35; transform: scale(.78); } }
@keyframes pokemon-dialog-fade-in { from { opacity: 0; } }
@keyframes pokemon-dialog-enter { from { opacity: 0; transform: translateY(.65rem) scale(.985); } }

@media (max-width: 900px) {
    .progression-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .progression-strip__summary { border-right: 0; }
    .progression-strip__targets { grid-column: 1 / -1; min-height: 6.25rem; border-top: 1px solid rgba(var(--game-accent-rgb), .22); }
    .live-grid { grid-template-columns: 1fr; grid-template-areas: "video" "targets" "telemetry"; }
    .run-monitor__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .run-selector { border-right: 1px solid rgba(var(--game-accent-rgb), .16); }
}

@media (max-width: 640px) {
    .site-shell { padding: .35rem; }
    .tracker-topbar { grid-template-columns: 1fr auto; gap: .5rem; min-height: 3.7rem; }
    .tracker-title { grid-column: 1 / -1; grid-row: 2; padding-bottom: .2rem; text-align: left; }
    .tracker-brand { font-size: .78rem; }
    .mission-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mission-strip__item:nth-child(even) { border-right: 0; }
    .mission-strip__item:nth-child(-n + 4) { border-bottom: 1px solid rgba(var(--game-accent-rgb), .2); }
    .mission-strip__item { min-height: 4.2rem; padding: .6rem .7rem; }
    .run-tabs { grid-template-columns: 1fr; }
    .run-tabs__header { min-width: 0; grid-template-columns: 1fr auto; align-items: center; padding: .58rem .7rem; border-right: 0; border-bottom: 1px solid rgba(var(--game-accent-rgb), .24); }
    .run-tabs__header .panel__eyebrow { align-self: center; }
    .run-tab { min-width: 8.7rem; padding: .62rem .68rem; }
    .progression-strip { grid-template-columns: 1fr; }
    .progression-strip__step,
    .progression-strip__summary { min-height: 5.2rem; border-right: 0; border-bottom: 1px solid rgba(var(--game-accent-rgb), .22); }
    .progression-strip__targets { grid-column: 1; min-height: 6rem; border-top: 0; }
    .progression-target { width: 4.35rem; min-width: 4.35rem; }
    .panel__header { min-height: 3.6rem; padding: .65rem .7rem; }
    .party { grid-template-columns: repeat(6, 1.8rem); gap: .18rem; }
    .party-slot { height: 2.45rem; }
    .pokemon-dialog-backdrop { align-items: start; padding: .45rem; }
    .pokemon-dialog { max-height: calc(100vh - .9rem); }
    .pokemon-dialog__body { grid-template-columns: 1fr; }
    .pokemon-dialog__profile { grid-template-columns: minmax(7rem, .75fr) minmax(0, 1fr); border-right: 0; border-bottom: 1px solid rgba(var(--game-accent-rgb), .2); }
    .pokemon-dialog__sprite { grid-row: 1 / span 2; min-height: 8rem; }
    .pokemon-dialog__sprite img,
    .pokemon-dialog__sprite > span { width: 7.5rem; height: 7.5rem; }
    .pokemon-dialog__metadata { align-self: start; }
    .pokemon-dialog__details { padding: .8rem; }
    .pokemon-moves { grid-template-columns: 1fr; }
    .telemetry-grid { grid-template-columns: 1fr; }
    .target-list__header,
    .target-row { grid-template-columns: minmax(3.45rem, .55fr) minmax(3.8rem, .7fr) repeat(2, minmax(2.7rem, .55fr)) minmax(3.7rem, .72fr) minmax(4.1rem, .8fr) minmax(2.7rem, .55fr); min-width: 23rem; }
    .run-monitor__list { grid-template-columns: 1fr; }
    .run-selector { min-height: 4.6rem; }
    .phase-table-panel__hint { display: none; }
}
