/* ============================================================
   KAIRÓS — Design System v2
   Minimalista · Litúrgico · Moderno
   Paleta: Azul-petróleo #0d2233 · Dourado-âmbar #b8943a · Creme #f9f6f0
   Tipografia: Cormorant Garamond (display) + Inter (corpo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --ink:          #0d2233;
  --ink-mid:      #2c4257;
  --ink-soft:     #56708a;
  --gold:         #b8943a;
  --gold-light:   #e8d49a;
  --gold-faint:   #f5edd8;
  --cream:        #f9f6f0;
  --cream-dark:   #f0ead9;
  --white:        #ffffff;
  --border:       #e2d9c8;
  --border-soft:  #ede7da;
  --danger:       #8b1a1a;
  --danger-soft:  #fdf0f0;
  --success:      #1a5a32;
  --success-soft: #edf7f1;

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  --radius-xl:    20px;
  --radius-lg:    14px;
  --radius-md:    10px;
  --radius-sm:    7px;
  --radius-pill:  999px;

  --shadow-sm:    0 1px 3px rgba(13,34,51,.06), 0 4px 12px rgba(13,34,51,.05);
  --shadow-md:    0 4px 16px rgba(13,34,51,.08), 0 12px 40px rgba(13,34,51,.06);
  --shadow-lg:    0 8px 32px rgba(13,34,51,.12), 0 24px 80px rgba(13,34,51,.08);

  --sidebar-w:    272px;
  --topbar-h:     72px;
}

html { color-scheme: light; }

html[data-theme="dark"] { color-scheme: dark; }

html[data-theme="dark"] {
  --ink:          #e8eef5;
  --ink-mid:      #c8d4df;
  --ink-soft:     #9baabc;
  --gold:         #d6a84f;
  --gold-light:   #f0ddb0;
  --gold-faint:   #2a2418;
  --cream:        #101a25;
  --cream-dark:   #182433;
  --white:        #152231;
  --border:       #284057;
  --border-soft:  #21364a;
  --danger:       #ff9c9c;
  --danger-soft:  #3a1f26;
  --success:      #86e0ae;
  --success-soft: #173226;
  --shadow-sm:    0 8px 24px rgba(0,0,0,.22);
  --shadow-md:    0 18px 42px rgba(0,0,0,.26);
  --shadow-lg:    0 26px 80px rgba(0,0,0,.32);
}

html[data-theme="dark"] body {
  background: var(--cream);
  color: var(--ink);
}

html[data-theme="dark"] .auth-body {
  background:
    radial-gradient(circle at top left, rgba(214,168,79,.16), transparent 28rem),
    linear-gradient(135deg, #102030, #0d1822 55%, #152231);
}

html[data-theme="dark"] .auth-shell { background: transparent; }

html[data-theme="dark"] .auth-brand-name,
html[data-theme="dark"] .auth-quote cite,
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-gold {
  color: #ffffff;
}

html[data-theme="dark"] .sidebar {
  background: #0d2233;
}

html[data-theme="dark"] .sidebar::before {
  background: linear-gradient(180deg, #b8943a 0%, rgba(184,148,58,.3) 60%, transparent 100%);
}

html[data-theme="dark"] .sidebar-brand {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

html[data-theme="dark"] .sidebar-brand img {
  filter: brightness(0) invert(1);
  opacity: .9;
}

html[data-theme="dark"] .sidebar-brand strong { color: #ffffff; }
html[data-theme="dark"] .sidebar-brand small { color: #d6a84f; }
html[data-theme="dark"] .nav-section { color: rgba(184,148,58,.7); }

html[data-theme="dark"] .sidebar-nav a {
  color: rgba(255,255,255,.62);
}

html[data-theme="dark"] .sidebar-nav a:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.9);
}

html[data-theme="dark"] .sidebar-nav a.active {
  background: rgba(184,148,58,.16);
  color: #e8d49a;
}

html[data-theme="dark"] .sidebar-nav a.active::before {
  background: #b8943a;
}

html[data-theme="dark"] .topbar {
  background: rgba(10, 18, 27, .86);
  border-bottom: 1px solid var(--border);
}

html[data-theme="dark"] .content,
html[data-theme="dark"] .app-body,
html[data-theme="dark"] .public-body {
  background: transparent;
}

html[data-theme="dark"] .user-pill,
html[data-theme="dark"] .bell-btn,
html[data-theme="dark"] .bell-dropdown,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .app-footer,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: var(--white);
  border-color: var(--border);
}

html[data-theme="dark"] .icon-button {
  background: var(--white);
  color: var(--ink);
}

html[data-theme="dark"] .quick-actions a,
html[data-theme="dark"] .list-row,
html[data-theme="dark"] .check-card,
html[data-theme="dark"] .searchable-select-input,
html[data-theme="dark"] .bell-item-read,
html[data-theme="dark"] .type-notice,
html[data-theme="dark"] .searchable-select.js-open {
  background: var(--cream-dark);
}

html[data-theme="dark"] .data-table tbody tr:hover,
html[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .btn-ghost:hover {
  background: var(--cream-dark);
}

html[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #123c4a, #0b2c36);
}

html[data-theme="dark"] .btn-primary:hover {
  background: linear-gradient(135deg, #1a4b5d, #123c4a);
}

html[data-theme="dark"] .btn-secondary {
  background: var(--cream-dark);
  color: var(--ink-mid);
}

html[data-theme="dark"] .btn-ghost {
  color: var(--ink-soft);
}

html[data-theme="dark"] .hint {
  color: #efd7a1;
  background: rgba(214,168,79,.14);
  border-color: rgba(214,168,79,.38);
}

html[data-theme="dark"] .hero-panel {
  background: linear-gradient(145deg, #123c4a 0%, #0b2c36 100%);
}

html[data-theme="dark"] .hero-panel p { color: rgba(255,255,255,.78); }

html[data-theme="dark"] .app-footer .footer-logo-wrap img {
  opacity: .9;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.public-body {
  background: var(--cream);
  min-height: 100vh;
}

/* ── Auth — Tela de Login ───────────────────────────────── */
.auth-body {
  min-height: 100vh;
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* lado esquerdo — painel do sistema */
.auth-panel-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}

/* grade de linhas sutis evocando vitrais */
.auth-panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,148,58,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,148,58,.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.auth-panel-left::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,148,58,.12) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.auth-brand img { width: 48px; height: 48px; object-fit: contain; }

.auth-brand-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
}

.auth-panel-left .auth-quote {
  position: relative;
  z-index: 1;
}

.auth-quote blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -.01em;
}

.auth-quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* lado direito — formulário */
html[data-theme="dark"] .auth-quote blockquote {
  color: var(--gold);
}

.auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--cream);
}

.auth-card {
  width: min(420px, 100%);
}

.auth-card-brand {
  text-align: center;
  margin-bottom: 36px;
}

.auth-card-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.auth-card-brand h1 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -.02em;
}

.auth-card-brand p {
  color: var(--ink-soft);
  font-size: .9rem;
  margin: 0;
}

/* ── Eyebrow ────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Form elements ──────────────────────────────────────── */
.form-stack { display: grid; gap: 18px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field, label.field {
  display: grid;
  gap: 7px;
  font-family: var(--font-sans);
}

.field span, label.field span, label.field > span:first-child {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.field-full { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,148,58,.18);
}

textarea { min-height: 110px; resize: vertical; }

.check-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  color: var(--ink-soft);
}
.check-line input { width: auto; }

.check-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--cream);
  cursor: pointer;
  transition: border-color .15s;
}
.check-card:hover { border-color: var(--gold-light); }
.check-card input { width: auto; margin-top: 2px; }

/* ── Buttons ─────────────────────────────────────────────  */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(13,34,51,.2);
}
.btn-primary:hover { background: var(--ink-mid); box-shadow: 0 4px 16px rgba(13,34,51,.28); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(184,148,58,.3);
}
.btn-gold:hover { background: #a07e30; }

.btn-secondary {
  background: var(--cream-dark);
  color: var(--ink-mid);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid transparent;
}
.btn-ghost:hover { background: var(--cream-dark); color: var(--ink); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink-mid);
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.theme-toggle:hover {
  border-color: var(--gold);
  background: var(--gold-faint);
  color: var(--ink);
}

.theme-toggle__icon {
  font-size: .95rem;
  line-height: 1;
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1.5px solid #f5c6c6;
}
.btn-danger:hover { background: #f9dada; }

.btn-full { width: 100%; }
.btn-small { padding: 7px 13px; font-size: .8rem; }

/* ── Alerts ─────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius-lg);
  padding: 13px 16px;
  margin-bottom: 16px;
  font-size: .88rem;
  font-weight: 500;
}
.alert-danger  { background: var(--danger-soft);  color: var(--danger);  border: 1px solid #f0cccc; }
.alert-success { background: var(--success-soft); color: var(--success); border: 1px solid #b6dfc8; }

/* ── App shell ─────────────────────────────────────────── */
.app-body { background: var(--cream); }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  width: calc(100% - var(--sidebar-w));
  margin-left: var(--sidebar-w);
}

/* ── Sidebar ─────────────────────────────────────────────  */
.sidebar {
  background: var(--ink);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 30;
}

/* faixa dourada lateral — assinatura visual */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(184,148,58,.3) 60%, transparent 100%);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 6px;
}

.sidebar-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.sidebar-brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
  line-height: 1.1;
}

.sidebar-brand small {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.sidebar-nav {
  display: grid;
  gap: 2px;
  margin-top: 16px;
  flex: 1;
}

.nav-section {
  margin: 20px 4px 6px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(184,148,58,.7);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.62);
  transition: background .15s, color .15s;
  position: relative;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.9);
}

.sidebar-nav a.active {
  background: rgba(184,148,58,.16);
  color: var(--gold-light);
  font-weight: 600;
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 0 2px 2px 0;
  background: var(--gold);
}

/* ── Topbar ──────────────────────────────────────────────── */
.main-area {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  width: 100%;
}

.topbar {
  height: var(--topbar-h);
  background: rgba(249,246,240,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
}

.topbar .eyebrow { font-size: .65rem; }

.topbar h1 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2px 0 0;
  letter-spacing: -.01em;
  line-height: 1;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-pill {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-mid);
}

.icon-button {
  display: none;
  border: none;
  background: transparent;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.icon-button.show { display: inline-flex; }

/* ── Content ─────────────────────────────────────────────  */
.content {
  flex: 1;
  padding: 32px 28px;
  min-width: 0;
  width: 100%;
}

/* ── Stats grid ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}

.stat-card-link {
  display: block;
  text-decoration: none;
}

.stat-card-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card span {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.stat-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}

.stat-card small {
  display: block;
  font-size: .78rem;
  color: var(--ink-soft);
}

/* accent bar top do stat card */
.stat-card::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 14px;
}

/* ── Panels ──────────────────────────────────────────────── */
.panel {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.panel.narrow { max-width: 740px; }

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.panel-header h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 0;
  letter-spacing: -.01em;
}

/* ── Quick actions ───────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-actions a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-mid);
  background: var(--cream);
  transition: border-color .15s, background .15s, color .15s;
}

.quick-actions a:hover {
  border-color: var(--gold);
  background: var(--gold-faint);
  color: var(--ink);
}

/* ── List soft ───────────────────────────────────────────── */
.list-soft { display: grid; gap: 8px; }

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 1px solid var(--border-soft);
  transition: border-color .15s;
}
.list-row:hover { border-color: var(--gold-light); }
.list-row small { display: block; color: var(--ink-soft); font-size: .8rem; margin-top: 2px; }

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--gold-faint);
  color: #7a5c1a;
  border: 1px solid var(--gold-light);
  white-space: nowrap;
}

