:root {
    --ink: #0A192F;
    --muted: #64748B;
    --line: #E2E8F0;
    --soft: #F8FAFC;
    --brand: #1B365D;
    --brand-dark: #0A192F;
    --accent: #3B82F6;
    --gold: #93C5FD;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Oswald, Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 20;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--white);
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.site-topbar {
    background: #0A192F;
    color: rgba(255, 255, 255, .8);
    font-size: .82rem;
}

.site-topbar__inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.site-brand strong,
.site-brand small {
    display: block;
}

.site-brand strong {
    font-family: Oswald, sans-serif;
    font-size: 1.1rem;
}

.site-brand small {
    color: var(--muted);
    font-size: .82rem;
}

.site-nav {
    display: flex;
    align-items: center;
    color: #38506a;
    font-weight: 600;
    font-size: .94rem;
}

.site-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-nav-list > li {
    position: relative;
}

.site-nav-list > li > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 8px;
    padding: 0 12px;
    color: #38506a;
    white-space: nowrap;
}

.site-nav-list > li > a:hover,
.site-nav-list > li:hover > a {
    color: var(--brand);
    background: #eff7fb;
}

.nav-chevron {
    color: var(--brand);
    font-size: .72rem;
}

.site-nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(16, 32, 51, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .18s ease;
}

.has-dropdown:hover .site-nav-dropdown,
.has-dropdown:focus-within .site-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav-dropdown a {
    display: block;
    border-radius: 6px;
    padding: 10px 12px;
    color: #38506a;
}

.site-nav-dropdown a:hover {
    background: #eff7fb;
    color: var(--brand);
}

.site-nav-list .nav-member > a {
    margin-left: 6px;
    background: linear-gradient(135deg, #3B82F6, #1B365D);
    color: #fff;
    box-shadow: 0 10px 24px rgba(31, 109, 150, .22);
}

.site-nav-list .nav-member > a:hover {
    color: #fff;
    background: linear-gradient(135deg, #2563EB, #0A192F);
}

.hero,
.page-hero,
.detail-hero {
    background:
        linear-gradient(110deg, rgba(10, 25, 47, .96), rgba(27, 54, 93, .9)),
        url("../images/hero-bg.jpg") center/cover;
    color: var(--white);
}

.hero {
    padding: 96px 0 72px;
}

.hero__grid,
.detail-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: center;
    gap: 56px;
}

.eyebrow {
    display: inline-flex;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 14px;
}

h1,
h2,
h3 {
    font-family: Oswald, sans-serif;
    margin: 0;
    letter-spacing: 0;
}

.hero h1,
.detail-hero h1,
.page-hero h1 {
    max-width: 760px;
    font-size: clamp(2.4rem, 5vw, 4.75rem);
    line-height: 1.05;
}

.hero p,
.detail-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, .84);
    font-size: 1.08rem;
}

.hero-search,
.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 28px;
}

.hero-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

input,
select,
button {
    font: inherit;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 16px;
}

.hero-search button,
.filter-bar button,
.btn {
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
}

.hero-search button,
.filter-bar button,
.btn--primary {
    background: linear-gradient(135deg, #3B82F6, #1B365D);
    color: var(--white);
}

.btn--quiet {
    background: rgba(255, 255, 255, .14);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .28);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hero-visual,
.status-panel {
    min-height: 320px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .16);
}

.hero-visual img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.hero-visual strong,
.status-panel strong {
    display: block;
    font-family: Oswald, sans-serif;
    font-size: 3rem;
}

.stats-band {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 24px 20px;
    border-right: 1px solid var(--line);
}

.stat-item:last-child {
    border-right: 0;
}

.stat-item strong {
    display: block;
    color: var(--brand);
    font-family: Oswald, sans-serif;
    font-size: 2rem;
}

.stat-item span {
    color: var(--muted);
}

.section {
    padding: 76px 0;
}

