@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

:root {
  --admin-ink: #142019;
  --admin-green: #10271f;
  --admin-green-soft: #1b382d;
  --admin-gold: #cf9e64;
  --admin-cream: #f4efe5;
  --admin-paper: #fbfaf7;
  --admin-line: #e5dfd4;
  --admin-muted: #737b76;
}

.admin-body { min-height: 100vh; color: var(--admin-ink); background: var(--admin-paper); }
.admin-body [hidden] { display: none !important; }
.admin-body button, .admin-body input, .admin-body select, .admin-body textarea { font: inherit; }
.admin-login { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, .85fr) 1.15fr; }
.login-card { max-width: 520px; width: 100%; align-self: center; justify-self: center; padding: 58px 55px; }
.admin-brand { width: max-content; display: inline-flex; gap: 11px; align-items: center; margin-bottom: 72px; color: var(--admin-green); }
.teo-admin-mark { flex-shrink: 0; width: 48px; height: 48px; background: #fffdf8; padding: 3px; }
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand strong { font-family: var(--serif); font-size: 28px; letter-spacing: -.025em; line-height: 1; text-transform: none; }
.admin-brand small { margin-top: 6px; font-size: 8px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.admin-kicker { display: block; color: #946a3f; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.login-card h1 { max-width: 440px; margin: 9px 0 14px; font-family: var(--serif); font-size: clamp(40px, 4vw, 54px); font-weight: 500; line-height: .98; }
.login-card > p { max-width: 430px; margin-bottom: 32px; color: var(--admin-muted); font-size: 13px; line-height: 1.75; }
.login-form { display: grid; gap: 16px; }
.login-form label, .editor-grid > label { display: flex; flex-direction: column; gap: 7px; color: #404b45; font-size: 10px; font-weight: 700; }
.login-form input, .editor-grid input, .editor-grid select, .editor-grid textarea { width: 100%; padding: 12px 13px; color: var(--admin-ink); background: white; border: 1px solid var(--admin-line); border-radius: 5px; outline: 0; font-size: 12px; font-weight: 400; }
.login-form input { min-height: 49px; }
.login-form input:focus, .editor-grid input:focus, .editor-grid select:focus, .editor-grid textarea:focus { border-color: #9c774e; box-shadow: 0 0 0 3px rgba(156, 119, 78, .1); }
.demo-access { display: flex; justify-content: space-between; margin: -3px 0 0; padding: 9px 12px; color: var(--admin-muted); background: var(--admin-cream); border-radius: 4px; font-size: 9px; }
.demo-access strong { color: var(--admin-green); }
.admin-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 17px; border: 1px solid transparent; border-radius: 5px; font-size: 11px; font-weight: 700; transition: transform .18s, background .18s, box-shadow .18s; }
.admin-button:hover { transform: translateY(-1px); }
.admin-button.primary { color: white; background: var(--admin-green); }
.admin-button.primary:hover { background: var(--admin-green-soft); box-shadow: 0 8px 20px rgba(16, 39, 31, .13); }
.admin-button.secondary { color: var(--admin-green); background: white; border-color: var(--admin-line); }
.admin-button.ai { color: white; background: linear-gradient(135deg, #76533a, #a87343); }
.admin-button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.form-error { min-height: 18px; margin: 0; color: #954c42; font-size: 10px; text-align: center; }
.back-to-store { display: block; margin-top: 26px; color: var(--admin-muted); font-size: 10px; text-align: center; }
.login-visual { position: relative; min-height: 100vh; background: linear-gradient(90deg, rgba(10, 24, 18, .08), rgba(10, 24, 18, .25)), url('assets/editorial/hero-bookstore-v2.png') center / cover; }
.login-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 22, 16, .58), transparent 48%); }
.login-visual > div { position: absolute; z-index: 1; right: 48px; bottom: 45px; display: flex; gap: 14px; align-items: center; color: white; }
.login-visual span { font-family: var(--serif); font-size: 52px; line-height: 1; }
.login-visual small { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .5); font-size: 9px; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase; }

.admin-shell { min-height: 100vh; grid-template-columns: 245px minmax(0, 1fr); }
.admin-shell:not([hidden]) { display: grid; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 20px 20px; color: #eef0ec; background: var(--admin-green); }
.admin-brand.light { margin: 0 10px 48px; color: white; }
.admin-brand.light .admin-brand-mark { width: 42px; height: 42px; font-size: 26px; }
.admin-nav { display: grid; gap: 6px; }
.admin-nav button, .admin-sidebar-bottom a, .admin-sidebar-bottom button { width: 100%; display: flex; gap: 12px; align-items: center; padding: 11px 13px; color: #aebbb4; background: none; border: 0; border-radius: 5px; font-size: 11px; text-align: left; }
.admin-nav button span, .admin-sidebar-bottom span { width: 19px; color: #d2b28a; font-size: 16px; text-align: center; }
.admin-nav button:hover, .admin-nav button.active, .admin-sidebar-bottom a:hover, .admin-sidebar-bottom button:hover { color: white; background: rgba(255, 255, 255, .08); }
.admin-sidebar-bottom { display: grid; gap: 5px; margin-top: auto; padding-top: 17px; border-top: 1px solid rgba(255, 255, 255, .1); }
.admin-main { min-width: 0; }
.admin-topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px clamp(24px, 4vw, 58px); background: rgba(251, 250, 247, .95); border-bottom: 1px solid var(--admin-line); }
.admin-topbar > div strong { display: block; margin-top: 2px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.admin-menu { display: none; width: 40px; height: 40px; background: white; border: 1px solid var(--admin-line); border-radius: 5px; }
.store-status { display: flex; gap: 8px; align-items: center; color: var(--admin-muted); font-size: 10px; }
.store-status i { width: 7px; height: 7px; background: #58a070; border-radius: 50%; }
.admin-view { max-width: 1400px; margin-inline: auto; padding: 45px clamp(24px, 4vw, 58px) 80px; }
.admin-page-heading { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; margin-bottom: 30px; }
.admin-page-heading h1 { margin: 7px 0 5px; font-family: var(--serif); font-size: 43px; font-weight: 500; line-height: 1; }
.admin-page-heading p { margin: 0; color: var(--admin-muted); font-size: 11px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { position: relative; min-height: 118px; padding: 20px; overflow: hidden; background: white; border: 1px solid var(--admin-line); border-radius: 7px; }
.stat-card::after { content: ''; position: absolute; right: -16px; bottom: -25px; width: 72px; height: 72px; background: var(--admin-cream); border-radius: 50%; }
.stat-card span { display: block; color: var(--admin-muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 10px; font-family: var(--serif); font-size: 31px; font-weight: 600; line-height: 1; }
.stat-card small { color: #59906b; font-size: 8px; }
.inventory-card { overflow: hidden; background: white; border: 1px solid var(--admin-line); border-radius: 7px; }
.inventory-toolbar { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--admin-line); }
.admin-search { width: min(430px, 52%); min-height: 40px; display: flex; align-items: center; padding: 0 13px; color: var(--admin-muted); background: var(--admin-paper); border: 1px solid var(--admin-line); border-radius: 5px; }
.admin-search span { margin-right: 9px; font-size: 18px; }
.admin-search input { width: 100%; background: none; border: 0; outline: 0; font-size: 10px; }
.admin-filter { display: flex; gap: 9px; align-items: center; color: var(--admin-muted); font-size: 9px; }
.admin-filter select { padding: 9px 30px 9px 10px; background: white; border: 1px solid var(--admin-line); border-radius: 5px; font-size: 10px; }
.inventory-table-wrap { position: relative; overflow-x: auto; }
.inventory-table { width: 100%; border-collapse: collapse; }
.inventory-table th { padding: 12px 16px; color: #919791; background: #fcfbf9; border-bottom: 1px solid var(--admin-line); font-size: 8px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.inventory-table td { padding: 13px 16px; border-bottom: 1px solid #eee9e1; color: #46504a; font-size: 10px; vertical-align: middle; }
.inventory-table tr:last-child td { border-bottom: 0; }
.inventory-table tbody tr:hover { background: #fdfbf7; }
.book-cell { min-width: 255px; display: grid; grid-template-columns: 47px minmax(0, 1fr); gap: 12px; align-items: center; }
.admin-book-cover { width: 47px; height: 64px; overflow: hidden; background: var(--admin-cream); border-radius: 2px; box-shadow: 0 4px 10px rgba(20, 32, 25, .12); }
.admin-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.admin-book-cover span { height: 100%; display: grid; place-items: center; padding: 4px; color: #766246; font-family: var(--serif); font-size: 7px; line-height: 1.1; text-align: center; }
.book-cell strong, .book-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-cell strong { max-width: 220px; color: var(--admin-ink); font-size: 11px; }
.book-cell small { max-width: 220px; margin-top: 3px; color: var(--admin-muted); font-size: 8px; }
.status-pill { display: inline-flex; gap: 6px; align-items: center; padding: 5px 8px; border-radius: 20px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.status-pill::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status-available { color: #397650; background: #edf7f0; }
.status-sold { color: #8d5047; background: #f8eeeb; }
.status-draft { color: #806441; background: #f7f0e5; }
.condition-mini { white-space: nowrap; }
.condition-mini::before { content: ''; width: 6px; height: 6px; display: inline-block; margin-right: 6px; background: #70a47f; border-radius: 50%; }
.row-actions { min-width: 120px; text-align: right; white-space: nowrap; }
.row-action { min-height: 31px; padding: 5px 8px; color: var(--admin-green); background: white; border: 1px solid var(--admin-line); border-radius: 4px; font-size: 8px; font-weight: 700; }
.row-action:hover { border-color: #ae9575; }
.row-action.sold { color: #8d5047; }
.inventory-empty { padding: 60px 20px; text-align: center; }
.inventory-empty p { margin: 5px 0 0; color: var(--admin-muted); font-size: 10px; }

.editor-view { max-width: 1100px; }
.editor-heading { align-items: flex-end; }
.back-button { margin: 0 0 18px; padding: 0; color: var(--admin-muted); background: none; border: 0; font-size: 9px; }
.draft-state { padding: 7px 10px; color: #806441; background: #f4eadb; border-radius: 20px; font-size: 8px; font-weight: 700; }
.book-editor { display: grid; gap: 17px; }
.editor-card { padding: 25px; background: white; border: 1px solid var(--admin-line); border-radius: 7px; }
.editor-card-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 20px; }
.step-number { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; color: white; background: var(--admin-green); border-radius: 50%; font-size: 9px; font-weight: 700; }
.editor-card-heading h2 { margin: 1px 0 3px; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.editor-card-heading p { margin: 0; color: var(--admin-muted); font-size: 9px; }
.upload-zone { position: relative; min-height: 210px; display: grid; place-items: center; overflow: hidden; background: #fcfaf6; border: 1px dashed #cabcaa; border-radius: 6px; transition: background .2s, border .2s; }
.upload-zone.dragging { background: #f5eee3; border-color: #987550; }
.upload-zone > input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-placeholder { color: var(--admin-muted); text-align: center; pointer-events: none; }
.upload-placeholder strong { display: block; margin-top: 9px; color: var(--admin-ink); font-size: 11px; }
.upload-placeholder p { margin: 3px 0 0; font-size: 9px; }
.upload-icon { width: 43px; height: 43px; display: grid; place-items: center; margin: auto; color: #936941; background: var(--admin-cream); border-radius: 50%; font-size: 20px; }
.image-previews { position: relative; z-index: 3; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 180px)); justify-content: center; gap: 14px; padding: 20px; pointer-events: none; }
.image-preview { position: relative; height: 180px; overflow: hidden; background: var(--admin-cream); border-radius: 4px; box-shadow: 0 7px 18px rgba(20, 32, 25, .12); }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-actions { display: flex; justify-content: space-between; gap: 15px; margin-top: 10px; color: var(--admin-muted); font-size: 8px; }
.text-button { padding: 0; color: #8f6035; background: none; border: 0; font-size: 9px; font-weight: 700; text-decoration: underline; }
.ai-card { background: linear-gradient(130deg, #fbf8f2, #f3ece1); }
.prototype-badge { margin-left: auto; padding: 5px 8px; color: #805d39; background: white; border: 1px solid #decdb8; border-radius: 20px; font-size: 7px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ai-idle, .ai-progress, .ai-result { min-height: 76px; display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 15px 17px; background: rgba(255, 255, 255, .76); border: 1px solid #e4d7c7; border-radius: 5px; }
.ai-idle strong, .ai-progress strong, .ai-result strong { font-size: 10px; }
.ai-idle p, .ai-progress p, .ai-result p { max-width: 630px; margin: 3px 0 0; color: var(--admin-muted); font-size: 8px; }
.ai-progress { justify-content: flex-start; }
.ai-spinner { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: #8f643e; border-radius: 50%; animation: aiPulse 1s infinite alternate; }
@keyframes aiPulse { to { transform: scale(1.08); box-shadow: 0 0 0 7px rgba(143, 100, 62, .12); } }
.ai-result { border-color: #bdd5c4; }
.ai-result-copy { display: flex; gap: 11px; align-items: center; }
.ai-result-copy > span { width: 29px; height: 29px; display: grid; place-items: center; color: white; background: #5a9670; border-radius: 50%; }
.confidence { padding: 5px 8px; color: #4c7d5b; background: #edf7f0; border-radius: 20px; font-size: 7px; font-weight: 700; white-space: nowrap; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.editor-grid .span-2 { grid-column: 1 / -1; }
.editor-grid textarea { resize: vertical; line-height: 1.6; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 42px; }
.input-suffix b { position: absolute; right: 12px; top: 50%; color: var(--admin-muted); font-size: 9px; transform: translateY(-50%); }
.editor-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--admin-line); }
.editor-options label { display: flex; gap: 11px; align-items: center; padding: 12px; background: var(--admin-paper); border: 1px solid var(--admin-line); border-radius: 5px; cursor: pointer; }
.editor-options input { width: 16px; height: 16px; accent-color: var(--admin-green); }
.editor-options span, .editor-options strong, .editor-options small { display: block; }
.editor-options strong { font-size: 9px; }
.editor-options small { color: var(--admin-muted); font-size: 7px; }
.editor-actions { position: sticky; z-index: 10; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 17px 20px; background: rgba(251, 250, 247, .96); border: 1px solid var(--admin-line); border-radius: 7px; box-shadow: 0 -8px 24px rgba(20, 32, 25, .05); backdrop-filter: blur(8px); }
.editor-actions > div { min-width: 0; flex: 1; }
.editor-actions > div strong, .editor-actions > div span { display: block; }
.editor-actions > div strong { font-size: 10px; }
.editor-actions > div span { color: var(--admin-muted); font-size: 8px; }
.admin-toast { position: fixed; z-index: 200; right: 24px; bottom: 24px; max-width: min(360px, calc(100% - 30px)); padding: 13px 18px; color: white; background: var(--admin-green); border-radius: 5px; box-shadow: 0 15px 35px rgba(16, 39, 31, .23); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s; font-size: 10px; }
.admin-toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .admin-login { grid-template-columns: minmax(400px, 1fr) .7fr; }
  .login-card { padding: 45px 35px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .admin-sidebar { padding-inline: 14px; }
  .inventory-table th:nth-child(2), .inventory-table td:nth-child(2) { display: none; }
}

@media (max-width: 720px) {
  .admin-login { display: block; }
  .login-card { max-width: 520px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 24px; }
  .admin-brand { margin-bottom: 48px; }
  .login-visual { display: none; }
  .admin-shell { display: block !important; }
  .admin-sidebar { position: fixed; z-index: 50; left: 0; width: min(280px, 86vw); padding-top: 25px; transform: translateX(-105%); transition: transform .22s; }
  .admin-body.admin-menu-open .admin-sidebar { transform: translateX(0); }
  .admin-menu { display: block; }
  .admin-topbar { justify-content: flex-start; padding: 12px 17px; }
  .store-status { margin-left: auto; }
  .store-status { font-size: 0; }
  .store-status i { width: 8px; height: 8px; }
  .store-status span { font-size: 13px; }
  .admin-view { padding: 30px 15px 65px; }
  .admin-page-heading { align-items: flex-start; }
  .admin-page-heading h1 { font-size: 36px; }
  .admin-page-heading > .admin-button { min-height: 39px; padding-inline: 12px; font-size: 9px; }
  .inventory-toolbar { align-items: stretch; }
  .admin-search { width: 100%; }
  .admin-filter { font-size: 0; }
  .inventory-table th:nth-child(3), .inventory-table td:nth-child(3), .inventory-table th:nth-child(4), .inventory-table td:nth-child(4) { display: none; }
  .inventory-table th, .inventory-table td { padding-inline: 10px; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-grid .span-2 { grid-column: auto; }
  .editor-card { padding: 19px 15px; }
  .editor-options { grid-template-columns: 1fr; }
  .editor-actions { flex-wrap: wrap; }
  .editor-actions > div { flex: 1 0 100%; }
  .editor-actions .admin-button { flex: 1; }
  .prototype-badge { display: none; }
  .ai-idle, .ai-result { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { min-height: 104px; padding: 15px; }
  .stat-card strong { font-size: 27px; }
  .inventory-table th:nth-child(5), .inventory-table td:nth-child(5) { display: none; }
  .book-cell { min-width: 205px; }
  .book-cell strong, .book-cell small { max-width: 140px; }
  .row-actions { min-width: 82px; }
  .row-action { display: block; width: 100%; margin: 3px 0; }
  .upload-actions { align-items: flex-start; flex-direction: column; }
  .image-previews { gap: 7px; padding: 12px; }
  .image-preview { height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-spinner { animation: none; }
}

/* Readability pass: the dashboard is used for work, so UI copy stays comfortably legible. */
:root {
  --admin-muted: #5e6862;
}

.admin-body { font-size: 15px; line-height: 1.5; }
.admin-brand small { font-size: 10px; }
.admin-kicker { font-size: 12px; }
.login-card > p { font-size: 15px; }
.login-form label, .editor-grid > label { font-size: 13px; }
.login-form input, .editor-grid input, .editor-grid select, .editor-grid textarea { font-size: 14px; }
.demo-access, .form-error, .back-to-store { font-size: 12px; }
.admin-button { min-height: 46px; font-size: 13px; }
.login-visual small { font-size: 11px; }
.admin-nav button, .admin-sidebar-bottom a, .admin-sidebar-bottom button { font-size: 14px; }
.store-status { font-size: 13px; }
.admin-page-heading p { font-size: 14px; }
.stat-card span { font-size: 11px; }
.stat-card small { font-size: 11px; }
.admin-search input, .admin-filter, .admin-filter select { font-size: 13px; }
.inventory-table th { font-size: 11px; }
.inventory-table td { font-size: 13px; }
.book-cell strong { font-size: 14px; }
.book-cell small { font-size: 11px; }
.status-pill, .row-action { font-size: 11px; }
.inventory-empty p, .back-button, .draft-state { font-size: 12px; }
.step-number { font-size: 11px; }
.editor-card-heading p { font-size: 12px; }
.upload-placeholder strong { font-size: 14px; }
.upload-placeholder p, .upload-actions, .text-button { font-size: 12px; }
.prototype-badge, .confidence { font-size: 10px; }
.ai-idle strong, .ai-progress strong, .ai-result strong { font-size: 13px; }
.ai-idle p, .ai-progress p, .ai-result p { font-size: 12px; }
.input-suffix b { font-size: 12px; }
.editor-options strong { font-size: 13px; }
.editor-options small { font-size: 11px; }
.editor-actions > div strong { font-size: 13px; }
.editor-actions > div span { font-size: 11px; }
.admin-toast { font-size: 13px; }

@media (max-width: 720px) {
  .admin-page-heading > .admin-button { font-size: 12px; }
}

/* Five-image editor: append uploads and explicitly remove individual images. */
.upload-zone:focus-within { outline: 3px solid #987550; outline-offset: 3px; }
.upload-card.dragging { outline: 2px dashed #987550; outline-offset: 3px; background: #fcfaf6; }
.image-previews { grid-template-columns: repeat(5, minmax(0, 1fr)); justify-content: start; gap: 14px; padding: 0; pointer-events: auto; }
.image-preview { height: auto; min-width: 0; overflow: visible; box-shadow: none; border: 1px solid var(--admin-line); }
.image-preview img { display: block; width: 100%; height: 190px; padding: 10px; object-fit: contain; }
.image-caption { display: block; padding: 10px 8px; background: #f4f0e8; border-top: 1px solid var(--admin-line); border-radius: 0 0 4px 4px; font-size: 13px; text-align: center; }
.image-preview:first-child .image-caption { background: var(--admin-green); color: white; font-weight: 700; }
.admin-body .remove-image { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #763b2e; background: white; border: 1px solid #d8c7b6; border-radius: 50%; font-size: 26px; line-height: 1; box-shadow: 0 2px 5px #00000012; }
.remove-image:hover { background: #fff0e7; }
.image-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.image-toolbar .admin-button { min-height: 44px; font-size: 14px; }
#image-status { font-size: 14px; color: var(--admin-muted); }
.image-error { margin: 16px 0 0; padding: 12px 15px; color: #803724; background: #fff0e7; border: 1px solid #e2bdac; border-radius: 4px; font-size: 14px; }
#image-help, .upload-placeholder p, .upload-actions, .upload-actions .text-button { font-size: 13px; }
.upload-actions { align-items: center; flex-wrap: wrap; }
.upload-actions .text-button { min-height: 44px; }

@media (max-width: 1100px) {
  .image-previews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .image-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0; }
  .image-preview img { height: 170px; }
  .upload-actions { align-items: flex-start; }
}
