/* Yoorba Bussola – eigenes Stylesheet (bewusst unter styles/, nicht css/: BCC-Bundler-Falle).
   Ein Akzent (Magenta) nur für Aktionen, Navy für Text, Grün nur für "Più conveniente". */

@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/InstrumentSans-Variable-latin.woff2") format("woff2");
}

:root {
    --cx-ink: #082049;
    --cx-ink-2: #1D3360;
    --cx-accent: #C52E8A;
    --cx-accent-hover: #A8226F;
    --cx-accent-tint: #FBEAF4;
    --cx-paper: #F5F6FA;
    --cx-surface: #FFFFFF;
    --cx-line: #DDE2EE;
    --cx-field: #8792AD;
    --cx-muted: #5B6785;
    --cx-best: #1F8A5B;
    --cx-best-tint: #E6F3EC;
    --cx-rose: #9DB1C6;
    --cx-track: #EDF0F6;
    --cx-warn: #8A5300;
    --cx-error: #B3261E;

    --cx-font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --cx-radius-s: 6px;
    --cx-radius: 8px;
    --cx-radius-l: 14px;
    --cx-header-h: 60px;
    --cx-focus: 0 0 0 2px var(--cx-surface), 0 0 0 4px var(--cx-accent);

    color-scheme: light;
}

html, body {
    background: var(--cx-paper);
    color: var(--cx-ink);
    font-family: var(--cx-font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body { margin: 0; }

.cx-app { min-height: 100vh; background: var(--cx-paper); font-family: var(--cx-font); color: var(--cx-ink); }
.cx-app *, .cx-app *::before, .cx-app *::after { box-sizing: border-box; }

/* ---------- Kopfzeile ---------- */
.cx-header {
    position: sticky; top: 0; z-index: 10;
    height: var(--cx-header-h);
    display: flex; align-items: center;
    padding: 0 32px;
    background: var(--cx-surface);
    border-bottom: 1px solid var(--cx-line);
}

.cx-brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--cx-ink); text-decoration: none;
    font-size: 17px; font-weight: 650; letter-spacing: -0.01em;
    border-radius: var(--cx-radius-s);
}

.cx-header__link {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: var(--cx-radius-s);
    color: var(--cx-ink-2); font-size: 14px; font-weight: 600; text-decoration: none;
}
.cx-header__link:hover { background: var(--cx-track); color: var(--cx-ink); }

/* ---------- Gerüst ---------- */
.cx-main { padding: 28px 32px 64px; }

.cx-shell {
    max-width: 1320px; margin: 0 auto;
    display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px;
    align-items: start;
}

.cx-aside { position: sticky; top: calc(var(--cx-header-h) + 28px); }
.cx-summary { display: none; }

/* ---------- Kriterien ---------- */
.cx-panel {
    background: var(--cx-surface);
    border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius-l);
    padding: 22px 22px 24px;
    display: flex; flex-direction: column; gap: 18px;
}

.cx-panel__title { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }

.cx-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.cx-label { font-size: 13px; font-weight: 600; color: var(--cx-ink-2); padding: 0; }

.cx-input {
    width: 100%; height: 44px;
    padding: 0 12px;
    font: inherit; font-size: 16px; color: var(--cx-ink);
    font-variant-numeric: tabular-nums;
    background: var(--cx-surface);
    border: 1px solid var(--cx-field);
    border-radius: var(--cx-radius);
    transition: border-color .12s;
}
.cx-input:hover { border-color: var(--cx-ink-2); }
.cx-input:focus { outline: none; border-color: var(--cx-accent); box-shadow: 0 0 0 3px var(--cx-accent-tint); }
.cx-input.is-invalid, .cx-unit.is-invalid .cx-input { border-color: var(--cx-error); }
.cx-input--upper { text-transform: uppercase; }

.cx-unit { position: relative; }
.cx-unit .cx-input { padding-right: 52px; font-size: 18px; font-weight: 600; }
.cx-unit__suffix {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-size: 14px; color: var(--cx-muted); pointer-events: none;
}

