/* Asymmetry OS — standalone dashboard.
   White background, blue→purple→pink brand gradient, ink grey scale,
   bright status colors. */
:root {
  /* brand */
  --brand-blue: #2DA8FF;
  --brand-blue-deep: #1E7FE5;
  --brand-purple: #9C4DEA;
  --brand-purple-deep: #7A2DC9;
  --brand-pink: #EC6BC8;
  --gradient-brand: linear-gradient(135deg, #2DA8FF 0%, #6E5CF5 55%, #A04DE6 100%);
  --gradient-brand-soft: linear-gradient(135deg, #E8F3FF 0%, #EEEAFF 55%, #F5E8FB 100%);

  /* surfaces */
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-2: #F6F5FA;   /* ink-50 */

  /* ink scale */
  --txt: #14132B;         /* ink-900 */
  --txt-700: #2E2C4F;
  --txt-dim: #5A5879;     /* ink-500 */
  --txt-faint: #8987A8;   /* ink-400 */
  --line: #ECEAF3;        /* ink-100 */
  --line-strong: #DAD8E6; /* ink-200 */
  --line-soft: #F1F0F7;

  /* single accent (mid of brand gradient) */
  --accent: #6E5CF5;
  --accent-hov: #5A47E0;
  --accent-soft: #EEEAFF;
  --accent-line: #D9D3FA;

  /* status */
  --green: #18A957;
  --green-deep: #0E7A3F;
  --green-soft: #E3F7EC;
  --gold: #E2A33B;        /* warn */
  --gold-deep: #8B5A12;
  --gold-soft: #FCF3E2;
  --red: #E04E58;
  --red-deep: #B83340;
  --red-soft: #FBE7E9;
  --amber: #E2A33B;
  --amber-soft: #FCF3E2;
  --info: #2DA8FF;
  --info-soft: #E5F1FF;
  --purple-soft: #F3EAFE;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20,19,43,.05), 0 8px 24px rgba(70,50,180,.06);
  --shadow-lg: 0 1px 3px rgba(20,19,43,.06), 0 20px 50px rgba(70,50,180,.12);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}
#app { display: flex; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hov); }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 248px; flex-shrink: 0; background: var(--bg-elev);
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 22px 14px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 22px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--gradient-brand);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(110,92,245,.35); color: #fff;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name {
  font-weight: 700; font-size: 15px; letter-spacing: -.2px;
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: 11px; color: var(--txt-faint); letter-spacing: .3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 11px;
  border-radius: var(--radius-sm); color: var(--txt-dim); cursor: pointer;
  font-weight: 500; font-size: 13.5px; border: 1px solid transparent;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--bg-card-2); color: var(--txt); }
.nav-item.active { background: var(--gradient-brand-soft); color: var(--brand-purple-deep); border-color: var(--accent-line); }
.nav-item.active svg { color: var(--brand-purple-deep); opacity: 1; }
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--txt-faint); }
.nav-spacer { flex: 1; }
.nav-foot { font-size: 11px; color: var(--txt-faint); padding: 12px 11px 0; border-top: 1px solid var(--line); }
.streak-pill {
  margin: 0 6px 14px; padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--gradient-brand-soft); border: 1px solid var(--accent-line);
}
.streak-pill .n { font-size: 22px; font-weight: 700; color: var(--brand-purple-deep); font-family: var(--mono); }
.streak-pill .l { font-size: 11px; color: var(--txt-dim); }

/* ---------- Main ---------- */
.main { flex: 1; min-width: 0; padding: 30px 38px 70px; max-width: 1180px; }
.page-head { margin-bottom: 26px; }
.page-title { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.page-sub { color: var(--txt-dim); margin-top: 5px; font-size: 13.5px; max-width: 640px; }
.section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--txt-faint); font-weight: 600; margin: 26px 0 12px;
}

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card.pad-lg { padding: 24px; }
.card-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.card-hint { font-size: 12.5px; color: var(--txt-dim); margin-bottom: 16px; }

.stat { position: relative; overflow: hidden; }
.stat::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--gradient-brand); }
.stat .label { font-size: 12px; color: var(--txt-dim); }
.stat .value { font-size: 30px; font-weight: 700; font-family: var(--mono); letter-spacing: -1px; margin-top: 4px; }
.stat .delta { font-size: 12px; margin-top: 4px; }
.delta.up { color: var(--green); } .delta.down { color: var(--red); } .delta.flat { color: var(--txt-faint); }

/* ---------- Buttons / inputs ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 13.5px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--txt);
  transition: filter .12s, background .12s, border-color .12s, box-shadow .12s; font-family: inherit;
}
.btn:hover { background: var(--bg-card-2); }
.btn-primary { background: var(--gradient-brand); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(110,92,245,.28); }
.btn-primary:hover { filter: brightness(1.05); background: var(--gradient-brand); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { filter: brightness(1.05); background: var(--gold); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--bg-card-2); }
.btn-danger { background: transparent; border-color: #f2cbd0; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; box-shadow: none; }
.btn svg { width: 16px; height: 16px; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }

input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; background: var(--bg-card); border: 1px solid var(--line-strong);
  color: var(--txt); border-radius: var(--radius-sm); padding: 11px 13px;
  font-family: inherit; font-size: 14px; outline: none; transition: border .12s, box-shadow .12s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 76px; line-height: 1.55; }
label.fld { display: block; font-size: 12px; color: var(--txt-dim); margin: 0 0 6px; font-weight: 500; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }

/* ---------- Big task ---------- */
.bigtask { background: var(--gradient-brand-soft); border: 1px solid var(--accent-line); }
.bigtask .eyebrow { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand-purple-deep); font-weight: 700; }
.bigtask .q { font-size: 19px; font-weight: 600; margin: 8px 0 16px; letter-spacing: -.3px; }
.bigtask.done { border-color: #b6e8c9; background: linear-gradient(135deg,#EAF9F0,#E3F7EC); }
.task-display { font-size: 17px; font-weight: 600; line-height: 1.45; }
.task-done-flag { display: inline-flex; align-items: center; gap: 7px; color: var(--green-deep); font-size: 13px; font-weight: 600; margin-top: 10px; }

/* ---------- Decision timer ---------- */
.timer-ring { font-family: var(--mono); font-size: 56px; font-weight: 700; letter-spacing: -2px; text-align: center; color: var(--accent); }
.timer-ring.warn { color: var(--amber); } .timer-ring.crit { color: var(--red); }
.coach-verdict { border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px; font-size: 13.5px; line-height: 1.6; border:1px solid var(--line-strong); background: var(--bg-card-2); }
.verdict-fire { border-color: #b6e8c9; background: var(--green-soft); }
.verdict-slow { border-color: #f3dcae; background: var(--amber-soft); }
.verdict-tag { font-weight: 700; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; }
.verdict-fire .verdict-tag { color: var(--green-deep); }
.verdict-slow .verdict-tag { color: var(--gold-deep); }

/* ---------- Lists / rows ---------- */
.list { display: flex; flex-direction: column; }
.litem {
  display: flex; align-items: center; gap: 12px; padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft);
}
.litem:last-child { border-bottom: none; }
.litem .grow { flex: 1; min-width: 0; }
.litem .t { font-size: 13.5px; font-weight: 500; }
.litem .m { font-size: 12px; color: var(--txt-faint); margin-top: 2px; }
.empty { color: var(--txt-faint); font-size: 13px; padding: 26px 4px; text-align: center; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px; border: 1px solid transparent; color: var(--txt-dim); background: var(--bg-card-2); }
.badge.fire { color: var(--green-deep); background: var(--green-soft); }
.badge.slow { color: var(--gold-deep); background: var(--gold-soft); }
.badge.t10k { color: var(--gold-deep); background: var(--gold-soft); }
.badge.t10 { color: var(--txt-dim); background: var(--bg-card-2); }
.badge.code { color: var(--brand-blue-deep); background: var(--info-soft); }
.badge.media { color: var(--brand-purple-deep); background: var(--purple-soft); }

/* ---------- Chart ---------- */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 42px; border-radius: 6px 6px 2px 2px; background: var(--gradient-brand); min-height: 3px; transition: height .3s; position: relative; }
.bar.gold { background: linear-gradient(180deg,#2DA8FF,#6E5CF5); }
.bar-val { font-size: 12px; font-weight: 700; font-family: var(--mono); color: var(--txt); }
.bar-lbl { font-size: 10.5px; color: var(--txt-faint); }

/* ---------- Coach chat ---------- */
.chat { display: flex; flex-direction: column; gap: 14px; max-height: 52vh; overflow-y: auto; padding: 4px 2px 8px; }
.msg { display: flex; gap: 11px; }
.msg .av { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.msg.user .av { background: var(--bg-card-2); color: var(--txt-dim); border:1px solid var(--line-strong); }
.msg.coach .av { background: var(--gradient-brand); color:#fff; }
.msg .bubble { font-size: 13.5px; line-height: 1.62; padding-top: 3px; white-space: pre-wrap; color: var(--txt); }
.typing { color: var(--txt-faint); font-size: 13px; }

/* ---------- Cold start ---------- */
.day-card { display:flex; gap:16px; align-items:flex-start; padding:18px 0; border-bottom:1px solid var(--line-soft); }
.day-card:last-child { border-bottom:none; }
.day-num { width:38px; height:38px; border-radius:10px; flex-shrink:0; display:grid; place-items:center; font-family:var(--mono); font-weight:700; font-size:15px; background:var(--gradient-brand-soft); border:1px solid var(--accent-line); color:var(--brand-purple-deep); }
.day-card.done .day-num { background: var(--green-soft); border-color:#b6e8c9; color:var(--green-deep); }
.day-t { font-size:15px; font-weight:600; }
.day-d { font-size:13px; color:var(--txt-dim); margin-top:3px; max-width:560px; }

/* ---------- Pillars ---------- */
.pillar { padding:16px; border-radius:var(--radius-sm); background:var(--bg-card-2); border:1px solid var(--line-soft); }
.pillar .pt { font-weight:700; font-size:13.5px; }
.pillar .pd { font-size:12.5px; color:var(--txt-dim); margin-top:5px; line-height:1.55; }

/* ---------- Checkbox ---------- */
.chk { width:22px; height:22px; border-radius:6px; border:1.5px solid var(--line-strong); cursor:pointer; flex-shrink:0; display:grid; place-items:center; transition:.12s; color:#fff; }
.chk:hover { border-color: var(--accent); }
.chk.on { background:var(--green); border-color:var(--green); }
.chk svg { width:13px; height:13px; opacity:0; }
.chk.on svg { opacity:1; }

/* ---------- Toast ---------- */
.toast-wrap { position:fixed; bottom:24px; right:24px; display:flex; flex-direction:column; gap:10px; z-index:99; }
.toast { background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius-sm); padding:13px 16px; box-shadow:var(--shadow-lg); font-size:13px; min-width:240px; animation:slidein .2s ease; }
.toast.good { border-left:3px solid var(--green); }
.toast.warn { border-left:3px solid var(--amber); }
@keyframes slidein { from { opacity:0; transform:translateX(12px);} to {opacity:1; transform:none;} }

.muted { color: var(--txt-dim); }
.faint { color: var(--txt-faint); }
.mono { font-family: var(--mono); }
.strike { text-decoration: line-through; opacity:.5; }
.divider { height:1px; background:var(--line-soft); margin:18px 0; }
.kbd { font-family:var(--mono); font-size:11px; background:var(--bg-card-2); border:1px solid var(--line-strong); border-radius:5px; padding:2px 6px; color:var(--txt-dim); }
.hidden { display:none !important; }
::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-thumb { background:#DAD8E6; border-radius:10px; border:2px solid var(--bg); }
