:root {
    color-scheme: dark;
    --bg-deep: #151820;
    --bg-panel: #1a1e26;
    --bg-input: #12151c;
    --bg-input-focus: #1c212b;
    --border: #3a4252;
    --border-soft: #4a5568;
    --text: #f0f2f5;
    --text-muted: #9aa3b2;
    --text-dim: #6b7382;
    --accent: #d99e32;
    --accent-bright: #e8b84a;
    --accent-glow: rgba(217, 158, 50, 0.3);
    --accent-soft: rgba(217, 158, 50, 0.12);
    --green: #4ade80;
    --green-bright: #6ee7a0;
    --grey-btn: #1e2430;
    --grey-btn-hover: #272e3c;
    --danger: #c45c5c;
    --warn: #e8b060;
    --radius: 4px;
    --radius-sm: 2px;
    --font: "Google Sans Code", "Cascadia Code", Consolas, monospace;
    --mono: "Google Sans Code", "Cascadia Code", Consolas, monospace;
    --tree-width: 280px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    font-family: var(--font);
    font-synthesis: none;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background:
        radial-gradient(ellipse 70% 45% at 20% 0%, rgba(58, 66, 82, 0.35), transparent),
        radial-gradient(ellipse 50% 40% at 90% 100%, rgba(217, 158, 50, 0.06), transparent),
        var(--bg-deep);
}

a {
    color: var(--accent-bright);
    text-decoration: none;
}

a:hover {
    color: #f5c878;
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

/* Title bar — matches DayZ Model Viewer */
.site-header {
    background: #12151c;
    border-bottom: 1px solid var(--border);
    padding: 0 1.25rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.55rem 0;
}

.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    line-height: 0;
}

.site-logo:hover {
    opacity: 0.88;
}

.site-logo img {
    display: block;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-block,
.header-content {
    flex: 1;
    min-width: 0;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.site-header h1 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-header h1 a {
    color: var(--text);
}

.site-header h1 a:hover {
    color: var(--accent-bright);
}

.subtitle,
.breadcrumb,
.meta,
.result-count,
.muted {
    color: var(--text-muted);
}

.subtitle {
    margin: 0;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.03em;
}

.stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.stats-bar.compact {
    margin: 0;
}

.stat-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    font-family: var(--mono);
    font-size: 11px;
}

.stat-chip {
    display: inline-block;
    border: 1px solid rgba(217, 158, 50, 0.28);
    background: rgba(217, 158, 50, 0.08);
    color: var(--accent-bright);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.stat-chip.warn {
    color: var(--warn);
    border-color: rgba(220, 150, 60, 0.45);
    background: rgba(180, 110, 30, 0.15);
}

.site-footer {
    flex-shrink: 0;
    background: #12151c;
    border-top: 1px solid var(--border);
    padding: 0.65rem 1.25rem;
    z-index: 20;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
}

.site-footer-start {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.site-footer-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem 1rem;
}

.site-footer-label {
    letter-spacing: 0.02em;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--grey-btn);
    color: var(--text-muted);
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.discord-link:hover {
    color: #fff;
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.18);
}

.discord-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.explorer-shell {
    display: grid;
    grid-template-columns: var(--tree-width) 1fr;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    align-items: stretch;
}

.folder-tree {
    background: rgba(18, 21, 28, 0.92);
    border-right: 1px solid var(--border);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
    height: 100%;
}

.tree-title {
    padding: 0.85rem 1rem 0.45rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-bright);
}

.tree-nav {
    display: block;
    padding-bottom: 1rem;
}

.tree-root,
.tree-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tree-item {
    display: grid;
    grid-template-columns: 1.1rem 1fr auto;
    gap: 0.4rem;
    align-items: center;
    padding-top: 0.32rem;
    padding-bottom: 0.32rem;
    padding-right: 0.85rem;
    color: var(--text);
    font-size: 12px;
    border-left: 2px solid transparent;
}

.tree-item:hover {
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
}

.tree-item.active {
    background: var(--accent-soft);
    border-left-color: var(--accent);
    color: var(--accent-bright);
}

.tree-toggle,
.tree-toggle-spacer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.tree-toggle-spacer {
    cursor: default;
}

.tree-toggle:hover {
    color: var(--accent-bright);
}

.tree-item.active .tree-toggle {
    color: var(--accent);
}

.tree-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
}

.tree-link:hover {
    color: var(--accent-bright);
}

.tree-node.collapsed > .tree-children {
    display: none;
}