.cx-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-preset {
    font: inherit; font-size: 13px; font-variant-numeric: tabular-nums;
    padding: 3px 10px; min-height: 28px;
    color: var(--cx-ink-2); background: var(--cx-paper);
    border: 1px solid var(--cx-line); border-radius: 999px; cursor: pointer;
}
.cx-preset:hover { border-color: var(--cx-field); }
.cx-preset[aria-pressed="true"] { background: var(--cx-ink); border-color: var(--cx-ink); color: #fff; }

.cx-error { margin: 2px 0 0; font-size: 13px; color: var(--cx-error); }

.cx-location { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cx-location > legend { margin-bottom: 6px; }
.cx-location__grid { display: grid; grid-template-columns: 76px 92px minmax(0, 1fr); gap: 8px; }
.cx-location__grid .cx-label { font-weight: 500; color: var(--cx-muted); }

/* Schalter Uso domestico */
.cx-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; position: relative; }
.cx-switch input { position: absolute; opacity: 0; width: 40px; height: 24px; margin: 0; cursor: pointer; }
.cx-switch__track {
    flex: none; width: 40px; height: 24px; border-radius: 999px;
    background: var(--cx-field); position: relative; transition: background .15s;
}
.cx-switch__track::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
    border-radius: 50%; background: #fff; transition: transform .15s;
}
.cx-switch input:checked + .cx-switch__track { background: var(--cx-ink); }
.cx-switch input:checked + .cx-switch__track::after { transform: translateX(16px); }
.cx-switch input:focus-visible + .cx-switch__track { box-shadow: var(--cx-focus); }

