/* ================================================================
   LUMINA PLANNER OS v3.0 — COMPONENTS.CSS
   Sistema "Papelaria Viva": washi tape, sticky notes, caderno
   ================================================================ */

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-slow), color var(--transition-slow);
}
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ── Grade Pontilhada de Fundo ────────────────────────────────── */
.dot-grid-bg {
  background-image: radial-gradient(circle, var(--dot-grid) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}
.dot-grid-sm {
  background-image: radial-gradient(circle, var(--dot-grid) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* ── Layout Principal ─────────────────────────────────────────── */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-base);
}

/* ── Sidebar / Abas de Caderno ───────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  transition: width var(--transition-slow), min-width var(--transition-slow);
}
.sidebar.collapsed { width: var(--sidebar-w-collapsed); min-width: var(--sidebar-w-collapsed); }
.sidebar-header {
  padding: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.sidebar-logo {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-logo span { opacity: 0.55; font-weight: 400; font-size: var(--text-sm); }
.sidebar-profile-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--accent-deep);
  font-weight: 600;
}
.sidebar-nav { flex: 1; padding: var(--space-4) var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); }

/* Abas de caderno */
.nav-tab {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}
.nav-tab:hover {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}
.nav-tab.active {
  background: var(--bg-base);
  color: var(--accent);
  font-weight: 700;
  box-shadow: -3px 0 0 inset var(--accent);
}
.nav-tab .nav-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.nav-tab .nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.nav-tab .nav-badge {
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.nav-section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-4) var(--space-3) var(--space-1);
}
.sidebar-footer {
  padding: var(--space-3);
  border-top: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-user:hover { background: var(--bg-elevated); }
.user-avatar {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-accent);
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
}
.user-info { overflow: hidden; }
.user-name { font-size: var(--text-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-email { font-size: var(--text-xs); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Área de Conteúdo Principal ───────────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-base);
}
.topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-4);
  flex-shrink: 0;
}
.topbar-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.01em;
  flex: 1;
}
.topbar-actions { display: flex; align-items: center; gap: var(--space-2); }
.page-area {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}
.page-inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

/* ── Cartões de Papel ─────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-paper);
  padding: var(--space-5);
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-card); }
.card-elevated {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}
.card-inset {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

/* ── Fita Washi Tape ──────────────────────────────────────────── */
.washi-tape {
  height: 14px;
  background: var(--washi-primary);
  border-radius: var(--radius-xs);
  margin: var(--space-3) 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.washi-tape::before, .washi-tape::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 12px;
  background: var(--washi-secondary);
}
.washi-tape::before { left: 0; border-radius: 3px 0 0 3px; }
.washi-tape::after  { right: 0; border-radius: 0 3px 3px 0; }
.washi-tape-sm { height: 10px; margin: var(--space-2) 0; }
.washi-tape.washi-wide { margin: var(--space-4) calc(-1 * var(--space-5)); }
/* Variação com padrão listrado */
.washi-stripe {
  background: repeating-linear-gradient(
    45deg,
    var(--washi-primary) 0px,
    var(--washi-primary) 4px,
    var(--washi-secondary) 4px,
    var(--washi-secondary) 8px
  );
}
.washi-dots {
  background-image: radial-gradient(circle, var(--washi-secondary) 2px, transparent 2px),
                    linear-gradient(var(--washi-primary), var(--washi-primary));
  background-size: 10px 10px, 100% 100%;
}

