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

   :root {
      --bg: #0a0a0f;
      --bg2: #12121a;
      --bg3: #1a1a26;
      --bg4: #22222f;
      --bg5: #2a2a3a;
          --text: #f0f0f8;
    --text2: #ffffff;
    --text3: #ffffff;
      --green: #4ade80;
      --amber: #fbbf24;
      --red: #f87171;
      --blue: #60a5fa;
      --pink: #f472b6;
      --teal: #2dd4bf;
      --border: rgba(255, 255, 255, 0.06);
      --border2: rgba(255, 255, 255, 0.1);
      --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
      --radius: 14px;
      --radius2: 10px;
      --radius3: 8px;
    }

   :root{--accent:#7c6ff7;--accent2:#6a5ce6;--accent3:#a9a0ff;--accent-rgb:124,111,247}
/* ── ACCENT COLOR THEMES ── */
/* Dark mode */
[data-accent="blue"]   { --accent:#3b82f6; --accent2:#2563eb; --accent3:#93c5fd; }
[data-accent="green"]  { --accent:#22c55e; --accent2:#16a34a; --accent3:#86efac; }
[data-accent="orange"] { --accent:#f97316; --accent2:#ea580c; --accent3:#fdba74; }
[data-accent="pink"]   { --accent:#ec4899; --accent2:#db2777; --accent3:#f9a8d4; }
[data-accent="red"]    { --accent:#ef4444; --accent2:#dc2626; --accent3:#fca5a5; }

/* Light mode — overridden through higher specificity */
[data-theme="light"][data-accent="blue"],
[data-theme="light"] [data-accent="blue"]   { --accent:#2563eb; --accent2:#1d4ed8; --accent3:#1e40af; }
[data-theme="light"][data-accent="green"],
[data-theme="light"] [data-accent="green"]  { --accent:#16a34a; --accent2:#15803d; --accent3:#14532d; }
[data-theme="light"][data-accent="orange"],
[data-theme="light"] [data-accent="orange"] { --accent:#ea580c; --accent2:#c2410c; --accent3:#9a3412; }
[data-theme="light"][data-accent="pink"],
[data-theme="light"] [data-accent="pink"]   { --accent:#db2777; --accent2:#be185d; --accent3:#9d174d; }
[data-theme="light"][data-accent="red"],
[data-theme="light"] [data-accent="red"]    { --accent:#dc2626; --accent2:#b91c1c; --accent3:#991b1b; }
    /* ── LIGHT MODE ── */
    [data-theme="light"] {
      --bg: #f0f0f8;
      --bg2: #ffffff;
      --bg3: #e8e8f4;
      --bg4: #dcdcec;
      --bg5: #c8c8dc;
      --text: #1a1a2e;
      --text2: #4a4a6a;
      --text3: #8a8aaa; 
      --green: #16a34a;
      --amber: #d97706;
      --red: #dc2626;
      --blue: #2563eb;
      --pink: #db2777;
      --teal: #0d9488;
      --border: rgba(0, 0, 0, 0.08);
      --border2: rgba(0, 0, 0, 0.14);
      --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }

    html,
    body {
      height: 100%;
      overflow: hidden
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 14px;
      line-height: 1.5
    }

    h1,
    h2,
    h3,
    .logo-text,
    .page-title,
    .modal-title,
    .stat-value,
    .greeting-text,
    .timer-display {
      font-family: 'Outfit', sans-serif
    }

    /* ── AUTH SCREEN ── */
    #auth-screen {
      position: fixed;
      inset: 0;
      background: var(--bg);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      padding: 20px
    }

    .auth-box {
      background: var(--bg2);
      border: 1px solid var(--border2);
      border-radius: 20px;
      padding: 36px 32px;
      width: 100%;
      max-width: 420px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6)
    }

    .auth-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 28px
    }

    .auth-logo-icon {
      width: 46px;
      height: 46px;
      background: var(--accent);
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.4)
    }

    .auth-title {
      font-size: 22px;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -.4px
    }

    .auth-sub {
      font-size: 11px;
      color: var(--text3);
      text-transform: uppercase;
      letter-spacing: .8px
    }

    .auth-tabs {
      display: flex;
      background: var(--bg3);
      border-radius: 10px;
      padding: 4px;
      margin-bottom: 24px
    }

    .auth-tab {
      flex: 1;
      text-align: center;
      padding: 9px;
      border-radius: 7px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      color: var(--text2);
      transition: all .2s;
      font-family: 'Plus Jakarta Sans', sans-serif;
      border: none;
      background: none
    }

    .auth-tab.active {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3)
    }

    .auth-form-row {
      margin-bottom: 14px
    }

    .auth-label {
      display: block;
      font-size: 11px;
      font-weight: 600;
      color: var(--text2);
      margin-bottom: 5px;
      letter-spacing: .3px;
      text-transform: uppercase
    }

    .auth-input {
      background: var(--bg3);
      border: 1px solid var(--border2);
      border-radius: 9px;
      padding: 11px 14px;
      color: var(--text);
      font-size: 13px;
      width: 100%;
      outline: none;
      transition: all .15s;
      font-family: 'Plus Jakarta Sans', sans-serif
    }

    .auth-input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12)
    }

    .auth-input::placeholder {
      color: var(--text3)
    }

    /* ── PASSWORD SHOW/HIDE TOGGLE ── */
    .pw-wrap {
      position: relative
    }

    .pw-wrap .auth-input {
      padding-right: 46px
    }

    .pw-toggle {
      position: absolute;
      top: 50%;
      right: 6px;
      transform: translateY(-50%);
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      border-radius: 8px;
      color: var(--text3);
      cursor: pointer;
      transition: color .15s, background .15s
    }

    .pw-toggle:hover {
      color: var(--text);
      background: var(--bg4)
    }

    .pw-toggle:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 1px
    }

    .pw-toggle svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round
    }

    .pw-toggle .ic-off {
      display: none
    }

    .pw-toggle.showing {
      color: var(--accent)
    }

    .pw-toggle.showing .ic-on {
      display: none
    }

    .pw-toggle.showing .ic-off {
      display: block
    }

    .auth-btn {
      width: 100%;
      padding: 13px;
      background: var(--accent);
      border: none;
      border-radius: 9px;
      color: #fff;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: all .15s;
      font-family: 'Plus Jakarta Sans', sans-serif;
      box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.3);
      margin-top: 4px
    }

    .auth-btn:hover {
      background: var(--accent2);
      transform: translateY(-1px)
    }

    .auth-btn:active {
      transform: translateY(0)
    }

    .auth-err {
      background: rgba(248, 113, 113, 0.1);
      border: 1px solid rgba(248, 113, 113, 0.3);
      border-radius: 8px;
      padding: 10px 13px;
      color: var(--red);
      font-size: 12px;
      margin-bottom: 14px;
      display: none
    }

    .auth-loading {
      opacity: .6;
      pointer-events: none
    }

    /* ── MAIN APP ── */
    #app {
      display: flex;
      height: 100vh;
      position: relative
    }

    #sidebar {
      width: 230px;
      min-width: 230px;
      background: var(--bg2);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      padding: 20px 0 16px;
      transition: all .3s;
      z-index: 10
    }

    .logo {
      padding: 0 18px 24px;
      display: flex;
      align-items: center;
      gap: 12px
    }

    .logo-icon {
      width: 40px;
      height: 40px;
      background: var(--accent);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
      box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.4)
    }

    .logo-text {
      font-size: 16px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: -.3px
    }

    .logo-sub {
      font-size: 10px;
      color: var(--text3);
      letter-spacing: .5px;
      text-transform: uppercase
    }

    .nav-section {
      padding: 0 10px;
      margin-bottom: 6px
    }

    .nav-label {
      font-size: 9px;
      font-weight: 700;
      color: var(--text3);
      letter-spacing: 1.2px;
      text-transform: uppercase;
      padding: 0 8px;
      margin-bottom: 4px;
      margin-top: 6px
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px;
      border-radius: var(--radius3);
      cursor: pointer;
      color: var(--text2);
      font-size: 13px;
      font-weight: 500;
      transition: all .15s;
      margin-bottom: 1px;
      user-select: none
    }

    .nav-item:hover {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text)
    }

    .nav-item.active {
      background: rgba(var(--accent-rgb), 0.15);
      color: var(--accent3)
    }

    .nav-item .ni {
      font-size: 16px;
      width: 22px;
      text-align: center;
      flex-shrink: 0
    }

    .nav-badge {
      margin-left: auto;
      background: var(--accent);
      color: #fff;
      font-size: 10px;
      padding: 2px 7px;
      border-radius: 10px;
      font-weight: 700
    }

    .sidebar-footer {
      margin-top: auto;
      padding: 12px 10px 0;
      border-top: 1px solid var(--border)
    }

    .user-card {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px;
      border-radius: var(--radius3);
      cursor: pointer;
      transition: background .15s
    }

    .user-card:hover {
      background: rgba(255, 255, 255, 0.04)
    }

    .user-avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent), var(--pink));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      flex-shrink: 0
    }

    .user-name {
      font-size: 12px;
      font-weight: 600;
      color: var(--text)
    }

    .user-role {
      font-size: 10px;
      color: var(--accent3)
    }

    .logout-btn {
      width: 100%;
      margin-top: 6px;
      padding: 8px;
      background: rgba(248, 113, 113, 0.08);
      border: 1px solid rgba(248, 113, 113, 0.15);
      border-radius: 7px;
      color: var(--red);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all .15s;
      font-family: 'Plus Jakarta Sans', sans-serif
    }

    .logout-btn:hover {
      background: rgba(248, 113, 113, 0.15)
    }
    /* ── THEME TOGGLE ── */
    .theme-toggle {
      width: 100%;
      margin-top: 6px;
      padding: 8px;
      background: rgba(var(--accent-rgb), 0.08);
      border: 1px solid rgba(var(--accent-rgb), 0.18);
      border-radius: 7px;
      color: var(--accent3);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all .2s;
      font-family: 'Plus Jakarta Sans', sans-serif;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
    }
    .theme-toggle:hover {
      background: rgba(var(--accent-rgb), 0.16);
      transform: translateY(-1px);
    }
    /* Light mode sticky note text fix */
    [data-theme="light"] .sticky-title { color: #1a1a2e; }
    [data-theme="light"] .sticky-body  { color: #2a2a40; }
    [data-theme="light"] .sticky-footer{ color: #1a1a2e; }
    /* Light mode auth box */
    [data-theme="light"] .auth-box {
      box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    }

    #main {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      min-width: 0
    }

    #topbar {
      background: var(--bg2);
      border-bottom: 1px solid var(--border);
      padding: 0 24px;
      height: 60px;
      display: flex;
      align-items: center;
      gap: 14px;
      flex-shrink: 0
    }

    .page-title {
      font-size: 18px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: -.3px
    }

    .page-sub {
      font-size: 12px;
      color: var(--text3);
      margin-top: 1px
    }

    .topbar-right {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 8px
    }

    .tb-btn {
      background: var(--bg3);
      border: 1px solid var(--border2);
      border-radius: var(--radius3);
      padding: 8px 16px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 600;
      color: var(--text2);
      transition: all .15s;
      white-space: nowrap;
      font-family: 'Plus Jakarta Sans', sans-serif
    }

    .tb-btn:hover {
      background: var(--bg4);
      color: var(--text)
    }

    .tb-btn.primary {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
      box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3)
    }

    .tb-btn.primary:hover {
      background: var(--accent2)
    }

    #content {
      flex: 1;
      overflow-y: scroll;
      overflow-x: hidden;
      padding: 24px;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      min-height: 0
    }

    /* Loading overlay */
    .api-loading {
      position: fixed;
      top: 12px;
      right: 12px;
      background: var(--bg2);
      border: 1px solid var(--border2);
      border-radius: 10px;
      padding: 8px 14px;
      font-size: 12px;
      color: var(--text2);
      z-index: 500;
      display: none;
      align-items: center;
      gap: 8px;
      box-shadow: var(--shadow)
    }

    .api-loading.show {
      display: flex
    }

    .spin {
      width: 14px;
      height: 14px;
      border: 2px solid var(--border2);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin .6s linear infinite
    }

    @keyframes spin {
      to {
        transform: rotate(360deg)
      }
    }

    .card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 18px
    }

    .card-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 6px;
      letter-spacing: -.1px
    }

    .grid2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px
    }

    .grid3 {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 14px
    }

    .grid4 {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px
    }

    .stat-card {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: var(--radius2);
      padding: 16px 18px;
      transition: transform .2s
    }

    .stat-card:hover {
      transform: translateY(-2px)
    }

    .stat-label {
      font-size: 10px;
      color: var(--text3);
      font-weight: 600;
      letter-spacing: .8px;
      text-transform: uppercase;
      margin-bottom: 8px
    }

    .stat-value {
      font-size: 26px;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 2px;
      letter-spacing: -1px
    }

    .stat-change {
      font-size: 11px;
      color: var(--green)
    }

    .prog-wrap {
      background: var(--bg3);
      border-radius: 4px;
      height: 5px;
      overflow: hidden;
      margin-top: 6px
    }

    .prog-bar {
      height: 100%;
      border-radius: 4px;
      transition: width .8s cubic-bezier(.4, 0, .2, 1)
    }

    .tag {
      display: inline-flex;
      align-items: center;
      padding: 3px 9px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600
    }

    .tag.high {
      background: rgba(248, 113, 113, 0.15);
      color: var(--red)
    }

    .tag.med {
      background: rgba(251, 191, 36, 0.15);
      color: var(--amber)
    }

    .tag.low {
      background: rgba(74, 222, 128, 0.15);
      color: var(--green)
    }

    .tag.done {
      background: rgba(74, 222, 128, 0.1);
      color: var(--green)
    }

    .tag.pend {
      background: rgba(var(--accent-rgb), 0.1);
      color: var(--accent3)
    }

    .input {
      background: var(--bg3);
      border: 1px solid var(--border2);
      border-radius: var(--radius3);
      padding: 10px 13px;
      color: var(--text);
      font-size: 13px;
      width: 100%;
      outline: none;
      transition: all .15s;
      font-family: 'Plus Jakarta Sans', sans-serif
    }

    .input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1)
    }

    .input::placeholder {
      color: var(--text3)
    }

    select.input {
      cursor: pointer
    }

    textarea.input {
      resize: none;
      line-height: 1.6
    }

    label {
      display: block;
      font-size: 11px;
      font-weight: 600;
      color: var(--text2);
      margin-bottom: 5px;
      letter-spacing: .3px;
      text-transform: uppercase
    }

    .page {
      display: none
    }

    .page.active {
      display: block;
      animation: fadeIn .2s ease
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(6px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    .task-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 13px 14px;
      border-radius: var(--radius2);
      background: var(--bg3);
      border: 1px solid var(--border);
      margin-bottom: 8px;
      transition: all .15s;
      cursor: pointer
    }

    .task-item:hover {
      background: var(--bg4);
      border-color: var(--border2)
    }

    .task-check {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 2px solid var(--border2);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 1px;
      transition: all .2s;
      cursor: pointer;
      font-size: 11px
    }

    .task-check.done {
      background: var(--green);
      border-color: var(--green);
      color: #fff
    }

    .task-title {
      font-size: 13px;
      font-weight: 500;
      color: var(--text)
    }

    .task-title.done-text {
      text-decoration: line-through;
      color: var(--text3)
    }

    .task-meta {
      font-size: 11px;
      color: var(--text3);
      margin-top: 3px;
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap
    }

    .task-actions {
      margin-left: auto;
      display: flex;
      gap: 4px;
      opacity: 1;
      transition: opacity .15s
    }

    .task-item:hover .task-actions {
      opacity: 1
    }

    .icon-btn {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text3);
      font-size: 14px;
      padding: 3px 5px;
      border-radius: 5px;
      transition: all .15s
    }

    .icon-btn:hover {
      color: var(--text);
      background: var(--bg5)
    }

    .habit-row {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px;
      border-radius: var(--radius2);
      background: var(--bg3);
      border: 1px solid var(--border);
      margin-bottom: 10px;
      transition: all .15s
    }

    .habit-row:hover {
      background: var(--bg4)
    }

    .habit-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0
    }

    .habit-info {
      flex: 1;
      min-width: 0
    }

    .habit-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 2px
    }

    .habit-streak {
      font-size: 11px;
      color: var(--amber)
    }

    .habit-dots {
      display: flex;
      gap: 5px;
      margin-top: 8px;
      align-items: center
    }

    .hdot {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 1.5px solid var(--border2);
      cursor: pointer;
      transition: all .2s;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      color: transparent
    }

    .hdot:hover {
      border-color: var(--accent)
    }

    .hdot.done {
      background: var(--green);
      border-color: var(--green);
      color: #fff
    }

    .hdot.today {
      border-color: var(--accent);
      background: rgba(var(--accent-rgb), 0.15)
    }

    .hdot-label {
      font-size: 9px;
      color: var(--text3)
    }

    .notes-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
      gap: 14px
    }

    .sticky {
      border-radius: var(--radius2);
      padding: 16px;
      min-height: 150px;
      display: flex;
      flex-direction: column;
      cursor: pointer;
      transition: transform .2s, box-shadow .2s;
      position: relative
    }

    .sticky:hover {
      transform: rotate(-1.5deg) scale(1.03);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3)
    }

    .sticky-title {
      font-size: 13px;
      font-weight: 700;
      margin-bottom: 8px;
      color: #1a1a2e;
      font-family: 'Outfit', sans-serif
    }

    .sticky-body {
      font-size: 12px;
      line-height: 1.6;
      flex: 1;
      color: #2a2a40;
      opacity: .9
    }

    .sticky-footer {
      font-size: 10px;
      opacity: .5;
      margin-top: 10px;
      color: #1a1a2e;
      display: flex;
      justify-content: space-between;
      align-items: center
    }

    .sticky-del {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 12px;
      opacity: .6;
      transition: opacity .15s;
      padding: 0
    }

    .sticky-del:hover {
      opacity: 1
    }

    .sticky-pin {
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 14px;
      cursor: pointer
    }

    .journal-entry {
      padding: 14px;
      border-radius: var(--radius2);
      background: var(--bg3);
      border: 1px solid var(--border);
      margin-bottom: 10px;
      cursor: pointer;
      transition: all .15s
    }

    .journal-entry:hover {
      background: var(--bg4);
      border-color: var(--border2)
    }

    .je-date {
      font-size: 10px;
      color: var(--accent3);
      font-weight: 700;
      margin-bottom: 5px;
      text-transform: uppercase;
      letter-spacing: .5px
    }

    .je-mood {
      font-size: 22px;
      margin-bottom: 6px
    }

    .je-preview {
      font-size: 13px;
      color: var(--text2);
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical
    }

    .mood-grid {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin: 8px 0 12px
    }

    .mood-btn {
      font-size: 24px;
      cursor: pointer;
      padding: 8px;
      border-radius: 10px;
      transition: all .15s;
      border: 2px solid transparent
    }

    .mood-btn:hover,
    .mood-btn.sel {
      background: var(--bg4);
      border-color: var(--accent);
      transform: scale(1.15)
    }

    .mini-chart {
      display: flex;
      align-items: flex-end;
      gap: 5px;
      padding-top: 8px
    }

    .bar {
      flex: 1;
      border-radius: 4px 4px 0 0;
      min-width: 10px;
      cursor: pointer;
      transition: opacity .15s
    }

    .bar:hover {
      opacity: .75
    }

    .timer-wrap {
      text-align: center;
      padding: 10px 0
    }

    .timer-circle {
      width: 180px;
      height: 180px;
      border-radius: 50%;
      border: 3px solid var(--border);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin: 0 auto;
      position: relative
    }

    .timer-display {
      font-size: 40px;
      font-weight: 800;
      color: var(--text);
      font-variant-numeric: tabular-nums;
      letter-spacing: -2px
    }

    .timer-label {
      font-size: 11px;
      color: var(--text3);
      margin-top: 4px;
      text-transform: uppercase;
      letter-spacing: .5px
    }

    .ring-svg {
      position: absolute;
      top: -3px;
      left: -3px;
      transform: rotate(-90deg)
    }

    .pomo-modes {
      display: flex;
      gap: 6px;
      justify-content: center;
      margin-bottom: 22px
    }

    .pomo-mode {
      padding: 7px 16px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid var(--border2);
      color: var(--text2);
      transition: all .15s;
      font-family: 'Plus Jakarta Sans', sans-serif
    }

    .pomo-mode.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
      box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3)
    }

    .pomo-btns {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-top: 22px
    }

    .pomo-btn {
      padding: 11px 28px;
      border-radius: var(--radius3);
      border: none;
      cursor: pointer;
      font-size: 13px;
      font-weight: 700;
      transition: all .15s;
      font-family: 'Plus Jakarta Sans', sans-serif
    }

    .pomo-start {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3)
    }

    .pomo-start:hover {
      background: var(--accent2)
    }

    .pomo-reset {
      background: var(--bg3);
      color: var(--text2);
      border: 1px solid var(--border2)
    }

    .reminder-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      border-radius: var(--radius2);
      background: var(--bg3);
      border: 1px solid var(--border);
      margin-bottom: 8px;
      transition: all .15s
    }

    .reminder-item:hover {
      background: var(--bg4)
    }

    .reminder-time {
      font-size: 14px;
      font-weight: 700;
      color: var(--accent3);
      min-width: 52px;
      font-family: 'Outfit', sans-serif
    }

    .reminder-text {
      flex: 1;
      font-size: 13px;
      color: var(--text)
    }

    .rem-badge {
      font-size: 10px;
      padding: 3px 8px;
      border-radius: 10px;
      font-weight: 600
    }

    .search-wrap {
      position: relative;
      margin-bottom: 16px
    }

    .search-wrap .input {
      padding-left: 36px
    }

    .search-icon {
      position: absolute;
      left: 11px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text3);
      font-size: 14px;
      pointer-events: none
    }

    .empty-state {
      text-align: center;
      padding: 40px 20px;
      color: var(--text3)
    }

    .empty-icon {
      font-size: 36px;
      margin-bottom: 10px
    }

    .empty-text {
      font-size: 13px;
      line-height: 1.7
    }

    .greeting-card {
      background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(96, 165, 250, 0.06));
      border: 1px solid rgba(var(--accent-rgb), 0.18);
      border-radius: var(--radius);
      padding: 22px 24px;
      margin-bottom: 18px;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px
    }

    .greeting-text {
      font-size: 24px;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -.5px
    }

    .greeting-sub {
      font-size: 13px;
      color: var(--text2);
      margin-top: 6px
    }

    .time-pill {
      background: var(--bg3);
      border: 1px solid var(--border2);
      border-radius: var(--radius2);
      padding: 12px 18px;
      text-align: center;
      flex-shrink: 0
    }

    .time-big {
      font-size: 26px;
      font-weight: 800;
      color: var(--text);
      font-variant-numeric: tabular-nums;
      letter-spacing: -1px
    }

    .time-date {
      font-size: 11px;
      color: var(--text3);
      margin-top: 3px
    }

    .quote-card {
      background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(244, 114, 182, 0.05));
      border: 1px solid rgba(var(--accent-rgb), 0.15);
      border-radius: var(--radius);
      padding: 16px 20px;
      margin-bottom: 18px
    }

    .quote-text {
      font-size: 14px;
      color: var(--text);
      line-height: 1.8;
      font-style: italic
    }

    .quote-author {
      font-size: 11px;
      color: var(--accent3);
      margin-top: 8px;
      font-weight: 600;
      letter-spacing: .3px
    }

    .ai-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(var(--accent-rgb), 0.08);
      border: 1px solid rgba(var(--accent-rgb), 0.18);
      border-radius: 20px;
      padding: 5px 13px;
      font-size: 12px;
      color: var(--accent3);
      margin: 3px;
      cursor: pointer;
      transition: all .15s
    }

    .ai-chip:hover {
      background: rgba(var(--accent-rgb), 0.18);
      transform: translateY(-1px)
    }

    .ai-response {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: var(--radius2);
      padding: 14px 16px;
      font-size: 13px;
      color: var(--text2);
      line-height: 1.8;
      margin-top: 12px;
      min-height: 60px
    }

    .dot-pulse {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent);
      display: inline-block;
      animation: dp 1.2s ease infinite
    }

    .dot-pulse:nth-child(2) {
      animation-delay: .2s
    }

    .dot-pulse:nth-child(3) {
      animation-delay: .4s
    }

    @keyframes dp {

      0%,
      80%,
      100% {
        opacity: .2;
        transform: scale(.7)
      }

      40% {
        opacity: 1;
        transform: scale(1)
      }
    }

    .score-wrap {
      position: relative;
      width: 110px;
      height: 110px;
      flex-shrink: 0
    }

    .score-svg {
      transform: rotate(-90deg)
    }

    .score-inner {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center
    }

    .score-num {
      font-size: 24px;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -1px
    }

    /* ── DAILY PLANNER ── */
    .planner-row {
      display: flex;
      min-height: 54px;
      border-bottom: 1px solid var(--border);
      position: relative
    }

    .planner-row:last-child {
      border-bottom: none
    }

    .planner-hour {
      width: 58px;
      flex-shrink: 0;
      padding: 8px 10px;
      font-size: 11px;
      font-weight: 600;
      color: var(--text3);
      border-right: 1px solid var(--border);
      display: flex;
      align-items: flex-start;
      font-family: 'Outfit', sans-serif
    }

    .planner-slot {
      flex: 1;
      position: relative;
      cursor: pointer;
      transition: background .1s
    }

    .planner-slot:hover {
      background: rgba(var(--accent-rgb), 0.05)
    }

    .time-block {
      position: absolute;
      left: 6px;
      right: 6px;
      border-radius: 8px;
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 600;
      cursor: grab;
      z-index: 2;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
      transition: opacity .15s
    }

    .time-block:active {
      cursor: grabbing;
      opacity: .85
    }

    .time-block .tb-title {
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    .time-block .tb-time {
      font-size: 10px;
      color: rgba(255, 255, 255, 0.75);
      margin-top: 2px
    }

    .time-block .tb-del {
      position: absolute;
      top: 4px;
      right: 6px;
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.7);
      cursor: pointer;
      font-size: 12px;
      padding: 0;
      line-height: 1;
      display: none
    }

    .time-block:hover .tb-del {
      display: block
    }

    .planner-now-line {
      position: absolute;
      left: 58px;
      right: 0;
      height: 2px;
      background: var(--red);
      z-index: 3;
      pointer-events: none
    }

    .planner-now-line::before {
      content: '';
      position: absolute;
      left: -5px;
      top: -4px;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--red)
    }

    .score-sub {
      font-size: 10px;
      color: var(--text3)
    }

    .toast {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: var(--bg2);
      border: 1px solid var(--border2);
      border-radius: 12px;
      padding: 12px 18px;
      font-size: 13px;
      color: var(--text);
      z-index: 9999;
      transform: translateY(80px);
      opacity: 0;
      transition: all .3s cubic-bezier(.4, 0, .2, 1);
      box-shadow: var(--shadow);
      max-width: 300px
    }

    .toast.show {
      transform: translateY(0);
      opacity: 1
    }

    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s;
      padding: 20px
    }

    .modal-overlay.show {
      opacity: 1;
      pointer-events: all
    }

    .modal {
      background: var(--bg2);
      border: 1px solid var(--border2);
      border-radius: 18px;
      padding: 26px;
      width: 100%;
      max-width: 460px;
      max-height: 90vh;
      overflow-y: auto;
      transform: scale(.94) translateY(10px);
      transition: transform .25s cubic-bezier(.4, 0, .2, 1)
    }

    .modal-overlay.show .modal {
      transform: scale(1) translateY(0)
    }

    .modal-title {
      font-size: 18px;
      font-weight: 800;
      margin-bottom: 18px;
      color: var(--text);
      letter-spacing: -.3px
    }

    .form-row {
      margin-bottom: 14px
    }

    .form-row-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 14px
    }

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

    .btn {
      padding: 10px 20px;
      border-radius: var(--radius3);
      border: none;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      transition: all .15s;
      font-family: 'Plus Jakarta Sans', sans-serif
    }

    .btn-cancel {
      background: var(--bg3);
      color: var(--text2);
      border: 1px solid var(--border2)
    }

    .btn-cancel:hover {
      background: var(--bg4)
    }

    .btn-primary {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3)
    }

    .btn-primary:hover {
      background: var(--accent2)
    }

    .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 5px
    }

    .cal-day {
      aspect-ratio: 1;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      cursor: pointer;
      transition: all .15s;
      border: 1px solid transparent
    }

    .cal-day:hover {
      background: var(--bg4)
    }

    .cal-day.today {
      background: var(--accent);
      color: #fff;
      font-weight: 700;
      box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.4)
    }

    .cal-day.has-data {
      border-color: rgba(var(--accent-rgb), 0.3);
      color: var(--accent3)
    }

    .cal-day.other-month {
      color: var(--text3)
    }

    .cal-header-day {
      text-align: center;
      font-size: 10px;
      font-weight: 700;
      color: var(--text3);
      padding-bottom: 8px;
      letter-spacing: .5px;
      text-transform: uppercase
    }

    ::-webkit-scrollbar {
      width: 5px
    }

    ::-webkit-scrollbar-track {
      background: transparent
    }

    ::-webkit-scrollbar-thumb {
      background: var(--bg5);
      border-radius: 4px
    }

    .section-gap {
      margin-bottom: 16px
    }

    #bottom-nav {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: var(--bg2);
      border-top: 1px solid var(--border2);
      height: 58px;
      z-index: 999;
      align-items: stretch;
    }

    @media(max-width:640px) {
      #sidebar {
        position: fixed;
        left: -230px;
        top: 0;
        height: 100%;
        z-index: 50;
        transition: left .3s;
        overflow-y: auto
      }

      #sidebar.open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5)
      }

      .grid4 {
        grid-template-columns: 1fr 1fr
      }

      .grid3,
      .grid2 {
        grid-template-columns: 1fr
      }

      #content {
        padding: 12px
      }

      #topbar {
        padding: 0 12px;
        height: 54px
      }

      .page-title {
        font-size: 15px
      }

      .page-sub {
        display: none
      }

      .tb-btn:not(.primary) {
        display: none
      }

      .tb-btn.primary {
        padding: 7px 12px;
        font-size: 12px
      }

      .stat-card {
        padding: 12px 14px
      }

      .stat-value {
        font-size: 22px
      }

      .greeting-card {
        flex-direction: column;
        gap: 10px;
        padding: 16px
      }

      .greeting-text {
        font-size: 20px
      }

      .time-pill {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px
      }

      .time-big {
        font-size: 22px
      }

      .card {
        padding: 14px
      }

      .modal {
        padding: 20px 16px;
        max-height: 95vh
      }

      .form-row-2 {
        grid-template-columns: 1fr
      }

      .planner-hour {
        width: 44px;
        font-size: 10px
      }

      .planner-now-line {
        left: 44px
      }

      .time-block .tb-del {
        display: block
      }

      .notes-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr))
      }

      .nav-item {
        padding: 9px 8px;
        font-size: 12px
      }

      .sidebar-footer {
        padding: 8px 10px 0
      }

      #bottom-nav {
        display: flex
      }

      #content {
        padding: 12px 12px 90px 12px
      }

    }


    .bn-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      cursor: pointer;
      font-size: 9px;
      font-weight: 600;
      color: var(--text3);
      transition: all .15s;
      letter-spacing: .3px;
      text-transform: uppercase;
      border: none;
      background: none;
      padding: 0;
      font-family: 'Plus Jakarta Sans', sans-serif;
    }

    .bn-item.active {
      color: var(--accent3)
    }

    .bn-item .bn-icon {
      font-size: 20px;
      line-height: 1
    }

    /* VOICE INPUT */
