:root {
    --bg: #07111f;
    --bg-elevated: #0b1728;
    --panel: rgba(13, 29, 48, .82);
    --panel-solid: #0d1d30;
    --panel-2: #10233a;
    --line: rgba(148, 181, 213, .14);
    --line-strong: rgba(148, 181, 213, .24);
    --text: #eef6ff;
    --muted: #91a9c0;
    --subtle: #69839d;
    --accent: #38d4e8;
    --accent-2: #6ae7c8;
    --accent-soft: rgba(56, 212, 232, .13);
    --warning: #f2bf61;
    --danger: #ff7b8f;
    --success: #6ae7a4;
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
    --radius: 18px;
    --radius-sm: 12px;
    --sidebar: 272px;
    --topbar: 82px;
}

html[data-theme="light"] {
    --bg: #f3f7fb;
    --bg-elevated: #ffffff;
    --panel: rgba(255,255,255,.9);
    --panel-solid: #ffffff;
    --panel-2: #f7fafc;
    --line: rgba(18, 52, 82, .10);
    --line-strong: rgba(18, 52, 82, .18);
    --text: #0c1b2b;
    --muted: #5d7185;
    --subtle: #7d91a3;
    --accent: #0d8fa1;
    --accent-2: #138c72;
    --accent-soft: rgba(13, 143, 161, .11);
    --warning: #9b6b13;
    --danger: #bf3b51;
    --success: #197f58;
    --shadow: 0 24px 70px rgba(28, 53, 79, .12);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(56, 212, 232, .09), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(106, 231, 200, .06), transparent 24%),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .92em; }

.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    padding: 24px 18px 20px;
    background: rgba(6, 16, 29, .88);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
}
html[data-theme="light"] .sidebar { background: rgba(255,255,255,.9); }
.brand { display: flex; align-items: center; gap: 13px; padding: 4px 8px 25px; }
.brand-mark {
    width: 48px; height: 48px; border-radius: 15px; flex: 0 0 48px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, rgba(56,212,232,.24), rgba(106,231,200,.08));
    border: 1px solid rgba(56,212,232,.32);
    box-shadow: inset 0 1px rgba(255,255,255,.13), 0 9px 24px rgba(0,0,0,.17);
}
.brand-mark span { font-weight: 900; letter-spacing: .08em; color: var(--accent); font-size: 15px; }
.brand-copy { min-width: 0; display: flex; flex-direction: column; }
.brand-copy strong { font-size: 15px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.nav-stack { display: flex; flex-direction: column; gap: 6px; }
.nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--muted);
    font-size: 15px; font-weight: 650;
    transition: .2s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.035); border-color: var(--line); transform: translateX(2px); }
.nav-link.is-active { color: var(--text); background: var(--accent-soft); border-color: rgba(56,212,232,.22); box-shadow: inset 3px 0 0 var(--accent); }
.nav-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.04); font-size: 13px; font-weight: 800; }
.nav-link.is-active .nav-icon { color: var(--accent); background: rgba(56,212,232,.12); }
.sidebar-note {
    margin-top: auto;
    display: flex; align-items: center; gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}
.sidebar-note div { display: flex; flex-direction: column; }
.sidebar-note strong { font-size: 13px; }
.sidebar-note small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(106,231,164,.08); }

.page-shell { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 30;
    min-height: var(--topbar);
    padding: 15px clamp(18px, 3vw, 38px);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    background: linear-gradient(to bottom, rgba(7,17,31,.94), rgba(7,17,31,.78));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
html[data-theme="light"] .topbar { background: linear-gradient(to bottom, rgba(243,247,251,.95), rgba(243,247,251,.82)); }
.page-heading { min-width: 0; }
.page-heading h1 { margin: 1px 0 0; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.035em; line-height: 1.15; }
.eyebrow { display: block; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.global-search-trigger {
    min-width: 250px; height: 43px; padding: 0 10px 0 13px;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid var(--line-strong); border-radius: 13px;
    background: rgba(255,255,255,.035); color: var(--muted); cursor: pointer;
}
.global-search-trigger:hover { border-color: rgba(56,212,232,.35); background: var(--accent-soft); }
.search-placeholder { flex: 1; text-align: left; font-size: 14px; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; color: var(--subtle); background: rgba(255,255,255,.025); font-size: 11px; }
.search-glyph { color: var(--accent); font-size: 18px; line-height: 1; }
.icon-button {
    width: 43px; height: 43px; display: grid; place-items: center;
    border: 1px solid var(--line-strong); border-radius: 13px;
    background: rgba(255,255,255,.03); color: var(--muted); cursor: pointer;
}
.icon-button:hover { color: var(--text); border-color: rgba(56,212,232,.35); background: var(--accent-soft); }
.mobile-only { display: none; }

.page-content { width: 100%; max-width: 1700px; margin: 0 auto; padding: clamp(20px, 3vw, 38px); flex: 1; }
.footer { padding: 20px 38px 28px; color: var(--subtle); font-size: 12px; display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; text-align: center; }
.footer-sep { color: var(--accent); }

.hero {
    position: relative; overflow: hidden;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        linear-gradient(115deg, rgba(56,212,232,.11), transparent 48%),
        linear-gradient(180deg, rgba(255,255,255,.03), transparent),
        var(--panel);
    box-shadow: var(--shadow);
}
.hero::after {
    content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
    right: -110px; top: -160px; border: 52px solid rgba(56,212,232,.045);
    box-shadow: 0 0 0 35px rgba(106,231,200,.025), 0 0 0 72px rgba(56,212,232,.015);
}
.hero-content { position: relative; z-index: 2; max-width: 880px; }
.hero-kicker { color: var(--accent); text-transform: uppercase; font-size: 12px; font-weight: 850; letter-spacing: .18em; }
.hero h2 { font-size: clamp(32px, 5vw, 62px); line-height: .98; letter-spacing: -.055em; margin: 10px 0 18px; max-width: 900px; }
.hero p { margin: 0; max-width: 760px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.button {
    min-height: 43px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--line-strong); border-radius: 12px; font-weight: 750; font-size: 14px; cursor: pointer;
    background: rgba(255,255,255,.035); color: var(--text); transition: .18s ease;
}
.button:hover { transform: translateY(-1px); border-color: rgba(56,212,232,.38); }
.button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #041118; border-color: transparent; box-shadow: 0 12px 30px rgba(56,212,232,.14); }
.button.primary:hover { filter: brightness(1.05); }
.button.ghost { background: transparent; }
.button.small { min-height: 34px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.button.danger { color: var(--danger); }
.button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.stat-card {
    position: relative; overflow: hidden;
    padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel); min-height: 132px;
}
.stat-card::after { content: ""; position: absolute; inset: auto -30px -50px auto; width: 100px; height: 100px; border-radius: 50%; background: var(--accent-soft); filter: blur(2px); }
.stat-label { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.stat-value { display: block; margin-top: 11px; font-size: clamp(25px, 3vw, 35px); line-height: 1; font-weight: 850; letter-spacing: -.04em; }
.stat-note { display: block; margin-top: 10px; color: var(--subtle); font-size: 12px; }

.section-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.module-card {
    position: relative; overflow: hidden; min-height: 220px;
    padding: 20px; display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel); transition: .2s ease;
}
.module-card:hover { transform: translateY(-3px); border-color: rgba(56,212,232,.28); box-shadow: 0 20px 45px rgba(0,0,0,.12); }
.module-index { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-weight: 900; }
.module-card h3 { margin: 20px 0 8px; font-size: 19px; }
.module-card p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.module-link { margin-top: auto; color: var(--accent); font-size: 13px; font-weight: 800; }

.panel {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel); box-shadow: 0 14px 42px rgba(0,0,0,.08);
}
.panel + .panel { margin-top: 16px; }
.panel-header { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-title { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.panel-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }

.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.filter-grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.input, .select {
    width: 100%; min-height: 46px; padding: 0 13px;
    font-size: 15px;
    border-radius: 11px; border: 1px solid var(--line-strong);
    background: var(--panel-2); color: var(--text); outline: none;
    transition: border .15s, box-shadow .15s, background .15s;
}
.input:focus, .select:focus { border-color: rgba(56,212,232,.58); box-shadow: 0 0 0 3px rgba(56,212,232,.09); }
.select:disabled { opacity: .48; cursor: not-allowed; }
.field-hint { color: var(--subtle); font-size: 11px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }

.result-toolbar { padding: 14px 18px; display: flex; gap: 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.result-count { font-size: 13px; color: var(--muted); }
.result-count strong { color: var(--text); }
.result-actions { display: flex; align-items: center; gap: 8px; }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 850px; border-collapse: collapse; }
.data-table th { padding: 12px 14px; text-align: left; color: var(--subtle); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); white-space: nowrap; }
.data-table td { padding: 14px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; vertical-align: middle; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: rgba(56,212,232,.035); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .primary-cell { color: var(--text); font-weight: 750; }
.table-link { color: var(--accent); font-weight: 800; }
.table-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.045); border: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(56,212,232,.18); }
.badge.success { background: rgba(106,231,164,.08); color: var(--success); border-color: rgba(106,231,164,.18); }
.badge.warning { background: rgba(242,191,97,.08); color: var(--warning); border-color: rgba(242,191,97,.18); }
.badge.danger { background: rgba(255,123,143,.08); color: var(--danger); border-color: rgba(255,123,143,.18); }

.cards-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.result-card { border: 1px solid var(--line); border-radius: 15px; padding: 16px; background: rgba(255,255,255,.018); min-width: 0; }
.result-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.result-card h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.result-card p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.result-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.result-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }

.empty-state { padding: 52px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.empty-state.compact { padding: 34px 20px; }
.empty-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(56,212,232,.15); font-size: 19px; }
.empty-state strong { margin-top: 12px; font-size: 15px; }
.empty-state p { margin: 6px 0 0; color: var(--muted); max-width: 520px; font-size: 13px; }

.loading { min-height: 160px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 17px; border-top: 1px solid var(--line); }
.page-btn { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.page-btn:hover, .page-btn.is-current { border-color: rgba(56,212,232,.28); background: var(--accent-soft); color: var(--accent); }
.page-gap { color: var(--subtle); padding: 0 3px; }

.detail-hero { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); gap: 16px; }
.part-visual { min-height: 390px; padding: 24px; display: grid; place-items: center; position: relative; overflow: hidden; }
.part-visual::before { content: ""; position: absolute; width: 270px; height: 270px; border-radius: 50%; border: 1px solid rgba(56,212,232,.14); box-shadow: 0 0 0 40px rgba(56,212,232,.025), 0 0 0 78px rgba(56,212,232,.015); }
.part-visual img { position: relative; z-index: 2; max-width: min(100%, 360px); max-height: 340px; object-fit: contain; filter: drop-shadow(0 26px 32px rgba(0,0,0,.25)); }
.part-visual .no-image { position: relative; z-index: 2; text-align: center; color: var(--muted); }
.part-code { display: inline-flex; color: var(--accent); font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; letter-spacing: .08em; }
.detail-copy { padding: clamp(24px, 4vw, 42px); }
.detail-copy h2 { font-size: clamp(32px, 5vw, 60px); margin: 6px 0 6px; letter-spacing: -.055em; line-height: 1; }
.detail-copy .lead { color: var(--muted); font-size: 16px; margin: 0; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.metric-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 24px; }
.metric { padding: 13px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.metric span { display: block; color: var(--subtle); text-transform: uppercase; font-size: 10px; letter-spacing: .1em; font-weight: 850; }
.metric strong { display: block; margin-top: 6px; font-size: 17px; }

.spec-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.spec-item { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.spec-item span { display: block; color: var(--subtle); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.spec-item strong { display: block; margin-top: 7px; font-size: 14px; overflow-wrap: anywhere; }

.info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--muted); }
.info-row strong { text-align: right; }

.integrity-strip { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid rgba(106,231,164,.16); background: rgba(106,231,164,.045); border-radius: 13px; color: var(--muted); font-size: 13px; }
.integrity-strip strong { color: var(--success); }

.search-overlay { position: fixed; z-index: 100; inset: 0; display: none; align-items: flex-start; justify-content: center; padding: 9vh 16px 20px; background: rgba(2,8,14,.72); backdrop-filter: blur(11px); }
.search-overlay.is-open { display: flex; }
.search-dialog { width: min(720px, 100%); max-height: 78vh; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--panel-solid); box-shadow: 0 34px 100px rgba(0,0,0,.45); }
.search-dialog-head { display: flex; align-items: center; gap: 12px; padding: 13px; border-bottom: 1px solid var(--line); }
.search-dialog-head input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 17px; }
.search-dialog-body { overflow-y: auto; padding: 10px; }
.search-group-label { padding: 8px 9px 5px; color: var(--subtle); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 850; }
.search-result-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 11px; }
.search-result-item:hover, .search-result-item.is-selected { background: var(--accent-soft); }
.search-result-main { min-width: 0; }
.search-result-main strong { display: block; font-size: 14px; }
.search-result-main small { display: block; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-dialog-foot { display: flex; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 11px; }

.toast-stack { position: fixed; z-index: 120; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 260px; max-width: 380px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel-solid); box-shadow: var(--shadow); color: var(--muted); font-size: 13px; animation: toastIn .2s ease; }
.toast strong { color: var(--text); }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

