/* VANTAGE — calm analytics for consistent habits */
:root {
  --bg: #070b14;
  --surface: #0d1422;
  --surface-2: #111b2e;
  --surface-3: #16233a;
  --line: rgba(255,255,255,.085);
  --line-strong: rgba(255,255,255,.16);
  --text: #f5f7fb;
  --muted: #91a0b8;
  --dim: #65738d;
  --green: #35d59b;
  --green-deep: #0aa978;
  --blue: #66a7ff;
  --purple: #ae8cff;
  --red: #ff6b79;
  --gold: #f7c66a;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 22px 60px rgba(0,0,0,.28);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html { background: var(--bg); }
body { min-height: 100vh; overflow-x: hidden; color: var(--text); background: radial-gradient(circle at 8% -5%, rgba(53,213,155,.16), transparent 28rem), radial-gradient(circle at 100% 20%, rgba(102,167,255,.12), transparent 30rem), var(--bg); font: 400 14px/1.55 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.app-wrapper { width: min(100% - 28px, 760px); margin: 0 auto; padding: 24px 0 64px; }
.screen { width: 100%; }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 1.35px; text-transform: uppercase; }
.page-subtitle, .modal-copy, .assistant-copy { color: var(--muted); }

/* Login */
#screen-login { min-height: calc(100vh - 88px); display: grid; place-items: center; }
.login-card { width: min(100%, 430px); padding: 52px 38px 38px; text-align: center; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, rgba(17,27,46,.83), rgba(9,14,25,.9)); box-shadow: var(--shadow); backdrop-filter: blur(24px); animation: rise .55s var(--ease); }
.brand-logo { width: 62px; height: 62px; margin: 0 auto 18px; color: var(--green); filter: drop-shadow(0 0 20px rgba(53,213,155,.42)); animation: breathe 3s ease-in-out infinite; }
.brand-logo svg { width: 100%; height: 100%; }
.brand-name { margin: 7px 0 9px; font-size: clamp(2.45rem, 8vw, 3.1rem); font-weight: 900; letter-spacing: -2.5px; background: linear-gradient(135deg, #fff 15%, #aeb9c9 57%, var(--green) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tagline { margin-bottom: 34px; color: var(--muted); font-size: 15px; }
.primary-btn, .secondary-btn, .round-btn, .icon-btn, .text-btn, .tracker-tab, .tab-btn, .pagination-btn, .type-option, .color-swatch, .lb-card, .manual-toggle { border: 0; cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.primary-btn { width: 100%; min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 17px; color: #06130e; border-radius: var(--radius-sm); background: linear-gradient(135deg, #64e8b2, var(--green)); box-shadow: 0 12px 28px rgba(53,213,155,.18); font-weight: 800; }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 32px rgba(53,213,155,.28); }
.primary-btn:active { transform: translateY(0) scale(.98); }
.login-btn { min-height: 52px; color: #162033; background: #f6f8fc; box-shadow: none; }
.login-btn:hover { background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.google-mark { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); color: #fff; font-weight: 900; font-size: 13px; }
.text-btn { display: block; margin: 18px auto 0; padding: 3px; color: var(--muted); background: transparent; font-size: 12px; }
.text-btn:hover { color: var(--text); }
.auth-hint { margin-top: 24px; color: var(--dim); font-size: 11px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; color: var(--dim); font-size: 10px; }.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; content: ''; background: var(--line); }.auth-mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }.auth-mode-btn { padding: 8px; border: 0; border-radius: 7px; color: var(--dim); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }.auth-mode-btn:hover { color: var(--muted); }.auth-mode-btn.active { color: var(--text); background: var(--surface-3); }.credentials-form { display: grid; gap: 8px; text-align: left; }.credentials-form .auth-hint { min-height: 14px; margin: 0 2px; font-size: 10px; }.credentials-form .primary-btn { margin-top: 2px; }.backup-textarea { min-height: 190px; resize: vertical; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 11px; line-height: 1.55; }

/* Header and tabs */
.app-header { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 15px; padding: 9px 13px 9px 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(13,20,34,.72); backdrop-filter: blur(18px); }
.header-left, .header-right, .page-intro, .streak-topline, .card-header-row, .section-heading-row, .lb-card-header, .lb-card-meta, .lb-card-footer, .lb-toolbar, .lb-filter-row, .assistant-heading, .assistant-actions, .modal-header-spaced, .log-entry, .log-entry-right, .manual-toggle, .manual-row, .modal-footer { display: flex; align-items: center; }
.header-left, .header-right { gap: 9px; }
.logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.header-brand { font-size: 16px; font-weight: 850; letter-spacing: -.4px; }
.sync-status { padding: 3px 7px; border: 1px solid var(--line); border-radius: 99px; color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.sync-status.connected { color: var(--green); border-color: rgba(53,213,155,.28); background: rgba(53,213,155,.06); }
.user-name { max-width: 90px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar, .user-initials { width: 29px; height: 29px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); object-fit: cover; }
.user-initials { display: grid; place-items: center; background: linear-gradient(135deg, #427ee0, #835bd8); color: #fff; font-size: 10px; font-weight: 800; }
.icon-btn { display: inline-grid; place-items: center; min-width: 30px; min-height: 30px; padding: 5px; border-radius: 9px; color: var(--muted); background: transparent; font-size: 18px; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.07); }
.tab-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 25px; border: 1px solid var(--line); border-radius: 13px; background: rgba(13,20,34,.58); }
.tab-btn { display: flex; justify-content: center; align-items: center; gap: 7px; padding: 10px; border-radius: 9px; color: var(--dim); background: transparent; font-size: 12px; font-weight: 800; }
.tab-btn:hover { color: var(--muted); }
.tab-btn.active { color: var(--text); background: var(--surface-3); box-shadow: 0 3px 12px rgba(0,0,0,.18); }

/* Page and cards */
.page-intro { justify-content: space-between; align-items: flex-start; gap: 18px; margin: 0 1px 22px; }
.page-intro h2 { margin-top: 4px; font-size: clamp(1.45rem, 4vw, 1.8rem); line-height: 1.2; letter-spacing: -1px; }
.page-subtitle { max-width: 480px; margin-top: 8px; font-size: 12px; }
.round-btn { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid rgba(53,213,155,.3); border-radius: 13px; color: var(--green); background: rgba(53,213,155,.08); font-size: 25px; line-height: 1; }
.round-btn:hover { transform: rotate(90deg); background: rgba(53,213,155,.16); }
.card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17,27,46,.78), rgba(10,16,28,.78)); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.card:hover { border-color: rgba(255,255,255,.13); }
.card-label, .card-title { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.rhythm-consistency { display: inline-block; margin-left: 7px; padding: 3px 7px; border: 1px solid rgba(53,213,155,.28); border-radius: 99px; color: var(--green); background: rgba(53,213,155,.07); font-size: 9px; letter-spacing: .2px; vertical-align: 1px; }
.card-header-row, .section-heading-row { justify-content: space-between; gap: 12px; }
.section-heading { color: var(--text); font-size: 12px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.section-note, .chart-subtitle, .stat-caption { color: var(--dim); font-size: 10px; }
.tracker-selector-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; margin-bottom: 17px; }
.tracker-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tracker-tabs::-webkit-scrollbar { display: none; }
.tracker-tab { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 11px; font-weight: 750; }
.tracker-tab:hover { color: var(--text); border-color: var(--line-strong); }
.tracker-tab.active { color: var(--text); border-color: rgba(53,213,155,.42); background: rgba(53,213,155,.1); }
.empty-state { padding: 54px 22px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255,255,255,.018); }
.empty-state.compact { padding: 36px 20px; }
.empty-icon { margin-bottom: 10px; color: var(--green); font-size: 42px; line-height: 1; }
.empty-state h3 { margin-bottom: 6px; font-size: 17px; }
.empty-state p { margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.empty-action { width: auto; margin: 0 auto; }

/* Streak and stats */
.streak-card { position: relative; overflow: hidden; margin-bottom: 12px; padding: 23px 20px 18px; text-align: center; border-color: rgba(53,213,155,.18); }
.streak-card::after { position: absolute; inset: -80px 10% auto; height: 170px; content: ''; border-radius: 50%; background: rgba(53,213,155,.13); filter: blur(50px); pointer-events: none; }
.streak-topline { position: relative; z-index: 1; justify-content: center; gap: 9px; }
.tracker-badge, .global-pill, .beta-pill { padding: 3px 7px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.beta-pill { color: var(--purple); border-color: rgba(174,140,255,.3); background: rgba(174,140,255,.08); }
.timer-display { position: relative; z-index: 1; margin: 7px 0 3px; color: var(--green); font-size: clamp(1.8rem, 6vw, 2.55rem); font-weight: 900; letter-spacing: -1.5px; text-shadow: 0 0 22px rgba(53,213,155,.2); font-variant-numeric: tabular-nums; }.timer-total { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 8px; color: var(--muted); font-size: 10px; }.timer-total strong { color: var(--text); font-size: 13px; font-weight: 850; }.live-label { position: relative; z-index: 1; color: var(--dim); font-size: 10px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat-card { padding: 14px 8px; text-align: center; }
.consistency-stat-card { min-width: 0; }
.consistency-substats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; margin-top: 9px; padding-top: 7px; border-top: 1px solid var(--line); }
.consistency-substats span { display: grid; gap: 2px; min-width: 0; }
.consistency-substats strong { color: var(--muted); font-size: 11px; font-weight: 850; }
.consistency-substats small { color: var(--dim); font-size: 8px; text-transform: uppercase; letter-spacing: .25px; }
.stat-value { margin: 4px 0 1px; font-size: 20px; font-weight: 850; letter-spacing: -.7px; }
.consistency-stat-card .stat-value { font-size: 19px; }
.consistency-stat-card .stat-caption { display: block; min-height: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.highlight-green { color: var(--green); }.highlight-gold { color: var(--gold); }
.log-action-btn { --action-color: var(--green); margin-bottom: 12px; color: #08140f; background: linear-gradient(135deg, color-mix(in srgb, var(--action-color) 80%, white), var(--action-color)); }
.log-action-btn:hover { box-shadow: 0 14px 30px color-mix(in srgb, var(--action-color) 25%, transparent); }

/* Insights, heatmap, charts */
.insight-card { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 14px 16px; }
.insight-icon, .assistant-sparkle { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; color: var(--gold); background: rgba(247,198,106,.1); font-size: 18px; }
.insight-card p { margin-top: 3px; color: var(--text); font-size: 12px; }
.heatmap-card { margin-bottom: 22px; }.period-nav, .period-controls { display: flex; align-items: center; gap: 5px; }.pagination-btn { display: inline-grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 18px; line-height: 1; }.pagination-btn:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.08); }.pagination-btn:disabled { cursor: default; opacity: .28; }.range-label { min-width: 125px; color: var(--muted); text-align: center; font-size: 10px; font-weight: 700; }.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin-top: 18px; color: var(--dim); font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; }.heatmap-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin: 7px 0 13px; }.heatmap-dot { aspect-ratio: 1; display: grid; place-items: center; min-width: 0; border: 1px solid rgba(255,255,255,.055); border-radius: 8px; color: var(--dim); background: rgba(255,255,255,.025); font-size: 10px; font-weight: 750; }.heatmap-dot:hover:not(:disabled) { transform: scale(1.1); border-color: var(--line-strong); }.heatmap-dot.active { color: #04120d; border-color: transparent; font-weight: 850; }.heatmap-dot.today { box-shadow: 0 0 0 2px var(--text); }.heatmap-dot.future { cursor: default; opacity: .28; }.calendar-blank { aspect-ratio: 1; }.heatmap-legend { display: flex; justify-content: flex-end; gap: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 3px; vertical-align: -1px; }.legend-dot.clean { border: 1px solid var(--line-strong); background: rgba(255,255,255,.025); }.legend-dot.active-dot { background: var(--green); }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0 22px; }.chart-card { min-width: 0; }.chart-wide { grid-column: span 2; }.chart-subtitle { margin-top: 3px; }.chart-comparison { margin-top: 8px; color: var(--dim); font-size: 10px; text-align: center; }.chart-wrap { position: relative; height: 155px; margin-top: 15px; }.chart-doughnut-wrap { display: grid; place-items: center; }.chart-doughnut-wrap canvas { max-width: 145px; max-height: 145px; }.chart-doughnut-wrap strong { position: absolute; font-size: 18px; font-weight: 900; }

/* Assistant and inputs */
.assistant-card { margin-bottom: 12px; border-color: rgba(174,140,255,.2); background: linear-gradient(145deg, rgba(32,25,57,.55), rgba(12,18,31,.8)); }.assistant-heading { gap: 10px; }.assistant-heading > div:nth-child(2) { flex: 1; }.assistant-heading h3 { margin-top: 3px; font-size: 14px; }.assistant-copy { margin: 12px 0; font-size: 11px; }.assistant-input { min-height: 65px; resize: vertical; }.assistant-actions { justify-content: space-between; gap: 10px; margin-top: 10px; }.assistant-status { color: var(--dim); font-size: 10px; }.assistant-result { display: grid; gap: 10px; margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(53,213,155,.25); border-radius: 10px; background: rgba(53,213,155,.06); }.assistant-preview { display: grid; gap: 3px; }.assistant-preview > span { color: var(--muted); font-size: 10px; }.assistant-entry-list { display: grid; gap: 6px; max-height: 260px; margin-top: 8px; overflow-y: auto; }.assistant-entry-row { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-items: center; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.12); cursor: pointer; }.assistant-entry-row input { grid-row: span 2; accent-color: var(--green); }.assistant-entry-row span { font-size: 11px; font-weight: 750; }.assistant-entry-row small { color: var(--muted); font-size: 9px; }.assistant-result-actions { display: flex; gap: 7px; }.assistant-result-actions .btn-sm { flex: 1; }.btn-ghost { color: var(--muted); background: transparent; }.btn-purple { width: auto; color: var(--purple); border-color: rgba(174,140,255,.35); }.btn-purple:hover { color: #d4c7ff; border-color: var(--purple); background: rgba(174,140,255,.08); }
.input-field { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none; color: var(--text); background: rgba(0,0,0,.18); font-size: 12px; }.input-field::placeholder { color: var(--dim); }.input-field:focus { border-color: rgba(53,213,155,.65); box-shadow: 0 0 0 3px rgba(53,213,155,.1); }.input-label { display: block; margin: 15px 0 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.btn-sm { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; color: #06130e; background: var(--green); font-size: 11px; font-weight: 800; }.btn-sm:hover { filter: brightness(1.1); }.btn-green { color: #06130e; background: linear-gradient(135deg, #67e8b5, var(--green)); }.secondary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); background: rgba(255,255,255,.025); font-size: 11px; font-weight: 750; }.secondary-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.06); }.btn-blue { color: var(--blue); border-color: rgba(102,167,255,.26); }.btn-red { color: var(--red); border-color: rgba(255,107,121,.25); }
.manual-card { margin-bottom: 22px; padding: 12px 15px; }.manual-toggle { justify-content: space-between; width: 100%; padding: 4px 0; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; text-align: left; }.manual-toggle:hover { color: var(--text); }.chevron { font-size: 16px; transition: transform .2s; }.manual-toggle.open .chevron { transform: rotate(180deg); }.manual-form { padding-top: 12px; margin-top: 9px; border-top: 1px solid var(--line); }.manual-row { gap: 8px; }.manual-row .input-field { flex: 1; }.manual-row .btn-sm { flex: 0 0 auto; }

/* Timeline */
.timeline-section { margin-bottom: 25px; }.history-shell-summary { display: flex; justify-content: space-between; align-items: center; padding: 0 1px 9px; cursor: pointer; list-style: none; }.history-shell-summary::-webkit-details-marker { display: none; }.history-shell-summary::after { color: var(--dim); content: '⌄'; font-size: 15px; }.timeline-section details[open] > .history-shell-summary::after { transform: rotate(180deg); }.log-timeline { margin-top: 9px; }.history-month { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.018); overflow: hidden; }.history-month summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 13px; color: var(--text); cursor: pointer; list-style: none; font-size: 12px; font-weight: 850; }.history-month summary::-webkit-details-marker { display: none; }.history-month summary::before { margin-right: 7px; color: var(--green); content: '＋'; }.history-month[open] summary::before { content: '−'; }.history-month-count { color: var(--dim); font-size: 10px; font-weight: 600; }.history-month-count b { margin-left: 6px; color: var(--muted); font-size: 13px; }.history-month-list { padding: 0 8px 8px; border-top: 1px solid var(--line); }.history-month-list .log-entry { margin: 8px 0 0; }.milestone-badge { display: inline-flex; width: fit-content; margin-top: 4px; padding: 2px 6px; border: 1px solid currentColor; border-radius: 99px; font-size: 8px; font-weight: 850; letter-spacing: .2px; text-transform: uppercase; }.milestone-gold { color: var(--gold); background: rgba(247,198,106,.08); }.milestone-blue { color: var(--blue); background: rgba(102,167,255,.08); }.milestone-green { color: var(--green); background: rgba(53,213,155,.08); }.log-entry-left { min-width: 0; }.empty-timeline { padding: 23px 10px; color: var(--dim); text-align: center; font-size: 11px; }.log-entry { justify-content: space-between; gap: 12px; margin-bottom: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }.log-entry:hover { border-color: var(--line-strong); background: rgba(255,255,255,.05); }.log-entry-left { display: grid; gap: 1px; }.log-entry-left strong { font-size: 12px; }.log-entry-left span { color: var(--muted); font-size: 10px; }.log-entry-right { gap: 13px; }.entry-dot { width: 7px; height: 7px; border-radius: 50%; }.log-delete-btn { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 7px; color: var(--dim); background: transparent; cursor: pointer; font-size: 18px; }.log-delete-btn:hover { color: var(--red); background: rgba(255,107,121,.1); }.data-zone { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }.data-zone .btn-red { grid-column: span 2; }

/* Global profiles */
.lb-toolbar { align-items: stretch; gap: 9px; margin-bottom: 12px; }.lb-period-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.025); }.period-mode { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--dim); background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }.period-mode.active { color: var(--text); border-color: rgba(53,213,155,.4); background: rgba(53,213,155,.1); }.profile-period-label { margin-top: 3px; color: var(--dim); font-size: 10px; }.search-wrap { display: flex; align-items: center; gap: 7px; flex: 1; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--dim); background: rgba(255,255,255,.025); }.search-wrap .input-field { padding: 10px 0; border: 0; background: transparent; box-shadow: none; }.lb-filter-row { justify-content: space-between; margin-bottom: 10px; }.sort-select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); font-size: 10px; }.lb-list { display: grid; gap: 9px; }.lb-card { display: block; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: linear-gradient(145deg, rgba(17,27,46,.75), rgba(10,16,28,.78)); text-align: left; }.lb-card:hover { transform: translateY(-2px); border-color: rgba(174,140,255,.45); box-shadow: 0 13px 30px rgba(0,0,0,.2); }.lb-card.is-you { border-color: rgba(53,213,155,.35); }.lb-card-header { justify-content: space-between; gap: 10px; margin-bottom: 9px; }.profile-card-person { display: flex; align-items: center; gap: 9px; min-width: 0; }.lb-card-name { overflow: hidden; font-size: 14px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }.global-pill { color: var(--purple); border-color: rgba(174,140,255,.28); background: rgba(174,140,255,.08); font-size: 8px; }.lb-card-meta, .lb-card-footer { justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }.lb-card-footer { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--dim); }.lb-card-footer strong { color: var(--text); }.card-arrow { color: var(--purple); font-size: 17px; }.lb-avatar-image, .profile-large-avatar img { width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }

/* Profile modal */
.modal-overlay { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(2,5,10,.76); backdrop-filter: blur(8px); animation: fade .2s ease-out; }.modal-card { width: min(100%, 440px); max-height: min(700px, calc(100vh - 36px)); overflow-y: auto; padding: 23px; border: 1px solid var(--line-strong); border-radius: 20px; background: linear-gradient(145deg, #142039, #0b111e); box-shadow: var(--shadow); animation: rise .25s var(--ease); }.modal-wide { width: min(100%, 570px); }.modal-title { margin: 4px 0 6px; font-size: 20px; letter-spacing: -.7px; }.modal-copy { margin-bottom: 13px; font-size: 11px; }.modal-header-spaced { justify-content: space-between; align-items: flex-start; }.profile-heading { display: flex; align-items: center; gap: 12px; }.profile-large-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #427ee0, #835bd8); font-size: 15px; font-weight: 850; }.profile-tracker-label { color: var(--muted); font-size: 11px; }.profile-tracker-select { max-width: 190px; margin-top: 5px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 10px; }.profile-stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 22px 0 17px; }.profile-stat { padding: 10px 5px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); text-align: center; }.profile-stat span { display: block; color: var(--dim); font-size: 8px; }.profile-stat strong { display: block; margin-top: 3px; color: var(--green); font-size: 13px; }.profile-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.profile-calendar-heading { display: flex; justify-content: space-between; margin-top: 19px; }.profile-weekdays { margin-top: 10px; }.profile-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin-top: 7px; }.profile-calendar .heatmap-dot { pointer-events: none; }.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.type-option { display: grid; gap: 4px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 11px; font-weight: 800; text-align: center; }.type-option span { color: var(--dim); font-size: 9px; font-weight: 500; }.type-option.selected { color: var(--text); border-color: rgba(53,213,155,.48); background: rgba(53,213,155,.09); }.color-picker { display: flex; gap: 10px; }.color-swatch { width: 27px; height: 27px; border: 3px solid transparent; border-radius: 50%; }.color-swatch.selected { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.type-option { display: grid; gap: 4px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 11px; font-weight: 800; text-align: center; }.type-option span { color: var(--dim); font-size: 9px; font-weight: 500; }.type-option.selected { color: var(--text); border-color: rgba(53,213,155,.48); background: rgba(53,213,155,.09); }.color-picker { display: flex; gap: 10px; }.color-swatch { width: 27px; height: 27px; border: 3px solid transparent; border-radius: 50%; }.color-swatch.selected { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface); }

/* Toast and motion */
#vantage-toast { position: fixed; z-index: 20; right: 18px; bottom: 20px; max-width: min(340px, calc(100% - 36px)); padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--text); background: #152239; box-shadow: var(--shadow); font-size: 11px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }.vantage-toast {}#vantage-toast.show { opacity: 1; transform: translateY(0); }#vantage-toast[data-kind="success"] { border-color: rgba(53,213,155,.4); }#vantage-toast[data-kind="error"] { border-color: rgba(255,107,121,.45); }#vantage-toast[data-kind="warning"] { border-color: rgba(247,198,106,.45); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }@keyframes fade { from { opacity: 0; } to { opacity: 1; } }@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (max-width: 600px) { .app-wrapper { width: min(100% - 18px, 760px); padding-top: 10px; }.login-card { padding: 42px 22px 30px; }.user-name { display: none; }.analytics-grid { grid-template-columns: 1fr; }.chart-wide { grid-column: auto; }.profile-chart-grid { grid-template-columns: 1fr; }.profile-stat-grid { grid-template-columns: repeat(3, 1fr); }.lb-toolbar { display: grid; }.data-zone { grid-template-columns: 1fr; }.data-zone .btn-red { grid-column: auto; }.range-label { min-width: 105px; }.heatmap-grid, .calendar-weekdays, .profile-calendar { gap: 5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
