/* =========================================================
   Kafela Calculator — hub grid + shared tool-page styles
   Builds on style.css tokens (light/dark, fonts, buttons)
   ========================================================= */

body:not(.app) main.wrap { padding-bottom: 40px; }
.topbar .home-btn svg { width: 18px; height: 18px; }
.muted { color: var(--label-2); }

/* ---------- Hub hero ---------- */
.hub-hero { position: relative; padding: 26px 0 6px; text-align: center; }
.hub-hero .kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--tint);
  background: var(--tint-soft); border: 1px solid var(--tint-ring); padding: 4px 12px; border-radius: 30px;
}
.hub-hero h1 {
  font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin-top: 14px;
  font-size: clamp(2.4rem, 1.5rem + 4.4vw, 4.2rem);
}
.hub-hero h1 .grad {
  background: linear-gradient(100deg, var(--tint) 10%, #d6455d 50%, var(--green) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-lang="en"] .hub-hero h1 { font-family: var(--font-en); font-weight: 800; letter-spacing: -.035em; font-size: clamp(2.1rem, 1.3rem + 3.8vw, 3.6rem); }
.hub-hero p { color: var(--label-2); max-width: 54ch; margin: 10px auto 0; font-size: 1.04rem; }

.hub-search { position: relative; max-width: 560px; margin: 22px auto 0; }
.hub-search input {
  width: 100%; height: 54px; border-radius: 18px; border: 1px solid var(--sep); background: var(--surface);
  padding: 0 18px 0 50px; font-size: 1.02rem; box-shadow: var(--shadow); outline: none; transition: border-color .2s, box-shadow .2s;
}
.hub-search input:focus { border-color: var(--tint); box-shadow: 0 0 0 4px var(--tint-ring); }
.hub-search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--label-3); }

.hub-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 16px 0 6px; }
.hub-chips button {
  font-size: .88rem; font-weight: 700; padding: 6px 14px; border-radius: 30px; background: var(--surface);
  border: 1px solid var(--sep); color: var(--label-2); transition: all .2s var(--ease);
}
.hub-chips button[aria-pressed="true"] { background: var(--tint); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -6px var(--tint-ring); }
:root[data-theme="dark"] .hub-chips button[aria-pressed="true"] { color: #1b1030; }

.hub-stats { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 10px; color: var(--label-2); font-size: .86rem; }
.hub-stats b { color: var(--label); font-size: 1.05rem; margin-right: 4px; }

/* ---------- Hub grid ---------- */
.hub-sec { margin-top: 26px; }
.hub-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 800; color: var(--label-2); padding: 0 4px 10px; }
.hub-sec h2 .ln { flex: 1; height: 1px; background: var(--sep); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
@media (max-width: 560px) { .tool-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (max-width: 360px) { .tool-grid { grid-template-columns: 1fr; } }

.tcard {
  --c: var(--tint);
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 168px; padding: 18px;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--sep); box-shadow: var(--shadow);
  text-decoration: none; color: inherit; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  animation: pageIn .45s var(--ease) backwards;
}
.tcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: radial-gradient(260px 140px at 100% 0, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%);
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.tcard:active { transform: translateY(-1px) scale(.99); }
.tcard .ic {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 25px; color: #fff;
  background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 65%, #000));
  box-shadow: 0 10px 20px -10px var(--c);
}
.tcard .ic svg { width: 25px; height: 25px; }
.hub-hero .kicker svg { width: 15px; height: 15px; }
.tcard h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
html[data-lang="bn"] .tcard h3 { font-weight: 700; font-size: 1.18rem; }
.tcard p { font-size: .86rem; color: var(--label-2); line-height: 1.45; flex: 1; }
.tcard .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tcard .tag { font-size: .72rem; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 2px 9px; border-radius: 20px; }
.tcard .go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--label-2); transition: all .25s var(--ease); }
.tcard .go svg { width: 16px; height: 16px; }
.tcard:hover .go { background: var(--c); color: #fff; transform: translateX(3px); }
.tool-grid.feat-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tcard.feat { min-height: 190px; }
.tcard.feat h3 { font-size: 1.35rem; }
@media (max-width: 560px) {
  .tcard { min-height: 150px; padding: 14px; border-radius: 18px; }
  .tcard .ic { width: 42px; height: 42px; font-size: 21px; border-radius: 13px; }
  .tcard .ic svg { width: 21px; height: 21px; }
  .tcard p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .tool-grid.feat-grid { grid-template-columns: 1fr 1fr; }
}
.hub-empty { text-align: center; color: var(--label-2); padding: 40px 0; }

/* ---------- Tool pages ---------- */
.tool-hero { display: flex; align-items: center; gap: 16px; padding: 18px 0 6px; }
.tool-hero .ic {
  --c: var(--tint);
  width: 60px; height: 60px; border-radius: 18px; flex: none; display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 65%, #000)); box-shadow: 0 12px 24px -12px var(--c);
}
.tool-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.7rem); line-height: 1.15; }
html[data-lang="en"] .tool-hero h1 { font-family: var(--font-en); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.2rem); }
.tool-hero p { color: var(--label-2); font-size: .98rem; margin-top: 2px; }

