/* ═══════════════════════════════════════════════════════════════════════════
   DataBois — Feuille de styles principale
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── RESET & VARIABLES ────────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --bg: #0D0E0C;
    --surface: #151613;
    --surface2: #1E1F1C;
    --surface3: #272824;
    --border: #2E302B;
    --border2: #3A3C36;
    --text: #E8E6DF;
    --muted: #7A7B72;
    --accent: #C8B560;
    --accent2: #8FA644;
    --accent3: #6B9E7A;
    --red: #C46A4A;
    --info: #6B8FAA;
    --mono: 'IBM Plex Mono', monospace;
    --sans: 'IBM Plex Sans', sans-serif;
    --serif: 'Fraunces', serif;
}

/* ── THÈME CLAIR ──────────────────────────────────────────────────────────── */
[data-theme="light"] {
    --bg: #F4F3ED;
    --surface: #FFFFFF;
    --surface2: #ECEAE2;
    --surface3: #E2E0D6;
    --border: #D4D2C6;
    --border2: #C2C0B2;
    --text: #1C1D19;
    --muted: #6A6B60;
    --accent: #8A7220;
    --accent2: #587020;
    --accent3: #366648;
    --red: #A03A1C;
    --info: #2E5572;
}

[data-theme="light"] .topbar,
[data-theme="light"] .sidebar,
[data-theme="light"] .searchbar {
    box-shadow: 0 1px 0 var(--border)
}

[data-theme="light"] .card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08)
}

[data-theme="light"] .card-header {
    background: #e8e6de
}

[data-theme="light"] .no-cloud {
    color: var(--border2)
}

[data-theme="light"] .sync-dot {
    background: var(--accent2)
}

[data-theme="light"] .logo-mark {
    border-color: var(--accent)
}

[data-theme="light"] .logo-mark::before {
    background: var(--accent)
}

/* ── BASE ─────────────────────────────────────────────────────────────────── */
html,
body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans)
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

::-webkit-scrollbar-track {
    background: var(--surface)
}

::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 3px
}

/* ── ANIMATIONS ───────────────────────────────────────────────────────────── */
@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.4
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

/* ── LAYOUT ───────────────────────────────────────────────────────────────── */
.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden
}

.hidden {
    display: none !important
}

.loading {
    text-align: center;
    padding: 60px 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 13px
}

/* ── TOPBAR ───────────────────────────────────────────────────────────────── */
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    z-index: 50;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px
}

.logo-mark {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-mark::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.logo-text {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 300;
    color: var(--text);
    letter-spacing: 0.02em
}

.logo-text span {
    color: var(--accent);
    font-style: italic
}

.logo-badge {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    border: 1px solid var(--border2);
    padding: 2px 8px;
    border-radius: 2px;
    letter-spacing: 0.06em
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px
}

.sync-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted)
}

.sync-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent2);
    animation: pulse 2s infinite
}

/* ── BOUTONS ──────────────────────────────────────────────────────────────── */
.btn-top {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
    transition: all .15s;
    letter-spacing: 0.04em;
}

.btn-top:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.btn-top.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #0D0E0C;
    font-weight: 500
}

.btn-top.primary:hover {
    background: #d9c870
}

.btn-cancel {
    background: none;
    border: 1px solid var(--border2);
    color: var(--muted);
    padding: 9px 18px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
    transition: color .12s
}

.btn-cancel:hover {
    color: var(--text)
}

.btn-submit {
    background: var(--accent);
    border: none;
    color: #0D0E0C;
    padding: 9px 20px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
    font-weight: 500;
    transition: background .12s;
    letter-spacing: 0.04em
}

.btn-submit:hover {
    background: #d9c870
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed
}

.btn-edit {
    background: rgba(200, 181, 96, 0.08);
    border: 1px solid rgba(200, 181, 96, 0.35);
    color: var(--accent);
    padding: 5px 13px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
    transition: all .15s
}

.btn-edit:hover {
    background: rgba(200, 181, 96, 0.18);
    border-color: var(--accent)
}

.btn-delete {
    background: rgba(196, 106, 74, 0.1);
    border: 1px solid rgba(196, 106, 74, 0.35);
    color: var(--red);
    padding: 5px 13px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
    transition: all .15s
}