.section--soft {
    background: var(--soft);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.section-heading span {
    color: var(--brand);
    font-weight: 700;
}

.section-heading h2,
.feature-panel h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.section-heading p,
.feature-panel p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-heading a {
    color: var(--brand);
    font-weight: 700;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.collection-card,
.document-item,
.detail-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 14px 36px rgba(16, 32, 51, .07);
}

.collection-card {
    min-height: 220px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.collection-card__count {
    color: var(--brand);
    font-weight: 700;
}

.collection-card h3 {
    margin-top: 22px;
}

.collection-card p {
    color: var(--muted);
    flex: 1;
}

.feature-panel {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 34px;
    align-items: start;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.quick-links a {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 18px;
}

.quick-links strong,
.quick-links small {
    display: block;
}

.quick-links small {
    color: var(--muted);
}

.document-list {
    display: grid;
    gap: 14px;
}

.document-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
}

.document-item__marker {
    min-height: 72px;
    border-radius: 8px;
    background: #e9f5f5;
    color: var(--brand-dark);
    display: grid;
    place-items: center;
    font-family: Oswald, sans-serif;
    font-weight: 700;
}

.document-item__body span {
    color: var(--brand);
    font-weight: 700;
    font-size: .9rem;
}

.document-item__body h3 {
    margin-top: 4px;
    font-size: 1.1rem;
}

.document-item__body p {
    margin: 8px 0 0;
    color: var(--muted);
}

.document-item__action {
    color: var(--brand);
    font-weight: 700;
}

.page-hero,
.detail-hero {
    padding: 74px 0 48px;
}

.filter-bar {
    grid-template-columns: 1.4fr repeat(3, minmax(150px, .5fr)) auto;
}

.result-meta {
    margin-bottom: 18px;
    color: var(--muted);
}

.result-meta strong {
    color: var(--brand);
}

.pagination-wrap {
    margin-top: 24px;
}

.pagination-wrap nav > div:first-child {
    display: none;
}

.pagination-wrap nav span,
.pagination-wrap nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    margin-right: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 10px;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, .86);
    font-weight: 700;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.detail-card {
    padding: 24px;
}

.detail-hero--compact {
    padding: 58px 0 42px;
}

.detail-hero--compact h1 {
    max-width: 980px;
    font-size: clamp(1.45rem, 2.4vw, 2.35rem);
    line-height: 1.24;
}

.document-detail-section {
    background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 52%, #F7FBF8 100%);
}

.legacy-detail {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.legacy-detail__summary {
    position: sticky;
    top: 126px;
    display: grid;
    gap: 14px;
}

.detail-search-box {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(16, 32, 51, .07);
}

.detail-search-box label {
    color: #123152;
    font-weight: 700;
}

.detail-search-box div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.detail-search-box input {
    min-width: 0;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--ink);
}

.detail-search-box button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    background: #1D4ED8;
    color: #fff;
    font-weight: 700;
}

