/* App frame: the single owner of navigation, brand, account menu and topbar.
   Route-specific composition and legacy interior controls remain in their modules. */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.main-column { grid-column: 2; min-width: 0; }
@media screen { .main-column { background: var(--lococo-soft); } }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--sidebar-width); display: flex; flex-direction: column;
  padding: 12px 10px; overflow-y: auto; overscroll-behavior: contain;
  color: var(--lococo-ink); background: var(--lococo-surface);
  border-right: 1px solid var(--lococo-line);
}
.brand-row { display: flex; align-items: center; min-height: 54px; gap: 9px; padding: 2px 2px 14px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; padding: 2px; overflow: hidden; border: 1px solid var(--lococo-line); border-radius: var(--lococo-radius-control); background: white; }
.brand-mark img, .brand-mark svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { min-width: 0; }
.brand-name { color: var(--lococo-ink); font-size: 16px; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; white-space: nowrap; }
.brand-subtitle { color: var(--lococo-muted); font-size: 10px; font-weight: 400; line-height: 1.4; white-space: nowrap; }
.nav-list { display: grid; flex-shrink: 0; gap: 12px; }
.nav-group { display: grid; gap: 2px; }
.nav-group-label { display: flex; align-items: end; min-height: 18px; padding: 0 9px 4px; color: var(--lococo-muted); font-size: 9px; font-weight: 600; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.nav-group.contains-active .nav-group-label { color: var(--lococo-ink); }
.nav-item {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center;
  width: 100%; min-height: 36px; gap: 8px; padding: 6px 9px;
  border: 0; border-radius: var(--lococo-radius-control);
  background: transparent; color: var(--lococo-muted);
  font-size: var(--lococo-text-sm); font-weight: 600; line-height: 1.4; text-align: left;
  transition: background var(--lococo-motion-fast), color var(--lococo-motion-fast);
}
.nav-item:hover { background: var(--lococo-soft); color: var(--lococo-ink); }
.nav-item.active { color: var(--lococo-ink); background: var(--lococo-selected); box-shadow: inset 2px 0 var(--lococo-ink); }
.nav-icon { display: grid; place-items: center; width: 20px; }
.nav-badge { padding: 2px 5px; border-radius: 4px; background: var(--lococo-soft); color: var(--lococo-muted); font-size: 8px; font-weight: 600; letter-spacing: .04em; }
.nav-icon svg, .mobile-nav-icon svg, .mobile-nav-search-icon svg, .sidebar-toggle-icon, .sidebar-close svg, #sidebarOpen svg, .profile-menu summary svg {
  display: block; width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.ui-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sidebar-spacer { flex: 1; min-height: 20px; }
.prototype-status { display: flex; align-items: start; flex-shrink: 0; gap: 8px; margin: 12px 2px; padding: 9px 6px; border: 0; background: transparent; }
.prototype-status { width: calc(100% - 4px); color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.prototype-status:hover, .prototype-status:focus-visible { background: var(--lococo-selected); }
.prototype-status small { display: block; margin-top: 7px; color: var(--lococo-focus); font-size: 10px; font-weight: 700; }
.prototype-status .status-dot { flex: 0 0 6px; width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: var(--lococo-success); }
.prototype-status strong, .prototype-status span { display: block; }
.prototype-status strong { color: var(--lococo-ink); font-size: 11px; font-weight: 600; }
.prototype-status span { margin-top: 3px; color: var(--lococo-muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.sidebar-profile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; flex-shrink: 0; gap: 8px; padding: 10px 3px 2px; border-top: 1px solid var(--lococo-line); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--lococo-radius-control); background: var(--lococo-selected); color: var(--lococo-ink); font-size: 11px; font-weight: 700; }
.profile-copy { min-width: 0; }
.profile-copy strong, .profile-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy strong { font-size: 11px; font-weight: 600; }
.profile-copy span { margin-top: 2px; color: var(--lococo-muted); font-size: 10px; }
.profile-menu { position: relative; }
.profile-menu > summary { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid transparent; border-radius: var(--lococo-radius-control); color: var(--lococo-muted); cursor: pointer; list-style: none; }
.profile-menu > summary::-webkit-details-marker { display: none; }
.profile-menu > summary:hover, .profile-menu[open] > summary { background: var(--lococo-selected); color: var(--lococo-ink); }
.profile-menu-panel { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 85; width: 174px; padding: 6px; border: 1px solid var(--lococo-line); border-radius: var(--lococo-radius-control); background: white; box-shadow: 0 8px 24px #102b4e1f; }
.profile-menu-panel button { width: 100%; min-height: 36px; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: var(--lococo-ink); font: 600 12px/1.4 var(--lococo-font-sans); text-align: left; }
.profile-menu-panel button:hover, .profile-menu-panel button:focus-visible { background: var(--lococo-selected); }
.profile-menu-panel button[hidden] { display: none; }
.desktop-sidebar-toggle { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; margin-left: auto; padding: 0; border: 1px solid var(--lococo-line); border-radius: 8px; color: var(--lococo-muted); background: transparent; line-height: 0; }
.desktop-sidebar-toggle:hover { background: var(--lococo-selected); color: var(--lococo-ink); }
.sidebar-toggle-icon--expand { display: none; }
.app-shell.sidebar-collapsed .sidebar-toggle-icon--collapse { display: none; }
.app-shell.sidebar-collapsed .sidebar-toggle-icon--expand { display: block; }
.sidebar-scrim, .mobile-bottom-nav { display: none; }
.mobile-bottom-nav[hidden] { display: none !important; }
body.sidebar-modal-open { overflow: hidden; }
body.global-search-open .mobile-bottom-nav { display: none; }
#sidebar :is(button, summary):focus-visible, #sidebarOpen:focus-visible, .mobile-bottom-nav button:focus-visible { outline: 2px solid var(--lococo-focus); outline-offset: 2px; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: flex-start; gap: 9px; min-height: var(--topbar-height); height: var(--topbar-height); padding: 0 14px; border-bottom: 1px solid var(--lococo-line); background: var(--lococo-surface); }
.topbar-context { display: flex; align-items: center; min-width: 0; flex: 1 1 auto; }
.topbar-context .eyebrow { display: none; }
.topbar-context h1 { margin: 0; color: var(--lococo-ink); font-size: 18px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.topbar-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; }
.app-shell:not([data-route="scan"]) #soundToggle { display: none; }
.topbar .env-mode-chip, .topbar .cloud-chip { min-height: 30px; height: 30px; padding-inline: 10px; font-size: 10px; border-radius: 6px; }
.topbar .cloud-chip { cursor: pointer; font-family: inherit; }
.topbar .cloud-chip:hover, .topbar .cloud-chip:focus-visible { outline: 2px solid var(--lococo-focus); outline-offset: 2px; }
.topbar .primary-button.compact { min-height: 32px; padding-inline: 12px; }
.topbar .icon-button { width: 32px; height: 32px; border: 1px solid var(--lococo-line); border-radius: var(--lococo-radius-control); background: white; color: var(--lococo-ink); }
@media (min-width: 921px) {
  .app-shell.sidebar-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
  .app-shell.sidebar-collapsed .sidebar { width: 72px; padding-inline: 9px; }
  .app-shell.sidebar-collapsed .brand-row { display: grid; justify-items: center; min-height: 80px; gap: 6px; padding-inline: 0; }
  .app-shell.sidebar-collapsed .desktop-sidebar-toggle { margin-left: 0; }
  .app-shell.sidebar-collapsed .brand-copy, .app-shell.sidebar-collapsed .nav-group-label,
  .app-shell.sidebar-collapsed .nav-item > span:not(.nav-icon), .app-shell.sidebar-collapsed .prototype-status > div,
  .app-shell.sidebar-collapsed .profile-copy, .app-shell.sidebar-collapsed .profile-menu { display: none; }
  .app-shell.sidebar-collapsed .nav-item { grid-template-columns: 1fr; justify-items: center; padding-inline: 0; }
  .app-shell.sidebar-collapsed .prototype-status, .app-shell.sidebar-collapsed .sidebar-profile { justify-content: center; padding-inline: 0; }
}
@media (max-width: 1024px) { :root { --topbar-height: 48px; } .topbar { padding-inline: 12px; } }
@media (max-width: 920px) {
  .app-shell { display: block; }
  .sidebar { width: min(300px, 88vw); transform: translateX(-105%); transition: transform var(--lococo-motion-panel) ease; padding-bottom: calc(72px + env(safe-area-inset-bottom)); scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom)); box-shadow: 16px 0 40px #102b4e26; }
  .app-shell.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 35; visibility: hidden; opacity: 0; background: #102b4e66; transition: opacity var(--lococo-motion-panel), visibility var(--lococo-motion-panel); }
  .app-shell.sidebar-open .sidebar-scrim { visibility: visible; opacity: 1; }
  .desktop-sidebar-toggle { display: none; }
  .sidebar-close { margin-left: auto; }
  #sidebar .nav-item { min-height: var(--lococo-touch-target); }
  .topbar #sidebarOpen, #sidebar .sidebar-close, .profile-menu > summary { width: 44px; height: 44px; flex-shrink: 0; padding: 0; }
  .profile-menu-panel button { min-height: 44px; }
  .mobile-bottom-nav { position: fixed; inset: auto 0 0; z-index: 70; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; min-height: calc(60px + env(safe-area-inset-bottom)); padding: 4px 6px max(4px, env(safe-area-inset-bottom)); border-top: 1px solid var(--lococo-line); background: var(--lococo-surface); box-shadow: 0 -2px 10px #102b4e08; }
  .mobile-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 50px; gap: 4px; padding: 4px 2px; border: 0; border-radius: var(--lococo-radius-control); background: transparent; color: var(--lococo-muted); font-size: 10px; font-weight: 600; }
  .mobile-nav-item.active, .mobile-nav-item[data-open-mobile-menu][aria-expanded="true"] { color: var(--lococo-ink); background: var(--lococo-selected); }
  .mobile-nav-icon, .mobile-nav-search-icon { display: grid; place-items: center; width: 22px; height: 22px; }
  .mobile-nav-icon svg, .mobile-nav-search-icon svg { width: 20px; height: 20px; }
  .topbar .cloud-chip { display: none; }
}
@media (max-width: 700px) {
  :root { --topbar-height: 54px; }
  .topbar { gap: 7px; padding-inline: 10px; }
  .topbar-context h1 { font-size: 16px; overflow-wrap: anywhere; }
  .topbar #soundToggle, .topbar .primary-button { display: none; }
  .topbar .env-mode-chip { min-height: 28px; height: 28px; padding-inline: 8px; font-size: 9px; }
}
.sync-review-modal { width: min(800px, 96vw); }
.sync-review-panel { display: grid; gap: 14px; color: var(--lococo-ink); font-size: 13px; }
.sync-review-intro { margin: 0; color: var(--lococo-muted); line-height: 1.5; }
.sync-review-state { display: grid; gap: 7px; padding: 15px; border: 1px solid #d5e2f0; border-radius: 12px; background: #f4f8fd; line-height: 1.5; }
.sync-review-state.unverified { border-color: #e4ceac; background: #fff8ed; }
.sync-review-state strong { font-size: 17px; }
.sync-review-state small, .sync-review-page-heading span { color: var(--lococo-muted); }
.sync-review-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.sync-review-totals span { display: grid; gap: 3px; padding: 11px; border: 1px solid var(--lococo-line); border-radius: 10px; background: #fff; }
.sync-review-totals strong { font-size: 19px; }
.sync-review-fields { padding: 12px; border: 1px solid var(--lococo-line); border-radius: 10px; background: #fff; line-height: 1.5; }
.sync-review-fields p { margin: 7px 0; }
.sync-review-fields small { color: var(--lococo-muted); }
.sync-review-fields summary { cursor: pointer; font-weight: 600; }
.sync-review-batch { display: grid; gap: 10px; padding: 13px; border: 1px solid #bfd5ea; border-radius: 10px; background: #f6faff; line-height: 1.5; }
.sync-review-batch > div:first-child p { margin: 4px 0 0; color: var(--lococo-muted); }
.sync-review-batch > button { justify-self: start; min-height: 40px; }
.sync-review-batch-result-slot { display: grid; gap: 10px; }
.sync-review-batch-result { display: grid; gap: 10px; }
.sync-review-batch-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.sync-review-batch-totals span { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--lococo-line); border-radius: 8px; background: #fff; }
.sync-review-batch-totals strong { font-size: 18px; }
.sync-review-batch-evidence, .sync-review-batch-result > small { margin: 0; color: var(--lococo-muted); }
.sync-review-batch-result details { padding: 9px 10px; border: 1px solid var(--lococo-line); border-radius: 8px; background: #fff; overflow-wrap: anywhere; }
.sync-review-batch-result summary { cursor: pointer; font-weight: 700; }
.sync-review-batch-result details p { margin: 8px 0 0; }
.sync-review-batch-result ol { max-height: 280px; margin: 8px 0 0; padding-left: 23px; overflow: auto; }
.sync-review-batch-result li { margin-bottom: 7px; }
.sync-review-batch-result li small { display: block; color: var(--lococo-muted); }
.sync-review-count { display: grid; gap: 9px; padding: 13px; border: 1px solid #c8d8e8; border-radius: 10px; background: #f7fafd; line-height: 1.5; }
.sync-review-count > div:first-child p { margin: 4px 0 0; color: var(--lococo-muted); }
.sync-review-count label { font-weight: 700; }
.sync-review-count select { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--lococo-line); border-radius: 8px; background: #fff; color: var(--lococo-ink); font: inherit; }
.sync-review-count > button { justify-self: start; min-height: 40px; }
.sync-review-count-result-slot, .sync-review-count-result { display: grid; gap: 9px; }
.sync-review-count-events { display: grid; gap: 7px; max-height: 380px; overflow: auto; }
.sync-review-count-row { padding: 10px; border: 1px solid var(--lococo-line); border-radius: 8px; background: #fff; overflow-wrap: anywhere; }
.sync-review-count-row.conflict { border-color: #dfb5ab; background: #fff8f5; }
.sync-review-count-row header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
.sync-review-count-row header span { color: var(--lococo-muted); font-size: 12px; font-weight: 700; }
.sync-review-count-row > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 8px; }
.sync-review-count-row > div span { display: grid; align-content: start; gap: 3px; padding: 8px; border-radius: 7px; background: #f6f9fd; }
.sync-review-count-row details { margin-top: 8px; }
.sync-review-count-row summary { cursor: pointer; font-weight: 600; }
.sync-review-count-row pre { max-height: 260px; margin: 7px 0 0; padding: 9px; overflow: auto; background: #f7f9fc; font-size: 11px; white-space: pre-wrap; }
.sync-review-caution { margin: 0; padding: 10px 12px; border-left: 3px solid #bc772c; background: #fff8ed; line-height: 1.5; }
.sync-review-search { display: grid; gap: 6px; }
.sync-review-search label { font-weight: 700; }
.sync-review-search select { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid var(--lococo-line); border-radius: 8px; background: #fff; color: var(--lococo-ink); font: inherit; }
.sync-review-search small { color: var(--lococo-muted); }
.sync-review-search > div { display: flex; gap: 8px; }
.sync-review-search input { flex: 1; min-width: 0; min-height: 40px; padding: 0 11px; border: 1px solid var(--lococo-line); border-radius: 8px; font: inherit; }
.sync-review-page-heading { display: grid; gap: 4px; padding-top: 7px; border-top: 1px solid var(--lococo-line); }
.sync-review-page-heading span { font-size: 11px; }
.sync-review-records { display: grid; gap: 8px; }
.sync-review-record { padding: 11px; border: 1px solid var(--lococo-line); border-radius: 10px; background: #fff; }
.sync-review-record > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.sync-review-record > summary span { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.sync-review-record small { color: var(--lococo-muted); overflow-wrap: anywhere; }
.sync-review-classification { flex: none; max-width: 44%; color: #805214; font-size: 11px; font-style: normal; font-weight: 700; text-align: right; }
.sync-review-classification.already_confirmed { color: #277050; }
.sync-review-classification.conflict { color: #a24d32; }
.sync-review-record p { line-height: 1.5; }
.sync-review-scope { display: grid; gap: 5px; padding: 10px 12px; border-radius: 8px; background: #f4f8fd; line-height: 1.45; }
.sync-review-scope p { margin: 0; }
.sync-review-scope small { display: block; }
.sync-review-scope .sync-review-conflicts { color: #a24d32; font-weight: 700; }
.sync-review-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 10px 0; }
.sync-review-compare > div { display: grid; gap: 5px; min-width: 0; padding: 10px; border: 1px solid var(--lococo-line); border-radius: 8px; overflow-wrap: anywhere; }
.sync-review-original { grid-column: 1/-1; background: #f8fafc; }
.sync-review-prepare { width: 100%; min-height: 40px; margin-top: 10px; }
.sync-review-action-confirm { display: grid; gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid #b8cfeb; border-radius: 9px; background: #f4f8fd; }
.sync-review-action-confirm p { margin: 0; }
.sync-review-confirm-prices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.sync-review-confirm-prices span { display: grid; gap: 5px; padding: 9px; border: 1px solid var(--lococo-line); border-radius: 7px; background: #fff; overflow-wrap: anywhere; }
.sync-review-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.sync-review-action-notice { display: grid; gap: 5px; padding: 11px; border-left: 3px solid #416ca2; background: #edf4fd; line-height: 1.5; }
.sync-review-action-notice.success { border-color: #277050; background: #edf8f1; }
.sync-review-action-notice.warning { border-color: #bc772c; background: #fff8ed; }
.sync-review-action-notice.danger { border-color: #a24d32; background: #fff1ec; }
.sync-review-field-details { margin: 10px 0; padding: 10px; border: 1px solid var(--lococo-line); border-radius: 8px; }
.sync-review-field-details > summary { cursor: pointer; font-weight: 700; }
.sync-review-field-rows { display: grid; gap: 10px; padding-top: 10px; }
.sync-review-field-row { display: grid; gap: 6px; }
.sync-review-field-row > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.sync-review-field-row span { display: grid; align-content: start; gap: 4px; padding: 8px; border-radius: 7px; background: #f8fafc; overflow-wrap: anywhere; white-space: pre-wrap; }
.sync-review-field-row span small { font-weight: 400; }
.sync-review-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sync-review-empty, .sync-review-loading { padding: 16px; border-radius: 9px; background: var(--lococo-soft); line-height: 1.5; }
.held-batch-workflow { display: grid; gap: 12px; padding: 14px; border: 1px solid #b8cfeb; border-radius: 12px; background: #f8fbff; }
.held-batch-workflow > header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.held-batch-workflow > header strong { font-size: 16px; color: #173d67; }
.held-batch-workflow > header p { margin: 4px 0 0; color: var(--lococo-muted); line-height: 1.45; }
.held-batch-source { flex: none; padding: 5px 8px; border-radius: 6px; background: #e8f2fc; color: #25577f; font-size: 11px; font-weight: 700; }
.held-batch-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.held-batch-card { display: grid; align-content: start; gap: 9px; min-width: 0; padding: 13px; border: 1px solid var(--lococo-line); border-radius: 9px; background: #fff; }
.held-batch-eyebrow { color: #346b9f; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.held-batch-card h3, .held-batch-card p { margin: 0; }
.held-batch-card h3 { font-size: 15px; }
.held-batch-card p, .held-batch-caution { line-height: 1.5; }
.held-batch-card details { min-width: 0; padding-top: 7px; border-top: 1px solid var(--lococo-line); }
.held-batch-card summary { cursor: pointer; font-size: 12px; font-weight: 700; }
.held-batch-card ul, .held-batch-card ol { display: grid; gap: 6px; max-height: 190px; margin: 8px 0; padding-left: 22px; overflow: auto; overflow-wrap: anywhere; }
.held-batch-card li small { display: block; color: var(--lococo-muted); }
.held-batch-card > button { justify-self: start; min-height: 40px; }
.held-batch-muted { color: var(--lococo-muted); }
.held-batch-warning { margin: 0; padding: 10px; border-left: 3px solid #bc772c; background: #fff8ed; }
.held-batch-confirm { display: grid; gap: 9px; padding: 11px; border: 1px solid #a9c6e3; border-radius: 8px; background: #eef6fd; }
.held-batch-confirm > div { display: flex; flex-wrap: wrap; gap: 8px; }
.held-batch-confirm button { min-height: 40px; }
.held-batch-notice { display: grid; gap: 4px; padding: 10px; border-left: 3px solid #416ca2; background: #edf4fd; line-height: 1.45; }
.held-batch-notice.success { border-color: #277050; background: #edf8f1; }
.held-batch-notice.warning { border-color: #bc772c; background: #fff8ed; }
.held-batch-notice.danger { border-color: #a24d32; background: #fff1ec; }
.held-batch-caution { margin: 0; color: #74522b; font-size: 12px; }
@media (max-width: 640px) {
  .held-batch-columns { grid-template-columns: 1fr; }
  .held-batch-card > button, .held-batch-confirm button { width: 100%; }
  .sync-review-modal { width: 100%; }
  .sync-review-totals { grid-template-columns: 1fr 1fr; }
  .sync-review-batch-totals { grid-template-columns: 1fr 1fr; }
  .sync-review-batch > button { justify-self: stretch; }
  .sync-review-count > button { justify-self: stretch; }
  .sync-review-count-row > div { grid-template-columns: 1fr; }
  .sync-review-totals span:last-child { grid-column: 1/-1; }
  .sync-review-compare { grid-template-columns: 1fr; }
  .sync-review-confirm-prices { grid-template-columns: 1fr; }
  .sync-review-confirm-actions > button { flex: 1 1 100%; }
  .sync-review-field-row > div { grid-template-columns: 1fr; }
  .sync-review-record > summary { align-items: flex-start; flex-direction: column; }
  .sync-review-classification { max-width: 100%; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .sidebar-scrim, .nav-item { transition: none; }
}

/* Windows / low-density monitors: 8-10px microtext is unreadable at 1x. Raise the floor to 11px
   for the persistent chrome and table captions; Retina screens keep the original sizes. */
@media (min-width: 761px) and (max-resolution: 1.99dppx) {
  .app-shell .brand-subtitle, .app-shell .nav-group-label, .app-shell .nav-badge,
  .app-shell .topbar .env-mode-chip, .app-shell .topbar .cloud-chip, .app-shell .topbar small,
  .app-shell #profileRole, .app-shell #storageStatusDetail, .app-shell #cloudStatusText,
  .app-shell .table-secondary, .app-shell .product-table th, .app-shell table th { font-size: 11px; }
}
