:root {
    color-scheme: dark;
    --bg: #060a11;
    --panel: #0d1623;
    --panel-2: #111d2d;
    --line: #23344d;
    --line-soft: rgba(58, 80, 110, .43);
    --text: #f7f9fc;
    --muted: #8fa4bf;
    --muted-strong: #a9bad0;
    --orange: #f7931a;
    --orange-2: #ffb544;
    --green: #2bd99f;
    --red: #ff6374;
    --yellow: #ffd166;
    --blue: #58a6ff;
    --shadow: 0 20px 70px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 48% -20%, #172238 0, #080d16 46%, #05080e 100%);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: #9fc8ff; }
h1, h2, h3, p { margin: 0; }

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .12;
    pointer-events: none;
}
.g1 { width: 420px; height: 420px; background: var(--orange); top: -220px; left: 8%; }
.g2 { width: 520px; height: 520px; background: #1769ff; right: -260px; top: 25%; }

.shell {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    margin: auto;
    padding: 38px 0 30px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.coin {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--orange-2), var(--orange));
    color: #17100a;
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(247, 147, 26, .25);
}
h1 { font-size: clamp(25px, 4vw, 36px); letter-spacing: -.045em; }
.brand p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.status-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(13, 22, 35, .86);
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
}
.status-pill i,
.live::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 14px currentColor;
}
.status-pill.good i { background: var(--green); }
.status-pill.bad i { background: var(--red); }

.panel,
.kpi {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17, 29, 45, .97), rgba(11, 19, 31, .97));
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    padding: 26px;
    margin-bottom: 16px;
}
.label { display: block; color: #85a5cb; font-size: 12px; margin-bottom: 7px; }
.hero strong { font-size: clamp(40px, 7vw, 62px); letter-spacing: -.055em; }
.progress {
    height: 9px;
    border-radius: 99px;
    background: #172337;
    overflow: hidden;
    margin-top: 17px;
}
.progress i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--orange), var(--orange-2));
    transition: width .4s ease;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.hero-grid div {
    min-width: 0;
    padding: 14px;
    border-radius: 13px;
    background: rgba(4, 9, 16, .35);
    border: 1px solid rgba(57, 78, 108, .55);
}
.hero-grid span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.hero-grid b { word-break: break-word; }

.kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.kpi { min-height: 122px; padding: 18px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.kpi span { font-size: 12px; color: #85a5cb; }
.kpi strong { font-size: 23px; letter-spacing: -.03em; margin: 8px 0 3px; overflow-wrap: anywhere; }
.kpi small { color: var(--muted); line-height: 1.45; }
.good-text { color: var(--green) !important; }
.bad-text { color: var(--red) !important; }

.charts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}
.charts > .panel { padding: 20px; min-width: 0; }
.wide { grid-column: 1 / -1; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.head > div:first-child { min-width: 0; }
.head h2 { font-size: 18px; }
.ranges {
    display: flex;
    gap: 5px;
    padding: 4px;
    border-radius: 10px;
    background: #08111d;
    border: 1px solid var(--line);
}
.ranges button,
#copyEndpoint,
.secondary-button {
    border: 0;
    border-radius: 7px;
    padding: 7px 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.ranges button:hover,
.secondary-button:hover,
#copyEndpoint:hover { color: #fff; }
.ranges button.active { background: #1d2d43; color: #fff; }
.chart { height: 275px; position: relative; min-width: 0; }

.chart-state { display:block; margin-top:5px; color:var(--muted); font-size:11px; line-height:1.4; }
.chart-state.is-good { color:#63e6be; }
.chart-state.is-warn { color:#f9c66d; }
.chart-state.is-error { color:#ff8794; }
.chart-empty { position:absolute; inset:0; z-index:2; display:grid; place-items:center; padding:28px; text-align:center; color:var(--muted); font-size:13px; line-height:1.55; border:1px dashed rgba(255,255,255,.1); border-radius:12px; background:rgba(5,10,17,.78); }
.chart-empty[hidden] { display:none !important; }


.details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.details > .panel,
.workers { padding: 20px; min-width: 0; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
dl div:last-child { border-bottom: 0; }
dt { font-size: 13px; color: var(--muted); }
dd { margin: 0; text-align: right; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cut { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Worker-Einzelanalyse */
.worker-performance { padding: 22px; margin-bottom: 16px; overflow: hidden; }
.worker-head { align-items: flex-start; margin-bottom: 12px; }
.section-copy { margin-top: 7px; max-width: 680px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.worker-controls { display: flex; align-items: flex-end; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.worker-ranges { align-self: flex-end; }
.select-control { display: grid; gap: 6px; min-width: 190px; }
.select-control span { color: #85a5cb; font-size: 11px; }
.select-control select {
    min-height: 38px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #08111d;
    color: #dce7f4;
    padding: 7px 34px 7px 10px;
    outline: none;
}
.select-control select:focus { border-color: rgba(247, 147, 26, .7); box-shadow: 0 0 0 3px rgba(247, 147, 26, .11); }
.secondary-button {
    min-height: 38px;
    border: 1px solid rgba(247, 147, 26, .38);
    background: rgba(247, 147, 26, .08);
    color: #ffd08d;
    white-space: nowrap;
}
.worker-filter-info {
    min-height: 38px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(88, 166, 255, .2);
    border-radius: 11px;
    background: rgba(88, 166, 255, .055);
    color: var(--muted-strong);
    font-size: 12px;
    line-height: 1.5;
}
.worker-filter-info:empty { display: none; }
.worker-filter-info strong { color: #dcecff; }
.worker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.worker-loading {
    grid-column: 1 / -1;
    padding: 38px 20px;
    border: 1px dashed rgba(85, 110, 145, .45);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
}
.worker-card {
    min-width: 0;
    border: 1px solid rgba(62, 87, 121, .7);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(9, 18, 30, .9), rgba(6, 13, 23, .82));
    padding: 17px;
    transition: border-color .2s ease, opacity .2s ease, transform .2s ease;
}
.worker-card:hover { border-color: rgba(247, 147, 26, .42); transform: translateY(-1px); }
.worker-card.is-offline { border-color: rgba(255, 209, 102, .25); }
.worker-card.is-delisted { opacity: .72; border-style: dashed; }
.worker-card-top,
.worker-primary,
.worker-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.worker-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.worker-identity > div { min-width: 0; }
.worker-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(43, 217, 159, .7); }
.is-offline .worker-dot { background: var(--yellow); box-shadow: 0 0 14px rgba(255, 209, 102, .55); }
.is-delisted .worker-dot { background: var(--red); box-shadow: 0 0 14px rgba(255, 99, 116, .45); }
.worker-card-name { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.worker-card-full { display: block; max-width: 360px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #617893; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.worker-status-badge,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(43, 217, 159, .32);
    background: rgba(43, 217, 159, .08);
    color: var(--green);
    font-size: 11px;
    white-space: nowrap;
}
.worker-status-badge.inactive,
.badge.inactive { border-color: rgba(255, 209, 102, .32); background: rgba(255, 209, 102, .08); color: var(--yellow); }
.worker-status-badge.delisted,
.badge.delisted { border-color: rgba(255, 99, 116, .3); background: rgba(255, 99, 116, .07); color: #ff9aa6; }
.worker-primary { align-items: flex-end; margin-top: 18px; }
.worker-primary > div span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.worker-primary strong { display: block; font-size: clamp(24px, 4vw, 31px); letter-spacing: -.045em; }
.worker-share-label { color: #a9bad0; font-size: 11px; text-align: right; }
.worker-meter { height: 7px; margin: 11px 0 15px; overflow: hidden; border-radius: 999px; background: #162235; }
.worker-meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--orange-2)); transition: width .35s ease; }
.worker-mini-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-bottom: 13px; }
.worker-mini-kpis div { min-width: 0; padding: 9px; border: 1px solid rgba(55, 78, 108, .48); border-radius: 10px; background: rgba(11, 20, 33, .65); }
.worker-mini-kpis span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.worker-mini-kpis b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dce7f4; font-size: 12px; }
.worker-chart-wrap { position: relative; height: 190px; min-width: 0; }
.worker-card-footer { margin-top: 8px; color: #667d98; font-size: 10px; }
.delisted-row { opacity: .62; }

.live { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 12px; }
.live::before { content: ""; background: var(--green); }
.scroll { max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; }
table { width: 100%; min-width: 850px; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
th { color: #85a5cb; font-weight: 600; }
td { color: #dce7f4; }
.empty { text-align: center; color: var(--muted); padding: 28px; }
.worker-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.endpoint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-color: rgba(247, 147, 26, .48);
    background: linear-gradient(135deg, rgba(247, 147, 26, .1), rgba(15, 25, 39, .97));
}
.endpoint code { color: #ffc46e; font-size: 14px; }
.endpoint button { border: 1px solid rgba(247, 147, 26, .4) !important; background: rgba(247, 147, 26, .08) !important; color: #ffd08d !important; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 4px 0; color: #6f849f; font-size: 11px; }


/* NerdMiner-inspiriertes Solo-Mining-Cockpit */
.alarm-enable-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid rgba(255, 177, 68, .46);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(247, 147, 26, .15), rgba(247, 147, 26, .07));
    color: #ffd89d;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: inset 0 1px rgba(255,255,255,.05);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.alarm-enable-button:hover { transform: translateY(-1px); border-color: rgba(255, 188, 91, .82); background: rgba(247, 147, 26, .18); }
.alarm-enable-button.is-active { border-color: rgba(43, 217, 159, .55); color: #7ff2c8; background: rgba(43, 217, 159, .09); box-shadow: 0 0 24px rgba(43,217,159,.08); }
.alarm-enable-button.is-error { border-color: rgba(255, 99, 116, .5); color: #ffacb5; background: rgba(255, 99, 116, .08); }
.alarm-button-icon { font-size: 15px; }

.miner-console {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
    gap: 0;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(247, 147, 26, .38);
    border-radius: 22px;
    background:
        radial-gradient(circle at 22% 0%, rgba(255, 159, 41, .14), transparent 32%),
        linear-gradient(135deg, #05090e 0%, #08121a 52%, #071019 100%);
    box-shadow: 0 26px 85px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.018);
    isolation: isolate;
}
.miner-console::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .15;
    background-image:
        linear-gradient(rgba(247,147,26,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247,147,26,.08) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg, #000, transparent 78%);
}
.console-scanlines {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: .14;
    background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255,255,255,.045) 4px);
    mix-blend-mode: screen;
}
.console-main { position: relative; padding: 24px; min-width: 0; }
.console-heading,
.alarm-control-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.console-heading { margin-bottom: 20px; }
.console-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #f6a83f;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .16em;
}
.console-heading h2 { font-size: clamp(20px, 3vw, 27px); letter-spacing: -.035em; }
.console-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(43,217,159,.24);
    border-radius: 999px;
    background: rgba(43,217,159,.055);
    color: #71ebc0;
    padding: 7px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}
.console-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(43,217,159,.55); animation: consolePulse 1.55s infinite; }
.console-live.is-offline { color: #ff9ba6; border-color: rgba(255,99,116,.26); background: rgba(255,99,116,.06); }
.console-live.is-offline i { background: var(--red); animation: none; }
.console-display-grid { display: grid; grid-template-columns: .78fr 1fr; gap: 12px; }
.console-display-grid > div {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(108,139,169,.25);
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(4,12,17,.88), rgba(5,16,23,.77));
    box-shadow: inset 0 0 28px rgba(0,0,0,.35);
}
.console-display-grid > div::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -90px;
    bottom: -110px;
    border-radius: 50%;
    background: rgba(247,147,26,.1);
    filter: blur(26px);
    pointer-events: none;
}
.console-block-tile,
.console-hash-tile { padding: 18px; min-height: 140px; display: flex; flex-direction: column; justify-content: center; }
.console-caption { color: #6688a0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.console-block-tile strong,
.console-hash-tile strong,
.luck-copy strong {
    display: block;
    margin: 7px 0 3px;
    color: #ffb54d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(25px, 4.3vw, 43px);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.055em;
    text-shadow: 0 0 18px rgba(247,147,26,.18);
}
.console-block-tile small,
.console-hash-tile small,
.luck-copy small { color: #6e8aa0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.console-hash-tile strong { color: #7df0c5; text-shadow: 0 0 18px rgba(43,217,159,.17); }
.console-wave { display: flex; align-items: end; gap: 3px; height: 24px; margin-top: 10px; opacity: .9; }
.console-wave i { flex: 1; min-width: 3px; max-width: 8px; height: 20%; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #74f0c2, #168b69); animation: minerWave 1.25s ease-in-out infinite alternate; transform-origin: bottom; }
.console-wave i:nth-child(2n) { animation-delay: -.35s; }
.console-wave i:nth-child(3n) { animation-delay: -.72s; }
.console-wave i:nth-child(4n) { animation-delay: -1.05s; }
.console-luck-tile { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; padding: 17px 20px; }
.luck-orbit {
    --luck: 0deg;
    position: relative;
    width: 112px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#f7931a var(--luck), rgba(247,147,26,.1) 0);
    box-shadow: 0 0 24px rgba(247,147,26,.09);
    transition: --luck .45s ease;
}
.luck-orbit::before { content: ""; position: absolute; inset: 7px; border-radius: inherit; background: #071018; border: 1px solid rgba(247,147,26,.22); }
.luck-orbit::after { content: ""; position: absolute; inset: -5px; border: 1px dashed rgba(247,147,26,.22); border-radius: inherit; animation: orbitSpin 16s linear infinite; }
.luck-core { position: relative; z-index: 1; display: grid; place-items: center; text-align: center; }
.luck-core span,
.luck-core small { color: #6f8da4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.luck-core b { max-width: 82px; overflow: hidden; text-overflow: ellipsis; color: #f8bd69; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; }
.luck-copy strong { font-size: clamp(21px, 3.2vw, 33px); }
.console-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.console-stats div { min-width: 0; border: 1px solid rgba(94,125,154,.18); border-radius: 10px; background: rgba(6,17,25,.74); padding: 10px 11px; }
.console-stats span { display: block; margin-bottom: 5px; color: #5f8097; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; font-weight: 850; letter-spacing: .11em; }
.console-stats b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d9e8ee; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.alarm-control-panel {
    position: relative;
    z-index: 2;
    padding: 24px;
    border-left: 1px solid rgba(247,147,26,.22);
    background: linear-gradient(180deg, rgba(21,18,13,.74), rgba(10,14,19,.92));
}
.alarm-control-head { justify-content: flex-start; margin-bottom: 18px; }
.alarm-control-head h3 { font-size: 20px; }
.alarm-radar { position: relative; flex: 0 0 auto; width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(247,147,26,.42); border-radius: 50%; background: radial-gradient(circle, rgba(247,147,26,.18), rgba(247,147,26,.02) 68%); color: #ffb34c; font-size: 24px; box-shadow: 0 0 28px rgba(247,147,26,.12); }
.alarm-radar::before,
.alarm-radar::after { content: ""; position: absolute; border: 1px solid rgba(247,147,26,.22); border-radius: 50%; }
.alarm-radar::before { inset: 8px; }
.alarm-radar::after { inset: -6px; border-style: dashed; animation: orbitSpin 10s linear infinite; }
.alarm-radar i { position: absolute; left: 50%; bottom: 50%; width: 1px; height: 45%; background: linear-gradient(transparent, #f7931a); transform-origin: bottom; animation: radarSweep 2.6s linear infinite; }
.alarm-radar span { position: relative; z-index: 1; }
.alarm-readiness { display: flex; align-items: center; gap: 11px; min-height: 65px; margin-bottom: 12px; border: 1px solid rgba(255,209,102,.22); border-radius: 12px; background: rgba(255,209,102,.055); padding: 11px 12px; }
.alarm-readiness > i { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 14px rgba(255,209,102,.45); }
.alarm-readiness div { min-width: 0; }
.alarm-readiness b,
.alarm-readiness span { display: block; }
.alarm-readiness b { margin-bottom: 4px; font-size: 12px; }
.alarm-readiness span { color: #8fa4b8; font-size: 10px; line-height: 1.4; }
.alarm-readiness.ready { border-color: rgba(43,217,159,.26); background: rgba(43,217,159,.06); }
.alarm-readiness.ready > i { background: var(--green); box-shadow: 0 0 16px rgba(43,217,159,.52); }
.alarm-readiness.error { border-color: rgba(255,99,116,.28); background: rgba(255,99,116,.06); }
.alarm-readiness.error > i { background: var(--red); box-shadow: 0 0 16px rgba(255,99,116,.5); }
.alarm-capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 13px; }
.alarm-capabilities div { border: 1px solid rgba(104,134,162,.18); border-radius: 9px; background: rgba(7,15,22,.63); padding: 9px 10px; }
.alarm-capabilities span,
.alarm-capabilities b { display: block; }
.alarm-capabilities span { color: #67859b; font-size: 9px; letter-spacing: .06em; }
.alarm-capabilities b { margin-top: 4px; color: #c7d7df; font-size: 11px; }
.alarm-capabilities b.ok { color: #65e6b8; }
.alarm-capabilities b.warn { color: #ffd176; }
.alarm-capabilities b.bad { color: #ff929e; }
.alarm-actions { display: grid; gap: 8px; }
.primary-alarm-action,
.secondary-alarm-action { min-height: 43px; border-radius: 10px; padding: 10px 12px; font-weight: 850; cursor: pointer; transition: transform .18s ease, filter .18s ease, border-color .18s ease; }
.primary-alarm-action { border: 0; background: linear-gradient(135deg, #ffba55, #f7931a 65%, #de7310); color: #171008; box-shadow: 0 11px 24px rgba(247,147,26,.18); }
.secondary-alarm-action { border: 1px solid rgba(247,147,26,.36); background: rgba(247,147,26,.065); color: #ffd394; }
.primary-alarm-action:hover,
.secondary-alarm-action:hover { transform: translateY(-1px); filter: brightness(1.06); }
.primary-alarm-action:disabled,
.secondary-alarm-action:disabled { opacity: .55; cursor: wait; transform: none; }
.alarm-note { margin-top: 12px; color: #71899c; font-size: 9px; line-height: 1.5; }

/* Vollbild-Blockfundalarm */
.block-found-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    overflow: auto;
    isolation: isolate;
}
.block-found-overlay[hidden] { display: none !important; }
.block-alert-backdrop { position: fixed; inset: 0; z-index: -3; background: radial-gradient(circle at 50% 42%, rgba(247,147,26,.28), transparent 42%), rgba(2,4,7,.94); backdrop-filter: blur(14px); animation: backdropFlash .8s ease-out; }
.block-found-overlay::before { content: ""; position: fixed; inset: 0; z-index: -2; opacity: .16; background-image: linear-gradient(rgba(247,147,26,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(247,147,26,.18) 1px, transparent 1px); background-size: 34px 34px; animation: gridMove 10s linear infinite; }
.block-alert-card {
    position: relative;
    width: min(720px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255,183,76,.72);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(20,16,10,.98), rgba(7,11,16,.99));
    box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 0 70px rgba(247,147,26,.28), 0 42px 110px rgba(0,0,0,.8);
    padding: 24px 28px 26px;
    text-align: center;
    animation: alertCardIn .55s cubic-bezier(.2,.8,.2,1);
}
.block-alert-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .24; background: repeating-linear-gradient(180deg, transparent 0 4px, rgba(255,255,255,.035) 5px); }
.block-alert-card::after { content: ""; position: absolute; left: 10%; right: 10%; top: -2px; height: 2px; background: linear-gradient(90deg, transparent, #ffb544, transparent); box-shadow: 0 0 24px #f7931a; }
.block-alert-kicker { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; color: #ffbd60; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .16em; }
.alert-pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffae3b; box-shadow: 0 0 0 0 rgba(247,147,26,.8); animation: alertDot 1s infinite; }
.block-coin-scene { position: relative; width: 170px; height: 170px; margin: 8px auto -2px; display: grid; place-items: center; perspective: 800px; }
.block-energy-ring { position: absolute; border: 1px solid rgba(247,147,26,.48); border-radius: 50%; }
.ring-one { inset: 12px; animation: orbitSpin 5s linear infinite; border-style: dashed; }
.ring-two { inset: 28px; animation: orbitSpinReverse 3.8s linear infinite; border-color: rgba(255,209,102,.42); }
.ring-three { inset: 2px; border-color: rgba(247,147,26,.13); box-shadow: inset 0 0 28px rgba(247,147,26,.08), 0 0 32px rgba(247,147,26,.08); animation: ringBreath 1.3s ease-in-out infinite; }
.block-cube { position: relative; width: 82px; height: 82px; display: grid; place-items: center; border: 1px solid #ffba56; border-radius: 20px; background: linear-gradient(145deg, #ffc468, #f7931a 58%, #bf5b00); color: #1b1005; font-size: 49px; font-weight: 950; box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -12px 25px rgba(104,40,0,.22), 0 0 38px rgba(247,147,26,.45); transform: rotateX(8deg) rotateY(-10deg); animation: coinFloat 2.2s ease-in-out infinite; }
.block-cube::before,
.block-cube::after { content: ""; position: absolute; border: 1px solid rgba(255,218,158,.55); border-radius: inherit; }
.block-cube::before { inset: 7px; }
.block-cube::after { inset: -8px; border-style: dashed; opacity: .45; }
.block-alert-card h2 { position: relative; z-index: 1; margin: -1px 0 4px; color: #ffb74e; font-size: clamp(38px, 8vw, 72px); line-height: .98; letter-spacing: -.065em; text-shadow: 0 0 24px rgba(247,147,26,.34); animation: jackpotGlow 1.25s ease-in-out infinite alternate; }
.block-alert-card > p { position: relative; z-index: 1; color: #d9c3a1; font-size: 13px; line-height: 1.5; }
.block-found-data { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin: 19px 0 10px; }
.block-found-data div { min-width: 0; border: 1px solid rgba(247,147,26,.2); border-radius: 11px; background: rgba(247,147,26,.055); padding: 10px 8px; }
.block-found-data span { display: block; margin-bottom: 5px; color: #8d704b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; font-weight: 850; letter-spacing: .11em; }
.block-found-data b { display: block; overflow: hidden; text-overflow: ellipsis; color: #ffe1b5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.block-hash-line { position: relative; z-index: 1; display: grid; gap: 5px; border: 1px solid rgba(104,132,156,.19); border-radius: 10px; background: rgba(3,10,15,.78); padding: 9px 12px; text-align: left; }
.block-hash-line span { color: #657f94; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; letter-spacing: .12em; }
.block-hash-line code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9db9c7; font-size: 10px; }
.block-alert-actions { position: relative; z-index: 1; display: grid; grid-template-columns: auto auto 1fr; gap: 8px; margin-top: 15px; }
.block-alert-actions button { min-height: 44px; border-radius: 10px; padding: 10px 13px; font-weight: 850; cursor: pointer; transition: transform .16s ease, filter .16s ease; }
.block-alert-actions button:hover { transform: translateY(-1px); filter: brightness(1.07); }
.alert-quiet-button,
.alert-copy-button { border: 1px solid rgba(247,147,26,.26); background: rgba(247,147,26,.055); color: #f3c88c; }
.alert-confirm-button { border: 0; background: linear-gradient(135deg, #ffd379, #f7931a); color: #1a1006; box-shadow: 0 10px 26px rgba(247,147,26,.2); }
.block-alert-time { position: relative; z-index: 1; display: block; margin-top: 11px; color: #6d604f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.block-confetti { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.block-confetti i { position: absolute; top: -12vh; width: 8px; height: 18px; border-radius: 2px; background: #f7931a; animation: confettiFall 3.5s linear infinite; }
.block-confetti i:nth-child(2n) { background: #ffd166; width: 6px; height: 12px; }
.block-confetti i:nth-child(3n) { background: #2bd99f; }
.block-confetti i:nth-child(1) { left: 6%; animation-delay: -.4s; }
.block-confetti i:nth-child(2) { left: 14%; animation-delay: -2.1s; }
.block-confetti i:nth-child(3) { left: 23%; animation-delay: -1.1s; }
.block-confetti i:nth-child(4) { left: 34%; animation-delay: -2.9s; }
.block-confetti i:nth-child(5) { left: 43%; animation-delay: -.8s; }
.block-confetti i:nth-child(6) { left: 51%; animation-delay: -2.3s; }
.block-confetti i:nth-child(7) { left: 61%; animation-delay: -1.7s; }
.block-confetti i:nth-child(8) { left: 69%; animation-delay: -.2s; }
.block-confetti i:nth-child(9) { left: 77%; animation-delay: -3.1s; }
.block-confetti i:nth-child(10) { left: 84%; animation-delay: -1.4s; }
.block-confetti i:nth-child(11) { left: 91%; animation-delay: -2.5s; }
.block-confetti i:nth-child(12) { left: 97%; animation-delay: -.9s; }
body.block-alert-open { overflow: hidden; }
body.block-alert-open .shell { filter: blur(2px); }
.alarm-toast { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 12000; width: min(430px, calc(100% - 28px)); transform: translateX(-50%); border: 1px solid rgba(247,147,26,.42); border-radius: 12px; background: rgba(11,17,25,.96); color: #f1d2a5; box-shadow: 0 18px 60px rgba(0,0,0,.5); padding: 12px 14px; font-size: 12px; line-height: 1.45; text-align: center; animation: toastIn .25s ease-out; }
.alarm-toast.success { border-color: rgba(43,217,159,.42); color: #98f2d1; }
.alarm-toast.error { border-color: rgba(255,99,116,.42); color: #ffadb7; }

@keyframes consolePulse { 70% { box-shadow: 0 0 0 8px rgba(43,217,159,0); } 100% { box-shadow: 0 0 0 0 rgba(43,217,159,0); } }
@keyframes minerWave { from { height: 15%; } to { height: 100%; } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitSpinReverse { to { transform: rotate(-360deg); } }
@keyframes radarSweep { to { transform: rotate(360deg); } }
@keyframes backdropFlash { 0% { background-color: rgba(255,155,0,.8); } 100% { background-color: rgba(2,4,7,.94); } }
@keyframes gridMove { to { background-position: 34px 34px; } }
@keyframes alertCardIn { from { opacity: 0; transform: translateY(35px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes alertDot { 70% { box-shadow: 0 0 0 9px rgba(247,147,26,0); } }
@keyframes ringBreath { 50% { transform: scale(1.05); opacity: .65; } }
@keyframes coinFloat { 50% { transform: translateY(-7px) rotateX(11deg) rotateY(8deg); } }
@keyframes jackpotGlow { from { filter: brightness(.93); } to { filter: brightness(1.18); } }
@keyframes confettiFall { to { transform: translate3d(8vw, 120vh, 0) rotate(720deg); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

@media (prefers-reduced-motion: reduce) {
    .console-live i,
    .console-wave i,
    .luck-orbit::after,
    .alarm-radar::after,
    .alarm-radar i,
    .block-energy-ring,
    .block-cube,
    .block-alert-card h2,
    .block-confetti i { animation: none !important; }
}

/* Installierbare PWA */
[hidden] { display: none !important; }
.install-app-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(247, 147, 26, .45);
    border-radius: 999px;
    background: rgba(247, 147, 26, .10);
    color: #ffd08d;
    padding: 10px 14px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.install-app-button:hover { transform: translateY(-1px); border-color: rgba(247, 147, 26, .72); background: rgba(247, 147, 26, .16); }
.alarm-enable-button:focus-visible,
.primary-alarm-action:focus-visible,
.secondary-alarm-action:focus-visible,
.block-alert-actions button:focus-visible,
.install-app-button:focus-visible,
.pwa-dialog button:focus-visible,
.offline-retry:focus-visible,
.ranges button:focus-visible,
.secondary-button:focus-visible,
#copyEndpoint:focus-visible { outline: 3px solid rgba(247, 147, 26, .35); outline-offset: 3px; }
.pwa-dialog { width: min(460px, calc(100% - 24px)); max-width: none; border: 0; padding: 0; border-radius: 20px; background: transparent; color: var(--text); }
.pwa-dialog::backdrop { background: rgba(2, 5, 10, .78); backdrop-filter: blur(7px); }
.pwa-dialog-card { position: relative; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #111d2d, #0a111c); box-shadow: 0 28px 90px rgba(0, 0, 0, .6); padding: 28px; }
.pwa-dialog-card > img { display: block; border-radius: 22px; margin-bottom: 18px; box-shadow: 0 14px 32px rgba(247, 147, 26, .18); }
.pwa-dialog-card h2 { font-size: 25px; margin-bottom: 14px; }
.pwa-dialog-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #09121f; color: #bfd0e3; font-size: 25px; line-height: 1; cursor: pointer; }
.pwa-instructions { color: #bccbdd; font-size: 14px; line-height: 1.65; }
.pwa-instructions ol { margin: 0 0 14px; padding-left: 22px; }
.pwa-instructions li + li { margin-top: 8px; }
.pwa-instructions p { color: var(--muted); }
.pwa-dialog-done { width: 100%; margin-top: 20px; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #17100a; padding: 12px 15px; font-weight: 850; cursor: pointer; }
.offline-page { min-height: 100vh; }
.offline-shell { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
.offline-card { width: min(520px, 100%); padding: 34px; text-align: center; }
.offline-card img { border-radius: 24px; box-shadow: 0 18px 50px rgba(247, 147, 26, .18); margin-bottom: 22px; }
.offline-card h1 { font-size: clamp(28px, 6vw, 40px); margin-bottom: 13px; }
.offline-card p { color: var(--muted); line-height: 1.65; margin-bottom: 22px; }
.offline-card small { display: block; color: #6f849f; margin-top: 20px; }
.offline-retry { display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #17100a; padding: 12px 18px; text-decoration: none; font-weight: 850; }

@media (display-mode: standalone) {
    .shell { padding-top: max(38px, env(safe-area-inset-top)); padding-bottom: max(30px, env(safe-area-inset-bottom)); }
    body { overscroll-behavior-y: none; }
}

@media (max-width: 1080px) {
    .miner-console { grid-template-columns: 1fr; }
    .alarm-control-panel { border-left: 0; border-top: 1px solid rgba(247,147,26,.22); }
    .alarm-capabilities { grid-template-columns: repeat(4, minmax(0,1fr)); }

    .worker-head { flex-direction: column; }
    .worker-controls { width: 100%; justify-content: flex-start; }
}

@media (max-width: 920px) {
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .details { grid-template-columns: 1fr; }
    .hero { grid-template-columns: 1fr; }
    .worker-grid { grid-template-columns: 1fr; }
    .worker-card-full { max-width: min(62vw, 520px); }
}

@media (max-width: 700px) {
    .console-display-grid { grid-template-columns: 1fr; }
    .console-luck-tile { grid-column: auto; }
    .console-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .alarm-capabilities { grid-template-columns: 1fr 1fr; }
    .block-found-data { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .block-alert-actions { grid-template-columns: 1fr 1fr; }
    .alert-confirm-button { grid-column: 1 / -1; }

    .worker-controls { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
    .worker-ranges { grid-column: 1 / -1; width: 100%; }
    .worker-ranges button { flex: 1; }
    .secondary-button { width: 100%; }
}

@media (max-width: 640px) {
    .miner-console { border-radius: 17px; }
    .console-main, .alarm-control-panel { padding: 18px; }
    .console-luck-tile { grid-template-columns: 92px 1fr; gap: 15px; }
    .luck-orbit { width: 92px; }
    .block-alert-card { border-radius: 20px; padding: 20px 16px 22px; }
    .block-coin-scene { width: 145px; height: 145px; }
    .block-cube { width: 72px; height: 72px; font-size: 42px; }

    .shell { width: min(100% - 20px, 1280px); padding-top: 20px; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .topbar-actions { width: 100%; justify-content: space-between; align-items: stretch; }
    .topbar-actions .status-pill { flex: 1; justify-content: center; }
    .status-pill { align-self: stretch; justify-content: center; white-space: normal; text-align: center; }
    .kpis,
    .charts { grid-template-columns: 1fr; }
    .wide { grid-column: auto; }
    .hero-grid { grid-template-columns: 1fr; }
    .endpoint,
    footer { align-items: flex-start; flex-direction: column; }
    .endpoint code { word-break: break-all; }
    .chart { height: 245px; }
    .worker-performance,
    .workers,
    .charts > .panel { padding: 16px; }
    .worker-mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .worker-chart-wrap { height: 180px; }
    .worker-card-full { max-width: 55vw; }
    .install-app-button { min-height: 42px; }
    .pwa-dialog-card { padding: 24px; }
    .offline-card { padding: 28px 22px; }
}

@media (max-width: 460px) {
    .console-heading { align-items: flex-start; }
    .console-live { padding: 6px 8px; }
    .console-luck-tile { grid-template-columns: 1fr; text-align: center; }
    .luck-orbit { margin: auto; }
    .console-stats { grid-template-columns: 1fr 1fr; }
    .alarm-control-head { align-items: flex-start; }
    .block-found-data { grid-template-columns: 1fr 1fr; }
    .block-alert-actions { grid-template-columns: 1fr; }
    .alert-confirm-button { grid-column: auto; }
    .block-alert-card h2 { font-size: 42px; }

    .topbar-actions { flex-direction: column; }
    .install-app-button { width: 100%; }
    .worker-controls { grid-template-columns: 1fr; }
    .worker-ranges { grid-column: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
    .worker-card-top,
    .worker-primary { align-items: flex-start; }
    .worker-primary { flex-direction: column; }
    .worker-share-label { text-align: left; }
    .worker-card-full { max-width: 48vw; }
    .worker-card-footer { align-items: flex-start; flex-direction: column; gap: 3px; }
}


/* Chance Optimizer v14 */
.optimizer-panel { padding: 24px; overflow: hidden; }
.optimizer-head { align-items: flex-start; gap: 18px; }
.optimizer-health { padding: 8px 12px; border-radius: 999px; font-size: .76rem; font-weight: 900; letter-spacing: .08em; background: rgba(148,163,184,.12); color: #cbd5e1; border: 1px solid rgba(148,163,184,.22); }
.optimizer-health.good { color: #86efac; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); }
.optimizer-health.warn { color: #fde68a; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); }
.optimizer-health.bad { color: #fca5a5; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); }
.optimizer-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.optimizer-kpi { padding: 16px; border-radius: 16px; background: linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018)); border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.optimizer-kpi span,.optimizer-kpi small { display:block; color: var(--muted); }
.optimizer-kpi span { font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; }
.optimizer-kpi strong { display:block; margin:7px 0 4px; font-size:clamp(1.25rem,2.5vw,1.8rem); overflow-wrap:anywhere; }
.optimizer-kpi small { font-size:.76rem; }
.optimizer-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:14px; }
.optimizer-detail-grid > article { padding:18px; border:1px solid rgba(255,255,255,.08); border-radius:16px; background:rgba(3,7,18,.25); }
.optimizer-detail-grid h3 { margin:0 0 12px; font-size:1rem; }
.optimizer-list { display:grid; gap:8px; }
.optimizer-list > div { display:flex; justify-content:space-between; gap:16px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.optimizer-list > div:last-child { border-bottom:0; }
.optimizer-list span { color:var(--muted); overflow-wrap:anywhere; }
.optimizer-empty { color:var(--muted); margin:0; }
.dashboard-reset-notice { display:flex; gap:12px; align-items:flex-start; margin-top:16px; padding:13px 15px; border-radius:14px; background:rgba(59,130,246,.10); border:1px solid rgba(96,165,250,.28); }
.dashboard-reset-notice strong { white-space:nowrap; color:#bfdbfe; }
.dashboard-reset-notice span { color:#cbd5e1; }
.optimizer-worker-card.has-loss { border-color:rgba(245,158,11,.35); }
.optimizer-worker-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); }
.worker-quality-line { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 0 2px; color:var(--muted); font-size:.78rem; }
.professional-worker-table { min-width:1420px; }
.professional-worker-table .worker-name small { display:block; max-width:260px; overflow:hidden; text-overflow:ellipsis; color:var(--muted); font-weight:400; margin-top:3px; }
.metric-warning { color:#fbbf24; font-weight:800; }
@media(max-width:920px){.optimizer-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.optimizer-worker-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.optimizer-summary-grid,.optimizer-detail-grid{grid-template-columns:1fr}.dashboard-reset-notice{flex-direction:column}.dashboard-reset-notice strong{white-space:normal}}