.legacy-detail__stat {
    border-radius: 8px;
    padding: 20px;
    background: linear-gradient(135deg, #1D4ED8, #0F766E);
    color: #fff;
    box-shadow: 0 16px 38px rgba(16, 32, 51, .12);
}

.legacy-detail__stat--download {
    background: linear-gradient(135deg, #B45309, #F59E0B);
}

.legacy-detail__stat span,
.legacy-detail__stat strong {
    display: block;
}

.legacy-detail__stat span {
    color: rgba(255, 255, 255, .82);
}

.legacy-detail__stat strong {
    margin-top: 8px;
    font-family: Oswald, sans-serif;
    font-size: 2.5rem;
    line-height: 1;
}

.legacy-detail__content {
    display: grid;
    gap: 18px;
}

.legacy-detail__block {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(16, 32, 51, .07);
}

.legacy-detail__block h2 {
    padding: 18px 22px;
    background: linear-gradient(135deg, #EFF6FF, #ECFDF5);
    border-bottom: 1px solid var(--line);
    color: #123152;
    font-size: 1.2rem;
    line-height: 1.35;
}

.legacy-detail__block h2:nth-child(1) {
    overflow-wrap: anywhere;
}

.document-preview-card {
    background: #F1F5F9;
}

.document-preview-toolbar {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: #303030;
    color: #fff;
}

.document-preview-toolbar span {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .88);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-preview-toolbar div {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.document-preview-toolbar a {
    flex: 0 0 auto;
    border-radius: 8px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-weight: 700;
}

.document-preview-frame {
    display: block;
    width: 100%;
    height: min(78vh, 820px);
    min-height: 560px;
    border: 0;
    background: #fff;
}

.document-preview-empty {
    padding: 22px;
    color: var(--muted);
}

.legacy-detail-list {
    margin: 0;
}

.legacy-detail-list > div {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    border-bottom: 1px solid var(--line);
}

.legacy-detail-list > div:last-child {
    border-bottom: 0;
}

.legacy-detail-list dt,
.legacy-detail-list dd {
    margin: 0;
    padding: 15px 18px;
}

.legacy-detail-list dt {
    background: #F8FAFC;
    color: #475569;
    font-weight: 700;
}

.legacy-detail-list dd {
    color: #172033;
}

.legacy-attachment-list,
.legacy-status-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.legacy-status-list {
    padding-left: 18px;
}

.legacy-attachment-list a {
    color: #1D4ED8;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legacy-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.legacy-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.legacy-detail-table th,
.legacy-detail-table td {
    border-bottom: 1px solid var(--line);
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
}

.legacy-detail-table th {
    background: #F8FAFC;
    color: #475569;
    font-weight: 700;
}

.legacy-detail-table tr:last-child td {
    border-bottom: 0;
}

.meta-list {
    display: grid;
    gap: 14px;
    margin: 20px 0 0;
}

.meta-list div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.meta-list dt {
    color: var(--muted);
    font-weight: 700;
}

.meta-list dd {
    margin: 0;
}

.attachment-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.attachment-list a,
.attachment-empty,
.empty-state {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: var(--soft);
}

.static-page {
    max-width: 840px;
}

.static-page h2 {
    margin-bottom: 12px;
}

.static-page p {
    color: var(--muted);
    font-size: 1.05rem;
}

.static-page__content {
    color: #34465a;
    font-size: 1.08rem;
    line-height: 1.85;
    white-space: normal;
}

.attachment-list span {
    display: block;
    color: var(--muted);
    font-size: .9rem;
}

.modern-footer {
    padding: 72px 0 0;
    background: #071b2d;
    color: rgba(255, 255, 255, .66);
}

.modern-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr .75fr .85fr 1fr;
    gap: 44px;
    padding-bottom: 48px;
}

.modern-footer__eyebrow {
    color: #64cce7;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.modern-footer h2,
.modern-footer h3 {
    color: #fff;
}

.modern-footer h2 {
    margin: 10px 0 12px;
    font-size: 1.35rem;
}

.modern-footer h3 {
    margin: 0 0 16px;
    font-size: 1rem;
}

.modern-footer p {
    max-width: 390px;
    color: rgba(255, 255, 255, .58);
}

.modern-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.modern-footer li {
    margin-bottom: 10px;
}

.modern-footer a {
    color: rgba(255, 255, 255, .66);
}

.modern-footer a:hover {
    color: #fff;
}

.modern-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.modern-footer__socials a,
.footer-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.modern-footer__socials a:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 197, 253, .48);
    background: rgba(147, 197, 253, .16);
}

.modern-footer__socials svg,
.footer-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.modern-footer__socials svg[fill="none"],
.footer-icon svg[fill="none"] {
    fill: none;
}

.modern-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    color: #64cce7;
    border-color: rgba(100, 204, 231, .2);
    background: rgba(100, 204, 231, .1);
}

.footer-icon svg {
    width: 15px;
    height: 15px;
}

.modern-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding: 22px 0;
    font-size: .82rem;
}

@media (max-width: 900px) {
    .site-header__inner,
    .site-topbar__inner,
    .section-heading,
    .modern-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .site-nav-list {
        align-items: flex-start;
    }

    .site-nav-dropdown {
        position: static;
        display: none;
        min-width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .has-dropdown:hover .site-nav-dropdown,
    .has-dropdown:focus-within .site-nav-dropdown {
        display: grid;
    }

    .hero__grid,
    .feature-panel,
    .detail-hero__grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .collection-grid,
    .stats-grid,
    .quick-links,
    .modern-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }
}

/* Final override: compact status filters and classic legal color palette. */
.legacy-filter {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    padding: 18px;
}

.legacy-filter__item {
    margin-bottom: 16px;
}

.legacy-filter__item h2 {
    margin-bottom: 8px;
    color: #1B365D;
    font-size: .92rem;
}

.legacy-filter input,
.legacy-filter select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
    color: #0A192F;
    font-size: .92rem;
}

.legacy-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    color: #334155;
}

.legacy-checks label {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    padding: 6px 8px;
    font-size: .86rem;
    line-height: 1.2;
}

.legacy-checks input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-height: 14px;
    accent-color: #3B82F6;
}

.legacy-filter__actions button {
    min-height: 40px;
    border-radius: 8px;
    background: #1B365D;
}

.legacy-filter__actions a {
    color: #1B365D;
}

@keyframes floatPanel {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(-8px) rotateX(2deg); }
}

.hero-visual {
    animation: floatPanel 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.collection-card,
.document-item,
.news-card,
.admin-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.collection-card:hover,
.document-item:hover,
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(16, 32, 51, .12);
}

