/* Dosh - styles. A sibling of Coverage Wizard, Friday and Linda: navy column, pink-to-purple banner, white tiles. */
:root {
  --navy: #151233; --navy-2: #1f1a4a; --pink: #FF0099; --purple: #2A1FCC; --plum: #B5179E;
  --ink: #1c1b2e; --muted: #5a5872; --line: #e9e7f2; --bg: #f6f5fb; --card: #ffffff;
  --good: #0f7b4a; --good-bg: #e3f5ec; --warn: #8a5a00; --warn-bg: #fff1d6; --bad: #b4233c; --bad-bg: #fde7eb;
  --grad: linear-gradient(110deg, #FF0099 0%, #B5179E 48%, #2A1FCC 100%);
  --shadow: 0 1px 3px rgba(26,18,128,0.08), 0 8px 24px rgba(26,18,128,0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: var(--purple); }
button { font-family: inherit; }
.hidden { display: none !important; }

#app { min-height: 100vh; display: flex; }
#side { width: 236px; flex: none; background: var(--navy); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { padding: 0 10px; }
.navs { display: flex; flex-direction: column; gap: 16px; }
.brand .word { font-size: 20px; font-weight: 800; letter-spacing: 0.32em; color: var(--pink); }
.brand .sub { font-size: 11px; color: #a9a6c9; margin-top: 2px; }
.navgroup { display: flex; flex-direction: column; gap: 2px; }
.navlabel { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; color: #8f8bb8; padding: 0 10px 6px; text-transform: uppercase; }
.navlink { display: block; padding: 8px 10px; border-radius: 8px; color: #c9c6e6; text-decoration: none; font-size: 13.5px; cursor: pointer; border: 0; background: none; text-align: left; width: 100%; }
.navlink:hover { background: rgba(255,255,255,0.06); color: #fff; }
.navlink.active { color: #fff; font-weight: 600; background: rgba(255,255,255,0.10); box-shadow: inset 3px 0 0 var(--pink); }
.navlink.soon { color: #6f6b99; cursor: default; }
.navlink.soon:hover { background: none; color: #6f6b99; }
.navlink small { font-size: 10.5px; color: #8f8bb8; margin-left: 4px; }
.sidefoot { margin-top: auto; border-top: 1px solid rgba(255,255,255,0.12); padding: 14px 10px 0; }
.viewas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chipbtn { font-size: 12px; color: #fff; border: 1px solid rgba(255,255,255,0.25); padding: 4px 10px; border-radius: 999px; background: none; cursor: pointer; }
.chipbtn:hover, .chipbtn.on { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.5); }
.who { font-size: 12.5px; color: #e4e2f5; margin-top: 14px; font-weight: 600; }
.who small { display: block; font-size: 11.5px; color: #a9a6c9; font-weight: 400; }
.linkbtn { background: none; border: 0; color: #a9a6c9; font-size: 11.5px; padding: 0; text-decoration: underline; cursor: pointer; margin-top: 6px; }

main { flex: 1; min-width: 0; padding-bottom: 56px; }
.previewbar { background: #2B1F66; color: #fff; padding: 11px 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 13.5px; }
.previewbar strong { color: #FFD34D; }
.previewbar button { background: #fff; color: var(--purple); font-weight: 700; border: 0; padding: 8px 16px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.banner { background: var(--grad); color: #fff; padding: 26px 32px 92px; }
.banner .row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; }
.banner .kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; }
.banner h1 { margin: 8px 0 4px; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.banner .meta { font-size: 13px; opacity: 0.95; }
.pill { font-size: 12.5px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35); padding: 7px 12px; border-radius: 999px; display: inline-block; }
.seg { display: inline-flex; gap: 4px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35); padding: 4px; border-radius: 12px; }
.seg button { font-size: 13px; font-weight: 650; padding: 7px 14px; border-radius: 9px; border: 0; background: none; color: #fff; cursor: pointer; }
.seg button.on { background: #fff; color: var(--purple); }
.seg.light { background: var(--bg); border-color: var(--line); }
.seg.light button { color: var(--muted); }
.seg.light button.on { background: #fff; color: var(--purple); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }

.tiles { padding: 0 32px; margin-top: -64px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; position: relative; }
.tile { background: var(--card); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.tile .k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.tile .v { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-top: 2px; }
.tile .s { font-size: 12.5px; color: var(--muted); }
.v.pos { color: var(--good); } .v.neg { color: var(--bad); } .v.brand { color: var(--purple); }

.grid { padding: 18px 32px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.card.wide { grid-column: 1 / -1; }
.card h2 { margin: 0; font-size: 16.5px; font-weight: 750; }
.card .lead { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cardhead { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }

.insights { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.insights li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }
.dot.good { background: #18a55f; } .dot.warn { background: #e6a100; } .dot.bad { background: #d9304f; }

.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: right; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th:first-child, table.t td:first-child { text-align: left; }
table.t td { text-align: right; padding: 8px 8px; border-bottom: 1px solid #f0eef7; white-space: nowrap; }
table.t tr.total td { font-weight: 750; border-top: 2px solid var(--line); }
table.t tr.sub td { color: var(--muted); }
table.t td.neg { color: var(--bad); }
table.t td.f { color: #7c7a96; font-style: normal; }
table.t td.f.neg { color: #c85a6e; }
table.t .note { font-size: 11px; color: var(--muted); display: block; font-weight: 400; }

.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tag.actual { background: #e8e6fb; color: var(--purple); }
.tag.forecast { background: #f3f2f8; color: var(--muted); }
.tag.closed { background: var(--good-bg); color: var(--good); }
.tag.provisional { background: var(--warn-bg); color: var(--warn); }
.tag.good { background: var(--good-bg); color: var(--good); } .tag.warn { background: var(--warn-bg); color: var(--warn); } .tag.bad { background: var(--bad-bg); color: var(--bad); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi .l { font-size: 12.5px; font-weight: 650; }
.kpi .v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0; }
.kpi .d, .kpi .b { font-size: 12px; color: var(--muted); }
.kpi .b { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; }

.bar { height: 10px; background: #efedf7; border-radius: 999px; overflow: hidden; position: relative; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--grad); border-radius: 999px; }
.bar > b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }

.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }

.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.form label { font-size: 12px; font-weight: 650; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.form input, .form select { font-family: inherit; font-size: 14px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fbfbfe; color: var(--ink); min-height: 40px; }
input.cell { width: 110px; font-family: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; text-align: right; }
.btn { font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 10px; border: 0; cursor: pointer; min-height: 40px; }
.btn.primary { background: var(--pink); color: #fff; }
.btn.ghost { background: #fff; color: var(--purple); border: 1px solid var(--line); }
.btn.small { min-height: 32px; padding: 6px 12px; font-size: 12.5px; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--purple); }

.big { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.notice { background: #f3f1fe; border: 1px solid #e0dcfb; color: #2b2a52; border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.notice.warn { background: var(--warn-bg); border-color: #f2d9a6; color: #5c3d00; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px; box-shadow: var(--shadow); z-index: 50; }
.loading { padding: 80px 32px; text-align: center; color: var(--muted); }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
#menuBtn { display: none; }

@media (max-width: 900px) {
  #app { flex-direction: column; }
  #side { width: 100%; height: auto; position: relative; padding: 14px 16px; gap: 10px; }
  #side .navs { display: none; }
  #side.open .navs { display: flex; flex-direction: column; gap: 14px; }
  #side .sidefoot { display: none; }
  #side.open .sidefoot { display: block; }
  #menuBtn { display: inline-block; position: absolute; right: 16px; top: 14px; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
  .banner { padding: 20px 16px 84px; }
  .banner h1 { font-size: 26px; }
  .tiles, .grid { padding-left: 16px; padding-right: 16px; }
  .grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px 14px; }
  .tile .v { font-size: 22px; }
  .tile .k { font-size: 10px; }
  .previewbar { padding: 10px 16px; }
}

/* V0.2.0 (18 Oct 2026): folding BU menu, client split, primary KPIs, targets form */
.navtoggle { background: none; border: 0; cursor: pointer; width: 100%; text-align: left; font-family: inherit; }
.navtoggle:hover { color: #fff; }
.navtoggle .chev { transition: transform 0.15s ease; flex: none; }
.navtoggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.navsub { display: flex; flex-direction: column; gap: 2px; }
.navsub[hidden] { display: none; }
.h3 { font-size: 13px; font-weight: 750; margin: 18px 0 6px; color: var(--ink); }
.clientgrid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; }
.donut { width: 210px; height: 210px; display: block; margin: 0 auto; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; background: var(--c); }
table.legendt td:first-child { white-space: normal; }
details.more { margin-top: 12px; }
details.more summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--purple); padding: 6px 0; }
.yoystats { gap: 22px; }
.yoystats .k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.yoystats .v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.kpis.primary { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 12px; }
.kpis.primary .kpi { border: 1px solid #dcd8f5; background: #fbfaff; }
.kpis.primary .kpi .v { font-size: 30px; }
.kpis { margin-top: 10px; }
.indent { display: inline-block; width: 12px; }
.twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.unitwrap { display: inline-flex; align-items: center; gap: 4px; }
.unitwrap .u { font-size: 12px; color: var(--muted); }
.fylabel { display: flex; flex-direction: column; gap: 4px; font-weight: 650; }
.fylabel select { font-family: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fbfbfe; min-height: 40px; }
.seg.light { flex-wrap: wrap; }
@media (max-width: 900px) {
  .clientgrid { grid-template-columns: 1fr; gap: 12px; }
  .seg.light button { padding: 6px 10px; font-size: 12.5px; }
}

/* V0.3.0 (18 Oct 2026): the Xero link */
.xnotice { margin: 0; border-radius: 0; border-width: 0 0 1px; padding: 10px 32px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.xnotice a { font-weight: 700; color: inherit; }
.card select { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; max-width: 100%; }
@media (max-width: 760px) { .xnotice { padding: 10px 16px; } }

/* V0.4.0 (18 Oct 2026): Edit forecast */
.fgridwrap { max-height: none; }
table.fgrid td, table.fgrid th { padding: 4px 4px; }
table.fgrid th:first-child, table.fgrid td.lab, table.fgrid tr.grp td:first-child, table.fgrid tr.sec td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 190px; max-width: 240px; white-space: normal; }
table.fgrid input.cell { width: 88px; padding: 5px 6px; }
table.fgrid input.cell.dirty { background: #fff6e0; border-color: #e6b44a; }
table.fgrid input.cell.bad { background: var(--bad-bg); border-color: var(--bad); }
table.fgrid input.cell.clash { background: #ece9ff; border-color: var(--purple); }
table.fgrid td.act { background: #f6f5fb; }
table.fgrid td.rt { font-weight: 650; }
table.fgrid tr.sec td { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); padding-top: 16px; border-bottom: 1px solid var(--line); }
table.fgrid tr.grp td { font-weight: 700; padding-top: 10px; border-bottom: 0; }
table.fgrid tr.addrow td { border-bottom: 0; padding: 8px 4px 12px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; text-decoration: underline dotted #a9a6c9; text-underline-offset: 3px; }
.linkish:hover { color: var(--purple); }
input.cell.wide { width: 200px; text-align: left; } input.cell.mid { width: 120px; text-align: left; } input.cell.short { width: 64px; }
table.nbt td.acts { white-space: nowrap; }
.savebar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; margin: 16px 32px 0; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 14px 14px 0 0; box-shadow: var(--shadow); font-size: 13px; font-weight: 650; }
.savebar[hidden] { display: none; }
.savebar span { margin-right: auto; }
.btn.danger { color: var(--bad); }
dialog.dlg { border: 0; border-radius: 16px; padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(21,18,51,0.35); color: var(--ink); }
dialog.dlg::backdrop { background: rgba(21,18,51,0.45); }
.dlgform { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.dlgform h2 { margin: 0; font-size: 17px; }
.form.one { grid-template-columns: 1fr; }
.form label[hidden] { display: none; }
@media (max-width: 900px) {
  .savebar { margin: 16px 16px 0; }
  table.fgrid th:first-child, table.fgrid td.lab, table.fgrid tr.grp td:first-child, table.fgrid tr.sec td:first-child { min-width: 130px; max-width: 150px; }
}
/* V0.5.0: the Overview's period picker */
.rangebar { justify-content: space-between; margin: 4px 0 14px; }
.rangepick label { font-size: 12px; font-weight: 650; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg button:disabled { opacity: 0.4; cursor: default; }
/* V0.5.0: the Forecast table folded to its totals */
.fgrid.folded tr[data-row], .fgrid.folded tr.grp, .fgrid.folded tr.addrow { display: none; }
/* V0.6.0 Cashflow page */
table.t td.under { background: var(--bad-bg); }
table.cashlist tr.wkhead td { background: var(--bg); font-weight: 750; padding-top: 10px; border-bottom: 1px solid var(--line); }
table.cashlist td { vertical-align: top; }
table.cashlist td:first-child { width: 96px; }
table.cashgrid td:first-child, table.cashgrid th:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }
table.cashgrid tr.total td:first-child { background: var(--card); }

/* V0.6.1 (19 Oct 2026): New Biz outlook label, Cashflow available to spend and tax cards, Loans and tax, rate confirms */
.scnwrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 360px; }
.scnnote { font-size: 12px; color: rgba(255,255,255,0.88); text-align: right; line-height: 1.35; }
.tile.hero { background: var(--navy); color: #fff; }
.tile.hero .k { color: #c9c6e6; } .tile.hero .s { color: #c9c6e6; } .tile.hero .v.neg { color: #ff8fa6; }
.v.good, td.good, .good { color: var(--good); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; }
.kv > div { display: flex; flex-direction: column; font-size: 13px; }
.kv > div span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kv > div b { font-size: 14.5px; font-weight: 700; }
.taxcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-top: 4px; }
.taxcard { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: #fff; min-width: 0; }
.taxcard.must { border-left: 4px solid var(--bad); }
.tchead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tcdate { font-size: 12px; font-weight: 700; color: var(--muted); }
.tclabel { font-size: 13.5px; font-weight: 650; }
.tctotal { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.tcparts { list-style: none; margin: 2px 0 0; padding: 0; font-size: 12.5px; color: var(--muted); }
.tcparts li { display: flex; justify-content: space-between; gap: 8px; }
.tcmust { font-size: 11.5px; font-weight: 700; color: var(--bad); }
.tclodge { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tclodge input.cell { width: 120px; min-width: 0; flex: 1 1 100px; }
table.accts input.cell { width: 110px; } table.accts input[type="date"].cell { width: 140px; text-align: left; }
.loangrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.loancard { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #fff; min-width: 0; }
.loancard.flag { border-color: #f2b6c2; box-shadow: inset 4px 0 0 var(--bad); }
.lchead { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lchead h3 { margin: 0; font-size: 16px; }
.lckind { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lcbal { text-align: right; } .lcbal .big { font-size: 22px; }
.lcrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lcterms { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.lcmon { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mchip { font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 999px; background: #f3f2f8; color: var(--muted); }
.mchip.good { background: var(--good-bg); color: var(--good); } .mchip.warn { background: var(--warn-bg); color: var(--warn); } .mchip.bad { background: var(--bad-bg); color: var(--bad); }
.lcacts { display: flex; gap: 8px; flex-wrap: wrap; }
.mustline { color: var(--bad); font-weight: 650; margin: 4px 0 0; }
.ledit summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--purple); }
.planctl { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 4px 0 12px; }
.planctl label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--muted); min-width: 240px; }
.planctl input[type="range"] { width: 100%; accent-color: var(--pink); }
.planctl label.chk { flex-direction: row; align-items: center; gap: 8px; min-width: 0; }
.tiles.inner { padding: 0; margin-top: 0; }
.tiles.inner .tile { box-shadow: none; border: 1px solid var(--line); }
.ratebar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.ratebar div { height: 100%; background: var(--pink); }
.flash { animation: doshflash 1.4s ease-out; border-radius: 12px; }
@keyframes doshflash { 0% { background: #fff1d6; box-shadow: 0 0 0 6px #fff1d6; } 100% { background: transparent; box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 720px) {
  .scnwrap { align-items: flex-start; } .scnnote { text-align: left; }
  .loangrid { grid-template-columns: 1fr; }
  .taxcards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .taxcard { padding: 10px; } .tctotal { font-size: 18px; }
  .planctl label { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } }
