/* Sandeep Personal OS — bright, clean: slate-50 ground, white cards, #2563eb accent */
* { box-sizing: border-box; margin: 0; }
:root {
  --bg: #f8fafc; --card: #ffffff; --ink: #0f172a; --muted: #64748b;
  --line: #e2e8f0; --accent: #2563eb; --accent-soft: #eff6ff;
  --green: #059669; --green-soft: #ecfdf5; --amber: #d97706; --amber-soft: #fffbeb;
  --red: #dc2626; --red-soft: #fef2f2;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 16px rgba(15,23,42,.06);
  --radius: 14px;
}
html { -webkit-text-size-adjust: 100%; }
body { font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); min-height: 100vh; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
b { font-weight: 650; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 45%, #ecfdf5 100%); }
.login-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 40px 36px; width: 100%; max-width: 380px; text-align: center; }
.login-logo { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px;
  background: var(--accent); color: #fff; font-size: 28px; font-weight: 800;
  display: grid; place-items: center; }
.login-card h1 { font-size: 20px; margin-bottom: 4px; }
.login-card form { margin-top: 20px; display: grid; gap: 10px; }
.login-card input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; width: 100%; }
.login-card button { padding: 12px; border: 0; border-radius: 10px; background: var(--accent);
  color: #fff; font-size: 15px; font-weight: 650; cursor: pointer; }
.err { color: var(--red); font-size: 13px; min-height: 18px; }

/* ---------- chrome ---------- */
.topbar { display: flex; align-items: center; gap: 18px; padding: 12px 20px;
  background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { font-weight: 750; font-size: 17px; display: flex; align-items: center; gap: 9px; }
.brand-badge { width: 30px; height: 30px; border-radius: 9px; background: var(--accent);
  color: #fff; display: grid; place-items: center; font-size: 16px; }
.brand-sub { color: var(--muted); font-weight: 500; font-size: 14px; }
.sections { display: flex; gap: 8px; margin-left: auto; }
.sec { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); cursor: default; }
.sec.active { background: var(--accent-soft); color: var(--accent); }
.sec.soon { opacity: .6; }
.brand { text-decoration: none; color: inherit; }

/* ---------- home section cards ---------- */
.home-title { font-size: 30px; letter-spacing: -.02em; margin: 26px 0 4px; }
.home-sub { margin-bottom: 22px; }
.seccards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.seccard { display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); padding: 24px 20px 20px;
  text-decoration: none; color: inherit; position: relative;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.seccard.live:hover { transform: translateY(-3px); border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(37,99,235,.14); }
.seccard .ico { font-size: 34px; margin-bottom: 10px; }
.seccard .tt { font-size: 19px; font-weight: 750; margin-bottom: 6px; }
.seccard p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; min-height: 40px; }
.seccard.soon { opacity: .65; }
.seccard.live::after { content: '→'; position: absolute; top: 22px; right: 20px;
  color: var(--accent); font-size: 20px; font-weight: 700; }
.ghost { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px;
  color: var(--muted); cursor: pointer; font-size: 13px; }
.disclaimer { background: var(--amber-soft); border-bottom: 1px solid #fde68a; color: #92400e;
  padding: 8px 20px; font-size: 12.5px; }
.tabs { display: flex; gap: 4px; padding: 12px 16px 0; max-width: 1180px; margin: 0 auto;
  overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabs button { border: 0; background: none; padding: 9px 15px; border-radius: 10px 10px 0 0;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.active { background: var(--card); color: var(--accent);
  border: 1px solid var(--line); border-bottom-color: var(--card); }
main { max-width: 1180px; margin: 0 auto; padding: 18px 16px 60px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 18px; }

/* ---------- layout primitives ---------- */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; }
.card h2 { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex;
  align-items: center; gap: 8px; }
.card h2 .pill { margin-left: auto; }
.kpi { text-align: left; }
.kpi .v { font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.kpi .v small { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .l { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11.5px;
  font-weight: 700; letter-spacing: .02em; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.blue { background: var(--accent-soft); color: var(--accent); }
.banner { border-radius: var(--radius); padding: 14px 16px; font-size: 14px; }
.banner.red { background: var(--red-soft); border: 1px solid #fecaca; color: #991b1b; }
.banner.green { background: var(--green-soft); border: 1px solid #a7f3d0; color: #065f46; }

/* ---------- forms ---------- */
.frm { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.frm label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.frm input, .frm select, .frm textarea, .wide-input {
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px;
  background: #fff; color: var(--ink); width: 100%; }
.frm .full { grid-column: 1 / -1; }
.btn { padding: 10px 18px; border: 0; border-radius: 9px; background: var(--accent); color: #fff;
  font-weight: 650; font-size: 14px; cursor: pointer; }
.btn.green { background: var(--green); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.line { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: flex; align-items: center; gap: 6px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px;
  cursor: pointer; user-select: none; }
.chk input { accent-color: var(--accent); }
.chk.danger { border-color: #fecaca; }
.savemsg { font-size: 13px; color: var(--green); font-weight: 600; margin-left: 10px; }

/* ---------- tables ---------- */
.tblwrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; padding: 7px 10px; border-bottom: 1px solid var(--line); }
td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; }
tr:last-child td { border-bottom: 0; }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px system-ui; fill: var(--muted); }
.chart .axis { stroke: var(--line); }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.chart .dot { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.chart .area { fill: var(--accent-soft); opacity: .7; }
.chart .band { fill: var(--green-soft); }

/* ---------- meals ---------- */
.meal { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.meal .slot { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--accent);
  text-transform: uppercase; }
.meal .name { font-weight: 650; margin: 4px 0 8px; }
.macros { display: flex; flex-wrap: wrap; gap: 6px; }
.macros span { background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 8px; font-size: 12px; color: var(--muted); }
.meal .why { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.meal .why b { color: var(--green); }
.meal .kid { font-size: 12.5px; color: #92400e; margin-top: 4px; }
.meal.booster { border-color: #bfdbfe; background: var(--accent-soft); }
.meal.booster .slot { color: var(--green); }
.meal .how { margin-top: 8px; font-size: 13px; }
.meal .how summary { cursor: pointer; color: var(--accent); font-weight: 650;
  list-style: none; user-select: none; }
.meal .how summary::-webkit-details-marker { display: none; }
.meal .how[open] summary { margin-bottom: 6px; }
.meal .how p { color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; line-height: 1.6; }
.meal .howopen { font-size: 13px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; line-height: 1.6; margin-top: 8px; }
.meal .howopen b { color: var(--accent); }
.meal .howopen ul.ing, .meal .howopen ol.steps { margin: 4px 0 10px 18px; padding: 0; }
.meal .howopen li { margin: 3px 0; }
.meal .howopen ol.steps li { padding-left: 2px; }

/* ---------- misc ---------- */
.list { display: grid; gap: 8px; }
.list-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.list-item .who { font-size: 11px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; white-space: nowrap; padding-top: 2px; }
.section-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.mt { margin-top: 14px; }
h3.sub { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em; margin: 16px 0 8px; }
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .sections { order: 3; width: 100%; margin-left: 0; }
  .kpi .v { font-size: 21px; }
}