.btn-delete:hover {
    background: rgba(196, 106, 74, 0.22);
    border-color: var(--red)
}

.btn-share {
    background: rgba(107, 143, 170, 0.1);
    border: 1px solid rgba(107, 143, 170, 0.35);
    color: var(--info);
    font-family: var(--mono);
    font-size: 11px;
    padding: 5px 13px;
    border-radius: 2px;
    cursor: pointer
}

.btn-share:hover {
    background: rgba(107, 143, 170, 0.22);
    border-color: var(--info)
}

.btn-share.off {
    background: rgba(80, 80, 80, 0.08);
    border-color: var(--border2);
    color: var(--muted)
}

.lot-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--mono);
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 1px;
    border: 1px solid;
    cursor: pointer;
    background: none;
    transition: all .15s;
    letter-spacing: .03em
}

.lot-share-btn.on {
    color: var(--accent2);
    border-color: rgba(143, 166, 68, .45);
    background: rgba(143, 166, 68, .07)
}

.lot-share-btn.on:hover {
    background: rgba(143, 166, 68, .16)
}

.lot-share-btn.off {
    color: var(--muted);
    border-color: var(--border2);
    background: transparent
}

.lot-share-btn.off:hover {
    border-color: var(--red);
    color: var(--red)
}

/* ── MENU UTILISATEUR ─────────────────────────────────────────────────────── */
.user-menu-wrap {
    position: relative
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 3px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all .15s;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text)
}

.user-avatar-btn:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.user-avatar-btn .ua-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #0D0E0C;
    flex-shrink: 0
}

.user-avatar-btn .ua-caret {
    font-size: 9px;
    color: var(--muted);
    transition: transform .2s
}

.user-avatar-btn.open .ua-caret {
    transform: rotate(180deg)
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 200;
    overflow: hidden;
    display: none
}

.user-dropdown.open {
    display: block
}

.ud-header {
    padding: 10px 14px 8px;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted)
}

.ud-header strong {
    display: block;
    font-size: 12px;
    color: var(--text);
    margin-bottom: 1px
}

.ud-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
    cursor: pointer;
    transition: background .12s;
    border: none;
    background: none;
    width: 100%;
    text-align: left
}

.ud-item:hover {
    background: var(--surface2);
    color: var(--accent)
}

.ud-item.hidden {
    display: none
}

.ud-sep {
    height: 1px;
    background: var(--border);
    margin: 3px 0
}

.ud-item.danger {
    color: var(--red)
}

.ud-item.danger:hover {
    background: rgba(196, 106, 74, .08);
    color: var(--red)
}

/* ── VIEW SWITCHER ────────────────────────────────────────────────────────── */
.view-switcher {
    display: flex;
    gap: 2px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 3px;
    padding: 2px
}

.vs-btn {
    font-family: var(--mono);
    font-size: 10px;
    padding: 4px 10px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    background: none;
    color: var(--muted);
    transition: all .15s;
    letter-spacing: .04em
}

.vs-btn.active {
    background: var(--accent);
    color: #0D0E0C;
    font-weight: 500
}

.vs-btn:hover:not(.active) {
    color: var(--text)
}

/* ── SECTIONS DE VUE ──────────────────────────────────────────────────────── */
.view-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.view-section.hidden {
    display: none !important
}

/* ── SEARCHBAR ────────────────────────────────────────────────────────────── */
.searchbar {
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.search-field {
    flex: 1;
    position: relative;
    max-width: 680px
}

.search-field input {
    width: 100%;
    background: var(--surface3);
    border: 1px solid var(--border2);
    border-radius: 3px;
    padding: 9px 14px 9px 38px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: border-color .15s;
}

.search-field input:focus {
    border-color: var(--accent)
}

.search-field input::placeholder {
    color: var(--muted)
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 14px;
    pointer-events: none
}

.quick-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

.qf {
    font-family: var(--mono);
    font-size: 11px;
    border: 1px solid var(--border2);
    color: var(--muted);
    padding: 5px 11px;
    border-radius: 2px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    background: none;
}

.qf:hover {
    border-color: var(--border2);
    color: var(--text)
}

.qf.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(200, 181, 96, 0.08)
}

