:root {
    --ng-ink: #172033;
    --ng-muted: #596579;
    --ng-border: #dbe2ec;
    --ng-soft: #f4f7fb;
    --ng-panel: #ffffff;
    --ng-accent: #ef4444;
    --ng-accent-dark: #c92f2f;
    --ng-focus: #2563eb;
    --ng-success: #16845b;
    --ng-warning: #a16207;
    --ng-danger: #c24145;
    --ng-shadow: 0 22px 60px rgba(20, 31, 52, 0.12);
}

.nuzlocke-generator-page {
    color: var(--ng-ink);
}

body.nuzlocke-generator-page main.container {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
    padding: 42px 0 76px;
}

.ng-hero {
    display: grid;
    gap: 24px;
}

.ng-breadcrumb {
    margin-bottom: -6px;
}

.ng-heading {
    max-width: 900px;
}

body.nuzlocke-generator-page .ng-heading h1 {
    max-width: 880px;
    margin: 0;
    color: #111827;
    font-size: clamp(2.55rem, 5.4vw, 4.3rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.ng-heading .lead {
    max-width: 860px;
    margin: 18px 0 0;
    color: var(--ng-muted);
    font-size: clamp(1rem, 1.9vw, 1.16rem);
    line-height: 1.68;
}

.ng-app {
    display: grid;
    grid-template-columns: minmax(350px, 0.88fr) minmax(480px, 1.12fr);
    overflow: hidden;
    border: 1px solid var(--ng-border);
    border-radius: 30px;
    background: var(--ng-panel);
    box-shadow: var(--ng-shadow);
}

.ng-controls {
    padding: 28px;
    border-right: 1px solid var(--ng-border);
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.ng-control-block + .ng-field-grid,
.ng-field-grid + .ng-primary-row,
.ng-inline-status + .ng-options {
    margin-top: 22px;
}

.ng-control-label,
.ng-field > label {
    display: block;
    margin-bottom: 9px;
    color: #273247;
    font-size: 0.78rem;
    font-weight: 820;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.ng-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.ng-mode-button {
    display: grid;
    gap: 4px;
    min-height: 68px;
    padding: 11px 13px;
    border: 1px solid #ccd5e2;
    border-radius: 15px;
    background: #ffffff;
    color: #2b364b;
    font: inherit;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.ng-mode-button strong {
    font-size: 0.94rem;
    font-weight: 820;
}

.ng-mode-button span {
    color: #69758a;
    font-size: 0.76rem;
    font-weight: 600;
}

.ng-mode-button:hover {
    border-color: #9ca9ba;
    transform: translateY(-1px);
}

.ng-mode-button[aria-pressed="true"] {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

.ng-mode-button[aria-pressed="true"] span {
    color: #cbd5e1;
}

.ng-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 12px;
}

.ng-field[hidden] {
    display: none;
}

.ng-field select,
.ng-field input,
.ng-status-field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: var(--ng-ink);
    font: inherit;
    font-size: 0.91rem;
}

.ng-field select,
.ng-field input {
    height: 46px;
}

.ng-seed-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
}

.ng-secondary-button,
.ng-reset-button,
.ng-link-button,
.ng-card-button,
.ng-icon-button,
.ng-history-clear,
.ng-history-item {
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #273247;
    font: inherit;
    font-weight: 760;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.ng-secondary-button {
    white-space: nowrap;
}

.ng-secondary-button:hover,
.ng-reset-button:hover,
.ng-link-button:hover,
.ng-card-button:hover,
.ng-icon-button:hover,
.ng-history-clear:hover,
.ng-history-item:hover {
    border-color: #929fb1;
    background: #f8fafc;
    transform: translateY(-1px);
}

.ng-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.ng-toggle {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 70px;
    padding: 11px;
    border: 1px solid #d9e0ea;
    border-radius: 13px;
    background: #ffffff;
    cursor: pointer;
}

.ng-toggle input {
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    accent-color: #111827;
    flex: 0 0 auto;
}

.ng-toggle span {
    display: grid;
    gap: 3px;
}

.ng-toggle strong {
    color: #273247;
    font-size: 0.86rem;
}

.ng-toggle small {
    color: #6b778a;
    font-size: 0.72rem;
    line-height: 1.35;
}

.ng-primary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.ng-generate-button {
    min-height: 52px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    background: #111827;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.2);
    color: #ffffff;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 820;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ng-generate-button:hover {
    background: #252f42;
    box-shadow: 0 15px 32px rgba(17, 24, 39, 0.25);
    transform: translateY(-1px);
}

.ng-generate-button:disabled {
    opacity: 0.62;
    cursor: progress;
    transform: none;
}

.ng-reset-button {
    min-height: 52px;
}

.ng-inline-status {
    min-height: 22px;
    margin: 10px 0 0;
    color: #536075;
    font-size: 0.82rem;
    font-weight: 650;
}

.ng-source-note {
    margin: 13px 0 0;
    padding-top: 13px;
    border-top: 1px solid #e3e8ef;
    color: #707c8e;
    font-size: 0.75rem;
    line-height: 1.5;
}

.ng-output {
    min-width: 0;
    padding: 28px;
    background: #ffffff;
}

.ng-output-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.ng-output-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--ng-accent-dark);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ng-output-header h2,
.ng-history h2 {
    margin: 0;
    color: #182135;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.ng-summary {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 5px 12px;
    color: #667286;
    font-size: 0.72rem;
    text-align: right;
}

.ng-summary strong {
    color: #172033;
}

.ng-progress {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #dce4ee;
    border-radius: 13px;
    background: #f7f9fc;
}

.ng-progress-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.ng-progress-bar span {
    display: block;
    width: 2%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ef4444, #f97316);
    transition: width 180ms ease;
}

.ng-progress p {
    margin: 7px 0 0;
    color: #5e6a7d;
    font-size: 0.78rem;
}

.ng-fallback-notice {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #f0c77b;
    border-radius: 13px;
    background: #fff8e8;
    color: #7a4b04;
    font-size: 0.82rem;
    line-height: 1.5;
}

.ng-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    min-width: 0;
}

.ng-results:has(.ng-encounter-card:only-child),
.ng-results:has(.ng-empty-state:only-child) {
    grid-template-columns: 1fr;
}

.ng-empty-state {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 310px;
    padding: 28px;
    border: 1px dashed #c9d3e0;
    border-radius: 22px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.ng-empty-art {
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    flex: 0 0 auto;
    border: 10px solid #ffffff;
    border-radius: 50%;
    background: #111827;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.18);
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.ng-empty-state h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 1.35rem;
}

.ng-empty-state p {
    max-width: 500px;
    margin: 0;
    color: #637084;
    line-height: 1.65;
}

.ng-encounter-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce3ed;
    border-radius: 19px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(24, 33, 53, 0.07);
}

.ng-encounter-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #94a3b8;
}

.ng-encounter-card.status-caught::before {
    background: var(--ng-success);
}

.ng-encounter-card.status-missed::before {
    background: var(--ng-warning);
}

.ng-encounter-card.status-fainted::before {
    background: var(--ng-danger);
}

.ng-encounter-card.is-locked {
    border-color: #8fa0b7;
    box-shadow: 0 10px 28px rgba(24, 33, 53, 0.11);
}

.ng-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;
    padding: 15px 15px 11px 18px;
    border-bottom: 1px solid #e8edf3;
}