.legacy-search-head {
    background: linear-gradient(135deg, #F8FAFC, #E2E8F0);
    border-bottom: 1px solid #E2E8F0;
}

.legacy-search-head__inner {
    min-height: 104px;
}

.legacy-result-item {
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(16, 32, 51, .06);
}

.pagination-clean {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pagination-clean a,
.pagination-clean span {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #304761;
    font-size: .92rem;
    line-height: 1;
}

.pagination-clean .is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.admin-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: #eef4f8;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(180deg, #0A192F, #1B365D);
    color: #fff;
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.admin-sidebar__brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar nav a,
.admin-sidebar button {
    width: 100%;
    min-height: 44px;
    display: flex;
    gap: 10px;
    align-items: center;
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .82);
    text-align: left;
    font-weight: 600;
}

.admin-sidebar nav a span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: #BFDBFE;
    font-size: .72rem;
    font-weight: 800;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
    background: rgba(59, 130, 246, .22);
    color: #fff;
}

.admin-sidebar nav a.is-active span {
    background: #FACC15;
    color: #1F2937;
}

.admin-sidebar form {
    margin-top: auto;
}

.admin-sidebar button {
    justify-content: center;
    background: #ca1d00;
    color: #fff;
}

.admin-main {
    padding: 28px;
}

.admin-main__header {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.admin-main__header h1 {
    font-size: 2.4rem;
}

.admin-main__header > span {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px 14px;
    color: var(--muted);
}

.admin-stack {
    display: grid;
    gap: 22px;
}

.admin-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 18px 42px rgba(16, 32, 51, .07);
    overflow: hidden;
}

.admin-card__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.admin-card__head h2 {
    font-size: 1.45rem;
}

.admin-card__head p {
    margin: 4px 0 0;
    color: var(--muted);
}

.admin-card--blue {
    border-color: #BFDBFE;
    background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 44%);
}

.admin-card--green {
    border-color: #BBF7D0;
    background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 44%);
}

.admin-card--gold {
    border-color: #FDE68A;
    background: linear-gradient(135deg, #FFFBEB 0%, #FFFFFF 44%);
}

.admin-card--rose {
    border-color: #FECDD3;
    background: linear-gradient(135deg, #FFF1F2 0%, #FFFFFF 44%);
}

.admin-chip {
    width: max-content;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 8px;
    padding: 0 10px;
    background: #1B365D;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.admin-form select,
.admin-field input,
.submenu-editor__row input,
.submenu-editor__row select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    color: var(--ink);
}

.menu-editor,
.footer-editor,
.admin-news-list {
    display: grid;
    gap: 14px;
}

.menu-editor__item {
    border: 1px solid #e3edf4;
    border-radius: 8px;
    background: #f8fbfd;
    padding: 16px;
}

.submenu-editor {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.submenu-editor__row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 140px;
    gap: 10px;
}

.editor-line-head,
.editor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.editor-actions {
    margin-top: 14px;
}

.admin-mini-button,
.admin-secondary-button,
.editor-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #BFD7EA;
    border-radius: 8px;
    background: #fff;
    color: var(--brand);
    padding: 0 13px;
    font-weight: 700;
    cursor: pointer;
}

.admin-secondary-button {
    border-color: transparent;
    background: linear-gradient(135deg, #3B82F6, #1B365D);
    color: #fff;
}

.image-preview {
    display: grid;
    gap: 8px;
}

.image-preview span {
    color: var(--muted);
    font-weight: 700;
}

.image-preview img {
    width: min(320px, 100%);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cms-menu-editor {
    display: grid;
    gap: 14px;
}

.cms-menu-editor__head,
.cms-submenu__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cms-menu-list {
    display: grid;
    gap: 12px;
}

.cms-menu-list--split {
    gap: 16px;
}

.cms-menu-item {
    border: 1px solid #D6E3EF;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(16, 32, 51, .06);
}

.cms-menu-item__main {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    padding: 12px;
}

.cms-menu-item__badge {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #1D4ED8;
    color: #fff;
    font-weight: 800;
}

.cms-menu-fields {
    display: grid;
    grid-template-columns: minmax(140px, .8fr) minmax(160px, .9fr) minmax(190px, 1.2fr) 128px;
    gap: 10px;
    align-items: end;
}

.cms-menu-item__main label,
.cms-submenu-row label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-weight: 700;
}

.cms-menu-item input,
.cms-menu-item select,
.cms-submenu-row input,
.cms-submenu-row select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 0 12px;
}

.cms-submenu {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    border: 1px dashed #A7F3D0;
    border-radius: 8px;
    background: #F0FDF4;
    padding: 12px;
}

.cms-submenu__rows {
    display: grid;
    gap: 8px;
}

.cms-submenu-row {
    display: grid;
    grid-template-columns: minmax(140px, .9fr) minmax(170px, 1fr) minmax(190px, 1.1fr) 120px auto;
    gap: 8px;
    align-items: center;
    border: 1px solid #DCFCE7;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

.admin-danger-button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #FFF1F2;
    color: #BE123C;
    padding: 0 13px;
    font-weight: 700;
    cursor: pointer;
}

.admin-actions-sticky {
    position: sticky;
    bottom: 16px;
    display: flex;
    justify-content: flex-end;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    padding: 12px;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 42px rgba(16, 32, 51, .12);
}

.admin-actions-sticky button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    padding: 0 22px;
    background: linear-gradient(135deg, #3B82F6, #1B365D);
    color: #fff;
    font-weight: 700;
}

.admin-manager {
    display: grid;
    gap: 18px;
}

.admin-list-table {
    display: grid;
    gap: 10px;
}

.admin-list-table article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid #E2E8F0;
    border-left: 6px solid #3B82F6;
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    padding: 14px;
    box-shadow: 0 10px 26px rgba(16, 32, 51, .05);
}

