:root {
  --navy: #1a2744;
  --navy-2: #243358;
  --navy-deep: #111a30;
  --gold: #b89355;
  --gold-soft: #f3ead9;
  --ivory: #f8f6f1;
  --paper: #ffffff;
  --ink: #1a1917;
  --muted: #6b6760;
  --faint: #8a8680;
  --line: #e7e2d8;
  --line-2: #d9d2c4;

  --ok: #2f7a55;
  --ok-soft: #e4f1ea;
  --bad: #a4473b;
  --bad-soft: #f6e4e1;
  --wait: #9a7434;
  --wait-soft: #f6eedf;
  --pub: #2b4a8a;
  --pub-soft: #e3e9f5;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(26, 25, 23, 0.04), 0 8px 24px rgba(26, 39, 68, 0.06);
  --shadow-lg: 0 24px 64px rgba(17, 26, 48, 0.24);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--navy); }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 15px; height: 15px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.hidden { display: none !important; }

/* ─── Botões ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--paper); cursor: pointer; font-weight: 500; font-size: 14px; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.05s, box-shadow 0.15s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(184, 147, 85, 0.35); }
.btn-gold:hover { background: #a9864a; border-color: #a9864a; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #276a49; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(26, 39, 68, 0.06); border-color: transparent; }
.btn-danger { color: var(--bad); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-icon { width: 40px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }

/* ─── Login ────────────────────────────────────────── */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1200px 600px at 85% 110%, rgba(184, 147, 85, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.login-card {
  width: 100%; max-width: 400px; background: var(--ivory); border-radius: 20px; padding: 40px 36px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.login-card .mono { margin: 0 auto 20px; width: 64px; height: 64px; font-size: 24px; }
.login-card h1 { font-size: 32px; line-height: 1.1; }
.login-card p { color: var(--muted); margin: 8px 0 28px; }
.login-card form { display: grid; gap: 12px; text-align: left; }
.login-err { color: var(--bad); font-size: 13px; min-height: 18px; }

.mono {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold); font-family: var(--serif); font-weight: 600; font-size: 16px; letter-spacing: 0.04em;
}

/* ─── Campos ───────────────────────────────────────── */
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line-2); background: var(--paper); border-radius: 10px;
  padding: 10px 12px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input { height: 42px; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 147, 85, 0.18); }
.hint { font-size: 12px; color: var(--faint); }