.badge-success { background: var(--success-soft); color: var(--success); border-color: #b6dfc8; }
.badge-danger  { background: var(--danger-soft);  color: var(--danger);  border-color: #f0cccc; }
.badge-neutral { background: var(--cream-dark); color: var(--ink-soft); border-color: var(--border); }

/* ── Table ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 11px 14px;
  text-align: left;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--border-soft);
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  font-size: .9rem;
  color: var(--ink);
}

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: var(--cream); }

.text-right { text-align: right !important; }

.empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 32px 16px;
  font-style: italic;
  font-family: var(--font-serif);
}

/* ── Actions ─────────────────────────────────────────────── */
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crud-actions { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Modal (dialog) ─────────────────────────────────────── */
.modal {
  border: none;
  background: transparent;
  padding: 16px;
  max-width: 860px;
  width: calc(100% - 32px);
  border-radius: 0;
}

.modal::backdrop {
  background: rgba(13, 34, 51, .55);
  backdrop-filter: blur(4px);
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

/* ── Filters ─────────────────────────────────────────────── */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

/* ── Hint / Hint box ─────────────────────────────────────── */
.hint {
  background: var(--gold-faint);
  border: 1px dashed var(--gold-light);
  border-radius: var(--radius-lg);
  padding: 13px 16px;
  color: #7a5c1a;
  font-size: .88rem;
}

/* ── Permission grid ─────────────────────────────────────── */
.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* ── Searchable select ───────────────────────────────────── */
.searchable-select-wrap { display: grid; gap: 8px; }
.searchable-select-input { background: var(--cream); }
.searchable-select { min-height: 48px; }
.searchable-select[size] { height: auto; max-height: 260px; overflow: auto; }
.searchable-select option[hidden] { display: none; }

/* ── Public pages (Transparência) ───────────────────────── */
.public-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
}

.public-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 28px 72px;
}

.hero-panel {
  border-radius: var(--radius-xl);
  padding: clamp(32px, 6vw, 72px);
  background: linear-gradient(145deg, var(--ink) 0%, #1a3a52 100%);
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,148,58,.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-panel h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 12px 0 10px;
}

.hero-panel p { color: rgba(255,255,255,.72); line-height: 1.7; }

/* ── Span 2 helper ───────────────────────────────────────── */
.span-2 { grid-column: span 2; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* ── Section header (legacy compat) ─────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -.01em;
}

/* ── Login page fallback (old .login-page / .login-card) ── */
.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: var(--cream);
}

.login-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 38px;
  width: min(440px, 92vw);
  box-shadow: var(--shadow-lg);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .auth-body { grid-template-columns: 1fr; }
  .auth-panel-left { display: none; }
  .auth-shell {
    min-height: 100vh;
    padding: 24px 16px;
    background:
      radial-gradient(circle at top, rgba(184,148,58,.16), transparent 36%),
      var(--cream);
  }
  .auth-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 18px;
  }
  .auth-card-brand { margin-bottom: 24px; }

  .app-shell { grid-template-columns: 1fr; }
  .main-area { min-width: 0; }

  .sidebar {
    position: fixed;
    left: -290px;
    top: 0;
    z-index: 40;
    width: var(--sidebar-w);
    transition: left .22s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
  }
  .sidebar-open .sidebar {
    left: 0;
    box-shadow: var(--shadow-lg);
  }

  .icon-button { display: inline-flex; }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .panel-grid,
  .form-grid,
  .permission-grid { grid-template-columns: 1fr; }

  .span-2 { grid-column: span 1; }
  .content { padding: 18px 14px 24px; }
  .topbar {
    height: auto;
    min-height: 64px;
    padding: 12px 14px;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .topbar > div:first-of-type {
    min-width: 0;
    flex: 1;
  }
  .topbar .eyebrow { display: none; }
  .topbar h1 {
    font-size: 1.08rem;
    line-height: 1.2;
    margin: 0;
  }
  .topbar-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    gap: 8px;
  }
  .topbar-actions .user-pill { display: none; }
  .panel {
    padding: 18px 16px;
    border-radius: 18px;
  }
  .table-wrap,
  .table-responsive {
    overflow: visible;
    width: 100%;
  }
  .modal {
    padding: 10px;
    width: calc(100% - 20px);
  }
  .modal-card {
    width: 100%;
    padding: 18px 16px;
    border-radius: 18px;
  }
  .modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .panel-header h2 { font-size: 1.18rem; }
  .quick-actions a { min-height: 52px; }
  .list-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .badge { align-self: flex-start; }
  .crud-actions,
  .row-actions,
  .actions {
    width: 100%;
    justify-content: stretch;
  }
  .crud-actions .btn,
  .row-actions .btn,
  .actions .btn,
  .row-actions form,
  .crud-actions form {
    width: 100%;
    flex: 1 1 100%;
  }
  .crud-actions .btn,
  .row-actions .btn,
  .actions .btn,
  .row-actions form button,
  .crud-actions form button {
    width: 100%;
    justify-content: center;
  }
  .app-footer {
    width: 100%;
    padding: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .app-footer .footer-sep { display: none; }
}

@media (max-width: 640px) {
  .auth-shell {
    align-items: flex-start;
    padding: 18px 14px 28px;
  }
  .auth-card {
    border-radius: 24px;
    padding: 22px 16px;
  }
  .auth-card-brand h1 { font-size: 1.7rem; }
  input, select, textarea {
    font-size: 16px;
    min-height: 48px;
  }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card {
    padding: 18px 16px;
    border-radius: 18px;
  }
  .stat-card strong { font-size: 2rem; }
  .quick-actions { grid-template-columns: 1fr; }
  .data-table,
  .table-responsive table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  .data-table thead,
  .table-responsive table thead {
    display: none;
  }
  .data-table tbody,
  .data-table tr,
  .table-responsive table tbody,
  .table-responsive table tr {
    display: block;
    width: 100%;
  }
  .data-table tbody tr,
  .table-responsive table tbody tr {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  .data-table td,
  .table-responsive table td {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border: none;
    text-align: left !important;
  }
  .data-table td::before,
  .table-responsive table td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .data-table td.text-right,
  .table-responsive table td.text-right {
    text-align: left !important;
  }
  .data-table td:last-child,
  .table-responsive table td:last-child {
    padding-bottom: 0;
  }
  .data-table .empty,
  .table-responsive table .empty {
    display: block;
    text-align: center !important;
  }
  .data-table .empty::before,
  .table-responsive table .empty::before {
    content: none;
  }
  .filters { flex-direction: column; }
  .filters > * { width: 100%; }
}

/* ============================================================
   KAIRÓS — Patch v2.1
   Logo destacada · Rodapé Zionyx
   ============================================================ */

/* ── Logo na sidebar ──────────────────────────────────────── */
.sidebar-brand .brand-logo-wrap {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(184, 148, 58, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.sidebar-brand:hover .brand-logo-wrap {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(184, 148, 58, 0.6);
}
.sidebar-brand .brand-logo-wrap img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(184,148,58,.5));
}

/* ── Logo no login (painel esquerdo) ─────────────────────── */
.auth-brand .auth-logo-wrap {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(184, 148, 58, 0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(184,148,58,.18);
}
.auth-brand .auth-logo-wrap img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(184,148,58,.6));
}

/* ── Logo no formulário de login (painel direito) ─────────── */
.auth-card-brand .card-logo-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: var(--gold-faint);
  border: 2px solid var(--gold-light);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(184,148,58,.15);
}
.auth-card-brand .card-logo-wrap img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  /* logo tem fundo transparente e cor âmbar — fica ótima no fundo creme */
}

