/* Freda Light — adaptación propia para el portfolio de Aythami Melián.
   Paleta y lenguaje visual de referencia; sin recursos licenciados del producto. */

:root {
    --ink: #171a1c;
    --ink-soft: #32383a;
    --muted: #676e6b;
    --line: #dddedb;
    --paper: #fbfbf9;
    --panel: #f2f3f0;
    --white: #ffffff;
    --accent: #E55645;
    --accent-deep: #b8443b;
    --dark: #171d1d;
    --rail: 88px;
    --max: 1230px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --serif: 'Iowan Old Style', 'Baskerville', 'EB Garamond', Georgia, serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 78px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.68;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    left: 12px;
    top: -90px;
    z-index: 1000;
    background: var(--dark);
    color: #fff;
    padding: 12px 18px;
}
.skip-link:focus { top: 12px; }

.container {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto;
}

.page { min-height: 100vh; }
.site-inner { min-height: 100vh; }

/* Cabecera móvil y rail de escritorio */
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(251, 251, 249, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.site-brand { display: inline-flex; align-items: center; gap: 10px; background: var(--dark); padding: 7px 10px; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--dark);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.08em;
    border-radius: 2px;
}
.brand-mark img { display: block; width: 22px; height: 22px; }
.brand-logo { display: block; width: auto; height: 38px; }
.brand-name { display: block; font-size: 13px; font-weight: 800; letter-spacing: -0.03em; }
.brand-subtitle {
    display: block;
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 650;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}
.menu-toggle-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.menu-toggle-bars {
    width: 18px;
    height: 8px;
    border-top: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
}

.site-rail {
    position: fixed;
    inset: 66px 0 0 0;
    z-index: 290;
    display: none;
    background: var(--paper);
    padding: 28px 23px;
    overflow: auto;
}
.menu-open .site-rail { display: block; }

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
}
.nav-list a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -0.06em;
}
.nav-num {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 750;
}
.rail-footer { display: none; }

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100svh - 66px);
}
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px 20px 48px;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 10px;
    font-weight: 790;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero-meta .line { width: 26px; height: 1px; background: var(--accent); }