.search-stats {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap
}

/* ── LAYOUT BODY / SIDEBAR / CONTENT ─────────────────────────────────────── */
.body {
    display: flex;
    flex: 1;
    overflow: hidden
}

.sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sb-section {
    padding: 0 16px;
    margin-bottom: 20px
}

.sb-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 14px
}

/* ── KPIs ─────────────────────────────────────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px
}

.kpi {
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 10px 10px 8px;
    border-radius: 3px
}

.kpi-val {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 300;
    color: var(--accent);
    line-height: 1
}

.kpi-lbl {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px
}

/* ── FILTRES SIDEBAR ──────────────────────────────────────────────────────── */
.filter-list {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.fl-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 2px;
    cursor: pointer;
    transition: background .1s
}

.fl-item:hover {
    background: var(--surface2)
}

.fl-item input[type=checkbox] {
    accent-color: var(--accent);
    flex-shrink: 0
}

.fl-item-lbl {
    font-size: 13px;
    color: var(--text);
    flex: 1
}

.fl-count {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    background: var(--surface3);
    padding: 1px 6px;
    border-radius: 10px
}

.fmt-legend {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.fmt-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted)
}

.fmt-dot {
    width: 8px;
    height: 8px;
    border-radius: 1px;
    flex-shrink: 0
}

/* ── SLIDERS DIMENSIONS ───────────────────────────────────────────────────── */
.dim-slider-group {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.dim-slider-row {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.dim-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline
}

.dim-slider-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em
}

.dim-slider-val {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent)
}

.dim-range-wrap {
    position: relative;
    height: 18px;
    display: flex;
    align-items: center
}

.dim-range-wrap input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    background: var(--border2)
}

.dim-range-wrap input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--surface);
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--accent)
}

.dim-range-wrap input[type=range]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--surface);
    cursor: pointer
}

.dim-reset {
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 10px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px
}

.dim-reset:hover {
    color: var(--accent)
}

/* ── CARTES SPÉCIMENS ─────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s, transform .15s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--border2);
    transform: translateY(-1px)
}

.card-header {
    height: 130px;
    position: relative;
    overflow: hidden;
    background: #080908;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header canvas {
    width: 100%;
    height: 100%;
    display: block
}

.no-cloud {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--border2)
}

.no-cloud span {
    font-family: var(--mono);
    font-size: 11px
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(8, 9, 8, 0.9));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-id {
    font-family: var(--mono);
    font-size: 10px;
    color: rgba(232, 230, 223, 0.6)
}

.card-formats {
    display: flex;
    gap: 4px
}

.card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.card-essence {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 300;
    color: var(--text)
}

.card-dims {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted)
}

.card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap
}

.card-footer {
    border-top: 1px solid var(--border);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.card-loc {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px
}

.card-btns {
    display: flex;
    gap: 5px
}

.cbtn {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 4px 9px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 10px;
    cursor: pointer;
    transition: all .12s;
}

.cbtn:hover {
    border-color: var(--accent);
    color: var(--accent)
}

/* ── BADGES ───────────────────────────────────────────────────────────────── */
.fmt-badge {
    font-family: var(--mono);
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 1px;
    font-weight: 500
}

.fmt-xyz {
    background: rgba(107, 158, 122, 0.3);
    color: #6B9E7A
}

.fmt-las {
    background: rgba(111, 143, 170, 0.3);
    color: #6B8FAA
}

.fmt-ply {
    background: rgba(200, 181, 96, 0.3);
    color: #C8B560
}

.fmt-csv {
    background: rgba(143, 166, 68, 0.3);
    color: #8FA644
}

.fmt-e57 {
    background: rgba(196, 106, 74, 0.3);
    color: #C46A4A
}

.fmt-pdf {
    background: rgba(122, 123, 114, 0.3);
    color: #aaa
}

.fmt-url {
    background: rgba(180, 120, 200, 0.3);
    color: #c090d0
}

.fmt-step,
.fmt-stp {
    background: rgba(80, 160, 200, 0.3);
    color: #50a0c8
}

.fmt-stl {
    background: rgba(60, 180, 160, 0.3);
    color: #3cb4a0
}

.fmt-img {
    background: rgba(200, 140, 80, 0.3);
    color: #c8a060
}