.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 12px; }
.tool-layout > * { min-width: 0; }
@media (min-width: 1024px) { .tool-layout.split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .tool-layout.split > .sticky { position: sticky; top: 76px; } }

.kcard { background: var(--surface); border: 1px solid var(--sep); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 18px; }
.kcard + .kcard { margin-top: 16px; }
.kcard h2 { font-size: 1.08rem; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
html[data-lang="bn"] .kcard h2 { font-weight: 700; font-size: 1.16rem; }
.kcard h2 .n { width: 26px; height: 26px; border-radius: 8px; background: var(--tint-soft); color: var(--tint); display: grid; place-items: center; font-size: .85rem; }
.kcard .hint { font-size: .84rem; color: var(--label-2); margin-bottom: 12px; }

.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.fgrid.two { grid-template-columns: 1fr 1fr; }
.fgrid.one { grid-template-columns: 1fr; }
@media (max-width: 420px) { .fgrid.two { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: .84rem; font-weight: 700; color: var(--label-2); }
.field > span small { font-weight: 400; color: var(--label-3); }
.inp, .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 13px; border-radius: 13px; border: 1px solid var(--sep);
  background: var(--surface-2); font-size: 1.02rem; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
  font-variant-numeric: tabular-nums;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23857ea0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.inp:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tint); box-shadow: 0 0 0 3px var(--tint-ring); background: var(--surface); }
.field input[readonly] { background: var(--surface-3); color: var(--label-2); }
.field .with-unit { position: relative; }
.field .with-unit input { padding-right: 64px; }
.field .with-unit i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .82rem; color: var(--label-2); pointer-events: none; }
input[type="date"].inp, .field input[type="date"] { min-height: 48px; }

.btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btns .btn { flex: 1; min-width: 130px; }

/* toggles (checkbox chips) */
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: .95rem; user-select: none; }
.check input { width: 20px; height: 20px; accent-color: var(--tint); }

