/* ═══════════════════════════════════════════════════════════
   LifeOS v3 — Monochrome Design System
   Paleta: Preto · Cinza · Branco — sem cores
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #0a0a0a;
  font-family: 'Geist', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* ── Preto base ── */
  --black:       #000000;
  --ink-1:       #0a0a0a;
  --ink-2:       #111111;
  --ink-3:       #181818;
  --ink-4:       #1f1f1f;
  --ink-5:       #272727;
  --ink-6:       #303030;

  /* ── Cinzas ── */
  --gray-1:      #3a3a3a;
  --gray-2:      #505050;
  --gray-3:      #686868;
  --gray-4:      #868686;
  --gray-5:      #a4a4a4;
  --gray-6:      #c2c2c2;
  --gray-7:      #d8d8d8;
  --gray-8:      #ebebeb;

  /* ── Branco ── */
  --white:       #ffffff;
  --white-90:    rgba(255,255,255,0.90);
  --white-70:    rgba(255,255,255,0.70);
  --white-50:    rgba(255,255,255,0.50);
  --white-30:    rgba(255,255,255,0.30);
  --white-15:    rgba(255,255,255,0.15);
  --white-08:    rgba(255,255,255,0.08);
  --white-04:    rgba(255,255,255,0.04);

  /* ── Borders ── */
  --border:      rgba(255,255,255,0.07);
  --border-m:    rgba(255,255,255,0.11);
  --border-h:    rgba(255,255,255,0.18);
  --border-act:  rgba(255,255,255,0.35);

  /* ── Tipografia ── */
  --font:        'Geist', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', -apple-system, sans-serif;
  --mono:        'Geist Mono', 'Courier New', monospace;

  /* ── Layout ── */
  --sidebar-w:   52px;
  --sidebar-exp: 224px;
  --topbar-h:    50px;
  --radius:      10px;
  --radius-sm:   7px;
  --radius-xs:   5px;
  --radius-lg:   14px;

  /* ── Transições ── */
  --ease:        cubic-bezier(.4,0,.2,1);
  --spring:      cubic-bezier(.34,1.4,.64,1);
}

/* ════════════════════════════════════════
   SCROLLBAR
════════════════════════════════════════ */
* { scrollbar-width: thin; scrollbar-color: var(--ink-6) transparent; }
*::-webkit-scrollbar { width: 3px; height: 3px; }
*::-webkit-scrollbar-thumb { background: var(--ink-6); border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ════════════════════════════════════════
   APP SHELL
════════════════════════════════════════ */
#lo-app {
  position: fixed; inset: 0;
  display: flex;
  background: var(--ink-1);
  color: var(--gray-7);
  font-family: var(--font);
  overflow: hidden;
}

/* Grain texture overlay */
#lo-app::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.5;
}

/* ════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════ */
.lo-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100%;
  background: var(--ink-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 8px 16px;
  gap: 2px;
  z-index: 30;
  flex-shrink: 0;
  transition: width .22s var(--ease), min-width .22s var(--ease);
  overflow: hidden;
}

.lo-sidebar:hover {
  width: var(--sidebar-exp);
  min-width: var(--sidebar-exp);
}

/* Logo */
.lo-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 4px 6px 5px;
  margin-bottom: 18px;
  width: 100%;
  flex-shrink: 0;
}
.lo-logo-mark {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  color: var(--black);
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.lo-logo-text {
  font-size: 14px; font-weight: 700;
  color: var(--white-90);
  white-space: nowrap;
  opacity: 0; transition: opacity .2s var(--ease);
  letter-spacing: -0.3px;
}
.lo-sidebar:hover .lo-logo-text { opacity: 1; }

/* Nav section label */
.lo-nav-section {
  font-size: 9.5px; font-weight: 600;
  color: var(--gray-2);
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 10px 6px 4px;
  white-space: nowrap;
  opacity: 0; transition: opacity .2s var(--ease);
}
.lo-sidebar:hover .lo-nav-section { opacity: 1; }

/* Nav item */
.lo-nav {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px;
  width: 100%;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--gray-4);
  transition: background .15s, color .15s;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
  min-height: 36px;
}
.lo-nav:hover { background: var(--white-04); color: var(--gray-7); }
.lo-nav.active {
  background: var(--white);
  color: var(--black);
  border-color: transparent;
}
.lo-nav svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.lo-nav-label {
  font-size: 13px; font-weight: 500;
  opacity: 0; transition: opacity .2s var(--ease);
  flex: 1;
}
.lo-sidebar:hover .lo-nav-label { opacity: 1; }
.lo-nav-badge {
  font-size: 10px; font-weight: 600;
  background: var(--ink-6);
  color: var(--gray-5);
  border-radius: 99px;
  padding: 1px 5px;
  font-family: var(--mono);
  opacity: 0; transition: opacity .2s var(--ease);
}
.lo-sidebar:hover .lo-nav-badge { opacity: 1; }
.lo-nav.active .lo-nav-badge { background: rgba(0,0,0,0.15); color: var(--black); }

.lo-sidebar-spacer { flex: 1; }
.lo-sidebar-div {
  width: 100%; height: 1px;
  background: var(--border);
  margin: 6px 0;
  flex-shrink: 0;
}