/* Segmentierte Umschalter */
.cx-seg {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    padding: 3px; gap: 3px;
    background: var(--cx-paper); border: 1px solid var(--cx-line); border-radius: var(--cx-radius);
}
.cx-seg__item {
    font: inherit; font-size: 14px; font-weight: 550; color: var(--cx-muted);
    min-height: 36px; padding: 0 10px;
    background: transparent; border: 0; border-radius: var(--cx-radius-s); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    white-space: nowrap;
}
.cx-seg__item:hover { color: var(--cx-ink); background: rgba(8, 32, 73, .05); }
.cx-seg__item[aria-pressed="true"] { background: var(--cx-ink); color: #fff; }
.cx-seg__count {
    font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums;
    min-width: 22px; padding: 1px 7px; border-radius: 999px;
    background: var(--cx-surface); color: var(--cx-ink-2); border: 1px solid var(--cx-line);
}
.cx-seg__item[aria-pressed="true"] .cx-seg__count { background: rgba(255, 255, 255, .16); border-color: transparent; color: #fff; }

.cx-seg--lead .cx-seg__item { min-height: 40px; font-size: 15px; }
.cx-seg--views { display: inline-grid; margin: 0 0 14px; }
.cx-seg--views .cx-seg__item { padding: 0 16px; }

/* Buttons */
.cx-btn {
    font: inherit; font-size: 15px; font-weight: 600;
    min-height: 40px; padding: 0 18px;
    border-radius: var(--cx-radius); cursor: pointer;
    border: 1.5px solid var(--cx-accent);
    white-space: nowrap;
    transition: background .12s, color .12s, border-color .12s;
}
.cx-btn--primary { background: var(--cx-accent); color: #fff; }
.cx-btn--primary:hover:not(:disabled) { background: var(--cx-accent-hover); border-color: var(--cx-accent-hover); }
.cx-btn--outline { background: var(--cx-surface); color: var(--cx-accent); }
.cx-btn--outline:hover:not(:disabled) { background: var(--cx-accent-tint); }
.cx-btn--block { width: 100%; min-height: 48px; font-size: 16px; margin-top: 4px; }
.cx-btn:disabled { opacity: .5; cursor: progress; }

.cx-link {
    font: inherit; font-weight: 600; color: var(--cx-accent);
    background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

/* Fokus überall sichtbar */
.cx-app :is(button, a, summary, [tabindex]:not([tabindex="-1"])):focus-visible { outline: none; box-shadow: var(--cx-focus); }
/* FocusOnNavigate setzt den Fokus programmatisch auf h1 (tabindex=-1): kein Rahmen. */
.cx-app [tabindex="-1"]:focus { outline: none; }

/* ---------- Einstieg (vor der ersten Suche) ---------- */
.cx-intro { padding: 56px 8px 0; max-width: 560px; }
.cx-intro__logo { display: block; margin-bottom: 20px; }
.cx-intro__title { margin: 0 0 12px; font-size: 30px; line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; }
.cx-intro__text { margin: 0; font-size: 16px; color: var(--cx-muted); max-width: 52ch; }

/* ---------- Ergebnisse ---------- */
.cx-results__head {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
    gap: 8px 24px; margin-bottom: 16px;
}
.cx-results__title { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

.cx-status { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.cx-status__item { display: inline-flex; align-items: center; gap: 6px; color: var(--cx-muted); }
.cx-status__name { color: var(--cx-ink-2); font-weight: 600; }
/* Statuspunkt in der Partnerfarbe (--p aus PartnerStyle); nicht erreichbar = leerer Ring. */
.cx-status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--p, var(--cx-rose)); box-shadow: 0 0 0 1.5px var(--p, var(--cx-rose)); }
.cx-status__item.is-unreachable .cx-status__dot { background: transparent; }
.cx-status__item.is-unreachable .cx-status__text { color: var(--cx-warn); }
.cx-status__item.is-loading .cx-status__dot { animation: cx-pulse 1.1s ease-in-out infinite; }

.cx-alert {
    margin-bottom: 16px; padding: 12px 16px;
    border-radius: var(--cx-radius); border: 1px solid #F0C2BF;
    background: #FDF1F0; color: var(--cx-error); font-weight: 550;
}

.cx-board {
    background: var(--cx-surface);
    border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius-l);
    overflow: hidden;
}

.cx-offers { list-style: none; margin: 0; padding: 0; }

.cx-offer {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(170px, 1fr) minmax(0, 1fr) auto;
    grid-template-areas: "id price estimate action";
    gap: 8px 28px; align-items: center;
    padding: 20px 24px;
    border-top: 1px solid var(--cx-line);
}
.cx-offers > .cx-offer:first-child { border-top: 0; }

.cx-offer__id { grid-area: id; min-width: 0; }
.cx-offer__price { grid-area: price; }
.cx-offer__estimate { grid-area: estimate; min-width: 0; }
.cx-offer__action { grid-area: action; justify-self: end; }

.cx-offer__headline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cx-offer__name { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cx-offer__meta { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--cx-muted); }
/* Partner-Badge: 12 % Markenfarbe als Fläche, Punkt in Markenfarbe, Text in AA-Variante (PartnerBrand.cs). */
.cx-partner {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 9px 2px 7px; border-radius: 999px;
    font-size: 12.5px; font-weight: 650; line-height: 1.4;
    color: var(--p-ink, var(--cx-ink-2));
    background: var(--p-tint, var(--cx-paper));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p, var(--cx-line)) 28%, transparent);
    white-space: nowrap;
}
.cx-partner__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--p, var(--cx-muted)); flex: none; }

