/* SilviaDashboard — lean, functional, pink-signature.
   Sophisticated rose accents on a clean canvas. No cute. */

:root {
  /* Signature pink scale */
  --pink-700: #9d174d;
  --pink-600: #be185d;
  --pink-500: #db2777;
  --pink-400: #ec4899;
  --pink-300: #f472b6;
  --pink-100: #fce7f3;
  --pink-50:  #fdf2f8;

  --ink-900: #1a1a1d;
  --ink-700: #45454a;
  --ink-500: #767680;
  --ink-300: #b4b4bb;

  --bg:       #f7f7f8;
  --surface:  #ffffff;
  --line:     #ececef;

  /* Neutral charcoal for data viz — pink stays a signature accent only */
  --fill:     #2c2c31;
  --fill-2:   #46464d;
  --soft:     #f3f3f5;   /* neutral chip / tip background */

  --green:    #15803d;
  --amber:    #b45309;
  --red:      #be123c;

  --radius:   14px;
  --shadow:   0 1px 2px rgba(20,20,25,.04), 0 8px 24px rgba(20,20,25,.05);
  --maxw:     1180px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", serif;

  /* Silvia Mogas personal brand (silviamogas.com/brand) — used for the
     Quote of the day only. Signal Red is a single sparing accent, never
     decoration; no gradients or glows per the brand's misuse rules. */
  --brand-ink:     #0A0A0A;
  --brand-paper:   #FFFFFF;
  --brand-signal:  #C8102E;
  --brand-muted:   #777777;
  --brand-hairline:#E0E0E0;
  --brand-display: "Playfair Display", var(--serif);
  --brand-body:    "DM Sans", var(--sans);
}

/* ---- Dark mode ---------------------------------------------------------- */
[data-theme="dark"] {
  --ink-900: #f0f0f2;
  --ink-700: #c4c4cc;
  --ink-500: #9898a2;
  --ink-300: #5a5a66;

  --bg:       #121215;
  --surface:  #1c1c20;
  --line:     #2a2a30;

  --fill:     #e0e0e6;
  --fill-2:   #c0c0c8;
  --soft:     #26262c;

  --green:    #4ade80;
  --amber:    #fbbf24;
  --red:      #fb7185;

  --shadow:   0 1px 3px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* Smooth transitions for theme changes */
body, .card, .topbar, footer, .quote, .priorities, .btn-x, .btn-copy,
.task-add input {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }


/* ---- Editable / needs-input fields -------------------------------------- */
.needs {
  border: 1px dashed #d9a800; background: #fff8e1; color: #9a6b00;
  font: inherit; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 7px; cursor: pointer; white-space: nowrap;
}
.needs:hover { background: #fff1c2; }
.editable { cursor: pointer; border-bottom: 1px dotted var(--ink-300); }
.editable:hover { border-bottom-color: var(--pink-500); }

/* ---- Post today --------------------------------------------------------- */
.post-head { display: flex; align-items: center; }
.post-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--pink-600); background: var(--soft); padding: 2px 7px; border-radius: 6px; font-weight: 700; margin-left: 8px; }
.post-shuffle { margin-left: auto; border: 1px solid var(--line); background: var(--surface); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--ink-500); }
.post-shuffle:hover { border-color: var(--pink-300); color: var(--pink-600); }
.post-text { font-size: 16px; line-height: 1.5; margin: 6px 0 14px; }
.post-actions { display: flex; gap: 8px; }
.btn-x { background: #16161a; color: #fff; padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; }
.btn-x:hover { background: #000; }
.btn-copy { border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-copy:hover { border-color: var(--pink-300); color: var(--pink-600); }

/* ---- Tabs ---------------------------------------------------------------- */
.tab { display: none; opacity: 0; }
.tab.active { display: block; animation: tabIn .3s ease forwards; }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.section-top { padding-top: 28px; }
.topbar nav a.on { background: var(--soft); color: var(--pink-600); font-weight: 600; }

/* ---- Home welcome ------------------------------------------------------- */
.home-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 20px; align-items: center; }
.how { margin: 2px 0 10px; font-size: 16px; color: var(--ink-700); }
.mood { display: flex; gap: 8px; margin-bottom: 14px; }
.mood button { font-size: 22px; line-height: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; transition: .15s; }
.mood button:hover { border-color: var(--pink-300); transform: translateY(-2px); }
.mood button.on { border-color: var(--pink-500); background: var(--soft); box-shadow: 0 4px 12px rgba(190,24,93,.18); }
.lifestyle { font-family: var(--serif); font-size: 17px; color: var(--pink-600); font-style: italic; margin: 6px 0 0; }
.mood-note {
  display: block; width: 100%; max-width: 320px; margin: 10px 0 0; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-900);
  font: inherit; font-size: 13px;
}
.mood-note:focus { outline: 2px solid var(--pink-300); border-color: transparent; }
.mood-note::placeholder { color: var(--ink-300); }
.journal-open {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin: 8px 0 0; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-700);
  font: inherit; font-size: 13px; cursor: pointer; transition: .15s;
}
.journal-open:hover { border-color: var(--pink-300); color: var(--pink-600); }
.travel-art { max-width: 280px; margin: 0 auto; }

/* ---- Steps lists (CRM / BMB) -------------------------------------------- */
ol.steps { margin: 6px 0 0; padding-left: 18px; }
ol.steps li { font-size: 13px; padding: 4px 0; color: var(--ink-700); }

