/* Industrial Connect — feuille de style principale */

:root {
    --primary: #0057B8;
    --primary-dark: #00408a;
    --primary-soft: #e8f0fb;
    --accent: #FFC107;
    --accent-dark: #e0a800;
    --text: #1E293B;
    --muted: #64748B;
    --bg: #FFFFFF;
    --surface: #F8FAFC;
    --border: #E2E8F0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.05);
    --shadow-lg: 0 8px 28px rgba(15,23,42,.12);
    --maxw: 1160px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -.01em; }

.muted { color: var(--muted); }

/* ---------- Header / nav ---------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem clamp(1rem, 4vw, 2rem);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    background: var(--primary); color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 800; font-size: .95rem; letter-spacing: -.04em;
}
.brand-name { font-size: 1.15rem; letter-spacing: -.02em; }

.nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.nav a {
    color: var(--text); padding: .5rem .8rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--primary); }
.nav-cta {
    background: var(--primary); color: #fff !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }
.lang-switch {
    border: 1px solid var(--border); font-weight: 700 !important;
    min-width: 2.4rem; text-align: center;
}
.nav-toggle {
    display: none; background: none; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 1.3rem; padding: .25rem .6rem; cursor: pointer;
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .nav {
        display: none; position: absolute; top: 100%; right: 0; left: 0;
        flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--border);
        padding: .5rem clamp(1rem, 4vw, 2rem); gap: .15rem;
    }
    body.nav-open .nav { display: flex; }
}

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem); }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; border-radius: var(--radius);
    padding: clamp(2rem, 6vw, 4rem);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.hero { text-align: center; }
.hero h1 { color: #fff; max-width: 18ch; margin-left: auto; margin-right: auto; }
.hero p { font-size: 1.1rem; max-width: 56ch; color: rgba(255,255,255,.92); margin-left: auto; margin-right: auto; }
.hero .hero-search { margin-top: 1.5rem; }

.hero-search form { display: flex; gap: .5rem; max-width: 620px; margin: 0 auto; }
.hero-search input {
    flex: 1; padding: .85rem 1rem; border: none; border-radius: var(--radius-sm);
    font-size: 1rem;
}
.hero-search button {
    background: var(--accent); color: var(--text); border: none;
    padding: 0 1.4rem; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer;
    font-size: 1rem;
}
.hero-search button:hover { background: var(--accent-dark); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; background: var(--primary); color: #fff;
    padding: .7rem 1.3rem; border-radius: var(--radius-sm); border: none;
    font-weight: 700; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--text); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }

/* ---------- Landing ---------- */
.center { text-align: center; }
.section-lead { text-align: center; max-width: 60ch; margin: 0 auto 2rem; color: var(--muted); font-size: 1.05rem; }
.why, .how { margin-bottom: 3rem; }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.05rem; }

.benefit-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.benefit { text-align: center; padding: 1.5rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.benefit-ico { font-size: 2.2rem; }
.benefit h3 { margin: .7rem 0 .4rem; font-size: 1.1rem; }
.benefit p { margin: 0; color: var(--muted); font-size: .92rem; }

.steps { list-style: none; counter-reset: none; padding: 0; margin: 0 auto 1.8rem; max-width: 760px; display: grid; gap: 1rem; }
.steps li { display: flex; align-items: center; gap: 1rem; font-size: 1.05rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; }
.step-n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }

.cta-band {
    margin: 1rem 0 1rem; text-align: center; color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.2rem); box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 52ch; margin: .5rem auto 1.5rem; }

/* ---------- Category grid ---------- */
.section-title { margin: 0 0 1.2rem; }
.cat-grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.cat-card {
    display: block; padding: 1.2rem; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg); color: var(--text);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); text-decoration: none; }
.cat-card .cat-ico { font-size: 1.6rem; }
.cat-card h3 { margin: .6rem 0 .2rem; font-size: 1.05rem; }
.cat-card .cat-count { color: var(--muted); font-size: .9rem; }

/* ---------- Filters ---------- */
.filters {
    display: grid; gap: .8rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem; margin-bottom: 1.5rem;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    align-items: end;
}
.filters .field { display: flex; flex-direction: column; gap: .25rem; }
.filters .field span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.filters input, .filters select {
    padding: .6rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: .95rem; background: #fff; color: var(--text);
}
@media (max-width: 860px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .filters { grid-template-columns: 1fr; } }

