/* BirrBell web: matches the app design (green #128451, ink #101211, Inter Tight). */
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url("fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url("fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
:root {
  --header: #128451; --on-header: #FFFFFF; --on-header-muted: rgba(255,255,255,.8);
  --sheet: #FFFFFF; --ink: #101211; --muted: #7C837E; --row: #F3F6F2; --border: #E4E9E4;
  --accent: #101211; --on-accent: #FFFFFF; --lime: #D9F0E1;
  --up-bg: #D9F0E1; --up-fg: #064C32; --down-bg: #FDF0EF; --down-fg: #C2342B;
  --warn-bg: #FFF4DE; --warn-fg: #7A4A00; --bar-idle: rgba(255,255,255,.2); --bar-sel: #FFFFFF;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", "Noto Sans Ethiopic", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--header); color: var(--ink); font-family: var(--font); }
body { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.panel { color: var(--on-header); padding: 20px 0 8px; }
.topbar { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; flex: 1; }
.brand svg { width: 28px; height: 28px; }
.muted { color: var(--muted); }
header .muted { color: var(--on-header-muted); }
.sheet { background: var(--sheet); border-radius: 28px 28px 0 0; flex: 1; padding: 10px 0 40px; margin-top: 8px; }
.grabber { width: 36px; height: 4px; border-radius: 4px; background: var(--border); margin: 0 auto 4px; }
h1 { font-size: 28px; margin: 18px 0 4px; }
h2 { font-size: 20px; margin: 24px 0 12px; }
.amount { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.amount small { font-size: 20px; font-weight: 600; }
.row { background: var(--row); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { color: var(--muted); font-size: 13px; }
.row .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot.ok { background: #3FA35B; } .dot.off { background: var(--down-fg); } .dot.idle { background: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.chip.up { background: var(--up-bg); color: var(--up-fg); } .chip.down { background: var(--down-bg); color: var(--down-fg); }
.chip.warn { background: var(--warn-bg); color: var(--warn-fg); }
button, .btn { font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 14px 18px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); }
button.secondary { background: var(--row); color: var(--ink); }
button.danger { background: var(--down-bg); color: var(--down-fg); }
button.small { padding: 8px 14px; border-radius: 999px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; }
input, select { font: inherit; width: 100%; padding: 14px 16px; border-radius: 16px; border: 2px solid transparent;
  background: var(--row); color: var(--ink); }
input:focus, select:focus { outline: none; border-color: var(--accent); }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.stack > * + * { margin-top: 10px; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 170px; margin-top: 18px; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; cursor: pointer;
  background: none; padding: 0; color: var(--on-header-muted); border-radius: 0; }
.bar .fill { width: 100%; border-radius: 12px; background: var(--bar-idle); min-height: 10px; }
.bar.sel .fill { background: var(--bar-sel); }
.bar .lbl { font-size: 12px; margin-top: 8px; font-weight: 500; }
.bar.sel .lbl { color: var(--on-header); font-weight: 700; }
.bar .val { font-size: 12px; font-weight: 700; color: var(--on-header); margin-bottom: 6px; visibility: hidden; font-variant-numeric: tabular-nums; }
.bar.sel .val { visibility: visible; }
.code { font-size: 44px; font-weight: 700; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.banner { border-radius: 14px; padding: 12px 16px; margin: 12px 0; }
.banner.error { background: var(--down-bg); color: var(--down-fg); } .banner.ok { background: var(--up-bg); color: var(--up-fg); }
.hidden { display: none !important; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
td.wrap-text { word-break: break-word; max-width: 360px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--row); border-radius: 18px; padding: 14px 16px; }
.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.secret { font-family: ui-monospace, monospace; word-break: break-all; background: var(--row); padding: 12px; border-radius: 12px; }
select.auto { width: auto; }
.day-label { margin: 24px 0 6px; }
.day-meta { margin: 8px 0 0; }
.row.codebox { display: block; text-align: center; }

td.bad { color: var(--down-fg); font-weight: 600; }