/* ---- CRM contacts by inbox ------------------------------------------------ */
.crm-brand-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 0; }
.crm-brand-tab {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-700);
  font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: .15s;
}
.crm-brand-tab:hover { border-color: var(--pink-300); color: var(--pink-600); }
.crm-brand-tab.on { border-color: var(--pink-500); background: var(--soft); color: var(--pink-600); }
.crm-panel { margin-top: 12px; }
.crm-inbox { font-size: 12px; font-weight: 500; color: var(--ink-500); margin-left: 6px; }
.crm-add { display: flex; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.crm-add input {
  flex: 1; min-width: 120px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px;
  font: inherit; font-size: 13px; background: var(--bg); color: var(--ink-900);
}
.crm-add input:focus { outline: 2px solid var(--pink-300); border-color: transparent; }
.crm-add button {
  border: none; background: var(--pink-500); color: #fff; border-radius: 9px; padding: 9px 16px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.crm-add button:hover { background: var(--pink-600); }
.crm-contacts { list-style: none; margin: 10px 0 0; padding: 0; }
.crm-contacts li {
  position: relative; padding: 10px 34px 10px 0; border-bottom: 1px solid var(--line);
}
.crm-contacts li:last-child { border-bottom: none; }
.crm-contacts .who { font-size: 14px; }
.crm-contacts .email { color: var(--ink-500); font-size: 13px; }
.crm-contacts .note { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.crm-contacts .crm-empty { color: var(--ink-500); font-size: 13px; padding: 10px 0; }
.crm-del {
  position: absolute; right: 0; top: 8px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-500); width: 24px; height: 24px; border-radius: 7px; cursor: pointer; font-size: 13px; line-height: 1;
}
.crm-del:hover { border-color: var(--red); color: var(--red); }

/* ---- Top bar ------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,247,248,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; gap: 18px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.01em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
  color: #fff; font-family: var(--serif); font-weight: 700;
  display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 4px 12px rgba(190,24,93,.35);
}
.brand .name { font-size: 16px; }
.brand .name span { color: var(--pink-500); }

.topbar nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a {
  font-size: 13px; color: var(--ink-500); padding: 7px 11px; border-radius: 8px;
  transition: background .15s, color .15s; display: flex; align-items: center; gap: 5px;
}
.topbar nav a:hover { background: var(--soft); color: var(--pink-600); }
.nav-icon { display: none; }

/* ---- Live clock --------------------------------------------------------- */
.live-clock {
  font-size: 13px; color: var(--ink-500); font-variant-numeric: tabular-nums;
  font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
}

/* ---- Dark mode toggle --------------------------------------------------- */
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-500);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; transition: .15s;
}
.icon-btn:hover { border-color: var(--pink-300); color: var(--pink-600); }
.icon-sun, .icon-moon { transition: opacity .2s, transform .3s; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon, :root:not([data-theme="dark"]) .icon-moon { display: none; }

/* ---- Hamburger ---------------------------------------------------------- */
.hamburger {
  display: none; border: 1px solid var(--line); background: var(--surface);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 0; transition: .15s;
}
.hamburger span {
  display: block; width: 16px; height: 2px; background: var(--ink-700);
  border-radius: 2px; transition: transform .25s ease, opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Mobile nav overlay ------------------------------------------------- */
.mobile-nav-overlay {
  position: fixed; inset: 0; top: 64px; z-index: 19;
  background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding: 30px 0 8px; }
.hero .grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: stretch; }

.greeting { display: flex; flex-direction: column; justify-content: center; }
.greeting .eyebrow { color: var(--pink-500); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.greeting h1 { margin: 6px 0 4px; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.greeting .sub { color: var(--ink-500); font-size: 14px; }
.greeting .split { margin-top: 14px; display: flex; gap: 8px; }
.pill { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-700); }
.pill b { color: var(--pink-600); }

/* ---- Quote of the day — Silvia Mogas personal brand (Ink/Paper/Signal Red) */
.quote {
  background:
    linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.90) 54%, rgba(10,10,10,.70) 100%),
    url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1800&q=80&sat=-100") center 42% / cover;
  color: var(--brand-paper); border-radius: 0; padding: 24px 28px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: none;
  position: relative; overflow: hidden;
  border: 1px solid var(--brand-ink);
  border-left: 4px solid var(--brand-signal);
}
.quote::before {
  content: ""; position: absolute; right: 28px; top: 28px;
  width: 72px; height: 1px; background: var(--brand-paper); opacity: .45;
}
.quote::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  pointer-events: none;
}
.quote > * { position: relative; z-index: 1; }
.quote .label { font-family: var(--brand-body); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-muted); }
.quote blockquote { margin: 12px 0 0; font-family: var(--brand-display); font-size: 22px; line-height: 1.35; max-width: 780px; }
.quote cite { display: block; margin-top: 12px; font-family: var(--brand-body); font-size: 13px; color: var(--brand-muted); font-style: normal; max-width: 70%; }
.quote-wordmark {
  position: absolute; right: 22px; bottom: 14px;
  font-family: "Great Vibes", var(--brand-display);
  font-size: 32px; line-height: 1; color: var(--brand-paper);
  font-weight: 400;
  letter-spacing: 0;
  pointer-events: none;
}
.quote-cities {
  position: absolute;
  right: 24px;
  bottom: 50px;
  font-family: var(--brand-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  pointer-events: none;
}
.quote-share { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.quote-share .btn-x, .quote-share .btn-copy, .btn-ig, .btn-wa {
  border: 1px solid var(--brand-ink);
  color: var(--brand-ink);
  background: var(--brand-paper);
  padding: 9px 16px;
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.quote-share .btn-x {
  background: var(--brand-ink);
  color: var(--brand-paper);
}
.quote-share .btn-x:hover, .quote-share .btn-copy:hover, .btn-ig:hover, .btn-wa:hover {
  border-color: var(--brand-signal);
  color: var(--brand-signal);
  background: var(--brand-paper);
}
.quote-share .btn-x:hover {
  background: var(--brand-ink);
}
.btn-ig, .btn-wa {
  min-width: 126px;
}
.quote-share-status { margin-top: 10px; font-size: 12px; color: var(--ink-500); max-width: 640px; }
@media (max-width: 520px) {
  .quote { padding-bottom: 84px; }
  .quote-wordmark { font-size: 26px; right: 16px; bottom: 14px; }
  .quote-cities { left: 28px; right: auto; bottom: 48px; font-size: 9px; }
}

/* ---- Tonight's priorities banner ---------------------------------------- */
.priorities {
  border: 1px solid var(--pink-300); background: linear-gradient(135deg, #fff, var(--soft));
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.prio-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--pink-600); }
.priorities ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.priorities li { font-size: 14px; padding-left: 20px; position: relative; }
.priorities li::before { content: "▸"; position: absolute; left: 0; color: var(--pink-500); font-weight: 700; }

/* ---- Plan time-block colors --------------------------------------------- */
.agenda li.plan-work .time { color: var(--pink-600); }
.agenda li.plan-personal .time { color: var(--ink-500); }

/* ---- Weekly tracker table ----------------------------------------------- */
table.wk { width: 100%; border-collapse: collapse; }
table.wk th { font-size: 11px; color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 4px; text-align: center; }
table.wk td { padding: 5px 4px; text-align: center; border-top: 1px solid var(--line); }
table.wk td.area { text-align: left; font-size: 13px; white-space: nowrap; }
.cell { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.cell.done { background: #e7f6ec; color: var(--green); }
.cell.planned { background: var(--soft); color: var(--pink-600); }
.cell.miss { background: #fdeaee; color: var(--red); }
.cell.na { background: transparent; color: var(--ink-300); }
.legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--ink-500); }
.legend b { font-weight: 700; }
.legend .g { color: var(--green); } .legend .p { color: var(--pink-600); } .legend .r { color: var(--red); }

/* ---- Section scaffolding ------------------------------------------------ */
.section { padding: 22px 0; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 14px; }
.section-head h2 { font-size: 15px; letter-spacing: -.01em; margin: 0; }
.section-head .tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--pink-600); background: var(--soft); padding: 3px 8px; border-radius: 6px; font-weight: 600;
}
.section-head .meta { margin-left: auto; font-size: 12px; color: var(--ink-300); }

.cols { display: grid; gap: 18px; }
.cols.pro { grid-template-columns: 1.4fr 1fr; }       /* 80% pro emphasis */
.cols.three { grid-template-columns: repeat(3, 1fr); }
.cols.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 12px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.card h3 .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink-400); }

