:root {
  color-scheme: light;
  --ink: #1c2c29;
  --muted: #7c8984;
  --line: #e8ece8;
  --paper: #fff;
  --canvas: #f5f7f4;
  --green: #32695a;
  --green-dark: #244b40;
  --green-pale: #e7f0eb;
  --coral: #bd6551;
  --gold: #9d7a34;
  --blue: #526e91;
  --shadow: 0 12px 32px rgba(32, 56, 48, .055);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 246px; padding: 30px 18px 20px; border-right: 1px solid #e9ede9; background: #fbfcfa; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 0 52px 8px; }
.brand-mark, .login-emblem { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 13px 13px 13px 4px; background: var(--green); color: #fff; font-family: Manrope, sans-serif; font-size: 19px; font-weight: 800; }
.brand strong { display: block; font: 800 17px Manrope, sans-serif; letter-spacing: -.5px; }
.brand small { display: block; margin-top: 2px; color: #929d97; font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
.nav-label, .eyebrow { color: #8b9992; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.nav-label { margin: 0 0 12px 12px; }
.main-nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; height: 43px; padding: 0 12px; border-radius: 9px; color: #6c7a73; font-size: 13px; font-weight: 500; transition: .18s ease; }
.nav-link:hover { background: #f0f4f0; color: var(--green-dark); }
.nav-link.active { background: #e8f0eb; color: var(--green-dark); font-weight: 700; }
.nav-icon { display: grid; place-items: center; width: 19px; color: #7e8d85; font-size: 18px; }
.nav-link.active .nav-icon { color: var(--green); }
.sidebar-bottom { margin-top: auto; }
.read-only-note { display: flex; align-items: center; gap: 10px; margin: 12px 6px 18px; padding: 13px 10px; border: 1px solid #e9eee9; border-radius: 10px; background: #fff; }
.lock-dot { color: #83a18d; font-size: 8px; }
.read-only-note strong, .read-only-note small { display: block; }
.read-only-note strong { font-size: 11px; }
.read-only-note small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.logout-button { display: flex; justify-content: space-between; width: 100%; padding: 11px 10px; border: 0; background: transparent; color: #7b8781; cursor: pointer; font-size: 12px; }
.logout-button:hover { color: var(--coral); }
.main-content { min-height: 100vh; margin-left: 246px; }
.topbar { display: flex; align-items: center; justify-content: flex-end; height: 76px; padding: 0 clamp(24px, 5vw, 68px); border-bottom: 1px solid #e9ede9; background: rgba(251, 252, 250, .86); }
.account-chip { display: flex; align-items: center; gap: 9px; color: #63736c; font-size: 12px; font-weight: 600; }
.avatar { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #d9e5dc; border-radius: 50%; background: #e9f1eb; color: var(--green-dark); font-size: 12px; }
.mobile-brand, .mobile-nav { display: none; }
.page-wrap { width: min(100%, 1230px); margin: 0 auto; padding: 42px clamp(24px, 5vw, 68px) 26px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.eyebrow { margin: 0 0 9px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, 'DM Sans', sans-serif; }
h1 { margin-bottom: 7px; font-size: clamp(27px, 3vw, 34px); font-weight: 700; letter-spacing: -1.4px; line-height: 1.18; }
.subheading { margin: 0; color: var(--muted); font-size: 13px; }
.date-pill, .count-pill, .read-only-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #64736c; font-size: 11px; font-weight: 600; white-space: nowrap; }
.date-pill { color: #6c7a72; }
.count-pill { padding: 9px 13px; }
.read-only-pill { background: #f8faf8; color: #77877e; font-size: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 21px; }
.stat-card { position: relative; display: flex; min-height: 164px; flex-direction: column; padding: 18px 18px 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: 0 5px 18px rgba(32, 56, 48, .025); transition: transform .16s ease, box-shadow .16s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 13px; border-radius: 9px; background: #f7ece8; color: var(--coral); font-size: 16px; }
.stat-gold .stat-icon { background: #f5f0e5; color: var(--gold); }
.stat-blue .stat-icon { background: #edf1f7; color: var(--blue); }
.stat-green .stat-icon { background: var(--green-pale); color: var(--green); }
.stat-label { color: #76847d; font-size: 11px; font-weight: 600; }
.stat-card > strong { margin-top: 4px; font: 700 27px Manrope, sans-serif; letter-spacing: -.8px; }
.stat-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; color: #9aa49f; font-size: 10px; }
.stat-foot span { font-size: 15px; }
.content-card { border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: 0 5px 20px rgba(32, 56, 48, .025); }
.dashboard-bills { padding: 22px 23px 10px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.4px; }
.text-link { color: var(--green); font-size: 11px; font-weight: 700; white-space: nowrap; }
.text-link span { padding-left: 4px; font-size: 15px; }
.bill-list { display: grid; }
.bill-row { display: flex; align-items: center; gap: 12px; min-height: 64px; border-top: 1px solid #eff1ee; }
.bill-date-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #f4f5ef; color: #818a60; }
.bill-main { display: grid; flex: 1; gap: 4px; }
.bill-main strong { font-size: 12px; font-weight: 600; }
.bill-main small { color: #89958e; font-size: 10px; }
.bill-amount { min-width: 94px; text-align: right; font-size: 12px; }
.status-badge { display: inline-flex; padding: 5px 8px; border-radius: 20px; background: #f1f3f1; color: #748078; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-badge.overdue { background: #fae9e5; color: #ad5140; }
.status-badge.today { background: #faeee0; color: #a76b28; }
.status-badge.soon { background: #f5f1e4; color: #8c7337; }
.dashboard-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 17px; padding: 15px 17px; border: 1px solid #e7eee8; border-radius: 11px; background: #edf3ed; color: #537166; }
.dashboard-note > span { font-size: 17px; }
.dashboard-note strong { display: block; margin-bottom: 4px; font-size: 11px; }
.dashboard-note p { margin: 0; color: #788a80; font-size: 10px; }
.page-footer { padding-top: 26px; color: #a1aaa4; font-size: 10px; text-align: center; }
.page-footer span { margin: 0 4px; }
.list-card { padding: 22px 23px; }
.shopping-list { display: grid; gap: 0; margin: 5px 0 0; padding: 0; list-style: none; }
.shopping-list li { display: flex; align-items: center; gap: 13px; min-height: 51px; border-top: 1px solid #f0f2ef; color: #35463f; font-size: 13px; }
.checkbox-static { display: inline-grid; place-items: center; flex: 0 0 17px; width: 17px; height: 17px; border: 1px solid #ccd7cf; border-radius: 5px; background: #fff; color: #fff; font-size: 11px; }
.checkbox-static.checked { border-color: #84a492; background: #84a492; }
.empty-state { display: grid; justify-items: center; padding: 48px 15px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 14px; background: #edf3ee; color: var(--green); font-size: 20px; }
.empty-state strong { margin-bottom: 6px; font-family: Manrope, sans-serif; font-size: 14px; }
.empty-state p { max-width: 370px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 10px 13px; border-bottom: 1px solid #e9ede9; color: #919c96; font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.data-table td { padding: 14px 13px; border-bottom: 1px solid #f0f2ef; font-size: 12px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tr.overdue { background: #fffaf9; }
.data-table tr.today { background: #fffcf7; }
.date-cell { color: #708077; white-space: nowrap; }
.amount-cell { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.align-right { text-align: right !important; }
.table-caption { margin: 12px 0 0; color: #9aa49f; font-size: 10px; }
.alert { margin: -10px 0 18px; padding: 12px 15px; border: 1px solid #f1d9cf; border-radius: 9px; background: #fff5f1; color: #8c5242; font-size: 11px; }
.alert a { margin-left: 5px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.alert.warning { border-color: #f1e2c2; background: #fff9ec; color: #896c2e; }
.idea-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.idea-card { min-height: 166px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(32, 56, 48, .025); }
.idea-topline { display: flex; align-items: center; justify-content: space-between; }
.idea-spark { color: #7f998b; font-size: 17px; }
.idea-card h2 { margin: 16px 0 15px; font-size: 15px; letter-spacing: -.3px; }
.idea-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #9aa49f; font-size: 10px; }
.category-pill { display: inline-flex; padding: 5px 8px; border-radius: 6px; background: #edf3ee; color: #557163; font-size: 9px; font-weight: 700; }
.priority-pill { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 6px; background: #f0f2ef; color: #728078; font-size: 9px; font-weight: 700; text-transform: capitalize; }
.priority-alta { background: #fae9e5; color: #aa5d4c; }
.priority-média { background: #f5f0e2; color: #92783d; }
.priority-baixa { background: #edf2ed; color: #69806f; }
.filter-bar { display: flex; align-items: flex-end; gap: 10px; margin: -4px 0 19px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.filter-bar label { display: grid; gap: 6px; min-width: 130px; color: #87938d; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.filter-bar select { min-width: 150px; height: 36px; padding: 0 27px 0 10px; border: 1px solid #e3e9e4; border-radius: 7px; background: #fff; color: #43534c; font-size: 11px; text-transform: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 700; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-dark); }
.clear-filters { padding: 10px 5px; color: #75847c; font-size: 10px; }
.project-list { display: grid; gap: 11px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(32, 56, 48, .02); }
.project-card summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 82px; padding: 14px 17px; cursor: pointer; list-style: none; }
.project-card summary::-webkit-details-marker { display: none; }
.project-summary-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.project-symbol { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; border-radius: 10px; background: #edf3ee; color: var(--green); font-size: 17px; }
.project-summary-main h2 { margin: 0 0 6px; overflow: hidden; font-size: 14px; letter-spacing: -.2px; text-overflow: ellipsis; white-space: nowrap; }
.project-meta { display: flex; align-items: center; gap: 8px; }
.status-text { color: #829087; font-size: 10px; text-transform: capitalize; }
.project-summary-side { display: flex; align-items: center; gap: 12px; }
.project-updated { color: #9aa49f; font-size: 9px; white-space: nowrap; }
.chevron { color: #819087; font-size: 17px; transition: transform .18s; }
.project-card[open] .chevron { transform: rotate(180deg); }
.project-detail { padding: 0 20px 19px; border-top: 1px solid #eff2ef; }
.project-facts { display: flex; gap: 28px; padding: 15px 0 5px; }
.project-facts div { display: grid; gap: 5px; }
.project-facts small { color: #9aa49f; font-size: 8px; font-weight: 700; letter-spacing: .9px; }
.project-facts strong { color: #52635a; font-size: 10px; font-weight: 600; text-transform: capitalize; }
.project-section { margin-top: 16px; }
.project-section h3 { margin-bottom: 8px; color: #64736b; font-size: 11px; }
.project-section p, .project-empty { margin-bottom: 0; color: #78857e; font-size: 11px; line-height: 1.7; }
.preline { white-space: pre-line; }
.muted-count { padding-left: 4px; color: #9aa49f; font: 400 9px 'DM Sans', sans-serif; }
.task-list, .note-list, .related-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.task-list li, .note-list li, .related-links li { display: flex; align-items: flex-start; gap: 8px; color: #69776f; font-size: 10px; line-height: 1.55; }
.task-list .checkbox-static { margin-top: 1px; }
.task-list li.task-done { color: #9aa49f; text-decoration: line-through; }
.note-list li::before { content: '·'; color: #90a798; font-size: 16px; line-height: 12px; }
.related-links li { overflow-wrap: anywhere; }
.filter-chips { display: flex; gap: 7px; margin: -5px 0 18px; overflow-x: auto; padding-bottom: 2px; }
.filter-chip { padding: 8px 13px; border: 1px solid #e5eae5; border-radius: 20px; background: #fff; color: #7e8b84; font-size: 10px; font-weight: 600; white-space: nowrap; }
.filter-chip.selected { border-color: #d5e4d9; background: #e9f1eb; color: var(--green-dark); }
.link-list { display: grid; gap: 10px; }
.link-card { display: flex; align-items: flex-start; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.platform-icon { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border-radius: 10px; background: #f2f3f1; color: #687871; font-size: 15px; }
.platform-youtube { background: #faeae7; color: #c34f43; }
.platform-instagram { background: #f7eaf0; color: #aa5275; }
.platform-x { background: #edf0f0; color: #263a36; }
.link-content { min-width: 0; flex: 1; }
.link-title { display: inline-block; max-width: 100%; overflow: hidden; color: #31443b; font-family: Manrope, sans-serif; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.link-title:hover { color: var(--green); }
.link-title span { color: #9baa9f; }
.link-meta { display: flex; gap: 10px; margin-top: 5px; color: #9aa49f; font-size: 9px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tag-list span { padding: 4px 7px; border-radius: 5px; background: #f3f5f2; color: #77847c; font-size: 9px; }
.login-page-wrap { display: grid; min-height: calc(100vh - 1px); place-items: center; padding-top: 30px; padding-bottom: 30px; }
.login-card { width: min(100%, 405px); padding: 38px 38px 30px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 18px 55px rgba(31, 57, 47, .075); }
.login-emblem { width: 45px; height: 45px; margin-bottom: 26px; border-radius: 15px 15px 15px 5px; font-size: 21px; }
.login-card .eyebrow { margin-bottom: 10px; }
.login-card h1 { margin-bottom: 11px; font-size: 30px; line-height: 1.15; }
.login-description { margin-bottom: 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-form { display: grid; gap: 8px; }
.login-form label { margin-top: 7px; color: #5d6b64; font-size: 10px; font-weight: 700; }
.login-form input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #dfe6e0; border-radius: 8px; outline: none; color: var(--ink); font-size: 12px; }
.login-form input:focus { border-color: #86a695; box-shadow: 0 0 0 3px #e7f0eb; }
.login-submit { width: 100%; height: 43px; margin-top: 13px; }
.login-submit span { font-size: 16px; }
.login-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 19px 0 0; color: #98a39d; font-size: 9px; }
.login-footnote span { color: #71907d; }
.auth-body .sidebar { background: #edf2ee; }
.sidebar-login-copy { max-width: 160px; margin: -28px 8px 0; color: #718279; font: 500 16px/1.5 Manrope, sans-serif; }
.auth-body .main-content { background: radial-gradient(ellipse at 75% 8%, #e9f0e8 0, transparent 36%), var(--canvas); }
.auth-body .page-wrap { max-width: 100%; }
.demo-banner { display: flex; align-items: center; gap: 9px; margin: 0 0 23px; padding: 11px 13px; border: 1px solid #e8dfbe; border-radius: 9px; background: #fbf7e9; color: #786d4e; font-size: 10px; }
.demo-banner-icon { color: #ad9452; font-size: 14px; }
.demo-banner strong { color: #675b3b; }
.demo-banner-tag { margin-left: auto; color: #958858; font-size: 8px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.demo-anchor { scroll-margin-top: 84px; }
.demo-section { margin-top: 57px; }
.demo-section .page-heading { margin-bottom: 19px; }
.demo-section .page-heading h1 { font-size: clamp(24px, 2.6vw, 30px); }
.demo-overview-bills { margin-top: 17px; }
.demo-filters select:disabled { cursor: default; }

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .topbar { position: sticky; z-index: 4; top: 0; display: flex; justify-content: space-between; gap: 12px; height: auto; min-height: 57px; padding: 8px 16px 0; border-bottom: 1px solid #e9ede9; background: rgba(251, 252, 250, .96); }
  .mobile-brand { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; padding-bottom: 8px; font: 800 13px Manrope, sans-serif; }
  .mobile-brand .brand-mark { width: 27px; height: 27px; border-radius: 9px 9px 9px 3px; font-size: 14px; }
  .account-chip { padding-bottom: 8px; }
  .account-name { display: none; }
  .mobile-nav { display: flex; flex: 1; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a { flex: 0 0 auto; padding: 9px 8px 11px; border-bottom: 2px solid transparent; color: #7c8982; font-size: 9px; font-weight: 600; }
  .mobile-nav a.active { border-color: var(--green); color: var(--green-dark); }
  .page-wrap { padding: 29px 17px 22px; }
  .page-heading { align-items: flex-start; margin-bottom: 21px; }
  h1 { font-size: 27px; }
  .date-pill { align-self: flex-end; padding: 7px 8px; font-size: 9px; }
  .stats-grid { gap: 9px; margin-bottom: 14px; }
  .stat-card { min-height: 145px; padding: 13px; }
  .stat-icon { width: 27px; height: 27px; margin-bottom: 10px; }
  .dashboard-bills, .list-card { padding: 17px 14px 10px; }
  .bill-row { gap: 8px; }
  .bill-date-icon { display: none; }
  .bill-amount { min-width: 75px; font-size: 10px; }
  .status-badge { padding: 4px 6px; font-size: 8px; }
  .idea-grid { grid-template-columns: 1fr; gap: 9px; }
  .idea-card { min-height: 135px; }
  .filter-bar { align-items: stretch; gap: 8px; padding: 11px; }
  .filter-bar label { flex: 1 1 calc(50% - 8px); min-width: 115px; }
  .filter-bar select { min-width: 0; width: 100%; }
  .filter-submit { flex: 1; align-self: flex-end; }
  .clear-filters { align-self: center; }
  .project-card summary { align-items: flex-start; min-height: 76px; padding: 12px; }
  .project-summary-main { gap: 9px; }
  .project-symbol { flex-basis: 32px; width: 32px; height: 32px; }
  .project-summary-main h2 { max-width: 43vw; font-size: 12px; }
  .project-summary-side { flex-direction: column; align-items: flex-end; gap: 5px; }
  .project-updated { font-size: 8px; }
  .chevron { display: none; }
  .project-detail { padding: 0 13px 16px; }
  .project-facts { gap: 18px; }
  .data-table th, .data-table td { padding-right: 7px; padding-left: 7px; }
  .data-table td { font-size: 10px; }
  .login-page-wrap { min-height: 100vh; padding: 22px 16px; }
  .login-card { padding: 29px 24px 24px; }
  .auth-body .topbar { display: none; }
  .auth-body .main-content { min-height: 100vh; }
  .auth-body .page-wrap { min-height: 100vh; }
  .demo-banner { align-items: flex-start; flex-wrap: wrap; margin-bottom: 19px; }
  .demo-banner-tag { margin-left: 23px; }
  .demo-section { margin-top: 43px; }
}
@media (max-width: 390px) {
  .topbar { gap: 7px; padding-right: 10px; padding-left: 10px; }
  .mobile-nav a { padding-right: 6px; padding-left: 6px; }
  .page-wrap { padding-right: 12px; padding-left: 12px; }
  .project-meta { flex-wrap: wrap; }
  .project-summary-main h2 { max-width: 39vw; }
}

/* Atlas visual language, based on Hermes Brain.html */
:root { --bg:#f3f4f8; --card:#fff; --ink:#0f1a33; --muted:#8a93a6; --line:#eceef3; --accent:#2f4b8f; --accent-s:#e6ecf8; --red:#b4414a; --red-s:#fdeeee; --amb:#8a6a1d; --amb-s:#f5eed9; --grn:#2f7a55; --grn-s:#e3f3ea; --canvas:var(--bg); --paper:var(--card); --green:var(--accent); --green-dark:#203765; --green-pale:var(--accent-s); --coral:var(--red); --gold:var(--amb); --blue:#607bb7; --shadow:none; }
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#0e1220;--card:#171c2e;--ink:#eef1f8;--muted:#8f98ae;--line:#252b40;--accent:#8fabe8;--accent-s:#222c4a;--red:#f09aa1;--red-s:#3a2229;--amb:#e6c978;--amb-s:#38301b;--grn:#7ccfa0;--grn-s:#1d3329;--canvas:var(--bg);--paper:var(--card)}}
:root[data-theme="dark"]{--bg:#0e1220;--card:#171c2e;--ink:#eef1f8;--muted:#8f98ae;--line:#252b40;--accent:#8fabe8;--accent-s:#222c4a;--red:#f09aa1;--red-s:#3a2229;--amb:#e6c978;--amb-s:#38301b;--grn:#7ccfa0;--grn-s:#1d3329;--canvas:var(--bg);--paper:var(--card)}
body{background:var(--bg);color:var(--ink);font:15px/1.45 Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.sidebar,.topbar{display:none!important}.main-content{margin:0;min-height:100vh}
.page-wrap{width:min(100%,560px);margin:0 auto;padding:20px 16px calc(104px + env(safe-area-inset-bottom,0px))}
.atlas-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.atlas-brand{font-size:18px;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.atlas-actions{display:flex;align-items:center;gap:7px}.sync{font-size:11px;color:var(--muted);background:var(--card);border:1px solid var(--line);border-radius:999px;padding:5px 10px;white-space:nowrap}
.logout-mini{padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--muted);font-size:11px;cursor:pointer}
.page-heading{align-items:flex-start;margin-bottom:16px}.page-heading .eyebrow{font-size:11px;letter-spacing:.14em}.page-heading h1{margin:2px 0 0;font-size:24px;letter-spacing:-.02em}.page-heading .subheading{display:none}
.date-pill,.count-pill,.read-only-pill{border-radius:999px;font-size:11px}.content-card,.stat-card,.idea-card,.project-card,.link-card{border-radius:18px;box-shadow:none;background:var(--card);border-color:var(--line)}
.section-heading{padding:16px 18px;border-bottom:1px solid var(--line);margin:0}.section-heading h2{font-size:15px}.section-heading .eyebrow{display:none}
.dashboard-bills,.list-card{padding:0;overflow:hidden}.bill-row,.shopping-list li,.data-table td{padding:13px 18px}.bill-row{border-color:var(--line)}
.stats-grid{gap:10px}.stat-card{border-radius:16px;min-height:unset;padding:12px 14px}.stat-card>strong{font-size:18px}.stat-icon{width:28px;height:28px;margin-bottom:7px}.stat-foot{font-size:10px}
.idea-card{min-height:unset}.filter-bar{border-radius:12px}.filter-bar select{border-radius:12px}.project-card summary{padding:15px 18px}.project-card[open] .project-detail{padding:0 18px 16px}.link-card{border-radius:18px}.filter-chip{border-radius:999px}
.atlas-nav{position:fixed;z-index:20;left:0;right:0;bottom:0;background:var(--card);border-top:1px solid var(--line);padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px))}.atlas-nav>div{max-width:560px;margin:0 auto;display:flex}.atlas-nav a{flex:1;text-align:center;text-decoration:none;color:var(--muted);font-size:11px;font-weight:600;padding:4px 0}.atlas-nav a[aria-current=page]{color:var(--accent);font-weight:700}.ei{display:block;font-size:22px;line-height:28px;margin-bottom:2px}
.page-footer{padding-top:14px;color:var(--muted)}
.login-page-wrap{min-height:100vh;display:grid;place-items:center;padding-bottom:30px}.login-card{border-radius:18px;background:var(--card)}
.demo-section{margin-top:30px}.demo-banner{border-radius:12px;background:var(--accent-s);color:var(--accent)}
