/* ===== DESIGN SYSTEM — Terminal Luxe ===== */
:root {
  --bb-bg: #0b0b0b;
  --bb-bg-card: #111111;
  --bb-bg-card2: #161616;
  --bb-bg-raised: #1a1a1a;
  --bb-border: #1d1d1d;
  --bb-border-mid: #252525;
  --bb-border-strong: #1d1d1d;
  --bb-text: #eae8e3;
  --bb-text-2: #b0ada6;
  --bb-text-muted: #686560;
  --bb-text-dim: #3d3b38;
  --bb-accent: #5a73e8;
  --bb-amber: #c88b1a;
  --bb-green: #3fcf7e;
  --bb-red: #f87171;
  --bb-font-ui: 'Space Mono', 'Fira Code', 'Consolas', monospace;
  --bb-font-mono: 'Space Mono', 'Fira Code', 'Consolas', monospace;
  /* Global fallbacks for the canonical PageHeader bar (short tokens were page-scoped only) */
  --amber: #f59e0b;
  --sb: #0b0b0b;
  --ink2: #686560;
  --muted: #686560;
}

/* ===== BASE STYLES ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Space Mono', 'Fira Code', 'Consolas', monospace; background: #0b0b0b; color: #e8e8e6; font-size: 13px; height: 100vh; overflow: hidden; }
/* ── Grão de filme global removido (2026-06-23) — textura agora só na scanline do .prf-panel-body ── */
.app { display: flex; height: 100vh; }