/* ---------- Company cards ---------- */
.results-count { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.cards {
    list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg); overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-link { display: block; padding: 1.2rem; color: var(--text); height: 100%; }
.card-link:hover { text-decoration: none; }
.card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.card-logo {
    width: 56px; height: 56px; object-fit: contain; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: #fff; flex: none; padding: 4px;
}
.card-logo.placeholder { display: grid; place-items: center; color: var(--primary); font-weight: 800; background: var(--primary-soft); }
.card-title { font-size: 1.1rem; margin: 0; }
.card-country { color: var(--muted); font-size: .85rem; }
.card-desc { color: var(--muted); font-size: .92rem; margin: .5rem 0 .7rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
    font-size: .75rem; font-weight: 600; padding: .2rem .55rem;
    background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px;
}

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; justify-content: center; margin-top: 2rem; }
.page-num, .page-btn {
    padding: .5rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-weight: 600;
}
.page-num:hover, .page-btn:hover { background: var(--surface); text-decoration: none; }
.page-current { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-ellipsis { color: var(--muted); padding: 0 .3rem; }

/* ---------- Company detail ---------- */
.company-hero { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 2rem; }
.company-hero .logo {
    width: 110px; height: 110px; object-fit: contain; border: 1px solid var(--border);
    border-radius: var(--radius); background: #fff; padding: 8px; flex: none;
}
.company-hero .logo.placeholder { display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: var(--primary); background: var(--primary-soft); }
.company-hero h1 { margin: 0 0 .3rem; }
.company-meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.company-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .company-layout { grid-template-columns: 1fr; } }
.block { margin-bottom: 2rem; }
.block h2 { padding-bottom: .4rem; border-bottom: 2px solid var(--primary-soft); margin-bottom: 1rem; }

.product-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); list-style: none; padding: 0; margin: 0; }
.product {
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    background: var(--bg); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.product-link { display: flex; flex-direction: column; height: 100%; color: var(--text); }
.product-link:hover { text-decoration: none; }
/* Image entièrement visible (contain), fond neutre */
.product-media {
    display: grid; place-items: center;
    aspect-ratio: 4/3; background: var(--surface); border-bottom: 1px solid var(--border);
    padding: .6rem;
}
.product-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.product-noimg { font-size: 2.4rem; opacity: .5; }
.product-noimg-lg { font-size: 4rem; }
.product-body { padding: 1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.product-body h3 { font-size: 1.02rem; margin: 0; }
.product-body p { font-size: .88rem; color: var(--muted); margin: 0; }
.norm-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.norm-tag {
    font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 6px;
    background: #fff7e6; color: #92400e; border: 1px solid #fde9c0;
}
.norm-tag.norm-more { background: var(--surface); color: var(--muted); border-color: var(--border); }
.product-cta { margin-top: auto; font-weight: 700; color: var(--primary); font-size: .9rem; }

/* Page produit */
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; gap: 1.5rem; } }
.product-detail-media {
    display: grid; place-items: center; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    aspect-ratio: 4/3; padding: 1.5rem; position: sticky; top: 80px;
}
.product-detail-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-brandline { color: var(--muted); margin: 0 0 .3rem; font-weight: 600; }
.product-detail-info h1 { margin: 0 0 1rem; }
.norm-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.norm-badge {
    font-weight: 700; font-size: .9rem; padding: .4rem .8rem; border-radius: 999px;
    background: #fff7e6; color: #92400e; border: 1px solid #fde9c0;
}
.product-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

/* Onglets de résultats (annuaire) */
.result-tabs { flex-wrap: wrap; margin-bottom: 1.2rem; }
.result-tabs a { display: inline-flex; align-items: center; gap: .45rem; }
.tab-count {
    font-size: .72rem; font-weight: 700; min-width: 1.4rem; text-align: center;
    padding: .05rem .4rem; border-radius: 999px; background: var(--surface);
    color: var(--muted); border: 1px solid var(--border);
}
.result-tabs a.active .tab-count { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Résultats catalogues */
.catalog-results { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.catalog-result {
    display: flex; align-items: center; gap: 1rem;
    border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; background: var(--bg);
}
.catalog-result:hover { box-shadow: var(--shadow); }
.catalog-result .cat-ico-pdf { font-size: 1.6rem; flex: none; }
.catalog-result .grow { flex: 1; min-width: 0; }
.catalog-title { font-weight: 700; }

.photo-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); list-style: none; padding: 0; margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); }
.media-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(15,23,42,.78));
    color: #fff; font-size: .8rem; padding: 1.2rem .6rem .5rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.video-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); list-style: none; padding: 0; margin: 0; }
.video-grid iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius-sm); }

