:root {
  --navy-950:#263d3a;
  --navy-900:#33504b;
  --blue:#6f93c2;
  --green:#6f9f8d;
  --orange:#c98b58;
  --red:#c86f6f;
  --pink:#b87893;
  --ink:#28443f;
  --muted:#718781;
  --line:#dde8e2;
  --bg:#f4f7f2;
  --surface:#fffdf8;
  --sage:#e9f2ed;
  --sand:#f7efe1;
  --shadow:0 14px 34px rgba(63,91,82,.08);
  --radius:18px;
}

* { box-sizing:border-box; }
body {
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(111,159,141,.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(247,220,177,.28), transparent 30%),
    var(--bg);
  font-family:Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font:inherit; }
button { cursor:pointer; }
.hidden { display:none!important; }

.login-screen {
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}
.login-card {
  width:min(470px,100%);
  padding:30px;
  border:1px solid var(--line);
  border-radius:26px;
  background:white;
  box-shadow:var(--shadow);
}
.login-card h1 { margin:26px 0 8px; color:var(--navy-900); font-size:34px; line-height:1.05; letter-spacing:-1px; }
.login-card p { margin:0 0 22px; color:var(--muted); line-height:1.55; }
.login-card form { display:flex; flex-direction:column; gap:14px; }
label { display:flex; flex-direction:column; gap:6px; }
label span { color:#607589; font-size:11px; font-weight:800; }
input, select, textarea {
  width:100%;
  border:1px solid #d8e1e9;
  border-radius:11px;
  padding:12px 13px;
  color:var(--ink);
  background:white;
  outline:none;
}
textarea { resize:vertical; line-height:1.45; }
input:focus, select:focus, textarea:focus { border-color:#a8c8b9; box-shadow:0 0 0 4px rgba(111,159,141,.14); }
.login-card button, .inline-form button, .topbar button, .item-actions button, .logout-button {
  border:0;
  border-radius:11px;
  padding:12px 15px;
  background:var(--blue);
  color:white;
  font-weight:800;
}
.demo-note { display:block; margin-top:15px; color:#8796a3; }

.brand-row { display:flex; align-items:center; gap:12px; }
.brand-mark {
  display:grid;
  grid-template-columns:repeat(2,10px);
  grid-template-rows:repeat(2,10px);
  gap:3px;
  padding:9px;
  border-radius:12px;
  background:#3b75de;
  transform:rotate(45deg);
  box-shadow:0 8px 22px rgba(48,106,218,.35);
}
.brand-mark span { background:white; border-radius:2px; }
.brand-row strong { display:block; color:inherit; font-size:20px; letter-spacing:-.5px; }
.brand-row small { color:#8db2d1; letter-spacing:2px; font-size:10px; font-weight:900; text-transform:uppercase; }

.shell { min-height:100vh; display:grid; grid-template-columns:254px 1fr; }
.sidebar {
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  gap:25px;
  padding:26px 18px;
  color:white;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(180deg,#4d7169 0%,#314d49 100%);
}
.sidebar nav { display:flex; flex-direction:column; gap:6px; }
.nav-item {
  min-height:44px;
  border:0;
  border-radius:11px;
  padding:0 12px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#aac0d2;
  background:transparent;
  text-align:left;
  font-weight:750;
}
.nav-item:hover, .nav-item.active { color:white; background:rgba(255,255,255,.14); }
.nav-section-label { margin:10px 12px 0; color:#c6d8d0; font-size:10px; letter-spacing:1.6px; font-weight:900; }
.nav-count {
  margin-left:auto;
  min-width:22px;
  height:22px;
  display:grid;
  place-items:center;
  padding:0 6px;
  border-radius:99px;
  background:rgba(255,255,255,.16);
  color:#eef7f2;
  font-size:11px;
  font-weight:900;
}
.nav-count.warning { background:#c98b58; color:white; }
.nav-item.due-alert {
  color:#fff4f1;
  background:rgba(200,111,111,.26);
  box-shadow:inset 3px 0 #f4aaa0;
}
.nav-item.due-alert .nav-count { background:#c86f6f; }
.logout-button { margin-top:auto; background:rgba(255,255,255,.08); color:#d8e5ef; }
.primary-action {
  border:0;
  border-radius:14px;
  padding:13px 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#28443f;
  background:#f7efe1;
  font-weight:900;
  box-shadow:0 12px 22px rgba(26,55,48,.16);
}
.primary-action span { font-size:21px; line-height:1; }

.content { min-width:0; padding:28px 32px 52px; }
.topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px;
}
.topbar small, .section-title small { color:#507798; font-size:11px; font-weight:900; letter-spacing:1.5px; }
.topbar h2 { margin:4px 0 0; color:var(--navy-900); font-size:28px; letter-spacing:-.8px; }
.topbar button { background:#4f746c; }
.topbar-actions {
  display:flex;
  align-items:center;
  gap:12px;
}
.save-indicator {
  min-width:188px;
  display:grid;
  grid-template-columns:10px 1fr;
  gap:10px;
  align-items:center;
  padding:9px 11px;
  border:1px solid #dce8e1;
  border-radius:14px;
  background:rgba(255,253,248,.82);
  box-shadow:0 10px 22px rgba(63,91,82,.06);
}
.save-indicator > span {
  width:10px;
  height:10px;
  border-radius:99px;
  background:#a8b8b1;
}
.save-indicator strong,
.save-indicator small {
  display:block;
  letter-spacing:0;
  text-transform:none;
}
.save-indicator strong {
  color:var(--navy-900);
  font-size:12px;
  line-height:1.2;
}
.save-indicator small {
  margin-top:2px;
  color:#718781;
  font-size:10px;
  font-weight:750;
}
.save-indicator.saved > span { background:#6f9f8d; box-shadow:0 0 0 4px rgba(111,159,141,.14); }
.save-indicator.saving > span,
.save-indicator.syncing > span {
  background:#c98b58;
  box-shadow:0 0 0 4px rgba(201,139,88,.14);
  animation:pulseDot 1s ease-in-out infinite;
}
.save-indicator.error > span { background:#c86f6f; box-shadow:0 0 0 4px rgba(200,111,111,.14); }
.view { display:none; }
.view.active { display:block; animation:fadeIn .22s ease; }
.section-title { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:18px; }
.section-title h1 { margin:5px 0 0; color:var(--navy-900); font-size:30px; letter-spacing:-.8px; }
.calm-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:18px;
  align-items:stretch;
  margin-bottom:18px;
}
.calm-hero > div:first-child,
.status-card {
  border:1px solid var(--line);
  border-radius:24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(111,159,141,.18), transparent 32%),
    var(--surface);
  box-shadow:var(--shadow);
}
.calm-hero > div:first-child { padding:24px; }
.calm-hero small,
.status-card span {
  color:#698b80;
  font-size:10px;
  font-weight:900;
  letter-spacing:1.5px;
  text-transform:uppercase;
}
.calm-hero h1 { margin:7px 0; color:var(--navy-900); font-size:34px; letter-spacing:-1px; }
.calm-hero p { max-width:740px; margin:0; color:var(--muted); line-height:1.55; }
.status-card {
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:22px;
}
.status-card strong { margin:8px 0 4px; color:var(--navy-900); font-size:24px; letter-spacing:-.6px; }
.status-card small { color:#7f928d; }
.segmented-control {
  display:inline-flex;
  gap:4px;
  padding:4px;
  border:1px solid #dfe7ef;
  border-radius:14px;
  background:#edf3f8;
}
.segmented-control button {
  border:0;
  border-radius:10px;
  padding:9px 13px;
  color:#607589;
  background:transparent;
  font-size:12px;
  font-weight:900;
}
.segmented-control button.active {
  color:var(--navy-900);
  background:white;
  box-shadow:0 6px 16px rgba(28,55,80,.1);
}

.summary-grid {
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:14px;
  margin-bottom:18px;
}
.summary-card {
  min-height:118px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white;
  box-shadow:var(--shadow);
}
.summary-card span { display:block; color:#718496; font-size:11px; font-weight:750; }
.summary-card strong { display:block; margin:7px 0 4px; color:var(--navy-900); font-size:28px; letter-spacing:-.8px; }
.summary-card small { color:#8796a3; }
.summary-card.blue { background:linear-gradient(135deg,#fffdf8,#edf4fb); }
.summary-card.green { background:linear-gradient(135deg,#fffdf8,#eef6f1); }
.summary-card.orange { background:linear-gradient(135deg,#fffdf8,#f8efe3); }
.summary-card.red { background:linear-gradient(135deg,#fffdf8,#faeeee); border-color:#efc8c8; }
.summary-card.pink { background:linear-gradient(135deg,#fffdf8,#faedf3); }
.summary-card.violet { background:linear-gradient(135deg,#fffdf8,#f1eff8); }
.dashboard-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.panel {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.panel-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 20px 12px;
}
.panel-header h3 { margin:0; color:var(--navy-900); font-size:16px; }
.panel-header button {
  border:0;
  background:transparent;
  color:#3c70c6;
  font-weight:800;
  font-size:11px;
}
.list { padding:0 20px 20px; display:flex; flex-direction:column; gap:10px; }
.list.empty::before { content:"Nada por aqui."; color:#8796a3; font-size:13px; padding:16px 0; }
.item {
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fbfcfd;
}
.item h4 { margin:0 0 5px; color:var(--navy-900); font-size:14px; }
.item p { margin:0; color:#718496; font-size:12px; line-height:1.45; }
.pill {
  display:inline-flex;
  width:max-content;
  margin-top:8px;
  padding:5px 8px;
  border-radius:99px;
  background:#eaf1ff;
  color:#3168d8;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}
.pill.green { background:#e5f6ef; color:#238b69; }
.pill.orange { background:#fff0e3; color:#a96a22; }
.pill.red { background:#fdebea; color:#b94d4d; }
.pill.pink { background:#ffeaf4; color:#a54873; }
.item-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.item-actions button { min-height:34px; padding:0 11px; font-size:11px; background:white; color:#49667f; border:1px solid #d6e0e9; }
.item-actions .primary { background:var(--blue); color:white; border-color:var(--blue); }
.card-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.card-actions button {
  border:1px solid #d6e0d9;
  border-radius:9px;
  padding:8px 10px;
  color:#41665e;
  background:#fffdf8;
  font-size:11px;
  font-weight:900;
}

.inline-form {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr)) auto;
  gap:10px;
  padding:18px;
  border-bottom:1px solid var(--line);
}
.inline-form button { min-width:112px; }
.inline-form.compact-form { border-top:1px solid var(--line); }
.inline-check,
.file-field {
  min-height:45px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid #d8e3dd;
  border-radius:11px;
  padding:0 12px;
  color:#637c74;
  background:white;
  font-size:12px;
  font-weight:800;
}
.inline-check { flex-direction:row; }
.inline-check input { width:auto; accent-color:var(--green); }
.file-field { position:relative; overflow:hidden; }
.file-field span { color:#637c74; font-size:12px; }
.file-field input {
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.helper-strip {
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(135deg,#fffdf8,#f4faf6);
}
.helper-strip span {
  white-space:nowrap;
  color:var(--navy-900);
  font-size:12px;
  font-weight:900;
}
.helper-strip p {
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.calendar-board {
  padding:18px 20px;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(circle at 6% 0%, rgba(49,104,216,.08), transparent 28%),
    #fbfcfd;
}
.calendar-view {
  overflow:hidden;
  border:1px solid #dfe7ef;
  border-radius:18px;
  background:white;
}
.calendar-view-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:15px 16px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(135deg,#ffffff 0%,#f7faff 100%);
}
.calendar-view-header strong {
  display:block;
  color:var(--navy-900);
  font-size:16px;
}
.calendar-view-header small {
  display:block;
  margin-top:3px;
  color:#718496;
  text-transform:capitalize;
}
.calendar-view-header span {
  padding:7px 10px;
  border-radius:99px;
  color:#3168d8;
  background:#eaf1ff;
  font-size:11px;
  font-weight:900;
}
.day-view {
  display:flex;
  flex-direction:column;
  max-height:72vh;
}
.day-timeline {
  flex:1;
  min-height:320px;
  max-height:640px;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:0 14px 14px;
  scrollbar-color:#b9cbc3 #f3f7f4;
}
.day-timeline::-webkit-scrollbar { width:10px; }
.day-timeline::-webkit-scrollbar-track { background:#f3f7f4; border-radius:99px; }
.day-timeline::-webkit-scrollbar-thumb { background:#b9cbc3; border-radius:99px; }
.day-row {
  display:grid;
  grid-template-columns:68px 1fr;
  min-height:58px;
  border-top:1px solid #eef2f6;
}
.day-row:first-child { border-top:0; }
.day-row time {
  padding-top:14px;
  color:#8a9cab;
  font-size:12px;
  font-weight:850;
}
.day-row > div {
  padding:8px 0 8px 12px;
  border-left:1px dashed #dce5ee;
}
.calendar-event-chip {
  display:block;
  margin-bottom:8px;
  padding:10px 11px;
  border-left:4px solid var(--blue);
  border-radius:12px;
  background:#eaf1ff;
}
.calendar-event-chip strong {
  display:block;
  color:var(--navy-900);
  font-size:13px;
}
.calendar-event-chip small {
  display:block;
  margin-top:3px;
  color:#607589;
  font-size:11px;
  font-weight:800;
}
.empty-slot {
  display:inline-flex;
  margin-top:9px;
  padding:7px 9px;
  border-radius:99px;
  color:#9aa8b4;
  background:#f2f5f8;
  font-size:11px;
  font-weight:800;
}
.week-view, .month-view { overflow:auto; }
.week-grid {
  display:grid;
  grid-template-columns:repeat(7,minmax(108px,1fr));
  gap:10px;
  min-width:760px;
  padding:14px;
}
.week-column {
  min-height:210px;
  padding:11px;
  border:1px solid #e7edf3;
  border-radius:14px;
  background:#fbfcfd;
}
.week-column.today {
  border-color:#a9c1f2;
  background:#f2f6ff;
}
.week-column header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.week-column header small {
  color:#718496;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}
.week-column header strong {
  color:var(--navy-900);
  font-size:22px;
}
.month-weekdays {
  display:grid;
  grid-template-columns:repeat(7,minmax(92px,1fr));
  min-width:760px;
  padding:12px 14px 0;
  gap:8px;
}
.month-weekdays span {
  color:#718496;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  text-align:center;
}
.month-grid {
  display:grid;
  grid-template-columns:repeat(7,minmax(92px,1fr));
  min-width:760px;
  gap:8px;
  padding:10px 14px 14px;
}
.month-cell {
  min-height:94px;
  padding:9px;
  border:1px solid #e7edf3;
  border-radius:13px;
  background:#fbfcfd;
}
.month-cell.today {
  border-color:#a9c1f2;
  background:#f2f6ff;
}
.month-cell.muted {
  background:#f5f7f9;
  opacity:.55;
}
.month-cell strong {
  display:block;
  margin-bottom:7px;
  color:var(--navy-900);
  font-size:13px;
}
.month-cell span {
  display:block;
  overflow:hidden;
  margin-top:5px;
  padding:4px 6px;
  border-radius:8px;
  color:#315f9d;
  background:#eaf1ff;
  font-size:10px;
  font-weight:850;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.month-cell small {
  display:block;
  margin-top:5px;
  color:#718496;
  font-size:10px;
  font-weight:900;
}
.list-title-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 20px 8px;
}
.list-title-row h3 {
  margin:0;
  color:var(--navy-900);
  font-size:15px;
}
.list-title-row small {
  display:block;
  margin-top:3px;
  color:#718496;
}
.cards-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  padding:0 20px 20px;
}
.habit-library {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
  background:#fbf8f0;
}
.template-card {
  display:grid;
  grid-template-columns:34px 1fr;
  gap:10px;
  align-items:start;
  padding:12px;
  border:1px solid #e4ded0;
  border-radius:15px;
  background:white;
}
.template-card > span {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:var(--sage);
}
.template-card strong { display:block; color:var(--navy-900); font-size:12px; }
.template-card small { display:block; margin-top:4px; color:#7d8f88; font-size:10px; line-height:1.35; }
.template-card button {
  grid-column:2;
  justify-self:start;
  border:1px solid #d8e3dd;
  border-radius:9px;
  padding:7px 9px;
  color:#416b61;
  background:#f5faf7;
  font-size:10px;
  font-weight:900;
}
.template-card button:disabled { opacity:.55; cursor:not-allowed; }
.habit-card {
  padding:16px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fbfcfd;
}
.habit-card strong { display:block; color:var(--navy-900); }
.habit-card small { display:block; margin-top:6px; color:#718496; }
.progress-line {
  width:min(360px,100%);
  height:8px;
  margin-top:10px;
  overflow:hidden;
  border-radius:99px;
  background:#e9efea;
}
.progress-line span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#6f9f8d,#8eb8aa); }
.goal-item { grid-template-columns:1fr auto; }
.ties-hero {
  margin:18px 20px;
  padding:18px;
  border:1px solid #ead8df;
  border-radius:18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(184,120,147,.14), transparent 34%),
    #fffdf8;
}
.ties-hero strong { display:block; color:var(--navy-900); font-size:17px; }
.ties-hero p { max-width:800px; margin:6px 0 0; color:var(--muted); line-height:1.55; }
.relationship-idea-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  padding:0 20px 18px;
}
.idea-card {
  display:grid;
  grid-template-columns:40px 1fr;
  gap:11px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fbfcfd;
}
.idea-card > span {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#fff2e9;
}
.idea-card strong { display:block; color:var(--navy-900); font-size:12px; }
.idea-card small { display:block; margin-top:4px; color:#718781; font-size:10px; line-height:1.4; }
.secondary-button {
  border:1px solid #d6e0d9;
  border-radius:11px;
  padding:10px 13px;
  color:#41665e;
  background:white;
  font-weight:900;
}
.report-toolbar {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  padding:14px;
  margin-bottom:16px;
}
.report-toolbar div {
  padding:12px;
  border-radius:14px;
  background:#fbfcfd;
}
.report-toolbar span { display:block; color:#7b8f88; font-size:10px; font-weight:900; text-transform:uppercase; }
.report-toolbar strong { display:block; margin-top:5px; color:var(--navy-900); font-size:13px; }
.reports-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.report-block { padding:18px; }
.report-block h3 { margin:0 0 14px; color:var(--navy-900); }
.finance-mini-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.finance-mini-grid div {
  padding:13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fbfcfd;
}
.finance-mini-grid span,
.finance-mini-grid small { display:block; color:#7b8f88; font-size:10px; }
.finance-mini-grid strong { display:block; margin:5px 0; color:var(--navy-900); font-size:16px; }
.bar-lines { display:flex; flex-direction:column; gap:14px; }
.bar-lines div { display:grid; grid-template-columns:82px 1fr 60px; gap:10px; align-items:center; }
.bar-lines span { color:#60756e; font-size:11px; }
.bar-lines i { height:12px; border-radius:99px; background:linear-gradient(90deg,#6f93c2,#8eb8aa); }
.bar-lines strong { color:var(--navy-900); font-size:11px; text-align:right; }
.sync-summary {
  display:grid;
  grid-template-columns:60px 1fr auto auto;
  gap:16px;
  align-items:center;
  padding:18px;
  margin-bottom:16px;
}
.sync-orb {
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:17px;
  color:#416b61;
  background:var(--sage);
  font-size:24px;
}
.sync-summary h3 { margin:0; color:var(--navy-900); }
.sync-summary p { margin:5px 0 0; color:var(--muted); font-size:12px; line-height:1.45; }
.sync-summary span { display:block; color:#7b8f88; font-size:10px; font-weight:900; text-transform:uppercase; }
.sync-summary strong { display:block; margin-top:4px; color:var(--navy-900); font-size:12px; }
.account-list { display:flex; flex-direction:column; gap:12px; margin-bottom:16px; }
.account-card {
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 170px auto;
  gap:14px;
  align-items:center;
  padding:16px 18px;
}
.provider-logo {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  border:1px solid var(--line);
  background:white;
  color:#416b61;
  font-weight:900;
}
.provider-logo.google { color:#6f93c2; }
.provider-logo.microsoft { color:#8b6f9d; }
.account-card strong { display:block; color:var(--navy-900); }
.account-card p { margin:4px 0; color:var(--muted); font-size:12px; }
.account-card small { color:#879991; font-size:10px; }
.account-status { display:flex; align-items:center; gap:9px; }
.account-status > span {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  font-weight:900;
}
.account-status.success > span { color:#5f8f7e; background:#e9f2ed; }
.account-status.pending > span { color:#b47d43; background:#f8efe3; }
.timeline-lite { padding:0 20px 18px; }
.timeline-lite div {
  display:grid;
  grid-template-columns:34px 1fr;
  gap:10px;
  align-items:center;
  padding:12px 0;
  border-top:1px solid var(--line);
}
.timeline-lite span {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  font-weight:900;
}
.timeline-lite .ok { color:#5f8f7e; background:#e9f2ed; }
.timeline-lite .warn { color:#b47d43; background:#f8efe3; }
.timeline-lite p { margin:0; }
.timeline-lite strong { display:block; color:var(--navy-900); font-size:12px; }
.timeline-lite small { display:block; margin-top:3px; color:var(--muted); font-size:10px; }
.conflict-item { background:#fffaf2; border-color:#ead8bb; }
.settings-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.settings-card { padding:18px; }
.settings-card h3 { margin:0 0 8px; color:var(--navy-900); }
.setting-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:64px;
  border-top:1px solid var(--line);
}
.setting-row strong { display:block; color:var(--navy-900); font-size:12px; }
.setting-row small { display:block; margin-top:3px; color:var(--muted); font-size:10px; }
.setting-row > span:not(.pill) { color:#60756e; font-size:12px; font-weight:900; }
.setting-note {
  margin:12px 0 0;
  padding:12px;
  border-radius:14px;
  color:#526f66;
  background:#eef6f1;
  font-size:12px;
  line-height:1.5;
}

.toast-container {
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:20;
  display:flex;
  flex-direction:column;
  gap:9px;
}
.modal-backdrop {
  position:fixed;
  inset:0;
  z-index:40;
  display:grid;
  place-items:center;
  padding:22px;
  background:rgba(40,68,63,.42);
  backdrop-filter:blur(6px);
}
.edit-modal {
  width:min(860px,100%);
  max-height:calc(100vh - 44px);
  overflow:auto;
  border:1px solid rgba(255,255,255,.65);
  border-radius:26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(111,159,141,.16), transparent 35%),
    #fffdf8;
  box-shadow:0 28px 70px rgba(39,64,59,.24);
}
.modal-header {
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px 12px;
}
.modal-header small {
  color:#698b80;
  font-size:10px;
  font-weight:900;
  letter-spacing:1.5px;
}
.modal-header h2 {
  margin:4px 0 5px;
  color:var(--navy-900);
  font-size:24px;
}
.modal-header p {
  margin:0;
  color:var(--muted);
  font-size:13px;
}
.modal-close {
  width:36px;
  height:36px;
  border:1px solid #dce8e1;
  border-radius:12px;
  color:#60786f;
  background:white;
  font-size:22px;
}
.edit-fields {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  padding:10px 24px 18px;
}
.edit-fields .full-field { grid-column:1 / -1; }
.edit-check {
  min-height:48px;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  padding:0 12px;
  border:1px solid #d8e3dd;
  border-radius:13px;
  background:white;
}
.edit-check input { width:auto; accent-color:var(--green); }
.edit-check span { font-size:12px; color:#49675f; }
.modal-footer {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:16px 24px 24px;
  border-top:1px solid var(--line);
}
.save-button {
  border:0;
  border-radius:12px;
  padding:11px 15px;
  color:white;
  background:#6f9f8d;
  font-weight:900;
}
.toast {
  min-width:260px;
  max-width:380px;
  padding:13px 15px;
  display:flex;
  align-items:center;
  gap:10px;
  background:#102a43;
  color:white;
  border-radius:12px;
  box-shadow:0 15px 35px rgba(7,25,39,.25);
  font-size:13px;
  animation:slideIn .25s ease;
}
.toast span {
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:#2d7b61;
}

@keyframes fadeIn { from{opacity:0; transform:translateY(3px)} to{opacity:1; transform:none} }
@keyframes slideIn { from{opacity:0; transform:translateX(18px)} to{opacity:1; transform:none} }
@keyframes pulseDot { 0%,100%{transform:scale(1)} 50%{transform:scale(1.25)} }

@media (max-width:1180px) {
  .calm-hero { grid-template-columns:1fr; }
  .summary-grid { grid-template-columns:repeat(3,1fr); }
  .dashboard-grid { grid-template-columns:1fr; }
  .inline-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cards-grid { grid-template-columns:repeat(2,1fr); }
  .habit-library { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .relationship-idea-grid, .finance-mini-grid { grid-template-columns:1fr 1fr; }
  .sync-summary, .account-card { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .shell { grid-template-columns:1fr; }
  .sidebar { position:static; height:auto; }
  .sidebar nav { display:grid; grid-template-columns:repeat(2,1fr); }
  .content { padding:22px 14px 42px; }
  .topbar { align-items:flex-start; flex-direction:column; gap:12px; }
  .topbar-actions { width:100%; align-items:stretch; flex-direction:column; }
  .save-indicator { width:100%; }
  .calm-hero h1 { font-size:27px; }
  .section-title { align-items:flex-start; flex-direction:column; gap:12px; }
  .calendar-view-toggle { width:100%; }
  .segmented-control button { flex:1; }
  .summary-grid { grid-template-columns:repeat(2,1fr); }
  .inline-form { grid-template-columns:1fr; }
  .helper-strip { align-items:flex-start; flex-direction:column; }
  .habit-library, .relationship-idea-grid, .report-toolbar, .reports-detail-grid, .finance-mini-grid, .settings-grid { grid-template-columns:1fr; }
  .edit-fields { grid-template-columns:1fr; padding:10px 16px 16px; }
  .modal-header, .modal-footer { padding-left:16px; padding-right:16px; }
  .modal-footer { flex-direction:column-reverse; }
  .modal-footer button { width:100%; }
  .calendar-board { padding:12px; }
  .calendar-view-header { align-items:flex-start; flex-direction:column; }
  .day-row { grid-template-columns:54px 1fr; }
  .day-row > div { padding-left:9px; }
  .item { grid-template-columns:1fr; }
  .item-actions { justify-content:flex-start; }
  .cards-grid { grid-template-columns:1fr; }
}