/* ---- Tasks -------------------------------------------------------------- */
.task-add { display: flex; gap: 8px; margin-bottom: 12px; }
.task-add input {
  flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px;
  font: inherit; font-size: 14px; background: var(--bg);
}
.task-add input:focus { outline: 2px solid var(--pink-300); border-color: transparent; }
.task-add button {
  border: none; background: var(--pink-500); color: #fff; border-radius: 9px;
  padding: 0 14px; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s;
}
.task-add button:hover { background: var(--pink-600); }

ul.tasks { list-style: none; margin: 0; padding: 0; }
ul.tasks li {
  display: flex; align-items: center; gap: 11px; padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}
ul.tasks li:last-child { border-bottom: none; }
.check {
  width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--ink-300);
  display: grid; place-items: center; cursor: pointer; flex: none; transition: .15s;
}
.check.on { background: var(--pink-500); border-color: var(--pink-500); }
.check.on::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 700; }
.task-title { flex: 1; font-size: 14px; }
li.is-done .task-title { text-decoration: line-through; color: var(--ink-300); }

/* ---- Today's check-in ---------------------------------------------------- */
.checkin-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 4px 16px; }
.checkin-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.checkin-toggle {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--ink-300); background: var(--surface);
  cursor: pointer; flex: none; transition: .15s; position: relative;
}
.checkin-toggle.done { background: var(--green); border-color: var(--green); }
.checkin-toggle.done::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.checkin-toggle.missed { background: var(--red); border-color: var(--red); }
.checkin-toggle.missed::after { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }

/* ---- Daily history calendar ----------------------------------------------- */
.cal-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.cal-nav button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-500); width: 26px; height: 26px; border-radius: 7px; cursor: pointer; font-size: 15px; line-height: 1; }
.cal-nav button:hover { border-color: var(--pink-300); color: var(--pink-600); }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.cal-dow span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-300); text-align: center; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1; border: 1px solid var(--line); background: var(--bg); border-radius: 9px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; font: inherit; color: var(--ink-700); transition: .15s; padding: 2px;
}
.cal-day.empty { visibility: hidden; cursor: default; }
.cal-day:not(.empty):hover { border-color: var(--pink-300); }
.cal-day.today { border-color: var(--pink-500); box-shadow: 0 0 0 1px var(--pink-500) inset; }
.cal-day.has-data { background: var(--soft); }
.cal-daynum { font-size: 12px; font-weight: 600; }
.cal-mood { font-size: 14px; line-height: 1; }
.cal-frac { font-size: 9px; color: var(--pink-600); font-weight: 700; }
@media (max-width: 640px) { .cal-frac { display: none; } }

/* ---- Day detail modal ------------------------------------------------------ */
.day-modal-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.day-modal-overlay.open { opacity: 1; pointer-events: auto; }
.journal-modal-overlay {
  position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.journal-modal-overlay.open { opacity: 1; pointer-events: auto; }
.journal-modal {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto; padding: 26px 24px; position: relative;
}
.journal-modal h2 { margin: 4px 0 14px; }
.journal-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.journal-cal-head .cal-nav { margin-left: 0; justify-content: center; }
.journal-cal-head p { margin: 0; font-weight: 600; color: var(--ink-700); }
.journal-hint { margin: 12px 0 0; font-size: 12px; color: var(--ink-500); }
.journal-month { display: flex; align-items: center; gap: 8px; }
.journal-today {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-500); border-radius: 999px;
  padding: 3px 10px; font: inherit; font-size: 11px; cursor: pointer;
}
.journal-today:hover { border-color: var(--pink-300); color: var(--pink-600); }
.journal-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; font-size: 12px; color: var(--ink-500); }
.journal-summary b { color: var(--ink-700); font-weight: 600; margin-right: 4px; }
.journal-summary span { background: var(--soft); border-radius: 999px; padding: 3px 8px; }
#cal-grid .cal-day { position: relative; }
#cal-grid .cal-day.mood-0 { background: rgba(236,72,153,.14); }
#cal-grid .cal-day.mood-1 { background: rgba(34,197,94,.13); }
#cal-grid .cal-day.mood-2 { background: rgba(148,163,184,.18); }
#cal-grid .cal-day.mood-3 { background: rgba(239,68,68,.13); }
#cal-grid .cal-day.mood-4 { background: rgba(168,85,247,.14); }
.cal-wrote { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--pink-500); }
.day-modal:has(.journal-entry) { max-width: 460px; }
.day-detail-moods { margin: 8px 0 0; }
.day-detail-moods button { width: 40px; height: 40px; font-size: 20px; }
.day-detail-note-input { max-width: none; }
.journal-entry { display: grid; gap: 6px; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--ink-700); }
.journal-entry textarea {
  width: 100%; min-height: 130px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink-900); font: inherit; font-size: 14px; font-weight: 400; line-height: 1.5;
}
.journal-entry textarea:focus { outline: 2px solid var(--pink-300); border-color: transparent; }
.journal-save-state { margin: 6px 0 12px; font-size: 11px; color: var(--ink-500); }
.day-modal {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; max-width: 380px; max-height: 80vh; overflow-y: auto; padding: 26px 24px; position: relative;
}
.day-modal-close {
  position: absolute; top: 14px; right: 14px; border: none; background: var(--soft); color: var(--ink-500);
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 16px; line-height: 1;
}
.day-modal-close:hover { color: var(--pink-600); }
.day-detail-date { font-weight: 700; font-size: 16px; margin-bottom: 6px; padding-right: 26px; }
.day-detail-mood { font-size: 26px; margin-bottom: 4px; }
.day-detail-note { font-size: 13px; color: var(--ink-500); margin: 0 0 14px; line-height: 1.4; }
.day-detail-list { list-style: none; margin: 0; padding: 0; }
.day-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.day-detail-row:last-child { border-bottom: none; }
.day-detail-row b { font-weight: 600; color: var(--ink-500); }
.day-detail-row.done b { color: var(--green); }
.day-detail-row.missed b { color: var(--red); }
.task-tag {
  font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--soft);
  color: var(--pink-600); font-weight: 600; white-space: nowrap;
}
.prio { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.prio.high { background: var(--red); }
.prio.med  { background: var(--amber); }
.prio.low  { background: var(--ink-300); }
.task-del { border: none; background: none; color: var(--ink-300); cursor: pointer; font-size: 16px; padding: 2px 4px; }
.task-del:hover { color: var(--red); }
.task-progress { margin-top: 12px; font-size: 12px; color: var(--ink-500); }

/* ---- Calendar ----------------------------------------------------------- */
ul.agenda { list-style: none; margin: 0; padding: 0; }
ul.agenda li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
ul.agenda li:last-child { border-bottom: none; }
.agenda .time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; color: var(--pink-600); width: 46px; flex: none; }
.agenda .info .t { font-size: 14px; }
.agenda .info .w { font-size: 12px; color: var(--ink-500); }
.agenda .kind { margin-left: auto; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-300); align-self: center; }