/* ── Rodapé Zionyx ───────────────────────────────────────── */
.app-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--white);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  margin-top: auto;
  flex: 0 0 auto;
}

.app-footer .footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.app-footer .footer-logo-wrap img {
  height: 26px;
  width: auto;
  object-fit: contain;
  opacity: .75;
  transition: opacity .15s;
}
.app-footer .footer-logo-wrap img:hover { opacity: 1; }

.app-footer .footer-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
}

.app-footer .footer-copy {
  font-size: .75rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.app-footer .footer-copy strong {
  color: var(--ink-mid);
  font-weight: 600;
}

@media (max-width: 640px) {
  .app-footer { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .app-footer .footer-copy { font-size: .7rem; }
}

/* ============================================================
   KAIRÓS — Patch v2.2
   Logo maior · Sino de notificações · Cabeçalho único
   ============================================================ */


/* ── panel-header sem título (só botão) ─────────────────────  */
.panel-header--action {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

/* ── Sino de notificações ───────────────────────────────────  */
.bell-wrap {
  position: relative;
}

.bell-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.bell-btn:hover,
.bell-btn--open {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-faint);
}

.bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--gold);
  color: var(--white);
  font-size: .62rem;
  font-weight: 700;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cream);
  line-height: 1;
}

.bell-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
}

.bell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border-soft);
}

.bell-mark-all {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-sans);
  display: none;
}
.bell-mark-all:hover { text-decoration: underline; }

.bell-list {
  max-height: 380px;
  overflow-y: auto;
}

.bell-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
  transition: background .12s;
}
.bell-item:last-child { border-bottom: none; }
.bell-item:hover { background: var(--cream); }

.bell-item-body { flex: 1; min-width: 0; }