.health-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.health-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); }
.health-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.health-card h3 { margin: 0; font-size: 15px; }
.health-card p { color: var(--muted); font-size: 12px; margin: 8px 0 0; overflow-wrap: anywhere; }

.callout { padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--muted); font-size: 13px; }
.callout.warning { border-color: rgba(242,191,97,.2); background: rgba(242,191,97,.045); }
.callout strong { color: var(--text); }

@media (max-width: 1180px) {
    .stats-grid, .section-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .cards-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .filter-grid.cols-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .spec-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .health-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 860px) {
    :root { --sidebar: 260px; --topbar: 72px; }
    .sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow); }
    .sidebar.is-open { transform: translateX(0); }
    .page-shell { margin-left: 0; }
    .mobile-only { display: grid; }
    .topbar { padding-inline: 14px; }
    .global-search-trigger { min-width: 43px; width: 43px; padding: 0; justify-content: center; }
    .global-search-trigger .search-placeholder, .global-search-trigger kbd { display: none; }
    .detail-hero { grid-template-columns: 1fr; }
    .part-visual { min-height: 320px; }
    .filter-grid, .filter-grid.cols-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .page-content { padding: 15px; }
    .stats-grid, .section-grid, .cards-list, .filter-grid, .filter-grid.cols-4, .spec-grid, .health-grid { grid-template-columns: 1fr; }
    .hero { padding: 25px 20px; border-radius: 19px; }
    .hero h2 { font-size: 36px; }
    .panel-header, .panel-body { padding: 15px; }
    .result-toolbar { align-items: flex-start; flex-direction: column; }
    .metric-row { grid-template-columns: 1fr; }
    .part-visual { min-height: 260px; }
    .part-visual img { max-height: 250px; }
    .detail-copy { padding: 22px 18px; }
    .detail-copy h2 { font-size: 38px; }
    .footer { padding-inline: 15px; flex-wrap: wrap; }
}


/* Public production presentation */
.public-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    margin-top: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--muted);
}
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 900;
    font-family: Georgia, serif;
}
@media (max-width: 1200px) { .public-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .public-stats { grid-template-columns: 1fr 1fr; } .provenance-card { padding: 15px; } }
@media (max-width: 460px) { .public-stats { grid-template-columns: 1fr; } }
