@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg-top: #cfe0fb;
  --bg-bottom: #eef3fa;
  --glass: rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-border: rgba(255, 255, 255, .9);
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #17181a;
  --muted: #6b7079;
  --border: #dde3ea;
  --ink: #2b2c2e;          /* dark pill / dark panel */
  --ink-2: #3a3b3e;        /* rows on dark panel */
  --ink-3: #4a4b4f;
  --on-ink: #f3f4f5;
  --on-ink-muted: #a3a6ab;
  --lime: #dcf53f;
  --lime-ink: #1b1d0a;
  --slate: #8ea2b4;        /* selected row / detail panel */
  --slate-2: #a3b4c3;
  --good: #1f7a4d; --good-bg: #e2f3e9;
  --warn: #8a5a00; --warn-bg: #fbf0d5;
  --bad: #b42318;  --bad-bg: #fde6e3;
  --info: #2b4d78; --info-bg: #e3ecf8;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(30, 40, 60, .04), 0 8px 24px rgba(30, 40, 60, .06);
  --font: "Manrope", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --stripe: repeating-linear-gradient(-45deg, var(--lime) 0 6px, #c4dc2c 6px 9px);
  --hatch: repeating-linear-gradient(-45deg, rgba(255,255,255,.07) 0 4px, transparent 4px 8px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg-bottom) 520px, var(--bg-bottom) 100%) fixed;
  color: var(--text);
  font: 14.5px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