.mic-btn{background:none;border:none;cursor:pointer;font-size:18px;padding:4px 8px;border-radius:8px;transition:all .2s;color:var(--text2)}
.mic-btn:hover{background:var(--bg3)}
.mic-btn.listening{color:var(--red);animation:pulse 1s infinite}

/* ── EXPENSE TRACKER FULL ── */
/* ── SIMPLE EXPENSE ── */
.exp-tab {
  padding: 7px 14px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all .2s;
}
.exp-tab.active {
  background: var(--accent);
  color: #fff;
}
.exp-date-group { margin-bottom: 14px; }
.exp-date-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}
.exp-date-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.exp-date-header .day-sum {
  font-family: 'Outfit', sans-serif;
  color: var(--accent);
  font-size: 11px;
}
.exp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  margin-bottom: 8px;
  transition: background .15s;
}
.exp-row:hover { background: var(--bg4); }
.exp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.exp-row-desc {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exp-row-amt {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* ── ANALYTICS ── */
.an-tab{padding:6px 13px;border:none;background:transparent;color:var(--text2);font-family:'Plus Jakarta Sans',sans-serif;font-size:12px;font-weight:600;border-radius:7px;cursor:pointer;transition:all .2s}
.an-tab.active{background:var(--accent);color:#fff}
.an-kpi-card{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius2);padding:16px;cursor:pointer;transition:all .2s;text-align:center}
.an-kpi-card:hover{background:var(--bg4);transform:translateY(-2px)}
.an-kpi-icon{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;margin:0 auto 10px}
.an-kpi-val{font-size:24px;font-weight:800;color:var(--text);font-family:'Outfit',sans-serif;letter-spacing:-1px;margin-bottom:2px}
.an-kpi-label{font-size:11px;color:var(--text3);font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:3px}
.an-kpi-sub{font-size:11px;color:var(--accent3)}
.an-bar-wrap{margin-bottom:10px}
.an-bar-row{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.an-bar-label{font-size:12px;color:var(--text2);min-width:70px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.an-bar-track{flex:1;height:8px;background:var(--bg3);border-radius:4px;overflow:hidden}
.an-bar-fill{height:100%;border-radius:4px;transition:width .8s cubic-bezier(.4,0,.2,1)}
.an-bar-num{font-size:11px;color:var(--text3);min-width:28px;text-align:right}
.hm-cell{width:16px;height:16px;border-radius:3px;cursor:pointer;transition:opacity .15s;flex-shrink:0}
.hm-cell:hover{opacity:.75}

/* ── GLOBAL SEARCH ── */
#gs-wrap { display:flex; align-items:center; }
.gs-section-label {
  font-size:9px;font-weight:700;color:var(--text3);
  letter-spacing:1px;text-transform:uppercase;
  padding:10px 14px 4px;
}
.gs-item {
  display:flex;align-items:center;gap:10px;
  padding:10px 14px;cursor:pointer;
  border-bottom:1px solid var(--border);
  transition:background .1s;
}
.gs-item:last-child { border-bottom:none; }
.gs-item:hover, .gs-item.gs-focused { background:var(--bg3); }
.gs-item-icon {
  width:34px;height:34px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-size:17px;flex-shrink:0;
}
.gs-item-title { font-size:13px;font-weight:600;color:var(--text); }
.gs-item-sub   { font-size:11px;color:var(--text3);margin-top:1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px; }
.gs-badge {
  margin-left:auto;font-size:10px;padding:2px 8px;
  border-radius:10px;font-weight:700;white-space:nowrap;flex-shrink:0;
}
.gs-empty { text-align:center;padding:24px;color:var(--text3);font-size:13px; }
.gs-footer {
  padding:8px 14px;border-top:1px solid var(--border);
  font-size:11px;color:var(--text3);display:flex;gap:6px;align-items:center;
}
.gs-type-filter {
  display:flex;gap:4px;padding:8px 10px 6px;border-bottom:1px solid var(--border);
  overflow-x:auto;scrollbar-width:none;
}
.gs-type-filter::-webkit-scrollbar { display:none; }
.gs-tf-btn {
  padding:4px 10px;border-radius:20px;border:1px solid var(--border2);
  background:none;color:var(--text2);font-size:11px;font-weight:600;
  cursor:pointer;white-space:nowrap;font-family:'Plus Jakarta Sans',sans-serif;
  transition:all .15s;
}
.gs-tf-btn.active { background:var(--accent);border-color:var(--accent);color:#fff; }

@media(max-width:640px){
  #gs-wrap { max-width:none;margin:0;flex:1; }
  #gs-wrap .input { font-size:12px; }
}

@media(max-width:640px){
  .an-kpi-val{font-size:20px}
  .hm-cell{width:14px;height:14px}

  
}

  
    .g-or{display:flex;align-items:center;gap:10px;margin:16px 0 4px;color:var(--text3);font-size:12px}
    .g-or:before,.g-or:after{content:"";flex:1;height:1px;background:var(--border2)}
    .g-wrap{display:flex;justify-content:center;margin-top:12px;min-height:44px}
    .auth-link{color:var(--accent);font-size:12px;font-weight:600;text-decoration:none}
    .auth-link:hover{text-decoration:underline}
    /* ── ICONS / ACCENT RGB / SIDEBAR FIX ── */
    [data-accent="blue"]{--accent-rgb:59,130,246}[data-accent="green"]{--accent-rgb:34,197,94}
    [data-accent="orange"]{--accent-rgb:249,115,22}[data-accent="pink"]{--accent-rgb:236,72,153}
    [data-accent="red"]{--accent-rgb:239,68,68}
    .icon{width:1.15em;height:1.15em;vertical-align:-.2em;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
    .empty-icon .icon{width:1em;height:1em;stroke-width:1.6;opacity:.8}
    #sidebar{overflow-y:auto;scrollbar-width:thin}
    .nav-badge:empty{display:none}
    .ipick{display:flex;flex-wrap:wrap;gap:6px}
    .ipick-b{width:36px;height:36px;border-radius:10px;border:1px solid var(--border2);background:var(--bg3);color:var(--text2);cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;transition:all .15s}
    .ipick-b:hover{color:var(--text)}
    .ipick-b.sel{background:rgba(var(--accent-rgb),.15);border-color:var(--accent);color:var(--accent)}
  
    /* ── FONT POLISH ── */
    body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;letter-spacing:-.005em}
    .stat-value,.an-kpi-val,.score-num,.time-big{font-family:'Outfit',sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
    .page-title,.card-title,.modal-title{font-family:'Outfit',sans-serif;letter-spacing:-.01em}
  
    /* ── Subtasks, goals, weekly report ── */
    .pbar{height:6px;border-radius:99px;background:var(--bg4);overflow:hidden;margin-top:8px}
    .pbar.big{height:10px;margin-top:12px}
    .pbar>i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--accent),var(--accent3));transition:width .4s}
    .sub-panel{margin:-4px 0 10px 34px;padding:10px 12px;background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius2)}
    .sub-item{display:flex;align-items:center;gap:10px;padding:5px 0;font-size:13px}
    .sub-check{width:18px;height:18px;border-radius:5px;border:2px solid var(--border2);display:flex;align-items:center;justify-content:center;font-size:11px;cursor:pointer;flex-shrink:0}
    .sub-check.done{background:var(--green);border-color:var(--green);color:#0a0a0f}
    .sub-add{display:flex;gap:8px;margin-top:8px}
    .sub-add .input{flex:1;padding:8px 10px}
    .sub-add .btn{padding:8px 14px;flex:none}
    .goal-card.goal-done{opacity:.75}
    .goal-items{margin-top:12px;display:grid;gap:6px}
    .goal-item{display:flex;gap:8px;align-items:center;font-size:13px}
    .link-list{display:grid;gap:4px;max-height:180px;overflow-y:auto}
    .link-row{display:flex;gap:8px;align-items:center;font-size:13px;padding:6px 8px;border-radius:8px;cursor:pointer}
    .link-row:hover{background:var(--bg3)}
    .link-row em{margin-left:auto;font-size:10px;color:var(--text3)}
    @media (max-width:640px){.sub-panel{margin-left:12px}}