.cx-tag {
    display: inline-flex; align-items: center;
    font-size: 12px; font-weight: 650; line-height: 1;
    padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.cx-tag--best { background: var(--cx-best-tint); color: #17694A; }
.cx-tag--promo { background: var(--cx-accent-tint); color: #9C1F6A; cursor: help; }
/* Preistyp ("Ibrido"): neutrale Navy-Kontur, konkurriert nicht mit Partnerfarben und Magenta */
.cx-tag--type { background: var(--cx-surface); color: var(--cx-ink-2); box-shadow: inset 0 0 0 1px var(--cx-ink-2); cursor: help; }

/* Preis: typografischer Held */
.cx-price { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.cx-price + .cx-price { margin-top: 8px; }
.cx-price__label { font-size: 12px; font-weight: 600; color: var(--cx-muted); }
.cx-price__rate { font-size: 21px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; white-space: nowrap; }
.cx-price__fee { font-size: 13px; color: var(--cx-muted); white-space: nowrap; }
.cx-price__over { font-size: 13px; color: var(--cx-ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.cx-offer__noprice { font-size: 14px; color: var(--cx-muted); }

/* Stima annua mit relativem Balken */
.cx-offer__estimate { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; }
.cx-estimate__label { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--cx-muted); }
.cx-estimate__value { font-size: 21px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.cx-estimate__delta { font-size: 13px; color: var(--cx-muted); font-variant-numeric: tabular-nums; white-space: nowrap; justify-self: end; }
.cx-bar { grid-column: 1 / -1; order: 3; display: block; height: 6px; border-radius: 999px; background: var(--cx-track); overflow: hidden; margin-top: 6px; }
.cx-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--cx-rose); }
.cx-offer.is-best .cx-bar > span { background: var(--cx-best); }
.cx-offer.is-best .cx-estimate__delta { color: var(--cx-ink-2); }
.cx-offer__estimate.is-muted { display: flex; flex-direction: column; gap: 2px; }
.cx-estimate__note { font-size: 13px; color: var(--cx-muted); }
/* Basis der Stima indicativa: Indexwert + Monat, Quelle im Tooltip; veraltet in Warnfarbe */
.cx-estimate__basis-wrap { grid-column: 1 / -1; order: 4; }
.cx-estimate__basis { font-size: 12.5px; color: var(--cx-muted); font-variant-numeric: tabular-nums; cursor: help; border-bottom: 1px dotted var(--cx-field); }
.cx-estimate__basis.is-stale, .cx-estimate__stale { color: var(--cx-warn); }

/* Offers ohne Vergleichspreis */
.cx-unpriced { border-top: 1px solid var(--cx-line); background: #FAFBFD; }
.cx-board > .cx-unpriced:first-child { border-top: 0; }
.cx-unpriced > summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 24px; font-size: 14px; font-weight: 600; color: var(--cx-ink-2);
}
.cx-unpriced > summary::-webkit-details-marker { display: none; }
.cx-unpriced > summary::before {
    content: ""; width: 8px; height: 8px; flex: none;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(-45deg); transition: transform .15s;
}
.cx-unpriced[open] > summary::before { transform: rotate(45deg); }
.cx-unpriced__hint { margin: -4px 24px 8px 42px; font-size: 13px; color: var(--cx-muted); max-width: 70ch; }
.cx-unpriced .cx-offer { padding-top: 14px; padding-bottom: 14px; background: transparent; }
.cx-unpriced .cx-offers > .cx-offer:first-child { border-top: 1px solid var(--cx-line); }
.cx-unpriced .cx-offer { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id action"; }
.cx-unpriced .cx-offer__id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.cx-unpriced .cx-offer__meta { margin-top: 0; }
.cx-unpriced .cx-offer__name { font-size: 15px; font-weight: 600; }
.cx-unpriced .cx-btn { min-height: 36px; font-size: 14px; }

.cx-empty { padding: 32px 24px; color: var(--cx-muted); }
.cx-empty p { margin: 0 0 8px; }

.cx-footnote { margin: 12px 4px 0; font-size: 13px; color: var(--cx-muted); max-width: 80ch; }

/* Skeleton während des Ladens */
.cx-offer--skeleton { grid-template-columns: 1.25fr 1fr 1fr 96px; grid-template-areas: none; }
.cx-offer--skeleton span { display: block; height: 14px; border-radius: 6px; background: var(--cx-track); animation: cx-pulse 1.4s ease-in-out infinite; }
.cx-offer--skeleton span:first-child { height: 18px; width: 70%; }

@keyframes cx-pulse { 50% { opacity: .45; } }

/* ---------- Impostazioni ---------- */
.cx-settings { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.cx-settings__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cx-card {
    background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-l);
    padding: 22px 24px 24px;
}
.cx-card__title { margin: 0 0 4px; font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }
.cx-card__subtitle { margin: 22px 0 4px; font-size: 16px; font-weight: 650; }
.cx-card__intro { margin: 0 0 16px; color: var(--cx-muted); font-size: 14px; max-width: 70ch; }
.cx-card__muted { margin: 4px 0 0; color: var(--cx-muted); font-size: 13px; max-width: 70ch; }

.cx-alert__detail { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--cx-muted); overflow-wrap: anywhere; }
.cx-alert--soft { background: #FFF6E5; border-color: #F1D7A6; color: var(--cx-warn); margin: 12px 0 0; }

.cx-switches { list-style: none; margin: 0; padding: 0; }
.cx-switches__row {
    display: grid; grid-template-columns: minmax(120px, auto) 1fr auto; align-items: center; gap: 8px 16px;
    padding: 12px 0; border-top: 1px solid var(--cx-line);
}
.cx-switches__row:first-child { border-top: 0; }
.cx-switches__meta { font-size: 13px; color: var(--cx-muted); }

.cx-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cx-index { border: 1px solid var(--cx-line); border-radius: var(--cx-radius); padding: 14px 16px; }
.cx-index__name { margin: 0; font-size: 13px; font-weight: 650; color: var(--cx-muted); letter-spacing: .02em; }
.cx-index__value { margin: 4px 0 0; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cx-index__value.is-empty { color: var(--cx-muted); font-weight: 500; font-size: 15px; }
.cx-index__meta { margin: 4px 0 0; font-size: 13px; color: var(--cx-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cx-index__sync { margin: 10px 0 0; font-size: 13px; color: var(--cx-ink-2); }
.cx-index__sync.is-problem { color: var(--cx-warn); font-weight: 550; }
.cx-tag--warn { background: #FFF6E5; color: var(--cx-warn); }

.cx-pun-form__fields { display: grid; grid-template-columns: 170px 170px auto; gap: 12px; align-items: end; margin-top: 12px; }

.cx-history { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.cx-history th { text-align: left; font-size: 12px; font-weight: 600; color: var(--cx-muted); padding: 6px 8px; border-bottom: 1px solid var(--cx-line); }
.cx-history td { padding: 8px; border-bottom: 1px solid var(--cx-line); }
.cx-num { font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Login ---------- */
.cx-app--bare { display: grid; place-items: center; }
.cx-login { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--cx-muted); }

/* ---------- Mittlere Breiten ---------- */
@media (max-width: 1180px) {
    .cx-offer {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        grid-template-areas: "id id action" "price estimate estimate";
        row-gap: 14px;
    }
    .cx-offer__action { align-self: start; }
}

/* ---------- Mobil ---------- */
@media (max-width: 768px) {
    .cx-header { padding: 0 16px; }
    .cx-main { padding: 16px 16px 48px; }
    .cx-shell { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .cx-aside { position: static; }
    .cx-intro { display: none; }

    .cx-summary {
        display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
        min-height: 52px; padding: 10px 16px;
        font: inherit; text-align: left; color: var(--cx-ink); cursor: pointer;
        background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-l);
    }
    .cx-summary__text { font-weight: 600; font-size: 14px; min-width: 0; }
    .cx-summary__action { flex: none; color: var(--cx-accent); font-weight: 600; font-size: 14px; }
    .cx-aside.is-open .cx-summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
    .cx-summary + .cx-aside__panel { display: none; }
    .cx-aside.is-open .cx-summary + .cx-aside__panel { display: block; }
    .cx-aside.is-open .cx-panel { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
    .cx-aside.is-open .cx-panel__title { display: none; }

    .cx-results__title { font-size: 24px; }
    .cx-seg--views { display: grid; width: 100%; }

    .cx-offer {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "id id" "price estimate" "action action";
        padding: 16px;
    }
    .cx-offer__action { justify-self: stretch; }
    .cx-offer__action .cx-btn { width: 100%; }
    .cx-offer__estimate:not(.is-muted) { grid-template-columns: 1fr; }
    .cx-estimate__delta { justify-self: start; }
    .cx-price__rate { font-size: 19px; white-space: normal; }
    .cx-unpriced > summary { padding: 14px 16px; }
    .cx-unpriced__hint { margin: -4px 16px 8px 34px; }

    .cx-card { padding: 18px 16px 20px; }
    .cx-switches__row { grid-template-columns: 1fr auto; }
    .cx-switches__meta { grid-column: 1 / -1; grid-row: 2; }
    .cx-index-grid { grid-template-columns: minmax(0, 1fr); }
    .cx-pun-form__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cx-pun-form__fields .cx-btn { grid-column: 1 / -1; }
    .cx-history { font-size: 13px; }
    .cx-history th:last-child, .cx-history td:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cx-app *, .cx-app *::before, .cx-app *::after { animation: none !important; transition: none !important; }
}
