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

    :root {
      --purple: #7C3AED;
      --purple-light: #A78BFA;
      --purple-dark: #5B21B6;
      --pink: #EC4899;
      --green: #10B981;
      --blue: #3B82F6;
      --orange: #F59E0B;
      --red: #EF4444;
      --bg: #F5F3FF;
      --surface: #FFFFFF;
      --sidebar: #1E1B4B;
      --text: #1E293B;
      --muted: #64748B;
      --light: #94A3B8;
      --border: #E2E8F0;
      /* Safe area insets (env() fallback to 0) */
      --safe-top:    env(safe-area-inset-top,    0px);
      --safe-bottom: env(safe-area-inset-bottom, 0px);
      --safe-left:   env(safe-area-inset-left,   0px);
      --safe-right:  env(safe-area-inset-right,  0px);
      /* Topbar height = base 44px + top safe area (for notch/dynamic island) */
      --topbar-h: calc(44px + env(safe-area-inset-top, 0px));
    }

    body.dark-mode {
      --bg: #0F0F13;
      --surface: #1A1A24;
      --text: #E2E8F0;
      --muted: #94A3B8;
      --light: #475569;
      --border: #2D2D3F;
    }
    body.dark-mode .card { box-shadow: 0 1px 6px rgba(0,0,0,0.4); }
    body.dark-mode input,
    body.dark-mode select,
    body.dark-mode textarea { background: #12121A; color: var(--text); border-color: var(--border); }
    body.dark-mode input::placeholder,
    body.dark-mode textarea::placeholder { color: var(--light); }
    body.dark-mode .rich-editor { background: #12121A; color: var(--text); }
    body.dark-mode .modal { background: #1A1A24; }
    body.dark-mode .modal-bg { background: rgba(0,0,0,0.65); }
    /* Whiteboard dark */
    body.dark-mode .wb-container {
      background-color: #111118;
      background-image: radial-gradient(circle, #2A2A38 1px, transparent 1px);
      box-shadow: none;
    }
    body.dark-mode .wb-tools {
      background: #1C1C28;
      box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    }
    body.dark-mode .wb-tool-btn { color: #C4C4D4; }
    body.dark-mode .wb-tool-btn:hover { background: #2A2A3A; color: #fff; }
    body.dark-mode .wb-tool-btn.active { background: var(--purple); color: white; }
    body.dark-mode .wb-width-btn { color: #C4C4D4; }
    body.dark-mode .wb-width-btn:hover { background: #2A2A3A; color: #fff; }
    body.dark-mode .wb-width-btn.active { background: #2A2A3A; color: var(--purple-light); }
    body.dark-mode .wb-sticky textarea { color: #1E1E1E; }
    body.dark-mode .wb-text-el { color: #E2E8F0; }
    /* Calendar dark */
    body.dark-mode .cal-day { background: #1C1C28; border-color: #2A2A3A; }
    body.dark-mode .cal-day:hover { background: #22203A; }
    body.dark-mode .cal-day.other { background: #14141E; border-color: #1E1E2A; opacity: 0.5; }
    body.dark-mode .cal-day.today { background: #1E1A30; border-color: var(--purple); }
    body.dark-mode .wb-sticky textarea { background: transparent; }
    /* Kanban dark */
    body.dark-mode .kanban-col { background: #1C1C28; border-color: #2A2A3A; }
    body.dark-mode .kanban-col.drag-over { border-color: var(--purple); background: #22203A; }
    body.dark-mode .col-count { background: rgba(255,255,255,0.08); color: var(--muted); }
    body.dark-mode .k-card { background: #252535; box-shadow: 0 1px 4px rgba(0,0,0,0.35); }
    body.dark-mode .k-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
    body.dark-mode .k-card-actions button { background: #1C1C28; }
    body.dark-mode .k-card-actions button:hover { background: #2A2A3A; }
    /* Cols modal dark */
    body.dark-mode .col-row { background: #22222E; border-color: #2A2A3A; }
    body.dark-mode .col-row:hover { background: #27273A; }
    body.dark-mode .col-row input { background: transparent; }
    body.dark-mode .col-color-swatch { border-color: #3A3A4A; }

    /* ── DARK MODE: complementos ── */
    /* Badges de prioridade */
    body.dark-mode .badge-high   { background: rgba(239,68,68,0.18);  color: #FCA5A5; }
    body.dark-mode .badge-medium { background: rgba(245,158,11,0.18); color: #FCD34D; }
    body.dark-mode .badge-low    { background: rgba(16,185,129,0.18); color: #6EE7B7; }
    /* Mobile drawer */
    body.dark-mode .mobile-drawer { background: #1A1A24; }
    body.dark-mode .mobile-drawer-handle { background: #3A3A4A; }
    body.dark-mode .mobile-drawer-item { color: var(--text); }
    body.dark-mode .mobile-drawer-item:hover { background: #22222E; }
    body.dark-mode .mobile-drawer-sep { color: var(--muted); }
    /* Zoom badge do quadro */
    body.dark-mode .wb-zoom-badge { background: #1C1C28; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
    body.dark-mode .wb-zoom-badge button { color: #C4C4D4; }
    body.dark-mode .wb-zoom-badge button:hover { background: #2A2A3A; color: #fff; }
    body.dark-mode .wb-zoom-label { color: var(--muted); }
    /* Itens de prioridade */
    body.dark-mode .prio-item { border-bottom-color: var(--border); }
    body.dark-mode .prio-card { background: #1C1C28; }
    /* Hábitos */
    body.dark-mode .h-prog-bar { background: #2A2A3A; }
    body.dark-mode .h-card { background: #1C1C28; border-color: #2A2A3A; }
    body.dark-mode .h-day { background: #2A2A3A; }
    /* Feedback bubble */
    body.dark-mode .feedback-bubble { background: #1A1A24; border-color: #2D2D3F; }
    body.dark-mode .feedback-item { background: #12121A; }
    /* Backup info */
    body.dark-mode .backup-info { background: #12121A; }
    /* Rich editor */
    body.dark-mode [contenteditable]:focus { outline-color: var(--purple); }
    /* Checklist items */
    body.dark-mode .k-cl-item { color: var(--text); }
    /* Notas */
    body.dark-mode .note-card { background: #1C1C28; border-color: #2A2A3A; }
    body.dark-mode .note-editor { background: #12121A; border-color: var(--border); }
    body.dark-mode .fmt-btn { background: #1C1C28; border-color: var(--border); }
    body.dark-mode .fmt-btn:hover { background: #2A2A3A; }
    body.dark-mode mark.note-hl { background: #92400E; color: #FDE68A; }
    /* Metas */
    body.dark-mode .goal-card { background: #1C1C28; border-color: #2A2A3A; }
    /* Hidratação */
    body.dark-mode .water-section { background: #1C1C28; }
    /* Listas */
    body.dark-mode .list-card { background: #1C1C28; border-color: #2A2A3A; }
    body.dark-mode .list-item-row { border-bottom-color: var(--border); }
    /* Modal headers */
    body.dark-mode .modal-hdr { border-bottom-color: var(--border); }
    /* Settings */
    body.dark-mode .settings-group { border-top-color: var(--border); }
    body.dark-mode .settings-row { border-bottom-color: var(--border); }

    .dark-toggle {
      display: flex; align-items: center; gap: 8px;
      padding: 8px 10px; margin: 4px 8px 0;
      cursor: pointer; color: #A5B4FC; font-size: 13px; font-weight: 500;
      border-radius: 8px; border: none; background: none; width: calc(100% - 16px);
      transition: all 0.15s;
    }
    .dark-toggle:hover { background: rgba(124,58,237,0.25); color: #fff; }
    .dark-toggle .icon { font-size: 15px; width: 18px; text-align: center; }
    /* toggle switch */
    .dm-switch { margin-left: auto; width: 32px; height: 18px; background: rgba(255,255,255,0.15); border-radius: 99px; position: relative; flex-shrink: 0; transition: background 0.2s; }
    .dm-switch::after { content:''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left 0.2s; }
    body.dark-mode .dm-switch { background: var(--purple); }
    body.dark-mode .dm-switch::after { left: 16px; }

    html {
      background: var(--bg);
      overscroll-behavior: none;
      scroll-behavior: smooth;
    }

    * {
      -webkit-overflow-scrolling: touch;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--bg);
      color: var(--text);
      display: flex;
      height: 100dvh;
      overflow: hidden;
      overscroll-behavior: none;
    }

    /* SIDEBAR */
    .sidebar {
      width: 230px;
      background: var(--sidebar);
      display: flex;
      flex-direction: column;
      padding: 20px 0 12px;
      flex-shrink: 0;
      overflow-y: auto;
      scroll-behavior: smooth;
    }

    .sidebar-logo {
      padding: 0 14px 16px;
      font-size: 20px;
      font-weight: 800;
      color: #fff;
      letter-spacing: -0.5px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      margin-bottom: 12px;
      position: sticky;
      top: 0;
      z-index: 10;
      background: var(--sidebar);
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .sidebar-logo span { color: var(--purple-light); }

    .nav-section {
      padding: 10px 18px 4px;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: rgba(255,255,255,0.28);
      margin-top: 6px;
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 9px 10px;
      margin: 1px 8px;
      cursor: pointer;
      color: #A5B4FC;
      font-size: 13.5px;
      font-weight: 500;
      border-radius: 8px;
      transition: all 0.15s;
    }
    .nav-item:hover { background: rgba(124,58,237,0.25); color: #fff; }
    .nav-item.active { background: var(--purple); color: #fff; }
    .nav-item .icon { font-size: 15px; display: flex; align-items: center; flex-shrink: 0; }

    /* LIGHT SIDEBAR (tema branco) */
    body.light-sidebar .sidebar-logo { color: #0F172A; border-bottom-color: rgba(0,0,0,0.08); }
    body.light-sidebar .sidebar-logo span { color: var(--purple); }
    body.light-sidebar .nav-section { color: rgba(0,0,0,0.38); }
    body.light-sidebar .nav-item { color: #475569; }
    body.light-sidebar .nav-item:hover { background: rgba(0,0,0,0.06); color: #0F172A; }
    body.light-sidebar .dark-toggle { color: #475569; }
    body.light-sidebar .dark-toggle:hover { background: rgba(0,0,0,0.06); color: #0F172A; }
    body.light-sidebar .dm-switch { background: rgba(0,0,0,0.15); }
    body.light-sidebar .settings-toggle { color: rgba(71,85,105,0.8); }
    body.light-sidebar .settings-toggle:hover { background: rgba(0,0,0,0.06); color: #0F172A; }
    body.light-sidebar .mobile-topbar { color: #0F172A; }
    body.light-sidebar .mobile-topbar-logo { color: #0F172A; }
    body.light-sidebar .mobile-topbar-btn { background: rgba(0,0,0,0.08); color: #0F172A; }
    /* mobile nav sempre branca — sem override por tema */

    /* MAIN */
    .main {
      flex: 1;
      overflow-y: auto;
      padding: 24px;
      scroll-behavior: smooth;
    }

    .section { display: none; }
    .section.active { display: block; animation: secFadeIn 0.22s cubic-bezier(.4,0,.2,1) both; }
    .section.page-exit { display: block !important; pointer-events: none; animation: secFadeOut 0.15s ease forwards; }
    @keyframes secFadeIn  { from { opacity:0; transform:translateY(10px) } to { opacity:1; transform:translateY(0) } }
    @keyframes secFadeOut { from { opacity:1; transform:translateY(0) } to { opacity:0; transform:translateY(-6px) } }

    /* SETTINGS MODAL */
    .settings-toggle {
      display: flex; align-items: center; gap: 8px;
      padding: 8px 10px; margin: 2px 8px 8px;
      cursor: pointer; color: rgba(165,180,252,0.7); font-size: 13px; font-weight: 500;
      border-radius: 8px; border: none; background: none; width: calc(100% - 16px);
      transition: all 0.15s;
    }
    .settings-toggle:hover { background: rgba(124,58,237,0.2); color: #fff; }
    .settings-toggle .icon { font-size: 15px; width: 18px; text-align: center; }
    .settings-group { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
    .settings-group:first-child { border-top: none; padding-top: 0; margin-top: 0; }
    .settings-group-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
    .settings-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
    .settings-row-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
    .backup-info { background: var(--bg); border-radius: 10px; padding: 12px; font-size: 12px; color: var(--muted); line-height: 1.6; }

    /* PAGE HEADER */
    .page-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 22px;
    }
    .page-title { font-size: 21px; font-weight: 700; }
    .page-subtitle { font-size: 13px; color: var(--muted); margin-top: 2px; }

    /* BUTTONS */
    .btn {
      padding: 8px 15px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      transition: all 0.15s;
      font-family: inherit;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 44px;
    }
    .btn-primary { background: var(--purple); color: white; }
    .btn-primary:hover { background: var(--purple-dark); }
    .btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
    .btn-ghost:hover { background: var(--border); color: var(--text); }
    .btn-icon { width: 30px; height: 30px; padding: 0; border-radius: 7px; justify-content: center; }

    /* CARD */
    .card {
      background: var(--surface);
      border-radius: 12px;
      padding: 16px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    }

    /* SECTION LABEL */
    .sec-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: var(--muted);
      margin-bottom: 10px;
    }

    /* PROGRESS BAR */
    .pbar { height: 5px; background: var(--border); border-radius: 10px; overflow: hidden; }
    .pbar-fill { height: 100%; border-radius: 10px; transition: width 0.3s; background: var(--purple); }

    /* BADGES */
    .badge { padding: 2px 7px; border-radius: 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
    .badge-high   { background: #FEE2E2; color: var(--red); }
    .badge-medium { background: #FEF3C7; color: var(--orange); }
    .badge-low    { background: #D1FAE5; color: var(--green); }

    /* EMPTY STATE */
    .empty { text-align: center; padding: 28px 16px; color: var(--muted); }
    .empty .ei { font-size: 32px; margin-bottom: 8px; }
    .empty p { font-size: 13px; }

    /* ── DASHBOARD ── */
    .greeting {
      background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
      border-radius: 16px;
      padding: 22px 24px;
      color: white;
      margin-bottom: 18px;
      position: relative;
      overflow: hidden;
    }
    .greeting::before {
      content: '';
      position: absolute;
      top: -50px; right: -50px;
      width: 200px; height: 200px;
      background: rgba(255,255,255,0.07);
      border-radius: 50%;
    }
    .greeting h2 { font-size: 20px; font-weight: 700; margin-bottom: 3px; position: relative; }
    .greeting p  { font-size: 13px; opacity: 0.82; position: relative; }

    .stats-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 18px;
    }
    .stat-card {
      background: var(--surface);
      border-radius: 12px;
      padding: 14px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    }
    .stat-card .si { font-size: 20px; margin-bottom: 4px; }
    .stat-card .sn { font-size: 26px; font-weight: 800; color: var(--text); }
    .stat-card .sl { font-size: 12px; color: var(--muted); }

    .dash-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 16px;
    }
    .dash-grid-3 {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 16px;
    }

    /* ── KANBAN ── */
    .kanban-sticky-header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: var(--bg);
      margin: -24px -24px 0;
      padding: 24px 24px 0;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .kanban-board {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      overflow-x: auto;
      overflow-y: auto;
      padding-bottom: 8px;
      margin-top: 16px;
      min-height: calc(100dvh - 140px);
      scroll-behavior: smooth;
    }
    .kanban-col {
      background: #EDEBFF;
      border-radius: 12px;
      padding: 12px;
      min-width: 272px;
      max-width: 290px;
      flex-shrink: 0;
      border: 2px solid transparent;
      transition: border-color 0.15s, background 0.15s;
    }
    .kanban-col.drag-over { border-color: var(--purple); background: #E5E1FF; }

    .col-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
    }
    .col-title {
      display: flex;
      align-items: center;
      gap: 7px;
      font-weight: 700;
      font-size: 13px;
    }
    .col-dot { width: 8px; height: 8px; border-radius: 50%; }
    .col-count {
      background: rgba(0,0,0,0.08);
      border-radius: 10px;
      padding: 1px 7px;
      font-size: 11px;
      font-weight: 700;
    }

    .k-card {
      background: var(--surface);
      border-radius: 10px;
      padding: 11px 12px;
      margin-bottom: 7px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.08);
      cursor: grab;
      transition: box-shadow 0.15s, transform 0.15s;
      border-left: 3px solid transparent;
      position: relative;
      user-select: none;
      -webkit-user-select: none;
    }
    .k-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.12); transform: translateY(-1px); }
    .k-card.dragging { opacity: 0.45; cursor: grabbing; }
    .k-card-title { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
    .k-card-desc  { font-size: 12px; color: var(--muted); margin-bottom: 7px; line-height: 1.4; }
    .k-card-meta  { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
    .k-card-date  { font-size: 11px; color: var(--light); }

    .k-card-actions {
      position: absolute;
      top: 8px; right: 8px;
      display: flex;
      gap: 2px;
      opacity: 0;
      transition: opacity 0.15s;
    }
    .k-card:hover .k-card-actions { opacity: 1; }
    .k-card-actions button {
      background: var(--bg);
      border: none;
      border-radius: 5px;
      width: 22px;
      height: 22px;
      cursor: pointer;
      font-size: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* checklist on card */
    .k-checklist { margin-top: 8px; }
    .k-cl-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      padding: 2px 0;
      color: var(--muted);
    }
    .k-cl-item input { accent-color: var(--purple); }
    .k-cl-item.done span { text-decoration: line-through; opacity: 0.5; }

    /* ── CALENDAR ── */
    .cal-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }
    .cal-nav h3 { font-size: 15px; font-weight: 700; }

    .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 3px;
    }
    .cal-day-hdr {
      text-align: center;
      font-size: 10px;
      font-weight: 700;
      color: var(--muted);
      padding: 6px 2px;
      text-transform: uppercase;
    }
    .cal-day {
      height: 80px;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 5px;
      cursor: pointer;
      transition: background 0.12s;
      background: var(--surface);
      overflow: hidden;
    }
    .cal-day:hover { background: rgba(124,58,237,0.06); }
    .cal-day.other  { background: rgba(0,0,0,0.025); opacity: 0.55; pointer-events: none; }
    .cal-day.today  { background: rgba(124,58,237,0.07); border-color: var(--purple); }
    .cal-day-num {
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 3px;
    }
    .cal-day.today .cal-day-num {
      background: var(--purple);
      color: white;
      width: 20px; height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
    }
    .cal-event {
      font-size: 10px;
      padding: 1px 4px;
      border-radius: 3px;
      color: white;
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }
    .cal-more {
      font-size: 10px;
      color: var(--muted);
      font-weight: 600;
      padding: 0 2px;
      cursor: pointer;
      white-space: nowrap;
    }
    .cal-more:hover { color: var(--purple); }

    /* ── CALENDAR view switcher ── */
    .cal-view-btn { font-size:12px; padding:4px 10px; border-radius:6px; }
    .cal-view-btn.active { background:var(--purple) !important; color:#fff !important; border-color:var(--purple) !important; }

    /* ── WEEK/DAY views ── */
    .cal-week-event { position:absolute; left:2px; right:2px; border-radius:4px; padding:2px 4px; font-size:10px; color:#fff; overflow:hidden; cursor:pointer; line-height:1.3; box-sizing:border-box; }
    .cal-week-event:hover { opacity:0.85; }
    .cal-day-list-item { display:flex; align-items:flex-start; gap:10px; padding:10px 12px; border-radius:8px; cursor:pointer; transition:background .12s; margin-bottom:6px; background:var(--surface); }
    .cal-day-list-item:hover { background:rgba(124,58,237,0.06); }

    /* ── PRIORITIES ── */
    .prio-labels {
      display: grid;
      grid-template-columns: 1fr 1fr;
      text-align: center;
      font-size: 10px;
      font-weight: 700;
      margin-bottom: 4px;
    }
    .prio-matrix {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .quadrant {
      background: var(--surface);
      border-radius: 12px;
      padding: 13px;
      min-height: 170px;
    }
    .q-title {
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 8px;
      padding-bottom: 6px;
      border-bottom: 2px solid;
    }
    .q1 .q-title { color: var(--red);    border-color: var(--red); }
    .q2 .q-title { color: var(--orange); border-color: var(--orange); }
    .q3 .q-title { color: var(--blue);   border-color: var(--blue); }
    .q4 .q-title { color: var(--light);  border-color: var(--light); }

    .prio-item {
      display: flex;
      align-items: flex-start;
      gap: 7px;
      padding: 5px 0;
      border-bottom: 1px solid var(--border);
      font-size: 13px;
    }
    .prio-item:last-child { border-bottom: none; }
    .prio-item input { accent-color: var(--purple); margin-top: 2px; }
    .prio-item.done span { text-decoration: line-through; color: var(--light); }

    /* ── WATER ── */
    .water-wrap { text-align: center; padding: 20px 16px 16px; max-width: 100%; overflow-x: hidden; }
    .water-num  { font-size: clamp(2.6rem, 8vw, 4rem); font-weight: 900; color: var(--blue); line-height: 1; }
    .water-sub  { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
    .water-phrase { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
    /* ring de progresso circular */
    .water-ring-wrap {
      width: 220px; height: 220px; border-radius: 50%; margin: 0 auto 20px;
      background: conic-gradient(var(--blue) var(--w-pct, 0%), var(--border) var(--w-pct, 0%));
      display: flex; align-items: center; justify-content: center;
      padding: 12px; position: relative;
      box-shadow: 0 4px 28px rgba(59,130,246,0.2);
      transition: background 0.45s;
    }
    .water-ring-wrap.done {
      background: conic-gradient(var(--green) 100%, var(--green) 100%);
      box-shadow: 0 4px 32px rgba(34,197,94,0.3);
    }
    .water-ring-inner {
      background: var(--surface); border-radius: 50%;
      width: 100%; height: 100%;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 2px;
    }
    /* motivação + contagem (usados em ambos os viewports) */
    #w-motivation-mobile { font-size:13px; font-weight:600; min-height:20px; margin-bottom:6px; }
    #w-count-mobile { font-size:12px; color:var(--muted); margin-bottom:16px; }
    /* barra de progresso legada: substituída pelo ring */
    .water-pbar-wrap { display: none; }
    .water-bottles {
      display: flex; flex-wrap: wrap; gap: 8px;
      justify-content: center; margin-bottom: 20px;
    }
    .w-bottle {
      width: 46px; height: 46px; border-radius: 50%;
      background: var(--bg); display: flex; align-items: center; justify-content: center;
      font-size: 22px; cursor: pointer; border: 2px solid var(--border);
      transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
    }
    .w-bottle:hover { transform: scale(1.12); box-shadow: 0 4px 14px rgba(59,130,246,0.25); }
    .w-bottle.filled {
      background: var(--blue); border-color: var(--blue);
      box-shadow: 0 3px 10px rgba(59,130,246,0.35);
    }
    body.dark-mode .w-bottle { background: #12121E; border-color: #2A2A3A; }
    body.dark-mode .w-bottle.filled { background: var(--blue); border-color: var(--blue); box-shadow: 0 3px 12px rgba(59,130,246,0.45); }
    @keyframes popIn  { 0%{transform:scale(0.55);opacity:.6} 55%{transform:scale(1.22)} 80%{transform:scale(0.95)} 100%{transform:scale(1);opacity:1} }
    @keyframes popOut { 0%{transform:scale(1)} 40%{transform:scale(0.82)} 100%{transform:scale(1)} }
    .w-bottle.pop     { animation: popIn  0.32s ease forwards; }
    .w-bottle.pop-out { animation: popOut 0.22s ease forwards; }
    /* botão de adicionar */
    .water-btn-add-big {
      display: flex; align-items: center; justify-content: center; gap: 8px;
      width: 100%; padding: 13px 20px; border-radius: 14px;
      background: var(--blue); color: #fff;
      font-size: 15px; font-weight: 700; border: none; cursor: pointer;
      box-shadow: 0 4px 18px rgba(59,130,246,0.3);
      transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
      margin-bottom: 10px;
    }
    .water-btn-add-big:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.4); }
    .water-btn-add-big:active { transform: scale(0.97); box-shadow: 0 2px 10px rgba(59,130,246,0.25); }
    .water-btn-add-big svg { flex-shrink: 0; }
    .water-btn-small-row { display: flex; gap: 8px; }
    .water-btn-small-row .btn { flex: 1; }
    /* ocultar legado */
    .water-actions-legacy { display: none !important; }
    .w-hist-bar-track { flex:1; height:10px; background:var(--border); border-radius:10px; overflow:hidden; }
    .w-hist-bar-fill  { height:100%; background:var(--blue); border-radius:10px; transition:width .35s; }

    /* ── HABITS ── */
    .habit-row {
      background: var(--surface);
      border-radius: 14px;
      padding: 16px;
      margin-bottom: 12px;
      border: 1px solid var(--border);
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      transition: box-shadow 0.2s;
    }
    .habit-row:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
    .habit-hdr {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .habit-name { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
    .habit-icon-box {
      width: 32px; height: 32px;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }
    .streak-badge {
      background: rgba(245,158,11,0.12);
      color: #D97706;
      font-size: 11px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 10px;
      border: 1px solid rgba(245,158,11,0.25);
    }
    .habit-del-btn {
      width: 28px; height: 28px; border: none; border-radius: 8px;
      background: transparent; cursor: pointer; font-size: 13px;
      color: var(--light); transition: all 0.15s; display:flex; align-items:center; justify-content:center;
    }
    .habit-del-btn:hover { background: #FEE2E2; color: var(--red); }
    .habit-progress-row {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 8px;
    }
    .habit-progress-label { font-size: 11px; color: var(--muted); font-weight: 500; }
    .habit-progress-bar { height: 4px; background: var(--border); border-radius: 99px; margin-bottom: 10px; overflow: hidden; }
    .habit-progress-fill { height: 100%; border-radius: 99px; transition: width 0.4s ease; }
    .habit-week { display: flex; gap: 5px; }
    .h-day {
      flex: 1; aspect-ratio: 1; border-radius: 8px; cursor: pointer;
      font-size: 9px; font-weight: 800; text-transform: uppercase;
      transition: all 0.18s; border: 1.5px solid var(--border);
      background: transparent; color: var(--light);
      display: flex; align-items: center; justify-content: center;
      position: relative;
    }
    .h-day:hover:not(.done) { border-color: var(--purple-light); color: var(--purple); background: rgba(124,58,237,0.06); }
    .h-day.done { color: white; border-color: transparent; }
    .h-day.done::after { content: '✓'; position: absolute; bottom: 2px; right: 3px; font-size: 7px; opacity: 0.8; }
    .h-day.is-today:not(.done) { border-width: 2.5px; border-color: var(--purple); color: var(--purple); font-weight: 900; background: rgba(124,58,237,0.08); }
    .h-day.is-today.done { box-shadow: 0 0 0 3px var(--purple); }
    /* dark mode habits */
    body.dark-mode .habit-row { background: #1C1C28; border-color: #2A2A3A; }
    body.dark-mode .habit-row:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.35); }
    body.dark-mode .streak-badge { background: rgba(245,158,11,0.15); color: #FBBF24; border-color: rgba(245,158,11,0.3); }
    body.dark-mode #pomo-active-task { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.3); }
    body.dark-mode .h-day { background: #12121E; border-color: #2A2A3A; color: #4A4A6A; }
    body.dark-mode .h-day:hover:not(.done) { background: #1E1A30; border-color: var(--purple-light); color: var(--purple-light); }
    body.dark-mode .h-day.is-today:not(.done) { border-color: var(--purple); color: #A78BFA; }
    .h-day.inactive { opacity: 0.25; cursor: default; pointer-events: none; }
    .h-day.has-note::before { content:''; position:absolute; top:3px; right:3px; width:5px; height:5px; border-radius:50%; background:var(--orange); }
    /* frequency day picker in modal */
    .h-day-pick {
      flex:1; padding:6px 2px; border:1.5px solid var(--border); border-radius:7px;
      background:transparent; cursor:pointer; font-size:11px; font-weight:700;
      color:var(--muted); transition:all .15s; font-family:inherit;
    }
    .h-day-pick.sel { background:var(--purple); color:#fff; border-color:var(--purple); }
    .h-day-pick:hover:not(.sel) { border-color:var(--purple-light); color:var(--purple); }
    .habit-week-nav {
      display:flex; align-items:center; gap:6px; flex-wrap:wrap;
    }

    /* today progress banner */
    #habit-today-progress {
      display: none;
      align-items: center;
      justify-content: space-between;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px 16px;
      margin-bottom: 14px;
      font-size: 13px;
      gap: 8px;
    }
    body.dark-mode #habit-today-progress { background: #1C1C28; border-color: #2A2A3A; }

    /* habit toggle animations */
    @keyframes habitBump {
      0%   { transform: scale(1); }
      35%  { transform: scale(1.28); }
      65%  { transform: scale(0.9); }
      100% { transform: scale(1); }
    }
    @keyframes habitUnmark {
      0%   { transform: scale(1); }
      50%  { transform: scale(0.88); }
      100% { transform: scale(1); }
    }
    .h-day.anim-bump   { animation: habitBump   0.3s ease; }
    .h-day.anim-unmark { animation: habitUnmark 0.2s ease; }

    /* floating feedback toast */
    @keyframes feedbackFloat {
      0%   { opacity: 1; transform: translateY(0) scale(1); }
      100% { opacity: 0; transform: translateY(-26px) scale(0.88); }
    }
    .habit-feedback {
      position: fixed;
      background: var(--green);
      color: white;
      font-size: 12px;
      font-weight: 700;
      padding: 4px 11px;
      border-radius: 20px;
      pointer-events: none;
      z-index: 9999;
      animation: feedbackFloat 0.85s ease forwards;
      white-space: nowrap;
    }

    /* ── POMODORO ── */
    .pomo-wrap { text-align: center; padding: 16px; }

    .timer-ring {
      width: 168px; height: 168px;
      border-radius: 50%;
      background: conic-gradient(var(--purple) 0deg, var(--border) 0deg);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 18px;
    }
    .timer-inner {
      width: 136px; height: 136px;
      border-radius: 50%;
      background: var(--surface);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .timer-time  { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
    .timer-label { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 1px; }

    /* ── NOTES ── */
    .notes-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
      gap: 12px;
    }
    .note-card {
      border-radius: 12px;
      padding: 14px;
      min-height: 120px;
      cursor: pointer;
      position: relative;
      overflow: visible;
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .note-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
    .note-card.pinned { box-shadow: 0 0 0 2px var(--purple), 0 4px 14px rgba(124,58,237,0.18); }
    .note-title   { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
    .note-content { font-size: 12px; line-height: 1.5; opacity: 0.8; word-break: break-word; overflow: visible; }
    .note-content ul, .note-content ol,
    .note-editor ul,  .note-editor ol  { padding-left: 1.2rem; margin: 2px 0; }
    .note-content li, .note-editor li  { margin-left: 0; }
    .note-footer  { font-size: 10px; opacity: 0.55; position: absolute; bottom: 10px; right: 12px; }
    .note-pin-btn { background: rgba(0,0,0,0.08); border: none; border-radius: 4px; cursor: pointer;
                    width: 22px; height: 22px; font-size: 13px; display: flex; align-items: center;
                    justify-content: center; opacity: 0.5; transition: opacity 0.15s; flex-shrink: 0; }
    .note-pin-btn:hover, .note-pin-btn.active { opacity: 1; }
    .note-section-label { grid-column: 1/-1; font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
                          text-transform: uppercase; color: var(--muted); padding: 4px 2px 0; }
    mark.note-hl { background: #FDE68A; color: #92400E; border-radius: 2px; padding: 0 1px; }
    .fmt-toolbar { display: flex; gap: 4px; margin-bottom: 6px; }
    .fmt-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
               width: 32px; height: 28px; cursor: pointer; font-size: 13px; font-weight: 700;
               display: flex; align-items: center; justify-content: center; color: var(--text);
               transition: background 0.12s; }
    .fmt-btn:hover { background: var(--border); }
    .note-editor { min-height: 130px; border: 1px solid var(--border); border-radius: 8px;
                   padding: 10px 12px; font-size: 14px; line-height: 1.6; outline: none;
                   background: var(--bg); color: var(--text); word-break: break-word; }
    .note-editor:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
    .note-editor:empty:before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
    /* drag-over highlight for calendar days */
    .cal-day.drag-over { background: rgba(124,58,237,0.12) !important; outline: 2px dashed var(--purple); }

    /* ── GOALS ── */
    .goal-card {
      background: var(--surface);
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 12px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    }
    .goal-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
    .goal-title   { font-size: 15px; font-weight: 700; }
    .goal-pct     { font-size: 20px; font-weight: 800; color: var(--purple); }
    .goal-dl      { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
    .subtask-item { display: flex; align-items: center; gap: 7px; padding: 4px 0; font-size: 12px; color: var(--muted); }
    .subtask-item input { accent-color: var(--purple); }

    /* ── MODALS ── */
    .modal-bg {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.42);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 999;
      backdrop-filter: blur(3px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s;
      touch-action: none;
      overscroll-behavior: contain;
    }
    .modal-bg.open { opacity: 1; pointer-events: all; overscroll-behavior: none; touch-action: none; }
    .modal {
      background: var(--surface);
      border-radius: 16px;
      padding: 22px;
      width: 360px;
      max-width: calc(100vw - 32px);
      max-height: 85dvh;
      overflow-y: auto;
      scroll-behavior: smooth;
      box-shadow: 0 20px 60px rgba(0,0,0,0.2);
      transform: scale(0.94) translateZ(0);
      -webkit-transform: scale(0.94) translateZ(0);
      transition: transform 0.2s;
      position: relative;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }
    .modal-bg.open .modal { transform: scale(1) translateZ(0); -webkit-transform: scale(1) translateZ(0); }
    .modal-hdr {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 18px;
    }
    .modal-hdr h3 { font-size: 15px; font-weight: 700; }
    .modal-close {
      width: 27px; height: 27px;
      border: none;
      background: var(--border);
      border-radius: 6px;
      cursor: pointer;
      font-size: 13px;
    }

    /* FORM */
    .fg { margin-bottom: 13px; }
    .flabel {
      display: block;
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 5px;
    }
    .finput, .ftextarea, .fselect {
      width: 100%;
      padding: 8px 11px;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 13px;
      color: var(--text);
      background: var(--bg);
      outline: none;
      transition: border-color 0.15s;
      font-family: inherit;
    }
    .finput:focus, .ftextarea:focus, .fselect:focus { border-color: var(--purple); }
    .ftextarea { resize: vertical; min-height: 72px; }

    .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

    /* CHECKLIST EDITOR */
    .cl-editor { border: 1px solid var(--border); border-radius: 8px; }
    .cl-edit-item {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 7px 10px;
      border-bottom: 1px solid var(--border);
    }
    .cl-edit-item:last-child { border-bottom: none; }
    .cl-edit-item input[type="text"] {
      flex: 1;
      border: none;
      background: none;
      outline: none;
      font-size: 13px;
      color: var(--text);
      font-family: inherit;
    }
    .cl-add-btn {
      width: 100%;
      padding: 7px;
      border: none;
      background: none;
      cursor: pointer;
      font-size: 12px;
      color: var(--purple);
      text-align: left;
      font-weight: 600;
    }

    /* COLOR PICKER */
    .cpicker { display: flex; gap: 7px; flex-wrap: wrap; }
    .copt {
      width: 22px; height: 22px;
      border-radius: 50%;
      cursor: pointer;
      border: 2px solid transparent;
      transition: transform 0.15s;
    }
    .copt:hover { transform: scale(1.18); }
    .copt.sel   { border-color: var(--text); transform: scale(1.15); }
    .copt-custom { position: relative; overflow: hidden; }
    .copt-custom input[type=color] { position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:none;padding:0;margin:0; }

    .modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

    /* WELCOME SCREEN */
    /* ── ONBOARDING ── */
    @keyframes obOverlayIn { from { opacity: 0; } to { opacity: 1; } }
    .welcome-overlay {
      position: fixed; inset: 0;
      background: #ffffff;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      z-index: 9999; transition: opacity 0.5s ease, transform 0.5s ease;
      animation: obOverlayIn 0.5s ease;
    }
    .welcome-overlay.hide { opacity: 0; pointer-events: none; transform: scale(1.03); }

    /* botão voltar — canto superior esquerdo */
    .ob-back {
      position: absolute; top: 20px; left: 20px;
      background: #f3f4f6; border: none; color: #000000;
      font-size: 13px; font-weight: 500; cursor: pointer;
      padding: 7px 14px; border-radius: 20px;
      transition: background 0.15s; font-family: inherit;
      display: none; z-index: 10;
    }
    .ob-back:hover { background: #e5e7eb; }
    .ob-back.visible { display: block; }

    /* progress dots */
    .ob-progress {
      position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
      display: flex; gap: 8px; align-items: center; z-index: 10;
    }
    .ob-dot {
      width: 8px; height: 8px; border-radius: 50%;
      background: #d1d5db; transition: all 0.3s;
    }
    .ob-dot.active { background: #000000; width: 22px; border-radius: 4px; }
    .ob-dot.done   { background: #d1d5db; }

    /* skip button */
    .ob-skip {
      position: absolute; top: 20px; right: 20px;
      background: #f3f4f6; border: none; border-radius: 20px;
      padding: 7px 16px; font-size: 13px; font-weight: 500;
      color: #000000; cursor: pointer; transition: background 0.15s;
      font-family: inherit; z-index: 10;
    }
    .ob-skip:hover { background: #e5e7eb; }

    /* step containers */
    .ob-step {
      position: absolute; inset: 0;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      opacity: 0; pointer-events: none;
      transition: opacity 0.32s ease, transform 0.32s ease;
      transform: translateX(40px);
    }
    .ob-step.active     { opacity: 1; pointer-events: auto; transform: translateX(0); }
    .ob-step.exit       { opacity: 0; transform: translateX(-40px); }
    .ob-step.exit-right { opacity: 0; transform: translateX(40px); }

    /* card */
    .ob-card {
      text-align: center; padding: 44px 40px 36px;
      max-width: 480px; width: 92%;
      background: #f9f9f9;
      border: 1px solid #e5e7eb;
      border-radius: 24px;
    }
    .ob-emoji { font-size: 56px; margin-bottom: 12px; line-height: 1; }
    .ob-title {
      font-size: 26px; font-weight: 900; color: #000000;
      letter-spacing: -0.5px; margin-bottom: 8px;
    }
    .ob-title span { color: #000000; }
    .ob-sub { font-size: 14px; color: #6b7280; margin-bottom: 32px; line-height: 1.5; }
    .ob-label {
      font-size: 11px; font-weight: 700; text-transform: uppercase;
      letter-spacing: 1px; color: #6b7280; margin-bottom: 10px; text-align: left;
    }

    /* main button */
    .ob-btn {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--purple); color: #ffffff;
      border: none; border-radius: 14px; padding: 14px 32px;
      font-size: 15px; font-weight: 800; cursor: pointer;
      transition: all 0.2s; letter-spacing: -0.2px; font-family: inherit;
    }
    .ob-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.15); }
    .ob-btn-ghost {
      background: #f3f4f6; color: #000000; border: none;
      border-radius: 12px; padding: 12px 24px; font-size: 14px; font-weight: 600;
      cursor: pointer; transition: all 0.15s; font-family: inherit;
    }
    .ob-btn-ghost:hover { background: #e5e7eb; color: #000000; }
    .ob-nav { display: flex; gap: 10px; justify-content: center; margin-top: 28px; align-items: center; }

    /* input */
    .ob-input {
      width: 100%; padding: 16px 18px; border-radius: 12px;
      background: #f3f4f6; border: 1.5px solid #e5e7eb;
      font-size: 18px; font-weight: 700; color: #000000; outline: none;
      font-family: inherit; transition: border-color 0.2s; text-align: center; margin-bottom: 8px;
    }
    .ob-input::placeholder { color: #9ca3af; }
    .ob-input:focus { border-color: #000000; }

    /* theme chooser */
    .ob-theme-grid { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
    .ob-theme-circle {
      width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
      border: 3px solid transparent; transition: all 0.2s;
    }
    .ob-theme-circle:hover { transform: scale(1.12); }
    .ob-theme-circle.sel { border-color: #000000; transform: scale(1.18); box-shadow: 0 0 0 2px rgba(0,0,0,0.15); }
    .ob-mode-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
    .ob-mode-btn {
      flex:1; max-width:140px; padding:14px 10px; border-radius:12px;
      border: 2px solid #e5e7eb; background: #ffffff;
      cursor: pointer; color: #000000; font-size:13px; font-weight:600;
      transition: all 0.15s; font-family: inherit;
    }
    .ob-mode-btn .ob-mode-icon { font-size:24px; margin-bottom:6px; }
    .ob-mode-btn.sel { border-color: #000000; background: #000000; color: #ffffff; font-weight: 700; }

    /* goal cards */
    .ob-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
    .ob-option {
      padding: 16px 12px; border-radius: 14px; border: 2px solid #e5e7eb;
      background: #ffffff; cursor: pointer; transition: all 0.18s;
      text-align: center; color: #374151;
    }
    .ob-option:hover { border-color: #9ca3af; background: #f3f4f6; }
    .ob-option.sel { border-color: #000000; background: #000000; color: #ffffff; }
    .ob-option-icon { font-size: 28px; margin-bottom: 6px; }
    .ob-option-title { font-size: 13px; font-weight: 700; }
    .ob-option-sub { font-size: 11px; opacity: 0.7; margin-top: 2px; }

    /* modules */
    .ob-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 290px; overflow-y: auto; scroll-behavior: smooth; }
    .ob-module {
      display: flex; align-items: center; gap: 10px; padding: 10px 12px;
      border-radius: 10px; border: 1.5px solid #e5e7eb;
      background: #ffffff; cursor: pointer; transition: all 0.15s;
      text-align:left; color: #374151;
    }
    .ob-module:hover { border-color: #9ca3af; background: #f3f4f6; }
    .ob-module.sel { border-color: #000000; background: #000000; color: #ffffff; }
    .ob-module-icon { font-size: 20px; flex-shrink:0; }
    .ob-module-name { font-size: 12px; font-weight: 600; }
    .ob-module-check { margin-left:auto; font-size:14px; opacity:0; transition:opacity 0.15s; }
    .ob-module.sel .ob-module-check { opacity:1; }

    /* done screen */
    .ob-done-ring {
      width: 96px; height: 96px; border-radius: 50%;
      background: #f3f4f6; border: 3px solid #e5e7eb;
      display: flex; align-items: center; justify-content: center;
      font-size: 44px; color: #000000; margin: 0 auto 20px; animation: obPulse 1.5s ease infinite;
    }
    @keyframes obPulse { 0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(0,0,0,0.1);}
                          50%{transform:scale(1.05);box-shadow:0 0 0 14px rgba(0,0,0,0);} }

    /* ONBOARDING DARK MODE */
    body.dark-mode .welcome-overlay { background: var(--bg); }
    body.dark-mode .ob-card { background: var(--surface); border-color: var(--border); }
    body.dark-mode .ob-title { color: var(--text); }
    body.dark-mode .ob-sub   { color: var(--muted); }
    body.dark-mode .ob-label { color: var(--muted); }
    body.dark-mode .ob-back  { background: var(--surface); color: var(--text); }
    body.dark-mode .ob-back:hover  { background: var(--border); }
    body.dark-mode .ob-skip  { background: var(--surface); color: var(--text); }
    body.dark-mode .ob-skip:hover  { background: var(--border); }
    body.dark-mode .ob-dot   { background: var(--border); }
    body.dark-mode .ob-dot.active  { background: var(--text); }
    body.dark-mode .ob-dot.done    { background: var(--border); }
    body.dark-mode .ob-input { background: var(--bg); border-color: var(--border); color: var(--text); }
    body.dark-mode .ob-input::placeholder { color: var(--muted); }
    body.dark-mode .ob-input:focus  { border-color: var(--purple); }
    body.dark-mode .ob-btn-ghost    { background: var(--surface); color: var(--text); }
    body.dark-mode .ob-btn-ghost:hover { background: var(--border); }
    body.dark-mode .ob-mode-btn     { border-color: var(--border); background: var(--bg); color: var(--muted); }
    body.dark-mode .ob-mode-btn.sel { border-color: var(--text); background: var(--text); color: var(--surface); }
    body.dark-mode .ob-option       { border-color: var(--border); background: var(--bg); color: var(--muted); }
    body.dark-mode .ob-option:hover { border-color: var(--purple-light); background: var(--surface); }
    body.dark-mode .ob-option.sel   { border-color: var(--purple); background: rgba(124,58,237,0.18); color: var(--text); }
    body.dark-mode .ob-module       { border-color: var(--border); background: var(--bg); color: var(--muted); }
    body.dark-mode .ob-module:hover { border-color: var(--purple-light); background: var(--surface); }
    body.dark-mode .ob-module.sel   { border-color: var(--purple); background: rgba(124,58,237,0.18); color: var(--text); }
    body.dark-mode .ob-theme-circle.sel { border-color: var(--text); box-shadow: 0 0 0 2px rgba(255,255,255,0.15); }
    body.dark-mode .ob-done-ring    { background: var(--surface); border-color: var(--border); color: var(--text); }

    /* RICH TEXT EDITOR */
    .rich-toolbar {
      display: flex; gap: 3px; padding: 5px 6px;
      border: 1px solid var(--border); border-bottom: none;
      border-radius: 8px 8px 0 0; background: var(--bg);
    }
    .rich-toolbar button {
      width: 26px; height: 26px; border: none; border-radius: 5px;
      background: transparent; cursor: pointer; font-size: 13px; font-weight: 700;
      color: var(--muted); display: flex; align-items: center; justify-content: center;
      font-family: inherit; transition: background 0.1s;
    }
    .rich-toolbar button:hover { background: var(--border); color: var(--text); }
    .rich-editor {
      width: 100%; min-height: 72px; padding: 8px 11px;
      border: 1px solid var(--border); border-radius: 0 0 8px 8px;
      font-size: 13px; color: var(--text); background: var(--bg);
      outline: none; font-family: inherit; line-height: 1.5;
    }
    .rich-editor:focus { border-color: var(--purple); }
    .rich-editor:empty:before { content: attr(data-placeholder); color: var(--light); }
    .rich-editor ul, .rich-editor ol { padding-left: 18px; }

    /* THEME PICKER ON WELCOME */
    .theme-circle {
      width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
      border: 3px solid transparent; transition: transform 0.15s, border-color 0.15s;
    }
    .theme-circle:hover { transform: scale(1.15); }
    .theme-circle.sel { border-color: #fff; transform: scale(1.12); }

    /* WHITEBOARD */
    .wb-container {
      position: relative; width: 100%; height: calc(100dvh - 130px);
      overflow: hidden; background-color: #F8F9FB;
      background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
      background-size: 24px 24px; border-radius: 12px; cursor: default;
      box-shadow: 0 1px 3px rgba(0,0,0,0.07); transition: background-color 0.3s;
    }
    .wb-zoom-badge {
      position: absolute; bottom: 12px; right: 12px; z-index: 10;
      display: flex; align-items: center; gap: 4px;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; padding: 5px 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .wb-zoom-badge button {
      width: 24px; height: 24px; border: none; border-radius: 6px;
      background: var(--bg); cursor: pointer; font-size: 14px; font-weight: 700;
      color: var(--text); display: flex; align-items: center; justify-content: center;
      transition: background 0.12s;
    }
    .wb-zoom-badge button:hover { background: var(--border); }
    .wb-zoom-label { font-size: 11px; font-weight: 600; color: var(--muted); min-width: 34px; text-align: center; }
    .wb-tools {
      position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
      background: var(--surface); border-radius: 14px;
      box-shadow: 0 4px 24px rgba(0,0,0,0.13); border: 1px solid var(--border);
      padding: 6px 8px; display: flex; flex-direction: row; align-items: center; gap: 2px; z-index: 10;
      transition: background 0.3s; width: fit-content;
    }
    .wb-tool-section { display: flex; flex-direction: row; gap: 2px; }
    .wb-sep { width: 1px; height: 28px; align-self: center; background: var(--border); margin: 2px 4px; }
    .wb-tool-btn {
      width: 38px; height: 38px; border: none; border-radius: 8px;
      background: transparent; cursor: pointer; font-size: 18px;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.12s, color 0.12s; color: var(--muted);
      position: relative;
    }
    .wb-tool-btn:hover { background: var(--bg); color: var(--text); }
    .wb-tool-btn.active { background: var(--purple); color: white; }
    .wb-width-btn {
      width: 38px; height: 30px; border: none; border-radius: 8px;
      background: transparent; cursor: pointer; display: flex;
      align-items: center; justify-content: center;
      transition: background 0.12s; color: var(--muted);
    }
    .wb-width-btn:hover { background: var(--bg); color: var(--text); }
    .wb-width-btn.active { background: var(--bg); color: var(--purple); }
    .wb-color-grid {
      display: flex; flex-wrap: nowrap; align-items: center;
      gap: 4px; padding: 2px;
    }
    .wb-color-swatch { position: relative; overflow: hidden; }
    .wb-color-swatch {
      width: 17px; height: 17px; border-radius: 50%; cursor: pointer;
      border: 2px solid transparent; transition: transform 0.1s, border-color 0.1s;
      flex-shrink: 0;
    }
    .wb-color-swatch:hover { transform: scale(1.2); }
    .wb-color-swatch.active { border-color: var(--purple); transform: scale(1.15); }
    .wb-color-swatch.copt-custom {
      width: 24px; height: 24px;
      background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
      border-color: #e5e7eb;
    }
    .wb-color-swatch.copt-custom.active { border-color: var(--purple); }
    .wb-sticky {
      position: absolute; width: 160px; min-height: 130px;
      padding: 8px; border-radius: 6px; box-shadow: 3px 4px 12px rgba(0,0,0,0.15);
      cursor: move; font-size: 13px; line-height: 1.4; font-family: inherit;
      pointer-events: auto; user-select: none; transition: box-shadow 0.15s;
    }
    .wb-sticky:hover { box-shadow: 4px 6px 18px rgba(0,0,0,0.2); }
    .wb-sticky textarea {
      width: 100%; min-height: 90px; outline: none; font-family: inherit;
      font-size: 13px; background: transparent; border: none; resize: none;
      line-height: 1.4; cursor: text; pointer-events: auto;
    }
    .wb-text-el {
      position: absolute; font-size: 16px; font-family: inherit;
      outline: none; background: transparent; border: 1px dashed transparent;
      padding: 2px 4px; min-width: 60px; cursor: move;
      white-space: pre-wrap; pointer-events: auto;
    }
    .wb-text-el:focus { border-color: var(--purple-light); cursor: text; }
    .wb-selected { outline: 2px solid var(--purple) !important; outline-offset: 3px; }
    #wb-del-btn.has-selection { color: var(--red) !important; }
    @keyframes wbToastAnim { 0%{opacity:0;transform:translateX(-50%) translateY(6px)} 15%{opacity:1;transform:translateX(-50%) translateY(0)} 75%{opacity:1} 100%{opacity:0;transform:translateX(-50%) translateY(-4px)} }

    /* COLS MODAL */
    .col-row {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 12px; border-radius: 10px; margin-bottom: 6px;
      background: var(--bg); border: 1px solid var(--border);
      transition: background 0.15s;
    }
    .col-row:hover { background: #EDE9FF; }
    .col-row input[type=text] {
      flex: 1; border: none; background: transparent; font-size: 13px;
      font-weight: 600; outline: none; color: var(--text); min-width: 0;
    }
    .col-color-swatch {
      width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
      cursor: pointer; border: 2px solid var(--border);
      transition: transform 0.15s; position: relative;
    }
    .col-color-swatch:hover { transform: scale(1.2); }
    .col-color-picker-wrap {
      position: absolute; top: 28px; left: -6px; z-index: 50;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; padding: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
      display: flex; flex-wrap: wrap; gap: 6px; width: 152px;
    }
    .col-color-opt {
      width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
      border: 2px solid transparent; transition: transform 0.12s, border-color 0.12s;
      position: relative; overflow: hidden;
    }
    .col-color-opt:hover { transform: scale(1.2); }
    .col-color-opt.sel { border-color: var(--text); }
    .col-row-actions { display: flex; gap: 4px; flex-shrink: 0; }
    .col-action-btn {
      width: 28px; height: 28px; border: none; border-radius: 7px;
      cursor: pointer; font-size: 13px; display: flex; align-items: center;
      justify-content: center; background: transparent; color: var(--muted);
      transition: background 0.12s, color 0.12s;
    }
    .col-action-btn:hover { background: var(--border); color: var(--text); }
    .col-action-btn.danger:hover { background: #FEE2E2; color: var(--red); }
    .col-archived-row {
      display: flex; align-items: center; gap: 10px; padding: 8px 12px;
      border-radius: 8px; margin-bottom: 4px; opacity: 0.7;
    }

    /* LISTS */
    .lists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
    .list-card {
      background: var(--surface); border-radius: 14px; padding: 18px 18px 14px;
      border: 1.5px solid var(--border); cursor: pointer; transition: all 0.18s;
      position: relative; overflow: hidden;
    }
    .list-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); border-color: var(--purple-light); }
    .list-card-accent { position: absolute; top: 0; left: 0; width: 100%; height: 4px; border-radius: 14px 14px 0 0; }
    .list-card-icon { font-size: 28px; margin-bottom: 8px; }
    .list-card-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
    .list-card-meta { font-size: 12px; color: var(--muted); }
    .list-card-bar { height: 5px; background: var(--border); border-radius: 99px; margin-top: 12px; overflow: hidden; }
    .list-card-bar-fill { height: 100%; border-radius: 99px; transition: width 0.3s; }
    .list-card-actions { display: flex; gap: 6px; margin-top: 12px; }
    .list-detail-items { max-height: 360px; overflow-y: auto; scroll-behavior: smooth; margin-bottom: 12px; }
    .list-item-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; transition: background 0.12s; }
    .list-item-row:hover { background: var(--bg); }
    .list-item-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--purple); flex-shrink: 0; cursor: pointer; }
    .list-item-text { flex: 1; font-size: 14px; color: var(--text); }
    .list-item-text.done { text-decoration: line-through; color: var(--light); }
    .list-item-del { background: none; border: none; color: var(--light); cursor: pointer; font-size: 14px; padding: 2px 4px; border-radius: 4px; }
    .list-item-del:hover { color: var(--red); background: #fee2e2; }
    .list-add-row { display: flex; gap: 8px; margin-top: 4px; }

/* FEEDBACK BUBBLE */
    .feedback-btn {
      position: fixed; bottom: 24px; right: 24px; z-index: 900;
      width: 52px; height: 52px; border-radius: 50%;
      background: var(--purple); color: #fff; border: none; cursor: pointer;
      font-size: 22px; box-shadow: 0 4px 18px rgba(124,58,237,0.45);
      display: flex; align-items: center; justify-content: center;
      transition: transform 0.2s, box-shadow 0.2s, background 0.1s;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      /* Garantir área de toque mínima 44×44px mesmo se o botão for menor */
      min-width: 52px; min-height: 52px;
    }
    .feedback-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(124,58,237,0.55); }
    .feedback-btn:active,
    .feedback-btn.tapping { background: var(--purple-dark); transform: scale(0.93); box-shadow: 0 2px 10px rgba(124,58,237,0.4); }
    .feedback-bubble {
      position: fixed; bottom: 86px; right: 24px; z-index: 900;
      width: 320px; background: var(--surface); border-radius: 16px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.18); border: 1px solid var(--border);
      display: none; flex-direction: column; overflow: hidden;
      animation: fadeUp 0.2s ease;
      pointer-events: none;
    }
    .feedback-bubble.open { display: flex; pointer-events: auto; }
    .feedback-bubble-hdr {
      background: var(--purple); color: #fff; padding: 14px 16px 12px;
      display: flex; align-items: center; justify-content: space-between;
    }
    .feedback-bubble-hdr h4 { font-size: 14px; font-weight: 700; margin: 0; }
    .feedback-bubble-hdr span { font-size: 12px; opacity: 0.85; }
    .feedback-bubble-close { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; padding: 0 2px; opacity: 0.8; }
    .feedback-bubble-close:hover { opacity: 1; }
    .feedback-bubble-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
    .feedback-list { max-height: 180px; overflow-y: auto; scroll-behavior: smooth; display: flex; flex-direction: column; gap: 6px; }
    .feedback-item {
      background: var(--bg); border-radius: 8px; padding: 8px 10px;
      font-size: 12px; color: var(--text); line-height: 1.45; position: relative;
    }
    .feedback-item-date { font-size: 10px; color: var(--light); margin-top: 3px; }
    .feedback-item-del { position: absolute; top: 6px; right: 6px; background: none; border: none; color: var(--light); cursor: pointer; font-size: 12px; padding: 1px 3px; border-radius: 4px; }
    .feedback-item-del:hover { color: var(--red); background: #fee2e2; }
    .feedback-empty { font-size: 12px; color: var(--light); text-align: center; padding: 10px 0; }
    .feedback-inp-row { display: flex; gap: 6px; }
    .feedback-inp-row textarea { flex: 1; resize: none; height: 64px; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-family: inherit; color: var(--text); background: var(--surface); outline: none; }
    .feedback-inp-row textarea:focus { border-color: var(--purple-light); }
    .feedback-send { align-self: flex-end; }

    /* SCROLLBAR */
    ::-webkit-scrollbar { width: 5px; height: 5px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

    /* ANIM */
    @keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
    .anim { animation: fadeUp 0.25s ease; }

    /* RESPONSIVE */
    @media (max-width: 780px) {
      .sidebar { width: 54px; }
      .nav-item span:not(.icon) { display: none; }
      .sidebar-logo { font-size: 15px; }
      .nav-section { display: none; }
      .stats-row { grid-template-columns: repeat(2, 1fr); }
      .dash-grid, .dash-grid-3 { grid-template-columns: 1fr; }
    }

    /* ── MOBILE (phones) ── */
    .mobile-topbar { display: none; }
    .mobile-bottom-nav { display: none; }
    .mobile-drawer-bg { display: none; }

    @media (max-width: 600px) {
      body { display: block; height: auto; min-height: 100dvh; overflow-y: auto; overflow-x: hidden; }
      .main { overflow-y: visible; } /* body handles scroll on mobile; avoid double scroll container */
      .sidebar { display: none !important; }

      .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* safe-area-inset-top empurra conteúdo abaixo do notch/dynamic island */
        padding: max(12px, var(--safe-top)) 16px 12px;
        padding-left:  max(16px, var(--safe-left));
        padding-right: max(16px, var(--safe-right));
        background: var(--sidebar);
        color: #fff;
        position: sticky;
        top: 0;
        z-index: 200;
      }
      .mobile-topbar-logo { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.5px; display:flex; align-items:center; gap:8px; }
      .mobile-topbar-logo span { color: var(--purple-light); }
      .mobile-topbar-actions { display: flex; gap: 8px; align-items: center; }
      .mobile-topbar-btn {
        background: rgba(255,255,255,0.12); border: none; color: #fff;
        border-radius: 8px; padding: 6px 10px; font-size: 16px; cursor: pointer;
      }

      .main {
        padding-top: 14px;
        padding-left:  max(14px, var(--safe-left));
        padding-right: max(14px, var(--safe-right));
        padding-bottom: calc(72px + max(var(--safe-bottom), 12px));
      }

      .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        z-index: 200;
        min-height: 60px;
        padding-bottom: max(env(safe-area-inset-bottom, 0px), 12px);
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
      }
      .mobile-nav-btn {
        flex: 1; display: flex; flex-direction: column; align-items: center;
        gap: 4px; padding: 10px 4px 8px;
        background: none; border: none; color: #9ca3af;
        font-size: 11px; font-weight: 500; cursor: pointer;
        transition: color 0.15s; position: relative;
        overflow: visible; line-height: 1.2;
      }
      .mobile-nav-btn .mni {
        width: 40px; height: 28px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 8px; transition: background 0.15s;
      }
      .mobile-nav-btn .mni svg { width: 22px; height: 22px; display: block; }
      .mobile-nav-btn.active { color: #000000; font-weight: 700; }
      .mobile-nav-btn.active .mni { background: #f3f4f6; }

      .mobile-drawer-bg {
        position: fixed; inset: 0; background: rgba(0,0,0,0.5);
        z-index: 300; display: none; align-items: flex-end;
      }
      .mobile-drawer-bg.open { display: flex; }
      .mobile-drawer {
        background: var(--surface); border-radius: 20px 20px 0 0;
        width: 100%; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
        max-height: 80dvh; overflow-y: auto; scroll-behavior: smooth;
      }
      .mobile-drawer-handle {
        width: 36px; height: 4px; background: var(--border);
        border-radius: 2px; margin: 0 auto 16px;
      }
      .mobile-drawer-item {
        display: flex; align-items: center; gap: 12px;
        padding: 13px 10px; border-radius: 10px; cursor: pointer;
        font-size: 14px; font-weight: 500; color: var(--text);
      }
      .mobile-drawer-item:hover { background: var(--bg); }
      .mobile-drawer-item .icon { font-size: 18px; }
      .mobile-drawer-sep {
        font-size: 10px; font-weight: 700; text-transform: uppercase;
        letter-spacing: 0.8px; color: var(--muted); padding: 10px 10px 4px;
      }

      .kanban-sticky-header {
        position: sticky;
        top: var(--topbar-h); /* topbar height = 44px base + safe-area-inset-top */
        z-index: 50;
        background: var(--bg);
        margin: -14px -14px 0;
        padding: 14px 14px 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      }
      .kanban-sticky-header .page-header { margin-bottom: 12px; }
      .kanban-board { overflow-x: auto; overflow-y: auto; padding-bottom: 8px; margin-top: 16px; }
      .kanban-col { min-width: 260px; }
      .two-col { grid-template-columns: 1fr; }
      .stats-row { grid-template-columns: 1fr 1fr; }
      .dash-grid, .dash-grid-3 { grid-template-columns: 1fr; }
      .cal-grid { font-size: 11px; }
      .cal-day { min-height: unset; height: 68px; padding: 3px; }
      .cal-day-num { font-size: 10px; margin-bottom: 2px; }
      .cal-event { font-size: 10px; padding: 1px 3px; }

      .habit-week-nav { width: 100%; }

      .feedback-btn { bottom: calc(60px + env(safe-area-inset-bottom) + 16px); z-index: 1000; }
      .feedback-bubble { bottom: calc(60px + env(safe-area-inset-bottom) + 76px); right: 12px; width: calc(100vw - 24px); z-index: 1000; }
      .feedback-btn.drawer-open, .feedback-bubble.drawer-open { display: none !important; }

      .settings-toggle, .dark-toggle { display: none; }
      .nav-wb-item, .mobile-drawer-wb-item { display: none; }

      /* ── WATER mobile overrides ── */
      #s-water .card { max-width: 100% !important; overflow-x: hidden; }
      #s-water .page-header { flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 10px; }
      #s-water .page-header > div:last-child { gap: 6px; }
      #s-water .page-header .finput, #s-water .page-header .fselect { font-size: 14px; padding: 7px 8px; }
      .water-wrap { padding: 20px 12px 14px; }
      .water-ring-wrap { width: 190px; height: 190px; padding: 10px; margin-bottom: 16px; }
      .water-num { font-size: clamp(3rem, 16vw, 4.5rem); }
      .water-phrase { font-size: 11px; }
      .water-sub { font-size: 11px; }
      .w-bottle { width: 52px; height: 52px; font-size: 24px; }
      .water-bottles { gap: 10px; }
      .water-btn-add-big { font-size: 17px; padding: 16px; border-radius: 16px; -webkit-tap-highlight-color: transparent; }
      .water-btn-small-row .btn { padding: 11px 8px; font-size: 13px; }
    }

    /* ── VERY SMALL PHONES (360px — Android médio, iPhone SE) ── */
    @media (max-width: 360px) {
      /* Fonte mínima de 13px para conteúdo legível */
      body { font-size: 13px; }
      .page-title  { font-size: 17px; }
      .page-subtitle { font-size: 11px; }
      .k-card { font-size: 13px; }
      .k-card-title { font-size: 13px; }
      .stat-card .sl { font-size: 10px; }
      .stat-card .sn { font-size: 22px; }
      .btn  { font-size: 12px; padding: 7px 12px; }
      /* Kanban col ligeiramente mais estreita */
      .kanban-col { min-width: 240px; }
      /* Modal ocupa quase toda a tela */
      .modal { width: calc(100vw - 16px); padding: 16px; }
      /* Nav labels menores mas ok em UI chrome */
      .mobile-nav-btn { font-size: 10px; }
      /* Calendário: manter 10px pois cabe em células pequenas */
      /* Cards de hábitos, prioridades: garantir 13px */
      .sec-label { font-size: 10px; }
      .card { font-size: 13px; }
      /* Inputs: 16px previne zoom automático do iOS Safari */
      .finput, .fselect, input[type="text"], input[type="email"],
      textarea, select { font-size: 16px; }
    }