/* segmented choice (radio buttons) */
.choice { display: inline-grid; grid-auto-flow: column; gap: 4px; background: var(--surface-3); border: 1px solid var(--sep); border-radius: 13px; padding: 4px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; padding: 7px 14px; border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--label-2); transition: all .2s; }
.choice input:checked + span { background: var(--surface); color: var(--tint); box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.choice input:focus-visible + span { outline: 2px solid var(--tint); }

/* repeating rows (ratio, split) */
.rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.rrow { display: grid; grid-template-columns: 28px minmax(0, 1.4fr) minmax(0, 1fr) 40px; gap: 8px; align-items: center; animation: pageIn .3s var(--ease); }
.rrow .ix { width: 28px; height: 28px; border-radius: 9px; background: var(--tint-soft); color: var(--tint); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.rrow .del { width: 40px; height: 40px; border-radius: 12px; color: var(--red); background: var(--surface-2); border: 1px solid var(--sep); font-size: 1.3rem; line-height: 1; }
.rrow .del:active { transform: scale(.94); }
.add-row { margin-top: 10px; width: 100%; border: 1.5px dashed var(--tint-ring); color: var(--tint); background: var(--tint-soft); border-radius: 13px; min-height: 44px; font-weight: 700; }

/* results */
.result { display: none; }
.result.show { display: block; animation: pageIn .4s var(--ease); }
.res-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.res-head h2 { margin: 0; }
.pill { font-size: .78rem; font-weight: 800; padding: 3px 11px; border-radius: 20px; background: var(--green-soft); color: var(--green); }
.pill.red { background: rgba(214, 69, 93, .12); color: var(--red); }
.big-res { text-align: center; padding: 18px 12px; border-radius: 18px; background: linear-gradient(135deg, var(--tint), var(--tint-2)); color: #fff; }
:root[data-theme="dark"] .big-res { color: #1b1030; }
.big-res .k { font-size: .86rem; font-weight: 700; opacity: .85; }
.big-res .v { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.6rem); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.big-res .s { font-size: .9rem; opacity: .9; margin-top: 2px; }
.big-res.green { background: linear-gradient(135deg, #1d8a4e, #13a06a); }
.big-res.gray { background: var(--surface-3); color: var(--label); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.stats .stat .v { font-size: 1.3rem; }

.kv { width: 100%; border-collapse: collapse; margin-top: 12px; font-variant-numeric: tabular-nums; }
.kv th, .kv td { padding: 11px 6px; border-bottom: 1px solid var(--sep); text-align: left; vertical-align: top; }
.kv th { font-weight: 400; color: var(--label-2); width: 46%; }
.kv td { font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv tr.total td, .kv tr.total th { color: var(--tint); font-weight: 800; }

.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--sep); text-align: right; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; white-space: normal; }
.data-table thead th { font-size: .8rem; color: var(--label-2); background: var(--surface-2); font-weight: 700; }
.data-table tr.ex td { color: var(--label-3); background: color-mix(in srgb, var(--red) 4%, transparent); }
.data-table tr.ex td.amt { color: var(--red); font-weight: 700; }
.data-table tfoot td { font-weight: 800; background: var(--surface-2); border-bottom: 0; }
.data-table td small { display: block; color: var(--label-2); font-size: .78rem; white-space: normal; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--sep); border-radius: 16px; margin-top: 10px; }
.tscroll .data-table { min-width: 560px; }
.asset-h { font-size: .98rem; font-weight: 800; margin-top: 18px; display: flex; gap: 8px; align-items: center; }
.asset-h:first-child { margin-top: 0; }

.note { font-size: .86rem; color: var(--label-2); background: var(--surface-2); border: 1px solid var(--sep); border-radius: 14px; padding: 12px 14px; margin-top: 14px; }
.note b { color: var(--label); }
.note.warn { background: color-mix(in srgb, #e0a21f 10%, var(--surface)); border-color: color-mix(in srgb, #e0a21f 35%, transparent); }
.msg { margin-top: 12px; font-size: .9rem; font-weight: 700; color: var(--red); min-height: 0; }
.msg:empty { display: none; }

.tips { margin-top: 16px; }
.tips li { margin: 0 0 6px 20px; color: var(--label-2); font-size: .92rem; }

/* jump nav (business tools) */
.jump { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 6px -2px 0; scrollbar-width: none; position: sticky; top: calc(60px + var(--sat)); z-index: 20; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; font-size: .86rem; font-weight: 700; padding: 7px 13px; border-radius: 30px; background: var(--surface); border: 1px solid var(--sep); color: var(--label-2); text-decoration: none; box-shadow: var(--shadow-sm); }
.jump a.on { background: var(--tint); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .jump a.on { color: #1b1030; }
.btool { scroll-margin-top: 130px; }
.btool:target { box-shadow: 0 0 0 3px var(--tint-ring), var(--shadow); }

.kfoot { text-align: center; padding: 30px 16px calc(24px + var(--sab)); color: var(--label-2); font-size: .86rem; }
.kfoot p { margin-top: 10px; }
.kfoot .btn { margin-bottom: 4px; }
.kfoot a:not(.btn) { color: var(--tint); text-decoration: none; }

@media print {
  .topbar, .kfoot, .btns, .jump, .tool-hero .ic, .no-print, .hub-search, .hub-chips { display: none !important; }
  body { background: #fff !important; }
  .kcard { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .tool-layout.split { display: block; }
  .result { display: block !important; }
}

/* narrow phones: keep the brand readable next to the three top buttons */
.brand .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 430px) {
  .tool-page .brand .seal { display: none; }
  .tool-page .brand .name { font-size: 1.12rem; }
  html[data-lang="en"] .tool-page .brand .name { font-size: .98rem; }
  .tool-page .top-actions { gap: 6px; }
}

/* =========================================================
   App-style tool pages (same language as /warish_muslim/)
   ========================================================= */
.app main.wrap { padding-bottom: 8px; }
.app .kfoot { padding-bottom: calc(var(--dock-h) + 110px + var(--sab)); }

/* hero with icon tile */
.hero-top { display: flex; align-items: center; gap: 14px; }
.hero-top h1 { font-size: clamp(2rem, 1.5rem + 2.6vw, 3.1rem); }
html[data-lang="en"] .hero-top h1 { font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.6rem); }
.hero-ic {
  --c: var(--tint);
  width: 58px; height: 58px; border-radius: 18px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 62%, #000)); box-shadow: 0 12px 26px -12px var(--c);
}
.hero-ic svg { width: 29px; height: 29px; }
@media (max-width: 420px) { .hero-ic { width: 48px; height: 48px; border-radius: 15px; } .hero-ic svg { width: 24px; height: 24px; } }

/* field rows: selects, dates, textareas, choices */
.field-row select, .field-row input[type="date"] {
  min-width: 0; max-width: 220px; width: 100%; text-align: right; background-color: var(--surface-2); border: 1px solid var(--sep); border-radius: 10px;
  outline: 0; font-size: 1rem; font-weight: 700; color: var(--tint); padding: 7px 10px; transition: border-color .2s, box-shadow .2s; min-height: 40px;
}
.field-row select {
  appearance: none; -webkit-appearance: none; text-align: left; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23857ea0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.field-row select:focus, .field-row input[type="date"]:focus { border-color: var(--tint); box-shadow: 0 0 0 3px var(--tint-ring); background-color: var(--surface); }
.field-row input[readonly] { color: var(--label-2); background: var(--surface-3); }
.field-row .title small, .row .title small { display: block; font-weight: 400; font-size: .78rem; color: var(--label-2); }
.field-row.wide-title .title { flex: 1; }
.row.stack { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px 14px 16px; }
.row.stack .title { font-weight: 700; }
.row.stack textarea, .row.stack .out {
  width: 100%; min-height: 96px; resize: vertical; line-height: 1.55; background: var(--surface-2); border: 1px solid var(--sep);
  border-radius: 12px; padding: 10px 12px; outline: 0; font-size: 1rem;
}
.row.stack textarea:focus { border-color: var(--tint); box-shadow: 0 0 0 3px var(--tint-ring); background: var(--surface); }
.row .choice { flex: none; }
.row .choice span { padding: 6px 12px; }
.row-icon.sm { width: 30px; height: 30px; border-radius: 9px; }
.row-icon.sm svg { width: 16px; height: 16px; }

/* repeating rows inside a grouped list (ratio, money split) */
.list .rrow { display: grid; grid-template-columns: 30px minmax(0, 1.3fr) minmax(0, 1fr) 38px; gap: 8px; align-items: center; padding: 8px 10px 8px 12px; min-height: 58px; }
.list .rrow + .rrow::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; height: 1px; background: var(--sep); }
.list .rrow { position: relative; }
.rrow input, .rrow select {
  width: 100%; min-width: 0; background: var(--surface-2); border: 1px solid var(--sep); border-radius: 10px; outline: 0;
  font-size: 1rem; padding: 8px 10px; min-height: 40px; transition: border-color .2s, box-shadow .2s;
}
.rrow input.num { text-align: right; font-weight: 700; color: var(--tint); font-variant-numeric: tabular-nums; }
.rrow input:focus { border-color: var(--tint); box-shadow: 0 0 0 3px var(--tint-ring); background: var(--surface); }
.rrow .del { width: 38px; height: 38px; display: grid; place-items: center; font-size: 0; }
.rrow .del svg { width: 17px; height: 17px; }
.add-row { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.add-row svg { width: 18px; height: 18px; }

/* key-value result list */
.kvl .row { min-height: 50px; }
.kvl .row .v { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; max-width: 60%; }
.kvl .row.tot { background: var(--tint-soft); }
.kvl .row.tot .title, .kvl .row.tot .v { color: var(--tint); font-weight: 800; }
.kvl .row .v small { display: block; font-weight: 400; color: var(--label-2); font-size: .78rem; }

/* side summary extras */
.side-card .big small { font-size: 1rem; font-weight: 700; color: var(--label-2); margin-left: 4px; }
.side-card .side-kv { margin: 14px 0 16px; display: grid; gap: 6px; font-size: .9rem; }
.side-card .side-kv div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--sep); padding-bottom: 6px; }
.side-card .side-kv span { color: var(--label-2); }
.side-card .side-kv b { font-variant-numeric: tabular-nums; text-align: right; }
.side-card .status { margin-top: 10px; }
.calc-bar .info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* result head + status */
.res-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; }
.pill svg { width: 14px; height: 14px; }
.stat .v.sm { font-size: 1.2rem; }
.summary-grid .stat.wide { grid-column: 1 / -1; }
.stat.hl .v { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.4rem); }
.stat.hl .s { font-size: .85rem; opacity: .85; margin-top: 2px; }
.stat.green { background: linear-gradient(135deg, #1d8a4e, #13a06a); color: #fff; border: 0; }
.stat.green .k { color: rgba(255,255,255,.82); }
.stat.muted-hl { background: var(--surface-3); }
.res-note { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--label-2); background: var(--surface); border: 1px solid var(--sep); border-radius: 16px; padding: 12px 14px; margin-top: 12px; box-shadow: var(--shadow-sm); }
.res-note svg { width: 18px; height: 18px; color: var(--tint); flex: none; margin-top: 2px; }
.res-note b { color: var(--label); }
.res-note.warn svg { color: #c98a10; }

/* guide tables */
.prose table.kv th, .prose table.kv td { padding: 9px 4px; }

/* business tools: chip switcher, one tool at a time */
.switcher { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; margin: 8px -2px 0; scrollbar-width: none; position: sticky; top: calc(60px + var(--sat)); z-index: 20; }
.switcher::-webkit-scrollbar { display: none; }
.switcher a {
  flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 700; padding: 8px 14px 8px 10px; border-radius: 30px;
  background: var(--glass); border: 1px solid var(--sep); color: var(--label-2); text-decoration: none; box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); transition: all .2s var(--ease);
}
.switcher a svg { width: 17px; height: 17px; }
.switcher a.on { background: var(--tint); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -6px var(--tint-ring); }
:root[data-theme="dark"] .switcher a.on { color: #1b1030; }
.btool { display: none; }
.btool.on { display: block; animation: pageIn .35s var(--ease); }
.btool-grid { display: block; }
@media (min-width: 1024px) { .btool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; } .btool-grid > .bres { position: sticky; top: 130px; } }
.bres .section-head { padding-top: 22px; }
.bres .empty { padding: 30px 16px; margin-top: 10px; }