.sidecard { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; background: var(--surface); position: sticky; top: 80px; }
.sidecard h2 { font-size: 1.1rem; border: 0; margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.contact-list a { word-break: break-word; }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.social-links a { padding: .4rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; font-size: .85rem; font-weight: 600; }
.catalog-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.catalog-list a { display: flex; gap: .5rem; align-items: center; }

/* ---------- Forms (account) ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.formcard { border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.3rem, 4vw, 2rem); background: var(--bg); box-shadow: var(--shadow); }
.field-row { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1.1rem; }
.field-row label { font-weight: 600; font-size: .92rem; }
.field-row input, .field-row select, .field-row textarea {
    padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 1rem; font-family: inherit; background: #fff; color: var(--text); width: 100%;
}
.field-row textarea { min-height: 130px; resize: vertical; }
.field-row .hint { font-size: .8rem; color: var(--muted); }
.field-error { color: #b91c1c; font-size: .85rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .4rem; }
.checks label { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .92rem; }

/* Onglets de langue (FR/EN) — CSS pur, pilotés par boutons radio */
.lang-tabs { margin-bottom: 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; background: var(--surface); }
.lt-radio { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.lt-bar { display: flex; gap: .3rem; border-bottom: 2px solid var(--border); margin-bottom: 1rem; }
.lt-bar label {
    padding: .5rem 1rem; cursor: pointer; font-weight: 600; color: var(--muted);
    border-bottom: 2px solid transparent; margin-bottom: -2px; user-select: none;
}
.lt-bar label:hover { color: var(--text); }
.lt-panel { display: none; }
.lt-fr:checked ~ .lt-panel-fr { display: block; }
.lt-en:checked ~ .lt-panel-en { display: block; }
.lt-fr:checked ~ .lt-bar label[for$="-fr"],
.lt-en:checked ~ .lt-bar label[for$="-en"] { color: var(--primary); border-bottom-color: var(--primary); }
.lang-tabs .field-row:last-child { margin-bottom: 0; }

.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-size: .95rem; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #b91c1c; }
.alert-info { background: var(--primary-soft); color: var(--primary-dark); }

.status-badge { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.status-draft { background: #f1f5f9; color: var(--muted); }
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #b91c1c; }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }

/* Onboarding (fiche en brouillon) */
.onboard {
    border: 1px solid #bfdbfe; background: var(--primary-soft);
    border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 1.5rem;
}
.onboard h2 { margin: 0 0 .5rem; color: var(--primary-dark); font-size: 1.15rem; }
.onboard p { margin: 0 0 .8rem; }
.onboard-steps { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .4rem; }
.onboard-steps li { padding-left: .2rem; }
.onboard-note {
    background: #fff; border-radius: var(--radius-sm); padding: .8rem 1rem;
    font-size: .9rem; color: var(--text); margin: 0 !important;
}

/* ---------- Legal / text pages ---------- */
.legal { max-width: 760px; }
.legal h2 { margin-top: 1.8rem; font-size: 1.2rem; }
.legal p { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 4rem;
    background: #0e1a2b;
    color: #cbd5e1;
}
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(2.2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) 2rem;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
}
.footer-col h4 {
    color: #fff;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 1rem;
}
.footer-col a {
    display: block;
    color: #cbd5e1;
    padding: .25rem 0;
    font-size: .92rem;
}
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-brand .brand-on-dark { color: #fff; margin-bottom: .9rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: .92rem; color: #94a3b8; max-width: 34ch; margin: 0 0 1rem; }
.footer-cta {
    display: inline-block; font-weight: 700; color: var(--accent) !important;
    padding: 0 !important;
}
.footer-cta:hover { color: #ffd454 !important; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1.2rem clamp(1rem, 4vw, 2rem);
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.5rem;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p { margin: 0; font-size: .85rem; color: #94a3b8; }

@media (max-width: 860px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }
    .footer-bottom { justify-content: flex-start; }
}

/* ---------- Map ---------- */
#map { height: 70vh; min-height: 420px; border-radius: var(--radius); border: 1px solid var(--border); }

/* ---------- Admin ---------- */
.admin-tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.admin-tabs a { padding: .6rem 1rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.admin-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-tabs a:hover { text-decoration: none; color: var(--text); }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--border); font-size: .92rem; vertical-align: top; }
table.data th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.inline-form { display: inline; }

.tile-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.thumb { width: 90px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.media-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.media-item { display: flex; gap: .8rem; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem; }
.media-item .grow { flex: 1; }
.media-item-active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