.sidebar { width: 220px; background: #1f1f1f; border-right: 1px solid #1d1d1d; flex-shrink: 0; display: flex; flex-direction: column; padding: 8px 0; overflow-y: auto; }
.sidebar-workspace { display: flex; align-items: center; gap: 8px; padding: 6px 12px 10px; font-weight: 600; font-size: 13px; }
.workspace-icon { width: 20px; height: 20px; background: #5a73e8; border-radius:0; display:flex;align-items:center;justify-content:center;font-size:10px;flex-shrink:0; }
.sidebar-item { display: flex; align-items: center; gap: 7px; padding: 4px 12px; color: #9b9b9b; font-size: 13px; cursor: pointer; border-radius:0; margin: 0 4px; }
.sidebar-item:hover, .sidebar-item.active { background: #1d1d1d; color: #e8e8e6; }
.sidebar-section { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #888; padding: 12px 12px 4px; }
.sidebar-divider { border: none; border-top: 1px solid #1d1d1d; margin: 6px 0; }

.main { flex: 1; overflow-y: auto; background: #191919; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; border-bottom: 1px solid #2a2a2a; position: sticky; top: 0; background: #191919; z-index: 10; }
.toolbar-left { display: flex; align-items: center; gap: 8px; }
.toolbar-right { display: flex; align-items: center; gap: 8px; }
.toolbar-btn { font-size: 11px; color: #666; padding: 3px 8px; border: 1px solid #1d1d1d; border-radius:0; cursor: pointer; background: #141210; }
.toolbar-btn:hover { color: #e8e8e6; border-color: #777; }
.toolbar-btn.active { color: #e8e8e6; border-color: #777; }

.page-content { max-width: 900px; margin: 0 auto; padding: 32px 60px 80px; }
.p-agenda .page-content { max-width: 1400px; padding-left: 20px; padding-right: 20px; }
.page-icon { font-size: 40px; margin-bottom: 8px; }
.page-title { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.page-subtitle { font-size: 13px; color: #888; margin-bottom: 24px; }
.page-meta { font-size: 13px; color: #888; margin-bottom: 24px; }

.tag { padding: 2px 6px; border-radius:0; font-size: 9px; font-weight: 500; white-space: nowrap; }

/* ===== DRAWER ===== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40; }
.drawer-panel { position: fixed; right: 0; top: 50px; bottom: 0; height: auto; width: 360px; background: #111111; border-left: 2px solid #1d1d1d; z-index: 41; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; --dp-card:#141210; --dp-line:#2a2a2a; --dp-track:#1d1d1d; --dp-text:#e8e8e6; --dp-strong:#3a352e; }
/* Drawer global de projeto/cliente usa estilos inline → tema via vars --dp-*; light quando o app não está em dark */
body:not(.dark) .drawer-panel { --dp-card:#f0ece4; --dp-line:#d8d2c6; --dp-track:#d8d2c6; --dp-text:#111111; --dp-strong:#111111; }
.drawer-panel.open { transform: translateX(0); }
.drawer-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: #686560; font-size: 20px; cursor: pointer; }
.drawer-close:hover { color: #eae8e3; }
.drawer-backbar { padding: 8px 14px; background: #1a1a1a; color: #b8b1a4; font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; border-bottom: 1px solid #2a2520; }
.drawer-backbar:hover { color: #fff; background: #222; }
.drawer-content { padding: 48px 24px 32px; }
.drawer-type-badge { font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #c88b1a; margin-bottom: 12px; }
.drawer-title { font-size: 18px; font-weight: 700; color: #eae8e3; margin-bottom: 20px; line-height: 1.3; }
.drawer-avatar { width: 48px; height: 48px; background: #1d1d1d; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #eae8e3; margin-bottom: 12px; }
.drawer-field { display: flex; justify-content: space-between; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #1d1d1d; gap: 16px; }
.df-label { font-family: 'Space Mono', monospace; font-size: 9px; color: #686560; text-transform: uppercase; letter-spacing: .07em; flex-shrink: 0; }
.df-value { font-size: 12px; color: #eae8e3; text-align: right; }
.df-link { font-size: 12px; color: #c88b1a; text-decoration: none; text-align: right; word-break: break-all; }
.drawer-body { margin-top: 16px; font-size: 13px; color: #686560; line-height: 1.6; }
.drawer-action { margin-top: 20px; width: 100%; padding: 10px; background: #1d1d1d; border: 1px solid #2a2a2a; border-radius: 0; color: #eae8e3; font-size: 12px; font-family: 'Space Mono', monospace; cursor: pointer; }
.drawer-action:hover { background: #222; }
.drawer-amber-header { background: #c88b1a; padding: 10px 16px; display: flex; align-items: center; margin: -48px -24px 0; }
.drawer-type-label { font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; color: #0b0b0b; text-transform: uppercase; letter-spacing: .1em; }
.drawer-panel:has(.drawer-amber-header) .drawer-close { color: #5a3a00; }
.drawer-panel:has(.drawer-amber-header) .drawer-close:hover { color: #0b0b0b; }
.drawer-section-label { font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; color: #c88b1a; text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid #1d1d1d; padding-bottom: 4px; margin: 16px 0 8px; }
.drawer-title-zone { padding: 12px 0; border-bottom: 1px solid #1d1d1d; margin-bottom: 0; }

/* ===== PAGE: agenda ===== */
.p-agenda .today-section { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-bottom: 28px; }
.p-agenda .today-head { font-size: 14px; font-weight: 700; color: #e8e8e6; margin-bottom: 3px; }
.p-agenda .today-sub { font-size: 11px; color: #888; margin-bottom: 14px; }
.p-agenda .timeline-item { display: flex; gap: 8px; margin-bottom: 7px; align-items: flex-start; }
.p-agenda .t-time { font-size: 10px; color: #777; min-width: 32px; padding-top: 3px; text-align: right; }
.p-agenda .t-block { flex: 1; border-radius:0; padding: 7px 10px; }
.p-agenda .t-block.event { background: #0f2240; border-left: 3px solid #60a5fa; }
.p-agenda .t-block.prio { background: #2a1500; border-left: 3px solid #fb923c; }
.p-agenda .t-block.task { background: #0a2419; border-left: 3px solid #4ade80; }
.p-agenda .t-title { font-size: 11px; color: #ccc; line-height: 1.3; }
.p-agenda .t-meta { font-size: 9px; color: #888; margin-top: 2px; }
.p-agenda .divider-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #777; margin: 12px 0 8px; display: flex; align-items: center; gap: 8px; }
.p-agenda .divider-label::after { content:''; flex:1; height:1px; background:#222; }
.p-agenda .task-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #1e1e1e; }
.p-agenda .task-row:last-child { border-bottom: none; }
.p-agenda .check { width: 13px; height: 13px; border: 1.5px solid #333; border-radius:0; flex-shrink: 0; }
.p-agenda .check.done { background: #4ade80; border-color: #4ade80; }
.p-agenda .task-name { font-size: 11px; color: #ccc; flex: 1; }
.p-agenda .task-name.done { text-decoration: line-through; color: #777; }
.p-agenda .tag { padding: 2px 6px; border-radius:0; font-size: 9px; font-weight: 500; white-space: nowrap; }
.p-agenda .tag-prio { background: #2a1500; color: #fb923c; }
.p-agenda .tag-normal { background: #0a2419; color: #4ade80; }
.p-agenda .tag-event { background: #0f2e4a; color: #60a5fa; }
.p-agenda .week-strip-head { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; margin-bottom: 8px; }
.p-agenda .week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 16px; }
.p-agenda .strip-day { text-align: center; padding: 6px 2px; border-radius:0; }
.p-agenda .strip-day.today { background: #1a1a2e; border: 1px solid #3d3d7a; }
.p-agenda .strip-lbl { font-size: 7px; color: #777; text-transform: uppercase; }
.p-agenda .strip-num { font-size: 11px; font-weight: 600; color: #666; margin: 2px 0; }
.p-agenda .strip-day.today .strip-num { color: #818cf8; }
.p-agenda .strip-dots { display: flex; justify-content: center; gap: 2px; min-height: 6px; }
.p-agenda .sdot { width: 4px; height: 4px; border-radius: 50%; }
.p-agenda .upcoming-head { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; margin-bottom: 8px; }
.p-agenda .up-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #1e1e1e; }
.p-agenda .up-item:last-child { border-bottom: none; }
.p-agenda .up-date { font-size: 10px; color: #777; min-width: 40px; }
.p-agenda .up-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.p-agenda .up-name { font-size: 11px; color: #888; flex: 1; }
.p-agenda .cal-section { padding-top: 8px; }
.p-agenda .cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; position: sticky; top: 41px; z-index: 9; background: #191919; padding: 8px 0; }
.p-agenda .cal-title { font-size: 14px; font-weight: 700; color: #e8e8e6; }
.p-agenda .cal-nav { display: flex; align-items: center; gap: 8px; }
.p-agenda .cal-nav-btn { font-size: 11px; color: #888; padding: 3px 9px; border: 1px solid #2a2a2a; border-radius:0; cursor: pointer; }
.p-agenda .cal-tabs { display: flex; gap: 4px; }
.p-agenda .cal-tab { font-size: 11px; padding: 3px 10px; border-radius:0; cursor: pointer; color: #888; border: 1px solid transparent; }
.p-agenda .cal-tab.active { background: #1d1d1d; color: #e8e8e6; border-color: #3f3f3f; }
/* Calendar — Google Calendar light theme */
.p-agenda .wv-container { background: #fff; border: 1px solid #dadce0; border-radius:0; overflow: hidden; color: #3c4043; }
.p-agenda .wv-header-row { display: flex; background: #f1f3f4; border-bottom: 1px solid #dadce0; }
.p-agenda .wv-corner { width: 48px; flex-shrink: 0; border-right: 1px solid #dadce0; }
.p-agenda .wv-day-head { flex: 1; padding: 8px 4px; text-align: center; border-left: 1px solid #dadce0; }
.p-agenda .wv-day-head.single { flex: 1; }
.p-agenda .wv-dh-lbl { font-size: 9px; color: #70757a; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.p-agenda .wv-dh-num { font-size: 14px; font-weight: 500; color: #3c4043; margin-top: 3px; }
.p-agenda .wv-day-head.today .wv-dh-num { color: #fff; background: #1a73e8; border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; margin: 2px auto 0; font-weight: 700; }
.p-agenda .wv-allday-row { display: flex; border-bottom: 2px solid #dadce0; background: #f8f9fa; min-height: 26px; }
.p-agenda .wv-allday-label { width: 48px; flex-shrink: 0; font-size: 8px; color: #70757a; text-align: center; padding: 4px 2px; line-height: 1.4; display: flex; align-items: center; justify-content: center; border-right: 1px solid #dadce0; }
.p-agenda .wv-allday-cell { flex: 1; min-width: 0; border-left: 1px solid #dadce0; padding: 2px 3px; min-height: 26px; overflow: hidden; }
.p-agenda .wv-allday-cell.single { flex: 1; }
.p-agenda .wv-allday-cell.today { background: #e8f0fe55; }
.p-agenda .wv-allday-pill { font-size: 9px; font-weight: 500; padding: 1px 6px; border-radius:0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; margin-bottom: 2px; }
.p-agenda .wv-allday-pill.task { border: 1px solid; background: transparent !important; }
.p-agenda .wv-allday-pill.done { opacity: 0.45; text-decoration: line-through; }
.p-agenda .wv-scroll { max-height: 560px; overflow-y: auto; }
.p-agenda .wv-body { display: flex; }
.p-agenda .wv-time-gutter { width: 48px; flex-shrink: 0; position: relative; background: #fff; border-right: 1px solid #dadce0; }
.p-agenda .wv-time-label { position: absolute; right: 6px; font-size: 9px; color: #70757a; transform: translateY(-50%); white-space: nowrap; }
.p-agenda .wv-days { flex: 1; display: flex; overflow-x: auto; }
.p-agenda .wv-day-col { flex: 1; min-width: 80px; position: relative; border-left: 1px solid #dadce0; background: #fff; }
.p-agenda .wv-day-col.today { background: #fafbff; }
.p-agenda .wv-hour-line { position: absolute; left: 0; right: 0; border-top: 1px solid #e8eaed; pointer-events: none; }
.p-agenda .wv-half-line { position: absolute; left: 0; right: 0; border-top: 1px solid #f1f3f4; pointer-events: none; }
.p-agenda .wv-event-block { position: absolute; left: 2px; right: 2px; border-radius:0; padding: 3px 6px; cursor: pointer; overflow: hidden; box-sizing: border-box; z-index: 2; font-size: 11px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.p-agenda .wv-event-block:hover { filter: brightness(0.93); }
.p-agenda .wv-task-block { border: 1.5px dashed; border-radius:0; background: transparent !important; }
.p-agenda .wv-task-block.done { opacity: 0.4; text-decoration: line-through; }
.p-agenda .wv-block-time { font-size: 9px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 1px; }
.p-agenda .wv-block-title { font-size: 10px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Month view — GCal light */
.p-agenda .cal-month-cell { background: #fff; border-right: 1px solid #dadce0; border-bottom: 1px solid #dadce0; padding: 4px; min-height: 72px; }
.p-agenda .cal-month-cell.today { background: #f8f9ff; }
.p-agenda .cal-month-cell.other-month .cal-month-num { color: #bdc1c6; }
.p-agenda .cal-month-num { font-size: 11px; font-weight: 500; color: #3c4043; margin-bottom: 3px; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.p-agenda .cal-month-num.today { background: #1a73e8; color: #fff; border-radius: 50%; font-weight: 700; }
.p-agenda .cal-month-pill { font-size: 9px; font-weight: 500; padding: 1px 5px; border-radius:0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; margin-bottom: 2px; display: block; }
.p-agenda .cal-month-pill.task { border: 1px solid; background: transparent !important; }
.p-agenda .cal-month-pill.done { opacity: 0.4; text-decoration: line-through; }
/* Dark mode overrides */
.p-agenda .wv-container.dark { background: #202124; border-color: #3c4043; color: #e8eaed; }
.p-agenda .wv-container.dark .wv-header-row { background: #292929; border-color: #3c4043; }
.p-agenda .wv-container.dark .wv-corner { border-color: #3c4043; }
.p-agenda .wv-container.dark .wv-day-head { border-color: #3c4043; }
.p-agenda .wv-container.dark .wv-dh-lbl { color: #9aa0a6; }
.p-agenda .wv-container.dark .wv-dh-num { color: #e8eaed; }
.p-agenda .wv-container.dark .wv-allday-row { background: #1e1e1e; border-color: #3c4043; }
.p-agenda .wv-container.dark .wv-allday-label { color: #9aa0a6; border-color: #3c4043; }
.p-agenda .wv-container.dark .wv-allday-cell { border-color: #3c4043; }
.p-agenda .wv-container.dark .wv-allday-cell.today { background: #1a1d2e55; }
.p-agenda .wv-container.dark .wv-time-gutter { background: #1f1f1f; border-color: #3c4043; }
.p-agenda .wv-container.dark .wv-time-label { color: #9aa0a6; }
.p-agenda .wv-container.dark .wv-day-col { background: #202124; border-color: #3c4043; }
.p-agenda .wv-container.dark .wv-day-col.today { background: #1a1d2e; }
.p-agenda .wv-container.dark .wv-hour-line { border-color: #3c4043; }
.p-agenda .wv-container.dark .wv-half-line { border-color: #292929; }
.p-agenda .wv-container.dark .cal-month-cell { background: #202124; border-color: #3c4043; }
.p-agenda .wv-container.dark .cal-month-cell.today { background: #1a1d2e; }
.p-agenda .wv-container.dark .cal-month-num { color: #e8eaed; }
.p-agenda .wv-container.dark .cal-month-cell.other-month .cal-month-num { color: #5f6368; }
.p-agenda .cal-month-cell { background: #141414; border: 1px solid #222; border-radius:0; padding: 5px; min-height: 60px; }
.p-agenda .cal-month-cell.today { background: #15152a; border-color: #3a3a5c; }
.p-agenda .cal-month-cell.other-month { opacity: 0.4; }
.p-agenda .cal-month-pill { font-size: 8px; padding: 1px 4px; border-radius:0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; margin-bottom: 2px; }
.p-agenda .cal-month-pill-event { background: #0f2240; color: #60a5fa; }
.p-agenda .cal-month-pill-task { background: #0a2419; color: #4ade80; }
.p-agenda .cal-month-pill-task.done { opacity: 0.4; text-decoration: line-through; }
.p-agenda .agenda-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.p-agenda .od-strip { display: flex; align-items: center; gap: 12px; background: #1e1500; border: 1px solid #3d2c00; border-left: 3px solid #f59e0b; border-radius:0; padding: 9px 14px; flex-wrap: wrap; flex: 1; }
.p-agenda .od-badge { background: #f59e0b; color: #191919; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius:0; letter-spacing: .04em; flex-shrink: 0; }
.p-agenda .od-sep { color: #3d2c00; font-size: 12px; }
.p-agenda .od-item { display: flex; align-items: center; gap: 6px; }
.p-agenda .od-name { font-size: 11px; color: #c4a44a; }
.p-agenda .od-days { font-size: 10px; color: #7a6020; background: #2a1e00; border-radius:0; padding: 1px 5px; }
.p-agenda .preview-note { position: fixed; bottom: 14px; right: 16px; background: #1d1d1d; border: 1px solid #3f3f3f; border-radius:0; padding: 6px 12px; font-size: 11px; color: #666; }
.p-agenda .agenda-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.p-agenda .agenda-sec-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; margin-bottom: 8px; }
.p-agenda .agenda-ev-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid #1e1e1e; }
.p-agenda .agenda-ev-row:last-child { border-bottom: none; }
.p-agenda .agenda-ev-time { font-size: 10px; color: #777; min-width: 36px; }
.p-agenda .agenda-ev-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.p-agenda .agenda-ev-name { font-size: 11px; color: #ccc; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-agenda .agenda-ev-name.done { text-decoration: line-through; color: #666; }
.p-agenda .agenda-check { width: 13px; height: 13px; border: 1.5px solid #444; border-radius:0; flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #4ade80; }
.p-agenda .agenda-check.done { background: #4ade80; border-color: #4ade80; color: #191919; }
.p-agenda .day-panel-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 200; display: flex; align-items: center; justify-content: center; }
.p-agenda .day-panel { background: #1e1e1e; border: 1px solid #1d1d1d; border-radius:0; padding: 20px; min-width: 300px; max-width: 400px; width: 90%; max-height: 70vh; overflow-y: auto; }
.p-agenda .day-panel-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; color: #e8e8e6; margin-bottom: 16px; }
.p-agenda .day-panel-sec { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; margin: 10px 0 6px; }
.p-agenda .day-panel-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #2a2a2a; }
.p-agenda .day-panel-row:last-child { border-bottom: none; }
.p-agenda .day-panel-time { font-size: 10px; color: #777; min-width: 36px; }
.p-agenda .day-panel-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.p-agenda .day-panel-name { font-size: 12px; color: #ccc; flex: 1; }
.p-agenda .day-panel-name.done { text-decoration: line-through; color: #666; }

/* ===== PAGE: captura ===== */
.p-captura .capture-box { background: #141210; border: 1px solid #3a3a3a; border-radius:0; padding: 16px 20px; margin-bottom: 20px; }
.p-captura .capture-input { width: 100%; background: transparent; border: none; outline: none; font-size: 15px; color: #e8e8e6; font-family: inherit; margin-bottom: 12px; }
.p-captura .capture-input::placeholder { color: #3a3a3a; }
.p-captura .capture-divider { border: none; border-top: 1px solid #1d1d1d; margin-bottom: 12px; }
.p-captura .capture-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.p-captura .capture-tag { padding: 4px 10px; border-radius:0; font-size: 11px; font-weight: 500; border: 1px solid #3a3a3a; background: #2a2a2a; color: #666; cursor: pointer; }
.p-captura .capture-tag:hover { border-color: #888; color: #aaa; }
.p-captura .capture-submit { padding: 5px 16px; border-radius:0; font-size: 12px; font-weight: 600; cursor: pointer; border: none; background: #5a73e8; color: white; margin-left: auto; }
.p-captura .inbox-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.p-captura .inbox-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #f87171; }
.p-captura .inbox-count { background: #3a1a1a; border: 1px solid #6b2020; color: #f87171; padding: 1px 8px; border-radius:0; font-size: 10px; font-weight: 700; }
.p-captura .inbox-action { margin-left: auto; font-size: 11px; color: #5a73e8; cursor: pointer; }
.p-captura .inbox-list { background: #1f1f1f; border: 1px solid #1d1d1d; border-radius:0; margin-bottom: 24px; overflow: hidden; }
.p-captura .inbox-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #2a2a2a; cursor: pointer; }
.p-captura .inbox-item:last-child { border-bottom: none; }
.p-captura .inbox-item:hover { background: #141210; }
.p-captura .inbox-item:hover .item-cats { opacity: 1; }
.p-captura .item-dot { width: 7px; height: 7px; border-radius: 50%; background: #444; flex-shrink: 0; }
.p-captura .item-text { flex: 1; font-size: 12px; color: #ccc; }
.p-captura .item-time { font-size: 11px; color: #777; }
.p-captura .item-cats { opacity: 0; display: flex; gap: 5px; transition: opacity .15s; }
.p-captura .cat-btn { padding: 2px 8px; border-radius:0; font-size: 10px; border: 1px solid #3a3a3a; color: #777; cursor: pointer; white-space: nowrap; }
.p-captura .cat-btn:hover { border-color: #5a73e8; color: #8fa4f0; }
.p-captura .body-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.p-captura .body-full { margin-bottom: 14px; }
.p-captura .dest-box { background: #1f1f1f; border: 1px solid #1d1d1d; border-radius:0; overflow: hidden; }
.p-captura .dest-header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #2a2a2a; }
.p-captura .dest-title { font-size: 12px; font-weight: 600; flex: 1; }
.p-captura .dest-count { font-size: 10px; color: #888; background: #2a2a2a; padding: 1px 7px; border-radius:0; }
.p-captura .dest-link { font-size: 11px; color: #5a73e8; cursor: pointer; }
.p-captura .dest-body { padding: 8px 0; }
.p-captura .dest-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 14px; border-bottom: 1px solid #222; }
.p-captura .dest-item:last-child { border-bottom: none; }
.p-captura .dest-item-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.p-captura .dest-item-text { font-size: 11px; color: #888; flex: 1; line-height: 1.4; }
.p-captura .mini-tag { display: inline-block; padding: 1px 5px; border-radius:0; font-size: 9px; margin-right: 4px; }
.p-captura .t-ideia { background: #2d1b69; color: #c084fc; }
.p-captura .t-obs { background: #162416; color: #86efac; }
.p-captura .t-pesq { background: #2a1f06; color: #f59e0b; }
.p-captura .t-link { background: #1e2d2a; color: #34d399; }
.p-captura .t-swipe { background: #1a1a2d; color: #818cf8; }
.p-captura .t-task { background: #0f2e4a; color: #60a5fa; }
.p-captura .dot-purple { background: #c084fc; }
.p-captura .dot-green { background: #86efac; }
.p-captura .dot-yellow { background: #f59e0b; }
.p-captura .dot-teal { background: #34d399; }
.p-captura .dot-indigo { background: #818cf8; }
.p-captura .dot-blue { background: #60a5fa; }
.p-captura .dest-empty { padding: 16px 14px; font-size: 11px; color: #777; text-align: center; }
.p-captura .preview-note { position: fixed; bottom: 14px; right: 16px; background: #1d1d1d; border: 1px solid #3f3f3f; border-radius:0; padding: 6px 12px; font-size: 11px; color: #666; }

/* ===== PAGE: clientes ===== */
.p-clientes .page-content { max-width: 920px; }
.p-clientes .action-row { display: flex; gap: 8px; margin-bottom: 20px; align-items: center; }
.p-clientes .action-btn { display: flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius:0; font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid #1d1d1d; background: #141210; color: #9b9b9b; }
.p-clientes .action-btn.primary { background: #5a73e8; border-color: #5a73e8; color: white; }
.p-clientes .stats-row { display: flex; gap: 12px; margin-bottom: 28px; }
.p-clientes .stat { flex: 1; background: #141210; border: 1px solid #1d1d1d; border-radius:0; padding: 12px 16px; }
.p-clientes .stat-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.p-clientes .stat-value { font-size: 22px; font-weight: 700; }
.p-clientes .stat.total { border-top: 3px solid #5a73e8; }
.p-clientes .stat.ativos { border-top: 3px solid #4ade80; background: #111e18; }
.p-clientes .stat.valor { border-top: 3px solid #f59e0b; background: #1e1a0e; }
.p-clientes .cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.p-clientes .client-card { background: #1f1f1f;
    border: 1px solid #2a2a2a;
    border-radius:0;
    overflow: hidden;
    position: relative; }
.p-clientes .client-card::before { content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--color);
    border-radius:0; }
.p-clientes .card-header { padding: 14px 14px 12px 18px; }
.p-clientes .card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.p-clientes .card-identity { display: flex; align-items: center; gap: 10px; }
.p-clientes .c-avatar { width: 34px; height: 34px; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: #111; flex-shrink: 0; }
.p-clientes .c-name { font-size: 13px; font-weight: 700; color: #e8e8e6; margin-bottom: 2px; }
.p-clientes .c-sub { font-size: 10px; color: #888; }
.p-clientes .card-value { text-align: right; }
.p-clientes .value-num { font-size: 15px; font-weight: 700; color: #4ade80; }
.p-clientes .value-lbl { font-size: 9px; color: #777; text-transform: uppercase; letter-spacing: .05em; }
.p-clientes .tag { padding: 2px 7px; border-radius:0; font-size: 9px; font-weight: 600; }
.p-clientes .tag-active { background: #0a2419; color: #4ade80; }
.p-clientes .tag-standby { background: #1e1e2a; color: #818cf8; }
.p-clientes .tag-cancelled { background: #141210; color: #888; border: 1px solid #333; }
.p-clientes .socios-row { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.p-clientes .socios-label { font-size: 9px; color: #777; text-transform: uppercase; letter-spacing: .06em; }
.p-clientes .avatars { display: flex; }
.p-clientes .sm-avatar { width: 20px; height: 20px; border-radius: 50%; font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: #111; border: 2px solid #1f1f1f; margin-right: -5px; flex-shrink: 0; }
.p-clientes .sm-avatar-name { font-size: 10px; color: #666; margin-left: 10px; }
.p-clientes .card-divider { border: none; border-top: 1px solid #252525; }
.p-clientes .projects-list { padding: 0 14px 6px 18px; }
.p-clientes .proj-list-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #777; padding: 9px 0 6px; }
.p-clientes .proj-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #141210; cursor: pointer; }
.p-clientes .proj-row:last-of-type { border-bottom: none; }
.p-clientes .proj-row:hover { opacity: .8; }
.p-clientes .proj-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--color); }
.p-clientes .proj-name { flex: 1; font-size: 11px; color: #ccc; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-clientes .ms { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius:0; white-space: nowrap; flex-shrink: 0; }
.p-clientes .ms-active { background: #0c2a45; color: #60a5fa; }
.p-clientes .ms-waiting { background: #302206; color: #f59e0b; }
.p-clientes .ms-late-me { background: #2e0a0a; color: #f87171; }
.p-clientes .ms-late-them { background: #2c1a00; color: #f59e0b; }
.p-clientes .ms-paused { background: #141210; color: #888; border: 1px solid #333; }
.p-clientes .ms-review { background: #0a2419; color: #4ade80; }
.p-clientes .ms-planning { background: #22154d; color: #c084fc; }
.p-clientes .mini-prog { width: 44px; height: 3px; background: #2a2a2a; border-radius:0; flex-shrink: 0; }
.p-clientes .mini-prog-fill { height: 100%; border-radius:0; background: #4ade80; }
.p-clientes .mini-pct { font-size: 9px; color: #777; width: 22px; text-align: right; flex-shrink: 0; }
.p-clientes .proj-socio { flex-shrink: 0; }
.p-clientes .proj-add { font-size: 10px; color: #666; padding: 8px 0 4px; cursor: pointer; display: block; }
.p-clientes .proj-add:hover { color: #666; }
.p-clientes .preview-note { position: fixed; bottom: 14px; right: 16px; background: #1d1d1d; border: 1px solid #3f3f3f; border-radius:0; padding: 6px 12px; font-size: 11px; color: #666; }

/* ===== PAGE: daily ===== */
.p-daily .page-content { max-width: 860px; }
.p-daily .page-date { font-size: 13px; color: #f59e0b; margin-bottom: 24px; font-weight: 500; }
.p-daily .section-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; padding-bottom: 7px; margin-bottom: 8px; border-bottom: 1px solid #2a2a2a; display: flex; align-items: center; justify-content: space-between; }
.p-daily .badge { font-size: 9px; font-weight: 400; background: #2a2a2a; padding: 1px 6px; border-radius:0; color: #888; }
.p-daily .mood-row { display: flex; gap: 8px; margin-bottom: 20px; }
.p-daily .mood-btn { flex: 1; background: #141210; border: 1px solid #1d1d1d; border-radius:0; padding: 8px 4px; text-align: center; cursor: pointer; transition: all .1s; }
.p-daily .mood-btn:hover { border-color: #888; }
.p-daily .mood-btn.sel { border-color: #f59e0b; background: #2a2410; }
.p-daily .mood-emoji { font-size: 16px; display: block; margin-bottom: 3px; }
.p-daily .mood-label { font-size: 9px; color: #888; }
.p-daily .mood-btn.sel .mood-label { color: #f59e0b; }
.p-daily .intention-box { background: #141210; border: 1px solid #1d1d1d; border-left: 3px solid #f59e0b; border-radius:0; padding: 12px 16px; margin-bottom: 20px; }
.p-daily .intention-label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #f59e0b; margin-bottom: 6px; font-weight: 600; }
.p-daily .intention-text { font-size: 13px; color: #ccc; font-style: italic; }
.p-daily .priorities-box { background: #141210; border: 1px solid #1d1d1d; border-radius:0; padding: 12px 16px; margin-bottom: 20px; }
.p-daily .check-item { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid #2a2a2a; font-size: 12px; color: #ccc; }
.p-daily .check-item:last-of-type { border-bottom: none; }
.p-daily .box { width: 14px; height: 14px; border: 1.5px solid #444; border-radius:0; flex-shrink: 0; }
.p-daily .box.done { background: #4ade80; border-color: #4ade80; }
.p-daily .check-text.done { text-decoration: line-through; color: #888; }
.p-daily .priority-num { width: 18px; height: 18px; border-radius: 50%; background: #1d1d1d; color: #666; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.p-daily .progress-box { background: #141210; border: 1px solid #1d1d1d; border-radius:0; padding: 12px 16px; margin-bottom: 20px; }
.p-daily .progress-numbers { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.p-daily .progress-main { font-size: 22px; font-weight: 700; color: #f59e0b; }
.p-daily .progress-sub { font-size: 11px; color: #888; }
.p-daily .progress-bar { height: 6px; background: #1d1d1d; border-radius:0; }
.p-daily .progress-fill { height: 100%; border-radius:0; background: linear-gradient(90deg, #f59e0b, #f59e0b); width: 65%; }
.p-daily .ritual-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.p-daily .ritual-col { background: #141210; border: 1px solid #1d1d1d; border-radius:0; overflow: hidden; }
.p-daily .ritual-col.manha { border-top: 3px solid #f59e0b; }
.p-daily .ritual-col.noite { border-top: 3px solid #818cf8; }
.p-daily .ritual-header { padding: 10px 14px; border-bottom: 1px solid #2a2a2a; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.p-daily .ritual-col.manha .ritual-header { color: #f59e0b; }
.p-daily .ritual-col.noite  .ritual-header { color: #818cf8; }
.p-daily .ritual-body { padding: 6px 14px 10px; }
.p-daily .ritual-item { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid #2a2a2a; font-size: 12px; color: #ccc; }
.p-daily .ritual-item:last-of-type { border-bottom: none; }
.p-daily .habitos-box { background: #141210; border: 1px solid #1d1d1d; border-radius:0; padding: 12px 16px; }
.p-daily .habitos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.p-daily .habito-item { background: #1f1f1f; border: 1px solid #1d1d1d; border-radius:0; padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
.p-daily .habito-item.done { border-color: #1a3a1a; background: #1a2a1a; }
.p-daily .habito-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #444; flex-shrink: 0; }
.p-daily .habito-item.done .habito-dot { background: #4ade80; border-color: #4ade80; }
.p-daily .habito-name { font-size: 11px; color: #888; flex: 1; }
.p-daily .habito-item.done .habito-name { color: #4ade80; }
.p-daily .habito-streak { font-size: 10px; color: #888; }
.p-daily .habito-item.done .habito-streak { color: #2a5a2a; }
.p-daily .habito-group-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #555; margin-bottom: 6px; margin-top: 4px; }
.p-daily .habitos-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.p-daily .habitos-col { background: #141210; border: 1px solid #1d1d1d; border-left: 3px solid #f59e0b; border-radius:0; padding: 10px 12px; }
.p-daily .habito-col-header { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.p-daily .preview-note { position: fixed; bottom: 14px; right: 16px; background: #1d1d1d; border: 1px solid #3f3f3f; border-radius:0; padding: 6px 12px; font-size: 11px; color: #666; }
.p-daily .health-stats { display: flex; gap: 10px; margin-bottom: 20px; }
.p-daily .health-stat { border: 1px solid #2a2a2a; border-radius:0; padding: 8px 12px; min-width: 140px; text-align: right; }
.p-daily .health-stat.peso { border-top: 3px solid #f59e0b; background: #1e1a0e; }
.p-daily .health-stat.sono { border-top: 3px solid #818cf8; background: #1e1e2a; }
.p-daily .health-stat-label { font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.p-daily .health-stat-val { font-size: 16px; font-weight: 700; line-height: 1; }

/* ===== PAGE: estudos ===== */
.p-estudos h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.p-estudos .sub { font-size: 12px; color: #888; margin-bottom: 24px; }
.p-estudos .sec-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; padding-bottom: 6px; margin-bottom: 12px; border-bottom: 1px solid #2a2a2a; display: flex; justify-content: space-between; align-items: center; }
.p-estudos .section { margin-bottom: 28px; }
.p-estudos .tag { padding: 2px 7px; border-radius:0; font-size: 9px; font-weight: 600; white-space: nowrap; }
.p-estudos .tag-green { background: #0a2419; color: #4ade80; }
.p-estudos .tag-yellow { background: #2a1f00; color: #f59e0b; }
.p-estudos .tag-purple { background: #1e1040; color: #818cf8; }
.p-estudos .tag-gray { background: #2a2a2a; color: #666; }
.p-estudos .tag-blue { background: #0f2e4a; color: #60a5fa; }
.p-estudos .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 28px; }
.p-estudos .stat-card { background: #161616; border: 1px solid #2a2a2a; border-radius:0; padding: 12px 14px; text-align: center; }
.p-estudos .stat-val { font-size: 22px; font-weight: 700; margin-bottom: 3px; }
.p-estudos .stat-lbl { font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: .05em; }
.p-estudos .course-card { background: #161616; border: 1px solid #2a2a2a; border-left: 3px solid; border-radius:0; padding: 10px 13px; margin-bottom: 8px; }
.p-estudos .card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 9px; }
.p-estudos .card-name { font-size: 12px; font-weight: 600; color: #ddd; }
.p-estudos .card-sub { font-size: 9px; color: #888; margin-top: 2px; }
.p-estudos .card-bar-wrap { height: 3px; background: #222; border-radius:0; margin-bottom: 4px; }
.p-estudos .card-bar-fill { height: 100%; border-radius:0; }
.p-estudos .card-bar-lbl { font-size: 9px; color: #777; }
.p-estudos .area-section { margin-bottom: 16px; }
.p-estudos .area-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; margin-bottom: 6px; padding-bottom: 5px; border-bottom: 1px solid #222; }
.p-estudos .tbl-head { display: grid; grid-template-columns: 1fr 65px 70px 65px; gap: 8px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #3a3a3a; padding-bottom: 5px; margin-bottom: 2px; border-bottom: 1px solid #222; }
.p-estudos .tbl-head .c { text-align: center; }
.p-estudos .tbl-row { display: grid; grid-template-columns: 1fr 65px 70px 65px; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid #1a1a1a; }
.p-estudos .tbl-row:last-child { border-bottom: none; }
.p-estudos .tbl-name { font-size: 11px; color: #aaa; }
.p-estudos .tbl-cell { display: flex; justify-content: center; align-items: center; }
.p-estudos .areas-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.p-estudos .area-card { background: #161616; border: 1px solid #2a2a2a; border-left: 3px solid; border-radius:0; padding: 8px 12px; display: flex; align-items: center; gap: 10px; min-width: 140px; }
.p-estudos .area-card-name { font-size: 10px; color: #888; flex: 1; }
.p-estudos .area-card-count { font-size: 16px; font-weight: 700; color: #818cf8; }
.p-estudos .area-card-add { font-size: 18px; color: #2a2a2a; cursor: pointer; border: 1px dashed #2a2a2a; border-radius:0; padding: 8px 16px; display: flex; align-items: center; justify-content: center; }
.p-estudos .area-card-add:hover { border-color: #777; color: #888; }
.p-estudos .prog-bar-wrap { width: 50px; height: 3px; background: #222; border-radius:0; }
.p-estudos .prog-bar-fill { height: 100%; border-radius:0; }

/* ===== PAGE: ferramentas ===== */
.p-ferramentas .page-content { max-width: 860px; }
.p-ferramentas .action-row { display: flex; gap: 8px; margin-bottom: 20px; align-items: center; }
.p-ferramentas .action-btn { display: flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius:0; font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid #1d1d1d; background: #141210; color: #9b9b9b; }
.p-ferramentas .action-btn.primary { background: #5a73e8; border-color: #5a73e8; color: white; }
.p-ferramentas .stats-row { display: flex; gap: 12px; margin-bottom: 28px; }
.p-ferramentas .stat { flex: 1; background: #141210; border: 1px solid #1d1d1d; border-radius:0; padding: 12px 16px; }
.p-ferramentas .stat-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.p-ferramentas .stat-value { font-size: 22px; font-weight: 700; }
.p-ferramentas .stat.total { border-top: 3px solid #5a73e8; }
.p-ferramentas .stat.mes { border-top: 3px solid #fb923c; background: #1e1408; }
.p-ferramentas .stat.ano { border-top: 3px solid #f59e0b; background: #1e1a08; }
.p-ferramentas .col-header { display: grid;
    grid-template-columns: 26px 1fr 80px 44px 70px 75px;
    gap: 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid #1d1d1d;
    margin-bottom: 4px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #777;
    position: sticky; top: 49px; background: #191919; z-index: 5; }
.p-ferramentas .col-header .r { text-align: right; }
.p-ferramentas .section { margin-bottom: 4px; }
.p-ferramentas .sec-label { font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #888;
    padding: 12px 0 6px;
    display: flex; align-items: center; gap: 8px; }
.p-ferramentas .badge { font-size: 9px; background: #2a2a2a; padding: 1px 6px; border-radius:0; color: #888; font-weight: 400; }
.p-ferramentas .tool-row { display: grid;
    grid-template-columns: 26px 1fr 80px 44px 70px 75px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #1e1e1e;
    cursor: pointer; }
.p-ferramentas .tool-row:last-child { border-bottom: none; }
.p-ferramentas .tool-row:hover { opacity: .8; }
.p-ferramentas .t-icon { width: 22px; height: 22px; border-radius:0; font-size: 12px; display: flex; align-items: center; justify-content: center; background: #2a2a2a; flex-shrink: 0; }
.p-ferramentas .t-name { font-size: 12px; color: #ccc; }
.p-ferramentas .t-sub { font-size: 10px; color: #888; margin-top: 1px; }
.p-ferramentas .tag { padding: 2px 7px; border-radius:0; font-size: 9px; font-weight: 500; }
.p-ferramentas .tag-ia { background: #22154d; color: #c084fc; }
.p-ferramentas .tag-dev { background: #0f2e4a; color: #60a5fa; }
.p-ferramentas .tag-design { background: #3a1028; color: #f472b6; }
.p-ferramentas .tag-prod { background: #0a2419; color: #4ade80; }
.p-ferramentas .tag-neg { background: #2a1500; color: #fb923c; }
.p-ferramentas .t-val { font-size: 11px; text-align: right; }
.p-ferramentas .t-val.orange { color: #fb923c; }
.p-ferramentas .t-val.yellow { color: #f59e0b; }
.p-ferramentas .t-val.green { color: #4ade80; }
.p-ferramentas .t-val.muted { color: #777; }
.p-ferramentas .t-check { font-size: 13px; text-align: center; line-height: 1; }
.p-ferramentas .t-check.yes { color: #4ade80; }
.p-ferramentas .t-check.no { color: #2a2a2a; }
.p-ferramentas .sec-total { display: grid;
    grid-template-columns: 26px 1fr 80px 44px 70px 75px;
    gap: 10px;
    align-items: center;
    padding: 6px 0 10px;
    font-size: 10px; color: #777;
    border-top: 1px solid #2a2a2a; }
.p-ferramentas .sec-total .r { text-align: right; font-size: 12px; font-weight: 700; color: #e8e8e6; }
.p-ferramentas .grand-total { display: flex; justify-content: space-between; align-items: baseline;
    padding: 14px 0 0;
    border-top: 1px solid #1d1d1d;
    margin-top: 8px; }
.p-ferramentas .grand-total-label { font-size: 12px; color: #666; }
.p-ferramentas .grand-total-vals { display: flex; gap: 24px; align-items: baseline; }
.p-ferramentas .grand-total-val { text-align: right; }
.p-ferramentas .grand-total-num { font-size: 18px; font-weight: 700; }
.p-ferramentas .grand-total-sub { font-size: 9px; color: #777; text-transform: uppercase; letter-spacing: .05em; }
.p-ferramentas .preview-note { position: fixed; bottom: 14px; right: 16px; background: #1d1d1d; border: 1px solid #3f3f3f; border-radius:0; padding: 6px 12px; font-size: 11px; color: #666; }

/* ===== PAGE: financas ===== */
.p-financas .balances { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.p-financas .bal { background: var(--bb-bg-card); border: 1px solid var(--bb-border); border-radius:0; padding: 14px 16px; }
.p-financas .bal-label { font-size: 11px; color: var(--bb-text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.p-financas .bal-value { font-size: 22px; font-weight: 700; font-family: var(--bb-font-ui); }
.p-financas .bal.saldo { border-top: 3px solid var(--bb-green); }
.p-financas .bal.receitas { border-top: 3px solid var(--bb-green); }
.p-financas .bal.despesas { border-top: 3px solid var(--bb-red); }
.p-financas .bal.cartao { border-top: 3px solid var(--bb-accent); }
.p-financas .cartao-card { background: var(--bb-bg-card2); border: 1px solid var(--bb-border-mid); border-radius:0; padding: 16px 18px; margin-bottom: 20px; display: flex; align-items: center; gap: 24px; }
.p-financas .cartao-card-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--bb-text-muted); margin-bottom: 6px; }
.p-financas .cartao-card-val { font-size: 24px; font-weight: 700; color: var(--bb-accent); }
.p-financas .cartao-card-sub { font-size: 10px; color: var(--bb-text-muted); margin-top: 2px; }
.p-financas .cartao-limit-wrap { flex: 1; }
.p-financas .cartao-limit-label { font-size: 10px; color: var(--bb-text-muted); margin-bottom: 5px; display: flex; justify-content: space-between; }
.p-financas .cartao-limit-bar { height: 5px; background: var(--bb-border-mid); border-radius:0; }
.p-financas .cartao-limit-fill { height: 100%; border-radius:0; background: var(--bb-accent); }
.p-financas .cartao-card-right { text-align: right; flex-shrink: 0; }
.p-financas .cartao-close-label { font-size: 10px; color: var(--bb-text-muted); margin-bottom: 2px; }
.p-financas .cartao-close-val { font-size: 13px; font-weight: 600; color: var(--bb-text-2); }
.p-financas .sec-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--bb-text-muted); padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--bb-border); display: flex; justify-content: space-between; }
.p-financas .sec-divider { font-size: 10px; color: var(--bb-text-dim); font-weight: 400; text-transform: none; letter-spacing: 0; }
.p-financas .cat-col-head { display: flex; align-items: center; gap: 10px; padding: 0 12px 6px; margin-bottom: 4px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--bb-text-dim); }
.p-financas .cat-col-head-name { flex: 1; }
.p-financas .cat-col-head-bar { flex: 1; max-width: 160px; text-align: center; }
.p-financas .cat-col-head-pct { min-width: 32px; text-align: right; }
.p-financas .cat-col-head-gasto { min-width: 70px; text-align: right; }
.p-financas .cat-col-head-meta { min-width: 70px; text-align: right; }
.p-financas .cat-row { margin-bottom: 2px; }
.p-financas .cat-header { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--bb-bg-card); border: 1px solid var(--bb-border); border-radius:0; cursor: pointer; }
.p-financas .cat-header:hover { border-color: var(--bb-border-strong); }
.p-financas .cat-header.open { border-radius:0 0 0; border-bottom-color: transparent; }
.p-financas .cat-arrow { font-size: 10px; color: var(--bb-text-muted); flex-shrink: 0; transition: transform .15s; }
.p-financas .cat-header.open .cat-arrow { transform: rotate(90deg); }
.p-financas .cat-name { flex: 1; font-size: 12px; color: var(--bb-text); display: flex; align-items: center; gap: 7px; }
.p-financas .cat-bar-wrap { flex: 1; max-width: 160px; }
.p-financas .cat-bar { height: 4px; background: var(--bb-border-mid); border-radius:0; }
.p-financas .cat-bar-fill { height: 100%; border-radius:0; }
.p-financas .cat-pct { font-size: 10px; white-space: nowrap; flex-shrink: 0; min-width: 32px; text-align: right; }
.p-financas .cat-val { font-size: 12px; font-weight: 700; white-space: nowrap; flex-shrink: 0; min-width: 70px; text-align: right; font-family: var(--bb-font-ui); }
.p-financas .cat-meta { font-size: 11px; color: var(--bb-text-dim); white-space: nowrap; flex-shrink: 0; min-width: 70px; text-align: right; }
.p-financas .cat-items { background: var(--bb-bg-card2); border: 1px solid var(--bb-border); border-top: none; border-radius:0; padding: 4px 0; margin-bottom: 6px; }
.p-financas .cat-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px 6px 36px; font-size: 11px; border-bottom: 1px solid var(--bb-border); }
.p-financas .cat-item:last-child { border-bottom: none; }
.p-financas .cat-item-name { color: var(--bb-text-2); }
.p-financas .cat-item-val { color: var(--bb-text-muted); font-weight: 500; }
.p-financas .cat-items.hidden { display: none; }
.p-financas .extrato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.p-financas .extrato-col-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--bb-text-muted); padding-bottom: 7px; border-bottom: 1px solid var(--bb-border); margin-bottom: 6px; }
.p-financas .ext-head-left { display: grid; grid-template-columns: 40px 1fr 52px 48px 60px; gap: 6px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bb-text-dim); padding-bottom: 6px; border-bottom: 1px solid var(--bb-border); margin-bottom: 2px; }
.p-financas .tx-left { display: grid; grid-template-columns: 40px 1fr 52px 48px 60px; gap: 6px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--bb-border); }
.p-financas .ext-head-right { display: grid; grid-template-columns: 40px 1fr 52px 60px; gap: 6px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bb-text-dim); padding-bottom: 6px; border-bottom: 1px solid var(--bb-border); margin-bottom: 2px; }
.p-financas .tx-right { display: grid; grid-template-columns: 40px 1fr 52px 60px; gap: 6px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--bb-border); }
.p-financas .tx-left:last-child, .p-financas .tx-right:last-child { border-bottom: none; }
.p-financas .tx-date { font-size: 10px; color: var(--bb-text-muted); }
.p-financas .tx-name { font-size: 11px; color: var(--bb-text); }
.p-financas .tx-cell { display: flex; justify-content: center; }
.p-financas .ext-r { text-align: right; }
.p-financas .tx-val { font-size: 11px; font-weight: 700; text-align: right; font-family: var(--bb-font-ui); }
.p-financas .tx-val.in { color: var(--bb-green); }
.p-financas .tx-val.out { color: var(--bb-red); }
.p-financas .tag { padding: 2px 6px; border-radius:0; font-size: 9px; font-weight: 500; white-space: nowrap; background: var(--bb-bg-raised); color: var(--bb-text-2); }
.p-financas .tag-pix { background: rgba(90,115,232,.15); color: var(--bb-accent); }
.p-financas .tag-dinheiro { background: rgba(63,207,126,.12); color: var(--bb-green); }
.p-financas .tag-nubank { background: rgba(192,132,252,.12); color: #c084fc; }
.p-financas .tag-inter { background: rgba(251,146,60,.12); color: #fb923c; }
.p-financas .tag-bradesco { background: rgba(248,113,113,.12); color: var(--bb-red); }
.p-financas .extrato-footer { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 0; border-top: 1px solid var(--bb-border-mid); margin-top: 4px; }
.p-financas .extrato-footer-label { font-size: 11px; color: var(--bb-text-muted); }
.p-financas .extrato-footer-val { font-size: 16px; font-weight: 700; font-family: var(--bb-font-ui); }
.p-financas .em-link { font-family: var(--bb-font-ui); text-decoration: none; }
.p-financas .preview-note { position: fixed; bottom: 14px; right: 16px; background: #1d1d1d; border: 1px solid #3f3f3f; border-radius:0; padding: 6px 12px; font-size: 11px; color: #666; }

/* ===== PAGE: financas-pj ===== */
.p-financas-pj .balances { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.p-financas-pj .bal { background: #141210; border: 1px solid #1d1d1d; border-radius:0; padding: 14px 16px; }
.p-financas-pj .bal-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.p-financas-pj .bal-value { font-size: 22px; font-weight: 700; }
.p-financas-pj .bal.faturamento { border-top: 3px solid #34d399; }
.p-financas-pj .bal.despesas { border-top: 3px solid #f87171; background: #1e1010; }
.p-financas-pj .bal.impostos { border-top: 3px solid #f59e0b; background: #1e1a00; }
.p-financas-pj .bal.cartao { border-top: 3px solid #818cf8; background: #1a1040; }
.p-financas-pj .alert-banner { background: #1e1a00; border: 1px solid #3a2f00; border-left: 3px solid #f59e0b; border-radius:0; padding: 12px 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.p-financas-pj .alert-icon { font-size: 16px; flex-shrink: 0; }
.p-financas-pj .alert-text { font-size: 12px; color: #d4a500; flex: 1; }
.p-financas-pj .alert-btn { font-size: 10px; padding: 3px 10px; border: 1px solid #6a5200; border-radius:0; color: #f59e0b; cursor: pointer; white-space: nowrap; }
.p-financas-pj .cartao-card { background: #1a1040; border: 1px solid #3d2fa0; border-radius:0; padding: 16px 18px; margin-bottom: 20px; display: flex; align-items: center; gap: 24px; }
.p-financas-pj .cartao-card-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #6654c0; margin-bottom: 6px; }
.p-financas-pj .cartao-card-val { font-size: 24px; font-weight: 700; color: #c4b5fd; }
.p-financas-pj .cartao-card-sub { font-size: 10px; color: #6654c0; margin-top: 2px; }
.p-financas-pj .cartao-limit-wrap { flex: 1; }
.p-financas-pj .cartao-limit-label { font-size: 10px; color: #6654c0; margin-bottom: 5px; display: flex; justify-content: space-between; }
.p-financas-pj .cartao-limit-bar { height: 5px; background: #2d2060; border-radius:0; }
.p-financas-pj .cartao-limit-fill { height: 100%; border-radius:0; background: #818cf8; }
.p-financas-pj .cartao-card-right { text-align: right; flex-shrink: 0; }
.p-financas-pj .cartao-close-label { font-size: 10px; color: #6654c0; margin-bottom: 2px; }
.p-financas-pj .cartao-close-val { font-size: 13px; font-weight: 600; color: #a78bfa; }
.p-financas-pj .sec-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #2a2a2a; display: flex; justify-content: space-between; }
.p-financas-pj .sec-divider { font-size: 10px; color: #1d1d1d; font-weight: 400; text-transform: none; letter-spacing: 0; }
.p-financas-pj .cat-col-head { display: flex; align-items: center; gap: 10px; padding: 0 12px 6px; margin-bottom: 4px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #3a3a3a; }
.p-financas-pj .cat-col-head-name { flex: 1; }
.p-financas-pj .cat-col-head-bar { flex: 1; max-width: 160px; text-align: center; }
.p-financas-pj .cat-col-head-pct { min-width: 32px; text-align: right; }
.p-financas-pj .cat-col-head-gasto { min-width: 70px; text-align: right; }
.p-financas-pj .cat-col-head-meta { min-width: 70px; text-align: right; }
.p-financas-pj .cat-row { margin-bottom: 2px; }
.p-financas-pj .cat-header { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #1f1f1f; border: 1px solid #252525; border-radius:0; cursor: pointer; }
.p-financas-pj .cat-header:hover { border-color: #666; }
.p-financas-pj .cat-header.open { border-radius:0 0 0; border-bottom-color: transparent; }
.p-financas-pj .cat-arrow { font-size: 10px; color: #777; flex-shrink: 0; transition: transform .15s; }
.p-financas-pj .cat-header.open .cat-arrow { transform: rotate(90deg); color: #666; }
.p-financas-pj .cat-name { flex: 1; font-size: 12px; color: #ccc; display: flex; align-items: center; gap: 7px; }
.p-financas-pj .cat-bar-wrap { flex: 1; max-width: 160px; }
.p-financas-pj .cat-bar { height: 4px; background: #2a2a2a; border-radius:0; }
.p-financas-pj .cat-bar-fill { height: 100%; border-radius:0; }
.p-financas-pj .cat-pct { font-size: 10px; white-space: nowrap; flex-shrink: 0; min-width: 32px; text-align: right; }
.p-financas-pj .cat-val { font-size: 12px; font-weight: 700; white-space: nowrap; flex-shrink: 0; min-width: 70px; text-align: right; }
.p-financas-pj .cat-meta { font-size: 11px; color: #3a3a3a; white-space: nowrap; flex-shrink: 0; min-width: 70px; text-align: right; }
.p-financas-pj .cat-items { background: #1a1a1a; border: 1px solid #252525; border-top: none; border-radius:0; padding: 4px 0; margin-bottom: 6px; }
.p-financas-pj .cat-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px 6px 36px; font-size: 11px; border-bottom: 1px solid #1e1e1e; }
.p-financas-pj .cat-item:last-child { border-bottom: none; }
.p-financas-pj .cat-item-name { color: #888; }
.p-financas-pj .cat-item-val { color: #666; font-weight: 500; }
.p-financas-pj .cat-items.hidden { display: none; }
.p-financas-pj .extrato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.p-financas-pj .extrato-col-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; padding-bottom: 7px; border-bottom: 1px solid #2a2a2a; margin-bottom: 6px; }
.p-financas-pj .ext-head-left { display: grid; grid-template-columns: 40px 1fr 52px 48px 60px; gap: 6px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #3a3a3a; padding-bottom: 6px; border-bottom: 1px solid #2a2a2a; margin-bottom: 2px; }
.p-financas-pj .tx-left { display: grid; grid-template-columns: 40px 1fr 52px 48px 60px; gap: 6px; align-items: center; padding: 7px 0; border-bottom: 1px solid #1e1e1e; }
.p-financas-pj .ext-head-right { display: grid; grid-template-columns: 40px 1fr 52px 60px; gap: 6px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #3a3a3a; padding-bottom: 6px; border-bottom: 1px solid #2a2a2a; margin-bottom: 2px; }
.p-financas-pj .tx-right { display: grid; grid-template-columns: 40px 1fr 52px 60px; gap: 6px; align-items: center; padding: 7px 0; border-bottom: 1px solid #1e1e1e; }
.p-financas-pj .tx-left:last-child, .p-financas-pj .tx-right:last-child { border-bottom: none; }
.p-financas-pj .tx-date { font-size: 10px; color: #888; }
.p-financas-pj .tx-name { font-size: 11px; color: #ccc; }
.p-financas-pj .tx-cell { display: flex; justify-content: center; }
.p-financas-pj .ext-r { text-align: right; }
.p-financas-pj .tx-val { font-size: 11px; font-weight: 700; text-align: right; }
.p-financas-pj .tx-val.in { color: #4ade80; }
.p-financas-pj .tx-val.out { color: #f87171; }
.p-financas-pj .tag { padding: 2px 6px; border-radius:0; font-size: 9px; font-weight: 500; white-space: nowrap; }
.p-financas-pj .tag-green { background: #0a2419; color: #4ade80; }
.p-financas-pj .tag-yellow { background: #2a1f00; color: #f59e0b; }
.p-financas-pj .tag-pix { background: #0f2e4a; color: #60a5fa; }
.p-financas-pj .tag-dinheiro { background: #0a2419; color: #4ade80; }
.p-financas-pj .tag-cartao { background: #1e1040; color: #818cf8; }
.p-financas-pj .tag-inter-pj { background: #2a1500; color: #fb923c; }
.p-financas-pj .tag-nubank-pj { background: #2a0a40; color: #c084fc; }
.p-financas-pj .extrato-footer { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 0; border-top: 1px solid #1d1d1d; margin-top: 4px; }
.p-financas-pj .extrato-footer-label { font-size: 11px; color: #888; }
.p-financas-pj .extrato-footer-val { font-size: 16px; font-weight: 700; }
.p-financas-pj .preview-note { position: fixed; bottom: 14px; right: 16px; background: #1d1d1d; border: 1px solid #3f3f3f; border-radius:0; padding: 6px 12px; font-size: 11px; color: #666; }

/* ===== PAGE: habitos ===== */
.p-habitos .page-content { max-width: 860px; }
.p-habitos .action-row { display: flex; gap: 8px; margin-bottom: 20px; align-items: center; }
.p-habitos .action-btn { display: flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius:0; font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid #1d1d1d; background: #141210; color: #9b9b9b; }
.p-habitos .action-btn.primary { background: #5a73e8; border-color: #5a73e8; color: white; }
.p-habitos .stats-row { display: flex; gap: 12px; margin-bottom: 28px; }
.p-habitos .stat { flex: 1; background: #141210; border: 1px solid #1d1d1d; border-radius:0; padding: 12px 16px; }
.p-habitos .stat-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.p-habitos .stat-value { font-size: 22px; font-weight: 700; }
.p-habitos .stat.hoje { border-top: 3px solid #4ade80; background: #111e18; }
.p-habitos .stat.streak { border-top: 3px solid #f59e0b; background: #1e1a08; }
.p-habitos .stat.mes { border-top: 3px solid #5a73e8; }
.p-habitos .date-banner { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #4ade80; margin-bottom: 20px; }
.p-habitos .col-header { display: grid;
    grid-template-columns: 20px 20px 1fr 70px 148px 70px 55px;
    gap: 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid #1d1d1d;
    margin-bottom: 6px;
    font-size: 9px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #777; }
.p-habitos .col-header .r { text-align: right; }
.p-habitos .cat-section { margin-bottom: 6px; }
.p-habitos .cat-label { font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #888;
    padding: 12px 0 6px;
    display: flex; align-items: center; gap: 8px; }
.p-habitos .badge { font-size: 9px; background: #2a2a2a; padding: 1px 6px; border-radius:0; color: #888; font-weight: 400; }
.p-habitos .habit-row { display: grid;
    grid-template-columns: 20px 20px 1fr 70px 148px 70px 55px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #1e1e1e;
    cursor: pointer; }
.p-habitos .habit-row:last-child { border-bottom: none; }
.p-habitos .habit-row:hover { opacity: .8; }
.p-habitos .h-box { width: 16px; height: 16px; border: 1.5px solid #3a3a3a; border-radius:0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.p-habitos .h-box.done { background: #4ade80; border-color: #4ade80; color: #111; font-size: 10px; font-weight: 900; }
.p-habitos .h-emoji { font-size: 15px; }
.p-habitos .h-name { font-size: 12px; color: #ccc; }
.p-habitos .h-name.done { text-decoration: line-through; color: #777; }
.p-habitos .h-cal { display: flex; gap: 3px; align-items: center; padding-left: 16px; }
.p-habitos .cal-day { width: 11px; height: 11px; border-radius:0; }
.p-habitos .cal-day.ok { background: #166534; }
.p-habitos .cal-day.miss { background: #2a2a2a; }
.p-habitos .cal-day.empty { background: #1e1e1e; border: 1px dashed #2a2a2a; }
.p-habitos .cal-day.today { background: #4ade80; box-shadow: 0 0 0 2px #86efac44; }
.p-habitos .h-streak { font-size: 11px; font-weight: 600; color: #f59e0b; text-align: right; }
.p-habitos .h-streak.zero { color: #777; font-weight: 400; }
.p-habitos .h-pct { font-size: 12px; font-weight: 700; text-align: right; }
.p-habitos .pct-hi { color: #4ade80; }
.p-habitos .pct-mid { color: #f59e0b; }
.p-habitos .pct-lo { color: #f87171; }
.p-habitos .imp { padding: 2px 7px; border-radius:0; font-size: 9px; font-weight: 600; white-space: nowrap; }
.p-habitos .imp-alta { background: #0a2419; color: #4ade80; }
.p-habitos .imp-media { background: #2a1f00; color: #f59e0b; }
.p-habitos .imp-baixa { background: #0f2e4a; color: #60a5fa; }
.p-habitos .preview-note { position: fixed; bottom: 14px; right: 16px; background: #1d1d1d; border: 1px solid #3f3f3f; border-radius:0; padding: 6px 12px; font-size: 11px; color: #666; }

/* ===== PAGE: notas ===== */
.p-notas .page-content { max-width: 960px; }
.p-notas .action-row { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.p-notas .action-btn { display: flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius:0; font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid #1d1d1d; background: #141210; color: #9b9b9b; }
.p-notas .action-btn:hover { background: #1d1d1d; color: #e8e8e6; }
.p-notas .action-btn.primary { background: #5a73e8; border-color: #5a73e8; color: white; }
.p-notas .search-bar { flex: 1; max-width: 280px; background: #141210; border: 1px solid #1d1d1d; border-radius:0; padding: 5px 12px; font-size: 12px; color: #888; display: flex; align-items: center; gap: 7px; }
.p-notas .stats-row { display: flex; gap: 12px; margin-bottom: 24px; }
.p-notas .stat { flex: 1; background: #141210; border: 1px solid #1d1d1d; border-radius:0; padding: 12px 16px; }
.p-notas .stat-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.p-notas .stat-value { font-size: 22px; font-weight: 700; }
.p-notas .stat.purple { border-top: 3px solid #818cf8; background: #1e1e2a; }
.p-notas .stat.green { border-top: 3px solid #86efac; background: #1a231a; }
.p-notas .stat.yellow { border-top: 3px solid #f59e0b; background: #221e10; }
.p-notas .stat.total { border-top: 3px solid #5a73e8; }
.p-notas .cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.p-notas .col-box { border-radius:0; overflow: hidden; }
.p-notas .col-box.ideias { background: #1e1e2a; border: 1px solid #3a3a5a; }
.p-notas .col-box.observacoes { background: #1a231a; border: 1px solid #2a3f2a; }
.p-notas .col-box.pesquisas { background: #221e10; border: 1px solid #3f3010; }
.p-notas .col-header { padding: 12px 14px; border-bottom: 1px solid; display: flex; align-items: center; justify-content: space-between; }
.p-notas .col-box.ideias      .col-header { border-color: #3a3a5a; }
.p-notas .col-box.observacoes .col-header { border-color: #2a3f2a; }
.p-notas .col-box.pesquisas   .col-header { border-color: #3f3010; }
.p-notas .col-title { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.p-notas .col-count { font-size: 10px; font-weight: 400; background: #2a2a3a; padding: 1px 7px; border-radius:0; color: #888; }
.p-notas .col-sort { font-size: 10px; color: #777; cursor: pointer; }
.p-notas .col-body { padding: 6px 0; }
.p-notas .col-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 14px; cursor: pointer; border-bottom: 1px solid; transition: background .1s; }
.p-notas .col-box.ideias      .col-item { border-color: #2a2a3a; }
.p-notas .col-box.observacoes .col-item { border-color: #222e22; }
.p-notas .col-box.pesquisas   .col-item { border-color: #2e2810; }
.p-notas .col-item:last-of-type { border-bottom: none; }
.p-notas .col-box.ideias      .col-item:hover { background: #26263a; }
.p-notas .col-box.observacoes .col-item:hover { background: #1e2a1e; }
.p-notas .col-box.pesquisas   .col-item:hover { background: #2a2414; }
.p-notas .item-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.p-notas .dot-purple { background: #c084fc; }
.p-notas .dot-green { background: #86efac; }
.p-notas .dot-yellow { background: #f59e0b; }
.p-notas .item-body { flex: 1; min-width: 0; }
.p-notas .item-text { font-size: 12px; color: #ccc; line-height: 1.4; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-notas .item-date { font-size: 10px; color: #777; }
.p-notas .col-add { display: flex; align-items: center; gap: 7px; padding: 9px 14px; font-size: 11px; color: #3a3a50; cursor: pointer; }
.p-notas .col-box.observacoes .col-add { color: #2a3a2a; }
.p-notas .col-box.pesquisas   .col-add { color: #3a3010; }
.p-notas .col-add:hover { color: #666; }
.p-notas .purple { color: #c084fc; }
.p-notas .green { color: #86efac; }
.p-notas .yellow { color: #f59e0b; }
.p-notas .preview-note { position: fixed; bottom: 14px; right: 16px; background: #1d1d1d; border: 1px solid #3f3f3f; border-radius:0; padding: 6px 12px; font-size: 11px; color: #666; }

/* ===== PAGE: notas — IDV ===== */
.p-notas {
  --amber: #f59e0b; --green: #3fcf7e; --red: #f87171; --ink2: #686560;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0b0b0b;
  color: #eae8e3;
}
.p-notas .h-widgets { flex-shrink: 0; border-bottom: 3px solid #1d1d1d; background: #fff; }
.p-notas .hw { background: #fff; border: 1px solid #1d1d1d; }
.p-notas .hwt { color: #888; border-bottom-color: #1d1d1d; }
.p-notas .hwln { color: #444; }
.p-notas .hwv { color: #111; }
.p-notas .hwneu { color: #444; }
.p-notas .hwpos { color: #16a34a; }
.p-notas .hwneg { color: #dc2626; }
.p-notas .hwvd { color: inherit; }
.p-notas .hw-big { color: #111; }
.p-notas .hw-unit { color: #888; }
.p-notas .hw-dl { color: #888; }
.p-notas .hv-standing { color: #444; }
.p-notas .hv-standing strong { color: #f59e0b; }
.p-notas .hbr-hdr { color: #888; border-bottom-color: #1d1d1d; }
.p-notas .hbr-pos { color: #888; }
.p-notas .hbr-name { color: #444; }
.p-notas .hbr-pts { color: #111; }
.p-notas .hbr-j { color: #888; }
.p-notas .hbr-row { border-bottom-color: rgba(0,0,0,.05); }
.p-notas .hbr-row.me .hbr-name { color: #f59e0b; }
.p-notas .hbr-row.me .hbr-pts { color: #f59e0b; }
.p-notas .h-tb-date { color: #eae8e3; }
.p-notas .h-priv-btn, .p-notas .h-theme-btn { color: #eae8e3; border-color: #3a3630; }
.p-notas .h-tb-wx { color: #eae8e3; }
.p-notas .h-tb-wx-icon { color: #eae8e3; }
.p-notas .ref-v2-main .col-box.col-ideias { border-right: 3px solid #1d1d1d; }
.p-notas .ref-v2-main .col-box.col-obs { border-right: 3px solid #1d1d1d; }

/* ===== PAGE: agenda — IDV ===== */
.p-agenda {
  --amber: #f59e0b; --green: #3fcf7e; --red: #f87171; --ink2: #686560;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0b0b0b;
  color: #eae8e3;
}
.p-agenda .h-widgets { flex-shrink: 0; border-bottom: 3px solid #1d1d1d; background: #fff; }
.p-agenda .hw { background: #fff; border: 1px solid #1d1d1d; }
.p-agenda .hwt { color: #888; border-bottom-color: #1d1d1d; }
.p-agenda .hwln { color: #444; }
.p-agenda .hwv { color: #111; }
.p-agenda .hwneu { color: #444; }
.p-agenda .hwpos { color: #16a34a; }
.p-agenda .hwneg { color: #dc2626; }
.p-agenda .hwvd { color: inherit; }
.p-agenda .hw-big { color: #111; }
.p-agenda .hw-unit { color: #888; }
.p-agenda .hw-dl { color: #888; }
.p-agenda .hv-standing { color: #444; }
.p-agenda .hv-standing strong { color: #f59e0b; }
.p-agenda .hbr-hdr { color: #888; border-bottom-color: #1d1d1d; }
.p-agenda .hbr-pos { color: #888; }
.p-agenda .hbr-name { color: #444; }
.p-agenda .hbr-pts { color: #111; }
.p-agenda .hbr-j { color: #888; }
.p-agenda .hbr-row { border-bottom-color: rgba(0,0,0,.05); }
.p-agenda .hbr-row.me .hbr-name { color: #f59e0b; }
.p-agenda .hbr-row.me .hbr-pts { color: #f59e0b; }
.p-agenda .h-tb-date { color: #eae8e3; }
.p-agenda .h-priv-btn, .p-agenda .h-theme-btn { color: #eae8e3; border-color: #3a3630; }
.p-agenda .h-tb-wx { color: #eae8e3; }
.p-agenda .h-tb-wx-icon { color: #eae8e3; }
.p-agenda .ref-v2-main { background: #0b0b0b; overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.p-agenda .ag-cal-main { flex: 1; overflow: hidden; min-height: 0; }
.p-agenda .ag-od-strip { flex-shrink: 0; margin: 0; border-radius: 0; border-left: none; border-right: none; border-top: none; border-bottom: 2px solid #3d2c00; }

/* ===== PAGE: projetos ===== */
.p-projetos .page-content { max-width: 920px; }
.p-projetos .action-row { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.p-projetos .action-btn { display: flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius:0; font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid #1d1d1d; background: #141210; color: #9b9b9b; }
.p-projetos .action-btn:hover { background: #1d1d1d; color: #e8e8e6; }
.p-projetos .action-btn.primary { background: #5a73e8; border-color: #5a73e8; color: white; }
.p-projetos .stats-row { display: flex; gap: 12px; margin-bottom: 28px; }
.p-projetos .stat { flex: 1; background: #141210; border: 1px solid #1d1d1d; border-radius:0; padding: 12px 16px; }
.p-projetos .stat-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.p-projetos .stat-value { font-size: 22px; font-weight: 700; }
.p-projetos .stat.total { border-top: 3px solid #5a73e8; }
.p-projetos .stat.clientes { border-top: 3px solid #60a5fa; background: #111e2e; }
.p-projetos .stat.pessoal { border-top: 3px solid #4ade80; background: #111e18; }
.p-projetos .groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.p-projetos .group-header { display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 1px solid #1d1d1d; }
.p-projetos .group-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #666; display: flex; align-items: center; gap: 6px; }
.p-projetos .group-badge { font-size: 10px; background: #2a2a2a; padding: 1px 7px; border-radius:0; color: #888; font-weight: 400; }
.p-projetos .group-add { font-size: 11px; color: #777; cursor: pointer; }
.p-projetos .group-add:hover { color: #888; }
.p-projetos .proj-card { background: #1f1f1f;
    border: 1px solid #2a2a2a;
    border-radius:0;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background .12s;
    position: relative;
    overflow: hidden; }
.p-projetos .proj-card::before { content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--client-color);
    border-radius:0; }
.p-projetos .proj-card:hover { background: #141210; }
.p-projetos .card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.p-projetos .card-title { font-size: 13px; font-weight: 600; color: #e8e8e6; line-height: 1.3; flex: 1; }
.p-projetos .status { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius:0; white-space: nowrap; flex-shrink: 0; }
.p-projetos .s-active { background: #0c2a45; color: #60a5fa; }
.p-projetos .s-waiting { background: #302206; color: #f59e0b; }
.p-projetos .s-late-me { background: #2e0a0a; color: #f87171; }
.p-projetos .s-late-them { background: #2c1a00; color: #f59e0b; }
.p-projetos .s-paused { background: #141210; color: #666; border: 1px solid #333; }
.p-projetos .s-review { background: #0a2419; color: #4ade80; }
.p-projetos .s-planning { background: #22154d; color: #c084fc; }
.p-projetos .card-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; flex-wrap: wrap; }
.p-projetos .tag { padding: 2px 7px; border-radius:0; font-size: 10px; font-weight: 500; }
.p-projetos .tag-type-client { background: #1a2535; color: #60a5fa; border: 1px solid #1e3252; }
.p-projetos .tag-type-pessoal { background: #1a2620; color: #4ade80; border: 1px solid #1e3628; }
.p-projetos .tag-client-name { font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius:0; background: var(--client-bg); color: var(--client-color); }
.p-projetos .card-action { font-size: 11px; color: #4a4a4a; margin-bottom: 8px; line-height: 1.4; padding-left: 1px; }
.p-projetos .card-progress-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.p-projetos .card-progress-bar { flex: 1; height: 3px; background: #2a2a2a; border-radius:0; }
.p-projetos .card-progress-fill { height: 100%; border-radius:0; background: #4ade80; }
.p-projetos .card-pct { font-size: 10px; color: #888; white-space: nowrap; min-width: 26px; text-align: right; }
.p-projetos .card-bottom { display: flex; align-items: center; justify-content: space-between; }
.p-projetos .card-collabs { display: flex; align-items: center; gap: -4px; }
.p-projetos .avatar { width: 20px; height: 20px; border-radius: 50%; font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: #111; border: 2px solid #1f1f1f; margin-right: -6px; flex-shrink: 0; }
.p-projetos .card-date { font-size: 10px; color: #777; }
.p-projetos .preview-note { position: fixed; bottom: 14px; right: 16px; background: #1d1d1d; border: 1px solid #3f3f3f; border-radius:0; padding: 6px 12px; font-size: 11px; color: #666; }

/* ===== PAGE: referencias ===== */
.p-referencias {
  --ink:    #eae8e3;
  --dark:   #0b0b0b;
  --dark2:  #111111;
  --border: #1d1d1d;
  --muted:  #57534e;
  --amber:  #f59e0b; --green: #3fcf7e; --red: #f87171;
  --amber2: #92400e;
  --ink2:   #a8a29e;
  --card:   #1e1b17;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--dark);
  color: var(--ink);
}
/* Widgets — tema claro (mesmo padrão da Captura) */
.p-referencias .h-widgets { flex-shrink: 0; border-bottom: 3px solid #1d1d1d; background: #fff; }
.p-referencias .hw { background: #fff; border: 1px solid #1d1d1d; }
.p-referencias .hwt { color: #888; border-bottom-color: #1d1d1d; }
.p-referencias .hwln { color: #444; }
.p-referencias .hwv { color: #111; }
.p-referencias .hwneu { color: #444; }
.p-referencias .hwpos { color: #16a34a; }
.p-referencias .hwneg { color: #dc2626; }
.p-referencias .hwvd { color: inherit; }
.p-referencias .hw-big { color: #111; }
.p-referencias .hw-unit { color: #888; }
.p-referencias .hw-dl { color: #888; }
.p-biblioteca .h-widgets { flex-shrink: 0; border-bottom: 3px solid #1d1d1d; background: #fff; }
.p-biblioteca .hw { background: #fff; border: 1px solid #1d1d1d; }
.p-biblioteca .hwt { color: #888; border-bottom-color: #1d1d1d; }
.p-biblioteca .hwln { color: #444; }
.p-biblioteca .hwv { color: #111; }
.p-biblioteca .hwneu { color: #444; }
.p-biblioteca .hwpos { color: #16a34a; }
.p-biblioteca .hwneg { color: #dc2626; }
.p-biblioteca .hwvd { color: inherit; }
.p-biblioteca .hw-big { color: #111; }
.p-biblioteca .hw-unit { color: #888; }
.p-biblioteca .hw-dl { color: #888; }
.p-referencias .hv-standing { color: #444; }
.p-referencias .hv-standing strong { color: #f59e0b; }
.p-referencias .hbr-hdr { color: #888; border-bottom-color: #1d1d1d; }
.p-referencias .hbr-pos { color: #888; }
.p-referencias .hbr-name { color: #444; }
.p-referencias .hbr-pts { color: #111; }
.p-referencias .hbr-j { color: #888; }
.p-referencias .hbr-row { border-bottom-color: rgba(0,0,0,.05); }
.p-referencias .hbr-row.me .hbr-name { color: #f59e0b; }
.p-referencias .hbr-row.me .hbr-pts { color: #f59e0b; }
/* Topbar — legibilidade no fundo preto */
.p-referencias .h-tb-date { color: #eae8e3; }
.p-referencias .h-priv-btn, .p-referencias .h-theme-btn { color: #eae8e3; border-color: #3a3630; }
.p-referencias .h-tb-wx { color: #eae8e3; }
.p-referencias .h-tb-wx-icon { color: #eae8e3; }
/* Sidebar — label de seção visível */
.p-referencias .ref-v2-section-label { color: #888; }
.ref-v2-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  flex: 1;
  overflow: hidden;
}
.ref-v2-sidebar {
  background: #0f0e0c;
  border-right: 3px solid #1d1d1d;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ref-v2-main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.ref-v2-main::-webkit-scrollbar { width: 0; }

/* Sidebar — stats */
.ref-v2-stats {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid #1d1d1d;
  flex-shrink: 0;
}
.ref-v2-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2px 0;
}
.ref-v2-stat-label {
  font-size: 8px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ref-v2-stat-val {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
}

/* Sidebar — busca */
.ref-v2-search {
  display: block;
  background: #fff;
  border: 1px solid #f59e0b;
  height: 32px;
  padding: 0 10px;
  margin: 6px 10px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #111;
  outline: none;
  flex-shrink: 0;
  width: calc(100% - 20px);
  box-sizing: border-box;
}
.ref-v2-search::placeholder { color: #aaa; }

/* Sidebar — label de seção */
.ref-v2-section-label {
  font-size: 8px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px 2px;
  flex-shrink: 0;
}

/* Sidebar — lista recentes */
.ref-v2-recents {
  flex: 1;
  overflow-y: auto;
}
.ref-v2-recents::-webkit-scrollbar { width: 0; }
.ref-v2-recent-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-bottom: 1px solid #161412;
  cursor: pointer;
}
.ref-v2-recent-item:hover { background: rgba(255,255,255,.04); }
.ref-v2-ri-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ref-v2-ri-text {
  flex: 1;
  font-size: 9px;
  color: #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ref-v2-ri-time {
  font-size: 6px;
  color: #888;
  flex-shrink: 0;
}

/* Sidebar — botão nova ref */
.ref-v2-new-btn {
  background: var(--amber);
  color: #000;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 12px;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: center;
  flex-shrink: 0;
}
.ref-v2-new-btn:hover { background: #d9991e; }

/* Área principal — colunas integradas (sem float, sem radius) */
.ref-v2-main .ref-cols { flex: 1; display: flex; overflow: hidden; padding: 0; gap: 0; }
.ref-v2-main .col-box { flex: 1; background: #fff; border-radius: 0; border: none; overflow: hidden; display: flex; flex-direction: column; }
.ref-v2-main .col-box.links { border-right: 3px solid #1d1d1d; }
.ref-v2-main .col-header { background: #141210; border-bottom: 1px solid #f59e0b; height: 38px; display: flex; align-items: center; padding: 0 14px; gap: 8px; overflow: hidden; }
.ref-v2-main .col-title { color: #eae8e3; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; flex: 1; }
.ref-v2-main .col-count { font-size: 10px; font-weight: 400; background: #1e1b17; padding: 1px 7px; border-radius:0; color: #555; }
.ref-v2-main .col-sort { font-size: 10px; color: #444; cursor: pointer; }
.ref-v2-main .col-body { background: #fff; padding: 0; flex: 1; overflow-y: auto; }
.ref-v2-main .col-body::-webkit-scrollbar { width: 0; }
.ref-v2-main .col-item { border-bottom-color: rgba(0,0,0,.06); }
.ref-v2-main .col-item:hover { background: rgba(0,0,0,.04); }
.ref-v2-main .item-text { color: #0b0b0b; font-size: 11px; }
.ref-v2-main .item-domain { color: #888; font-size: 9px; margin-top: 2px; }
.ref-v2-main .item-text a { font-size: 11px; }
.ref-v2-main .col-add { color: #555; background: #fff; }
.ref-v2-main .col-add:hover { color: #f59e0b; }

/* Highlight de busca */
.ref-v2-main .col-item.ref-highlight { background: rgba(245,158,11,0.15); }
.ref-v2-main .col-item.ref-highlight:hover { background: rgba(245,158,11,0.22); }

.p-referencias .ref-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.p-referencias .ref-toolbar { margin-bottom: 14px; }
.p-referencias .search-bar { background: #141210; border: 1px solid #2a2520; border-radius:0; padding: 6px 12px; display: flex; align-items: center; gap: 7px; max-width: 400px; }
.p-referencias .search-bar input { background: none; border: none; color: var(--ink); font-size: 12px; outline: none; width: 100%; font-family: inherit; }
.p-referencias .ref-stats { display: flex; gap: 10px; margin-bottom: 16px; }
.p-referencias .stat { flex: 1; background: #0f0e0c; border: 1px solid #1e1b17; border-radius:0; padding: 10px 14px; }
.p-referencias .stat.total { border-top: 2px solid var(--amber); }
.p-referencias .stat.links { border-top: 2px solid #34d399; }
.p-referencias .stat.swipe { border-top: 2px solid #818cf8; }
.p-referencias .stat-label { font-size: 9px; color: #555; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.p-referencias .stat-value { font-size: 20px; font-weight: 700; color: var(--ink); }
.p-referencias .ref-body .ref-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-referencias .ref-body .col-box { border-radius:0; overflow: hidden; background: #0f0e0c; border: 1px solid #1e1b17; }
.p-referencias .ref-body .col-header { height: 38px; display: flex; align-items: center; padding: 0 14px; gap: 8px; background: #141210; border-bottom: 1px solid #2a2520; overflow: hidden; }
.p-referencias .ref-body .col-title { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink2); display: flex; align-items: center; gap: 7px; flex: 1; }
.p-referencias .ref-body .col-count { font-size: 10px; font-weight: 400; background: #1e1b17; padding: 1px 7px; border-radius:0; color: #555; }
.p-referencias .ref-body .col-sort { font-size: 10px; color: #444; cursor: pointer; }
.p-referencias .ref-body .col-body { padding: 0; }
.p-referencias .ref-body .col-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 14px; cursor: pointer; border-bottom: 1px solid #161412; transition: background .1s; }
.p-referencias .ref-body .col-item:hover { background: #141210; }
.p-referencias .ref-body .col-item:last-of-type { border-bottom: none; }
.p-referencias .ref-body .item-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.p-referencias .ref-body .dot-teal { background: #34d399; }
.p-referencias .ref-body .dot-purple { background: #818cf8; }
.p-referencias .ref-body .item-body { flex: 1; min-width: 0; }
.p-referencias .ref-body .item-text { font-size: 12px; color: #ccc; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.p-referencias .ref-body .item-domain { font-size: 10px; color: #2e2b27; margin-top: 2px; }
.p-referencias .ref-body .col-add { display: flex; align-items: center; gap: 7px; padding: 9px 14px; font-size: 11px; color: #252320; cursor: pointer; transition: color .1s; }
.p-referencias .ref-body .col-add:hover { color: var(--amber); }

/* ===== PAGE: saude ===== */
.p-saude h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.p-saude .sub { font-size: 12px; color: #888; margin-bottom: 24px; }
.p-saude .sec-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; padding-bottom: 6px; margin-bottom: 12px; border-bottom: 1px solid #2a2a2a; display: flex; justify-content: space-between; align-items: center; }
.p-saude .section { margin-bottom: 28px; }
.p-saude .alert-banner { background: #1e0808; border: 1px solid #5a1515; border-left: 3px solid #f87171; border-radius:0; padding: 10px 14px; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.p-saude .alert-text { font-size: 11px; color: #fca5a5; }
.p-saude .alert-text strong { color: #f87171; }
.p-saude .alert-links { margin-left: auto; display: flex; gap: 6px; }
.p-saude .alert-pill { font-size: 9px; background: #3a1010; color: #f87171; padding: 2px 8px; border-radius:0; border: 1px solid #7f1d1d; white-space: nowrap; }
.p-saude .registro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.p-saude .reg-card { background: #161616; border: 1px solid #2a2a2a; border-radius:0; padding: 12px; }
.p-saude .reg-label { font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.p-saude .reg-val { font-size: 22px; font-weight: 700; line-height: 1; }
.p-saude .reg-unit { font-size: 11px; color: #888; font-weight: 400; margin-left: 2px; }
.p-saude .reg-sub { font-size: 9px; color: #777; margin-top: 4px; line-height: 1.4; }
.p-saude .reg-btn { margin-top: 8px; background: #222; border-radius:0; padding: 4px 8px; font-size: 10px; color: #888; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.p-saude .reg-btn:hover { background: #2a2a2a; color: #888; }
.p-saude .reg-plus { color: #f472b6; font-weight: 700; font-size: 13px; }
.p-saude .tag { padding: 2px 8px; border-radius:0; font-size: 9px; font-weight: 600; white-space: nowrap; }
.p-saude .tag-ok { background: #0a2419; color: #4ade80; }
.p-saude .tag-pend { background: #2a1f00; color: #f59e0b; }
.p-saude .tag-alert { background: #2e0a0a; color: #f87171; }
.p-saude .tag-pink { background: #3a1028; color: #f472b6; }
.p-saude .cons-grid { display: grid; grid-template-columns: 14px 1fr 100px 90px 80px; gap: 0 10px; align-items: center; }
.p-saude .cons-head { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #777; padding-bottom: 6px; border-bottom: 1px solid #2a2a2a; margin-bottom: 2px; }
.p-saude .cons-head.center { text-align: center; }
.p-saude .cons-row { display: contents; }
.p-saude .cons-row > * { padding: 7px 0; border-bottom: 1px solid #1e1e1e; display: flex; align-items: center; }
.p-saude .cons-row:last-child > * { border-bottom: none; }
.p-saude .cons-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.p-saude .dot-alert { background: #f87171; }
.p-saude .dot-pend { background: #191919; border: 2px solid #f59e0b; }
.p-saude .dot-ok { background: #4ade80; }
.p-saude .cons-name { font-size: 11px; color: #ccc; }
.p-saude .cons-date { font-size: 10px; color: #888; justify-content: center; }
.p-saude .cons-tag-wrap { justify-content: center; }
.p-saude .med-grid { display: grid; grid-template-columns: 1fr 90px 110px; gap: 0 10px; align-items: center; }
.p-saude .med-head { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #777; padding-bottom: 6px; border-bottom: 1px solid #2a2a2a; margin-bottom: 2px; }
.p-saude .med-head.center { text-align: center; }
.p-saude .med-row { display: contents; }
.p-saude .med-row > * { padding: 7px 0; border-bottom: 1px solid #1e1e1e; display: flex; align-items: center; }
.p-saude .med-row:last-child > * { border-bottom: none; }
.p-saude .med-name { font-size: 11px; color: #aaa; }
.p-saude .med-time { font-size: 10px; color: #666; background: #1f1f1f; padding: 2px 6px; border-radius:0; justify-content: center; }
.p-saude .med-freq { font-size: 10px; color: #888; justify-content: center; }
.p-saude .treino-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.p-saude .t-stat { background: #161616; border: 1px solid #2a2a2a; border-radius:0; padding: 10px 14px; text-align: center; }
.p-saude .t-stat-val { font-size: 20px; font-weight: 700; margin-bottom: 3px; }
.p-saude .t-stat-lbl { font-size: 9px; color: #888; }

/* ===== PAGE: senhas ===== */
.p-senhas h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.p-senhas .sub { font-size: 12px; color: #888; margin-bottom: 24px; }
.p-senhas .sec-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; padding-bottom: 6px; margin-bottom: 12px; border-bottom: 1px solid #2a2a2a; display: flex; justify-content: space-between; align-items: center; }
.p-senhas .section { margin-bottom: 28px; }
.p-senhas .tag { padding: 2px 7px; border-radius:0; font-size: 9px; font-weight: 600; white-space: nowrap; }
.p-senhas .tag-green { background: #0a2419; color: #4ade80; }
.p-senhas .tag-yellow { background: #2a1f00; color: #f59e0b; }
.p-senhas .tag-red { background: #2e0a0a; color: #f87171; }
.p-senhas .stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.p-senhas .stat-card { background: #161616; border: 1px solid #2a2a2a; border-radius:0; padding: 12px 14px; text-align: center; }
.p-senhas .stat-val { font-size: 22px; font-weight: 700; margin-bottom: 3px; }
.p-senhas .stat-lbl { font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: .05em; }
.p-senhas .cat-section { margin-bottom: 20px; }
.p-senhas .cat-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; margin-bottom: 6px; padding-bottom: 5px; border-bottom: 1px solid #222; }
.p-senhas .tbl-head { display: grid; grid-template-columns: 28px 1fr 120px 80px 58px; gap: 8px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #3a3a3a; padding-bottom: 5px; border-bottom: 1px solid #222; margin-bottom: 2px; }
.p-senhas .tbl-head .c { text-align: center; }
.p-senhas .tbl-row { display: grid; grid-template-columns: 28px 1fr 120px 80px 58px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #1a1a1a; }
.p-senhas .tbl-row:last-child { border-bottom: none; }
.p-senhas .svc-icon { width: 18px; height: 18px; border-radius:0; object-fit: contain; }
.p-senhas .svc-icon-fallback { width: 18px; height: 18px; border-radius:0; background: #2a2a2a; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #888; }
.p-senhas .svc-name { font-size: 11px; color: #ccc; }
.p-senhas .svc-login { font-size: 10px; color: #888; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-senhas .svc-pw { font-family: monospace; font-size: 11px; color: #2a2a2a; letter-spacing: 2px; text-align: center; }
.p-senhas .tbl-cell { display: flex; justify-content: center; align-items: center; }

/* ===== PAGE: team ===== */
.p-team .page-content { max-width: 860px; }
.p-team .action-row { display: flex; gap: 8px; margin-bottom: 20px; align-items: center; }
.p-team .action-btn { display: flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius:0; font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid #1d1d1d; background: #141210; color: #9b9b9b; }
.p-team .action-btn.primary { background: #5a73e8; border-color: #5a73e8; color: white; }
.p-team .stats-row { display: flex; gap: 12px; margin-bottom: 28px; }
.p-team .stat { flex: 1; background: #141210; border: 1px solid #1d1d1d; border-radius:0; padding: 12px 16px; }
.p-team .stat-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.p-team .stat-value { font-size: 22px; font-weight: 700; }
.p-team .stat.total { border-top: 3px solid #5a73e8; }
.p-team .stat.ativos { border-top: 3px solid #4ade80; background: #111e18; }
.p-team .stat.pago-mes { border-top: 3px solid #4ade80; background: #111e18; }
.p-team .stat.pago-total { border-top: 3px solid #34d399; background: #0a1a12; }
.p-team .list-header { display: grid;
    grid-template-columns: 1fr 130px 90px 55px 55px 75px 75px;
    gap: 12px;
    padding: 0 0 8px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #777; }
.p-team .list-header .col-right { text-align: right; }
.p-team .member-row { display: grid;
    grid-template-columns: 1fr 130px 90px 55px 55px 75px 75px;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #222;
    cursor: pointer; }
.p-team .member-row:last-child { border-bottom: none; }
.p-team .member-row:hover { opacity: .8; }
.p-team .m-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.p-team .m-avatar { width: 32px; height: 32px; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: #111; flex-shrink: 0; }
.p-team .m-name { font-size: 12px; font-weight: 600; color: #e8e8e6; margin-bottom: 2px; }
.p-team .m-role { font-size: 10px; color: #888; }
.p-team .m-tags { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.p-team .tag { padding: 2px 7px; border-radius:0; font-size: 9px; font-weight: 500; }
.p-team .tag-pink { background: #3a1028; color: #f472b6; }
.p-team .tag-blue { background: #0f2e4a; color: #60a5fa; }
.p-team .tag-purple { background: #2d1b69; color: #c084fc; }
.p-team .tag-teal { background: #0a2a28; color: #2dd4bf; }
.p-team .tag-orange { background: #2a1500; color: #fb923c; }
.p-team .tag-green { background: #0a2419; color: #4ade80; }
.p-team .tag-gray { background: #2a2a2a; color: #888; }
.p-team .tag-rel-socio { background: #3a1028; color: #f472b6; }
.p-team .tag-rel-freela { background: #141210; color: #888; border: 1px solid #333; }
.p-team .tag-rel-contrat { background: #0f2e4a; color: #60a5fa; }
.p-team .m-projs { font-size: 11px; color: #666; text-align: right; }
.p-team .m-projs strong { color: #aaa; font-weight: 600; }
.p-team .m-paid { text-align: right; }
.p-team .m-paid-val { font-size: 13px; font-weight: 700; color: #4ade80; }
.p-team .m-paid-lbl { font-size: 9px; color: #777; text-transform: uppercase; letter-spacing: .05em; }
.p-team .preview-note { position: fixed; bottom: 14px; right: 16px; background: #1d1d1d; border: 1px solid #3f3f3f; border-radius:0; padding: 6px 12px; font-size: 11px; color: #666; }

/* ===== PAGE: videoteca ===== */
.p-videoteca h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.p-videoteca .sub { font-size: 12px; color: #888; margin-bottom: 28px; }
.p-videoteca .sec-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; padding-bottom: 6px; margin-bottom: 14px; border-bottom: 1px solid #2a2a2a; display: flex; justify-content: space-between; align-items: center; }
.p-videoteca .section { margin-bottom: 20px; }
.p-videoteca .cards-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.p-videoteca .cards-row::-webkit-scrollbar { display: none; }
.p-videoteca .card { flex-shrink: 0; width: 90px; background: #161616; border: 1px solid #2a2a2a; border-radius:0; overflow: hidden; }
.p-videoteca .card-poster { width: 90px; height: 134px; object-fit: cover; display: block; background: linear-gradient(160deg, #1e1e1e 0%, #2a2a2a 100%); }
.p-videoteca .card-poster-fallback { width: 90px; height: 134px; background: linear-gradient(160deg, #1a1a1a 0%, #252525 100%); display: flex; align-items: center; justify-content: center; font-size: 9px; color: #777; text-align: center; padding: 8px; }
.p-videoteca .card-body { padding: 6px 6px 8px; }
.p-videoteca .card-tags { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 5px; }
.p-videoteca .chip { font-size: 7px; font-weight: 600; padding: 1px 4px; border-radius:0; white-space: nowrap; }
.p-videoteca .chip-genre { background: #1e1040; color: #818cf8; }
.p-videoteca .chip-stream { background: #0f2e4a; color: #60a5fa; }
.p-videoteca .chip-author { background: #2a1f00; color: #f59e0b; }
.p-videoteca .chip-buy { background: #0a2419; color: #4ade80; cursor: pointer; }
.p-videoteca .card-ratings { display: flex; gap: 4px; align-items: center; margin-bottom: 4px; }
.p-videoteca .rating-imdb { font-size: 8px; color: #f59e0b; font-weight: 700; }
.p-videoteca .rating-rt { font-size: 8px; color: #4ade80; font-weight: 700; }
.p-videoteca .rating-sep { font-size: 7px; color: #666; }
.p-videoteca .card-meta-label { font-size: 7px; color: #3a3a3a; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1px; }
.p-videoteca .card-meta-value { font-size: 8px; color: #888; line-height: 1.3; margin-bottom: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.p-videoteca .done-section { margin-bottom: 20px; }
.p-videoteca .done-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #777; margin-bottom: 5px; padding-bottom: 4px; border-bottom: 1px solid #222; }
.p-videoteca .tbl-head { display: grid; grid-template-columns: 1fr 70px 80px 55px 55px; gap: 8px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #3a3a3a; padding-bottom: 5px; border-bottom: 1px solid #222; margin-bottom: 2px; }
.p-videoteca .tbl-head .c { text-align: center; }
.p-videoteca .tbl-row { display: grid; grid-template-columns: 1fr 70px 80px 55px 55px; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid #1a1a1a; }
.p-videoteca .tbl-row:last-child { border-bottom: none; }
.p-videoteca .tbl-name { font-size: 11px; color: #aaa; }
.p-videoteca .tbl-year { font-size: 10px; color: #777; }
.p-videoteca .tbl-cell { display: flex; justify-content: center; }
.p-videoteca .tag { padding: 2px 6px; border-radius:0; font-size: 8px; font-weight: 600; white-space: nowrap; }
.p-videoteca .tag-green { background: #0a2419; color: #4ade80; }
.p-videoteca .tag-purple { background: #1e1040; color: #818cf8; }
.p-videoteca .tag-gray { background: #222; color: #666; }
.p-videoteca .tag-yellow { background: #2a1f00; color: #f59e0b; }
.p-videoteca .stars { color: #f59e0b; font-size: 9px; }
.p-videoteca .two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.p-videoteca .two-col-grid .section { margin-bottom: 0; }

/* ===== PAGE: home ===== */
.p-home .stats-row { display: flex; gap: 12px; margin-bottom: 24px; }
.p-home .stat-card { flex: 1; background: #141210; border: 1px solid #1d1d1d; border-radius:0; padding: 12px 16px; }
.p-home .stat-val { font-size: 22px; font-weight: 700; color: #e8e8e6; margin-bottom: 2px; }
.p-home .stat-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: .05em; }
.p-home .cal-event { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #1e1e1e; cursor: pointer; }
.p-home .cal-event:last-child { border-bottom: none; }
.p-home .cal-time { font-size: 10px; color: #888; min-width: 36px; }
.p-home .cal-pill { font-size: 12px; color: #ccc; flex: 1; }
.p-home .task-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #1e1e1e; cursor: pointer; }
.p-home .task-row:last-child { border-bottom: none; }
.p-home .checkbox { width: 13px; height: 13px; border: 1.5px solid #333; border-radius:0; flex-shrink: 0; }
.p-home .checkbox.done { background: #4ade80; border-color: #4ade80; }
.p-home .task-text { font-size: 11px; color: #ccc; flex: 1; }
.p-home .task-text.done { text-decoration: line-through; color: #777; }
.p-home .task-tag { font-size: 9px; color: #888; padding: 2px 6px; border-radius:0; background: #141210; border: 1px solid #1d1d1d; white-space: nowrap; }
.p-home .task-tag.tag-green { background: #0a2419; color: #4ade80; border-color: #1a3a2a; }
.p-home .project-block { padding: 8px 10px; background: #1f1f1f; border: 1px solid #2a2a2a; border-radius:0; margin-bottom: 6px; cursor: pointer; }
.p-home .project-block:hover { background: #141210; }
.p-home .project-row { display: flex; align-items: center; gap: 8px; }
.p-home .project-name { font-size: 12px; color: #ccc; flex: 1; }
.p-home .habit-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #1e1e1e; cursor: pointer; }
.p-home .habit-row:last-child { border-bottom: none; }
.p-home .habit-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.p-home .habit-name { font-size: 12px; color: #ccc; }
.p-home .progress-track { height: 3px; background: #2a2a2a; border-radius:0; margin-top: 4px; }
.p-home .progress-fill { height: 100%; border-radius:0; }
.p-home .home-top { display: grid; grid-template-columns: 1fr 196px 196px; gap: 14px; margin-bottom: 20px; align-items: start; }
.p-home .home-card { background: #1f1f1f; border: 1px solid #2a2a2a; border-radius:0; padding: 14px 16px; }
.p-home .hc-badge { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; margin-bottom: 10px; }
.p-home .hc-main-val { font-size: 24px; font-weight: 700; margin-bottom: 2px; }
.p-home .hc-main-sub { font-size: 11px; color: #888; margin-bottom: 6px; }
.p-home .hc-divider { border: none; border-top: 1px solid #252525; margin: 10px 0; }
.p-home .hc-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; }
.p-home .hc-row-label { font-size: 11px; color: #888; }
.p-home .hc-row-val { font-size: 12px; font-weight: 600; color: #ccc; }
.p-home .home-quick-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 28px; }
.p-home .hqs-card { background: #1f1f1f; border: 1px solid #2a2a2a; border-radius:0; padding: 10px 14px; text-align: center; }
.p-home .hqs-val { font-size: 20px; font-weight: 700; }
.p-home .hqs-lbl { font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* ===== PAGE: biblioteca ===== */
.p-biblioteca .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 28px; }
.p-biblioteca .stat-card { background: #161616; border: 1px solid #2a2a2a; border-radius:0; padding: 12px 14px; text-align: center; }
.p-biblioteca .stat-val { font-size: 22px; font-weight: 700; margin-bottom: 3px; }
.p-biblioteca .stat-lbl { font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: .05em; }
.p-biblioteca .sub { font-size: 12px; color: #888; margin-bottom: 24px; }
.p-biblioteca .section { margin-bottom: 28px; }
.p-biblioteca .course-card { background: #161616; border: 1px solid #2a2a2a; border-left: 3px solid; border-radius:0; padding: 10px 13px; margin-bottom: 8px; cursor: pointer; }
.p-biblioteca .course-card:hover { background: #1c1c1c; }
.p-biblioteca .card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.p-biblioteca .card-name { font-size: 12px; font-weight: 600; color: #ddd; }
.p-biblioteca .card-sub { font-size: 9px; color: #888; margin-top: 2px; }
.p-biblioteca .tag { padding: 2px 7px; border-radius:0; font-size: 9px; font-weight: 600; white-space: nowrap; background: #2a2a2a; color: #666; }
.p-biblioteca .content-4col { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.p-biblioteca .secao-header { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; padding-bottom: 6px; margin-bottom: 10px; border-bottom: 1px solid #2a2a2a; display: flex; justify-content: space-between; align-items: center; }
.p-biblioteca .secao-sub { font-size: 9px; font-weight: 400; color: #777; text-transform: none; letter-spacing: 0; }
.p-biblioteca .secao-scroll { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-bottom: 8px; }
.p-biblioteca .secao-scroll::-webkit-scrollbar { display: none; }
.p-biblioteca .secao-ver-mais { font-size: 10px; color: #5a73e8; cursor: pointer; padding: 5px 0; border-top: 1px solid #1e1e1e; }
.p-biblioteca .secao-ver-mais:hover { color: #8fa4f0; }

/* ===== PAGE: senhas (full) ===== */
.p-senhas .page-content { max-width: 860px; }
.p-senhas .sub { font-size: 12px; color: #888; margin-bottom: 24px; }
.p-senhas .stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.p-senhas .stat-card { background: #161616; border: 1px solid #2a2a2a; border-radius:0; padding: 12px 14px; text-align: center; }
.p-senhas .stat-val { font-size: 22px; font-weight: 700; margin-bottom: 3px; }
.p-senhas .stat-lbl { font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: .05em; }

/* ===== PAGE: saude (additional) ===== */
.p-saude .page-content { max-width: 860px; }
.p-saude .stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.p-saude .stat-card { background: #161616; border: 1px solid #2a2a2a; border-radius:0; padding: 12px 14px; text-align: center; }
.p-saude .stat-val { font-size: 22px; font-weight: 700; margin-bottom: 3px; }
.p-saude .stat-lbl { font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: .05em; }

/* ===== PAGE: financas-pj (additional) ===== */
.p-financas-pj .page-content { max-width: 900px; }

/* ===== CAPTURA active state ===== */
.p-captura .capture-tag.active { border-color: #5a73e8; color: #e8e8e6; background: #1e2060; }
.p-captura .capture-input { min-height: 80px; }

/* ===== DAILY mood btn active ===== */
.p-daily .mood-btn.active { border-color: #f59e0b; background: #2a2410; }
.p-daily .mood-btn.active .mood-label { color: #f59e0b; }

/* ===== BIBLIOTECA (IDV layout) ===== */
.p-biblioteca {
  --amber: #f59e0b; --green: #3fcf7e; --red: #f87171; --ink2: #686560;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0b0b0b;
  color: #eae8e3;
}
.p-biblioteca .lib-main-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.lib-section { margin-bottom: 28px; padding-top: 12px; }
.lib-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.poster-card { cursor: pointer; border-radius:0; overflow: hidden; background: #1a1a1a; transition: transform .15s; }
.poster-card:hover { transform: translateY(-2px); }
.poster-img { position: relative; aspect-ratio: 2/3; background-size: cover; background-position: center; background-color: #222; display: flex; align-items: center; justify-content: center; }
.poster-letter { font-size: 40px; font-weight: 800; opacity: .5; }
.poster-status-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #000; }
.poster-info { padding: 7px 8px 8px; }
.poster-title { font-size: 11px; font-weight: 600; color: #e8e8e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.poster-meta { display: flex; flex-wrap: wrap; gap: 3px; }
.poster-tag { font-size: 9px; color: #888; background: #2a2a2a; border-radius:0; padding: 1px 4px; }
/* legacy compat */
.lib-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; background: #222; flex: 1; min-height: 0; }
.lib-quad { background: #111; display: flex; flex-direction: column; overflow: hidden; }
.lib-quad-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px 8px; border-bottom: 1px solid #1e1e1e; flex-shrink: 0; }
.lib-quad-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; flex: 1; }
.lib-quad-count { font-size: 10px; color: #555; }
.lib-quad-add { width: 22px; height: 22px; border-radius:0; background: #141210; border: 1px solid #333; color: #888; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; flex-shrink: 0; }
.lib-quad-add:hover { background: #1d1d1d; color: #e8e8e6; }
.lib-quad-body { flex: 1; overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.lib-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius:0; cursor: pointer; }
.lib-item:hover { background: #1c1c1c; }
.lib-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lib-item-body { flex: 1; min-width: 0; }
.lib-item-title { font-size: 12px; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-item-status { font-size: 10px; color: #666; margin-top: 1px; }
.lib-empty { font-size: 11px; color: #444; padding: 12px 0; text-align: center; }
.lib-inbox { margin: 12px 16px; border: 1px solid #2a2a2a; border-radius:0; overflow: hidden; }
.lib-inbox-head { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #888; padding: 8px 12px; background: #161616; border-bottom: 1px solid #222; }
.lib-inbox-item { padding: 8px 12px; border-bottom: 1px solid #1a1a1a; }
.lib-inbox-item:last-child { border-bottom: none; }
.lib-inbox-title { font-size: 12px; color: #ccc; margin-bottom: 6px; }
.lib-inbox-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.lib-inbox-btn { font-size: 10px; padding: 2px 8px; border-radius:0; background: #141210; border: 1px solid #333; color: #888; cursor: pointer; }
.lib-inbox-btn:hover { background: #1d1d1d; color: #e8e8e6; }

/* ===== CAPTURA inbox section ===== */
.capture-url-input { width: 100%; background: none; border: none; border-top: 1px solid #2a2a2a; color: #888; font-size: 12px; padding: 8px 14px; outline: none; font-family: inherit; }
.capture-tags-scroll { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.inbox-section { margin-bottom: 20px; border: 1px solid #2a2a2a; border-radius:0; overflow: hidden; }
.inbox-head { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #f59e0b; background: #1a1500; padding: 8px 14px; border-bottom: 1px solid #2a2a2a; }
.inbox-item { padding: 10px 14px; border-bottom: 1px solid #1a1a1a; }
.inbox-item:last-child { border-bottom: none; }
.inbox-item-title { font-size: 12px; color: #ccc; margin-bottom: 7px; }
.inbox-item-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.inbox-cat-btn { font-size: 10px; padding: 3px 9px; border-radius:0; background: #141210; border: 1px solid #1d1d1d; color: #888; cursor: pointer; }
.inbox-cat-btn:hover { background: #1d1d1d; color: #e8e8e6; }

/* ===== LAYOUT CLASSES (desktop defaults, overridden in mobile) ===== */
.home-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.daily-main-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px; margin-bottom: 20px; }
.proj-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.drawer-aloc-row { display: grid; grid-template-columns: 88px 1fr 108px 72px 24px; gap: 5px; margin-bottom: 7px; align-items: center; }
.drawer-expense-row { display: grid; grid-template-columns: 120px 1fr 90px 28px; gap: 6px; margin-bottom: 6px; align-items: center; }

/* ===== MOBILE NAV ===== */
.mobile-nav { display: none; align-items: center; padding: 10px 16px; background: #1f1f1f; border-bottom: 1px solid #1d1d1d; position: sticky; top: 0; z-index: 20; gap: 12px; }
.mobile-hamburger { width: 32px; height: 32px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; flex-shrink: 0; }
.mobile-hamburger span { width: 18px; height: 2px; background: #888; border-radius:0; display: block; transition: all .2s; }
.mobile-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-hamburger.open span:nth-child(2) { opacity: 0; }
.mobile-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-page-title { font-size: 14px; font-weight: 600; color: #e8e8e6; flex: 1; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 29; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  body { overflow-y: auto; }
  .app { flex-direction: column; height: auto; min-height: 100vh; }
  .main { overflow-x: hidden; overflow-y: visible; max-width: 100vw; }

  /* Mobile nav — fixed at top, clears iPhone status bar */
  .mobile-nav {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: 10px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    z-index: 20;
  }

  /* Push content below the fixed nav */
  .main { padding-top: calc(52px + env(safe-area-inset-top)); }

  /* Safe area bottom */
  .page-content { padding-bottom: max(60px, calc(40px + env(safe-area-inset-bottom))); }

  /* Prevent iOS zoom on input focus */
  input, select, textarea { font-size: 16px !important; }

  /* Sidebar: slide-in overlay */
  .sidebar { position: fixed; left: 0; top: 0; height: 100vh; z-index: 30; transform: translateX(-100%); transition: transform .25s ease; width: 240px; }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-overlay { display: block; }

  /* Page content */
  .page-content { padding: 20px 16px 60px; }
  .page-title { font-size: 22px; }

  /* Drawer full width on mobile */
  .drawer-panel { width: 100%; border-left: none; border-top: 2px solid #1d1d1d; top: auto; bottom: 0; height: 90vh; border-radius: 0; transform: translateY(100%); right: 0; }
  .drawer-panel.open { transform: translateY(0); }

  /* Home */
  .p-home .home-top { grid-template-columns: 1fr; }
  .p-home .home-quick-stats { grid-template-columns: repeat(2, 1fr); }
  .p-home .stats-row { flex-direction: column; }

  /* Agenda */
  .p-agenda .today-section { grid-template-columns: 1fr; }
  .p-agenda .wv-days { min-width: 360px; }
  .p-agenda .wv-day-col { min-width: 52px; }
  .p-agenda .wv-scroll { max-height: 480px; }
  .p-agenda .agenda-quick { grid-template-columns: 1fr; }

  /* Habitos */
  .p-habitos .col-header { display: none; }
  .p-habitos .habit-row { grid-template-columns: 20px 20px 1fr 60px; gap: 8px; }
  .p-habitos .h-cal { display: none; }
  .p-habitos .h-streak { display: none; }
  .p-habitos .h-pct { display: none; }
  .p-habitos .stats-row { flex-direction: column; gap: 8px; }

  /* Saude */
  .p-saude .registro-grid { grid-template-columns: repeat(2, 1fr); }
  .p-saude .cons-grid { grid-template-columns: 12px 1fr 70px; }
  .p-saude .cons-head:nth-child(4), .p-saude .cons-head:nth-child(5) { display: none; }
  .p-saude .cons-row > *:nth-child(4), .p-saude .cons-row > *:nth-child(5) { display: none; }
  .p-saude .med-grid { grid-template-columns: 1fr 80px; }
  .p-saude .med-head:nth-child(3), .p-saude .med-row > *:nth-child(3) { display: none; }
  .p-saude .treino-stats { grid-template-columns: repeat(2, 1fr); }

  /* Biblioteca */
  .lib-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, auto); }
  .lib-quad { min-height: 200px; max-height: 300px; }

  /* Notas / Referencias col layout */
  .p-notas .cols, .p-referencias .ref-cols { grid-template-columns: 1fr; }

  /* Financeiro */
  .p-financas .two-col { grid-template-columns: 1fr; }

  /* Projetos */
  .p-projetos .proj-list-header { display: none; }
  .p-projetos .proj-row { grid-template-columns: 1fr auto; }
  .p-projetos .proj-row > *:nth-child(3), .p-projetos .proj-row > *:nth-child(4) { display: none; }

  /* Team — nome | pago mês | pago total; oculta projetos/relação/contagens */
  .p-team .list-header { display: none; }
  .p-team .stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .p-team .stat { padding: 10px 12px; }
  .p-team .member-row { grid-template-columns: 1fr 70px 70px; gap: 8px; }
  .p-team .member-row > *:nth-child(2),
  .p-team .member-row > *:nth-child(3),
  .p-team .member-row > *:nth-child(4),
  .p-team .member-row > *:nth-child(5) { display: none; }
  .p-team .m-paid-val { font-size: 11px; text-align: right; }
  .p-team .m-paid-lbl { font-size: 9px; color: #666; text-align: right; }

  /* Senhas */
  .p-senhas .tbl-head { grid-template-columns: 28px 1fr auto; }
  .p-senhas .tbl-head > *:nth-child(4), .p-senhas .tbl-head > *:nth-child(5) { display: none; }
  .p-senhas .tbl-row { grid-template-columns: 28px 1fr auto; }
  .p-senhas .tbl-row > *:nth-child(4), .p-senhas .tbl-row > *:nth-child(5) { display: none; }

  /* Estudos */
  .p-estudos .two-col { grid-template-columns: 1fr; }

  /* Captura */
  .p-captura .body-grid { grid-template-columns: 1fr; }
  .capture-tags-scroll { gap: 4px; }
  .capture-tag { font-size: 10px; padding: 3px 7px; }

  /* Stats rows */
  .stats-row { flex-wrap: wrap; }
  .action-row { flex-wrap: wrap; }

  /* Layout classes — override to single column */
  .home-twocol { grid-template-columns: 1fr; }
  .daily-main-grid { grid-template-columns: 1fr; }
  .proj-two-col { grid-template-columns: 1fr; }

  /* Drawer forms — stack on mobile */
  .drawer-aloc-row { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .drawer-aloc-row > *:nth-child(3) { grid-column: 1; }
  .drawer-aloc-row > *:nth-child(4) { grid-column: 2; }
  .drawer-aloc-row > *:nth-child(5) { grid-column: 2; grid-row: 1; justify-self: end; }
  .drawer-expense-row { grid-template-columns: 1fr 28px; grid-template-rows: auto auto; }
  .drawer-expense-row > *:nth-child(1) { grid-column: 1; }
  .drawer-expense-row > *:nth-child(2) { grid-column: 1; }
  .drawer-expense-row > *:nth-child(3) { grid-column: 1; }
  .drawer-expense-row > *:nth-child(4) { grid-column: 2; grid-row: 1 / span 3; align-self: center; }

  /* Calendar */
  .cal-header { flex-wrap: wrap; gap: 6px; }
  .cal-month-cell { min-height: 60px; }
  .cal-view-tabs { gap: 2px; }
  .cal-tab { padding: 4px 8px; font-size: 11px; }

  /* Touch targets */
  .checkbox { width: 18px !important; height: 18px !important; min-width: 18px !important; }
  .habit-check { width: 18px !important; height: 18px !important; }
  button { min-height: 36px; }
  .cal-tab, .filter-tab, .tag-btn { min-height: 32px; }

  /* Projetos cards — prevent horizontal overflow */
  .proj-card { min-width: 0; overflow: hidden; }
  .p-projetos .stats-row { flex-direction: column; }

  /* Clientes — 1 card por linha, stats 2x2 */
  .p-clientes .cards-grid { grid-template-columns: 1fr; }
  .p-clientes .stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .p-clientes .stat-lucro-bb { grid-column: 1 / -1; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; }
  .p-clientes .stat-lucro-bb .stat-label { margin-bottom: 0; }
  .p-clientes .stat-lucro-bb .stat-value { font-size: 18px !important; }
  .p-clientes .stat { padding: 10px 12px; }

  /* Financeiro / PJ — balances 2x2 */
  .p-financas .balances { grid-template-columns: 1fr 1fr; gap: 8px; }
  .p-financas .bal { padding: 10px 12px; }
  .p-financas .bal-value { font-size: 18px; }
  .p-financas-pj .balances { grid-template-columns: 1fr 1fr; gap: 8px; }
  .p-financas-pj .bal { padding: 10px 12px; }
  .p-financas-pj .bal-value { font-size: 18px; }

  /* Ferramentas — esconde só categoria (col 3), mantém essencial+mês+ano */
  .p-ferramentas .col-header,
  .p-ferramentas .tool-row,
  .p-ferramentas .sec-total { grid-template-columns: 26px 1fr 36px 58px 58px; gap: 8px; }
  .p-ferramentas .col-header > *:nth-child(3),
  .p-ferramentas .tool-row > *:nth-child(3),
  .p-ferramentas .sec-total > *:nth-child(3) { display: none; }
  .p-ferramentas .grand-total { flex-direction: column; gap: 10px; align-items: stretch; }
  .p-ferramentas .grand-total-vals { justify-content: flex-start; gap: 16px; }

  /* Notas — stats 2x2 */
  .p-notas .stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .p-notas .stat { padding: 10px 12px; }

  /* Daily view */
  .mood-row { flex-wrap: wrap; gap: 4px; }

  /* Prevent any fixed-width elements from causing overflow */
  .section-card, .stat, .hqs-card { min-width: 0; }
  table { display: block; overflow-x: auto; max-width: 100%; }
}

/* ===== TERMINAL LUXE — Design Refresh ===== */

/* Base */
body {
  font-family: var(--bb-font-ui) !important;
  background: var(--bb-bg) !important;
  color: var(--bb-text) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.app { background: var(--bb-bg); }
.main { background: var(--bb-bg) !important; }

/* Sidebar */
.sidebar {
  background: #0d0d0d !important;
  border-right: 1px solid var(--bb-border) !important;
  width: 200px !important;
}
.sidebar-workspace {
  padding: 14px 14px 16px !important;
  font-family: var(--bb-font-ui) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: var(--bb-text) !important;
  border-bottom: 1px solid var(--bb-border);
  margin-bottom: 4px;
  text-decoration: none;
}
.workspace-icon {
  background: var(--bb-accent) !important;
  border-radius:0 !important;
}
.sidebar-section {
  font-family: var(--bb-font-ui) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  color: var(--bb-amber) !important;
  opacity: 0.7;
  padding: 13px 14px 4px !important;
}
.sidebar-item {
  font-family: var(--bb-font-ui) !important;
  font-size: 12.5px !important;
  padding: 5px 14px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  color: var(--bb-text-muted) !important;
  position: relative !important;
  transition: color 0.1s, background 0.1s !important;
}
.sidebar-item .si-icon { display: flex; align-items: center; flex-shrink: 0; }
.sidebar-item .si-icon svg {
  width: 14px; height: 14px;
  stroke-width: 1.75;
  stroke: var(--bb-text-muted);
  fill: none;
  transition: stroke 0.1s;
}
.sidebar-item:hover .si-icon svg { stroke: var(--bb-text-2); }
.sidebar-item.active .si-icon svg { stroke: var(--bb-text); }
.ws-icon svg {
  width: 17px; height: 17px;
  stroke-width: 1.75;
  stroke: var(--bb-amber);
  fill: none;
  flex-shrink: 0;
}
.sidebar-item:hover {
  color: var(--bb-text-2) !important;
  background: rgba(255,255,255,0.025) !important;
}
.sidebar-item.active {
  color: var(--bb-text) !important;
  background: transparent !important;
  font-weight: 600 !important;
}
.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 16px;
  background: var(--bb-amber);
  border-radius:0 0;
}
.sidebar-divider { border-color: var(--bb-border) !important; margin: 3px 0 !important; }

/* Toolbar */
.page-toolbar {
  background: var(--bb-bg) !important;
  border-bottom: 1px solid var(--bb-border) !important;
}
.toolbar-btn {
  font-family: var(--bb-font-ui) !important;
  background: transparent !important;
  border: 1px solid var(--bb-border) !important;
  color: var(--bb-text-muted) !important;
  border-radius:0 !important;
  transition: all 0.12s !important;
}
.toolbar-btn:hover {
  background: var(--bb-bg-raised) !important;
  color: var(--bb-text-2) !important;
  border-color: var(--bb-border-mid) !important;
}

/* Page header */
.page-icon { display: none !important; }
.page-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 4px !important;
}
.page-header-icon { display: flex; align-items: center; flex-shrink: 0; }
.page-header-icon svg {
  width: 24px; height: 24px;
  stroke-width: 1.75;
  stroke: var(--bb-text);
  fill: none;
}
.page-header .page-title { margin-bottom: 0 !important; }
.page-title {
  font-family: var(--bb-font-ui) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: var(--bb-text) !important;
}
.page-subtitle, .page-meta, .sub { color: var(--bb-text-muted) !important; }

/* Section labels */
.sec-label,
.secao-header,
.p-agenda .agenda-sec-lbl,
.p-agenda .upcoming-head,
.p-captura .dest-title,
.p-daily .section-label {
  font-family: var(--bb-font-ui) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  color: var(--bb-text-dim) !important;
  border-bottom-color: var(--bb-border) !important;
}

/* Numbers — monospace throughout */
.reg-val,
.stat-value, .stat-val,
.t-stat-val,
.bal-value, .bal-value,
.hqs-val, .hc-main-val,
.h-streak, .h-pct,
.progress-main,
.tx-val,
.value-num,
.m-paid-val,
.cartao-card-val,
.extrato-footer-val,
.grand-total-num {
  font-family: var(--bb-font-mono) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em !important;
}

/* Cards */
.reg-card,
.p-habitos .stat, .p-clientes .stat, .p-ferramentas .stat,
.p-notas .stat, .p-referencias .stat, .p-projetos .stat,
.p-team .stat, .p-estudos .stat-card, .p-biblioteca .stat-card,
.p-senhas .stat-card, .p-saude .stat-card, .t-stat,
.p-financas .bal, .p-financas-pj .bal,
.p-home .home-card, .p-home .stat-card {
  background: var(--bb-bg-card) !important;
  border-color: var(--bb-border) !important;
  border-radius:0 !important;
}
.p-home .home-card { transition: border-color 0.15s !important; }
.p-home .home-card:hover { border-color: var(--bb-border-mid) !important; }

/* hqs-card: preserve inline border-top color from JS */
.p-home .hqs-card {
  background: var(--bb-bg-card) !important;
  border-left-color: var(--bb-border) !important;
  border-right-color: var(--bb-border) !important;
  border-bottom-color: var(--bb-border) !important;
  border-radius:0 !important;
}

/* Drawer — IDV overrides (remove stale theming vars) */
.drawer-panel { background: #111111 !important; border-left: 2px solid #1d1d1d !important; }
.drawer-field { border-bottom-color: #1d1d1d !important; }
.drawer-title { color: #eae8e3 !important; }

/* Mobile nav */
.mobile-nav {
  background: #0d0d0d !important;
  border-bottom-color: var(--bb-border) !important;
}
.mobile-page-title {
  font-family: var(--bb-font-ui) !important;
  font-weight: 600 !important;
  color: var(--bb-text) !important;
}

/* ════ SIDEBAR v2 — 60px vertical ════ */
/* Sobrescreve as regras .sidebar existentes */
.sidebar {
  width: 60px !important;
  background: #111;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 1px, transparent 1px 7px);
  border-right: 3px solid #111;
  flex-shrink: 0;
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  overflow: visible !important;
  position: relative;
  z-index: 100;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.04), 3px 0 12px rgba(0,0,0,.55);
}
.sb2-logo {
  background: #f59e0b;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  border-bottom: 3px solid #111;
  flex-shrink: 0;
}
.sb2-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.sb2-foot {
  margin-top: auto;
  flex-shrink: 0;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  border-top: 1px solid #2a2520;
}
.sb2-theme {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #f59e0b;
  font-size: 17px;
  line-height: 1;
  border: 1px solid #3a352e;
  background: transparent;
  user-select: none;
  transition: background .15s, color .15s;
}
.sb2-theme:hover { background: #1c1c1c; color: #fff; }

/* ── AreaTabs: barra de abas no topo da área (Planner/Pessoal/Inventário) ── */
.area-tabs {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: stretch; height: 40px; flex-shrink: 0;
  background: #0b0b0b;
  border-bottom: 1px solid #1d1d1d;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
}
.area-tabs-name { display: flex; align-items: center; padding: 0 16px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #f59e0b; border-right: 1px solid #1d1d1d; }
.area-tab { display: flex; align-items: center; padding: 0 16px; font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #57534e; border-right: 1px solid #1d1d1d; cursor: pointer; }
.area-tab:hover { color: #a8a29e; }
.area-tab.on { color: #f59e0b; box-shadow: inset 0 -2px 0 #f59e0b; }

/* ── Pessoal/Inventário na IDV Captura: headers de seção = texto amber + linha amber ── */
.p-daily .section-label,
.p-saude .sec-label,
.p-habitos .col-header,
.p-ferramentas .sec-label,
.p-ferramentas .col-header,
.p-estudos .sec-label,
.p-senhas .sec-label {
  color: #f59e0b;
  border-bottom-color: #f59e0b;
}
.sb2-group {
  position: relative;
}
.sb2-item {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  color: #555;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 0;
  font-family: 'Space Mono', monospace;
  font-weight: 600;
  border-left: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  width: 60px;
}
.sb2-item:hover,
.sb2-item.active {
  color: #f59e0b;
  border-left-color: #f59e0b;
  background: rgba(245,158,11,0.06);
}
/* Flyout — aparece à direita do sidebar */
.sb2-flyout {
  position: absolute;
  left: 60px;
  top: 0;
  background: #111;
  border: 2px solid #f59e0b;
  border-left: 3px solid #f59e0b;
  min-width: 140px;
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 6px 0;
}
.sb2-group:hover .sb2-flyout {
  display: flex;
}
.sb2-sub {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.sb2-sub:hover {
  color: #f59e0b;
  background: rgba(245,158,11,0.06);
}
.sb2-sub.active {
  color: #f59e0b;
}
/* main sem overflow quando Home está ativa */
.main--dashboard {
  overflow: hidden !important;
}
@media (max-width: 768px) {
  .sidebar { z-index: 100 !important; }
}

/* ════ HOME v2 — Shell ════ */
.p-home-v2 {
  --bg: #ede9e0; --bg2: #e5e1d7; --card: #f0ece4;
  --ink: #111111; --ink2: #444444; --muted: #888888;
  --border: #111111; --amber: #f59e0b;
  --green: #16a34a; --red: #dc2626; --sb: #111111;
  --c-sf: #8b5cf6; --c-ds: #f43f5e; --c-bb: #f59e0b;
  --c-em: #3b82f6; --c-personal: #888;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Space Mono', monospace;
  background: var(--bg);
  color: var(--ink);
}
.p-home-v2.dark {
  --bg: #0b0b0b; --bg2: #111110; --card: #141210;
  --ink: #eae8e3; --ink2: #a8a29e; --muted: #57534e;
  --border: #1d1d1d; --sb: #0b0b0b;
}
.h-topbar {
  height: 50px;
  flex-shrink: 0;
  background: var(--sb);
  border-bottom: 3px solid var(--amber);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  z-index: 200;
}
.h-tb-name {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.h-tb-grt {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 14px;
  white-space: nowrap;
}
.h-tb-wx { display:flex; align-items:center; gap:5px; font-family:'Space Mono',monospace; font-size:9px; font-weight:700; color:#bbb; letter-spacing:0.5px; margin-left:14px; white-space:nowrap; }
.h-tb-wx-icon { display:flex; align-items:center; color:#aaa; }
.h-tb-date {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #444;
  letter-spacing: 1px;
  margin-right: 8px;
}
.h-priv-btn, .h-theme-btn {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  color: #555;
  padding: 3px 8px;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.h-priv-btn:hover, .h-theme-btn:hover { color: var(--amber); border-color: var(--amber); }
.h-priv-btn.active { color: var(--amber); border-color: var(--amber); }
/* Canonical PageHeader: controls cluster (pushes right when no date present) + breadcrumb */
.h-tb-ctrls { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.h-tb-ctrls .h-priv-btn, .h-tb-ctrls .h-theme-btn { margin-left: 0; }
.h-tb-crumb { font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink2); display: flex; align-items: center; }
.h-tb-crumb .sep { color: var(--muted); margin-right: 8px; }
.h-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 340px 1fr;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

/* ════ HOME v2 — Greeting ════ */
.h-greeting {
  grid-column: 1; grid-row: 1;
  border-right: 3px solid var(--border);
  padding: 6px 0 42px;
  display: flex;
  align-items: flex-end;
}
.h-g-text {
  flex: 1;
  padding: 0 20px 0 18px;
  border-right: 2px solid var(--border);
}
.h-g-sub  { font-family:'Space Mono',monospace; font-size:7px; color:var(--muted); letter-spacing:2px; text-transform:uppercase; margin-bottom:8px; }
.h-g-l1   { font-family:'Space Mono',monospace; font-size:22px; font-weight:900; color:var(--ink2); text-transform:uppercase; letter-spacing:-0.5px; line-height:1; }
.h-g-l2   { font-family:'Space Mono',monospace; font-size:40px; font-weight:900; color:var(--ink); text-transform:uppercase; letter-spacing:-1.5px; line-height:0.9; }
.h-g-amber { color:var(--amber); }
.h-g-cal  { width:148px; padding:0 18px 0 14px; flex-shrink:0; display:flex; flex-direction:column; justify-content:flex-end; }
.h-gcal-hdr { font-family:'Space Mono',monospace; font-size:7px; font-weight:700; color:var(--ink2); letter-spacing:1.5px; text-transform:uppercase; margin-bottom:6px; display:flex; justify-content:space-between; }
.h-gcal-nav { color:var(--muted); cursor:pointer; display:flex; gap:6px; }
.h-gcal-grid { display:grid; grid-template-columns:repeat(7,1fr); }
.h-gcal-dow { font-family:'Space Mono',monospace; font-size:5.5px; color:var(--muted); text-align:center; padding:2px 0; text-transform:uppercase; }
.h-gcal-d   { font-family:'Space Mono',monospace; font-size:9px; color:var(--ink2); text-align:center; padding:3px 1px; border-radius:0; position:relative; line-height:1.5; }
.h-gcal-d.today { background:var(--amber); color:var(--bg); font-weight:700; }
.h-gcal-d.has-ev::after { content:''; position:absolute; bottom:1px; left:50%; transform:translateX(-50%); width:2px; height:2px; border-radius:50%; background:var(--amber); }
.h-gcal-d.other { color:var(--muted); opacity:0.4; }

/* ════ HOME v2 — Widgets ════ */
.h-widgets {
  grid-column: 2; grid-row: 1;
  padding: 12px 16px;
  background: var(--bg2);
  display: flex;
  gap: 12px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  height: 166px;
}
.h-widgets::-webkit-scrollbar { height: 0; }
.hw { border: 2px solid var(--border); background: var(--card); padding: 8px 12px; min-width: 155px; flex-shrink: 0; overflow: hidden; }
.hw-scroll { display: flex; flex-direction: column; }
.hw-body { flex: 1; overflow-y: auto; min-height: 0; }
.hw-body::-webkit-scrollbar { display: none; }
.hwt { font-family:'Space Mono',monospace; font-size:7px; color:var(--muted); letter-spacing:2px; text-transform:uppercase; margin-bottom:6px; padding-bottom:5px; border-bottom:1px solid var(--border); }
.hwl { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:2px 0; }
.hwln { font-size:10px; color:var(--ink2); display:flex; align-items:center; gap:5px; white-space:nowrap; }
.hwd { width:4px; height:4px; border-radius:50%; flex-shrink:0; }
.hwv { font-family:'Space Mono',monospace; font-size:10px; font-weight:700; white-space:nowrap; }
.hwvd { font-family:'Space Mono',monospace; font-size:8px; font-weight:700; white-space:nowrap; }
.hwpos { color:var(--green); } .hwneg { color:var(--red); } .hwneu { color:var(--ink2); }
/* fin-card blur */
.h-fin-card .hwv,
.h-fin-card .hwvd { transition: filter 0.2s; }
.p-home-v2.privacy .h-fin-card .hwv,
.p-home-v2.privacy .h-fin-card .hwvd { filter: blur(6px); user-select: none; }
/* sparkline widgets */
.hw-big { font-family:'Space Mono',monospace; font-size:20px; font-weight:700; color:var(--ink); line-height:1; }
.hw-unit { font-family:'Space Mono',monospace; font-size:9px; color:var(--muted); }
.hw-delta { font-family:'Space Mono',monospace; font-size:9px; }
.hw-spark { width:100%; height:52px; display:block; }
.hw-dates { display:flex; justify-content:space-between; margin-top:3px; }
.hw-dl { font-family:'Space Mono',monospace; font-size:5.5px; color:var(--muted); text-align:center; flex:1; }
/* vasco */
.hv-form { display:flex; gap:3px; }
.hv-dot { width:13px; height:13px; font-family:'Space Mono',monospace; font-size:6px; font-weight:700; color:#fff; display:flex; align-items:center; justify-content:center; border-radius:0; flex-shrink:0; }
.hv-dot.v { background:var(--green); } .hv-dot.e { background:#888; } .hv-dot.d { background:var(--red); }
.hv-standing { font-family:'Space Mono',monospace; font-size:9px; font-weight:700; color:var(--ink2); letter-spacing:0.5px; padding-left:8px; }
.hv-standing strong { color:var(--amber); }
.hv-result { display:flex; align-items:center; justify-content:space-between; margin-bottom:2px; }
.hv-score { display:flex; align-items:center; gap:4px; }
/* tabela */
.hbr-hdr { font-family:'Space Mono',monospace; font-size:7px; color:var(--muted); display:flex; gap:4px; padding:0 0 4px; border-bottom:1px solid var(--border); margin-bottom:2px; flex-shrink:0; }
.hbr-row { display:flex; align-items:center; gap:4px; padding:2px 0; border-bottom:1px solid rgba(0,0,0,0.05); }
.hbr-row:last-child { border-bottom:none; }
.hbr-pos { font-family:'Space Mono',monospace; font-size:8px; color:var(--muted); width:12px; flex-shrink:0; text-align:right; }
.hbr-logo { width:16px; height:16px; object-fit:contain; flex-shrink:0; }
.hbr-name { font-size:9px; font-weight:600; color:var(--ink2); flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hbr-pts { font-family:'Space Mono',monospace; font-size:9px; font-weight:700; color:var(--ink); width:20px; text-align:right; flex-shrink:0; }
.hbr-j { font-family:'Space Mono',monospace; font-size:7px; color:var(--muted); width:14px; text-align:right; flex-shrink:0; }
.hbr-row.me .hbr-name { color:var(--amber); font-weight:700; }
.hbr-row.me .hbr-pts { color:var(--amber); }
.hw-br { min-width:120px; max-width:140px; }

/* ════ HOME v2 — Painel Esquerdo ════ */
.h-left-col {
  grid-column: 1; grid-row: 2;
  border-right: 3px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.h-prog-late { flex: 1.2; display: flex; flex-direction: column; }

.h-prog-block {
  background: #111; border-bottom: 3px solid var(--border);
  padding: 14px 18px 16px; flex-shrink: 0; min-height: 130px;
}
.h-blk-label {
  font-family: 'Space Mono', monospace; font-size: 8px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; color: #999;
}
.h-prog-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.h-prog-row:last-child { margin-bottom: 0; }
.h-prog-period { font-family:'Space Mono',monospace; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:1px; width:30px; flex-shrink:0; }
.h-prog-row.highlight .h-prog-period { color:var(--amber); font-size:10px; }
.h-prog-row.dim .h-prog-period { color:#777; }
.h-prog-bar-wrap { flex: 1; }
.h-prog-track { width:100%; background:#1e1b17; border:1.5px solid #222; position:relative; overflow:hidden; }
.h-prog-row.highlight .h-prog-track { height:10px; }
.h-prog-row.dim .h-prog-track { height:6px; }
.h-prog-fill { height:100%; }
.h-prog-row.highlight .h-prog-fill { background:var(--amber); }
.h-prog-row.dim .h-prog-fill { background:#3a3530; }
.h-prog-frac { font-family:'Space Mono',monospace; font-weight:700; text-align:right; flex-shrink:0; width:40px; white-space:nowrap; }
.h-prog-row.highlight .h-prog-frac { font-size:13px; color:#e8e4dc; }
.h-prog-row.dim .h-prog-frac { font-size:10px; color:#666; }

.h-late-block {
  background: var(--amber); border-bottom: 3px solid var(--border);
  padding: 12px 18px 14px; flex: 1; min-height: 100px;
}
.h-late-block .h-blk-label { color: #92400e; margin-bottom: 8px; }
.h-late-main { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.h-late-num  { font-family:'Space Mono',monospace; font-size:36px; font-weight:700; color:#000; line-height:1; }
.h-late-sub  { font-family:'Space Mono',monospace; font-size:9px; color:#92400e; text-transform:uppercase; letter-spacing:1px; }
.h-late-list { display:flex; flex-direction:column; gap:4px; }
.h-late-item { font-family:'Space Mono',monospace; font-size:9px; color:#78350f; padding-left:8px; border-left:2px solid rgba(0,0,0,0.2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
.h-late-more { display:block; margin-top:8px; font-family:'Space Mono',monospace; font-size:7px; font-weight:700; color:#78350f; letter-spacing:1px; text-transform:uppercase; background:none; border:none; cursor:pointer; padding:0; width:100%; text-align:right; }
.h-late-more:hover { color:#000; }
/* dark: bloco Atrasadas no esquema Captura (preto + linha amber, não slab amber) */
.p-home-v2.dark .h-late-block { background: var(--bg); border-bottom: 1px solid var(--amber); }
.p-home-v2.dark .h-late-block .h-blk-label { color: var(--amber); }
.p-home-v2.dark .h-late-num { color: var(--amber); }
.p-home-v2.dark .h-late-sub { color: var(--muted); }
.p-home-v2.dark .h-late-item { color: var(--ink2); border-left-color: var(--amber); }
.p-home-v2.dark .h-late-more { color: var(--muted); }
.p-home-v2.dark .h-late-more:hover { color: var(--amber); }

.h-dl-block { background:#111; flex:1; display:flex; flex-direction:column; overflow:hidden; }
.h-dl-block .h-blk-label { color:#999; padding:14px 18px 0; margin-bottom:10px; }
.h-dl-list { flex:1; overflow-y:auto; }
.h-dl-list::-webkit-scrollbar { width:0; }
.h-dl-row { display:flex; align-items:center; padding:10px 18px; border-bottom:1px solid #161412; cursor:pointer; transition:background 0.1s; gap:8px; }
.h-dl-row:hover { background:#161412; }
.h-dl-row:last-child { border-bottom:none; }
.h-dl-num  { font-family:'Space Mono',monospace; font-size:22px; font-weight:700; line-height:1; min-width:16px; text-align:left; flex-shrink:0; }
.h-dl-unit { font-family:'Space Mono',monospace; font-size:8px; text-transform:uppercase; letter-spacing:0.5px; align-self:flex-end; padding-bottom:2px; flex-shrink:0; width:10px; }
.h-dl-name { font-family:'Space Mono',monospace; font-size:9.5px; font-weight:700; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-left:4px; }
.h-dl-row.urgent .h-dl-num { color:#d95555; } .h-dl-row.urgent .h-dl-unit { color:#a06060; } .h-dl-row.urgent .h-dl-name { color:#c98888; }
.h-dl-row.soon   .h-dl-num { color:var(--amber); } .h-dl-row.soon .h-dl-unit { color:#a88035; } .h-dl-row.soon .h-dl-name { color:#b89858; }
.h-dl-row.normal .h-dl-num { color:#888; } .h-dl-row.normal .h-dl-unit { color:#666; } .h-dl-row.normal .h-dl-name { color:#ccc; }

/* ════ HOME v2 — Bottom ════ */
.h-bottom {
  grid-column: 2; grid-row: 2;
  display: grid;
  grid-template-columns: 0.82fr 1.6fr;
  overflow: hidden;
}
.h-left-stack { display:flex; flex-direction:column; overflow:hidden; border-right:3px solid var(--border); }
.h-panel-head { height:40px; flex-shrink:0; background:var(--ink); border-bottom:3px solid var(--border); display:flex; align-items:center; padding:0 14px; }
.h-panel-title { font-family:'Space Mono',monospace; font-size:8px; color:var(--bg); letter-spacing:2px; text-transform:uppercase; }
.h-panel-count { font-family:'Space Mono',monospace; font-size:8px; color:var(--amber); margin-left:auto; }
.h-add-btn { font-family:'Space Mono',monospace; font-size:11px; font-weight:700; color:#555; padding:2px 7px; cursor:pointer; border:1px solid #333; background:transparent; margin-left:8px; line-height:1; }
.h-add-btn:hover { color:var(--amber); border-color:var(--amber); }
.p-home-v2.dark .h-add-btn { color:#78350f; border-color:rgba(0,0,0,0.2); }
.p-home-v2.dark .h-add-btn:hover { color:#111; border-color:#111; }
.h-panel-scroll { overflow-y:auto; flex:1; }
.h-panel-scroll::-webkit-scrollbar { width:0; }
.h-tasks-panel   { display:flex; flex-direction:column; flex:1.2; min-height:0; overflow:hidden; border-bottom:3px solid var(--border); }
.h-upcoming-panel { display:flex; flex-direction:column; flex:1; overflow:hidden; }

/* Task rows */
.h-task-row { padding:8px 14px; border-bottom:2px solid var(--border); display:flex; align-items:center; gap:0; background:var(--card); cursor:pointer; }
.h-task-row:last-child { border-bottom:none; }
.h-task-row:hover { background:var(--bg2); }
.h-t-box { width:12px; height:12px; border:2px solid var(--border); flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:7px; color:transparent; }
.h-t-box.done { background:transparent; border-color:rgba(245,158,11,.45); color:var(--amber); font-size:11px; font-weight:700; }
.h-t-stripe { width:3px; align-self:stretch; flex-shrink:0; border-radius:0; margin:0 7px; }
.h-t-text { font-size:11px; font-weight:500; color:var(--ink2); flex:1; line-height:1.3; }
.h-t-text.done { text-decoration:line-through; color:var(--muted); }
.h-t-chip { font-family:'Space Mono',monospace; font-size:7px; font-weight:700; padding:2px 5px; background:var(--ink); color:var(--amber); flex-shrink:0; white-space:nowrap; min-width:22px; text-align:center; margin-left:6px; }

/* Upcoming rows */
.h-ut-row { padding:8px 14px; border-bottom:2px solid var(--border); display:flex; align-items:center; gap:0; background:var(--card); cursor:pointer; }
.h-ut-row:last-child { border-bottom:none; }
.h-ut-row:hover { background:var(--bg2); }
.h-ut-box { width:12px; height:12px; border:2px solid var(--border); flex-shrink:0; }
.h-ut-stripe { width:3px; align-self:stretch; flex-shrink:0; border-radius:0; margin:0 7px; }
.h-ut-text { font-size:11px; font-weight:500; color:var(--ink2); flex:1; line-height:1.3; }
.h-ut-due { font-family:'Space Mono',monospace; font-size:7px; padding:2px 0; border:1px solid; text-transform:uppercase; flex-shrink:0; white-space:nowrap; margin-left:6px; width:48px; text-align:center; }
.h-ut-due.hoje   { border-color:var(--amber); color:var(--amber); }
.h-ut-due.amanha { border-color:#f97316; color:#f97316; }
.h-ut-due.semana { border-color:var(--muted); color:var(--muted); }
.h-ut-due.atrasado { border-color:var(--red); color:var(--red); }

/* Calendário */
.h-cal-panel { display:flex; flex-direction:column; overflow:hidden; min-width:0; }
.h-cal-toolbar { height:40px; flex-shrink:0; background:var(--ink); border-bottom:3px solid var(--border); display:flex; align-items:center; padding:0 12px; }
.h-cal-title { font-family:'Space Mono',monospace; font-size:8px; color:var(--bg); letter-spacing:2px; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.h-cal-nav { display:flex; gap:2px; margin-left:auto; }
.h-cal-nav-btn { font-family:'Space Mono',monospace; font-size:8px; color:#666; padding:3px 6px; cursor:pointer; border:1px solid #333; background:transparent; }
.h-cal-nav-btn:hover { color:var(--amber); border-color:var(--amber); }
.h-view-toggle { display:flex; margin-left:10px; }
.h-vt-btn { font-family:'Space Mono',monospace; font-size:7px; letter-spacing:1px; text-transform:uppercase; padding:3px 8px; cursor:pointer; border:1px solid #333; background:transparent; color:#555; }
.h-vt-btn:not(:first-child) { border-left:none; }
.h-vt-btn.active { background:var(--amber); border-color:var(--amber); color:#000; font-weight:700; }
.h-cal-body { flex:1; overflow:hidden; display:flex; flex-direction:column; }
.h-cal-view { display:none; flex:1; flex-direction:column; overflow:hidden; }
.h-cal-view.active { display:flex; }
/* Drawers */
.h-late-drawer,.h-sport-panel { position:fixed; right:0; top:50px; bottom:0; width:360px; background:#141210; border-left:1px solid #1e1b17; transform:translateX(100%); transition:transform 0.22s cubic-bezier(.4,0,.2,1); z-index:165; display:flex; flex-direction:column; overflow:hidden; }
.h-late-drawer.open,.h-sport-panel.open { transform:translateX(0); }
.h-ld-match { display:flex; flex-direction:column; gap:3px; padding:10px 0; border-bottom:1px solid rgba(255,255,255,0.07); cursor:default; }
.h-ld-match-row { display:flex; align-items:center; gap:6px; }
.h-ld-match-meta { font-size:9px; color:#555; padding-left:22px; }
.h-ld-br-row { display:flex; align-items:center; gap:6px; padding:5px 0; border-bottom:1px solid rgba(255,255,255,0.05); }
.h-ld-br-row.me { background:#1a1600; border-radius:0; padding-left:4px; }
.h-ld-br-pos { font-family:'Space Mono',monospace; font-size:9px; color:#555; width:14px; text-align:right; flex-shrink:0; }
.h-ld-br-logo { width:16px; height:16px; object-fit:contain; flex-shrink:0; }
.h-ld-br-name { font-size:10px; color:#ccc; flex:1; }
.h-ld-br-row.me .h-ld-br-name { color:#f59e0b; font-weight:700; }
.h-ld-br-pts { font-family:'Space Mono',monospace; font-size:10px; font-weight:700; color:#e5e1d7; width:24px; text-align:right; }
.h-ld-br-j { font-family:'Space Mono',monospace; font-size:9px; color:#555; width:18px; text-align:right; }
.h-ld-head { padding:10px 16px; background:#f59e0b; flex-shrink:0; display:flex; align-items:center; justify-content:space-between; }
.h-ld-title { font-family:'Space Mono',monospace; font-size:9px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#111; }
.h-ld-close { font-size:14px; color:#78350f; background:none; border:none; cursor:pointer; padding:0; line-height:1; }
.h-ld-section { font-family:'Space Mono',monospace; font-size:8px; font-weight:700; color:#f59e0b; text-transform:uppercase; letter-spacing:.1em; padding:12px 0 5px; border-bottom:1px solid #2a2520; margin-bottom:2px; }
.h-ld-list { flex:1; overflow-y:auto; padding:12px 18px; }
.h-ld-row { display:flex; align-items:center; gap:8px; padding:9px 0; border-bottom:1px solid rgba(255,255,255,0.07); cursor:pointer; }
.h-ld-row:last-child { border-bottom:none; }
.h-ld-stripe { width:3px; align-self:stretch; flex-shrink:0; border-radius:0; }
.h-ld-text { font-size:10px; font-weight:600; color:#e5e1d7; flex:1; line-height:1.3; }
.h-ld-days { font-family:'Space Mono',monospace; font-size:8px; font-weight:700; color:#f59e0b; white-space:nowrap; }

/* ════ HOME v2 — Dark mode amber headers ════ */
.p-home-v2.dark .h-panel-head { background:var(--bg); border-bottom:1px solid var(--amber); box-shadow:0 3px 8px rgba(0,0,0,.45); }
.p-home-v2.dark .h-panel-title { color:var(--amber); }
.p-home-v2.dark .h-panel-count { color:var(--muted); }
.p-home-v2.dark .h-cal-toolbar { background:var(--bg); border-bottom:1px solid var(--amber); }
.p-home-v2.dark .h-cal-title { color:var(--amber); }
.p-home-v2.dark .h-cal-nav-btn { color:var(--muted); border-color:var(--border); }
.p-home-v2.dark .h-cal-nav-btn:hover { color:var(--amber); border-color:var(--amber); }
.p-home-v2.dark .h-cal-toolbar .h-vt-btn { color:var(--muted); border-color:var(--border); background:transparent; }
.p-home-v2.dark .h-cal-toolbar .h-vt-btn.active { background:transparent; border-color:var(--amber); color:var(--amber); }

/* ════ HOME v2 — Calendário híbrido (Agenda + Semana) ════ */
/* Agenda (vista padrão) */
.h-ag-body { flex:1; overflow-y:auto; }
.h-ag-body::-webkit-scrollbar { width:0; }
.h-ag-group.drag-over { background:rgba(245,158,11,0.06); }
.h-ag-day { display:flex; align-items:center; gap:8px; padding:13px 16px 7px; font-family:'Space Mono',monospace; font-size:8px; letter-spacing:2px; text-transform:uppercase; color:var(--muted); }
.h-ag-day.now { color:var(--amber); }
.h-ag-ln { flex:1; height:1px; background:var(--border); }
.h-ag-row { display:flex; align-items:stretch; padding:0 16px; height:46px; cursor:pointer; }
.h-ag-row:hover { background:var(--bg2); }
.h-ag-time { font-family:'Space Mono',monospace; font-size:11px; font-weight:700; color:var(--ink2); width:46px; flex-shrink:0; display:flex; align-items:center; }
.h-ag-row.now .h-ag-time { color:var(--ink); }
.h-ag-stripe { width:3px; flex-shrink:0; margin:9px 11px 9px 0; }
.h-ag-main { flex:1; display:flex; flex-direction:column; justify-content:center; min-width:0; border-bottom:1px solid var(--border); }
.h-ag-tit { font-size:13px; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.h-ag-meta { font-family:'Space Mono',monospace; font-size:8px; color:var(--muted); letter-spacing:.5px; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.h-ag-empty { color:var(--muted); font-size:11px; padding:16px; }
/* Semana condensada (toggle) */
.h-wk { flex:1; display:flex; flex-direction:column; overflow:hidden; }
.h-wk-hdr { display:flex; flex-shrink:0; border-bottom:2px solid var(--border); height:40px; }
.h-wk-hd { flex:1; border-right:1px solid var(--border); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; }
.h-wk-hd:last-child { border-right:none; }
.h-wkd-name { font-family:'Space Mono',monospace; font-size:6.5px; color:var(--muted); letter-spacing:1px; text-transform:uppercase; }
.h-wkd-num { font-family:'Space Mono',monospace; font-size:13px; font-weight:700; color:var(--ink2); }
.h-wk-hd.now { background:var(--amber); }
.h-wk-hd.now .h-wkd-name, .h-wk-hd.now .h-wkd-num { color:var(--bg); }
.h-wk-cols { flex:1; display:flex; overflow:hidden; }
.h-wk-col { flex:1; border-right:1px solid var(--border); padding:5px 3px; display:flex; flex-direction:column; gap:3px; overflow-y:auto; min-width:0; }
.h-wk-col:last-child { border-right:none; }
.h-wk-col::-webkit-scrollbar { width:0; }
.h-wk-col.now { background:rgba(245,158,11,0.04); }
.h-wk-col.drag-over { background:rgba(245,158,11,0.10); }
.h-wk-chip { border-left:3px solid; padding:3px 4px 4px; background:var(--card); cursor:grab; }
.h-wk-chip:active { cursor:grabbing; opacity:.8; }
.h-wk-ct { font-family:'Space Mono',monospace; font-size:7px; opacity:.85; }
.h-wk-cn { font-size:9px; font-weight:600; color:var(--ink); line-height:1.2; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ════ CAPTURA v2 ════ */
.p-captura-v2 {
  --ink:    #eae8e3;
  --dark:   #0b0b0b;
  --dark2:  #111111;
  --border: #1d1d1d;
  --muted:  #57534e;
  --amber:  #f59e0b;
  --amber2: #92400e;
  --red:    #f87171;
  --green:  #3fcf7e;
  --teal:   #34d399;
  --indigo: #818cf8;
  --blue:   #60a5fa;
  --purple: #c084fc;
  --orange: #fb923c;
  --card:   #1e1b17;
  --ink2:   #a8a29e;
  --bg2:    #161412;
  --sb:     #0b0b0b;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Space Mono', monospace;
  background: var(--dark);
  color: var(--ink);
}

/* Topbar */
.cv2-topbar {
  height: 50px; flex-shrink: 0;
  background: var(--dark);
  border-bottom: 3px solid var(--amber);
  display: flex; align-items: center;
  padding: 0 16px; gap: 10px;
}
.cv2-topbar-icon { color: var(--amber); display: flex; align-items: center; }
.cv2-topbar-title { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--ink); }

/* Widget strip (legacy small stats) */
.cv2-wstrip {
  background: var(--dark2);
  border-bottom: 3px solid var(--border);
  display: flex; gap: 10px; padding: 10px 14px;
  flex-shrink: 0;
}
/* Home widgets inside Captura — tema claro */
.p-captura-v2 .h-widgets { grid-column: unset; grid-row: unset; flex-shrink: 0; border-bottom: 3px solid #1d1d1d; background: #fff; }
.p-captura-v2 .hw { background: #fff; border: 1px solid #1d1d1d; }
.p-captura-v2 .hwt { color: #888; border-bottom-color: #1d1d1d; }
.p-captura-v2 .hwln { color: #444; }
.p-captura-v2 .hwv { color: #111; }
.p-captura-v2 .hwneu { color: #444; }
.p-captura-v2 .hwpos { color: #16a34a; }
.p-captura-v2 .hwneg { color: #dc2626; }
.p-captura-v2 .hwvd { color: inherit; }
.p-captura-v2 .hw-big { color: #111; }
.p-captura-v2 .hw-unit { color: #888; }
.p-captura-v2 .hw-dl { color: #888; }
.p-captura-v2 .hv-standing { color: #444; }
.p-captura-v2 .hv-standing strong { color: #f59e0b; }
.p-captura-v2 .hbr-hdr { color: #888; border-bottom-color: #1d1d1d; }
.p-captura-v2 .hbr-pos { color: #888; }
.p-captura-v2 .hbr-name { color: #444; }
.p-captura-v2 .hbr-pts { color: #111; }
.p-captura-v2 .hbr-j { color: #888; }
.p-captura-v2 .hbr-row { border-bottom-color: rgba(0,0,0,.05); }
.p-captura-v2 .hbr-row.me .hbr-name { color: #f59e0b; }
.p-captura-v2 .hbr-row.me .hbr-pts { color: #f59e0b; }
.cv2-hw { background: #141210; border: 2px solid #1d1d1d; padding: 8px 12px; flex: 1; min-width: 0; }
.cv2-hwt { font-family: 'Space Mono',monospace; font-size: 7px; font-weight: 700; color: #57534e; letter-spacing: 2px; text-transform: uppercase; padding-bottom: 6px; margin-bottom: 5px; border-bottom: 1px solid #1d1d1d; }
.cv2-hwl { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 0; }
.cv2-hwln { font-size: 11px; font-weight: 500; color: #a8a29e; }
.cv2-hwv { font-family: 'Space Mono',monospace; font-size: 15px; font-weight: 700; color: #e5e0d8; }
.cv2-hwv.a { color: var(--amber); }
.cv2-hwv.r { color: #f87171; }

/* Body grid */
.cv2-body { display: grid; grid-template-columns: 280px 1fr; flex: 1; overflow: hidden; }

/* Left column */
.cv2-left { border-right: 3px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }

/* Panel heads */
.cv2-ph { height: 38px; flex-shrink: 0; display: flex; align-items: center; padding: 0 14px; gap: 8px; border-bottom: 3px solid var(--border); overflow: hidden; }
.cv2-ph.dark { background: #141210; }
.cv2-ph.amber-bg { background: var(--amber); border-bottom: 3px solid var(--amber) !important; }
.cv2-ph-t { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.cv2-ph.dark .cv2-ph-t { color: var(--ink); }
.cv2-ph.amber-bg .cv2-ph-t { color: #000; }
.cv2-ph-s { font-size: 10px; font-weight: 600; margin-left: auto; }
.cv2-ph.dark .cv2-ph-s { color: var(--muted); }
.cv2-ph.amber-bg .cv2-ph-s { color: #000; }
.cv2-ph-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.cv2-btn-ghost { font-family: 'Space Mono',monospace; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; background: transparent; border: 1px solid #333; color: var(--muted); padding: 3px 8px; cursor: pointer; }
.cv2-btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.cv2-ph.amber-bg .cv2-btn-ghost { background: #000; color: #fff; border-color: #000; }
.cv2-ph.amber-bg .cv2-btn-ghost:hover { background: #222; border-color: #222; }
.cv2-btn-capture { font-family: 'Space Mono',monospace; font-size: 8px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: var(--amber); color: #000; border: none; padding: 4px 10px; cursor: pointer; }
.cv2-btn-capture:disabled { opacity: .4; cursor: default; }
.cv2-btn-capture:not(:disabled):hover { background: #d9991e; }
.cv2-ph.amber-bg .cv2-btn-capture { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; padding: 4px 16px; background: #000 !important; color: #f59e0b !important; border: none; cursor: pointer; opacity: 1 !important; line-height: 1; }
.cv2-ph.amber-bg .cv2-btn-capture:disabled { background: #000 !important; color: #f59e0b !important; opacity: 1 !important; cursor: not-allowed; }
.cv2-ph.amber-bg .cv2-btn-capture:not(:disabled):hover { background: #111 !important; }

/* Capture body — dark */
.cv2-capture-body { background: #141210; flex-shrink: 0; padding: 12px 14px; border-bottom: 3px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.cv2-textarea { background: #fff; border: none; border-bottom: 1px solid rgba(0,0,0,.1); outline: none; resize: none; width: 100%; height: 70px; font-family: 'Space Mono',monospace; font-size: 13px; font-weight: 700; color: #111; padding: 6px 8px; }
.cv2-textarea::placeholder { color: #bbb; }

/* Tag groups */
.cv2-tag-groups { display: flex; flex-direction: column; gap: 5px; }
.cv2-tag-group { display: flex; align-items: center; gap: 6px; }
.cv2-tg-label { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); width: 72px; flex-shrink: 0; }
.cv2-tg-chips { display: flex; gap: 3px; flex-wrap: wrap; }
.cv2-tag { font-family: 'Space Mono',monospace; font-size: 9px; font-weight: 700; padding: 3px 8px; border: 1px solid var(--amber); color: var(--amber); cursor: pointer; background: transparent; }
.cv2-tag:hover { opacity: .7; }
.cv2-tag.on { border-color: var(--amber); color: #000; background: var(--amber); }

/* Inbox list — dark */
.cv2-inbox { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.cv2-inbox-list { flex: 1; overflow-y: auto; background: #141210; }
.cv2-inbox-list::-webkit-scrollbar { width: 0; }
.cv2-ii { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.cv2-ii:hover { background: rgba(255,255,255,.04); }
.cv2-ii:last-child { border-bottom: none; }
.cv2-ii-row { display: flex; align-items: center; gap: 8px; }
.cv2-ii-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.cv2-ii-title { font-size: 13px; font-weight: 700; color: var(--ink); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv2-ii-time { font-size: 9px; color: var(--muted); }
.cv2-ii-cats { display: flex; gap: 3px; flex-wrap: wrap; }
.cv2-ii-cat { font-family: 'Space Mono',monospace; font-size: 9px; font-weight: 700; padding: 3px 7px; border: 1px solid rgba(255,255,255,.18); color: var(--muted); cursor: pointer; background: transparent; }
.cv2-ii-cat:hover { border-color: var(--amber); color: var(--amber); }
.cv2-inbox-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; flex: 1; color: var(--muted); }
.cv2-inbox-empty-icon { font-size: 20px; opacity: .4; }
.cv2-inbox-empty-label { font-size: 8px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }

/* Right column: scrollable, 4 destination rows stack naturally */
.cv2-right { display: flex; flex-direction: column; overflow-y: auto; }
.cv2-right::-webkit-scrollbar { width: 0; }
.cv2-dest { display: flex; flex-direction: column; border-bottom: 3px solid var(--border); min-height: 180px; }
.cv2-dest:last-child { border-bottom: none; }
.cv2-subcols { flex: 1; display: flex; min-height: 140px; }
.cv2-subcol { flex: 1; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border); background: var(--ink); }
.cv2-subcol:last-child { border-right: none; }
.cv2-subcol-head { height: 28px; flex-shrink: 0; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--border); background: rgba(200,139,26,.1); }
.cv2-subcol-label { font-size: 10px; font-weight: 700; color: var(--amber); letter-spacing: 1.5px; text-transform: uppercase; }
.cv2-subcol-count { font-size: 11px; font-weight: 700; color: var(--muted); margin-left: auto; }
.cv2-subcol-list { flex: 1; overflow-y: auto; }
.cv2-subcol-list::-webkit-scrollbar { width: 0; }
.cv2-sli { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-bottom: 1px solid rgba(0,0,0,.06); cursor: pointer; }
.cv2-sli:hover { background: rgba(0,0,0,.04); }
.cv2-sli:last-child { border-bottom: none; }
.cv2-sli-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cv2-sli-text { font-size: 12px; font-weight: 400; color: var(--dark); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv2-subcol-empty { font-size: 10px; font-weight: 700; color: #999; padding: 10px 12px; }

/* === p-captura-v2: subcol-heads → amber === */
.p-captura-v2 .cv2-subcol { background: #fff; }
.p-captura-v2 .cv2-subcol-head { background: #1e1a14; border-bottom: 1px solid #f59e0b; }
.p-captura-v2 .cv2-subcol-label { color: #f59e0b; }
.p-captura-v2 .cv2-subcol-count { color: #57534e; }


/* === IDV pages — global dark/light toggle === */

/* Topbar sempre preta independente de modo claro/escuro */
.p-notas .h-topbar,
.p-referencias .h-topbar,
.p-captura-v2 .h-topbar,
.p-agenda .h-topbar,
.p-biblioteca .h-topbar { background: #0b0b0b; }

/* Light mode: page wrapper cream */
.main:not(.dark) .p-notas,
.main:not(.dark) .p-referencias,
.main:not(.dark) .p-captura-v2,
.main:not(.dark) .p-agenda,
.main:not(.dark) .p-biblioteca { background: #fff; }

/* Light mode: Agenda — ref-v2-main tem bg explícito dark; reverter */
.main:not(.dark) .p-agenda .ref-v2-main { background: #fff; }

/* cal-header: altura 38px alinhada com cv2-ph sidebar, sem margem preta */
.p-agenda .cal-header { top: 0; background: #0b0b0b; padding: 0 16px; height: 38px; margin-bottom: 0; }
.p-agenda .cal-nav-btn { color: #f59e0b; border-color: #78490a; background: transparent; }
.p-agenda .cal-nav-btn:hover { background: #1e1500; }
.p-agenda .cal-title { color: #eae8e3; }
/* cal-tabs: preto com contorno amber; ativo = amber sólido; font inherit (button não herda) */
.p-agenda .cal-tab { color: #f59e0b; background: #0b0b0b; border-color: #f59e0b; font-family: inherit; border-radius: 0; }
.p-agenda .cal-tab.active { background: #f59e0b; color: #000; border-color: #f59e0b; }

/* Agenda sidebar: "Hoje" e "Próximos" em amber */
.p-agenda .ref-v2-section-label { color: #f59e0b; font-weight: 700; }

/* Widgets dark separator */
.p-agenda .h-widgets { border-bottom: 3px solid #1d1d1d; }

/* Sidebar item times/dates: legível */
.p-agenda .ref-v2-ri-time { font-size: 10px; }
.p-agenda .ref-v2-ri-text { font-size: 10px; }

/* Dark mode: todas IDV pages — ALL BLACK */

/* ref-v2-main fica preto (col-header já é #141210 por padrão — não override) */
.p-notas.dark .ref-v2-main,
.p-referencias.dark .ref-v2-main,
.p-captura-v2.dark .ref-v2-main,
.p-biblioteca.dark .ref-v2-main { background: #0b0b0b; }

/* Notas/Referencias — col-body preto, itens */
.p-notas.dark .ref-v2-main .col-box,
.p-notas.dark .ref-v2-main .col-body,
.p-referencias.dark .ref-v2-main .col-box,
.p-referencias.dark .ref-v2-main .col-body,
.p-biblioteca.dark .ref-v2-main .col-box,
.p-biblioteca.dark .ref-v2-main .col-body { background: #0b0b0b; }
.p-notas.dark .ref-v2-main .item-text,
.p-referencias.dark .ref-v2-main .item-text { color: #eae8e3; }
.p-notas.dark .ref-v2-main .item-domain,
.p-referencias.dark .ref-v2-main .item-domain { color: #57534e; }
.p-notas.dark .ref-v2-main .col-item,
.p-referencias.dark .ref-v2-main .col-item { border-bottom-color: #1d1d1d; }
.p-notas.dark .ref-v2-main .col-item:hover,
.p-referencias.dark .ref-v2-main .col-item:hover { background: #111; }
.p-notas.dark .ref-v2-main .col-add,
.p-referencias.dark .ref-v2-main .col-add { background: #0b0b0b; color: #57534e; }

/* Captura — tudo preto em dark mode */
.p-captura-v2.dark .cv2-col,
.p-captura-v2.dark .cv2-body,
.p-captura-v2.dark .cv2-sli-list,
.p-captura-v2.dark .cv2-inbox-list { background: #0b0b0b; }
.p-captura-v2.dark .cv2-right { background: #0b0b0b; }
.p-captura-v2.dark .cv2-dest { background: #0b0b0b; border-bottom-color: #1d1d1d; }
.p-captura-v2.dark .cv2-subcol { background: #0b0b0b; }
.p-captura-v2.dark .cv2-subcol-head { background: #0b0b0b; border-bottom-color: #f59e0b; }
.p-captura-v2.dark .cv2-subcol-list { background: #0b0b0b; }
.p-captura-v2.dark .cv2-capture-body { background: #0b0b0b; border-bottom-color: #1d1d1d; }
.p-captura-v2.dark .cv2-textarea { background: #111; color: #eae8e3; border-bottom-color: #1d1d1d; }
.p-captura-v2.dark .cv2-textarea::placeholder { color: #444; }
.p-captura-v2.dark .cv2-sli-text { color: #eae8e3; }
.p-captura-v2.dark .cv2-sli { border-bottom-color: #1d1d1d; }
.p-captura-v2.dark .cv2-sli:hover { background: #111; }
.p-captura-v2.dark .cv2-ii { border-bottom-color: #1d1d1d; }
.p-captura-v2.dark .cv2-ii:hover { background: #111; }
.p-captura-v2.dark .cv2-left { border-right-color: #1d1d1d; }

/* cal-section: sem padding-top → alinha cal-header base-a-base com cv2-ph */
.p-agenda .cal-section { padding-top: 0; }

/* Privacy: blur nos h-fin-card (Financeiro PF e PJ) em todas as páginas IDV + Home */
.hwv, .hwvd { transition: filter 0.2s; }
.p-notas.privacy .h-fin-card .hwv,
.p-notas.privacy .h-fin-card .hwvd,
.p-referencias.privacy .h-fin-card .hwv,
.p-referencias.privacy .h-fin-card .hwvd,
.p-captura-v2.privacy .h-fin-card .hwv,
.p-captura-v2.privacy .h-fin-card .hwvd,
.p-agenda.privacy .h-fin-card .hwv,
.p-agenda.privacy .h-fin-card .hwvd,
.p-biblioteca.privacy .h-fin-card .hwv,
.p-biblioteca.privacy .h-fin-card .hwvd { filter: blur(6px); user-select: none; }

/* Dark mode: h-widgets em todas IDV pages (overrides explícitos pois cores cream foram setadas com especificidade) */
.p-notas.dark .h-widgets, .p-referencias.dark .h-widgets,
.p-captura-v2.dark .h-widgets, .p-agenda.dark .h-widgets,
.p-biblioteca.dark .h-widgets { background: #1a1714; border-bottom-color: #000; }
.p-notas.dark .hw, .p-referencias.dark .hw,
.p-captura-v2.dark .hw, .p-agenda.dark .hw,
.p-biblioteca.dark .hw { background: #1e1b17; border-color: #0b0b0b; }
.p-notas.dark .hwt, .p-referencias.dark .hwt,
.p-captura-v2.dark .hwt, .p-agenda.dark .hwt,
.p-biblioteca.dark .hwt { color: #57534e; border-bottom-color: #2e2a24; }
.p-notas.dark .hwln, .p-referencias.dark .hwln,
.p-captura-v2.dark .hwln, .p-agenda.dark .hwln,
.p-biblioteca.dark .hwln { color: #a8a29e; }
.p-notas.dark .hwv, .p-referencias.dark .hwv,
.p-captura-v2.dark .hwv, .p-agenda.dark .hwv,
.p-biblioteca.dark .hwv { color: #e5e0d8; }
.p-notas.dark .hw-big, .p-referencias.dark .hw-big,
.p-captura-v2.dark .hw-big, .p-agenda.dark .hw-big,
.p-biblioteca.dark .hw-big { color: #e5e0d8; }
.p-notas.dark .hw-unit, .p-referencias.dark .hw-unit,
.p-captura-v2.dark .hw-unit, .p-agenda.dark .hw-unit,
.p-biblioteca.dark .hw-unit { color: #57534e; }
.p-notas.dark .hwvd, .p-referencias.dark .hwvd,
.p-captura-v2.dark .hwvd, .p-agenda.dark .hwvd,
.p-biblioteca.dark .hwvd { color: inherit; }
.p-notas.dark .hbr-name, .p-referencias.dark .hbr-name,
.p-captura-v2.dark .hbr-name, .p-agenda.dark .hbr-name,
.p-biblioteca.dark .hbr-name { color: #a8a29e; }
.p-notas.dark .hbr-pts, .p-referencias.dark .hbr-pts,
.p-captura-v2.dark .hbr-pts, .p-agenda.dark .hbr-pts,
.p-biblioteca.dark .hbr-pts { color: #e5e0d8; }
.p-notas.dark .hbr-pos, .p-referencias.dark .hbr-pos,
.p-captura-v2.dark .hbr-pos, .p-agenda.dark .hbr-pos,
.p-biblioteca.dark .hbr-pos { color: #57534e; }
.p-notas.dark .hbr-hdr, .p-referencias.dark .hbr-hdr,
.p-captura-v2.dark .hbr-hdr, .p-agenda.dark .hbr-hdr,
.p-biblioteca.dark .hbr-hdr { color: #57534e; border-bottom-color: #2e2a24; }
.p-notas.dark .hbr-row, .p-referencias.dark .hbr-row,
.p-captura-v2.dark .hbr-row, .p-agenda.dark .hbr-row,
.p-biblioteca.dark .hbr-row { border-bottom-color: rgba(255,255,255,.05); }
.p-notas.dark .hv-standing, .p-referencias.dark .hv-standing,
.p-captura-v2.dark .hv-standing, .p-agenda.dark .hv-standing,
.p-biblioteca.dark .hv-standing { color: #a8a29e; }

/* hwpos/hwneg em dark mode: devem prevalecer sobre o override genérico de .hwv */
.p-notas.dark .hwpos, .p-referencias.dark .hwpos,
.p-captura-v2.dark .hwpos, .p-agenda.dark .hwpos,
.p-biblioteca.dark .hwpos { color: #3fcf7e; }
.p-notas.dark .hwneg, .p-referencias.dark .hwneg,
.p-captura-v2.dark .hwneg, .p-agenda.dark .hwneg,
.p-biblioteca.dark .hwneg { color: #f87171; }

/* Biblioteca — nav por tipo de mídia */
.p-biblioteca .lib-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 11px;
  color: #a09b95;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.p-biblioteca .lib-nav-item:hover { color: #e5e0d8; background: rgba(245,158,11,0.07); }
.p-biblioteca .lib-nav-item.active {
  background: rgba(245,158,11,0.15);
  border-left-color: #f59e0b;
  color: #fff;
}
.p-biblioteca .lib-nav-count {
  margin-left: auto;
  font-size: 9px;
  color: #57534e;
}
.p-biblioteca .lib-nav-item.active .lib-nav-count { color: #f59e0b; }
.p-biblioteca .lib-nav-icon { display: flex; align-items: center; flex-shrink: 0; opacity: .65; }
.p-biblioteca .lib-nav-item.active .lib-nav-icon { opacity: 1; color: #f59e0b; }
.p-biblioteca .lib-nav-item:hover .lib-nav-icon { opacity: .9; }

/* Biblioteca — divisórias de caderno (opção C) */
.p-biblioteca .lib-divider-tabs {
  display: flex;
  flex-shrink: 0;
  border-bottom: 2px solid #d5d1ca;
  overflow-x: auto;
  scrollbar-width: none;
}
.p-biblioteca .lib-divider-tabs::-webkit-scrollbar { display: none; }
.p-biblioteca .lib-dtab {
  flex: 1;
  min-width: 52px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #888;
  background: #e8e4de;
  border-right: 1px solid #d5d1ca;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.p-biblioteca .lib-dtab:last-child { border-right: none; }
.p-biblioteca .lib-dtab:hover:not(.active) { background: #dedad3; color: #444; }
.p-biblioteca .lib-dtab.active {
  background: #fff;
  color: #0b0b0b;
  border-bottom: 2px solid #f59e0b;
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
}
.p-biblioteca .lib-dtab-icon { display: flex; align-items: center; opacity: .6; }
.p-biblioteca .lib-dtab.active .lib-dtab-icon { opacity: 1; color: #f59e0b; }
.p-biblioteca .lib-dtab:hover:not(.active) .lib-dtab-icon { opacity: .85; }

/* Active type label below tabs */
.p-biblioteca .lib-active-label {
  padding: 5px 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #57534e;
  background: #fff;
  border-bottom: 1px solid #e5e1d7;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.p-biblioteca .lib-active-count {
  font-size: 9px;
  font-weight: 400;
  background: #ece8e2;
  padding: 1px 6px;
  color: #888;
}

/* Dark mode */
.p-biblioteca.dark .lib-divider-tabs { border-bottom-color: #1d1d1d; }
.p-biblioteca.dark .lib-dtab { background: #181614; color: #3a3630; border-right-color: #1d1d1d; }
.p-biblioteca.dark .lib-dtab:hover:not(.active) { background: #1f1c18; color: #a09b95; }
.p-biblioteca.dark .lib-dtab.active { background: #0b0b0b; color: #eae8e3; }
.p-biblioteca.dark .lib-active-label { background: #0b0b0b; color: #57534e; border-bottom-color: #1d1d1d; }
.p-biblioteca.dark .lib-active-count { background: #1a1a1a; color: #3a3630; }

/* ===== PAGE: financas — IDV ===== */
.fin-v2 .ref-v2-stat-val { font-family: var(--bb-font-ui); }
.fin-card-mini { margin: 12px 12px 0; padding: 11px 12px; border: 1px solid var(--bb-border-mid); border-radius:0; background: var(--bb-bg-card2); }
.fin-card-mini-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--bb-text-muted); margin-bottom: 8px; }
.fin-card-mini-val { font-family: var(--bb-font-ui); font-size: 15px; font-weight: 700; color: var(--bb-accent); letter-spacing: 0; text-transform: none; }
.fin-card-mini .cartao-limit-bar { height: 5px; background: var(--bb-border-mid); border-radius:0; }
.fin-card-mini .cartao-limit-fill { height: 100%; border-radius:0; background: var(--bb-accent); }
.fin-card-mini-foot { font-size: 9px; color: var(--bb-text-muted); margin-top: 5px; }
.fin-card-mini-dates { display: flex; justify-content: space-between; font-size: 10px; color: var(--bb-text-muted); margin-top: 9px; }
.fin-card-mini-dates b { color: var(--bb-text-2); font-weight: 700; }
.ref-v2-main .col-item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 14px; }
.ref-v2-main .item-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.ref-v2-main .item-dot.dot-red { background: var(--bb-red); }
.ref-v2-main .item-body { flex: 1; min-width: 0; }
.fin-item-meta { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 3px; font-size: 9px; color: #8a8a8a; }
.fin-item-meta .tx-date { color: #8a8a8a; }
.ref-v2-main .tx-val { font-family: var(--bb-font-ui); font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.ref-v2-main .tx-val.in { color: var(--bb-green); }
.ref-v2-main .tx-val.out { color: var(--bb-red); }
.fin-empty { padding: 16px 14px; font-size: 11px; color: #9a9a9a; }
.fin-cat-item .fin-cat-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fin-cat-bar { height: 4px; background: rgba(0,0,0,.08); border-radius:0; margin-top: 6px; }
.fin-cat-fill { height: 100%; border-radius:0; }

/* ── Hero band rolável (Daily/Saúde — IDV Captura em página longa) ── */
.lux-hero { display: flex; border: 2px solid #1d1d1d; background: #141210; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 5px 16px rgba(0,0,0,.5); margin-bottom: 22px; }
.lux-hero .cell { flex: 1; padding: 12px 16px; border-right: 1px solid #1d1d1d; min-width: 0; }
.lux-hero .cell:last-child { border-right: none; }
.lux-hero .lbl { font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase; color: #f59e0b; margin-bottom: 5px; }
.lux-hero .val { font-family: 'Space Mono', monospace; font-size: 24px; font-weight: 700; line-height: 1; color: #eae8e3; }
.lux-hero .sub { font-family: 'Space Mono', monospace; font-size: 8px; color: #57534e; margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