.tree-count {
    color: var(--text-dim);
    font-size: 10px;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

.explorer-main {
    padding: 1.1rem 1.35rem 2rem;
    min-width: 0;
    min-height: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-anchor: none;
}

.search-box {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.search-box input {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.search-box input:hover,
.search-box input:focus {
    border-color: var(--accent);
    background: var(--bg-input-focus);
}

.search-box input:focus {
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.search-box button,
.button-secondary {
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.search-box button {
    background: rgba(217, 158, 50, 0.12);
    border-color: var(--accent);
    color: var(--accent-bright);
}

.search-box button:hover {
    background: rgba(217, 158, 50, 0.22);
    border-color: var(--accent-bright);
    box-shadow: 0 0 0 1px rgba(217, 158, 50, 0.2);
}

.button-secondary {
    background: var(--grey-btn);
    color: var(--text-muted);
    text-decoration: none;
}

.button-secondary:hover {
    background: var(--grey-btn-hover);
    color: var(--text);
    border-color: var(--accent);
}

.path-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
    font-family: var(--mono);
    font-size: 12px;
    margin-bottom: 0.65rem;
    padding: 0.55rem 0.75rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.path-bar a {
    color: var(--accent-bright);
}

.path-bar .sep {
    color: var(--text-dim);
    margin: 0 0.1rem;
}

.path-bar .current {
    color: var(--text);
    font-weight: 600;
}

.up-link {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 12px;
    color: var(--text-muted);
}

.up-link:hover {
    color: var(--accent-bright);
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.folder-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.55rem 0.7rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.folder-card:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 1px rgba(217, 158, 50, 0.15);
}

.folder-card-icon {
    width: 1rem;
    height: 0.75rem;
    border: 2px solid var(--accent);
    border-radius: 1px 1px 2px 2px;
    position: relative;
    opacity: 0.9;
}

.folder-card-icon::before {
    content: "";
    position: absolute;
    left: -2px;
    top: -4px;
    width: 0.4rem;
    height: 0.24rem;
    border: 2px solid var(--accent);
    border-bottom: 0;
    border-radius: 1px 1px 0 0;
}

.folder-card-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    font-size: 12px;
}

.folder-card-count {
    color: var(--text-dim);
    font-size: 10px;
    font-family: var(--mono);
}

.result-count {
    margin: 0 0 0.75rem;
    font-size: 12px;
}

.results-table,
.compact-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.results-table th,
.results-table td,
.compact-table th,
.compact-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    font-size: 12px;
}

.results-table th,
.compact-table th {
    background: var(--bg-input);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.results-table tr:hover td,
.compact-table tr:hover td {
    background: rgba(217, 158, 50, 0.04);
}

.results-table tr:last-child td,
.compact-table tr:last-child td {
    border-bottom: 0;
}

.meta {
    font-size: 11px;
    margin-top: 0.15rem;
    font-family: var(--mono);
    color: var(--text-dim);
}

.empty-state,
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.search-elsewhere {
    margin-top: 1rem;
    background: var(--bg-panel);
    border: 1px solid rgba(217, 158, 50, 0.35);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.search-elsewhere-title {
    margin: 0 0 0.35rem;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-bright);
}

.search-elsewhere-lead {
    margin: 0 0 0.85rem;
    color: var(--text-muted);
    font-size: 12px;
}

.search-elsewhere-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.search-elsewhere-item {
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.search-elsewhere-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.search-elsewhere-folder {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.search-elsewhere-folder a {
    font-weight: 600;
}

.search-elsewhere-count {
    color: var(--text-dim);
    font-size: 11px;
    font-family: var(--mono);
    white-space: nowrap;
}

.search-elsewhere-models {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.search-elsewhere-models li {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.search-elsewhere-models .meta {
    margin-top: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
    padding: 1.1rem 1.35rem 2rem;
}

.panel h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-bright);
}

.full-width {
    grid-column: 1 / -1;
}

.kv {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0.4rem 0.85rem;
    margin: 0;
    font-size: 12px;
}

.kv dt {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kv dd {
    margin: 0;
    font-family: var(--mono);
    color: var(--text);
}

.tag-list,
.mono-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-list li {
    background: rgba(217, 158, 50, 0.1);
    border: 1px solid rgba(217, 158, 50, 0.35);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.55rem;
    font-size: 11px;
    color: var(--accent-bright);
}

.mono-list li {
    width: 100%;
    font-family: var(--mono);
    font-size: 11px;
    word-break: break-all;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.mono-list li:last-child {
    border-bottom: 0;
}

.code-block {
    margin: 0;
    padding: 12px;
    overflow: auto;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--mono);
    font-size: 11px;
    white-space: pre-wrap;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0 0.5rem;
    font-size: 12px;
    color: var(--text-muted);
}

.pagination a {
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--grey-btn);
    color: var(--text);
}

.pagination a:hover {
    border-color: var(--accent);
    background: var(--grey-btn-hover);
    color: var(--accent-bright);
}

body.model-page .site-header {
    display: block;
    padding: 0.85rem 1.25rem;
    min-height: 0;
    flex-shrink: 0;
}

body.model-page .site-logo img {
    max-height: 52px;
}

body.model-page .site-header .header-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

body.model-page .site-header h1 {
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
    color: var(--text);
}

body.model-page .breadcrumb {
    font-size: 11px;
    font-family: var(--mono);
}

/* Model detail — vertical collapsible sections */
body.model-page .model-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 0 1.5rem;
    width: 100%;
    max-width: none;
}

body.model-page .collapse-section {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

body.model-page .collapse-section > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-bright);
    list-style: none;
    user-select: none;
    border-bottom: 1px solid transparent;
    background: var(--bg-panel);
}

body.model-page .collapse-section > summary::before {
    content: "▸";
    flex-shrink: 0;
    width: 1em;
    color: var(--text-dim);
    font-size: 11px;
    transition: transform 0.15s;
}

body.model-page .collapse-section[open] > summary::before {
    content: "▾";
    color: var(--accent);
}

body.model-page .collapse-section[open] > summary {
    border-bottom-color: var(--border);
}

body.model-page .collapse-section > summary:hover {
    background: rgba(217, 158, 50, 0.06);
}

body.model-page .collapse-section > summary::-webkit-details-marker {
    display: none;
}

body.model-page .section-icon {
    display: none;
}

body.model-page .section-count {
    margin-left: auto;
    font-weight: 500;
    color: var(--text-dim);
    font-family: var(--mono);
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
}

body.model-page .section-body {
    padding: 14px 16px;
    background: var(--bg-panel);
}

body.model-page .stats-grid {
    display: flex;
    flex-direction: column;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    overflow: hidden;
}

body.model-page .stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

body.model-page .stat-row:last-child {
    border-bottom: none;
}

body.model-page .stat-row dt {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

body.model-page .stat-row dd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--mono);
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

body.model-page .model-meta {
    margin: 10px 0 0;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--mono);
    line-height: 1.5;
}

body.model-page .overview-sections {
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

body.model-page .overview-label {
    margin: 0 0 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-bright);
}

body.model-page .overview-sections .tag-list li {
    background: rgba(217, 158, 50, 0.1);
    border: 1px solid rgba(217, 158, 50, 0.35);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.55rem;
    font-size: 11px;
    color: var(--accent-bright);
}

body.model-page .lod-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.model-page .lod-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-input);
}

body.model-page .lod-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    background: var(--bg-input);
    list-style: none;
    transition: background 0.12s;
}

