.rom-archive-header {
    margin-bottom: 24px;
    animation: rom-rise var(--rom-duration) var(--rom-ease) both;
}

.rom-archive-title {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.rom-archive-description {
    margin: 0;
    max-width: 70ch;
    font-size: 15px;
    line-height: 1.7;
    color: var(--rom-on-surface-muted);
}

.rom-checker {
    display: block;
}

.rom-checker-title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
}

.rom-checker-form {
    background: var(--rom-surface-variant);
    border-radius: var(--rom-radius-xl);
    padding: 22px;
    margin-bottom: 18px;
    display: grid;
    gap: 16px;
    animation: rom-rise var(--rom-duration) var(--rom-ease) both;
}

.rom-checker-search {
    position: relative;
    display: grid;
    gap: 8px;
}

.rom-checker-label,
.rom-checker-field-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--rom-on-surface-muted);
}

.rom-checker-input,
.rom-checker-select {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 0;
    border-radius: var(--rom-radius-md);
    background: var(--rom-surface);
    color: var(--rom-on-surface);
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: background var(--rom-duration) var(--rom-ease), outline-color var(--rom-duration) var(--rom-ease);
}

.rom-checker-input::placeholder {
    color: var(--rom-on-surface-muted);
}

.rom-checker-input:focus,
.rom-checker-select:focus {
    outline-color: var(--rom-primary);
    background: var(--rom-surface);
}

.rom-checker-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.rom-checker-field {
    display: grid;
    gap: 6px;
}

.rom-checker-select {
    cursor: pointer;
}

.rom-checker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.rom-checker-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--rom-surface);
    border-radius: var(--rom-radius-md);
    padding: 8px;
    max-height: 320px;
    overflow-y: auto;
    animation: rom-rise 180ms var(--rom-ease) both;
}

.rom-suggest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--rom-radius-sm);
    color: inherit;
    text-decoration: none;
    transition: background var(--rom-duration) var(--rom-ease);
}

.rom-suggest-item:hover,
.rom-suggest-item.is-active {
    background: var(--rom-surface-variant);
}

.rom-suggest-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.rom-suggest-codename {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--rom-primary);
}

.rom-suggest-count {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--rom-on-surface-muted);
}

.rom-suggest-loading,
.rom-suggest-empty {
    padding: 12px;
    font-size: 13px;
    color: var(--rom-on-surface-muted);
}

.rom-checker-status {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rom-on-surface-muted);
}

.rom-checker-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    transition: opacity var(--rom-duration) var(--rom-ease);
}

.rom-checker-results[data-layout="list"] {
    grid-template-columns: 1fr;
}

.rom-checker-results[data-layout="list"] .rom-device-card-link {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: stretch;
}

.rom-checker-results[data-layout="list"] .rom-device-card-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 160px;
}

.rom-checker.is-loading .rom-checker-results {
    opacity: 0.7;
    pointer-events: none;
}

.rom-checker-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
}

.rom-checker-page,
.rom-checker-page-wrap a,
.rom-checker-page-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: var(--rom-radius-pill);
    background: var(--rom-surface-variant);
    color: var(--rom-on-surface);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--rom-duration) var(--rom-ease), color var(--rom-duration) var(--rom-ease), transform var(--rom-duration) var(--rom-ease);
}

.rom-checker-page:hover,
.rom-checker-page-wrap a:hover {
    background: var(--rom-primary-container);
    color: var(--rom-primary);
    transform: translateY(-1px);
}

.rom-checker-page.is-active,
.rom-checker-page-wrap .current {
    background: var(--rom-primary);
    color: var(--rom-on-primary);
}

.rom-checker-search-only {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
    background: var(--rom-surface-variant);
    border-radius: var(--rom-radius-xl);
    padding: 20px;
}

.rom-checker-search-only .rom-checker-label {
    grid-column: 1 / -1;
}

.rom-checker-search-only .rom-checker-suggest {
    top: calc(100% + 8px);
}

.rom-skeleton-card {
    background: var(--rom-surface-variant);
    border-radius: var(--rom-radius-lg);
    overflow: hidden;
    min-height: 280px;
}

.rom-skeleton-media,
.rom-skeleton-line {
    background: linear-gradient(90deg, var(--rom-surface-sunken) 25%, var(--rom-surface) 50%, var(--rom-surface-sunken) 75%);
    background-size: 200% 100%;
    animation: rom-shimmer 1.4s linear infinite;
}

.rom-skeleton-media {
    aspect-ratio: 4 / 3;
}

.rom-skeleton-body {
    padding: 18px 20px;
    display: grid;
    gap: 10px;
}

.rom-skeleton-line {
    height: 14px;
    border-radius: var(--rom-radius-pill);
}

.rom-skeleton-line.is-short {
    width: 60%;
}

.rom-skeleton-line.is-tiny {
    width: 40%;
}

@media (max-width: 782px) {
    .rom-checker-form {
        padding: 18px;
        border-radius: var(--rom-radius-lg);
    }

    .rom-checker-filters {
        grid-template-columns: 1fr;
    }

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

    .rom-checker-results[data-layout="list"] .rom-device-card-link {
        grid-template-columns: 1fr;
    }

    .rom-checker-search-only {
        grid-template-columns: 1fr;
    }
}