/* ---- Projects ----------------------------------------------------------- */
.proj { display: grid; gap: 12px; }
.proj-row {
  display: grid; grid-template-columns: 1.3fr .8fr .9fr .9fr; gap: 14px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
}
.proj-name { font-weight: 600; font-size: 14px; }
.proj-name .bar { height: 5px; background: var(--soft); border-radius: 999px; margin-top: 7px; overflow: hidden; }
.proj-name .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--fill-2), var(--fill)); border-radius: 999px; }
.badge { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.badge.on-track { background: #e7f6ec; color: var(--green); }
.badge.live     { background: var(--soft); color: var(--pink-600); }
.badge.at-risk  { background: #fdf0e3; color: var(--amber); }
.badge.paused   { background: #f1edef; color: var(--ink-500); }
.metric .k { font-size: 11px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .05em; }
.metric .v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.delta { font-size: 12px; font-weight: 600; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }

/* ---- Project portfolio -------------------------------------------------- */
.project-top-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.project-control {
  border-color: rgba(219,39,119,.28);
}
.project-control .project-preview {
  aspect-ratio: 16 / 9;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* ---- What I'm Building + notification centre --------------------------- */
.building-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 18px 0; }
.build-stats { display: grid; grid-template-columns: repeat(4, minmax(105px, 1fr)); gap: 10px; flex: 1; }
.build-stat { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px; }
.build-stat b { display: block; color: var(--pink-600); font-size: 22px; }
.build-stat span { color: var(--ink-500); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.build-view-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.building-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.build-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.build-card-head { display: flex; gap: 12px; align-items: flex-start; }
.build-code { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--ink-900); border-radius: 13px; font-weight: 800; }
.build-title { min-width: 0; }
.build-title h3 { margin: 2px 0 8px; font-size: 17px; overflow-wrap: anywhere; }
.build-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.build-pill { display: inline-flex; border-radius: 999px; background: var(--soft); color: var(--ink-700); padding: 4px 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; }
.visibility-public { background: #dcfce7; color: #166534; }
.visibility-selective { background: #fef3c7; color: #92400e; }
.visibility-private, .visibility-stealth { background: #ede9fe; color: #5b21b6; }
.build-description { color: var(--ink-700); font-size: 13px; line-height: 1.5; min-height: 40px; }
.build-description.missing { color: var(--ink-300); font-style: italic; }
.build-progress { margin: 12px 0; }
.build-progress > div:first-child { display: flex; justify-content: space-between; color: var(--ink-500); font-size: 11px; text-transform: uppercase; }
.build-progress-track { height: 7px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-top: 7px; }
.build-progress-track i { display: block; height: 100%; background: linear-gradient(90deg, #a3e635, #22c55e); border-radius: inherit; }
.build-details { flex: 1; border-top: 1px solid var(--line); padding-top: 10px; }
.build-details p { margin: 5px 0; color: var(--ink-500); font-size: 12px; }
.build-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-300); font-size: 11px; }
.intake-section { border: 2px solid rgba(219,39,119,.22); border-radius: 16px; background: rgba(252,231,243,.28); padding: 16px; margin: 22px 0; }
.intake-list { display: grid; gap: 10px; }
.intake-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px; }
.intake-card h3 { display: inline; margin-left: 8px; }
.intake-card > p { color: var(--ink-700); font-size: 13px; }
.intake-evidence { border-left: 3px solid var(--pink-300); padding-left: 10px; }
.intake-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 12px; color: var(--ink-500); }
.intake-question { font-weight: 700; color: var(--ink-900) !important; }
.intake-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.legacy-portfolio { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.legacy-portfolio summary { cursor: pointer; color: var(--ink-500); font-weight: 700; margin-bottom: 16px; }
.notification-bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-700); cursor: pointer; }
.notification-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 800; line-height: 18px; }
.install-app-btn { border: 1px solid var(--pink-300); border-radius: 9px; background: var(--soft); color: var(--pink-600); padding: 8px 10px; font-weight: 700; cursor: pointer; }
.notification-drawer { position: fixed; top: 0; right: 0; z-index: 130; width: min(420px, 100vw); height: 100dvh; background: var(--bg); border-left: 1px solid var(--line); box-shadow: -18px 0 50px rgba(15,23,42,.16); padding: 20px; transform: translateX(105%); transition: transform .22s ease; overflow-y: auto; }
.notification-drawer.open { transform: translateX(0); }
.notification-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; }
.notification-drawer-head h2 { margin: 4px 0 18px; }
.notification-drawer-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.notification-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px; margin-bottom: 10px; }
.notification-item.unread { border-left: 4px solid var(--pink-500); }
.notification-item h3 { margin: 8px 0 5px; font-size: 14px; }
.notification-item p { margin: 0 0 8px; color: var(--ink-500); font-size: 12px; }
.notification-item small { color: var(--ink-300); }

@media (max-width: 1050px) {
  .building-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build-stats { grid-template-columns: repeat(2, minmax(105px, 1fr)); }
}
@media (max-width: 680px) {
  .building-toolbar { flex-direction: column; }
  .build-stats, .building-grid, .intake-grid { grid-template-columns: 1fr; width: 100%; }
  .install-app-btn { display: none; }
}
.project-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.project-admin-link, .project-admin-add {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--pink-600);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
  white-space: nowrap;
}
.project-admin-link:hover, .project-admin-add:hover {
  border-color: var(--pink-300);
}
.project-content-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 10px;
  margin: 0 12px 10px;
}
.project-content-box b {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-500);
  letter-spacing: .06em;
}
.project-content-box p {
  margin: 0;
  color: var(--ink-700);
  font-size: 12px;
  line-height: 1.4;
}
.project-preview {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.project-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
  z-index: 1;
}
.project-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  z-index: 0;
}
.project-fallback span {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--pink-500);
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
}
.project-fallback b { font-size: 12px; color: var(--ink-500); word-break: break-word; }
.project-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 8px;
}
.project-meta h3 { margin: 0; font-size: 14px; line-height: 1.2; }
.project-meta p { margin: 4px 0 0; color: var(--ink-500); font-size: 12px; word-break: break-word; }
.project-manual-status {
  display: block;
  padding: 0 12px 10px;
}
.project-manual-status span {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-300);
  text-transform: uppercase;
}
.project-manual-status textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
}
.project-manual-status textarea:focus {
  outline: none;
  border-color: rgba(219,39,119,.45);
  box-shadow: 0 0 0 3px rgba(219,39,119,.10);
  background: var(--surface);
}
.project-status-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.project-status-tools button {
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.project-save {
  border-radius: 8px;
  padding: 7px 11px;
  background: var(--green);
  color: #fff;
}
.project-cancel {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  line-height: 1;
}
.project-status-tools small {
  min-width: 68px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-300);
}
.project-status-tools small.is-saved { color: var(--green); }
.project-status-tools small.is-dirty { color: var(--amber); }
.project-status-tools small.is-cancelled { color: var(--red); }
.project-status {
  flex: none;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--pink-600);
  background: var(--soft);
}
.project-status.live { color: var(--green); }
.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px 10px;
  font-size: 12px;
  color: var(--ink-500);
}
.project-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.project-actions a { color: var(--pink-600); font-weight: 800; }
.project-link-pending { color: var(--ink-300); font-weight: 800; }