.status-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    font-family: var(--mono);
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 1px;
    letter-spacing: 0.04em;
}

.status-dispo {
    background: rgba(143, 166, 68, 0.2);
    color: var(--accent2);
    border: 1px solid rgba(143, 166, 68, 0.3)
}

.status-reserve {
    background: rgba(196, 106, 74, 0.15);
    color: var(--red);
    border: 1px solid rgba(196, 106, 74, 0.3)
}

.status-private {
    background: rgba(80, 80, 80, 0.18);
    color: var(--muted);
    border: 1px solid var(--border2)
}

.tag {
    font-family: var(--mono);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 1px;
    border: 1px solid var(--border2);
    color: var(--muted)
}

.tag.remploi {
    border-color: rgba(107, 158, 122, 0.4);
    color: var(--accent3)
}

.tag.scan {
    border-color: rgba(111, 143, 170, 0.4);
    color: var(--info)
}

/* ── MODALES / OVERLAYS ───────────────────────────────────────────────────── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 4px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-top {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 5;
}

.modal-title {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 300;
    color: var(--text)
}

.modal-subtitle {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px
}

.modal-close {
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--muted);
    width: 30px;
    height: 30px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-close:hover {
    color: var(--text)
}

.modal-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 22px
}

.upload-modal {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 4px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto
}

/* ── DÉTAIL SPÉCIMEN ──────────────────────────────────────────────────────── */
.msec-title {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--border);
}

.pc-big {
    background: #060807;
    border: 1px solid var(--border);
    border-radius: 3px;
    height: 260px;
    position: relative;
    overflow: hidden
}

.pc-big canvas {
    width: 100%;
    height: 100%
}

.pc-meta {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-family: var(--mono);
    font-size: 10px;
    color: rgba(232, 230, 223, 0.5);
    line-height: 1.7
}

.info-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border)
}

.info-cell {
    background: var(--surface);
    padding: 10px 14px
}

.info-cell-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em
}

.info-cell-val {
    font-size: 14px;
    color: var(--text)
}

.photos-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto
}

.photo-thumb {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border2);
    font-size: 10px;
    font-family: var(--mono);
}

.dl-table {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.dl-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color .12s;
    text-decoration: none;
}

.dl-row:hover {
    border-color: var(--accent2)
}

.dl-type {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    width: 40px;
    text-align: center;
    padding: 3px 0;
    border-radius: 2px;
    flex-shrink: 0
}

.dl-name {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
    flex: 1
}

.dl-size {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    margin-left: auto
}

.dl-icon {
    color: var(--muted);
    font-size: 13px;
    flex-shrink: 0
}

.remploi-box {
    background: rgba(107, 158, 122, 0.06);
    border: 1px solid rgba(107, 158, 122, 0.2);
    border-radius: 3px;
    padding: 14px 16px
}

.remploi-score {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px
}

.score-val {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 300;
    color: var(--accent3)
}

.score-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent3)
}

.remploi-text {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6
}

/* ── BANDEAU RÉSERVATION ──────────────────────────────────────────────────── */
.reservation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-radius: 3px;
    gap: 12px
}

.reservation-banner.reserved {
    background: rgba(196, 106, 74, 0.1);
    border: 1px solid rgba(196, 106, 74, 0.35)
}

.reservation-banner.available {
    background: rgba(143, 166, 68, 0.07);
    border: 1px solid rgba(143, 166, 68, 0.25)
}

.reservation-banner-label {
    display: flex;
    align-items: center;
    gap: 10px
}

.reservation-banner-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0
}

.reserved .reservation-banner-dot {
    background: var(--red)
}

.available .reservation-banner-dot {
    background: var(--accent2)
}

.reservation-banner-text {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500
}

.reserved .reservation-banner-text {
    color: var(--red)
}

.available .reservation-banner-text {
    color: var(--accent2)
}

.reservation-banner-sub {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px
}

.btn-toggle-resa {
    font-family: var(--mono);
    font-size: 11px;
    padding: 5px 13px;
    border-radius: 2px;
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0
}

.reserved .btn-toggle-resa {
    background: rgba(143, 166, 68, 0.1);
    border: 1px solid rgba(143, 166, 68, 0.3);
    color: var(--accent2)
}