/* ── Nota Adesiva (Sticky Note) ───────────────────────────────── */
.sticky-note {
  background: var(--sticky-bg);
  padding: var(--space-4) var(--space-4) var(--space-5);
  border-radius: 2px;
  box-shadow: var(--shadow-sticky);
  font-family: var(--font-script);
  font-size: var(--text-md);
  line-height: 1.5;
  position: relative;
  transform: rotate(-0.7deg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.sticky-note:hover { transform: rotate(0deg); box-shadow: 3px 6px 20px rgba(0,0,0,0.15); }
.sticky-note::before {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 8px;
  background: rgba(200, 185, 150, 0.55);
  border-radius: 0 0 3px 3px;
}
.sticky-note-field {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  resize: none;
  font-family: var(--font-script);
  font-size: var(--text-md);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 60px;
}
.sticky-note-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

/* ── Marca-Texto (Highlight) ──────────────────────────────────── */
.highlight {
  background: linear-gradient(
    120deg,
    transparent 0%,
    var(--highlight) 15%,
    var(--highlight) 85%,
    transparent 100%
  );
  border-radius: var(--radius-xs);
  padding: 1px 5px;
  display: inline;
}
.highlight-block {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

/* ── Linhas de Caderno (Notebook Lines) ───────────────────────── */
.notebook-field {
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  outline: none;
  width: 100%;
  padding: var(--space-2) var(--space-1);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--transition);
}
.notebook-field:focus { border-bottom-color: var(--accent); }
.notebook-field::placeholder { color: var(--text-muted); font-style: italic; }
.notebook-lines {
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent calc(2.2rem - 1px),
    var(--border-soft) calc(2.2rem - 1px),
    var(--border-soft) 2.2rem
  );
  line-height: 2.2rem;
}

/* ── Checkboxes Orgânicos ─────────────────────────────────────── */
.task-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-soft);
  transition: var(--transition);
}
.task-item:last-child { border-bottom: none; }
.task-check {
  width: 20px; height: 20px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition-spring);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin-top: 2px;
}
.task-check:hover { border-color: var(--accent); background: var(--accent-soft); }
.task-check.checked {
  border-color: var(--accent);
  background: var(--accent);
}
.task-check.checked::after {
  content: '';
  width: 6px; height: 10px;
  border: 2px solid var(--text-on-accent);
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-2px);
}
.task-text { flex: 1; font-size: var(--text-base); line-height: 1.5; }
.task-text.done {
  text-decoration: line-through;
  color: var(--text-muted);
  font-style: italic;
}
.task-delete {
  opacity: 0;
  color: var(--text-muted);
  font-size: var(--text-base);
  transition: var(--transition);
  flex-shrink: 0;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
}
.task-item:hover .task-delete { opacity: 1; }
.task-delete:hover { color: var(--danger); background: var(--danger-soft); }

/* ── Campos de Entrada Premium ────────────────────────────────── */
.input-field {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  outline: none;
  transition: all var(--transition);
}
.input-field:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input-field::placeholder { color: var(--text-muted); font-style: italic; }
.textarea-field {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}
.input-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.03em;
}
.input-group { margin-bottom: var(--space-4); }

/* ── Botões ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--accent-soft);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-soft); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-elevated); border-color: var(--border-strong); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-surface); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: var(--danger); color: white; }
.btn-sm { padding: var(--space-2) var(--space-3); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-md); border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-md); }
.btn-icon-sm { width: 28px; height: 28px; padding: 0; border-radius: var(--radius-sm); font-size: var(--text-sm); }

/* ── Tipografia Editorial ─────────────────────────────────────── */
.heading-display {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.heading-display-italic {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
}
.heading-1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
.heading-2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
}
.heading-3 {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.4;
}
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.date-display {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* ── Data Editorial (Dia / Mes / Ano) ─────────────────────────── */
.date-hero {
  text-align: center;
  padding: var(--space-6) 0 var(--space-4);
}
.date-hero .weekday {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-1);
}
.date-hero .day-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  font-style: italic;
}
.date-hero .month-year {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}

/* ── Bloco de Horários (Time Blocking) ────────────────────────── */
.time-block-list { display: flex; flex-direction: column; }
.time-slot {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-1) 0;
  min-height: 2.5rem;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.time-slot:last-child { border-bottom: none; }
.time-slot-hour {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  width: 32px;
  flex-shrink: 0;
  padding-top: 0.45rem;
  font-variant-numeric: tabular-nums;
}
.time-slot-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-primary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  line-height: 1.5;
  width: 100%;
}
.time-slot-input:focus { background: var(--accent-soft); }
.time-slot-input::placeholder { color: var(--text-muted); font-style: italic; }
.time-slot.has-event .time-slot-input {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-left: var(--space-3);
  font-weight: 500;
}