/* ─── Layout ───────────────────────────────────────── */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px;
  padding: 26px 18px; background: var(--navy); color: rgba(255, 255, 255, 0.82);
}
.side-brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.side-brand strong { display: block; font-family: var(--serif); font-size: 19px; color: #fff; font-weight: 600; line-height: 1.1; }
.side-brand small { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.side nav { display: grid; gap: 4px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none;
  font-weight: 500; transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav-badge {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--gold); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.side-foot { margin-top: auto; display: grid; gap: 10px; font-size: 12px; }
.ai-pill { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: #5cc28f; box-shadow: 0 0 0 3px rgba(92, 194, 143, 0.2); }
.ai-dot.off { background: #e0735f; box-shadow: 0 0 0 3px rgba(224, 115, 95, 0.2); }
.side .btn-ghost { color: rgba(255, 255, 255, 0.7); justify-content: flex-start; }
.side .btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.main { padding: 32px 40px 64px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 40px; line-height: 1; }
.page-head .eyebrow { margin-bottom: 8px; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 20px;
  background: var(--wait-soft); color: #6e5224; border: 1px solid #ecdcbc; font-size: 14px;
}

/* ─── Agenda ───────────────────────────────────────── */
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav h1 { min-width: 260px; text-transform: capitalize; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.stat {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--paper);
  border: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.stat b { font-size: 18px; color: var(--ink); font-weight: 600; }

.cal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div {
  padding: 12px 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.day {
  position: relative; min-height: 128px; padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.day:nth-child(7n) { border-right: none; }
.day.out { background: #fbfaf7; }
.day.slot { background: linear-gradient(180deg, rgba(184, 147, 85, 0.05), transparent 60%); }
.day-num { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.day.today .day-num span { background: var(--navy); color: #fff; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }
.day-add {
  opacity: 0; width: 24px; height: 24px; border-radius: 6px; border: 1px dashed var(--line-2); background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: opacity 0.15s;
}
.day:hover .day-add { opacity: 1; }
.chip {
  display: flex; align-items: center; gap: 7px; width: 100%; text-align: left; padding: 7px 8px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer; font-size: 12.5px; line-height: 1.3; font-weight: 500;
  transition: transform 0.1s, box-shadow 0.15s;
}
.chip:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26, 39, 68, 0.1); }
.chip .ic { width: 14px; height: 14px; }
.chip-reels { border-style: dashed; }
.slot-hint {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; border: 1px dashed var(--line-2);
  font-size: 11.5px; color: var(--faint);
}
.slot-hint .ic { width: 13px; height: 13px; }
.chip-text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.st-pendente { background: var(--wait-soft); color: #6e5224; border-color: #ecdcbc; }
.st-aprovado { background: var(--ok-soft); color: #1f5a3d; border-color: #c7e2d3; }
.st-rejeitado { background: var(--bad-soft); color: #7d342b; border-color: #ecc9c3; }
.st-publicado { background: var(--pub-soft); color: #22396b; border-color: #c9d5ec; }
.st-erro { background: var(--bad-soft); color: #7d342b; border-color: #ecc9c3; }
.st-gerando { background: #f1efea; color: var(--muted); border-color: var(--line); }
.st-gerando .chip-text, .shimmer {
  background: linear-gradient(90deg, var(--muted) 0%, #c2bcb1 50%, var(--muted) 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px;
  font-weight: 600; border: 1px solid var(--line); background: var(--paper); color: var(--muted); white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.agenda-list { display: none; }
.list-day { margin: 18px 0 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.list-card {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px; border-radius: 12px; background: var(--paper);
  border: 1px solid var(--line); cursor: pointer; margin-bottom: 8px;
}
.list-card .t { font-weight: 600; line-height: 1.3; }
.list-card .m { font-size: 12px; color: var(--muted); margin-top: 3px; }
.status-bar { width: 4px; align-self: stretch; border-radius: 2px; flex: none; }

.empty {
  text-align: center; padding: 56px 24px; background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted);
}
.empty h3 { font-size: 26px; margin-bottom: 6px; }

/* ─── Aprovação ────────────────────────────────────── */
.queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.qcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.qcard-art { background: #ece8df; display: grid; place-items: center; padding: 18px; cursor: pointer; }
.qcard-body { padding: 16px 18px; display: grid; gap: 8px; flex: 1; }
.qcard-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
.qcard h3 { font-size: 22px; line-height: 1.15; }
.qcard p { margin: 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.qcard-actions { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.qcard-actions .btn { flex: 1; }
.qcard.busy .qcard-art { min-height: 200px; }
.reels-art {
  width: 141px; height: 250px; border-radius: 8px; border: 1.5px dashed var(--line-2); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 14px; color: var(--muted);
}
.reels-art .ic { width: 30px; height: 30px; color: var(--gold); }
.reels-art strong { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.reels-art span { font-size: 12px; line-height: 1.4; }

/* ─── Drawer ───────────────────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(17, 26, 48, 0.42); backdrop-filter: blur(2px); z-index: 40; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes pop { from { transform: translateY(12px) scale(0.98); opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--ivory); z-index: 41;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide 0.25s ease;
}
.drawer-head { padding: 22px 28px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.drawer-top { display: flex; align-items: flex-start; gap: 12px; }
.drawer-top h2 { font-size: 28px; line-height: 1.1; flex: 1; }
.drawer-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; align-items: center; }
.tabs { display: flex; gap: 4px; }
.tab {
  padding: 10px 14px; border: none; background: none; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px 28px 32px; }
.drawer-foot {
  display: flex; gap: 10px; align-items: center; padding: 14px 28px; background: var(--paper); border-top: 1px solid var(--line);
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.drawer-foot .spacer { flex: 1; }

.section { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-title h4 { margin: 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.cover-title { font-family: var(--serif); font-size: 30px; line-height: 1.12; color: var(--navy); font-weight: 600; }
.cover-sub { margin-top: 8px; color: var(--muted); font-size: 16px; }
.slides { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.slides li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.slides .n { font-family: var(--serif); font-size: 22px; color: var(--gold); font-weight: 600; line-height: 1.2; }
.slides strong { display: block; color: var(--navy); }
.slides span { color: var(--muted); font-size: 14px; }
.caption { white-space: pre-wrap; font-size: 15px; line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; color: var(--pub); background: var(--pub-soft); padding: 3px 9px; border-radius: 6px; }
.note { display: flex; gap: 10px; font-size: 13.5px; color: var(--muted); }
.note.ok { color: #1f5a3d; }
.err-box { background: var(--bad-soft); color: #7d342b; border: 1px solid #ecc9c3; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.generating { text-align: center; padding: 64px 20px; color: var(--muted); }
.generating h3 { font-size: 26px; margin: 16px 0 6px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin 0.9s linear infinite; margin: 0 auto; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.edit-grid { display: grid; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px; }
.caption-tags { color: var(--pub); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slide-edit { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 8px; align-items: start; }

.versions { display: grid; gap: 10px; }
.version { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.version .v { font-family: var(--serif); font-size: 22px; color: var(--gold); font-weight: 600; width: 40px; }
.version .info { flex: 1; min-width: 0; }
.version .info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version .info small { color: var(--muted); }

/* Artes */
.art-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.art-item { display: grid; gap: 6px; }
.art-item small { color: var(--muted); font-size: 12px; text-align: center; }
.art-frame { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 6px 20px rgba(17, 26, 48, 0.16); background: #ddd; }
.art-frame > .art { position: absolute; top: 0; left: 0; transform-origin: top left; }

/* ─── Modal ────────────────────────────────────────── */
.modal-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal {
  position: relative; z-index: 61; width: 100%; max-width: 520px; background: var(--ivory); border-radius: 18px; padding: 28px;
  box-shadow: var(--shadow-lg); animation: pop 0.2s ease;
}
.modal h3 { font-size: 28px; margin-bottom: 6px; }
.modal p { color: var(--muted); margin: 0 0 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick button { border: 1px solid var(--line-2); background: var(--paper); border-radius: 16px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; }
.quick button:hover { border-color: var(--gold); color: var(--wait); }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }

/* ─── Perfil ───────────────────────────────────────── */
.profile { display: grid; gap: 18px; max-width: 920px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h2 { font-size: 26px; margin-bottom: 4px; }
.card > p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-1 { display: grid; gap: 14px; }
.area-row { display: grid; grid-template-columns: 1fr 2fr 90px auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.days { display: flex; gap: 8px; flex-wrap: wrap; }
.days label { cursor: pointer; }
.days input { position: absolute; opacity: 0; pointer-events: none; }
.days span { display: grid; place-items: center; min-width: 54px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 600; font-size: 13px; background: var(--paper); }
.days input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.week { display: grid; gap: 8px; }
.week-row { display: grid; grid-template-columns: 140px 1fr 120px; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fcfbf8; }
.week-row strong { font-weight: 600; color: var(--muted); }
.week-row.on { border-color: #e4d6b8; background: var(--gold-soft); }
.week-row.on strong { color: var(--navy); }
.week-row input:disabled { opacity: 0.4; }
.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; }

/* ─── Toasts ───────────────────────────────────────── */
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; justify-items: center; }
.toast {
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px;
  display: flex; gap: 10px; align-items: center; animation: pop 0.2s ease;
}
.toast.err { background: var(--bad); }

/* ─── Automações ───────────────────────────────────── */
.rule { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.rule.off { opacity: 0.6; }
.rule-head { display: flex; gap: 12px; align-items: center; }
.rule-body { display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.rule-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 6px; }
.rule-msg { font-size: 14px; white-space: pre-wrap; line-height: 1.5; }
.kws { display: flex; flex-wrap: wrap; gap: 6px; }
.kw { background: var(--navy); color: #fff; border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.events { display: grid; gap: 2px; }
.event { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.event:last-child { border-bottom: 0; }
.steps { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.steps code, .banner code { word-break: break-all; }

/* ─── Responsivo ───────────────────────────────────── */
@media (max-width: 1100px) {
  .main { padding: 24px 22px 64px; }
  .day { min-height: 110px; padding: 8px; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 30; flex-direction: row; padding: 8px 10px;
    padding-bottom: max(8px, env(safe-area-inset-bottom)); gap: 0;
  }
  .side-brand, .side-foot { display: none; }
  .side nav { grid-template-columns: repeat(4, 1fr); width: 100%; }
  .nav-link { flex-direction: column; gap: 3px; font-size: 11px; padding: 8px 4px; position: relative; }
  .nav-link.active { box-shadow: none; }
  .nav-badge { position: absolute; top: 2px; right: calc(50% - 26px); min-width: 18px; height: 18px; font-size: 10px; }
  .main { padding: 20px 16px 110px; }
  .page-head h1 { font-size: 32px; }
  .month-nav h1 { min-width: 0; }
  .cal { display: none; }
  .agenda-list { display: block; }
  .drawer-head, .drawer-body { padding-left: 18px; padding-right: 18px; }
  .drawer-foot { padding-left: 18px; padding-right: 18px; flex-wrap: wrap; }
  .drawer-foot .btn { flex: 1; }
  .drawer-foot .spacer { display: none; }
  .grid-2, .row-2, .row-3, .rule-body { grid-template-columns: 1fr; }
  .week-row { grid-template-columns: 1fr 100px; }
  .week-row strong { grid-column: 1 / -1; }
  .area-row { grid-template-columns: 1fr auto; }
  .area-row > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .area-row > :nth-child(3) { grid-column: 1; }
  .queue { grid-template-columns: 1fr; }
  .slide-edit { grid-template-columns: 1fr auto; }
  .slide-edit > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .mobile-hide { display: none; }
  #toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ─── Artes (renderizadas em 1080px e reduzidas na pré-visualização) ─── */
.art { width: 1080px; height: 1350px; overflow: hidden; font-family: var(--sans); position: relative; }
.art-tall { height: 1920px; }
.art-cover, .art-end { background: var(--navy); color: #fff; }
.art-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.art-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 26, 48, 0.94) 0%, rgba(17, 26, 48, 0.8) 42%, rgba(17, 26, 48, 0.35) 78%, rgba(17, 26, 48, 0.6) 100%);
}
.art-plain { position: absolute; inset: 0; background: radial-gradient(900px 700px at 85% 95%, rgba(184, 147, 85, 0.28), transparent 60%), linear-gradient(165deg, #1f2e52 0%, #111a30 100%); }
.art-inner { position: absolute; inset: 96px 92px 88px; display: flex; flex-direction: column; }
.art-tall .art-inner { inset: 200px 92px 220px; }
.art-top { display: flex; justify-content: space-between; align-items: center; }
.art-kicker { font-size: 25px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.art-mono {
  width: 82px; height: 82px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); display: grid; place-items: center;
  font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: 0.04em;
}
.art-rule { width: 96px; height: 3px; background: var(--gold); margin: 64px 0 44px; }
.art-title { font-family: var(--serif); font-weight: 600; line-height: 1.03; letter-spacing: -0.01em; }
.art-sub { margin-top: 40px; font-size: 38px; line-height: 1.38; color: rgba(255, 255, 255, 0.82); max-width: 860px; }
.art-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.art-sign strong { display: block; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.1; }
.art-sign span { font-size: 24px; letter-spacing: 0.08em; opacity: 0.75; }
.art-swipe { font-size: 24px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; display: flex; gap: 14px; align-items: center; }
.art-swipe i { display: block; width: 70px; height: 2px; background: var(--gold); }

.art-slide { background: var(--ivory); color: var(--ink); }
.art-slide::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: var(--navy); }
.art-num { font-family: var(--serif); font-size: 150px; line-height: 0.9; color: var(--gold); font-weight: 600; }
.art-slide .art-rule { margin: 44px 0 52px; }
.art-slide .art-title { color: var(--navy); }
.art-text { margin-top: 44px; font-size: 42px; line-height: 1.5; color: #3b3935; }
.art-slide .art-sign strong { color: var(--navy); font-size: 34px; }
.art-slide .art-sign span { color: var(--muted); }
.art-dots { display: flex; gap: 10px; }
.art-dots b { width: 14px; height: 14px; border-radius: 50%; background: var(--line-2); }
.art-dots b.on { background: var(--gold); width: 40px; border-radius: 7px; }
.art-end .art-title { color: #fff; }
.art-end .art-text { color: rgba(255, 255, 255, 0.78); font-size: 38px; }