/* ---- Social ------------------------------------------------------------- */
.stat .label { font-size: 12px; color: var(--ink-500); }
.stat .num { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .handle { font-size: 12px; color: var(--ink-300); }

/* ---- Personal (health / diet / weather) --------------------------------- */
.ring-row { display: flex; gap: 16px; flex-wrap: wrap; }
.metric-line { margin: 10px 0; }
.metric-line .top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.metric-line .top b { font-variant-numeric: tabular-nums; }
.track { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.track i { display: block; height: 100%; background: linear-gradient(90deg, var(--fill-2), var(--fill)); border-radius: 999px; }
.weather { display: flex; align-items: center; gap: 16px; }
.weather .temp { font-size: 40px; font-weight: 700; letter-spacing: -.03em; }
.weather .cond { font-size: 13px; color: var(--ink-500); }
.sun { display: flex; gap: 18px; margin-top: 6px; font-size: 13px; color: var(--ink-700); }
.sun b { color: var(--pink-600); }
.whoop-status {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--soft); font-size: 12px;
}
.whoop-status span { font-weight: 700; color: var(--pink-600); }
.whoop-status.connected span { color: var(--green); }
.whoop-status b { font-weight: 600; color: var(--ink-500); text-align: right; }
.whoop-rings { justify-content: flex-start; gap: 14px; }
.whoop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.whoop-metric {
  min-height: 58px; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 10px; background: var(--bg);
}
.whoop-metric span {
  display: block; font-size: 11px; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px;
}
.whoop-metric b { font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---- Finance ------------------------------------------------------------ */
.fin-top { display: flex; gap: 26px; margin-bottom: 14px; }
.fin-stat .k { font-size: 11px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .05em; }
.fin-stat .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fin-stat .v.big { font-size: 28px; color: var(--pink-600); letter-spacing: -.02em; }
.fin-tip { margin-top: 14px; font-size: 13px; color: var(--ink-700); background: var(--soft); border-radius: 10px; padding: 11px 13px; line-height: 1.5; }
.cat { margin: 11px 0; }
.cat-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.cat-top b { font-variant-numeric: tabular-nums; }
.track.sm { height: 6px; }

/* ---- Markets ------------------------------------------------------------ */
.mkt { text-align: left; }
.mkt-sym { font-size: 12px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.mkt-price { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin: 4px 0; }

/* ---- Travel ------------------------------------------------------------- */
.trip-head { display: flex; align-items: center; justify-content: space-between; }
.trip .dest { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.trip-dates { font-size: 13px; color: var(--pink-600); font-weight: 600; margin: 4px 0 12px; }

/* ---- Countries tracker -------------------------------------------------- */
.csum { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--ink-500); text-transform: none; letter-spacing: 0; }
.card h3 { justify-content: flex-start; }
.ctry { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ctry:last-child { border-bottom: none; }
.ctry .flag { font-size: 16px; flex: none; }
.ctry .cn { font-size: 13px; width: 110px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctry .cbar { flex: 1; height: 7px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.ctry .cbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--fill-2), var(--fill)); border-radius: 999px; }
.ctry b { font-variant-numeric: tabular-nums; font-size: 13px; width: 38px; text-align: right; flex: none; }

/* ---- Find / research ---------------------------------------------------- */
.ritem { padding: 9px 0; border-bottom: 1px solid var(--line); }
.ritem:last-child { border-bottom: none; }
.rname { font-size: 14px; font-weight: 600; }
.rdetail { font-size: 12px; color: var(--ink-500); margin-top: 2px; line-height: 1.45; }
.rlink { font-size: 11px; font-weight: 600; color: var(--pink-600); }
.rlink:hover { text-decoration: underline; }

/* ---- Quick info (profile + companies) ----------------------------------- */
.kv { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: none; }
.kv .k { font-size: 12px; color: var(--ink-500); width: 78px; flex: none; text-transform: uppercase; letter-spacing: .04em; }
.kv .v { font-size: 14px; flex: 1; word-break: break-word; }
.kv .copy { border: 1px solid var(--line); background: var(--surface); color: var(--ink-500); border-radius: 7px; width: 28px; height: 28px; cursor: pointer; flex: none; font-size: 13px; transition: .15s; }
.kv .copy:hover { border-color: var(--pink-300); color: var(--pink-600); }
.company .note { margin-top: 10px; font-size: 12px; color: var(--pink-600); background: var(--soft); padding: 6px 10px; border-radius: 8px; display: inline-block; }

/* ---- Footer ------------------------------------------------------------- */
footer { padding: 30px 0 50px; color: var(--ink-300); font-size: 12px; text-align: center; }
footer .conn { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
footer .conn a { font-size: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-700); }
footer .conn a:hover { border-color: var(--pink-300); color: var(--pink-600); }

/* ---- Task filters ------------------------------------------------------- */
.task-filters { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tf {
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-500);
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.tf:hover { border-color: var(--pink-300); color: var(--pink-600); }
.tf.on { background: var(--pink-500); color: #fff; border-color: var(--pink-500); }

/* ---- Quick notes -------------------------------------------------------- */
.quick-notes {
  width: 100%; min-height: 100px; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 14px;
  background: var(--bg); color: var(--ink-900); resize: vertical; line-height: 1.6;
}
.quick-notes:focus { outline: 2px solid var(--pink-300); border-color: transparent; }
.notes-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.notes-saved { font-size: 12px; color: var(--ink-300); }
.notes-clear { font-size: 12px; padding: 5px 10px; }

/* ---- Daily status log --------------------------------------------------- */
.daily-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 14px; align-items: start; }
.daily-topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.date-control {
  display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
}
.date-control input {
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink-900);
  padding: 8px 10px; font: inherit; font-size: 14px; letter-spacing: 0; text-transform: none;
}
.daily-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.daily-field { display: grid; gap: 6px; font-size: 12px; color: var(--ink-500); font-weight: 700; }
.daily-field.span-2 { grid-column: 1 / -1; }
.daily-field input,
.daily-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  color: var(--ink-900); padding: 10px 11px; font: inherit; font-size: 14px; line-height: 1.45;
}
.daily-field textarea { resize: vertical; min-height: 82px; }
.daily-field input:focus,
.daily-field textarea:focus,
.date-control input:focus {
  outline: 2px solid var(--pink-300); border-color: transparent;
}
#daily-save-state.saved { color: var(--green); }
.daily-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.daily-cal-head h3 { margin: 0; }
.daily-cal-head p { margin: 3px 0 0; color: var(--ink-500); font-size: 12px; }
.cal-nav {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--ink-700); font-size: 20px; cursor: pointer;
}
.cal-nav:hover { border-color: var(--pink-300); color: var(--pink-600); }
.daily-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-weekday { font-size: 10px; color: var(--ink-500); text-align: center; font-weight: 700; }
.cal-empty { min-height: 34px; }
.cal-day {
  min-height: 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg);
  color: var(--ink-900); cursor: pointer; position: relative; font: inherit; font-size: 13px;
}
.cal-day:hover { border-color: var(--pink-300); }
.cal-day.selected { border-color: var(--pink-500); box-shadow: 0 0 0 2px rgba(219,39,119,.12); }
.cal-day.has-log { background: var(--surface); }
.cal-day i {
  position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--pink-500); transform: translateX(-50%);
}
.daily-summary { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.daily-summary p { margin: 0 0 8px; color: var(--ink-500); font-size: 12px; }
.daily-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.daily-chips span {
  font-size: 11px; color: var(--pink-600); background: var(--soft);
  border-radius: 999px; padding: 4px 8px; font-weight: 700;
}
.daily-mini-stats {
  display: grid; gap: 6px; margin-top: 10px; color: var(--ink-700); font-size: 12px;
}
.daily-mini-stats span {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--bg);
}
.daily-report-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.daily-report-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--bg);
}
.daily-report-list b {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}
.daily-report-list span {
  display: block;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.4;
}