body.model-page .lod-item summary::before {
    content: "▸";
    flex-shrink: 0;
    margin-right: 6px;
    color: var(--text-dim);
    font-size: 10px;
}

body.model-page .lod-item[open] summary::before {
    content: "▾";
    color: var(--accent);
}

body.model-page .lod-item summary:hover {
    background: rgba(217, 158, 50, 0.08);
}

body.model-page .lod-item summary::-webkit-details-marker {
    display: none;
}

body.model-page .lod-name {
    flex: 1;
    font-weight: 600;
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
}

body.model-page .lod-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex-shrink: 0;
}

body.model-page .badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.model-page .lod-body {
    padding: 12px;
    border-top: 1px solid var(--border);
    background: #0e1117;
}

body.model-page .meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px 12px;
    margin: 0 0 10px;
}

body.model-page .meta-grid div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.model-page .meta-grid dt {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

body.model-page .meta-grid dd {
    margin: 0;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
}

body.model-page .lod-subsection {
    margin-top: 12px;
}

body.model-page .lod-subsection h4 {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

body.model-page .path-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    overflow: hidden;
}

body.model-page .path-list li {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
}

body.model-page .path-list li:last-child {
    border-bottom: none;
}

body.model-page .path-list code {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent-bright);
    word-break: break-all;
}

body.model-page .path-list.compact li {
    padding: 6px 10px;
}

body.model-page .table-wrap {
    overflow-x: auto;
}

body.model-page .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

body.model-page .data-table th,
body.model-page .data-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

body.model-page .data-table th {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: var(--bg-input);
}

body.model-page .data-table tr:last-child td {
    border-bottom: 0;
}

body.model-page .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

body.model-page .code-block {
    max-height: 480px;
}

@media (max-width: 900px) {
    .explorer-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .folder-tree {
        max-height: 220px;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 700px) {
    .search-box {
        flex-direction: column;
    }

    .kv {
        grid-template-columns: 1fr;
    }
}
