/* Screenshot-led refinement. Original controls, handlers and record values remain. */
@media screen {
 .invoice-filter-picker {display:none}
 html[data-finish=gunmetal] body {
  --home-surface:#111820;--home-text:#f3f6fa;--home-muted:#bdc9d5;
  --home-line:#667788;--home-next:#1b242d;
  background-color:#111820!important;
  background-image:url('/gunmetal-grain.webp')!important;
  background-size:512px 512px;
 }
 html[data-finish=gunmetal] body :is(.top,#workspaceView,.docket-bottom-nav,#importantMenuPanel) {
  background-color:#111820!important;
  background-image:url('/gunmetal-grain.webp')!important;
  background-size:512px 512px;
  color:#f3f6fa!important;
 }
 html[data-finish=gunmetal] body #workspaceView {--work-surface:#111820;--work-bg:#111820}
 html[data-finish=gunmetal] body #workspaceView[data-working-day=true] .btn.primary {
  background:var(--color-action)!important;color:var(--color-on-action,#fff)!important;
 }
 html[data-finish=gunmetal] body .docket-bottom-nav button[aria-current=page] {
  border-color:var(--color-action)!important;color:var(--color-action)!important;
 }
 html[data-finish=gunmetal] body #workspaceView .invoice-list-filters>.btn[aria-pressed=true] {
  background:var(--color-action)!important;color:var(--color-on-action,#fff)!important;
 }
}

@media screen and (max-width:760px) {
 html body .top:has(.docket-identity):has(.workspace-status-button) {
  display:grid!important;grid-template-columns:minmax(0,1fr) auto 48px!important;
  align-items:center;gap:8px!important;padding:8px 16px!important;
 }
 html body .top:has(.docket-identity) .docket-identity {grid-area:1/1!important;min-width:0}
 html body .top:has(.docket-identity) #accountControl {grid-area:1/3!important;justify-self:end}
 html body .top:has(.docket-identity) .workspace-status-button {
  grid-area:1/2!important;min-height:48px;min-width:48px;margin:0!important;
 }
 html body .top .workspace-status-button[data-state=online]>span {display:none}
 html body .top .docket-product {font-size:1.125rem!important}
 html body .top .brand {font-size:.875rem!important;line-height:1.3!important}
 html body .top .docket-logo {width:32px;height:32px;flex-basis:32px}
 html body .workspace-main>.docket-page-back {
  min-height:44px!important;margin:0 0 12px!important;padding:8px 12px!important;
 }
 html body #workspaceView .mobile-page-heading {margin-bottom:12px!important}
 html body #workspaceView .mobile-page-heading h1 {font-size:1.75rem!important;margin-bottom:4px!important}
 html body #workspaceView .mobile-page-heading>.hint {margin:0!important}
 html body #workspaceView .invoice-list-search {margin:14px 0 12px!important;gap:6px}
 html body #workspaceView .mobile-search {min-height:48px!important;padding:10px 12px!important}
 html body #workspaceView .invoice-list-filters {
  display:block!important;margin:0 0 12px!important;padding:0!important;
 }
 html body #workspaceView .invoice-list-filters>button {display:none!important}
 html body #workspaceView .invoice-list-filters>.invoice-filter-picker {
  display:flex;align-items:center;gap:12px;font-weight:650;
 }
 html body #workspaceView .invoice-filter-picker>select {
  flex:1;min-width:0;min-height:48px;font-size:1rem;padding:10px 12px;
 }
 html body #workspaceView .mobile-result-card:is(.job-summary-card,.invoice-list-card) {
  padding:14px 0!important;
 }
 html body #workspaceView .mobile-result-card:is(.job-summary-card,.invoice-list-card)>:is(h2,h3) {
  font-size:1.125rem!important;line-height:1.35!important;margin:0 0 6px!important;
 }
 html body #workspaceView .mobile-result-card p {margin:4px 0!important;line-height:1.4!important}
 html body #workspaceView .mobile-result-card .hint {font-size:.875rem!important}
 html body #workspaceView .job-summary-top {gap:6px;margin-bottom:6px}
 html body #workspaceView .job-summary-status {font-size:.875rem;padding:3px 7px}
 html body #workspaceView .job-summary-actions {gap:8px;margin-top:10px}
 html body #workspaceView .job-summary-actions .btn,
 html body #workspaceView .job-summary-actions .job-summary-open {
  flex:0 1 auto;min-height:48px!important;width:auto!important;
  padding:10px 14px!important;margin:0!important;font-size:.9375rem!important;
 }
 html body #workspaceView .invoice-list-card {
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;
 }
 html body #workspaceView .invoice-list-card>h2 {grid-column:1/-1;grid-row:1}
 html body #workspaceView .invoice-list-card>p:first-of-type {grid-column:1/-1;grid-row:2}
 html body #workspaceView .invoice-list-card>.invoice-list-summary {
  grid-column:1;grid-row:3;justify-content:flex-start;gap:8px;
 }
 html body #workspaceView .invoice-list-card>.invoice-list-summary strong {font-size:1.0625rem!important}
 html body #workspaceView .invoice-list-card>p:last-of-type:not(:first-of-type) {grid-column:1;grid-row:4}
 html body #workspaceView .invoice-list-card>.btn {
  grid-column:2;grid-row:3/5;align-self:center;min-height:48px!important;
  width:auto!important;max-width:100%;padding:10px 14px!important;
 }
 html body #workspaceView .invoice-list-card .record-badge {font-size:.875rem!important}
 html body #workspaceView .business-tool-group>summary {
  min-height:48px!important;padding:10px 0!important;font-size:1.0625rem!important;
 }
 html body #workspaceView .business-group-actions>.btn {
  min-height:48px!important;padding:10px 0!important;
 }
 html body #importantMenuPanel {max-height:65dvh;overflow:auto;overscroll-behavior:contain}
 html body #importantMenuPanel>.btn {min-height:48px!important;padding:10px 14px!important}
 html body .docket-bottom-nav {padding-block:6px max(6px,env(safe-area-inset-bottom))!important}
 html body .docket-bottom-nav button {min-height:48px!important;font-size:.875rem!important;gap:3px}
 html body .docket-bottom-nav :is(.app-style-vector,.app-style-emoji) {width:22px;height:22px;font-size:20px}
 html body .home-menu-toolbar {margin-bottom:12px!important}
}
@media screen and (max-width:360px) {
 html body .top:has(.docket-identity):has(.workspace-status-button) {padding-inline:12px!important;gap:4px!important}
 html body #workspaceView .invoice-list-card {display:block}
 html body #workspaceView .invoice-list-card>.btn {margin-top:8px;width:auto!important}
}
