/* SHINI v4.4.0 — compact, mobile-first correction layer. */
body.shini-fluent .v41-tx-filterbar,
body.shini-fluent .v41-filter-group,
body.shini-fluent .v41-checklist,
body.shini-fluent .v41-loan-card,
body.shini-fluent .v41-loan-kpis>div,
body.shini-fluent .v41-audit-kpis>div,
body.shini-fluent .v41-audit,
body.shini-fluent .v42-import-card{
  background:var(--fl-surface);color:var(--fl-text);border-color:var(--fl-border-strong);box-shadow:none
}
body.shini-fluent .v41-filter-summary,
body.shini-fluent .v41-loan-card summary small,
body.shini-fluent .v41-audit span{color:var(--fl-text2)}
body.shini-fluent .v41-audit.fail{border-color:var(--fl-danger)}
body.shini-fluent .v41-audit.warn{border-color:var(--fl-warning)}
body.shini-fluent .v41-loan-card[data-archived="1"]{background:var(--fl-surface2);opacity:.72}
.v440-filter-menu{position:relative}.v440-filter-menu>summary,.v42-import-card>summary,.shini-danger-zone>summary,.statement-audit>summary,.v440-manual-loan>summary,.v430-ai-card>summary{cursor:pointer;font-weight:600;list-style:none}
.v440-filter-menu>summary::-webkit-details-marker,.v42-import-card>summary::-webkit-details-marker,.shini-danger-zone>summary::-webkit-details-marker,.statement-audit>summary::-webkit-details-marker,.v440-manual-loan>summary::-webkit-details-marker,.v430-ai-card>summary::-webkit-details-marker{display:none}
.v440-filter-menu>summary{min-height:32px;display:grid;place-items:center;padding:5px 12px;border:1px solid var(--fl-border-strong);border-radius:4px;background:var(--fl-surface)}
.v440-filter-menu[open]{width:100%}.v440-filter-menu[open]>.v41-filter-groups{margin-top:8px}.v440-filter-menu>#v41FilterReset{margin-top:8px}
.v42-import-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v42-import-card{padding:0!important;border-radius:8px!important}.v42-import-card>summary{padding:12px}.v42-import-card[open]>summary{border-bottom:1px solid var(--fl-border)}.v42-import-card>.button-row,.v42-import-card>.v42-stage{margin:10px 12px 12px}
.shini-danger-zone,.statement-audit,.v440-manual-loan{padding:0!important}.shini-danger-zone>summary,.statement-audit>summary,.v440-manual-loan>summary{padding:14px 16px}.shini-danger-zone>.button-row,.shini-danger-zone>p,.statement-audit>p,.statement-audit>label,.statement-audit>.audit-mapping,.statement-audit>.table-wrap,.statement-audit>.button-row,.v440-manual-loan>.v41-loan-form{margin:0 16px 14px}
.shini-health-ok{padding:14px;color:var(--fl-success);background:color-mix(in srgb,var(--fl-success) 7%,var(--fl-surface));border:1px solid color-mix(in srgb,var(--fl-success) 25%,var(--fl-border));border-radius:8px}

/* Remove superseded duplicate surfaces; keep a single source of truth per page. */
body[data-shini-route="dashboard"] #pageRoot>.grid,
body[data-shini-route="dashboard"] #pageRoot>.grid.two{display:none!important}
body[data-shini-route="budget"] .budget-intro{display:none!important}
body[data-shini-route="debt"] #pageRoot>article.panel{display:none!important}
body[data-shini-route="diagnostics"] #pageRoot>.grid.kpi,
body[data-shini-route="diagnostics"] #pageRoot>div[style]{display:none!important}
[data-v430="dashboard"]{display:flex;flex-direction:column}.v430-overview-hero{order:3;display:block}.v430-hero-copy{display:none!important}.v430-overview-hero .v430-ai-card{margin-bottom:14px}.v430-semantic-grid{order:1}.v430-visual-grid{order:2}
.v430-ai-card{display:block;padding:0!important}.v430-ai-card>summary{padding:13px 15px}.v430-ai-card[open]>.v430-ai-form,.v430-ai-card[open]>.v430-ai-answer,.v430-ai-card[open]>#v430CloudAi{margin:0 14px 12px}.v430-ai-card:not([open])>*:not(summary){display:none}
.page-root>.panel,.page-root>div>.panel,.page-root>section>.panel{content-visibility:auto;contain-intrinsic-size:auto 180px}

