:root {
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #d9e1ea;
  --text: #152033;
  --muted: #697589;
  --brand: #1f7668;
  --brand-2: #0f9f7a;
  --danger: #c2413b;
  --warning: #b7791f;
  --good: #16845e;
  --nav: #111827;
  --nav-2: #1f2937;
  --shadow: 0 18px 45px rgba(15, 23, 42, .08);
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

/* V6.90.0: keep the daily import write decision single-step and make the
   desktop ledger action rail readable at common laptop widths. */
.import-policy-hint,
.v663-preflight-auto {
  margin: 0;
  color: #6a8178;
  font-size: 12px;
  line-height: 1.55;
}

@media (min-width: 901px) {
  body.v6763-desktop-action-rail #records .table-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
  }
  body.v6763-desktop-action-rail #records #txTable {
    min-width: 1640px !important;
    table-layout: fixed !important;
  }
  body.v6763-desktop-action-rail #records #txTable th:nth-child(10),
  body.v6763-desktop-action-rail #records #txTable td:nth-child(10) {
    width: 330px !important;
    min-width: 330px !important;
    max-width: 330px !important;
  }
  body.v6763-desktop-action-rail #records #txTable th:nth-child(11),
  body.v6763-desktop-action-rail #records #txTable td:nth-child(11) {
    width: 196px !important;
    min-width: 196px !important;
    max-width: 196px !important;
    position: sticky !important;
    right: 0 !important;
    z-index: 8 !important;
    padding: 10px !important;
    vertical-align: top !important;
    background: #fff !important;
    border-left: 1px solid #dce9e4 !important;
    box-shadow: -12px 0 20px rgba(22, 48, 40, .10) !important;
  }
  body.v6763-desktop-action-rail #records #txTable th:nth-child(11) {
    background: #f5f8fb !important;
  }
  body.v6763-desktop-action-rail #records #txTable td:nth-child(11) .ledger-row-actions-v6763,
  body.v6763-desktop-action-rail #records #txTable td:nth-child(11) .row-actions,
  body.v6763-desktop-action-rail #records #txTable td:nth-child(11) .tx-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }
  body.v6763-desktop-action-rail #records #txTable td:nth-child(11) button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 7px 9px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

.v639-saved-queries{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0 2px}
.v639-saved-queries>span{font-size:13px;font-weight:900;color:#47615b}
.v639-saved-queries button{min-height:32px;padding:5px 11px;border:1px solid #cfe3db;border-radius:999px;background:#f8fcfa;color:#1d6657;font-weight:800}
.v639-saved-queries .secondary{margin-left:auto;border-radius:10px;background:#f4f7fb;color:#345274}
@media(max-width:900px){.v639-saved-queries{overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.v639-saved-queries .secondary{margin-left:0;flex:0 0 auto}}

/* V6.40.0 mobile ledger: compact cards and thumb-friendly filter sheet. */
@media(max-width:900px){
  body.v640-mobile-ledger #records .panel-title{position:sticky;top:0;z-index:7;margin:-12px -12px 10px;padding:12px;background:rgba(248,250,252,.96);backdrop-filter:blur(10px)}
  body.v640-mobile-ledger #records .panel-title>div:first-child span{display:none}
  body.v640-mobile-ledger #records .filters{display:grid!important;grid-template-columns:1fr auto auto!important;gap:7px!important;width:100%}
  body.v640-mobile-ledger #records .filters select{display:none}
  body.v640-mobile-ledger #records .filters input{min-width:0!important;width:100%!important}
  body.v640-mobile-ledger #records .filters #exportCsvBtn{display:none!important}
  body.v640-mobile-ledger #records .filters button{min-height:40px!important;padding:7px 12px!important}
  body.v640-mobile-ledger .tx-card-v6400{padding:0!important;overflow:hidden!important;border:1px solid #dce9e4!important;box-shadow:0 5px 16px rgba(15,42,36,.05)!important}
  body.v640-mobile-ledger .tx-card-main-v6400{display:grid;width:100%;gap:10px;padding:13px;border:0;background:#fff;color:inherit;text-align:left}
  body.v640-mobile-ledger .tx-card-main-v6400 .tx-card-head{display:flex!important;justify-content:space-between;gap:8px!important}
  body.v640-mobile-ledger .tx-card-main-v6400 .tx-card-head b{display:block;font-size:17px!important}
  body.v640-mobile-ledger .tx-card-main-v6400 .tx-card-head small{display:block;margin-top:3px;color:#687a76;font-size:12px}
  body.v640-mobile-ledger .tx-card-main-v6400 .tx-card-money{margin:0!important}
  body.v640-mobile-ledger .tx-card-note-v6400{overflow:hidden;color:#48625c;font-size:13px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
  body.v640-mobile-ledger .tx-card-foot-v6400{display:flex;align-items:center;gap:6px;padding:8px 12px;border-top:1px solid #edf2ef;background:#fafdfb;color:#71837e;font-size:11px}
  body.v640-mobile-ledger .tx-card-foot-v6400 span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.v640-mobile-ledger .tx-card-foot-v6400 button{min-height:30px;padding:4px 10px;border:1px solid #d6e5df;border-radius:8px;background:#f2faf6;color:#176856;font-weight:800}
  body.v640-mobile-ledger .v640-filter-sheet{position:fixed;inset:0;z-index:80}
  body.v640-mobile-ledger .v640-filter-sheet.hidden{display:none}
  body.v640-mobile-ledger .v640-filter-backdrop{position:absolute;inset:0;width:100%;border:0;background:rgba(15,23,42,.42)}
  body.v640-mobile-ledger .v640-filter-sheet section{position:absolute;right:0;bottom:0;left:0;display:grid;gap:13px;padding:18px 16px calc(18px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -12px 38px rgba(15,23,42,.2)}
  body.v640-mobile-ledger .v640-filter-sheet section>div{display:flex;justify-content:space-between;align-items:center;font-size:18px}
  body.v640-mobile-ledger .v640-filter-sheet label{display:grid;gap:6px;color:#516560;font-size:13px;font-weight:800}
  body.v640-mobile-ledger .v640-filter-sheet input,body.v640-mobile-ledger .v640-filter-sheet select{min-height:46px;padding:9px 11px;border:1px solid #d9e5e1;border-radius:12px;font:inherit}
  body.v640-mobile-ledger .v640-filter-sheet #v640ApplyFilters{min-height:48px;border:0;border-radius:13px;background:#237660;color:#fff;font-weight:900}
}

/* V6.47.0: explicit exchange, quote and cash inventory workflow. */
.exchange-grid,.cash-inventory-grid{align-items:start}
.exchange-calculation{
  display:grid;
  gap:6px;
  padding:13px 14px;
  border:1px solid #c8ded7;
  border-radius:13px;
  background:linear-gradient(135deg,#f4fbf8,#f8fcff);
  color:#315c52;
}
.exchange-calculation b{color:#143e35;font-size:14px}
.exchange-calculation span,.exchange-calculation em{color:#5a746d;font-size:12px;font-style:normal;line-height:1.45}
.exchange-calculation strong{color:#166c58;font-size:15px}
.exchange-deal-list{display:grid;gap:10px;max-height:680px;overflow:auto;padding-right:2px}
.exchange-deal-card{display:grid;gap:9px;padding:13px;border:1px solid #d9e7e3;border-radius:14px;background:#fff;box-shadow:0 4px 12px rgba(18,55,47,.03)}
.exchange-deal-card.settled{border-color:#bce3d4;background:#f5fcf9}
.exchange-deal-card header{display:flex;justify-content:space-between;gap:12px;align-items:start}
.exchange-deal-card header>div{display:grid;gap:3px;min-width:0}
.exchange-deal-card header b{color:#173f36;font-size:15px}
.exchange-deal-card header span,.exchange-deal-card p,.exchange-deal-card small{color:#647d76;font-size:12px;line-height:1.45}
.exchange-deal-card header em{flex:0 0 auto;color:#174c73;font-size:16px;font-style:normal;font-weight:900;white-space:nowrap}
.exchange-deal-card p{margin:0}
.exchange-deal-card small.error{color:#ad463e}
.exchange-deal-card footer{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.exchange-deal-card footer span{color:#2d715f;font-size:12px;font-weight:800}
.exchange-deal-values{display:flex;flex-wrap:wrap;gap:6px}
.exchange-deal-values span{padding:4px 7px;border-radius:999px;background:#eef7f3;color:#286a58;font-size:12px;font-weight:800}
.exchange-deal-trace{display:flex;flex-wrap:wrap;gap:7px;align-items:center;color:#54736b;font-size:12px}.exchange-deal-trace span{padding:4px 7px;border-radius:8px;background:#f3f8f6}.exchange-deal-card .link-button{border:0;background:transparent;color:#1d735e;font-size:12px;font-weight:800;padding:4px 0;text-decoration:underline;cursor:pointer}.exchange-final{padding:5px 7px;border-radius:8px;background:#eaf5ef;color:#2d725d;font-size:12px;font-weight:800}
.quote-rows{display:grid;gap:9px}
.quote-row{display:grid;grid-template-columns:1.3fr 1fr .8fr .9fr auto;gap:8px;align-items:end;padding:10px;border:1px solid #dbe7e3;border-radius:12px;background:#fbfefd}
.quote-row label{display:grid;gap:5px;color:#507069;font-size:12px;font-weight:800}
.quote-row input{min-width:0}
.quote-remove{width:34px;height:34px;padding:0;border-color:#e9d2cf;color:#aa4c43;font-size:20px;line-height:1}
.quote-compare-result{display:grid;gap:9px;margin-top:14px}
.quote-result-head{display:grid;gap:4px;padding:11px 13px;border:1px solid #c8dfd8;border-radius:12px;background:#f4fbf8}
.quote-result-head b{color:#163f35;font-size:15px}.quote-result-head span{color:#668078;font-size:12px}
.quote-result-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 14px;align-items:center;padding:12px 13px;border:1px solid #dce8e5;border-radius:12px;background:#fff}
.quote-result-row.best{border-color:#93cdb9;background:#f2fbf7;box-shadow:0 8px 20px rgba(25,105,79,.08)}
.quote-result-row>div{display:grid;gap:3px;min-width:0}.quote-result-row b{color:#173f36}.quote-result-row span,.quote-result-row small{color:#617b74;font-size:12px}.quote-result-row strong{color:#155f4d;font-size:16px;text-align:right}.quote-result-row small{grid-column:1/-1;line-height:1.45}
.cash-account-list{display:grid;gap:8px;margin-top:14px}
.cash-account-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding:11px 12px;border:1px solid #dbe7e3;border-radius:12px;background:#fbfefd}
.cash-account-row>div{display:grid;gap:3px;min-width:0}.cash-account-row b{color:#183f36}.cash-account-row span,.cash-account-row small{color:#627a73;font-size:12px}.cash-account-row strong{color:#174c73;font-size:15px;white-space:nowrap}.cash-account-row small{grid-column:1/-1}.cash-account-row small.ok{color:#277159}.cash-account-row small.warn{color:#a5661b}
.denomination-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border:1px solid #d9e7e2;border-radius:12px;background:#fbfefd}
.denomination-rows>span{grid-column:1/-1;color:#71857f;font-size:12px}.denomination-rows label{display:grid;grid-template-columns:minmax(0,1fr) 76px;align-items:center;gap:7px;color:#41645b;font-size:12px;font-weight:800}.denomination-rows input{text-align:center}
.cash-count-preview{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:11px 12px;border:1px solid #cfdfec;border-radius:12px;background:#f7fbff;color:#52708e;font-size:12px}.cash-count-preview b{color:#174c73;font-size:14px}.cash-count-preview em{margin-left:auto;font-style:normal;font-weight:850}.cash-count-preview .ok{color:#29715d}.cash-count-preview .warn{color:#a5651c}
@media(max-width:900px){
  .exchange-deal-list{max-height:none}
  .exchange-deal-card{padding:12px}
  .quote-row{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px}.quote-row label:first-child{grid-column:1/-1}.quote-row .quote-remove{grid-column:2;justify-self:end}
  .quote-result-row{grid-template-columns:minmax(0,1fr) auto;padding:11px}.quote-result-row strong{font-size:15px}
  .denomination-rows{grid-template-columns:1fr}
  .denomination-rows label{grid-template-columns:minmax(0,1fr) 88px}
  .cash-count-preview{align-items:flex-start;flex-direction:column}.cash-count-preview em{margin-left:0}
}

/* V6.41.0 grouped phone ledger and resilient desktop topbar. */
@media(min-width:901px){
  body.v6376-desktop-ledger-note-clean .topbar .top-actions{min-width:0!important;grid-template-columns:minmax(210px,1fr) 168px repeat(4,60px)!important}
  body.v6376-desktop-ledger-note-clean .topbar .armenia-clock{min-width:210px!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
  body.v6376-desktop-ledger-note-clean .topbar .month-picker{min-width:168px!important}
}

/* V6.76.5 final cascade guard: keep evidence compact and reserve a real
   desktop action rail even when older daily-ledger rules are loaded later. */
@media(min-width:901px){
  body.v6763-desktop-action-rail #records .table-wrap{overflow-x:auto!important;overflow-y:visible!important}
  body.v6763-desktop-action-rail #records table{min-width:1460px!important;table-layout:fixed!important}
  body.v6763-desktop-action-rail #txTable th:nth-child(10),
  body.v6763-desktop-action-rail #txTable td:nth-child(10){width:300px!important;min-width:300px!important;max-width:300px!important;overflow:hidden!important;vertical-align:middle!important}
  body.v6763-desktop-action-rail #txTable td:nth-child(10) .v672-evidence-compact{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:5px 7px!important;align-items:center!important;min-width:0!important;max-width:100%!important;overflow:hidden!important
  }
  body.v6763-desktop-action-rail #txTable td:nth-child(10) .v672-evidence-tags,
  body.v6763-desktop-action-rail #txTable td:nth-child(10) .v672-evidence-preview,
  body.v6763-desktop-action-rail #txTable td:nth-child(10) .v672-evidence-compact small{min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  body.v6763-desktop-action-rail #txTable td:nth-child(10) .v672-evidence-detail{grid-column:2;grid-row:1;white-space:nowrap!important}
  body.v6763-desktop-action-rail #txTable th:nth-child(11),
  body.v6763-desktop-action-rail #txTable td:nth-child(11){width:180px!important;min-width:180px!important;max-width:180px!important;padding:10px 12px!important;vertical-align:top!important;position:sticky!important;right:0!important;z-index:3!important;background:#fff!important;box-shadow:-10px 0 18px rgba(24,58,49,.10)!important}
  body.v6763-desktop-action-rail #txTable th:nth-child(11){z-index:4!important;background:#f5f8fb!important}
  body.v6763-desktop-action-rail #txTable td:nth-child(11) .ledger-row-actions-v6763,
  body.v6763-desktop-action-rail #txTable td:nth-child(11) .row-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;min-width:0!important}
  body.v6763-desktop-action-rail #txTable td:nth-child(11) button{display:block!important;width:100%!important;min-width:0!important;min-height:38px!important;padding:8px 10px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
}
@media(min-width:901px) and (max-width:1450px){
  body.v6376-desktop-ledger-note-clean .topbar{grid-template-columns:1fr!important}
  body.v6376-desktop-ledger-note-clean .topbar .top-actions{justify-content:start!important;grid-template-columns:220px 168px repeat(4,60px)!important}
}
@media(max-width:900px){
  body.v640-mobile-ledger .tx-day-v6410{overflow:hidden;border:1px solid #dce9e4;border-radius:16px;background:#fff}
  body.v640-mobile-ledger .tx-day-v6410+ .tx-day-v6410{margin-top:10px}
  body.v640-mobile-ledger .tx-day-v6410>summary{display:flex;align-items:center;gap:8px;padding:12px 13px;cursor:pointer;list-style:none;background:#f5fbf8;color:#1b4f44}
  body.v640-mobile-ledger .tx-day-v6410>summary::-webkit-details-marker{display:none}
  body.v640-mobile-ledger .tx-day-v6410>summary b{font-size:15px}
  body.v640-mobile-ledger .tx-day-v6410>summary span{margin-left:auto;font-size:12px;font-weight:800}
  body.v640-mobile-ledger .tx-day-v6410>summary em{padding:3px 7px;border-radius:999px;background:#e2f2eb;font-size:11px;font-style:normal}
  body.v640-mobile-ledger .tx-day-v6410>div{display:grid;gap:8px;padding:8px}
  body.v640-mobile-ledger .tx-card-v6410{border-radius:12px!important}
  body.v640-mobile-ledger .v641-import-status{display:flex;align-items:center;gap:10px;margin:0 0 10px;padding:12px 13px;border:1px solid #cfe6dc;border-radius:15px;background:#f8fdf9}
  body.v640-mobile-ledger .v641-import-status div{display:grid;gap:2px;min-width:0}
  body.v640-mobile-ledger .v641-import-status span{color:#5d746e;font-size:11px;font-weight:800}
  body.v640-mobile-ledger .v641-import-status b{font-size:15px;color:#174f43}
  body.v640-mobile-ledger .v641-import-status small{overflow:hidden;color:#758782;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
  body.v640-mobile-ledger .v641-import-status button{flex:0 0 auto;min-height:34px;padding:6px 10px;border:0;border-radius:9px;background:#27745f;color:white;font-weight:800}
}

/* V6.38.0: daily-ledger workspace.  Keep the manual tools available without
   making them compete with Excel import and ledger search in everyday use. */
@media (min-width:901px){
  body.v638-daily-ledger-workspace .sidebar .nav-secondary-v638{
    display:none !important;
  }
  body.v638-daily-ledger-workspace .review-secondary-v638{
    display:none !important;
  }
  body.v638-daily-ledger-workspace #records .table-wrap{
    border-radius:16px;
    background:#fff;
    box-shadow:0 8px 22px rgba(15,42,36,.045);
  }
  body.v638-daily-ledger-workspace #txTable{
    min-width:1240px;
  }
  body.v638-daily-ledger-workspace #txTable td{
    height:74px;
  }
  body.v638-daily-ledger-workspace #txTable td:nth-child(10){
    width:290px;
  }
  body.v638-daily-ledger-workspace #txTable .row-actions{
    min-width:64px;
  }
  body.v638-daily-ledger-workspace #txTable .row-actions .secondary,
  body.v638-daily-ledger-workspace #txTable .row-actions .danger{
    min-width:58px;
  }
  body.v638-daily-ledger-workspace .v638-search-ranges{
    display:inline-flex;
    gap:7px;
    padding-right:8px;
    margin-right:3px;
    border-right:1px solid #dbe8e3;
  }
  body.v638-daily-ledger-workspace .v638-search-ranges .chip-filter.on{
    border-color:#498d7d;
    background:#e8f6f0;
    color:#185f51;
  }
  body.v638-daily-ledger-workspace .tx-summary-v6376{
    max-width:278px;
  }
  body.v638-daily-ledger-workspace .tx-summary-open-v6376{
    min-height:36px;
  }
  body.v638-daily-ledger-workspace .tx-summary-meta-v6376{
    padding-left:2px;
  }
}

@media (max-width:900px){
  body.v638-daily-ledger-workspace .v638-search-ranges{
    display:flex;
    width:100%;
    gap:7px;
    margin:0 0 7px;
  }
  body.v638-daily-ledger-workspace .v638-search-ranges .chip-filter{
    flex:1;
  }
  body.v638-daily-ledger-workspace .review-secondary-v638{
    display:none !important;
  }
}

/* V6.29.0 daily ledger efficiency + unified desktop/mobile shell */
:root{--sidebar-width-v6290:300px}
html,body{max-width:100%;overflow-x:hidden}
.app.v6290-layout,.v6290-layout.app,.v6290-layout .app{
  grid-template-columns:var(--sidebar-width-v6290) minmax(0,1fr);
  align-items:start;
  background:linear-gradient(90deg,var(--nav) 0 var(--sidebar-width-v6290),#edf2f7 var(--sidebar-width-v6290) 100%);
}
.v6290-layout .sidebar{
  width:var(--sidebar-width-v6290);
  box-sizing:border-box;
  border-radius:0;
  box-shadow:12px 0 30px rgba(15,23,42,.08);
}
.v6290-layout .workspace{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  padding:24px 28px 92px;
}
.v6290-layout .topbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  align-items:end;
  gap:18px;
  margin-bottom:18px;
}
.v6290-layout .top-actions{
  display:flex;
  align-items:end;
  justify-content:flex-end;
  gap:10px;
  position:relative;
}
.v6290-layout .armenia-clock{
  min-width:250px;
  border:1px solid #d9e8e2;
  border-radius:14px;
  background:#fff;
  padding:11px 14px;
  color:#60756f;
  font-weight:800;
}
.v6290-layout .month-picker{
  min-width:170px;
}
.v6290-layout .top-actions button{
  white-space:nowrap;
}
.top-action-menu-v6290{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  z-index:50;
  display:grid;
  gap:6px;
  min-width:150px;
  padding:8px;
  border:1px solid #d9e8e2;
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 40px rgba(15,23,42,.16);
}
.top-action-menu-v6290.hidden{display:none}
.top-action-menu-v6290 button{
  width:100%;
  justify-content:flex-start;
  border-radius:12px;
  background:#f7fbf9;
  color:#0f5f4b;
}
.daily-import-calendar-v6290{
  display:grid;
  gap:12px;
  padding:16px;
  border:1px solid #cfe5dd;
  border-radius:18px;
  background:linear-gradient(135deg,#f6fcf9,#fff);
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}
.daily-calendar-head-v6290{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
}
.daily-calendar-head-v6290 span{
  display:block;
  color:#60756f;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
}
.daily-calendar-head-v6290 b{
  display:block;
  margin-top:3px;
  color:#0f2a24;
  font-size:18px;
}
.daily-calendar-head-v6290 em{
  display:block;
  margin-top:3px;
  color:#60756f;
  font-style:normal;
  font-size:13px;
}
.daily-calendar-actions-v6290{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.daily-calendar-actions-v6290 button{
  min-height:38px;
  border-radius:14px;
  padding:8px 12px;
}
.daily-calendar-grid-v6290{
  display:grid;
  grid-template-columns:repeat(10,minmax(0,1fr));
  gap:7px;
}
.daily-calendar-grid-v6290 button{
  display:grid;
  place-items:center;
  gap:2px;
  min-height:54px;
  padding:6px 4px;
  border:1px solid #e1ebe7;
  border-radius:14px;
  background:#fff;
  color:#60756f;
}
.daily-calendar-grid-v6290 b{font-size:15px;color:#0f2a24}
.daily-calendar-grid-v6290 span{font-size:11px;font-weight:800}
.daily-calendar-grid-v6290 button.imported{background:#effaf5;border-color:#bfe6d7;color:#176b50}
.daily-calendar-grid-v6290 button.review{background:#fff8ee;border-color:#f0c38c;color:#9a5b00}
.daily-calendar-grid-v6290 button.manual{background:#f4f8ff;border-color:#c9d8f7;color:#25519a}
.daily-calendar-grid-v6290 button.locked{background:#f1f5f9;border-color:#cbd5e1;color:#475569}
.daily-calendar-grid-v6290 button.missing{background:#fff;border-style:dashed;color:#94a3b8}
.daily-calendar-grid-v6290 button.pending{background:#f7f9fb;border-color:#e2e8f0;color:#94a3b8;opacity:.72}
.v663-preflight,.v663-coverage{margin:12px 0;padding:13px 15px;border:1px solid #cfe3da;border-radius:14px;background:#f6fbf8;color:#17483b}
.v663-preflight>div,.v663-coverage{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.v663-preflight b,.v663-coverage b{font-size:15px}.v663-preflight span,.v663-coverage span{color:#58736c;font-weight:700}.v663-preflight p{margin:8px 0;color:#7c4d12;font-weight:700}
.v663-preflight.attention{border-color:#edc17e;background:#fffaf1}.v663-preflight.ok{border-color:#cfe3da;background:#f6fbf8}.v663-preflight label{display:flex;align-items:flex-start;gap:8px;margin-top:10px;font-weight:800;line-height:1.45}.v663-preflight input{margin-top:3px;accent-color:#226c58}
.v663-preflight details{margin-top:8px}.v663-preflight ul{margin:8px 0 0;padding-left:18px}.v663-preflight li{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0}.v663-preflight li b{color:#9a5b00}.v663-preflight li span{font-size:13px}
.v663-coverage.review{border-color:#edc17e;background:#fffaf1}.v663-coverage em{font-style:normal;color:#26735b;font-weight:800}.v663-coverage details{width:100%}.v663-coverage details p{margin:8px 0 0;color:#8a5b1e;font-weight:700}
.import-preview-summary-v6290{
  display:grid;
  gap:5px;
  margin-bottom:10px;
  padding:12px 14px;
  border:1px solid #cfe5dd;
  border-radius:14px;
  background:#f6fcf9;
}
.import-preview-summary-v6290 b{color:#0f2a24}
.import-preview-summary-v6290 span,.import-preview-summary-v6290 em{font-size:13px;color:#60756f;font-style:normal}
.tx-card-v6290 .tx-card-more-v6290{
  margin-top:8px;
  border-top:1px dashed #d8e7e1;
  padding-top:8px;
}
.tx-card-v6290 .tx-card-more-v6290 summary{
  cursor:pointer;
  width:max-content;
  max-width:100%;
  padding:5px 10px;
  border-radius:999px;
  background:#eef8f3;
  color:#0f5f4b;
  font-size:12px;
  font-weight:900;
}

@media(max-width:1180px){
  :root{--sidebar-width-v6290:248px}
  .daily-calendar-grid-v6290{grid-template-columns:repeat(7,minmax(0,1fr))}
}

@media(max-width:760px){
  .app.v6290-layout,.v6290-layout.app,.v6290-layout .app{
    display:block!important;
    width:100%!important;
    max-width:100vw!important;
    overflow-x:hidden!important;
    background:#edf2f7!important;
  }
  .v6290-layout .sidebar{
    position:relative!important;
    width:100%!important;
    max-width:100vw!important;
    height:auto!important;
    padding:14px 16px!important;
    border-radius:0 0 22px 22px!important;
    overflow:hidden!important;
  }
  .v6290-layout .workspace{
    width:100%!important;
    max-width:100vw!important;
    padding:10px 10px 84px!important;
    overflow-x:hidden!important;
  }
  .v6290-layout .topbar{
    grid-template-columns:1fr!important;
    align-items:stretch!important;
    gap:8px!important;
    margin-bottom:10px!important;
  }
  .v6290-layout .topbar>div:first-child{
    display:flex!important;
    align-items:flex-end!important;
    justify-content:space-between!important;
    gap:8px!important;
    min-width:0!important;
  }
  .v6290-layout .topbar h1{
    font-size:22px!important;
    line-height:1.12!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .v6290-layout .topbar .mobile-version{
    display:inline-block!important;
    margin:0!important;
    flex:0 0 auto!important;
  }
  .v6290-layout .top-actions{
    display:grid!important;
    grid-template-columns:1fr 48px 48px!important;
    gap:7px!important;
    align-items:center!important;
    width:100%!important;
    max-width:100%!important;
  }
  .v6290-layout .armenia-clock{
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
    height:40px!important;
    padding:0 12px!important;
    display:flex!important;
    align-items:center!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:12px!important;
  }
  .v6290-layout .month-picker{
    grid-column:1!important;
    min-width:0!important;
    width:100%!important;
    height:42px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 8px!important;
    border:1px solid #d9e8e2!important;
    border-radius:15px!important;
    background:#fff!important;
    font-size:0!important;
  }
  .v6290-layout .month-picker input{
    width:100%!important;
    height:40px!important;
    min-height:40px!important;
    border:0!important;
    background:transparent!important;
    padding:0!important;
    text-align:center!important;
    font-size:15px!important;
    font-weight:900!important;
  }
  .v6290-layout #refreshBtn,.v6290-layout #moreTopActionsV6290{
    display:grid!important;
    place-items:center!important;
    grid-column:auto!important;
    width:48px!important;
    min-width:48px!important;
    height:42px!important;
    min-height:42px!important;
    padding:0!important;
    border-radius:15px!important;
    background:#fff!important;
    border:1px solid #d9e8e2!important;
    font-size:0!important;
  }
  .v6290-layout #refreshBtn::after{content:"刷";font-size:15px;font-weight:900;color:#0f172a}
  .v6290-layout #moreTopActionsV6290::after{content:"⋯";font-size:22px;line-height:1;font-weight:900;color:#0f172a}
  .v6290-layout #hideAmountsBtn,.v6290-layout #screenshotModeBtn,.v6290-layout #quickLockBtn,.v6290-layout #installPwaBtn{
    display:none!important;
  }
  .top-action-menu-v6290{
    right:0;
    top:calc(100% + 7px);
  }
  .daily-import-calendar-v6290{
    padding:12px;
    border-radius:16px;
  }
  .daily-calendar-head-v6290{
    display:grid;
    gap:10px;
  }
  .daily-calendar-actions-v6290{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .daily-calendar-grid-v6290{
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:5px;
  }
  .daily-calendar-grid-v6290 button{
    min-height:44px;
    border-radius:11px;
    padding:4px 2px;
  }
  .daily-calendar-grid-v6290 b{font-size:13px}
  .daily-calendar-grid-v6290 span{font-size:10px}
  .v6290-layout .page,.v6290-layout .panel,.v6290-layout .metric-grid,.v6290-layout .grid,.v6290-layout .tx-cards,.v6290-layout .search-results{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
  }
  .tx-card-v6290,.search-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
  }
  .tx-card-v6290 *,.search-card *{
    min-width:0!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }
  .tx-card-v6290 .tx-card-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px!important;
  }
  .tx-card-v6290 .tx-card-more-v6290 summary{
    width:100%;
    text-align:center;
    white-space:normal;
  }
  .records-quick-filters-v6280{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    scrollbar-width:none;
    padding-bottom:8px!important;
  }
  .records-quick-filters-v6280::-webkit-scrollbar{display:none}
  .records-quick-filters-v6280 button{
    flex:0 0 auto!important;
    white-space:nowrap!important;
  }
}

/* V7.22.2 daily workbench and explainable amount surfaces. */
.v7150-todo-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:9px}.v7150-todo-head>div{display:grid;gap:3px}.v7150-todo-head span,.v7150-todo-head small{color:var(--muted);font-size:12px}.v7150-todo-head b{font-size:18px}.v7150-todo-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.v7150-todo-list button{display:grid;gap:4px;text-align:left;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--text)}.v7150-todo-list button span{color:var(--muted);font-size:12px;line-height:1.4}.v7150-todo-list button.attention,.v7150-todo-list button.todo{border-color:#efc98f;background:#fffaf0}.v7150-todo-list button.safe{border-color:#c9e5d8;background:#f5fcf8}.v7150-money-explain{margin:10px 0;padding:10px 12px;border:1px solid #d9e8e2;border-radius:12px;background:#fbfefd}.v7150-money-explain summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;color:#245647;font-weight:850}.v7150-money-explain summary span{color:var(--muted);font-size:12px;font-weight:600}.v7150-money-explain>div{display:grid;gap:4px;margin-top:8px;color:var(--muted);font-size:12px;line-height:1.45}.daily-calendar-actions-v6290{align-items:center;display:flex;flex-wrap:wrap;gap:7px}.v7150-calendar-hidden{display:none!important}.v7150-day-digest{display:grid;gap:9px;margin:10px 0;padding:12px 13px;border:1px solid #cfe4da;border-radius:14px;background:linear-gradient(135deg,#fbfffd,#f1faf6)}.v7150-day-digest-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.v7150-day-digest-head>div{display:grid;gap:3px}.v7150-day-digest-head span,.v7150-day-digest>small{color:var(--muted);font-size:12px}.v7150-day-digest-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.v7150-day-digest-metrics span{display:grid;gap:3px;padding:8px 9px;border:1px solid #dbeae4;border-radius:10px;background:#fff;color:var(--muted);font-size:12px}.v7150-day-digest-metrics b{color:#245647;font-size:14px}.v7150-day-digest-expenses{display:grid;gap:5px;padding-top:7px;border-top:1px solid #dcebe5;color:var(--muted);font-size:12px}.v7150-day-digest-expenses span{color:var(--text)}.v7150-day-digest .error{color:#a53e3e}
@media(max-width:760px){.v7150-todo-head,.v7150-day-digest-head{align-items:flex-start;display:grid}.v7150-todo-head b{font-size:16px}.v7150-todo-list{grid-template-columns:1fr 1fr}.v7150-money-explain summary{align-items:flex-start;display:grid}.v7150-day-digest-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.v7150-day-digest-head button{width:100%}}

/* V6.77.0: keep desktop evidence and actions in their own rails.  The table
   may scroll horizontally on smaller desktop windows, but annotation text
   must never squeeze the edit/pending/delete controls together. */
@media(min-width:901px){
  body.v6763-desktop-action-rail #records .table-wrap{overflow-x:auto!important;overflow-y:visible!important}
  body.v6763-desktop-action-rail #records table,#txTable{min-width:1500px!important;table-layout:fixed!important}
  body.v6763-desktop-action-rail #txTable th:nth-child(10),body.v6763-desktop-action-rail #txTable td:nth-child(10){width:320px!important;min-width:320px!important;max-width:320px!important}
  body.v6763-desktop-action-rail #txTable th:nth-child(11),body.v6763-desktop-action-rail #txTable td:nth-child(11){position:sticky;right:0;z-index:3;width:190px!important;min-width:190px!important;max-width:190px!important;background:#fff}
  body.v6763-desktop-action-rail #txTable td:nth-child(11) .tx-actions{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;min-width:174px!important}
  body.v6763-desktop-action-rail #txTable td:nth-child(11) .tx-actions button{width:100%!important;min-height:38px!important;white-space:nowrap!important}
}

/* V6.77.0: the success dialog is a contained sheet on phones, so login
   details remain readable without pushing the close/action area below the
   browser safe area. */
@media(max-width:700px){
  #loginSuccessModal .login-success-dialog{width:min(100% - 20px,520px);max-height:calc(100dvh - 18px);margin:9px auto}
  #loginSuccessModal .login-success-scroll{max-height:calc(100dvh - 142px);padding:12px 14px 20px;overflow:auto}
  #loginSuccessModal .login-success-row{min-height:38px;padding:7px 9px}
  #loginSuccessModal .login-success-title{font-size:21px}
}

/* V6.90.0: keep the desktop action rail readable.  The earlier cascade
   targeted an obsolete action class, so the three row controls could still
   overlap the evidence column.  Reserve a real last column and stack actions
   inside it; mobile keeps its card controls unchanged. */
@media(min-width:901px){
  body.v6763-desktop-action-rail #records .table-wrap{overflow-x:auto!important;overflow-y:visible!important;padding-right:2px}
  body.v6763-desktop-action-rail #txTable{min-width:1560px!important;table-layout:fixed!important}
  body.v6763-desktop-action-rail #txTable th:nth-child(10),
  body.v6763-desktop-action-rail #txTable td:nth-child(10){width:300px!important;min-width:300px!important;max-width:300px!important}
  body.v6763-desktop-action-rail #txTable th:last-child,
  body.v6763-desktop-action-rail #txTable td:last-child{position:sticky;right:0;z-index:4;width:176px!important;min-width:176px!important;max-width:176px!important;background:#fff;box-shadow:-8px 0 12px rgba(24,56,48,.06)}
  body.v6763-desktop-action-rail #txTable th:last-child{background:#f6f9fc}
  body.v6763-desktop-action-rail #txTable td:last-child{padding:10px 12px!important;vertical-align:top}
  body.v6763-desktop-action-rail #txTable .ledger-row-actions-v6763{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;width:100%;min-width:0}
  body.v6763-desktop-action-rail #txTable .ledger-row-actions-v6763 button{display:block;width:100%!important;min-height:36px!important;margin:0!important;white-space:nowrap!important}
}

/* V6.90.0: keep the maintenance diagnostic compact and visually secondary. */
.v685-sqlite-maintenance{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.v685-sqlite-maintenance span{flex:1;min-width:220px;color:#6a8279;font-size:12px}
.v685-sqlite-maintenance button{flex:0 0 auto}

/* V6.90.0: final desktop action rail.  The evidence column may be long, but
   edit/review/delete always get their own readable vertical rail. */
@media(min-width:901px){
  body.v6763-desktop-action-rail #records .table-wrap{overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch}
  body.v6763-desktop-action-rail #records #txTable{min-width:1880px!important;table-layout:fixed!important}
  body.v6763-desktop-action-rail #records #txTable th:nth-child(10),
  body.v6763-desktop-action-rail #records #txTable td:nth-child(10){width:390px!important;min-width:390px!important;max-width:390px!important}
  body.v6763-desktop-action-rail #records #txTable th:nth-child(11),
  body.v6763-desktop-action-rail #records #txTable td:nth-child(11){position:sticky!important;right:0!important;z-index:8!important;width:250px!important;min-width:250px!important;max-width:250px!important;padding:10px 12px!important;background:#fff!important;box-shadow:-14px 0 24px rgba(22,48,40,.12)!important;border-left:1px solid #dce9e4!important;vertical-align:top!important}
  body.v6763-desktop-action-rail #records #txTable td:nth-child(11) .ledger-row-actions-v6763,
  body.v6763-desktop-action-rail #records #txTable td:nth-child(11) .row-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;min-width:0!important;padding:0!important}
  body.v6763-desktop-action-rail #records #txTable td:nth-child(11) button{display:block!important;width:100%!important;min-width:0!important;min-height:40px!important;padding:8px 12px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
}

.import-progress-cancel{display:block!important;margin-top:8px!important;min-height:34px!important}

/* V6.83.0: recovery and capacity messages stay visible without changing the
   accounting dashboard layout. */
.import-recovery-status{display:grid;gap:5px;margin-top:9px;padding:10px 12px;border:1px solid #cddfd8;border-radius:12px;background:#f5fbf8;color:#2d6656;font-size:13px;line-height:1.45}
.import-recovery-status b{font-weight:900}.import-recovery-status span{color:#657f75}.import-recovery-status button{justify-self:start;min-height:32px;padding:5px 11px;border:1px solid #b9d9cc;border-radius:9px;background:#fff;color:#236b56;font-weight:850}
.import-recovery-status.error{border-color:#e7b1aa;background:#fff6f5;color:#9b4039}.import-recovery-status.loading{border-color:#efd39d;background:#fffaf1;color:#75511c}
.storage-warning-v6830{display:grid;gap:3px;grid-column:1 / -1;margin-bottom:8px;padding:9px 11px;border:1px solid #efd39d;border-radius:11px;background:#fffaf1;color:#75511c;font-size:12px;line-height:1.45}
.storage-warning-v6830 b{font-size:13px}.storage-warning-v6830 small{color:#977343}.storage-warning-v6830.critical{border-color:#e7aaa4;background:#fff3f2;color:#963d37}
@media(max-width:760px){
  .import-recovery-status{margin:8px 0;font-size:12px}
  body.v669-mobile-query #records .v676-direct-card-head{padding-bottom:6px}
  body.v669-mobile-query #records .v676-direct-annotation{max-width:calc(100% - 24px);margin-bottom:8px}
  body.v669-mobile-query #records .v676-direct-card-foot{flex-wrap:wrap}
  body.v669-mobile-query #records .v676-direct-card-foot>span{flex-basis:100%;order:3}
}

/* V6.80.0: the desktop action column is a true protected rail.  Evidence
   keeps enough width for source/annotation text, while actions never overlap
   the preceding cell when the table is wider than the viewport. */
@media(min-width:901px){
  body.v6763-desktop-action-rail #records #txTable{min-width:1780px!important;table-layout:fixed!important}
  body.v6763-desktop-action-rail #records #txTable th:nth-child(10),body.v6763-desktop-action-rail #records #txTable td:nth-child(10){width:360px!important;min-width:360px!important;max-width:360px!important}
  body.v6763-desktop-action-rail #records #txTable th:nth-child(11),body.v6763-desktop-action-rail #records #txTable td:nth-child(11){position:sticky!important;right:0!important;z-index:4!important;width:224px!important;min-width:224px!important;max-width:224px!important;background:#fff!important;box-shadow:-8px 0 16px rgba(20,47,39,.08)}
  body.v6763-desktop-action-rail #records #txTable td:nth-child(11) .tx-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;min-width:204px!important;padding:2px!important}
  body.v6763-desktop-action-rail #records #txTable td:nth-child(11) .tx-actions button{width:100%!important;min-height:38px!important;white-space:nowrap!important}
}

.v679-record-perf{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 10px;padding:7px 10px;border:1px solid #cfe4da;border-radius:10px;background:#f5fcf8;color:#2c705b;font-size:12px;font-weight:850}
.v679-record-perf small{color:#668077;font-size:11px;font-weight:700}
.v679-record-perf em{color:#93631c;font-size:11px;font-style:normal;font-weight:800}
.v679-record-perf.slow{border-color:#efd19b;background:#fffaf1;color:#8a5c18}
.v679-record-perf.cached{border-style:dashed}
.v679-projection-panel{display:grid;gap:9px;margin-top:12px;padding:13px 14px;border:1px solid #c9e2d7;border-radius:14px;background:#f7fcf9;color:#45685c}
.v679-projection-panel.warn{border-color:#e9c486;background:#fffaf1;color:#76551d}
.v679-projection-panel header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.v679-projection-panel header div{display:grid;gap:3px}.v679-projection-panel header b{color:#275e4e;font-size:14px}.v679-projection-panel.warn header b{color:#8c5d18}.v679-projection-panel header span{font-size:12px;font-weight:900}.v679-projection-panel header small{color:#82948d;font-size:11px}
.v679-projection-panel p{margin:0;font-size:12px;line-height:1.5}.v679-projection-panel details{font-size:12px}.v679-projection-panel ul{margin:4px 0 0;padding-left:18px}.v679-projection-actions{display:flex;gap:8px;flex-wrap:wrap}.v679-projection-actions button{min-height:32px;padding:5px 10px}.v679-projection-panel.loading{opacity:.68;pointer-events:none}
.login-info-more{grid-column:1 / -1;display:block;min-width:0;margin-top:8px;border:1px solid #dbe6e1;border-radius:10px;background:#f8fbfa;overflow:visible}.login-info-more summary{padding:8px 10px;color:#426b5c;cursor:pointer;font-size:12px;font-weight:850;list-style:none}.login-info-more summary::-webkit-details-marker{display:none}.login-info-more summary::before{display:inline-block;margin-right:6px;content:'+';font-size:14px;font-weight:900}.login-info-more[open] summary::before{content:'−'}.login-info-more-body{display:grid;gap:0;padding:0 8px 8px;visibility:visible;opacity:1}.login-info-more-body .login-info-row{min-height:32px;border-top:1px solid #e6efeb}
@media(max-width:700px){
  .v679-record-perf{align-items:flex-start;display:grid;gap:3px;margin:5px 0 8px;font-size:11px}
  .v679-record-perf small,.v679-record-perf em{font-size:10px}
  .v679-projection-panel{padding:11px 12px}.v679-projection-panel header{display:grid;gap:4px}.v679-projection-actions{display:grid;grid-template-columns:1fr}.v679-projection-actions button{width:100%}
  .login-info-more summary{min-height:38px;padding:10px}.login-info-more-body .login-info-row{grid-template-columns:110px minmax(0,1fr)}
}

/* V6.78.0: make the desktop action rail visually separate from evidence.
   The right column stays visible while the wide ledger scrolls underneath it,
   and each action gets a stable touch target instead of sharing one cramped
   inline row with comments/source text. */
@media(min-width:901px){
  body.v6763-desktop-action-rail #txTable th:nth-child(11),
  body.v6763-desktop-action-rail #txTable td:nth-child(11){
    background:#fff!important;
    box-shadow:-12px 0 22px rgba(22,48,40,.09);
  }
  body.v6763-desktop-action-rail #txTable th:nth-child(11){
    z-index:8!important;
    border-left:1px solid #dce9e4;
  }
  body.v6763-desktop-action-rail #txTable td:nth-child(11){
    z-index:7!important;
    padding:10px 12px!important;
    vertical-align:top!important;
    border-left:1px solid #e7f0ec;
  }
  body.v6763-desktop-action-rail #txTable td:nth-child(11) .tx-actions{
    align-content:start!important;
    gap:8px!important;
    padding:0!important;
  }
  body.v6763-desktop-action-rail #txTable td:nth-child(11) .tx-actions button{
    min-height:36px!important;
    border-radius:10px!important;
    font-weight:850!important;
  }
}

/* Login success context: a compact Baota-style confirmation without making
   the user wait for IP enrichment or the dashboard request. */
.login-success-dialog{position:relative;width:min(520px,100%);display:flex;flex-direction:column;gap:0;max-height:min(780px,calc(100vh - 28px));max-height:min(780px,calc(100dvh - 28px));overflow:hidden;border:1px solid #dce8e2;border-radius:18px;background:#fff;box-shadow:0 22px 60px rgba(20,48,39,.22)}
.login-success-heading{flex:none;display:flex;align-items:center;gap:14px;padding:26px 26px 14px;padding-right:50px}.login-success-heading h2{margin:0;color:#192b37;font-size:23px}.login-success-heading p{margin:4px 0 0;color:#6b7d86;font-size:14px}.login-success-check{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#7bc24c;color:#fff;font-size:24px;font-weight:900}
.login-success-scroll{min-height:0;display:grid;gap:14px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 26px 26px;scrollbar-gutter:stable}.login-info-section-label{margin:2px 0 -5px;color:#516975;font-size:15px;font-weight:800}.login-info-table{display:grid;border:1px solid #d5e0e6;border-radius:10px;overflow:hidden}.login-info-row{display:grid;grid-template-columns:92px minmax(0,1fr);min-height:40px;border-bottom:1px solid #d5e0e6}.login-info-row:last-child{border-bottom:0}.login-info-row>span{display:flex;align-items:center;padding:7px 12px;background:#f5f8fa;color:#788892;border-right:1px solid #d5e0e6}.login-info-row>b{display:flex;align-items:center;min-width:0;padding:7px 12px;color:#5c6870;font-size:14px;overflow-wrap:anywhere}.login-info-empty{padding:12px;color:#73838a;font-size:14px}.login-success-risk{padding:10px 12px;border:1px solid #eed19e;border-radius:10px;background:#fff9ed;color:#8a651e;font-size:13px;font-weight:800}.login-success-scroll>button:last-child{min-height:42px;border-radius:10px}
@media(max-width:700px){.login-success-dialog{width:100%;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);border-radius:16px}.login-success-heading{padding:20px 16px 12px;padding-right:48px}.login-success-scroll{padding:0 16px calc(20px + env(safe-area-inset-bottom))}.login-success-heading h2{font-size:21px}.login-info-row{grid-template-columns:82px minmax(0,1fr)}.login-info-row>b{font-size:13px}.login-success-scroll>button:last-child{width:100%}}

/* V6.80.0: the evidence column is a one-line scan rail and the action
   column is wide enough to keep edit/pending/delete as three stable targets.
   The table may scroll horizontally, but the sticky action rail never shares
   a line with imported comments or source coordinates. */
@media(min-width:901px){
  body.v6763-desktop-action-rail #records #txTable{min-width:1860px!important;table-layout:fixed!important}
  body.v6763-desktop-action-rail #records #txTable th:nth-child(10),body.v6763-desktop-action-rail #records #txTable td:nth-child(10){width:390px!important;min-width:390px!important;max-width:390px!important}
  body.v6763-desktop-action-rail #records #txTable th:nth-child(11),body.v6763-desktop-action-rail #records #txTable td:nth-child(11){width:248px!important;min-width:248px!important;max-width:248px!important;overflow:visible!important;background:#fff!important;box-shadow:-14px 0 24px rgba(22,48,40,.12)!important}
  body.v6763-desktop-action-rail #records #txTable td:nth-child(11) .tx-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;min-width:220px!important;width:220px!important;overflow:visible!important}
  body.v6763-desktop-action-rail #records #txTable td:nth-child(11) .tx-actions button{display:block!important;width:220px!important;min-width:220px!important;min-height:40px!important;padding:7px 12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v6763-desktop-action-rail #records #txTable td:nth-child(10) .v680-evidence-summary{width:100%;min-width:0;max-width:100%;overflow:hidden}
  body.v6763-desktop-action-rail #records #txTable td:nth-child(10) .v680-evidence-summary .v672-evidence-preview,body.v6763-desktop-action-rail #records #txTable td:nth-child(10) .v680-evidence-summary small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

.v680-loading{border-color:#e4c27d!important;background:#fffaf1!important;color:#875e19!important}
.v680-loading em{font-style:normal;color:#9d742c;font-size:11px;font-weight:800}
.v680-evidence-summary .v672-evidence-preview,.v680-evidence-summary small{cursor:help}

@media(max-width:760px){
  .v680-evidence-summary{min-width:0!important;max-width:100%!important}
  .v680-evidence-summary .v672-evidence-preview,.v680-evidence-summary small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .v680-loading{margin:5px 0 8px;padding:8px 10px;font-size:11px}
}

/* V6.76.5: final desktop action rail override. Earlier ledger polish rules
   intentionally remain for compatibility, but the action cell must win the
   cascade so buttons cannot overlap imported evidence or each other. */
@media(min-width:901px){
  body.v6763-desktop-action-rail #records .table-wrap{overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch}
  body.v6763-desktop-action-rail #records table{min-width:1380px!important;table-layout:fixed!important}
  body.v6763-desktop-action-rail #txTable th:nth-child(1),body.v6763-desktop-action-rail #txTable td:nth-child(1){width:108px!important;white-space:nowrap}
  body.v6763-desktop-action-rail #txTable th:nth-child(2),body.v6763-desktop-action-rail #txTable td:nth-child(2){width:80px!important;white-space:nowrap}
  body.v6763-desktop-action-rail #txTable th:nth-child(3),body.v6763-desktop-action-rail #txTable td:nth-child(3){width:112px!important}
  body.v6763-desktop-action-rail #txTable th:nth-child(4),body.v6763-desktop-action-rail #txTable td:nth-child(4){width:132px!important}
  body.v6763-desktop-action-rail #txTable th:nth-child(5),body.v6763-desktop-action-rail #txTable td:nth-child(5){width:68px!important;white-space:nowrap}
  body.v6763-desktop-action-rail #txTable th:nth-child(6),body.v6763-desktop-action-rail #txTable td:nth-child(6){width:140px!important;white-space:nowrap}
  body.v6763-desktop-action-rail #txTable th:nth-child(7),body.v6763-desktop-action-rail #txTable td:nth-child(7){width:122px!important;white-space:nowrap}
  body.v6763-desktop-action-rail #txTable th:nth-child(8),body.v6763-desktop-action-rail #txTable td:nth-child(8){width:132px!important;white-space:nowrap}
  body.v6763-desktop-action-rail #txTable th:nth-child(9),body.v6763-desktop-action-rail #txTable td:nth-child(9){width:110px!important}
  body.v6763-desktop-action-rail #txTable th:nth-child(10),body.v6763-desktop-action-rail #txTable td:nth-child(10){width:300px!important;max-width:300px!important;overflow:hidden;vertical-align:top}
  body.v6763-desktop-action-rail #txTable th:nth-child(11),body.v6763-desktop-action-rail #txTable td:nth-child(11){width:156px!important;min-width:156px!important;max-width:156px!important;padding:10px 10px!important;vertical-align:top;position:sticky;right:0;z-index:3;background:#fff;box-shadow:-10px 0 18px rgba(24,58,49,.08)}
  body.v6763-desktop-action-rail #txTable th:nth-child(11){z-index:4;background:#f5f8fb}
  body.v6763-desktop-action-rail #txTable td:nth-child(11) .ledger-row-actions-v6763,body.v6763-desktop-action-rail #txTable td:nth-child(11) .row-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;width:100%!important;min-width:0!important}
  body.v6763-desktop-action-rail #txTable td:nth-child(11) button{display:block!important;width:100%!important;min-width:0!important;min-height:36px!important;padding:7px 10px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.v6763-desktop-action-rail #txTable td:nth-child(10) .tx-direct-v6370,body.v6763-desktop-action-rail #txTable td:nth-child(10) .v668-ledger-detail,body.v6763-desktop-action-rail #txTable td:nth-child(10) .tx-summary-v6376{max-width:100%;min-width:0}
}

/* V6.76.2: give the desktop action column its own stable rail.  Keep
   annotation/source evidence separate so edit/review/delete never overlap. */
@media (min-width:901px){
  body.v6763-desktop-action-rail #records .table-wrap{overflow-x:auto!important}
  body.v6763-desktop-action-rail #records table{min-width:1280px;table-layout:fixed}
  body.v6763-desktop-action-rail #txTable th:nth-child(10),
  body.v6763-desktop-action-rail #txTable td:nth-child(10){width:260px!important;max-width:260px!important}
  body.v6763-desktop-action-rail #txTable th:nth-child(11),
  body.v6763-desktop-action-rail #txTable td:nth-child(11){width:142px!important;min-width:142px!important;max-width:142px!important;padding:10px 9px!important;vertical-align:middle}
  body.v6763-desktop-action-rail #txTable td:nth-child(11) .ledger-row-actions-v6763,
  body.v6763-desktop-action-rail #txTable td:nth-child(11) .row-actions{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;width:100%}
  body.v6763-desktop-action-rail #txTable td:nth-child(11) button{width:100%!important;min-width:0!important;min-height:36px;padding:7px 8px!important;white-space:nowrap}
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  font-weight: 750;
  cursor: pointer;
}

button:hover {
  filter: brightness(.98);
}

button.secondary,
button.ghost {
  background: #eef3f8;
  color: var(--text);
  border: 1px solid var(--line);
}

button.secondary.on {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.mobile-label {
  display: none;
}

.offline-banner {
  position: fixed;
  left: 50%;
  top: 14px;
  z-index: 90;
  transform: translateX(-50%);
  max-width: calc(100vw - 28px);
  padding: 10px 14px;
  border: 1px solid #f0c987;
  border-radius: 999px;
  background: #fff7e8;
  color: #8a5a10;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
  font-size: 14px;
  font-weight: 800;
}

.mobile-toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 92;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .92);
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .2);
  font-size: 14px;
  font-weight: 850;
  transition: opacity .18s ease, transform .18s ease;
}

.mobile-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mobile-toast.has-action {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.mobile-toast.has-action button {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: #fff;
  color: #0f172a;
}

button.warning {
  background: #fff4df;
  color: var(--warning);
  border: 1px solid #f3d4a2;
}

button.danger {
  background: #fff1f0;
  color: var(--danger);
  border: 1px solid #f1beb9;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 9px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 118, 104, .12);
}

.hidden {
  display: none !important;
}

body.session-locked .app,
body.session-locked .login-screen {
  filter: blur(12px);
  transform: scale(.995);
  pointer-events: none;
  user-select: none;
}

body.session-locked .lock-overlay {
  backdrop-filter: blur(9px);
}

.security-alert {
  border: 1px solid #f5c2bf;
  border-radius: 12px;
  background: #fff3f2;
  color: var(--danger);
  padding: 12px 14px;
  font-weight: 750;
  margin-bottom: 14px;
}

.secure-modal,
.lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(5px);
}

.secure-dialog,
.lock-card {
  position: relative;
  width: min(390px, 100%);
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .22);
}

.secure-dialog h2,
.lock-card h2 {
  margin: 0;
  font-size: 24px;
}

.secure-dialog p,
.lock-card p {
  margin: 0;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 10px;
  background: #eef3f8;
  color: var(--text);
}

.lock-overlay {
  background:
    radial-gradient(circle at 18% 16%, rgba(31, 118, 104, .18), transparent 26%),
    linear-gradient(135deg, #eef2f6, #e8f0ee);
}

.lock-card {
  border: 1px solid rgba(255, 255, 255, .9);
}

.lock-card .brand-mark {
  width: 48px;
  height: 48px;
}

.audit-filter {
  display: inline-flex;
  width: auto;
  margin: 8px 0 14px;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 22%, rgba(31, 118, 104, .11), transparent 25%),
    radial-gradient(circle at 82% 18%, rgba(15, 23, 42, .08), transparent 24%),
    linear-gradient(135deg, #f8fafc, #edf3f2);
}

.login-shell {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 390px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .12);
  overflow: hidden;
}

.login-brand {
  padding: 52px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06), transparent 42%),
    #0f172a;
  color: #fff;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 900;
  font-size: 22px;
}

.brand-mark.kcash-mark{
  overflow:hidden;
  padding:0;
  border:1px solid rgba(242,200,91,.5);
  background:#10131b;
  box-shadow:0 8px 18px rgba(0,0,0,.2);
}
.brand-mark.kcash-mark img{display:block;width:100%;height:100%;object-fit:cover}

.login-brand h1 {
  margin: 30px 0 14px;
  font-size: 36px;
  letter-spacing: 0;
}

.login-brand p {
  max-width: 440px;
  color: #cbd5e1;
  line-height: 1.8;
}

.login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.login-points span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  color: #dbeafe;
  white-space: nowrap;
}

.login-card {
  padding: 44px;
  display: grid;
  align-content: center;
  gap: 16px;
  background: #fff;
}

.login-card h2 {
  margin: 0;
  font-size: 28px;
}

.login-card p,
.login-card span {
  margin: 0;
  color: var(--muted);
}

.login-card label {
  display: grid;
  gap: 7px;
  font-weight: 750;
}

.login-hint {
  line-height: 1.6;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 76px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  min-height: 30px;
  transform: translateY(-50%);
  border-radius: 6px;
  padding: 5px 10px;
  background: #eef3f8;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 750;
}

.login-card button[type="submit"] {
  min-height: 48px;
}

.login-card button:disabled {
  cursor: not-allowed;
  opacity: .68;
}

.login-msg {
  min-height: 20px;
  font-weight: 700;
}

.login-msg.error {
  color: var(--danger);
}

.login-caps {
  padding: 8px 10px;
  border: 1px solid #f2cf8d;
  border-radius: 8px;
  background: #fff8e8;
  color: var(--warning) !important;
  font-weight: 700;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  background: var(--nav);
  color: #e5e7eb;
  padding: 22px;
  overflow: auto;
}

.app-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 10px;
}

.app-brand b {
  display: block;
  font-size: 20px;
}

.app-brand span,
.user-box span {
  display: block;
  color: #9ca3af;
  margin-top: 4px;
}

nav {
  display: grid;
  gap: 8px;
}

.nav-group-title {
  margin: 8px 6px 0;
  color: #7f93a8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-group-title + .nav {
  margin-top: -2px;
}

.nav {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  justify-content: flex-start;
  background: transparent;
  color: #d1d5db;
  border: 1px solid transparent;
  padding: 11px 12px;
}

.nav span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #cbd5e1;
  font-size: 13px;
}

.nav.on {
  background: #fff;
  color: #111827;
}

.nav.on span {
  background: rgba(31, 118, 104, .12);
  color: var(--brand);
}

.user-box {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 16px;
  display: grid;
  gap: 12px;
}

.workspace {
  min-width: 0;
  padding: 26px;
  padding-bottom: 90px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
}

.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.top-actions,
.actions,
.filters,
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.month-picker {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 750;
  min-width: 180px;
}

.page {
  display: grid;
  gap: 20px;
}

.notice {
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff8eb;
  color: #9a5b00;
  border: 1px solid #f4d7aa;
  font-weight: 750;
}

.notice.success {
  display: grid;
  gap: 5px;
  background: #eef9f5;
  color: #155e52;
  border-color: #b9dfd2;
}

.notice.success span,
.notice.success small {
  color: #456760;
  font-weight: 650;
  line-height: 1.5;
}

.balance-details {
  display: grid;
  gap: 8px;
}

.balance-details summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
  list-style: none;
}

.balance-details summary::-webkit-details-marker {
  display: none;
}

.balance-details summary::after {
  content: "展开差额";
  justify-self: start;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(31, 118, 104, .1);
  color: var(--brand);
  font-size: 12px;
}

.balance-details[open] summary::after {
  content: "收起差额";
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
}

.metric {
  min-height: 126px;
  background: var(--surface);
  border: 1px solid #e4e9f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.metric span,
.metric em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.metric b {
  display: block;
  margin: 12px 0 8px;
  font-size: 30px;
  letter-spacing: 0;
}

.metric.primary {
  background: linear-gradient(135deg, #12352f, #1f7668);
  color: #fff;
}

.metric.primary.usd {
  background: linear-gradient(135deg, #14233d, #2f6a96);
}

.metric.primary span,
.metric.primary em {
  color: rgba(255, 255, 255, .76);
}

.metric.balance-ledger-source em {
  color: #9de0ca;
}

.metric.balance-snapshot-source em {
  color: #b8eee0;
}

.metric.warn b {
  color: var(--warning);
}

.metric-grid.mini {
  grid-template-columns: repeat(7, minmax(130px, 1fr));
}

.metric-grid.mini .metric {
  min-height: 104px;
  box-shadow: none;
}

.metric-grid.mini .metric b {
  font-size: 22px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.quick-layout {
  grid-template-columns: minmax(320px, 520px) 1fr;
}

.panel {
  background: var(--surface);
  border: 1px solid #e4e9f0;
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.panel-title {
  margin-bottom: 18px;
}

.panel-title.row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-title.compact {
  margin-top: 18px;
}

.panel-title h2,
.panel-title h3 {
  margin: 0;
}

.panel-title span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form.wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 750;
}

.form .full,
.full {
  grid-column: 1 / -1;
}

.form-msg {
  margin-top: 12px;
  min-height: 22px;
  font-weight: 750;
}

.form-msg.ok {
  color: var(--good);
}

.form-msg.error {
  color: var(--danger);
}

.import-result {
  margin: 16px 0;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #bddfd3;
  background: #eef9f5;
  color: #145a4d;
  font-weight: 750;
}

.import-result span,
.import-result em {
  display: block;
  color: #3f5f59;
  font-style: normal;
  line-height: 1.5;
}

.import-result.error {
  border-color: #f0bbb7;
  background: #fff2f1;
  color: var(--danger);
}

.import-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.import-actions button {
  min-width: 150px;
}

.import-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.import-preview-grid div,
.import-snapshot,
.anomaly-list span {
  border: 1px solid #cfe6dd;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  padding: 10px 12px;
}

.import-preview-grid span,
.import-preview-grid strong {
  display: block;
}

.import-preview-grid span {
  color: var(--muted);
  font-size: 13px;
}

.import-preview-grid strong {
  margin-top: 4px;
  color: var(--text);
}

.import-snapshot {
  margin-top: 4px;
  color: #174d45;
}

.anomaly-list {
  display: grid;
  gap: 8px;
}

.import-compare,
.import-report,
.restore-preview {
  display: grid;
  gap: 7px;
  border: 1px solid #cfe6dd;
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  padding: 12px 14px;
}

.import-report details {
  color: #385a53;
}

.import-report p {
  margin: 6px 0;
  color: #475569;
  font-weight: 650;
}

.import-report small {
  color: #64748b;
  line-height: 1.55;
}

.import-checklist {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7e9e2;
  border-radius: 12px;
  background: #f8fffb;
}

.import-checklist > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.import-checklist span {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #cfe6dd;
  background: #fff;
}

.import-checklist span.warn {
  border-color: #efd6a4;
  background: #fff8ea;
}

.import-checklist strong {
  color: var(--text);
}

.import-checklist em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-lookup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #d5e8e2;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7fffb, #eef8f5);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.quick-lookup b,
.quick-lookup span {
  display: block;
}

.quick-lookup span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.quick-lookup-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.quick-lookup-row button {
  flex: 0 0 auto;
  min-width: 96px;
  background: #fff;
  color: var(--brand);
  border: 1px solid #b8ddd1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
}

.highlight-card {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 112px;
  padding: 17px;
  border: 1px solid #dce5ee;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow);
}

.highlight-card span,
.highlight-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.highlight-card b {
  font-size: 20px;
}

.highlight-card.safe {
  border-color: #bfe2d5;
  background: linear-gradient(135deg, #ffffff, #f3fbf7);
}

.highlight-card.attention {
  border-color: #efd6a4;
  background: linear-gradient(135deg, #ffffff, #fff8ea);
}

.ledger-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(6, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}

.ledger-search-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 750;
}

.ledger-search-form.compact-form {
  grid-template-columns: minmax(220px, 1.5fr) minmax(160px, .8fr) repeat(3, auto);
  align-items: center;
}

.inline-check,
.check-line.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-weight: 800;
}

.quick-filter-row,
.detail-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.chip-filter {
  background: #eef3f8;
  color: var(--text);
  border: 1px solid var(--line);
}

.chip-filter.on {
  background: #e4f6ef;
  border-color: #9ed8c3;
  color: var(--brand);
}

.ledger-sort {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.danger-chip {
  background: #fff1f0;
  color: var(--danger);
  border-color: #f1beb9;
}

.search-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
}

.search-summary b {
  color: var(--text);
}

.active-filter-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
}

.active-filter-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef8f5;
  color: var(--brand);
  font-weight: 800;
}

.active-filter-tags button {
  padding: 7px 10px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
}

.active-filter-tags .active-filter-chip {
  background: #eef8f5;
  color: var(--brand);
  border-color: #c7e6de;
}

.active-filter-chip b {
  margin-left: 3px;
  font-size: 15px;
}

.quick-templates {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfd;
}

.quick-templates > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quick-templates > div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.quick-templates button {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  min-width: 112px;
  padding: 8px 10px;
  text-align: left;
}

.quick-templates button small {
  color: var(--muted);
  font-size: 11px;
}

.active-filter-tags em {
  font-style: normal;
  color: var(--muted);
}

.search-results {
  display: grid;
  gap: 12px;
}

.month-result-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce8f0;
  border-radius: 16px;
  background: #f8fbfd;
}

.month-result-group h3 {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.month-result-group h3 span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.object-rollup-list {
  display: grid;
  gap: 12px;
}

.object-rollup-item {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, .8fr) minmax(160px, .8fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.object-rollup-main b,
.object-rollup-main span,
.object-rollup-main small {
  display: block;
}

.object-rollup-main span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.object-rollup-main small {
  margin-top: 4px;
  color: #64748b;
  line-height: 1.45;
}

.object-rollup-item label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 750;
}

.search-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.search-card.review {
  border-color: #f3d4a2;
  background: #fffaf0;
}

.comment-card {
  border-color: #bfe3d8;
}

.trash-card {
  border-color: #f1beb9;
  background: #fffafa;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  align-items: start;
}

.history-item .tx-actions,
.trash-card .tx-actions {
  margin-top: 2px;
  justify-content: flex-start;
}

.search-card-head,
.search-money {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0;
  text-align: left;
}

.link-button b,
.link-button span {
  display: block;
}

.link-button span,
.search-money span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.search-money strong {
  font-size: 24px;
}

.object-meta-box {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) repeat(3, minmax(140px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #dce5ee;
  border-radius: 14px;
  background: #f8fbfd;
}

.object-meta-box b,
.object-meta-box span,
.object-meta-box label {
  display: block;
}

.object-meta-box span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.favorite-line {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: #334155;
  font-weight: 750;
}

.favorite-line input {
  width: 18px;
  min-height: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-day {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}

.timeline-day > b {
  color: var(--brand);
  padding-top: 10px;
}

.timeline-list {
  display: grid;
  gap: 8px;
  border-left: 2px solid #dce5ee;
  padding-left: 12px;
}

.timeline-list button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 11px 12px;
  border: 1px solid #e5ebf2;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.timeline-list span,
.timeline-list em {
  color: var(--muted);
  font-style: normal;
}

.timeline-list em {
  grid-column: 1 / -1;
}

.review-result,
.tx-extra.review-result summary {
  color: var(--good);
}

.check-line {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7fafc;
  border: 1px solid var(--line);
  color: #334155;
}

.check-line input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
}

.quick-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.quick-types button {
  background: #edf7f4;
  color: var(--brand);
  border: 1px solid #cce5dd;
}

.quick-types button.on {
  background: var(--brand);
  color: #fff;
}

.preview-box {
  padding: 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
}

.calc-hint {
  margin-top: -8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.daily-head {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.daily-head label,
.daily-column label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 750;
}

.daily-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.daily-column {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface-soft);
}

.daily-column h3 {
  margin: 0 0 4px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e7edf3;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #f7f9fc;
  color: #475569;
  font-size: 14px;
  z-index: 1;
}

.daily-table {
  min-width: 640px;
}

.daily-table td:first-child b,
.daily-table td:first-child span {
  display: block;
}

.daily-table td:first-child span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

.stats,
.simple-list {
  display: grid;
  gap: 10px;
}

.stat-row,
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid #e5ebf2;
  border-radius: 10px;
  background: #fbfdff;
}

.stat-button {
  width: 100%;
  color: var(--text);
  text-align: left;
}

.stat-button:hover {
  border-color: rgba(31, 118, 104, .35);
  background: #f6fbf9;
}

.stat-row b,
.list-item b {
  display: block;
}

.stat-row span,
.list-item span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.stat-row small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-top: 3px;
  line-height: 1.45;
}

.stat-row strong {
  font-size: 18px;
  text-align: right;
  min-width: 120px;
}

.stat-row strong span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 2px;
}

.empty,
.empty-cell {
  color: var(--muted);
  padding: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 800;
  font-size: 13px;
}

.pill.posted {
  color: var(--good);
  background: #eaf8f1;
}

.pill.review {
  color: var(--warning);
  background: #fff6df;
}

.pos {
  color: var(--good);
  font-weight: 800;
}

.neg {
  color: var(--danger);
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.note-inline,
.note-detail,
.tx-note,
.tx-extra {
  color: #475569;
  line-height: 1.55;
}

.note-detail summary,
.tx-note summary,
.tx-extra summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 750;
}

.note-detail p,
.tx-note p,
.tx-extra p {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.note-inline,
.tx-extra {
  display: block;
}

.note-inline + .note-inline,
.note-detail + .note-detail,
.tx-extra + .tx-extra {
  margin-top: 6px;
}

.comment,
.tx-extra.comment summary {
  color: #1f7668;
}

.review-note,
.tx-extra.review-note summary {
  color: var(--warning);
}

.tx-cards {
  display: none;
}

.tx-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.tx-card.review {
  border-color: #f3d4a2;
  background: #fffaf0;
}

.tx-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.tx-card-head b,
.tx-card-head span {
  display: block;
}

.tx-card-head span,
.tx-card-meta {
  color: var(--muted);
  line-height: 1.45;
}

.reconciliation-panel {
  margin-bottom: 18px;
}

.reconciliation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.reconciliation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.reconciliation-card.warn {
  border-color: #e8bf75;
  background: #fffaf1;
}

.reconciliation-card.ok {
  border-color: #b9d9cf;
  background: #f5fbf8;
}

.reconciliation-card > div:first-child,
.reconciliation-card dl > div,
.completeness-summary,
.sheet-audit summary,
.skipped-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.reconciliation-card small,
.reconciliation-card > span,
.sheet-audit summary span,
.skipped-row span,
.skipped-row small {
  color: var(--muted);
}

.reconciliation-card dl {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.reconciliation-card dt,
.reconciliation-card dd {
  margin: 0;
}

.reconciliation-card dd {
  font-weight: 700;
  text-align: right;
}

.completeness-list {
  margin-top: 18px;
}

.completeness-summary {
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.completeness-summary span {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.ok-text { color: var(--good) !important; }
.warn-text { color: #a76713 !important; }
.import-report .warn,
.month-check.warn {
  border-color: rgba(185, 121, 34, .35);
  background: #fff8ed;
}

.sheet-audit {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.sheet-audit summary {
  cursor: pointer;
  padding: 14px 15px;
  background: #fff;
}

.skipped-row {
  flex-wrap: wrap;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  background: #fffaf1;
}

.skipped-row small {
  flex-basis: 100%;
}

.note-detail.source,
.tx-extra.source {
  border-color: #c9d6e3;
  background: #f5f8fb;
}

.integrity-status,
.subsection-title,
.variance-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.integrity-status {
  margin-top: 16px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.integrity-status.ok { border-color: #b9d9cf; background: #f5fbf8; }
.integrity-status.warning { border-color: #e8bf75; background: #fffaf1; }
.integrity-status div { display: grid; gap: 3px; }
.integrity-status span,
.integrity-status small,
.subsection-title span { color: var(--muted); }

.daily-integrity-calendar,
.variance-candidates {
  margin-top: 18px;
}

.integrity-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.integrity-day {
  display: grid;
  gap: 3px;
  min-height: 78px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.integrity-day.imported { border-color: #b9d9cf; background: #f5fbf8; }
.integrity-day.skipped { border-color: #e8a99f; background: #fff5f3; }
.integrity-day.empty { color: var(--muted); background: var(--surface-soft); }
.integrity-day span,
.integrity-day small { font-size: 12px; }

.integrity-day-main {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.integrity-day-main em {
  color: var(--warning);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.integrity-day.resolution-confirmed,
.integrity-day.resolution-fixed {
  border-color: #b9d9cf;
  background: #f2faf7;
}

.integrity-day.resolution-confirmed .integrity-day-main em,
.integrity-day.resolution-fixed .integrity-day-main em {
  color: var(--good);
}

.integrity-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
}

.integrity-actions button {
  min-height: 28px;
  padding: 4px 5px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 10px;
}

.integrity-actions button:only-child {
  grid-column: 1 / -1;
}

.variance-list,
.import-change-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.variance-list summary,
.import-change-list summary {
  cursor: pointer;
  padding: 13px 15px;
  background: #fffaf1;
}

.variance-list > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  width: 100%;
  padding: 12px 15px;
  color: var(--text);
  text-align: left;
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
}

.variance-list > button small { grid-column: 1 / -1; color: var(--muted); }
.compact-notice { margin: 0; padding: 12px 14px; }
.import-change-list { margin-top: 8px; }
.import-change-list p { margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }

@media (max-width: 700px) {
  .reconciliation-grid {
    grid-template-columns: 1fr;
  }

  .reconciliation-card {
    padding: 14px;
  }

  .completeness-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .completeness-summary b {
    grid-column: 1 / -1;
  }

  .completeness-summary span {
    padding-left: 0;
    border-left: 0;
  }

  .sheet-audit summary,
  .skipped-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .integrity-status,
  .subsection-title,
  .variance-list summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .integrity-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .integrity-day {
    min-height: 72px;
  }

  .variance-list > button {
    grid-template-columns: 1fr;
  }
}

.tx-card-money {
  font-size: 24px;
  line-height: 1.1;
}

.tx-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.tx-card-actions {
  justify-content: flex-start;
}

.tx-mobile-money {
  display: grid;
  gap: 6px;
}

.money-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tx-mobile-money strong {
  font-size: 25px;
  line-height: 1.1;
}

.tx-mobile-money small {
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
  color: var(--muted);
  line-height: 1.45;
}

.tx-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tx-badges span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef3f8;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.tx-badges .comment {
  background: #e4f6ef;
  color: #1f7668;
}

.tx-badges .review {
  background: #fff4dc;
  color: #9a6700;
}

.tx-badges .attach {
  background: #eaf1ff;
  color: #335ea8;
}

.tx-badges .raw {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-menu {
  position: relative;
  justify-self: end;
}

.tx-menu summary {
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.tx-menu summary::-webkit-details-marker {
  display: none;
}

.tx-menu-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 8;
  display: grid;
  gap: 6px;
  min-width: 138px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .16);
}

.tx-menu-list button {
  width: 100%;
  justify-content: center;
}

.attach-link {
  display: inline-block;
  margin-left: 6px;
  color: var(--brand);
  font-weight: 800;
}

.file-line input,
.file-button input {
  display: none;
}

.file-button,
.file-line {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fbfdff;
  cursor: pointer;
}

.attachment-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.attachment-preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list span {
  padding: 14px;
  border-radius: 10px;
  background: #f2faf7;
  color: var(--brand);
  font-weight: 800;
}

.bottom-nav {
  display: none;
}

.mobile-more-panel {
  display: none;
}

.mobile-more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mobile-more-grid button {
  min-height: 44px;
  background: #f8fbfd;
  color: var(--text);
  border: 1px solid var(--line);
}

.mobile-filter-toggle {
  display: none;
}

.draft-hint {
  min-height: 18px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.mobile-filter-sheet {
  display: contents;
}

.mobile-filter-sheet-head,
.mobile-filter-apply,
.mobile-filter-backdrop {
  display: none;
}

.copy-source-btn {
  width: auto;
  margin: 6px 0 2px;
  padding: 6px 10px;
  border: 1px solid #b8d9d1;
  background: #edf9f6;
  color: var(--brand);
  font-size: 12px;
}

.copy-source-btn.inline {
  margin: 0 0 0 6px;
  vertical-align: middle;
}

.load-more-cards {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
}

.load-more-cards span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
}

.update-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #b8d9d1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.update-notice span {
  font-weight: 800;
}

.update-notice button {
  padding: 8px 11px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: rgba(15, 23, 42, .42);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(780px, calc(100vw - 34px));
  height: 100%;
  overflow: auto;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 55px rgba(15, 23, 42, .18);
  padding: 22px;
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.drawer-head h2,
.drawer-head p {
  margin: 0;
}

.drawer-head p {
  margin-top: 6px;
  color: var(--muted);
}

.object-detail {
  display: grid;
  gap: 18px;
}

.detail-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-section {
  display: grid;
  gap: 12px;
}

.comment-list,
.detail-tx-list {
  display: grid;
  gap: 10px;
}

.tx-detail-body {
  display: grid;
  gap: 16px;
}

.tx-detail-summary,
.tx-detail-notes,
.review-summary {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.tx-detail-summary.review,
.review-card {
  border-color: #f0d6a5;
  background: #fffaf0;
}

.tx-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tx-detail-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fbfd;
}

.tx-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.tx-detail-grid strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.review-card .search-card-head {
  align-items: flex-start;
}

.review-card .tx-menu {
  align-self: start;
}

.comment-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  color: var(--text);
  text-align: left;
}

.comment-item span {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .app {
    grid-template-columns: 240px 1fr;
  }
  .metric-grid,
  .metric-grid.mini,
  .detail-metrics,
  .import-preview-grid,
  .import-checklist > div,
  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ledger-search-form,
  .object-meta-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.two,
  .grid.quick-layout,
  .daily-box {
    grid-template-columns: 1fr;
  }
  .form.wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .login-screen {
    padding: 14px;
    align-items: start;
  }
  .login-shell {
    grid-template-columns: 1fr;
    width: 100%;
    border-radius: 18px;
  }
  .login-brand {
    padding: 28px;
  }
  .login-brand h1 {
    margin-top: 22px;
    font-size: 30px;
  }
  .login-brand p {
    line-height: 1.65;
  }
  .login-points {
    margin-top: 20px;
    gap: 8px;
  }
  .login-points span {
    padding: 7px 10px;
    font-size: 14px;
  }
  .login-card {
    padding: 28px 22px 30px;
    gap: 14px;
  }
  .login-card h2 {
    font-size: 25px;
  }
  .password-toggle {
    right: 7px;
  }
  .app {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    display: block;
    padding: 10px 14px 12px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
  .app-brand {
    gap: 12px;
    padding: 6px 4px 8px;
  }
  .app-brand .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 19px;
    flex: 0 0 auto;
  }
  .app-brand b {
    max-width: calc(100vw - 106px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 20px;
    line-height: 1.15;
  }
  .app-brand span {
    margin-top: 2px;
    font-size: 13px;
  }
  .sidebar nav {
    display: none;
  }
  .user-box {
    display: none;
  }
  .workspace {
    padding: 10px;
    padding-bottom: 82px;
  }
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }
  .topbar h1 {
    font-size: 22px;
    line-height: 1.08;
  }
  .topbar p {
    display: none;
    line-height: 1.45;
  }
  .top-actions,
  .filters,
  .actions {
    width: 100%;
  }
  .top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(4, 42px);
    gap: 7px;
    align-items: end;
  }
  .top-actions > *,
  .filters > *,
  .actions > * {
    flex: 1 1 auto;
  }
  .top-actions .month-picker,
  .top-actions button {
    width: 100%;
    min-width: 0;
  }
  .month-picker {
    min-width: 0;
    display: block;
    font-size: 0;
  }
  .month-picker input {
    min-height: 42px;
    font-size: 15px;
    text-align: center;
    padding-inline: 8px;
  }
  .top-actions #installPwaBtn {
    grid-column: 1 / -1;
  }
  .top-actions #refreshBtn {
    grid-column: 2;
  }
  .top-actions #hideAmountsBtn {
    grid-column: 3;
  }
  .top-actions #screenshotModeBtn {
    grid-column: 4;
  }
  .top-actions #quickLockBtn {
    grid-column: 5;
  }
  .desktop-label {
    display: none;
  }
  .mobile-label {
    display: inline;
  }
  .secure-dialog,
  .lock-card {
    padding: 22px;
    border-radius: 16px;
  }
  .top-actions button,
  .month-picker input {
    min-height: 42px;
    padding: 7px 8px;
    border-radius: 10px;
  }
  .top-actions .privacy-button,
  .top-actions #quickLockBtn {
    min-height: 40px;
    font-size: 13px;
  }
  .page {
    gap: 14px;
  }
  .notice {
    padding: 9px 10px;
    border-radius: 12px;
  }
  .notice.success {
    gap: 4px;
  }
  .notice.success b {
    font-size: 16px;
  }
  .notice.success span {
    font-size: 14px;
    line-height: 1.55;
  }
  .notice.success small {
    display: none;
  }
  .balance-details {
    gap: 5px;
  }
  .balance-details summary::after {
    content: "详情";
    padding: 2px 7px;
  }
  .balance-details[open] summary::after {
    content: "收起";
  }
  .balance-details[open] small {
    display: block;
    font-size: 13px;
    line-height: 1.55;
  }
  .panel {
    padding: 14px;
    border-radius: 12px;
  }
  .panel-title.row {
    display: grid;
  }
  .metric-grid,
  .metric-grid.mini,
  .detail-metrics,
  .import-preview-grid,
  .import-checklist > div,
  .highlight-grid,
  .ledger-search-form,
  .ledger-search-form.compact-form,
  .object-meta-box,
  .form,
  .form.wide,
  .daily-head,
  .quick-types {
    grid-template-columns: 1fr;
  }
  .metric {
    min-height: 88px;
    padding: 12px;
    border-radius: 13px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  #dashboard .metric-grid .metric:nth-child(n+4) {
    display: none;
  }
  #dashboard .metric-grid .metric:nth-child(9) {
    display: block;
    order: 3;
  }
  #dashboard .metric-grid .metric:nth-child(3) {
    order: 4;
    display: block;
  }
  .metric b {
    margin: 7px 0 5px;
    font-size: 20px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
  .metric span,
  .metric em {
    line-height: 1.35;
  }
  .metric em {
    font-size: 13px;
  }
  .mobile-more-panel {
    display: grid;
  }
  .mobile-more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .highlight-card {
    min-height: auto;
  }
  .quick-lookup {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 12px;
  }
  .quick-lookup > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }
  .quick-lookup > div:first-child span {
    margin-top: 0;
    font-size: 12px;
  }
  .quick-lookup-row {
    margin: 0 -12px;
    padding: 0 12px 4px;
  }
  .quick-lookup-row button {
    min-width: 74px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 14px;
  }
  .quick-filter-row,
  .detail-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-panel .panel-title.row {
    gap: 12px;
  }
  #search .panel-title h2 {
    font-size: 20px;
  }
  #search .panel-title span {
    display: none;
  }
  #search .actions {
    grid-template-columns: 1fr 1fr 1fr;
    display: grid;
  }
  #search .actions .ledger-sort {
    grid-column: 1 / -1;
    min-height: 44px;
    font-size: 15px;
  }
  #search .ledger-search-form .wide-field input {
    min-height: 50px;
    border-radius: 16px;
    font-size: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  }
  .mobile-filter-toggle {
    display: inline-flex;
  }
  .ledger-search-form label:not(.wide-field),
  .quick-filter-row {
    display: none;
  }
  .search-panel.mobile-filters-open .ledger-search-form label:not(.wide-field) {
    display: grid;
  }
  .search-panel.mobile-filters-open .quick-filter-row {
    display: grid;
  }
  .active-filter-tags {
    padding: 10px;
    border-radius: 12px;
    background: #f8fbfd;
  }
  .search-summary {
    position: sticky;
    top: 0;
    z-index: 3;
    border: 1px solid var(--line);
    background: rgba(248, 251, 253, .96);
    backdrop-filter: blur(10px);
  }
  .chip-filter,
  .quick-filter-row button,
  .detail-filter-row button {
    width: 100%;
  }
  .search-card-head,
  .search-money {
    display: grid;
  }
  .search-card,
  .tx-card {
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  }
  .search-card-head .link-button b,
  .tx-card-head b {
    font-size: 17px;
  }
  .month-result-group {
    margin: 0 -2px;
    padding: 10px;
    border-radius: 18px;
  }
  .month-result-group h3 {
    font-size: 16px;
  }
  .comment-card,
  .trash-card,
  .history-item,
  .review-card {
    padding: 14px;
  }
  .ledger-search-form.compact-form .inline-check {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }
  .search-money strong {
    font-size: 22px;
  }
  .object-rollup-item {
    grid-template-columns: 1fr;
    align-items: stretch;
    border-radius: 18px;
  }
  .object-rollup-item button {
    width: 100%;
  }
  .timeline-day {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .timeline-list {
    border-left: 0;
    padding-left: 0;
  }
  .timeline-list button {
    grid-template-columns: 1fr;
  }
  .favorite-line {
    justify-content: flex-start;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  #records .table-wrap {
    display: none;
  }
  .tx-cards {
    display: grid;
    gap: 12px;
  }
  .tx-card {
    border-radius: 16px;
    padding: 13px;
  }
  .tx-card-head {
    align-items: flex-start;
  }
  .tx-mobile-money strong {
    font-size: 22px;
  }
  .tx-mobile-money {
    padding: 10px;
    border-radius: 14px;
    background: #f8fbfd;
    border: 1px solid #e2e8f0;
  }
  .tx-mobile-money small {
    gap: 5px 8px;
    font-size: 12px;
  }
  .tx-badges {
    gap: 6px;
  }
  .tx-badges span {
    max-width: 100%;
  }
  .tx-menu {
    justify-self: stretch;
  }
  .tx-menu summary {
    margin-left: auto;
  }
  .tx-menu-list {
    left: auto;
    right: 0;
    bottom: calc(100% + 6px);
    min-width: 158px;
  }
  .tx-menu-list button {
    min-height: 38px;
    font-size: 14px;
  }
  .stat-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .stat-row strong {
    min-width: 0;
    text-align: left;
  }
  .drawer-panel {
    inset: 0;
    width: 100%;
    padding: 16px;
    padding-bottom: 90px;
    border-left: 0;
  }
  .tx-detail-panel {
    background: linear-gradient(180deg, #f5f8fb, #fff);
  }
  .tx-detail-body {
    gap: 12px;
  }
  .tx-detail-grid {
    grid-template-columns: 1fr;
  }
  .tx-detail-summary,
  .tx-detail-notes,
  .review-summary {
    padding: 14px;
    border-radius: 18px;
  }
  #review .panel-title.row {
    gap: 10px;
  }
  #review .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  #review .actions button {
    width: 100%;
  }
  .drawer-head {
    align-items: center;
    display: flex;
    flex-direction: row;
  }
  .drawer-head button {
    width: auto;
  }
  .import-actions button {
    width: 100%;
  }
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px rgba(15, 23, 42, .08);
  }
  .bottom-nav button {
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    min-height: 56px;
    padding: 7px 3px calc(8px + env(safe-area-inset-bottom));
    font-size: 12px;
    font-weight: 850;
  }
  .bottom-nav button.on {
    color: var(--brand);
    background: #eef8f5;
  }
  .offline-banner {
    top: 8px;
    font-size: 12px;
    padding: 8px 10px;
  }
  .mobile-toast {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

/* V6.99: a projection warning must stay compact and must not replace the
   dashboard cards with a full-width error state. */
.dashboard-projection-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
  padding: 10px 14px;
  border: 1px solid #e8c989;
  border-radius: 12px;
  background: #fff9eb;
  color: #805d21;
  font-size: 13px;
}
.dashboard-projection-notice.hidden { display: none; }
.dashboard-projection-notice button { flex: 0 0 auto; }
@media (max-width: 760px) {
  .dashboard-projection-notice { align-items: stretch; flex-direction: column; gap: 8px; }
  .dashboard-projection-notice button { width: 100%; }
}


.security-block {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-soft, #f8fafc);
}
.security-block h3 { margin: 0 0 8px; font-size: 16px; }
.checkup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.checkup-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.checkup-card b { display: block; margin-bottom: 6px; }
.checkup-card.ok { border-color: rgba(58, 128, 110, .35); }
.checkup-card.warn { border-color: rgba(185, 121, 34, .45); background: #fff8ed; }
.totp-box { margin-top: 12px; display: grid; gap: 10px; }
.totp-secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 10px; border-radius: 10px; background: #111827; color: #fff; word-break: break-all; }
.recovery-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.recovery-codes code { padding: 6px 8px; border-radius: 8px; background: #eef2f7; }
.break-all { word-break: break-all; }
#backupBtn.hidden { display: none; }
@media (max-width: 720px) {
  .checkup-grid { grid-template-columns: 1fr; }
  .security-block { padding: 14px; }
}

@media (max-width: 760px) {
  body.filter-sheet-open {
    overflow: hidden;
  }

  .mobile-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 79;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: rgba(15, 23, 42, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  body.filter-sheet-open .mobile-filter-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-filter-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: block;
    max-height: min(82vh, 720px);
    padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -18px 45px rgba(15, 23, 42, .2);
    transform: translateY(105%);
    transition: transform .22s ease;
  }

  .search-panel.mobile-filters-open .mobile-filter-sheet {
    transform: translateY(0);
  }

  .mobile-filter-sheet-head {
    position: sticky;
    top: -12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -12px -14px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
  }

  .mobile-filter-sheet-head b {
    font-size: 18px;
  }

  .mobile-filter-sheet .ledger-search-form,
  .mobile-filter-sheet .quick-filter-row {
    display: grid;
  }

  .mobile-filter-sheet .ledger-search-form label,
  .search-panel.mobile-filters-open .mobile-filter-sheet .ledger-search-form label:not(.wide-field) {
    display: grid;
  }

  .mobile-filter-sheet .active-filter-tags {
    margin: 12px 0;
  }

  .mobile-filter-apply {
    position: sticky;
    bottom: 0;
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    box-shadow: 0 -8px 18px rgba(255, 255, 255, .95);
  }

  .update-notice {
    left: 12px;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    flex-wrap: wrap;
  }

  .update-notice span {
    flex: 1 0 100%;
  }
}
.audit-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;align-items:center}.audit-toolbar input{width:auto;min-width:130px}.attachment-gallery{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.attachment-thumb{position:relative;width:88px;height:72px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--panel);display:block}.attachment-thumb img{width:100%;height:100%;object-fit:cover;display:block}.attachment-thumb span{position:absolute;left:0;right:0;bottom:0;padding:3px 5px;background:rgba(0,0,0,.58);color:#fff;font-size:11px}.restore-drill-report{display:grid;gap:6px;padding:12px;margin-top:10px;border:1px solid var(--line);border-radius:10px}.drill-ok{color:#16834a}.drill-fail{color:#c43d3d}@media(max-width:700px){.audit-toolbar{display:grid;grid-template-columns:1fr 1fr}.audit-toolbar input{width:100%;min-width:0}.audit-toolbar .audit-filter{grid-column:1/-1}.attachment-thumb{width:76px;height:64px}}
.app-version{font-size:12px!important;color:#74d3bf!important}.mobile-version{display:none;margin-top:4px;color:var(--brand);font-size:12px;font-weight:700}.today-todo-panel{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;margin-bottom:14px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(135deg,#fff,#f5fbf9)}.today-todo-panel>div:first-child{display:grid;gap:3px}.today-todo-panel span,.today-todo-panel em{color:var(--muted);font-style:normal;font-size:13px}.today-todo-panel b{font-size:18px}.today-todo-actions{display:flex;gap:8px;flex-wrap:wrap}.today-todo-actions button{padding:8px 10px}.today-todo-actions .safe{background:#e8f7ef;color:#167047}.today-todo-actions .attention{background:#fff0dd;color:#a25c00}.review-batch-bar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px;margin:10px 0;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.review-select{display:flex;align-items:center;gap:4px;font-size:12px}.review-select input{width:auto}.attachment-lightbox{position:fixed;inset:0;z-index:1200;background:rgba(4,10,18,.94);display:flex;align-items:center;justify-content:center}.attachment-lightbox.hidden{display:none}.attachment-lightbox img{max-width:90vw;max-height:82vh;object-fit:contain;touch-action:pan-y}.attachment-lightbox-close{position:absolute;right:18px;top:18px}.attachment-nav{position:absolute;top:45%;font-size:36px;padding:12px;background:rgba(255,255,255,.16)}.attachment-nav.prev{left:18px}.attachment-nav.next{right:18px}.attachment-lightbox-actions{position:absolute;bottom:18px;display:flex;gap:12px;align-items:center;color:#fff}.history-compare{margin:8px 0}.history-compare>div{display:grid;grid-template-columns:100px 1fr 1fr;gap:8px;padding:7px;border-top:1px solid var(--line)}.history-compare .before{color:#9b3c3c}.history-compare .after{color:#167047}@media(max-width:760px){.app-version{display:none!important}.mobile-version{display:inline-block}.today-todo-panel{display:grid;padding:12px}.today-todo-actions{display:grid;grid-template-columns:1fr 1fr}.review-batch-bar{position:sticky;top:0;z-index:4;background:#fff}.review-batch-bar button{flex:1}.attachment-nav{display:none}.attachment-lightbox img{max-width:100vw;max-height:78vh}.history-compare>div{grid-template-columns:1fr}.history-compare>div b{grid-column:1/-1}}
.armenia-clock{padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--muted);font-weight:700;white-space:nowrap}.stats .empty button{margin-top:8px}@media(max-width:760px){.armenia-clock{width:100%;text-align:center;font-size:12px}.top-actions{align-items:stretch}}

.month-close-wizard{margin:14px 0;display:grid;gap:12px}.month-wizard-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,#f5fbf9,#fff)}.month-wizard-head div{display:grid;gap:4px}.month-wizard-head b{font-size:17px}.month-wizard-head span{font-size:13px;color:var(--muted)}.month-wizard-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.month-wizard-step{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;text-align:left;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--text)}.month-wizard-step em{width:26px;height:26px;display:grid;place-items:center;border-radius:999px;background:var(--soft);font-style:normal;font-weight:800}.month-wizard-step span{display:grid;gap:2px}.month-wizard-step small{color:var(--muted);font-size:12px}.month-wizard-step strong{font-size:12px;padding:5px 8px;border-radius:999px;background:#eef5f2;color:var(--brand)}.month-wizard-step.done{border-color:#bfe4d6;background:#f6fcf9}.month-wizard-step.review,.month-wizard-step.blocked{border-color:#f0c38c;background:#fff8ee}.month-wizard-step.review strong,.month-wizard-step.blocked strong{background:#fff0dd;color:#a25c00}.month-wizard-step.todo strong{background:#eef5ff;color:#2661a8}.reconciliation-issues{margin:12px 0}.reconciliation-issue-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}.reconciliation-issue-list>div{display:grid;gap:4px;padding:12px;border-radius:13px;border:1px solid var(--line);background:#fff}.reconciliation-issue-list b{font-size:14px}.reconciliation-issue-list span{color:var(--muted);font-size:12px}.reconciliation-issue-list .warning,.reconciliation-issue-list .review{border-color:#f0c38c;background:#fff8ee}.date-variance button{width:100%;display:grid;grid-template-columns:1fr auto;text-align:left;gap:8px;padding:10px 12px;border-top:1px solid var(--line);background:#fff;color:var(--text)}.date-variance button span{color:var(--muted);font-size:12px}@media(max-width:760px){.month-wizard-head{display:grid}.month-wizard-head button{width:100%}.month-wizard-steps{grid-template-columns:1fr}.month-wizard-step{grid-template-columns:auto 1fr}.month-wizard-step strong{grid-column:2}.reconciliation-issue-list{grid-template-columns:1fr}.date-variance button{grid-template-columns:1fr}}
.month-close-status{margin:14px 0}.month-close-state{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;border:1px solid var(--line);border-radius:16px;padding:12px 14px;background:#fff}.month-close-state strong{font-size:16px}.month-close-state span{font-size:13px;color:var(--muted);background:#f4f7f6;border-radius:999px;padding:5px 9px}.month-close-state.green{border-color:#bfe4d6;background:#f6fcf9}.month-close-state.green strong{color:#167047}.month-close-state.yellow{border-color:#f0c38c;background:#fff8ee}.month-close-state.yellow strong{color:#a25c00}.month-close-state.red{border-color:#f0b4b4;background:#fff5f5}.month-close-state.red strong{color:#bf3b3b}.month-close-state .month-close-warning{background:#fff0dd;color:#a25c00}.import-checklist span.yellow{border-color:#f0c38c;background:#fff8ee}.import-checklist span.yellow strong{color:#a25c00}.import-checklist span.red{border-color:#f0b4b4;background:#fff5f5}.import-checklist span.red strong{color:#bf3b3b}.final-import-badge{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;border-radius:999px;padding:5px 9px;background:#f1fbf5;color:#167047;border:1px solid #bfe4d6;font-weight:700}@media(max-width:760px){.month-close-state{display:grid}.month-close-state span,.final-import-badge{width:100%;border-radius:12px}}
.month-close-home-card{margin:12px 0}.month-close-home{width:100%;display:grid;gap:6px;text-align:left;border:1px solid var(--line);border-radius:18px;padding:14px;background:#fff;color:var(--text)}.month-close-home span{font-size:12px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}.month-close-home b{font-size:18px}.month-close-home em,.month-close-home small{font-style:normal;color:var(--muted)}.month-close-home.green{border-color:#bfe4d6;background:#f6fcf9}.month-close-home.yellow{border-color:#f0c38c;background:#fff8ee}.month-close-home.red{border-color:#f0b4b4;background:#fff5f5}.month-review-card{border:1px solid var(--line);border-radius:18px;background:#fff;padding:14px;margin:14px 0;display:grid;gap:12px}.month-review-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.month-review-head>div:first-child{display:grid;gap:4px}.month-review-head b{font-size:17px}.month-review-head span{font-size:13px;color:var(--muted)}.month-review-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.month-review-tile{display:grid;gap:5px;text-align:left;border:1px solid var(--line);border-radius:15px;background:#fbfefd;color:var(--text);padding:12px}.month-review-tile span{font-size:12px;color:var(--muted)}.month-review-tile b{font-size:17px}.month-review-tile em{font-style:normal;color:var(--muted);font-size:12px}.month-review-tile.safe{border-color:#bfe4d6;background:#f6fcf9}.month-review-tile.warn,.month-review-tile.yellow{border-color:#f0c38c;background:#fff8ee}.month-review-tile.red{border-color:#f0b4b4;background:#fff5f5}.month-review-detail,.month-review-result{border-top:1px solid var(--line);padding-top:12px;display:grid;gap:8px}.review-line{display:grid;gap:3px;border:1px solid var(--line);border-radius:12px;padding:10px;background:#fbfefd}.review-line.compact{grid-template-columns:1fr auto;align-items:center}.review-line span,.review-line small{color:var(--muted)}.note-template{width:100%;min-height:180px;border:1px solid var(--line);border-radius:12px;padding:10px;background:#fbfefd;color:var(--text)}.verify-result{display:grid;gap:6px;border:1px solid var(--line);border-radius:12px;padding:12px}.verify-result.safe{border-color:#bfe4d6;background:#f6fcf9}.verify-result.warn{border-color:#f0c38c;background:#fff8ee}.verify-result span,.verify-result small{color:var(--muted)}@media(max-width:900px){.month-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.month-review-head{display:grid}.month-review-head .actions{display:grid;grid-template-columns:1fr 1fr}}@media(max-width:560px){.month-review-grid{grid-template-columns:1fr}.month-review-head .actions{grid-template-columns:1fr}.month-review-tile{min-height:86px}}
.settlement-form{grid-template-columns:repeat(4,minmax(0,1fr))}.settlement-form .full{grid-column:1/-1}.settlement-rows{display:grid;gap:10px}.settlement-row{display:grid;grid-template-columns:1.1fr .8fr .8fr .8fr 1.4fr auto;gap:8px;align-items:end;border:1px solid var(--line);border-radius:14px;padding:10px;background:#fbfefd}.settlement-row label{display:grid;gap:4px;font-size:12px;color:var(--muted)}.settlement-row input{min-width:0}.settlement-row .wide{min-width:0}.metric.warn{border-color:#f0c38c;background:#fff8ee}.notice.hidden{display:none}.notice{margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#f8fbfa;color:var(--muted)}@media(max-width:1100px){.settlement-form{grid-template-columns:repeat(2,minmax(0,1fr))}.settlement-row{grid-template-columns:repeat(2,minmax(0,1fr))}.settlement-row button{grid-column:1/-1}}@media(max-width:680px){.settlement-form{grid-template-columns:1fr}.settlement-row{grid-template-columns:1fr}.settlement-row .wide{grid-column:auto}}
.settlement-workflow{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fbfefd}.workflow-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.workflow-head span{color:var(--muted);font-size:13px}.workflow-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.workflow-step{display:grid;gap:4px;text-align:left;border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px}.workflow-step span{font-size:12px;color:var(--muted)}.workflow-step.done{border-color:#bfe6d7;background:#effaf5}.workflow-step.review{border-color:#f4c98b;background:#fff8ee}.workflow-step.todo{opacity:.82}@media(max-width:760px){.workflow-head{display:grid}.workflow-steps{grid-template-columns:1fr 1fr}}
.yearly-dashboard{display:grid;gap:12px;margin:12px 0}.yearly-dashboard h3{margin:0 0 8px}
.template-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}.settings-details{border:1px solid var(--line);border-radius:12px;padding:10px;background:#fbfefd}.settings-details summary{cursor:pointer;font-weight:800}.mapping-form{margin-top:10px}
.import-strip{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:10px 0 12px;padding:12px;border:1px dashed var(--line);border-radius:14px;background:#f8fbfa}.import-strip label{display:grid;gap:5px;font-size:13px;color:var(--muted)}.import-strip input[type=file]{max-width:280px}.import-strip small{flex-basis:100%;color:var(--muted)}@media(max-width:680px){.import-strip{display:grid}.import-strip input[type=file]{max-width:100%}}
.notice.warn{border-color:#f0c38c;background:#fff8ee;color:#6f4a12}.notice ul{margin:6px 0 0 18px;padding:0}.import-log-card{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fbfefd}.import-log-card>div:first-child{display:grid;gap:4px}.import-log-card span,.import-log-card small{color:var(--muted);font-size:12px}.import-log-card.muted{opacity:.68}.import-log-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);text-decoration:none;font-weight:800}.button.secondary{background:#eef5f2;color:var(--brand)}.warn-text{color:#a25c00!important}@media(max-width:680px){.import-log-card{display:grid}.import-log-actions{display:grid;grid-template-columns:1fr}.import-log-actions button,.import-log-actions .button{width:100%}}

@media (max-width:760px){
  #dashboard .topbar{margin-bottom:4px}
  #dashboard .topbar h1{font-size:24px}
  #dashboard .top-actions{grid-template-columns:minmax(0,1fr) minmax(96px,.62fr) repeat(4,38px);align-items:stretch;gap:6px}
  #dashboard .top-actions #installPwaBtn{display:none}
  #dashboard .top-actions .month-picker{grid-column:2}
  #dashboard .top-actions .armenia-clock{grid-column:1;min-height:38px;padding:8px 9px;overflow:hidden;text-overflow:ellipsis}
  #dashboard .top-actions #refreshBtn,#dashboard .top-actions #hideAmountsBtn,#dashboard .top-actions #screenshotModeBtn,#dashboard .top-actions #quickLockBtn{min-height:38px;padding:6px 4px;font-size:13px}
  #dashboard .metric-grid{gap:8px}
  #dashboard .metric-grid .metric{min-height:82px;padding:12px 14px}
  #dashboard .metric-grid .metric b{font-size:20px;margin:6px 0 4px}
  #dashboard .metric-grid .metric span,#dashboard .metric-grid .metric em{font-size:12px}
  #dashboard .notice.success{padding:12px 14px}
  #dashboard .quick-lookup{overflow:hidden}
  #dashboard .quick-lookup-row{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  #dashboard .quick-lookup-row::-webkit-scrollbar{display:none}
  #dashboard .today-todo-panel{padding:11px 12px;gap:9px}
  #dashboard .today-todo-panel b{font-size:17px}
  #dashboard .today-todo-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  #dashboard .today-todo-actions button{min-height:36px;padding:7px 8px;font-size:13px}
}

@media (max-width:760px){
  .topbar{gap:6px;margin-bottom:6px}
  .topbar>div:first-child{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
  .topbar h1{font-size:23px!important}
  .topbar .mobile-version{margin:0 0 2px;font-size:12px}
  .topbar .top-actions{display:grid!important;grid-template-columns:minmax(0,1fr) 116px 38px 38px 38px!important;gap:6px!important;align-items:center!important;width:100%}
  .topbar .top-actions #installPwaBtn,.topbar .top-actions #screenshotModeBtn{display:none!important}
  .topbar .top-actions .armenia-clock{grid-column:1!important;width:auto!important;min-width:0!important;min-height:38px!important;border:0!important;background:transparent!important;padding:9px 0!important;text-align:left!important;font-size:12px!important;line-height:1.2!important;color:#697a77!important;box-shadow:none!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .topbar .top-actions .month-picker{grid-column:2!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;height:38px!important;padding:0!important;border:1px solid #d9e5e1!important;border-radius:14px!important;background:#fff!important;font-size:0!important;box-shadow:0 6px 18px rgba(20,35,45,.06)!important}
  .topbar .top-actions .month-picker input{min-height:36px!important;height:36px!important;border:0!important;background:transparent!important;padding:0 6px!important;text-align:center!important;font-size:14px!important;font-weight:900!important;color:var(--text)!important}
  .topbar .top-actions #refreshBtn{grid-column:3!important}
  .topbar .top-actions #hideAmountsBtn{grid-column:4!important}
  .topbar .top-actions #quickLockBtn{grid-column:5!important}
  .topbar .top-actions button{width:38px!important;min-width:38px!important;min-height:38px!important;height:38px!important;padding:0!important;border-radius:14px!important;font-size:13px!important;font-weight:900!important;box-shadow:0 6px 18px rgba(20,35,45,.06)!important}
  .topbar .top-actions button .desktop-label{display:none!important}
  .topbar .top-actions button .mobile-label{display:inline!important}
  #dashboard .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  #dashboard .metric-grid .metric{min-height:76px!important;padding:11px 13px!important;border-radius:14px!important}
  #dashboard .metric-grid .metric b{font-size:19px!important;margin:5px 0 3px!important}
  #dashboard .metric-grid .metric span,#dashboard .metric-grid .metric em{font-size:12px!important}
  #dashboard .quick-lookup{padding:12px 13px!important}
  #dashboard .quick-lookup-row button{min-height:34px!important;min-width:auto!important;padding:6px 13px!important;font-size:14px!important}
}

.mobile-ops-panel{display:none}
.month-shortcut-bar{display:none}
.dashboard-perf-bar{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:8px 0 12px;padding:8px 11px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.82);color:var(--muted);font-size:12px}
.dashboard-perf-bar.hidden{display:none}
.dashboard-perf-bar.warn{border-color:#f0c38c;background:#fff8ee;color:#8a5a12}
.dashboard-perf-bar span{font-weight:800;color:var(--text)}
.dashboard-perf-bar em{font-style:normal}
.dashboard-perf-bar button{min-height:28px;padding:3px 8px;border-radius:999px;font-size:12px}
.dashboard-busy #dashboard .metric b{opacity:.65}
.dashboard-busy #dashboard .metric{position:relative;overflow:hidden}
.dashboard-busy #dashboard .metric::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 0%,rgba(255,255,255,.35) 45%,transparent 70%);transform:translateX(-100%);animation:dashboardShimmer 1.1s infinite}
@keyframes dashboardShimmer{to{transform:translateX(100%)}}
.import-wizard-lite{display:grid;grid-template-columns:auto repeat(3,minmax(0,1fr));gap:8px;align-items:center;margin:10px 0 12px;padding:11px 12px;border:1px solid #d8e7e1;border-radius:14px;background:linear-gradient(135deg,#f6fcf9,#fff)}
.import-wizard-lite b{font-size:14px;color:var(--brand)}
.import-wizard-lite span{padding:7px 9px;border-radius:999px;background:#eef7f3;color:#38544d;font-size:12px;font-weight:800}

@media (max-width:760px){
  .topbar .top-actions{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:7px!important}
  .topbar .top-actions .armenia-clock{grid-column:1/4!important;padding:9px 3px!important;font-weight:800!important;color:#5a6d68!important}
  .topbar .top-actions .month-picker{grid-column:4/7!important;width:100%!important}
  .topbar .top-actions #refreshBtn{grid-column:1/3!important}
  .topbar .top-actions #hideAmountsBtn{grid-column:3/5!important}
  .topbar .top-actions #quickLockBtn{grid-column:5/7!important}
  .topbar .top-actions button{width:100%!important;min-width:0!important;height:39px!important;border-radius:999px!important;background:#fff!important}
  .topbar .top-actions button .desktop-label,.topbar .top-actions button .mobile-label{font-size:0!important}
  .topbar .top-actions #refreshBtn::after{content:"\5237\65b0";font-size:13px}
  .topbar .top-actions #hideAmountsBtn::after{content:"\9690\85cf";font-size:13px}
  .topbar .top-actions #hideAmountsBtn.on::after{content:"\663e\793a"}
  .topbar .top-actions #quickLockBtn::after{content:"\9501\5c4f";font-size:13px}
  #dashboard>.grid.two{display:none!important}
  .mobile-ops-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:8px 0 12px}
  .mobile-ops-panel button{min-height:38px;padding:6px 4px;border-radius:14px;border:1px solid #d8e7e1;background:#fff;color:var(--brand);font-size:12px;font-weight:900;box-shadow:0 5px 14px rgba(15,23,42,.05)}
  .month-shortcut-bar{display:grid;grid-template-columns:78px 78px minmax(0,1fr);gap:7px;align-items:center;margin:6px 0 9px}
  .month-shortcut-bar button{min-height:34px;padding:5px 10px;border-radius:999px;border:1px solid #d8e7e1;background:#fff;color:var(--brand);font-weight:900;font-size:13px}
  .month-shortcut-bar span{min-width:0;color:#6a7a75;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dashboard-perf-bar{margin-top:6px;font-size:11px;gap:6px}
  .dashboard-perf-bar em{display:none}
  .import-wizard-lite{grid-template-columns:1fr;gap:7px}
  .import-wizard-lite span{border-radius:12px}
}

.runtime-self-check{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 10px;padding:10px 12px;border:1px solid #f0c38c;border-radius:14px;background:#fff8ee;color:#6f4a12}
.runtime-self-check.hidden{display:none}
.runtime-self-check b{color:#9a5b00}
.runtime-self-check span{flex:1;font-size:13px}
.runtime-self-check button{min-height:32px;padding:5px 10px;border-radius:999px}
.month-data-status-panel{display:grid;grid-template-columns:1.2fr 1fr auto;align-items:center;gap:12px;margin:10px 0 12px;padding:13px 14px;border:1px solid #d8e7e1;border-radius:18px;background:linear-gradient(135deg,#f6fcf9,#fff);box-shadow:0 8px 20px rgba(15,23,42,.04)}
.month-data-status-panel>div:first-child{display:grid;gap:3px}
.month-data-status-panel span{font-size:12px;color:#667a76;letter-spacing:.06em;text-transform:uppercase}
.month-data-status-panel b{font-size:18px;color:var(--text)}
.month-data-status-panel small{color:#6a7a75}
.month-data-status-panel.review,.month-data-status-panel.warning{border-color:#f0c38c;background:#fff8ee}
.month-data-status-panel.warning b,.month-data-status-panel.review b{color:#a25c00}
.month-data-status-panel.info{border-color:#c8dbf5;background:#f6f9ff}
.month-data-pills{display:flex;flex-wrap:wrap;gap:6px}
.month-data-pills em{font-style:normal;font-size:12px;font-weight:800;padding:5px 8px;border-radius:999px;background:#eef7f3;color:#2f665a}
.month-data-actions{display:flex;gap:8px}
.month-data-actions button{min-height:34px;padding:6px 10px;border-radius:999px;white-space:nowrap}
@media(max-width:900px){.month-data-status-panel{grid-template-columns:1fr}.month-data-actions{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:760px){
  .runtime-self-check{display:grid;font-size:12px}
  .runtime-self-check button{width:100%}
  .month-data-status-panel{padding:12px;border-radius:16px;gap:9px}
  .month-data-status-panel b{font-size:16px}
  .month-data-pills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .month-data-pills em{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:11px;padding:6px 4px}
  #balanceNotice{padding:10px 11px!important;margin:8px 0!important}
  #balanceNotice .balance-details summary{display:grid;gap:3px}
  #balanceNotice .balance-details summary b{font-size:14px}
  #balanceNotice .balance-details summary span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #balanceNotice .balance-details:not([open]) small{display:none!important}
}

.dashboard-perf-bar.cached{border-color:#c8dbf5;background:#f5f9ff;color:#2b5b91}
.import-progress{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:10px 0}
.import-progress span{display:grid;gap:5px;justify-items:center;padding:8px 5px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#6b7b78;font-size:12px;font-weight:800}
.import-progress i{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:#edf3f1;color:#6b7b78;font-style:normal}
.import-progress span.active{border-color:#7fb8a9;background:#f1fbf7;color:#245c52;box-shadow:0 8px 18px rgba(44,128,110,.08)}
.import-progress span.active i,.import-progress span.done i{background:var(--brand);color:#fff}
.import-progress span.done{border-color:#cce8dc;color:#2f665a;background:#f8fdfb}
.import-staging-status{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:10px 0 0;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:#f8fbfa;color:#55716b;font-size:12px;font-weight:700}
.import-staging-status small{color:#7a8c88;font-weight:600}
.audit-quick-filters{display:flex;flex-wrap:wrap;gap:8px;margin:-2px 0 12px}
.audit-quick-filters button{min-height:34px;padding:6px 11px;border-radius:999px;background:#fff;color:var(--brand);border:1px solid #d8e7e1}
.audit-quick-filters button.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.import-history-card{align-items:flex-start}
.import-history-card .restore-hint{display:block;margin-top:4px;color:#a25c00}
.import-history-actions{align-items:flex-start}
.checkup-card.full{grid-column:1/-1}
.daily-ledger-drift-v6590{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:8px 0;padding:8px 10px;border:1px solid rgba(185,121,34,.32);border-radius:10px;background:#fffdf7}
.daily-ledger-drift-v6590 small{margin:0;flex:1 1 240px}
.daily-ledger-drift-v6590>div{display:flex;gap:7px;flex-wrap:wrap}
.daily-ledger-drift-v6590 button{white-space:nowrap}
@media(max-width:640px){.daily-ledger-drift-v6590{align-items:stretch}.daily-ledger-drift-v6590>div{display:grid;grid-template-columns:1fr}.daily-ledger-drift-v6590 button{width:100%}}

@media(max-width:760px){
  .import-progress{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .import-progress span{border-radius:11px;padding:7px 3px;font-size:11px}
  .audit-quick-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .audit-quick-filters button{width:100%;min-height:36px}
  .import-history-card{display:grid}
  .import-history-actions{display:grid;grid-template-columns:1fr;width:100%}
  .import-history-actions button{width:100%}
  .topbar .top-actions{padding:8px!important;border:1px solid #d9e8e2!important;border-radius:20px!important;background:rgba(255,255,255,.72)!important;box-shadow:0 10px 26px rgba(16,40,50,.06)!important}
  .topbar .top-actions .armenia-clock{grid-column:1/4!important;border-radius:999px!important;background:#f6fbf9!important;padding:8px 10px!important;text-align:center!important}
  .topbar .top-actions .month-picker{grid-column:4/7!important;border-radius:999px!important;box-shadow:none!important}
  .topbar .top-actions button{box-shadow:none!important;border-color:#d8e7e1!important}
}

/* V6.24.0 stability and mobile clarity */
.today-focus-head{display:grid;gap:4px}
.today-focus-head span,.security-summary-v6240 span,.import-sandbox-card span{color:var(--muted)}
.focus-actions{align-items:stretch}
.focus-actions button{min-height:42px;padding:10px 14px}
.month-close-home-v6240 small{display:block;margin-top:6px;line-height:1.45}
.danger-text{color:#b42318}.safe-text{color:#176b50}
.import-sandbox-card{border:1px solid #d9e5df;border-radius:18px;background:#f8fffb;padding:16px;margin-bottom:14px;display:grid;gap:12px}
.import-sandbox-card.medium{border-color:#f0c36d;background:#fffaf0}
.import-sandbox-card.high{border-color:#ee9b9b;background:#fff6f6}
.import-sandbox-card b{display:block;margin-bottom:4px}
.import-sandbox-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.import-sandbox-grid span{border-radius:12px;background:rgba(255,255,255,.82);border:1px solid rgba(0,0,0,.06);padding:8px}
.import-sandbox-grid b{font-size:18px;color:var(--text)}
.import-sandbox-warnings{display:grid;gap:6px}
.import-sandbox-warnings small,.security-issues small{display:inline-flex;width:fit-content;border-radius:999px;background:rgba(180,35,24,.08);color:#9b2c2c;padding:6px 10px}
.audit-item-v6240{gap:7px}
.audit-change-summary{color:#0f5f4b;font-weight:800}
.audit-diff-v6240{display:flex;flex-wrap:wrap;gap:6px}
.audit-diff-v6240 span{border-radius:999px;background:#eef7f3;color:#315f51;padding:4px 8px;font-size:12px}
.security-summary-v6240{grid-column:1/-1;border-radius:20px;border:1px solid #dce8e2;background:linear-gradient(135deg,#f8fffb,#eef8f3);padding:18px;display:grid;gap:10px}
.security-summary-v6240.warn{border-color:#f0c36d;background:linear-gradient(135deg,#fffaf0,#fff7e8)}
.security-summary-v6240 b{font-size:22px}
.security-summary-v6240 p{margin:0;color:var(--muted)}
.security-issues{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:720px){
  .import-sandbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .security-summary-v6240{padding:14px}
  .security-summary-v6240 b{font-size:19px}
  .audit-diff-v6240{display:grid}
}

/* V6.25.0 month close speed and clearer mobile UI */
.month-suggest{display:block;color:#0f5f4b;font-weight:800}
.impact-summary-v6250{margin-top:14px;border:1px solid #cfe5dd;border-radius:18px;background:linear-gradient(135deg,#f7fffb,#fff);padding:15px;display:grid;gap:10px}
.impact-summary-v6250>b{font-size:17px;color:#0d4037}
.impact-grid-v6250{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.impact-grid-v6250 span{border:1px solid #dfe9e5;border-radius:13px;background:#fff;padding:9px;color:#61726d}
.impact-grid-v6250 strong{display:block;color:var(--text);font-size:20px}
.impact-messages-v6250{display:grid;gap:6px}
.impact-messages-v6250 small,.impact-line-v6250{color:#7a4b00;background:#fff8e8;border-radius:999px;padding:6px 10px;width:fit-content}
.impact-summary-v6250 em{font-style:normal;color:#0f5f4b;font-weight:800}
.recent-login-v6250{display:grid!important;gap:6px}
.audit-day-sep-v6250{margin:14px 0 6px;color:#6a7a75;font-weight:900;font-size:12px;letter-spacing:.08em}
.dashboard-perf-bar em{max-width:100%;overflow:hidden;text-overflow:ellipsis}

@media(max-width:760px){
  .topbar .top-actions{grid-template-columns:1fr 1fr!important;gap:8px!important;border-radius:22px!important}
  .topbar .top-actions .armenia-clock{grid-column:1 / -1!important;text-align:left!important;border-radius:16px!important}
  .topbar .top-actions .month-picker{grid-column:auto!important;min-height:44px!important}
  .topbar .top-actions button{min-height:44px!important;border-radius:16px!important;font-size:0!important}
  #refreshBtn .mobile-label{font-size:15px!important}
  #installPwaBtn{font-size:14px!important}
  .impact-grid-v6250{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-perf-bar{display:grid!important;gap:4px!important}
  .dashboard-perf-bar button{width:100%}
  .month-data-status-v6250 .month-data-actions{grid-template-columns:1fr!important}
}

/* V6.26.0 speed, guardrails and mobile cleanup */
.paging-bar-v6260{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:10px 12px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--muted);font-weight:800}
.paging-bar-v6260 em{font-style:normal;color:#0f5f4b}
.diff-explain-v6260{display:grid;gap:8px;margin:0 0 12px;padding:14px;border:1px solid #cfe5dd;border-radius:18px;background:linear-gradient(135deg,#f8fffb,#fff)}
.diff-explain-v6260>b{font-size:17px;color:#0d4037}
.diff-explain-v6260 span{display:grid;gap:3px;padding:9px 11px;border-radius:14px;background:#fff;border:1px solid #e1ebe7}
.diff-explain-v6260 span.warn{border-color:#f0c38c;background:#fff8ee}
.diff-explain-v6260 span.danger{border-color:#f1a6a6;background:#fff4f4}
.diff-explain-v6260 span.ok{border-color:#bde6d6;background:#f2fff8}
.diff-explain-v6260 strong{color:var(--text)}
.diff-explain-v6260 em{font-style:normal;color:var(--muted)}
.confirm-check-v6260{display:grid;gap:8px;margin:12px 0;padding:13px;border-radius:18px;border:1px solid #cfe5dd;background:#f6fffb}
.confirm-check-v6260.warn{border-color:#f0c38c;background:#fff8ee}
.confirm-check-v6260.danger{border-color:#f1a6a6;background:#fff4f4}
.confirm-check-v6260 ul{margin:0;padding-left:18px}
.security-devices-v6260{display:grid!important;gap:7px}
.security-devices-v6260 span{display:block;padding:8px 10px;border-radius:12px;background:#f7faf9;border:1px solid #e1ebe7;color:#31423d}
.security-devices-v6260 span.warn{background:#fff8ee;border-color:#f0c38c;color:#7a4b00}
@media(max-width:760px){
  .topbar{gap:8px!important;padding-bottom:8px!important}
  .topbar>div:first-child h1{font-size:24px!important;line-height:1.05!important}
  .topbar>div:first-child p{display:none!important}
  .mobile-version{margin-top:2px!important}
  .topbar .top-actions{display:grid!important;grid-template-columns:1.35fr .9fr repeat(4,44px)!important;align-items:center!important;gap:7px!important;background:transparent!important;padding:0!important;box-shadow:none!important;border:0!important}
  .topbar .top-actions .armenia-clock{grid-column:1 / 2!important;min-height:42px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;background:#fff!important;border:1px solid var(--line)!important}
  .topbar .top-actions .month-picker{grid-column:2 / 3!important;min-height:42px!important;padding:0 10px!important;background:#fff!important}
  .topbar .top-actions .month-picker input{font-size:14px!important}
  .topbar .top-actions button{width:44px!important;min-width:44px!important;min-height:42px!important;padding:0!important;border-radius:14px!important}
  #refreshBtn .mobile-label,#hideAmountsBtn .mobile-label,#screenshotModeBtn .mobile-label,#quickLockBtn .mobile-label{font-size:16px!important}
  #installPwaBtn{display:none!important}
  .metric-grid{gap:10px!important}
  .paging-bar-v6260{position:sticky;bottom:68px;z-index:20;box-shadow:0 12px 28px rgba(15,23,42,.12)}
  .diff-explain-v6260,.confirm-check-v6260{border-radius:16px;padding:12px}
}

/* V6.26.1 mobile header/nav repair */
@media(max-width:760px){
  .topbar{
    gap:10px!important;
    margin-bottom:10px!important;
    padding-bottom:0!important;
  }
  .topbar>div:first-child{
    display:flex!important;
    align-items:flex-end!important;
    justify-content:space-between!important;
    gap:10px!important;
  }
  .topbar>div:first-child h1{
    font-size:26px!important;
    line-height:1.1!important;
    margin:0!important;
  }
  .topbar>div:first-child p{
    display:none!important;
  }
  .topbar .mobile-version{
    display:inline-block!important;
    margin:0 0 3px!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }
  .topbar .top-actions{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .topbar .top-actions .armenia-clock,
  .topbar .top-actions .month-picker{
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
    min-height:44px!important;
    height:44px!important;
    border:1px solid #d9e8e2!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 6px 18px rgba(20,35,45,.05)!important;
  }
  .topbar .top-actions .armenia-clock{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    padding:0 13px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    text-align:left!important;
    font-size:13px!important;
    color:#60756f!important;
  }
  .topbar .top-actions .month-picker{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 12px!important;
    font-size:0!important;
  }
  .topbar .top-actions .month-picker input{
    width:100%!important;
    min-width:0!important;
    height:40px!important;
    min-height:40px!important;
    border:0!important;
    padding:0!important;
    background:transparent!important;
    text-align:center!important;
    font-size:17px!important;
    font-weight:900!important;
    color:var(--text)!important;
  }
  .topbar .top-actions #installPwaBtn,
  .topbar .top-actions #screenshotModeBtn{
    display:none!important;
  }
  .topbar .top-actions #refreshBtn,
  .topbar .top-actions #hideAmountsBtn,
  .topbar .top-actions #quickLockBtn{
    grid-column:auto!important;
    width:100%!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
    padding:0 8px!important;
    border-radius:16px!important;
    background:#fff!important;
    border:1px solid #d9e8e2!important;
    box-shadow:0 6px 18px rgba(20,35,45,.05)!important;
    font-size:0!important;
  }
  .topbar .top-actions button .desktop-label,
  .topbar .top-actions button .mobile-label{
    display:none!important;
    font-size:0!important;
  }
  .topbar .top-actions button::after{
    font-size:14px!important;
    font-weight:900!important;
    color:var(--text)!important;
  }
  .topbar .top-actions #refreshBtn::after{content:"刷新"!important}
  .topbar .top-actions #hideAmountsBtn::after{content:"隐藏"!important}
  .topbar .top-actions #hideAmountsBtn.on::after{content:"显示"!important}
  .topbar .top-actions #quickLockBtn::after{content:"锁屏"!important}
  .bottom-nav button[data-page="records"]{
    color:var(--brand)!important;
  }
}

/* V6.27.0 mobile ledger and month-close flow */
.mobile-dashboard-core-v6270{display:none}
.mobile-core-head-v6270,.month-close-flow-v6270,.daily-import-guard-v6270{border:1px solid #d9e8e2;background:linear-gradient(135deg,#f6fcf9,#fff);box-shadow:0 8px 22px rgba(15,23,42,.05)}
.mobile-core-head-v6270{display:grid;gap:5px;padding:14px;border-radius:18px}
.mobile-core-head-v6270 span,.month-close-flow-v6270 span{font-size:12px;color:#60756f;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.mobile-core-head-v6270 b{font-size:25px;color:#0f2a24}
.mobile-core-head-v6270 em,.month-close-flow-v6270 em,.month-close-flow-v6270 small{font-style:normal;color:#60756f}
.mobile-core-pills-v6270{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.mobile-core-pills-v6270 button{min-height:40px;padding:6px 4px;border-radius:14px;border:1px solid #d9e8e2;background:#fff;color:#134f43;font-weight:900}
.mobile-core-pills-v6270 button.attention{border-color:#f0c38c;background:#fff8ee;color:#9a5b00}
.mobile-core-pills-v6270 button.safe{background:#f1fbf6;color:#176b50}
.mobile-core-money-v6270{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mobile-core-money-v6270 span{display:grid;gap:4px;padding:10px;border:1px solid #e3ede8;border-radius:15px;background:#fff}
.mobile-core-money-v6270 small{color:#60756f}
.mobile-core-money-v6270 strong{font-size:17px;color:#0f172a}
.month-close-flow-v6270{display:grid;gap:10px;margin:12px 0;padding:14px;border-radius:18px}
.month-close-flow-v6270.green{border-color:#bfe6d7;background:linear-gradient(135deg,#f1fbf6,#fff)}
.month-close-flow-v6270.yellow,.month-close-flow-v6270.red{border-color:#f0c38c;background:linear-gradient(135deg,#fff8ee,#fff)}
.month-close-flow-v6270.red b{color:#9a3b00}
.month-close-flow-v6270 b{display:block;margin:3px 0;font-size:18px;color:#0f2a24}
.month-close-flow-actions-v6270{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.month-close-flow-actions-v6270 button{min-height:38px;padding:7px 6px;border-radius:14px;border:1px solid #d9e8e2;background:#fff;color:#134f43;font-weight:900}
.daily-import-guard-v6270{display:grid;gap:7px;margin:12px 0;padding:13px;border-radius:16px}
.daily-import-guard-v6270 b{color:#0f2a24}
.daily-import-guard-v6270 span{color:#60756f;font-size:13px}

@media(max-width:760px){
  .mobile-dashboard-core-v6270{display:grid;gap:9px;margin:8px 0 12px}
  #dashboard>.metric-grid{display:none!important}
  #dashboard .quick-lookup{margin-top:10px!important}
  #dashboardHighlights{display:none!important}
  #monthDataStatusPanel{display:none!important}
  #dashboardPerfBar{display:none!important}
  /* The desktop expense ranking is also useful on phones. Keep only this
     one optional panel visible and let the core dashboard paint first. */
  #dashboard>.grid.two{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;margin-top:10px!important}
  #dashboard>.grid.two>#expenseRankPanel{display:block!important;grid-column:1!important}
  #dashboard>.grid.two>#expenseRankPanel .panel-title{align-items:flex-start!important}
  #dashboard>.grid.two>#expenseRankPanel .panel-title h2{font-size:18px!important}
  #dashboard>.grid.two>#expenseRankPanel .panel-title span{font-size:12px!important}
  #dashboard>.grid.two>#expenseRankPanel .stat-row{padding:10px!important;border-radius:14px!important}
  #dashboard>.grid.two>#expenseRankPanel .stat-row strong{font-size:14px!important}
  #dashboard>.grid.two>#expenseRankPanel~.panel{display:none!important}
  #todayTodoPanel{margin-top:10px!important;border-radius:18px!important}
  #todayTodoPanel .today-todo-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mobile-ops-panel{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .mobile-ops-panel button{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .month-close-flow-actions-v6270{grid-template-columns:repeat(2,minmax(0,1fr))}
  .search-card,.tx-card{border-radius:16px!important;padding:12px!important}
  .tx-card-head b,.search-card-head b{font-size:17px!important}
  .tx-extra:not([open]) summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .copy-source-btn{width:100%;justify-content:center;margin-top:6px}
  .daily-import-guard-v6270{font-size:13px}
}

/* V6.27.1 polish: cache self-check, clearer filters and month-close next step */
.runtime-self-check{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;padding:12px 14px;border-radius:16px;border:1px solid #d9e8e2;background:#fff}
.runtime-self-check.ok{background:linear-gradient(135deg,#f3fbf7,#fff);border-color:#c7e8dc;color:#0f5f4b}
.runtime-self-check.warn{background:#fff8ee;border-color:#f0c38c;color:#7a4b00}
.runtime-self-check b{font-size:15px;color:inherit}
.runtime-self-check span{font-size:13px;color:inherit;opacity:.86}
.runtime-self-check button{min-height:34px;padding:6px 12px;border-radius:12px}
.mobile-core-detail-v6271{margin-top:6px;border-top:1px dashed #d8e7e1;padding-top:6px}
.mobile-core-detail-v6271 summary{cursor:pointer;width:max-content;max-width:100%;border-radius:999px;background:#eef8f3;color:#0f5f4b;padding:5px 10px;font-weight:900;font-size:12px}
.mobile-core-detail-v6271 div{display:grid;gap:4px;margin-top:6px;color:#60756f;font-size:12px}
.month-close-missing-v6271{display:grid;gap:7px;padding:10px;border-radius:14px;background:rgba(255,255,255,.72);border:1px dashed rgba(15,95,75,.18)}
.month-close-missing-v6271 strong{font-size:13px;color:#0f2a24}
.month-close-missing-v6271 span{display:block;border-radius:12px;padding:7px 9px;background:#f1fbf6;color:#176b50;font-weight:800;font-size:13px}
.month-close-missing-v6271 span.yellow{background:#fff8ee;color:#8a5600}
.month-close-missing-v6271 span.red{background:#fff4f4;color:#9b2c2c}
.records-filter-status-v6271{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 12px;padding:12px 14px;border:1px solid #cfe5dd;border-radius:16px;background:linear-gradient(135deg,#f6fcf9,#fff)}
.records-filter-status-v6271 b{display:block;color:#0f2a24}
.records-filter-status-v6271 span{display:block;margin-top:3px;color:#60756f;font-size:13px}
.recent-key-ops-v6271{margin:12px 0;border:1px solid #d9e8e2;border-radius:18px;background:#fff;padding:14px;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.recent-key-ops-head-v6271{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.recent-key-ops-head-v6271 span{display:block;color:#60756f;font-size:12px;font-weight:900;letter-spacing:.08em}
.recent-key-ops-head-v6271 b{display:block;color:#0f2a24;font-size:16px}
.recent-key-ops-list-v6271{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.recent-key-ops-list-v6271 button{text-align:left;border:1px solid #e1ebe7;background:#f8fbfa;border-radius:14px;padding:10px;display:grid;gap:4px;min-height:92px;color:var(--text)}
.recent-key-ops-list-v6271 b{font-size:14px;color:#0f5f4b}
.recent-key-ops-list-v6271 span,.recent-key-ops-list-v6271 em{font-style:normal;color:#60756f;font-size:12px;line-height:1.35;overflow:hidden;text-overflow:ellipsis}

@media(max-width:760px){
  .runtime-self-check{display:grid;gap:8px;margin:8px 0;padding:10px 12px}
  .runtime-self-check button{width:100%}
  .records-filter-status-v6271{display:grid;gap:8px;margin:8px 0 10px}
  .records-filter-status-v6271 button{width:100%}
  .recent-key-ops-v6271{display:none}
  .mobile-core-detail-v6271 summary{width:100%;text-align:center}
}

/* V6.28.0 cross-month flow and mobile anti-overflow repair */
html,body{max-width:100%;overflow-x:hidden}
.workspace,.page,.panel,.tx-cards,.tx-card,.search-card,.mini-table,.table-wrap{min-width:0;max-width:100%}
.month-rollover-panel-v6280{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 12px;padding:13px 15px;border:1px solid #f0c38c;border-radius:18px;background:linear-gradient(135deg,#fff8ee,#fff);box-shadow:0 8px 22px rgba(15,23,42,.04)}
.month-rollover-panel-v6280 span{display:block;color:#8a5600;font-size:12px;font-weight:900;letter-spacing:.08em}
.month-rollover-panel-v6280 b{display:block;margin-top:2px;color:#0f2a24;font-size:18px}
.month-rollover-panel-v6280 em{display:block;margin-top:3px;color:#60756f;font-style:normal;font-size:13px}
.month-rollover-actions-v6280{display:flex;gap:8px;flex-wrap:wrap}
.month-rollover-actions-v6280 button{min-height:38px;border-radius:14px;padding:8px 12px}
.records-quick-filters-v6280{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}
.records-quick-filters-v6280 button{min-height:38px;padding:7px 12px;border-radius:999px;background:#fff;color:#134f43;border:1px solid #d9e8e2}
.records-quick-filters-v6280 button.on{background:#0f5f4b;color:#fff;border-color:#0f5f4b}
.month-close-flow-v6280{overflow:hidden}
.month-close-steps-v6280{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.month-close-steps-v6280 button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:7px;border-radius:12px;border:1px solid #d9e8e2;background:#fff;color:#134f43;font-size:13px}
.month-close-steps-v6280 button.done{background:#f1fbf6;border-color:#bfe6d7;color:#176b50}
.month-close-steps-v6280 button.todo{background:#fff8ee;border-color:#f0c38c;color:#8a5600}

@media(max-width:760px){
  body{width:100%;min-width:0}
  .app{display:block!important;width:100%!important;max-width:100vw!important;overflow-x:hidden!important}
  .sidebar{position:relative!important;width:100%!important;height:auto!important;max-width:100vw!important;display:block!important;padding:14px 16px!important;border-radius:0 0 20px 20px!important;overflow:hidden!important}
  .app-brand{width:100%!important;max-width:100%!important;min-width:0!important;padding-bottom:0!important}
  .app-brand b,.app-brand span{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .sidebar nav,.sidebar .user-box{display:none!important}
  .workspace{width:100%!important;max-width:100vw!important;overflow-x:hidden!important;padding:10px 10px 82px!important}
  .topbar{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-bottom:10px!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
  .topbar>div:first-child{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:8px!important;min-width:0!important}
  .topbar>div:first-child h1{font-size:22px!important;line-height:1.1!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .topbar .mobile-version{display:inline-block!important;flex:0 0 auto!important;font-size:11px!important}
  .topbar .top-actions{display:grid!important;grid-template-columns:1fr 1fr 1fr!important;gap:7px!important;width:100%!important;max-width:100%!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .topbar .top-actions .armenia-clock,.topbar .top-actions .month-picker{grid-column:1 / -1!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;border-radius:14px!important;background:#fff!important;border:1px solid #d9e8e2!important;box-shadow:0 5px 14px rgba(20,35,45,.045)!important}
  .topbar .top-actions .armenia-clock{display:flex!important;align-items:center!important;padding:0 12px!important;text-align:left!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#60756f!important}
  .topbar .top-actions .month-picker{display:flex!important;align-items:center!important;justify-content:center!important;padding:0 10px!important}
  .topbar .top-actions .month-picker input{height:38px!important;min-height:38px!important;border:0!important;background:transparent!important;text-align:center!important;padding:0!important;font-size:15px!important;font-weight:900!important}
  .topbar .top-actions #installPwaBtn,.topbar .top-actions #screenshotModeBtn{display:none!important}
  .topbar .top-actions #refreshBtn,.topbar .top-actions #hideAmountsBtn,.topbar .top-actions #quickLockBtn{grid-column:auto!important;width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;border-radius:14px!important;background:#fff!important;border:1px solid #d9e8e2!important;box-shadow:0 5px 14px rgba(20,35,45,.045)!important}
  .topbar .top-actions button .desktop-label,.topbar .top-actions button .mobile-label{display:none!important;font-size:0!important}
  .topbar .top-actions button::after{font-size:13px!important;font-weight:900!important;color:#0f172a!important}
  .topbar .top-actions #refreshBtn::after{content:"刷新"!important}
  .topbar .top-actions #hideAmountsBtn::after{content:"隐藏"!important}
  .topbar .top-actions #hideAmountsBtn.on::after{content:"显示"!important}
  .topbar .top-actions #quickLockBtn::after{content:"锁屏"!important}
  .page,.panel,.grid,.metric-grid,.simple-list,.search-results,.tx-cards{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important}
  .panel{padding:12px!important;border-radius:16px!important}
  .panel-title,.panel-title.row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;min-width:0!important}
  .panel-title h2{font-size:20px!important;line-height:1.15!important;overflow-wrap:anywhere!important}
  .panel-title span{overflow-wrap:anywhere!important}
  .filters,.form,.form.wide,.ledger-search-form,.compact-form{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;min-width:0!important}
  .filters button,#searchBtn,#exportCsvBtn{width:100%!important;min-width:0!important}
  .records-quick-filters-v6280{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:7px!important;padding:2px 2px 8px!important;margin:8px -2px 10px!important;scrollbar-width:none}
  .records-quick-filters-v6280::-webkit-scrollbar{display:none}
  .records-quick-filters-v6280 button{flex:0 0 auto!important;white-space:nowrap!important;padding:7px 11px!important}
  .tx-cards{display:grid!important;gap:10px!important}
  .tx-card,.search-card{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;border-radius:16px!important;padding:12px!important}
  .tx-card *,.search-card *{min-width:0!important;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
  .tx-card-head,.search-card-head{display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;align-items:start!important}
  .tx-card-head>div,.search-card-head>div{min-width:0!important}
  .tx-card-head b,.search-card-head b{font-size:16px!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .tx-card-head span,.tx-card-meta,.search-card-head span{white-space:normal!important;overflow-wrap:anywhere!important}
  .pill{white-space:nowrap!important;max-width:100%!important}
  .tx-mobile-money,.search-money{width:100%!important;max-width:100%!important;overflow:hidden!important}
  .tx-extra,.note-detail,.note-inline,.tx-note{width:100%!important;max-width:100%!important;overflow:hidden!important}
  .tx-extra summary,.note-detail summary{white-space:normal!important;overflow-wrap:anywhere!important}
  .tx-extra p,.note-detail p,.tx-note p{white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .copy-source-btn{width:100%!important;max-width:100%!important;justify-content:center!important;white-space:normal!important}
  .tx-card-actions,.row-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;width:100%!important}
  .tx-card-actions button,.row-actions button{width:100%!important;min-width:0!important;padding:8px!important}
  .month-rollover-panel-v6280{display:grid!important;gap:10px!important;padding:12px!important}
  .month-rollover-actions-v6280{display:grid!important;grid-template-columns:1fr!important}
  .month-close-steps-v6280{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .month-close-flow-actions-v6270{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .bottom-nav{left:0!important;right:0!important;width:100%!important;max-width:100vw!important;overflow:hidden!important}
  .bottom-nav button{min-width:0!important;white-space:nowrap!important}
}

/* V6.29.1 shell repair: keep login isolated, fix desktop sidebar, show ledger notes directly */
#app.hidden,
#login.hidden {
  display: none !important;
}

.sidebar .nav[data-page="daily"],
.sidebar .nav[data-page="entry"],
.sidebar .nav[data-page="review"] {
  display: none !important;
}

.metric:has(#reviewCount),
button[data-quick-lookup="review"],
.chip-filter[data-search-filter="review"],
#clearReviewBatchBtn {
  display: none !important;
}

#login:not(.hidden) ~ #app {
  display: none !important;
}

.tx-card-more-v6291 {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.tx-card-more-v6291 .tx-extra,
.tx-card-more-v6291 .note-detail,
.tx-card-more-v6291 .note-inline {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid #d9e8e2;
  border-radius: 13px;
  background: #f8fcfa;
}

.tx-card-more-v6291 .tx-extra b,
.tx-card-more-v6291 .note-detail b,
.tx-card-more-v6291 .note-inline b {
  color: #0f5f4b;
  font-size: 12px;
}

.tx-card-more-v6291 .comment,
.tx-card-more-v6291 .review-note {
  border-color: #bfe6d7;
  background: #eefaf5;
}

@media (min-width: 761px) {
  body {
    background: #edf2f7;
  }

  body.v6290-layout #app:not(.hidden),
  #app:not(.hidden) {
    display: block !important;
    min-height: 100vh;
    background: #edf2f7;
  }

  body.v6290-layout #app:not(.hidden) > .sidebar,
  #app:not(.hidden) > .sidebar {
    position: fixed !important;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 30;
    width: var(--sidebar-width-v6290, 300px) !important;
    height: 100vh !important;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0 !important;
    box-shadow: 16px 0 34px rgba(15, 23, 42, .10);
    scrollbar-gutter: stable;
  }

  body.v6290-layout #app:not(.hidden) > .workspace,
  #app:not(.hidden) > .workspace {
    width: auto !important;
    min-height: 100vh;
    margin-left: var(--sidebar-width-v6290, 300px) !important;
    padding: 24px 28px 92px !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}

@media (max-width: 760px) {
  #app.hidden,
  #login.hidden,
  #login:not(.hidden) ~ #app {
    display: none !important;
  }

  #login:not(.hidden) {
    display: grid !important;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    padding: 18px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  #login:not(.hidden) .login-shell {
    width: 100%;
    max-width: 430px;
  }

  #app:not(.hidden) {
    display: block !important;
  }

  .tx-card-more-v6291 {
    gap: 7px;
  }

  .tx-card-more-v6291 .tx-extra,
  .tx-card-more-v6291 .note-detail,
  .tx-card-more-v6291 .note-inline {
    padding: 8px 9px;
    border-radius: 12px;
  }
}

/* Search efficiency and mobile topbar cleanup */
.ledger-summary-v6300 {
  display: grid;
  gap: 8px;
  width: 100%;
}

.ledger-summary-v6300 > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ledger-summary-v6300 b {
  color: #0f2a24;
}

.ledger-summary-v6300 span,
.ledger-summary-v6300 em {
  color: #60756f;
  font-style: normal;
}

.ledger-summary-chips-v6300,
.insight-badges-v6300,
.ledger-card-actions-v6300,
.object-merge-hints-v6300,
.ledger-top-expenses-v6300 {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.ledger-summary-chips-v6300 span,
.insight-badges-v6300 span,
.object-merge-hints-v6300 span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef8f4;
  color: #175f4c;
  font-size: 12px;
  font-weight: 800;
}

.insight-badges-v6300 span.large {
  background: #fff5e7;
  color: #9b5b00;
}

.insight-badges-v6300 span.warn {
  background: #fff1f1;
  color: #b42318;
}

.search-card.has-comment {
  border-color: #bfe6d7;
  box-shadow: 0 14px 30px rgba(15, 95, 75, .08);
}

.ledger-top-expenses-v6300 button,
.ledger-card-actions-v6300 button {
  min-height: 34px;
  border-radius: 12px;
  font-size: 12px;
}

.import-audit-summary-v6300 {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d9e8e2;
  border-radius: 14px;
  background: #f8fcfa;
}

.import-audit-kpis-v6300 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.import-audit-kpis-v6300 span {
  display: grid;
  gap: 2px;
  padding: 9px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e0ebe7;
}

.import-audit-kpis-v6300 b {
  font-size: 18px;
  color: #0f2a24;
}

.import-audit-kpis-v6300 em {
  font-style: normal;
  font-size: 12px;
  color: #60756f;
}

@media (max-width: 760px) {
  body.v6290-layout .topbar .top-actions,
  .v6290-layout .top-actions {
    grid-template-columns: 1fr !important;
  }

  body.v6290-layout #refreshBtn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  body.v6290-layout #moreTopActionsV6290,
  body.v6290-layout #topActionMenuV6290 {
    display: none !important;
  }

  .ledger-summary-v6300 > div:first-child {
    display: grid;
    gap: 2px;
  }

  .ledger-summary-chips-v6300,
  .insight-badges-v6300,
  .ledger-card-actions-v6300,
  .ledger-top-expenses-v6300,
  .object-merge-hints-v6300 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ledger-card-actions-v6300 {
    grid-template-columns: 1fr 1fr;
  }

  .ledger-top-expenses-v6300 em,
  .object-merge-hints-v6300 em {
    grid-column: 1 / -1;
  }

  .import-audit-kpis-v6300 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Daily lookup first */
.dashboard-search-v6310 {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid #cfe8df;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fffb, #fff);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
}

.dashboard-search-head-v6310 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.dashboard-search-head-v6310 b {
  display: block;
  font-size: 20px;
  color: #0f2a24;
}

.dashboard-search-head-v6310 span,
.dashboard-import-mini-v6310 em {
  color: #60756f;
  font-style: normal;
  font-size: 13px;
}

.dashboard-search-row-v6310 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
}

.dashboard-search-row-v6310 input {
  min-height: 46px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
}

.dashboard-search-row-v6310 button {
  border-radius: 14px;
  font-weight: 900;
}

.dashboard-search-shortcuts-v6310 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-search-shortcuts-v6310 button,
.dashboard-import-mini-v6310 button {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #d9e8e2;
  background: #fff;
  color: #135344;
  font-weight: 900;
}

.dashboard-import-mini-v6310 button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
  border-radius: 14px;
  background: #eefaf5;
  text-align: left;
}

.dashboard-import-mini-v6310 span {
  color: #60756f;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-import-mini-v6310 b {
  color: #0f5f4b;
}

.mobile-core-head-v6310 {
  border-bottom: 1px dashed #d9e8e2;
  padding-bottom: 10px;
}

.mobile-core-pills-v6310 button {
  min-height: 40px;
}

@media (min-width: 761px) {
  #app:not(.hidden) > .sidebar,
  body.v6290-layout #app:not(.hidden) > .sidebar {
    display: flex !important;
    flex-direction: column !important;
  }

  #app:not(.hidden) > .sidebar nav,
  body.v6290-layout #app:not(.hidden) > .sidebar nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
  }

  #app:not(.hidden) > .sidebar .user-box,
  body.v6290-layout #app:not(.hidden) > .sidebar .user-box {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    margin-top: 14px;
    padding-top: 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), #111827 24%);
  }
}

@media (max-width: 760px) {
  .dashboard-search-v6310 {
    margin: 0 0 10px;
    padding: 12px;
    border-radius: 16px;
    gap: 8px;
  }

  .dashboard-search-head-v6310 {
    display: grid;
    gap: 7px;
  }

  .dashboard-search-head-v6310 b {
    font-size: 18px;
  }

  .dashboard-search-head-v6310 > button {
    width: 100%;
  }

  .dashboard-search-row-v6310 {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dashboard-search-row-v6310 input,
  .dashboard-search-row-v6310 button {
    min-height: 42px;
    width: 100%;
  }

  .dashboard-search-shortcuts-v6310 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .dashboard-search-shortcuts-v6310 button {
    width: 100%;
    min-width: 0;
    padding: 7px 8px;
  }

  .dashboard-import-mini-v6310 button {
    display: grid;
    gap: 3px;
  }

  .today-todo-panel.hidden {
    display: none !important;
  }
}

/* Daily lookup close-out layout */
body.v6320-daily-flow .sidebar .nav[data-page="daily"],
body.v6320-daily-flow .sidebar .nav[data-page="entry"],
body.v6320-daily-flow .sidebar .nav[data-page="review"],
body.v6320-daily-flow .bottom-nav button[data-page="daily"],
body.v6320-daily-flow .bottom-nav button[data-page="entry"],
body.v6320-daily-flow .bottom-nav button[data-page="review"],
body.v6320-daily-flow [data-review-shortcut],
body.v6320-daily-flow [data-record-filter="review"],
body.v6320-daily-flow [data-quick-lookup="review"],
body.v6320-daily-flow #moreTopActionsV6290,
body.v6320-daily-flow #topActionMenuV6290 {
  display: none !important;
}

.tx-card-more-v6320 {
  display: grid !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.tx-card-more-v6320 .tx-extra,
.tx-card-more-v6320 .note-detail,
.tx-card-more-v6320 .note-inline {
  display: grid !important;
  gap: 5px !important;
  padding: 10px 11px !important;
  border: 1px solid #d9e8e2 !important;
  border-radius: 13px !important;
  background: #f8fcfa !important;
}

.tx-card-more-v6320 .tx-extra p,
.tx-card-more-v6320 .note-detail p {
  margin: 0;
  color: #263b36;
  line-height: 1.55;
}

.tx-card-more-v6320 .tx-extra b,
.tx-card-more-v6320 .note-detail b,
.tx-card-more-v6320 .note-inline b {
  color: #0f5f4b;
  font-size: 12px;
}

.tx-card-more-v6320 .comment,
.tx-card-more-v6320 .review-note {
  border-color: #bfe6d7 !important;
  background: #eefaf5 !important;
}

.v6320-source {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.v6320-source b,
.v6320-source span {
  grid-column: 1;
}

.v6320-source button {
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
}

.tx-actions-v6320 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tx-actions-v6320 button {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 11px;
  font-size: 12px;
}

@media (min-width: 761px) {
  body.v6320-daily-flow #app:not(.hidden) {
    display: block !important;
    min-height: 100vh !important;
    background: #edf2f7 !important;
  }

  body.v6320-daily-flow #app:not(.hidden) > .sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: var(--sidebar-width-v6290, 300px) !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 0 !important;
    box-shadow: 16px 0 34px rgba(15, 23, 42, .10) !important;
  }

  body.v6320-daily-flow #app:not(.hidden) > .sidebar nav {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
  }

  body.v6320-daily-flow #app:not(.hidden) > .sidebar .user-box {
    flex: 0 0 auto !important;
    position: sticky !important;
    bottom: 0 !important;
    margin-top: 14px !important;
    padding-top: 16px !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), #111827 24%) !important;
  }

  body.v6320-daily-flow #app:not(.hidden) > .workspace {
    min-height: 100vh !important;
    margin-left: var(--sidebar-width-v6290, 300px) !important;
    padding: 24px 28px 92px !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 760px) {
  body.v6320-daily-flow #login:not(.hidden) ~ #app {
    display: none !important;
  }

  body.v6320-daily-flow #app:not(.hidden) {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body.v6320-daily-flow .topbar {
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  body.v6320-daily-flow .topbar .top-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.v6320-daily-flow .topbar .top-actions .armenia-clock,
  body.v6320-daily-flow .topbar .top-actions .month-picker {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 14px !important;
    border: 1px solid #d9e8e2 !important;
    background: #fff !important;
    box-shadow: 0 5px 14px rgba(20, 35, 45, .045) !important;
  }

  body.v6320-daily-flow .topbar .top-actions .armenia-clock {
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    color: #60756f !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.v6320-daily-flow .topbar .top-actions .month-picker {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
  }

  body.v6320-daily-flow .topbar .top-actions .month-picker input {
    height: 38px !important;
    min-height: 38px !important;
    border: 0 !important;
    background: transparent !important;
    text-align: center !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }

  body.v6320-daily-flow .topbar .top-actions #installPwaBtn,
  body.v6320-daily-flow .topbar .top-actions #screenshotModeBtn,
  body.v6320-daily-flow .topbar .top-actions #moreTopActionsV6290 {
    display: none !important;
  }

  body.v6320-daily-flow .topbar .top-actions #refreshBtn,
  body.v6320-daily-flow .topbar .top-actions #hideAmountsBtn,
  body.v6320-daily-flow .topbar .top-actions #quickLockBtn {
    grid-column: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid #d9e8e2 !important;
    box-shadow: 0 5px 14px rgba(20, 35, 45, .045) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  body.v6320-daily-flow .topbar .top-actions button::after {
    content: none !important;
  }

  body.v6320-daily-flow .topbar .top-actions button .desktop-label {
    display: none !important;
  }

  body.v6320-daily-flow .topbar .top-actions button .mobile-label {
    display: inline !important;
    font-size: 13px !important;
  }

  .v6320-source {
    grid-template-columns: 1fr;
  }

  .v6320-source b,
  .v6320-source span,
  .v6320-source button {
    grid-column: auto;
    grid-row: auto;
  }

  .tx-actions-v6320 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tx-actions-v6320 button {
    width: 100%;
    min-width: 0;
  }
}

/* Lookup detail polish */
.hit-v6330 {
  display: inline;
  padding: 0 2px;
  border-radius: 5px;
  background: #fff2a8;
  color: #0f172a;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.ledger-summary-v6330 {
  border: 1px solid #d9e8e2;
  border-radius: 16px;
  padding: 12px;
  background: #fbfefd;
}

.batch-stats-v6330 {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.batch-stats-v6330 span,
.batch-stats-v6330 em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef8f3;
  color: #135344;
  border: 1px solid #cfe8df;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.batch-stats-v6330 em {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff;
  color: #60756f;
}

.source-v6330 {
  border-color: #bfe6d7 !important;
  background: linear-gradient(135deg, #eefaf5, #fff) !important;
  box-shadow: inset 3px 0 0 #0f7a5f;
}

.source-v6330 span {
  font-size: 13px;
  color: #24443c;
  font-weight: 800;
}

.tx-card-v6330,
.search-card-v6330 {
  scroll-margin-top: 12px;
}

.tx-card-v6330.has-comment,
.search-card-v6330.has-comment {
  border-color: #bfe6d7;
  box-shadow: 0 14px 30px rgba(15, 95, 75, .08);
}

.tx-card-more-v6330 .v6330-direct-note p {
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .ledger-summary-v6330 {
    padding: 10px;
    border-radius: 14px;
  }

  .batch-stats-v6330 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .batch-stats-v6330 em {
    grid-column: 1 / -1;
  }

  .tx-card-more-v6330 .tx-extra,
  .tx-card-more-v6330 .note-detail,
  .tx-card-more-v6330 .note-inline {
    padding: 8px 9px !important;
  }
}
/* Stability guardrails */
.v6340-stability .update-notice {
  gap: 10px;
}

.saved-filters-v6340 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin: 8px 0 12px;
  border: 1px solid rgba(46, 125, 105, .18);
  border-radius: 16px;
  background: rgba(239, 252, 247, .82);
}

.saved-filters-v6340 > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.saved-filters-v6340 span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(46, 125, 105, .16);
}

.saved-filters-v6340 span button:first-child {
  border: 0;
  padding: 6px 10px;
  background: transparent;
  color: #176656;
  font-weight: 800;
}

.saved-filters-v6340 em {
  color: #6b7280;
  font-style: normal;
}

.ghost-mini {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #eef5f2;
  color: #64748b;
  font-weight: 900;
}

.import-history-card-v6340 {
  border-left: 4px solid #2f7b68;
}

.import-history-card-v6340 .restore-hint {
  display: inline-flex;
  margin-top: 6px;
  color: #9a5b13;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 5px 9px;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .saved-filters-v6340 {
    align-items: stretch;
    flex-direction: column;
  }
  .saved-filters-v6340 > button {
    width: 100%;
  }
  .import-history-card-v6340 .row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* V6.35.0 storage guard */
.storage-guard-v6350 {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(47, 123, 104, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 252, 247, .92), rgba(255, 255, 255, .96));
}

.storage-guard-head,
.storage-guard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.storage-guard-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #0c2638;
}

.storage-guard-head p,
.storage-plan-v6350 span,
.storage-status-v6350 {
  color: #58706a;
}

.storage-guard-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.storage-guard-options label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 800;
  color: #24443c;
}

.storage-guard-options .check-line {
  justify-content: center;
  flex-direction: row;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #d8e7e1;
  border-radius: 14px;
  background: #fff;
}

.storage-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dcebe6;
}

.storage-meter b {
  color: #0f513f;
  font-size: 18px;
}

.storage-meter.warn {
  background: #fff7ed;
  border-color: #fdba74;
}

.storage-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.storage-path-grid span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dcebe6;
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
}

.storage-path-grid b {
  color: #667085;
  font-size: 13px;
}

.storage-warnings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.storage-warnings em,
.storage-ok {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
}

.storage-warnings em {
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.storage-ok {
  color: #176656;
  background: #e9f8f1;
}

.storage-plan-v6350 {
  margin: 12px 0;
  padding: 12px;
  border: 1px dashed #b7dacf;
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
}

.storage-plan-v6350 b {
  display: block;
  margin-bottom: 6px;
  color: #0f513f;
}

.storage-plan-v6350 ul {
  max-height: 220px;
  overflow: auto;
  margin: 8px 0 0;
  padding-left: 18px;
}

.storage-guard-actions {
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .storage-guard-options,
  .storage-path-grid {
    grid-template-columns: 1fr 1fr;
  }
  .storage-guard-head,
  .storage-meter,
  .storage-guard-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .storage-guard-options,
  .storage-path-grid {
    grid-template-columns: 1fr;
  }
}

/* V6.36.0 daily ledger UX and topbar de-dup */
body.v6360-daily-ux {
  --sidebar-width-v6360: 300px;
}

@media (min-width: 761px) {
  body.v6360-daily-ux #app:not(.hidden) {
    display: block !important;
    min-height: 100vh !important;
    background: linear-gradient(90deg, var(--nav) 0 var(--sidebar-width-v6360), #edf2f7 var(--sidebar-width-v6360) 100%) !important;
  }

  body.v6360-daily-ux #app:not(.hidden) > .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: var(--sidebar-width-v6360) !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 0 !important;
    box-shadow: 14px 0 32px rgba(15, 23, 42, .10) !important;
    z-index: 40 !important;
  }

  body.v6360-daily-ux #app:not(.hidden) > .workspace {
    margin-left: var(--sidebar-width-v6360) !important;
    width: calc(100% - var(--sidebar-width-v6360)) !important;
    min-width: 0 !important;
    min-height: 100vh !important;
    padding: 26px 28px 96px !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body.v6360-daily-ux .topbar {
    align-items: end !important;
  }

  body.v6360-daily-ux .topbar .top-actions {
    display: flex !important;
    align-items: end !important;
    justify-content: flex-end !important;
    gap: 10px !important;
  }
}

body.v6360-daily-ux .sidebar .nav[data-page="daily"],
body.v6360-daily-ux .sidebar .nav[data-page="entry"],
body.v6360-daily-ux .sidebar .nav[data-page="review"],
body.v6360-daily-ux .bottom-nav button[data-page="daily"],
body.v6360-daily-ux .bottom-nav button[data-page="entry"],
body.v6360-daily-ux .bottom-nav button[data-page="review"],
body.v6360-daily-ux [data-review-shortcut],
body.v6360-daily-ux [data-record-filter="review"],
body.v6360-daily-ux [data-quick-lookup="review"],
body.v6360-daily-ux #moreTopActionsV6290,
body.v6360-daily-ux #topActionMenuV6290 {
  display: none !important;
}

body.v6360-daily-ux .topbar .top-actions button::before,
body.v6360-daily-ux .topbar .top-actions button::after {
  content: none !important;
  display: none !important;
}

body.v6360-daily-ux .topbar .top-actions button .desktop-label,
body.v6360-daily-ux .topbar .top-actions button .mobile-label {
  display: none !important;
  font-size: 0 !important;
}

body.v6360-daily-ux .topbar .top-actions button .top-action-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  color: inherit !important;
  white-space: nowrap !important;
}

body.v6360-daily-ux .metric.review-soft-v6360 {
  border-color: #d9e8e2 !important;
  background: #fff !important;
  color: var(--text) !important;
}

body.v6360-daily-ux .tx-card-more-v6291,
body.v6360-daily-ux .tx-card-more-v6320,
body.v6360-daily-ux .tx-card-more-v6330,
body.v6360-daily-ux .search-card .tx-card-more-v6291 {
  display: grid !important;
  gap: 8px !important;
}

body.v6360-daily-ux .tx-extra,
body.v6360-daily-ux .note-detail,
body.v6360-daily-ux .note-inline {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

@media (max-width: 760px) {
  body.v6360-daily-ux #app:not(.hidden) {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body.v6360-daily-ux #app:not(.hidden) > .sidebar {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    border-radius: 0 0 22px 22px !important;
  }

  body.v6360-daily-ux #app:not(.hidden) > .workspace {
    width: 100% !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    padding: 10px 10px 86px !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body.v6360-daily-ux .topbar .top-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.v6360-daily-ux .topbar .top-actions .armenia-clock,
  body.v6360-daily-ux .topbar .top-actions .month-picker {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid #d9e8e2 !important;
    box-shadow: 0 5px 14px rgba(20, 35, 45, .045) !important;
  }

  body.v6360-daily-ux .topbar .top-actions .armenia-clock {
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    text-align: left !important;
    font-size: 12px !important;
    color: #60756f !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.v6360-daily-ux .topbar .top-actions .month-picker {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
  }

  body.v6360-daily-ux .topbar .top-actions .month-picker input {
    height: 38px !important;
    min-height: 38px !important;
    border: 0 !important;
    background: transparent !important;
    text-align: center !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }

  body.v6360-daily-ux .topbar .top-actions #installPwaBtn,
  body.v6360-daily-ux .topbar .top-actions #screenshotModeBtn {
    display: none !important;
  }

  body.v6360-daily-ux .topbar .top-actions #refreshBtn,
  body.v6360-daily-ux .topbar .top-actions #hideAmountsBtn,
  body.v6360-daily-ux .topbar .top-actions #quickLockBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 8px !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid #d9e8e2 !important;
    box-shadow: 0 5px 14px rgba(20, 35, 45, .045) !important;
    font-size: 0 !important;
  }

  body.v6360-daily-ux .topbar .top-actions button .top-action-text {
    font-size: 14px !important;
  }

  body.v6360-daily-ux .quick-lookup-row {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }

  body.v6360-daily-ux .quick-lookup-row button {
    flex: 0 0 auto !important;
  }
}

/* V6.37.0 daily ledger search polish */
body.v6370-daily-polish .tx-card-v6370,
body.v6370-daily-polish .search-card.tx-card-v6370{
  border:1px solid var(--line);
  box-shadow:0 10px 24px rgba(15,42,36,.07);
}
body.v6370-daily-polish .tx-card-v6370.needs-review{
  border-color:#f0c38c;
  background:#fffaf1;
}
body.v6370-daily-polish .tx-card-v6370.is-large{
  border-left:5px solid #bf3b3b;
}
body.v6370-daily-polish .tx-card-v6370.is-transfer{
  border-left:5px solid #2f6f90;
}
.tx-card-more-v6370{
  display:grid;
  gap:8px;
  margin-top:10px;
}
.tx-direct-v6370{
  display:grid;
  gap:4px;
  border:1px solid #dcebe6;
  border-radius:12px;
  background:#f9fdfb;
  padding:9px 10px;
  line-height:1.45;
}
.tx-direct-v6370 b{
  color:#176b50;
  font-size:12px;
}
.tx-direct-v6370 span{
  color:#19332f;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.tx-direct-v6370.comment{
  background:#f2fbf7;
  border-color:#bfe4d6;
}
.tx-direct-v6370.review-note{
  background:#fff8ee;
  border-color:#f0c38c;
}
.tx-direct-v6370.review-result{
  background:#f5f9ff;
  border-color:#c8dbf5;
}
.tx-direct-v6370.source{
  grid-template-columns:1fr auto;
  align-items:center;
}
.tx-direct-v6370.source b,
.tx-direct-v6370.source span{
  grid-column:1;
}
.tx-direct-v6370.source .copy-source-btn{
  grid-column:2;
  grid-row:1 / span 2;
  white-space:nowrap;
}
.search-summary-v6370{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.search-summary-v6370 span{
  display:grid;
  gap:4px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  background:#fff;
}
.search-summary-v6370 span b{
  font-size:20px;
  color:var(--text);
}
.search-summary-v6370 span em{
  font-style:normal;
  color:var(--muted);
}
.alias-hints-v6370{
  grid-column:1 / -1;
  display:grid;
  gap:6px;
  border:1px solid #f0c38c;
  border-radius:12px;
  padding:10px;
  background:#fff8ee;
}
.alias-hints-v6370 b{
  color:#a25c00;
}
.alias-hints-v6370 em{
  font-style:normal;
  color:#5f4425;
}
.dashboard-detail-v6370{
  border:1px dashed #bfe4d6;
  background:#f7fcfa;
}
.import-preview-summary-v6370{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:12px 0;
}
.import-preview-summary-v6370 span{
  display:grid;
  gap:4px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  padding:12px;
}
.import-preview-summary-v6370 b{
  font-size:20px;
  color:#0f2a24;
}
.import-preview-summary-v6370 em{
  font-style:normal;
  color:var(--muted);
}
.import-diff-v6370{
  border:1px solid #c8dbf5;
  border-radius:12px;
  background:#f5f9ff;
  padding:10px 12px;
  color:#294b77;
  margin:8px 0;
}
.import-report-v6370{
  border-color:#bfe4d6;
  background:#f6fcf9;
}
body.v6370-daily-polish .top-action-text{
  display:inline!important;
}

/* V6.37.2 mobile ledger detail cleanup */
.tx-actions-v6372{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.tx-actions-v6372 button{
  width:100%;
  min-width:0;
  min-height:40px;
  padding:8px 10px;
  border-radius:12px;
  font-weight:800;
}
@media(max-width:760px){
  body.v6372-mobile-detail-clean .tx-card-more-v6370{
    gap:7px;
    margin-top:8px;
  }
  body.v6372-mobile-detail-clean .tx-direct-v6370{
    padding:9px 10px;
    border-radius:13px;
  }
  body.v6372-mobile-detail-clean .tx-direct-v6370.source .copy-source-btn{
    min-height:34px;
    font-size:13px;
  }
  body.v6372-mobile-detail-clean .tx-actions-v6372{
    grid-template-columns:1fr 1fr 1fr;
    gap:7px;
    margin-top:9px;
  }
  body.v6372-mobile-detail-clean .tx-actions-v6372 button{
    min-height:38px;
    padding:7px 8px;
    font-size:13px;
  }
}

/* V6.37.1 dashboard detail bugfix + desktop ledger table readability */
@media (min-width: 901px){
  body.v6371-dashboard-detail-fix #records .table-wrap{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
    border-radius:18px;
    border:1px solid var(--line);
    background:#fff;
  }
  body.v6371-dashboard-detail-fix #records table{
    min-width:1280px;
    table-layout:fixed;
  }
  body.v6371-dashboard-detail-fix #txTable td,
  body.v6371-dashboard-detail-fix #txTable th{
    vertical-align:top;
    word-break:normal;
    overflow-wrap:normal;
  }
  body.v6371-dashboard-detail-fix #txTable th:nth-child(1),
  body.v6371-dashboard-detail-fix #txTable td:nth-child(1){
    width:112px;
    white-space:nowrap;
  }
  body.v6371-dashboard-detail-fix #txTable th:nth-child(2),
  body.v6371-dashboard-detail-fix #txTable td:nth-child(2){
    width:82px;
    white-space:nowrap;
  }
  body.v6371-dashboard-detail-fix #txTable th:nth-child(3),
  body.v6371-dashboard-detail-fix #txTable td:nth-child(3){
    width:94px;
  }
  body.v6371-dashboard-detail-fix #txTable th:nth-child(4),
  body.v6371-dashboard-detail-fix #txTable td:nth-child(4){
    width:120px;
  }
  body.v6371-dashboard-detail-fix #txTable th:nth-child(5),
  body.v6371-dashboard-detail-fix #txTable td:nth-child(5){
    width:72px;
    white-space:nowrap;
  }
  body.v6371-dashboard-detail-fix #txTable th:nth-child(6),
  body.v6371-dashboard-detail-fix #txTable td:nth-child(6),
  body.v6371-dashboard-detail-fix #txTable th:nth-child(7),
  body.v6371-dashboard-detail-fix #txTable td:nth-child(7),
  body.v6371-dashboard-detail-fix #txTable th:nth-child(8),
  body.v6371-dashboard-detail-fix #txTable td:nth-child(8){
    width:124px;
    white-space:nowrap;
  }
  body.v6371-dashboard-detail-fix #txTable th:nth-child(9),
  body.v6371-dashboard-detail-fix #txTable td:nth-child(9){
    width:86px;
  }
  body.v6371-dashboard-detail-fix #txTable th:nth-child(10),
  body.v6371-dashboard-detail-fix #txTable td:nth-child(10){
    width:330px;
  }
  body.v6371-dashboard-detail-fix #txTable th:nth-child(11),
  body.v6371-dashboard-detail-fix #txTable td:nth-child(11){
    width:94px;
  }
  body.v6371-dashboard-detail-fix #txTable .pill{
    white-space:nowrap;
    display:inline-flex;
    min-width:52px;
    justify-content:center;
  }
  body.v6371-dashboard-detail-fix #txTable .tx-direct-v6370{
    margin:0 0 6px;
    padding:7px 9px;
    border-radius:10px;
    line-height:1.5;
  }
  body.v6371-dashboard-detail-fix #txTable .tx-direct-v6370.source{
    grid-template-columns:1fr;
  }
  body.v6371-dashboard-detail-fix #txTable .tx-direct-v6370.source .copy-source-btn{
    grid-column:1;
    grid-row:auto;
    width:max-content;
    max-width:100%;
    padding:6px 10px;
  }
  body.v6371-dashboard-detail-fix #txTable .row-actions{
    display:grid;
    gap:8px;
  }
  body.v6371-dashboard-detail-fix #txTable .row-actions button{
    width:100%;
    min-width:0;
    padding:8px 10px;
  }
}

/* V6.37.3 desktop ledger table restore: keep notes visible without pushing actions off screen */
@media (min-width: 901px){
  body.v6373-desktop-ledger-table #records .table-wrap{
    overflow-x:auto!important;
    overflow-y:visible;
    border-radius:18px;
  }
  body.v6373-desktop-ledger-table #records table{
    width:100%;
    min-width:1120px;
    table-layout:fixed;
  }
  body.v6373-desktop-ledger-table #txTable th,
  body.v6373-desktop-ledger-table #txTable td{
    padding:13px 14px;
    vertical-align:top;
  }
  body.v6373-desktop-ledger-table #txTable th:nth-child(1),
  body.v6373-desktop-ledger-table #txTable td:nth-child(1){ width:88px; }
  body.v6373-desktop-ledger-table #txTable th:nth-child(2),
  body.v6373-desktop-ledger-table #txTable td:nth-child(2){ width:62px; }
  body.v6373-desktop-ledger-table #txTable th:nth-child(3),
  body.v6373-desktop-ledger-table #txTable td:nth-child(3){ width:82px; }
  body.v6373-desktop-ledger-table #txTable th:nth-child(4),
  body.v6373-desktop-ledger-table #txTable td:nth-child(4){ width:104px; }
  body.v6373-desktop-ledger-table #txTable th:nth-child(5),
  body.v6373-desktop-ledger-table #txTable td:nth-child(5){ width:52px; }
  body.v6373-desktop-ledger-table #txTable th:nth-child(6),
  body.v6373-desktop-ledger-table #txTable td:nth-child(6){ width:104px; }
  body.v6373-desktop-ledger-table #txTable th:nth-child(7),
  body.v6373-desktop-ledger-table #txTable td:nth-child(7){ width:96px; }
  body.v6373-desktop-ledger-table #txTable th:nth-child(8),
  body.v6373-desktop-ledger-table #txTable td:nth-child(8){ width:104px; }
  body.v6373-desktop-ledger-table #txTable th:nth-child(9),
  body.v6373-desktop-ledger-table #txTable td:nth-child(9){ width:76px; }
  body.v6373-desktop-ledger-table #txTable th:nth-child(10),
  body.v6373-desktop-ledger-table #txTable td:nth-child(10){ width:240px; }
  body.v6373-desktop-ledger-table #txTable th:nth-child(11),
  body.v6373-desktop-ledger-table #txTable td:nth-child(11){ width:74px; }
  body.v6373-desktop-ledger-table #txTable td:nth-child(10){
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  body.v6373-desktop-ledger-table #txTable .tx-direct-v6370{
    display:block;
    margin:0 0 6px;
    padding:6px 8px;
    border-radius:10px;
    line-height:1.38;
    font-size:13px;
  }
  body.v6373-desktop-ledger-table #txTable .tx-direct-v6370 b{
    display:inline;
    margin-right:6px;
    font-size:12px;
  }
  body.v6373-desktop-ledger-table #txTable .tx-direct-v6370 span{
    display:inline;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  body.v6373-desktop-ledger-table #txTable .tx-direct-v6370.source{
    display:block;
  }
  body.v6373-desktop-ledger-table #txTable .tx-direct-v6370.source b,
  body.v6373-desktop-ledger-table #txTable .tx-direct-v6370.source span{
    display:block;
  }
  body.v6373-desktop-ledger-table #txTable .tx-direct-v6370.source .copy-source-btn{
    display:inline-flex;
    width:auto;
    max-width:100%;
    margin-top:6px;
    padding:5px 9px;
    font-size:12px;
  }
  body.v6373-desktop-ledger-table #txTable .row-actions{
    display:grid;
    gap:7px;
  }
  body.v6373-desktop-ledger-table #txTable .row-actions button{
    width:100%;
    min-width:0;
    padding:7px 8px;
    border-radius:10px;
    font-size:13px;
  }
}

/* V6.37.4 desktop ledger notes: compact summary instead of tall cards */
@media (min-width: 901px){
  body.v6374-desktop-compact-notes #records table{
    min-width:1180px;
  }
  body.v6374-desktop-compact-notes #txTable th:nth-child(10),
  body.v6374-desktop-compact-notes #txTable td:nth-child(10){
    width:270px;
  }
  body.v6374-desktop-compact-notes #txTable th:nth-child(11),
  body.v6374-desktop-compact-notes #txTable td:nth-child(11){
    width:86px;
  }
  body.v6374-desktop-compact-notes #txTable td:nth-child(10){
    padding-top:10px;
    padding-bottom:10px;
  }
  body.v6374-desktop-compact-notes .tx-table-summary-v6374{
    display:grid;
    gap:5px;
    min-width:0;
  }
  body.v6374-desktop-compact-notes .tx-table-line-v6374{
    display:flex;
    align-items:flex-start;
    gap:7px;
    min-width:0;
    padding:4px 7px;
    border:1px solid #d5e6df;
    background:#f8fcfa;
    border-radius:9px;
    color:#193c38;
    line-height:1.35;
    font-size:13px;
  }
  body.v6374-desktop-compact-notes .tx-table-line-v6374 b{
    flex:0 0 auto;
    color:#277163;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
  }
  body.v6374-desktop-compact-notes .tx-table-line-v6374 span{
    flex:1 1 auto;
    min-width:0;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    word-break:break-word;
  }
  body.v6374-desktop-compact-notes .tx-table-line-v6374.source{
    align-items:center;
    background:#fff;
    border-color:#d9e3ef;
  }
  body.v6374-desktop-compact-notes .tx-table-line-v6374.source span{
    -webkit-line-clamp:1;
  }
  body.v6374-desktop-compact-notes .tx-table-line-v6374 .copy-source-btn{
    flex:0 0 auto;
    min-height:26px;
    padding:3px 8px;
    border-radius:8px;
    font-size:12px;
    white-space:nowrap;
  }
}

/* V6.37.5 desktop ledger notes: folded by default, open detail drawer on demand */
@media (min-width: 901px){
  body.v6375-folded-ledger-notes #txTable th:nth-child(10),
  body.v6375-folded-ledger-notes #txTable td:nth-child(10){
    width:230px;
  }
  body.v6375-folded-ledger-notes #txTable td:nth-child(10){
    padding-top:10px;
    padding-bottom:10px;
  }
  body.v6375-folded-ledger-notes .tx-fold-v6375{
    display:grid;
    gap:7px;
    min-width:0;
    max-width:100%;
  }
  body.v6375-folded-ledger-notes .tx-fold-tags-v6375{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    align-items:center;
  }
  body.v6375-folded-ledger-notes .tx-fold-tag-v6375{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:24px;
    padding:3px 8px;
    border:1px solid #cfe4dc;
    border-radius:999px;
    background:#f4fbf8;
    color:#256457;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
  }
  body.v6375-folded-ledger-notes .tx-fold-tag-v6375.source{
    border-color:#d7e2f2;
    background:#f7faff;
    color:#345274;
  }
  body.v6375-folded-ledger-notes .tx-fold-tag-v6375.review-note{
    border-color:#f2d7a8;
    background:#fff8ec;
    color:#9a6317;
  }
  body.v6375-folded-ledger-notes .tx-fold-preview-v6375{
    min-width:0;
    color:#496075;
    font-size:13px;
    line-height:1.35;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body.v6375-folded-ledger-notes .tx-fold-actions-v6375{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }
  body.v6375-folded-ledger-notes .tx-fold-actions-v6375 button{
    min-height:28px;
    padding:4px 9px;
    border-radius:9px;
    font-size:12px;
    font-weight:900;
  }
}
@media(max-width:760px){
  .search-summary-v6370,
  .import-preview-summary-v6370{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tx-direct-v6370.source{
    grid-template-columns:1fr;
  }
  .tx-direct-v6370.source .copy-source-btn{
    grid-column:1;
    grid-row:auto;
    width:100%;
  }
}

/* V6.37.6 desktop workspace: one connected daily-work surface, not nine loose cards. */
@media (min-width: 901px){
  body.v6376-desktop-ledger-note-clean{
    --sidebar-width-v6360:272px;
  }
  body.v6376-desktop-ledger-note-clean #app:not(.hidden) > .sidebar{
    display:flex !important;
    flex-direction:column !important;
    padding:18px 14px 16px !important;
    background:linear-gradient(180deg,#111a2c 0%,#121b2d 58%,#0e1626 100%) !important;
    box-sizing:border-box !important;
    border-right:1px solid rgba(255,255,255,.07) !important;
    box-shadow:12px 0 28px rgba(15,23,42,.12) !important;
  }
  body.v6376-desktop-ledger-note-clean .sidebar .app-brand{
    min-height:72px;
    margin:0 2px 14px;
    padding:12px 12px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    background:rgba(255,255,255,.035);
  }
  body.v6376-desktop-ledger-note-clean .sidebar .brand-mark{
    width:38px;
    height:38px;
    border-radius:12px;
    font-size:21px;
    box-shadow:none;
  }
  body.v6376-desktop-ledger-note-clean .sidebar .app-brand b{
    font-size:17px;
    letter-spacing:-.02em;
  }
  body.v6376-desktop-ledger-note-clean .sidebar .app-brand span:not(.app-version){
    margin-top:2px;
    font-size:12px;
    opacity:.72;
  }
  body.v6376-desktop-ledger-note-clean .sidebar .app-version{
    margin-top:4px;
    color:#81d7bc;
    font-size:11px;
  }
  body.v6376-desktop-ledger-note-clean .sidebar nav{
    flex:1 1 auto;
    min-height:0;
    margin:0 -4px;
    padding:0 4px 10px;
    overflow-y:auto;
    scrollbar-width:thin;
    scrollbar-color:rgba(166,220,202,.42) transparent;
  }
  body.v6376-desktop-ledger-note-clean .sidebar .nav{
    position:relative;
    min-height:42px;
    margin:3px 0;
    padding:0 12px;
    border:1px solid transparent;
    border-radius:12px;
    background:transparent;
    color:#d8e2ed;
    font-size:15px;
    font-weight:760;
    text-align:left;
    box-shadow:none;
    transition:background .16s ease,border-color .16s ease,transform .16s ease;
  }
  body.v6376-desktop-ledger-note-clean .sidebar .nav span{
    display:inline-grid;
    place-items:center;
    width:27px;
    height:27px;
    margin-right:9px;
    border-radius:9px;
    background:rgba(255,255,255,.07);
    color:#b9d5cf;
    font-size:13px;
  }
  body.v6376-desktop-ledger-note-clean .sidebar .nav:hover{
    transform:translateX(2px);
    border-color:rgba(164,220,201,.18);
    background:rgba(255,255,255,.055);
  }
  body.v6376-desktop-ledger-note-clean .sidebar .nav.on{
    border-color:rgba(150,220,197,.22);
    background:linear-gradient(100deg,rgba(79,151,132,.42),rgba(58,103,127,.35));
    color:#fff;
  }
  body.v6376-desktop-ledger-note-clean .sidebar .nav.on::before{
    content:'';
    position:absolute;
    left:-5px;
    top:10px;
    bottom:10px;
    width:3px;
    border-radius:999px;
    background:#82d7bb;
  }
  body.v6376-desktop-ledger-note-clean .sidebar .nav.on span{
    background:rgba(159,230,207,.18);
    color:#c7f5e5;
  }
  body.v6376-desktop-ledger-note-clean .sidebar .user-box{
    flex:0 0 auto;
    margin:10px 2px 0;
    padding:13px 12px 12px;
    border-top:1px solid rgba(255,255,255,.09);
    background:rgba(0,0,0,.10);
  }
  body.v6376-desktop-ledger-note-clean .sidebar .user-box #userInfo{
    min-height:36px;
    color:#cbd7e4;
    font-size:13px;
  }
  body.v6376-desktop-ledger-note-clean .sidebar .user-box .ghost{
    width:100%;
    min-height:36px;
    margin-top:8px;
    border-color:rgba(255,255,255,.16);
    background:rgba(255,255,255,.06);
    color:#eef6fa;
  }
  body.v6376-desktop-ledger-note-clean #app:not(.hidden) > .workspace{
    padding:22px 28px 76px !important;
    background:#edf2f7 !important;
  }
  body.v6376-desktop-ledger-note-clean .topbar{
    margin:0 0 18px;
    padding:17px 20px;
    border:1px solid #dbe7e4;
    border-radius:18px;
    background:rgba(255,255,255,.92);
    box-shadow:0 10px 26px rgba(15,42,36,.06);
  }
  body.v6376-desktop-ledger-note-clean .topbar h1{
    font-size:28px;
    letter-spacing:-.03em;
  }
  body.v6376-desktop-ledger-note-clean .topbar p{
    margin-top:3px;
  }
  @media (min-width:1200px){
    body.v6376-desktop-ledger-note-clean .topbar{
      display:grid !important;
      grid-template-columns:minmax(230px,1fr) auto !important;
      column-gap:18px;
      align-items:center !important;
    }
    body.v6376-desktop-ledger-note-clean .topbar .top-actions{
      display:grid !important;
      grid-template-columns:185px 168px repeat(4,60px);
      align-items:end !important;
      justify-content:end !important;
      gap:8px !important;
    }
    body.v6376-desktop-ledger-note-clean .topbar .armenia-clock,
    body.v6376-desktop-ledger-note-clean .topbar .month-picker{
      min-width:0 !important;
      margin:0 !important;
    }
    body.v6376-desktop-ledger-note-clean .topbar .top-actions button{
      min-width:0 !important;
      padding-left:8px !important;
      padding-right:8px !important;
      white-space:nowrap !important;
    }
  }
  body.v6376-desktop-ledger-note-clean #dashboard .metric-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    align-items:stretch;
  }
  body.v6376-desktop-ledger-note-clean #dashboard .metric-grid > .metric{
    min-height:132px;
    padding:20px 22px;
    border:1px solid #e0e9e7;
    border-radius:17px;
    box-shadow:0 10px 24px rgba(15,42,36,.055);
  }
  body.v6376-desktop-ledger-note-clean #dashboard .metric-grid > .metric b{
    margin-top:10px;
    font-size:34px;
    letter-spacing:-.035em;
  }
  body.v6376-desktop-ledger-note-clean #dashboard .metric-grid > .metric.primary{
    border-color:transparent;
    box-shadow:0 14px 28px rgba(30,75,67,.17);
  }
  body.v6376-desktop-ledger-note-clean #dashboard .metric-grid > .metric:nth-child(n+5):not(:nth-child(9)){
    min-height:112px;
    padding:17px 20px;
    background:#fff;
  }
  body.v6376-desktop-ledger-note-clean #dashboard .metric-grid > .metric:nth-child(n+5):not(:nth-child(9)) b{
    margin-top:7px;
    font-size:29px;
  }
  body.v6376-desktop-ledger-note-clean #dashboard .metric-grid > .metric:nth-child(9){
    grid-column:1 / -1;
    min-height:0;
    padding:13px 20px;
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    column-gap:16px;
    border-color:#f1d29b;
    background:#fffaf1;
    box-shadow:none;
  }
  body.v6376-desktop-ledger-note-clean #dashboard .metric-grid > .metric:nth-child(9) span{
    font-weight:900;
    color:#8e5b12;
  }
  body.v6376-desktop-ledger-note-clean #dashboard .metric-grid > .metric:nth-child(9) b{
    margin:0;
    font-size:26px;
    color:#a76d1c;
  }
  body.v6376-desktop-ledger-note-clean #dashboard .metric-grid > .metric:nth-child(9) em{
    text-align:right;
  }
  body.v6376-desktop-ledger-note-clean #dashboard .quick-lookup{
    margin-top:16px;
    min-height:82px;
    padding:16px 20px;
    border:1px solid #d7e8e0;
    border-radius:17px;
    background:linear-gradient(100deg,#fbfffd,#f2faf6);
    box-shadow:none;
  }
  body.v6376-desktop-ledger-note-clean #dashboard .grid.two{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    margin-top:16px;
  }
  body.v6376-desktop-ledger-note-clean #dashboard .grid.two .panel{
    min-height:270px;
    border-radius:17px;
    box-shadow:0 8px 22px rgba(15,42,36,.045);
  }

  body.v6376-desktop-ledger-note-clean #txTable th:nth-child(10),
  body.v6376-desktop-ledger-note-clean #txTable td:nth-child(10){
    width:278px;
  }
  body.v6376-desktop-ledger-note-clean #txTable td:nth-child(10){
    padding:9px 10px;
    vertical-align:middle;
  }
  body.v6376-desktop-ledger-note-clean .tx-summary-v6376{
    display:grid;
    gap:6px;
    max-width:100%;
  }
  body.v6376-desktop-ledger-note-clean .tx-summary-open-v6376{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:8px;
    width:100%;
    min-height:34px;
    padding:7px 9px;
    border:1px solid #d7e6e1;
    border-radius:10px;
    background:#f8fcfa;
    color:#173b35;
    text-align:left;
    cursor:pointer;
  }
  body.v6376-desktop-ledger-note-clean .tx-summary-open-v6376:hover{
    border-color:#89bbae;
    background:#f0faf6;
  }
  body.v6376-desktop-ledger-note-clean .tx-summary-label-v6376{
    color:#21705e;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
  }
  body.v6376-desktop-ledger-note-clean .tx-summary-preview-v6376{
    min-width:0;
    overflow:hidden;
    color:#405d57;
    font-size:13px;
    line-height:1.35;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  body.v6376-desktop-ledger-note-clean .tx-summary-meta-v6376{
    display:flex;
    align-items:center;
    gap:7px;
    min-width:0;
    color:#71837f;
    font-size:12px;
  }
  body.v6376-desktop-ledger-note-clean .tx-summary-meta-v6376 > span{
    flex:1 1 auto;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  body.v6376-desktop-ledger-note-clean .tx-summary-meta-v6376 button{
    flex:0 0 auto;
    min-height:25px;
    padding:3px 8px;
    border-radius:8px;
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
  }
  body.v6376-desktop-ledger-note-clean .tx-summary-detail-v6376{
    border:0;
    background:transparent;
    color:#24725f;
  }
  body.v6376-desktop-ledger-note-clean .tx-summary-copy-v6376{
    border:1px solid #d7e2f2;
    background:#f7faff;
    color:#345274;
  }
  body.v6376-desktop-ledger-note-clean .tx-table-empty-v6376{
    color:#9aa9a5;
  }
}

/* V6.43.0: query-first daily ledger tools. */
.v643-search-tools,
.v643-backup-health{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:12px 0;
  padding:12px 14px;
  border:1px solid #d4e6df;
  border-radius:14px;
  background:#f7fcfa;
}
.v643-search-tools > div:first-child,
.v643-backup-health > div{display:grid;gap:3px;min-width:0}
.v643-search-tools b,
.v643-backup-health b{color:#163d35;font-size:14px}
.v643-search-tools span,
.v643-backup-health em{color:#668078;font-size:12px;font-style:normal}
.v643-search-tool-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.v643-search-tool-actions button,
.v643-backup-health button{
  min-height:34px;
  padding:6px 11px;
  border:1px solid #c8ddd6;
  border-radius:10px;
  background:#fff;
  color:#1e6656;
  font-weight:850;
  white-space:nowrap;
}
.v643-backup-health.ok{border-color:#bfe3d5;background:#f2fbf7}
.v643-backup-health.warn{border-color:#efd39d;background:#fffaf1}
.v643-backup-health.warn b{color:#9a6317}
.v643-search-date-group{
  margin:12px 0;
  border:1px solid #dde8e5;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.v643-search-date-group > header{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:9px 13px;
  border-bottom:1px solid #e7efec;
  background:#f8fcfa;
}
.v643-search-date-group > header b{color:#173b35}
.v643-search-date-group > header span,
.v643-search-date-group > header small{
  padding:3px 7px;
  border-radius:999px;
  background:#e8f4ef;
  color:#327261;
  font-size:12px;
  font-weight:800;
}
.v643-search-date-group > header em{margin-left:auto;color:#526c65;font-size:13px;font-style:normal;font-weight:850}
.v643-search-date-group .search-card{margin:0;border:0;border-radius:0;border-bottom:1px solid #edf2f0;box-shadow:none}
.v643-search-date-group .search-card:last-child{border-bottom:0}
.v643-search-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:9px}
.v643-search-card-actions > .tx-actions-v6372{margin:0}
.v643-import-report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}
.v643-import-report-grid span{display:grid;gap:2px;padding:9px;border:1px solid #dbe9e4;border-radius:10px;background:#f8fcfa}
.v643-import-report-grid b{font-size:18px;color:#183c35}
.v643-import-report-grid em{font-size:12px;color:#668078;font-style:normal}
.v643-import-top{margin:8px 0;padding:8px 10px;border:1px solid #dfeae6;border-radius:10px;background:#fbfefd}
.v643-import-top summary{cursor:pointer;font-weight:850;color:#285f52}
.v643-import-top ul{margin:8px 0 0;padding-left:18px;color:#506a63}
.v653-import-decision{display:flex;flex-wrap:wrap;gap:5px 9px;margin-top:6px;color:#276c5a;font-size:12px;line-height:1.45}
.v653-import-decision.legacy{color:#74817d}
.v653-import-decision span{color:#70817c}
.v653-import-decision-report{display:grid;gap:5px;margin-top:10px;padding:10px 12px;border:1px solid #cfe5dc;border-radius:12px;background:#f5fbf8}
.v653-import-decision-report>b{color:#1b5749}
.v653-timeline-preview{display:grid;gap:9px;margin-top:14px;padding:13px;border:1px solid #d9e8e2;border-radius:14px;background:#fbfefd}
.v653-timeline-preview header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.v653-timeline-preview header>b{color:#183e36}
.v653-timeline-preview header button,.v653-history-back{min-height:32px;padding:5px 9px}
.v653-timeline-preview ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.v653-timeline-preview li{display:grid;grid-template-columns:auto 1fr;gap:2px 9px;padding:8px 9px;border-radius:10px;background:#f2f8f5;color:#45625a;font-size:12px}
.v653-timeline-preview li b{color:#1d5a4c}
.v653-timeline-preview li span{font-variant-numeric:tabular-nums}
.v653-timeline-preview li em{grid-column:1/-1;color:#6b8079;font-style:normal;line-height:1.4}
.v653-timeline-preview li.empty{display:block;color:#72817d}
.v653-history-back{margin:0 0 12px}
.v653-offsite-status{display:block;grid-column:1/-1;color:#668078;font-size:12px;line-height:1.45}
.v653-ip-location{display:block;color:#54736a;font-size:12px;line-height:1.45}
@media(max-width:760px){
  .v643-search-tools,
  .v643-backup-health{align-items:flex-start;flex-direction:column;padding:11px 12px}
  .v643-search-tool-actions{justify-content:flex-start;width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}
  .v643-search-tool-actions button{flex:0 0 auto}
  .v643-backup-health{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .v643-backup-health > div{min-width:0}
  .v643-backup-health em{line-height:1.45}
  .v643-search-date-group{margin:10px 0;border-radius:13px}
  .v643-search-date-group > header{gap:6px;padding:9px 10px;flex-wrap:wrap}
  .v643-search-date-group > header em{margin-left:0;flex-basis:100%}
  .v643-search-card-actions{gap:6px}
  .v643-search-card-actions .tx-actions-v6372{width:100%}
  .v643-import-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v653-timeline-preview{padding:11px}
  .v653-timeline-preview li{grid-template-columns:1fr}
  .v653-timeline-preview li em{grid-column:auto}
}

/* V6.45.0: real import issues + object 30-day ledger. */
.v645-import-issues{
  display:grid;
  gap:10px;
  margin:12px 0;
  padding:13px 14px;
  border:1px solid #c9e2d8;
  border-radius:15px;
  background:#f4fbf8;
}
.v645-import-issues.has-issues{border-color:#eed198;background:#fffaf0}
.v645-import-issues-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.v645-import-issues-head > div{display:grid;gap:3px;min-width:0}
.v645-import-issues-head span{font-size:12px;font-weight:850;color:#4b7469}
.v645-import-issues-head b{font-size:16px;color:#183c35}
.v645-import-issues.has-issues .v645-import-issues-head b{color:#8a5b17}
.v645-import-issues-head em,.v645-import-issues > small{font-size:12px;line-height:1.45;color:#667f78;font-style:normal}
.v645-import-issues button{
  flex:0 0 auto;
  min-height:34px;
  padding:6px 11px;
  border:1px solid #c7ddd5;
  border-radius:10px;
  background:#fff;
  color:#216a59;
  font-weight:850;
}
.v645-import-issues ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.v645-import-issues li{display:flex;align-items:baseline;gap:7px;min-width:0;color:#36554c}
.v645-import-issues li span{flex:0 0 auto;padding:2px 6px;border-radius:999px;background:#f8e5c0;color:#985d10;font-size:11px;font-weight:850}
.v645-import-issues li span.error{background:#f9dddd;color:#a33f35}
.v645-import-issues li b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.v645-import-issues li em{margin-left:auto;flex:0 0 auto;font-size:12px;color:#7b8e88;font-style:normal}
.v645-import-issue-list{display:grid;gap:8px;margin-top:10px}
.v645-import-issue-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid #e1e9e5;border-radius:11px;background:#fbfefd}
.v645-import-issue-row.error{border-color:#efc7c3;background:#fff8f7}
.v645-import-issue-row > div{display:grid;gap:3px;min-width:0}
.v645-import-issue-row b{color:#22473d;font-size:14px}
.v645-import-issue-row span,.v645-import-issue-row small{color:#668078;font-size:12px}
.object-window-v6450{display:grid;gap:10px;margin:13px 0;padding:13px;border:1px solid #cfdfef;border-radius:14px;background:#f7fbff}
.object-window-head{display:flex;align-items:end;justify-content:space-between;gap:12px}
.object-window-head > div{display:grid;gap:3px}
.object-window-head span{color:#52708e;font-size:12px;font-weight:850}
.object-window-head b{color:#173d61;font-size:15px}
.object-window-head em{color:#6c8194;font-size:12px;font-style:normal}
.object-window-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.object-window-grid > div{display:grid;align-content:start;gap:4px;min-width:0;padding:10px;border:1px solid #dbe8f4;border-radius:10px;background:#fff}
.object-window-grid span{color:#63798c;font-size:12px}
.object-window-grid b{overflow:hidden;color:#173d61;font-size:14px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.object-window-grid small{overflow:hidden;color:#78909f;font-size:11px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.v645-import-issues-metric{cursor:pointer}
.v645-import-issues-metric:hover{border-color:#dfbd75;box-shadow:0 8px 20px rgba(138,91,23,.1)}
@media(max-width:760px){
  .v645-import-issues{margin:10px 0;padding:11px 12px}
  .v645-import-issues-head{align-items:flex-start}
  .v645-import-issues li{align-items:flex-start;flex-wrap:wrap}
  .v645-import-issues li b{white-space:normal}
  .v645-import-issues li em{margin-left:0;flex-basis:100%}
  .v645-import-issue-row{align-items:flex-start;flex-direction:column}
  .object-window-v6450{margin:10px 0;padding:11px}
  .object-window-head{align-items:flex-start;flex-direction:column;gap:3px}
  .object-window-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .object-window-grid > div{padding:9px}
}

/* V6.46.0: keep daily loading in normal flow and add query-first insights. */
.object-window-actions-v6460{display:flex;justify-content:flex-end}
.object-window-actions-v6460 button{
  min-height:32px;
  padding:5px 10px;
  border:1px solid #bfd5ec;
  border-radius:9px;
  background:#fff;
  color:#245b87;
  font-size:12px;
  font-weight:850;
}
.object-risk-v6460{
  display:grid;
  gap:3px;
  margin:10px 0 13px;
  padding:10px 12px;
  border:1px solid #d9e5e1;
  border-radius:12px;
  background:#fbfefd;
}
.object-risk-v6460 span{color:#5d776e;font-size:11px;font-weight:850}
.object-risk-v6460 b{color:#24493f;font-size:14px}
.object-risk-v6460 em{color:#667f78;font-size:12px;font-style:normal;line-height:1.45}
.object-risk-v6460.warn{border-color:#efd098;background:#fffaf0}
.object-risk-v6460.warn b{color:#925c10}
.object-risk-v6460.good{border-color:#bde2d4;background:#f2fbf7}
.object-risk-v6460.good b{color:#19694f}
.v646-object-favorites{display:flex;align-items:center;gap:8px;margin:9px 0 0;min-width:0}
.v646-object-favorites>span{flex:0 0 auto;color:#4b6d63;font-size:12px;font-weight:900}
.v646-object-favorites>div{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.v646-object-favorites button{min-height:29px;padding:4px 9px;border:1px solid #cbe1d9;border-radius:999px;background:#f7fcfa;color:#1b6555;font-size:12px;font-weight:850}
.v646-object-favorites .v646-favorite-remove{margin-left:-10px;padding:3px 7px;border-color:#e2e9e7;background:#fff;color:#71817d}
.v646-import-preview-diff,.v646-import-completion-diff{display:grid;gap:7px;margin-top:10px;padding:10px;border:1px solid #cfe2ec;border-radius:11px;background:#f8fcff}
.v646-import-preview-diff>b,.v646-import-completion-diff>b{color:#244f71;font-size:14px}
.v646-import-preview-diff>span{color:#637b8f;font-size:12px;line-height:1.45}
.v646-import-preview-diff>div{display:grid;gap:5px}
.v646-import-preview-diff strong{color:#365d7d;font-size:13px}
.import-receipt-v6500{display:grid;gap:3px;margin:0 0 10px;padding:10px 12px;border:1px solid #b9dfce;border-radius:11px;background:#f0fbf6;color:#21634e}
.import-receipt-v6500 b{font-size:13px}.import-receipt-v6500 span{font-size:12px;line-height:1.45}
.import-rollback-state-v6500{display:inline-flex;align-items:center;max-width:240px;padding:6px 9px;border:1px solid #d8e4df;border-radius:9px;background:#f8fbfa;color:#637972;font-size:12px;line-height:1.35}
.v651-import-reconciliation{display:grid;gap:9px;margin-top:11px;padding:10px 11px;border:1px solid #d9e9e2;border-radius:11px;background:#fbfefd;color:#436258}
.v651-import-reconciliation summary{display:flex;align-items:baseline;justify-content:space-between;gap:10px;cursor:pointer;list-style:none}
.v651-import-reconciliation summary::-webkit-details-marker{display:none}.v651-import-reconciliation summary b{color:#204b40}.v651-import-reconciliation summary span{font-size:12px;line-height:1.45;color:#668078}
.v651-import-reconciliation ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}.v651-import-reconciliation li{display:flex;align-items:baseline;gap:8px;min-width:0;padding:7px 8px;border-radius:8px;background:#fff}.v651-import-reconciliation li b{flex:0 0 112px;font-size:12px}.v651-import-reconciliation li span{font-size:12px;line-height:1.4;color:#607970}.v651-import-reconciliation li.warning{background:#fff8ee}.v651-import-reconciliation li.review{background:#f7fbff}.v651-import-reconciliation>small{font-size:12px;color:#70867f}.v651-import-reconciliation.warn{border-color:#efd39d;background:#fffaf1}.v651-import-reconciliation.review{border-color:#cfe0ee;background:#f8fcff}
@media(max-width:700px){.v651-import-reconciliation summary{align-items:flex-start;flex-direction:column}.v651-import-reconciliation li{align-items:flex-start;flex-direction:column;gap:3px}.v651-import-reconciliation li b{flex:auto}}
@media(max-width:900px){
  body.v640-mobile-ledger #records #txPagingBar{display:none!important}
  body.v640-mobile-ledger #records #txCards{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
  body.v640-mobile-ledger #records .load-more-cards{position:static!important;margin:12px 0 0!important;box-shadow:none!important}
  body.v640-mobile-ledger .tx-day-v6460{scroll-margin-top:64px}
  .object-window-actions-v6460{justify-content:stretch}
  .object-window-actions-v6460 button{width:100%;min-height:38px}
  .v646-object-favorites{align-items:flex-start;flex-direction:column}
  .v646-object-favorites>div{width:100%;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
  .v646-object-favorites button{flex:0 0 auto}
}

/* V6.49.0: compact, read-only SQLite health panel in system settings. */
.sqlite-safety-v6490{display:grid;gap:10px;margin-top:12px;padding:12px;border:1px solid #cfe1db;border-radius:13px;background:#fbfffd}
.sqlite-safety-v6490 summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;color:#173d35;font-weight:900}
.sqlite-safety-v6490 summary span{color:#6c837c;font-size:12px;font-weight:700}
.sqlite-safety-actions{display:flex;justify-content:flex-start}
.sqlite-rebuild-v6550{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border:1px solid #edc98c;border-radius:10px;background:#fff8eb;color:#745018;font-size:13px;line-height:1.55}
.sqlite-rebuild-v6550 button{margin-left:auto}
.sqlite-status-v6490{display:grid;gap:9px;color:#637b73;font-size:13px;line-height:1.45}
.sqlite-status-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.sqlite-status-line b{color:#244c42}
.sqlite-status-line.ok span{color:#26725a}
.sqlite-status-line.warn span{color:#9a6516}
.sqlite-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.sqlite-status-grid span{display:grid;gap:2px;padding:8px 9px;border:1px solid #e0ece7;border-radius:9px;background:#fff;color:#597168;font-size:12px}
.sqlite-status-grid b{color:#2b4f45;font-size:11px}
@media(max-width:700px){.sqlite-safety-v6490 summary{align-items:flex-start;flex-direction:column}.sqlite-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sqlite-rebuild-v6550 button{margin-left:0;width:100%}}

/* V6.54.0: compact daily confirmation and live session controls. */
.v654-import-decision{display:block;margin-top:5px;font-size:12px;font-weight:800}.v654-import-decision.safe{color:#277357}.v654-import-decision.changed{color:#9a6516}
.v654-daily-control{display:grid;gap:10px;margin:10px 0 12px;padding:13px 15px;border:1px solid #cbe1da;border-radius:15px;background:linear-gradient(135deg,#fbfffd,#f3faf7)}
.v654-daily-control-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.v654-daily-control-head>div:first-child{display:grid;gap:3px;min-width:0}.v654-daily-control-head span{font-size:12px;font-weight:900;color:#5f7d72}.v654-daily-control-head b{font-size:16px;color:#173d35}.v654-daily-control-head small{color:#68827a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v654-daily-control-stats{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.v654-daily-control-stats em{font-style:normal;padding:5px 8px;border-radius:999px;background:#eaf5ef;color:#286750;font-size:12px;font-weight:800}.v654-daily-control-stats em.attention{background:#fff4dd;color:#9a6516}.v654-daily-control-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.v654-daily-control-actions select{min-width:220px;flex:0 1 300px}.v654-daily-control-actions small,.v654-daily-control-note{color:#6c837c;font-size:12px}
.v654-live-sessions{display:grid;gap:10px}.v654-live-sessions header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.v654-live-sessions header>div{display:grid;gap:3px}.v654-live-sessions header>span{padding:4px 8px;border-radius:999px;background:#eef5f2;color:#286750;font-size:12px;font-weight:900;white-space:nowrap}.v654-live-session-list{display:grid;gap:8px}.v654-live-session-list>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px 10px;align-items:center;padding:10px 11px;border:1px solid #deebe6;border-radius:11px;background:#fff}.v654-live-session-list>div.review{border-color:#f2c77f;background:#fffaf0}.v654-live-session-list>div>b{font-size:12px;color:#287158}.v654-live-session-list>div.review>b{color:#996017}.v654-live-session-list>div>span{min-width:0;color:#36564b;font-size:13px}.v654-live-session-list>div>small{grid-column:2;color:#768b84;font-size:12px}.v654-live-session-list>div>button{grid-column:3;grid-row:1 / span 2;min-height:32px}
@media(max-width:700px){.v654-daily-control{padding:11px 12px}.v654-daily-control-head{align-items:flex-start;display:grid}.v654-daily-control-stats{justify-content:flex-start}.v654-daily-control-head small{white-space:normal}.v654-daily-control-actions{display:grid;grid-template-columns:1fr}.v654-daily-control-actions select,.v654-daily-control-actions button{width:100%;min-width:0}.v654-live-session-list>div{grid-template-columns:1fr;gap:5px}.v654-live-session-list>div>small,.v654-live-session-list>div>button{grid-column:auto;grid-row:auto}.v654-live-session-list>div>button{width:100%}}
.audit-evidence-v6600 {
  display: grid;
  gap: 4px;
}

.audit-evidence-v6600 b {
  color: #244c42;
}

.audit-evidence-v6600 span,
.audit-evidence-v6600 small {
  font-size: 12px;
  line-height: 1.5;
  color: #587168;
}

.backup-capacity-v6600 {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 7px 0 10px;
  padding: 9px 11px;
  border: 1px solid #efd39d;
  border-radius: 12px;
  background: #fffaf1;
  color: #76531d;
  font-size: 12px;
}

.backup-capacity-v6600 b {
  font-size: 13px;
}

.backup-capacity-v6600 span {
  flex: 1;
}

.backup-capacity-v6600 button {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
}

.backup-capacity-v6600.critical {
  border-color: #e8aaa4;
  background: #fff3f2;
  color: #9b3d36;
}

@media (max-width: 700px) {
  .backup-capacity-v6600 {
    align-items: stretch;
  }

  .backup-capacity-v6600 button {
    width: 100%;
  }
}

/* V6.60.4: receipt, read-only health centre, and encrypted-backup retention */
.v6604-receipt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:4px 0}.v6604-receipt-grid span{display:grid;gap:3px;padding:10px;border:1px solid #dce9e4;border-radius:10px;background:#fff}.v6604-receipt-grid em{font-size:12px;font-style:normal;color:#6f867d}.v6604-receipt-grid strong{color:#244c42;font-size:16px}.v6604-receipt-actions{margin-top:4px}
.v6604-data-health-host{display:grid;gap:8px}.v6604-data-health{display:grid;gap:10px}.v6604-data-health summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}.v6604-data-health summary>span{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.v6604-data-health summary b{color:#244c42}.v6604-data-health summary em{padding:3px 8px;border-radius:999px;font-size:12px;font-style:normal;font-weight:800}.v6604-data-health summary em.ok{color:#1f7558;background:#e8f5ee}.v6604-data-health summary em.warn{color:#955a12;background:#fff2d9}.v6604-data-health summary small,.v6604-data-health-meta{font-size:12px;color:#6a8178}.v6604-health-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v6604-health-list article{display:grid;gap:3px;padding:10px 11px;border:1px solid #dfeae6;border-radius:10px;background:#fff}.v6604-health-list article.ok{border-left:3px solid #53a77c}.v6604-health-list article.warn{border-left:3px solid #d8a34e;background:#fffaf0}.v6604-health-list b{font-size:13px;color:#244c42}.v6604-health-list span{font-size:12px;line-height:1.5;color:#60786f}.v6604-health-actions{display:flex;gap:8px;flex-wrap:wrap}
.v6604-retention{margin-top:8px;padding:10px 11px;border:1px solid #e0ebe6;border-radius:11px;background:#fbfefd}.v6604-retention summary{cursor:pointer;font-weight:800;color:#244c42}.v6604-retention summary span{margin-left:7px;color:#9a6516;font-size:12px}.v6604-retention p,.v6604-retention small{display:block;margin:9px 0;color:#627a71;font-size:12px;line-height:1.55}.v6604-retention-result{margin-top:8px;padding:8px 10px;border-radius:9px;font-size:12px;line-height:1.5}.v6604-retention-result.ok{color:#267158;background:#eef8f3}.v6604-retention-result.warn{color:#8b5d18;background:#fff7e8}
@media(max-width:700px){.v6604-receipt-grid,.v6604-health-list{grid-template-columns:1fr}.v6604-data-health summary{align-items:flex-start;flex-direction:column}.v6604-health-actions button{width:100%}.v6604-retention .storage-guard-options{grid-template-columns:1fr}}

/* Daily import, query and correction workflow. */
.v661-import-aftercare{display:grid;gap:8px;margin:10px 0;padding:11px 12px;border:1px solid #dce9e4;border-radius:12px;background:#fbfefd}.v661-import-aftercare>div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.v661-import-aftercare b{color:#244c42}.v661-import-aftercare>div span,.v661-import-aftercare>small{font-size:12px;line-height:1.55;color:#60786f}.v661-import-aftercare>ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}.v661-import-aftercare li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px;align-items:center;padding:7px 8px;border-radius:9px;background:#fff;font-size:12px}.v661-import-aftercare li.attention{border-left:3px solid #d69d42;background:#fffaf0}.v661-import-aftercare li.advice{border-left:3px solid #75a88e}.v661-import-aftercare li b{font-size:12px}.v661-import-aftercare li span{color:#617b72;line-height:1.45}.v661-import-aftercare li em{font-style:normal;color:#5f7a71;white-space:nowrap}.v661-record-filters{display:grid;gap:10px;margin:12px 0;padding:13px 14px;border:1px solid #d8e7e2;border-radius:14px;background:linear-gradient(135deg,#fbfffd,#f3faf7)}.v661-record-filter-head{display:grid;gap:3px}.v661-record-filter-head b{color:#1d4c41}.v661-record-filter-head span{color:#647e75;font-size:12px}.v661-record-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.v661-record-filter-grid label{display:grid;gap:4px;color:#587168;font-size:12px;font-weight:800}.v661-record-filter-grid input{min-width:0;width:100%;height:34px;padding:6px 8px;border:1px solid #d7e4df;border-radius:8px;background:#fff;color:#213f36}.v661-record-filter-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.v661-record-filter-actions select{min-width:180px;max-width:280px;height:36px}.v661-correction-reason{display:grid;gap:5px;padding:10px 11px;border:1px solid #edc379;border-radius:10px;background:#fff8e9;color:#895a12}.v661-correction-reason textarea{min-height:54px;resize:vertical;background:#fff}.v661-correction-reason small{font-size:12px;line-height:1.45;color:#876b3e}.v661-import-batch-trace{display:grid;gap:6px;margin:10px 0;padding:11px 12px;border:1px solid #c9e2d8;border-radius:12px;background:#f7fcf9}.v661-import-batch-trace>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.v661-import-batch-trace b{color:#225144}.v661-import-batch-trace>div span,.v661-import-batch-trace>span{font-size:12px;color:#637d74}.v661-import-batch-trace>div button{margin-left:auto}.v661-import-batch-trace>em{font-size:12px;font-style:normal;color:#8a5a13}.v661-operational-reminders{display:grid;gap:8px;margin:10px 0;padding:11px 13px;border:1px solid #e3e9e6;border-radius:13px;background:#fff}.v661-operational-reminders>b{color:#234d42}.v661-operational-reminders>div{display:flex;gap:7px;flex-wrap:wrap}.v661-operational-reminders article{display:grid;gap:2px;min-width:190px;flex:1 1 220px;padding:8px 9px;border-radius:10px;background:#f8fbfa;border-left:3px solid #77a991}.v661-operational-reminders article.warning{border-left-color:#d5963d;background:#fffaf0}.v661-operational-reminders article strong{font-size:13px;color:#285447}.v661-operational-reminders article span,.v661-operational-reminders article em{font-size:12px;line-height:1.4;color:#637b73}.v661-operational-reminders article em{font-style:normal;color:#34725d}
@media(max-width:1000px){.v661-record-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.v661-record-filters{padding:11px}.v661-record-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v661-record-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.v661-record-filter-actions button,.v661-record-filter-actions select{width:100%;min-width:0;max-width:none}.v661-import-aftercare li{grid-template-columns:1fr;gap:3px}.v661-import-aftercare li em{white-space:normal}.v661-import-batch-trace>div button{margin-left:0;width:100%}.v661-operational-reminders>div{display:grid;grid-template-columns:1fr}.v661-operational-reminders article{min-width:0}}

/* V6.62.0: import confidence and reusable lookup support.  These details are
   collapsed by default so the everyday ledger stays a fast lookup screen. */
.v662-template-health{display:grid;gap:9px;margin:0 0 12px;padding:12px 13px;border:1px solid #c9e2d8;border-radius:13px;background:#f7fcf9}.v662-template-health>div:first-child{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.v662-template-health b{color:#204f43}.v662-template-health span{font-size:12px;color:#607a70}.v662-template-health.review{border-color:#efd19a;background:#fffaf0}.v662-template-health.warn{border-color:#e6af9e;background:#fff5f3}.v662-template-health-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.v662-template-health-grid article{display:grid;gap:3px;min-width:0;padding:8px 9px;border:1px solid #dce9e4;border-radius:9px;background:#fff}.v662-template-health-grid article.review{border-left:3px solid #d79a40;background:#fffaf2}.v662-template-health-grid article.warning{border-left:3px solid #c96355;background:#fff6f4}.v662-template-health-grid article b{font-size:12px}.v662-template-health-grid article span{line-height:1.42}
.v662-daily-summary,.v662-batch-diff,.v662-archive-reminder{display:grid;gap:9px;margin-top:8px;padding:10px 11px;border:1px solid #dbe9e4;border-radius:11px;background:#fff}.v662-daily-summary summary,.v662-batch-diff summary,.v662-archive-reminder summary{display:flex;align-items:center;justify-content:space-between;gap:9px;cursor:pointer;color:#244d42;font-weight:900}.v662-daily-summary summary span,.v662-batch-diff summary span,.v662-archive-reminder summary span{color:#647d73;font-size:12px;font-weight:800}.v662-daily-summary>div,.v662-batch-diff>div{display:grid;gap:6px}.v662-daily-summary article{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 9px;border-radius:9px;background:#f8fbfa;font-size:12px}.v662-daily-summary article b{color:#245245}.v662-daily-summary article span{color:#58736a}.v662-daily-summary article em,.v662-daily-summary article i{font-style:normal;padding:3px 6px;border-radius:999px;background:#edf7f1;color:#287057;font-size:11px}.v662-daily-summary article i{background:#fff2d8;color:#956114}.v662-batch-diff article{display:grid;grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);gap:7px;align-items:start;padding:8px 9px;border-radius:9px;background:#f9fbfa;font-size:12px;line-height:1.45}.v662-batch-diff article.added{border-left:3px solid #59a47d}.v662-batch-diff article.changed{border-left:3px solid #d49a3f}.v662-batch-diff article.removed{border-left:3px solid #c96658;background:#fff8f7}.v662-batch-diff article b{color:#31574c}.v662-batch-diff article span{min-width:0;color:#617b72;overflow-wrap:anywhere}.v662-batch-diff small,.v662-archive-reminder p,.v662-archive-reminder small{margin:0;color:#627a71;font-size:12px;line-height:1.55}.v662-archive-reminder.review{border-color:#efd39b;background:#fffaf1}.v662-archive-reminder.warning{border-color:#e6aea0;background:#fff5f4}
.v662-correction-badge{display:inline-flex;align-items:center;justify-content:center;margin:0 5px 0 0;padding:3px 7px;border-radius:999px;background:#fff2d9;color:#955c10;font-size:11px;font-weight:900;vertical-align:middle}.v662-correction-detail{display:grid;gap:5px;margin:7px 0;padding:9px 10px;border:1px solid #eed399;border-radius:10px;background:#fffaf0}.v662-correction-detail summary{cursor:pointer;color:#825516;font-size:12px;font-weight:900}.v662-correction-detail p{margin:0;color:#5e7169;font-size:12px;line-height:1.5}.v662-correction-detail p b{color:#31564b}
@media(max-width:1000px){.v662-template-health-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.v662-template-health{padding:10px 11px}.v662-template-health-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.v662-daily-summary article{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.v662-daily-summary article b,.v662-daily-summary article em,.v662-daily-summary article i{grid-column:1 / -1}.v662-batch-diff article{grid-template-columns:42px minmax(0,1fr)}.v662-batch-diff article span:last-child{grid-column:2}.v662-correction-detail{margin:7px 0}}

/* V6.64: concise import outcomes, evidence disclosure and lookup rationale. */
.v664-import-risk,.v664-import-outcome{display:grid;gap:9px;margin-top:10px;padding:11px 12px;border:1px solid #e5c989;border-radius:12px;background:#fffaf0;color:#6c501d}.v664-import-risk summary{display:flex;align-items:baseline;justify-content:space-between;gap:8px;cursor:pointer}.v664-import-risk summary b,.v664-import-outcome b{color:#6e4a12}.v664-import-risk summary span{font-size:12px;color:#896527}.v664-import-risk p,.v664-import-risk ul,.v664-import-outcome ul{margin:0;padding-left:18px;font-size:12px;line-height:1.55}.v664-import-outcome{border-color:#d5e7df;background:#f9fdfb;color:#416b5c}.v664-import-outcome.review{border-color:#e5c989;background:#fffaf0}.v664-import-outcome>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.v664-import-outcome>div:first-child span{font-size:12px;font-weight:800}.v664-import-outcome-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.v664-import-outcome-grid span{display:grid;gap:3px;padding:8px 9px;border:1px solid #dbe9e3;border-radius:9px;background:#fff}.v664-import-outcome-grid em{font-size:11px;font-style:normal;color:#6b837a}.v664-import-outcome-grid strong{font-size:15px;color:#234d42}.v664-import-outcome details summary{cursor:pointer;font-size:12px;font-weight:800}.v664-source-evidence{margin:7px 0;border:1px solid #d8e7e1;border-radius:9px;background:#fbfefd}.v664-source-evidence summary{display:flex;align-items:center;gap:7px;padding:7px 9px;cursor:pointer;color:#2c5b4c}.v664-source-evidence summary b{font-size:12px}.v664-source-evidence summary span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#70857d}.v664-source-evidence>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 9px 9px;color:#58736a;font-size:12px;line-height:1.45}.v664-source-evidence>div>span{flex:1 1 220px;overflow-wrap:anywhere}.v664-source-evidence .copy-source-btn{min-height:30px;white-space:nowrap}.v664-search-match{display:inline-flex;align-items:center;max-width:100%;margin:2px 0 7px;padding:4px 8px;border-radius:999px;background:#edf7f1;color:#2d7058;font-size:11px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){.v664-import-outcome-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v664-import-risk summary{align-items:flex-start;flex-direction:column}.v664-source-evidence summary{align-items:flex-start}.v664-source-evidence summary span{white-space:normal}.v664-source-evidence>div{align-items:stretch}.v664-source-evidence .copy-source-btn{width:100%}}

/* V6.65.0: read-only import difference workspace and composable lookup. */
.ledger-advanced-filters-v665{margin:10px 0;padding:10px 12px;border:1px solid #d8e7e2;border-radius:12px;background:#fbfefd}.ledger-advanced-filters-v665 summary{display:flex;align-items:baseline;justify-content:space-between;gap:10px;cursor:pointer;color:#234d42}.ledger-advanced-filters-v665 summary span{font-size:12px;color:#6a8178}.ledger-advanced-filter-grid-v665{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px}.ledger-advanced-filter-grid-v665 label{display:grid;gap:4px;color:#587168;font-size:12px;font-weight:800}.ledger-advanced-filter-grid-v665 input,.ledger-advanced-filter-grid-v665 select{min-width:0;width:100%;height:35px;padding:6px 8px;border:1px solid #d6e4df;border-radius:8px;background:#fff;color:#233f36}
.v665-import-workbench{display:grid;gap:10px;margin:12px 0;padding:13px;border:1px solid #b9dcd0;border-radius:14px;background:linear-gradient(135deg,#fbfffd,#f1faf6);color:#305a4d}.v665-import-workbench>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.v665-import-workbench header>div{display:grid;gap:3px}.v665-import-workbench header b{font-size:16px;color:#1f4e40}.v665-import-workbench header span,.v665-import-workbench footer small{font-size:12px;line-height:1.5;color:#617a71}.v665-workbench-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.v665-workbench-metrics>span{display:grid;gap:3px;padding:9px;border:1px solid #d9e9e3;border-radius:10px;background:#fff}.v665-workbench-metrics em{font-size:11px;font-style:normal;color:#6e857c}.v665-workbench-metrics strong{font-size:16px;color:#244e42}.v665-import-workbench details{padding:9px 10px;border:1px solid #dceae5;border-radius:10px;background:#fff}.v665-import-workbench details summary{display:flex;align-items:baseline;justify-content:space-between;gap:8px;cursor:pointer;font-size:13px;font-weight:850;color:#294f44}.v665-import-workbench details summary span{color:#6c837a;font-size:12px}.v665-workbench-attention{display:grid;gap:6px;margin:9px 0 0;padding:0;list-style:none}.v665-workbench-attention li{display:grid;grid-template-columns:minmax(112px,.7fr) minmax(0,1.8fr) auto;gap:8px;align-items:start;padding:7px 8px;border-radius:8px;background:#f8fbfa;font-size:12px;line-height:1.45}.v665-workbench-attention li.warning{border-left:3px solid #c9685d;background:#fff6f5}.v665-workbench-attention li.review{border-left:3px solid #d69a3e;background:#fffaf1}.v665-workbench-attention li b{color:#31574b}.v665-workbench-attention li span{color:#627a71}.v665-workbench-attention li em{padding:2px 6px;border-radius:999px;background:#edf6f1;color:#2a6d57;font-size:11px;font-style:normal;font-weight:850}.v665-diff-list,.v665-compare-list{display:grid;gap:6px;margin-top:9px}.v665-diff-row{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;padding:7px 8px;border-radius:8px;background:#f8fbfa;font-size:12px;line-height:1.45}.v665-diff-row.added{border-left:3px solid #61a884}.v665-diff-row.changed{border-left:3px solid #d39a40}.v665-diff-row.removed{border-left:3px solid #c96658;background:#fff8f7}.v665-diff-row b{color:#31594d}.v665-diff-row span,.v665-compare-list span{color:#637b72;overflow-wrap:anywhere}.v665-import-workbench footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.v665-import-workbench footer>div{display:flex;gap:8px;flex-wrap:wrap}.v665-workbench-ok{margin:0;padding:8px 10px;border-radius:9px;background:#eef9f3;color:#267258;font-size:13px;font-weight:800}.v665-dashboard-continuity{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0;padding:11px 13px;border:1px solid #efd09a;border-radius:13px;background:#fffaf1;color:#76531d}.v665-dashboard-continuity>div{display:grid;gap:2px}.v665-dashboard-continuity b{color:#795114}.v665-dashboard-continuity span,.v665-dashboard-continuity p{margin:0;font-size:12px;line-height:1.45;color:#8a6426}.v665-dashboard-continuity p{flex:1 1 300px}.v665-dashboard-continuity button{margin-left:auto;white-space:nowrap}.v665-health-focus{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding:9px 10px;border:1px solid #dceae5;border-radius:10px;background:#f8fcfa}.v665-health-focus b{color:#254d42;font-size:13px}.v665-health-focus span{color:#607970;font-size:12px;line-height:1.5}.v665-health-focus.review{border-color:#efd09a;background:#fffaf1}.v665-health-focus.review b{color:#825719}
@media(max-width:1050px){.ledger-advanced-filter-grid-v665{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.ledger-advanced-filters-v665{padding:10px}.ledger-advanced-filters-v665 summary{align-items:flex-start;flex-direction:column}.ledger-advanced-filter-grid-v665,.v665-workbench-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.v665-import-workbench{padding:11px}.v665-import-workbench>header{display:grid}.v665-import-workbench>header button{width:100%}.v665-workbench-attention li{grid-template-columns:1fr;gap:3px}.v665-workbench-attention li em{justify-self:start}.v665-import-workbench footer{display:grid}.v665-import-workbench footer>div{display:grid;grid-template-columns:1fr}.v665-import-workbench footer button,.v665-dashboard-continuity button{width:100%;margin-left:0}.v665-dashboard-continuity{align-items:stretch;display:grid}.v665-diff-row{grid-template-columns:42px minmax(0,1fr)}}

/* V6.66.0: practical daily operations and Excel template confidence. */
.ledger-natural-query-v666{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:0 0 10px;padding:10px 12px;border:1px solid #cfe4dc;border-radius:12px;background:linear-gradient(135deg,#f9fdfb,#eff9f4)}.ledger-natural-query-v666 label{display:grid;gap:5px;flex:1;min-width:0;color:#295548;font-size:12px}.ledger-natural-query-v666 label b{font-size:13px}.ledger-natural-query-v666 input{width:100%;min-width:0;height:37px;border:1px solid #c9ded6;border-radius:9px;padding:7px 9px;background:#fff;color:#1e4539}.ledger-natural-query-v666>div{display:flex;align-items:center;gap:8px;flex:0 1 auto}.ledger-natural-query-v666 span{max-width:300px;color:#668077;font-size:12px;line-height:1.4}.v666-template-confidence{display:grid;gap:5px;margin:9px 0;padding:10px 11px;border:1px solid #c7e0d5;border-radius:11px;background:#f8fdfb;color:#315f50}.v666-template-confidence>div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.v666-template-confidence b{color:#21513f}.v666-template-confidence span,.v666-template-confidence small{font-size:12px;line-height:1.45;color:#668076}.v666-template-confidence.changed{border-color:#ebcc91;background:#fffaf0}.v666-template-confidence.changed b{color:#855a17}.v666-template-confidence.known_alternate{border-color:#cbdde9;background:#f7fbff}.v666-daily-ops,.v666-daily-digest{display:grid;gap:9px;margin:10px 0;padding:12px 13px;border:1px solid #cce3d8;border-radius:14px;background:linear-gradient(135deg,#fbfffd,#f2faf6);color:#315d50}.v666-daily-ops.review{border-color:#efd09a;background:#fffaf1;color:#76531d}.v666-daily-ops>header,.v666-daily-digest>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.v666-daily-ops header>div,.v666-daily-digest header>div{display:grid;gap:3px}.v666-daily-ops b,.v666-daily-digest b{font-size:15px;color:#245143}.v666-daily-ops.review b{color:#7a561a}.v666-daily-ops header span,.v666-daily-digest header span{font-size:12px;color:#658076}.v666-daily-exception-list{display:grid;gap:7px}.v666-daily-exception-list article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 9px;border:1px solid #d8e8e2;border-radius:10px;background:#fff}.v666-daily-exception-list article.resolved{border-color:#c7e2d3;background:#f8fdf9}.v666-daily-exception-list article>div{display:grid;gap:3px;min-width:0}.v666-daily-exception-list article b{font-size:13px}.v666-daily-exception-list article span,.v666-daily-exception-list article small{font-size:12px;line-height:1.45;color:#637e74}.v666-daily-exception-list article small{color:#287158}.v666-daily-ops>p,.v666-daily-digest>p{margin:0;color:#5e786e;font-size:12px;line-height:1.5}.v666-daily-digest{border-color:#d7e6df;background:#fbfefd}.v666-daily-digest-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.v666-daily-digest-grid span{display:grid;gap:3px;padding:9px;border:1px solid #dbeae4;border-radius:10px;background:#fff}.v666-daily-digest-grid em{font-size:11px;font-style:normal;color:#6a8279}.v666-daily-digest-grid strong{color:#244f42;font-size:15px}
@media(max-width:700px){.ledger-natural-query-v666{display:grid;padding:10px}.ledger-natural-query-v666>div{display:grid;grid-template-columns:auto minmax(0,1fr)}.ledger-natural-query-v666 span{max-width:none}.ledger-natural-query-v666 button{min-height:38px}.v666-daily-ops,.v666-daily-digest{padding:11px}.v666-daily-ops>header,.v666-daily-digest>header{display:grid}.v666-daily-ops>header button,.v666-daily-digest>header button{width:100%}.v666-daily-exception-list article{align-items:stretch;display:grid}.v666-daily-exception-list article button{width:100%}.v666-daily-digest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V6.66.1 mobile balance hierarchy: AMD and USD stay visible before all
   monthly statistics.  These selectors are deliberately scoped to the
   mobile-only dashboard summary, so desktop cards keep their established UI. */
.mobile-balance-hero-v6661{display:grid;gap:10px;padding:14px;border:1px solid #cfe4dc;border-radius:20px;background:linear-gradient(145deg,#f5fcf9 0%,#fff 58%,#eef8f6 100%);box-shadow:0 12px 30px rgba(14,62,52,.08)}
.mobile-balance-hero-v6661>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.mobile-balance-hero-v6661>header>div{display:grid;gap:3px;min-width:0}
.mobile-balance-hero-v6661>header span{font-size:12px;letter-spacing:.11em;font-weight:900;color:#245f52}
.mobile-balance-hero-v6661>header small{font-size:12px;line-height:1.35;color:#658077}
.mobile-balance-hero-v6661>header em{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#e2f4ec;color:#167052;font-size:11px;font-style:normal;font-weight:900}
.mobile-balance-cards-v6661{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.mobile-balance-card-v6661{display:grid;gap:8px;min-width:0;min-height:126px;padding:13px;border-radius:17px;color:#fff;box-shadow:0 12px 20px rgba(18,47,41,.18)}
.mobile-balance-card-v6661.amd{background:linear-gradient(145deg,#0c463b,#177a66 58%,#2b987b)}
.mobile-balance-card-v6661.usd{background:linear-gradient(145deg,#132b4c,#245889 58%,#3877af)}
.mobile-balance-card-v6661>div{display:flex;align-items:center;gap:7px;min-width:0}
.mobile-balance-card-v6661 i{display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:0 7px;border-radius:8px;background:rgba(255,255,255,.18);color:#fff;font-size:11px;font-style:normal;font-weight:950;letter-spacing:.04em}
.mobile-balance-card-v6661 span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(255,255,255,.84);font-size:12px;font-weight:800}
.mobile-balance-card-v6661 b{overflow:hidden;color:#fff;font-size:clamp(20px,5.8vw,29px);font-variant-numeric:tabular-nums;letter-spacing:-.045em;line-height:1.08;text-overflow:ellipsis;white-space:nowrap}
.mobile-balance-card-v6661 em{align-self:end;color:rgba(255,255,255,.76);font-size:11px;font-style:normal;font-weight:750}
.mobile-balance-reference-v6661{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border-radius:13px;background:rgba(255,255,255,.82);border:1px solid #d9ebe4}
.mobile-balance-reference-v6661 span{color:#5f7c73;font-size:12px;font-weight:800}
.mobile-balance-reference-v6661 b{color:#123f35;font-size:16px;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.mobile-core-money-v6661 span{min-height:70px;justify-content:center}
.mobile-core-money-v6661 strong{font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.mobile-balance-updated-v6661{margin:0;padding:0 2px;color:#71877f;font-size:11px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:360px){.mobile-balance-hero-v6661{padding:12px}.mobile-balance-cards-v6661{gap:7px}.mobile-balance-card-v6661{padding:11px;min-height:116px}.mobile-balance-card-v6661 b{font-size:19px}.mobile-balance-card-v6661 span{font-size:11px}}

/* V6.67.0: compact trust and operations diagnostics. */
.v667-balance-trust,.v667-performance-advisory,.v667-login-security{display:grid;gap:8px;margin:10px 0;padding:11px 13px;border:1px solid #cde3d9;border-radius:13px;background:linear-gradient(135deg,#fbfffd,#f1faf6);color:#315c50}.v667-balance-trust.review,.v667-performance-advisory.review,.v667-login-security.review{border-color:#ecd09a;background:#fffaf1;color:#76541e}.v667-balance-trust>div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.v667-balance-trust b,.v667-performance-advisory b,.v667-login-security b{color:#235142}.v667-balance-trust>div span,.v667-balance-trust>small,.v667-performance-advisory summary span,.v667-login-security header span{font-size:12px;line-height:1.45;color:#637e74}.v667-balance-trust details,.v667-performance-advisory,.v667-login-security details,.v667-storage-governance{border-radius:10px}.v667-balance-trust details{padding:8px 9px;border:1px solid #dbeae4;background:#fff}.v667-balance-trust summary,.v667-performance-advisory summary,.v667-login-security details summary,.v667-storage-governance summary{cursor:pointer;font-size:12px;font-weight:850;color:#2a584b}.v667-balance-trust ul,.v667-performance-advisory ul{display:grid;gap:5px;margin:8px 0 0;padding-left:18px;font-size:12px;line-height:1.45;color:#607970}.v667-balance-trust p,.v667-performance-advisory p{margin:8px 0 0;font-size:12px;color:#607970}.v667-balance-trust>button,.v667-performance-advisory>button{justify-self:start;min-height:30px;padding:5px 10px}.v667-template-safety{display:grid;gap:8px;margin:9px 0;padding:10px 11px;border:1px solid #ecd09a;border-radius:12px;background:#fffaf1;color:#76531d}.v667-template-safety.high{border-color:#e7ada0;background:#fff5f3;color:#8a3f35}.v667-template-safety summary{display:flex;align-items:baseline;justify-content:space-between;gap:10px;cursor:pointer}.v667-template-safety summary b{color:inherit}.v667-template-safety summary span{font-size:12px}.v667-template-safety ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}.v667-template-safety li{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(0,1.5fr) auto;gap:7px;align-items:start;padding:7px 8px;border-radius:9px;background:#fff;font-size:12px;line-height:1.45}.v667-template-safety li.added,.v667-template-safety li.missing{border-left:3px solid #c66458}.v667-template-safety li.changed{border-left:3px solid #d59a3e}.v667-template-safety li b{color:#4f5330}.v667-template-safety li span,.v667-template-safety li small{color:#677b72}.v667-template-safety li em{font-style:normal;white-space:nowrap;color:#825b1e}.v667-template-safety li small{grid-column:2 / -1}.v667-performance-advisory summary{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.v667-performance-advisory li{display:flex;align-items:baseline;justify-content:space-between;gap:9px}.v667-performance-advisory li span{color:#617a71}.v667-storage-governance{display:grid;gap:6px;margin-top:10px;padding:9px 10px;border:1px solid #dceae5;background:#fbfefd}.v667-storage-governance summary{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.v667-storage-governance summary span,.v667-storage-governance p,.v667-storage-governance small{font-size:12px;line-height:1.45;color:#637b72}.v667-storage-governance p{margin:0}.v667-storage-governance button{justify-self:start;min-height:29px;padding:4px 9px}.v667-login-security>header>div{display:grid;gap:3px}.v667-login-security>p{margin:0;color:#637b72;font-size:12px}.v667-login-alert-list,.v667-device-list{display:grid;gap:7px}.v667-login-alert-list article,.v667-device-list article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 9px;border:1px solid #dbe9e4;border-radius:10px;background:#fff}.v667-login-alert-list article.review{border-left:3px solid #d69b3e;background:#fffaf1}.v667-login-alert-list article.warning{border-left:3px solid #c96a5b;background:#fff7f5}.v667-login-alert-list article>*,.v667-device-list article>div{display:grid;gap:2px;min-width:0}.v667-login-alert-list span,.v667-device-list span,.v667-device-list small{font-size:12px;line-height:1.4;color:#637c73}.v667-device-list{margin-top:8px}.v667-device-list article button{white-space:nowrap;min-height:30px;padding:5px 9px}.v667-mobile-balance-trust{display:grid;gap:6px;margin-top:-2px;padding:9px 10px;border:1px solid #d8e8e2;border-radius:12px;background:#fbfefd}.v667-mobile-balance-trust.review{border-color:#ecd09a;background:#fffaf1}.v667-mobile-balance-trust summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;color:#285548;font-size:12px;font-weight:900}.v667-mobile-balance-trust summary span{font-size:11px;color:#6b8178}.v667-mobile-balance-trust p,.v667-mobile-balance-trust ul{margin:0;color:#607a70;font-size:12px;line-height:1.45}.v667-mobile-balance-trust ul{padding-left:17px}
@media(max-width:700px){.v667-balance-trust,.v667-performance-advisory,.v667-login-security{padding:10px 11px}.v667-balance-trust>button,.v667-performance-advisory>button{width:100%}.v667-template-safety summary,.v667-performance-advisory summary{align-items:flex-start;flex-direction:column}.v667-template-safety li{grid-template-columns:1fr;gap:3px}.v667-template-safety li small{grid-column:auto}.v667-template-safety li em{white-space:normal}.v667-performance-advisory li{align-items:flex-start;display:grid;gap:3px}.v667-login-alert-list article,.v667-device-list article{align-items:stretch;display:grid}.v667-device-list article button{width:100%}}

/* V6.68.0: show import writes plainly and keep desktop ledger rows compact.
   Full Excel evidence is deliberately one click away in the existing drawer. */
.v668-import-decision{display:grid;gap:9px;margin:9px 0;padding:11px 12px;border:1px solid #c9e3d7;border-radius:12px;background:linear-gradient(135deg,#fbfffd,#eff9f4);color:#315d50}.v668-import-decision.attention{border-color:#e7c276;background:#fffaf0;color:#76531d}.v668-import-decision header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.v668-import-decision header>div{display:grid;gap:3px}.v668-import-decision header b{font-size:14px;color:inherit}.v668-import-decision header span{font-size:12px;line-height:1.45;color:#657d73}.v668-import-decision header>em{flex:0 0 auto;padding:4px 8px;border-radius:999px;background:#e4f4eb;color:#237154;font-size:11px;font-style:normal;font-weight:900}.v668-import-decision.attention header>em{background:#fff0d7;color:#8a5d19}.v668-import-decision-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.v668-import-decision-totals span{display:flex;align-items:baseline;gap:4px;min-width:0;padding:8px 9px;border:1px solid #dbeae4;border-radius:9px;background:#fff;color:#668078;font-size:12px}.v668-import-decision-totals b{color:#285548;font-size:14px}.v668-import-decision details{padding:8px 9px;border:1px solid #dce9e4;border-radius:9px;background:rgba(255,255,255,.72)}.v668-import-decision summary{cursor:pointer;color:#2d5a4d;font-size:12px;font-weight:850}.v668-import-decision ul{display:grid;gap:5px;margin:8px 0 0;padding:0;list-style:none}.v668-import-decision li{display:grid;grid-template-columns:80px minmax(0,1fr) auto;gap:8px;align-items:baseline;padding:6px 7px;border-radius:7px;background:#fff;font-size:12px}.v668-import-decision li b{color:#265345}.v668-import-decision li span{color:#637c73}.v668-import-decision li em{color:#82652b;font-style:normal;white-space:nowrap}
body.v6376-desktop-ledger-note-clean #txTable td:nth-child(10){min-width:190px;max-width:250px;vertical-align:top}.v668-ledger-detail{display:grid;gap:5px;min-width:0}.v668-ledger-detail-top{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0}.v668-ledger-detail-tags{display:flex;gap:4px;min-width:0;overflow:hidden}.v668-ledger-detail-tags i{display:inline-flex;align-items:center;min-height:22px;padding:2px 6px;border:1px solid #d4e7df;border-radius:999px;background:#f1faf6;color:#2c705b;font-size:11px;font-style:normal;font-weight:850;white-space:nowrap}.v668-ledger-detail-top button{flex:0 0 auto;min-height:27px;padding:3px 8px;font-size:11px;white-space:nowrap}.v668-ledger-detail p{margin:0;overflow:hidden;color:#526f66;font-size:12px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.v668-ledger-detail small{overflow:hidden;color:#7b9189;font-size:11px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.v668-ledger-detail-empty{color:#a5b4af}.v667-storage-governance #v668StoragePolicy{display:block;padding-top:7px;border-top:1px dashed #dce8e4;color:#6b8178}
@media(max-width:700px){.v668-import-decision{padding:10px}.v668-import-decision header{display:grid}.v668-import-decision header>em{justify-self:start}.v668-import-decision-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.v668-import-decision li{grid-template-columns:1fr;gap:3px}.v668-import-decision li em{white-space:normal}.v668-ledger-detail{display:none}}

/* V6.69.0: mobile query flow.  The first screen keeps cash balances large,
   then offers one clear path into a compact, date-folded ledger. */
.mobile-query-dock-v6690{display:none}
@media(max-width:700px){
  body.v669-mobile-query #mobileDashboardCore{display:grid;gap:11px}
  body.v669-mobile-query .mobile-core-pills-v6270{display:none}
  .mobile-query-dock-v6690{display:grid;gap:9px;padding:12px;border:1px solid #cce4da;border-radius:17px;background:linear-gradient(145deg,#fbfffd,#eff9f4);box-shadow:0 9px 22px rgba(18,70,57,.06)}
  .mobile-query-dock-v6690 header{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
  .mobile-query-dock-v6690 header>div{display:grid;gap:2px;min-width:0}
  .mobile-query-dock-v6690 header b{color:#173f35;font-size:15px}
  .mobile-query-dock-v6690 header span{color:#698078;font-size:12px}
  .mobile-query-dock-v6690 header em{flex:0 0 auto;padding:4px 8px;border-radius:999px;background:#e2f3eb;color:#26705a;font-size:11px;font-style:normal;font-weight:900}
  .v669-query-primary{width:100%;min-height:46px;border:0;border-radius:13px;background:linear-gradient(135deg,#146953,#27866c);color:#fff;font-size:15px;font-weight:900;box-shadow:0 8px 16px rgba(20,105,83,.2)}
  .v669-query-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .v669-query-shortcuts button{min-width:0;min-height:37px;padding:6px 4px;border:1px solid #cbe1d8;border-radius:11px;background:#fff;color:#276b58;font-size:12px;font-weight:850;white-space:nowrap}
  body.v669-mobile-query #records .panel-title.row{align-items:flex-start;display:grid;gap:9px}
  body.v669-mobile-query #records .panel-title.row .filters{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;width:100%}
  body.v669-mobile-query #records .panel-title.row .filters select,
  body.v669-mobile-query #records .panel-title.row .filters input{display:none}
  body.v669-mobile-query #records .panel-title.row .filters #searchBtn{grid-column:1;min-height:40px}
  body.v669-mobile-query #records .panel-title.row .filters #v640MobileFilterBtn{display:block;grid-column:2;min-height:40px;padding:7px 14px}
  body.v669-mobile-query #records .panel-title.row .filters #exportCsvBtn{display:none}
  body.v669-mobile-query #records #txCards{display:grid;gap:10px;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  body.v669-mobile-query #records .tx-day-v6690{margin:0;border-color:#d8e8e2;border-radius:16px;box-shadow:0 7px 18px rgba(18,54,44,.045)}
  body.v669-mobile-query #records .tx-day-v6690>summary{min-height:58px;padding:11px 13px;background:linear-gradient(135deg,#f8fdfb,#f0faf6)}
  body.v669-mobile-query #records .tx-day-v6690>summary b{font-size:15px;letter-spacing:.01em}
  body.v669-mobile-query #records .tx-day-v6690>summary span{font-variant-numeric:tabular-nums}
  body.v669-mobile-query #records .tx-day-v6690>div{gap:8px;padding:8px}
  body.v669-mobile-query #records .tx-card-v6690{margin:0;padding:0;overflow:hidden;border:1px solid #e0ece7;border-radius:14px;background:#fff;box-shadow:none}
  body.v669-mobile-query #records .tx-card-main-v6690{display:grid;gap:8px;width:100%;padding:11px;border:0;background:#fff;color:inherit;text-align:left}
  body.v669-mobile-query #records .tx-card-main-v6690:active{background:#f7fcfa}
  body.v669-mobile-query #records .tx-card-v6690 .tx-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
  body.v669-mobile-query #records .tx-card-v6690 .tx-card-head>span{display:grid;gap:3px;min-width:0}
  body.v669-mobile-query #records .tx-card-v6690 .tx-card-head b{overflow:hidden;color:#1d4037;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
  body.v669-mobile-query #records .tx-card-v6690 .tx-card-head small{overflow:hidden;color:#6b837b;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
  body.v669-mobile-query #records .tx-card-v6690 .tx-mobile-money{min-height:0;padding:10px 11px;border-radius:12px}
  body.v669-mobile-query #records .tx-card-v6690 .tx-mobile-money strong{font-size:22px}
  body.v669-mobile-query #records .tx-card-v6690 .tx-mobile-money small{display:flex;overflow:hidden;gap:5px;white-space:nowrap}
  body.v669-mobile-query #records .tx-card-v6690 .tx-mobile-money small span{overflow:hidden;text-overflow:ellipsis}
  body.v669-mobile-query #records .tx-card-note-v6690{overflow:hidden;padding:8px 9px;border-left:3px solid #a9d9c8;border-radius:8px;background:#f5faf7;color:#46645a;font-size:12px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
  body.v669-mobile-query #records .tx-card-foot-v6690{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 11px;border-top:1px solid #edf3f0;background:#fbfefd}
  body.v669-mobile-query #records .tx-card-foot-v6690 span{flex:1;min-width:0;overflow:hidden;color:#718780;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
  body.v669-mobile-query #records .tx-card-foot-v6690 button{flex:0 0 auto;min-height:30px;padding:4px 10px;border:1px solid #c9e1d8;border-radius:9px;background:#eff8f4;color:#236c57;font-size:12px;font-weight:850}
  body.v669-mobile-query #records #txPagingBar{display:none!important}
  body.v669-mobile-query #records .v669-load-more{position:static!important;display:block;width:100%;min-height:42px;margin:2px 0 0;border:1px solid #c8e0d6;border-radius:13px;background:#fff;color:#246b57;box-shadow:none;font-size:13px;font-weight:900}
  body.v669-mobile-query #records .v669-load-complete{padding:12px 8px;color:#5c7c70;font-size:12px;font-weight:850;text-align:center}
  body.v669-mobile-query .v640-filter-sheet section{gap:12px;max-height:min(78dvh,640px);overflow:auto}
  body.v669-mobile-query .v669-filter-quick{display:flex;align-items:center;gap:7px;overflow-x:auto;padding:2px 0 4px}
  body.v669-mobile-query .v669-filter-quick>span{flex:0 0 auto;color:#637d73;font-size:12px;font-weight:900}
  body.v669-mobile-query .v669-filter-quick button{flex:0 0 auto;min-height:33px;padding:5px 10px;border:1px solid #cbe2d9;border-radius:999px;background:#f7fcfa;color:#286954;font-size:12px;font-weight:850;white-space:nowrap}
  body.v669-mobile-query .tx-detail-drawer .drawer-panel{top:auto;right:0;bottom:0;left:0;width:100%;height:auto;max-height:min(86dvh,780px);padding:16px 14px calc(16px + env(safe-area-inset-bottom));border:1px solid #d6e5df;border-bottom:0;border-radius:24px 24px 0 0;background:linear-gradient(180deg,#f6fbf8,#fff 26%);box-shadow:0 -18px 48px rgba(15,40,33,.2)}
  body.v669-mobile-query .tx-detail-drawer .drawer-panel::before{display:block;width:38px;height:4px;margin:-5px auto 13px;border-radius:999px;background:#cadad4;content:""}
  body.v669-mobile-query .tx-detail-drawer .drawer-head{top:-16px;gap:9px;padding-top:10px;margin-bottom:12px;background:#f6fbf8}
  body.v669-mobile-query .tx-detail-drawer .drawer-head h2{font-size:18px}
  body.v669-mobile-query .tx-detail-drawer .drawer-head p{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
  body.v669-mobile-query .tx-detail-drawer .tx-detail-body{gap:10px}
  body.v669-mobile-query .tx-detail-drawer .tx-detail-summary,
  body.v669-mobile-query .tx-detail-drawer .tx-detail-notes{padding:12px;border-radius:14px}
}
@media(max-width:360px){
  .v669-query-shortcuts{gap:5px}
  .v669-query-shortcuts button{font-size:11px}
  body.v669-mobile-query #records .tx-card-v6690 .tx-mobile-money strong{font-size:20px}
}

/* V6.70.0: a phone lookup should answer "what happened that day" before a
   record is opened.  These rules are deliberately mobile-scoped so the
   established desktop table stays compact and unchanged. */
@media(max-width:700px){
  .v670-balance-change{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);gap:6px;align-items:center;padding:8px 10px;border:1px dashed #c8dfd5;border-radius:12px;background:rgba(255,255,255,.72);font-variant-numeric:tabular-nums}
  .v670-balance-change span{color:#648078;font-size:11px;font-weight:900}
  .v670-balance-change b{overflow:hidden;color:#285f50;font-size:11px;text-align:right;text-overflow:ellipsis;white-space:nowrap}
  body.v669-mobile-query #records .tx-day-v6700>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;row-gap:4px}
  .v670-day-title{display:grid;gap:3px;min-width:0}
  .v670-day-title b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .v670-day-title small{overflow:hidden;color:#6b837b;font-size:11px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
  .v670-day-net{font-size:12px;font-weight:950;font-variant-numeric:tabular-nums;white-space:nowrap}
  .v670-day-net.pos{color:#2d805e}.v670-day-net.neg{color:#b75046}
  body.v669-mobile-query #records .tx-day-v6700>summary>em{grid-column:2;justify-self:end;padding:3px 7px;border-radius:999px;background:#e5f4ed;color:#2a6c58;font-size:10px;font-style:normal;font-weight:900;white-space:nowrap}
  .v670-day-body{display:grid!important;gap:8px!important}
  .v670-day-card-list{display:grid;gap:8px}
  .v670-day-search-wrap{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;padding:7px 8px;border:1px solid #dbeae4;border-radius:11px;background:#f9fdfb}
  .v670-day-search-wrap span{color:#58766c;font-size:11px;font-weight:900;white-space:nowrap}
  .v670-day-search{width:100%;min-width:0;min-height:31px;padding:5px 8px;border:1px solid #cfe1da;border-radius:8px;background:#fff;color:#1f493e;font-size:12px;outline:none}
  .v670-day-search:focus{border-color:#5aa58b;box-shadow:0 0 0 3px rgba(62,143,112,.11)}
  .v670-day-empty{padding:6px 8px;border-radius:8px;background:#fffaf0;color:#876128;font-size:12px}
  .v670-day-hidden{display:none!important}
  .v670-tx-tags{display:flex;gap:5px;overflow:hidden;margin-top:-2px}
  .v670-tx-tags i{display:inline-flex;align-items:center;min-height:21px;padding:2px 7px;border-radius:999px;background:#edf8f3;color:#28715a;font-size:10px;font-style:normal;font-weight:950;white-space:nowrap}
  .v670-tx-tags i.large{background:#fff2df;color:#9a6819}.v670-tx-tags i.transfer{background:#edf3fb;color:#3d6591}
  .v670-mobile-query-bar{position:sticky;top:0;z-index:16;display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0 -2px 10px;padding:8px 10px;border:1px solid #d4e6df;border-radius:13px;background:rgba(250,254,252,.96);box-shadow:0 8px 18px rgba(20,59,47,.1);backdrop-filter:blur(10px)}
  .v670-mobile-query-bar>div:first-child{display:grid;gap:1px;min-width:0}.v670-mobile-query-bar span{color:#698077;font-size:10px;font-weight:850}.v670-mobile-query-bar b{overflow:hidden;color:#214d41;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
  .v670-mobile-query-bar>div:last-child{display:flex;gap:6px;flex:0 0 auto}.v670-mobile-query-bar button{min-height:32px;padding:5px 10px;border:1px solid #cbe1d8;border-radius:9px;background:#fff;color:#276b58;font-size:12px;font-weight:900}
  .v670-mobile-favourites{display:grid;gap:7px;padding:8px 0 2px;border-bottom:1px solid #e5efeb}.v670-mobile-favourites>span{color:#58776d;font-size:12px;font-weight:950}.v670-mobile-favourites>div{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}.v670-mobile-favourites>div button,.v670-home-favourites button{flex:0 0 auto;min-height:31px;padding:5px 10px;border:1px solid #cadfd6;border-radius:999px;background:#f7fcfa;color:#296b57;font-size:12px;font-weight:850;white-space:nowrap}.v670-mobile-favourites small{color:#73867f;font-size:12px}.v670-favourite-save{justify-self:start;min-height:30px;padding:4px 9px;border:0;border-radius:8px;background:#e8f5ef;color:#286c57;font-size:12px;font-weight:900}
  .v670-home-favourites{display:flex;gap:6px;overflow-x:auto;padding-top:1px}.v670-home-favourites button{min-height:30px;background:#fff}
}
@media(max-width:360px){
  .v670-balance-change{grid-template-columns:1fr 1fr;gap:4px}.v670-balance-change span{grid-column:1 / -1}.v670-balance-change b{text-align:left}
  .v670-day-search-wrap{grid-template-columns:1fr;gap:4px}.v670-mobile-query-bar{align-items:flex-start;display:grid}.v670-mobile-query-bar>div:last-child{width:100%}.v670-mobile-query-bar button{flex:1}
}

/* V6.73.0: desktop lookup evidence stays one compact row.  The full imported
   comment and Excel coordinates are deliberately kept in the existing detail
   drawer instead of forcing every table row to the height of its annotation. */
.v672-evidence-compact{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:5px 7px;align-items:center;max-width:290px;min-width:210px;padding:3px 0}
.v672-evidence-tags{display:flex;gap:4px;min-width:0}.v672-evidence-tags i,.v672-evidence-card i{display:inline-flex;align-items:center;min-height:20px;padding:2px 6px;border-radius:999px;background:#ebf7f1;color:#2b725d;font-size:11px;font-style:normal;font-weight:900;white-space:nowrap}
.v672-evidence-preview{min-width:0;overflow:hidden;color:#385b51;font-size:12px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.v672-evidence-compact small{grid-column:1 / 3;min-width:0;overflow:hidden;color:#748980;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.v672-evidence-detail{grid-column:3;grid-row:1 / span 2;align-self:center;min-height:30px;padding:4px 8px;white-space:nowrap}
.v672-evidence-empty{color:#9aaca5}
.tx-menu-v6720 summary{min-width:34px;text-align:center}
.tx-menu-v6720 .tx-menu-list{min-width:108px}
.backup-capacity-v6720{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:7px 0 10px;padding:9px 11px;border:1px solid #cde3d9;border-radius:12px;background:#f6fcf8;color:#2b6c57;font-size:12px}
.backup-capacity-v6720 span{flex:1;min-width:160px}.backup-capacity-v6720 button{min-height:30px;padding:5px 10px;border-radius:999px}.backup-capacity-v6720.warning{border-color:#efd39d;background:#fffaf1;color:#76531d}.backup-capacity-v6720.critical{border-color:#e8aaa4;background:#fff3f2;color:#9b3d36}
.v672-storage-forecast{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 8px;align-items:start;margin-top:9px;padding:9px 10px;border:1px solid #d6e8df;border-radius:11px;background:#f8fcfa;color:#42655a;font-size:12px;line-height:1.5}.v672-storage-forecast b{color:#285d4d}.v672-storage-forecast em{grid-column:2;color:#98651a;font-style:normal;font-weight:850}.v672-storage-forecast.warn{border-color:#efd39d;background:#fffaf2}
@media(min-width:761px){#txTable td:nth-child(10){width:290px;max-width:290px}#txTable td:nth-child(10) .v668-ledger-detail{display:none}}
@media(max-width:760px){.v672-evidence-compact{display:none}.v672-evidence-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;margin-top:7px;padding:8px 9px;border:1px solid #dcebe5;border-radius:10px;background:#fafffc}.v672-evidence-card>span{display:flex;gap:4px;overflow:hidden}.v672-evidence-card b{grid-column:1;overflow:hidden;color:#3c5e54;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.v672-evidence-card button{grid-column:2;grid-row:1 / span 2;min-height:31px;padding:4px 9px}.backup-capacity-v6720{align-items:stretch}.backup-capacity-v6720 button{width:100%}.v672-storage-forecast{grid-template-columns:1fr}.v672-storage-forecast em{grid-column:auto}}

/* V6.73.0: the mobile date header is deliberately a two-line summary.  Keep
   the date and net result easy to scan; move counts and annotation state out
   of their way instead of piling every value into one row. */
@media(max-width:760px){
  body.v669-mobile-query #records .tx-day-v6730>summary{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"date net" "flow tag";gap:6px 10px;padding:14px 16px}
  body.v669-mobile-query #records .tx-day-v6730>summary .v670-day-title{grid-area:date;gap:2px}
  body.v669-mobile-query #records .tx-day-v6730>summary .v670-day-net{grid-area:net;align-self:center;font-size:13px}
  body.v669-mobile-query #records .tx-day-v6730>summary .v673-day-flow{grid-area:flow;overflow:hidden;color:#6a8279;font-size:11px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
  body.v669-mobile-query #records .tx-day-v6730>summary>em{grid-area:tag;align-self:center;justify-self:end}
}
.v673-performance-diagnostics{display:contents}
.v673-storage-cleanup{display:grid;gap:7px;margin-top:9px;padding:10px 11px;border:1px solid #d5e6df;border-radius:11px;background:#fbfefd}
.v673-storage-cleanup summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;color:#285247;font-weight:900}
.v673-storage-cleanup summary span,.v673-storage-cleanup p,.v673-storage-cleanup li{color:#637d73;font-size:12px;line-height:1.5}
.v673-storage-cleanup p{margin:0}.v673-storage-cleanup ul{display:grid;gap:4px;margin:0;padding-left:18px}.v673-storage-cleanup.warn{border-color:#efc987;background:#fffaf1}

/* V6.74.0: keep lookup totals and evidence useful without making the desktop
   table tall again.  The same compact block becomes a touch-friendly summary
   on a phone. */
.v674-lookup-summary{display:grid;gap:8px;margin:12px 0;padding:11px 13px;border:1px solid #cfe4da;border-radius:14px;background:linear-gradient(135deg,#f7fcf9,#f1faf6);box-shadow:0 6px 16px rgba(31,83,65,.045)}
.v674-lookup-summary.is-loading{display:block;color:#638076;font-size:13px;font-weight:800}
.v674-lookup-summary-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.v674-lookup-summary-head>div{display:grid;gap:2px;min-width:0}.v674-lookup-summary-head b{color:#235d4d;font-size:14px}.v674-lookup-summary-head span{overflow:hidden;color:#698278;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.v674-copy-lookup{flex:0 0 auto;min-height:31px;padding:4px 10px;white-space:nowrap}
.v674-lookup-summary-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.v674-lookup-summary-metrics span{display:grid;gap:2px;min-width:0;padding:7px 9px;border:1px solid #dbeae4;border-radius:10px;background:rgba(255,255,255,.78)}.v674-lookup-summary-metrics b{overflow:hidden;color:#1d4237;font-size:15px;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}.v674-lookup-summary-metrics em,.v674-lookup-summary>small{color:#6c837a;font-size:11px;font-style:normal;font-weight:800}.v674-lookup-summary-metrics .pos b{color:#2f7c5d}.v674-lookup-summary-metrics .neg b{color:#b65048}
.v674-detail-tools{display:grid;gap:9px;margin-top:10px;padding:12px;border:1px solid #d2e6dc;border-radius:13px;background:#f7fcf9}.v674-detail-tools>div{display:grid;gap:2px}.v674-detail-tools b{color:#275f50;font-size:14px}.v674-detail-tools span{color:#6b837a;font-size:12px;line-height:1.45}.v674-detail-tools>button{justify-self:start;min-height:33px;padding:5px 10px}.v674-related-transactions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v674-related-transactions>div{display:grid;gap:6px;min-width:0;padding:8px;border:1px solid #dcebe5;border-radius:10px;background:#fff}.v674-related-transactions b{overflow:hidden;color:#335e53;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.v674-related-transactions small{color:#789087;font-size:11px}.v674-related-transactions ul{display:grid;gap:4px;margin:0;padding:0;list-style:none}.v674-related-transactions li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:5px;align-items:center;color:#56746a;font-size:11px}.v674-related-transactions li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v674-related-transactions li em{color:#315f51;font-style:normal;font-weight:900;white-space:nowrap}
.v674-keyword-highlight{padding:0 2px;border-radius:3px;background:#ffeda7;color:inherit;font-weight:900}.v674-search-money-summary{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.v674-search-money-summary span{padding:5px 8px;border:1px solid #d7e8e1;border-radius:999px;background:#f7fcfa;color:#54746a;font-size:12px}.v674-search-money-summary b{margin-left:3px;color:#24594a;font-variant-numeric:tabular-nums}.v674-search-money-summary .pos b{color:#2d7e5e}.v674-search-money-summary .neg b{color:#b65048}
@media(max-width:760px){.v674-lookup-summary{margin:9px 0;padding:11px}.v674-lookup-summary-head{align-items:flex-start}.v674-lookup-summary-head span{white-space:normal}.v674-copy-lookup{min-height:34px;padding:5px 8px;font-size:12px}.v674-lookup-summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.v674-lookup-summary-metrics span{padding:8px}.v674-lookup-summary-metrics b{font-size:16px}.v674-related-transactions{grid-template-columns:1fr}.v674-detail-tools>button{width:100%}.tx-menu-v6740 .tx-menu-list{min-width:126px}}

/* V6.75.0: records must remain a stable, quick lookup surface.  Remove the
   optional desktop aggregate and per-day search chrome from phone layouts so
   date groups keep one clear alignment and do not push the list sideways. */
.v675-summary-on-demand{align-items:center}
.v675-summary-on-demand>small{display:block}
@media(max-width:760px){
  body.v669-mobile-query #records .v674-lookup-summary{display:none!important}
  body.v669-mobile-query #records .panel{min-width:0;padding:12px 10px calc(96px + env(safe-area-inset-bottom));overflow:clip}
  body.v669-mobile-query #records #txCards{width:100%;min-width:0;gap:10px;padding:0 0 calc(96px + env(safe-area-inset-bottom))}
  body.v669-mobile-query #records .tx-day-v6730{width:100%;min-width:0;box-sizing:border-box}
  body.v669-mobile-query #records .tx-day-v6730>summary{min-width:0;padding:13px 14px;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"date net" "flow tag";gap:5px 8px}
  body.v669-mobile-query #records .tx-day-v6730>summary .v670-day-title b{font-size:16px}
  body.v669-mobile-query #records .tx-day-v6730>summary .v670-day-net{font-size:12px}
  body.v669-mobile-query #records .tx-day-v6730>summary .v673-day-flow{font-size:11px}
  body.v669-mobile-query #records .v670-day-body{min-width:0;padding:8px!important}
  body.v669-mobile-query #records .v670-day-search-wrap{display:none!important}
  body.v669-mobile-query #records .tx-card-v6690{min-width:0}
  body.v669-mobile-query #records .tx-card-main-v6690{min-width:0;padding:11px 12px}
  body.v669-mobile-query #records .tx-card-foot-v6690{min-width:0;padding:8px 12px}
  body.v669-mobile-query #records .tx-card-foot-v6690 span{max-width:calc(100vw - 138px)}
}

/* V6.76.0: phone records are a direct list, not a second desktop query
   workspace.  The detailed source filters remain available on desktop and in
   the mobile filter sheet, but never take over the first screen on a phone. */
@media(max-width:760px){
  body.v669-mobile-query #records #v661RecordFilters{display:none!important}
  body.v669-mobile-query #records #recordsFilterStatusV6271{display:none!important}
  body.v669-mobile-query #records #txCards.v676-mobile-direct-list{display:grid;gap:10px;padding-bottom:calc(100px + env(safe-area-inset-bottom))}
  body.v669-mobile-query #records .v676-direct-card{display:grid;gap:0;min-width:0;overflow:hidden;border:1px solid #d9e9e3;border-radius:16px;background:#fff;box-shadow:0 7px 18px rgba(22,58,46,.05)}
  body.v669-mobile-query #records .v676-direct-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;padding:11px 12px 8px;background:linear-gradient(135deg,#fbfefc,#f2faf6)}
  body.v669-mobile-query #records .v676-direct-card-head>span{display:grid;gap:2px;min-width:0}
  body.v669-mobile-query #records .v676-direct-card-head b{color:#24584a;font-size:14px;font-variant-numeric:tabular-nums}
  body.v669-mobile-query #records .v676-direct-card-head small{overflow:hidden;color:#6a8279;font-size:11px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
  body.v669-mobile-query #records .v676-direct-card-main{display:grid;gap:8px;width:100%;padding:0 12px 10px;border:0;background:#fff;color:inherit;text-align:left}
  body.v669-mobile-query #records .v676-direct-card-main:active{background:#f6fbf8}
  body.v669-mobile-query #records .v676-direct-card .tx-mobile-money{min-height:0;margin:0;padding:10px 11px;border-radius:12px}
  body.v669-mobile-query #records .v676-direct-card .tx-mobile-money strong{font-size:21px}
  body.v669-mobile-query #records .v676-direct-annotation{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px;margin:0 12px 10px;padding:8px 9px;border-left:3px solid #a8d8c5;border-radius:9px;background:#f5faf7;color:#46655a;font-size:12px;line-height:1.4}
  body.v669-mobile-query #records .v676-direct-annotation b{color:#2d705c;font-size:11px;white-space:nowrap}
  body.v669-mobile-query #records .v676-direct-annotation span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.v669-mobile-query #records .v676-direct-card-foot{display:flex;align-items:center;gap:7px;min-width:0;padding:8px 12px;border-top:1px solid #edf3f0;background:#fbfefd}
  body.v669-mobile-query #records .v676-direct-card-foot>span{flex:1;min-width:0;overflow:hidden;color:#718780;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
  body.v669-mobile-query #records .v676-direct-card-foot button{flex:0 0 auto;min-height:31px;padding:4px 10px;border:1px solid #c9e1d8;border-radius:9px;background:#eff8f4;color:#236c57;font-size:12px;font-weight:850}
  body.v669-mobile-query #records .v676-direct-card-foot button:first-of-type{background:#fff}
  body.v669-mobile-query #records .v676-direct-load{width:100%;min-height:43px;border:1px solid #c8e0d6;border-radius:13px;background:#fff;color:#246b57;font-size:13px;font-weight:900}
  body.v669-mobile-query #records .v676-direct-complete{padding:12px 8px;color:#5c7c70;font-size:12px;font-weight:850;text-align:center}
}

/* V6.78.0 detail-fast cascade: desktop actions are a protected rail, not part of
   the annotation column. */
@media(min-width:901px){
  body.v6763-desktop-action-rail #records .table-wrap{overflow-x:auto!important;overflow-y:visible!important}
  body.v6763-desktop-action-rail #txTable{min-width:1500px!important;table-layout:fixed!important}
  body.v6763-desktop-action-rail #txTable th:nth-child(10),body.v6763-desktop-action-rail #txTable td:nth-child(10){width:320px!important;min-width:320px!important;max-width:320px!important}
  body.v6763-desktop-action-rail #txTable th:nth-child(11),body.v6763-desktop-action-rail #txTable td:nth-child(11){position:sticky;right:0;z-index:3;width:190px!important;min-width:190px!important;max-width:190px!important;background:#fff}
  body.v6763-desktop-action-rail #txTable td:nth-child(11) .tx-actions{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;min-width:174px!important}
  body.v6763-desktop-action-rail #txTable td:nth-child(11) .tx-actions button{width:100%!important;min-height:38px!important;white-space:nowrap!important}
}

@media(max-width:700px){
  #loginSuccessModal .login-success-dialog{width:min(100% - 20px,520px);max-height:calc(100dvh - 18px);margin:9px auto}
  #loginSuccessModal .login-success-scroll{max-height:calc(100dvh - 142px);padding:12px 14px 20px;overflow:auto}
  #loginSuccessModal .login-success-row{min-height:38px;padding:7px 9px}
  #loginSuccessModal .login-success-title{font-size:21px}
}
/* V6.95.0: final lookup stability layer.  This intentionally scopes the
   desktop action rail and the mobile read-status banner to one release
   class, so older compatibility rules cannot change the first-screen shape. */
body.v6880-lookup-stability .v6880-record-read-state {
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px solid #cfe3da;
  border-radius: 12px;
  background: #f1faf6;
  color: #286c5c;
  font-size: 13px;
}
body.v6880-lookup-stability .v6880-record-read-state.stale {
  border-color: #efcf8e;
  background: #fff9ed;
  color: #8b5e16;
}
body.v6880-lookup-stability .v6880-record-read-state.cached {
  opacity: .86;
}

@media (min-width: 901px) {
  body.v6880-lookup-stability #records .table-wrap {
    overflow-x: auto;
    overflow-y: visible;
  }
  body.v6880-lookup-stability #records #txTable {
    min-width: 1560px;
    table-layout: fixed;
  }
  body.v6880-lookup-stability #records #txTable th:nth-child(10),
  body.v6880-lookup-stability #records #txTable td:nth-child(10) {
    width: 330px;
    min-width: 330px;
  }
  body.v6880-lookup-stability #records #txTable th:last-child,
  body.v6880-lookup-stability #records #txTable td:last-child {
    width: 190px;
    min-width: 190px;
    position: sticky;
    right: 0;
    z-index: 3;
    background: var(--panel, #fff);
    box-shadow: -8px 0 14px rgba(22, 44, 64, .06);
  }
  body.v6880-lookup-stability #records .ledger-row-actions-v6763 {
    display: grid;
    grid-template-columns: repeat(3, minmax(68px, 1fr));
    gap: 7px;
    align-items: center;
  }
  body.v6880-lookup-stability #records .ledger-row-actions-v6763 button {
    min-width: 0;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  body.v6880-lookup-stability #records .panel {
    overflow: visible;
  }
  body.v6880-lookup-stability #records #txCards {
    min-height: 72px;
  }
  body.v6880-lookup-stability #records .v676-direct-card {
    width: 100%;
    box-sizing: border-box;
  }
  body.v6880-lookup-stability #records .v676-direct-card-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    align-items: center;
  }
  body.v6880-lookup-stability #records .v676-direct-card-foot > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* V7.23.4: keep inactive workbench pages out of layout/paint work. */
.page.v7229-page-hidden {
  content-visibility: auto;
  contain: style layout paint;
  contain-intrinsic-size: 1px 720px;
}

/* V7.22.2 operations/health surfaces */
.v760-operations-panel,
.v760-dashboard-health {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(45, 126, 111, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(244, 252, 249, .98), rgba(255, 255, 255, .98));
}
.v760-operations-panel header,
.v760-dashboard-health-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.v760-operations-panel header div,
.v760-dashboard-health-head div { display: grid; gap: 3px; }
.v760-operations-panel header span,
.v760-dashboard-health-head span,
.v760-operations-panel small,
.v760-dashboard-health small { color: #6b7f82; font-size: .84rem; }
.v760-operation-grid,
.v760-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.v760-operation-item,
.v760-health-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.8);
}
.v760-operation-item span,
.v760-health-item span { color: #597277; font-size: .86rem; overflow-wrap: anywhere; }
.v760-operation-item.ok,
.v760-health-item.ok { border: 1px solid rgba(45, 126, 111, .18); }
.v760-operation-item.warn,
.v760-health-item.warn { border: 1px solid rgba(190, 137, 53, .35); background: #fff9ed; }
.v760-operation-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.v760-operation-result { margin-top: 10px; padding: 9px 11px; border-radius: 10px; }
.v760-operation-result.ok { color: #1f725f; background: #eaf8f2; }
.v760-operation-result.warn { color: #8a641c; background: #fff4dc; }
.v760-operation-result.error { color: #a53e3e; background: #fff0f0; }
@media (max-width: 720px) {
  .v760-operation-grid,
  .v760-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v760-operations-panel header,
  .v760-dashboard-health-head { align-items: flex-start; }
  .v760-operations-panel header button,
  .v760-dashboard-health-head button { flex: 0 0 auto; }
}
@media (max-width: 430px) {
  .v760-operation-grid,
  .v760-health-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .v760-operations-panel,
  .v760-dashboard-health { padding: 12px; border-radius: 13px; }
  .v760-operation-actions button { flex: 1 1 100%; }
}

/* V7.22.2 operations center */
.v770-operations-alerts{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;padding:12px 14px;border:1px solid #cbd5e1;border-radius:14px;background:#f8fafc;color:#334155}
.v770-operations-alerts.ok{border-color:#b7dfcf;background:#f1fbf6}.v770-operations-alerts.warn{border-color:#f2c98a;background:#fff8eb}.v770-operations-alerts span{flex:1;min-width:220px}.v770-dashboard-alert{margin-top:8px;padding:8px 12px;border-radius:10px;font-size:12px}.v770-dashboard-alert.ok{background:#edf9f2;color:#1f7657}.v770-dashboard-alert.warn{background:#fff4df;color:#9a6813}
.v750-operations-panel { margin-top: 14px; padding: 16px; border: 1px solid rgba(69,133,121,.22); border-radius: 16px; background: linear-gradient(135deg,#f7fffc,#f5f8fb); }
.v750-operations-panel header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.v750-operations-panel header div { display:flex; flex-direction:column; gap:4px; }
.v750-operations-panel header b { color:#163c35; font-size:1.02rem; }
.v750-operations-panel header span,.v750-operations-panel small { color:#66817a; font-size:.82rem; }
.v750-operation-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.v750-operation-item { display:flex; flex-direction:column; gap:4px; min-width:0; padding:10px 12px; border-radius:12px; background:#fff; border:1px solid rgba(113,142,153,.18); }
.v750-operation-item b { font-size:.78rem; color:#607a83; }
.v750-operation-item span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#203d48; }
.v750-operation-item.ok { border-color:rgba(69,133,121,.3); }
.v750-operation-item.warn { border-color:rgba(197,137,42,.42); background:#fffaf0; }
.v750-operation-warning { margin-top:10px; padding:9px 11px; color:#8c5d16; background:#fff7e6; border-radius:10px; font-size:.86rem; }
.v750-operations-panel small { display:block; margin-top:10px; }
@media (max-width: 700px) {
  .v750-operation-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .v750-operations-panel { padding:12px; }
  .v750-operations-panel header { align-items:flex-start; }
}

/* V7.1.0: compact admin-only production readiness card. */
.v7100-readiness {
  margin-top: 14px;
  border: 1px solid rgba(69, 133, 121, .22);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(247, 252, 250, .92);
}
.v7100-readiness.warning { border-color: rgba(191, 132, 35, .38); background: #fffaf0; }
.v7100-readiness-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v7100-readiness-head div { display: flex; align-items: baseline; gap: 10px; }
.v7100-readiness-head span { color: var(--muted, #607184); }
.v7100-readiness-head b { color: #287361; }
.v7100-readiness.warning .v7100-readiness-head b { color: #9a681b; }
.v7100-readiness-head small { color: var(--muted, #607184); }
.v7100-readiness-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.v7100-readiness-grid span { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--muted, #607184); font-size: .84rem; }
.v7100-readiness-grid strong { color: var(--ink, #142b44); overflow-wrap: anywhere; }
.v7100-readiness-warnings { display: grid; gap: 4px; margin-top: 10px; color: #8a641c; font-size: .86rem; }
.v7100-readiness-ok { margin: 10px 0 0; color: #287361; font-size: .86rem; }

.v7200-operational { margin-top: 14px; border: 1px solid rgba(69, 133, 121, .22); border-radius: 16px; background: rgba(246, 252, 250, .9); padding: 14px; }
.v7200-operational.warning { border-color: rgba(191, 132, 35, .42); background: #fffaf0; }
.v7200-operational-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.v7200-operational-head div { display: flex; gap: 10px; align-items: baseline; }
.v7200-operational-head span { color: var(--muted, #607184); }
.v7200-operational-head b { color: #287361; }
.v7200-operational-head small { color: var(--muted, #607184); }
.v7200-operational-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.v7200-operational-grid span { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--muted, #607184); font-size: .84rem; }
.v7200-operational-grid strong { color: var(--ink, #142b44); overflow-wrap: anywhere; }
.v7200-operational-grid strong.danger { color: #a14b37; }
.v7200-operational-notes { display: grid; gap: 4px; margin-top: 10px; color: #795c24; font-size: .86rem; }
@media (max-width: 720px) {
  .v7200-operational-head { align-items: flex-start; flex-direction: column; }
  .v7200-operational-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .v7100-readiness-head { align-items: flex-start; flex-direction: column; }
  .v7100-readiness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* V6.99.0: daily lookup first paint and predictable operation rail. */
body.v6990-lookup-speed #records .table-wrap {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
body.v6990-lookup-speed #records #txTable {
  min-width: 1820px;
  table-layout: fixed;
}
body.v6990-lookup-speed #records #txTable th:nth-last-child(2),
body.v6990-lookup-speed #records #txTable td:nth-last-child(2) {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
}
body.v6990-lookup-speed #records #txTable th:last-child,
body.v6990-lookup-speed #records #txTable td:last-child {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  vertical-align: top;
}
body.v6990-lookup-speed #records #txTable td:last-child .ledger-row-actions-v6763 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  width: 100%;
}
body.v6990-lookup-speed #records #txTable td:last-child .ledger-row-actions-v6763 button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  white-space: nowrap;
}
.v6990-quick-summary {
  display: grid;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid rgba(69, 133, 121, .22);
  border-radius: 16px;
  background: linear-gradient(135deg, #f4fcf8, #fbfefd);
  color: #315e57;
}
.v6990-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v6990-summary-heading b { color: #185d50; font-size: 1rem; }
.v6990-summary-heading span { color: #6b827e; font-size: .86rem; }
.v6990-summary-loading { color: #9a6b1f !important; }
.v6990-summary-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.v6990-summary-day { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid rgba(69, 133, 121, .16); border-radius: 12px; background: rgba(255,255,255,.72); }
.v6990-summary-day strong { color: #173d39; }
.v6990-summary-day span, .v6990-summary-day small { color: #718681; }
.v6990-summary-day em { font-style: normal; font-weight: 700; }
.v6990-summary-day .neg { color: #b44c4c; }
.v6990-summary-day .pos { color: #20775f; }
.v6990-summary-empty { color: #718681; }
.v6990-load-more { display: block; width: min(100%, 520px); margin: 14px auto 4px; min-height: 42px; }
@media (max-width: 900px) {
  body.v6990-lookup-speed #records #txTable { min-width: 0; table-layout: auto; }
  body.v6990-lookup-speed #records #txTable th:nth-last-child(2),
  body.v6990-lookup-speed #records #txTable td:nth-last-child(2),
  body.v6990-lookup-speed #records #txTable th:last-child,
  body.v6990-lookup-speed #records #txTable td:last-child { width: auto; min-width: 0; max-width: none; }
  .v6990-summary-days { display: flex; overflow-x: auto; padding-bottom: 2px; }
  .v6990-summary-day { flex: 0 0 150px; }
}

/* V6.97.0 query premium: the daily lookup surface is deliberately wider
   than the accounting summary. Keep the action rail readable on desktop and
   keep the first mobile paint stable while the detail request is in flight. */
body.v6970-query-premium #records .table-wrap { overflow-x: auto; }
body.v6970-query-premium #records #txTable { min-width: 1740px; }
body.v6970-query-premium #records #txTable th:nth-last-child(2),
body.v6970-query-premium #records #txTable td:nth-last-child(2) {
  width: 340px;
  min-width: 340px;
}
body.v6970-query-premium #records #txTable th:last-child,
body.v6970-query-premium #records #txTable td:last-child {
  width: 230px;
  min-width: 230px;
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--panel, #fff);
  box-shadow: -10px 0 18px rgba(15, 23, 42, .06);
}
body.v6970-query-premium #records #txTable td:last-child .row-actions,
body.v6970-query-premium #records #txTable td:last-child .ledger-row-actions-v6763 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
}
body.v6970-query-premium #records #txTable td:last-child button {
  min-width: 0;
  min-height: 38px;
  white-space: nowrap;
}
body.v6970-query-premium #records #txTable td:last-child button:last-child { grid-column: 1 / -1; }
.v6970-ledger-loading {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 2px 10px;
  min-height: 112px;
  padding: 22px;
  color: #31566a;
  border: 1px solid rgba(74, 142, 126, .22);
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(236,248,245,.94), rgba(248,252,251,.98));
}
.v6970-ledger-loading small { grid-column: 2; color: #6e8790; }
.v6970-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(51, 112, 102, .18);
  border-top-color: #2c8375;
  border-radius: 50%;
  animation: v6970-spin .8s linear infinite;
}
@keyframes v6970-spin { to { transform: rotate(360deg); } }
.v6970-import-safety {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 11px 14px;
  border: 1px solid rgba(73, 139, 122, .25);
  border-radius: 12px;
  background: #f0faf6;
  color: #275f54;
}
.v6970-import-safety.warn { border-color: rgba(204, 148, 45, .4); background: #fff9ed; color: #855d1e; }
.v6970-import-safety span { line-height: 1.45; }
@media (max-width: 900px) {
  body.v6970-query-premium #records #txTable { min-width: 0; }
  body.v6970-query-premium #records #txTable th:last-child,
  body.v6970-query-premium #records #txTable td:last-child { position: static; box-shadow: none; }
  body.v6970-query-premium .v6970-import-safety { align-items: flex-start; flex-direction: column; }
}
/* V6.98.0: keep the daily ledger readable on both surfaces.  The desktop
   action rail gets a stable width; mobile cards show the accounting core first
   and keep evidence/actions behind one intentional disclosure. */
body.v6980-instant-detail #records #txTable { min-width: 1780px; }
body.v6980-instant-detail #records #txTable th:nth-last-child(2),
body.v6980-instant-detail #records #txTable td:nth-last-child(2) {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  overflow: hidden;
}
body.v6980-instant-detail #records #txTable th:last-child,
body.v6980-instant-detail #records #txTable td:last-child {
  width: 170px;
  min-width: 170px;
  max-width: 170px;
}
body.v6980-instant-detail #records #txTable td:last-child .row-actions,
body.v6980-instant-detail #records #txTable td:last-child .ledger-row-actions-v6763 {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 3px;
}
body.v6980-instant-detail #records #txTable td:last-child button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  white-space: nowrap;
}
.v6980-ledger-summary {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 10px 0 12px;
  scrollbar-width: thin;
}
.v6980-ledger-summary > b { flex: 0 0 auto; color: #285d56; }
.v6980-ledger-summary-item {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  min-width: 132px;
  padding: 9px 11px;
  border: 1px solid rgba(69, 133, 121, .2);
  border-radius: 13px;
  background: #f5fbf8;
  color: #375f5a;
}
.v6980-ledger-summary-item strong { color: #193d3a; }
.v6980-ledger-summary-item small { color: #6d8584; }
.v6980-mobile-brief { margin: 8px 0 0; padding: 8px 10px; border-radius: 11px; background: #f6faf9; color: #536d6b; font-size: .9rem; line-height: 1.4; }
.v6980-mobile-brief span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v6980-mobile-more { margin-top: 8px; border-top: 1px solid rgba(69, 133, 121, .13); }
.v6980-mobile-more > summary { padding: 10px 2px 4px; color: #277567; font-weight: 700; cursor: pointer; }
.v6980-mobile-more-body { padding-top: 4px; }
.login-status { min-height: 22px; margin-top: 10px; color: #657b89; font-size: .9rem; line-height: 1.45; }
.login-status.loading { color: #87621d; }
.login-status.success { color: #23745d; }
.login-status.error { color: #ae4c4c; }
.v6980-client-perf { margin-top: 10px; }
@media (max-width: 900px) {
  body.v6980-instant-detail #records #txTable { min-width: 0; }
  body.v6980-instant-detail #records #txTable th:nth-last-child(2),
  body.v6980-instant-detail #records #txTable td:nth-last-child(2),
  body.v6980-instant-detail #records #txTable th:last-child,
  body.v6980-instant-detail #records #txTable td:last-child { width: auto; min-width: 0; max-width: none; }
  body.v6980-instant-detail #records #txTable td:last-child .row-actions,
  body.v6980-instant-detail #records #txTable td:last-child .ledger-row-actions-v6763 { display: flex !important; flex-wrap: wrap; }
}
/* V6.95.0 final Excel archive surfaces */
.final-archive-card { border: 1px solid #b8dfd1; background: linear-gradient(135deg,#f5fffb,#eef9f5); border-radius: 18px; padding: 18px; margin: 12px 0; }
.final-archive-head { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:1.08rem; }
.final-archive-head span { color:#167b63; background:#dff5eb; border-radius:999px; padding:5px 10px; font-size:.82rem; white-space:nowrap; }
.final-archive-meta { color:#55716b; font-size:.86rem; margin:8px 0 12px; overflow-wrap:anywhere; }
.final-archive-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:12px; }
.final-archive-actions small { color:#61736f; }
.archive-history-row { border-top:1px solid #d9ebe5; padding:10px 0; color:#526963; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.archive-history-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.archive-history-actions .button,
.archive-history-actions button { min-height:34px; padding:6px 10px; }
.final-archive-empty { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border:1px dashed #b8d8ce; border-radius:14px; color:#58736c; background:#fbfffd; }
.final-archive-empty b { color:#1d6759; }
.archive-advanced-toggle { margin:10px 0; }
.final-archive-page .legacy-settlement-control { display:none !important; }
.final-archive-page.show-legacy-settlement .legacy-settlement-control { display:block !important; }
.final-archive-page.show-legacy-settlement .form.legacy-settlement-control { display:grid !important; }
.final-archive-page.show-legacy-settlement .grid.legacy-settlement-control { display:grid !important; }
.final-archive-page .actions button#saveSettlementBtn,
.final-archive-page .actions button#confirmSettlementBtn,
.final-archive-page .actions button#exportSettlementDraftBtn,
.final-archive-page .actions button#unlockSettlementBtn { display:none; }
@media (max-width: 700px) { .final-archive-card { border-radius:14px; padding:14px; } .final-archive-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .final-archive-actions { align-items:flex-start; flex-direction:column; } }
/* V6.95.0 archive evidence and consistency results */
.archive-verification,
.archive-consistency { margin:12px 0; border-radius:14px; padding:12px 14px; display:grid; gap:5px; border:1px solid #cfe5dd; background:#f7fffb; color:#375f55; }
.archive-verification.review,
.archive-consistency.review { border-color:#e9c889; background:#fffaf0; color:#79591f; }
.archive-verification b,
.archive-consistency b { color:#1b7663; }
.archive-verification.review b,
.archive-consistency.review b { color:#a36c15; }
.archive-verification span,
.archive-verification small,
.archive-consistency span { overflow-wrap:anywhere; }
.archive-consistency ul { margin:6px 0 0 18px; padding:0; }

/* V6.96.0 premium UI: the authoritative final layer. Keep legacy rules above
   for compatibility, but make this scoped layer the last word visually. */
/* V6.96.0: final lookup stability layer */
body.v6960-premium-ui {
  --v6960-sidebar: 276px;
  --v6960-ink: #14253b;
  --v6960-muted: #64748b;
  --v6960-line: rgba(148, 163, 184, .24);
  --v6960-green: #137a68;
  --v6960-green-soft: #e9f7f2;
  color: var(--v6960-ink);
  background: #eef3f8;
}
body.v6960-premium-ui #app.app {
  display: grid;
  grid-template-columns: var(--v6960-sidebar) minmax(0, 1fr);
  min-height: 100dvh;
  background: linear-gradient(135deg, #eef4f8 0%, #f7fafc 52%, #edf4f5 100%);
}
body.v6960-premium-ui .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--v6960-sidebar);
  height: 100dvh;
  box-sizing: border-box;
  overflow-y: auto;
  padding: 22px 16px 18px;
  border-right: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, #121b2d 0%, #0e1728 100%);
  box-shadow: 14px 0 40px rgba(15, 23, 42, .14);
}
body.v6960-premium-ui .workspace {
  min-width: 0;
  margin-left: var(--v6960-sidebar);
  padding: 28px 32px 108px;
}
body.v6960-premium-ui .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: -28px -32px 24px;
  padding: 14px 20px 16px;
  border-bottom: 1px solid var(--v6960-line);
  background: rgba(247, 250, 252, .88);
  backdrop-filter: blur(18px);
}
body.v6960-premium-ui .topbar h1 { margin: 0; letter-spacing: -.025em; }
body.v6960-premium-ui .top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
body.v6960-premium-ui .armenia-clock { color: var(--v6960-muted); font-variant-numeric: tabular-nums; }
body.v6960-premium-ui .sidebar .brand,
body.v6960-premium-ui .sidebar .brand-block { border-radius: 18px; }
body.v6960-premium-ui .sidebar nav a,
body.v6960-premium-ui .sidebar nav button {
  min-height: 44px;
  border-radius: 13px;
  transition: background .18s ease, transform .18s ease;
}
body.v6960-premium-ui .sidebar nav a:hover,
body.v6960-premium-ui .sidebar nav button:hover { transform: translateX(2px); background: rgba(255,255,255,.08); }
body.v6960-premium-ui .sidebar nav a.active,
body.v6960-premium-ui .sidebar nav button.active {
  background: linear-gradient(135deg, rgba(41, 155, 132, .32), rgba(37, 99, 235, .2));
  box-shadow: inset 3px 0 var(--v6960-green);
}
body.v6960-premium-ui .panel {
  border: 1px solid var(--v6960-line);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(25, 48, 73, .06);
}
body.v6960-premium-ui #dashboard .metric-grid { gap: 16px; }
body.v6960-premium-ui #dashboard .metric {
  min-height: 148px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(25,48,73,.08);
}
body.v6960-premium-ui #dashboard .metric h3 { color: var(--v6960-muted); }
body.v6960-premium-ui #dashboard .metric strong { font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
body.v6960-premium-ui .quick-lookup { border-radius: 20px; box-shadow: 0 12px 28px rgba(25,48,73,.05); }
body.v6960-premium-ui .dashboard-skeleton,
body.v6960-premium-ui .dashboard-detail-loading {
  min-height: 120px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(226,232,240,.55) 25%, rgba(248,250,252,.95) 37%, rgba(226,232,240,.55) 63%);
  background-size: 400% 100%;
  animation: v6960-shimmer 1.2s ease-in-out infinite;
}
@keyframes v6960-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
body.v6960-premium-ui #records .table-wrap { overflow: auto; border: 1px solid var(--v6960-line); border-radius: 20px; }
body.v6960-premium-ui #records #txTable { min-width: 1520px; table-layout: fixed; }
body.v6960-premium-ui #records #txTable th:nth-child(1), body.v6960-premium-ui #records #txTable td:nth-child(1) { width: 120px; }
body.v6960-premium-ui #records #txTable th:nth-child(2), body.v6960-premium-ui #records #txTable td:nth-child(2) { width: 90px; }
body.v6960-premium-ui #records #txTable th:nth-child(3), body.v6960-premium-ui #records #txTable td:nth-child(3) { width: 150px; }
body.v6960-premium-ui #records #txTable th:nth-child(4), body.v6960-premium-ui #records #txTable td:nth-child(4) { width: 145px; }
body.v6960-premium-ui #records #txTable th:nth-child(5), body.v6960-premium-ui #records #txTable td:nth-child(5) { width: 80px; }
body.v6960-premium-ui #records #txTable th:nth-child(6), body.v6960-premium-ui #records #txTable td:nth-child(6) { width: 155px; }
body.v6960-premium-ui #records #txTable th:nth-child(7), body.v6960-premium-ui #records #txTable td:nth-child(7) { width: 140px; }
body.v6960-premium-ui #records #txTable th:nth-child(8), body.v6960-premium-ui #records #txTable td:nth-child(8) { width: 145px; }
body.v6960-premium-ui #records #txTable th:nth-child(9), body.v6960-premium-ui #records #txTable td:nth-child(9) { width: 130px; }
body.v6960-premium-ui #records #txTable th:nth-child(10), body.v6960-premium-ui #records #txTable td:nth-child(10) { width: 300px; }
body.v6960-premium-ui #records #txTable th:last-child, body.v6960-premium-ui #records #txTable td:last-child { width: 176px; }
body.v6960-premium-ui #records .ledger-row-actions-v6763 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch;
}
body.v6960-premium-ui #records .ledger-row-actions-v6763 button { min-width: 0; min-height: 38px; white-space: nowrap; }
body.v6960-premium-ui #records .ledger-row-actions-v6763 button:last-child { grid-column: 1 / -1; }
body.v6960-premium-ui #records .v668-ledger-detail,
body.v6960-premium-ui #records .v680-evidence-summary { max-height: 92px; overflow: hidden; }

@media (max-width: 900px) {
  body.v6960-premium-ui #app.app { display: block; min-height: 100dvh; }
  body.v6960-premium-ui .sidebar { display: none !important; }
  body.v6960-premium-ui .workspace { margin-left: 0; padding: 14px 12px calc(88px + env(safe-area-inset-bottom)); }
  body.v6960-premium-ui .topbar {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: -14px -12px 14px;
    padding: 12px;
    border-radius: 0 0 20px 20px;
  }
  body.v6960-premium-ui .top-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  body.v6960-premium-ui .top-actions > * { min-width: 0; }
  body.v6960-premium-ui #dashboard .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  body.v6960-premium-ui #dashboard .metric { min-height: 116px; padding: 14px; border-radius: 17px; }
  body.v6960-premium-ui #dashboard .metric strong { font-size: clamp(1.25rem, 6vw, 2rem); }
  body.v6960-premium-ui .panel { border-radius: 18px; padding: 14px; }
  body.v6960-premium-ui .quick-lookup-row { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  body.v6960-premium-ui #records #txTable { display: none; }
  body.v6960-premium-ui #records #txCards { display: grid; gap: 10px; }
  body.v6960-premium-ui #records .tx-card { width: 100%; box-sizing: border-box; border-radius: 18px; box-shadow: 0 8px 22px rgba(25,48,73,.06); }
  body.v6960-premium-ui .bottom-nav {
    position: fixed !important;
    inset: auto 0 0;
    z-index: 40;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(148,163,184,.24);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(18px);
  }
}

/* V6.99.0 final cascade: keep the desktop action rail readable after the
   older premium layers, and keep the mobile cards free of table sizing. */
body.v6990-lookup-speed #records #txTable {
  min-width: 1820px;
  table-layout: fixed;
}
body.v6990-lookup-speed #records #txTable th:nth-last-child(2),
body.v6990-lookup-speed #records #txTable td:nth-last-child(2) {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
}
body.v6990-lookup-speed #records #txTable th:last-child,
body.v6990-lookup-speed #records #txTable td:last-child {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  vertical-align: top;
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--panel, #fff);
  box-shadow: -10px 0 18px rgba(15, 23, 42, .06);
}
body.v6990-lookup-speed #records #txTable td:last-child .ledger-row-actions-v6763 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  width: 100%;
  padding: 4px;
}
body.v6990-lookup-speed #records #txTable td:last-child .ledger-row-actions-v6763 button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  body.v6990-lookup-speed #records #txTable {
    min-width: 0;
    table-layout: auto;
  }
  body.v6990-lookup-speed #records #txTable th:nth-last-child(2),
  body.v6990-lookup-speed #records #txTable td:nth-last-child(2),
  body.v6990-lookup-speed #records #txTable th:last-child,
  body.v6990-lookup-speed #records #txTable td:last-child {
    width: auto;
    min-width: 0;
    max-width: none;
    position: static;
    box-shadow: none;
  }
}

/* V7.0.0 final stability cascade. The action rail gets its own fixed visual
   lane so long Excel evidence text cannot squeeze or overlap the buttons. */
body.v7000-stability #records #txTable {
  min-width: 2060px;
  table-layout: fixed;
}
body.v7000-stability #records #txTable th:last-child,
body.v7000-stability #records #txTable td:last-child {
  width: 230px;
  min-width: 230px;
  max-width: 230px;
  position: sticky;
  right: 0;
  z-index: 4;
  vertical-align: top;
  background: var(--panel, #fff);
  box-shadow: -12px 0 20px rgba(15, 23, 42, .08);
}
body.v7000-stability #records #txTable th:nth-last-child(2),
body.v7000-stability #records #txTable td:nth-last-child(2) {
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  vertical-align: top;
}
body.v7000-stability #records #txTable td:last-child .ledger-row-actions-v6763 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 4px !important;
}
body.v7000-stability #records #txTable td:last-child .ledger-row-actions-v6763 button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  margin: 0 !important;
  white-space: nowrap;
}
.v7000-instant-notice {
  margin: 8px 0 10px;
  padding: 9px 12px;
  border: 1px solid rgba(69, 133, 121, .2);
  border-radius: 12px;
  color: #28665a;
  background: rgba(235, 248, 243, .92);
  font-size: .9rem;
}
.v7000-instant-notice[data-kind="stale"] { color: #8a641c; background: #fff8e9; }
.v7000-instant-notice[data-kind="error"] { color: #a53e3e; background: #fff0f0; }
.v7000-instant-notice.hidden { display: none; }
@media (max-width: 900px) {
  body.v7000-stability #records #txTable { min-width: 0; table-layout: auto; }
  body.v7000-stability #records #txTable th:last-child,
  body.v7000-stability #records #txTable td:last-child,
  body.v7000-stability #records #txTable th:nth-last-child(2),
  body.v7000-stability #records #txTable td:nth-last-child(2) {
    width: auto;
    min-width: 0;
    max-width: none;
    position: static;
    box-shadow: none;
  }
  body.v7000-stability .tx-card { width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }
  body.v7000-stability .tx-card .row-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* V7.22.2 daily accounting workbench. */
.v712-daily-workbench {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid rgba(69, 133, 121, .22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(247, 252, 250, .98), rgba(238, 248, 244, .92));
}
.v712-workbench-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v712-workbench-head b { display: block; font-size: 1.15rem; color: #124d43; }
.v712-workbench-head span, .v712-workbench-foot { display: block; margin-top: 4px; color: #6a7f7c; font-size: .88rem; }
.v712-workbench-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.v712-workbench-card { min-width: 0; min-height: 86px; padding: 12px; border: 1px solid rgba(69, 133, 121, .24); border-radius: 14px; background: rgba(255,255,255,.86); color: #1b3f3a; text-align: left; cursor: pointer; }
.v712-workbench-card:hover, .v712-workbench-card:focus-visible { border-color: #318678; box-shadow: 0 5px 16px rgba(44, 111, 99, .12); }
.v712-workbench-card.attention { border-color: #d3a246; background: #fff9ee; }
.v712-workbench-card strong, .v712-workbench-card span, .v712-workbench-card small { display: block; }
.v712-workbench-card strong { font-size: 1.45rem; line-height: 1.1; }
.v712-workbench-card span { margin-top: 5px; font-weight: 700; }
.v712-workbench-card small { margin-top: 4px; color: #778b88; font-size: .76rem; }
.v712-workbench-foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(69,133,121,.25); }
.v712-search-preset-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.v712-search-preset-bar label { display: grid; gap: 4px; min-width: 220px; color: #55706c; font-size: .78rem; }
.v712-search-preset-bar select { min-height: 36px; }
@media (max-width: 900px) {
  .v712-daily-workbench { margin-inline: 0; padding: 12px; border-radius: 15px; }
  .v712-workbench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v712-workbench-card:last-child { grid-column: span 2; }
  .v712-search-preset-bar label { min-width: 100%; }
  .v712-search-preset-bar button { flex: 1 1 calc(50% - 8px); min-width: 0; }
}

/* V7.22.2: the daily lookup surface gets one clear visual hierarchy. */
.v713-dashboard-focus {
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid rgba(52, 132, 117, .2);
  border-radius: 20px;
  background: linear-gradient(135deg, #f3fbf8, #edf7f5);
  box-shadow: 0 12px 30px rgba(27, 77, 67, .06);
}
.v713-focus-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.v713-focus-head b { display: block; color: #124d43; font-size: 1.15rem; }
.v713-focus-head span { display: block; margin-top: 4px; color: #6b817d; font-size: .88rem; }
.v713-focus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.v713-focus-item { min-width: 0; padding: 12px; border: 1px solid rgba(52, 132, 117, .2); border-radius: 15px; background: rgba(255,255,255,.84); color: #1b4b43; text-align: left; cursor: pointer; }
.v713-focus-item:hover, .v713-focus-item:focus-visible { border-color: #278b78; box-shadow: 0 5px 16px rgba(39, 139, 120, .13); }
.v713-focus-item.attention { border-color: #d2a149; background: #fff9ee; }
.v713-focus-item strong, .v713-focus-item span, .v713-focus-item small { display: block; }
.v713-focus-item strong { font-size: 1.45rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.v713-focus-item span { margin-top: 5px; font-weight: 700; }
.v713-focus-item small { margin-top: 4px; color: #728580; font-size: .76rem; }
.v713-focus-loading, .v713-loading-stack { display: grid; gap: 8px; }
.v713-focus-loading { min-height: 76px; grid-template-columns: repeat(4, 1fr); }
.v713-focus-loading i, .v713-loading-stack i { display: block; min-height: 54px; border-radius: 14px; background: linear-gradient(90deg, #e5efed 25%, #f8fcfb 45%, #e5efed 65%); background-size: 300% 100%; animation: v713-shimmer 1.1s ease-in-out infinite; }
.v713-loading-stack i { min-height: 92px; }
@keyframes v713-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

body.v713-ledger-ui #records .table-wrap { overflow-x: auto; overflow-y: visible; border-radius: 18px; }
body.v713-ledger-ui #records #txTable { min-width: 1660px; table-layout: fixed; }
body.v713-ledger-ui #records #txTable th:nth-child(10),
body.v713-ledger-ui #records #txTable td:nth-child(10) { width: 310px; min-width: 310px; max-width: 310px; }
body.v713-ledger-ui #records #txTable th:last-child,
body.v713-ledger-ui #records #txTable td:last-child { width: 220px; min-width: 220px; max-width: 220px; position: sticky; right: 0; z-index: 8; vertical-align: top; background: #fff; box-shadow: -12px 0 20px rgba(15, 56, 47, .1); }
body.v713-ledger-ui #records #txTable th:last-child { background: #f5f8fb; }
body.v713-ledger-ui #records #txTable td:last-child .ledger-row-actions-v6763,
body.v713-ledger-ui #records #txTable td:last-child .row-actions,
body.v713-ledger-ui #records #txTable td:last-child .tx-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 7px !important; width: 100% !important; min-width: 0 !important; padding: 2px !important; }
body.v713-ledger-ui #records #txTable td:last-child button { width: 100% !important; min-width: 0 !important; min-height: 36px !important; padding: 7px 8px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.v713-ledger-ui #records #txTable td:last-child button:last-child { grid-column: 1 / -1; }
body.v713-ledger-ui .v713-table-loading { min-height: 88px; display: grid; place-items: center; color: #6d817d; background: linear-gradient(90deg, #f5faf8 25%, #fff 45%, #f5faf8 65%); background-size: 300% 100%; animation: v713-shimmer 1.1s ease-in-out infinite; }

.v713-tx-card { overflow: hidden; border: 1px solid rgba(67, 137, 121, .2); border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(28, 78, 68, .06); }
.v713-tx-card-main { display: grid; gap: 8px; width: 100%; padding: 14px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.v713-tx-card-top, .v713-tx-card-money { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v713-tx-card-top b { color: #20594f; font-size: .96rem; font-variant-numeric: tabular-nums; }
.v713-tx-card-title { display: block; color: #173d36; font-weight: 800; }
.v713-tx-card-title small { display: block; margin-top: 3px; color: #718580; font-weight: 500; }
.v713-tx-card-money strong { font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.v713-tx-card-money span { color: #6f817e; font-size: .86rem; }
.v713-tx-card-evidence { display: block; overflow: hidden; color: #52706a; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.v713-tx-card-evidence b { margin-right: 6px; color: #2b806e; }
.v713-tx-card-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 0 12px 12px; }
.v713-tx-card-actions button { min-width: 0; min-height: 36px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Existing drawer: desktop preview on the right, mobile sheet with safe-area. */
body.v713-ledger-ui .tx-detail-drawer { z-index: 80; }
body.v713-ledger-ui .tx-detail-drawer .tx-detail-panel { width: min(520px, 94vw); max-height: 100dvh; overflow-y: auto; border-radius: 24px 0 0 24px; box-shadow: -20px 0 50px rgba(15, 23, 42, .18); }
body.v713-ledger-ui .tx-detail-drawer .tx-detail-body { padding-bottom: 28px; }
@media (max-width: 900px) {
  .v713-dashboard-focus { margin: 12px 0 14px; padding: 13px; border-radius: 17px; }
  .v713-focus-head { align-items: flex-start; }
  .v713-focus-head .secondary { flex: 0 0 auto; min-height: 38px; }
  .v713-focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .v713-focus-loading { grid-template-columns: repeat(2, 1fr); }
  .v713-focus-loading i { min-height: 60px; }
  body.v713-ledger-ui #records #txTable { min-width: 0; table-layout: auto; }
  body.v713-ledger-ui #records #txTable { display: none; }
  body.v713-ledger-ui #records #txCards { display: grid; gap: 10px; }
  body.v713-ledger-ui #records #txCards .load-more-cards { width: 100%; }
  body.v713-ledger-ui .tx-detail-drawer .tx-detail-panel { width: 100%; max-height: min(88dvh, 760px); border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
/* V7.22.2 daily workbench, evidence selection and security controls. */
.v714-evidence-bar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:12px 0; padding:12px 14px; border:1px solid rgba(57,126,111,.22); border-radius:16px; background:#f3faf7; color:#1b5147; }
.v714-evidence-bar > div:first-child { display:flex; align-items:baseline; gap:12px; }
.v714-evidence-bar span { color:#6b817b; font-size:.88rem; }
.v714-evidence-actions { display:flex; flex-wrap:wrap; gap:7px; }
.v714-evidence-actions button { min-height:36px; }
.v714-evidence-check { display:inline-flex; align-items:center; gap:4px; margin-right:7px; padding:3px 6px; border-radius:9px; background:#eaf6f1; color:#327c6c; font-size:.74rem; white-space:nowrap; vertical-align:middle; }
.v714-evidence-check input { accent-color:#2d806e; }
.v714-table-check { display:flex; margin:0 0 5px; }
.v714-anomaly-summary { margin:12px 0; padding:14px; border:1px solid rgba(214,157,50,.35); border-radius:17px; background:#fffaf0; color:#6e5723; }
.v714-anomaly-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.v714-anomaly-head div { display:grid; gap:3px; }
.v714-anomaly-head span, .v714-anomaly-list small { color:#8b8065; font-size:.86rem; }
.v714-anomaly-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:7px; margin-top:10px; }
.v714-anomaly-list button { display:grid; gap:3px; padding:10px; border:1px solid rgba(214,157,50,.28); border-radius:12px; background:#fff; color:inherit; text-align:left; }
.v714-anomaly-ok { margin:9px 0 0; color:#327c6c; }
.v714-anomaly-error { color:#9c5c32; }
.v714-session-list { display:grid; gap:8px; margin-top:10px; }
.v714-session-list article { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; align-items:center; padding:10px 12px; border:1px solid #dbe7e3; border-radius:12px; background:#f8fbfa; }
.v714-session-list article span { color:#6d817d; font-size:.86rem; }
.v714-session-list article small { color:#2d806e; }
@media (max-width: 680px) {
  .v714-evidence-bar { display:grid; gap:9px; }
  .v714-evidence-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .v714-evidence-actions button { min-width:0; padding-inline:7px; }
  .v714-anomaly-head { align-items:flex-start; }
  .v714-anomaly-list { grid-template-columns:1fr; }
  .v714-session-list article { grid-template-columns:1fr; gap:3px; }
}

/* V7.22.2 close-out, reconciliation and performance surfaces. */
.v7160-daily-batch-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:8px;border-top:1px solid #dcebe5}.v7160-daily-batch-actions button{min-height:34px}.v7160-close-guide,.v7160-reconciliation-explain{display:grid;gap:10px;margin:12px 0;padding:13px;border:1px solid #cfe4da;border-radius:15px;background:linear-gradient(135deg,#fbfffd,#f1faf6)}.v7160-close-guide-head,.v7160-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.v7160-close-guide-head>div,.v7160-section-head>div{display:grid;gap:3px}.v7160-close-guide-head span,.v7160-section-head span{color:var(--muted);font-size:12px}.v7160-close-guide-head strong{font-size:22px;color:#28765f}.v7160-progress{height:8px;overflow:hidden;border-radius:999px;background:#e4f0eb}.v7160-progress i{display:block;height:100%;border-radius:inherit;background:#4caa83}.v7160-close-guide ul,.v7160-diff-issues{display:grid;gap:5px;margin:0;padding-left:18px;color:#8b5d20;font-size:12px}.v7160-reconciliation-explain{background:#fff}.v7160-diff-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.v7160-diff-card{display:grid;gap:4px;padding:9px;border:1px solid #cfe5d9;border-radius:10px;background:#f7fcf9}.v7160-diff-card.warn{border-color:#efc98f;background:#fffaf0}.v7160-diff-card b{font-size:12px}.v7160-diff-card span,.v7160-diff-card em{color:var(--muted);font-size:11px;font-style:normal}.v7160-diff-card em{color:#9a6b1f}.v7160-candidate-list{display:grid;gap:6px}.v7160-candidate-list button{display:grid;gap:3px;padding:9px;text-align:left;border:1px solid #e1ebe7;border-radius:9px;background:#fbfefd;color:var(--text)}.v7160-candidate-list span{color:var(--muted);font-size:12px}.v7160-diff-error{color:#a53e3e}.v7160-performance-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0;padding:8px 10px;border:1px solid #dceae5;border-radius:10px;background:#fbfefd;color:var(--muted);font-size:12px}.v7160-performance-bar b{color:#245647;font-size:14px}.v7160-performance-bar em{font-style:normal}.v7160-performance-bar button{margin-left:auto;min-height:28px;padding:4px 9px}
@media(max-width:760px){.v7160-daily-batch-actions{display:grid;grid-template-columns:1fr 1fr}.v7160-daily-batch-actions button{min-width:0;padding-inline:6px}.v7160-close-guide-head,.v7160-section-head{align-items:flex-start;display:grid}.v7160-close-guide-head strong{font-size:19px}.v7160-diff-grid{grid-template-columns:1fr 1fr}.v7160-performance-bar{align-items:flex-start;display:grid;grid-template-columns:auto 1fr}.v7160-performance-bar button{grid-column:1/-1;margin-left:0;width:100%}}

/* V7.22.2 close-control surfaces. */
.v7170-month-batch-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:8px;border-top:1px solid #dcebe5}.v7170-month-batch-actions button{min-height:34px}.v7170-reconcile-case{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;padding:7px;border:1px solid #e1ebe7;border-radius:10px;background:#fbfefd}.v7170-reconcile-case>button:first-child{border:0;padding:3px;background:transparent}.v7170-reconcile-case small{color:#98702c;font-size:11px;white-space:nowrap}.v7170-reconcile-case>div{grid-column:1/-1;display:flex;gap:6px}.v7170-reconcile-case>div button{min-height:28px;padding:4px 8px}.v7170-reconcile-case.confirmed,.v7170-reconcile-case.fixed{border-color:#c8e5d8;background:#f6fcf9}.v7170-reconcile-case.ignored{opacity:.7}.v7170-runtime-metric{color:#6c8279;font-size:11px}@media(max-width:760px){.v7170-month-batch-actions{display:grid;grid-template-columns:1fr 1fr}.v7170-month-batch-actions button{width:100%}.v7170-reconcile-case{grid-template-columns:1fr}.v7170-reconcile-case small{white-space:normal}.v7170-reconcile-case>div{display:grid;grid-template-columns:1fr 1fr}.v7170-reconcile-case>div button{width:100%}}
/* V7.22.2 upgrade controls. */
.v7180-task-center,.v7180-approval,.v7180-drill-status{display:grid;gap:10px;margin:12px 0;padding:13px;border:1px solid #cfe4da;border-radius:15px;background:#fbfffd}.v7180-task-center header,.v7180-approval header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.v7180-task-center header div,.v7180-approval header div{display:grid;gap:3px}.v7180-task-center header span,.v7180-approval header span,.v7180-drill-status span{color:var(--muted);font-size:12px}.v7180-task-list{display:grid;gap:7px}.v7180-task-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;padding:9px;border:1px solid #e0ebe7;border-radius:10px;background:#fff}.v7180-task-list article>div:first-child{display:grid;gap:3px}.v7180-task-list article small{color:var(--muted);font-size:11px}.v7180-task-list article strong{color:#28765f}.v7180-task-progress{grid-column:1/-1;height:7px;overflow:hidden;border-radius:999px;background:#e6f1ed}.v7180-task-progress i{display:block;height:100%;border-radius:inherit;background:#50aa84}.v7180-task-list article button{grid-column:2;grid-row:3}.v7180-approval strong{font-size:12px;color:#98702c}.v7180-approval strong.approved{color:#28765f}.v7180-approval strong.rejected{color:#a53e3e}.v7180-approval-actions{display:flex;gap:7px;flex-wrap:wrap}.v7180-performance-budget{color:#28765f;font-size:11px}.v7180-performance-budget.warn{color:#a53e3e}.v7180-drill-status{border-color:#cfe4da}.v7180-drill-status b{color:#28765f}@media(max-width:760px){.v7180-task-center header,.v7180-approval header{display:grid}.v7180-approval-actions{display:grid;grid-template-columns:1fr 1fr}.v7180-approval-actions button{width:100%}.v7180-task-list article{grid-template-columns:minmax(0,1fr) auto}.v7180-task-list article button{grid-column:1/-1;grid-row:auto}}
/* V7.22.2 production reliability surfaces. */
.v7190-mobile-close-dock,.v7190-reconciliation-action{display:grid;gap:9px;margin:12px 0;padding:12px;border:1px solid #cfe4da;border-radius:14px;background:#fbfffd}.v7190-mobile-close-dock>b{font-size:13px}.v7190-mobile-close-dock>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.v7190-mobile-close-dock button{min-height:34px}.v7190-reconciliation-action{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff}.v7190-reconciliation-action span,.v7190-suggestion,.v7190-performance-trend{color:var(--muted);font-size:11px}.v7190-suggestion{display:block;padding:4px 7px;border-radius:7px;background:#f4faf7;color:#28765f}.v7190-performance-trend{color:#28765f}@media(max-width:760px){.v7190-mobile-close-dock>div{grid-template-columns:1fr 1fr}.v7190-reconciliation-action{display:grid}.v7190-reconciliation-action button{width:100%}}
/* V7.22.2 production control plane. */
.v7210-governance-dr{display:grid;gap:10px;margin:12px 0;padding:13px;border:1px solid #cfe4da;border-radius:15px;background:linear-gradient(135deg,#fbfffd,#f1faf6)}.v7210-governance-dr header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.v7210-governance-dr header div{display:grid;gap:3px}.v7210-governance-dr header span,.v7210-governance-dr>small{color:var(--muted);font-size:11px}.v7200-control-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.v7200-control-grid article{display:grid;gap:5px;padding:10px;border:1px solid #dcebe5;border-radius:11px;background:#fff}.v7200-control-grid article span{color:var(--muted);font-size:12px}.v7200-control-grid article span.ok{color:#28765f}.v7200-control-grid article span.warn{color:#a53e3e}@media(max-width:760px){.v7210-governance-dr header{display:grid}.v7210-governance-dr header button{width:100%}.v7200-control-grid{grid-template-columns:1fr}}
.v7210-governance-dr .v7200-control-grid article[data-v7210-notification] button{justify-self:start;min-height:28px;padding:4px 9px}.v7210-governance-dr .v7200-control-grid article[data-v7210-notification]{grid-template-columns:1fr auto}.v7210-governance-dr .v7200-control-grid article[data-v7210-notification] b,.v7210-governance-dr .v7200-control-grid article[data-v7210-notification] span{grid-column:1/-1}
.v7210-governance-dr .v7200-control-grid article[data-v7220-calibration] button{justify-self:start;min-height:28px;padding:4px 9px}.v7210-governance-dr .v7200-control-grid article[data-v7220-calibration],.v7210-governance-dr .v7200-control-grid article[data-v7220-queue],.v7210-governance-dr .v7200-control-grid article[data-v7220-archive-export]{display:grid;gap:5px}
/* V7.33.0 flow-performance: keep mobile interaction cheap without changing the accounting UI. */
@media (max-width: 760px) {
  body {
    -webkit-tap-highlight-color: transparent;
  }

  .tx-card,
  .v713-tx-card,
  .transaction-card,
  .v669-day-card,
  .v669-transaction-card {
    box-shadow: 0 2px 8px rgba(24, 44, 70, 0.06);
  }

  .v713-dashboard-focus,
  .v640-mobile-query-bar,
  .tx-detail-drawer,
  .mobile-detail-drawer {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* V7.33.0 slim index: isolate long result surfaces so a bounded page update
   does not invalidate the whole workspace layout. This is presentation-only
   and does not change table sizing or sticky action columns. */
#txCards,
#searchResults,
.dashboard-detail-list {
  contain: style;
}

/* V7.33.0 flow trim: the detail list paints the next window only when its
   sentinel approaches the viewport. Keep the marker visually inert and
   outside the layout cost of the transaction cards/table. */
.v7270-render-sentinel {
  min-height: 1px;
  height: 1px;
  contain: strict;
  pointer-events: none;
}
#txTable .v7270-render-sentinel td {
  height: 1px;
  padding: 0;
  border: 0;
}

@media (min-width: 761px) {
  #records .table-wrap {
    contain: style;
  }
}

/* V7.33.0 performance closure: keep long result surfaces from invalidating
   the whole page when a small row or card changes. The browser may skip
   painting below the viewport; data, layout order and row actions are intact. */
#txCards,
#searchResults,
#txTable,
#dashboard-detail-list,
.dashboard-detail-list {
  content-visibility: auto;
  contain: layout style paint;
  contain-intrinsic-size: 420px;
}

.tx-card,
.transaction-card,
.v669-day-card,
.v669-transaction-card,
.search-card {
  contain: layout paint;
  content-visibility: auto;
  contain-intrinsic-size: 116px;
}

@media (prefers-reduced-motion: reduce) {
  #txCards,
  #searchResults,
  #txTable,
  .dashboard-detail-list {
    content-visibility: visible;
  }
}

/* V7.33.0 stability observation: phone detail cards are already API-paged
   and frame-rendered. These mobile-only containment hints keep long day
   groups from forcing a full-page repaint while leaving actions accessible. */
@media (max-width: 760px) {
  #txCards,
  #searchResults {
    contain: layout style paint;
    content-visibility: auto;
    contain-intrinsic-size: 0 720px;
  }

  #txCards > *,
  #searchResults > * {
    contain: layout paint style;
    content-visibility: auto;
    contain-intrinsic-size: 0 180px;
  }
}

.import-postwrite-check {
  display: block;
  margin-top: 8px;
  font-size: 0.9em;
}

.import-postwrite-check.ok { color: #1f7a67; }
.import-postwrite-check.warn { color: #a15c18; }
.import-postwrite-check.muted { color: #718096; }

/* V7.33.0: bounded mobile recovery state and compact read-only diagnostics. */
.v7330-mobile-recovery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #e7c98f;
  border-radius: 12px;
  background: #fffaf0;
  color: #72501c;
  font-size: 0.92rem;
}

.v7330-mobile-recovery.hidden { display: none; }
.v7330-mobile-recovery button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: 9px;
  background: #277f6d;
  color: #fff;
  cursor: pointer;
}
.v7330-mobile-recovery button:disabled { opacity: .65; cursor: wait; }
.v7330-performance-overview {
  display: grid;
  gap: 6px;
  color: #52677b;
}
.v7330-performance-overview b { color: #15304a; }

@media (max-width: 760px) {
  .v7330-mobile-recovery {
    align-items: stretch;
    flex-direction: column;
  }
  .v7330-mobile-recovery button { width: 100%; }
}

