/* ===== Tokens: docs/01-design-system.md ===== */
:root{
  --brand-black:#130600; --brand-dark:#1B0B03; --brand-dark-2:#24150D; --brand-ember:#521E04;
  --brand-orange:#FF5300; --brand-orange-ui:#F05409; --brand-orange-2:#FA5D12;
  --brand-peach-mid:#F69567; --brand-peach:#FBC4AC; --white:#FFFFFF;

  --bg-canvas:#F1E5DF; --bg-panel:#FFFAF7; --bg-panel-glow:#FFF3F3; --bg-card:#FFFBFA;
  --bg-sidebar:#FFFFFF; --bg-chip:#F5EFEE; --bg-input:#EFEFEF;
  --border:rgba(27,11,3,.07);

  --text-primary:#1B0B03; --text-muted:#77706C; --text-secondary:#6B6666; --text-link:#B8460A; --text-negative:#C81E1E;   /* readable small text, owner 2026-11-11 */
  --positive:#F05409; --negative:#FF3C3C; --ai:#E40296; --success:#1F9D55; --danger:#D42A2A;

  --row-sel:rgba(255,83,0,.06);
  --pill-active-bg:#1B0B03; --pill-active-fg:#FFFFFF;
  /* UI v2 (2026-10-30): button gradients — ink (dark button in light mode) and metal (bright button in dark mode) */
  --ink-top:#2B1B12; --metal-top:#FFFFFF; --metal-bottom:#DCD8D5;
  --font:'Inter','Hind Siliguri',system-ui,sans-serif;
}
[data-theme="dark"]{
  /* UI v2 (2026-10-30, owner reference set): deeper near-black surfaces, soft white-alpha borders */
  --bg-canvas:#0A0908; --bg-panel:#0F0D0C; --bg-panel-glow:#1C1009; --bg-card:#161413;
  --bg-sidebar:#131110; --bg-chip:#1F1C1A; --bg-input:#1B1817;
  --border:rgba(255,255,255,.07); --text-primary:#FFFFFF;
  --text-muted:#A49A95; --text-secondary:#8E8A8A; --text-link:#F05409; --text-negative:#FF3C3C;
  --row-sel:rgba(255,83,0,.10);
  --pill-active-bg:#FFFFFF; --pill-active-fg:#1B0B03;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:var(--font);font-size:14px;line-height:20px;color:var(--text-primary);background:var(--bg-canvas);-webkit-font-smoothing:antialiased}
html[lang="bn"] body{line-height:24px}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
button:disabled{cursor:not-allowed}
a{color:inherit;text-decoration:none}
.num{font-variant-numeric:tabular-nums}
svg.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}
svg.i.s16{width:16px;height:16px}
svg.i.s14{width:14px;height:14px}

/* ===== Type scale ===== */
.display{font-size:32px;line-height:40px;font-weight:500;letter-spacing:-.01em}
.h1{font-size:24px;line-height:32px;font-weight:500}
.h2{font-size:18px;line-height:26px;font-weight:600}
.h3{font-size:16px;line-height:24px;font-weight:500}
.caption{font-size:13px;line-height:18px;color:var(--text-secondary)}
.label{font-size:12px;line-height:16px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}
.small{font-size:12px;line-height:16px;font-weight:500}
.muted{color:var(--text-muted)}