.bell-item-type {
  display: inline-flex;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.type-event  { background: var(--gold-faint); color: #7a5c1a; border: 1px solid var(--gold-light); }
.type-notice { background: var(--cream-dark); color: var(--ink-soft); border: 1px solid var(--border); }

.bell-item-title {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.bell-item-date {
  display: block;
  font-size: .72rem;
  color: var(--ink-soft);
}

.bell-item-read {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  margin-top: 2px;
}
.bell-item-read:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-faint);
}

.bell-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--ink-soft);
  font-size: .88rem;
  font-style: italic;
  font-family: var(--font-serif);
  margin: 0;
}

/* ── Rodapé — logo como link ────────────────────────────────  */
.app-footer .footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  opacity: .7;
  transition: opacity .15s;
}
.app-footer .footer-logo-wrap:hover { opacity: 1; }
.app-footer .footer-logo-wrap img { height: 28px; width: auto; object-fit: contain; }

@media (max-width: 640px) {
  .bell-dropdown { width: calc(100vw - 24px); right: -60px; }
}

/* ============================================================
   KAIRÓS — Sidebar colapsável v3 (definitivo)
   Textos em .nav-label — ocultam via width:0 + overflow:hidden
   ============================================================ */

/* ── Larguras via CSS custom property ───────────────────────  */
:root {
  --sb-full:      272px;
  --sb-collapsed: 68px;
  --sb-speed:     230ms;
  --sb-ease:      cubic-bezier(.4, 0, .2, 1);
}

/* ── Grid raiz ───────────────────────────────────────────────  */
.app-shell {
  grid-template-columns: 1fr;
  margin-left: var(--sb-full);
  width: calc(100% - var(--sb-full));
  transition: margin-left var(--sb-speed) var(--sb-ease),
              width       var(--sb-speed) var(--sb-ease);
}
.sidebar-collapsed .app-shell {
  margin-left: var(--sb-collapsed);
  width: calc(100% - var(--sb-collapsed));
}

/* ── Sidebar container ───────────────────────────────────────  */
.sidebar {
  width: var(--sb-full);
  overflow-x: hidden;
  overflow-y: auto;
  transition: width var(--sb-speed) var(--sb-ease),
              padding var(--sb-speed) var(--sb-ease);
}
.sidebar-collapsed .sidebar {
  width: var(--sb-collapsed);
  padding-left: 10px;
  padding-right: 10px;
}

/* ── .nav-label — texto dos itens e seções ───────────────────  */
.nav-label {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 200px;           /* valor generoso para estado expandido */
  opacity: 1;
  transition: max-width var(--sb-speed) var(--sb-ease),
              opacity   calc(var(--sb-speed) * .5) var(--sb-ease);
}

/* colapso: encolhe o texto para largura zero */
.sidebar-collapsed .nav-label {
  max-width: 0;
  opacity: 0;
}

/* ── Brand text ──────────────────────────────────────────────  */
.brand-text {
  overflow: hidden;
  max-width: 200px;
  opacity: 1;
  transition: max-width var(--sb-speed) var(--sb-ease),
              opacity   calc(var(--sb-speed) * .5) var(--sb-ease);
}
.sidebar-collapsed .brand-text {
  max-width: 0;
  opacity: 0;
}
.sidebar-brand {
  align-items: center;
  gap: 12px;
}

/* ── Logo no estado colapsado ────────────────────────────────  */
.sidebar-collapsed .brand-logo-wrap {
  width: 44px !important;
  height: 44px !important;
}
.sidebar-collapsed .brand-logo-wrap img {
  width: 30px !important;
  height: 30px !important;
}

/* ── Nav-section (cabeçalhos de grupo) ───────────────────────  */
.sidebar-collapsed .nav-section {
  /* manter altura mínima para não colapsar o espaço entre grupos */
  min-height: 0;
  margin: 8px 4px 2px;
  overflow: hidden;
}

/* ── Links de nav ────────────────────────────────────────────  */
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;           /* garante que nada vaze */
}
.sidebar-collapsed .sidebar-nav a {
  justify-content: center;
  padding: 11px;
  gap: 0;
}

/* ── Ícones maiores no modo colapsado ────────────────────────  */
.sidebar-collapsed .sidebar-nav a svg {
  flex-shrink: 0;
  width: 18px !important;
  height: 18px !important;
}

/* ── Tooltip no hover (modo colapsado) ───────────────────────  */
.sidebar-nav a { position: relative; }

