:root {
    --ng-ink: #14213d;
    --ng-muted: #5f6b85;
    --ng-line: rgba(20, 33, 61, 0.13);
    --ng-panel: rgba(255, 255, 255, 0.92);
    --ng-soft: #f4f7ff;
    --ng-accent: #6d4aff;
    --ng-accent-dark: #4e2bd6;
    --ng-coral: #ff7a68;
    --ng-gold: #ffca52;
    --ng-success: #147d64;
    --ng-danger: #b4234f;
    --ng-shadow: 0 20px 55px rgba(43, 52, 92, 0.13);
}

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

.name-generator-page .site-logo-mark {
    display: inline-block;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    background: url('/favicon.svg') center / contain no-repeat;
    filter: drop-shadow(0 8px 16px rgba(244, 91, 147, 0.24));
}

.name-generator-page .page-bg {
    background:
        radial-gradient(circle at 10% 12%, rgba(109, 74, 255, 0.16), transparent 30%),
        radial-gradient(circle at 91% 19%, rgba(255, 122, 104, 0.16), transparent 27%),
        radial-gradient(circle at 74% 82%, rgba(255, 202, 82, 0.13), transparent 31%),
        linear-gradient(180deg, #f9f9ff 0%, #f5f7ff 52%, #fffaf6 100%);
}

.ng-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 72px;
}

.ng-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 22px 0 10px;
    color: var(--ng-muted);
    font-size: 0.9rem;
}

.ng-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.ng-breadcrumb a:hover,
.ng-breadcrumb a:focus-visible {
    color: var(--ng-accent-dark);
}

.ng-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    gap: 28px;
    align-items: center;
    padding: 42px;
    margin: 10px 0 28px;
    border: 1px solid rgba(109, 74, 255, 0.16);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,246,255,0.94)),
        var(--ng-panel);
    box-shadow: var(--ng-shadow);
    overflow: hidden;
    position: relative;
}

.ng-hero::after {
    content: "Aa";
    position: absolute;
    right: 5%;
    bottom: -34px;
    font-size: clamp(7rem, 16vw, 13rem);
    line-height: 1;
    font-weight: 900;
    color: rgba(109, 74, 255, 0.055);
    pointer-events: none;
}

.ng-eyebrow,
.ng-kicker {
    margin: 0 0 10px;
    color: var(--ng-accent-dark);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ng-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4.55rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.ng-hero .lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--ng-muted);
    font-size: clamp(1rem, 1.8vw, 1.22rem);
    line-height: 1.72;
}

.ng-hero-note {
    margin: 18px 0 0;
    padding: 13px 16px;
    border-left: 4px solid var(--ng-coral);
    border-radius: 0 12px 12px 0;
    background: rgba(255, 122, 104, 0.08);
    color: #5e3544;
    line-height: 1.55;
}

.ng-hero-facts {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.ng-hero-facts div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--ng-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.ng-hero-facts strong {
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

.ng-hero-facts span {
    color: var(--ng-muted);
    font-size: 0.9rem;
    text-align: right;
}

.ng-mobile-tabs {
    display: none;
}

.ng-workspace {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 22px;
    align-items: start;
}

.ng-setup-panel,
.ng-results-panel,
.ng-favorites-panel,
.ng-content-card,
.ng-error,
.ng-loading {
    border: 1px solid var(--ng-line);
    border-radius: 24px;
    background: var(--ng-panel);
    box-shadow: 0 14px 35px rgba(43, 52, 92, 0.08);
}

.ng-setup-panel {
    position: sticky;
    top: 18px;
    padding: 24px;
}

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

.ng-panel-heading h2,
.ng-panel-heading h3 {
    margin: 0;
    letter-spacing: -0.03em;
}

.ng-panel-heading p {
    margin: 6px 0 0;
    color: var(--ng-muted);
    line-height: 1.55;
}

.ng-form-grid {
    display: grid;
    gap: 15px;
}

.ng-field {
    display: grid;
    gap: 7px;
}

.ng-field label {
    font-size: 0.84rem;
    font-weight: 800;
}

.ng-field small {
    color: var(--ng-muted);
    line-height: 1.4;
}

.ng-field input,
.ng-field select {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid rgba(20, 33, 61, 0.18);
    border-radius: 12px;
    background: #fff;
    color: var(--ng-ink);
    font: inherit;
}

.ng-field input:focus,
.ng-field select:focus,
.ng-button:focus-visible,
.ng-card-actions button:focus-visible,
.ng-favorite-item button:focus-visible {
    outline: 3px solid rgba(109, 74, 255, 0.2);
    outline-offset: 2px;
    border-color: var(--ng-accent);
}

.ng-field input[aria-invalid="true"] {
    border-color: var(--ng-danger);
    box-shadow: 0 0 0 3px rgba(180, 35, 79, 0.11);
}

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

.ng-button,
.ng-card-actions button,
.ng-favorite-item button {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 0 15px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ng-button:hover:not(:disabled),
.ng-card-actions button:hover:not(:disabled),
.ng-favorite-item button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.ng-button:disabled,
.ng-card-actions button:disabled,
.ng-favorite-item button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.ng-button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--ng-accent), var(--ng-accent-dark));
    box-shadow: 0 10px 22px rgba(78, 43, 214, 0.24);
}