/* User avatar bottom */
.lo-sidebar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px;
  width: 100%;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s;
}
.lo-sidebar-user:hover { background: var(--white-04); }
.lo-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink-6);
  border: 1.5px solid var(--border-m);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--gray-6);
  flex-shrink: 0;
}
.lo-user-info { opacity: 0; transition: opacity .2s; }
.lo-sidebar:hover .lo-user-info { opacity: 1; }
.lo-user-name { font-size: 12px; font-weight: 600; color: var(--white-70); white-space: nowrap; }
.lo-user-role { font-size: 10px; color: var(--gray-3); white-space: nowrap; }

/* ════════════════════════════════════════
   MAIN AREA
════════════════════════════════════════ */
.lo-main {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; min-width: 0;
}

/* ════════════════════════════════════════
   TOPBAR
════════════════════════════════════════ */
.lo-topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  background: var(--ink-2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 14px;
  z-index: 20; flex-shrink: 0;
}
.lo-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--gray-3);
}
.lo-breadcrumb strong { color: var(--white-90); font-weight: 600; font-size: 13.5px; }
.lo-breadcrumb-sep { color: var(--gray-2); font-size: 10px; }
.lo-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lo-topbar-date {
  font-size: 11.5px; color: var(--gray-4);
  font-family: var(--mono);
  background: var(--white-04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 3px 9px;
}
.lo-topbar-btn {
  width: 30px; height: 30px;
  border-radius: var(--radius-xs);
  background: var(--white-04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px;
  transition: background .15s, border-color .15s;
}
.lo-topbar-btn:hover { background: var(--white-08); border-color: var(--border-m); }
.lo-topbar-btn svg { width: 14px; height: 14px; stroke: var(--gray-5); fill: none; stroke-width: 1.8; stroke-linecap: round; }

/* ════════════════════════════════════════
   VIEWS
════════════════════════════════════════ */
.lo-view {
  display: none; flex: 1;
  overflow-y: auto;
  padding: 20px;
  gap: 16px;
}
.lo-view.active { display: flex; flex-direction: column; }

/* ════════════════════════════════════════
   CARDS
════════════════════════════════════════ */
.lo-card {
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s;
}
.lo-card:hover { border-color: var(--border-m); }
.lo-card-header {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.lo-card-icon {
  width: 26px; height: 26px;
  border-radius: var(--radius-xs);
  background: var(--ink-5);
  border: 1px solid var(--border-m);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.lo-card-icon svg { width: 13px; height: 13px; stroke: var(--gray-5); fill: none; stroke-width: 2; stroke-linecap: round; }
.lo-card-title { font-size: 13px; font-weight: 600; color: var(--white-90); flex: 1; letter-spacing: -0.2px; }
.lo-card-sub { font-size: 11px; color: var(--gray-3); }

.lo-btn-icon {
  width: 26px; height: 26px;
  border-radius: var(--radius-xs);
  background: var(--white-04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px;
  color: var(--gray-4); font-weight: 400;
  transition: all .15s; flex-shrink: 0; line-height: 1;
}
.lo-btn-icon:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ════════════════════════════════════════
   LAYOUT GRIDS
════════════════════════════════════════ */
.lo-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.lo-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: start; }
.lo-grid-left { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
.lo-col { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .lo-grid-2, .lo-grid-3, .lo-grid-left { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════
   CLOCK WIDGET
════════════════════════════════════════ */
.lo-clock-wrap {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 20px;
}
.lo-clock-face {
  position: relative; width: 80px; height: 80px; flex-shrink: 0;
}
.lo-clock-svg { width: 80px; height: 80px; }
.lo-clock-info { flex: 1; }
.lo-clock-time {
  font-size: 34px; font-weight: 800;
  color: var(--white);
  font-family: var(--mono);
  letter-spacing: -2px;
  display: block; line-height: 1;
}
.lo-clock-date { font-size: 12px; color: var(--gray-4); margin-top: 5px; display: block; }
.lo-clock-greet { font-size: 12px; color: var(--gray-5); margin-top: 4px; display: block; font-weight: 500; }

/* ════════════════════════════════════════
   STATS ROW (Dashboard)
════════════════════════════════════════ */
.lo-stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.lo-stat {
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.lo-stat:last-child { border-right: none; }
.lo-stat-val { font-size: 22px; font-weight: 800; color: var(--white); font-family: var(--mono); display: block; letter-spacing: -1px; }
.lo-stat-lbl { font-size: 10.5px; color: var(--gray-4); display: block; margin-top: 2px; }

/* ════════════════════════════════════════
   MOOD STRIP
════════════════════════════════════════ */
.lo-mood-strip {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}
.lo-mood-lbl { font-size: 11px; color: var(--gray-3); white-space: nowrap; margin-right: 2px; }
.lo-mood-btn {
  width: 30px; height: 30px;
  border-radius: var(--radius-xs);
  background: var(--ink-5);
  border: 1px solid var(--border);
  cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif !important;
  -webkit-font-smoothing: auto !important;
  line-height: 1;
}
.lo-mood-btn:hover { background: var(--ink-6); border-color: var(--border-m); transform: scale(1.1); }
.lo-mood-btn.active { background: var(--white); border-color: var(--white); }
.lo-mood-saved { margin-left: auto; font-size: 11px; color: var(--gray-5); opacity: 0; transition: opacity .3s; }
.lo-mood-saved.show { opacity: 1; }

/* ════════════════════════════════════════
   PERIOD TABS
════════════════════════════════════════ */
.lo-period-tabs {
  display: flex; border-bottom: 1px solid var(--border);
}
.lo-period-tab {
  flex: 1; padding: 9px 8px;
  font-size: 12px; font-weight: 500; color: var(--gray-3);
  cursor: pointer; text-align: center;
  border-bottom: 2px solid transparent;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: color .15s, border-color .15s;
}
.lo-period-tab:hover { color: var(--gray-6); }
.lo-period-tab.active { color: var(--white); border-bottom-color: var(--white); }
.lo-tab-badge {
  font-size: 9.5px; font-family: var(--mono);
  background: var(--ink-6); color: var(--gray-4);
  border-radius: 99px; padding: 1px 5px; font-weight: 600;
}
.lo-period-tab.active .lo-tab-badge { background: var(--white); color: var(--black); }

/* ════════════════════════════════════════
   LIST / ITEMS
════════════════════════════════════════ */
.lo-list { list-style: none; }
.lo-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 14px;
  transition: background .13s;
  cursor: default;
}
.lo-item:hover { background: var(--white-04); }
.lo-item.done .lo-item-title { opacity: 0.35; text-decoration: line-through; }
.lo-drag { color: var(--gray-1); font-size: 11px; cursor: grab; flex-shrink: 0; user-select: none; }

.lo-check {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--gray-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer;
  transition: all .15s;
}
.lo-check:hover { border-color: var(--gray-5); }
.lo-check.checked { background: var(--white); border-color: var(--white); }
.lo-check.checked::after { content: ''; display: block; width: 8px; height: 5px; border-left: 1.8px solid var(--black); border-bottom: 1.8px solid var(--black); transform: rotate(-45deg) translateY(-1px); }

.lo-prio {
  width: 5px; height: 5px;
  border-radius: 50%; flex-shrink: 0;
}
.lo-prio.high { background: var(--white); }
.lo-prio.normal { background: var(--gray-4); }
.lo-prio.low { background: var(--gray-2); }

.lo-item-body { flex: 1; min-width: 0; }
.lo-item-title {
  font-size: 12.5px; color: var(--gray-7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}
.lo-item-meta { font-size: 10.5px; color: var(--gray-3); margin-top: 1px; display: block; }
.lo-item-tag {
  font-size: 9.5px; border-radius: 4px;
  padding: 2px 6px; font-weight: 600;
  background: var(--white); color: var(--black);
  font-family: var(--mono);
}
.lo-item-tag.normal { background: var(--ink-6); color: var(--gray-5); }
.lo-item-tag.low { background: var(--ink-5); color: var(--gray-3); }

.lo-item-actions { display: none; gap: 3px; }
.lo-item:hover .lo-item-actions { display: flex; }
.lo-act-btn {
  width: 22px; height: 22px;
  border-radius: var(--radius-xs);
  background: var(--ink-5);
  border: 1px solid var(--border);
  color: var(--gray-4); font-size: 10px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .13s;
}
.lo-act-btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.lo-act-btn.del:hover { background: var(--gray-1); color: var(--white); border-color: var(--gray-1); }

/* ════════════════════════════════════════
   ADD ROW (inline)
════════════════════════════════════════ */
.lo-add-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
}
.lo-add-plus {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.lo-add-input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 12.5px; color: var(--gray-6);
  font-family: var(--font);
}
.lo-add-input::placeholder { color: var(--gray-2); }
.lo-add-hint { font-size: 10px; color: var(--gray-2); font-family: var(--mono); flex-shrink: 0; }

/* ════════════════════════════════════════
   PROGRESS BAR
════════════════════════════════════════ */
.lo-progress-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 14px;
}
.lo-progress-track {
  flex: 1; height: 3px;
  background: var(--ink-6);
  border-radius: 99px; overflow: hidden;
}
.lo-progress-fill {
  height: 100%; background: var(--white);
  border-radius: 99px;
  transition: width .5s var(--ease);
}
.lo-progress-label { font-size: 11px; color: var(--gray-3); font-family: var(--mono); flex-shrink: 0; }

/* ════════════════════════════════════════
   GROUP HEADER
════════════════════════════════════════ */
.lo-group-hd {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--border);
}
.lo-group-hd span { font-size: 11px; font-weight: 600; color: var(--gray-4); flex: 1; text-transform: uppercase; letter-spacing: 0.6px; }
.lo-badge {
  font-size: 10px; font-family: var(--mono); font-weight: 600;
  background: var(--ink-6); color: var(--gray-4);
  border-radius: 99px; padding: 1px 6px;
}

/* Task filters */
.lo-filters {
  display: flex; gap: 4px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
}
.lo-filter {
  font-size: 11.5px; padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--ink-4); color: var(--gray-4);
  cursor: pointer; transition: all .13s;
  font-family: var(--font);
}
.lo-filter:hover { color: var(--gray-6); border-color: var(--border-m); }
.lo-filter.active { background: var(--white); color: var(--black); border-color: var(--white); }

/* ════════════════════════════════════════
   CALENDAR (compact)
════════════════════════════════════════ */
.lo-cal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.lo-cal-month { font-size: 13px; font-weight: 600; color: var(--white-90); }
.lo-cal-navs { display: flex; gap: 4px; }
.lo-cal-nav {
  width: 24px; height: 24px;
  border-radius: var(--radius-xs);
  background: var(--ink-5);
  border: 1px solid var(--border);
  cursor: pointer; color: var(--gray-4); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all .13s;
}
.lo-cal-nav:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.lo-cal-grid-wrap { padding: 10px 10px 6px; }
.lo-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.lo-cal-dow { font-size: 9.5px; color: var(--gray-2); text-align: center; padding: 3px 0; font-weight: 600; font-family: var(--mono); }
.lo-cal-day {
  min-height: 28px;
  border-radius: var(--radius-xs);
  display: flex; flex-direction: column;
  align-items: center; padding: 3px 1px; gap: 2px;
  cursor: pointer; position: relative;
  transition: background .13s;
}
.lo-cal-day:hover { background: var(--white-08); }
.lo-cal-day.other { opacity: 0.22; pointer-events: none; }
.lo-cal-num { font-size: 11px; font-weight: 500; color: var(--gray-5); line-height: 1; }
.lo-cal-day.today .lo-cal-num {
  background: var(--white); color: var(--black);
  border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.lo-cal-day.selected { background: var(--white-08); outline: 1px solid var(--border-act); }
.lo-cal-dots { display: flex; gap: 2px; justify-content: center; }
.lo-dot { width: 3.5px; height: 3.5px; border-radius: 50%; }
.lo-dot.task   { background: var(--white); }
.lo-dot.routine{ background: var(--gray-5); }
.lo-dot.tx     { background: var(--gray-3); }
.lo-dot.neg    { background: var(--gray-6); border: 1px solid var(--gray-3); }
.lo-cal-legends {
  display: flex; gap: 10px;
  padding: 6px 12px 10px;
  border-top: 1px solid var(--border);
}
.lo-cal-leg { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--gray-3); }

/* ════════════════════════════════════════
   DAY PANEL
════════════════════════════════════════ */
.lo-day-panel {
  border-top: 1px solid var(--border);
  animation: fadeUp .18s var(--ease);
}
@keyframes fadeUp { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
.lo-day-panel-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--border);
}
.lo-day-panel-title { font-size: 12px; font-weight: 600; color: var(--white-70); flex: 1; }
.lo-day-close {
  background: none; border: none; color: var(--gray-3);
  cursor: pointer; font-size: 16px; padding: 0 4px;
  transition: color .13s; line-height: 1;
}
.lo-day-close:hover { color: var(--white); }
.lo-day-sec-hd {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--ink-2);
}
.lo-day-sec-dot { width: 5px; height: 5px; border-radius: 50%; }
.lo-day-sec-dot.task    { background: var(--white); }
.lo-day-sec-dot.routine { background: var(--gray-5); }
.lo-day-sec-dot.tx      { background: var(--gray-4); }
.lo-day-sec-label { font-size: 11px; font-weight: 600; color: var(--gray-4); flex: 1; text-transform: uppercase; letter-spacing: 0.5px; }
.lo-day-sec-count { font-size: 10px; color: var(--gray-3); font-family: var(--mono); }
.lo-day-item { display: flex; align-items: center; gap: 8px; padding: 6px 14px; }
.lo-day-ico {
  width: 22px; height: 22px; border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
  background: var(--ink-5); border: 1px solid var(--border);
  color: var(--gray-5);
}
.lo-day-t { font-size: 12px; color: var(--gray-6); flex: 1; }
.lo-day-t.done { opacity: 0.35; text-decoration: line-through; }
.lo-day-val { font-size: 11px; font-family: var(--mono); color: var(--gray-5); }
.lo-day-empty { padding: 14px; text-align: center; font-size: 12px; color: var(--gray-3); }

/* ════════════════════════════════════════
   POMODORO TIMER
════════════════════════════════════════ */
.lo-timer-wrap {
  position: relative; width: 108px; height: 108px;
  margin: 16px auto;
}
.lo-timer-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.lo-ring-bg { fill: none; stroke: var(--ink-6); stroke-width: 5; }
.lo-ring-fg {
  fill: none; stroke: var(--white); stroke-width: 5;
  stroke-linecap: round;
  transform-origin: center; transform: rotate(-90deg);
  transition: stroke-dashoffset .5s var(--ease);
  stroke-dasharray: 339.3; stroke-dashoffset: 0;
}
.lo-ring-fg.break { stroke: var(--gray-6); }
.lo-timer-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.lo-timer-val { font-size: 22px; font-weight: 700; color: var(--white); font-family: var(--mono); letter-spacing: -1.5px; }
.lo-timer-lbl { font-size: 9.5px; color: var(--gray-3); font-family: var(--mono); }
.lo-pomo-mode-badge {
  font-size: 10.5px; font-weight: 600;
  background: var(--ink-5); color: var(--gray-5);
  border: 1px solid var(--border); border-radius: var(--radius-xs);
  padding: 3px 8px; font-family: var(--mono);
}
.lo-pomo-controls { display: flex; gap: 6px; justify-content: center; padding: 0 16px 10px; }
.lo-pomo-btn {
  flex: 1; padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-m);
  background: var(--ink-5); color: var(--gray-6);
  cursor: pointer; font-size: 12.5px; font-weight: 500;
  font-family: var(--font); transition: all .15s;
}
.lo-pomo-btn:hover { background: var(--ink-6); color: var(--white); }
.lo-pomo-btn.start { background: var(--white); border-color: var(--white); color: var(--black); }
.lo-pomo-btn.start:hover { background: var(--gray-8); }
.lo-pomo-btn.reset { flex: 0 0 36px; }
.lo-presets { display: flex; gap: 4px; justify-content: center; padding: 0 14px 12px; }
.lo-preset {
  padding: 4px 10px; border-radius: var(--radius-xs);
  border: 1px solid var(--border); background: var(--ink-4);
  color: var(--gray-3); cursor: pointer; font-size: 10.5px;
  font-family: var(--mono); transition: all .13s;
}
.lo-preset:hover { color: var(--gray-6); border-color: var(--border-m); }
.lo-preset.active { background: var(--white); border-color: var(--white); color: var(--black); font-weight: 600; }
.lo-pomo-count { text-align: center; font-size: 11.5px; color: var(--gray-3); padding-bottom: 14px; }
.lo-pomo-count strong { color: var(--white); font-size: 18px; font-family: var(--mono); font-weight: 700; }

/* ════════════════════════════════════════
   FINANCE KPIs
════════════════════════════════════════ */
.lo-kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
@media (max-width:900px) { .lo-kpi-row { grid-template-columns: repeat(2,1fr); } }
.lo-kpi {
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  transition: border-color .2s;
}
.lo-kpi:hover { border-color: var(--border-m); }
.lo-kpi-label { font-size: 11px; color: var(--gray-3); display: block; margin-bottom: 7px; }
.lo-kpi-val { font-size: 20px; font-weight: 800; color: var(--white); display: block; margin-bottom: 5px; font-family: var(--mono); letter-spacing: -1px; }
.lo-kpi-sub { font-size: 11px; color: var(--gray-3); }
.lo-kpi-sub.pos { color: var(--gray-6); }
.lo-kpi-sub.neg { color: var(--gray-3); }

/* ════════════════════════════════════════
   TRANSACTIONS
════════════════════════════════════════ */
.lo-fin-tabs { display: flex; border-bottom: 1px solid var(--border); }
.lo-fin-tab {
  flex: 1; padding: 9px 6px;
  font-size: 11.5px; font-weight: 500;
  color: var(--gray-3); cursor: pointer;
  text-align: center; border-bottom: 2px solid transparent;
  transition: all .13s;
}
.lo-fin-tab:hover { color: var(--gray-6); }
.lo-fin-tab.active { color: var(--white); border-bottom-color: var(--white); }

.lo-tx-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  transition: background .13s;
}
.lo-tx-item:hover { background: var(--white-04); }
.lo-tx-icon {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--ink-5); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.lo-tx-body { flex: 1; min-width: 0; }
.lo-tx-title { font-size: 12.5px; color: var(--gray-6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-tx-meta { font-size: 10.5px; color: var(--gray-3); margin-top: 1px; }
.lo-tx-val { font-size: 12.5px; font-family: var(--mono); font-weight: 600; flex-shrink: 0; }
.lo-tx-val.plus { color: var(--white); }
.lo-tx-val.minus { color: var(--gray-5); }
.lo-tx-edit-btn {
  opacity: 0; width: 22px; height: 22px;
  border-radius: var(--radius-xs);
  background: var(--ink-5); border: 1px solid var(--border);
  color: var(--gray-4); font-size: 10px; cursor: pointer;
  transition: all .13s; display: flex; align-items: center; justify-content: center;
}
.lo-tx-item:hover .lo-tx-edit-btn { opacity: 1; }
.lo-tx-edit-btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ════════════════════════════════════════
   BUDGET BARS
════════════════════════════════════════ */
.lo-budget-item { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.lo-budget-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lo-budget-cat { display: flex; align-items: center; gap: 7px; }
.lo-budget-dot { width: 7px; height: 7px; border-radius: 50%; }
.lo-budget-name { font-size: 12.5px; color: var(--gray-6); }
.lo-budget-vals { font-size: 11px; color: var(--gray-3); font-family: var(--mono); }
.lo-budget-track { height: 3px; background: var(--ink-6); border-radius: 99px; overflow: hidden; }
.lo-budget-fill { height: 100%; border-radius: 99px; transition: width .5s var(--ease); }

/* ════════════════════════════════════════
   METAS
════════════════════════════════════════ */
.lo-meta-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .13s;
}
.lo-meta-item:hover { background: var(--white-04); }
.lo-meta-icon { font-size: 20px; width: 32px; text-align: center; flex-shrink: 0; }
.lo-meta-body { flex: 1; min-width: 0; }
.lo-meta-title { font-size: 12.5px; color: var(--gray-6); font-weight: 500; }
.lo-meta-sub { font-size: 10.5px; color: var(--gray-3); margin-bottom: 5px; }
.lo-meta-track { height: 3px; background: var(--ink-6); border-radius: 99px; overflow: hidden; }
.lo-meta-fill { height: 100%; background: var(--white); border-radius: 99px; }
.lo-meta-pct { font-size: 12px; font-family: var(--mono); font-weight: 700; color: var(--gray-5); }

/* ════════════════════════════════════════
   CHART
════════════════════════════════════════ */
.lo-chart-wrap { padding: 12px 14px 6px; }
.lo-chart-svg { width: 100%; height: 80px; display: block; overflow: visible; }
.lo-chart-labels { display: flex; padding: 2px 0 8px; }
.lo-chart-lbl { flex: 1; text-align: center; font-size: 9px; color: var(--gray-2); font-family: var(--mono); }
.lo-chart-tabs { display: flex; gap: 4px; }
.lo-chart-tab {
  font-size: 10.5px; padding: 4px 8px;
  border-radius: var(--radius-xs); border: 1px solid var(--border);
  background: var(--ink-4); color: var(--gray-3);
  cursor: pointer; font-family: var(--mono); transition: all .13s;
}
.lo-chart-tab:hover { color: var(--gray-5); }
.lo-chart-tab.active { background: var(--white); border-color: var(--white); color: var(--black); font-weight: 600; }

/* ════════════════════════════════════════
   NOTES
════════════════════════════════════════ */
.lo-note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 14px; }
.lo-note-card {
  background: var(--ink-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: all .15s;
  min-height: 90px;
  position: relative;
}
.lo-note-card:hover { background: var(--ink-5); border-color: var(--border-m); }
.lo-note-card.pinned { border-color: var(--border-act); }
.lo-note-title { font-size: 12.5px; font-weight: 600; color: var(--white-90); margin-bottom: 5px; }
.lo-note-preview { font-size: 11.5px; color: var(--gray-4); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lo-note-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.lo-note-date { font-size: 9.5px; color: var(--gray-2); font-family: var(--mono); }
.lo-note-pin { font-size: 11px; color: var(--gray-3); }
.lo-note-card.pinned .lo-note-pin { color: var(--white); }

/* Note editor */
.lo-note-editor { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lo-note-editor-title {
  background: none; border: none; outline: none;
  font-size: 16px; font-weight: 700; color: var(--white);
  font-family: var(--font); width: 100%;
  border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.lo-note-editor-body {
  background: none; border: none; outline: none;
  font-size: 13px; color: var(--gray-5); line-height: 1.7;
  font-family: var(--font); width: 100%;
  resize: none; min-height: 200px;
}
.lo-note-editor-title::placeholder,
.lo-note-editor-body::placeholder { color: var(--gray-2); }

/* ════════════════════════════════════════
   MOOD VIEW
════════════════════════════════════════ */
.lo-mood-big { display: flex; gap: 8px; padding: 16px; flex-wrap: wrap; }
.lo-mood-big .lo-mood-btn { width: 44px; height: 44px; font-size: 22px; border-radius: var(--radius-sm); font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif !important; -webkit-font-smoothing: auto !important; }
.lo-mood-note {
  background: var(--ink-4); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 12.5px; color: var(--gray-5); font-family: var(--font);
  outline: none; width: calc(100% - 32px); height: 72px;
  resize: none; margin: 0 16px 12px; display: block;
  transition: border-color .15s;
}
.lo-mood-note:focus { border-color: var(--border-act); }

/* ════════════════════════════════════════
   SETTINGS
════════════════════════════════════════ */
.lo-settings-block {
  margin: 0 16px 12px;
  background: var(--ink-4); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}
.lo-settings-block:first-child { margin-top: 14px; }
.lo-settings-title { font-size: 13px; font-weight: 600; color: var(--white-90); margin-bottom: 4px; }
.lo-settings-sub { font-size: 12px; color: var(--gray-3); line-height: 1.5; }
.lo-settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.lo-settings-row:last-child { border-bottom: none; padding-bottom: 0; }
.lo-settings-row-label { font-size: 12.5px; color: var(--gray-6); }
.lo-settings-row-val { font-size: 12px; color: var(--gray-4); font-family: var(--mono); }

/* Toggle switch */
.lo-toggle {
  width: 36px; height: 20px;
  background: var(--ink-6); border: 1px solid var(--border-m);
  border-radius: 99px; cursor: pointer;
  position: relative; transition: background .2s;
}
.lo-toggle::after {
  content: ''; position: absolute;
  width: 14px; height: 14px;
  background: var(--gray-4); border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform .2s, background .2s;
}
.lo-toggle.on { background: var(--white); border-color: var(--white); }
.lo-toggle.on::after { transform: translateX(16px); background: var(--black); }

/* ════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════ */
.lo-empty {
  padding: 20px; text-align: center;
  color: var(--gray-3); font-size: 12px; line-height: 1.6;
}
.lo-empty-icon { font-size: 22px; display: block; margin-bottom: 6px; opacity: 0.5; }

/* ════════════════════════════════════════
   MODALS
════════════════════════════════════════ */
.lo-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 50;
  backdrop-filter: blur(6px) saturate(0.5);
  display: none;
}
.lo-overlay.show { display: block; }

.lo-modal {
  position: fixed; inset: 0; z-index: 55;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.lo-modal-box {
  background: var(--ink-3);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-lg);
  padding: 24px; width: 420px; max-width: 94vw;
  pointer-events: all;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.04);
  display: none; flex-direction: column; gap: 16px;
  animation: modalUp .2s var(--ease);
}
@keyframes modalUp { from { opacity:0; transform:translateY(10px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
.lo-modal-box.open { display: flex; }
.lo-modal-title {
  font-size: 15px; font-weight: 700; color: var(--white);
  letter-spacing: -0.3px;
}
.lo-modal-divider { height: 1px; background: var(--border); margin: 0 -24px; }
.lo-field { display: flex; flex-direction: column; gap: 5px; }
.lo-field label { font-size: 11.5px; color: var(--gray-3); font-weight: 500; }
.lo-field input,
.lo-field select,
.lo-field textarea {
  background: var(--ink-4);
  border: 1px solid var(--border-m);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px; color: var(--gray-7);
  font-family: var(--font); outline: none;
  transition: border-color .15s, background .15s;
  width: 100%;
}
.lo-field input:focus,
.lo-field select:focus,
.lo-field textarea:focus {
  border-color: var(--border-act);
  background: var(--ink-5);
}
.lo-field select { cursor: pointer; }
.lo-field textarea { resize: none; height: 72px; }
.lo-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lo-modal-actions { display: flex; gap: 8px; margin-top: 4px; }
.lo-btn {
  padding: 9px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-m);
  font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: var(--font);
  transition: all .15s;
}
.lo-btn-ghost { background: var(--ink-5); color: var(--gray-4); }
.lo-btn-ghost:hover { background: var(--ink-6); color: var(--gray-7); }
.lo-btn-primary { background: var(--white); border-color: var(--white); color: var(--black); margin-left: auto; font-weight: 600; }
.lo-btn-primary:hover { background: var(--gray-8); }
.lo-btn-danger { background: var(--ink-5); border-color: var(--gray-1); color: var(--gray-6); }
.lo-btn-danger:hover { background: var(--gray-1); color: var(--white); border-color: var(--gray-1); }

/* ════════════════════════════════════════
   FOCUS VIEW ELEMENTS
════════════════════════════════════════ */
.lo-focus-input {
  background: var(--ink-4); border: 1px solid var(--border-m);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 13px; color: var(--gray-6); font-family: var(--font);
  outline: none; width: calc(100% - 32px);
  margin: 12px 16px; display: block;
  transition: border-color .15s;
}
.lo-focus-input:focus { border-color: var(--border-act); }

.lo-sess-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-bottom: 1px solid var(--border);
}
.lo-sess-ico {
  width: 28px; height: 28px; border-radius: var(--radius-xs);
  background: var(--ink-5); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.lo-sess-body { flex: 1; }
.lo-sess-t { font-size: 12px; color: var(--gray-6); font-weight: 500; }
.lo-sess-sub { font-size: 10.5px; color: var(--gray-3); margin-top: 1px; }
.lo-sess-badge { font-size: 11px; color: var(--gray-5); font-family: var(--mono); font-weight: 600; }

/* ════════════════════════════════════════
   LOGIN NOTICE
════════════════════════════════════════ */
.lo-login-notice {
  font-size: 14px; color: var(--gray-5);
  padding: 40px; text-align: center;
}
.lo-login-notice a { color: var(--white); }


/* ─── Página de Login ────────────────────────────────────────────────── */
.lo-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.lo-login-box {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.lo-login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.lo-login-logo-mark {
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 13px;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -.5px;
}
.lo-login-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.lo-login-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.lo-login-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 28px;
}
.lo-login-field {
  margin-bottom: 14px;
}
.lo-login-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
}
.lo-login-field input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}
.lo-login-field input:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.07);
}
.lo-login-btn {
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity .15s, transform .1s;
}
.lo-login-btn:hover { opacity: .88; }
.lo-login-btn:active { transform: scale(.98); }
.lo-login-error {
  color: #ff6060;
  font-size: 12px;
  margin-top: 12px;
  text-align: center;
  min-height: 18px;
}

/* ══════════════════════════════════════
   EMOJI RENDERING FIX
══════════════════════════════════════ */
/* Força renderização de emojis em todos os elementos que os usam */
.lo-mood-btn,
.lo-mood-btn *,
.lo-period-tab,
.lo-card-icon,
.lo-cal-mood,
.lo-empty-icon,
.lo-day-ico,
.lo-nav-label,
.lo-item-meta,
.lo-routine-list .lo-item-title {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", 'Geist', -apple-system, sans-serif !important;
  -webkit-font-smoothing: auto !important;
  -moz-osx-font-smoothing: auto !important;
}

/* Emoji de humor no calendário */
.lo-cal-mood {
  display: block;
  font-size: 11px;
  line-height: 1;
  text-align: center;
  margin: 1px 0 1px;
}

/* Célula do calendário com humor precisa de mais altura */
.lo-cal-day {
  min-height: 36px !important;
}

/* ════════════════════════════════════════
   MOBILE RESPONSIVE (< 768px)
════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Dock pill neumorphism ── */
  .lo-sidebar {
    position: fixed;
    bottom: 16px;
    left: 12px;
    right: 12px;
    top: auto;
    width: auto !important;
    min-width: unset !important;
    height: 68px;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 8px 6px;
    border-right: none;
    border-top: none;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    background: #1a1a1e !important;
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.05) inset;
    z-index: 100;
    overflow: hidden;
    gap: 0;
    transform: none;
    left: 12px;
  }
  .lo-sidebar:hover {
    width: auto !important;
    min-width: unset !important;
    height: 68px;
  }
  .lo-logo { display: none; }
  .lo-nav-section { display: none !important; }
  .lo-sidebar-spacer { display: none !important; }
  .lo-sidebar-div { display: none !important; }
  .lo-sidebar-user {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 16px;
    min-width: 44px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lo-sidebar-user .lo-user-avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 10px !important;
  }
  .lo-user-info { display: none !important; }
  .lo-nav {
    flex-direction: column;
    gap: 3px;
    padding: 6px 8px;
    min-height: 50px;
    flex: 1;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    border: none;
    color: rgba(255,255,255,0.35);
    background: transparent;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
    width: auto;
    white-space: nowrap;
    overflow: visible;
  }
  .lo-nav:active { transform: scale(0.88); }
  .lo-nav svg { width: 19px; height: 19px; flex-shrink: 0; }
  .lo-nav-label {
    font-size: 8.5px;
    font-weight: 500;
    opacity: 1 !important;
    text-align: center;
    letter-spacing: 0.01em;
    color: inherit;
  }
  .lo-nav-badge { display: none; }
  .lo-nav.active {
    color: rgba(255,255,255,0.95);
    background: #2c2c34;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.6), -1px -1px 4px rgba(255,255,255,0.05), 0 0 0 1px rgba(255,255,255,0.07) inset;
  }
  .lo-nav.active svg { filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); }

  /* Botão Mais */
  #lo-more-btn { flex: 1; }
  #lo-more-btn.active { background: #2c2c34; color: rgba(255,255,255,0.95); }

  .lo-main {
    padding-bottom: 100px;
  }

  /* Topbar menor */
  .lo-topbar {
    padding: 0 12px;
    height: 44px;
    min-height: 44px;
  }
  .lo-topbar-date { display: none; }
  .lo-breadcrumb { font-size: 11.5px; }

  /* Views com padding mobile */
  .lo-view { padding: 12px 10px; }

  /* Grids viram coluna única */
  .lo-grid-2,
  .lo-grid-3,
  .lo-grid-left {
    grid-template-columns: 1fr !important;
  }

  /* Clock menor */
  .lo-clock-wrap { padding: 14px 16px; gap: 14px; }
  .lo-clock-face { width: 60px; height: 60px; }
  .lo-clock-svg { width: 60px; height: 60px; }
  .lo-clock-time { font-size: 26px; }

  /* Stats row 3 cols mantém no mobile */
  .lo-stats-row { grid-template-columns: repeat(3,1fr); }
  .lo-stat-val { font-size: 18px; }

  /* Modais full width */
  .lo-modal-box {
    width: 96vw;
    max-width: 96vw;
    padding: 20px 16px;
    margin: 0 2vw;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Finance KPIs 2x2 */
  .fin-kpi-row { grid-template-columns: repeat(2,1fr) !important; }
  .fin-main-grid { grid-template-columns: 1fr !important; }

  /* Notas grid 1 col */
  .lo-note-grid { grid-template-columns: 1fr 1fr; }

  /* Calendar full width */
  .lo-cal-grid-wrap { padding: 6px 4px; }
  .lo-cal-day { min-height: 32px !important; }
  .lo-cal-num { font-size: 10px; }

  /* Pomodoro timer menor */
  .lo-timer-wrap { width: 90px; height: 90px; }
  .lo-timer-val { font-size: 20px; }

  /* Mood buttons maiores no touch */
  .lo-mood-btn { width: 38px; height: 38px; }
  .lo-mood-big .lo-mood-btn { width: 48px; height: 48px; }

  /* Overflow horizontal para tabelas finance */
  #view-finance .fin-card { overflow-x: auto; }

  /* Período tabs menores */
  .lo-period-tab { font-size: 11px; padding: 8px 4px; }
}

/* Tablets (768–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .lo-sidebar { width: var(--sidebar-w); min-width: var(--sidebar-w); }
  .lo-grid-left { grid-template-columns: 1fr 1fr; }
  .lo-grid-3 { grid-template-columns: 1fr 1fr; }
  .fin-kpi-row { grid-template-columns: repeat(2,1fr); }
  .lo-view { padding: 16px; }
}

/* Touch device — aumenta áreas de toque */
@media (hover: none) and (pointer: coarse) {
  .lo-item { min-height: 44px; }
  .lo-check { width: 20px; height: 20px; border-radius: 5px; }
  .lo-act-btn { width: 28px; height: 28px; }
  .lo-nav { min-height: 44px; }
  .lo-btn { padding: 11px 18px; }
  .lo-add-input { font-size: 16px; } /* evita zoom no iOS */
  .lo-field input,
  .lo-field select,
  .lo-field textarea { font-size: 16px; } /* evita zoom no iOS */
}