.admin-list-table article:nth-child(3n + 2) {
    border-left-color: #10B981;
}

.admin-list-table article:nth-child(3n) {
    border-left-color: #F59E0B;
}

.admin-list-table span {
    color: #1D4ED8;
    font-size: .82rem;
    font-weight: 800;
}

.admin-list-table h3 {
    margin: 4px 0;
    font-size: 1.08rem;
}

.admin-list-table p {
    margin: 0;
    color: var(--muted);
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.admin-row-actions a,
.admin-row-actions button {
    min-height: 36px;
    border: 0;
    border-radius: 8px;
    padding: 0 12px;
    background: #E0F2FE;
    color: #075985;
    font-weight: 800;
    cursor: pointer;
}

.admin-row-actions button {
    background: #FFE4E6;
    color: #BE123C;
}

.admin-editor-panel {
    padding: 0;
}

.admin-editor-panel summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    min-height: 64px;
    padding: 0 22px;
    cursor: pointer;
    color: var(--ink);
    font-weight: 800;
}

.admin-editor-panel summary::marker {
    content: "";
}

.admin-editor-panel summary::after {
    content: "+";
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #1B365D;
    color: #fff;
}

.admin-editor-panel[open] summary::after {
    content: "-";
}

.admin-editor-panel summary small {
    color: var(--muted);
    font-weight: 700;
}

.admin-editor-panel .admin-form {
    border-top: 1px solid #E2E8F0;
    padding: 22px;
}

.admin-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    background: #F0FDF4;
    padding: 14px;
}

.admin-checks legend {
    padding: 0 8px;
    color: #166534;
    font-weight: 800;
}

.admin-checks label {
    min-height: 38px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border: 1px solid #DCFCE7;
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
}

.admin-checks input {
    width: 16px;
    height: 16px;
    accent-color: #16A34A;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

.admin-pagination a {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    background: #fff;
    color: #1D4ED8;
    font-weight: 800;
}

.admin-pagination a:hover,
.admin-pagination a.is-active {
    border-color: #1D4ED8;
    background: #1D4ED8;
    color: #fff;
}

.legacy-filter {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 18px;
}

.legacy-filter__item {
    margin-bottom: 16px;
}

.legacy-filter__item h2 {
    margin-bottom: 8px;
    color: #1B365D;
    font-size: .92rem;
}

.legacy-filter input,
.legacy-filter select {
    min-height: 38px;
    border-color: #E2E8F0;
    background: #fff;
    color: #0A192F;
    font-size: .92rem;
}

.legacy-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.legacy-checks label {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    padding: 6px 8px;
    color: #334155;
    font-size: .86rem;
    line-height: 1.2;
}

.legacy-checks input {
    width: 14px;
    height: 14px;
    accent-color: #3B82F6;
}

.legacy-filter__actions button {
    min-height: 40px;
    background: #1B365D;
}

.legacy-result-item {
    border-left-color: #3B82F6;
    background: #fff;
}

.legacy-result-item:nth-child(odd) {
    background: #F8FAFC;
}

.legacy-result-item__meta strong {
    background: #1B365D;
}

.legacy-status-desc li::before {
    background: #3B82F6;
}

.pagination-clean a,
.pagination-clean span {
    border-color: #E2E8F0;
    color: #1B365D;
}

.pagination-clean .is-active {
    border-color: #1B365D;
    background: #1B365D;
}

.modern-footer {
    background: #0A192F;
}

.modern-footer__eyebrow,
.footer-icon {
    color: #93C5FD;
}

.admin-body {
    background: #F8FAFC;
}

.admin-card,
.menu-editor__item,
.news-card,
.document-item,
.collection-card {
    border-color: #E2E8F0;
}

.menu-editor__item {
    background: #F8FAFC;
}

.admin-grid-two {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .65fr);
    gap: 22px;
    align-items: start;
}

