:root {
  --bg: #0C1117;
  --surface: #151B24;
  --surface-2: #1C2430;
  --surface-3: #243042;
  --line: #2A3546;
  --text: #E8EEF5;
  --muted: #93A1B5;
  --faint: #64748B;
  --accent: #2DD4A7;
  --accent-ink: #052A21;
  --accent-soft: rgba(45, 212, 167, .12);
  --amber: #F5B841;
  --amber-soft: rgba(245, 184, 65, .12);
  --ice: #7CC4FF;
  --ice-soft: rgba(124, 196, 255, .12);
  --danger: #F87171;
  --danger-soft: rgba(248, 113, 113, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --sidebar: 248px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.boot { height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px 20px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-family: 'Sora'; font-weight: 700; font-size: 16px; }
.brand img { width: 30px; height: 30px; }
.brand small { display: block; font-family: 'Inter'; font-weight: 500; font-size: 11px; color: var(--muted); }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .pill { margin-left: auto; }
.sidebar-foot { margin-top: auto; padding-top: 14px; display: grid; gap: 8px; }
.spend-mini { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12px; color: var(--muted); }
.spend-mini b { color: var(--text); font-size: 14px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: rgba(12, 17, 23, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 18px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { display: none; }
.content { padding: 24px; max-width: 1400px; width: 100%; }

/* ---------- Componentes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #4BE0B8; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: #2B1D00; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.icon { width: 38px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn svg { width: 16px; height: 16px; }
.btn.block { width: 100%; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { flex: 1; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.stack { display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--accent-soft); color: var(--accent); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.err { background: var(--danger-soft); color: var(--danger); }
.pill.info { background: var(--ice-soft); color: var(--ice); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

label.field { display: grid; gap: 6px; }
label.field > span, .field-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.5; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--faint); }
.hint { font-size: 12px; color: var(--faint); }

.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 5px 12px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 12.5px; }
.seg button.on { background: var(--surface-3); color: var(--text); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 10px 14px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }

.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--surface-3); border-radius: 999px; cursor: pointer; transition: background .15s; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(16px); }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* ---------- Crear ---------- */
.create { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 20px; align-items: start; }
.create .form { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
.cost-line { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 8px 2px 0; }
.cost-line b { color: var(--amber); }

.char-pick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.char-chip { flex: none; display: grid; justify-items: center; gap: 4px; width: 68px; padding: 6px 4px; border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.char-chip .av { width: 46px; height: 46px; border-radius: 50%; }
.char-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.av { border-radius: 50%; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; font-family: 'Sora'; font-weight: 700; color: var(--bg); overflow: hidden; flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; }

.drop { border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 10px; justify-items: center; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .preview { width: 100%; max-height: 220px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.drop audio { width: 100%; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tile { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 4; cursor: pointer; border: 1px solid var(--line); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile .badge { position: absolute; left: 8px; top: 8px; }
.tile .fav { position: absolute; right: 8px; top: 8px; color: var(--amber); filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.tile .sel { position: absolute; right: 8px; bottom: 8px; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #fff; background: rgba(0,0,0,.35); }
.tile.selected { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile.selected .sel { background: var(--accent); border-color: var(--accent); }
.tile .audio-tile { height: 100%; display: grid; place-items: center; gap: 8px; padding: 12px; color: var(--ice); text-align: center; font-size: 12px; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 11.5px; color: #dfe6ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.pending { display: grid; place-items: center; text-align: center; padding: 12px; color: var(--muted); font-size: 12.5px; background: linear-gradient(110deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; cursor: default; }
.tile.failed { display: grid; place-items: center; text-align: center; padding: 12px; color: var(--danger); font-size: 12px; background: var(--danger-soft); cursor: default; }
@keyframes shimmer { to { background-position: -200% 0; } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .input { width: auto; min-width: 140px; }

/* ---------- Personajes ---------- */
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.char-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s; }
.char-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.char-card .cover { aspect-ratio: 4 / 5; background: var(--surface-2); display: grid; place-items: center; }
.char-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.char-card .body { padding: 12px 14px; }
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ref { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.ref img { width: 100%; height: 100%; object-fit: cover; }
.ref .pill { position: absolute; left: 6px; bottom: 6px; }
.ref button { position: absolute; right: 4px; top: 4px; }

/* ---------- Calendario ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { font-size: 11.5px; font-weight: 600; color: var(--faint); text-align: center; padding: 4px 0; text-transform: uppercase; }
.cal .day { min-height: 116px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.cal .day:hover { border-color: var(--surface-3); }
.cal .day.other { opacity: .4; }
.cal .day.today { border-color: var(--accent); }
.cal .num { font-size: 12px; font-weight: 600; color: var(--muted); }
.post-chip { display: flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 3px 6px; border-radius: 6px; background: var(--surface-2); border-left: 3px solid var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-chip.idea { border-left-color: var(--faint); }
.post-chip.lista { border-left-color: var(--amber); }
.post-chip.publicada { border-left-color: var(--accent); opacity: .7; }
.post-chip img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }

/* ---------- Tablas ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.bar { height: 10px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--ice)); border-radius: 999px; }
.bar.hot > i { background: linear-gradient(90deg, var(--amber), var(--danger)); }
.stat { display: grid; gap: 2px; }
.stat b { font-family: 'Sora'; font-size: 24px; }

/* ---------- Inicio ---------- */
.hero { background: radial-gradient(1000px 300px at 0% 0%, rgba(45, 212, 167, .16), transparent 60%), radial-gradient(700px 260px at 100% 0%, rgba(124, 196, 255, .14), transparent 60%), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.hero h1 { font-size: 26px; margin-bottom: 6px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.quick a { display: grid; gap: 8px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s; }
.quick a:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.quick a svg { width: 22px; height: 22px; color: var(--accent); }
.quick a small { color: var(--muted); font-size: 12px; }
.check { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check .tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); flex: none; }
.check.done .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check.done .t { color: var(--muted); text-decoration: line-through; }

/* ---------- Plantillas ---------- */
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tpl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; align-content: start; }
.tpl p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Escenas ---------- */
.scene { display: grid; grid-template-columns: 34px 120px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.scene .n { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.scene .thumb { aspect-ratio: 9 / 16; background: var(--bg); border-radius: 8px; overflow: hidden; display: grid; place-items: center; color: var(--faint); font-size: 11px; text-align: center; }
.scene .thumb img, .scene .thumb video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Modal / toasts ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(4, 7, 11, .72); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; box-shadow: var(--shadow); }
.modal.wide { width: min(1100px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h2 { flex: 1; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; right: 20px; bottom: 88px; display: grid; gap: 8px; z-index: 200; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--surface-3); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow); animation: fade .2s; }
.toast.err { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--amber); }

.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.viewer .stage { background: var(--bg); border-radius: var(--radius-sm); display: grid; place-items: center; min-height: 300px; }
.viewer .stage img, .viewer .stage video { max-height: 70vh; width: auto; border-radius: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 12.5px; }
.kv dt { color: var(--faint); } .kv dd { margin: 0; word-break: break-word; }
.prompt-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12.5px; color: var(--muted); white-space: pre-wrap; max-height: 160px; overflow-y: auto; }

/* ---------- Asistente ---------- */
.lu-btn { position: fixed; right: 22px; bottom: 22px; z-index: 50; height: 52px; padding: 0 18px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-3); color: var(--text); display: flex; align-items: center; gap: 10px; cursor: pointer; box-shadow: var(--shadow); font-weight: 700; font-family: 'Sora'; }
.lu-btn .orb { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #9FF3DA, var(--accent) 45%, #157C63); box-shadow: 0 0 18px rgba(45, 212, 167, .45); }
.lu-panel { position: fixed; right: 22px; bottom: 86px; z-index: 60; width: min(420px, calc(100vw - 24px)); height: min(600px, calc(100vh - 120px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; animation: fade .15s; }
.lu-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.lu-head .orb { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #9FF3DA, var(--accent) 45%, #157C63); }
.lu-msgs { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; }
.msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; white-space: pre-wrap; word-break: break-word; font-size: 13.5px; }
.msg.user { justify-self: end; background: var(--accent-soft); color: var(--text); border-bottom-right-radius: 4px; }
.msg.assistant { background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg pre { background: var(--bg); padding: 8px 10px; border-radius: 8px; white-space: pre-wrap; margin: 6px 0; position: relative; }
.msg pre button { position: absolute; right: 4px; top: 4px; }
.lu-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.lu-form textarea { min-height: 42px; max-height: 120px; resize: none; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }

.jobs-pill { cursor: pointer; }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .8s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 20% 10%, rgba(45, 212, 167, .14), transparent 60%), radial-gradient(800px 500px at 90% 90%, rgba(124, 196, 255, .12), transparent 60%), var(--bg); }
.login .card { width: min(400px, 100%); padding: 28px; display: grid; gap: 16px; }
.login .brand { padding: 0; font-size: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .create { grid-template-columns: 1fr; }
  .create .form { position: static; max-height: none; }
  .viewer { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 90; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .menu-btn { display: inline-flex; }
  .content { padding: 16px; }
  .topbar { padding: 10px 16px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .cal { gap: 3px; }
  .cal .day { min-height: 70px; padding: 4px; }
  .post-chip span { display: none; }
  .scene { grid-template-columns: 28px 80px minmax(0, 1fr); }
  .scene > :last-child { grid-column: 1 / -1; }
  .lu-btn span { display: none; } .lu-btn { padding: 0 6px; }
}
