/* Entreclases · Fase 1. Identidad del boceto: blanco, azul celeste, letra amplia. Móvil primero. */
:root {
  --ink: #1d3646;
  --ink-soft: #4d6b80;
  --primary: #203d50;
  --primary-hover: #2c526c;
  --sky: #dfeef8;
  --sky-strong: #cfe6f5;
  --sky-text: #2f6283;
  --paper: #f1f8fc;
  --line: #d2e8f6;
  --line-strong: #b9d6ea;
  --white: #ffffff;
  --ok-bg: #e3f4ea;
  --ok-text: #24613d;
  --warn-bg: #fdf1dc;
  --warn-text: #7a4e0e;
  --danger: #a33a32;
  --danger-bg: #fbe9e7;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 12px 38px rgba(29, 54, 70, 0.08);
  --font: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #70a3c5; outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Cabecera */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { height: 60px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 750; letter-spacing: -0.8px; color: var(--ink); }
.brand-symbol { width: 28px; height: 31px; color: var(--primary); }
.brand small { font-size: 9.5px; letter-spacing: 1.4px; border-left: 1px solid var(--line-strong); padding-left: 8px; margin-left: 2px; font-weight: 750; line-height: 1.35; color: var(--ink-soft); }
.desktop-nav { display: none; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-right .button { display: none; }
.nav-link { color: var(--ink-soft); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; height: 100%; position: relative; }
.nav-link.active { color: var(--primary); font-weight: 650; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--white); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px; font-size: 12px; color: var(--ink-soft); }
.bottom-nav a.active { color: var(--primary); font-weight: 650; }
.bottom-nav.four { grid-template-columns: repeat(4, 1fr); }
.bottom-nav .icon-wrap { position: relative; display: inline-flex; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #c2412f; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.bottom-nav .icon-wrap .nav-badge { position: absolute; top: -6px; right: -12px; }
.bottom-nav .publish-dot { width: 36px; height: 36px; border-radius: 12px; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; margin-top: -4px; }

/* Botones y controles */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 18px; border-radius: 12px; background: var(--primary); color: var(--white); font-size: 15px; font-weight: 650; border: 1px solid transparent; transition: background .15s; text-align: center; }
.button:hover { background: var(--primary-hover); }
.button[disabled], .button[aria-disabled="true"] { opacity: .55; cursor: default; }
.button.secondary { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover { background: #e8f3fa; }
.button.ghost { background: none; color: var(--ink-soft); min-height: 40px; padding: 8px 10px; }
.button.ghost:hover { background: #e8f3fa; }
.button.danger { background: var(--white); color: var(--danger); border-color: #efc7c2; }
.button.small { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.button.full { width: 100%; }
.button.whatsapp { background: #1f7a4d; }
.button.whatsapp:hover { background: #18663f; }
.link-button { color: var(--sky-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--sky-strong); color: #376686; font-weight: 700; border-radius: 50%; width: 36px; height: 36px; font-size: 14px; }
.avatar.large { width: 72px; height: 72px; font-size: 26px; }
.field { display: block; margin-bottom: 16px; }
.field > span, .field-label { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.field small, .hint { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea, .input { width: 100%; background: var(--white); border: 1px solid var(--line-strong); border-radius: 10px; min-height: 46px; padding: 10px 12px; font-size: 16px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #6aa1c7; outline: none; box-shadow: 0 0 0 3px #d6ebf8; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; margin-top: 5px; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); overflow: hidden; }
.input-prefix span { display: flex; align-items: center; padding: 0 12px; background: var(--paper); color: var(--ink-soft); border-right: 1px solid var(--line); font-weight: 600; }
.input-prefix input { border: 0 !important; box-shadow: none !important; border-radius: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.chip .count { font-size: 12px; color: var(--ink-soft); opacity: .85; }
.chip[aria-pressed="true"], .chip.active { background: var(--sky); border-color: #8dbbdb; color: var(--primary); font-weight: 650; }
.chip.cycle { min-width: 44px; justify-content: center; padding: 7px 12px; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--white); font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.segmented input:checked + span { background: var(--sky); border-color: #8dbbdb; color: var(--primary); font-weight: 650; }
.segmented input:focus-visible + span { outline: 3px solid #70a3c5; outline-offset: 2px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--sky); color: var(--sky-text); }
.badge.ok { background: var(--ok-bg); color: var(--ok-text); }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.muted { background: #edf1f4; color: #50626f; }

/* Páginas */
main { min-height: calc(100vh - 160px); }
.page { padding-top: 18px; padding-bottom: 32px; }
.page-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 80px 16px; color: var(--ink-soft); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.page-title { font-size: 26px; letter-spacing: -0.6px; margin-bottom: 6px; }
.page-sub { color: var(--ink-soft); margin: 0 0 20px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.empty { text-align: center; padding: 42px 18px; background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty h2 { font-size: 19px; margin-bottom: 6px; }
.empty p { color: var(--ink-soft); margin: 0 0 16px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--sky); color: var(--sky-text); font-size: 14px; margin: 12px 0; }
.notice.warn { background: var(--warn-bg); color: var(--warn-text); }
.notice.danger { background: var(--danger-bg); color: var(--danger); }

/* Catálogo */
.hero { margin: 4px 0 18px; border-radius: var(--radius-lg); background: var(--sky); padding: 20px 18px; position: relative; overflow: hidden; }
.eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 750; color: #437ea5; display: flex; align-items: center; gap: 7px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4f8db7; }
.hero h1 { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -0.8px; line-height: 1.12; margin: 8px 0 6px; }
.hero h1 em { font-style: normal; color: #3f7aa1; }
.hero p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.search-box { height: 50px; display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; margin-bottom: 18px; }
.search-box:focus-within { border-color: #6aa1c7; box-shadow: 0 0 0 3px #d6ebf8; }
.search-box svg { color: var(--ink-soft); }
.search-box input { border: 0; outline: none; background: none; width: 100%; font-size: 16px; min-width: 0; }
.section-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.3px; font-weight: 750; color: var(--ink-soft); margin: 0 0 8px; }
.filter-block { margin-bottom: 14px; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 18px; }
.filter-row select { width: 100%; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); padding: 8px 10px; font-size: 14px; color: var(--ink); }
.filter-row select:last-child { grid-column: 1 / -1; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.results-head h2 { font-size: 19px; letter-spacing: -0.3px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.card-image { aspect-ratio: 4 / 3; background: var(--sky); position: relative; display: block; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image .badge { position: absolute; left: 8px; bottom: 8px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-weight: 600; }
.card-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-course { font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .6px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title { font-size: 14.5px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin-top: auto; padding-top: 4px; font-weight: 750; color: var(--primary); font-size: 16px; }
.placeholder-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #7fa9c6; }
.placeholder-photo svg { width: 38px; height: 38px; }
.load-more { display: flex; justify-content: center; margin-top: 18px; }

/* Detalle */
.detail { display: grid; gap: 18px; }
.gallery-main { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--sky); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #eaf4fa; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--sky); }
.thumbs button[aria-current="true"] { border-color: var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: 25px; letter-spacing: -0.5px; margin: 8px 0 4px; }
.detail-price { font-size: 28px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.price-note { color: var(--ink-soft); font-size: 13.5px; margin: 2px 0 12px; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; color: var(--ink-soft); background: var(--white); }
.meta-chip svg { width: 16px; height: 16px; }
.description { white-space: pre-wrap; margin: 6px 0 18px; color: #2c4a5d; }
.seller-box { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); margin-bottom: 16px; }
.seller-box .name { font-weight: 700; }
.seller-box .sub { font-size: 13.5px; color: var(--ink-soft); }
.actions { display: grid; gap: 10px; }
.safety { font-size: 13px; color: var(--ink-soft); margin-top: 12px; display: flex; gap: 8px; }
.owner-bar { display: flex; flex-wrap: wrap; gap: 8px; }

/* Formularios largos */
.form-grid { display: grid; gap: 18px; }
.form-section { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.form-section h2 { font-size: 17px; margin-bottom: 4px; }
.form-section > p { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; }
.photo-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 22px 14px; background: var(--paper); text-align: center; cursor: pointer; color: var(--ink-soft); }
.photo-drop strong { color: var(--ink); }
.photo-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.photo-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sky); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item .remove { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.photo-item .cover { position: absolute; left: 6px; bottom: 6px; }
.photo-drop.busy { opacity: .5; pointer-events: none; }
.photo-item.busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.6); }
.tips { background: var(--sky); border-radius: var(--radius-lg); padding: 16px 18px; color: var(--sky-text); font-size: 14px; }
.tips h3 { font-size: 15px; margin-bottom: 8px; color: var(--primary); }
.tips ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.tips * + h3 { margin-top: 18px; }
.tips p { margin: 0; }
.form-actions { display: flex; flex-direction: column-reverse; gap: 10px; }
.preview-card { max-width: 260px; }

/* Contacto y ajustes */
.contact-card { display: grid; gap: 8px; width: 100%; }
.contact-alias { font-size: 22px; font-weight: 750; color: var(--primary); letter-spacing: -0.3px; word-break: break-all; }
.contact-row { display: block; }
.settings { margin-bottom: 14px; display: grid; gap: 10px; }
.settings h2 { font-size: 17px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.switch-row { cursor: pointer; flex-wrap: nowrap; }
.switch { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; flex-shrink: 0; cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch:checked { background: #1f7a4d; }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: .5; cursor: default; }
.switch.small { width: 38px; height: 22px; }
.switch.small::after { top: 3px; left: 3px; width: 16px; height: 16px; }
.switch.small:checked::after { transform: translateX(16px); }
.hide-mine { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 13px; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.hide-mine[hidden] { display: none; }
.danger-zone { border-color: #efc7c2; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check span { display: block; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; min-height: 0; }
.check a { text-decoration: underline; color: var(--sky-text); }
.alerts { border-color: #f0d8a8; background: var(--warn-bg); margin-bottom: 14px; }

/* Listas */
.row-list { display: grid; gap: 10px; }
.row-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.row-item .thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--sky); }
.row-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-item h3 { font-size: 15px; margin: 2px 0; }
.row-item .row-meta { font-size: 13px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.row-item .row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat strong { display: block; font-size: 22px; }
.stat span { font-size: 13px; color: var(--ink-soft); }
.report-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.report-card .row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Beta segura: revisión, motivo de moderación, consejos e interruptor del catálogo */
.review-card h3 { margin: 0; font-size: 16px; }
.review-card .description { margin: 0; }
.review-photos { display: flex; gap: 8px; }
.review-photos a { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--sky); flex-shrink: 0; }
.review-photos img { width: 100%; height: 100%; object-fit: cover; }
.moderation-note { margin: 6px 0 0; font-size: 13.5px; color: var(--danger); }
.notice.tips ul { margin: 6px 0 8px; padding-left: 18px; }
.notice.tips li { margin: 2px 0; }
.catalog-switch { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 0 0 14px; }
.tabs [data-review-count] .nav-badge { margin-left: 4px; }
.code-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.code-table th, .code-table td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
.code-table code { font-weight: 700; letter-spacing: .5px; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 10px 12px; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }
.prose { max-width: 720px; }
.prose h2 { font-size: 18px; margin: 22px 0 8px; }
.prose p, .prose li { color: #2c4a5d; }

/* Hoja inferior (móvil) / diálogo (escritorio) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(16, 34, 46, 0.45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease-out; }
.sheet { background: var(--white); width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; animation: rise .2s ease-out; }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0 auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.sheet h2 { font-size: 20px; letter-spacing: -0.3px; }
.sheet .sheet-text { color: var(--ink-soft); margin: 0 0 16px; font-size: 15px; }
.sheet-close { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); flex-shrink: 0; }
.sheet-close:hover { background: var(--paper); }
.sheet .actions { margin-top: 6px; }
.message-bubble { background: #e6f6ea; color: #1d4d31; border-radius: 16px 16px 4px 16px; padding: 12px 14px; white-space: pre-wrap; font-size: 14.5px; margin: 4px 0 14px 24px; }
.option { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.option input { width: 18px; height: 18px; accent-color: var(--primary); }
.option:has(input:checked) { background: var(--sky); border-color: #8dbbdb; }
.option .sub { display: block; font-size: 12.5px; color: var(--ink-soft); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); } }

.toast-region { position: fixed; left: 0; right: 0; bottom: calc(80px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 60; pointer-events: none; padding: 0 16px; }
.toast { background: var(--ink); color: var(--white); padding: 11px 16px; border-radius: 12px; font-size: 14.5px; box-shadow: var(--shadow); max-width: 480px; animation: rise .2s ease-out; }
.toast.error { background: var(--danger); }

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

.site-footer { border-top: 1px solid var(--line); background: var(--white); margin-top: 24px; }
.footer-inner { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); }
.footer-inner nav { display: flex; gap: 16px; }
.footer-inner a { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .wrap { padding-left: 28px; padding-right: 28px; }
  .header-inner { height: 74px; gap: 28px; }
  .brand { font-size: 26px; }
  .brand-symbol { width: 33px; height: 36px; }
  .desktop-nav { display: flex; gap: 26px; height: 100%; align-items: center; }
  .nav-link.active::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; }
  .header-right .button { display: inline-flex; }
  .page { padding-top: 28px; padding-bottom: 48px; }
  .page-title { font-size: 32px; }
  .hero { padding: 30px 34px; margin-top: 8px; }
  .hero h1 { font-size: 42px; }
  .filter-row { grid-template-columns: repeat(3, minmax(0, 220px)); }
  .filter-row select:last-child { grid-column: auto; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
  .card-title { font-size: 15.5px; }
  .detail { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .detail-info h1 { font-size: 32px; }
  .actions { grid-template-columns: 1fr; }
  .publish-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
  .form-actions { flex-direction: row; justify-content: flex-end; }
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 22px; padding: 18px 22px 22px; }
  .sheet-handle { display: none; }
  .row-item { grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; }
  .row-item .thumb { width: 88px; height: 88px; }
  .row-item .row-actions { grid-column: auto; border-top: 0; padding-top: 0; justify-content: flex-end; }
  .stats { grid-template-columns: repeat(4, minmax(0, 160px)); }
  .toast-region { bottom: 24px; }
}