.admin-news-list article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.admin-news-list span,
.news-card span {
    color: var(--brand);
    font-weight: 700;
}

.admin-news-list h3 {
    margin: 4px 0;
    font-size: 1.12rem;
}

.admin-news-list p {
    color: var(--muted);
}

.admin-news-list article > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-news-list a,
.admin-news-list button {
    border: 0;
    border-radius: 8px;
    background: #eef7fb;
    color: var(--brand);
    padding: 8px 12px;
    font-weight: 700;
}

.admin-news-list button {
    background: #fff1ef;
    color: #ca1d00;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.news-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #F8FAFC;
    padding: 14px;
    margin-bottom: 16px;
}

.news-search label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-weight: 700;
}

.news-search input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 0 14px;
    color: var(--ink);
}

.news-search button,
.news-search a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    font-weight: 700;
}

.news-search button {
    background: linear-gradient(135deg, #3B82F6, #1B365D);
    color: #fff;
}

.news-search a {
    border: 1px solid #BFD7EA;
    background: #fff;
    color: var(--brand);
}

.news-result-meta {
    margin-bottom: 18px;
}

.news-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(16, 32, 51, .07);
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-card > div {
    padding: 18px;
}

.news-card h2 {
    margin: 6px 0 8px;
    font-size: 1.25rem;
}

.news-card p {
    color: var(--muted);
}

.news-card__link {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    color: var(--brand);
    font-weight: 700;
}

.news-card__link:hover {
    color: var(--accent);
}

.news-detail {
    max-width: 880px;
    color: #34465a;
    font-size: 1.08rem;
    line-height: 1.8;
}

.news-detail img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 22px;
}

.news-recommendation {
    border-top: 1px solid var(--line);
}

.stats-band {
    background: linear-gradient(135deg, #102A43, #1B4D89);
    border-bottom: 0;
}

.dashboard-collection-section {
    background: linear-gradient(180deg, #F4F8FF 0%, #FFFFFF 100%);
}

.dashboard-latest-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F7FBF8 100%);
}

.stat-item {
    position: relative;
    overflow: hidden;
    border-right-color: rgba(255, 255, 255, .16);
    color: #fff;
}

.stat-item::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
}

.stat-item strong,
.stat-item span {
    position: relative;
    z-index: 1;
    color: #fff;
}