/* ── Rastreador de Hábitos ─────────────────────────────────────── */
.habit-tracker { display: flex; flex-direction: column; gap: var(--space-2); }
.habit-row { display: flex; align-items: center; gap: var(--space-3); }
.habit-name {
  font-size: var(--text-sm);
  font-weight: 500;
  width: 100px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.habit-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.habit-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-spring);
  flex-shrink: 0;
}
.habit-dot:hover { border-color: var(--accent); background: var(--accent-soft); }
.habit-dot.done { background: var(--accent); border-color: var(--accent); }
.habit-dot.done::after {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  content: '✓';
  color: var(--text-on-accent);
  font-size: 11px;
  font-weight: 700;
}
.habit-streak {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 700;
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Barra de Progresso ───────────────────────────────────────── */
.progress-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gradient-hero);
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}
.progress-thin { height: 4px; }
.progress-thick { height: 12px; }

/* ── Humor e Energia (Emojis) ────────────────────────────────── */
.mood-selector { display: flex; gap: var(--space-3); align-items: center; }
.mood-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 2px solid transparent;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-spring);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mood-btn:hover { transform: scale(1.2); background: var(--bg-elevated); }
.mood-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.15);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ── Tracker de Água ──────────────────────────────────────────── */
.water-tracker { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.water-drop {
  font-size: 1.4rem;
  cursor: pointer;
  transition: all var(--transition-spring);
  opacity: 0.25;
  filter: grayscale(1);
}
.water-drop:hover { transform: scale(1.25); }
.water-drop.filled { opacity: 1; filter: none; transform-origin: bottom; }
.water-drop.filled:hover { transform: scale(1.15); }

/* ── Mini Calendário ──────────────────────────────────────────── */
.mini-cal { font-size: var(--text-xs); }
.mini-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.mini-cal-day-name {
  font-weight: 700;
  color: var(--text-muted);
  padding: 2px;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
}
.mini-cal-day {
  padding: 4px 2px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mini-cal-day:hover { background: var(--accent-soft); color: var(--accent); }
.mini-cal-day.today {
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 700;
  border-radius: var(--radius-full);
}
.mini-cal-day.other-month { color: var(--text-muted); opacity: 0.45; }
.mini-cal-day.has-event::after {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin: 2px auto 0;
}

/* ── Grid Semanal ─────────────────────────────────────────────── */
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-2); }
.week-day-col {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  min-height: 120px;
}
.week-day-col.today { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.week-day-header {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.week-day-num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.week-day-col.today .week-day-num { color: var(--accent); }

/* ── Calendário Mensal Grid ──────────────────────────────────── */
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.month-grid-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.month-col-header {
  padding: var(--space-2);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.month-cell {
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: var(--space-2);
  min-height: 80px;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.month-cell:hover { background: var(--accent-soft); }
.month-cell.today { background: var(--accent-soft); }
.month-cell-num {
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: var(--space-1);
}
.month-cell.today .month-cell-num {
  background: var(--accent);
  color: var(--text-on-accent);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs);
}
.month-cell.other-month { opacity: 0.4; }
.month-event {
  font-size: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: var(--radius-xs);
  padding: 1px 4px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

/* ── Modais ───────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}
.modal-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  padding: var(--space-8);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-spring), opacity var(--transition);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-5);
}
.modal-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.modal-close:hover { background: var(--bg-elevated); color: var(--text-primary); }
.modal.has-close { position: relative; }

/* ── Toasts / Notificações ────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 260px;
  max-width: 380px;
  animation: toastIn 0.3s var(--ease-spring);
}
.toast.success { border-left: 4px solid var(--success); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--info); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Divisores ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-soft);
  margin: var(--space-4) 0;
}
.divider-labeled {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.divider-labeled::before, .divider-labeled::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
.divider-labeled span { font-size: var(--text-xs); color: var(--text-muted); font-style: italic; }

/* ── Badges / Etiquetas ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(0,0,0,0.06);
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger);  }
.badge-info    { background: var(--info-soft);    color: var(--info);    }

/* ── Timer Ring (SVG Circular) ────────────────────────────────── */
.timer-ring-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.timer-ring { transform: rotate(-90deg); }
.timer-ring-bg { fill: none; stroke: var(--bg-elevated); }
.timer-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s var(--ease);
}
.timer-display {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.timer-label {
  position: absolute;
  bottom: calc(-1 * var(--space-5));
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Roda da Vida ─────────────────────────────────────────────── */
.life-wheel-wrap {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  flex-wrap: wrap;
}
.life-wheel-areas { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; min-width: 220px; }
.life-wheel-area { display: flex; flex-direction: column; gap: var(--space-1); }
.life-wheel-area-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  font-weight: 600;
}
.life-wheel-area-label span { color: var(--accent); font-family: var(--font-mono); }
.life-area-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  outline: none;
  cursor: pointer;
}
.life-area-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px var(--accent-soft);
  transition: var(--transition-spring);
}
.life-area-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* ── Loading Skeleton ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Accordion ────────────────────────────────────────────────── */
.accordion-item {
  border-bottom: 1px solid var(--border-soft);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  transition: color var(--transition);
}
.accordion-header:hover { color: var(--accent); }
.accordion-arrow {
  font-size: var(--text-sm);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-slow);
}
.accordion-item.open .accordion-body { max-height: 600px; }
.accordion-content { padding-bottom: var(--space-4); color: var(--text-secondary); }

/* ── Seletor de Tema Visual ───────────────────────────────────── */
.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-3);
}
.theme-swatch {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-spring);
  box-shadow: var(--shadow-paper);
}
.theme-swatch:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.theme-swatch.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transform: translateY(-2px);
}
.theme-swatch-preview {
  height: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.theme-swatch-preview div { }
.theme-swatch-label {
  background: var(--bg-card);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-soft);
}
.theme-swatch.active .theme-swatch-label { color: var(--accent); }

