@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/inter-variable.woff2') format('woff2');
}

:root {
  --bg: #CBAB6E;
  --card: #F0E7D2;
  --card-soft: #FDF1D6;
  --ink: #2C2820;
  --ink-soft: #5C4A2E;
  --ink-softer: #5C4A2E;
  --line: rgba(44,40,32,0.16);
  --surface: #E4D3AE;
  --surface-2: var(--card);

  --lime: #C3E838; --lime-tint: #EEF7C9; --lime-ink: #2C3808;
  --teal: #2E6E62; --teal-tint: #DCECE8; --teal-ink: #173A32;
  --amber: #D9A441; --amber-tint: #FDF1D6; --amber-ink: #3A2A04;
  --periwinkle: #93AEEA; --periwinkle-tint: #E7EDFB; --periwinkle-ink: #1C2A4A;
  --graybrown: #756E5D; --graybrown-tint: #EAE6DA; --graybrown-ink: #2C2820;

  /* semantic aliases used throughout the app */
  --green-tint: var(--lime-tint); --green-accent: var(--lime); --green-ink: var(--lime-ink);
  --coral-tint: var(--teal-tint); --coral-accent: var(--teal); --coral-ink: var(--teal-ink);
  --amber-accent: var(--amber);
  --teal-tint-alt: var(--periwinkle-tint); --teal-accent: var(--periwinkle); --teal-ink-alt: var(--periwinkle-ink);

  --shadow: rgba(44,40,32,0.14) 0 1px 3px, rgba(44,40,32,0.22) 0 10px 28px -16px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3 { font-family: 'Inter', system-ui, sans-serif; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }

.app-shell { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 224px; flex-shrink: 0;
  background: var(--card);
  color: var(--ink);
  display: flex; flex-direction: column;
  padding: 22px 16px;
  box-shadow: var(--shadow);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 22px; }
.brand-leaf {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  background: var(--lime);
  box-shadow: rgba(255,255,255,0.4) 0 1px 0 inset, rgba(44,40,32,0.22) 0 3px 8px;
  display: flex; align-items: center; justify-content: center;
}
.brand-title { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 0.84rem; line-height: 1.25; letter-spacing: -0.1px; }
.brand-sub { font-size: 0.62rem; color: var(--ink-soft); letter-spacing: 0.3px; margin-top: 2px; }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav button {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: none; text-align: left;
  color: var(--ink-soft); font-family: inherit; font-size: 0.8rem; font-weight: 600;
  padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer;
}
.sidebar-nav button:hover { background: rgba(44,40,32,0.06); color: var(--ink); }
.sidebar-nav button.active {
  background: linear-gradient(rgba(255,255,255,0.28), rgba(255,255,255,0) 55%), var(--periwinkle);
  box-shadow: rgba(255,255,255,0.4) 0 1px 0 inset, rgba(44,40,32,0.22) 0 3px 8px;
  color: var(--ink); font-weight: 700;
}
.sidebar-nav button .nav-ic {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: currentColor; opacity: 0.55;
}
.sidebar-nav button.active .nav-ic { opacity: 0.9; }

/* ---------- Content area ---------- */
.content-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  padding: 22px 32px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.topbar-eyebrow { font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.4px; }
.topbar h1 { margin: 2px 0 0; font-size: 1.5rem; letter-spacing: -0.4px; }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ghost-btn {
  background: var(--card); border: none; color: var(--ink-soft);
  border-radius: var(--radius-sm); padding: 8px 14px; font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: inherit;
  box-shadow: var(--shadow);
}
.ghost-btn:hover { color: var(--ink); }
.file-label { position: relative; display: inline-block; }
.file-label input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

main { padding: 24px 32px; max-width: 1240px; width: 100%; margin: 0 auto; flex: 1; }
.view { display: none; }
.view.active { display: block; }
.view.view-fill.active { display: flex; flex-direction: column; height: calc(100vh - 130px); }
.view.view-fill .note { flex-shrink: 0; }
.spreadsheet-widget-root { flex: 1; min-height: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ---------- Cards / param blocks ---------- */
.param-block {
  background: var(--card);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.param-block h3 { margin-top: 0; font-size: 1rem; }
.hint { font-size: 0.72rem; color: var(--ink-soft); font-weight: normal; font-family: 'Inter', sans-serif; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.field-row label { font-weight: 600; font-size: 0.85rem; }
.field-row input {
  padding: 7px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: 0.9rem; font-family: inherit;
  background: var(--surface-2); color: var(--ink);
}

.item-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.item-row { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 8px; }
.item-row input[type=text] { flex: 1; padding: 7px 9px; border-radius: 5px; border: 1px solid var(--line); font-size: 0.88rem; font-family: inherit; }
.item-row input[type=number] { width: 110px; padding: 7px 9px; border-radius: 5px; border: 1px solid var(--line); font-size: 0.88rem; text-align: right; font-family: inherit; }
.item-row .del-btn { background: none; border: none; color: var(--coral-accent); font-size: 1.1rem; cursor: pointer; padding: 2px 6px; }

.add-btn {
  background: var(--ink); color: var(--bg); border: none; border-radius: var(--radius-sm); padding: 9px 16px; cursor: pointer;
  font-weight: 700; font-size: 0.82rem; font-family: inherit;
}
.add-btn:hover { background: var(--ink-softer); }

.danger-block { background: linear-gradient(160deg, color-mix(in oklch, var(--coral-tint) 72%, white), var(--coral-tint) 65%); }
.danger-btn { background: var(--coral-accent); color: white; border: none; border-radius: var(--radius-sm); padding: 9px 16px; cursor: pointer; font-weight: 700; font-size: 0.82rem; font-family: inherit; }

/* ---------- Calendar ---------- */
.calendar-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }

.month-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 4px; }
.month-nav button {
  width: 30px; height: 30px; border-radius: 10px; background: var(--surface); border: none;
  color: var(--ink); font-size: 1.1rem; cursor: pointer; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.month-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.month-nav select {
  padding: 8px 10px; border-radius: var(--radius-sm); border: none; font-size: 0.85rem; font-family: inherit;
  background: var(--surface); color: var(--ink); font-weight: 700;
}
.month-title { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.05rem; text-align: center; margin: 4px 0 16px; color: var(--ink); }

.summary-badges { display: flex; gap: 12px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.badge {
  border-radius: var(--radius); padding: 12px 20px; text-align: center; min-width: 140px;
  box-shadow: var(--shadow);
}
.badge .lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 700; }
.badge .val { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; }
.badge.ca { background: linear-gradient(155deg, color-mix(in oklch, var(--green-tint) 72%, white), var(--green-tint) 65%); }
.badge.ca .lbl, .badge.ca .val { color: var(--green-ink); }
.badge.dep { background: linear-gradient(155deg, color-mix(in oklch, var(--coral-tint) 72%, white), var(--coral-tint) 65%); }
.badge.dep .lbl, .badge.dep .val { color: var(--coral-ink); }
.badge.solde { background: linear-gradient(155deg, color-mix(in oklch, var(--amber-tint) 72%, white), var(--amber-tint) 65%); }
.badge.solde .lbl, .badge.solde .val { color: var(--amber-ink); }

.dow-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.dow-row .dow { text-align: center; font-size: 0.68rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; padding: 4px; letter-spacing: 0.3px; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day-cell {
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); min-height: 78px; padding: 6px;
  font-size: 0.72rem; position: relative; cursor: pointer; display: flex; flex-direction: column;
}
.day-cell.empty { background: transparent; cursor: default; }
.day-cell:hover:not(.empty) { background: var(--surface); }
.day-cell .daynum { font-weight: 700; font-size: 0.78rem; color: var(--ink-soft); }
.day-cell .day-tasks { margin-top: 4px; overflow: hidden; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.day-cell .day-task-item {
  line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 2px 7px; border-radius: 20px; font-weight: 700; font-size: 0.65rem;
  background: var(--surface); color: var(--ink-soft);
}
.day-cell .day-task-item.linked-expense { background: var(--coral-tint); color: var(--coral-ink); }
.day-cell .day-task-item.linked-income { background: var(--green-tint); color: var(--green-ink); }
.day-cell .more-count { font-size: 0.62rem; color: var(--ink-soft); font-style: italic; }
.day-cell.today { border: 2px solid var(--amber-accent); }

/* ---------- Modal ---------- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(62,46,34,0.45); z-index: 50; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.show { display: flex; }
.modal { background: var(--card); border-radius: var(--radius); max-width: 520px; width: 100%; max-height: 85vh; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink-soft); line-height: 1; }
.modal-body { padding: 14px 18px; overflow-y: auto; }

.task-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.task-item { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; }
.task-item .task-text { flex: 1; font-size: 0.88rem; }
.task-item .task-badge { font-size: 0.68rem; padding: 3px 9px; border-radius: var(--radius-sm); font-weight: 700; white-space: nowrap; }
.task-item .task-badge.expense { background: var(--coral-tint); color: var(--coral-ink); }
.task-item .task-badge.income { background: var(--green-tint); color: var(--green-ink); }
.task-item .task-badge.hours { background: var(--teal-tint); color: var(--teal-ink); }
.task-item .del-btn { background: none; border: none; color: var(--coral-accent); font-size: 1.1rem; cursor: pointer; }
.empty-note { font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }

/* ---------- Tableau de bord ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { position: relative; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-spark { position: absolute; top: 16px; right: 16px; opacity: 0.85; }
.stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 700; }
.stat-value { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 6px; }
.stat-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.stat-sub { font-size: 0.72rem; color: var(--ink-soft); }
.trend-pill { font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.trend-pill.trend-good { background: var(--green-tint); color: var(--green-ink); }
.trend-pill.trend-bad { background: var(--coral-tint); color: var(--coral-ink); }
.trend-pill.trend-neutral { background: var(--surface); color: var(--ink-soft); }

.stat-card.ca { background: linear-gradient(155deg, color-mix(in oklch, var(--green-tint) 72%, white), var(--green-tint) 65%); }
.stat-card.ca .stat-label, .stat-card.ca .stat-value { color: var(--green-ink); }
.stat-card.dep { background: linear-gradient(155deg, color-mix(in oklch, var(--coral-tint) 72%, white), var(--coral-tint) 65%); }
.stat-card.dep .stat-label, .stat-card.dep .stat-value { color: var(--coral-ink); }
.stat-card.solde { background: linear-gradient(155deg, color-mix(in oklch, var(--amber-tint) 72%, white), var(--amber-tint) 65%); }
.stat-card.solde .stat-label, .stat-card.solde .stat-value { color: var(--amber-ink); }
.stat-card.tasks { background: linear-gradient(155deg, color-mix(in oklch, var(--teal-tint) 72%, white), var(--teal-tint) 65%); }
.stat-card.tasks .stat-label, .stat-card.tasks .stat-value { color: var(--teal-ink); }

.section-h { font-size: 1.1rem; margin: 0 0 14px; }
.chart-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-card { background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.chart-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.chart-card-head h3 { margin: 0; font-size: 0.95rem; }
.chart-sub { font-size: 0.7rem; color: var(--ink-soft); }

.link-btn { background: none; border: none; font-size: 0.8rem; font-weight: 700; color: var(--teal-ink); cursor: pointer; font-family: inherit; padding: 0; }
.link-btn:hover { text-decoration: underline; }

.dash-columns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 24px; }
.dash-card { background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-card-head h3 { margin: 0; font-size: 1rem; }

.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th { text-align: left; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.3px; color: var(--ink-soft); font-weight: 700; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.dash-table th:last-child { text-align: right; }
.dash-table td { padding: 9px 0; font-size: 0.85rem; border-bottom: 1px solid var(--line); }
.dash-table tr:last-child td { border-bottom: none; }
.dash-td-date { color: var(--ink-soft); white-space: nowrap; font-size: 0.78rem; }
.dash-td-amount { text-align: right; }
.amount-pill { display: inline-block; padding: 4px 10px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount-pill.pos { background: var(--green-tint); color: var(--green-ink); }
.amount-pill.neg { background: var(--coral-tint); color: var(--coral-ink); }

.upcoming-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.upcoming-item:last-child { margin-bottom: 0; }
.upcoming-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.upcoming-dot.ca { background: var(--green-accent); }
.upcoming-dot.dep { background: var(--coral-accent); }
.upcoming-dot.neutral { background: var(--amber-accent); }
.upcoming-body { flex: 1; min-width: 0; }
.upcoming-text { font-size: 0.82rem; font-weight: 600; }
.upcoming-date { font-size: 0.72rem; color: var(--ink-soft); }
.upcoming-tag { font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-sm); white-space: nowrap; }
.upcoming-tag.ca { background: var(--green-tint); color: var(--green-ink); }
.upcoming-tag.dep { background: var(--coral-tint); color: var(--coral-ink); }
.upcoming-tag.neutral { background: var(--amber-tint); color: var(--amber-ink); }

@media (max-width: 900px) { .dash-columns { grid-template-columns: 1fr; } }

/* ---------- Graphiques ---------- */
.graph-subtabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.graph-subtabs button { background: none; border: none; padding: 8px 0; font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.graph-subtabs button.active { color: var(--ink); border-bottom-color: var(--teal-accent); }

.duration-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.duration-pills button { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-softer); padding: 6px 13px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.duration-pills button.active { background: var(--teal-accent); border-color: var(--teal-accent); color: #fff; }

.big-chart-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.big-chart-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.4px; color: var(--ink-soft); }
.big-chart-value { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; }
.big-chart-caption { font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; }
.big-chart-minmax { display: flex; gap: 24px; }
.mm-item { display: flex; flex-direction: column; align-items: flex-end; }
.mm-label { font-size: 0.65rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.3px; }
.mm-val { font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Tâches ---------- */
.week-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 18px; }
.week-nav button { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--teal-tint); border: 1px solid var(--teal-accent); color: var(--teal-ink); font-size: 1rem; cursor: pointer; font-weight: 700; }
.week-label { font-family: 'Lora', Georgia, serif; font-size: 1.15rem; min-width: 220px; text-align: center; }
.hbar-total { font-size: 2rem; font-weight: 700; margin: 6px 0 18px; }
.hbar-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; }
.hbar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hbar-value { font-size: 0.78rem; font-weight: 700; color: var(--ink-softer); }
.hbar-track { width: 100%; height: 120px; background: var(--surface); border-radius: var(--radius-sm); display: flex; align-items: flex-end; overflow: hidden; }
.hbar-fill { width: 100%; background: linear-gradient(180deg, var(--teal-accent), color-mix(in oklch, var(--teal-accent) 70%, black)); border-radius: var(--radius-sm) 6px 0 0; transition: height 0.2s; }
.hbar-dow { font-size: 0.68rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; }

.add-task-row { display: flex; flex-direction: column; gap: 8px; }
.add-task-row input, .add-task-row select { padding: 9px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: 0.88rem; font-family: inherit; background: var(--surface-2); }
.add-task-row button { align-self: flex-end; background: var(--ink); color: var(--bg); border: none; border-radius: var(--radius-sm); padding: 9px 16px; cursor: pointer; font-weight: 700; font-family: inherit; }
.hours-field-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hours-toggle { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--ink-softer); cursor: pointer; }
.hours-toggle input { cursor: pointer; }
.hours-field-row input[type=number] { width: 110px; flex: none; }
.hours-field-row input[type=number]:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Prévisionnel table ---------- */
.prev-toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
#previsionnel table { width: 100%; border-collapse: collapse; font-size: 0.74rem; }
#previsionnel th {
  background: var(--ink); color: var(--bg); padding: 8px 10px; position: sticky; top: 0; white-space: nowrap;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.3px; font-weight: 700;
}
#previsionnel td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
#previsionnel td:first-child, #previsionnel th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
#previsionnel tr:nth-child(even) td { background: var(--surface-2); }
#previsionnel tr:nth-child(even) td:first-child { background: var(--surface); }
td.negatif { color: var(--coral-accent); font-weight: 700; }
.prev-wrap { overflow: auto; max-height: 70vh; border-radius: var(--radius); box-shadow: var(--shadow); }

.note { font-size: 0.78rem; color: var(--ink-soft); font-style: italic; margin: 10px 0 20px; }

.save-indicator {
  position: fixed; bottom: 14px; right: 14px; background: var(--ink); color: var(--bg);
  padding: 7px 15px; border-radius: 20px; font-size: 0.75rem; opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.save-indicator.show { opacity: 1; }

@media (max-width: 760px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; padding: 10px 14px; }
  .sidebar-brand { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .sidebar-nav { flex-direction: row; margin-left: auto; }
  .sidebar-nav button span:last-child { display: none; }
  .topbar, main { padding-left: 16px; padding-right: 16px; }
  .day-cell { min-height: 56px; font-size: 0.62rem; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .chart-cards { grid-template-columns: 1fr; }
}