p a, dd a, td a, .feed a, .hint a, .link { color: #3c5f8a; font-weight: 600; }
p a:hover, dd a:hover, td a:hover, .feed a:hover { text-decoration: underline; }
h1 { font-size: 3rem; line-height: 1.05; font-weight: 500; letter-spacing: -.035em; margin: 0; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: .95rem; font-weight: 600; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.pre { white-space: pre-wrap; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------- Top bar ---------------- */
.topbar { display: flex; align-items: center; gap: 14px; padding: 22px 32px 0; max-width: 1360px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; margin-right: auto; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; display: grid; place-items: center; }
.logo-mark svg { width: 28px; height: 28px; }
.pillnav { display: flex; align-items: center; gap: 2px; background: var(--ink); border-radius: var(--pill); padding: 5px; box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; }
.pillnav::-webkit-scrollbar { display: none; }
.pillnav a { color: var(--on-ink); padding: 8px 16px; border-radius: var(--pill); font-size: .84rem; font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.pillnav a:hover { background: var(--ink-3); }
.pillnav a.active { background: var(--lime); color: var(--lime-ink); font-weight: 700; }
.pillnav a.active::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime-ink); }
.pillnav .home { width: 36px; height: 36px; padding: 0; justify-content: center; background: #c9ccd2; color: var(--ink); margin-right: 4px; }
.pillnav .home.active::before { display: none; }
.icons { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); cursor: pointer; transition: background .15s; padding: 0; font: inherit; }
.icon-btn:hover { background: var(--surface); }
.icon-btn.dark { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; border-radius: var(--pill); background: var(--glass); border: 1px solid var(--glass-border); }
.me .who { line-height: 1.15; text-align: right; }
.me .who strong { display: block; font-size: .85rem; }
.me .who span { font-size: .72rem; color: var(--muted); }

/* ---------------- Page ---------------- */
.page { max-width: 1360px; margin: 0 auto; padding: 26px 32px 64px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.title-row { display: flex; align-items: center; gap: 18px; min-width: 0; }
.title-row h1 { overflow-wrap: anywhere; }
.eyebrow { font-size: .8rem; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.sub { color: var(--muted); margin-top: 6px; }
.back { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #c5ccd6; color: var(--text); flex: none; }
.back:hover { background: var(--glass-strong); }

/* ---------------- Cards ---------------- */
.card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r-xl); padding: 24px 26px; margin-bottom: 18px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.card.tight { padding: 0; overflow: hidden; }
.card.tight > h2, .card.tight > .card-head { padding: 22px 26px 6px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.card.solid { background: var(--glass-strong); }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.card .grid { margin-bottom: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; margin-bottom: 22px; }

/* Big number */
.big { font-size: 2.05rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.big .sym { font-size: .55em; color: var(--muted); margin-right: 4px; vertical-align: .35em; font-weight: 500; }
.big .unit { font-size: .55em; color: var(--muted); margin-left: 4px; font-weight: 500; }
.stat-label { font-size: .85rem; color: #3e4148; margin-bottom: 10px; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* Month bars */
.months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.month .m { font-size: .82rem; color: #3e4148; margin-bottom: 8px; }
.bar { height: 9px; border-radius: var(--pill); background: #d9dde3; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: var(--pill); background: var(--stripe); }
.bar > i.w0 { width: 0; } .bar > i.w1 { width: 8%; } .bar > i.w2 { width: 20%; } .bar > i.w3 { width: 32%; } .bar > i.w4 { width: 44%; }
.bar > i.w5 { width: 56%; } .bar > i.w6 { width: 68%; } .bar > i.w7 { width: 80%; } .bar > i.w8 { width: 90%; } .bar > i.w9 { width: 100%; }
.month .amt { font-size: .78rem; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.stack { display: flex; margin-top: 12px; padding-left: 6px; min-height: 34px; }
.stack .av { margin-left: -8px; border: 2px solid #eef2f7; }

/* Avatars */
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: .76rem; flex: none; letter-spacing: .02em; }
.av.lg { width: 44px; height: 44px; font-size: .9rem; }
.av-0 { background: #f6d2c4; color: #7a3a22; } .av-1 { background: #cfe0f6; color: #24497a; } .av-2 { background: #e2f0b5; color: #4b5d12; }
.av-3 { background: #f3d9ec; color: #7a2a63; } .av-4 { background: #d8d2f6; color: #3d2f86; } .av-5 { background: #fde7b0; color: #7a5410; }

/* Tiles (right hero card) */
.tiles { display: flex; gap: 8px; margin-top: 26px; align-items: flex-end; }
.tile { flex: 1; min-width: 0; background: #e3e7ec; border-radius: 18px 18px 0 0; padding: 14px 14px 16px; height: 96px; display: flex; flex-direction: column; justify-content: space-between; font-size: .8rem; color: #3e4148; }
.tile strong { font-size: .95rem; color: var(--text); font-variant-numeric: tabular-nums; }
.tile.hi { background: var(--lime); height: 116px; color: var(--lime-ink); }
.tile-cta { align-self: center; margin-left: 6px; }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #cdd3dc; background: var(--glass-strong); color: var(--text); padding: 10px 18px; border-radius: var(--pill); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, filter .15s; }
.btn:hover { background: var(--surface); }
.btn.primary, .btn.lime { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.btn.primary:hover, .btn.lime:hover { filter: brightness(.96); }
.btn.dark, .btn.good { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.dark:hover, .btn.good:hover { background: #111; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 13px; font-size: .8rem; }
.btn.link { border: 0; background: none; color: #3c5f8a; padding: 0; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------- Badges ---------------- */
.badge { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: var(--pill); font-size: .74rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
h1 .badge { vertical-align: middle; position: relative; top: -.15em; margin-left: 8px; font-size: .8rem; letter-spacing: 0; }
.tone-good { background: var(--good-bg); color: var(--good); }
.tone-warn { background: var(--warn-bg); color: var(--warn); }
.tone-bad { background: var(--bad-bg); color: var(--bad); }
.tone-info { background: var(--info-bg); color: var(--info); }
.tone-muted { background: var(--surface-2); color: var(--muted); }
.tone-lime { background: var(--lime); color: var(--lime-ink); }

/* ---------------- Alerts ---------------- */
.alert { padding: 13px 18px; border-radius: var(--r-md); margin-bottom: 16px; font-weight: 500; border: 1px solid transparent; }
.alert.success { background: var(--good-bg); color: var(--good); }
.alert.error { background: var(--bad-bg); color: var(--bad); }
.alert.info { background: var(--info-bg); color: var(--info); }
.alert ul { margin: 6px 0 0 18px; padding: 0; }

/* ---------------- Tables ---------------- */
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.t th, .t td { padding: 13px 18px; text-align: left; vertical-align: middle; }
.t th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.t td { border-bottom: 1px solid rgba(0, 0, 0, .05); }
.t th:first-child, .t td:first-child { padding-left: 26px; }
.t th:last-child, .t td:last-child { padding-right: 26px; }
.t tr:last-child td { border-bottom: 0; }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t tbody tr:hover { background: rgba(255, 255, 255, .55); }
.table-wrap { overflow-x: auto; }
.empty { padding: 36px; text-align: center; color: var(--muted); }
.who-cell { display: flex; align-items: center; gap: 12px; }

dl.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 18px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .86rem; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }

/* ---------------- Forms ---------------- */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .84rem; margin-bottom: 6px; color: #33363b; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 11px 16px; border: 1px solid #d3d9e1; border-radius: 14px; background: rgba(255, 255, 255, .85); color: var(--text); font: inherit;
}
input[type=file] { width: 100%; padding: 10px; border: 1.5px dashed #c3cbd6; border-radius: 14px; background: rgba(255, 255, 255, .5); font: inherit; font-size: .85rem; }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(220, 245, 63, .65); outline-offset: 0; border-color: #a9c21a; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { font-weight: 500; display: flex; gap: 6px; align-items: center; margin: 0; }
fieldset { border: 1px solid #d3d9e1; border-radius: var(--r-lg); padding: 18px 20px 6px; margin: 0 0 18px; background: rgba(255, 255, 255, .35); }
legend { font-weight: 700; padding: 0 8px; }
.inline-form { display: inline; }

/* Filter bar (pill inputs with round buttons) */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filters .lbl { font-weight: 600; display: flex; align-items: center; gap: 8px; margin-right: 6px; }
.filters .lbl .count { background: var(--ink); color: var(--on-ink); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: .72rem; }
.fpill { flex: 1; min-width: 180px; display: flex; align-items: center; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--pill); padding: 4px 4px 4px 18px; }
.fpill input, .fpill select { border: 0; background: transparent; padding: 8px 4px; border-radius: 0; font-size: .84rem; min-width: 0; }
.fpill input:focus, .fpill select:focus { outline: none; }
.fpill select { appearance: none; cursor: pointer; }
.fpill .icon-btn { width: 36px; height: 36px; background: #e4e8ee; border: 0; }
.fpill:focus-within { border-color: #a9c21a; }
.fcheck { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .84rem; margin: 0; padding: 0 8px; }

/* ---------------- Dark master–detail panel ---------------- */
.board { background: var(--ink); border-radius: var(--r-xl); padding: 22px; color: var(--on-ink); position: relative; box-shadow: 0 18px 40px rgba(20, 24, 30, .18); }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.board-head h2 { margin: 0 0 0 4px; color: var(--on-ink); font-weight: 500; font-size: 1.05rem; }
.tabs { display: flex; gap: 4px; background: #f4f6f8; padding: 5px; border-radius: var(--pill); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--pill); font-size: .8rem; font-weight: 600; color: var(--text); white-space: nowrap; border: 1px solid #dfe3e8; background: #fff; }
.tabs a:hover { background: #eef1f4; }
.tabs a .n { background: #fff; border: 1px solid #dfe3e8; border-radius: 50%; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: .7rem; padding: 0 4px; }
.tabs a.active { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.tabs a.active .n { border-color: transparent; }
.board-body { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 18px; align-items: start; }
.rows { display: flex; flex-direction: column; gap: 8px; max-height: 640px; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 22px; background: var(--ink-2); color: var(--on-ink); transition: background .15s; }
.row:hover { background: var(--ink-3); }
.row.sel { background: var(--slate); color: #fff; }
.row .code { font-weight: 600; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { font-size: .76rem; color: var(--on-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.sel .meta { color: #eef3f7; }
.row .amt { font-size: 1rem; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .amt .sym { font-size: .7em; color: var(--on-ink-muted); margin-right: 2px; }
.row.sel .amt { font-weight: 700; }
.row.sel .amt .sym { color: #fff; }
.chip { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: var(--pill); font-size: .68rem; font-weight: 600; border: 1px solid rgba(255, 255, 255, .16); color: var(--on-ink-muted); background: var(--hatch); }
.row.sel .chip { background: #fff; color: var(--ink); border-color: #fff; }
.board .empty { color: var(--on-ink-muted); }

.detail { background: var(--slate); border-radius: 28px; padding: 22px; color: #fff; }
.detail-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.detail .lbl { font-size: .8rem; color: #e8eef3; margin-bottom: 6px; }
.detail .code-big { font-size: 1.9rem; font-weight: 500; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail .code-big .hash { font-size: .65em; opacity: .85; }
.detail .chip { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); margin: 0; }
.detail .company { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.detail .person { display: flex; align-items: center; gap: 10px; }
.detail .person strong { display: block; font-size: .9rem; }
.detail .person span { font-size: .75rem; color: #e8eef3; }
.dtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.dtile { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .2); border-radius: 20px; padding: 16px; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; position: relative; color: #fff; }
.dtile .v { font-size: 1.15rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.dtile .v .sym { font-size: .75em; opacity: .8; margin-right: 2px; }
.dtile .k { font-size: .76rem; color: #eef3f7; }
.dtile .arrow { position: absolute; top: 14px; right: 14px; opacity: .85; }
a.dtile:hover { background: rgba(255, 255, 255, .24); }
.dtile.add { background: var(--hatch), rgba(255, 255, 255, .08); background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.12) 0 6px, transparent 6px 12px); align-items: center; justify-content: center; }
.dtile.add .plus { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: grid; place-items: center; }
.dfoot { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .2); border-radius: 22px; padding: 14px 14px 14px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: center; }
.dfoot .k { font-size: .74rem; color: #eef3f7; }
.dfoot .v { font-size: 1.15rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.dfoot .v .sym { font-size: .75em; opacity: .8; margin-right: 2px; }
.detail .desc { font-size: .84rem; color: #f3f6f9; margin: -4px 0 14px; }

/* ---------------- Activity page ---------------- */
.steps { display: flex; gap: 6px; margin: 0 0 22px; overflow-x: auto; }
.step { flex: 1; min-width: 96px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.step .bar { height: 8px; margin-bottom: 8px; }
.step.done .bar > i, .step.current .bar > i { width: 100%; }
.step.current { color: var(--text); }
.step.current .bar > i { background: var(--stripe); }
.step.done .bar > i { background: var(--ink); }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.feed li:last-child { border-bottom: 0; }
.action-card { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.action-card h2 { color: #fff; }
.action-card .muted, .action-card .hint { color: var(--on-ink-muted); }
.action-card label { color: #e6e8eb; }
.action-card label .opt { color: var(--on-ink-muted); }
.action-card input, .action-card select, .action-card textarea { background: var(--ink-2); border-color: var(--ink-3); color: #fff; }
.action-card input[type=file] { background: var(--ink-2); border-color: #5a5c61; color: #ddd; }
.action-card .btn:not(.primary):not(.lime):not(.good) { background: var(--ink-2); border-color: var(--ink-3); color: var(--on-ink); }
.action-card .btn.good { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.action-card .btn.danger { color: #ff9c90; }
.action-card strong { color: #fff; }

.task { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; color: var(--text); font-weight: 500; font-size: .9rem; }
.task:hover { background: rgba(255, 255, 255, .7); }
.task .count { background: var(--lime); color: var(--lime-ink); border-radius: var(--pill); padding: 2px 11px; font-weight: 700; font-size: .8rem; }
.task strong { font-variant-numeric: tabular-nums; }

/* ---------------- Auth pages ---------------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .card { width: 100%; max-width: 420px; padding: 34px; background: var(--glass-strong); }
.auth h1 { font-size: 2.2rem; margin-bottom: 6px; }
.auth .logo { margin: 0 0 26px; }
.auth .btn.primary { width: 100%; padding: 13px; margin-top: 4px; }
.qr { background: #fff; padding: 12px; border-radius: 18px; display: inline-block; }
.secret { font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .7); padding: 10px 14px; border-radius: 12px; letter-spacing: .12em; word-break: break-all; font-weight: 600; }
.temp-pw { font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; background: #fff; padding: 8px 14px; border-radius: 12px; border: 1px dashed var(--good); display: inline-block; margin-top: 8px; }

details summary { cursor: pointer; font-weight: 600; }
details[open] > summary { margin-bottom: 14px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .hero, .split, .board-body { grid-template-columns: 1fr; }
  .rows { max-height: none; }
  .who-text { display: none; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; padding: 16px 16px 0; }
  .pillnav { order: 3; width: 100%; }
  .page { padding: 20px 16px 48px; }
  h1 { font-size: 2.2rem; }
  .stats, .months, .g2, .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .detail-top { grid-template-columns: 1fr; }
  .dtiles { grid-template-columns: 1fr 1fr; }
  .dfoot { grid-template-columns: 1fr 1fr; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 10px; }
  .fpill { min-width: 100%; }
  .card { padding: 20px; border-radius: var(--r-lg); }
}

/* ---------------- Vendor link + vendor page ---------------- */
.copy-field { font-variant-numeric: tabular-nums; font-size: .8rem; cursor: copy; background: #fff !important; margin-bottom: 4px; }
.copy-field.copied { border-color: #a9c21a; outline: 3px solid rgba(220, 245, 63, .65); }
.vendor-page { max-width: 1100px; }
.vendor-msg { max-width: 640px; margin: 40px auto; padding: 36px; }
.vendor-msg h1 { font-size: 2.2rem; margin-bottom: 10px; }
dl.kv-stack { grid-template-columns: 1fr; gap: 2px; }
dl.kv-stack dd { margin-bottom: 12px; }

/* ---------------- Notifications ---------------- */
.bell { position: relative; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #eef3fa; }
.notif-list li { padding: 0; }
.notif-list li > a, .notif-list details { display: block; padding: 14px 26px; }
.notif-list li > a:hover { background: rgba(255,255,255,.6); }
.notif-list li.unread { background: rgba(220, 245, 63, .14); }
.notif-title { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.notif-title .dot { width: 8px; height: 8px; border-radius: 50%; background: #9db51c; flex: none; }
.notif-table tr.unread td { background: rgba(220, 245, 63, .14); }
.notif-table .notif-title { color: inherit; text-decoration: none; }
.notif-table .notif-title:hover { text-decoration: underline; }
.notif-table .notif-date { width: 170px; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.notif-table tr.unread .notif-date { color: var(--text); font-weight: 600; }
.notif-table .notif-open { width: 1%; text-align: right; }
.sort-link { color: inherit; text-decoration: none; }
.sort-link:hover { text-decoration: underline; }
.email-body { background: #fff; border-radius: 14px; padding: 14px 16px; font-size: .85rem; margin-top: 6px; }

/* ---------------- Bell drop-down ---------------- */
.bell-wrap { position: relative; }
.bell-count[hidden] { display: none; }
.bell.ring svg { animation: ring .9s ease-in-out; transform-origin: 50% 10%; }
@keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .bell.ring svg { animation: none; } }
.bell-panel { position: absolute; right: 0; top: 52px; width: 380px; max-width: calc(100vw - 32px); background: #fff; border-radius: 22px; box-shadow: 0 18px 50px rgba(20, 24, 30, .18); border: 1px solid var(--border); z-index: 50; overflow: hidden; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.bell-list { max-height: 420px; overflow-y: auto; }
.bell-item { display: block; padding: 12px 18px; border-bottom: 1px solid #f0f2f5; color: var(--text); }
.bell-item:hover { background: #f6f8fa; }
.bell-item.unread { background: rgba(220, 245, 63, .16); }
.bell-item.unread .bi-title::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9db51c; margin-right: 7px; vertical-align: 2px; }
.bi-title { font-weight: 600; font-size: .86rem; }
.bi-body { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.bi-when { font-size: .72rem; color: var(--muted); margin-top: 4px; }
.bell-empty { padding: 24px; text-align: center; color: var(--muted); font-size: .86rem; }
.bell-foot { padding: 10px 18px; border-top: 1px solid var(--border); background: #fafbfc; min-height: 20px; }

.brand-logo { height: 30px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.logo-divider { width: 1px; height: 22px; background: #b9c2cf; }
.auth .brand-logo { height: 36px; }

.strong-link { font-weight: 600; color: var(--text) !important; }
.strong-link:hover { text-decoration: underline; }
.recent-t td { padding-top: 12px; padding-bottom: 12px; }
.card-head p { margin: 2px 0 0; }
h3.mt { margin-top: 18px; }
.t.compact th, .t.compact td { padding: 8px 10px; }
.due { color: var(--bad); }
.settled { color: var(--good); }
.day-row td { background: rgba(255,255,255,.6); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 26px !important; }
.date-pill { flex: 0 1 200px; min-width: 170px; gap: 6px; padding-right: 14px; }
.tabs.wrap { flex-wrap: wrap; }
.tabs.wrap { border-radius: 22px; order: 3; width: 100%; }
.tabs a .n:empty { display: none; }
.dash-stack > .grid { margin-top: 0; }
.dash-stack > .grid > .card { margin-bottom: 0; }
.recent-t .who-cell span { white-space: nowrap; }
.recent-t { min-width: 940px; }
.recent-t td:first-child { min-width: 240px; }
.recent-t td:nth-child(4) { min-width: 170px; }
.recent-t .mono { white-space: nowrap; }

/* ---------------- Top bar alignment (v2) ---------------- */
.topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.topbar .logo { margin-right: 0; gap: 12px; min-width: 0; }
.topbar .logo > span:last-child { font-size: .95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-logo { height: 20px; max-width: 120px; }
.logo-divider { height: 24px; background: #aab4c2; }
.pillnav { justify-self: center; height: 48px; padding: 5px; gap: 2px; }
.pillnav a { height: 38px; padding: 0 16px; }
.pillnav .home { width: 38px; height: 38px; margin-right: 2px; }
.icons { margin-left: 0; gap: 8px; height: 48px; }
.icons .icon-btn, .icons form .icon-btn { width: 42px; height: 42px; }
.icons form { display: flex; }
.me { height: 48px; padding: 4px 5px 4px 14px; }
.me .who strong { white-space: nowrap; font-size: .84rem; }
.me .who span { white-space: nowrap; }
.auth .brand-logo { height: 26px; }
@media (max-width: 1320px) { .me .who-text { display: none; } .me { padding: 4px; } }
@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .pillnav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; }
}
@media (max-width: 760px) { .topbar .logo > span:last-child { display: none; } }
.topbar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.topbar .logo { overflow: hidden; }
.topbar .icons { justify-self: end; }
@media (max-width: 1100px) { .topbar { grid-template-columns: minmax(0, 1fr) auto; } }
/* Final top bar: flex — logo shrinks (name shortens with …), menu and icons never squeeze. */
.topbar { display: flex; align-items: center; gap: 16px; }
.topbar .logo { flex: 1 1 0; min-width: 0; }
.topbar .pillnav, .topbar .icons { flex: none; }
@media (max-width: 1100px) {
  .topbar { flex-wrap: wrap; }
  .topbar .pillnav { order: 3; flex: 1 1 100%; overflow-x: auto; }
}

/* Microsoft sign-in */
.ms-btn { width: 100%; padding: 13px; background: #fff; border-color: #c7ced8; font-weight: 600; gap: 10px; }
.ms-btn:hover { background: #f6f8fa; }
.hint.center { text-align: center; }
.or { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; color: var(--muted); font-size: .8rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #d3d9e1; }

/* Who has to act next */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: var(--muted); }
.dot.g-requester { background: #3c5f8a; } .dot.g-approver { background: #c28a12; } .dot.g-vendor { background: #8a5cc2; }
.dot.g-accounts { background: #2f9e6b; } .dot.g-closed { background: #aaa; }
.waiting { margin-top: 4px; color: var(--text); }
.sub-h { margin: 18px 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pipe-group { margin-top: 10px; }
.pipe-head { display: flex; justify-content: space-between; padding: 4px 14px; font-weight: 700; font-size: .85rem; }
.task.slim { padding: 6px 14px 6px 28px; }
.journey { list-style: none; margin: 0; padding: 0; }
.journey li { position: relative; padding: 0 0 18px 30px; border-left: 2px solid rgba(0, 0, 0, .1); margin-left: 8px; }
.journey li:last-child { border-left-color: transparent; padding-bottom: 0; }
.journey li::before { content: ''; position: absolute; left: -8px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid rgba(0, 0, 0, .25); }
.journey li.done { border-left-color: var(--ink); }
.journey li.done::before { background: var(--ink); border-color: var(--ink); }
.journey li.current::before { background: var(--lime); border-color: var(--ink); }
.journey li.todo { color: var(--muted); }
.journey .j-title { font-weight: 700; }
.step-link { color: inherit; text-decoration: none; display: block; }
.viewonly { background: rgba(255, 255, 255, .6); border-radius: 14px; padding: 10px 14px; font-size: .85rem; margin-bottom: 16px; }

.invoice-preview { width: 100%; height: 560px; border: 1px solid var(--line, #d8deea); border-radius: 12px; background: #fff; }
.invoice-preview.img { height: auto; max-height: 640px; object-fit: contain; }

/* ---------------- Access grid ---------------- */
.access-t td { vertical-align: middle; }
.access-t td:nth-child(2) { max-width: 360px; }
.access-t tr.customised { background: rgba(220, 245, 63, .12); }
.access-select { min-width: 230px; }
.lvl { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.lvl-0 { background: var(--surface-2); color: var(--muted); }
.lvl-1 { background: var(--info-bg); color: var(--info); }
.lvl-2 { background: var(--good-bg); color: var(--good); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 26px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.access-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.view-only-banner { display: flex; align-items: center; gap: 10px; }
.mt-s { margin-top: 8px; }
.view-badge { font-size: .62rem !important; padding: 1px 7px; margin: 1px 0; color: var(--info) !important; }

/* Inputs not covered above (mobile number, links) use the same look */
input[type=tel], input[type=url] {
  width: 100%; padding: 11px 16px; border: 1px solid #d3d9e1; border-radius: 14px; background: rgba(255, 255, 255, .85); color: var(--text); font: inherit;
}
input[type=tel]:focus, input[type=url]:focus { outline: 3px solid rgba(220, 245, 63, .65); outline-offset: 0; border-color: #a9c21a; }
input::placeholder, textarea::placeholder { color: #9aa1ab; }

/* ---------------- Journey timeline ---------------- */
.jx { list-style: none; margin: 8px 0 0; padding: 0; }
.jx-item { display: grid; grid-template-columns: 96px 28px minmax(0, 1fr); gap: 0 14px; position: relative; }
.jx-item:not(:last-child) .jx-node::after { content: ""; position: absolute; left: 50%; top: 30px; bottom: -4px; width: 2px; margin-left: -1px; background: #d9dee5; }
.jx-item.done:not(:last-child) .jx-node::after { background: var(--ink); }
.jx-when { text-align: right; padding-top: 3px; line-height: 1.25; }
.jx-when strong { display: block; font-size: .8rem; }
.jx-when span { font-size: .72rem; color: var(--muted); }
.jx-node { position: relative; display: flex; justify-content: center; }
.jx-node::before { content: ""; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c8cfd8; background: #fff; box-sizing: border-box; margin-top: 2px; }
.jx-node svg { position: absolute; top: 8px; width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.jx-item.done .jx-node::before { background: var(--ink); border-color: var(--ink); }
.jx-item.current .jx-node::before { background: var(--lime); border-color: #a9c21a; box-shadow: 0 0 0 5px rgba(220, 245, 63, .35); }
.jx-body { padding: 0 0 22px; min-width: 0; }
.jx-item.current .jx-body { background: rgba(220, 245, 63, .16); border: 1px solid rgba(169, 194, 26, .35); border-radius: 16px; padding: 10px 14px; margin-bottom: 18px; }
.jx-title { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jx-item.todo .jx-title { color: #8a919c; font-weight: 600; }
.jx-took { font-size: .7rem; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 999px; }
.jx-meta { font-size: .82rem; color: #4a4f57; margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jx-item.todo .jx-meta { color: #a3a9b2; }
.av.xs { width: 22px; height: 22px; font-size: .6rem; }
.jx-sub { display: flex; gap: 10px; margin-top: 8px; padding: 8px 12px; background: rgba(255, 255, 255, .7); border: 1px solid var(--border); border-radius: 12px; font-size: .8rem; }
.jx-ico { width: 22px; height: 22px; border-radius: 50%; background: var(--warn-bg); color: var(--warn); display: grid; place-items: center; font-weight: 800; flex: none; font-size: .78rem; }
.jx-quote { margin-top: 3px; color: #4a4f57; font-style: italic; }
.jx-quote::before { content: "“"; } .jx-quote::after { content: "”"; }
.jx-total { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .jx-item { grid-template-columns: 64px 24px minmax(0, 1fr); gap: 0 8px; } }

/* Show the GSTIN field only when "GST registered" is ticked (no script needed). */
.toggle-row { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 4px 0 12px; cursor: pointer; }
.toggle-row + .toggle-body { display: none; }
.toggle-row:has(.toggle-wrap:checked) + .toggle-body { display: grid; }

/* Toggle switches (GST registered / MSME). */
.toggle-row .on-text { display: none; }
.toggle-row:has(input:checked) .on-text { display: inline; }
.toggle-row:has(input:checked) .off-text { display: none; }
.toggle-row .switch { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: #c5ccd6; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.toggle-row .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle-row .switch:checked { background: #1f2a37; }
.toggle-row .switch:checked::after { transform: translateX(18px); }
.toggle-row .switch:focus-visible { outline: 2px solid #3c5f8a; outline-offset: 2px; }

/* Onboarding form helpers */
[hidden] { display: none !important; }
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row input { flex: 1; min-width: 0; }
.ok-text { color: #1a7f4b; }
.bad-text { color: #b42318; }

/* Field-level errors on the onboarding form */
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b42318; background: #fff6f5; }
.field.has-error > label { color: #b42318; }
.field-error { color: #b42318; font-size: .82rem; font-weight: 600; margin-top: 5px; }
#form-errors { margin-bottom: 16px; }
#form-errors ul { margin: 6px 0 0 18px; padding: 0; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 16px; }

/* Long file names (often one unbroken "word") wrap inside the card instead of running past its edge. */
.feed li, .doc-list a, .doc-list .small { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
/* Space between stacked admin actions (inline styles are blocked by the CSP, so this must be a class). */
.admin-action { margin-top: 14px; }
.admin-action .btn + p, .admin-action p { margin-top: 8px; }

/* Social profile link: platform icon + @handle, opens the profile in a new tab. */
.soc-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; }
.soc { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 12px 4px 4px; border-radius: var(--pill); background: rgba(255, 255, 255, .7); border: 1px solid #e3e7ee; color: var(--text); font-weight: 600; font-size: .86rem; text-decoration: none; overflow-wrap: anywhere; transition: background .15s, border-color .15s; }
a.soc:hover { background: #fff; border-color: #cfd6df; text-decoration: none; }
a.soc:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.soc-badge { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: #fff; background: #5b616e; }
.soc-i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soc-out { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.soc-instagram .soc-badge { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.soc-youtube .soc-badge { background: #ff0000; }
.soc-x .soc-badge { background: #111; }
.soc-facebook .soc-badge { background: #1877f2; }
.soc-linkedin .soc-badge { background: #0a66c2; }
.soc-snapchat .soc-badge { background: #fffc00; color: #111; }
.soc-moj .soc-badge { background: #f5a623; }
.soc-sharechat .soc-badge { background: #2d9cdb; }
.soc.nolink { color: var(--muted); }
.soc.compact { padding: 2px 9px 2px 2px; gap: 6px; font-size: .78rem; margin-top: 3px; background: transparent; border-color: transparent; }
.soc.compact .soc-badge { width: 20px; height: 20px; }
.soc.compact .soc-i { width: 12px; height: 12px; }
a.soc.compact:hover { background: rgba(255, 255, 255, .8); border-color: #e3e7ee; }

/* Login page background video (only when frontend/public/brand/login-video.* exists). */
.auth-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg-bottom) center / cover no-repeat; }
.auth-video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Darkens the video so the sign-in card stays easy to read. */
.auth-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(238, 243, 250, .25)); }
body.has-video .auth { position: relative; z-index: 1; }
body.has-video .auth .card { background: rgba(255, 255, 255, .82); box-shadow: 0 1px 2px rgba(30, 40, 60, .05), 0 24px 60px rgba(30, 40, 60, .14); backdrop-filter: blur(18px); }
/* People who ask for less motion get the still frame instead of the moving video. */
@media (prefers-reduced-motion: reduce) { .auth-video { display: none; } }
/* Small phones: the sign-in card never gets wider than the screen; the logo line may wrap. */
.auth { grid-template-columns: minmax(0, 420px); justify-content: center; }
.auth .logo { white-space: normal; flex-wrap: wrap; row-gap: 6px; min-width: 0; }

/* Master view summary line above a table */
.master-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -6px 0 12px; color: var(--muted); }
.master-note strong { color: var(--text); }

/* Profile photos (falls back to coloured initials) */
.av-photo { padding: 0; overflow: hidden; background: #e7ebf1; }
.av-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.xl { width: 96px; height: 96px; font-size: 1.6rem; }
a.me { color: inherit; text-decoration: none; transition: background .15s, border-color .15s; }
a.me:hover { background: var(--glass-strong); border-color: #fff; text-decoration: none; }
a.me:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* My profile page */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.profile-grid .card { margin-bottom: 0; }
.profile-photo { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.profile-photo h2 { margin: 0 0 2px; }
.photo-form .field { margin-bottom: 12px; }

/* Budgets */
.budget-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.budget-sum .card { margin: 0; padding: 18px 22px; }
.budget-sum .big { font-size: 1.45rem; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.neg { color: var(--bad); }
.bar-col { width: 170px; }
.meter { height: 8px; border-radius: 99px; background: #e4e9f0; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--slate); border-radius: 99px; }
.meter span.high { background: #e0a63a; }
.meter span.full { background: var(--bad); }
.hbar { position: relative; height: 14px; }
.hbar .b, .hbar .u { position: absolute; left: 0; height: 6px; border-radius: 99px; width: 0; }
.hbar .b { top: 0; background: #d3dbe6; }
.hbar .u { top: 8px; background: var(--ink); }
.hbar .u.over { background: var(--bad); }
.sel-row td { background: rgba(220, 245, 63, .18); }
.sub-row td { padding-top: 0 !important; border-top: 0 !important; }
.inline-month { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline-month input { max-width: 150px; }
.head-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
tr.muted td { color: var(--muted); }
/* Budget by month */
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 14px 0 6px; }
.month-box { margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .55); border: 1px solid #e3e7ee; }
.month-box.special { border-color: #c4dc2c; background: #f9fbe9; }
.month-box label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 700; }
.month-box .small { margin-top: 6px; }

/* Onboarding form: one column on phones (the global two-column rule squeezes the second column to unreadable). */
@media (max-width: 760px) {
  #inf-form .g2 { grid-template-columns: 1fr; }
}

/* Tax and bank identifiers are shown in capital letters while typing. */
#inf-form #ifsc, #inf-form #pan, #inf-form #gstin, #inf-form #cin, #inf-form #msme_number { text-transform: uppercase; }

.warn-text { color: #8a5a00; }
