/* ═══════════════════════════════════════════════════════════════
   Repdoc — public file-library pages
   Shared by showcase/, officefiles/ and offlinefiles/.
   Load after tokens.css → shell.css → home.css.
   ═══════════════════════════════════════════════════════════════ */

/* ── Shared chrome touches ───────────────────────────────────── */
.catalog-page { background: var(--bg-base); }
.cat-nav-menu { grid-template-columns: 1fr; min-width: 252px; }
.cat-nav-menu .nav-menu-all { padding-inline: 10px; }
.site-nav .nav-dropdown > summary { list-style: none; }
.site-nav .nav-dropdown > summary::-webkit-details-marker { display: none; }

/* ── Hero: stamped register with a live search shelf ─────────── */
.cat-hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-7) 0 var(--space-6);
    border-bottom: 2px solid var(--text-primary);
    background: var(--bg-base);
    background-image:
        radial-gradient(52% 70% at 100% 0%, rgba(14, 107, 74, .07), transparent 70%),
        repeating-linear-gradient(180deg, transparent 0 31px, var(--border-color) 31px 32px);
}
.cat-hero::after {
    content: "";
    position: absolute;
    right: -170px;
    bottom: -280px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(14, 107, 74, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(14, 107, 74, .035), 0 0 0 150px rgba(14, 107, 74, .022);
    pointer-events: none;
}
.cat-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
    align-items: center;
    gap: clamp(26px, 4vw, 56px);
}
.cat-hero-copy { min-width: 0; }
.cat-kicker { justify-content: flex-start; margin-bottom: var(--space-3); }
.cat-title { text-align: start; font-size: clamp(2rem, 3.7vw, 3rem); line-height: 1.18; }
.cat-rule { margin: var(--space-3) 0 0; transform-origin: left center; }
.cat-lead {
    max-width: 650px;
    margin-top: var(--space-3);
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}
.cat-hero-art {
    position: relative;
    justify-self: center;
    width: min(100%, 470px);
    margin: 0;
    padding: 0 14px 14px 0;
}
.cat-art-frame {
    position: relative;
    display: block;
    overflow: hidden;
    border: 2px solid var(--text-primary);
    border-radius: 12px;
    background: #fff;
    box-shadow: 7px 7px 0 var(--text-primary);
    transform: rotate(-1.4deg);
}
.cat-art-frame img { display: block; width: 100%; height: auto; }
.cat-art-tag {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    max-width: 86%;
    padding: 8px 13px;
    border: 2px solid var(--text-primary);
    border-radius: 6px;
    background: var(--sign);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.3;
    text-align: center;
    transform: rotate(2deg);
}

/* Search shelf */
.cat-search {
    display: flex;
    align-items: center;
    gap: 4px;
    width: min(100%, 640px);
    margin-top: var(--space-5);
    padding: 5px;
    border: 2px solid var(--text-primary);
    border-radius: 10px;
    background: #fff;
    box-shadow: 4px 4px 0 var(--text-primary);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.cat-search:focus-within { box-shadow: 5px 5px 0 var(--primary); }
.cat-search-icon { width: 21px; height: 21px; margin-inline-start: 10px; color: var(--primary); }
.cat-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 4px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: .95rem;
}
.cat-search input::placeholder { color: #7E8E86; }
.cat-search input::-webkit-search-cancel-button { display: none; }
.cat-search-clear {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--bg-muted);
    color: var(--text-muted);
    cursor: pointer;
}
.cat-search-clear:hover { background: var(--primary-light); color: var(--primary); }
.cat-search-clear .icon { width: 16px; height: 16px; }
.cat-search-btn {
    flex: none;
    min-height: 42px;
    padding: 9px 20px;
    border-radius: 7px;
    font-size: .9rem;
}

/* Hero counters */
.cat-hero-stats {
    display: flex;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    margin-top: var(--space-4);
    overflow: hidden;
    border: 1.5px solid var(--border-strong);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.cat-hero-stat {
    min-width: 104px;
    padding: 9px 18px;
    border-inline-end: 1px solid var(--border-color);
}
.cat-hero-stat:last-child { border-inline-end: 0; }
.cat-hero-stat strong {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
}
.cat-hero-stat span {
    display: block;
    margin-top: 1px;
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 600;
}
.cat-hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-3);
    color: var(--text-muted);
    font-size: .86rem;
}
.cat-hero-note .icon { width: 16px; height: 16px; color: var(--primary); }
.cat-hero-note a { color: var(--primary); font-weight: 700; text-decoration: underline; }