/* ── Painel de Áudio ──────────────────────────────────────────── */
.audio-panel {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
}
.audio-scene-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  background: transparent;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}
.audio-scene-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent);
}
.audio-scene-btn:hover { background: var(--bg-elevated); color: var(--text-secondary); }
.audio-scene-icon { font-size: 1.2rem; }

/* ── Scroll customizado ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ── Utilitários ──────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-sm     { font-size: var(--text-sm); }
.text-xs     { font-size: var(--text-xs); }
.font-bold   { font-weight: 700; }
.font-script { font-family: var(--font-script); }
.italic      { font-style: italic; }
.uppercase   { text-transform: uppercase; letter-spacing: 0.08em; }
.p-0  { padding: 0; }
.p-3  { padding: var(--space-3); }
.p-4  { padding: var(--space-4); }
.p-6  { padding: var(--space-6); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.w-full { width: 100%; }
.h-full { height: 100%; }
.rounded { border-radius: var(--radius-md); }
.rounded-full { border-radius: var(--radius-full); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Animações ────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes checkBounce {
  0%   { transform: scale(0.5) rotate(0deg); }
  60%  { transform: scale(1.25) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
.animate-fade    { animation: fadeIn 0.3s var(--ease) both; }
.animate-slide   { animation: slideIn 0.25s var(--ease) both; }
.animate-pulse   { animation: pulse 2s ease infinite; }

/* ── Responsivo — Tablet ──────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 200px; }
  .week-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 0 var(--space-4); }
  .page-area { padding: var(--space-4); }
}

/* ── Responsivo — Mobile ──────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --sidebar-w: 0px; --sidebar-w-collapsed: 0px; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    z-index: 500;
    width: 260px !important; min-width: 260px !important;
    box-shadow: var(--shadow-modal);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 499;
  }
  .sidebar-overlay.open { display: block; }
  .main-content { width: 100%; }
  .week-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .date-hero .day-num { font-size: 3.5rem; }
  .topbar { padding: 0 var(--space-3); }
  .page-area { padding: var(--space-3); }
  .modal { padding: var(--space-5); }
  .theme-picker-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Responsivo utilitarios extras ───────────────────────────── */
.hidden-mobile {
  display: inline;
}
@media (max-width: 640px) {
  .hidden-mobile { display: none !important; }
  .show-mobile   { display: inline !important; }
}


.sidebar-overlay { display: none; }
@media (max-width: 900px) and (min-width: 641px) { .btn-ghost .hidden-mobile { display: none; } }

/* ── Papelaria Tática & Anti-Disfunção ────────────────────────── */
.sos-banner {
  background: repeating-linear-gradient(45deg, rgba(200, 125, 85, 0.08), rgba(200, 125, 85, 0.08) 12px, transparent 12px, transparent 24px), var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-6);
}

.tactical-quadrant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 640px) {
  .tactical-quadrant-grid { grid-template-columns: 1fr; }
}