.hero-isotipo { display: block; width: 92px; height: auto; margin: 0 0 14px; }
.hero-title {
    margin: 26px 0 26px;
    font-size: clamp(52px, 13vw, 108px);
    line-height: 0.98;
    letter-spacing: -0.09em;
    font-weight: 850;
}
.hero-title .surname {
    display: block;
    color: var(--accent);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.075em;
}
.hero-role {
    margin: 0;
    max-width: 510px;
    font-size: clamp(16px, 3vw, 21px);
    font-weight: 630;
    line-height: 1.47;
    letter-spacing: -0.02em;
}
.hero-summary {
    margin: 16px 0 0;
    max-width: 565px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 13px 19px;
    border: 1px solid var(--dark);
    background: var(--dark);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: #fff; color: var(--accent); border-color: var(--accent); }

.hero-right {
    display: none;
    background: #e7e8e4;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 20px;
}
.hero-studio {
    position: relative;
    width: min(78%, 430px);
    aspect-ratio: 1 / 1.18;
    display: grid;
    place-items: center;
    border: 1px solid rgba(31, 40, 38, 0.23);
    background: linear-gradient(145deg, #eceeeb, #d6d9d4);
}
.hero-monogram {
    font-family: var(--serif);
    font-size: clamp(110px, 24vw, 240px);
    line-height: 1;
    letter-spacing: -0.15em;
    color: #222b2b;
}
.hero-monogram span { color: var(--accent); font-style: italic; }
.hero-monogram-img { display: block; width: min(62%, 230px); height: auto; }
.studio-caption {
    position: absolute;
    left: 26px;
    bottom: 24px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4b5753;
    font-weight: 760;
}

/* Métricas */
.metrics { background: var(--dark); color: #fff; }
.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.metric { padding: 24px 20px; border: 1px solid #ffffff18; border-left: 0; }
.metric strong { display: block; font-size: 28px; line-height: 1; letter-spacing: -0.06em; }
.metric strong span { color: #ff8b79; }
.metric small {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #b6bfbb;
}

.index-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
}
.index-links a { text-decoration: underline; text-underline-offset: 3px; }

/* Secciones */
.section { padding: 72px 0 78px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 34px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 11px;
    font-weight: 790;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}
.eyebrow::before {
    content: '';
    width: 25px;
    height: 1px;
    background: currentColor;
}
.section-title {
    margin: 8px 0 0;
    font-size: clamp(30px, 4.2vw, 55px);
    line-height: 1.1;
    letter-spacing: -0.06em;
    font-weight: 720;
}
.section-title em { font-family: var(--serif); font-weight: 400; color: var(--accent); }
.body-copy { color: var(--muted); font-size: 14px; line-height: 1.9; }
.about-grid { display: grid; gap: 26px; }

.resume-section { background: #f7f8f6; }
.timeline { border-left: 1px solid #d0d3cf; margin-left: 4px; }
.timeline-entry { position: relative; margin-left: 26px; padding-bottom: 28px; }
.timeline-entry::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 7px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--paper);
}
.timeline-entry h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.04em; line-height: 1.35; }

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
    display: inline-block;
    padding: 6px 9px;
    border: 1px solid #e0e2dd;
    background: #eef0ec;
    color: #565e59;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.project-section { background: #fff; }
.project-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.project-card { border: 1px solid var(--line); background: #fff; overflow: hidden; }
.project-cover {
    display: grid;
    place-items: center;
    height: 170px;
    background: #e0e9de;
    color: #27342f;
    font-family: var(--serif);
    font-size: 44px;
    letter-spacing: -0.06em;
    border-bottom: 1px solid #0000000b;
}
.project-card-body { padding: 20px 22px 22px; }
.project-category {
    margin: 0;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent);
}
.project-card h3 { margin: 9px 0 12px; font-size: 20px; letter-spacing: -0.05em; }
.project-link { font-size: 11px; font-weight: 780; }

.publication-grid { display: grid; gap: 16px; }
.publication { border: 1px solid var(--line); background: #fff; padding: 24px; }
.publication h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.3; }
.publication a { font-size: 11px; font-weight: 800; color: var(--accent); }

.blog-section { background: #f6f7f4; }
.blog-preview-grid { display: grid; gap: 20px; }
.article-preview {
    display: block;
    border: 1px solid var(--line);
    background: #fff;
    padding: 22px 24px;
}
.article-preview h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.35; letter-spacing: -0.05em; }
.read-link { font-size: 11px; font-weight: 800; color: var(--accent); }

.contact-section { background: #f0f2ee; }
.contact-grid { display: grid; gap: 30px; }
.contact-title {
    margin: 14px 0 18px;
    font-size: clamp(40px, 8vw, 80px);
    line-height: 1.03;
    letter-spacing: -0.075em;
}
.contact-title em { color: var(--accent); font-family: var(--serif); font-weight: 450; }
.contact-blurb { max-width: 510px; color: var(--muted); line-height: 1.9; }
.contact-info { border-top: 1px solid #cbd1ca; }
.contact-info a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 1px;
    border-bottom: 1px solid #cbd1ca;
    font-size: 13px;
    font-weight: 660;
}
.contact-info a span:first-child {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
}
.contact-info a span:last-child { text-align: right; overflow-wrap: anywhere; }

.footer { border-top: 1px solid var(--line); background: #fff; padding: 26px 0; }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
}
.footer a { color: var(--ink); }

/* Escritorio */
@media (min-width: 600px) {
    .container { width: min(calc(100% - 88px), var(--max)); }
    .metrics-grid { grid-template-columns: repeat(4, 1fr); }
    .metric { border-right: 1px solid #ffffff18; }
    .metric:last-child { border-right: 0; }
    .section { padding: 90px 0 96px; }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .publication-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
    .contact-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

@media (min-width: 900px) {
    .hero { grid-template-columns: 58% 42%; min-height: 720px; }
    .hero-right { display: flex; }
    .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .blog-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .section-head { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 1100px) {
    .site-header {
        position: fixed;
        inset: 0 auto 0 0;
        width: var(--rail);
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        background: #191e1e;
        border: 0;
        padding: 22px 0;
        backdrop-filter: none;
    }
    .site-brand { flex-direction: column; gap: 8px; margin-top: 4px; }
    .brand-mark { background: #fff; color: #191e1e; width: 48px; height: 48px; }
    .brand-logo { height: 46px; }
    .brand-name, .brand-subtitle, .menu-toggle { display: none; }
    .site-rail {
        display: flex !important;
        inset: 104px auto 46px 0;
        width: var(--rail);
        background: transparent;
        padding: 0 4px;
        flex-direction: column;
        justify-content: center;
        overflow: visible;
    }
    .nav-list a {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 13px 3px;
        border: 0;
        font-size: 9px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-align: center;
        color: #b0b9b4;
    }
    .nav-list a:hover, .nav-list a.active { background: #262d2c; color: #fff; }
    .nav-num { font-size: 10px; color: #d7a59b; }
    .rail-footer {
        display: block;
        position: absolute;
        bottom: 16px;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 9px;
        letter-spacing: 0.13em;
        color: #78837e;
    }
    .site-inner { margin-left: var(--rail); }
    .hero-left { padding-left: clamp(45px, 6vw, 104px); }
}

@media (max-width: 359px) {
    .hero-title { font-size: 46px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}

@media print {
    .site-header, .site-rail, .hero-actions, .footer, .menu-toggle { display: none !important; }
    .site-inner { margin-left: 0 !important; }
    body { background: #fff; color: #000; }
}

/* Detalle de contenido */
.article-top { background: #f0f2ee; border-bottom: 1px solid var(--line); padding: 42px 0 38px; }
.breadcrumb { font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink); }
.breadcrumb span[aria-hidden] { margin: 0 8px; color: #bbc0ba; }
.page-title {
    margin: 10px 0 0;
    font-size: clamp(34px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.07em;
}
.article-reading { padding-top: 48px; }
.article-body { max-width: 72ch; font-size: 15px; line-height: 1.94; overflow-wrap: break-word; }
.article-body h2 { margin: 40px 0 16px; font-size: clamp(24px, 4vw, 36px); letter-spacing: -0.05em; }
.article-body h3 { margin: 30px 0 12px; font-size: 21px; letter-spacing: -0.04em; }
.article-body p { margin: 0 0 20px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body pre { overflow-x: auto; max-width: 100%; background: #161e1c; color: #dbece1; padding: 20px; }
.article-body blockquote { border-left: 3px solid var(--accent); margin: 28px 0; padding-left: 18px; font-family: var(--serif); font-size: 21px; }
.article-body table { display: block; overflow-x: auto; border-collapse: collapse; }
.references { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 22px; }
.references h2 { font-size: 18px; }
.article-back { display: inline-block; margin-top: 28px; font-size: 12px; font-weight: 750; color: var(--accent); }

/* Currículum completo */
.cv-document { max-width: 78ch; }
.cv-block { margin-bottom: 34px; break-inside: avoid; }
.cv-block h2 { font-size: 22px; letter-spacing: -0.04em; border-bottom: 2px solid var(--dark); padding-bottom: 8px; }
.cv-entry { break-inside: avoid; margin-bottom: 16px; }
.cv-entry h3 { font-size: 17px; margin: 0 0 6px; }
.cv-field { font-size: 14px; line-height: 1.85; }

@media print {
    .article-top .btn, .breadcrumb, .eyebrow { display: none !important; }
    .article-top { background: #fff; padding: 0 0 10px; }
    .page-title { font-size: 34px; }
    .cv-document { max-width: none; }
    .cv-block { break-inside: avoid; }
    a { text-decoration: none; color: #000; }
    .cv-block h2 { break-after: avoid; }
}

.hero-photo { width: 100%; height: 100%; object-fit: cover; }

.locale-switch { margin-left: auto; margin-right: 12px; font-size: 11px; font-weight: 750; }
.locale-switch a { display: inline-flex; align-items: center; padding: 6px 4px; }
.locale-switch img { display: block; width: 24px; height: 16px; border: 1px solid var(--line); border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.project-facts { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 22px; max-width: 72ch; }
.project-facts h2 { font-size: 18px; }
.project-facts dl { margin: 0 0 16px; }
.project-facts dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.project-facts dt { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 800; }
.project-facts dd { margin: 0; overflow-wrap: anywhere; }
.project-facts .tag-row { list-style: none; padding: 0; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 26px; }
.filter-btn { border: 1px solid var(--line); padding: 9px 14px; font-size: 11px; font-weight: 750; background: #fff; color: var(--muted); }
.filter-btn.active, .filter-btn:hover { background: var(--dark); border-color: var(--dark); color: #fff; }

.project-shot { margin: 0 0 28px; }.project-shot img { width: 100%; height: auto; border: 1px solid var(--line); }
.project-cover--type { display: grid; place-items: center; height: 220px; background: #e0e9de; margin-bottom: 28px; font-family: var(--serif); font-size: 54px; color: #27342f; }

.admin-main { padding: 32px 0 60px; max-width: 900px; }
.admin-main h1 { font-size: 30px; letter-spacing: -0.04em; }
.admin-main label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.admin-main input[type="text"], .admin-main textarea, .admin-main select { width: 100%; padding: 10px; border: 1px solid var(--line); background: #fff; font: inherit; }
.admin-main .hint { font-size: 12px; color: var(--muted); }

.toc { border: 1px solid var(--line); background: #f9faf7; padding: 18px 22px; margin: 0 0 26px; }
.toc h2 { margin: 0 0 10px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { padding: 4px 0; font-size: 13px; }
.toc .toc-level-3 { margin-left: 14px; font-size: 12px; }
.article-body h2[id], .article-body h3[id] { scroll-margin-top: 90px; }

.search-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 28px; }
.search-form label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; color: var(--muted); }
.search-form input { padding: 10px 12px; border: 1px solid var(--line); background: #fff; font: inherit; min-width: 220px; }

.article-nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; font-size: 12px; font-weight: 700; }

.share { margin: 32px 0 8px; border-top: 1px solid var(--line); padding-top: 18px; }
.share-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 10px; }
.share-list { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; margin: 0; padding: 0; }
.share-list a { font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Panel de administración */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; font-weight: 700; }
.admin-nav a { text-decoration: underline; text-underline-offset: 3px; }
.admin-flash { padding: 12px 14px; background: #eef6ec; border-left: 4px solid #4d7c4a; margin: 0 0 20px; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 22px 0 30px; }
.admin-card { display: block; padding: 18px; border: 1px solid var(--line); background: #fff; }
.admin-card strong { display: block; font-size: 30px; letter-spacing: -0.05em; }
.admin-card span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 24px; }
.admin-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 18px 0; }
.admin-filters label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-fieldset { border: 1px solid var(--line); padding: 16px; margin: 22px 0; }
.admin-fieldset legend { font-weight: 800; padding: 0 6px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0 26px; }
.admin-table th, .admin-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-status { display: inline-block; padding: 2px 7px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; background: #eee; }
.admin-status--published { background: #dcefd8; }
.admin-status--draft, .admin-status--review { background: #f7e7c9; }
.admin-status--archived { background: #eee; color: #666; }
.admin-publish { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.admin-main input[type="text"], .admin-main input[type="url"], .admin-main input[type="number"], .admin-main input[type="date"], .admin-main input[type="search"], .admin-main select { max-width: 520px; }
.admin-main textarea { width: 100%; max-width: 900px; }

/* Editor y subida de medios */
.admin-media { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.admin-media-grid { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 20px; }
.admin-media-grid figure { margin: 0; max-width: 260px; }
.admin-media-grid img { width: 100%; height: auto; border: 1px solid var(--line); }
.admin-media-grid figcaption { font-size: 12px; color: var(--muted); padding-top: 4px; }
.upload-zone { position: relative; border: 2px dashed var(--line); padding: 26px; text-align: center; background: #faf9f6; transition: border-color .15s, background .15s; }
.upload-zone.is-dragging { border-color: var(--accent); background: #fff3ef; }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone label { display: block; pointer-events: none; }
.upload-zone strong { display: block; font-size: 15px; }
.upload-zone span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.upload-zone img { max-width: 240px; max-height: 160px; margin: 14px auto 0; }
