/* Identidad visual del Carnaval Riojano adaptada al Archivo Digital. */
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cr-purple: #66596a;
  --cr-purple-deep: #4f4552;
  --cr-purple-pale: #eee8df;
  --cr-pink: #915962;
  --cr-pink-deep: #73444a;
  --cr-pink-pale: #f0e2df;
  --cr-yellow: #b39a68;
  --cr-cream: #f4eddf;
  --cr-cream-deep: #eae0d0;
  --cr-cream-line: #d1c3ae;
  --cr-ink: #242321;
  --cr-ink-soft: #403d39;
  --cr-muted: #625e57;
  --cr-subtle: #79736a;
  --cr-paper-edge: #aa9a80;
  --cr-button: #302d29;
  --cr-white: #fff;
  --cr-green: #236443;
  --cr-red: #b42336;
  --cr-sticker-shadow: 4px 4px 0 var(--cr-ink);
  --cr-focus: 0 0 0 3px rgb(179 154 104 / 42%);
  --cr-display: "Montserrat", "Arial Black", Inter, ui-sans-serif, system-ui, sans-serif;
  --cr-body: "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --cr-page: var(--cr-cream);
  --cr-card: #fbf8f1;
  --cr-card-muted: var(--cr-cream-deep);
  --cr-text: var(--cr-ink);
  --cr-text-muted: var(--cr-muted);
  --cr-rule: var(--cr-cream-line);
  --cr-link: var(--cr-purple-deep);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --cr-page: #22211f;
  --cr-card: #2b2926;
  --cr-card-muted: #35312c;
  --cr-text: #f4eddf;
  --cr-text-muted: #d0c6b6;
  --cr-rule: #514a40;
  --cr-link: #d0b678;
}