.ng-button-secondary {
    color: var(--ng-accent-dark);
    background: rgba(109, 74, 255, 0.1);
}

.ng-button-ghost {
    color: var(--ng-ink);
    background: #eef1f8;
}

.ng-button-danger {
    color: var(--ng-danger);
    background: rgba(180, 35, 79, 0.08);
}

.ng-generate-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.84fr);
    gap: 10px;
    margin-top: 4px;
}

.ng-context {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--ng-line);
}

.ng-artwork {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 38%, #fff 0 35%, transparent 36%),
        linear-gradient(145deg, #eff0ff, #fff0e9);
    overflow: hidden;
}

.ng-artwork img {
    width: 102px;
    height: 102px;
    object-fit: contain;
}

.ng-image-fallback {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--ng-accent);
    color: #fff;
    font-weight: 900;
    font-size: 1.3rem;
}

.ng-context-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.ng-context-title h3 {
    margin: 0;
    font-size: 1.35rem;
}

.ng-context-title span {
    color: var(--ng-muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.ng-context-category {
    margin: 3px 0 8px;
    color: var(--ng-muted);
}

.ng-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ng-type {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--type-color) 18%, white);
    border: 1px solid color-mix(in srgb, var(--type-color) 42%, white);
    color: color-mix(in srgb, var(--type-color) 78%, #111827);
    font-size: 0.75rem;
    font-weight: 850;
}

.ng-context-facts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ng-context-facts div {
    min-width: 0;
    padding: 10px 11px;
    border-radius: 12px;
    background: var(--ng-soft);
}

.ng-context-facts span,
.ng-context-facts strong {
    display: block;
}

.ng-context-facts span {
    color: var(--ng-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.ng-context-facts strong {
    margin-top: 3px;
    font-size: 0.83rem;
    overflow-wrap: anywhere;
}

.ng-results-panel {
    padding: 26px;
    min-width: 0;
}

.ng-results-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.ng-results-toolbar h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.035em;
}

.ng-results-summary {
    margin: 5px 0 0;
    color: var(--ng-muted);
}

.ng-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ng-export-actions .ng-button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.84rem;
}

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

.ng-name-card {
    position: relative;
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--ng-line);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.ng-name-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: transparent;
}

.ng-name-card.is-locked::before {
    background: var(--ng-accent);
}

.ng-name-card.is-favorite {
    background: linear-gradient(150deg, #fff, #fffaf0);
    border-color: rgba(255, 180, 48, 0.46);
}

.ng-name-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.ng-name-card h3 {
    margin: 5px 0 0;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.ng-style-badge {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(109, 74, 255, 0.1);
    color: var(--ng-accent-dark);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ng-slot-number {
    color: #c2c7d7;
    font-weight: 900;
    font-size: 1.12rem;
}

.ng-name-card > p {
    margin: 0;
    color: var(--ng-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

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

.ng-card-actions button {
    min-height: 39px;
    padding: 0 8px;
    border: 1px solid var(--ng-line);
    background: var(--ng-soft);
    color: var(--ng-ink);
    font-size: 0.77rem;
}

.ng-card-actions button[aria-pressed="true"] {
    background: rgba(109, 74, 255, 0.11);
    border-color: rgba(109, 74, 255, 0.25);
    color: var(--ng-accent-dark);
}

.ng-favorites-panel {
    grid-column: 1 / -1;
    margin-top: 22px;
    padding: 24px;
}

.ng-favorite-count {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--ng-gold);
    color: #4b3400;
    font-weight: 900;
}

.ng-favorites-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ng-favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(255, 180, 48, 0.36);
    border-radius: 14px;
    background: #fffaf0;
}

.ng-favorite-item strong,
.ng-favorite-item span {
    display: block;
}

.ng-favorite-item span {
    margin-top: 3px;
    color: var(--ng-muted);
    font-size: 0.75rem;
}

.ng-favorite-item button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 10px;
    background: transparent;
    color: var(--ng-danger);
    border: 1px solid rgba(180, 35, 79, 0.18);
    font-size: 0.75rem;
}

.ng-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--ng-line);
    border-radius: 14px;
    color: var(--ng-muted);
    text-align: center;
}