.stat-item--blue { background: linear-gradient(135deg, #1D4ED8, #0F766E); }
.stat-item--green { background: linear-gradient(135deg, #047857, #22C55E); }
.stat-item--gold { background: linear-gradient(135deg, #B45309, #F59E0B); }
.stat-item--rose { background: linear-gradient(135deg, #BE123C, #7C3AED); }

.collection-card {
    position: relative;
    overflow: hidden;
    border: 0;
    color: #fff;
}

.collection-card::before {
    content: "";
    position: absolute;
    inset: auto -34px -48px auto;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.collection-card > * {
    position: relative;
    z-index: 1;
}

.collection-card__count,
.collection-card p {
    color: rgba(255, 255, 255, .82);
}

.collection-card strong {
    color: #fff;
}

.collection-card--blue { background: linear-gradient(145deg, #1E40AF, #0891B2); }
.collection-card--green { background: linear-gradient(145deg, #047857, #65A30D); }
.collection-card--gold { background: linear-gradient(145deg, #B45309, #D97706); }
.collection-card--rose { background: linear-gradient(145deg, #9F1239, #7C3AED); }

.feature-panel {
    border-radius: 18px;
    padding: 30px;
    background: linear-gradient(135deg, #FFF7ED, #EFF6FF);
    box-shadow: 0 18px 46px rgba(16, 32, 51, .08);
}

.quick-links a {
    border: 0;
    box-shadow: 0 14px 34px rgba(16, 32, 51, .08);
}

.quick-links a:nth-child(1) { background: #E0F2FE; color: #0C4A6E; }
.quick-links a:nth-child(2) { background: #DCFCE7; color: #14532D; }
.quick-links a:nth-child(3) { background: #FEF3C7; color: #78350F; }
.quick-links a:nth-child(4) { background: #FFE4E6; color: #881337; }

.quick-links small {
    color: currentColor;
    opacity: .72;
}

.document-item {
    border-left: 6px solid #3B82F6;
    background: linear-gradient(90deg, #F8FBFF, #FFFFFF);
}

.document-item:nth-child(2n) {
    border-left-color: #10B981;
    background: linear-gradient(90deg, #F7FEF9, #FFFFFF);
}

.document-item:nth-child(3n) {
    border-left-color: #F59E0B;
    background: linear-gradient(90deg, #FFFBEB, #FFFFFF);
}

.document-item__marker {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #1E3A8A;
}

@media (max-width: 1000px) {
    .admin-body,
    .admin-grid-two,
    .legacy-detail,
    .cms-menu-item__main,
    .cms-menu-fields,
    .admin-list-table article,
    .cms-submenu-row {
        grid-template-columns: 1fr;
    }

    .legacy-detail__summary {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .admin-main {
        padding: 18px;
    }

    .admin-main__header,
    .submenu-editor__row,
    .cms-menu-editor__head,
    .cms-submenu__head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-search {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 54px;
    }

    .collection-grid,
    .stats-grid,
    .quick-links,
    .modern-footer__grid,
    .hero-search {
        grid-template-columns: 1fr;
    }

    .document-item {
        grid-template-columns: 1fr;
    }

    .legacy-detail__summary {
        grid-template-columns: 1fr;
    }

    .legacy-detail-list > div {
        grid-template-columns: 1fr;
    }

    .document-preview-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .document-preview-toolbar span {
        white-space: normal;
    }

    .legacy-detail-list dt {
        border-bottom: 1px solid var(--line);
    }

    .document-item__marker {
        min-height: 48px;
        place-items: center start;
        padding-left: 14px;
    }

    .meta-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Final visual pass: trustworthy navy/slate palette and compact document filters. */
.legacy-filter {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    padding: 18px;
}

.legacy-filter__item {
    margin-bottom: 16px;
}

.legacy-filter__item h2 {
    margin-bottom: 8px;
    color: #1B365D;
    font-size: .92rem;
}

.legacy-filter input,
.legacy-filter select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
    color: #0A192F;
    font-size: .92rem;
}

.legacy-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    color: #334155;
}

.legacy-checks label {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    padding: 6px 8px;
    font-size: .86rem;
    line-height: 1.2;
}

.legacy-checks input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-height: 14px;
    accent-color: #3B82F6;
}

.legacy-filter__actions button {
    min-height: 40px;
    border-radius: 8px;
    background: #1B365D;
}

.legacy-filter__actions a {
    color: #1B365D;
}

.legacy-result-shell {
    background: #fff;
    color: #1b1b1b;
}

.legacy-topbar {
    background: #03176e;
    color: #fff;
    font-size: .9rem;
}

.legacy-topbar__inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.legacy-search-head {
    background: #fcfbf0;
    border-bottom: 1px solid #ece8d8;
}

.legacy-search-head__inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.legacy-search-head__logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.legacy-search-form {
    width: min(720px, 100%);
    position: relative;
}

.legacy-search-form input {
    width: 100%;
    height: 46px;
    border: 2px solid #ca1d00;
    border-radius: 12px;
    color: #03176e;
    padding: 0 64px 0 18px;
    font-size: 1rem;
    box-shadow: 0 2px 11px rgba(0, 0, 0, .16);
}

.legacy-search-form button {
    position: absolute;
    right: 0;
    top: 0;
    width: 58px;
    height: 46px;
    border: 0;
    border-radius: 0 12px 12px 0;
    background: #ca1d00;
}

.legacy-search-form button::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin: auto;
    border: 3px solid #fff;
    border-radius: 50%;
}

.legacy-search-form button::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 3px;
    right: 16px;
    top: 28px;
    background: #fff;
    transform: rotate(45deg);
}

.legacy-result {
    padding-top: 28px;
    padding-bottom: 48px;
}

.legacy-summary {
    color: #4a4a4a;
    margin: 0 0 18px;
}

.legacy-result__grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.legacy-filter {
    border-right: 1px solid #ededed;
    padding-right: 24px;
}

.legacy-filter__item {
    margin-bottom: 22px;
}

.legacy-filter__item h2 {
    color: #03176e;
    font-size: .98rem;
    margin-bottom: 10px;
}

.legacy-filter input,
.legacy-filter select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    padding: 0 10px;
    color: #4a4a4a;
    background: #fff;
}

.legacy-checks {
    display: grid;
    gap: 8px;
    color: #4a4a4a;
}

.legacy-checks label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legacy-filter__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legacy-filter__actions button {
    min-height: 42px;
    border: 0;
    border-radius: 4px;
    padding: 0 16px;
    background: #03176e;
    color: #fff;
    font-weight: 700;
}

.legacy-filter__actions a {
    color: #ca1d00;
    font-weight: 700;
}

.legacy-results {
    display: grid;
    gap: 18px;
}

.legacy-result-item {
    padding: 18px 18px 20px;
    background: #fff;
    border-left: 4px solid #4a90e2;
}

.legacy-result-item:nth-child(odd) {
    background: #fcfbf0;
}

.legacy-result-item--dicabut,
.legacy-result-item--dicabut-sebagian {
    border-left-color: #ca1d00;
}

.legacy-result-item--diubah {
    border-left-color: #03176e;
}

.legacy-result-item--mengubah {
    border-left-color: #2ca420;
}

.legacy-result-item--mencabut,
.legacy-result-item--mencabut-sebagian {
    border-left-color: #f5a623;
}

.legacy-result-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #4a4a4a;
    margin-bottom: 8px;
}

.legacy-result-item__meta span + span::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 16px;
    margin-right: 10px;
    background: #d8d8d8;
    vertical-align: middle;
}

.legacy-result-item__meta strong {
    margin-left: auto;
    border-radius: 20px;
    background: #4a90e2;
    color: #fff;
    padding: 5px 14px;
    font-size: .82rem;
}

.legacy-result-item h2 {
    font-size: 1.08rem;
    line-height: 1.45;
}

.legacy-result-item h2 a {
    color: #03176e;
}

.legacy-status-desc {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.legacy-status-desc li {
    position: relative;
    padding-left: 20px;
    color: #4a4a4a;
    margin-bottom: 7px;
}

.legacy-status-desc li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a90e2;
}

.legacy-status-desc a {
    color: #03176e;
    font-weight: 700;
}

strong.highlight {
    color: #bd5a5a;
}

.legacy-pagination {
    margin-top: 10px;
}

.admin-shell {
    min-height: calc(100vh - 172px);
    background: var(--soft);
    padding: 64px 0;
}

.admin-panel {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 18px 42px rgba(16, 32, 51, .08);
}

.admin-panel--small {
    width: min(460px, calc(100% - 32px));
}

.admin-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.admin-panel h1 {
    font-size: 2rem;
}

.admin-panel p {
    color: var(--muted);
}

.admin-form {
    display: grid;
    gap: 16px;
}

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

.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 700;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
}

.admin-form textarea {
    resize: vertical;
}

.admin-form button,
.admin-logout {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.admin-logout {
    background: #ca1d00;
}

.admin-form__wide {
    grid-column: 1 / -1;
}

.form-error {
    color: #ca1d00;
    font-weight: 700;
}

.form-success {
    border: 1px solid #b9e0c0;
    border-radius: 8px;
    background: #effaf1;
    color: #1d6b2b;
    padding: 12px 14px;
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .legacy-topbar__inner,
    .legacy-search-head__inner,
    .admin-panel__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .legacy-result__grid,
    .admin-form--grid {
        grid-template-columns: 1fr;
    }

    .legacy-filter {
        border-right: 0;
        border-bottom: 1px solid #ededed;
        padding-right: 0;
        padding-bottom: 20px;
    }
}

.legacy-filter {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    padding: 18px;
}

.legacy-filter__item {
    margin-bottom: 16px;
}

.legacy-filter__item h2 {
    margin-bottom: 8px;
    color: #1B365D;
    font-size: .92rem;
}

.legacy-filter input,
.legacy-filter select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
    color: #0A192F;
    font-size: .92rem;
}

.legacy-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    color: #334155;
}

.legacy-checks label {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    padding: 6px 8px;
    font-size: .86rem;
    line-height: 1.2;
}

.legacy-checks input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-height: 14px;
    accent-color: #3B82F6;
}

.legacy-filter__actions button {
    min-height: 40px;
    border-radius: 8px;
    background: #1B365D;
}

.legacy-filter__actions a {
    color: #1B365D;
}