.tactical-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-paper);
  position: relative;
}

.tactical-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  display: inline-block;
  margin-bottom: var(--space-2);
}

.tactical-column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 768px) {
  .tactical-column-grid { grid-template-columns: 1fr; }
}

.sticker-preview {
  border: 1.5px dashed var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  box-shadow: var(--shadow-sticky);
  transition: transform var(--transition);
}
.sticker-preview:hover {
  transform: rotate(-1deg) scale(1.02);
}

.strike-burned {
  text-decoration: line-through;
  opacity: 0.45;
  filter: grayscale(1);
}

/* ═══════════════════════════════════════════════════════════
   ECOSSISTEMA DE ADESIVOS REALISTAS (DIE-CUT STICKER SYSTEM)
════════════════════════════════════════════════════════════ */
.sticker-sheet-canvas {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-modal);
  position: relative;
  overflow: hidden;
}
.sticker-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed var(--border);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-2);
}
.sticker-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.sticker-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sticker-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.sticker-tab-btn.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--accent-soft);
}
.sticker-grid-realistic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  align-items: center;
}

/* Base Sticker Look: die-cut white rim, 3D lift shadow, subtle sheen */
.diecut-sticker {
  position: relative;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 3px solid #FFFFFF;
  outline: 1px dashed rgba(0,0,0,0.18);
  outline-offset: 3px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
  padding: var(--space-4);
  font-family: var(--font-body);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.diecut-sticker:hover {
  transform: translateY(-5px) scale(1.03) rotate(-1deg);
  box-shadow: 0 12px 24px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.08);
  outline-color: var(--accent);
}

/* 1. Forma: WASHI TAPE (Fita adesiva com pontas recortadas) */
.sticker-shape-washi {
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(196,168,130,0.15) 0%, var(--bg-card) 100%);
  border-left: 6px solid var(--accent);
  border-right: 6px solid var(--accent);
  min-height: 84px;
  text-align: left;
}
.sticker-shape-washi::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 20px;
  right: 20px;
  height: 8px;
  background: rgba(255,255,255,0.45);
  border-radius: 2px;
  pointer-events: none;
}

/* 2. Forma: STAMP CIRCULAR / OVAL (Carimbo com anel duplo) */
.sticker-shape-stamp {
  border-radius: var(--radius-xl);
  border: 3px solid #FFFFFF;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  text-align: center;
  min-height: 100px;
  position: relative;
  overflow: hidden;
}
.sticker-shape-stamp .stamp-inner {
  border: 2px dashed var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 3. Forma: PILL / CÁPSULA (Cápsula com cantos ultra-arredondados) */
.sticker-shape-pill {
  border-radius: 999px;
  padding: var(--space-4) var(--space-6);
  border: 3px solid #FFFFFF;
  text-align: center;
  min-height: 80px;
  background: var(--bg-card);
}

/* 4. Forma: TICKET / CUPOM (Recortes e linha de picote) */
.sticker-shape-ticket {
  border-radius: var(--radius-md);
  border: 3px solid #FFFFFF;
  min-height: 94px;
  border-bottom: 2px dashed var(--border);
  position: relative;
}
.sticker-shape-ticket::after {
  content: '✂ ------------------------------------';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 7px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  overflow: hidden;
}

/* 5. Forma: HAZARD / ALERTA INDUSTRIAL (Alerta vermelho/amarelo) */
.sticker-shape-hazard {
  border-radius: var(--radius-md);
  border: 3px solid #FFFFFF;
  background: var(--bg-card);
  border-top: 6px solid #D9534F;
  min-height: 92px;
}

/* 6. Forma: BADGE HEXAGONAL / CHANCELA */
.sticker-shape-badge {
  border-radius: var(--radius-lg);
  border: 3px solid #FFFFFF;
  background: var(--bg-card);
  border-left: 6px solid #C87D55;
  min-height: 88px;
}

/* ═══════════════════════════════════════════════════════════
   TEAMUP CALENDAR STYLES & CATEGORY PILLS
════════════════════════════════════════════════════════════ */
.calendar-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.calendar-nav-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.calendar-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4);
  padding: var(--space-2) 0;
}
.cal-filter-chip {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cal-filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}
.cal-filter-chip.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}
.month-event-pill {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: var(--radius-xs);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.15s;
}
.month-event-pill:hover {
  transform: translateX(2px);
}
.month-event-pill.cat-needle {
  background: rgba(217, 83, 79, 0.16);
  border-left: 3px solid #D9534F;
  color: #A8321B;
}
.month-event-pill.cat-work {
  background: rgba(74, 105, 189, 0.16);
  border-left: 3px solid #4A69BD;
  color: #1E3799;
}
.month-event-pill.cat-health {
  background: rgba(46, 204, 113, 0.16);
  border-left: 3px solid #2ECC71;
  color: #1B7A43;
}
.month-event-pill.cat-personal {
  background: rgba(155, 89, 182, 0.16);
  border-left: 3px solid #9B59B6;
  color: #5E2D79;
}
.month-event-pill.cat-idea {
  background: rgba(243, 156, 18, 0.16);
  border-left: 3px solid #F39C12;
  color: #7D6608;
}
.month-event-pill.done {
  text-decoration: line-through;
  opacity: 0.55;
}