/* ── Format filter shelf ─────────────────────────────────────── */
.cat-formats {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}
.cat-format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    gap: 10px;
}
.cat-format {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 11px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    color: var(--text-primary);
    text-align: start;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.cat-format:hover {
    border-color: var(--border-strong);
    background: #FBFEFC;
    transform: translateY(-1px);
}
.cat-format.is-active {
    border-color: var(--text-primary);
    background: #F2FAF5;
    box-shadow: 3px 3px 0 var(--text-primary);
    transform: translate(-1px, -1px);
}
.cat-format-logo {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    padding: 6px;
    overflow: hidden;
    border: 1px solid rgba(18, 33, 29, .10);
    border-radius: 9px;
}
.cat-format-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cat-format-all {
    padding: 0;
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}
.cat-format-all .icon { width: 21px; height: 21px; }
.cat-format-text { flex: 1; min-width: 0; }
.cat-format-text strong {
    display: block;
    overflow: hidden;
    color: #163A2B;
    font-size: .87rem;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-format-text small {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: .67rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-format-count {
    display: inline-grid;
    place-items: center;
    flex: none;
    min-width: 28px;
    height: 23px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--bg-muted);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: .67rem;
    font-weight: 700;
}
.cat-format.is-active .cat-format-count { background: var(--primary); color: #fff; }
.cat-format:disabled { opacity: .58; cursor: not-allowed; transform: none; box-shadow: none; }
.cat-format:disabled:hover { border-color: var(--border-color); background: #fff; transform: none; }

/* ── Library layout ──────────────────────────────────────────── */
.cat-library {
    padding: var(--space-7) 0 var(--space-6);
    background:
        radial-gradient(46% 32% at 100% 0%, rgba(14, 107, 74, .05), transparent 70%),
        var(--bg-base);
}
.cat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    align-items: start;
    gap: 24px;
}
.cat-main { min-width: 0; }
.cat-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.cat-toolbar h2 { color: var(--text-primary); font-size: clamp(1.5rem, 2.5vw, 1.9rem); font-weight: 800; }
.cat-result { margin-top: 5px; color: var(--text-muted); font-size: .84rem; }
.cat-result strong { color: var(--text-primary); font-family: var(--font-mono); font-weight: 700; }
.cat-toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.cat-sort {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 4px 5px 4px 12px;
    border: 1.5px solid var(--border-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 600;
    white-space: nowrap;
}
.cat-sort:has(select:disabled) { opacity: .58; }
.cat-sort select:disabled { cursor: not-allowed; }
.cat-sort select {
    min-height: 28px;
    padding: 2px 24px 2px 6px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: .79rem;
    font-weight: 700;
    cursor: pointer;
}
.cat-reset {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 6px 12px;
    border: 1.5px solid var(--accent);
    border-radius: 8px;
    background: #fff;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}
.cat-reset:hover { background: #FDF1F1; }
.cat-reset .icon { width: 14px; height: 14px; }
.cat-reset[hidden],
.cat-search-clear[hidden],
.cat-noresult[hidden] { display: none; }

/* ── File cards ──────────────────────────────────────────────── */
.cat-file-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}
.cat-file-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #DCEBE2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 3px -2px rgba(15, 54, 40, .10), 0 14px 30px -30px rgba(15, 54, 40, .55);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cat-file-card:hover,
.cat-file-card:focus-within {
    border-color: #B6D6C4;
    box-shadow: 0 18px 32px -24px rgba(14, 107, 74, .55);
    transform: translateY(-3px);
}
.cat-file-card[hidden] { display: none; }
.cat-thumb-link {
    display: block;
    height: 100%;
}
.cat-file-link {
    display: block;
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-file-link:hover,
.cat-file-link:focus-visible { color: var(--primary); text-decoration: underline; }
.cat-file-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid #EAF2ED;
    background: #F2FAF5;
}
.cat-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.cat-file-card:hover .cat-thumb-img { transform: scale(1.035); }
.cat-file-badge {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 20px);
    padding: 4px 9px 4px 5px;
    overflow: hidden;
    border: 1px solid rgba(18, 33, 29, .14);
    border-radius: 999px;
    background: #fff;
    color: var(--group-color, var(--primary));
    font-size: .62rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 5px 12px rgba(12, 50, 35, .12);
}
.cat-file-badge img { width: 15px; height: 15px; object-fit: contain; }
.cat-new {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 3;
    padding: 4px 8px;
    border: 1px solid var(--text-primary);
    border-radius: 5px;
    background: var(--sign);
    color: var(--text-primary);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 2px 2px 0 rgba(18, 33, 29, .18);
}
.cat-file-card[data-group="office"] { --group-color: #0B6B4A; }
.cat-file-card[data-group="psd"] { --group-color: #1D4ED8; }
.cat-file-card[data-group="ai"] { --group-color: #B45309; }
.cat-file-card[data-group="plp"] { --group-color: #7C3AED; }
.cat-file-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding: 12px 13px 0;
}
.cat-file-eyebrow {
    overflow: hidden;
    color: var(--group-color, var(--primary));
    font-family: var(--font-mono);
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
/* Filename is the compact label; the description carries the detail. */
.cat-file-name {
    display: block;
    overflow: hidden;
    color: #43594D;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-file-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    color: #22402F;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.62;
    overflow-wrap: anywhere;
}
.cat-file-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 7px;
    margin-top: auto;
    padding: 9px 0 11px;
    color: #75877D;
    font-size: .66rem;
}
.cat-ext {
    padding: 2px 5px;
    border: 1px solid #D7E4DB;
    border-radius: 4px;
    color: #365648;
    font-family: var(--font-mono);
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
}
.cat-meta-dot { color: #B4C3BA; }
.cat-file-foot { padding: 0 13px 13px; }
.cat-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: .79rem;
    font-weight: 700;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.cat-download:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.cat-download .icon { width: 15px; height: 15px; }
.cat-download.is-locked { background: #fff; color: var(--primary); }
.cat-download.is-locked:hover { background: var(--primary-light); }
.cat-download.is-hub { background: #fff; color: var(--text-primary); border-color: var(--border-strong); }
.cat-download.is-hub:hover { background: var(--bg-muted); border-color: var(--text-primary); color: var(--text-primary); }

/* ── Empty / no-result ───────────────────────────────────────── */
.cat-empty,
.cat-noresult {
    padding: 44px 24px;
    border: 2px dashed var(--border-strong);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}
.cat-empty-logos { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.cat-empty-logos .cat-format-logo { width: 50px; height: 50px; box-shadow: var(--shadow-sm); }
.cat-empty h3,
.cat-noresult h3 { margin: 0 0 6px; color: #163A2B; font-size: 1.05rem; font-weight: 800; }
.cat-empty p,
.cat-noresult p { margin: 0; color: var(--text-muted); font-size: .85rem; line-height: 1.7; }
.cat-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 18px; }
.cat-noresult-art { width: 150px; margin: 0 auto 14px; }
.cat-noresult .btn { margin-top: 16px; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.cat-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.cat-side-card {
    padding: 17px 16px;
    border: 1px solid #DCEBE2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 3px -2px rgba(15, 54, 40, .08);
}
.cat-side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 11px;
    color: #163A2B;
    font-size: .9rem;
    font-weight: 800;
}
.cat-side-title .icon { width: 16px; height: 16px; color: var(--primary); }
.cat-stat-list { display: flex; flex-direction: column; }
.cat-stat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #E6EFE9;
    color: var(--text-muted);
    font-size: .78rem;
}
.cat-stat-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cat-stat-list li:first-child { padding-top: 0; }
.cat-stat-list strong {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: .76rem;
    font-weight: 700;
    text-align: end;
}
.cat-side-formats { display: flex; flex-direction: column; gap: 2px; }
.cat-side-format {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 7px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #2A4137;
    font: inherit;
    font-size: .79rem;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.cat-side-format:hover { background: #F2FAF5; color: var(--primary); }
.cat-side-format.is-active { background: var(--primary-light); color: var(--primary); }
.cat-side-format:disabled { opacity: .58; cursor: not-allowed; }
.cat-side-format img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.cat-side-format-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-side-count {
    display: inline-grid;
    place-items: center;
    min-width: 25px;
    height: 20px;
    margin-inline-start: auto;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--bg-muted);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: .63rem;
    font-weight: 700;
}
.cat-side-format.is-active .cat-side-count { background: var(--primary); color: #fff; }
.cat-ad {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 2px dashed var(--border-strong);
    background: #FCFEFC;
    color: #9BAFA3;
    text-align: center;
}
.cat-ad span {
    font-family: var(--font-mono);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.cat-ad small { font-size: .67rem; color: #A8B8AF; }
/* Main-column ad strip: 468×60 / 320×50 centred above the file grid. */
.cat-ad-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 var(--space-4);
    overflow: hidden;
}
.cat-ad-strip .repdoc-ad-slot {
    display: flex;
    justify-content: center;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
}
.cat-ad-strip iframe,
.cat-ad-strip img { display: block; max-width: 100%; border: 0; }
.cat-ad-strip--empty {
    flex-direction: column;
    gap: 3px;
    min-height: 64px;
    border: 2px dashed var(--border-strong);
    border-radius: 12px;
    background: #FCFEFC;
    color: #9BAFA3;
    text-align: center;
}
.cat-ad-strip--empty span {
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.cat-ad-strip--empty small { font-size: .67rem; color: #A8B8AF; }
.cat-join {
    border-color: #CDE8D6;
    background:
        radial-gradient(80% 120% at 100% 0%, #DFF1E6 0%, rgba(223, 241, 230, 0) 64%),
        linear-gradient(150deg, #FDFEFD, #EEF8F1);
}
.cat-join-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    border: 2px solid var(--text-primary);
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    box-shadow: 3px 3px 0 var(--text-primary);
}
.cat-join-icon .icon { width: 21px; height: 21px; }
.cat-join h3 { margin: 0 0 5px; color: #0B4A33; font-size: .95rem; font-weight: 800; }
.cat-join p { color: #4E6659; font-size: .77rem; line-height: 1.6; }
.cat-join .btn { width: 100%; min-height: 40px; margin-top: 12px; font-size: .8rem; }
.cat-join-link { display: block; margin-top: 9px; color: var(--primary); font-size: .71rem; font-weight: 600; text-align: center; }
.cat-join-link:hover { text-decoration: underline; }

/* ── Download guide ──────────────────────────────────────────── */
.cat-guide {
    padding: var(--space-8) 0 var(--space-7);
    border-top: 2px solid var(--text-primary);
    background: var(--bg-surface);
}
.cat-guide-head { margin-bottom: var(--space-5); }
.cat-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    counter-reset: cat-step;
}
.cat-step {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-base);
    box-shadow: inset 0 3px 0 var(--primary-light);
}
.cat-step-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-step-num {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary);
    border-radius: 7px;
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: .86rem;
    font-weight: 700;
}
.cat-step-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--primary-light);
    color: var(--primary);
}
.cat-step-icon .icon { width: 18px; height: 18px; }
.cat-step h3 { margin: 12px 0 5px; color: var(--text-primary); font-size: .97rem; font-weight: 800; }
.cat-step p { color: var(--text-muted); font-size: .83rem; line-height: 1.68; }

/* ── Closing band ────────────────────────────────────────────── */
.cat-closing-band {
    padding: 0 0 var(--space-7);
    border-top: 2px solid var(--text-primary);
    background: var(--bg-surface);
}
.cat-closing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(18px, 3vw, 40px);
    margin-top: var(--space-6);
    padding: clamp(22px, 3.2vw, 38px);
    border: 1px solid #D8EBDD;
    border-radius: 22px;
    background:
        radial-gradient(85% 130% at 88% 12%, #DFF1E6 0%, rgba(223, 241, 230, 0) 62%),
        linear-gradient(135deg, #FDFEFD 0%, #F3FAF5 55%, #EAF6EE 100%);
    box-shadow: 0 26px 50px -44px rgba(14, 107, 74, .55);
}
.cat-closing-copy { max-width: 650px; }
.cat-closing h2 { color: #0B4A33; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.cat-closing p:not(.kicker) { margin-top: 8px; color: #4E6659; font-size: .9rem; line-height: 1.7; }
.cat-closing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; flex: none; }
.cat-closing-actions .btn { white-space: nowrap; }

/* ── Generated thumbnail art (no uploaded thumb yet) ─────────── */
.oc-art { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; }
.oc-art::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .6;
    background-image: radial-gradient(#B6D1C2 1px, transparent 1px);
    background-size: 12px 12px;
}
.art-word { background: linear-gradient(145deg, #EEF4FE, #DCE9FA); }
.art-excel { background: linear-gradient(145deg, #EDF8F2, #D9EEE2); }
.art-ppt { background: linear-gradient(145deg, #FDF0EB, #F7DFD6); }
.art-psd { background: linear-gradient(145deg, #EDF3FB, #DCE7F6); }
.art-ai { background: linear-gradient(145deg, #FBF4E8, #F3E4CB); }
.art-plp { background: linear-gradient(145deg, #F5F0FE, #E9DEFB); }
.art-software { background: linear-gradient(145deg, #EAF3EE, #D8E9E0); }
.oc-software-tile {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 64%;
    aspect-ratio: 1.28;
    padding: 10% 9%;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background:
        radial-gradient(circle at 76% 22%, rgba(92, 220, 160, .24), transparent 42%),
        linear-gradient(155deg, #17352A, #0A1B14);
    box-shadow: 0 12px 24px rgba(7, 36, 25, .24);
    transform: rotate(-3deg);
    overflow: hidden;
}
.oc-software-tile::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 30%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent);
    pointer-events: none;
}
.oc-software-dots { position: absolute; top: 9%; left: 9%; display: flex; gap: 3px; }
.oc-software-dots i { width: 4px; height: 4px; border-radius: 50%; background: #77D5A9; }
.oc-software-dots i:nth-child(2) { background: #E9C46A; }
.oc-software-dots i:nth-child(3) { background: #E76F51; }
.oc-software-tile strong { color: #F4FFF9; font-size: .62rem; font-weight: 800; letter-spacing: .13em; line-height: 1.2; }
.oc-software-tile small { margin-top: 4px; color: #8FD9B6; font-size: .32rem; font-weight: 600; letter-spacing: .22em; }
.oc-paper {
    position: relative;
    z-index: 1;
    width: 54%;
    aspect-ratio: 3 / 4;
    padding: 12% 9%;
    border-radius: 4px;
    border-top: 4px solid var(--paper-accent, #2B579A);
    background: #fff;
    box-shadow: 0 10px 20px rgba(22, 48, 36, .16);
    transform: rotate(-4deg);
}
.paper-word { --paper-accent: #2B579A; }
.paper-excel { --paper-accent: #217346; padding: 13% 8%; }
.paper-ppt { --paper-accent: #C43E1C; padding: 12% 8%; }
.oc-chip {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    width: 24px;
    height: 24px;
    padding: 1px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 3px 7px rgba(0, 0, 0, .18);
    object-fit: contain;
}
.oc-brand-stamp {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    padding: 3px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(7, 54, 38, .18);
    object-fit: contain;
}
.oc-line { display: block; height: 3px; margin-bottom: 5px; border-radius: 99px; background: #DCE6E1; }
.oc-line:nth-of-type(even) { background: #E9F0EC; }
.oc-sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 6px; }
.oc-sheet-grid i { display: block; aspect-ratio: 1.55; border-radius: 1px; background: #D8EBDF; }
.oc-sheet-grid i:nth-child(3n+2) { background: #EAF4EE; }
.oc-slide { display: flex; flex-direction: column; gap: 4px; margin-top: 5px; padding: 7px 5px; border: 1px solid #F0D1C6; border-radius: 2px; background: #FDF6F3; }
.oc-slide-title { width: 55%; height: 4px; border-radius: 99px; background: #D26A4C; }
.oc-slide-line { width: 88%; height: 2px; border-radius: 99px; background: #E5B7A7; }
.oc-slide-line.short { width: 62%; }
.oc-slide-dots { display: flex; gap: 3px; justify-content: center; margin-top: 5px; }
.oc-slide-dots i { width: 3px; height: 3px; border-radius: 50%; background: #E1B5A6; }
.oc-visit {
    position: absolute;
    z-index: 1;
    width: 44%;
    aspect-ratio: 1.72;
    border-radius: 3px;
    background: linear-gradient(135deg, #1B3B78, #0E224D);
    box-shadow: 0 9px 18px rgba(15, 38, 82, .20);
}
.visit-back { top: 27%; left: 19%; transform: rotate(-18deg); background: linear-gradient(135deg, #2B5AA5, #102E66); }
.visit-front { right: 15%; bottom: 22%; display: flex; flex-direction: column; justify-content: center; padding: 8%; transform: rotate(7deg); color: #fff; }
.visit-front strong { font-size: .44rem; letter-spacing: .06em; line-height: 1.4; }
.visit-front small { margin-top: 5px; color: #AFC8EA; font-size: .27rem; letter-spacing: .10em; }
.oc-brandsheet {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 66%;
    aspect-ratio: 1.5;
    padding: 9%;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(69, 46, 10, .14);
}
.oc-orbit { width: 28px; height: 28px; margin-bottom: 5px; border: 2px solid #1B2B24; border-radius: 50%; position: relative; }
.oc-orbit::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #1B2B24; }
.oc-brandsheet strong { color: #183028; font-size: .56rem; line-height: 1.25; letter-spacing: .05em; text-align: center; }
.oc-brandsheet small { margin-top: 4px; color: #8B9C93; font-size: .27rem; letter-spacing: .16em; }
.oc-poster {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 58%;
    aspect-ratio: 3 / 4;
    padding: 8%;
    border-radius: 3px;
    background: linear-gradient(160deg, #0C6F50, #07503C 62%, #E6425E 62%, #B41E39);
    box-shadow: 0 10px 20px rgba(54, 18, 101, .20);
    transform: rotate(3deg);
}
.oc-poster-kicker { color: #CFF3DF; font-size: .43rem; font-weight: 700; letter-spacing: .08em; }
.oc-poster strong { margin-top: 5px; color: #fff; font-size: .74rem; line-height: 1.25; text-align: center; }

/* ── Motion ──────────────────────────────────────────────────── */
@keyframes cat-card-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
.cat-file-card { animation: cat-card-in .32s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * .025s); }
.cat-hero .reg-no { animation: reg-stamp .35s cubic-bezier(.16, 1, .3, 1) both; }
.cat-hero .cat-title { animation: reg-rise .55s cubic-bezier(.16, 1, .3, 1) .05s both; }
.cat-hero .cat-rule { animation: reg-draw .45s cubic-bezier(.16, 1, .3, 1) .3s both; }
.cat-hero-art .cat-art-frame { animation: cat-art-in .6s cubic-bezier(.16, 1, .3, 1) .3s both; }
@keyframes cat-art-in {
    from { opacity: 0; transform: translateY(16px) rotate(-2deg); }
    to { opacity: 1; transform: rotate(-1.4deg); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1140px) {
    .cat-nav-menu { min-width: 0; }
}
@media (max-width: 1080px) {
    .cat-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
    .cat-file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .cat-hero-inner { grid-template-columns: 1fr; gap: 26px; }
    .cat-hero-art { justify-self: start; width: min(88%, 430px); }
    .cat-hero { padding-top: var(--space-6); }
    .cat-layout { grid-template-columns: 1fr; }
    .cat-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-join { grid-column: 1 / -1; }
    .cat-ad { grid-column: 1 / -1; min-height: 160px; }
    .cat-file-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cat-closing { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
    .cat-file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-steps { grid-template-columns: 1fr; }
    .cat-toolbar { align-items: flex-start; flex-direction: column; }
    .cat-toolbar-actions { width: 100%; }
}
@media (max-width: 620px) {
    .cat-hero { background-image: radial-gradient(52% 70% at 100% 0%, rgba(14, 107, 74, .07), transparent 70%); }
    .cat-title { font-size: clamp(1.72rem, 8vw, 2.2rem); }
    .cat-lead { font-size: .93rem; }
    .cat-search { box-shadow: 3px 3px 0 var(--text-primary); }
    .cat-search-btn { padding-inline: 14px; }
    .cat-hero-stats { width: 100%; }
    .cat-hero-stat { flex: 1; min-width: 0; padding: 8px 11px; }
    .cat-format-grid { grid-template-columns: 1fr; }
    .cat-sidebar { grid-template-columns: 1fr; }
    .cat-join { grid-column: auto; }
    .cat-closing-actions { width: 100%; }
    .cat-closing-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 480px) {
    .cat-file-grid { grid-template-columns: 1fr; }
    .cat-hero-art { width: 100%; padding-right: 8px; }
    .cat-search { flex-wrap: wrap; }
    .cat-search input { flex-basis: calc(100% - 80px); }
    .cat-search-btn { width: 100%; }
    .cat-search-clear { margin-inline-start: auto; }
    .cat-file-desc { -webkit-line-clamp: 6; font-size: .88rem; }
    .cat-empty, .cat-noresult { padding: 32px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .cat-file-card,
    .cat-hero .reg-no,
    .cat-hero .cat-title,
    .cat-hero .cat-rule,
    .cat-hero-art .cat-art-frame { animation-delay: 0s !important; }
    .cat-file-card:hover,
    .cat-file-card:focus-within { transform: none; }
    .cat-thumb-img,
    .cat-format { transition: none; }
}