.reserved .btn-toggle-resa:hover {
    background: rgba(143, 166, 68, 0.2)
}

.available .btn-toggle-resa {
    background: rgba(196, 106, 74, 0.1);
    border: 1px solid rgba(196, 106, 74, 0.3);
    color: var(--red)
}

.available .btn-toggle-resa:hover {
    background: rgba(196, 106, 74, 0.2)
}

/* ── FORMULAIRE SPÉCIMEN ──────────────────────────────────────────────────── */
.form-section {
    margin-bottom: 20px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px
}

.field label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em
}

.field input,
.field select,
.field textarea {
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 2px;
    padding: 8px 12px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
    outline: none;
    transition: border-color .12s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent)
}

.field input::placeholder {
    color: var(--muted)
}

.field textarea {
    resize: vertical;
    min-height: 72px;
    font-size: 12px
}

.field select option {
    background: var(--surface2)
}

.drop-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.dropzone {
    border: 1px dashed var(--border2);
    border-radius: 3px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s
}

.dropzone:hover {
    border-color: var(--accent);
    background: rgba(200, 181, 96, 0.04)
}

.dropzone.has-file {
    border-color: var(--accent2);
    background: rgba(143, 166, 68, 0.05)
}

.dz-icon {
    font-size: 20px;
    margin-bottom: 6px
}

.dz-title {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text);
    font-weight: 500
}

.dz-sub {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 4px
}

.url-field {
    display: flex;
    gap: 8px
}

.url-field input {
    flex: 1
}

.btn-add-url {
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap
}

.btn-add-url:hover {
    color: var(--text)
}

.url-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px
}

.url-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface3);
    padding: 5px 10px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--info)
}

.url-item button {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    margin-left: auto
}

.existing-file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 8px 12px;
    margin-bottom: 6px;
    transition: border-color .12s
}

.existing-file-row.marked {
    border-color: var(--red);
    background: rgba(196, 106, 74, 0.08);
    opacity: 0.6
}

.existing-file-row .dl-type {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    width: 40px;
    text-align: center;
    padding: 3px 0;
    border-radius: 2px;
    flex-shrink: 0
}

.existing-file-row .ef-name {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
    flex: 1
}

.existing-file-row .ef-size {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted)
}

.ef-remove {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
    flex-shrink: 0;
    transition: color .12s
}

.ef-remove:hover {
    color: var(--red)
}

.ef-restore {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 11px;
    font-family: var(--mono);
    padding: 0 4px;
    flex-shrink: 0;
    transition: color .12s
}

.ef-restore:hover {
    color: var(--accent2)
}

/* ── TOAST ────────────────────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
    background: var(--surface2);
    border: 1px solid var(--accent2);
    color: var(--text);
    padding: 12px 18px;
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 12px;
    transform: translateY(80px);
    opacity: 0;
    transition: all .3s;
    max-width: 340px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1
}

.toast.error {
    border-color: var(--red)
}

.toast-title {
    color: var(--accent2);
    font-weight: 500;
    margin-bottom: 3px
}

.toast.error .toast-title {
    color: var(--red)
}

/* ── LOGIN ────────────────────────────────────────────────────────────────── */
.login-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center
}

.login-box {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 4px;
    padding: 40px 44px;
    width: 100%;
    max-width: 380px
}

.login-logo {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 4px
}

.login-logo span {
    color: var(--accent);
    font-style: italic
}

.login-sub {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 28px
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px
}

.login-field label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em
}

.login-field input {
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 2px;
    padding: 9px 12px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: border-color .12s;
    width: 100%
}

.login-field input:focus {
    border-color: var(--accent)
}

/* Champ mot de passe avec toggle */
.login-pw-wrap {
    position: relative;
    display: flex;
    align-items: center
}

.login-pw-wrap input {
    padding-right: 40px
}

.login-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 3px;
    line-height: 0;
    border-radius: 2px;
    transition: color .12s
}

.login-pw-toggle:hover {
    color: var(--accent)
}

.login-pw-toggle svg {
    width: 16px;
    height: 16px;
    display: block
}

/* Lien mot de passe oublié */
.login-forgot {
    text-align: right;
    margin: -6px 0 10px;
    font-family: var(--mono);
    font-size: 11px
}