@media(max-width:820px){
  :root[data-shini-design="fluent"]{--suite-h:0px;--command-h:52px}
  body.shini-fluent{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
  body.shini-fluent .main{padding:0 max(10px,env(safe-area-inset-right)) calc(68px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
  .v430-suitebar,.v430-workspace-strip{display:none!important}
  body.shini-fluent .topbar{top:0;min-height:52px;height:52px;padding:5px 0;gap:8px}
  body.shini-fluent .topbar h1{font-size:18px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.shini-fluent .eyebrow{font-size:9px;line-height:12px}
  body.shini-fluent .top-actions>*{display:none!important}
  body[data-shini-route="dashboard"] #quickTxBtn,body[data-shini-route="transactions"] #quickTxBtn{display:grid!important;width:38px;min-width:38px;max-width:38px;height:38px;min-height:38px;padding:0;font-size:0;place-items:center}
  body[data-shini-route="dashboard"] #quickTxBtn::after,body[data-shini-route="transactions"] #quickTxBtn::after{content:"+";font-size:21px;line-height:1}
  body.shini-fluent .analysis-bar{top:52px;grid-template-columns:minmax(130px,1fr) auto!important;gap:5px 8px;padding:6px 0}
  body.shini-fluent .analysis-bar>label:first-child{grid-column:1!important;font-size:0;min-width:0}
  body.shini-fluent .analysis-bar>label:first-child select{font-size:13px;min-height:36px;padding-block:4px}
  body.shini-fluent .analysis-bar .period-meta{grid-column:2!important;align-self:center;display:block!important;font-size:10px;white-space:nowrap}
  body.shini-fluent .analysis-bar .period-meta #periodLabel{display:none}
  body.shini-fluent .analysis-bar .freshness{display:none!important}
  body[data-shini-route="data"] .analysis-bar,body[data-shini-route="diagnostics"] .analysis-bar,body[data-shini-route="bulk"] .analysis-bar,body[data-shini-route="settings"] .analysis-bar{display:none!important}
  body.shini-fluent .page-root{padding-top:10px}
  body.shini-fluent .grid.kpi,body.shini-fluent .v430-semantic-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
  body.shini-fluent .grid.two,body.shini-fluent .grid.three{grid-template-columns:1fr!important;gap:10px}
  body.shini-fluent .card,body.shini-fluent .panel{padding:11px;border-radius:9px}
  body.shini-fluent .kpi-card .value,.v430-kpi-value{font-size:20px;line-height:25px;margin-top:3px;overflow-wrap:anywhere}
  body.shini-fluent .kpi-card .sub,.v430-kpi-foot{font-size:10px;line-height:14px}
  .v430-kpi{padding:10px}.v430-kpi-head{font-size:10px}.v430-kpi-head .v430-state{display:none}
  .v430-visual-grid{gap:10px}.v430-chart-card{padding:11px}.v430-spark{height:120px}
  .v430-overview-hero{margin:0}.v430-ai-card>summary{padding:11px 13px}
  .v41-tx-filterbar{padding:10px!important;margin-bottom:10px!important}.v41-filter-top{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}.v41-search{min-width:0!important}.v41-search{font-size:0}.v41-search input{font-size:14px}.v440-filter-menu[open]{grid-column:1/-1}.v41-filter-groups{grid-template-columns:1fr 1fr!important;gap:7px!important}.v41-filter-group{min-width:0!important}.v41-filter-group summary{padding:8px;font-size:12px}.v41-filter-summary{margin-top:8px!important;font-size:11px!important;white-space:nowrap;overflow:auto}.v41-filter-summary b{font-weight:600}
  body[data-shini-route="transactions"] .table-wrap table{width:100%!important;min-width:0!important;table-layout:fixed}
  body[data-shini-route="transactions"] table th:nth-child(2),body[data-shini-route="transactions"] table td:nth-child(2),body[data-shini-route="transactions"] table th:nth-child(4),body[data-shini-route="transactions"] table td:nth-child(4),body[data-shini-route="transactions"] table th:nth-child(5),body[data-shini-route="transactions"] table td:nth-child(5){display:none}
  body[data-shini-route="transactions"] table th:nth-child(1){width:82px}body[data-shini-route="transactions"] table th:nth-child(6){width:92px}body[data-shini-route="transactions"] table th:nth-child(7){width:48px}
  body[data-shini-route="transactions"] table th,body[data-shini-route="transactions"] table td{padding:8px 6px;overflow:hidden;text-overflow:ellipsis}
  body[data-shini-route="transactions"] table td:nth-child(3){white-space:normal}
  .v41-loan-card summary{padding:10px 11px!important;flex-direction:row!important;align-items:center!important}.v41-loan-card summary>span:last-child{font-size:12px;white-space:nowrap}.v41-loan-card summary small{font-size:11px}.v41-debt-ext{margin-top:0!important;gap:10px!important}.v41-debt-ext>.panel>.panel-head{margin-bottom:8px}.v41-debt-ext>.panel>.panel-head p{display:none}.v41-debt-ext>.panel>.panel-head .button-row{margin-top:6px;width:100%}.v41-debt-ext>.panel>.panel-head .button-row>*{flex:1}
  .v41-audit-kpis>div{padding:8px!important}.v41-audit-kpis b{font-size:18px}.v41-diagnostics{margin-top:0!important}.v41-audit-list{gap:6px!important}
  .v42-import-grid{grid-template-columns:1fr;gap:8px}.v42-import-card>summary{padding:10px 11px}
  .v432-kpis{margin-bottom:10px}.v432-panel{margin-top:10px}.v432-panel .panel-head{margin-bottom:8px}.v432-panel .panel-head .button-row{margin-top:0;width:auto}.v432-panel .panel-head .button-row button{flex:0 1 auto}.v432-health-grid{grid-template-columns:1fr!important;gap:7px}.v432-health-grid>div{padding:9px}.v432-health-grid strong{font-size:18px}
  .shini-data-actions{grid-template-columns:1fr!important}.shini-data-actions .metric-row strong{font-size:11px;overflow-wrap:anywhere;text-align:right}
  .statement-audit,.shini-danger-zone{margin-top:10px!important}.statement-audit>summary,.shini-danger-zone>summary,.v440-manual-loan>summary{padding:11px 13px}
  body.shini-fluent .mobile-dock{height:calc(58px + env(safe-area-inset-bottom));min-height:calc(58px + env(safe-area-inset-bottom));overflow:hidden;grid-auto-columns:minmax(0,1fr)}
  body.shini-fluent .mobile-dock button{min-width:0;min-height:52px;padding:4px 2px;gap:2px;font-size:10px;line-height:12px}
  body.shini-fluent .mobile-dock button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  body.shini-fluent .mobile-dock svg{width:18px;height:18px}
}
@media(max-width:380px){body.shini-fluent .analysis-bar{grid-template-columns:1fr!important}body.shini-fluent .analysis-bar .period-meta{display:none!important}.v430-kpi-value,body.shini-fluent .kpi-card .value{font-size:18px}.v41-loan-card summary{flex-direction:column!important;align-items:flex-start!important}}
@media(prefers-reduced-motion:reduce){body.shini-fluent *{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important}}