.ng-status {
    min-height: 24px;
    margin: 14px 0 0;
    color: var(--ng-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.ng-status[data-tone="success"] { color: var(--ng-success); }
.ng-status[data-tone="warning"] { color: #8a5a00; }
.ng-status[data-tone="error"] { color: var(--ng-danger); }

.ng-loading,
.ng-error {
    grid-column: 1 / -1;
    padding: 36px;
    text-align: center;
}

.ng-loading-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    border: 4px solid rgba(109, 74, 255, 0.16);
    border-top-color: var(--ng-accent);
    border-radius: 50%;
    animation: ng-spin 800ms linear infinite;
}

@keyframes ng-spin {
    to { transform: rotate(360deg); }
}

.ng-error h2 {
    margin: 0 0 8px;
}

.ng-error p {
    color: var(--ng-muted);
}

.ng-explainer {
    margin-top: 42px;
}

.ng-section-intro {
    max-width: 780px;
    margin: 0 auto 24px;
    text-align: center;
}

.ng-section-intro h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.045em;
}

.ng-section-intro p {
    margin: 12px 0 0;
    color: var(--ng-muted);
    line-height: 1.7;
}

.ng-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.ng-content-card {
    padding: 24px;
}

.ng-content-card-wide {
    grid-column: 1 / -1;
}

.ng-content-card h2,
.ng-content-card h3 {
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

.ng-content-card h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.ng-content-card h3 { font-size: 1.25rem; }

.ng-content-card p,
.ng-content-card li {
    color: var(--ng-muted);
    line-height: 1.72;
}

.ng-content-card p:last-child {
    margin-bottom: 0;
}

.ng-content-card ul,
.ng-content-card ol {
    padding-left: 20px;
}

.ng-style-guide {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.ng-style-guide div {
    padding: 14px;
    border-radius: 14px;
    background: var(--ng-soft);
}

.ng-style-guide strong,
.ng-style-guide span {
    display: block;
}

.ng-style-guide span {
    margin-top: 4px;
    color: var(--ng-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.ng-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.ng-step {
    padding: 17px;
    border: 1px solid var(--ng-line);
    border-radius: 16px;
    background: #fff;
}

.ng-step span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--ng-accent);
    color: #fff;
    font-weight: 900;
}

.ng-step h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.ng-step p {
    margin: 0;
    font-size: 0.86rem;
}

.ng-faq {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.ng-faq details {
    border: 1px solid var(--ng-line);
    border-radius: 15px;
    background: #fff;
    overflow: hidden;
}

.ng-faq summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-weight: 850;
    cursor: pointer;
}

.ng-faq details p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--ng-muted);
    line-height: 1.65;
}

.ng-related-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ng-related-links a {
    display: block;
    padding: 17px;
    border: 1px solid var(--ng-line);
    border-radius: 15px;
    background: #fff;
    color: var(--ng-ink);
    text-decoration: none;
    font-weight: 850;
}

.ng-related-links a span {
    display: block;
    margin-top: 5px;
    color: var(--ng-muted);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.45;
}

.ng-related-links a:hover,
.ng-related-links a:focus-visible {
    border-color: rgba(109, 74, 255, 0.38);
    box-shadow: 0 10px 24px rgba(78, 43, 214, 0.1);
}

.ng-confirm {
    width: min(430px, calc(100% - 28px));
    padding: 0;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(20, 33, 61, 0.28);
}

.ng-confirm::backdrop {
    background: rgba(20, 33, 61, 0.52);
    backdrop-filter: blur(3px);
}

.ng-confirm-inner {
    padding: 24px;
}

.ng-confirm h2 {
    margin: 0;
}

.ng-confirm p {
    color: var(--ng-muted);
    line-height: 1.6;
}

.ng-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

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

    .ng-hero-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ng-hero-facts div {
        display: grid;
        justify-content: start;
    }

    .ng-hero-facts span {
        text-align: left;
    }

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

    .ng-setup-panel {
        position: static;
    }

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

    .ng-field-pokemon,
    .ng-generate-row,
    .ng-context {
        grid-column: 1 / -1;
    }

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

@media (max-width: 700px) {
    .ng-main {
        width: min(100% - 20px, 1180px);
        padding-bottom: 48px;
    }

    .name-generator-page .site-header-inner {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        overflow: hidden;
    }

    .name-generator-page .site-logo {
        flex: 0 0 auto;
    }

    .name-generator-page .route-pills {
        flex: 1 1 auto;
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .name-generator-page .route-pills a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }

    .ng-breadcrumb {
        padding: 12px 0 6px;
    }

    .ng-hero {
        gap: 18px;
        padding: 22px 18px;
        margin-bottom: 16px;
        border-radius: 22px;
    }

    .ng-hero h1 {
        font-size: clamp(2.05rem, 11vw, 2.8rem);
    }

    .ng-hero .lead {
        margin-top: 14px;
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .ng-hero-note {
        margin-top: 12px;
        padding: 10px 12px;
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .ng-hero-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .ng-hero-facts div {
        display: grid;
        justify-content: center;
        gap: 3px;
        padding: 10px 6px;
        text-align: center;
    }

    .ng-hero-facts strong {
        font-size: 1.05rem;
    }

    .ng-hero-facts span {
        font-size: 0.68rem;
        line-height: 1.25;
        text-align: center;
    }

    .ng-mobile-tabs {
        position: sticky;
        top: 6px;
        z-index: 20;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        margin: 0 0 10px;
        padding: 5px;
        border: 1px solid var(--ng-line);
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 8px 24px rgba(43, 52, 92, 0.12);
        backdrop-filter: blur(12px);
    }

    .ng-mobile-tabs button {
        min-height: 44px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--ng-muted);
        font: inherit;
        font-size: 0.82rem;
        font-weight: 850;
    }

    .ng-mobile-tabs button[aria-selected="true"] {
        color: #fff;
        background: var(--ng-accent);
    }

    .ng-workspace[data-mobile-view="results"] .ng-setup-panel,
    .ng-workspace[data-mobile-view="results"] .ng-favorites-panel,
    .ng-workspace[data-mobile-view="setup"] .ng-results-panel,
    .ng-workspace[data-mobile-view="setup"] .ng-favorites-panel,
    .ng-workspace[data-mobile-view="favorites"] .ng-setup-panel,
    .ng-workspace[data-mobile-view="favorites"] .ng-results-panel {
        display: none;
    }

    .ng-setup-panel,
    .ng-results-panel,
    .ng-favorites-panel,
    .ng-content-card {
        padding: 18px;
        border-radius: 19px;
    }

    .ng-form-grid,
    .ng-results-grid,
    .ng-content-grid,
    .ng-favorites-list,
    .ng-style-guide,
    .ng-steps,
    .ng-related-links {
        grid-template-columns: 1fr;
    }

    .ng-field-pokemon,
    .ng-generate-row,
    .ng-context,
    .ng-content-card-wide {
        grid-column: auto;
    }

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

    .ng-context {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .ng-artwork {
        width: 92px;
        height: 92px;
    }

    .ng-artwork img {
        width: 84px;
        height: 84px;
    }

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

    .ng-results-toolbar {
        align-items: flex-start;
    }

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

    .ng-export-actions .ng-button,
    .ng-card-actions button,
    .ng-favorite-item button {
        min-height: 44px;
    }

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

    .ng-favorite-item {
        align-items: flex-start;
    }

    .ng-confirm-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 410px) {
    .ng-export-actions,
    .ng-card-actions {
        grid-template-columns: 1fr;
    }

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

    .ng-artwork {
        width: 100%;
        height: 130px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ng-button,
    .ng-card-actions button,
    .ng-favorite-item button {
        transition: none;
    }

    .ng-loading-spinner {
        animation: none;
    }
}
