/* pool.opensourceminers.de
   Design-Tokens der Hauptseite: helles Theme, Inter, Bitcoin-Orange #f7931a,
   rounded-xl-Karten, max-w-6xl-Container. Dunkler Hero als Akzent. */

@font-face {
    font-family: 'Inter Variable';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/inter-latin.woff2') format('woff2');
}

:root {
    --brand: #f7931a;
    --brand-50: #fff7ed;
    --brand-100: #ffedd5;
    --brand-600: #e07c0c;
    --brand-700: #b45f08;
    --n-50: #fafafa;
    --n-100: #f5f5f5;
    --n-200: #e5e5e5;
    --n-300: #d4d4d4;
    --n-400: #a3a3a3;
    --n-500: #737373;
    --n-600: #525252;
    --n-700: #404040;
    --n-900: #171717;
    --dark: #101012;
    --dark-2: #18181b;
    --dark-3: #26262a;
    --dark-line: #2a2a2e;
    --ok: #16a34a;
    --bad: #dc2626;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --gap: 1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
    margin: 0;
    font-family: 'Inter Variable', ui-sans-serif, system-ui, -apple-system, sans-serif;
    background: #fff;
    color: var(--n-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { letter-spacing: -0.018em; line-height: 1.2; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
code {
    background: var(--n-100);
    border-radius: 0.375rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.9em;
    word-break: break-all;
}

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

/* Wiederkehrende Bausteine */
.rule { display: inline-block; width: 1.125rem; height: 2px; background: var(--brand); border-radius: 2px; flex: none; }
.rule-dark { width: 0.875rem; }
.eyebrow {
    display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem;
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.09em; color: var(--n-600);
}
.meta-text { font-size: 0.75rem; color: var(--n-400); }
.section-note { font-size: 0.75rem; color: var(--n-400); margin: 0.875rem 0 0; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgb(255 255 255 / 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--n-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; }
.logo { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; transition: opacity .15s; }
.logo:hover { opacity: 0.8; }
.logo-mark {
    display: grid; place-items: center;
    height: 2.25rem; width: 2.25rem; flex: none;
    border-radius: var(--radius);
    background: var(--brand);
    box-shadow: 0 2px 6px rgb(247 147 26 / 0.32);
}
.logo-mark svg { height: 1.25rem; width: 1.25rem; }
.logo-text { font-size: 1rem; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; }
.brand-text { color: var(--brand); }
.logo-pool {
    margin-left: 0.375rem; vertical-align: 2px;
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.09em;
    color: var(--n-900); background: var(--brand);
    border-radius: 0.375rem; padding: 0.15rem 0.4rem;
}
.header-nav { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; }
.nav-link {
    font: inherit; font-size: 0.875rem; font-weight: 500;
    padding: 0.5rem 0.75rem; border-radius: 0.5rem;
    color: var(--n-600); text-decoration: none; white-space: nowrap;
    background: none; border: none; cursor: pointer;
    transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--n-100); color: var(--n-900); }
.nav-link-cta {
    background: var(--brand); color: var(--n-900); font-weight: 700;
    box-shadow: var(--shadow-sm); margin-left: 0.375rem;
}
.nav-link-cta:hover { background: var(--brand-600); color: var(--n-900); }
@media (max-width: 900px) { .nav-link-lg { display: none; } }
@media (max-width: 720px) { .nav-link-md { display: none; } }

/* Sprachumschalter (wie auf der Hauptseite: Flagge + Kürzel) */
.lang-switch {
    display: inline-flex; align-items: center; gap: 0.375rem;
    margin-left: 0.375rem; padding: 0.45rem 0.6rem;
    border: 1px solid var(--n-200); border-radius: 0.5rem;
    font-size: 0.72rem; font-weight: 700; color: var(--n-600);
    text-decoration: none; transition: all .15s; white-space: nowrap;
}
.lang-switch:hover { background: var(--n-100); color: var(--n-900); border-color: var(--n-300); }
.lang-switch[hidden] { display: none; }
.flag { height: 0.75rem; width: 1.25rem; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1); }

/* Hero */
.hero { padding: 4rem 0 3rem; }
.hero-dark { background: var(--dark); color: #fafafa; border-bottom: 1px solid var(--dark-line); }
.hero-dark h1 { color: #fff; }
.hero-dark .hero-sub { color: #a1a1aa; }
.hero-dark .hero-sub strong { color: #e4e4e7; }
.hero-grid { display: grid; gap: 2.75rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }
.hero-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.chip {
    font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em;
    color: var(--brand-700); background: var(--brand-50);
    border: 1px solid var(--brand-100); border-radius: 999px; padding: 0.28rem 0.7rem;
}
.chip-dark { background: rgb(247 147 26 / 0.12); border-color: rgb(247 147 26 / 0.32); color: var(--brand); }
.hero h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 800; margin: 0 0 1.125rem; }
.hero-sub { max-width: 34rem; font-size: 1.0625rem; color: var(--n-600); margin: 0 0 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-badges { display: flex; gap: 0.625rem; flex-wrap: wrap; margin-top: 1.75rem; }
.badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.8125rem; color: var(--n-600);
    background: #fff; border: 1px solid var(--n-200);
    border-radius: 999px; padding: 0.4rem 0.9rem; box-shadow: var(--shadow-sm);
    white-space: nowrap;
}
.badge strong { color: var(--n-900); }
.badge-dark { background: var(--dark-2); border-color: var(--dark-line); color: #a1a1aa; }
.badge-dark strong { color: #fafafa; }
.badge-live { color: #d4d4d8; font-weight: 500; }

/* Pulsierender Live-Status */
.pulse { position: relative; display: inline-grid; place-items: center; height: 0.55rem; width: 0.55rem; flex: none; }
.pulse-core { height: 0.55rem; width: 0.55rem; border-radius: 999px; background: var(--n-400); display: block; }
.pulse::after {
    content: ''; position: absolute; inset: 0;
    border-radius: 999px; background: var(--n-400); opacity: 0;
}
.pulse.is-ok .pulse-core { background: #22c55e; box-shadow: 0 0 0 2px rgb(34 197 94 / 0.18); }
.pulse.is-ok::after { background: #22c55e; animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.pulse.is-bad .pulse-core { background: var(--bad); box-shadow: 0 0 0 2px rgb(220 38 38 / 0.18); }
@keyframes pulse-ring {
    0%   { transform: scale(1);   opacity: 0.55; }
    70%  { transform: scale(2.6); opacity: 0; }
    100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } }

/* Global Solo Stats Panel */
.gs-panel {
    background: var(--dark-2);
    border: 1px solid var(--dark-line);
    border-radius: var(--radius-lg);
    padding: 1.375rem 1.5rem 1.25rem;
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.4);
}
.gs-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.gs-title {
    display: flex; align-items: center; gap: 0.5rem; margin: 0;
    font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em; color: #a1a1aa;
}
.tabs-dark { background: var(--dark); }
.tabs-dark .tab { color: #71717a; }
.tabs-dark .tab:hover { color: #fafafa; }
.tabs-dark .tab.active { background: var(--dark-3); color: var(--brand); box-shadow: none; }
.gs-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.625rem; margin-top: 0.875rem; }
.gs-cell {
    background: var(--dark); border: 1px solid var(--dark-3);
    border-radius: 0.625rem; padding: 0.8rem 0.75rem; text-align: center;
}
.gs-label {
    margin: 0; font-size: 0.58rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em; color: #71717a; line-height: 1.45;
}
.gs-value { margin: 0.3rem 0 0; font-size: 1.5rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.gs-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.625rem; margin-top: 0.625rem; }
.gs-block {
    display: block; text-decoration: none;
    background: var(--dark); border: 1px solid var(--dark-3);
    border-radius: 0.625rem; padding: 0.8rem 0.875rem;
    transition: border-color .15s, transform .15s;
}
a.gs-block:hover { border-color: var(--brand); transform: translateY(-1px); }
.gs-block-h { margin: 0; font-size: 1.125rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.gs-block-sub { margin: 0.15rem 0 0; font-size: 0.7rem; color: #71717a; }
.gs-src { margin: 1rem 0 0; font-size: 0.65rem; color: #52525b; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.7rem 1.35rem; border-radius: 0.625rem;
    font-family: inherit; font-size: 0.9375rem; font-weight: 600; text-decoration: none;
    border: 1px solid transparent; cursor: pointer; transition: all .15s;
    white-space: nowrap;
}
.btn-icon { height: 1rem; width: 1rem; }
.btn-primary { background: var(--brand); color: var(--n-900); box-shadow: 0 2px 8px rgb(247 147 26 / 0.3); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: 0 4px 12px rgb(247 147 26 / 0.35); }
.btn-secondary { background: #fff; color: var(--n-900); border-color: var(--n-200); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--n-300); background: var(--n-50); }
.btn-dark { background: var(--dark-2); color: #fafafa; border-color: var(--dark-3); }
.btn-dark:hover { background: var(--dark-3); border-color: #3f3f46; }
.linklike { font: inherit; background: none; border: none; padding: 0; cursor: pointer; color: inherit; text-align: left; }

/* Sections */
.section { padding: 2.25rem 0; }
.section-alt { background: var(--n-50); border-top: 1px solid var(--n-200); border-bottom: 1px solid var(--n-200); padding: 3rem 0; margin-top: 2rem; }
.section h2 { font-size: 1.375rem; font-weight: 700; margin: 0 0 1rem; }

/* Adress-Suche */
.lookup { padding: 2rem 0 0.5rem; }
.lookup-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.lookup-copy { min-width: 16rem; }
.lookup-copy .eyebrow { margin-bottom: 0.35rem; }
.lookup-sub { margin: 0; font-size: 0.875rem; color: var(--n-500); }
.addr-form { display: flex; gap: 0.625rem; flex: 1; min-width: 18rem; max-width: 34rem; }
.addr-input {
    flex: 1; min-width: 10rem;
    font: inherit; font-size: 0.9375rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--n-200); border-radius: 0.625rem;
    background: #fff; color: var(--n-900); box-shadow: var(--shadow-sm);
    transition: border-color .15s;
}
.addr-input:hover { border-color: var(--n-300); }
.addr-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.addr-result { margin-top: 1.5rem; }
.addr-error {
    background: #fff; border: 1px solid var(--n-200); border-radius: var(--radius);
    padding: 1rem 1.25rem; color: var(--n-600); font-size: 0.9375rem; box-shadow: var(--shadow-sm);
}

/* Karten & Kacheln */
.card {
    background: #fff; border: 1px solid var(--n-200);
    border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 1rem; font-size: 1.0625rem; font-weight: 700; }
.card-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
/* Feste Spaltenzahl statt auto-fill: acht Kacheln ergeben sonst je nach
   Fensterbreite krumme Reihen (5+3). So sind es immer volle Reihen. */
.tiles-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 26rem) { .tiles-grid { grid-template-columns: 1fr; } }
@media (min-width: 56rem) { .tiles-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
    background: #fff; border: 1px solid var(--n-200);
    border-radius: var(--radius); padding: 1.05rem 1.2rem; box-shadow: var(--shadow-sm);
    transition: border-color .15s, transform .15s;
}
.stat-card:hover { border-color: var(--n-300); transform: translateY(-1px); }
.stat-card-hero { background: var(--brand-50); border-color: var(--brand-100); }
.stat-card-hero:hover { border-color: var(--brand); }
.stat-label { margin: 0; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--n-500); }
.stat-value { margin: 0.3rem 0 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-sub { margin: 0.25rem 0 0; font-size: 0.72rem; color: var(--n-400); }

/* Chart */
.chart-card { padding: 1.25rem 1.5rem 1.5rem; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chart-head .eyebrow { margin: 0; }
.tabs { display: flex; gap: 0.25rem; background: var(--n-100); border-radius: 0.625rem; padding: 0.25rem; }
.tab {
    font: inherit; font-size: 0.8125rem; font-weight: 600;
    border: none; background: transparent; color: var(--n-500);
    border-radius: 0.45rem; padding: 0.35rem 0.8rem; cursor: pointer; transition: all .15s;
    white-space: nowrap;
}
.tab:hover { color: var(--n-900); }
.tab.active { background: #fff; color: var(--n-900); box-shadow: var(--shadow-sm); }
.chart-body { min-height: 240px; }
.chart-body svg { display: block; width: 100%; height: auto; }
.chart-empty {
    display: grid; place-items: center; min-height: 240px;
    color: var(--n-400); font-size: 0.9375rem; text-align: center; padding: 1rem; line-height: 1.7;
}

/* Feature-Karte (SOLO Groups) */
.feature-card { padding: 1.75rem; margin-bottom: var(--gap); }
.feature-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.feature-head > div:first-child { max-width: 42rem; }
.feature-title { display: flex; align-items: center; gap: 0.5rem; margin: 0.75rem 0 0.5rem; font-size: 1.5rem; font-weight: 800; }
.feature-lead { margin: 0 0 0.625rem; font-size: 1.0625rem; font-weight: 700; color: var(--brand-700); }
.feature-text { margin: 0; color: var(--n-600); font-size: 0.9375rem; }
.feature-actions { display: flex; flex-direction: column; gap: 0.625rem; min-width: 13rem; }
@media (max-width: 720px) { .feature-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; } }
.feature-tiles { margin-bottom: var(--gap); }
.info-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 820px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card { background: var(--n-50); border: 1px solid var(--n-200); border-radius: var(--radius); padding: 1.125rem 1.25rem; }
.info-title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; font-size: 0.8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; }
.sq { display: inline-block; height: 0.5rem; width: 0.5rem; background: var(--n-900); border-radius: 2px; flex: none; }
.info-text { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--n-600); line-height: 1.65; }
.info-card:first-child .info-text { margin-top: 0.75rem; }

/* SOLO Groups Liste */
.group-row { cursor: pointer; transition: background .12s; }
.group-row:hover { background: var(--brand-50); }
.group-row.active { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand); }
.group-name { font-weight: 700; }
.group-name::before { content: '#'; color: var(--brand); }
.group-detail { margin-top: 1.5rem; border-top: 1px solid var(--n-200); padding-top: 1.5rem; }
.group-detail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.group-detail-head h4 { margin: 0; font-size: 1.125rem; font-weight: 800; }
.group-preview-note { font-size: 0.78rem; color: var(--n-500); margin: 0.875rem 0 0; }

/* Tabellen */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--n-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.table-borderless { border: none; box-shadow: none; border-radius: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
    text-align: left; padding: 0.7rem 1rem;
    font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--n-500); border-bottom: 1px solid var(--n-200); white-space: nowrap;
}
.data-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--n-100); white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table tr:last-child td { border-bottom: none; }
.data-table code { background: none; padding: 0; font-size: 0.8125rem; color: var(--n-600); }
.table-empty { color: var(--n-400); text-align: center; padding: 2.5rem 1rem !important; white-space: normal; }
.rank-1 { color: var(--brand-700); font-weight: 800; }
.best-1 { color: var(--brand-700); font-weight: 800; }

/* Pills */
.pill {
    display: inline-block; vertical-align: middle;
    font-size: 0.62rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
    padding: 0.2rem 0.55rem; border-radius: 999px;
    background: var(--n-100); color: var(--n-600); border: 1px solid var(--n-200);
    white-space: nowrap;
}
.pill-brand { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.pill-new { background: var(--brand); color: var(--n-900); border-color: var(--brand); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.625rem; max-width: 52rem; }
.faq-item {
    background: #fff; border: 1px solid var(--n-200);
    border-radius: var(--radius); padding: 0 1.25rem; box-shadow: var(--shadow-sm);
    transition: border-color .15s;
}
.faq-item:hover { border-color: var(--n-300); }
.faq-item[open] { border-color: var(--brand-100); background: #fff; }
.faq-item summary {
    cursor: pointer; list-style: none; font-weight: 600; font-size: 0.9375rem;
    padding: 1rem 2rem 1rem 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 0.25rem; top: 50%;
    transform: translateY(-50%); color: var(--brand); font-size: 1.25rem; font-weight: 700;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin: 0 0 1rem; color: var(--n-600); font-size: 0.9375rem; }
.faq-item a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 2px; }

/* Modal */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 100;
    background: rgb(10 10 12 / 0.74);
    backdrop-filter: blur(4px);
    display: grid; place-items: start center;
    padding: 2.5rem 1rem; overflow-y: auto;
    animation: fade-in .15s ease-out;
}
.modal-backdrop[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
    width: 100%; max-width: 54rem;
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
    padding: 1.75rem;
    animation: modal-in .18s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.modal-head h2 { display: flex; align-items: center; gap: 0.625rem; margin: 0; font-size: 1.375rem; font-weight: 800; }
.modal-close {
    font: inherit; font-size: 1.5rem; line-height: 1;
    background: none; border: none; color: var(--n-400);
    cursor: pointer; padding: 0.2rem 0.5rem; border-radius: 0.5rem; transition: all .15s;
}
.modal-close:hover { color: var(--n-900); background: var(--n-100); }
.modal-intro { margin: 0.625rem 0 1.25rem; color: var(--n-500); font-size: 0.9375rem; }

.mode-cards { display: grid; gap: 0.875rem; grid-template-columns: 1fr; margin-bottom: var(--gap); }
@media (min-width: 700px) { .mode-cards { grid-template-columns: 1fr 1fr; } }
.mode-card {
    position: relative; text-align: left; font: inherit; display: block;
    background: #fff; border: 1.5px solid var(--n-200); border-radius: var(--radius);
    padding: 1rem 2.75rem 1rem 1.125rem; cursor: pointer; transition: all .15s;
}
.mode-card:hover { border-color: var(--n-300); }
.mode-card.active { border-color: var(--brand); background: var(--brand-50); }
.mode-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1rem; }
.mode-sub { display: block; margin-top: 0.3rem; font-size: 0.8125rem; color: var(--n-500); line-height: 1.5; }
.mode-radio {
    position: absolute; right: 1rem; top: 1.15rem;
    height: 1.1rem; width: 1.1rem; border-radius: 999px;
    border: 1.5px solid var(--n-300); background: #fff; transition: all .15s;
}
.mode-card.active .mode-radio { border-color: var(--brand); border-width: 5px; }

.cm-grid { display: grid; gap: 0.875rem; grid-template-columns: 1fr; margin-top: 0.875rem; }
@media (min-width: 700px) { .cm-grid { grid-template-columns: 1fr 1fr; } }
.cm-box { background: #fff; border: 1px solid var(--n-200); border-radius: var(--radius); padding: 1.125rem 1.25rem; }
.cm-box-title { margin: 0 0 0.875rem; font-size: 0.9375rem; font-weight: 700; }
.cm-label { display: block; margin: 0.875rem 0 0.35rem; font-size: 0.72rem; font-weight: 600; color: var(--n-500); }
.cm-label:first-of-type { margin-top: 0; }
.cm-field { display: flex; align-items: stretch; gap: 0.5rem; }
.cm-field code {
    flex: 1; background: var(--dark-2); color: var(--brand); border: none;
    border-radius: 0.5rem; padding: 0.6rem 0.75rem;
    font-size: 0.8125rem; line-height: 1.55; word-break: break-all;
}
.cm-field-multi code { color: #fafafa; }
.cm-field .copy-btn { align-self: stretch; white-space: nowrap; }
.cm-text { margin: 0 0 0.5rem; font-size: 0.8125rem; color: var(--n-600); line-height: 1.6; }
.cm-hint { margin: 0.875rem 0 0; font-size: 0.75rem; color: var(--n-500); line-height: 1.6; }
.cm-list { margin: 0.875rem 0 0; padding-left: 1.1rem; font-size: 0.8125rem; color: var(--n-600); display: flex; flex-direction: column; gap: 0.4rem; }
.cm-steps { margin: 0; padding-left: 1.2rem; font-size: 0.8125rem; color: var(--n-600); display: flex; flex-direction: column; gap: 0.5rem; }
.cm-note { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 0.95rem 1.125rem; margin-top: 0.875rem; }
.cm-note p { margin: 0; font-size: 0.8125rem; color: var(--n-700); line-height: 1.65; }
.device-row { display: flex; gap: 0.625rem; flex-wrap: wrap; align-items: flex-start; }
.device {
    font: inherit; display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
    width: 7.5rem; padding: 0.9rem 0.5rem;
    background: #fff; border: 1.5px solid var(--n-200); border-radius: 0.625rem;
    cursor: pointer; transition: all .15s; color: var(--n-600);
}
.device svg { height: 1.75rem; width: 1.75rem; }
.device span { font-size: 0.7rem; font-weight: 600; text-align: center; line-height: 1.3; }
.device:hover { border-color: var(--n-300); }
.device.active { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.device-hint { flex: 1; min-width: 14rem; margin: 0; font-size: 0.75rem; color: var(--n-500); line-height: 1.65; }
.copy-btn {
    font: inherit; font-size: 0.72rem; font-weight: 600;
    padding: 0.4rem 0.75rem; border-radius: 0.5rem;
    background: #fff; border: 1px solid var(--n-200); color: var(--n-600);
    cursor: pointer; box-shadow: var(--shadow-sm); transition: all .15s;
}
.copy-btn:hover { border-color: var(--brand); color: var(--brand-700); }
.copy-btn.copied { background: var(--brand-50); border-color: var(--brand); color: var(--brand-700); }
body.modal-open { overflow: hidden; }

/* Footer */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--n-200); background: var(--n-50); padding: 3rem 0 1.75rem; }
.footer-logo { margin-bottom: 1rem; }
.footer-brand { max-width: 24rem; }
.footer-tag { margin: 0 0 1rem; font-size: 0.8125rem; color: var(--n-600); line-height: 1.7; }
.footer-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0; }
.footer-chips .chip { font-size: 0.62rem; padding: 0.22rem 0.6rem; }

.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); font-size: 0.875rem; }
@media (min-width: 900px) { .footer-cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-head { font-weight: 700; color: var(--n-900); margin: 0 0 0.875rem; font-size: 0.8125rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer a, .site-footer .linklike { color: var(--n-500); text-decoration: none; transition: color .15s; font-size: 0.8125rem; }
.site-footer a:hover, .site-footer .linklike:hover { color: var(--brand-700); }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    margin-top: 2.5rem; padding-top: 1.25rem;
    border-top: 1px solid var(--n-200);
    font-size: 0.75rem; color: var(--n-400);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { font-size: inherit; color: var(--n-400); }
.footer-bottom a:hover { color: var(--brand-700); }
.footer-status { display: inline-flex; align-items: center; gap: 0.5rem; font-variant-numeric: tabular-nums; }