.sidebar-collapsed .sidebar-nav a::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink-mid);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 7px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s;
  z-index: 200;
  /* seta */
  box-shadow: 0 2px 8px rgba(13,34,51,.2);
}
.sidebar-collapsed .sidebar-nav a:hover::after { opacity: 1; }

/* ── Forçar overflow:visible na sidebar para mostrar tooltips ─ */
.sidebar-collapsed .sidebar {
  overflow-x: visible;        /* tooltips saem para fora da sidebar */
  overflow-y: auto;
}
/* Mas manter o clip interno no nav para textos não vazarem */
.sidebar-collapsed .sidebar-nav,
.sidebar-collapsed .sidebar-brand {
  overflow: hidden;
  width: calc(var(--sb-collapsed) - 20px);
}

/* ─────────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  html,
  body,
  .app-body {
    overflow-x: hidden !important;
  }

  .app-shell,
  .sidebar-collapsed .app-shell {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .main-area,
  .content,
  .panel,
  .panel-grid,
  .stats-grid,
  .table-wrap,
  .table-responsive,
  .app-footer {
    width: 100% !important;
    max-width: 100% !important;
  }

  .sidebar,
  .sidebar-collapsed .sidebar {
    width: var(--sidebar-w) !important;
  }

  .sidebar-collapsed .brand-text,
  .sidebar-collapsed .nav-label {
    max-width: 200px;
    opacity: 1;
  }
}

/* ============================================================
   TEMAS — Aplicados via [data-theme] no <html>
   O tema "default" não precisa de overrides (já é o :root).
   ============================================================ */

/* ── Noturno ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --ink:          #e8e0d5;
  --ink-mid:      #c4b99f;
  --ink-soft:     #9a8f80;
  --gold:         #c9a84c;
  --gold-light:   #a07830;
  --gold-faint:   #2a2218;
  --cream:        #121212;
  --cream-dark:   #1c1c1c;
  --white:        #1e1e1e;
  --border:       #2e2e2e;
  --border-soft:  #272727;
  --danger:       #e57373;
  --danger-soft:  #2a1010;
  --success:      #66bb6a;
  --success-soft: #0f2a15;
}

[data-theme="dark"] body,
[data-theme="dark"] .app-body  { background: var(--cream); color: var(--ink); }
[data-theme="dark"] .topbar    { background: rgba(30,30,30,.95); }
[data-theme="dark"] .panel,
[data-theme="dark"] .card      { background: var(--white); border-color: var(--border); }
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea   { background: #242424; color: var(--ink); border-color: var(--border); }

/* ── Floresta ────────────────────────────────────────────── */
[data-theme="forest"] {
  --ink:          #1b2e1b;
  --ink-mid:      #2e4a2e;
  --ink-soft:     #5a7a5a;
  --gold:         #7a9a3a;
  --gold-light:   #b8d47a;
  --gold-faint:   #eef5e0;
  --cream:        #f4f7ee;
  --cream-dark:   #e8eedd;
  --white:        #ffffff;
  --border:       #cddaae;
  --border-soft:  #dae5c2;
  --danger:       #8b2020;
  --danger-soft:  #fdf0f0;
  --success:      #1a5a1a;
  --success-soft: #edf7ed;
}

[data-theme="forest"] .sidebar {
  background: #1b2e1b;
}

/* ── Oceano ──────────────────────────────────────────────── */
[data-theme="ocean"] {
  --ink:          #0d2340;
  --ink-mid:      #1e3a5f;
  --ink-soft:     #4a6a8a;
  --gold:         #2e7fb8;
  --gold-light:   #7ab8d8;
  --gold-faint:   #e0f0f8;
  --cream:        #f0f5fa;
  --cream-dark:   #e0eaf5;
  --white:        #ffffff;
  --border:       #b8d0e8;
  --border-soft:  #ccddef;
  --danger:       #8b1a1a;
  --danger-soft:  #fdf0f0;
  --success:      #1a5a32;
  --success-soft: #edf7f1;
}

[data-theme="ocean"] .sidebar {
  background: #0d2340;
}

[data-theme="ocean"] .sidebar::before {
  background: linear-gradient(180deg, #2e7fb8 0%, rgba(46,127,184,.3) 60%, transparent 100%);
}