/* Agenda View */
.agenda-list-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.agenda-day-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-paper);
}
.agenda-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-3);
}

/* Modal de Detalhes do Dia (Teamup Popover) */
.day-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.day-modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-modal);
  max-height: 88vh;
  overflow-y: auto;
}

/* Seletor de Tamanho de Papel */
.paper-size-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.paper-size-btn.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--accent-soft);
}

/* ── Dimensão 3: Termômetro de Bateria, Starter Chips & Ergonomia 360px ── */
.energy-pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.energy-pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.energy-pill.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.tactical-starter-chip {
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.tactical-starter-chip:hover {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  transform: translateX(2px);
}
@media (max-width: 768px) {
  .topbar {
    padding: 0 var(--space-3);
    gap: 6px;
  }
  .topbar-title {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 64px;
  }
  .topbar-actions {
    gap: 4px;
    flex-shrink: 0;
  }
  .topbar-actions .btn-sm {
    padding: 5px 7px;
  }
}

/* ── Dimensão 4: Modo Papel & Tinteiro (Zen Focus) & Estados Refinados ── */
.sidebar {
  transition: margin-left var(--transition-slow), transform var(--transition-slow), opacity var(--transition);
}
.page-inner {
  transition: max-width var(--transition-slow), padding var(--transition-slow), box-shadow var(--transition-slow), background-color var(--transition-slow);
}
body.zen-focus-mode .sidebar {
  margin-left: calc(-1 * var(--sidebar-w));
  opacity: 0;
  pointer-events: none;
}
body.zen-focus-mode #demoNoticeBanner,
body.zen-focus-mode .mobile-bottom-bar {
  display: none !important;
}
body.zen-focus-mode .topbar {
  background: transparent;
  border-bottom-color: transparent;
}
body.zen-focus-mode .page-area {
  padding-top: var(--space-4);
  padding-bottom: var(--space-10);
}
body.zen-focus-mode .page-inner {
  max-width: 720px;
  background: var(--bg-card);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--border-soft);
}
@media (max-width: 768px) {
  body.zen-focus-mode .page-inner {
    padding: var(--space-4);
  }
}
#btnZenFocus.active {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid var(--accent);
  font-weight: 700;
}

/* ── Dimensão 8: Efeito Sensorial de Incineração & Cinzas ── */
@keyframes luminaBurnAsh {
  0% {
    background-color: rgba(235, 87, 87, 0.18);
    box-shadow: 0 0 18px rgba(235, 87, 87, 0.45), inset 0 0 14px rgba(242, 153, 74, 0.45);
    transform: scale(1);
    filter: blur(0px);
    opacity: 1;
  }
  45% {
    background-color: rgba(242, 153, 74, 0.32);
    box-shadow: 0 0 28px rgba(235, 87, 87, 0.65);
    color: #B8321A;
    transform: scale(0.99) translateY(-2px);
    filter: contrast(1.3) blur(0.6px);
    opacity: 0.85;
  }
  100% {
    background-color: rgba(46, 43, 39, 0.08);
    transform: scale(0.96) translateY(-8px);
    filter: grayscale(1) blur(3px);
    opacity: 0.15;
  }
}
.burning-ash-effect {
  animation: luminaBurnAsh 0.95s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}