.ng-route-label {
    display: block;
    margin-bottom: 2px;
    color: #768296;
    font-size: 0.64rem;
    font-weight: 820;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ng-card-top h3 {
    margin: 0;
    color: #172033;
    font-size: 1rem;
    letter-spacing: -0.015em;
}

.ng-source-badge {
    max-width: 132px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #e9f7f0;
    color: #126144;
    font-size: 0.58rem;
    font-weight: 820;
    line-height: 1.25;
    text-align: center;
}

.ng-source-badge.is-fallback {
    background: #fff2d8;
    color: #8a5300;
}

.ng-pokemon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px 12px 18px;
}

.ng-pokemon-art {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 60%, #ffffff 0 24%, #eef3f8 25% 100%);
}

.ng-pokemon-art img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.ng-image-fallback {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    background: #dbe3ed;
    color: #596579;
    font-size: 1.5rem;
    font-weight: 900;
}

.ng-image-fallback[hidden] {
    display: none !important;
}

.ng-pokemon-copy {
    min-width: 0;
}

.ng-dex-number {
    color: #7a8699;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 700;
}

.ng-pokemon-copy h4 {
    overflow: hidden;
    margin: 2px 0 8px;
    color: #162033;
    font-size: 1.28rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ng-type-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ng-type-badge {
    padding: 3px 7px;
    border: 1px solid color-mix(in srgb, var(--ng-type-color) 55%, #ffffff);
    border-radius: 999px;
    background: color-mix(in srgb, var(--ng-type-color) 18%, #ffffff);
    color: #172033;
    font-size: 0.6rem;
    font-weight: 850;
    text-transform: uppercase;
}

.ng-type-unknown {
    --ng-type-color: #94a3b8;
}

.ng-result-facts {
    display: grid;
    margin: 0;
    padding: 0 15px 13px 18px;
}

.ng-result-facts div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 0;
    border-top: 1px solid #edf1f5;
}

.ng-result-facts dt {
    color: #7a8698;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ng-result-facts dd {
    min-width: 0;
    margin: 0;
    color: #364156;
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.4;
}

.ng-card-actions {
    display: grid;
    grid-template-columns: auto auto minmax(112px, 1fr);
    gap: 6px;
    padding: 11px 13px 13px 17px;
    border-top: 1px solid #e8edf3;
    background: #f8fafc;
}

.ng-icon-button {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.7rem;
}

.ng-icon-button[disabled] {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
}

.ng-status-field {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ng-status-field span {
    color: #758195;
    font-size: 0.58rem;
    font-weight: 820;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ng-status-field select {
    min-height: 30px;
    padding: 5px 7px;
    border-radius: 8px;
    font-size: 0.7rem;
}

.ng-error-card {
    padding-bottom: 16px;
    background: #fffafa;
}

.ng-error-card p {
    margin: 16px 18px;
    color: #7f3135;
    font-size: 0.82rem;
    line-height: 1.55;
}

.ng-error-card .ng-card-button {
    margin-left: 18px;
}

.ng-output-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.ng-output-actions #resultActionsHost {
    flex: 1 1 auto;
}

.ng-output-actions .result-actions {
    margin: 0;
}

.ng-link-button {
    min-height: 44px;
}

.ng-history {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e1e7ef;
}

.ng-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ng-history h2 {
    font-size: 1rem;
}

.ng-history-clear {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.72rem;
}

.ng-history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ng-history-item {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.72rem;
    text-align: left;
}

.ng-history-empty {
    margin: 0;
    color: #7a8698;
    font-size: 0.78rem;
}

.ng-section {
    max-width: 980px;
    margin: 72px auto 0;
}

.ng-section h2 {
    max-width: 780px;
    margin: 0;
    color: #162033;
    font-size: clamp(1.85rem, 3.6vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.ng-section > p,
.ng-section-split > div > p {
    margin: 18px 0 0;
    color: #5c687c;
    font-size: 1rem;
    line-height: 1.8;
}

.ng-info-grid,
.ng-limit-grid,
.ng-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.ng-info-grid article,
.ng-limit-grid article {
    padding: 22px;
    border: 1px solid #dce3ec;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.06);
}

.ng-info-grid h3,
.ng-limit-grid h3,
.ng-rule-card h3 {
    margin: 0 0 9px;
    color: #172033;
    font-size: 1.02rem;
}

.ng-info-grid p,
.ng-limit-grid p {
    margin: 0;
    color: #626f82;
    font-size: 0.88rem;
    line-height: 1.65;
}

.ng-section-split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.ng-rule-card {
    padding: 24px;
    border: 1px solid #2b3547;
    border-radius: 20px;
    background: #172033;
    box-shadow: 0 18px 40px rgba(23, 32, 51, 0.18);
    color: #ffffff;
}

.ng-rule-card h3 {
    color: #ffffff;
}

.ng-rule-card ol {
    display: grid;
    gap: 11px;
    margin: 16px 0 0;
    padding-left: 20px;
    color: #d5ddea;
    font-size: 0.86rem;
    line-height: 1.55;
}

.ng-limit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ng-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ng-related-grid a {
    display: grid;
    gap: 6px;
    padding: 20px;
    border: 1px solid #dce3ec;
    border-radius: 17px;
    background: #ffffff;
    color: #172033;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ng-related-grid a:hover {
    border-color: #9daabd;
    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
    transform: translateY(-2px);
}

.ng-related-grid strong {
    font-size: 1rem;
}

.ng-related-grid span {
    color: #637084;
    font-size: 0.86rem;
    line-height: 1.55;
}

.ng-faq details {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #dce3ec;
    border-radius: 15px;
    background: #ffffff;
}

.ng-faq summary {
    padding: 17px 19px;
    color: #172033;
    font-weight: 800;
    cursor: pointer;
}

.ng-faq details p {
    margin: 0;
    padding: 0 19px 18px;
    color: #627084;
    line-height: 1.7;
}

.ng-mode-button:focus-visible,
.ng-field select:focus-visible,
.ng-field input:focus-visible,
.ng-toggle input:focus-visible,
.ng-secondary-button:focus-visible,
.ng-reset-button:focus-visible,
.ng-generate-button:focus-visible,
.ng-link-button:focus-visible,
.ng-card-button:focus-visible,
.ng-icon-button:focus-visible,
.ng-status-field select:focus-visible,
.ng-history-clear:focus-visible,
.ng-history-item:focus-visible,
.ng-related-grid a:focus-visible,
.ng-faq summary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ng-focus) 55%, transparent);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .ng-app {
        grid-template-columns: 1fr;
    }

    .ng-controls {
        border-right: 0;
        border-bottom: 1px solid var(--ng-border);
    }

    .ng-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body.nuzlocke-generator-page main.container {
        width: min(100% - 24px, 1180px);
        padding-top: 24px;
    }

    body.nuzlocke-generator-page .ng-heading h1 {
        font-size: clamp(2.25rem, 11vw, 3.1rem);
    }

    .ng-heading .lead {
        margin-top: 13px;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .ng-app {
        border-radius: 22px;
    }

    .ng-controls,
    .ng-output {
        padding: 20px;
    }

    .ng-field-grid,
    .ng-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ng-seed-row {
        grid-template-columns: 1fr;
    }

    .ng-secondary-button {
        min-height: 38px;
        padding: 7px 10px;
    }

    .ng-toggle {
        min-height: 66px;
        padding: 9px;
    }

    .ng-toggle small {
        display: none;
    }

    .ng-results {
        grid-template-columns: 1fr;
    }

    .ng-section,
    .ng-section-split {
        margin-top: 56px;
    }

    .ng-section-split {
        grid-template-columns: 1fr;
    }

    .ng-info-grid,
    .ng-limit-grid,
    .ng-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .ng-breadcrumb {
        font-size: 0.72rem;
    }

    body.nuzlocke-generator-page main.container {
        width: min(100% - 20px, 1180px);
        padding-top: 18px;
    }

    body.nuzlocke-generator-page .ng-heading h1 {
        font-size: 2.1rem;
        line-height: 1.02;
        letter-spacing: -0.045em;
    }

    .ng-heading .lead {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .ng-hero {
        gap: 16px;
    }

    .ng-controls,
    .ng-output {
        padding: 16px;
    }

    .ng-mode-button {
        min-height: 60px;
        padding: 9px;
    }

    .ng-mode-button span {
        display: none;
    }

    .ng-control-block + .ng-field-grid,
    .ng-field-grid + .ng-primary-row,
    .ng-inline-status + .ng-options {
        margin-top: 14px;
    }

    .ng-field-grid {
        gap: 10px 8px;
    }

    .ng-field > label,
    .ng-control-label {
        margin-bottom: 5px;
        font-size: 0.66rem;
    }

    .ng-field select,
    .ng-field input {
        height: 44px;
        min-height: 44px;
        padding: 8px;
        font-size: 0.78rem;
    }

    .ng-seed-row {
        gap: 5px;
    }

    .ng-secondary-button {
        min-height: 32px;
        font-size: 0.7rem;
    }

    .ng-toggle {
        min-height: 54px;
        align-items: center;
        padding: 8px;
    }

    .ng-toggle strong {
        font-size: 0.73rem;
    }

    .ng-primary-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ng-generate-button,
    .ng-reset-button {
        min-height: 48px;
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .ng-source-note {
        display: none;
    }

    .ng-inline-status {
        min-height: 18px;
        margin-top: 6px;
        font-size: 0.7rem;
    }

    .ng-output-header {
        display: grid;
    }

    .ng-summary {
        grid-template-columns: repeat(4, auto);
        gap: 5px;
        text-align: left;
    }

    .ng-summary span {
        display: grid;
    }

    .ng-empty-state {
        display: grid;
        min-height: 0;
        padding: 20px;
    }

    .ng-empty-art {
        width: 80px;
        height: 80px;
        border-width: 7px;
        font-size: 1.7rem;
    }

    .ng-card-top {
        display: grid;
    }

    .ng-source-badge {
        max-width: none;
        justify-self: start;
    }

    .ng-pokemon-row {
        padding-right: 12px;
    }

    .ng-pokemon-art {
        width: 82px;
        height: 82px;
    }

    .ng-pokemon-art img {
        width: 78px;
        height: 78px;
    }

    .ng-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ng-status-field {
        grid-column: 1 / -1;
    }

    .ng-output-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ng-output-actions #resultActionsHost {
        grid-column: 1 / -1;
    }

    .ng-output-actions .result-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ng-output-actions .ra-btn,
    .ng-link-button {
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 0.7rem;
    }

    .ng-section h2 {
        font-size: 1.8rem;
    }

    .ng-section > p,
    .ng-section-split > div > p {
        font-size: 0.94rem;
        line-height: 1.72;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ng-mode-button,
    .ng-secondary-button,
    .ng-reset-button,
    .ng-generate-button,
    .ng-link-button,
    .ng-card-button,
    .ng-icon-button,
    .ng-history-clear,
    .ng-history-item,
    .ng-related-grid a,
    .ng-progress-bar span {
        transition: none;
    }
}