/* ---- Anticipation board ------------------------------------------------- */
.anticipation-grid {
  display: grid; grid-template-columns: 1.25fr .9fr .9fr .9fr; gap: 14px;
}
.anticipation-main { min-height: 280px; }
.pressure-score {
  display: flex; justify-content: space-between; gap: 18px; align-items: flex-start;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.pressure-score span { display: block; font-size: 12px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .05em; }
.pressure-score b { font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pressure-score p { margin: 0; color: var(--ink-700); font-size: 13px; line-height: 1.45; max-width: 260px; }
.risk-bars { display: grid; gap: 12px; }
.risk-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.risk-top b { font-variant-numeric: tabular-nums; }
.risk-track { height: 9px; border-radius: 999px; overflow: hidden; background: var(--soft); }
.risk-track i { display: block; height: 100%; border-radius: 999px; background: var(--fill); }
.risk-row.hot .risk-track i { background: var(--red); }
.risk-row.warm .risk-track i { background: var(--amber); }
.risk-row.cool .risk-track i { background: var(--green); }
.risk-detail { margin-top: 4px; color: var(--ink-500); font-size: 12px; line-height: 1.4; }
.watch-strip { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.watch-pill { border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; background: var(--bg); min-width: 112px; }
.watch-pill b { display: block; font-size: 12px; }
.watch-pill span { color: var(--amber); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.next-list { display: grid; gap: 9px; }
.next-list.compact { margin-top: 8px; }
.next-item { border-left: 3px solid var(--pink-500); padding: 2px 0 2px 10px; min-height: 42px; }
.next-item b { display: block; font-size: 12px; color: var(--pink-600); font-variant-numeric: tabular-nums; }
.next-item span { display: block; font-size: 13px; font-weight: 650; line-height: 1.3; }
.next-item em { display: block; color: var(--ink-500); font-size: 12px; font-style: normal; margin-top: 2px; }
.mini-heading { margin-top: 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); font-weight: 700; }
.call-stack { display: grid; gap: 10px; }
.call-card { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px; }
.call-card div { display: flex; gap: 8px; align-items: baseline; }
.call-card b { color: var(--pink-600); font-size: 12px; }
.call-card span { font-weight: 650; font-size: 13px; line-height: 1.3; }
.call-card p { margin: 6px 0 0; color: var(--ink-500); font-size: 12px; line-height: 1.4; }
.capture-wheel { display: grid; gap: 9px; }
.capture-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--bg); }
.capture-item b { display: block; font-size: 13px; }
.capture-item span { display: block; color: var(--ink-500); font-size: 12px; line-height: 1.35; margin-top: 3px; }
.capture-item.ready { border-color: rgba(21,128,61,.35); }
.capture-item.manual { border-color: rgba(180,83,9,.35); }

/* ---- Pomodoro ----------------------------------------------------------- */
.pomodoro-card { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.pomo-ring-wrap { position: relative; width: 130px; height: 130px; flex: none; }
.pomo-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.pomo-track { fill: none; stroke: var(--soft); stroke-width: 8; }
.pomo-fill {
  fill: none; stroke: var(--pink-500); stroke-width: 8;
  stroke-linecap: round; stroke-dasharray: 339.292; stroke-dashoffset: 0;
  transition: stroke-dashoffset .4s ease;
}
.pomo-time {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums;
  letter-spacing: -.02em; color: var(--ink-900);
}
.pomo-controls { flex: 1; min-width: 200px; }
.pomo-modes { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.pomo-mode {
  font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-500);
  cursor: pointer; transition: .15s;
}
.pomo-mode:hover { border-color: var(--pink-300); color: var(--pink-600); }
.pomo-mode.on { background: var(--pink-500); color: #fff; border-color: var(--pink-500); }
.pomo-btns { display: flex; gap: 8px; }
.pomo-btn {
  border: none; background: var(--pink-500); color: #fff; border-radius: 10px;
  padding: 10px 22px; font: inherit; font-weight: 600; cursor: pointer; transition: .15s;
}
.pomo-btn:hover { background: var(--pink-600); }
.pomo-btn.pomo-reset { background: var(--surface); color: var(--ink-500); border: 1px solid var(--line); }
.pomo-btn.pomo-reset:hover { border-color: var(--pink-300); color: var(--pink-600); }
.pomo-sessions { margin-top: 12px; font-size: 13px; color: var(--ink-500); }

/* ---- Progress rings (personal tab) -------------------------------------- */
.ring-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.ring-item { text-align: center; width: 80px; }
.ring-svg { width: 70px; height: 70px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--soft); stroke-width: 6; }
.ring-fg { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring-label { font-size: 11px; color: var(--ink-500); margin-top: 4px; }
.ring-val { font-size: 13px; font-weight: 700; }

/* ---- Keyboard shortcuts hint -------------------------------------------- */
.shortcuts-hint { margin-top: 10px; font-size: 11px; color: var(--ink-300); }
kbd {
  display: inline-block; padding: 1px 5px; font: inherit; font-size: 10px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
  font-weight: 600; color: var(--ink-500); margin: 0 1px;
}

/* ---- Infrastructure dashboard ------------------------------------------ */
.systems-hero {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: 26px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(135deg, var(--surface), var(--soft));
}
.systems-hero h2 { margin: 4px 0 8px; font-size: clamp(24px, 4vw, 38px); letter-spacing: -.035em; }
.systems-hero .how { margin: 0; max-width: 720px; }
.systems-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.systems-summary div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.systems-summary b { display: block; font-size: 24px; color: var(--pink-600); }
.systems-summary span { display: block; margin-top: 3px; color: var(--ink-500); font-size: 12px; }
.systems-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.architecture-card { min-height: 250px; min-width: 0; overflow-wrap: anywhere; }
.architecture-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.architecture-head > div { flex: 1; min-width: 0; }
.architecture-head h3 { margin: 0; }
.architecture-head > div > span { color: var(--ink-500); font-size: 11px; }
.architecture-head .badge { margin-left: auto; white-space: nowrap; }
.architecture-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--soft); font-size: 21px; }
.architecture-card ul { display: grid; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.architecture-card li { position: relative; padding-left: 17px; color: var(--ink-700); font-size: 12px; line-height: 1.4; }
.architecture-card li::before { content: "→"; position: absolute; left: 0; color: var(--pink-500); }

.domain-table-wrap { overflow-x: auto; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.domain-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.domain-table th, .domain-table td { padding: 7px 8px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.domain-table th { color: var(--ink-500); font-weight: 600; }
.domain-table td:first-child { color: var(--ink-700); font-weight: 600; }
.domain-enabled { color: var(--green, #16803a); font-weight: 700; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .grid, .cols.pro, .home-grid { grid-template-columns: 1fr; }
  .daily-grid { grid-template-columns: 1fr; }
  .anticipation-grid { grid-template-columns: 1fr 1fr; }
  .project-top-row, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .travel-art { display: none; }
  .cols.three, .cols.four { grid-template-columns: 1fr 1fr; }
  .proj-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .topbar nav {
    position: fixed; top: 64px; right: 0; width: 260px; z-index: 20;
    background: var(--surface); border-left: 1px solid var(--line);
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
    flex-direction: column; padding: 16px 12px; gap: 2px;
    transform: translateX(100%); transition: transform .3s ease;
  }
  .topbar nav.open { transform: translateX(0); }
  .topbar nav a { padding: 12px 14px; border-radius: 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
  .nav-icon { display: inline-block !important; width: 16px; height: 16px; }
  .hamburger { display: flex; }
  .live-clock { font-size: 12px; }
  .pomodoro-card { flex-direction: column; align-items: center; }
  .shortcuts-hint { display: none; }
  .systems-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .daily-fields { grid-template-columns: 1fr; }
  .daily-topline { align-items: stretch; flex-direction: column; }
  .daily-field.span-2 { grid-column: auto; }
  .anticipation-grid { grid-template-columns: 1fr; }
  .project-top-row, .project-grid { grid-template-columns: 1fr; }
  .pressure-score { display: block; }
  .pressure-score p { margin-top: 6px; max-width: none; }
  .cols.three, .cols.four { grid-template-columns: 1fr; }
  .greeting h1 { font-size: 24px; }
  #companies { grid-template-columns: 1fr !important; }
  .priorities ul { grid-template-columns: 1fr; }
  .fin-top { flex-direction: column; gap: 12px; }
  .systems-hero { align-items: stretch; flex-direction: column; }
  .systems-summary { grid-template-columns: 1fr 1fr; }
  .systems-directory { grid-template-columns: minmax(0, 1fr); }
}




/* Macedonia: permanent shortcut to the AI staff workspace */
.agents-shortcut{
  display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:999px;
  background:#db2777;color:#fff;text-decoration:none;font-size:13px;font-weight:700;
  white-space:nowrap;box-shadow:0 5px 16px rgba(219,39,119,.2);transition:.2s ease
}
.agents-shortcut:hover{background:#be185d;transform:translateY(-1px)}
.travel-doubt{margin-top:12px;padding:11px 12px;border:1px solid #ef4444;border-radius:10px;background:#fff1f2;color:#991b1b}.travel-doubt b,.travel-doubt span{display:block}.travel-doubt span{margin-top:4px;cursor:pointer;text-decoration:underline dotted}
.travel-itinerary{padding:0;overflow:hidden}.itinerary-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 22px;border-bottom:1px solid var(--line)}.itinerary-summary h3{margin:4px 0 5px;font-size:22px}.itinerary-summary p{margin:0;color:var(--ink-500);font-size:12px}.itinerary-list{display:grid}.itinerary-row{display:grid;grid-template-columns:42px 145px minmax(0,1fr) auto;gap:14px;align-items:start;padding:18px 22px;border-bottom:1px solid var(--line)}.itinerary-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--soft);font-size:20px}.itinerary-when{display:grid;gap:5px;font-size:12px}.itinerary-when span{color:var(--ink-500)}.itinerary-copy h3{margin:0 0 5px;font-size:14px}.itinerary-copy p{margin:0;color:var(--ink-500);font-size:12px;line-height:1.5}.itinerary-copy small{display:block;margin-top:6px;color:var(--pink-600);font-weight:600}.itinerary-needs{padding:6px 22px 20px}.itinerary-needs .travel-doubt{display:inline-block;margin-right:8px;max-width:520px}
.macedonia-dots{display:inline-grid;grid-template-columns:repeat(2,6px);gap:2px}.macedonia-dots i{width:6px;height:6px;border-radius:50%;background:#fbc15f}.macedonia-dots i:nth-child(2){background:#10b981}.macedonia-dots i:nth-child(3){background:#8b5cf6}.macedonia-dots i:nth-child(4){background:#00f0ff}
@media(max-width:720px){.agents-shortcut{font-size:0;padding:9px 11px}.agents-shortcut .macedonia-dots{font-size:initial}}
@media(max-width:720px){.itinerary-row{grid-template-columns:38px 1fr;gap:10px}.itinerary-when,.itinerary-copy,.itinerary-row>.badge{grid-column:2}.itinerary-summary{padding:17px}.itinerary-row{padding:16px 17px}.itinerary-needs{padding:4px 17px 17px}}


/* ---- Durable save status + weighted task controls ------------------------ */
.dashboard-save-state {
  min-height: 18px; margin: 6px 0 0; color: var(--ink-500); font-size: 12px;
}
.dashboard-save-state.is-saving { color: var(--pink-600); }
.dashboard-save-state.is-synced { color: var(--green); }
.task-weight { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.task-weight span { font-size: 10px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .05em; }
.task-weight select {
  width: 42px; padding: 4px 3px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface); color: var(--ink-900); font: inherit; font-size: 12px; font-weight: 700;
}
.priority-weight {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px;
  border-radius: 50%; background: var(--pink-500); color: #fff; font-size: 11px; font-weight: 800;
}
.priority-title { vertical-align: middle; }
.priorities li { display: flex; align-items: center; padding-left: 0; }
.priorities li::before { content: none; }
.priority-empty { color: var(--ink-500); }

@media (max-width: 600px) {
  .task-weight span { display: none; }
  ul.tasks li { gap: 7px; }
}

/* Systems tab: accounts, decisions, domain table */
.systems-hero .post-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.systems-accounts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; }
.sys-group h3 { margin-bottom: 6px; }
.sys-row { padding: 9px 0; border-top: 1px solid var(--line); }
.sys-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sys-row-head b { font-size: 13px; color: var(--ink-900); }
.sys-row-value { font-size: 12px; color: var(--ink-700); margin-top: 2px; overflow-wrap: anywhere; }
.sys-row-value .rlink, .sys-group .rlink, #systems-boundaries .rlink { margin-left: 6px; }
.systems-decisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sys-decision .meta { display: block; margin: 2px 0 6px; }
.sys-dec-list { margin-top: 6px; font-size: 12px; }
.sys-dec-list > span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-500); }
.sys-dec-list ul { margin: 3px 0 0; padding-left: 16px; color: var(--ink-700); }
.sys-dec-list li { padding: 1px 0; }
.sys-dec-list.pending li::marker { color: var(--amber); }
.sys-dec-list.done li::marker { color: var(--green); }
#systems-domains { margin-top: 0; border-top: 0; padding-top: 0; }
#systems-domains .domain-table td .rdetail { white-space: normal; max-width: 260px; font-size: 10px; margin-top: 2px; }
#systems-domains .domain-table td { white-space: normal; vertical-align: top; }
#systems-domains .domain-table td:first-child { white-space: nowrap; }
@media (max-width: 1000px) { .systems-decisions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .systems-accounts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .systems-decisions { grid-template-columns: minmax(0, 1fr); } }

/* ---- Google Calendar (Home calendar card) ---------------------------------- */
.cal-live-day { margin: 12px 0 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.cal-live-day:first-child { margin-top: 0; }
.cal-live-meta { margin: 10px 0 0; font-size: 12px; color: var(--ink-500); }
.cal-live-warn { margin: 6px 0 0; font-size: 12px; color: var(--red); }