.login-forgot a {
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
    transition: color .12s
}

.login-forgot a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px
}

.login-error {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--red);
    margin-bottom: 10px;
    min-height: 16px
}

.btn-login {
    width: 100%;
    background: var(--accent);
    border: none;
    color: #0D0E0C;
    padding: 10px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: .04em;
    transition: background .12s
}

.btn-login:hover {
    background: #d9c870
}

.btn-login:disabled {
    opacity: .5;
    cursor: not-allowed
}

.login-switch {
    text-align: center;
    margin-top: 16px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted)
}

.login-switch a {
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px
}

.login-switch a:hover {
    color: #d9c870
}

.login-success {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent2);
    background: rgba(143, 166, 68, .1);
    border: 1px solid rgba(143, 166, 68, .3);
    border-radius: 3px;
    padding: 9px 12px;
    margin-bottom: 10px;
    line-height: 1.5;
    display: none
}

.login-credit {
    position: absolute;
    bottom: 24px;
    right: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 320px;
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15)
}

.login-credit img {
    height: 44px;
    flex-shrink: 0
}

.login-credit-text {
    font-family: var(--mono);
    font-size: 10px;
    color: #1C1D19;
    line-height: 1.6;
    text-align: center
}

/* ── PARAMÈTRES / THÈME ───────────────────────────────────────────────────── */
.settings-panel {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 4px;
    width: 100%;
    max-width: 480px
}

.theme-choice {
    display: flex;
    gap: 16px;
    margin-top: 4px
}

.theme-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1
}

.theme-preview {
    width: 100%;
    height: 90px;
    border-radius: 3px;
    border: 2px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 7px;
    transition: border-color .15s
}

.theme-option:hover .theme-preview {
    border-color: var(--border2)
}

.theme-option.active .theme-preview {
    border-color: var(--accent)
}

.theme-option-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted)
}

.theme-option.active .theme-option-label {
    color: var(--accent)
}

.theme-option.active .theme-check {
    display: inline
}

.theme-check {
    display: none;
    font-size: 12px;
    color: var(--accent);
    font-family: var(--mono)
}

.dark-preview {
    background: #0D0E0C
}

.dark-preview .tp-bar {
    height: 10px;
    background: #151613;
    border-radius: 1px
}

.dark-preview .tp-cards {
    display: flex;
    gap: 4px;
    margin-top: 4px
}

.dark-preview .tp-card {
    flex: 1;
    height: 36px;
    background: #151613;
    border-radius: 2px;
    border: 1px solid #2E302B
}

.light-preview {
    background: #F4F3ED
}

.light-preview .tp-bar {
    height: 10px;
    background: #FFFFFF;
    border-radius: 1px;
    border: 1px solid #D4D2C6
}

.light-preview .tp-cards {
    display: flex;
    gap: 4px;
    margin-top: 4px
}

.light-preview .tp-card {
    flex: 1;
    height: 36px;
    background: #FFFFFF;
    border-radius: 2px;
    border: 1px solid #D4D2C6
}

/* ── PANEL UTILISATEURS (ADMIN) ───────────────────────────────────────────── */
.user-panel {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 4px;
    width: min(98vw, 1400px);
    height: 94vh;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.user-panel .modal-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden
}

/* Zone tableau : scrollable si beaucoup d'utilisateurs */
.users-table-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    padding: 18px 22px 0
}

/* En-tête collante */
.users-table {
    width: 100%;
    border-collapse: collapse
}

.users-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface)
}

.users-table th {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    white-space: nowrap
}

.users-table th.th-left {
    text-align: left
}

.users-table th.th-group {
    border-bottom: 1px solid var(--border);
    padding: 5px 10px;
    font-size: 9px;
    font-family: var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase
}

.users-table th.th-group.own {
    color: var(--accent2);
    background: rgba(143, 166, 68, .06)
}

.users-table th.th-group.other {
    color: var(--info);
    background: rgba(107, 143, 170, .06)
}

.users-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    vertical-align: middle;
    text-align: center
}

.users-table td.td-left {
    text-align: left
}

.users-table tr:last-child td {
    border-bottom: none
}