html { scroll-behavior: smooth; }
body { font-family: var(--cr-body); }
:is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--cr-purple) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Biblioteca pública */
.archive-dashboard[hidden] { display: none; }
.archive-dashboard { border-top: 1px solid var(--cr-rule); }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dashboard-metric { display: grid; gap: 6px; padding: 20px 22px; border: 1px solid var(--cr-rule); border-radius: 14px; background: var(--cr-card); }
.dashboard-metric strong { color: var(--cr-text); font-family: var(--cr-display); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; }
.dashboard-metric span { color: var(--cr-text-muted); font-size: .78rem; font-weight: 600; }
.dashboard-panel { min-width: 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--cr-rule); border-radius: 18px; background: var(--cr-card); }
.dashboard-panel + .dashboard-panel { margin-top: 16px; }
.dashboard-panel h3 { margin: 4px 0 0; font-size: 1.25rem; font-weight: 750; }
.dashboard-panel-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.dashboard-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.dashboard-controls label { display: grid; gap: 5px; color: var(--cr-text-muted); font-size: .7rem; font-weight: 700; }
.dashboard-controls select { min-height: 40px; padding: 0 32px 0 10px; border: 1px solid var(--cr-rule); border-radius: 8px; background-color: var(--cr-page); color: var(--cr-text); font: inherit; font-size: .8rem; }
.dashboard-chart--columns, .dashboard-timeline { display: flex; gap: 16px; overflow-x: auto; padding: 28px 0 8px; }
.dashboard-chart--columns .dashboard-chart-item, .dashboard-timeline-item { display: grid; grid-template-rows: auto 190px auto; align-items: end; justify-items: center; gap: 8px; flex: 1 0 95px; min-width: 0; color: var(--cr-text) !important; text-align: center; text-decoration: none; }
.dashboard-bar-area, .dashboard-timeline-area { display: flex; align-items: end; justify-content: center; width: 100%; height: 100%; border-bottom: 1px solid var(--cr-rule); background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), var(--cr-rule) calc(25% - 1px), var(--cr-rule) 25%); }
.dashboard-bar, .dashboard-timeline-bar { display: block; width: min(56px, 65%); min-height: 3px; border-radius: 5px 5px 0 0; background: var(--cr-purple); }
.dashboard-value, .dashboard-timeline-item strong { color: var(--cr-text); font-size: .8rem; font-variant-numeric: tabular-nums; }
.dashboard-label, .dashboard-timeline-item > span:last-child { max-width: 130px; overflow-wrap: anywhere; font-size: .75rem; line-height: 1.35; }
.dashboard-chart-item:hover .dashboard-label, .dashboard-timeline-item:hover > span:last-child { text-decoration: underline; }
.dashboard-chart--bars { display: grid; gap: 14px; margin-top: 26px; }
.dashboard-chart--bars .dashboard-chart-item { display: grid; grid-template-columns: minmax(100px, 190px) minmax(80px, 1fr) 54px; gap: 12px; align-items: center; color: var(--cr-text) !important; text-decoration: none; }
.dashboard-chart--bars .dashboard-label { grid-column: 1; grid-row: 1; }
.dashboard-chart--bars .dashboard-bar-area { grid-column: 2; grid-row: 1; height: 20px; justify-content: start; border: 0; border-radius: 4px; background: var(--cr-card-muted); }
.dashboard-chart--bars .dashboard-bar { height: 100%; border-radius: 4px; }
.dashboard-chart--bars .dashboard-value { grid-column: 3; grid-row: 1; text-align: right; }
.dashboard-table { width: 100%; margin-top: 24px; border-collapse: collapse; color: var(--cr-text); font-size: .85rem; }
.dashboard-table :is(th, td) { padding: 12px; border-bottom: 1px solid var(--cr-rule); text-align: left; }
.dashboard-table :is(th, td):last-child { text-align: right; }
.dashboard-table th { text-transform: capitalize; color: var(--cr-text-muted); }
.dashboard-timeline-item { grid-template-rows: auto 110px auto; flex-basis: 70px; }
.dashboard-timeline-bar { background: var(--cr-pink); width: min(34px, 60%); }
.dashboard-empty { padding: 24px 0; color: var(--cr-text-muted); }
.dashboard-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dashboard-view-controls { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.dashboard-view-controls label { display: flex; align-items: center; gap: 10px; color: var(--cr-text-muted); font-size: .75rem; font-weight: 700; }
.dashboard-view-controls select { min-height: 38px; padding: 0 28px 0 10px; border: 1px solid var(--cr-rule); border-radius: 8px; background-color: var(--cr-card); color: var(--cr-text); font: inherit; }
.dashboard-layout .dashboard-panel + .dashboard-panel { margin-top: 0; }
.dashboard-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.dashboard-card-heading label { display: grid; gap: 5px; color: var(--cr-text-muted); font-size: .7rem; font-weight: 700; }
.dashboard-card-heading select { min-height: 38px; max-width: 150px; padding: 0 28px 0 10px; border: 1px solid var(--cr-rule); border-radius: 8px; background-color: var(--cr-page); color: var(--cr-text); font: inherit; font-size: .75rem; }
.dashboard-ranked { display: grid; gap: 14px; margin-top: 24px; }
.dashboard-ranked--scroll { max-height: 360px; overflow-y: auto; padding: 2px 12px 2px 0; }
.dashboard-pie-layout { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; margin-top: 28px; }
.dashboard-pie { width: 200px; height: 200px; flex: 0 0 200px; border-radius: 50%; }
.dashboard-pie-legend { display: grid; gap: 9px; flex: 1 1 190px; min-width: 0; max-height: 310px; overflow-y: auto; padding-right: 4px; }
.dashboard-pie-row { display: grid; grid-template-columns: 11px minmax(0, 1fr) auto; gap: 9px; align-items: center; color: var(--cr-text) !important; font-size: .76rem; text-decoration: none; }
.dashboard-pie-row:hover span:nth-child(2) { text-decoration: underline; }
.dashboard-pie-row strong, .dashboard-pie-sublegend strong { font-variant-numeric: tabular-nums; }
.dashboard-pie-swatch { width: 11px; height: 11px; border-radius: 3px; }
.dashboard-pie-sublegend { display: grid; gap: 5px; padding: 0 0 3px 20px; }
.dashboard-pie-sublegend a { display: flex; justify-content: space-between; gap: 8px; color: var(--cr-text-muted); font-size: .7rem; text-decoration: none; }
.dashboard-chart-caption { margin-top: 20px; color: var(--cr-text-muted); font-size: .7rem; line-height: 1.5; }
.dashboard-bubbles { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; max-height: 500px; overflow-y: auto; padding: 24px 4px 4px; }
.dashboard-bubble { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 12px; border: 1px solid var(--cr-rule); border-radius: 50%; background: color-mix(in srgb, var(--cr-purple) 34%, var(--cr-card)); color: var(--cr-text) !important; text-align: center; text-decoration: none; }
.dashboard-bubble:nth-child(3n+2) { background: color-mix(in srgb, var(--cr-pink) 32%, var(--cr-card)); }
.dashboard-bubble:nth-child(3n) { background: color-mix(in srgb, var(--cr-yellow) 32%, var(--cr-card)); }
.dashboard-bubble strong { font-size: 1.2rem; }
.dashboard-bubble span { max-width: 100%; overflow-wrap: anywhere; font-size: .68rem; line-height: 1.2; }
.dashboard-bubble:hover { border-color: var(--cr-yellow); }
.dashboard-author-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .9fr); gap: 20px; align-items: center; margin-top: 24px; }
.dashboard-bubble-chart { display: block; width: 100%; max-height: 360px; overflow: visible; }
.dashboard-author-legend { display: grid; gap: 9px; max-height: 360px; overflow-y: auto; }
@media (max-width: 430px) { .dashboard-author-layout { grid-template-columns: minmax(0, 1fr); } .dashboard-bubble-chart { max-height: 260px; } }
.dashboard-upload-chart { display: flex; align-items: end; gap: 20px; min-height: 230px; overflow-x: auto; padding: 24px 0 0; }
.dashboard-upload-item { display: grid; grid-template-rows: auto 150px auto; justify-items: center; gap: 8px; flex: 1 0 70px; font-size: .8rem; }
.dashboard-upload-area { display: flex; align-items: end; justify-content: center; width: 100%; height: 100%; border-bottom: 1px solid var(--cr-rule); }
.dashboard-upload-bar { display: block; width: min(55px, 60%); border-radius: 5px 5px 0 0; background: var(--cr-pink); }
.dashboard-year-track { position: relative; overflow: visible; }
.dashboard-year-track::after { position: absolute; z-index: 1; top: 50%; bottom: -5px; left: var(--dashboard-goal); border-left: 2px dashed var(--cr-yellow); content: ''; pointer-events: none; }
.dashboard-period-2026 .dashboard-upload-bar { background: #b99a5d; }
.dashboard-period-2026 strong { color: #b99a5d; }
.dashboard-upload-item[class*="dashboard-period-"]:not(.dashboard-period-2026) .dashboard-upload-bar { background: #718b98; }
.dashboard-upload-item[class*="dashboard-period-"]:not(.dashboard-period-2026) strong { color: #718b98; }
.dashboard-upload-bar { min-height: 2px; }
.archive-goal-progress { max-width: 620px; margin-top: 24px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--cr-yellow) 60%, var(--cr-rule)); border-radius: 14px; background: color-mix(in srgb, var(--cr-card) 86%, var(--cr-yellow)); }
.archive-goal-progress[hidden] { display: none; }
.archive-goal-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 16px; color: var(--cr-text); font-size: .85rem; }
.archive-goal-heading strong { font-family: var(--cr-display); font-weight: 800; }
.archive-goal-heading span { color: var(--cr-purple-deep); font-size: .82rem; font-weight: 750; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] body:not(.admin-page) .archive-goal-heading span { color: #f4eddf; }
.archive-goal-track { height: 13px; margin-top: 12px; overflow: hidden; border: 1px solid var(--cr-paper-edge); border-radius: 99px; background: var(--cr-card); }
.archive-goal-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b6b80, #b99a5d); transition: width .45s ease; }
.archive-goal-caption { display: block; margin-top: 7px; color: var(--cr-text-muted); font-size: .7rem; }
.dashboard-year-track { height: 12px; overflow: visible; background: var(--cr-card-muted); }
.dashboard-year-track::after { top: 0; bottom: 0; border-left: 2px dashed #b99a5d; }
.dashboard-year-track > .dashboard-ranked-bar { position: absolute; bottom: 0; left: 0; height: 12px; }
.dashboard-year-achieved-star { position: absolute; z-index: 2; top: -14px; left: var(--dashboard-goal); transform: translateX(-50%); color: #9a793b; font-size: 14px; line-height: 14px; }
.dashboard-ranked--years .dashboard-ranked-item { row-gap: 0; }
.dashboard-ranked-track.dashboard-year-track { height: 12px; overflow: visible; background: var(--cr-card-muted); }
.dashboard-ranked-track.dashboard-year-track > .dashboard-ranked-bar { position: absolute; bottom: 0; left: 0; height: 12px; }
.dashboard-chart-caption { display: flex; align-items: center; gap: 8px; }
.dashboard-year-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-top: 18px; color: var(--cr-text-muted); font-size: .72rem; }
.dashboard-year-legend-star { color: #b99a5d; font-size: 1rem; line-height: 1; }
.dashboard-pie { position: relative; overflow: visible; }
.dashboard-pie-percent { position: absolute; z-index: 1; transform: translate(-50%, -50%); color: #fff; font-size: .62rem; font-weight: 800; line-height: 1; text-shadow: 0 1px 3px rgb(0 0 0 / 85%), 0 0 4px rgb(0 0 0 / 70%); white-space: nowrap; }
.dashboard-bubble-percent { fill: #fff; font-size: 7px; font-weight: 800; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgb(0 0 0 / 55%); stroke-width: 1.8px; }
.dashboard-upload-chart { position: relative; align-items: stretch; gap: 0; min-height: 0; height: 220px; padding-bottom: 0; border-bottom: 0; }
.dashboard-upload-chart::after { display: none; }
.dashboard-upload-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 8px; min-width: 58px; height: 100%; flex: 1 0 58px; }
.dashboard-upload-area { position: relative; display: flex; align-items: end; justify-content: center; width: 100%; height: 180px; flex: 0 0 180px; border-bottom: 1px solid var(--cr-rule); }
.dashboard-upload-bar { position: relative; z-index: 0; width: min(48px, 62%); }
.dashboard-upload-value { position: absolute; bottom: calc(clamp(2px, var(--bar-size, 2px), 170px) + 5px); left: 50%; z-index: 1; transform: translateX(-50%); color: var(--cr-text); font-size: .76rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dashboard-upload-item .dashboard-upload-bar { --bar-size: 2px; }
.dashboard-period-2026 .dashboard-upload-bar { background: #b99a5d; }
.dashboard-period-2026 .dashboard-upload-value { color: #b99a5d; }
.dashboard-period-2026 strong:not(.dashboard-upload-value) { color: #b99a5d; }
.dashboard-upload-item[class*="dashboard-period-"]:not(.dashboard-period-2026) .dashboard-upload-bar { background: #718b98; }
.dashboard-upload-item[class*="dashboard-period-"]:not(.dashboard-period-2026) .dashboard-upload-value { color: #718b98; }
.dashboard-upload-item[class*="dashboard-period-"]:not(.dashboard-period-2026) strong:not(.dashboard-upload-value) { color: #718b98; }
.dashboard-upload-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.dashboard-period-legend { display: inline-flex; align-items: center; gap: 7px; color: var(--cr-text-muted); font-size: .72rem; font-weight: 700; }
.dashboard-period-legend::before { width: 10px; height: 10px; border-radius: 3px; background: #718b98; content: ''; }
.dashboard-period-legend--2026::before { background: #b99a5d; }
.dashboard-pie-row[title], .dashboard-pie[title], .dashboard-pie-sublegend a[title], .dashboard-author-legend .dashboard-pie-row[title] { cursor: help; }
.dashboard-bubble-chart circle { cursor: help; }
.dashboard-ranked-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; color: var(--cr-text) !important; text-decoration: none; font-size: .8rem; }
.dashboard-ranked-name { overflow-wrap: anywhere; font-weight: 600; }
.dashboard-ranked-item strong { font-variant-numeric: tabular-nums; }
.dashboard-ranked-track { grid-column: 1 / -1; height: 12px; overflow: hidden; border-radius: 5px; background: var(--cr-card-muted); }
.dashboard-ranked-bar { display: block; height: 100%; border-radius: inherit; background: var(--cr-purple); }
.dashboard-events .dashboard-ranked-bar { background: var(--cr-pink); }
.dashboard-ranked-item:hover .dashboard-ranked-name { text-decoration: underline; }
.dashboard-layout .dashboard-timeline { gap: 10px; padding-top: 28px; }
.dashboard-layout .dashboard-timeline-item { grid-template-rows: auto 170px auto; flex-basis: 52px; }
.dashboard-layout .dashboard-timeline-bar { background: var(--cr-purple); }
.dashboard-donut-layout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 24px; padding: 32px 0 10px; }
.dashboard-donut { display: grid; place-items: center; width: 180px; height: 180px; flex: 0 0 180px; border-radius: 50%; background: conic-gradient(var(--cr-purple) 0 var(--dashboard-share), var(--cr-pink) var(--dashboard-share) 100%); }
.dashboard-donut-center { display: grid; place-content: center; width: 116px; height: 116px; border-radius: 50%; background: var(--cr-card); text-align: center; }
.dashboard-donut-center strong { color: var(--cr-text); font-family: var(--cr-display); font-size: 1.6rem; }
.dashboard-donut-center span { color: var(--cr-text-muted); font-size: .7rem; }
.dashboard-donut-legend { display: grid; gap: 16px; flex: 1 1 170px; }
.dashboard-legend-row { display: flex; align-items: center; gap: 8px; color: var(--cr-text); font-size: .8rem; }
.dashboard-legend-row::before { content: ''; width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--cr-purple); }
.dashboard-legend-row--protected::before { background: var(--cr-pink); }
.dashboard-legend-row strong { margin-left: auto; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-controls { width: 100%; } .dashboard-controls label { flex: 1 1 40%; } .dashboard-controls select { width: 100%; } .dashboard-chart--bars .dashboard-chart-item { grid-template-columns: minmax(80px, 110px) minmax(60px, 1fr) 38px; gap: 8px; } }
@media (max-width: 800px) { .dashboard-layout { grid-template-columns: minmax(0, 1fr); } }
.archive-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dashboard-charts-toggle { width: fit-content; min-height: 44px; margin: 20px 0; gap: 10px; list-style: none; }
.dashboard-charts-toggle::-webkit-details-marker { display: none; }
.dashboard-charts-toggle svg { width: 18px; height: 18px; }
.dashboard-charts-toggle .dashboard-charts-chevron { width: 16px; height: 16px; }
.dashboard-charts-close,
.dashboard-charts[open] .dashboard-charts-open { display: none; }
.dashboard-charts[open] .dashboard-charts-close { display: inline; }
.dashboard-charts[open] .dashboard-charts-chevron { transform: rotate(180deg); }
.archive-chart { min-width: 0; padding: clamp(20px, 2.3vw, 30px); border: 1px solid var(--cr-rule); border-radius: 18px; background: var(--cr-card); }
.archive-chart h3 { margin: 0 0 24px; font-size: 1.05rem; font-weight: 750; }
.archive-chart-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.archive-chart-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; color: var(--cr-text) !important; text-decoration: none; font-size: .83rem; }
.archive-chart-label { overflow-wrap: anywhere; font-weight: 600; }
.archive-chart-count { color: var(--cr-text-muted); font-variant-numeric: tabular-nums; }
.archive-chart-track { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 999px; background: var(--cr-card-muted); }
.archive-chart-bar { display: block; height: 100%; border-radius: inherit; background: var(--cr-purple); }
.archive-chart:nth-child(2) .archive-chart-bar { background: var(--cr-pink); }
.archive-chart:nth-child(3) .archive-chart-bar { background: var(--cr-yellow); }
.archive-chart-link:hover .archive-chart-label { text-decoration: underline; }
@media (max-width: 800px) { .archive-dashboard-grid { grid-template-columns: 1fr; } }

html[data-theme] body:not(.admin-page) {
  background: var(--cr-page) !important;
  background-image: radial-gradient(rgb(86 69 44 / 8%) .55px, transparent .75px), radial-gradient(rgb(255 255 255 / 42%) .6px, transparent .8px) !important;
  background-size: 5px 5px, 7px 7px !important;
  color: var(--cr-text) !important;
  font-family: var(--cr-body);
  --color-base-100: var(--cr-card);
  --color-base-200: var(--cr-card-muted);
  --color-base-300: var(--cr-rule);
  --color-base-content: var(--cr-text);
}
html[data-theme="dark"] body:not(.admin-page) { background-image: radial-gradient(rgb(0 0 0 / 20%) .55px, transparent .8px), radial-gradient(rgb(255 255 255 / 5%) .6px, transparent .85px) !important; }
html[data-theme="dark"] body:not(.admin-page) :is(button, a, input, select, textarea, summary):focus-visible { outline-color: var(--cr-yellow) !important; }
body:not(.admin-page) :is(h1, h2, h3, h4, h5, h6) { color: var(--cr-text); font-family: var(--cr-display) !important; }
body:not(.admin-page) a { color: var(--cr-link); }
body:not(.admin-page) a:hover { color: var(--cr-pink); }
body:not(.admin-page) .site-header {
  border-bottom: 2px solid var(--cr-ink) !important;
  background: color-mix(in srgb, var(--cr-page) 94%, transparent) !important;
  backdrop-filter: blur(12px);
}
body:not(.admin-page) .site-header-inner { max-width: 1320px; min-height: 72px; padding-block: 12px; }
body:not(.admin-page) .site-brand { gap: 12px; color: var(--cr-text); font-family: var(--cr-display); font-size: 12px; font-weight: 700; }
body:not(.admin-page) .site-logo, body:not(.admin-page) .site-mark { width: 44px; height: 44px; }
body:not(.admin-page) .site-mark { border: 2px solid var(--cr-ink); border-radius: 14px; background-color: var(--cr-purple); box-shadow: 2px 2px 0 var(--cr-ink); }
body:not(.admin-page) .site-nav { gap: 6px; color: var(--cr-text); }
body:not(.admin-page) .site-nav a { min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; color: var(--cr-text); font-weight: 650; }
body:not(.admin-page) .site-nav a:hover { background: var(--cr-purple-pale); color: var(--cr-purple-deep); }
body:not(.admin-page) .site-shell { max-width: 1320px; }
body:not(.admin-page) .public-hero { align-items: center; gap: clamp(24px, 5vw, 72px); padding-block: clamp(42px, 7vw, 88px); }
body:not(.admin-page) .public-hero h1 { max-width: 20ch; color: var(--cr-ink); font-family: var(--cr-display); font-size: clamp(2.75rem, 5.2vw, 4.7rem); font-weight: 900; letter-spacing: -.055em; line-height: .95; }
body:not(.admin-page) .public-hero h1 > span,
body:not(.admin-page) .public-hero h1 > em { display: block; white-space: nowrap; }
body:not(.admin-page) .public-hero h1 em { color: var(--cr-purple); text-decoration: underline; text-decoration-color: var(--cr-yellow); text-decoration-thickness: 5px; text-underline-offset: 8px; }
body:not(.admin-page) .public-hero-copy { color: var(--cr-ink-soft); font-size: 17px; line-height: 1.65; }
body:not(.admin-page) .section-kicker { color: var(--cr-purple-deep); font-family: var(--cr-display); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
body:not(.admin-page) .public-hero-art {
  min-height: clamp(260px, 35vw, 430px);
  border: 3px solid var(--cr-ink);
  border-radius: 30px;
  background-color: var(--cr-purple);
  background-image: radial-gradient(circle at 18% 20%, #c7b27f 0 2px, transparent 2.7px), radial-gradient(circle at 78% 30%, #966b70 0 2px, transparent 2.7px), radial-gradient(circle at 45% 82%, var(--cr-cream) 0 1.5px, transparent 2.2px);
  background-size: 72px 72px;
  box-shadow: 7px 7px 0 var(--cr-ink);
}
body:not(.admin-page) .public-hero-art::before { width: 170px; height: 170px; inset: 16% 14% auto auto; border: 2px solid var(--cr-ink); background: #96636a; box-shadow: 3px 3px 0 var(--cr-ink); }
body:not(.admin-page) .public-hero-art::after { width: 40%; height: 60%; left: 10%; bottom: -18%; border: 16px solid #c7b27f; border-radius: 48% 48% 18% 18%; transform: rotate(20deg); }
body:not(.admin-page) .public-hero-label { left: 8%; bottom: 9%; color: #fff; font-family: var(--cr-display); font-size: clamp(32px, 5vw, 62px); font-weight: 900; letter-spacing: -.04em; text-shadow: 3px 3px 0 var(--cr-ink); }
body:not(.admin-page) .public-hero-label span { color: #fff; font-family: var(--cr-body); font-size: 11px; font-weight: 700; }
body:not(.admin-page) .ui-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border: 2px solid #242321; border-radius: 999px; padding: 0 20px; color: var(--cr-ink); font-family: var(--cr-display); font-size: 12px; font-weight: 800; letter-spacing: .035em; line-height: 1; text-decoration: none; text-transform: uppercase; box-shadow: none; transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
body:not(.admin-page) .ui-button--primary, body:not(.admin-page) .hero-cta--primary { border-color: var(--cr-ink); background: var(--cr-button); color: var(--cr-cream); box-shadow: 3px 3px 0 var(--cr-ink); }
body:not(.admin-page) .ui-button--primary:hover, body:not(.admin-page) .hero-cta--primary:hover { transform: translate(-1px, -1px); background: #171614; border-color: var(--cr-ink); color: #fffaf0; box-shadow: 5px 5px 0 var(--cr-ink); }
body:not(.admin-page) .ui-button--primary:active, body:not(.admin-page) .hero-cta--primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--cr-ink); }
body:not(.admin-page) .ui-button--secondary { border-color: #84796a; background: transparent; color: var(--cr-ink); }
body:not(.admin-page) .ui-button--secondary:hover { border-color: var(--cr-ink); background: #e8dfcf; color: #242321; }
body:not(.admin-page) .ui-button--small { min-height: 44px; padding-inline: 16px; font-size: 11px; }
body:not(.admin-page) .ui-button--icon { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 999px; }
body:not(.admin-page) .theme-toggle { width: 44px; padding: 0; }
body:not(.admin-page) .section-block { padding-block: clamp(42px, 6vw, 76px); }
body:not(.admin-page) .section-heading h2 { font-family: var(--cr-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 850; letter-spacing: -.04em; }
body:not(.admin-page) .section-description { color: var(--cr-text-muted); }
body:not(.admin-page) .catalog-heading { align-items: flex-end; }
body:not(.admin-page) .catalog-toolbar { grid-template-columns: minmax(11rem, 1.5fr) repeat(5, minmax(5rem, 1fr)) auto; gap: 10px; }
body:not(.admin-page) .catalog-search, body:not(.admin-page) .filter-trigger { min-height: 46px; border: 2px solid #84796a !important; border-radius: 999px !important; background: #faf7ef !important; color: var(--cr-ink) !important; }
body:not(.admin-page) .catalog-search { padding: 4px 5px 4px 12px; }
body:not(.admin-page) .catalog-search i { color: #72695e; }
body:not(.admin-page) .catalog-search:focus-within { outline: 2px solid #a68c5b !important; outline-offset: 2px; }
body:not(.admin-page) .catalog-search input { min-width: 0; border: 0 !important; background: transparent !important; color: var(--cr-ink); box-shadow: none !important; outline: none !important; }
body:not(.admin-page) .catalog-search input::placeholder { color: #6e685e; opacity: 1; }
body:not(.admin-page) .catalog-clear-all { width: max-content; min-height: 44px; justify-self: end; border-color: #84796a; padding-inline: 14px; background: transparent; color: var(--cr-ink); box-shadow: none; }
body:not(.admin-page) .catalog-clear-all:hover { border-color: var(--cr-ink); background: #e8dfcf; color: var(--cr-ink); }
body:not(.admin-page) .catalog-filter-count { background: #c5b183; color: #282723; }
body:not(.admin-page) .filter-options { border: 1px solid var(--cr-paper-edge); border-radius: 16px; background: var(--cr-card); color: var(--cr-text); box-shadow: 0 12px 28px rgb(30 30 36 / 18%); }
body:not(.admin-page) .filter-options .catalog-filter-search:focus-visible { border-color: #a68c5b !important; outline: none !important; outline-offset: 0 !important; box-shadow: inset 0 0 0 1px #a68c5b !important; }
body:not(.admin-page) .catalog-filter-option:has(input:checked), body:not(.admin-page) .catalog-filter-option:hover { background: var(--cr-purple-pale); color: var(--cr-purple-deep); }
body:not(.admin-page) :is(.detail-tags, .piece-modal-tags) .tag-chip:not(.tag-chip-author):not(.tag-chip-other) { color: #273a2b; }
body:not(.admin-page) :is(.detail-tags, .piece-modal-tags) .tag-chip-author { border-color: #365b42; background: #365b42; color: #fffaf0; }
body:not(.admin-page) :is(.detail-tags, .piece-modal-tags) .tag-chip-other { color: var(--cr-text); }
body:not(.admin-page) .library-piece-grid { gap: 14px; }
body:not(.admin-page) .library-piece-card { position: relative; border: 1px solid var(--cr-paper-edge); border-radius: 3px; padding: 3px; background: #ede4d4; box-shadow: 0 2px 5px rgb(40 35 27 / 18%), 2px 3px 0 #ded2bd; transition: transform 160ms ease, box-shadow 160ms ease; }
body:not(.admin-page) .library-piece-card::after { content: ""; position: absolute; z-index: 1; inset: 3px; border: 1px solid rgb(53 47 38 / 34%); pointer-events: none; }
body:not(.admin-page) .library-piece-card__open { overflow: hidden; border-radius: 1px; padding: 3px; background: #ede4d4; }
body:not(.admin-page) .library-piece-card:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgb(40 35 27 / 20%), 2px 3px 0 #ded2bd; }
body:not(.admin-page) .library-piece-card:focus-within { outline: 3px solid var(--cr-purple); outline-offset: 3px; }
body:not(.admin-page) .library-piece-card__image { transition: transform 220ms ease; }
body:not(.admin-page) .library-piece-card:hover .library-piece-card__image { transform: scale(1.02); }
body:not(.admin-page) .library-piece-card__video, body:not(.admin-page) .library-piece-card--missing { background: var(--cr-purple); }
body:not(.admin-page) .featured-card, body:not(.admin-page) .detail-copy { border: 2px solid var(--cr-ink); border-radius: 20px; background: var(--cr-card); box-shadow: 4px 4px 0 var(--cr-ink); }
body:not(.admin-page) .featured-card { display: flex; height: 100%; flex-direction: column; }
body:not(.admin-page) .featured-card-copy { display: flex; flex: 1; flex-direction: column; }
body:not(.admin-page) .featured-card-copy > .ui-button { align-self: flex-start; margin-top: auto; }
body:not(.admin-page) .detail-media, body:not(.admin-page) .site-shell .collection-cover { border: 2px solid var(--cr-ink); border-radius: 20px; box-shadow: 0 8px 24px rgb(30 30 36 / 16%); }
body:not(.admin-page) .piece-modal { border: 3px solid var(--cr-ink); border-radius: 24px; background: var(--cr-card); color: var(--cr-text); box-shadow: 8px 8px 0 var(--cr-ink); }
body:not(.admin-page) .piece-modal::backdrop { background: rgb(19 19 23 / 72%); }
body:not(.admin-page) .piece-modal-navigation button, body:not(.admin-page) .piece-modal-close { border: 2px solid var(--cr-ink); background: var(--cr-cream); color: var(--cr-ink); }
body:not(.admin-page) .site-footer { display: block; position: relative; overflow: hidden; border-top: 0; background: #000; color: #f2ece0; }
body:not(.admin-page) .site-footer-ribbon { height: 6px; border-bottom: 2px solid #151411; background: linear-gradient(90deg, #66596a 0 33.3%, #b39a68 33.3% 66.6%, #915962 66.6%); }
body:not(.admin-page) .site-footer-inner { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: start; gap: 30px 56px; max-width: 1200px; margin-inline: auto; padding: 40px 24px 24px; }
body:not(.admin-page) .site-footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #f2ece0; font-family: var(--cr-display); font-size: 14px; font-weight: 800; line-height: 1.1; }
body:not(.admin-page) .site-footer-brand img { width: 48px; height: 48px; object-fit: contain; }
body:not(.admin-page) .site-footer-links { display: flex; flex-wrap: wrap; gap: 32px 64px; }
body:not(.admin-page) .site-footer-links > div { display: grid; align-content: start; gap: 8px; }
body:not(.admin-page) .site-footer-heading { margin-bottom: 3px; color: #c9b27f; font-family: var(--cr-display); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
body:not(.admin-page) .site-footer-links a { color: #e2d9ca; font-size: 13px; text-decoration: none; text-underline-offset: 3px; }
body:not(.admin-page) .site-footer-links a:hover { color: #d0b678; text-decoration: underline; }
body:not(.admin-page) .site-footer-credit { grid-column: 1 / -1; margin: 0; border-top: 1px solid #48443e; padding-top: 16px; color: #bdb5a8; font-size: 12px; line-height: 1.5; }
body:not(.admin-page) .reading { max-width: 800px; }
body:not(.admin-page) .reading h1 { font-family: var(--cr-display); font-size: clamp(2.7rem, 6vw, 4.5rem); }
body:not(.admin-page) .reading h1 > span { display: block; white-space: nowrap; }
body:not(.admin-page) .reading h2 { margin-top: 2.5rem; }
body:not(.admin-page) .collection-page-title { max-width: 100%; font-family: var(--cr-display); font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 850; letter-spacing: -.045em; line-height: 1.05; }
html[data-theme="dark"] body:not(.admin-page) .public-hero h1,
html[data-theme="dark"] body:not(.admin-page) .section-heading h2 { color: var(--cr-cream); }
html[data-theme="dark"] body:not(.admin-page) .public-hero h1 em { color: oklch(78% .15 292); }
html[data-theme="dark"] body:not(.admin-page) .public-hero-copy,
html[data-theme="dark"] body:not(.admin-page) .section-description { color: var(--cr-text-muted); }
html[data-theme="dark"] body:not(.admin-page) .catalog-search,
html[data-theme="dark"] body:not(.admin-page) .filter-trigger { background: var(--cr-card) !important; color: var(--cr-text) !important; }
html[data-theme="dark"] body:not(.admin-page) .catalog-search input { color: var(--cr-text) !important; }
html[data-theme="dark"] body:not(.admin-page) .catalog-search input::placeholder { color: #b8ae9e !important; opacity: 1; }
html[data-theme="dark"] body:not(.admin-page) .ui-button--secondary { border-color: #71695d; background: transparent; color: var(--cr-text); }
html[data-theme="dark"] body:not(.admin-page) .ui-button--secondary:hover { border-color: var(--cr-yellow); background: var(--cr-card-muted); color: var(--cr-text); }
html[data-theme="dark"] body:not(.admin-page) .catalog-clear-all { border-color: #71695d; color: var(--cr-text); }
html[data-theme="dark"] body:not(.admin-page) .catalog-clear-all:hover { border-color: #d0b678; background: #35312c; color: var(--cr-text); }
html[data-theme="dark"] body:not(.admin-page) .filter-options { background: var(--cr-card); }
html[data-theme="dark"] body:not(.admin-page) .filter-options { border-color: var(--cr-rule); }
html[data-theme="dark"] body:not(.admin-page) .catalog-filter-search { border-color: var(--cr-rule); background: var(--cr-card-muted); color: var(--cr-text); }
html[data-theme="dark"] body:not(.admin-page) .catalog-filter-search::placeholder { color: #b8ae9e; opacity: 1; }
html[data-theme="dark"] body:not(.admin-page) .filter-options .catalog-filter-search:focus-visible { border-color: var(--cr-yellow) !important; box-shadow: inset 0 0 0 1px var(--cr-yellow) !important; }
html[data-theme="dark"] body:not(.admin-page) .catalog-filter-option:has(input:checked),
html[data-theme="dark"] body:not(.admin-page) .catalog-filter-option:hover,
html[data-theme="dark"] body:not(.admin-page) .catalog-filter-option:focus-within { background: var(--cr-card-muted); color: var(--cr-text); }
html[data-theme="dark"] body:not(.admin-page) :is(.detail-tags, .piece-modal-tags) .tag-chip:not(.tag-chip-author):not(.tag-chip-other) { color: #242321; }
html[data-theme="dark"] body:not(.admin-page) :is(.detail-tags, .piece-modal-tags) .tag-chip-author { border-color: #365b42; background: #365b42; color: #fffaf0; }
html[data-theme="dark"] body:not(.admin-page) :is(.detail-tags, .piece-modal-tags) .tag-chip-other { color: var(--cr-text); }
html[data-theme="dark"] body:not(.admin-page) :is(.detail-tags, .piece-modal-tags) :is(.detail-tag-group h3, .piece-modal-tag-group-title) { color: #d0b678; }
html[data-theme="dark"] body:not(.admin-page) :is(.detail-tags, .piece-modal-tags) .tag-chip:not(.tag-chip-author):not(.tag-chip-other):hover { color: #242321; }
html[data-theme="dark"] body:not(.admin-page) :is(.detail-tags, .piece-modal-tags) .tag-chip-other:hover { color: var(--cr-text); }
html[data-theme="dark"] body:not(.admin-page) :is(.detail-tags, .piece-modal-tags) .tag-chip-author:hover { color: #fffaf0; }
html[data-theme="dark"] body:not(.admin-page) .section-kicker { color: var(--cr-yellow); }
html[data-theme="dark"] body:not(.admin-page) .site-nav a:hover { background: rgb(255 255 255 / 12%); color: var(--cr-yellow); }
html[data-theme="dark"] body:not(.admin-page) a:hover { color: #d5a6ac; }
html[data-theme="dark"] body:not(.admin-page) .site-footer-links a:hover { color: #d0b678; }
html[data-theme="dark"] body:not(.admin-page) .library-piece-card,
html[data-theme="dark"] body:not(.admin-page) .library-piece-card__open { border-color: #60584c; background: #38332c; }
html[data-theme="dark"] body:not(.admin-page) .library-piece-card { box-shadow: 0 2px 5px rgb(0 0 0 / 35%), 2px 3px 0 #100f0e; }
html[data-theme="dark"] body:not(.admin-page) .library-piece-card::after { border-color: rgb(255 248 238 / 68%); }
html[data-theme="dark"] body:not(.admin-page) .featured-card,
html[data-theme="dark"] body:not(.admin-page) .detail-copy { border-color: var(--cr-cream); box-shadow: 4px 4px 0 var(--cr-cream); }
@media (max-width: 1080px) {
  body:not(.admin-page) .catalog-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body:not(.admin-page) .catalog-toolbar .catalog-search { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body:not(.admin-page) .catalog-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.admin-page) .catalog-toolbar .catalog-search { grid-column: 1 / -1; }
  body:not(.admin-page) .catalog-clear-all { grid-column: auto; justify-self: end; }
  body:not(.admin-page) .site-footer-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 20px 20px; }
  body:not(.admin-page) .site-footer-links { gap: 24px 40px; }
  body:not(.admin-page) .site-footer-credit { grid-column: auto; }
}
@media (max-width: 1024px) {
  body:not(.admin-page) .public-hero h1 { max-width: none; font-size: clamp(1.35rem, 3.8vw, 2.5rem); line-height: 1.02; }
}
@media (max-width: 600px) {
  body:not(.admin-page) .public-hero h1 { font-size: calc(clamp(1.75rem, 8.8vw, 2.4rem) + 2px); }
  body:not(.admin-page) .public-hero h1 > span,
  body:not(.admin-page) .public-hero h1 > em { display: block; white-space: nowrap; }
  body:not(.admin-page) .reading h1 { font-size: clamp(1.3rem, 7vw, 2.7rem); }
}
@media (max-width: 360px) {
  body:not(.admin-page) .catalog-toolbar .catalog-clear-all { width: 100%; min-width: 0; max-width: 100%; gap: 4px; padding-inline: 8px; font-size: 10px; }
  body:not(.admin-page) .catalog-toolbar .catalog-clear-all svg { width: 12px; height: 12px; flex: 0 0 12px; }
}

/* Panel: espacio de trabajo privado, más compacto que la Biblioteca. */
.admin-page {
  --cr-purple: #554e56;
  --cr-purple-pale: #3a3632;
  --cr-purple-deep: #d7c49e;
  --cr-yellow: #b9a16f;
  --cr-pink: #82585e;
  --cr-pink-deep: #68474c;
  --cr-cream: #242321;
  --cr-cream-deep: #302d29;
  --cr-cream-line: #514a40;
  --cr-ink: #f0e9dc;
  --cr-ink-soft: #d7cebf;
  --cr-muted: #c5bcaf;
  --panel-purple-hover: #51483c;
  --panel-page: #1d1c19;
  --panel-card: #292825;
  --panel-ink: #f0e9dc;
  --panel-muted: #c5bcaf;
  --panel-line: #49453e;
  --panel-field: #262522;
  --panel-purple: var(--cr-purple);
  --panel-pink: var(--cr-pink);
  min-height: 100vh;
  overflow-x: clip;
  background: var(--panel-page) !important;
  color: var(--panel-ink) !important;
  font-family: var(--cr-body);
}
.admin-page :is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid var(--cr-yellow) !important; outline-offset: 3px !important; }
.admin-page .admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; max-width: none; }
.admin-page .admin-sidebar {
  position: sticky; top: 0; display: flex; flex-direction: column; align-self: start; height: 100vh;
  padding: 24px 16px; border-right: 1px solid #48443e; background: #262522; color: #f0e9dc;
}
.admin-page .admin-brand { display: flex; min-height: 52px; align-items: center; gap: 12px; margin: 0 4px 28px; color: #fff; font-family: var(--cr-display); font-size: 12px; font-weight: 750; line-height: 1.2; }
.admin-page .admin-brand b { font-size: 14px; }
.admin-page .brand-mark { width: 42px; height: 42px; border: 1px solid #d1bc8d; border-radius: 12px; background: var(--cr-yellow); color: #242321; box-shadow: none; }
.admin-page .brand-mark svg { width: 19px; height: 19px; }
.admin-page .admin-nav { display: grid; align-content: start; gap: 6px; overflow: visible; }
.admin-page .admin-nav a { display: flex; min-height: 44px; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; color: rgb(240 233 220 / 86%); font-size: 13px; font-weight: 650; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease; }
.admin-page .admin-nav a svg { width: 17px; height: 17px; opacity: 1; }
.admin-page .admin-nav a:hover { background: #35322d; color: #fffaf0; }
.admin-page .admin-nav a.is-active { border-color: #8d7955; background: #3a352e; color: #f1dfb7; box-shadow: none; }
.admin-page .admin-user { display: flex; align-items: center; gap: 9px; margin: auto 4px 0; padding-top: 18px; border-top: 1px solid rgb(240 233 220 / 20%); color: #f0e9dc; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.admin-page .admin-user svg { width: 16px; height: 16px; }
.admin-page main { width: 100%; max-width: 1500px; min-height: 100vh; margin-inline: auto; padding: 38px clamp(20px, 4vw, 56px) 80px; }
.admin-page .admin-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 34px; }
.admin-page .admin-topbar h1 { margin: 0; color: var(--cr-ink); font-family: var(--cr-display); font-size: clamp(2.2rem, 4vw, 3.65rem); font-weight: 900; letter-spacing: -.055em; line-height: .98; }
.admin-page .admin-lead { max-width: 58ch; margin-top: 10px; color: var(--panel-muted); font-size: 14px; line-height: 1.55; }
.admin-page .admin-help { min-height: 44px; flex: 0 0 auto; border: 1px solid #746b5d; border-radius: 8px; background: transparent; color: var(--cr-ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.admin-page .admin-help:hover { background: #34312b; color: #fffaf0; }
.admin-page .card { padding-block: 24px; border-top: 1px solid var(--panel-line); }
.admin-page :is(#ajustes, #etiquetas, #colecciones).card { border-top: 0; }
.admin-page .section-heading h2, .admin-page .dashboard-intro h2 { color: var(--cr-ink); font-family: var(--cr-display); font-size: 23px; font-weight: 850; letter-spacing: -.035em; }
.admin-page .section-kicker { color: #c7ad77; font-family: var(--cr-display); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.admin-page .section-count { color: var(--panel-muted); font-variant-numeric: tabular-nums; }
.admin-page .dashboard-grid a, .admin-page .dashboard-primary, .admin-page .dashboard-usage, .admin-page .attention-list a {
  border: 1px solid var(--panel-line); border-radius: 12px; background: var(--panel-card); color: var(--cr-ink); box-shadow: none;
}
.admin-page .dashboard-grid a { min-height: 76px; }
.admin-page .dashboard-grid a:hover, .admin-page .attention-list a:hover { border-color: #9a835a; background: #302e29; }
.admin-page .dashboard-grid strong { color: var(--cr-ink); }
.admin-page .dashboard-grid small, .admin-page .dashboard-usage p { color: var(--panel-muted); }
.admin-page .dashboard-primary { background: #302d29; color: var(--cr-ink); }
.admin-page .dashboard-primary :is(h2, p) { color: var(--cr-ink); }
.admin-page .dashboard-primary .dashboard-action { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 16px; border: 1px solid #8d7955; border-radius: 8px; background: #b9a16f; color: #242321; font-weight: 750; text-decoration: none; box-shadow: none; }
.admin-page .dashboard-metrics { gap: 10px; }
.admin-page .dashboard-metrics > div { border: 1px solid var(--panel-line); border-radius: 12px; background: var(--panel-card); color: var(--cr-ink); box-shadow: none; }
.admin-page .dashboard-metrics dt { color: var(--panel-muted); }
.admin-page .dashboard-metrics dd { color: #d7c49e; font-family: var(--cr-display); font-size: 28px; font-weight: 850; }
.admin-page .dashboard-usage, .admin-page .dashboard-attention { max-width: none; width: 100%; }
.admin-page :is(button, .btn) { min-height: 44px; border: 1px solid #71695d; border-radius: 8px; background: #37342f; color: #f0e9dc; box-shadow: none; font-size: 12px; font-weight: 700; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease; }
.admin-page :is(button, .btn):hover:not(:disabled) { border-color: #b9a16f; background: var(--panel-purple-hover); color: #fffaf0; box-shadow: none; }
.admin-page :is(button, .btn):active:not(:disabled) { background: #2a2824; }
.admin-page :is(button, .btn):disabled { border-color: #4b4944; background: #302f2c; color: #aaa49a; box-shadow: none; cursor: not-allowed; }
.admin-page :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) { min-height: 42px; border: 1.5px solid #8e7f70; border-radius: 10px; background: var(--panel-field); color: var(--cr-ink); }
.admin-page textarea { min-height: 100px; }
.admin-page :is(input, textarea, select)::placeholder { color: #c0b8ad; opacity: 1; }
.admin-page input[type="checkbox"] { width: 18px; height: 18px; accent-color: #b9a16f; }
.admin-page label { color: var(--cr-ink-soft); }
.admin-page :is(.admin-new-lot, .admin-lots, .admin-audit, .admin-tag-list, .admin-vocabulary) { color: var(--cr-ink); }
.admin-page .admin-file-picker { min-height: 56px; border: 1px dashed #a58e62; border-radius: 10px; background: #2d2a26; color: #d9c28f; }
.admin-page .admin-file-picker svg { color: #c5aa70; }
.admin-page .workspace-sync-error { border-color: #c97a17; border-left-color: #a54b00; background: #fff4db; color: #4c2b00; }
.admin-page .workspace-sync-error strong, .admin-page .workspace-sync-error span { color: #604213; }
.admin-page .upload-guidance-row .upload-help-copy { color: var(--panel-muted); }
.admin-page .admin-lots tr { border-bottom: 1px solid var(--panel-line); }
.admin-page .admin-lots th, .admin-page .admin-lots small { color: var(--panel-muted); }
.admin-page .admin-lots td, .admin-page .admin-lots td strong { color: var(--cr-ink); }
.admin-page .lot-workspace > summary, .admin-page .admin-lot-editor-details > summary { color: var(--cr-purple-deep); }
.admin-page .lot-state { background: #fff1c2; color: #694d00; }
.admin-page .lot-statuses span { background: #eee8f7; color: #452387; }
.admin-page .closed-lot-note { background: #342f26; color: #eadbbf; }
.admin-page .closed-lot-note strong, .admin-page .admin-help-copy { color: var(--cr-ink-soft); }
.admin-page .admin-piece-grid { border-color: var(--panel-line); }
.admin-page .admin-piece { border-color: var(--panel-line); }
.admin-page .admin-piece fieldset { border-radius: 14px; background: transparent; }
.admin-page .admin-piece fieldset:hover { background: #34323a; }
.admin-page .admin-piece.is-publicada fieldset { border-left-color: #43bd7c; background: #1e382b; }
.admin-page .admin-piece.is-borrador fieldset { border-left-color: #e0b439; background: #3a3321; }
.admin-page .admin-piece.is-oculta fieldset { border-left-color: #aaa5ae; background: #302f35; }
.admin-page .admin-piece.is-descartada fieldset { border-left-color: #e36a77; background: #3d282d; }
.admin-page .admin-piece legend span, .admin-page .piece-row-information [data-admin-status] { color: var(--panel-muted); }
.admin-page .piece-row-information h3 { color: var(--cr-ink); font-family: var(--cr-body); font-size: 14px; font-weight: 750; }
.admin-page .piece-row-weight { color: var(--panel-muted); }
.admin-page .piece-row-weight-warning { color: #f5d46f; }
.admin-page .piece-row-weight-danger { color: #ffadb6; }
.admin-page .piece-row-state-publicada { background: #1e5035; color: #b8f2ce; }
.admin-page .piece-row-state-borrador { background: #51421b; color: #ffebaa; }
.admin-page .piece-row-state-oculta { background: #44414a; color: #e1dce5; }
.admin-page .piece-row-state-descartada { background: #5b2d35; color: #ffd1d7; }
.admin-page .piece-row-processing, .admin-page .piece-row-processing-error { color: var(--panel-muted); }
.admin-page .admin-piece-editor { border: 1px solid #71695d; border-radius: 12px; background: var(--cr-cream); color: var(--cr-ink); box-shadow: 0 18px 60px rgb(0 0 0 / 48%); }
.admin-page .admin-piece-editor::backdrop { background: rgb(19 19 23 / 72%); }
.admin-page .admin-piece-editor :is(h2, h3) { color: var(--cr-ink); }
.admin-page .admin-piece-editor label { color: var(--cr-ink-soft); }
.admin-page .admin-piece-editor-header, .admin-page .admin-piece-editor-footer { border-color: var(--panel-line); }
.admin-page .admin-piece-editor-footer { background: var(--cr-cream); }
.admin-page .piece-editor-cancel { background: var(--panel-card) !important; color: var(--cr-ink) !important; }
.admin-page .admin-pagination-direction, .admin-page .admin-library-pagination-pages a { min-width: 40px; min-height: 40px; border: 1.5px solid var(--cr-ink); border-radius: 999px; color: var(--cr-ink); }
.admin-page .admin-library-pagination-pages .is-current { background: var(--cr-yellow); color: var(--cr-ink); }
.admin-page .library-feedback, .admin-page .library-selection-help { color: var(--panel-muted); }
.admin-page .admin-taxonomy-trigger { min-height: 44px; border: 1px solid #71695d; border-radius: 8px; background: var(--panel-card); color: var(--cr-ink); }
.admin-page .admin-taxonomy-filter:has(.admin-taxonomy-count:not(:empty)) .admin-taxonomy-trigger { border-color: #a58e62; background: #37332c; color: #e0cb9a; }
.admin-page .admin-taxonomy-count { background: #b9a16f; color: #242321; }
.admin-page .admin-taxonomy-menu { border: 1px solid #71695d; border-radius: 10px; background: var(--panel-card); color: var(--cr-ink); box-shadow: 0 12px 28px rgb(0 0 0 / 42%); }
.admin-page .admin-taxonomy-menu-head button { color: #d7c49e; }
.admin-page .admin-taxonomy-option { color: var(--cr-ink-soft); }
.admin-page .admin-taxonomy-option:hover, .admin-page .admin-taxonomy-option:has(input:checked) { background: #37332c; color: #f1dfb7; }
.admin-page .admin-taxonomy-option::before { border-color: #a58e62; background: #272623; }
.admin-page .admin-taxonomy-option:has(input:checked)::before { border-color: #b9a16f; background: #b9a16f; color: #242321; }
.admin-page .admin-taxonomy-option:has(input:focus-visible)::before { outline-color: var(--cr-yellow); }
.admin-page .admin-taxonomy-search { border-color: #71695d; background: var(--panel-field); color: var(--cr-ink); }
.admin-page .admin-taxonomy-search::placeholder { color: #c0b8ad; opacity: 1; }
.admin-page .admin-taxonomy-empty { color: var(--panel-muted); }
.admin-page .admin-taxonomy-trigger:focus-visible, .admin-page .admin-taxonomy-search:focus-visible { outline-color: var(--cr-yellow); }
.admin-page .admin-taxonomy-filter:has(.admin-taxonomy-count:not(:empty)) .admin-taxonomy-trigger { border-color: #9a835a; color: #f1dfb7; }
.admin-page .admin-taxonomy-menu-head button { color: #d7c49e; }
.admin-page .admin-taxonomy-option:has(input:checked) { background: #37332c; color: #f1dfb7; }
.admin-page .admin-taxonomy-option::before { border-color: #a58e62; background: #272623; }
.admin-page .admin-taxonomy-option:has(input:checked)::before { border-color: #b9a16f; background: #b9a16f; color: #242321; }
.admin-page .admin-taxonomy-option:has(input:focus-visible)::before { outline-color: var(--cr-yellow); }
.admin-page #colecciones .collection-photo-card:has(input:checked), .admin-page #colecciones .collection-photo-card.is-selected { border-color: #a58e62; background: #39352e; }
.admin-page #colecciones .collection-photo-card.is-included { border-color: #71695d; background: #302d29; }
.admin-page #colecciones .collection-action-row button[type="submit"], .admin-page #colecciones .collection-action-row [data-collection-save], .admin-page #colecciones .collection-new button[type="submit"] { border-color: #b9a16f; background: #b9a16f; color: #242321; }
.admin-page #colecciones .collection-action-row button[type="submit"]:hover, .admin-page #colecciones .collection-action-row [data-collection-save]:hover, .admin-page #colecciones .collection-new button[type="submit"]:hover { background: #d2bc89; }
.admin-page .admin-search-field { border-color: var(--panel-line); background: var(--panel-field); color: var(--cr-ink); }
.admin-page .admin-search-field svg { color: #c0b8c1; }
.admin-page #piezas .admin-search-field input { width: auto; min-width: 0; min-height: 40px; flex: 1 1 auto; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.admin-page .admin-search-field input::placeholder { color: #b8b0bd; opacity: 1; }
.admin-page .admin-vocabulary-group, .admin-page .admin-collection-card, .admin-page .collection-card { border-color: var(--panel-line); background: var(--panel-card); color: var(--cr-ink); }
.admin-page .admin-collection-editor, .admin-page #colecciones.admin-collections { --collection-ink: var(--cr-ink); --collection-muted: var(--panel-muted); --collection-border: var(--panel-line); --collection-surface: var(--panel-card); --collection-surface-raised: #34312b; --collection-accent: #b9a16f; color: var(--cr-ink); }
.admin-page #colecciones :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { border-color: #71695d; background: var(--panel-field); color: var(--cr-ink); }
.admin-page #colecciones :is(input, textarea)::placeholder { color: #c0b8ad; opacity: 1; }
.admin-page #colecciones label, .admin-page #colecciones p, .admin-page #colecciones small { color: var(--cr-ink-soft); }
.admin-page #colecciones a { color: var(--cr-ink); }
.admin-page #colecciones button:not([type="submit"]):not([data-collection-save]) { color: #fff; }
.admin-page #colecciones :is(button[type="submit"], [data-collection-save]) { color: #132016; }
.admin-page #colecciones :is(button[type="submit"], [data-collection-save]) { border-color: #b9a16f; background: #b9a16f; color: #242321; }
.admin-page #colecciones :is(button[type="submit"], [data-collection-save]):hover { background: #d2bc89; color: #242321; }
.admin-page #colecciones button:hover:not(:disabled) { border-color: #b9a16f; background: #39352e; }
.admin-page #colecciones :is(input, textarea, select):focus-visible { outline: 3px solid #b9a16f !important; }
.admin-page .library-tabs { border-color: var(--panel-line); }
.admin-page .library-tabs [role="tab"] { min-height: 44px; border-bottom-color: transparent; color: #c5bcaf; }
.admin-page .library-tabs [role="tab"][aria-selected="true"] { border-bottom-color: #b9a16f; color: #f0e9dc; }
.admin-page .editor-tag-picker-category.is-active { background: #39352e; color: #e0cb9a; }
.admin-page .editor-tag-picker-category.is-active:hover { background: #39352e; color: #f1dfb7; }
.admin-page .intake-step-nav a.is-active { border-color: #b9a16f; color: #f0e9dc; }
.admin-page .intake-step-nav a.is-active > .intake-step-number { background: #b9a16f; color: #242321; }
.admin-page .admin-upload-pagination a.is-current, .admin-page .admin-library-pagination-pages a.is-current, .admin-page .admin-lot-pagination button.is-current { border-color: #b9a16f; background: #b9a16f; color: #242321; }
.admin-page :is(.admin-search-field input, .admin-taxonomy-search, #colecciones input)::placeholder { color: #c0b8ad; opacity: 1; }
.admin-page .admin-status-inline { color: var(--cr-ink); }
.admin-page .empty-state { color: var(--panel-muted); }

@media (max-width: 1024px) {
  .admin-page .admin-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .admin-page .admin-sidebar { padding-inline: 12px; }
  .admin-page .admin-topbar { align-items: flex-start; flex-wrap: wrap; }
  .admin-page .admin-help { margin-left: auto; }
}
@media (max-width: 900px) {
  .admin-page .admin-shell { display: flex; flex-direction: column; }
  .admin-page .admin-sidebar { position: sticky; top: 0; z-index: 50; width: 100%; height: auto; padding: 8px 12px; border-right: 0; border-bottom: 2px solid var(--cr-ink); }
  .admin-page .admin-brand { min-height: 38px; margin: 0 2px 7px; font-size: 10px; }
  .admin-page .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .admin-page .brand-mark svg { width: 15px; height: 15px; }
  .admin-page .admin-nav { display: flex; gap: 5px; overflow-x: auto; padding: 2px 2px 5px; scrollbar-width: thin; }
  .admin-page .admin-nav a { min-height: 44px; justify-content: center; padding: 8px 12px; font-size: 12px; }
  .admin-page .admin-nav a svg { width: 15px; height: 15px; }
  .admin-page .admin-user { position: absolute; top: 14px; right: 16px; margin: 0; padding: 0; border: 0; font-size: 10px; }
  .admin-page .admin-user svg { width: 14px; height: 14px; }
  .admin-page main { min-height: auto; }
}
@media (max-width: 760px) {
  body:not(.admin-page) .site-header-inner { gap: 10px; padding-inline: 16px; }
  body:not(.admin-page) .site-brand { gap: 8px; font-size: 11px; }
  body:not(.admin-page) .site-nav { gap: 0; }
  body:not(.admin-page) .site-nav a { padding-inline: 10px; font-size: 12px; }
  body:not(.admin-page) .site-shell { padding-inline: 16px; }
  body:not(.admin-page) .catalog-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.admin-page) .catalog-search { grid-column: 1 / -1; }
  body:not(.admin-page) .catalog-toolbar [data-clear-filters] { grid-column: 1 / -1; }
  body:not(.admin-page) .library-piece-grid { gap: 9px; }
  body:not(.admin-page) .piece-modal-shell { max-height: 92dvh; overflow: auto; }
  .admin-page .admin-shell { display: flex; flex-direction: column; }
  .admin-page .admin-sidebar { position: sticky; top: 0; z-index: 50; width: 100%; height: auto; padding: 8px 12px; border-right: 0; border-bottom: 2px solid var(--cr-ink); }
  .admin-page .admin-brand { min-height: 38px; margin: 0 2px 7px; font-size: 10px; }
  .admin-page .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .admin-page .brand-mark svg { width: 15px; height: 15px; }
  .admin-page .admin-nav { display: flex; gap: 5px; overflow-x: auto; padding: 2px 2px 5px; scrollbar-width: thin; }
  .admin-page .admin-nav a { min-height: 44px; justify-content: center; padding: 8px 12px; font-size: 12px; }
  .admin-page .admin-nav a svg { width: 15px; height: 15px; }
  .admin-page .admin-user { position: absolute; top: 14px; right: 16px; margin: 0; padding: 0; border: 0; font-size: 10px; }
  .admin-page .admin-user svg { width: 14px; height: 14px; }
  .admin-page main { min-height: auto; padding: 25px 16px 60px; }
  .admin-page .admin-topbar { gap: 14px; margin-bottom: 22px; }
  .admin-page .admin-topbar h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .admin-page .admin-lead { font-size: 13px; }
  .admin-page .admin-help { min-height: 42px; margin-left: 0; }
  .admin-page .card { padding-block: 20px; }
  .admin-page .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-page .admin-piece fieldset { grid-template-columns: 5.5rem minmax(0,1fr); gap: 10px; padding-inline: 8px; }
  .admin-page .admin-piece .admin-piece-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .admin-page .admin-preview { width: 5.5rem; height: 4.25rem; }
  .admin-page .library-selection-context { justify-content: flex-start; }
}
@media (max-width: 420px) {
  body:not(.admin-page) .site-nav a[href="/aportar/"] { max-width: 116px; justify-content: center; text-align: center; }
  body:not(.admin-page) .theme-toggle { width: 40px; min-width: 40px; }
  .admin-page .admin-user { right: 12px; font-size: 0; }
  .admin-page .admin-user svg { width: 17px; height: 17px; }
  .admin-page .admin-nav a { gap: 6px; padding-inline: 9px; }
  .admin-page .admin-nav a svg { display: none; }
  .admin-page .admin-library-pagination { align-items: flex-start; flex-direction: column; gap: 12px; }
}

/* Component system: consistent type, action and field roles across the panel. */
.admin-page {
  --panel-font-display: var(--cr-display);
  --panel-font-body: var(--cr-body);
  --panel-control-height: 44px;
  --panel-control-radius: 999px;
  --panel-control-border: #71695d;
  --panel-control-shadow: 2px 2px 0 #12110f;
  font-family: var(--panel-font-body);
  font-size: 14px;
  line-height: 1.5;
}
.admin-page :is(h1, h2, h3, h4) { color: var(--cr-ink); font-family: var(--panel-font-display); font-weight: 800; letter-spacing: -.025em; line-height: 1.14; }
.admin-page .admin-topbar h1 { font-size: clamp(2.25rem, 3.8vw, 3rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.admin-page .section-heading h2, .admin-page .dashboard-intro h2, .admin-page .dashboard-primary h2 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; }
.admin-page .piece-row-information h3, .admin-page .admin-piece-editor :is(h2, h3), .admin-page .collection-editor-head h3 { font-family: var(--panel-font-display); font-size: 16px; font-weight: 800; line-height: 1.2; }
.admin-page .admin-lead, .admin-page :is(p, label, small) { font-family: var(--panel-font-body); }
.admin-page .admin-lead { font-size: 14px; line-height: 1.55; }
.admin-page .section-kicker { font-family: var(--panel-font-display); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.admin-page :is(button, .btn) {
  min-height: var(--panel-control-height);
  border: 1.5px solid var(--panel-control-border);
  border-radius: var(--panel-control-radius);
  padding-inline: 16px;
  background: #37342f;
  color: #f0e9dc;
  font-family: var(--panel-font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: none;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.admin-page :is(button, .btn):hover:not(:disabled) { transform: translateY(-1px); border-color: #b9a16f; background: #3d3932; color: #fffaf0; box-shadow: none; }
.admin-page :is(button, .btn):active:not(:disabled) { transform: translate(1px, 1px); background: #2a2824; box-shadow: none; }
.admin-page :is(button, .btn):disabled { transform: none; box-shadow: none; }
.admin-page button[type="submit"]:not(:disabled),
.admin-page .dashboard-primary .dashboard-action,
.admin-page #colecciones .collection-action-row [data-collection-save],
.admin-page #colecciones .collection-new button[type="submit"] {
  border: 2px solid #171614;
  background: #b9a16f;
  color: #242321;
  box-shadow: var(--panel-control-shadow);
}
.admin-page button[type="submit"]:hover:not(:disabled),
.admin-page .dashboard-primary .dashboard-action:hover,
.admin-page #colecciones .collection-action-row [data-collection-save]:hover,
.admin-page #colecciones .collection-new button[type="submit"]:hover { transform: translate(-1px, -1px); border-color: #171614; background: #d2bc89; color: #242321; box-shadow: 4px 4px 0 #12110f; }
.admin-page button[type="submit"]:active:not(:disabled),
.admin-page #colecciones .collection-action-row [data-collection-save]:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #12110f; }
.admin-page :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
  min-height: var(--panel-control-height);
  border: 1.5px solid #746b5d;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--panel-field);
  color: var(--cr-ink);
  font-family: var(--panel-font-body);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
}
.admin-page textarea { min-height: 100px; border-radius: 14px; padding-block: 11px; }
.admin-page :is(input, textarea, select)::placeholder { color: #c0b8ad; opacity: 1; }
.admin-page :is(input, textarea, select):focus-visible { outline: 3px solid #b9a16f !important; outline-offset: 2px !important; }
.admin-page .admin-search-field { min-height: 46px; border: 1.5px solid var(--panel-control-border); border-radius: 999px; padding-inline: 12px; background: var(--panel-field); }
.admin-page #piezas .admin-search-field input { min-height: 40px; border: 0 !important; border-radius: 999px; padding-inline: 8px; background: transparent !important; box-shadow: none !important; }
.admin-page .admin-taxonomy-trigger { min-height: var(--panel-control-height); border-radius: 999px; padding-inline: 14px; font-size: 11px; }
.admin-page .admin-taxonomy-search { min-height: 42px; border-radius: 999px; padding-inline: 12px; font-size: 13px; }
.admin-page .admin-taxonomy-menu { border-radius: 14px; }
.admin-page .admin-help, .admin-page .dashboard-primary .dashboard-action { min-height: 44px; border-radius: 999px; font-family: var(--panel-font-display); font-size: 11px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.admin-page .admin-nav a { border-radius: 999px; font-family: var(--panel-font-display); font-size: 12px; font-weight: 750; letter-spacing: .01em; }
.admin-page .admin-nav a.is-active { border-color: #8d7955; background: #3a352e; color: #f1dfb7; box-shadow: 2px 2px 0 #12110f; }
.admin-page .admin-pagination-direction, .admin-page .admin-library-pagination-pages a { min-width: 44px; min-height: 44px; border: 1.5px solid #71695d; border-radius: 999px; font-family: var(--panel-font-display); font-size: 11px; font-weight: 800; }
.admin-page #colecciones :is(button, .btn) { min-height: 44px; border-radius: 999px; padding-inline: 16px; font-family: var(--panel-font-display); font-size: 11px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.admin-page #colecciones :is(input:not([type="checkbox"]):not([type="radio"]), select) { min-height: 44px; border-radius: 999px; font-family: var(--panel-font-body); font-size: 14px; }
.admin-page #colecciones textarea { min-height: 100px; border-radius: 14px; font-family: var(--panel-font-body); font-size: 14px; }
.admin-page .admin-library-pagination-pages .is-current { border-color: #b9a16f; background: #b9a16f; color: #242321; box-shadow: 2px 2px 0 #12110f; }
.admin-page .admin-piece-editor { border-radius: 18px; }
.admin-page .admin-piece-editor :is(input, select) { border-radius: 999px; }
.admin-page .admin-piece-editor textarea { border-radius: 14px; }
.admin-page #colecciones .collection-action-row button[type="submit"], .admin-page #colecciones .collection-new button[type="submit"] { box-shadow: var(--panel-control-shadow); }
.admin-page #colecciones .collection-photo-card:has(input:checked), .admin-page #colecciones .collection-photo-card.is-selected { border-color: #a58e62; background: #39352e; }
.admin-page #colecciones .collection-photo-card.is-included { border-color: #71695d; background: #302d29; }
.admin-page .library-filters { grid-template-columns: minmax(13rem, 1.4fr) repeat(5, minmax(0, 1fr)); }
.admin-page .library-filters > select { padding-inline: 8px; font-size: 12px; }
.admin-page #colecciones .collection-new summary {
  min-height: 44px;
  border: 1.5px solid #71695d;
  border-radius: 999px;
  padding: 0 15px;
  background: #302d29;
  color: #e6d4a6;
  font-family: var(--panel-font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.admin-page #colecciones .collection-new summary:hover { border-color: #b9a16f; background: #39352e; }
.admin-page #colecciones .collection-new summary:focus-visible { outline: 3px solid #b9a16f; outline-offset: 2px; }
@media (max-width: 800px) {
  body:not(.admin-page) .catalog-toolbar .catalog-clear-all { grid-column: auto; width: max-content; justify-self: end; }
}

/* Espacio interior consistente en los paneles del inicio. */
.admin-page .dashboard-primary { padding: 14px 16px; }
.admin-page .dashboard-primary h2 { margin-top: 6px; }
.admin-page .dashboard-primary p { margin-top: 8px; }
.admin-page .dashboard-primary .dashboard-action { margin-top: 12px; }
.admin-page .dashboard-metrics > div { min-height: 76px; padding: 10px 12px; }
.admin-page .dashboard-usage { padding-inline: 18px; }
.admin-page .attention-list a { padding-inline: 16px; }

/* Paleta y separación de los controles de metadatos de Subir. */
.admin-page .ingestion-metadata-group { margin-top: 8px; padding-top: 20px; }
.admin-page .tag-menu-popup {
  padding: 8px;
  border: 1px solid #514a40;
  border-radius: 12px;
  background: #2b2926;
  color: #f0e9dc;
  box-shadow: 0 14px 30px rgb(0 0 0 / 42%);
}
.admin-page .tag-menu-popup .tag-menu-search {
  min-height: 40px;
  margin-bottom: 6px;
  border: 1px solid #71695d;
  border-radius: 999px;
  background: #302d29;
  color: #f0e9dc;
}
.admin-page .tag-menu-popup .tag-menu-search:focus-visible { outline: 2px solid #b9a16f; outline-offset: 1px; }
.admin-page .tag-menu-popup label {
  min-height: 40px;
  border-radius: 8px;
  padding-inline: 10px;
  color: #e6dfd3;
}
.admin-page .tag-menu-popup label:hover, .admin-page .tag-menu-popup label:focus-within,
.admin-page .tag-menu-popup label:has(input:checked) { background: #39352e; color: #f1dfb7; }
.admin-page .tag-menu-popup label::before {
  display: grid;
  place-items: center;
  border: 1px solid #8d7955;
  border-radius: 4px;
  background: #262522;
}
.admin-page .tag-menu-popup label:has(input:checked)::before {
  border-color: #b9a16f;
  background: #b9a16f;
  color: #242321;
}
.admin-page .tag-menu-popup label:has(input:focus-visible) { outline: 2px solid #b9a16f; outline-offset: -2px; }
.admin-page .ingestion-metadata-group .checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #8d7955;
  border-radius: 4px;
  background: #302d29;
  accent-color: #b9a16f;
}
.admin-page .ingestion-metadata-group .checkbox-label input[type="checkbox"]:checked {
  border-color: #b9a16f;
  background: #b9a16f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23242321' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
}
.admin-page .ingestion-metadata-group .checkbox-label input[type="checkbox"]:focus-visible { outline: 3px solid #b9a16f; outline-offset: 2px; }
.admin-page .upload-create .upload-private-data > summary { color: #d7c49e; }
.admin-page .upload-create .upload-private-data > summary:hover { color: #f1dfb7; }
.admin-page .upload-create .upload-private-data > summary:focus-visible { outline-color: #b9a16f; }
.admin-page .upload-create .upload-private-data > summary > .disclosure-chevron { color: #b9a16f; }
.admin-page .upload-create .upload-private-data .checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  color: #ded7c9;
  line-height: 1.5;
}
.admin-page .upload-create .upload-private-data .checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  border: 1.5px solid #8d7955;
  border-radius: 4px;
  background: #302d29;
}
.admin-page .upload-create .upload-private-data .checkbox-label input[type="checkbox"]:checked {
  border-color: #b9a16f;
  background: #b9a16f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23242321' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.admin-page .upload-create .upload-private-data .checkbox-label input[type="checkbox"]:focus-visible {
  outline: 3px solid #b9a16f;
  outline-offset: 2px;
}

/* Centrado vertical de las pestañas y campos de una sola línea. */
.admin-page [role="tablist"] { align-items: stretch; gap: clamp(12px, 3vw, 24px); border-color: var(--panel-line); }
.admin-page [role="tablist"] [role="tab"] {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  margin: 0 0 -1px;
  padding: 0 2px 12px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #c5bcaf;
  font-family: var(--panel-font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.admin-page [role="tablist"] [role="tab"][aria-selected="true"] {
  border-bottom-color: #c4ab72;
  background: transparent;
  color: #e7d4a7;
  box-shadow: none;
}
.admin-page [role="tablist"] [role="tab"]:hover {
  background: transparent;
  color: #e7d4a7;
}
.admin-page [role="tablist"] [role="tab"]:focus-visible {
  outline: 2px solid #c4ab72;
  outline-offset: 4px;
}
.admin-page :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select) {
  height: 44px;
  min-height: 44px;
  padding-block: 0;
  line-height: 40px;
}

/* Contraste y señalización de controles en los temas oscuros. */
html[data-theme="dark"] body:not(.admin-page) .piece-modal-action .detail-download {
  border-color: #b9a16f;
  background: #b9a16f;
  color: #242321;
  box-shadow: 3px 3px 0 #10100f;
}
html[data-theme="dark"] body:not(.admin-page) .piece-modal-action .detail-download:hover {
  border-color: #d2bc89;
  background: #d2bc89;
  color: #242321;
}
html[data-theme="dark"] body:not(.admin-page) .piece-modal-credit { color: #c5bcaf; }
html[data-theme="dark"] body:not(.admin-page) .catalog-filter-option small { color: #c5bcaf; }

.admin-page .admin-taxonomy-menu { max-height: min(18rem, calc(100vh - 7rem)); padding: .5rem; }
.admin-page .admin-taxonomy-menu-head { position: sticky; top: -.5rem; z-index: 1; min-height: 30px; background: var(--panel-card); }
.admin-page .admin-taxonomy-menu-head button { min-height: 30px; padding-inline: .5rem; }
.admin-page .admin-taxonomy-search { height: 36px; min-height: 36px; margin-block: .35rem .2rem; border-color: #71695d; border-radius: 8px; background: #22211f; color: #f0e9dc; line-height: normal; }
.admin-page .admin-taxonomy-option { min-height: 34px; gap: .6rem; padding: .3rem .4rem; }
.admin-page .admin-taxonomy-option::before { width: 16px; height: 16px; flex-basis: 16px; border: 1.5px solid #9a835a; border-radius: 4px; background: #242321; transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease; }
.admin-page .admin-taxonomy-option:has(input:checked)::before { animation: panel-checkbox-select 180ms cubic-bezier(.2,.75,.25,1); }
@keyframes panel-checkbox-select {
  0% { transform: scale(.72); }
  72% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.admin-page .admin-taxonomy-option:has(input:focus-visible)::before { outline: 2px solid #d0b678; outline-offset: 2px; }
.admin-page .library-filters .admin-search-field {
  min-height: 46px;
  border: 1.5px solid #82745e;
  border-radius: 12px;
  background: #242321;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
}
.admin-page .library-filters .admin-search-field svg { color: #d0b678; }
.admin-page .library-filters .admin-search-field input { height: auto !important; min-height: 0 !important; line-height: normal !important; outline: none !important; outline-offset: 0 !important; }
.admin-page .library-filters .admin-search-field:focus-within { border-color: #d0b678; box-shadow: inset 0 0 0 1px #d0b678; }
.admin-page .library-filters select {
  appearance: none !important;
  padding: 0 20px 0 10px !important;
  font-size: 12px !important;
  border-color: #71695d !important;
  background-color: #292825 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23d7c49e' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E") !important;
  background-position: right 10px center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
}
.admin-page .library-filters select:focus-visible { border-color: #b9a16f; }
@media (max-width: 700px) {
  .admin-page .library-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .admin-page .library-filters .admin-search-field { grid-column: 1 / -1; }
  .admin-page .library-filters .admin-taxonomy-filter > summary { width: 100%; justify-content: space-between; }
  .admin-page .library-filters > select { width: 100%; min-width: 0; }
  .admin-page .library-filters > select:nth-of-type(1) { grid-area: 5 / 1; }
  .admin-page .library-filters > select:nth-of-type(2) { grid-area: 5 / 2; }
  .admin-page .library-filters > select:nth-of-type(3) { grid-area: 6 / 1; }
  .admin-page .library-filters > select:nth-of-type(4) { grid-area: 6 / 2; }
  .admin-page .library-filters > select:nth-of-type(5) { grid-area: 7 / 1; }
  .admin-page .library-filters > select:nth-of-type(6) { grid-area: 7 / 2; }
}
.admin-page .attention-list small,
.admin-page .admin-vocabulary-count,
.admin-page .admin-vocabulary-usage,
.admin-page .admin-library-pagination,
.admin-page .admin-upload-pagination,
.admin-page .admin-lot-pagination,
.admin-page .dashboard-usage small,
.admin-page .dashboard-usage p { color: var(--panel-muted); }
.admin-page .admin-piece-editor-fields label { color: #c5bcaf; }
.admin-page .admin-lot-pagination .admin-pagination-direction.is-disabled { color: #b8b0a4; }
html[data-theme="dark"] body:not(.admin-page) .catalog-last-updated { color: #c5bcaf; }

/* Controls del panel: hacer evidente cuándo se puede desplegar y compactar menús. */
.admin-page .library-filters select {
  min-height: 44px;
  padding: 0 44px 0 14px !important;
  border-width: 1.5px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%2339352e' stroke='%239a835a' stroke-width='1.4'/%3E%3Cpath d='m8.5 10.5 3.5 3.5 3.5-3.5' fill='none' stroke='%23f1dfb7' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E") !important;
  background-position: right 10px center !important;
  background-size: 24px 24px !important;
}
.admin-page .admin-taxonomy-trigger {
  min-height: 44px;
  border: 1.5px solid #82745e;
  background: #302d29;
  padding-inline: 14px 10px;
  color: #f0e9dc;
  font-size: 12px;
  letter-spacing: .035em;
}
.admin-page .admin-taxonomy-trigger:hover,
.admin-page .admin-taxonomy-filter.is-open .admin-taxonomy-trigger {
  border-color: #b9a16f;
  background: #39352e;
  color: #f1dfb7;
}
.admin-page .admin-taxonomy-trigger > svg:last-child {
  width: 24px;
  height: 24px;
  padding: 4px;
  border: 1px solid #9a835a;
  border-radius: 50%;
  background: #242321;
  color: #f1dfb7;
  transition: transform 160ms ease, background-color 160ms ease;
}
.admin-page .admin-taxonomy-filter.is-open .admin-taxonomy-trigger > svg:last-child {
  transform: rotate(180deg);
  background: #b9a16f;
  color: #242321;
}
.admin-page .admin-taxonomy-menu {
  width: min(16rem, calc(100vw - 2rem));
  max-height: min(13rem, calc(100vh - 7rem));
  padding: 5px;
  border-radius: 12px;
}
.admin-page .admin-taxonomy-menu-head { min-height: 27px; font-size: 11px; }
.admin-page .admin-taxonomy-menu-head button { min-height: 28px; padding-inline: 8px; font-size: 11px; }
.admin-page .admin-taxonomy-search { height: 32px; min-height: 32px; margin-block: 4px; padding-inline: 10px; font-size: 12px; }
.admin-page .admin-taxonomy-option { min-height: 28px; gap: 8px; padding: 2px 5px; font-size: 12px; }
.admin-page .admin-taxonomy-option::before { width: 15px; height: 15px; flex-basis: 15px; }
.admin-page .admin-taxonomy-option:has(input:checked)::before { font-size: 12px; }

/* El editor usa acciones alineadas y una selección de etiquetas que se abre a demanda. */
.admin-page .admin-piece-editor-header { align-items: center; gap: 14px; padding: 12px 18px; }
.admin-page .admin-piece-editor-header h2 { max-width: min(58vw, 52rem); font-size: 15px; }
.admin-page .piece-editor-navigation { gap: 7px; }
.admin-page .piece-editor-navigation button,
.admin-page .piece-editor-close { width: 40px; height: 40px; min-height: 40px; border-color: #71695d; background: #302d29; }
.admin-page .piece-editor-navigation button:hover,
.admin-page .piece-editor-close:hover { border-color: #b9a16f; background: #39352e; color: #f1dfb7; }
.admin-page .admin-piece-editor-fields { gap: 10px; padding: 16px 20px; }
.admin-page .admin-piece-editor-fields > label { gap: 6px; font-size: 11px; }
.admin-page .admin-piece-editor-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}
.admin-page .admin-piece-editor-footer [data-piece-editor-status]:empty { display: none; }
.admin-page .admin-piece-editor-footer [data-piece-editor-status]:not(:empty) { grid-column: 1 / -1; margin: 0; }
.admin-page .admin-piece-editor-footer .piece-editor-delete {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 38px;
  border: 1px solid #79524a;
  border-radius: 999px;
  background: transparent;
  color: #e1aaa0;
  box-shadow: none;
}
.admin-page .admin-piece-editor-footer .piece-editor-delete:hover { border-color: #b8786d; background: #3a2825; color: #f0c2b8; }
.admin-page .admin-piece-editor-footer .piece-editor-cancel,
.admin-page .admin-piece-editor-footer [data-piece-editor-submit],
.admin-page .admin-piece-editor-footer [data-piece-editor-publish] {
  min-height: 42px;
  border-radius: 999px;
  padding-inline: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .025em;
  white-space: nowrap;
  box-shadow: none;
}
.admin-page .admin-piece-editor-footer .piece-editor-cancel {
  grid-column: 2;
  border: 1px solid #71695d;
  background: transparent;
  color: #e6dfd3;
}
.admin-page .admin-piece-editor-footer [data-piece-editor-submit] {
  grid-column: 3;
  border: 1.5px solid #b9a16f;
  background: #b9a16f;
  color: #242321;
}
.admin-page .admin-piece-editor-footer [data-piece-editor-publish] {
  grid-column: 4;
  border: 1.5px solid #9a835a;
  background: #39352e;
  color: #f1dfb7;
}
.admin-page .admin-piece-editor-footer :is(.piece-editor-cancel, [data-piece-editor-submit], [data-piece-editor-publish]):hover { border-color: #d2bc89; }
.admin-page .piece-editor-navigation button:focus-visible,
.admin-page .piece-editor-close:focus-visible,
.admin-page .admin-piece-editor-footer button:focus-visible { outline: 2px solid #d0b678; outline-offset: 2px; }
.admin-page .editor-tag-picker { gap: 8px; padding-block: 3px; }
.admin-page .editor-tag-picker-trigger {
  min-height: 36px;
  height: 36px;
  gap: 8px;
  border: 1px solid #71695d;
  border-radius: 999px;
  background: #302d29;
  padding: 0 10px;
  color: #f0e9dc;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.admin-page .editor-tag-picker-trigger:hover,
.admin-page .editor-tag-picker.is-open .editor-tag-picker-trigger { border-color: #b9a16f; background: #39352e; color: #f1dfb7; }
.admin-page .editor-tag-picker-trigger svg { width: 14px; height: 14px; color: #d7c49e; }
.admin-page .editor-tag-picker-trigger svg:last-child {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  padding: 3px;
  border: 1px solid #9a835a;
  border-radius: 50%;
  transition: transform 160ms ease;
}
.admin-page .editor-tag-picker.is-open .editor-tag-picker-trigger svg:last-child { transform: rotate(180deg); }
.admin-page .editor-tag-picker-summary { max-width: 100%; color: #c5bcaf; }
.admin-page .editor-tag-picker-menu { gap: 6px; }
.admin-page .editor-tag-picker-categories { width: 132px; }
.admin-page .editor-tag-picker-category { min-height: 30px; border-radius: 8px; padding: 3px 8px; font-size: 11px; }
.admin-page .editor-tag-picker-category svg { width: 12px; height: 12px; }
.admin-page .editor-tag-picker-panel { max-height: 9rem; padding: 4px; }
.admin-page .editor-tag-picker-panel label { min-height: 27px; gap: 7px; padding: 2px 7px; font-size: 11px; }
.admin-page .editor-tag-picker-panel label::before { width: 14px; height: 14px; flex-basis: 14px; }
.admin-page .editor-tag-picker-panel label:has(input:checked)::before { font-size: 11px; }

@media (max-width: 760px) {
  .admin-page .admin-piece-editor-header { padding: 10px 12px; }
  .admin-page .piece-editor-navigation button,
  .admin-page .piece-editor-close { width: 36px; height: 36px; min-height: 36px; }
  .admin-page .admin-piece-editor-fields { padding: 12px 14px; }
  .admin-page .admin-piece-editor-footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 9px 12px; }
  .admin-page .admin-piece-editor-footer .piece-editor-delete { grid-column: 1 / -1; }
  .admin-page .admin-piece-editor-footer .piece-editor-cancel { grid-column: 1; }
  .admin-page .admin-piece-editor-footer [data-piece-editor-submit] { grid-column: 2; }
  .admin-page .admin-piece-editor-footer [data-piece-editor-publish] { grid-column: 1 / -1; justify-self: end; }
  .admin-page .editor-tag-picker-categories { width: 112px; }
}

/* Alineación y tamaños coherentes para todos los controles accionables. */
.admin-page :is(button, .btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  text-align: center;
  line-height: 1.2;
  vertical-align: middle;
}
.admin-page :is(button, .btn) > svg,
.admin-page :is(button, .btn) > i,
.admin-page :is(button, .btn) > i svg { flex: 0 0 auto; }
.admin-page .admin-piece-editor-footer :is(button, .btn) { min-height: 42px; }
.admin-page .admin-piece-editor-footer .piece-editor-delete { color: #d8a69d; }
.admin-page .admin-piece-editor-footer .piece-editor-delete:hover { color: #f0c2b8; }
.admin-page .piece-action-menu > summary {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
}
.admin-page .piece-action-menu > summary svg { width: 16px; height: 16px; }
@media (min-width: 701px) {
  /* Labels largos conservan su nombre completo y dejan espacio al chevrón. */
  .admin-page .library-filters {
    display: grid;
    grid-template-columns: minmax(13rem, 1.4fr) repeat(5, minmax(0, 1fr));
  }
  .admin-page .library-filters > select { grid-column: span 2; grid-row: auto; }
}
.admin-page .admin-vocabulary-select[aria-pressed="true"] {
  border-color: #a66e62;
  background: #3a2825;
  color: #f0c2b8;
}
.admin-page .tag-menu-trigger,
.admin-page .piece-action-menu-content button {
  justify-content: flex-start;
  text-align: left;
}
.admin-page .editor-tag-picker-category {
  justify-content: space-between;
  text-align: left;
}
.admin-page #colecciones :is(button[type="submit"], [data-collection-save]):hover:not(:disabled) {
  border-color: #d2bc89;
  background: #d2bc89;
  color: #242321;
}
.admin-page .library-filters > select {
  appearance: auto !important;
  color-scheme: dark;
  background-image: none !important;
  padding-right: 12px !important;
}
.admin-page .admin-taxonomy-trigger {
  justify-content: flex-start;
  text-align: left;
}
.admin-page .admin-taxonomy-trigger > svg:last-child {
  width: 16px;
  height: 16px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  transition: transform 180ms ease;
}
.admin-page .admin-taxonomy-filter.is-open .admin-taxonomy-trigger > svg:last-child {
  transform: rotate(180deg);
  background: transparent;
  color: inherit;
}
.admin-page .admin-taxonomy-menu-head { display: none; }
.admin-page .admin-taxonomy-search-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 5px;
}
.admin-page .admin-taxonomy-search-row .admin-taxonomy-search {
  width: auto;
  min-width: 0;
  min-height: 30px;
  height: 30px;
  flex: 1 1 auto;
  margin: 0;
  padding-inline: 9px;
  font-size: 12px;
}
.admin-page .admin-taxonomy-clear {
  display: grid;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  place-items: center;
  border: 1px solid #71695d;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: #d7c49e;
}
.admin-page .admin-taxonomy-clear svg { width: 15px; height: 15px; }
.admin-page .admin-taxonomy-clear:hover { border-color: #b9a16f; background: #39352e; color: #f1dfb7; }
.admin-page .editor-tag-picker-trigger svg:last-child {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.admin-page .admin-taxonomy-menu {
  max-height: min(20rem, calc(100vh - 5rem));
}
.admin-page .admin-taxonomy-search-row .admin-taxonomy-search,
.admin-page .admin-taxonomy-clear {
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
}
.admin-page .admin-taxonomy-clear {
  width: 32px;
  min-width: 32px;
  border-radius: 8px;
}
.admin-page .admin-taxonomy-filter .admin-taxonomy-menu .admin-taxonomy-search-row .admin-taxonomy-search {
  box-sizing: border-box !important;
  height: 32px !important;
  min-height: 32px !important;
  padding-block: 0;
  line-height: 1.2;
}
.admin-page .admin-taxonomy-clear svg { width: 17px; height: 17px; transform: translate(-.25px, -.25px); }
.admin-page .admin-piece-actions { gap: 7px; }
.admin-page .admin-piece-actions :is(.piece-editor-trigger, [data-publish-action], [data-hide-action]) {
  display: inline-flex;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #71695d;
  border-radius: 50%;
  background: #302d29;
  color: #e6dfd3;
  box-shadow: none;
}
.admin-page .admin-piece-actions :is(.piece-editor-trigger, [data-publish-action], [data-hide-action]):hover:not(:disabled) {
  border-color: #b9a16f;
  background: #39352e;
  color: #f1dfb7;
}
.admin-page .admin-piece-actions :is(.piece-editor-trigger, [data-publish-action], [data-hide-action]):disabled { opacity: .42; }
.admin-page .admin-piece-actions :is(.piece-editor-trigger, [data-publish-action], [data-hide-action]) svg { width: 17px; height: 17px; }
.admin-page .admin-piece-actions [data-publish-action] svg { transform: translate(-.75px, .75px); }
.admin-page .admin-piece-actions .piece-status-control {
  display: inline-flex;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #71695d;
  border-radius: 50%;
  padding: 0;
  background: #302d29;
  color: #c5bcaf;
  font-size: 0;
  box-shadow: none;
}
.admin-page .admin-piece-actions .piece-status-control svg { width: 17px; height: 17px; color: #c5bcaf; }
@media (max-width: 760px) {
  .admin-page .piece-editor-navigation button,
  .admin-page .piece-editor-close { width: 44px; height: 44px; min-height: 44px; }
}

/* Los seis filtros secundarios comparten una fila propia, con una superficie verde grisácea distinta de los filtros de etiquetas. */
.admin-page .library-filters > .admin-library-select-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(8rem, 1.3fr) minmax(7.5rem, 1.2fr) minmax(7rem, 1fr) minmax(7rem, 1fr) minmax(9rem, 1.35fr) minmax(6rem, .85fr);
  gap: 8px;
  min-width: 0;
}
.admin-page .admin-library-select-row > .admin-library-select {
  position: relative;
  min-width: 0;
  width: 100%;
}
.admin-page .library-filters .admin-library-select-native { display: none !important; }
.admin-page .admin-library-select-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 10px;
  border: 1.5px solid #77766a;
  border-radius: 999px;
  background: #2b2e29;
  color: #e6dfd3;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
}
.admin-page .admin-library-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-page .admin-library-select-indicator { width: 6px; height: 6px; flex: 0 0 6px; margin-left: auto; border-radius: 50%; background: transparent; transition: background-color 140ms ease, box-shadow 140ms ease; }
.admin-page .admin-library-select.has-value .admin-library-select-indicator { background: #d0b678; box-shadow: 0 0 0 2px rgb(208 182 120 / 15%); }
.admin-page .admin-library-select.has-value .admin-library-select-trigger { border-color: #a58e62; background: #35362f; color: #f1dfb7; }
.admin-page .admin-library-select-trigger > svg:last-child {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-left: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d7c49e;
  transition: transform 180ms ease;
}
.admin-page .admin-library-select-trigger:hover,
.admin-page .admin-library-select.is-open .admin-library-select-trigger {
  border-color: #a58e62;
  background: #343730;
  color: #f1dfb7;
}
.admin-page .admin-library-select.is-open .admin-library-select-trigger > svg:last-child { transform: rotate(180deg); }
.admin-page .admin-library-select-trigger:focus-visible { outline: 2px solid #d0b678 !important; outline-offset: 2px !important; }
.admin-page .admin-library-select-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: 100%;
  max-height: min(18rem, calc(100vh - 7rem));
  gap: 2px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #696b60;
  border-radius: 12px;
  background: #242722;
  box-shadow: 0 12px 28px rgb(0 0 0 / 30%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transform-origin: top;
  visibility: hidden;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}
.admin-page .admin-library-select.is-open .admin-library-select-menu { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
.admin-page .admin-library-select-option {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 4px 9px;
  border: 0;
  border-radius: 7px;
  color: #e6dfd3;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.25;
  outline: none;
}
.admin-page .admin-library-select-option::after { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: transparent; content: ""; }
.admin-page .admin-library-select-option[aria-selected="true"] { background: #353830; color: #f1dfb7; }
.admin-page .admin-library-select-option[aria-selected="true"]::after { background: #d0b678; }
.admin-page .admin-library-select-option:hover,
.admin-page .admin-library-select-option.is-active,
.admin-page .admin-library-select-option:focus-visible { background: #3b3e36; color: #fffaf0; }
@media (max-width: 700px) {
  .admin-page .library-filters > .admin-library-select-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 701px) and (max-width: 1119px) {
  .admin-page .library-filters > .admin-library-select-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1120px) {
  .admin-page .library-filters > .admin-library-select-row { grid-template-columns: minmax(8rem, 1.3fr) minmax(7.5rem, 1.2fr) minmax(7rem, 1fr) minmax(7rem, 1fr) minmax(9rem, 1.35fr) minmax(6rem, .85fr); }
}

/* Editor individual: etiquetas siempre visibles y controles con jerarquía clara. */
.admin-page .admin-piece-editor-fields textarea[name="descripcion"] {
  min-height: 4.5rem;
  height: 4.5rem;
  max-height: 8rem;
  resize: vertical;
  border-radius: 14px !important;
  padding: 12px 12px !important;
  line-height: 1.45;
  text-align: start;
}
.admin-page .admin-piece-editor { max-height: 96vh; }
.admin-page .admin-piece-editor-shell { max-height: 96vh; }
.admin-page .admin-piece-editor-form { max-height: calc(96vh - 5.25rem); }
.admin-page .admin-piece-editor-fields { scrollbar-width: none; }
.admin-page .admin-piece-editor-fields::-webkit-scrollbar { display: none; }
.admin-page :is(.admin-piece-editor-fields label.editor-protection, .upload-create-rights) input[type="checkbox"] {
  appearance: none !important;
  display: grid;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  place-items: center;
  margin: 0;
  border: 1px solid #938365 !important;
  border-radius: 4px !important;
  background: #292824 !important;
  color: #242321;
  accent-color: #b9a16f;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 180ms cubic-bezier(.2,.75,.25,1);
}
.admin-page :is(.admin-piece-editor-fields label.editor-protection, .upload-create-rights) input[type="checkbox"]:checked {
  border-color: #c8ad70 !important;
  background: #c8ad70 !important;
  transform: scale(1.03);
}
.admin-page :is(.admin-piece-editor-fields label.editor-protection, .upload-create-rights) input[type="checkbox"]:checked::after {
  content: "✓";
  color: #242321;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.admin-page :is(.admin-piece-editor-fields label.editor-protection, .upload-create-rights) input[type="checkbox"]:focus-visible {
  outline: 2px solid #d0b678 !important;
  outline-offset: 2px;
}
.admin-page .admin-piece-editor-fields .editor-tag-picker.is-expanded {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-areas: "heading summary" "menu menu";
  align-items: center;
  gap: 6px 12px;
  padding: 5px 0 0;
}
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-heading {
  grid-area: heading;
  color: #d0b678;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-summary {
  grid-area: summary;
  min-width: 0;
  overflow: hidden;
  color: #bdb4a7;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-menu {
  display: grid;
  grid-area: menu;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding-top: 7px;
  border-top: 1px solid rgb(255 255 255 / 9%);
}
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-categories {
  display: flex;
  width: auto;
  flex-direction: column;
  gap: 2px;
}
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-category {
  min-height: 30px;
  justify-content: flex-start;
  gap: 7px;
  padding: 4px 7px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0 5px 5px 0;
  background: transparent;
  color: #c7c0b5;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: none;
}
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-category:hover,
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-category:focus-visible {
  background: rgb(255 255 255 / 5%);
  color: #f1dfb7;
}
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-category.is-active {
  border-left-color: #b9a16f;
  background: rgb(185 161 111 / 11%);
  color: #e4cf9f;
}
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-category svg { display: none; }
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-category:focus-visible {
  outline: 2px solid #d0b678;
  outline-offset: 1px;
}
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-panels { min-width: 0; }
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-panel {
  max-height: min(17rem, 34vh);
  min-height: 9rem;
  padding: 5px;
  border-color: #514a40;
  border-radius: 9px;
  background: #292824;
}
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-panel label { min-height: 30px; }
.admin-page .piece-editor-navigation .piece-editor-download:not([hidden]) {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #71695d;
  border-radius: 50%;
  background: #302d29;
  color: #f1dfb7;
}
.admin-page .piece-editor-navigation .piece-editor-download:hover {
  border-color: #b9a16f;
  background: #39352e;
}
.admin-page .piece-editor-navigation .piece-editor-download:focus-visible {
  outline: 2px solid #d0b678;
  outline-offset: 2px;
}
.admin-page .piece-editor-navigation .piece-editor-download svg { width: 16px; height: 16px; }
.admin-page .admin-piece-editor-header .piece-editor-navigation .piece-editor-delete {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #79524a;
  border-radius: 50%;
  background: transparent;
  color: #d8a69d;
  box-shadow: none;
}
.admin-page .admin-piece-editor-header .piece-editor-navigation .piece-editor-delete:hover:not(:disabled) {
  border-color: #b8786d;
  background: #3a2825;
  color: #f0c2b8;
}
.admin-page .admin-piece-editor-header .piece-editor-navigation .piece-editor-delete svg { width: 16px; height: 16px; }
.admin-page .admin-piece-editor-header .piece-editor-navigation .piece-editor-delete:focus-visible {
  outline: 2px solid #d0b678;
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .admin-page .admin-piece-editor-form { max-height: calc(96vh - 18rem); }
  .admin-page .admin-piece-editor-header:has(.piece-editor-download:not([hidden])) { flex-wrap: wrap; }
  .admin-page .piece-editor-navigation .piece-editor-download:not([hidden]) { width: 44px; height: 44px; }
  .admin-page .admin-piece-editor-fields .editor-tag-picker.is-expanded { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .admin-page .editor-tag-picker.is-expanded .editor-tag-picker-menu { grid-template-columns: 6.25rem minmax(0, 1fr); gap: 6px; }
  .admin-page .editor-tag-picker.is-expanded .editor-tag-picker-panel { max-height: min(15rem, 32vh); }
  .admin-page .admin-piece-editor-header .piece-editor-navigation .piece-editor-delete { width: 36px; min-width: 36px; height: 36px; min-height: 36px; }
}

/* El estado del editor ocupa su columna y nunca añade otra fila al pie. */
.admin-page .admin-piece-editor-footer { position: relative; }
.admin-page .admin-piece-editor-footer [data-piece-editor-status]:not(:empty) {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .admin-page .admin-piece-editor-footer { padding-top: 32px; }
  .admin-page .admin-piece-editor-footer [data-piece-editor-status]:not(:empty) {
    position: absolute;
    top: 8px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

/* La gestión del vocabulario ocupa el espacio de trabajo y mantiene una jerarquía única. */
.admin-page .admin-vocabulary-search {
  display: flex;
  width: min(100%, 28rem);
  min-height: 42px;
  align-items: center;
  gap: 9px;
  margin: 18px 0 14px;
  padding: 0 12px;
  border: 1px solid #71695d;
  border-radius: 999px;
  background: #252421;
  color: #d7c49e;
}
.admin-page .admin-vocabulary-search svg { width: 16px; height: 16px; flex: 0 0 16px; color: #c3ad7b; }
.admin-page .admin-vocabulary-search input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 0 !important;
  border-radius: 0;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #eee7dc;
  font-size: 13px;
}
.admin-page .admin-vocabulary-search input:focus-visible { outline: none !important; }
.admin-page .admin-vocabulary-search:focus-within { border-color: #b9a16f; box-shadow: 0 0 0 2px rgb(185 161 111 / 16%); }
.admin-page .admin-tag-list {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 0;
}
.admin-page .admin-vocabulary-group {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid #514a40;
  border-radius: 12px;
  background: #252522;
  color: #e8e0d3;
}
.admin-page .admin-vocabulary-layout {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.admin-page .admin-vocabulary-categories { display: grid; gap: 4px; }
.admin-page .admin-vocabulary-categories > button {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #eee7dc;
  font-size: 13px;
  text-align: left;
  box-shadow: none;
}
.admin-page .admin-vocabulary-categories > button:hover,
.admin-page .admin-vocabulary-categories > button[aria-pressed="true"] {
  background: #343028;
  color: #e7d4a7;
  transform: none;
  box-shadow: none;
}
.admin-page .admin-vocabulary-categories > button[aria-pressed="true"] { box-shadow: inset 2px 0 #b9a16f; }
.admin-page .admin-vocabulary-categories > button[hidden],
.admin-page .admin-vocabulary-group[hidden] { display: none; }
.admin-page .admin-vocabulary-group > h3 { margin: 14px 14px 0; color: #eee7dc; font-size: 16px; font-weight: 700; }
.admin-page .admin-vocabulary-count { margin-left: auto; color: #c0b8ad; font-size: 11px; }
.admin-page .admin-vocabulary-group-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
}
.admin-page .admin-vocabulary-create {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin: 0;
}
.admin-page .admin-vocabulary-group .admin-vocabulary-create input[name="nombre"] {
  min-width: 0;
  min-height: 42px;
  border-color: #71695d;
  border-radius: 999px;
  background: #242321;
  padding-inline: 14px;
  color: #eee7dc;
  font-size: 13px;
}
.admin-page .admin-vocabulary-create button {
  min-height: 42px;
  border: 1px solid #9a835a;
  border-radius: 999px;
  padding-inline: 18px;
  background: #b9a16f;
  color: #242321;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.admin-page .admin-vocabulary-create button:hover:not(:disabled) { border-color: #d2bc89; background: #d2bc89; color: #242321; }
.admin-page .admin-vocabulary-selection {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 8px;
}
.admin-page .admin-vocabulary-chip {
  display: grid;
  min-width: 0;
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border: 1px solid #514a40;
  border-radius: 9px;
  background: #2b2a26;
  color: #e6dfd3;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.admin-page .admin-vocabulary-chip:hover { border-color: #77694f; background: #302e29; }
.admin-page .admin-vocabulary-select {
  display: flex;
  min-width: 0;
  min-height: 34px;
  justify-content: flex-start;
  overflow: hidden;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 0 8px;
  background: transparent !important;
  color: #e8e0d3;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}
.admin-page .admin-vocabulary-select:hover:not(:disabled) { background: rgb(255 255 255 / 5%) !important; color: #fffaf0; }
.admin-page .admin-vocabulary-select[aria-pressed="true"] {
  background: #3a3327 !important;
  color: #f1dfb7;
}
.admin-page .admin-vocabulary-select[aria-pressed="true"]::before {
  flex: 0 0 auto;
  margin-right: 6px;
  color: #d7bd82;
  content: "✓";
  font-size: 12px;
  font-weight: 800;
}
.admin-page .admin-vocabulary-usage { padding-inline: 4px; color: #c0b8ad; font-size: 10px; }
.admin-page .admin-vocabulary-edit {
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  border: 0 !important;
  border-radius: 7px !important;
  padding: 0;
  background: transparent !important;
  color: #c7bda9;
}
.admin-page .admin-vocabulary-edit:hover:not(:disabled) { background: #3a3832 !important; color: #f1dfb7; }
.admin-page .admin-vocabulary-chip:has(.admin-vocabulary-edit-form) { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); padding: 7px; }
.admin-page .admin-vocabulary-edit-form { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; padding: 0; }
.admin-page .admin-vocabulary-edit-form input { width: 100%; max-width: none; min-width: 0; min-height: 36px; }
.admin-page .admin-vocabulary-edit-form button { min-height: 36px; border-radius: 999px; padding-inline: 12px; }
.admin-page .admin-vocabulary-remove {
  justify-self: start;
  min-height: 38px;
  border: 1px solid #79524a;
  border-radius: 999px;
  padding-inline: 15px;
  background: #302724;
  color: #e1aaa0;
  font-size: 11px;
  font-weight: 750;
}
.admin-page .admin-vocabulary-remove:hover:not(:disabled) { border-color: #b8786d; background: #3a2825; color: #f0c2b8; }
.admin-page .admin-vocabulary-status:empty { display: none; }
.admin-page .admin-vocabulary-status { color: #c5bcaf; font-size: 12px; }
.admin-page .admin-vocabulary-no-results { margin: 0; padding: 18px 14px; color: #d2c8b8; font-size: 13px; }
@media (max-width: 700px) {
  .admin-page .admin-vocabulary-search { width: 100%; }
  .admin-page .admin-vocabulary-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .admin-page .admin-vocabulary-categories { display: flex; flex-wrap: wrap; }
  .admin-page .admin-vocabulary-group-body { padding: 10px; }
  .admin-page .admin-vocabulary-selection { grid-template-columns: minmax(0, 1fr); }
  .admin-page .admin-vocabulary-edit-form { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-page .admin-vocabulary-edit-form .admin-vocabulary-edit-cancel { grid-column: 2; }
}

/* La lista de piezas usa superficies neutras separadas; el hover ya no invade las líneas. */
.admin-page #piezas .section-heading .section-kicker { display: none; }
.admin-page #piezas .admin-piece-grid { gap: 8px; border: 0; }
.admin-page #piezas .admin-piece { border: 0; }
.admin-page #piezas .admin-piece fieldset {
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 14px;
  background: #252421;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.admin-page #piezas .admin-piece.is-publicada fieldset { background: #292823; }
.admin-page #piezas .admin-piece.is-borrador fieldset { background: #292823; }
.admin-page #piezas .admin-piece.is-oculta fieldset,
.admin-page #piezas .admin-piece.is-descartada fieldset { background: #272623; }
.admin-page #piezas .admin-piece fieldset:hover {
  border-color: #625c50;
  background: #302d29;
}
.admin-page #piezas .admin-piece.is-publicada fieldset:hover { border-left-color: #43bd7c; }
.admin-page #piezas .admin-piece.is-borrador fieldset:hover { border-left-color: #c7a75e; }
.admin-page #piezas .admin-piece.is-oculta fieldset:hover { border-left-color: #918b80; }
.admin-page #piezas .admin-piece.is-descartada fieldset:hover { border-left-color: #bd8277; }
.admin-page .admin-library-pagination { border-top: 0; padding-top: 8px; }

/* Los filtros secundarios se integran con el fondo del panel y se reconocen por su borde. */
.admin-page #piezas .admin-library-select-trigger {
  border-color: #716f69;
  background: var(--panel-page);
  color: #e8e7e2;
}
.admin-page #piezas .admin-library-select-trigger:hover,
.admin-page #piezas .admin-library-select.is-open .admin-library-select-trigger {
  border-color: #85837c;
  background: var(--panel-page);
  color: #f7f6f1;
}
.admin-page #piezas .admin-library-select.has-value .admin-library-select-trigger {
  border-color: #817969;
  background: var(--panel-page);
  color: #f0e9dc;
}
.admin-page #piezas .admin-library-select.has-value .admin-library-select-indicator {
  background: #b9a16f;
  box-shadow: 0 0 0 2px rgb(185 161 111 / 14%);
}
.admin-page #piezas .admin-library-select-menu { border-color: #625c50; background: #242321; }
.admin-page #piezas .admin-library-select-option:hover,
.admin-page #piezas .admin-library-select-option.is-active,
.admin-page #piezas .admin-library-select-option:focus-visible { background: #39352e; color: #fffaf0; }

/* Paginación compacta: números como una serie uniforme, con el activo claramente marcado. */
.admin-page .admin-library-pagination-pages { gap: 5px; }
.admin-page .admin-library-pagination-pages a:not(.admin-pagination-direction) {
  min-width: 38px;
  min-height: 38px;
  border-radius: 11px;
  background: #292724;
  color: #e6dfd3;
  box-shadow: none;
}
.admin-page .admin-library-pagination-pages a:not(.admin-pagination-direction):hover:not(.is-current) {
  border-color: #948363;
  background: #39352e;
  color: #fffaf0;
}
.admin-page .admin-library-pagination-pages .is-current {
  min-width: 38px;
  min-height: 38px;
  border-radius: 11px;
  border-color: #b9a16f;
  background: #b9a16f;
  color: #242321;
  box-shadow: none;
}
.admin-page .admin-library-pagination-pages .admin-pagination-direction {
  min-height: 38px;
  border-radius: 12px;
  padding-inline: 12px;
  background: transparent;
  box-shadow: none;
}
.admin-page .admin-library-pagination-pages .admin-pagination-direction:hover:not(.is-disabled) {
  border-color: #948363;
  background: #39352e;
  color: #f1dfb7;
}
.admin-page .admin-library-pagination-pages .admin-pagination-ellipsis { min-width: 20px; text-align: center; }

/* El editor conserva la misma altura aunque cambie la categoría o aparezca un aviso. */
.admin-page .admin-piece-editor {
  height: min(94vh, 860px);
  min-height: min(94vh, 860px);
  max-height: 94vh;
}
.admin-page .admin-piece-editor-shell { height: 100%; min-height: 0; }
.admin-page .admin-piece-editor-layout { flex: 1 1 auto; height: 0; min-height: 0; overflow: hidden; }
.admin-page .admin-piece-editor-form { height: 100%; min-height: 0; max-height: none; }
.admin-page .admin-piece-editor-fields { min-height: 0; }
.admin-page .admin-piece-editor-fields .editor-tag-picker.is-expanded .editor-tag-picker-menu {
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: stretch;
}
.admin-page .admin-piece-editor-fields .editor-tag-picker.is-expanded .editor-tag-picker-panels {
  height: min(15rem, 32vh);
  min-height: 0;
  overflow: hidden;
}
.admin-page .admin-piece-editor-fields .editor-tag-picker.is-expanded .editor-tag-picker-panel {
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}
@media (max-width: 760px) {
  .admin-page .admin-piece-editor { height: 96vh; min-height: 96vh; max-height: 96vh; }
  .admin-page .admin-piece-editor-form { max-height: none; }
  .admin-page .admin-piece-editor-fields .editor-tag-picker.is-expanded .editor-tag-picker-menu { grid-template-columns: 6.25rem minmax(0, 1fr); }
}

/* La lista de etiquetas ocupa el espacio libre del editor y evita el divisor superior. */
.admin-page .admin-piece-editor-fields .editor-tag-picker.is-expanded {
  flex: 1 1 auto;
  min-height: min(17rem, 34vh);
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}
.admin-page .admin-piece-editor-fields > .admin-tags {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}
.admin-page .admin-piece-editor-fields > .admin-tags > .editor-tag-picker.is-expanded {
  flex: 1 1 auto;
  min-height: 0;
}
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-menu {
  height: 100%;
  min-height: 0;
  padding-top: 0;
  border-top: 0;
}
.admin-page .editor-tag-picker.is-expanded .editor-tag-picker-panels { height: 100%; min-height: 0; }
.admin-page .admin-piece-editor-fields .editor-tag-picker.is-expanded .editor-tag-picker-panels {
  height: min(22rem, 40vh);
  min-height: 0;
}
.admin-page .admin-piece-editor-fields .editor-tag-picker.is-expanded .editor-tag-picker-menu { border-top: 0; }
.admin-page .admin-piece-editor-fields .editor-tag-picker.is-expanded .editor-tag-picker-panel {
  height: 100%;
  min-height: 0;
  max-height: none;
}
.admin-page #piezas .admin-piece fieldset { padding-right: 20px; }
@media (max-width: 760px) {
  .admin-page .admin-piece-editor-fields .editor-tag-picker.is-expanded .editor-tag-picker-panels { height: min(14rem, 28vh); }
  .admin-page #piezas .admin-piece fieldset { padding-right: 14px; }
}

.admin-page .dashboard-usage-status { margin: 0 0 18px; color: var(--panel-muted); font-size: 12px; }
.admin-page .dashboard-quota dd { text-align: right; }
.admin-page .dashboard-quota [data-quota-used] { color: #e5c987; }
.admin-page .dashboard-quota meter { display: block; width: 100%; height: 7px; margin-top: 6px; }
.admin-page .dashboard-quota meter[hidden] { display: none; }
.admin-page .dashboard-quota meter::-webkit-meter-bar { background: #39342c; border: 0; }
.admin-page .dashboard-quota meter::-webkit-meter-optimum-value { background: #b9a16f; }
.admin-page .dashboard-quota meter::-webkit-meter-suboptimum-value { background: #e1ab5c; }
.admin-page .dashboard-quota meter::-webkit-meter-even-less-good-value { background: #ef8373; }

.admin-page .upload-create form.upload-create-editor {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.admin-page .upload-create-editor .admin-piece-editor-header { padding: 0 0 20px; border: 0; }
.admin-page .upload-create-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.admin-page .upload-create-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 26rem;
  margin: 0 24px 0 0;
  padding: 12px;
  border: 1px solid #514a40;
  border-radius: 12px;
  background: #302d29;
}
.admin-page .upload-create-preview .upload-create-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: #bda97f;
  font-size: 13px;
}
.admin-page .upload-create-preview:not(:has(.upload-file-preview)) { justify-content: center; }
.admin-page .upload-create-preview:not(:has(.upload-file-preview)) .admin-file-picker { margin-top: 14px; }
.admin-page .upload-create-preview .upload-create-empty svg { width: 30px; height: 30px; }
.admin-page .upload-create-preview:has(.upload-file-preview) .upload-create-empty { display: none; }
.admin-page .upload-create-preview .upload-file-previews { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 32rem; overflow: auto; }
.admin-page .upload-create-preview .upload-file-previews:empty { display: none; }
.admin-page .upload-create-preview .upload-file-preview:first-child { grid-column: 1 / -1; width: 100%; height: clamp(12rem, 34vh, 23rem); aspect-ratio: auto; }
.admin-page .upload-create-preview .upload-file-preview:first-child img { object-fit: contain; }
.admin-page .upload-create-preview .upload-file-preview button.upload-file-preview-remove { min-width: 0; min-height: 0; width: 26px; height: 26px; padding: 0; }
.admin-page .upload-create-preview .admin-file-picker { margin-top: auto; }
.admin-page .upload-create-fields { border-left: 0; overflow: visible; padding: 0 0 0 16px; }
.admin-page .upload-create-fields label:not(.editor-protection):not(.editor-tag-picker-panel label),
.admin-page .upload-create-fields > .ingestion-field-grid > label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
}
.admin-page .upload-create-fields input:not([type="checkbox"]), .admin-page .upload-create-fields textarea {
  font-size: 13px;
  font-weight: 400;
}
.admin-page .upload-create-fields > .admin-tags { flex: 0 0 auto; }
.admin-page .upload-create-fields .editor-tag-picker.is-expanded .editor-tag-picker-panels { height: min(14rem, 33vh); }
.admin-page .upload-create-editor .admin-piece-editor-footer { display: flex; justify-content: flex-end; gap: 16px; margin-top: 20px; padding: 0; border: 0; background: transparent; }
.admin-page .upload-create-editor .admin-piece-editor-footer button { width: auto; max-width: 100%; }
.admin-page .upload-create-rights { display: inline-flex; align-items: center; gap: 8px; color: #e7d4a7; font-size: 12px; cursor: pointer; }
.admin-page .upload-create-editor .admin-piece-editor-footer [data-admin-status] { flex: 1 1 14rem; margin: 0; }
.admin-page .upload-create-editor .admin-piece-editor-footer [data-admin-status]:empty { display: none; }
.admin-page .upload-instructions { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--panel-line); font-size: 13px; line-height: 1.7; color: var(--panel-muted); }
.admin-page .upload-instructions h3 { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--cr-ink); }
.admin-page .upload-instructions dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; }
.admin-page .upload-instructions dt { margin-bottom: 4px; font-weight: 600; color: var(--cr-ink); }
.admin-page .upload-instructions dd { margin: 0; }
.admin-page .upload-instructions p { margin: 16px 0 0; }
.admin-page .upload-instructions a { color: #e7d4a7; text-decoration: underline; text-underline-offset: 3px; }
.admin-page .upload-history-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 14px; border: 0; }
.admin-page .upload-history-list > .upload-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--cr-cream);
}
.admin-page .upload-history-list > .upload-history-row:hover { background: #302d29; }
.admin-page .upload-history-row > .upload-lot-previews { grid-column: 1 / -1; height: 76px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-page .upload-history-row > .upload-lot-previews img { display: block; }
.admin-page .upload-history-row .upload-lot-preview-empty:has(svg)::before { content: none; }
.admin-page .upload-history-row > .upload-lot-copy { text-align: left; }
.admin-page .upload-history-row > svg { color: #b9a16f; }
.admin-page .upload-history-list > .empty-state { grid-column: 1 / -1; }
.admin-page .upload-history .admin-upload-pagination { border: 0; }
@media (max-width: 800px) {
  .admin-page .upload-create-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-page .upload-create-preview { min-height: 0; margin: 0 0 20px; }
  .admin-page .upload-create-fields { padding: 0; }
  .admin-page .upload-instructions dl { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* Colecciones: una secuencia clara y acciones secundarias discretas. */
.admin-page #colecciones.admin-collections .collection-header { align-items: center; margin-bottom: 18px; }
.admin-page #colecciones.admin-collections .collection-header p { display: none; }
.admin-page #colecciones.admin-collections .collection-index,
.admin-page #colecciones.admin-collections .collection-editor {
  border: 1px solid #403d37;
  background: #252421;
  box-shadow: none;
}
.admin-page #colecciones.admin-collections .collection-index { gap: 14px; }
.admin-page #colecciones.admin-collections .collection-new { order: 0; padding: 0; border: 0; }
.admin-page #colecciones.admin-collections .collection-index-list { order: 1; }
.admin-page #colecciones.admin-collections .collection-new summary {
  min-height: 44px;
  justify-content: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1.5px solid #b9a16f;
  border-radius: 999px;
  background: #b9a16f;
  color: #242321;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.admin-page #colecciones.admin-collections .collection-new summary::after { content: none; }
.admin-page #colecciones.admin-collections .collection-new summary > svg { width: 16px; height: 16px; }
.admin-page #colecciones.admin-collections .collection-new[open] summary {
  border-color: #71695d;
  background: transparent;
  color: #d7c49e;
  box-shadow: none;
}
.admin-page #colecciones.admin-collections .collection-new[open] summary > svg { transform: rotate(45deg); }
.admin-page #colecciones.admin-collections .collection-new[open] summary:hover {
  border-color: #b9a16f;
  background: #302d29;
  color: #f1dfb7;
  transform: none;
}
.admin-page #colecciones.admin-collections .collection-new summary:hover { border-color: #d2bc89; background: #d2bc89; color: #242321; transform: translateY(-1px); }
.admin-page #colecciones.admin-collections .collection-new { justify-self: stretch; }
.admin-page #colecciones.admin-collections .collection-new summary { width: fit-content; }
.admin-page #colecciones.admin-collections .collection-new form { max-width: 36rem; padding: 14px 0 4px; }
.admin-page #colecciones.admin-collections .collection-index-item { border: 1px solid transparent; border-radius: 10px; color: #e8e7e2; }
.admin-page #colecciones.admin-collections .collection-index-item:hover { border-color: #514b40; background: #2e2b26; }
.admin-page #colecciones.admin-collections .collection-index-item.is-active,
.admin-page #colecciones.admin-collections .collection-index-item[aria-current="page"] {
  border-color: #887958;
  background: #34302a;
  color: #f5eddd;
}
.admin-page #colecciones .collection-shell.collection-card-layout { grid-template-columns: minmax(0, 1fr); }
.admin-page #colecciones .collection-card-layout .collection-index { padding: 0; border: 0; background: transparent; }
.admin-page #colecciones .collection-card-layout .collection-index-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 16px;
}
.admin-page #colecciones .collection-card-layout .collection-index-item {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--cr-cream);
}
.admin-page #colecciones .collection-card-layout .collection-index-item:hover { background: #302d29; }
.admin-page #colecciones .collection-card-cover {
  display: grid;
  grid-column: 1 / -1;
  height: 100px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #302d29;
  color: var(--panel-muted);
}
.admin-page #colecciones .collection-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.admin-page #colecciones .collection-card-copy { display: grid; gap: 4px; }
.admin-page #colecciones .collection-index-item > svg { width: 16px; height: 16px; color: #b9a16f; }
.admin-page #colecciones .collection-back { margin-bottom: 12px; }
.admin-page #colecciones.admin-collections [data-collection-id].collection-editor {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "details-title" "details-fields" "gallery" "presentation" "visibility" "details-actions";
  align-content: start;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
}
.admin-page #colecciones.admin-collections .collection-settings { display: contents; }
.admin-page #colecciones.admin-collections .collection-editor-head { grid-area: head; padding-bottom: 16px; }
.admin-page #colecciones.admin-collections .collection-settings-intro {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-page #colecciones.admin-collections .collection-settings > .collection-settings-intro { grid-area: details-title; }
.admin-page #colecciones.admin-collections .collection-settings-grid { grid-area: details-fields; }
.admin-page #colecciones.admin-collections .collection-gallery { grid-area: gallery; }
.admin-page #colecciones.admin-collections .collection-cover { grid-area: presentation; }
.admin-page #colecciones.admin-collections .collection-visibility { grid-area: visibility; }
.admin-page #colecciones.admin-collections .collection-settings > .collection-action-row { grid-area: details-actions; }
.admin-page #colecciones.admin-collections .collection-flow-number {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border: 1px solid #76694f;
  border-radius: 50%;
  color: #d0b678;
  font-family: var(--panel-font-display);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.admin-page #colecciones.admin-collections .collection-settings h4,
.admin-page #colecciones.admin-collections .collection-gallery h4,
.admin-page #colecciones.admin-collections .collection-cover h5 { color: #f0e9dc; font-size: 16px; font-weight: 800; }
.admin-page #colecciones.admin-collections .collection-gallery { padding-top: 18px; }
.admin-page #colecciones.admin-collections .collection-gallery-toolbar { display: grid; grid-template-columns: minmax(0, auto) minmax(220px, 1fr); align-items: end; gap: 14px; }
.admin-page #colecciones.admin-collections .collection-gallery-toolbar > label { min-width: 0; }
.admin-page #colecciones.admin-collections .collection-gallery-views { align-self: end; }
.admin-page #colecciones.admin-collections .collection-gallery-views button[aria-pressed="true"] {
  border-color: #a58e62;
  background: #34302a;
  color: #f1dfb7;
}
.admin-page #colecciones.admin-collections .collection-cover {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  padding-top: 18px;
  border-top: 1px solid #403d37;
}
.admin-page #colecciones.admin-collections .collection-cover-heading { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.admin-page #colecciones.admin-collections .collection-cover-preview { grid-column: 1; align-items: center; }
.admin-page #colecciones.admin-collections .collection-cover-preview img { background: #1d1c19; }
.admin-page #colecciones.admin-collections .collection-clear-cover { grid-column: 2; grid-row: 2; }
.admin-page #colecciones.admin-collections .collection-visibility { border: 1px solid #403d37; background: #22211f; }
.admin-page #colecciones.admin-collections .collection-visibility input { accent-color: #b9a16f !important; }
.admin-page #colecciones.admin-collections .collection-action-row { align-items: center; }
.admin-page #colecciones.admin-collections .collection-icon-button {
  position: relative;
  display: inline-grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  border: 1px solid #625c51;
  border-radius: 50%;
  background: #252421;
  color: #ddd5c7;
  box-shadow: none;
}
.admin-page #colecciones.admin-collections .collection-icon-button > svg { width: 17px; height: 17px; }
.admin-page #colecciones.admin-collections .collection-icon-button:hover:not(:disabled) { border-color: #a58e62; background: #34302a; color: #f1dfb7; transform: none; box-shadow: none; }
.admin-page #colecciones.admin-collections .collection-icon-button[aria-pressed="true"] { border-color: #b9a16f; color: #e2ca94; }
.admin-page #colecciones.admin-collections .collection-photo-actions { justify-content: flex-end; gap: 7px; }
.admin-page #colecciones.admin-collections .collection-photo-actions button { flex: 0 0 38px; width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
.admin-page #colecciones.admin-collections .collection-icon-button[data-tooltip]::after {
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 7px);
  left: 50%;
  width: max-content;
  max-width: min(220px, 70vw);
  padding: 6px 8px;
  transform: translate(-50%, 3px);
  border: 1px solid #625c51;
  border-radius: 7px;
  background: #171614;
  color: #f0e9dc;
  content: attr(data-tooltip);
  font-family: var(--panel-font-body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}
.admin-page #colecciones.admin-collections .collection-icon-button[data-tooltip]:hover::after,
.admin-page #colecciones.admin-collections .collection-icon-button[data-tooltip]:focus-visible::after { transform: translate(-50%, 0); opacity: 1; }
.admin-page #colecciones.admin-collections :is(.collection-secondary-button, .collection-gallery-views button, .collection-gallery-footer button) {
  border-color: #625c51;
  background: #252421;
  color: #e8e7e2;
  box-shadow: none;
}
.admin-page #colecciones.admin-collections :is(.collection-secondary-button, .collection-gallery-views button, .collection-gallery-footer button):hover:not(:disabled) {
  border-color: #938365;
  background: #302d28;
  color: #f1dfb7;
  transform: none;
  box-shadow: none;
}
.admin-page #colecciones.admin-collections .collection-photo-card,
.admin-page #colecciones.admin-collections .collection-photo-card.is-included { border: 1px solid #403d37; background: #242320; }
.admin-page #colecciones.admin-collections .collection-photo-card.is-included { border-color: #6d624d; }
.admin-page #colecciones.admin-collections .collection-photo-card.is-selected,
.admin-page #colecciones.admin-collections .collection-photo-card:has(input:checked) { border-color: #a58e62; background: #302d28; }
.admin-page #colecciones.admin-collections :is(.collection-action-row button[type="submit"], [data-collection-save], .collection-new button[type="submit"]) {
  border: 2px solid #171614;
  background: #b9a16f;
  color: #242321;
  box-shadow: 3px 3px 0 #12110f;
}
.admin-page #colecciones.admin-collections :is(.collection-action-row button[type="submit"], [data-collection-save], .collection-new button[type="submit"]):hover:not(:disabled) {
  border-color: #171614;
  background: #d2bc89;
  color: #242321;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #12110f;
}
@media (max-width: 700px) {
  .admin-page #colecciones.admin-collections .collection-gallery-toolbar { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .admin-page #colecciones.admin-collections .collection-gallery-views { flex-wrap: nowrap; }
  .admin-page #colecciones.admin-collections .collection-gallery-views button { flex: 1 1 0; }
}
@media (max-width: 420px) {
  .admin-page #colecciones.admin-collections .collection-gallery-footer .collection-action-row > .collection-icon-button { flex: 0 0 40px; width: 40px; }
}
