/* Desktop dimensions measured from the user's 2× Quicken mock-file reference.
   App-owned icons, financial state styling and the phone layout remain intact. */
@media screen and (min-width:681px){
  :root{
    --row-height:34px;
    --desktop-chrome:#262626;
    --desktop-heading:#1d1d1d;
    --desktop-control:#363636;
    --desktop-edge:#414141;
    --desktop-menu-bg:rgba(48,48,48,.98);
    --desktop-menu-edge:#626262;
    --desktop-menu-selected:#1b65a0;
    --desktop-menu-shadow:0 12px 32px #0005,0 1px 4px #0004;
    --desktop-row-dark:#202020;
    --desktop-row-gray:#2b2b2b;
    --desktop-row-hover:#373737;
    --desktop-row-selected:#454545;
    --desktop-edit-selection:#1b6198;
  }
  :root:where([data-theme="light"]){
    --desktop-chrome:#f2f3f5;
    --desktop-heading:#fff;
    --desktop-control:#e7e9ed;
    --desktop-edge:#ced2d8;
    --desktop-menu-bg:rgba(250,250,252,.99);
    --desktop-menu-edge:#bdc2c9;
    --desktop-menu-selected:#216fa9;
    --desktop-menu-shadow:0 10px 28px #263e5726,0 1px 4px #263e571a;
    --desktop-row-dark:#fff;
    --desktop-row-gray:#f1f3f6;
    --desktop-row-hover:#e8edf3;
    --desktop-row-selected:#dce8f3;
    --desktop-edit-selection:#dceaf6;
  }

  .app-shell{grid-template-columns:var(--desktop-sidebar-width,250px) minmax(0,1fr)}
  #app-view[data-sidebar-hidden="true"]{grid-template-columns:minmax(0,1fr)}
  .sidebar{position:relative;border-color:var(--desktop-edge);background:var(--sidebar)}
  .sidebar-top,.sidebar-tools{height:52px;min-height:52px;flex:none;border-bottom:1px solid var(--desktop-edge)}
  .sidebar-top{padding:0 10px;gap:8px}
  .sidebar-tools{display:flex;align-items:center;gap:5px;padding:0 10px}
  .sidebar-top .sidebar-tools{height:auto;min-height:0;padding:0;border:0;width:100%}
  .sidebar-tool{display:inline-grid;place-items:center;flex:none;width:29px;height:29px;min-height:29px;padding:0;border:1px solid transparent;border-radius:50%;background:#5c5c5c;color:#e1e1e1;line-height:1;font-size:22px}
  .sidebar-tool:hover:not(:disabled){background:#6a6a6a;color:#fff}
  .sidebar-tool[aria-expanded="true"]{background:#707070}
  .sidebar-tool[data-sidebar-toggle]{margin-left:auto;border-radius:5px;background:transparent;color:var(--muted)}
  .sidebar-tool .app-icon{width:20px;height:20px;margin:auto}
  .sidebar-tool[data-sidebar-toggle]:hover{background:var(--surface-raised);color:var(--text)}
  :where([data-theme="light"]) .sidebar-tool{background:#d4d8de;color:#354554}
  :where([data-theme="light"]) .sidebar-tool:hover:not(:disabled){background:#c5cbd3;color:#162d40}
  :where([data-theme="light"]) .sidebar-tool[data-sidebar-toggle]{background:transparent;color:var(--muted)}

  .all-accounts-button{height:36px;padding:8px 24px;font-size:12px;line-height:20px}
  .sidebar-heading{padding:5px 16px}
  .sidebar-heading h2{font-size:12px;line-height:18px}
  .sidebar-heading>strong{font-size:12px;white-space:nowrap}
  .account-list{padding:0 4px 10px;gap:0}
  .account-group{margin:0 0 8px}
  .account-group-heading,.account-group-label,.account-list h3{font-size:12px;line-height:18px;margin:7px 20px 3px}
  .sidebar [data-sidebar-group-toggle]{display:flex;align-items:center;gap:7px;width:100%;min-height:25px;margin:0;padding:4px 13px;border:0;background:transparent;color:var(--muted);text-align:left;font-size:12px;line-height:17px;font-weight:600}
  .sidebar [data-sidebar-group-toggle]:before{content:"";display:block;flex:none;width:6px;height:6px;margin-right:2px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .12s ease}
  .sidebar [data-sidebar-group-toggle][aria-expanded="false"]:before{transform:rotate(-45deg)}
  .sidebar-heading>[data-sidebar-group-toggle]{width:auto;min-width:0;flex:1;padding:0;color:var(--text)}
  .sidebar [data-sidebar-group-toggle]:hover{background:color-mix(in srgb,var(--text) 5%,transparent);color:var(--text)}
  .sidebar [data-sidebar-group-toggle] .sidebar-group-chevron{width:10px;height:10px;flex:none;transition:transform .12s ease}
  .sidebar [data-sidebar-group-toggle][aria-expanded="false"] .sidebar-group-chevron{transform:rotate(-90deg)}
  .sidebar [data-sidebar-group-toggle] .account-group-total{margin-left:auto;font-variant-numeric:tabular-nums}
  .account-button{min-height:22px;height:22px;padding:1px 8px 1px 28px;border-radius:4px;font-size:12px;gap:6px}
  .account-name,.account-balance{font-size:12px;line-height:20px}
  .sidebar-total{min-height:34px;padding:6px 24px;font-size:12px;line-height:20px;border-color:var(--desktop-edge)}
  .sidebar-footer{padding:10px 9px}
  .sidebar-footer #sync-bank{display:none}
  .sidebar-footer .button{font-size:11px;min-height:28px}
  .sidebar-footer .app-version{font-size:10px;margin-top:6px}
  [data-sidebar-resize]{position:absolute;z-index:20;left:calc(var(--desktop-sidebar-width,250px) - 3px);top:0;bottom:0;width:6px;height:auto;border:0;padding:0;background:transparent;cursor:col-resize;touch-action:none;user-select:none}
  [data-sidebar-resize]:hover,[data-sidebar-resize]:focus-visible{background:color-mix(in srgb,var(--accent) 45%,transparent);outline:0}
  #app-view[data-sidebar-hidden="true"] [data-sidebar-resize]{display:none}
  .resizing-desktop-sidebar,.resizing-desktop-sidebar *{cursor:col-resize!important;user-select:none!important}

  /* Both rows fit the reference's 52px toolbar; the first row supplies the
     application's menus, which live in the macOS menu bar in the reference. */
  .desktop-toolbar{position:relative;display:flex;flex-direction:column;align-items:stretch;flex:none;min-height:52px;height:52px;gap:0;padding:0 12px;border-bottom:1px solid var(--desktop-edge);background:var(--desktop-chrome);color:var(--text)}
  .desktop-menu-strip{display:flex;align-items:center;gap:0;flex:none;min-height:24px;height:24px;min-width:0;width:100%}
  .desktop-menu-strip>button,.desktop-menu-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:22px;height:22px;padding:2px 9px;border:0;border-radius:4px;background:transparent;color:var(--text);font-size:12px;line-height:18px;font-weight:400;white-space:nowrap}
  .desktop-menu-strip>button:hover,.desktop-menu-button:hover,.desktop-menu-strip>button[aria-expanded="true"],.desktop-menu-button[aria-expanded="true"]{background:var(--surface-raised)}
  .desktop-menu-strip .session{margin-left:auto;gap:6px;font-size:10px;min-width:0}
  .desktop-menu-strip .session .button{min-height:22px;height:22px;padding:1px 5px;font-size:10px;line-height:18px}
  .desktop-menu-strip #signed-in-user{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:210px}
  .desktop-menu-strip .sidebar-reopen{display:none}
  [data-sidebar-hidden="true"] .desktop-menu-strip .sidebar-reopen{display:inline-flex;width:26px;padding:2px;margin-right:4px}
  .workspace-navigation{display:flex;align-items:center;justify-content:center;gap:12px;flex:1;min-width:0;height:28px;margin:0;padding:0;overflow-x:auto;scrollbar-width:none}
  .workspace-navigation::-webkit-scrollbar{display:none}
  .workspace-navigation>button,.workspace-navigation [data-workspace-view]{display:inline-flex;align-items:center;justify-content:center;flex:none;gap:5px;min-height:26px;height:26px;border:0;border-radius:4px;padding:3px 8px;background:transparent;color:var(--text);font-size:13px;line-height:20px;font-weight:600;white-space:nowrap}
  .workspace-navigation button:hover,.workspace-navigation button[aria-expanded="true"]{background:var(--surface-raised)}
  .workspace-navigation [aria-current="page"],.workspace-navigation [aria-selected="true"],.workspace-navigation .active{background:color-mix(in srgb,var(--accent) 24%,var(--desktop-chrome))}
  .desktop-toolbar>[data-sidebar-toggle]{position:absolute;left:8px;bottom:2px;width:26px;height:26px;padding:3px;border:0;border-radius:4px;background:transparent;color:var(--muted)}
  .workspace-page{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;background:var(--bg)}

  .page-heading{height:84px;min-height:84px;padding:15px 22px;gap:16px;background:var(--desktop-heading)}
  .page-heading h1{font-size:25px;line-height:31px;font-weight:500;letter-spacing:-.45px}
  .page-heading .muted{font-size:12px;line-height:18px;margin-top:3px}
  .today-balance>span{font-size:12px;line-height:17px;color:var(--muted)}
  .today-balance>strong{font-size:25px;line-height:30px;font-weight:400;letter-spacing:-.3px;margin-top:1px}
  .account-navigation{height:36px;min-height:36px;padding:4px 9px;gap:12px;background:var(--desktop-chrome);border-color:var(--desktop-edge)}
  .account-tabs{gap:4px}
  .account-tab{height:25px;padding:3px 9px;font-size:13px;line-height:19px;border-radius:4px}
  .search-field{height:26px;width:min(285px,35%);background:var(--input);border-color:var(--desktop-edge)}
  .search-field input{height:24px;font-size:12px;line-height:18px}
  .register-filters{height:42px;min-height:42px;padding:6px 9px;gap:10px;background:var(--desktop-chrome);border-color:var(--desktop-edge)}
  .filter-controls{gap:8px}
  .filter-controls select{height:27px;width:150px;max-width:17vw;padding:3px 24px 3px 10px;background:var(--desktop-control);color:var(--text);font-size:12px;line-height:20px}
  .filter-controls label:first-child select{width:212px;max-width:23vw}
  .register-count{font-size:11px;line-height:18px;gap:4px}
  .register-table{font-size:13px}
  .register-table th{height:27px;font-size:10px;line-height:16px;padding:5px;letter-spacing:.4px;background:var(--desktop-chrome);border-color:var(--desktop-edge)}
  .register-table td{height:34px;max-height:34px;padding:6px 5px;line-height:22px;background:var(--desktop-row-dark)}
  .register-table .bank-row-note{line-height:1}
  .register-table tbody tr:nth-child(even) td,.register-table tbody tr.stripe-gray td{background:var(--desktop-row-gray)}
  .register-table tbody tr.stripe-dark td{background:var(--desktop-row-dark)}
  .register-table tbody tr:hover td{background:var(--desktop-row-hover)}
  .register-table tbody tr[aria-selected="true"] td,.register-table tbody tr.selected-row td{background:var(--desktop-row-selected)}
  /* Do not change semantic text colors here: paid future entries stay bright,
     and only .unpaid-scheduled-row receives the existing forecast colors. */
  .register-table tbody tr.inline-editing td{height:34px;min-height:34px;max-height:none;padding:3px 2px;background:var(--desktop-edit-selection);vertical-align:middle}
  .register-table .inline-editing td input,.register-table .inline-editing td select{height:28px;min-height:28px;font-size:13px;line-height:20px;padding:3px 4px;border-radius:1px;background:var(--input);color:var(--text);border-color:color-mix(in srgb,var(--accent) 70%,var(--line))}
  .register-table .inline-editing td input:focus,.register-table .inline-editing td select:focus{outline:2px solid var(--accent);outline-offset:0}
  #register-body tr.inline-action-row td{height:auto;max-height:none;min-height:0;padding:5px 8px}
  .register-footer{min-height:54px;padding:2px 9px;background:var(--desktop-chrome);border-color:var(--desktop-edge)}
  .register-tools{min-height:49px;gap:12px}
  .toolbar-button{min-width:48px;min-height:48px;font-size:11px;line-height:13px;gap:3px;padding:3px 6px}
  .toolbar-icon{height:22px;line-height:22px}

  .register-context-menu,.register-context-submenu{width:max-content;min-width:225px;max-width:min(380px,calc(100vw - 12px));padding:5px;border:1px solid var(--desktop-menu-edge);border-radius:8px;background:var(--desktop-menu-bg);box-shadow:var(--desktop-menu-shadow);font-family:inherit;font-size:13px;line-height:18px;color:var(--text);scrollbar-color:var(--muted) transparent;overscroll-behavior:contain}
  .register-context-submenu{min-width:190px}
  .context-menu-item{height:auto;min-height:24px;padding:3px 10px;gap:14px;border-radius:4px;font-size:13px;line-height:18px;white-space:nowrap}
  .context-menu-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
  .context-menu-item:not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible){background:var(--desktop-menu-selected);color:#fff}
  .context-menu-item[aria-expanded="true"]:not(:disabled){background:color-mix(in srgb,var(--accent) 22%,var(--desktop-menu-bg))}
  .context-menu-item[aria-expanded="true"]:not(:disabled):is(:hover,:focus-visible){background:var(--desktop-menu-selected);color:#fff}
  .context-menu-item:focus-visible{outline:0}
  .context-menu-item:disabled,.context-menu-item[aria-disabled="true"]{opacity:1;color:var(--subtle);background:transparent;cursor:default}
  .context-menu-item .context-menu-hint{font-size:12px;line-height:18px;margin-left:auto;color:var(--muted)}
  .context-menu-item:is(:hover,:focus-visible):not(:disabled) .context-menu-hint{color:inherit}
  .context-menu-separator{margin:5px 9px;border-color:var(--desktop-menu-edge);opacity:.7}
  .register-context-menu>.context-menu-hint,.register-context-submenu>.context-menu-hint{font-size:11px;padding:4px 10px 6px;color:var(--muted)}
  .context-menu-item .menu-chevron{margin-left:auto;flex:none;width:10px;font-size:19px;line-height:16px;text-align:right}
  .context-menu-item .mobile-menu-reason{display:none}

  #schedule-dialog{width:min(746px,calc(100vw - 32px));border-radius:12px;background:var(--desktop-heading)}
  #schedule-dialog.schedule-cadence-open{width:min(746px,calc(100vw - 32px))}
  #schedule-dialog form{padding:24px 26px}
  #schedule-dialog .dialog-heading h2{font-size:21px;line-height:27px;font-weight:500}
  #schedule-dialog .schedule-step{font-size:12px;line-height:18px;margin:4px 0 22px}
  #schedule-dialog .schedule-cadence{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:0 22px}
  #schedule-dialog .schedule-cadence .schedule-preview{padding:14px 0 14px 21px;border:0;border-left:1px solid var(--line);border-radius:0;background:transparent}
  #schedule-dialog .schedule-summary{font-size:14px;line-height:20px;margin-bottom:18px}
  #schedule-dialog .schedule-preview h3{font-size:13px;line-height:19px;color:var(--text)}
  #schedule-dialog .schedule-next-dates{font-size:14px;line-height:21px;gap:5px;padding-left:0;list-style:none}
  #schedule-dialog .schedule-wizard-actions{bottom:-24px;margin-bottom:-24px;padding-top:18px;padding-bottom:22px;background:var(--desktop-heading)}
}

/* Shared workspace panels: these selectors only affect the new views, leaving
   the register's existing phone editor and navigation unchanged. */
#workspace-page{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;background:var(--bg)}
.context-menu-item[aria-haspopup="menu"]:after{content:none}
.workspace-view{padding:20px 22px 28px;color:var(--text);font-size:13px;line-height:1.45}
.workspace-view>*+*{margin-top:16px}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
.workspace-heading h1{font-size:25px;line-height:32px;font-weight:500;letter-spacing:-.4px}
.workspace-heading p{margin-top:4px}
.workspace-heading-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.workspace-button,.workspace-review-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:29px;padding:4px 11px;border:1px solid var(--line);border-radius:5px;background:var(--surface-raised);color:var(--text);font-size:12px;line-height:19px;white-space:nowrap}
.workspace-button:hover:not(:disabled),.workspace-review-button:hover:not(:disabled){background:color-mix(in srgb,var(--text) 9%,var(--surface-raised))}
.workspace-heading-actions .workspace-button,.workspace-review-button{background:var(--accent);border-color:var(--accent);color:#fff}
.workspace-heading-actions .workspace-button:hover:not(:disabled),.workspace-review-button:hover:not(:disabled){background:var(--accent-hover)}
.workspace-text-button{max-width:100%;min-height:22px;padding:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;white-space:normal;overflow-wrap:anywhere}
.workspace-text-button:hover{text-decoration:underline;text-underline-offset:3px}
.workspace-muted,.workspace-empty{color:var(--muted);font-size:12px}
.workspace-positive{color:var(--green)}
.workspace-negative,.workspace-filter-error{color:var(--red)}
.workspace-note{padding:9px 12px;border-left:3px solid var(--accent);border-radius:0 4px 4px 0;background:var(--surface-raised);font-size:12px}
.workspace-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px}
.workspace-filter{display:block;min-width:130px;max-width:100%;margin:0;color:var(--muted);font-size:11px}
.workspace-filter>span{display:block;line-height:16px;margin-bottom:4px}
.workspace-filter select,.workspace-filter input{width:100%;min-width:0;min-height:30px;margin:0;padding:4px 9px;border:1px solid var(--line);border-radius:4px;font-size:12px;line-height:20px}
.workspace-filter select{min-width:180px;padding-right:28px}
.workspace-forecast-toggle{display:flex;align-items:center;align-self:flex-end;gap:7px;min-height:30px;margin:0;color:var(--text);font-size:12px}
.workspace-forecast-toggle input{flex:none;display:inline-block;width:15px;height:15px;min-height:0;margin:0;padding:0;accent-color:var(--accent)}
.workspace-report-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--line);border-radius:5px;background:var(--surface);width:max-content;max-width:100%}
.workspace-report-tabs .workspace-button{min-height:25px;padding:2px 12px;background:transparent;border-color:transparent}
.workspace-report-tabs [aria-pressed="true"]{background:var(--accent);color:#fff}
.workspace-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:var(--surface);border:1px solid var(--line);border-radius:6px;overflow:hidden}
.workspace-stat{padding:13px 18px;min-width:0}
.workspace-stat+.workspace-stat{border-left:1px solid var(--line)}
.workspace-stat>span{display:block;font-size:11px;color:var(--muted)}
.workspace-stat>strong{display:block;margin-top:4px;font-size:22px;line-height:29px;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.workspace-section{padding:0;border:1px solid var(--line);border-radius:6px;background:var(--surface);overflow:hidden;min-width:0}
.workspace-section>h2{padding:10px 14px;border-bottom:1px solid var(--line);background:var(--surface-raised);font-size:14px;line-height:20px;font-weight:600}
.workspace-section>.workspace-muted,.workspace-section>.workspace-note,.workspace-section>.workspace-empty{margin:10px 14px}
.workspace-table-scroll{max-width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--muted) transparent;outline-offset:-2px}
.workspace-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;line-height:19px;font-variant-numeric:tabular-nums;text-align:left}
.workspace-table th{padding:6px 12px;border-bottom:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:10px;line-height:16px;letter-spacing:.35px;text-transform:uppercase;font-weight:500;white-space:nowrap}
.workspace-table td{height:34px;padding:6px 12px;background:var(--bg);border-bottom:1px solid color-mix(in srgb,var(--line) 45%,transparent);vertical-align:middle}
.workspace-table tbody tr:nth-child(even)>td{background:var(--surface)}
.workspace-table tbody tr:last-child>td{border-bottom:0}
.workspace-table .number{text-align:right;white-space:nowrap}
.workspace-table small{display:block;font-size:10px;line-height:15px}
.workspace-table .workspace-scheduled>td{color:var(--future)}
.workspace-table .workspace-scheduled>.workspace-positive{color:color-mix(in srgb,var(--green) 60%,var(--muted))}
.workspace-row-status,.workspace-cadence{color:var(--muted);font-size:11px;white-space:nowrap}
.workspace-row-actions{white-space:nowrap;text-align:right}
.workspace-row-actions .workspace-button{min-height:25px;padding:2px 8px;font-size:11px}
.workspace-row-actions .workspace-button+.workspace-button{margin-left:6px}
.workspace-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:10px 12px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}
.workspace-calendar-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.workspace-calendar-controls h2{min-width:160px;margin-right:8px;font-size:18px;line-height:26px;font-weight:500}
.workspace-calendar-controls .workspace-filter{margin-left:auto}
.workspace-calendar-weekdays,.workspace-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0}
.workspace-calendar-weekdays{margin-top:20px;border:1px solid var(--line);border-bottom:0;border-radius:5px 5px 0 0;background:var(--surface-raised)}
.workspace-calendar-weekdays>span{padding:7px 8px;text-align:center;font-size:11px;color:var(--muted)}
.workspace-calendar-grid{margin-top:0;border-top:1px solid var(--line);border-left:1px solid var(--line);border-radius:0 0 5px 5px;overflow:hidden}
.workspace-calendar-day{display:flex;align-items:flex-start;flex-direction:column;gap:3px;min-width:0;min-height:112px;padding:7px 9px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:var(--surface);color:var(--text);text-align:left;font-size:11px;line-height:16px;font-variant-numeric:tabular-nums}
.workspace-calendar-day:hover{background:var(--surface-raised)}
.workspace-calendar-day.outside-month{background:var(--bg)}
.workspace-calendar-day.outside-month .workspace-calendar-date{color:var(--subtle)}
.workspace-calendar-day[aria-pressed="true"]{background:color-mix(in srgb,var(--accent) 14%,var(--surface));box-shadow:inset 0 0 0 2px var(--accent)}
.workspace-calendar-date{display:inline-grid;place-items:center;width:24px;height:24px;margin:-2px 0 1px -3px;border-radius:50%;font-size:12px;line-height:24px}
.workspace-calendar-day.is-today .workspace-calendar-date{background:var(--accent);color:#fff;font-weight:600}
.workspace-calendar-day>strong{max-width:100%;margin-top:auto;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:17px;white-space:nowrap;font-weight:500}
.workspace-calendar-day small{max-width:100%;font-size:10px;line-height:14px}

.bank-update-dialog{width:min(560px,calc(100vw - 28px));background:var(--surface);border-color:var(--line)}
.bank-update-dialog>.dialog-heading{padding:20px 22px 14px;margin:0;border-bottom:1px solid var(--line)}
.bank-update-dialog .dialog-heading h2{font-size:21px;line-height:28px;font-weight:500}
.bank-update-body{padding:18px 22px 22px}
.bank-update-institution,.bank-update-manual-title{font-size:14px;line-height:20px;font-weight:600}
.bank-update-details,.bank-update-last-sync{font-size:12px;line-height:18px;color:var(--muted);margin-top:5px}
.bank-update-last-sync{font-size:11px}
.bank-update-account-list{list-style:none;margin:14px 0 0;padding:0;border:1px solid var(--line);border-radius:5px;overflow:hidden}
.bank-update-account{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:37px;padding:8px 11px;background:var(--bg);font-size:12px;line-height:20px}
.bank-update-account+.bank-update-account{border-top:1px solid var(--line)}
.bank-update-account-name{min-width:0;overflow-wrap:anywhere}
.bank-update-account-state{flex:none;font-size:11px;color:var(--muted)}
.bank-update-manual-title{margin-top:20px;color:var(--muted);font-size:12px}
.bank-update-manual-list{margin-top:8px}
.bank-update-manual-list .bank-update-account{background:transparent;color:var(--muted)}
.bank-update-outcome{margin-top:18px;padding:11px 12px;border-left:3px solid var(--accent);border-radius:0 4px 4px 0;background:var(--surface-raised);font-size:12px;line-height:18px;overflow-wrap:anywhere}
.bank-update-outcome:empty{display:none}
.bank-update-outcome[data-tone="success"]{border-color:var(--green)}
.bank-update-outcome[data-tone="warning"]{border-color:var(--icon)}
.bank-update-outcome[data-tone="error"]{border-color:var(--red)}
.bank-update-message{font-weight:500}
.bank-update-remediation,.bank-update-next{margin-top:5px;font-size:11px;line-height:17px;color:var(--muted)}
.bank-update-dialog>.dialog-actions{margin:0;padding:14px 22px 18px;background:var(--surface);flex-wrap:wrap}
.bank-update-dialog [data-bank-update-review]{margin-right:auto}

@media screen and (min-width:681px) and (max-width:1000px){
  .desktop-toolbar{padding-left:5px;padding-right:5px}
  .desktop-menu-strip>button,.desktop-menu-button{padding-left:6px;padding-right:6px;font-size:11px}
  .desktop-menu-strip #signed-in-user{display:none}
  .workspace-navigation{justify-content:flex-start;gap:4px;padding-left:0}
  .workspace-navigation>button,.workspace-navigation [data-workspace-view]{font-size:12px;padding-left:6px;padding-right:6px}
  .filter-controls select{width:120px}
  .filter-controls label:first-child select{width:150px}
  .register-count{font-size:10px}
}
@media screen and (max-width:680px){
  .desktop-toolbar,.desktop-menu-strip,.workspace-navigation,.sidebar-tools,[data-sidebar-resize]{display:none!important}
  .workspace-view{padding:16px 12px 24px}
  .workspace-heading{align-items:flex-start;gap:10px;margin-bottom:16px}
  .workspace-heading h1{font-size:23px;line-height:30px}
  .workspace-heading-actions{justify-content:flex-end}
  .workspace-button,.workspace-review-button{min-height:44px;padding:8px 12px;font-size:13px}
  .workspace-filters{gap:12px 10px}
  .workspace-filter{flex:1 1 140px;min-width:0}
  .workspace-filter input,.workspace-filter select{min-height:44px;height:44px;min-width:0;max-width:100%;font-size:16px;padding:8px}
  .workspace-forecast-toggle{min-height:44px}
  .workspace-forecast-toggle input{width:19px;height:19px}
  .workspace-stats{grid-template-columns:minmax(0,1fr)}
  .workspace-stat{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px}
  .workspace-stat+.workspace-stat{border-left:0;border-top:1px solid var(--line)}
  .workspace-stat>strong{margin:0;font-size:20px;line-height:26px}
  .workspace-table th,.workspace-table td{padding:8px 10px}
  .workspace-table td{height:44px}
  .workspace-text-button{min-height:32px}
  .workspace-table{min-width:580px}
  .workspace-row-actions .workspace-button{min-height:38px;padding:6px 10px;font-size:12px}
  .workspace-report-tabs{width:100%;padding:3px}
  .workspace-report-tabs .workspace-button{flex:1;min-height:38px;padding:6px 9px;font-size:13px}
  .workspace-calendar-controls{gap:6px}
  .workspace-calendar-controls h2{order:-1;min-width:0;width:100%;flex:0 0 100%;font-size:16px;line-height:22px;margin:0 0 4px}
  .workspace-calendar-controls>.workspace-button{flex:1 1 0;min-width:0;padding:8px 6px;font-size:12px}
  .workspace-calendar-controls .workspace-filter{flex-basis:100%;margin:4px 0 0}
  .workspace-calendar-weekdays>span{padding:7px 2px;font-size:10px}
  .workspace-calendar-day{min-height:90px;padding:5px 3px;gap:2px}
  .workspace-calendar-date{margin:0 0 2px;width:22px;height:22px;font-size:11px;line-height:22px}
  .workspace-calendar-day>strong{font-size:10px;line-height:14px}
  .workspace-calendar-day small{font-size:9px;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .workspace-calendar-day small.workspace-muted{display:none}
  .bank-update-dialog>.dialog-heading{padding:16px}
  .bank-update-dialog .dialog-heading h2{font-size:20px}
  .bank-update-body{padding:16px}
  .bank-update-account{min-height:44px;gap:10px}
  .bank-update-dialog>.dialog-actions{padding:12px 16px 16px;gap:8px}
  .bank-update-dialog>.dialog-actions .button{min-height:44px}
  .bank-update-dialog [data-bank-update-review]{flex-basis:100%;margin:0}
}
@media (prefers-reduced-motion:reduce){
  .sidebar [data-sidebar-group-toggle] .sidebar-group-chevron,.sidebar [data-sidebar-group-toggle]:before{transition:none}
}
@media print{
  .desktop-toolbar,.desktop-menu-strip,.workspace-navigation,.sidebar-tools,[data-sidebar-resize]{display:none!important}
}