.perm-check {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
    cursor: pointer
}

.perm-indicator {
    font-family: var(--mono);
    font-size: 13px
}

.perm-indicator.yes {
    color: var(--accent2)
}

.perm-indicator.no {
    color: var(--border2)
}

.badge-admin {
    font-family: var(--mono);
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 1px;
    background: rgba(200, 181, 96, 0.15);
    color: var(--accent);
    border: 1px solid rgba(200, 181, 96, 0.3)
}

.badge-user {
    font-family: var(--mono);
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 1px;
    background: var(--surface3);
    color: var(--muted);
    border: 1px solid var(--border2)
}

.btn-user-action {
    background: none;
    border: 1px solid var(--border2);
    color: var(--muted);
    padding: 3px 9px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 10px;
    cursor: pointer;
    transition: all .12s
}

.btn-user-action:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.btn-user-del {
    background: none;
    border: 1px solid rgba(196, 106, 74, .3);
    color: var(--red);
    padding: 3px 9px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 10px;
    cursor: pointer;
    transition: all .12s
}

.btn-user-del:hover {
    border-color: var(--red);
    background: rgba(196, 106, 74, .1)
}

.new-user-form {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-top: 1px solid var(--border2);
    border-radius: 0 0 4px 4px;
    padding: 16px 22px;
    flex-shrink: 0
}

.form-inline {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px
}

.form-inline-perms {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    flex-wrap: wrap
}

.form-inline-perms label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer
}

.perm-group-label {
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 2px 6px;
    border-radius: 2px;
    margin-right: 4px;
    flex-shrink: 0
}

.perm-group-label.own {
    color: var(--accent2);
    background: rgba(143, 166, 68, .1)
}

.perm-group-label.other {
    color: var(--info);
    background: rgba(107, 143, 170, .1)
}

/* ── VUE MAÎTRE D'ŒUVRE ───────────────────────────────────────────────────── */
.mo-topbar {
    padding: 16px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0
}

.mo-title {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 300;
    color: var(--text)
}

.mo-sub {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px
}

.mo-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px
}

.mo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px
}

.chantier-card {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 4px;
    padding: 20px;
    cursor: pointer;
    transition: all .15s;
    position: relative
}

.chantier-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2)
}

.ch-statut {
    font-family: var(--mono);
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 1px;
    border: 1px solid;
    display: inline-block;
    margin-bottom: 10px
}

.ch-statut.en-cours {
    color: var(--accent2);
    border-color: rgba(143, 166, 68, .4);
    background: rgba(143, 166, 68, .08)
}

.ch-statut.termine {
    color: var(--muted);
    border-color: var(--border2);
    background: var(--surface2)
}

.ch-statut.suspendu {
    color: var(--red);
    border-color: rgba(196, 106, 74, .4);
    background: rgba(196, 106, 74, .08)
}

.ch-nom {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 4px
}

.ch-adresse {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 12px
}

.ch-meta {
    display: flex;
    gap: 14px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted)
}

.ch-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity .15s
}

.chantier-card:hover .ch-actions {
    opacity: 1
}

.ch-cover {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 14px;
    display: block
}

.ch-cover-placeholder {
    width: 100%;
    height: 100px;
    border-radius: 3px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--border2)
}

.ch-btn {
    background: none;
    border: 1px solid var(--border2);
    color: var(--muted);
    padding: 3px 8px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 10px;
    cursor: pointer;
    transition: all .12s
}

.ch-btn:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.ch-btn.del:hover {
    border-color: var(--red);
    color: var(--red)
}

/* ── VUE DÉTAIL CHANTIER ──────────────────────────────────────────────────── */
.cd-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 54px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0
}

.cd-back {
    background: none;
    border: 1px solid var(--border2);
    color: var(--muted);
    padding: 5px 12px;
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
    transition: all .15s
}

.cd-back:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.cd-bar-title {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 300;
    color: var(--text);
    flex: 1
}

.cd-bar-sub {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted)
}

.cd-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.cd-info-banner {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 4px;
    overflow: hidden
}

.cd-banner-photo {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block
}

.cd-banner-meta {
    padding: 16px 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center
}

.cd-desc {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    padding: 0 20px 16px
}

.cd-section-title {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border)
}