/* =============================================================================
   GarageKhata design system · Navy + Teal  (replaces "Workshop Teal")
   Tokens: docs/design/02_brand_tokens.json · Plan: docs/18_UIUX_REDESIGN_PLAN.md
   DO NOT EDIT app.css BY HAND. Edit webapp/resources/css/src/*.css and run
   `bash docs/scripts/build-css.sh`.
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: light;

  /* brand ramps */
  --gk-navy-900: #0B2542;
  --gk-navy-800: #0F2D4F;
  --gk-navy-700: #12345A;
  --gk-navy-600: #1B4A7C;
  --gk-navy-100: #DCE6F2;
  --gk-navy-50:  #EEF3F9;
  --gk-teal-700: #0B7A67;
  --gk-teal-600: #0F9D84;
  --gk-teal-500: #16B89A;
  --gk-teal-300: #7DE3CC;
  --gk-teal-100: #E6F7F3;
  --gk-teal-50:  #F2FBF9;

  /* semantic (light) */
  --gk-bg:        #F8FAFC;
  --gk-surface:   #FFFFFF;
  --gk-surface-tint: #F2FBF9; --gk-sunken: var(--gk-navy-50); --gk-warning-text: #8A5A00;
  --gk-text:      #1F2937;
  --gk-muted:     #64748B;
  --gk-border:    #E2E8F0;
  --gk-border-strong: #CBD5E1;

  --gk-primary:         #12345A;
  --gk-primary-pressed: #0B2542;
  --gk-on-primary:      #FFFFFF;
  --gk-secondary:       #E6F7F3;
  --gk-accent:          #16B89A;
  --gk-accent-text:     #0B7A67;
  --gk-on-accent:       #12345A;
  --gk-mint:            #E6F7F3;

  --gk-success: #15803D;  --gk-success-bg: #DCFCE7;
  --gk-warning: #B45309;  --gk-warning-bg: #FEF3C7;  --gk-warning-fill: #F59E0B;
  --gk-danger:  #DC2626;  --gk-danger-bg:  #FEE2E2;  --gk-danger-surface: #FEE2E2;
  --gk-info:    #1D4ED8;  --gk-info-bg:    #DBEAFE;

  /* hero + chrome */
  --gk-hero-from: #0B2542;
  --gk-hero-to:   #12345A;
  --gk-sidebar-bg: #0B2542;
  --gk-sidebar-text: #C5D3E4;
  --gk-sidebar-muted: #8CA3BF;
  --gk-footer-bg: #0B2542;

  /* job status (fg on tinted bg, AA) */
  --job-new-fg: #1D4ED8;        --job-new-bg: #DBEAFE;
  --job-inspection-fg: #92400E; --job-inspection-bg: #FEF3C7;
  --job-awaiting-fg: #6D28D9;   --job-awaiting-bg: #EDE9FE;
  --job-approved-fg: #0B7A67;   --job-approved-bg: #E6F7F3;
  --job-progress-fg: #0E5A8A;   --job-progress-bg: #E0F2FE;
  --job-ready-fg: #15803D;      --job-ready-bg: #DCFCE7;
  --job-delivered-fg: #475569;  --job-delivered-bg: #E2E8F0;
  --job-cancelled-fg: #B91C1C;  --job-cancelled-bg: #FEE2E2;

  /* type */
  --gk-font: 'Montserrat', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gk-font-ne: 'Noto Sans Devanagari', 'Montserrat', system-ui, sans-serif;
  --gk-text-display: 48px;  --gk-lh-display: 56px;  --gk-weight-display: 700;
  --gk-text-h1: 28px;       --gk-lh-h1: 36px;       --gk-weight-h1: 700;
  --gk-text-h2: 22px;       --gk-lh-h2: 30px;       --gk-weight-h2: 700;
  --gk-text-h3: 18px;       --gk-lh-h3: 26px;       --gk-weight-h3: 600;
  --gk-text-body: 16px;     --gk-lh-body: 26px;     --gk-weight-body: 400;
  --gk-text-body-strong: 16px; --gk-lh-body-strong: 26px; --gk-weight-body-strong: 600;
  --gk-text-label: 14px;    --gk-lh-label: 20px;    --gk-weight-label: 600;
  --gk-text-nepali: 14px;   --gk-lh-nepali: 22px;   --gk-weight-nepali: 400;
  --gk-text-caption: 12px;  --gk-lh-caption: 18px;  --gk-weight-caption: 500;
  --gk-text-button: 15px;   --gk-lh-button: 22px;   --gk-weight-button: 600;

  /* space (4pt) */
  --gk-space-1: 4px;  --gk-space-2: 8px;  --gk-space-3: 12px; --gk-space-4: 16px;
  --gk-space-5: 20px; --gk-space-6: 24px; --gk-space-7: 28px; --gk-space-8: 32px;
  --gk-space-9: 40px; --gk-space-10: 48px; --gk-space-12: 64px; --gk-space-16: 96px;

  /* shape + depth */
  --gk-radius-sm: 8px; --gk-radius-md: 12px; --gk-radius-lg: 16px; --gk-radius-xl: 24px; --gk-radius-pill: 999px;
  --gk-elevation-flat: none;
  --gk-elevation-card:   0 1px 2px rgba(18,52,90,.06), 0 4px 12px rgba(18,52,90,.05);
  --gk-elevation-raised: 0 10px 30px rgba(18,52,90,.14);
  --gk-elevation-sheet:  0 -10px 36px rgba(18,52,90,.20);
  --gk-shadow-md: 0 8px 24px rgba(18,52,90,.12);
  --gk-focus: 0 0 0 3px rgba(22,184,154,.38);

  /* motion */
  --gk-motion-fast: 120ms; --gk-motion-standard: 200ms; --gk-motion-sheet: 280ms;
  --gk-motion-easing: cubic-bezier(.4,0,.2,1);

  /* layout */
  --gk-touch-min: 48px; --gk-container: 1200px;
  --gk-gutter-mobile: 16px; --gk-gutter-web: 24px;
  --gk-sidebar-width: 264px; --gk-iconrail-width: 76px;
  --gk-topbar-height: 68px; --gk-topbar-tablet: 60px;
}

/* ------------------------------------------------------------------ dark */
:root[data-theme="dark"], .dark {
  color-scheme: dark;
  --gk-bg: #0B1B2E; --gk-surface: #12263D; --gk-surface-tint: #0F2F3A; --gk-sunken: #16304D; --gk-warning-text: #FBBF24;
  --gk-text: #E6EEF7; --gk-muted: #9FB0C3; --gk-border: #26405C; --gk-border-strong: #35547A;
  --gk-primary: #16B89A; --gk-primary-pressed: #2CCBAC; --gk-on-primary: #0B2542;
  --gk-secondary: #0F2F3A; --gk-accent: #16B89A; --gk-accent-text: #7DE3CC; --gk-on-accent: #0B2542; --gk-mint: #0F2F3A;
  --gk-success: #4ADE80; --gk-success-bg: #12372A;
  --gk-warning: #FBBF24; --gk-warning-bg: #3B2E0E;
  --gk-danger: #F87171;  --gk-danger-bg: #3F1A1D; --gk-danger-surface: #3F1A1D;
  --gk-info: #93C5FD;    --gk-info-bg: #14284A;
  --gk-hero-from: #071426; --gk-hero-to: #0F2D4F; --gk-sidebar-bg: #071426; --gk-footer-bg: #071426;
  --job-new-fg: #93C5FD; --job-new-bg: #14284A; --job-inspection-fg: #FBBF24; --job-inspection-bg: #3B2E0E;
  --job-awaiting-fg: #C4B5FD; --job-awaiting-bg: #2A2150; --job-approved-fg: #7DE3CC; --job-approved-bg: #0F2F3A;
  --job-progress-fg: #7DD3FC; --job-progress-bg: #0C2D48; --job-ready-fg: #4ADE80; --job-ready-bg: #12372A;
  --job-delivered-fg: #CBD5E1; --job-delivered-bg: #26405C; --job-cancelled-fg: #FCA5A5; --job-cancelled-bg: #3F1A1D;
  --gk-elevation-card: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.28);
  --gk-elevation-raised: 0 10px 30px rgba(0,0,0,.5);
  --gk-shadow-md: 0 8px 24px rgba(0,0,0,.45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --gk-bg: #0B1B2E; --gk-surface: #12263D; --gk-surface-tint: #0F2F3A; --gk-sunken: #16304D; --gk-warning-text: #FBBF24;
    --gk-text: #E6EEF7; --gk-muted: #9FB0C3; --gk-border: #26405C; --gk-border-strong: #35547A;
    --gk-primary: #16B89A; --gk-primary-pressed: #2CCBAC; --gk-on-primary: #0B2542;
    --gk-secondary: #0F2F3A; --gk-accent: #16B89A; --gk-accent-text: #7DE3CC; --gk-on-accent: #0B2542; --gk-mint: #0F2F3A;
    --gk-success: #4ADE80; --gk-success-bg: #12372A;
    --gk-warning: #FBBF24; --gk-warning-bg: #3B2E0E;
    --gk-danger: #F87171;  --gk-danger-bg: #3F1A1D; --gk-danger-surface: #3F1A1D;
    --gk-info: #93C5FD;    --gk-info-bg: #14284A;
    --gk-hero-from: #071426; --gk-hero-to: #0F2D4F; --gk-sidebar-bg: #071426; --gk-footer-bg: #071426;
    --job-new-fg: #93C5FD; --job-new-bg: #14284A; --job-inspection-fg: #FBBF24; --job-inspection-bg: #3B2E0E;
    --job-awaiting-fg: #C4B5FD; --job-awaiting-bg: #2A2150; --job-approved-fg: #7DE3CC; --job-approved-bg: #0F2F3A;
    --job-progress-fg: #7DD3FC; --job-progress-bg: #0C2D48; --job-ready-fg: #4ADE80; --job-ready-bg: #12372A;
    --job-delivered-fg: #CBD5E1; --job-delivered-bg: #26405C; --job-cancelled-fg: #FCA5A5; --job-cancelled-bg: #3F1A1D;
    --gk-elevation-card: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.28);
    --gk-elevation-raised: 0 10px 30px rgba(0,0,0,.5);
    --gk-shadow-md: 0 8px 24px rgba(0,0,0,.45);
  }
}

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

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[x-cloak] { display: none !important; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--gk-font);
  font-size: var(--gk-text-body); line-height: var(--gk-lh-body); font-weight: var(--gk-weight-body);
  color: var(--gk-text); background: var(--gk-bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
:lang(ne), .gk-ne, [lang="ne"] { font-family: var(--gk-font-ne); }
img, svg, video { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: var(--gk-accent-text); text-decoration: none; transition: color var(--gk-motion-fast) var(--gk-motion-easing); }
a:hover { color: var(--gk-primary); }
:root[data-theme="dark"] a:hover, .dark a:hover { color: var(--gk-teal-300); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--gk-primary); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2, :root[data-theme="dark"] h3, .dark h1, .dark h2, .dark h3 { color: var(--gk-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) h1, :root:not([data-theme="light"]) h2, :root:not([data-theme="light"]) h3 { color: var(--gk-text); } }
:focus-visible { outline: none; box-shadow: var(--gk-focus); border-radius: var(--gk-radius-sm); }
::selection { background: var(--gk-teal-300); color: var(--gk-navy-900); }
.gk-sr-only, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ----------------------------------------------------------- typography */
.gk-text-display { font-size: var(--gk-text-display); line-height: var(--gk-lh-display); font-weight: 700; }
.gk-text-h1, .gk-text-title-1 { font-size: var(--gk-text-h1); line-height: var(--gk-lh-h1); font-weight: 700; color: var(--gk-primary); }
.gk-text-h2 { font-size: var(--gk-text-h2); line-height: var(--gk-lh-h2); font-weight: 700; }
.gk-text-h3 { font-size: var(--gk-text-h3); line-height: var(--gk-lh-h3); font-weight: 600; }
.gk-text-body { font-size: var(--gk-text-body); line-height: var(--gk-lh-body); }
.gk-text-body-strong { font-size: var(--gk-text-body-strong); line-height: var(--gk-lh-body-strong); font-weight: 600; }
.gk-text-label { font-size: var(--gk-text-label); line-height: var(--gk-lh-label); font-weight: 600; }
.gk-text-nepali { font-size: var(--gk-text-nepali); line-height: var(--gk-lh-nepali); font-family: var(--gk-font-ne); color: var(--gk-muted); }
.gk-text-caption { font-size: var(--gk-text-caption); line-height: var(--gk-lh-caption); font-weight: 500; color: var(--gk-muted); }
.gk-text-button { font-size: var(--gk-text-button); font-weight: 600; }
.gk-text-2xl { font-size: 28px; line-height: 36px; }
.gk-text-sm { font-size: 13px; line-height: 20px; color: var(--gk-muted); }
.gk-text-right { text-align: right; }
.gk-font-bold { font-weight: 700; }
.gk-text-muted, .gk-muted { color: var(--gk-muted); }
.gk-tabular { font-variant-numeric: tabular-nums; }
.gk-color-muted { color: var(--gk-muted); } .gk-color-text { color: var(--gk-text); }
.gk-color-primary { color: var(--gk-accent-text); } .gk-color-success { color: var(--gk-success); }
.gk-color-warning { color: var(--gk-warning); } .gk-color-danger { color: var(--gk-danger); } .gk-color-info { color: var(--gk-info); }
.gk-text { color: var(--gk-text); }
.gk-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gk-accent-text); }
.gk-link:hover { color: var(--gk-primary); text-decoration: underline; text-underline-offset: 3px; }
.gk-required-star { color: var(--gk-danger); margin-left: 2px; }

/* bilingual */
.gk-bilingual-inline { display: inline; }
.gk-bilingual-inline .gk-ne { color: inherit; opacity: .78; font-weight: 500; }
.gk-sep { color: var(--gk-muted); margin-inline: 2px; opacity: .8; }
.gk-bilingual-stacked { display: inline-flex; flex-direction: column; gap: 2px; }
.gk-bilingual-stacked .gk-en { font-weight: inherit; color: inherit; }
.gk-bilingual-stacked .gk-ne { font-size: .62em; line-height: 1.5; font-weight: 500; color: var(--gk-muted); letter-spacing: 0; }

/* ------------------------------------------------------------- utilities */
.gk-flex { display: flex; } .gk-flex-col { display: flex; flex-direction: column; }
.gk-flex-between { display: flex; justify-content: space-between; } .gk-flex-center { display: flex; align-items: center; justify-content: center; }
.gk-items-center { align-items: center; } .gk-grid { display: grid; }
.gk-gap-1 { gap: 4px; } .gk-gap-2 { gap: 8px; } .gk-gap-3 { gap: 12px; } .gk-gap-4 { gap: 16px; } .gk-gap-6 { gap: 24px; }
.gk-w-full { width: 100%; } .gk-h-full { height: 100%; } .gk-mx-auto { margin-inline: auto; } .gk-max-w-2xl { max-width: 672px; }
.gk-m-4 { margin: 16px; } .gk-mb-1 { margin-bottom: 4px; } .gk-mb-2 { margin-bottom: 8px; } .gk-mb-4 { margin-bottom: 16px; } .gk-mb-6 { margin-bottom: 24px; }
.gk-mt-4 { margin-top: 16px; } .gk-mt-6 { margin-top: 24px; }
.gk-p-1 { padding: 4px; } .gk-p-2 { padding: 8px; } .gk-p-3 { padding: 12px; } .gk-p-4 { padding: 16px; } .gk-p-5 { padding: 20px; } .gk-p-6 { padding: 24px; } .gk-p-8 { padding: 32px; }
.gk-px-4 { padding-inline: 16px; } .gk-px-6 { padding-inline: 24px; } .gk-py-3 { padding-block: 12px; } .gk-py-4 { padding-block: 16px; } .gk-py-8 { padding-block: 32px; }
.gk-min-touch { min-height: var(--gk-touch-min); min-width: var(--gk-touch-min); }
.gk-surface { background: var(--gk-surface); } .gk-border { border: 1px solid var(--gk-border); }
.gk-radius-sm { border-radius: var(--gk-radius-sm); } .gk-radius-md { border-radius: var(--gk-radius-md); } .gk-radius-lg { border-radius: var(--gk-radius-lg); }
.gk-radius-xl { border-radius: var(--gk-radius-xl); } .gk-radius-pill { border-radius: var(--gk-radius-pill); }
.gk-shadow-md { box-shadow: var(--gk-shadow-md); }
.gk-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.gk-divider { height: 1px; background: var(--gk-border); margin-block: 16px; border: 0; }
.gk-divider-text { display: flex; align-items: center; gap: 12px; color: var(--gk-muted); font-size: 13px; font-weight: 500; }
.gk-divider-text::before, .gk-divider-text::after { content: ''; height: 1px; background: var(--gk-border); flex: 1; }
@media (max-width: 767px) { .gk-hide-mobile { display: none !important; } }
/* ============================================================ components */

/* -------------------------------------------------------------- buttons */
.gk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  min-height: var(--gk-touch-min); padding: 10px 22px; border-radius: var(--gk-radius-md);
  border: 1.5px solid transparent; font-size: var(--gk-text-button); line-height: 1.3; font-weight: 600; text-align: center;
  letter-spacing: .005em; cursor: pointer; text-decoration: none; white-space: normal;
  transition: background-color var(--gk-motion-fast) var(--gk-motion-easing), color var(--gk-motion-fast) var(--gk-motion-easing),
              border-color var(--gk-motion-fast) var(--gk-motion-easing), box-shadow var(--gk-motion-fast) var(--gk-motion-easing), transform var(--gk-motion-fast) var(--gk-motion-easing);
}
.gk-btn:active { transform: translateY(1px); }
.gk-btn[disabled], .gk-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.gk-btn .gk-ne { font-size: .92em; font-weight: 500; opacity: .92; }
.gk-btn .gk-sep { opacity: .6; color: inherit; }
.gk-btn-primary { background: var(--gk-primary); color: var(--gk-on-primary); box-shadow: 0 1px 2px rgba(11,37,66,.2), 0 4px 10px rgba(18,52,90,.18); }
.gk-btn-primary:hover { background: var(--gk-primary-pressed); color: var(--gk-on-primary); box-shadow: 0 6px 16px rgba(18,52,90,.28); }
.gk-btn-accent { background: var(--gk-accent); color: var(--gk-on-accent); box-shadow: 0 4px 12px rgba(22,184,154,.32); }
.gk-btn-accent:hover { background: var(--gk-teal-600); color: var(--gk-on-accent); }
.gk-btn-secondary { background: var(--gk-mint); color: var(--gk-primary); border-color: transparent; }
:root[data-theme="dark"] .gk-btn-secondary, .dark .gk-btn-secondary { color: var(--gk-text); }
.gk-btn-secondary:hover { background: var(--gk-teal-100); border-color: var(--gk-accent); color: var(--gk-primary); }
.gk-btn-outline { background: var(--gk-surface); color: var(--gk-primary); border-color: var(--gk-border-strong); }
:root[data-theme="dark"] .gk-btn-outline, .dark .gk-btn-outline { color: var(--gk-text); }
.gk-btn-outline:hover { border-color: var(--gk-primary); background: var(--gk-mint); color: var(--gk-primary); }
.gk-btn-ghost, .gk-btn-quiet { background: transparent; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-btn-ghost, :root[data-theme="dark"] .gk-btn-quiet, .dark .gk-btn-quiet { color: var(--gk-text); }
.gk-btn-ghost:hover, .gk-btn-quiet:hover { background: var(--gk-mint); color: var(--gk-primary); }
.gk-btn-danger, .gk-btn-destructive { background: var(--gk-danger); color: #fff; }
.gk-btn-danger:hover, .gk-btn-destructive:hover { background: #B91C1C; color: #fff; }
.gk-btn-emergency { background: #DC2626; color: #fff; box-shadow: 0 6px 16px rgba(220,38,38,.28); }
.gk-btn-emergency:hover { background: #B91C1C; color: #fff; }
.gk-btn-sm { min-height: 40px; padding: 6px 16px; font-size: 14px; border-radius: 10px; }
.gk-btn-lg { min-height: 56px; padding: 14px 30px; font-size: 16px; border-radius: 14px; }
.gk-btn-block { display: flex; width: 100%; }
.gk-btn-label { display: inline; }
.gk-btn-loading { pointer-events: none; opacity: .85; }
.gk-spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gk-spin .7s linear infinite; display: inline-block; }
@keyframes gk-spin { to { transform: rotate(360deg); } }

/* toggle buttons (segmented) */
.gk-toggle-controls, .gk-date-toggle { display: inline-flex; padding: 4px; gap: 4px; background: var(--gk-mint); border-radius: var(--gk-radius-md); border: 1px solid var(--gk-border); }
.gk-btn-toggle, .gk-date-toggle-btn { min-height: 40px; padding: 6px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--gk-muted); background: transparent; border: 0; transition: all var(--gk-motion-fast) var(--gk-motion-easing); }
.gk-btn-toggle:hover, .gk-date-toggle-btn:hover { color: var(--gk-primary); }
.gk-btn-toggle.active, .gk-date-toggle-btn.active { background: var(--gk-surface); color: var(--gk-primary); box-shadow: 0 1px 3px rgba(18,52,90,.15); }
:root[data-theme="dark"] .gk-btn-toggle.active, :root[data-theme="dark"] .gk-date-toggle-btn.active { color: var(--gk-text); }
.gk-date-toggle { margin-bottom: 8px; }
.gk-date-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gk-date-preset-btn { min-height: 36px; padding: 4px 14px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-pill); font-size: 13px; font-weight: 600; background: var(--gk-surface); color: var(--gk-text); transition: all var(--gk-motion-fast) var(--gk-motion-easing); }
.gk-date-preset-btn:hover, .gk-date-preset-btn.active { background: var(--gk-mint); border-color: var(--gk-accent); color: var(--gk-accent-text); }

/* --------------------------------------------------------------- forms */
.gk-form { display: flex; flex-direction: column; gap: 18px; }
.gk-form-group, .gk-input-group, .gk-input-wrapper { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gk-label, .gk-label-en { display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--gk-text); }
.gk-label .gk-ne, .gk-label-ne { font-weight: 400; color: var(--gk-muted); font-size: 13px; }
.gk-input, .gk-textarea {
  width: 100%; min-height: var(--gk-touch-min); padding: 10px 16px; font-size: 16px; line-height: 1.4;
  background: var(--gk-surface); color: var(--gk-text); border: 1.5px solid var(--gk-border-strong); border-radius: var(--gk-radius-md);
  transition: border-color var(--gk-motion-fast), box-shadow var(--gk-motion-fast); appearance: none; -webkit-appearance: none;
}
.gk-input::placeholder, .gk-textarea::placeholder { color: #94A3B8; }
.gk-input:hover, .gk-textarea:hover { border-color: var(--gk-navy-600); }
.gk-input:focus, .gk-textarea:focus { outline: none; border-color: var(--gk-accent); box-shadow: var(--gk-focus); }
.gk-textarea, textarea.gk-input { min-height: 112px; resize: vertical; }
.gk-input-error, .gk-form-group-has-error .gk-input, .gk-form-group-has-error .gk-textarea { border-color: var(--gk-danger); }
.gk-form-group-has-error .gk-input:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.25); }
.gk-field-control-wrapper { display: block; width: 100%; }
.gk-field-hint { font-size: 12px; color: var(--gk-muted); margin-top: 4px; }
.gk-field-error { display: flex; align-items: flex-start; gap: 6px; color: var(--gk-danger); font-size: 13px; font-weight: 500; margin-top: 4px; }
.gk-field-error-icon { flex: none; margin-top: 2px; }
.gk-form-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.gk-checkbox-label { display: inline-flex; align-items: center; gap: 10px; min-height: var(--gk-touch-min); font-weight: 500; cursor: pointer; }
.gk-checkbox-label input[type="checkbox"], input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--gk-accent); flex: none; }
.gk-money-input-wrapper { display: flex; align-items: center; position: relative; }
.gk-money-prefix { position: absolute; left: 16px; font-weight: 700; color: var(--gk-muted); pointer-events: none; }
.gk-money-input { padding-left: 48px; font-variant-numeric: tabular-nums; font-weight: 600; }
.gk-choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.gk-choice-chip { position: relative; }
.gk-choice-chip:hover { border-color: var(--gk-accent) !important; }
.gk-choice-chip:has(input:checked) { background: var(--gk-mint) !important; border-color: var(--gk-accent) !important; color: var(--gk-primary); font-weight: 600; }
.gk-choice-check { color: var(--gk-accent-text); }

/* picker */
.gk-picker-wrapper { position: relative; width: 100%; }
.gk-picker-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer; }
.gk-picker-trigger > span:first-child { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gk-picker-popover { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); box-shadow: var(--gk-elevation-raised); max-height: 340px; display: flex; flex-direction: column; overflow: hidden; }
.gk-picker-popover [role="option"]:hover { background: var(--gk-mint) !important; }

/* ---------------------------------------------------------------- cards */
.gk-card { background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: var(--gk-radius-lg); box-shadow: var(--gk-elevation-card); padding: var(--gk-space-6); }
.gk-card-raised { background: var(--gk-surface); border-radius: var(--gk-radius-lg); box-shadow: var(--gk-elevation-raised); padding: var(--gk-space-6); border: 1px solid var(--gk-border); }
.gk-card-title { font-size: 18px; line-height: 26px; font-weight: 700; color: var(--gk-primary); margin-bottom: 8px; }
:root[data-theme="dark"] .gk-card-title { color: var(--gk-text); }
.gk-card-desc { color: var(--gk-muted); font-size: 15px; }
.gk-card-bg { background: var(--gk-mint); }
.gk-card-header { padding: 20px 24px 0; }
.gk-card-body { padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.gk-card-footer { padding: 16px 24px 20px; display: flex; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--gk-border); margin-top: auto; }
.gk-card-left, .gk-card-right { display: flex; flex-direction: column; gap: 6px; }
.gk-card-right { justify-content: center; }
.gk-info-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.gk-info-label { color: var(--gk-muted); font-weight: 600; min-width: 84px; font-size: 13px; }
.gk-info-val { color: var(--gk-text); font-weight: 500; }
.gk-info-badge { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--gk-mint); border-radius: var(--gk-radius-md); }
.gk-badge-label { font-size: 12px; color: var(--gk-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.gk-badge-val { font-weight: 700; color: var(--gk-primary); }

/* badges, tags, chips */
.gk-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: var(--gk-radius-pill); font-size: 12px; font-weight: 700; background: var(--gk-navy-50); color: var(--gk-primary); white-space: nowrap; }
.gk-badge-verified { background: var(--gk-mint); color: var(--gk-teal-700); border: 1px solid rgba(22,184,154,.35); }
.gk-badge-success { background: var(--gk-success-bg); color: var(--gk-success); }
.gk-badge-muted { background: var(--gk-border); color: var(--gk-muted); }
:root[data-theme="dark"] .gk-badge { color: var(--gk-text); }
.gk-tag { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: var(--gk-radius-pill); font-size: 12px; font-weight: 600; background: var(--gk-navy-50); color: var(--gk-navy-600); border: 1px solid var(--gk-navy-100); }
.gk-tag-service { background: var(--gk-mint); color: var(--gk-teal-700); border-color: rgba(22,184,154,.3); }
:root[data-theme="dark"] .gk-tag { background: var(--gk-surface-tint); color: var(--gk-text); border-color: var(--gk-border); }
.gk-tag-chips, .gk-profile-tags, .gk-category-chips, .gk-category-filter-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.gk-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: var(--gk-radius-pill); background: var(--gk-surface); border: 1.5px solid var(--gk-border); color: var(--gk-text); font-size: 14px; font-weight: 600; transition: all var(--gk-motion-fast) var(--gk-motion-easing); }
a.gk-chip:hover { border-color: var(--gk-accent); background: var(--gk-mint); color: var(--gk-primary); transform: translateY(-1px); }
.gk-chip.active { background: var(--gk-primary); border-color: var(--gk-primary); color: var(--gk-on-primary); }
.gk-chip-icon { width: 14px; height: 14px; flex: none; }
.gk-chip-text .gk-ne { font-weight: 500; opacity: .85; }
/* status chips: tinted bg + dark fg, icon + label always */
.gk-chip.gk-chip-new, .gk-chip.gk-chip-inspection, .gk-chip.gk-chip-awaiting, .gk-chip.gk-chip-approved,
.gk-chip.gk-chip-progress, .gk-chip.gk-chip-ready, .gk-chip.gk-chip-delivered, .gk-chip.gk-chip-cancelled {
  min-height: 28px; padding: 2px 12px 2px 10px; gap: 6px; font-size: 12px; font-weight: 700; border: 0; transform: none; white-space: nowrap;
}
.gk-chip-new { background: var(--job-new-bg); color: var(--job-new-fg); }
.gk-chip-inspection { background: var(--job-inspection-bg); color: var(--job-inspection-fg); }
.gk-chip-awaiting { background: var(--job-awaiting-bg); color: var(--job-awaiting-fg); }
.gk-chip-approved { background: var(--job-approved-bg); color: var(--job-approved-fg); }
.gk-chip-progress { background: var(--job-progress-bg); color: var(--job-progress-fg); }
.gk-chip-ready { background: var(--job-ready-bg); color: var(--job-ready-fg); }
.gk-chip-delivered { background: var(--job-delivered-bg); color: var(--job-delivered-fg); }
.gk-chip-cancelled { background: var(--job-cancelled-bg); color: var(--job-cancelled-fg); }
.gk-status-new { background: var(--job-new-bg); color: var(--job-new-fg); } .gk-status-approved { background: var(--job-approved-bg); color: var(--job-approved-fg); }
.gk-status-progress { background: var(--job-progress-bg); color: var(--job-progress-fg); } .gk-status-ready { background: var(--job-ready-bg); color: var(--job-ready-fg); }
.gk-status-chip { display: inline-flex; }

/* --------------------------------------------------------------- alerts */
.gk-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--gk-radius-md); border: 1px solid; font-size: 14px; }
.gk-alert-info { background: var(--gk-info-bg); border-color: rgba(29,78,216,.25); color: var(--gk-info); }
.gk-alert-success { background: var(--gk-success-bg); border-color: rgba(21,128,61,.28); color: var(--gk-success); }
.gk-alert-warning { background: var(--gk-warning-bg); border-color: rgba(180,83,9,.3); color: var(--gk-warning); }
.gk-alert-title { font-weight: 700; margin-bottom: 4px; }
.gk-notice-box, .gk-sms-notice { padding: 12px 16px; border-radius: var(--gk-radius-md); background: var(--gk-mint); color: var(--gk-navy-700); font-size: 13px; border: 1px dashed rgba(22,184,154,.5); }
:root[data-theme="dark"] .gk-notice-box, :root[data-theme="dark"] .gk-sms-notice { color: var(--gk-text); }
.gk-reference-box, .gk-code-wrap { flex-wrap: wrap; display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--gk-mint); border: 1px dashed var(--gk-accent); border-radius: var(--gk-radius-md); }
.gk-code-val { white-space: nowrap; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 22px; font-weight: 700; letter-spacing: .08em; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-code-val { color: var(--gk-teal-300); }
.gk-confirm, .gk-confirmed { display: block; }
.gk-document-notice { display: block; padding: 12px 16px; border: 1px solid #000; border-radius: var(--gk-radius-sm); font-size: 12px; line-height: 1.5; color: #000; background: #fff; font-weight: 500; }
.gk-document-notice-wrapper { margin-top: 20px; }

/* ------------------------------------------------------- offline / sync */
.gk-offline-banner { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--gk-warning-bg); color: var(--gk-warning); font-size: 13px; font-weight: 600; min-height: 38px; width: 100%; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(180,83,9,.3); }
.gk-offline-banner[hidden] { display: none; }
.gk-sync-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: var(--gk-radius-pill); padding: 2px 10px; }
.gk-sync-synced { color: var(--gk-success); }
.gk-sync-pending { background: var(--gk-warning-bg); color: var(--gk-warning); }
.gk-sync-error { background: var(--gk-danger-bg); color: var(--gk-danger); }
.gk-sync-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gk-sync-pending .gk-sync-dot { animation: gk-pulse 1.5s ease-in-out infinite; }
@keyframes gk-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ----------------------------------------------------------- plan meter */
.gk-plan-meter { display: flex; flex-direction: column; gap: 8px; }
.gk-plan-meter-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--gk-muted); font-weight: 500; }
.gk-plan-meter-track { height: 8px; border-radius: var(--gk-radius-pill); background: var(--gk-border); overflow: hidden; }
.gk-plan-meter-fill { height: 100%; border-radius: var(--gk-radius-pill); background: linear-gradient(90deg, var(--gk-teal-500), var(--gk-teal-600)); transition: width var(--gk-motion-standard) var(--gk-motion-easing); }
.gk-plan-meter-fill.warn { background: var(--gk-warning-fill); } .gk-plan-meter-fill.limit { background: var(--gk-danger); }
.gk-plan-limit-msg { font-size: 12px; color: var(--gk-danger); font-weight: 600; }
.gk-plan-upgrade-banner { margin: 0 0 20px; padding: 16px 20px; background: var(--gk-warning-bg); border: 1px solid rgba(180,83,9,.35); border-radius: var(--gk-radius-md); display: flex; align-items: center; gap: 16px; }

/* ---------------------------------------------------------------- table */
.gk-table-wrapper, .gk-table-responsive, .gk-services-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-lg); background: var(--gk-surface); }
.gk-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gk-table thead { background: var(--gk-sunken); }
:root[data-theme="dark"] .gk-table thead { background: var(--gk-surface-tint); }
.gk-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--gk-primary); border-bottom: 1px solid var(--gk-border); white-space: nowrap; letter-spacing: .02em; }
.gk-table th.gk-text-right { text-align: right; }
:root[data-theme="dark"] .gk-table th { color: var(--gk-text); }
.gk-th-en { display: block; } .gk-th-ne { display: block; font-size: 11px; font-weight: 500; color: var(--gk-muted); font-family: var(--gk-font-ne); }
.gk-table td { padding: 14px 16px; border-bottom: 1px solid var(--gk-border); vertical-align: middle; }
.gk-table tbody tr { transition: background-color var(--gk-motion-fast); }
.gk-table tbody tr:hover { background: var(--gk-teal-50); }
:root[data-theme="dark"] .gk-table tbody tr:hover { background: var(--gk-surface-tint); }
.gk-table tbody tr:last-child td { border-bottom: 0; }
.gk-items-table td:last-child, .gk-items-table th:last-child { text-align: right; }
.gk-price, .gk-amount { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-price { color: var(--gk-teal-300); }
.gk-total-row td { font-weight: 700; background: var(--gk-mint); color: var(--gk-primary); font-size: 16px; }
.gk-currency, .gk-period { color: var(--gk-muted); font-weight: 600; }

/* --------------------------------------------------------- empty states */
.gk-empty, .gk-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 56px 24px; color: var(--gk-muted); background: var(--gk-surface); border: 1.5px dashed var(--gk-border-strong); border-radius: var(--gk-radius-lg); }
.gk-empty-state { grid-column: 1 / -1; }
.gk-empty-icon { width: 56px; height: 56px; color: var(--gk-accent); }
.gk-empty-title, .gk-empty-text { font-size: 18px; line-height: 26px; font-weight: 700; color: var(--gk-primary); }
.gk-empty-desc, .gk-empty-sub { color: var(--gk-muted); max-width: 420px; font-size: 15px; }

/* ----------------------------------------------------------- toast/modal */
.gk-toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(calc(100vw - 32px), 480px); }
.gk-toast { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); box-shadow: var(--gk-elevation-raised); pointer-events: auto; width: 100%; animation: gk-toast-in var(--gk-motion-standard) var(--gk-motion-easing) forwards; }
@keyframes gk-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gk-toast-info { border-left: 4px solid var(--gk-info); } .gk-toast-success { border-left: 4px solid var(--gk-success); }
.gk-toast-error { border-left: 4px solid var(--gk-danger); } .gk-toast-warning { border-left: 4px solid var(--gk-warning-fill); }
.gk-toast-msg { flex: 1; font-size: 14px; line-height: 20px; }
.gk-toast-ne { display: block; font-size: 12px; color: var(--gk-muted); font-family: var(--gk-font-ne); }
.gk-toast-dismiss { flex: none; min-width: 36px; min-height: 36px; display: flex; align-items: center; justify-content: center; color: var(--gk-muted); border-radius: var(--gk-radius-sm); }
.gk-toast-dismiss:hover { color: var(--gk-text); background: var(--gk-mint); }
.gk-modal-backdrop, .gk-global-confirm-modal { position: fixed; inset: 0; background: rgba(11,37,66,.62); backdrop-filter: blur(3px); z-index: 8000; display: flex; align-items: center; justify-content: center; padding: 16px; animation: gk-fade var(--gk-motion-standard) forwards; }
@keyframes gk-fade { from { opacity: 0; } to { opacity: 1; } }
.gk-modal { background: var(--gk-surface); border-radius: var(--gk-radius-xl); box-shadow: var(--gk-elevation-raised); max-width: 480px; width: 100%; padding: 28px; display: flex; flex-direction: column; gap: 20px; animation: gk-modal-in var(--gk-motion-standard) var(--gk-motion-easing) forwards; }
@keyframes gk-modal-in { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
.gk-modal-title { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-modal-title { color: var(--gk-text); }
.gk-modal-body { color: var(--gk-muted); font-size: 15px; }
.gk-modal-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* -------------------------------------------------------------- timeline */
.gk-timeline { position: relative; display: flex; flex-direction: column; gap: 0; padding-left: 8px; }
.gk-timeline-item { position: relative; display: flex; gap: 16px; padding-bottom: 24px; }
.gk-timeline-item::before { content: ''; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--gk-border-strong); }
.gk-timeline-item:last-child::before { display: none; }
.gk-timeline-marker { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gk-accent); border: 4px solid var(--gk-mint); box-shadow: 0 0 0 2px var(--gk-accent); margin-top: 2px; }
.gk-timeline-content { flex: 1; }
.gk-timeline-title { font-size: 16px; font-weight: 700; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-timeline-title { color: var(--gk-text); }
.gk-timeline-date { font-size: 13px; color: var(--gk-muted); }

/* ----------------------------------------------------------------- faq */
.gk-faq-list { display: flex; flex-direction: column; gap: 12px; }
.gk-faq-item { padding: 20px 24px; transition: box-shadow var(--gk-motion-fast); }
.gk-faq-item:hover { box-shadow: var(--gk-elevation-raised); }
.gk-faq-q { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.gk-faq-a { color: var(--gk-muted); font-size: 15px; }

/* ------------------------------------------------------------ pagination */
.gk-pagination-placeholder { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.gk-pagination-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: var(--gk-radius-md); border: 1.5px solid var(--gk-border); background: var(--gk-surface); font-weight: 600; font-size: 14px; color: var(--gk-text); }
.gk-pagination-link.current { background: var(--gk-primary); border-color: var(--gk-primary); color: var(--gk-on-primary); }
.gk-pagination-link.disabled { opacity: .5; }

/* stacked bilingual inside wide / card buttons */
.gk-btn-block, .gk-btn-lg, .gk-card-footer .gk-btn, .gk-filter-actions .gk-btn, .gk-approval-actions .gk-btn { flex-direction: column; gap: 0; }
.gk-btn-block .gk-bilingual-inline, .gk-btn-lg .gk-bilingual-inline, .gk-card-footer .gk-btn .gk-bilingual-inline, .gk-filter-actions .gk-btn .gk-bilingual-inline, .gk-approval-actions .gk-btn .gk-bilingual-inline { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.gk-btn-block .gk-sep, .gk-btn-lg .gk-sep, .gk-card-footer .gk-btn .gk-sep, .gk-filter-actions .gk-btn .gk-sep, .gk-approval-actions .gk-btn .gk-sep { display: none; }
.gk-btn-block .gk-ne, .gk-btn-lg .gk-ne, .gk-card-footer .gk-btn .gk-ne, .gk-filter-actions .gk-btn .gk-ne, .gk-approval-actions .gk-btn .gk-ne { font-size: 12px; font-weight: 500; opacity: .85; }
/* ============================================================ public site */

.gk-container { width: 100%; max-width: var(--gk-container); margin-inline: auto; padding-inline: var(--gk-gutter-web); }
.gk-container-sm { max-width: 680px; }
@media (max-width: 640px) { .gk-container { padding-inline: var(--gk-gutter-mobile); } }

/* headings: Nepali drops to a quiet second line inside big headings */
.gk-public-page :is(h1, h2, h3) .gk-sep { display: none; }
.gk-public-page :is(h1, h2, h3) .gk-bilingual-inline .gk-ne { display: block; font-size: .6em; line-height: 1.5; font-weight: 500; color: var(--gk-muted); opacity: 1; margin-top: 2px; }
.gk-public-page :is(h1, h2, h3) .gk-bilingual-inline { display: block; }

/* ----------------------------------------------------------- top bar */
.gk-public-topbar { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--gk-surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--gk-border); }
.gk-topbar-inner { max-width: var(--gk-container); margin-inline: auto; padding: 10px var(--gk-gutter-web); display: flex; align-items: center; gap: 24px; min-height: 72px; }
.gk-wordmark { display: inline-flex; align-items: center; flex: none; }
.gk-wordmark img { height: 40px; width: auto; object-fit: contain; object-position: left center; }
.gk-logo-dark { display: none !important; }
:root[data-theme="dark"] .gk-logo-light { display: none !important; } :root[data-theme="dark"] .gk-logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gk-logo-light { display: none !important; } :root:not([data-theme="light"]) .gk-logo-dark { display: block !important; } }
.gk-topbar-search { flex: 1; max-width: 440px; margin-inline: auto; position: relative; }
.gk-topbar-search .gk-input { min-height: 44px; padding: 6px 16px 6px 44px; border-radius: var(--gk-radius-pill); background: var(--gk-bg); border-color: var(--gk-border); font-size: 14px; }
.gk-topbar-search svg { position: absolute; left: 16px; top: 13px; color: var(--gk-muted); pointer-events: none; }
.gk-topbar-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.gk-topbar-nav .gk-btn { min-height: 44px; padding: 6px 18px; font-size: 14px; }
.gk-topbar-nav .gk-ne { display: none; }
.gk-topbar-nav .gk-sep { display: none; }
@media (max-width: 900px) { .gk-topbar-search { display: none; } .gk-topbar-nav { margin-left: auto; } }
@media (max-width: 480px) { .gk-topbar-inner { gap: 8px; padding-inline: 12px; } .gk-wordmark { flex: 0 1 auto; min-width: 0; } .gk-wordmark img { height: 26px; max-width: 100%; } .gk-topbar-nav { gap: 6px; } .gk-topbar-nav .gk-btn { padding: 6px 12px; font-size: 13px; } }
@media (max-width: 560px) { .gk-topbar-inner { gap: 12px; padding-inline: 16px; } .gk-wordmark img { height: 32px; } .gk-topbar-nav .gk-btn-quiet { display: none; } }

.gk-public-content { flex: 1; width: 100%; padding: 0; }
.gk-public-page { width: 100%; }
.gk-public-page > .gk-container:first-child, .gk-garages-page > .gk-container { padding-top: 40px; padding-bottom: 72px; }

/* ----------------------------------------------------------- footer */
.gk-public-footer { background: var(--gk-footer-bg); color: #C5D3E4; padding: 64px 0 28px; margin-top: 0; }
.gk-footer-inner { max-width: var(--gk-container); margin-inline: auto; padding-inline: var(--gk-gutter-web); }
.gk-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.gk-footer-brand img { height: 42px; width: auto; margin-bottom: 16px; }
.gk-footer-brand p { color: #9FB4CC; font-size: 14px; max-width: 340px; }
.gk-footer-col h2 { line-height: 1.4; }
.gk-footer-col h2.gk-footer-title { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.gk-footer-col a { display: block; color: #C5D3E4; font-size: 14px; padding: 5px 0; }
.gk-footer-col a:hover { color: var(--gk-teal-300); }
.gk-footer-col .gk-ne { color: #8CA3BF; font-size: 12px; margin-left: 4px; }
.gk-footer-col .gk-sep { display: none; }
.gk-footer-col .gk-bilingual-inline { display: flex; flex-direction: column; }
.gk-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: #8CA3BF; }
@media (max-width: 860px) { .gk-footer-grid { grid-template-columns: 1fr 1fr; } .gk-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .gk-footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- hero */
.gk-hero-section { position: relative; overflow: hidden; color: #fff; padding: 88px 0 96px; background:
  radial-gradient(900px 420px at 85% -10%, rgba(22,184,154,.38), transparent 60%),
  radial-gradient(700px 380px at -10% 110%, rgba(27,74,124,.9), transparent 60%),
  linear-gradient(135deg, var(--gk-hero-from), var(--gk-hero-to)); }
.gk-hero-section::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%); pointer-events: none; }
.gk-hero-section > .gk-container { position: relative; z-index: 1; }
.gk-hero-content { max-width: 860px; }
.gk-hero-title { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; font-weight: 700; color: #fff; letter-spacing: -.02em; margin-bottom: 20px; }
.gk-hero-title .gk-bilingual-stacked { display: flex; gap: 10px; }
.gk-hero-title .gk-en { color: #fff; }
.gk-hero-title .gk-ne { color: var(--gk-teal-300); font-size: .5em; font-weight: 500; }
.gk-hero-subtitle { font-size: 18px; line-height: 28px; color: #D5E1EF; max-width: 680px; margin-bottom: 36px; }
.gk-hero-subtitle .gk-sep { display: none; }
.gk-hero-subtitle .gk-bilingual-inline { display: flex; flex-direction: column; gap: 4px; }
.gk-hero-subtitle .gk-ne { color: var(--gk-teal-300); font-size: 15px; opacity: 1; }
.gk-search-form { background: var(--gk-surface); border-radius: 20px; padding: 10px; box-shadow: 0 24px 60px rgba(4,16,34,.45); max-width: 900px; }
.gk-search-inputs { display: flex; gap: 10px; align-items: stretch; }
.gk-search-inputs .gk-input-group { flex: 1; min-width: 0; }
.gk-search-inputs .gk-input-group:nth-child(2) { flex: 0 0 240px; }
.gk-search-inputs .gk-input, .gk-search-inputs .gk-picker-trigger { min-height: 56px !important; border-color: transparent; background: var(--gk-bg); }
.gk-search-inputs .gk-btn { min-height: 56px; padding-inline: 32px; flex: none; }
.gk-hero-section .gk-search-form .gk-ne { color: inherit; }
.gk-hero-emergency { margin-top: 24px; }
.gk-hero-emergency .gk-btn-emergency { background: rgba(220,38,38,.92); box-shadow: none; border: 1px solid rgba(255,255,255,.25); }
.gk-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.gk-hero-actions .gk-btn-primary { background: var(--gk-accent); color: var(--gk-on-accent); box-shadow: 0 8px 22px rgba(22,184,154,.4); }
.gk-hero-actions .gk-btn-primary:hover { background: var(--gk-teal-300); color: var(--gk-navy-900); }
.gk-hero-actions .gk-btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.gk-hero-actions .gk-btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
@media (max-width: 760px) { .gk-hero-section { padding: 56px 0 64px; } .gk-search-inputs { flex-direction: column; } .gk-search-inputs .gk-input-group:nth-child(2) { flex: none; } .gk-hero-subtitle { font-size: 16px; } }

/* --------------------------------------------------------- sections */
.gk-section { padding: 72px 0; }
.gk-section-header { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.gk-section-title { font-size: 30px; line-height: 38px; font-weight: 700; margin-bottom: 28px; }
.gk-section-header .gk-section-title { margin-bottom: 8px; }
.gk-section-subtitle { color: var(--gk-muted); font-size: 17px; }
.gk-categories-section { padding: 56px 0 24px; }
.gk-near-section { padding: 24px 0 48px; }
.gk-services-section { background: var(--gk-surface); border-block: 1px solid var(--gk-border); }
.gk-how-section, .gk-how-steps-section { background: var(--gk-mint); }
.gk-benefits-section, .gk-plans-section { background: var(--gk-surface); }
.gk-faq-section, .gk-city-faq-section { background: var(--gk-bg); }

.gk-category-chips { gap: 12px; }
.gk-category-chips .gk-chip { min-height: 64px; padding: 12px 26px; font-size: 16px; border-radius: 18px; box-shadow: var(--gk-elevation-card); }
.gk-category-chips .gk-chip-icon { width: auto; height: auto; font-size: 26px; line-height: 1; }
.gk-category-chips .gk-sep { display: none; }
.gk-category-chips .gk-bilingual-inline { display: flex; flex-direction: column; line-height: 1.25; }
.gk-category-chips .gk-ne { font-size: 12px; color: var(--gk-muted); }

.gk-near-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; background: linear-gradient(120deg, var(--gk-mint), var(--gk-surface)); border-color: rgba(22,184,154,.35); }
.gk-near-text { max-width: 620px; }
.gk-services-grid, .gk-steps-grid, .gk-benefits-grid, .gk-plans-grid, .gk-articles-grid, .gk-related-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.gk-benefits-grid { grid-template-columns: repeat(4, 1fr); }
.gk-related-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .gk-benefits-grid { grid-template-columns: repeat(2, 1fr); } .gk-services-grid, .gk-steps-grid, .gk-plans-grid, .gk-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gk-benefits-grid, .gk-services-grid, .gk-steps-grid, .gk-plans-grid, .gk-articles-grid, .gk-related-grid { grid-template-columns: 1fr; } .gk-section { padding: 48px 0; } .gk-section-title { font-size: 24px; line-height: 32px; } }

.gk-service-card, .gk-benefit-card, .gk-step-card, .gk-article-card { background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: var(--gk-radius-lg); padding: 28px; box-shadow: var(--gk-elevation-card); display: flex; flex-direction: column; gap: 12px; transition: transform var(--gk-motion-standard) var(--gk-motion-easing), box-shadow var(--gk-motion-standard) var(--gk-motion-easing), border-color var(--gk-motion-standard); }
.gk-service-card:hover, .gk-benefit-card:hover, .gk-article-card:hover { transform: translateY(-4px); box-shadow: var(--gk-elevation-raised); border-color: rgba(22,184,154,.5); }
.gk-service-icon, .gk-benefit-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--gk-mint); display: grid; place-items: center; font-size: 28px; line-height: 1; }
.gk-service-title, .gk-benefit-title, .gk-step-title { font-size: 19px; line-height: 26px; }
.gk-service-desc, .gk-benefit-desc, .gk-step-desc { color: var(--gk-muted); font-size: 15px; flex: 1; }
.gk-service-desc .gk-sep, .gk-benefit-desc .gk-sep, .gk-step-desc .gk-sep { display: none; }
.gk-service-desc .gk-bilingual-inline, .gk-benefit-desc .gk-bilingual-inline, .gk-step-desc .gk-bilingual-inline { display: flex; flex-direction: column; gap: 4px; }
.gk-service-desc .gk-ne, .gk-benefit-desc .gk-ne, .gk-step-desc .gk-ne { font-size: 13px; }
.gk-step-card { background: var(--gk-surface); border-color: transparent; position: relative; }
.gk-step-number { width: 44px; height: 44px; border-radius: 50%; background: var(--gk-primary); color: var(--gk-on-primary); font-weight: 700; font-size: 18px; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--gk-teal-100); }
:root[data-theme="dark"] .gk-step-number { box-shadow: 0 0 0 6px rgba(22,184,154,.18); }

.gk-cta-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 48px 56px; border-radius: 28px; color: #fff; background: radial-gradient(500px 260px at 90% 0%, rgba(22,184,154,.45), transparent 60%), linear-gradient(135deg, var(--gk-navy-900), var(--gk-navy-700)); box-shadow: var(--gk-elevation-raised); }
.gk-cta-content { max-width: 640px; }
.gk-cta-title { color: #fff; font-size: 30px; line-height: 38px; margin-bottom: 10px; }
.gk-public-page .gk-cta-title .gk-ne { color: var(--gk-teal-300); }
.gk-cta-desc { color: #D5E1EF; font-size: 16px; }
.gk-cta-desc .gk-sep { display: none; } .gk-cta-desc .gk-bilingual-inline { display: flex; flex-direction: column; gap: 4px; } .gk-cta-desc .gk-ne { color: var(--gk-teal-300); font-size: 14px; opacity: 1; }
.gk-cta-banner .gk-btn-primary { background: var(--gk-accent); color: var(--gk-on-accent); }
.gk-cta-banner .gk-btn-primary:hover { background: var(--gk-teal-300); color: var(--gk-navy-900); }
.gk-cta-banner .gk-btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.gk-cta-banner .gk-btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
@media (max-width: 640px) { .gk-cta-banner { padding: 32px 24px; } }
.gk-garage-cta-section, .gk-cta-section, .gk-community-cta { padding: 24px 0 80px; }

/* plans */
.gk-plan-card { display: flex; flex-direction: column; gap: 20px; padding: 32px; position: relative; }
.gk-plan-card:nth-child(2) { border: 2px solid var(--gk-accent); box-shadow: 0 16px 44px rgba(22,184,154,.22); transform: translateY(-8px); }
.gk-plan-card:nth-child(2)::before { content: '★'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--gk-accent); color: var(--gk-on-accent); font-size: 14px; }
.gk-plan-title { font-size: 20px; }
.gk-plan-price { display: flex; align-items: baseline; gap: 6px; }
.gk-plan-price .gk-amount { font-size: 40px; line-height: 1; color: var(--gk-primary); }
.gk-plan-features { display: flex; flex-direction: column; gap: 12px; flex: 1; font-size: 15px; }
.gk-plan-features li { position: relative; padding-left: 28px; }
.gk-plan-features li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--gk-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A67' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 1000px) { .gk-plan-card:nth-child(2) { transform: none; } }

/* ---------------------------------------------------------- page header */
.gk-page-header { margin-bottom: 32px; }
.gk-page-title { font-size: 34px; line-height: 42px; font-weight: 700; margin-bottom: 8px; }
.gk-page-subtitle { color: var(--gk-muted); font-size: 17px; max-width: 720px; }
.gk-page-subtitle .gk-sep { display: none; } .gk-page-subtitle .gk-bilingual-inline { display: flex; flex-direction: column; }
@media (max-width: 640px) { .gk-page-title { font-size: 26px; line-height: 34px; } }

/* ------------------------------------------------------ garages listing */
.gk-garages-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.gk-filter-bar { background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: var(--gk-radius-lg); padding: 24px; box-shadow: var(--gk-elevation-card); }
.gk-garages-layout .gk-filter-bar { position: sticky; top: 92px; }
.gk-filter-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.gk-filter-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gk-filter-item .gk-form-group { margin: 0; }
.gk-filter-checkbox .gk-checkbox-label { min-height: 40px; }
.gk-filter-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.gk-filter-actions .gk-btn { flex: 1 1 100%; }
.gk-view-toggle-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.gk-results-count { font-weight: 600; color: var(--gk-muted); font-size: 15px; }
.gk-results-count > span:first-child { color: var(--gk-primary); font-size: 22px; font-weight: 700; margin-right: 6px; }
.gk-garages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.gk-garages-layout .gk-garages-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gk-garage-card { display: flex; flex-direction: column; background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: var(--gk-radius-lg); box-shadow: var(--gk-elevation-card); overflow: hidden; transition: transform var(--gk-motion-standard) var(--gk-motion-easing), box-shadow var(--gk-motion-standard), border-color var(--gk-motion-standard); }
.gk-garage-card:hover { transform: translateY(-4px); box-shadow: var(--gk-elevation-raised); border-color: rgba(22,184,154,.55); }
.gk-garage-card::before { content: ''; display: block; height: 6px; background: linear-gradient(90deg, var(--gk-navy-700), var(--gk-teal-500)); }
.gk-title-wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gk-garage-name { font-size: 19px; line-height: 26px; }
.gk-garage-name a { color: var(--gk-primary); } .gk-garage-name a:hover { color: var(--gk-accent-text); }
:root[data-theme="dark"] .gk-garage-name a { color: var(--gk-text); }
.gk-garage-location { display: flex; align-items: center; gap: 8px; color: var(--gk-muted); font-size: 14px; margin-top: 6px; font-weight: 500; }
.gk-distance { color: var(--gk-accent-text); font-weight: 600; }
.gk-garage-card .gk-card-footer .gk-btn { flex: 1; }
.gk-map-placeholder { min-height: 420px; display: grid; place-items: center; text-align: center; border-radius: var(--gk-radius-lg); border: 1.5px dashed var(--gk-border-strong); background: repeating-linear-gradient(45deg, var(--gk-mint), var(--gk-mint) 14px, var(--gk-teal-50) 14px, var(--gk-teal-50) 28px); color: var(--gk-navy-700); padding: 24px; }
.gk-map-inner { background: var(--gk-surface); padding: 24px 32px; border-radius: var(--gk-radius-lg); box-shadow: var(--gk-elevation-card); }
@media (max-width: 1000px) { .gk-garages-layout { grid-template-columns: 1fr; } .gk-garages-layout .gk-filter-bar { position: static; } .gk-filter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gk-filter-grid { grid-template-columns: 1fr; } .gk-garages-grid, .gk-garages-layout .gk-garages-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- garage profile */
.gk-profile-header { background: linear-gradient(135deg, var(--gk-navy-900), var(--gk-navy-700)); color: #fff; border-radius: var(--gk-radius-xl); padding: 36px 40px; margin-bottom: 40px; position: relative; overflow: hidden; }
.gk-profile-header::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(22,184,154,.5), transparent 70%); }
.gk-profile-title-block { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.gk-profile-name { color: #fff; font-size: 32px; line-height: 40px; }
.gk-public-page .gk-profile-name .gk-ne { color: var(--gk-teal-300); }
.gk-profile-address { color: #D5E1EF; margin-top: 10px; position: relative; z-index: 1; }
.gk-profile-header .gk-text-muted, .gk-profile-header .gk-label { color: #B7C8DC; }
.gk-profile-tags { margin-top: 18px; position: relative; z-index: 1; }
.gk-profile-header .gk-tag { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.gk-profile-info-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 40px; }
.gk-profile-info-grid > div { display: flex; flex-direction: column; gap: 24px; }
.gk-contact-actions, .gk-doc-buttons { display: flex; flex-direction: column; gap: 10px; }
.gk-doc-buttons { flex-direction: row; flex-wrap: wrap; }
.gk-hours-val { font-weight: 600; margin-bottom: 16px; }
.gk-hours-list { margin: 0 0 16px; } .gk-hours-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--gk-border); } .gk-hours-list dt { font-weight: 600; } .gk-hours-list dd { margin: 0; font-variant-numeric: tabular-nums; }
.gk-price-unit { font-size: 12px; }
.gk-appointment-cta { margin-top: 8px; }
.gk-emergency-box { padding: 20px; border-radius: var(--gk-radius-md); background: var(--gk-danger-bg); border: 1px solid rgba(220,38,38,.3); display: flex; flex-direction: column; gap: 12px; }
.gk-emergency-title { color: var(--gk-danger); font-size: 16px; }
.gk-photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gk-photo-placeholder { aspect-ratio: 4 / 3; border-radius: var(--gk-radius-lg); background: linear-gradient(135deg, var(--gk-mint), var(--gk-navy-50)); display: grid; place-items: center; color: var(--gk-navy-600); font-weight: 600; border: 1px solid var(--gk-border); }
.gk-photos-section, .gk-profile-page .gk-services-section { padding: 0; margin-top: 8px; margin-bottom: 40px; background: none; border: 0; }
.gk-landmark-fallback, .gk-location-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.gk-manual-location-form { display: flex; gap: 10px; flex-wrap: wrap; } .gk-manual-location-form .gk-input-group { flex: 1; min-width: 200px; }
@media (max-width: 900px) { .gk-profile-info-grid { grid-template-columns: 1fr; } .gk-photos-grid { grid-template-columns: 1fr; } .gk-profile-header { padding: 28px 24px; } .gk-profile-name { font-size: 26px; line-height: 34px; } }

/* -------------------------------------------- SMS-link pages (phone-first) */
.gk-status-page, .gk-estimate-page, .gk-bill-page { background: linear-gradient(180deg, var(--gk-mint) 0, var(--gk-bg) 280px); }
.gk-status-card { display: flex; flex-direction: column; gap: 20px; }
.gk-status-vehicle-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gk-status-highlight { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; background: var(--gk-mint); border-radius: var(--gk-radius-md); }
.gk-status-chip-wrap .gk-chip, .gk-status-chip-wrap span { font-size: 14px !important; min-height: 36px !important; padding-inline: 16px !important; }
.gk-last-updated { font-size: 13px; color: var(--gk-muted); }
.gk-timeline-section { margin-top: 28px; }
.gk-contact-garage-box { margin-top: 24px; padding: 20px; background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: var(--gk-radius-lg); display: flex; flex-direction: column; gap: 12px; }
.gk-phone-revealed { display: flex; gap: 10px; flex-wrap: wrap; }
.gk-document-card { padding: 0; overflow: hidden; margin-bottom: 20px; }
.gk-doc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px; background: var(--gk-sunken); border-bottom: 1px solid var(--gk-border); }
.gk-doc-header .gk-garage-name { color: var(--gk-primary); }
.gk-doc-header .gk-label, .gk-doc-header .gk-doc-meta { color: var(--gk-text); }
.gk-doc-header .gk-doc-meta { padding: 0; }
.gk-doc-type-badge { padding: 6px 14px; border-radius: var(--gk-radius-pill); background: var(--gk-primary); color: var(--gk-on-primary); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.gk-doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; padding: 20px 28px; }
.gk-doc-meta > *, .gk-doc-customer-strip > * { display: flex; flex-direction: column; gap: 2px; }
.gk-doc-customer-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; padding: 16px 28px; background: var(--gk-mint); border-block: 1px solid var(--gk-border); }
.gk-document-card .gk-table-responsive { border: 0; border-radius: 0; }
.gk-document-card .gk-document-notice-wrapper { padding: 0 28px 24px; }
.gk-doc-action-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.gk-approval-actions { display: flex; flex-direction: column; gap: 14px; padding: 20px 28px 28px; }
.gk-approval-actions .gk-btn { width: 100%; }
.gk-expired-card { text-align: center; }
.gk-contact-form-card .gk-form { margin-top: 12px; }
@media (max-width: 560px) { .gk-doc-header, .gk-doc-meta, .gk-doc-customer-strip, .gk-approval-actions { padding-inline: 18px; } .gk-doc-header { flex-direction: column; } .gk-status-vehicle-info { grid-template-columns: 1fr; } }

/* -------------------------------------------------- emergency / contact */
.gk-emergency-header { text-align: center; }
.gk-emergency-badge { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: var(--gk-danger-bg); align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 0 0 8px rgba(220,38,38,.1); }
.gk-emergency-header .gk-page-subtitle { margin-inline: auto; }
.gk-location-card { margin-bottom: 32px; }
.gk-emergency-list-section { margin-top: 8px; }
.gk-emergency-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.gk-emergency-contact-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-left: 5px solid var(--gk-danger); padding: 20px 24px; }
.gk-emergency-name { font-size: 18px; } .gk-emergency-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gk-contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; }
.gk-contact-channels { display: flex; flex-direction: column; gap: 16px; }
.gk-channel-card { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.gk-channel-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--gk-mint); display: grid; place-items: center; font-size: 22px; flex: none; }
.gk-channel-val { font-weight: 700; color: var(--gk-primary); }
.gk-container-sm:has(.gk-contact-grid) { max-width: 1000px; }
@media (max-width: 800px) { .gk-contact-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- guides / city */
.gk-category-filter-strip { margin-bottom: 28px; }
.gk-article-badge { display: flex; gap: 8px; }
.gk-article-date, .gk-date { color: var(--gk-muted); font-size: 13px; font-weight: 500; }
.gk-article-title { font-size: 20px; line-height: 28px; } .gk-article-excerpt { color: var(--gk-muted); font-size: 15px; flex: 1; }
.gk-article-footer { margin-top: 4px; }
.gk-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.gk-article-header { margin-bottom: 28px; grid-column: 1; } .gk-article-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.gk-article-main-title { font-size: 38px; line-height: 46px; }
.gk-article-body { font-size: 17px; line-height: 30px; max-width: 70ch; display: flex; flex-direction: column; gap: 20px; }
.gk-content-ne { color: var(--gk-muted); font-family: var(--gk-font-ne); padding-left: 18px; border-left: 3px solid var(--gk-accent); }
.gk-article-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.gk-toc-title { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.gk-toc-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.gk-sidebar-cta { background: var(--gk-mint); border-color: rgba(22,184,154,.4); display: flex; flex-direction: column; gap: 12px; }
.gk-related-section { margin-top: 56px; } .gk-related-card { display: flex; flex-direction: column; gap: 8px; }
.gk-city-intro-card { margin-bottom: 16px; border-left: 5px solid var(--gk-accent); }
.gk-city-garages-section, .gk-nearby-areas-section { padding: 32px 0; }
.gk-city-faq-section { padding: 40px 32px; border-radius: var(--gk-radius-xl); }
@media (max-width: 900px) { .gk-article-layout { grid-template-columns: 1fr; } .gk-article-sidebar { position: static; } .gk-article-main-title { font-size: 28px; line-height: 36px; } }

/* ------------------------------------------------------------- errors */
.gk-error-page { display: grid; place-items: center; min-height: 60vh; padding: 56px 0; }
.gk-error-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 32px; }
.gk-error-icon { width: 88px; height: 88px; border-radius: 50%; background: var(--gk-mint); display: grid; place-items: center; font-size: 40px; }
.gk-error-title { font-size: 30px; } .gk-error-desc { color: var(--gk-muted); max-width: 440px; }
.gk-error-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* --------------------------------------------------------------- login */
.gk-login-wrapper { background: radial-gradient(700px 360px at 80% -10%, rgba(22,184,154,.2), transparent 60%), var(--gk-bg); }
.gk-auth-page { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: var(--gk-space-6) var(--gk-space-4); }
.gk-auth-card { width: 100%; max-width: 460px; padding: var(--gk-space-6); box-shadow: var(--gk-shadow-md); }
.gk-auth-head { text-align: center; margin-bottom: var(--gk-space-5); }
.gk-auth-head h1 { margin: 0 0 var(--gk-space-1); }
.gk-auth-head p { color: var(--gk-muted); margin: 0; }
.gk-auth-form { display: flex; flex-direction: column; gap: var(--gk-space-4); }
.gk-auth-phone { position: relative; display: flex; align-items: center; }
.gk-auth-phone > span { position: absolute; left: 12px; font-size: 14px; font-weight: 600; color: var(--gk-muted); pointer-events: none; }
.gk-auth-phone > .gk-input { padding-left: 56px; font-size: 16px; }
.gk-auth-code { text-align: center; font-size: 24px; font-weight: 700; letter-spacing: 6px; }
.gk-auth-sentto { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--gk-muted); }
.gk-auth-small { text-align: center; font-size: 13px; color: var(--gk-muted); }
.gk-auth-foot { margin-top: var(--gk-space-5); padding-top: var(--gk-space-4); border-top: 1px solid var(--gk-border); text-align: center; font-size: 13px; color: var(--gk-muted); }
.gk-auth-foot a { color: var(--gk-primary); font-weight: 600; margin-left: 4px; }
.gk-alert-danger { background: var(--gk-danger-bg, #FDF2F2); border-color: var(--gk-danger); color: var(--gk-danger); }

/* ----------------------------------------------- page hooks + small parts */
.gk-home-page, .gk-for-garages-page, .gk-guides-page, .gk-article-page, .gk-city-landing-page, .gk-contact-page, .gk-emergency-page { display: block; }
.gk-article-main { min-width: 0; }
.gk-content-en { color: var(--gk-text); }
.gk-about-card, .gk-hours-card, .gk-contact-card { display: block; }
.gk-contact-card .gk-card-title, .gk-hours-card .gk-card-title, .gk-about-card .gk-card-title { margin-bottom: 12px; }
.gk-toc-card { display: block; }
.gk-near-action { flex: none; }
.gk-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
.gk-plan-header { display: flex; flex-direction: column; gap: 8px; }
.gk-plan-action { margin-top: auto; }
.gk-due-row td { padding: 14px 16px; background: var(--gk-warning-bg); font-weight: 700; border-bottom: 0; }
.gk-document-preview-container, .gk-estimate-preview-container { width: 100%; max-width: 880px; margin-inline: auto; }
.gk-sync-text { font-weight: 600; }

.gk-icon-svg { flex: none; }
.gk-loc { display: inline-flex; align-items: center; gap: 6px; }
.gk-card-footer .gk-btn { flex-direction: row; gap: 8px; }
.gk-btn-toggle { display: inline-flex; align-items: center; gap: 8px; }
.gk-btn-toggle .gk-sep { display: none; } .gk-btn-toggle .gk-bilingual-inline { display: flex; flex-direction: column; line-height: 1.2; text-align: left; } .gk-btn-toggle .gk-ne { font-size: 11px; }
.gk-garage-location .gk-icon-svg { color: var(--gk-accent-text); }

/* dark-band headings: Nepali line in teal (beats the generic heading rule) */
.gk-public-page .gk-cta-banner .gk-cta-title .gk-bilingual-inline .gk-ne,
.gk-public-page .gk-profile-header .gk-profile-name .gk-bilingual-inline .gk-ne { color: var(--gk-teal-300); }
.gk-profile-info-grid + .gk-card, .gk-profile-info-grid ~ .gk-card { margin-top: 24px; }
.gk-profile-page .gk-container > .gk-card, .gk-profile-page .gk-container > section.gk-card { margin-top: 24px; }
.gk-profile-page .gk-container { padding-bottom: 72px; }

@media (max-width: 560px) {
  .gk-items-table th, .gk-items-table td { padding: 10px 8px; font-size: 13px; }
  .gk-items-table .gk-sep { display: none; } .gk-items-table .gk-bilingual-inline { display: flex; flex-direction: column; }
  .gk-items-table .gk-ne { font-size: 11px; }
}
.gk-approval-actions .gk-form-group { margin-top: 8px; }
.gk-garages-results { min-width: 0; }
.gk-auth-alert { margin-bottom: var(--gk-space-4); }
/* ============================================================ owner desk */

.gk-layout-owner { display: grid; grid-template-columns: var(--gk-sidebar-width) minmax(0, 1fr); grid-template-rows: var(--gk-topbar-height) 1fr; min-height: 100vh; background: var(--gk-bg); }

/* sidebar (navy) */
.gk-sidebar { grid-column: 1; grid-row: 1 / -1; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--gk-sidebar-bg); color: var(--gk-sidebar-text); overflow-y: auto; z-index: 120; }
.gk-sidebar-brand { display: flex; align-items: center; min-height: var(--gk-topbar-height); padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); flex: none; position: sticky; top: 0; z-index: 2; background: var(--gk-sidebar-bg); }
.gk-sidebar-brand img { height: 34px; width: auto; }
.gk-sidebar-brand .gk-brand-mark { display: none; height: 34px; }
.gk-sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px 24px; }
.gk-nav-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--gk-radius-md); color: var(--gk-sidebar-text); font-size: 15px; transition: background-color var(--gk-motion-fast), color var(--gk-motion-fast); }
.gk-nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.gk-nav-item.active { background: rgba(22,184,154,.2); color: #fff; font-weight: 600; }
.gk-nav-item.active::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gk-teal-500); }
.gk-nav-item.active .gk-nav-item-icon { color: var(--gk-teal-300); }
.gk-nav-item-icon { width: 22px; height: 22px; flex: none; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.gk-nav-item-labels { display: flex; flex-direction: column; min-width: 0; }
.gk-nav-en { font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gk-nav-ne { font-size: 11.5px; line-height: 1.4; font-family: var(--gk-font-ne); color: var(--gk-sidebar-muted); white-space: nowrap; }
.gk-nav-item.active .gk-nav-ne { color: var(--gk-teal-300); }

/* top bar */
.gk-topbar { grid-column: 2; grid-row: 1; position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 16px; padding-inline: 28px; min-height: var(--gk-topbar-height); background: color-mix(in srgb, var(--gk-surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gk-border); }
.gk-topbar > button.gk-btn-quiet { display: none; }
.gk-topbar .gk-text-h2 { color: var(--gk-primary); font-size: 20px; }
:root[data-theme="dark"] .gk-topbar .gk-text-h2 { color: var(--gk-text); }
.gk-topbar-section { font-size: 11px; line-height: 1.3; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gk-muted); white-space: nowrap; }
.gk-topbar .gk-input { border-radius: var(--gk-radius-pill); background: var(--gk-bg); border-color: var(--gk-border); }

.gk-main-content { grid-column: 2; grid-row: 2; min-width: 0; padding: 28px 32px 64px; }
.gk-main-content > * { max-width: 1280px; margin-inline: auto; }

/* page containers (Livewire roots) */
.gk-dashboard-container, .gk-daybook-container, .gk-customer-index-container, .gk-customer-form-container, .gk-customer-show-container,
.gk-vehicle-form-container, .gk-vehicle-show-container, .gk-job-board-container, .gk-job-form-container, .gk-job-show-container,
.gk-dues-container, .gk-supplier-index-container, .gk-reports-hub-container, .gk-reminder-center-container, .gk-post-composer-container,
.gk-appointment-inbox-container, .gk-public-profile-editor-container, .gk-staff-manager-container, .gk-plan-billing-container,
.gk-sms-wallet-container, .gk-settings-container, .gk-year-end-container, .gk-notifications-container { width: 100%; max-width: 1280px; margin-inline: auto; }
.gk-customer-form-container, .gk-vehicle-form-container, .gk-job-form-container, .gk-settings-container { max-width: 880px; }
.gk-action-form { display: inline; }
.gk-dashboard-container .gk-card, .gk-main-content .gk-card { padding: 20px; }
.gk-sidebar-cta { padding: 20px; }

/* tablet: icon rail */
@media (min-width: 768px) and (max-width: 1279px) {
  .gk-layout-owner { grid-template-columns: var(--gk-iconrail-width) minmax(0, 1fr); }
  .gk-sidebar-brand { padding: 0; justify-content: center; }
  .gk-sidebar-brand .gk-brand-full { display: none; } .gk-sidebar-brand .gk-brand-mark { display: block; }
  .gk-nav-item { justify-content: center; padding-inline: 0; } .gk-nav-item-labels { display: none; }
  .gk-nav-item.active::before { left: -12px; }
  .gk-main-content { padding: 20px; } .gk-topbar { padding-inline: 20px; min-height: var(--gk-topbar-tablet); }
}
/* phone: drawer */
@media (max-width: 767px) {
  .gk-layout-owner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .gk-topbar { grid-column: 1; padding-inline: 12px; gap: 8px; } .gk-topbar > button.gk-btn-quiet { display: inline-flex; }
  .gk-main-content { grid-column: 1; padding: 16px; }
  .gk-sidebar { display: none; position: fixed; inset: 0 auto 0 0; width: 288px; height: 100vh; z-index: 500; box-shadow: var(--gk-elevation-raised); }
  .gk-sidebar.open { display: flex; }
  /* let grid children shrink so wide tables scroll inside their own wrapper instead of widening the page */
  .gk-layout-owner > *, .gk-main-content, .gk-main-content > * { min-width: 0; }
  .gk-topbar .gk-text-h2 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gk-topbar > div { min-width: 0; }
  .gk-topbar > div[style*="margin-left"] { gap: 8px !important; flex: none; }
  .gk-topbar .gk-date-toggle { display: none; }
  .gk-main-content .gk-flex-between { flex-wrap: wrap; gap: 8px; }
}

/* ---------------------------------------------------------------- print */
@media print {
  .gk-topbar, .gk-sidebar, .gk-offline-banner, .gk-plan-upgrade-banner, .gk-btn, .gk-toast-container, .gk-modal-backdrop, .gk-public-topbar, .gk-public-footer, [data-no-print] { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.4; }
  .gk-layout-owner { display: block; } .gk-main-content { padding: 0; }
  a { color: #000; text-decoration: none; }
  .gk-card, .gk-card-raised { box-shadow: none; border: 1px solid #ccc; }
  .gk-document-notice { display: block !important; page-break-inside: avoid; border: 1px solid #000 !important; color: #000 !important; background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4 portrait; margin: 12mm; }
}

/* ---- Owner dashboard: greeting, quick actions, attention strip, get-started ---- */
.gk-dash-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.gk-dash-hello h2 { margin: 0; font-size: 24px; line-height: 32px; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-dash-hello h2 { color: var(--gk-text); }
.gk-dash-date { color: var(--gk-muted); font-size: 14px; }
.gk-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.gk-quick-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 48px; padding: 16px; border-radius: var(--gk-radius-lg); border: 1px solid var(--gk-border); background: var(--gk-surface); color: var(--gk-text); text-decoration: none; font-weight: 600; box-shadow: var(--gk-elevation-card); transition: transform .12s ease, box-shadow .12s ease; }
.gk-quick-tile:hover { transform: translateY(-2px); box-shadow: var(--gk-elevation-raised); }
.gk-quick-tile:focus-visible { outline: 3px solid var(--gk-accent); outline-offset: 2px; }
.gk-quick-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gk-mint); color: var(--gk-accent-text); }
.gk-quick-tile.is-main { background: var(--gk-primary); border-color: var(--gk-primary); color: var(--gk-on-primary); }
.gk-quick-tile.is-main .gk-quick-icon { background: rgba(255,255,255,.14); color: var(--gk-on-primary); }
.gk-attention { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.gk-attention-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--gk-radius-md); background: var(--gk-surface); border: 1px solid var(--gk-border); border-left: 4px solid var(--gk-accent); color: var(--gk-text); text-decoration: none; }
.gk-attention-item.is-warn { border-left-color: var(--gk-warning); background: var(--gk-warning-bg); }
.gk-attention-item:hover { box-shadow: var(--gk-elevation-card); }
.gk-attention-n { font-size: 20px; font-weight: 700; min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; }
.gk-attention-ok { padding: 12px 16px; border-radius: var(--gk-radius-md); background: var(--gk-mint); color: var(--gk-accent-text); font-weight: 600; margin-bottom: 24px; }
.gk-start { padding: 20px; margin-bottom: 24px; border-left: 4px solid var(--gk-accent); }
.gk-start ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.gk-dash-empty { color: var(--gk-muted); font-size: 14px; padding: 12px 0; }
.gk-kpi { text-decoration: none; color: inherit; display: block; }
.gk-kpi:hover { box-shadow: var(--gk-elevation-raised); }

.gk-dash-grid > * { min-width: 0; }

/* Receive-payment form: 3 columns on desktop, one stacked column on phones so the amount field and its error stay readable. */
.gk-pay-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 640px) { .gk-pay-form { grid-template-columns: minmax(0, 1fr); } .gk-pay-form .gk-btn { width: 100%; } }

/* Form rows: 2 columns (or 2fr 1fr 1fr) on desktop, single column on phones. */
.gk-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gk-form-grid-3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 640px) { .gk-form-grid, .gk-form-grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---- Home (owner dashboard): priority order, two money cards, short lists ---- */
.gk-attention-all { font-size: 13px; }
.gk-start-title { margin: 0; font-size: 18px; }
.gk-quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gk-money { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; margin-bottom: 24px; }
.gk-money-card { display: block; padding: 16px; color: inherit; text-decoration: none; }
.gk-money-card:hover { box-shadow: var(--gk-elevation-raised); }
.gk-money-title { font-size: 13px; font-weight: 600; color: var(--gk-muted); margin-bottom: 10px; }
.gk-money-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gk-money-row.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gk-money-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: 10px; border-left: 3px solid var(--gk-border); }
.gk-money-stat strong { font-size: 20px; line-height: 28px; font-weight: 700; overflow-wrap: anywhere; }
.gk-money-label { font-size: 12px; color: var(--gk-muted); }
.gk-money-stat.is-in { border-left-color: var(--gk-success); } .gk-money-stat.is-in strong { color: var(--gk-success); }
.gk-money-stat.is-out { border-left-color: var(--gk-danger); } .gk-money-stat.is-out strong { color: var(--gk-danger); }
.gk-money-stat.is-net { border-left-color: var(--gk-primary); } .gk-money-stat.is-net strong { color: var(--gk-primary); }
.gk-money-stat.is-due { border-left-color: var(--gk-warning); } .gk-money-stat.is-due strong { color: var(--gk-warning-text, #8A5A00); }
.gk-money-stat.is-pay { border-left-color: var(--gk-muted); } .gk-money-stat.is-pay strong { color: var(--gk-text); }
:root[data-theme="dark"] .gk-money-stat.is-net strong { color: var(--gk-text); }
.gk-dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.gk-dash-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.gk-dash-panel-head h3 { margin: 0; font-size: 16px; }
.gk-dash-panel-head .gk-link { font-size: 13px; white-space: nowrap; }
.gk-job-list { display: flex; flex-direction: column; gap: 10px; }
.gk-job-row { display: block; padding: 10px 12px; border-radius: var(--gk-radius-md); background: var(--gk-bg); border: 1px solid var(--gk-border); color: inherit; text-decoration: none; }
.gk-job-row:hover { box-shadow: var(--gk-elevation-card); }
.gk-job-row-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.gk-job-code { font-weight: 700; font-size: 13px; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-job-code { color: var(--gk-accent); }
.gk-job-customer { font-size: 14px; font-weight: 500; }
.gk-job-plate { font-size: 12px; color: var(--gk-muted); }
.gk-entry-list { list-style: none; margin: 0; padding: 0; }
.gk-entry-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gk-border); }
.gk-entry-row:last-child { border-bottom: 0; }
.gk-entry-main { display: flex; flex-direction: column; min-width: 0; }
.gk-entry-party { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-entry-meta { font-size: 12px; color: var(--gk-muted); }
.gk-entry-amount { font-size: 15px; white-space: nowrap; }
.gk-entry-amount.is-in { color: var(--gk-success); } .gk-entry-amount.is-out { color: var(--gk-danger); } .gk-entry-amount.is-credit { color: var(--gk-warning-text, #8A5A00); }

/* ---- Menu: grouped sidebar, phone bottom tabs ---- */
.gk-nav-group { display: flex; flex-direction: column; gap: 4px; }
.gk-nav-group + .gk-nav-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.gk-nav-heading { padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gk-sidebar-muted); }
.gk-bottom-nav, .gk-drawer-backdrop { display: none; }
@media (min-width: 768px) and (max-width: 1279px) { .gk-nav-heading { display: none; } .gk-nav-group + .gk-nav-group { margin-top: 8px; padding-top: 8px; } }
@media (max-width: 767px) { .gk-money { grid-template-columns: minmax(0, 1fr); } .gk-dash-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .gk-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gk-money-stat strong { font-size: 17px; }
  .gk-entry-row:nth-child(n+4) { display: none; }
  .gk-topbar > button.gk-btn-quiet { display: none; }
  .gk-main-content { padding-bottom: 88px; }
  .gk-nav-item.is-tab { display: none; }
  .gk-nav-group-money { margin-top: 0; padding-top: 0; border-top: 0; }
  .gk-drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 490; background: rgba(7,20,38,.55); }
  .gk-sidebar { padding-bottom: 88px; }
  .gk-bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 600; background: var(--gk-sidebar-bg); border-top: 1px solid rgba(255,255,255,.1); padding-bottom: env(safe-area-inset-bottom); }
  .gk-bottom-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; padding: 6px 2px; background: none; border: 0; color: var(--gk-sidebar-text); font: inherit; font-size: 11px; font-weight: 500; text-decoration: none; cursor: pointer; }
  .gk-bottom-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .gk-bottom-item.active { color: #fff; font-weight: 700; }
  .gk-bottom-item.active svg { color: var(--gk-teal-300); }
  .gk-bottom-item:focus-visible { outline: 3px solid var(--gk-accent); outline-offset: -3px; }
}
.gk-dash-panel { min-width: 0; padding: 18px; }
.gk-money-stat strong { white-space: nowrap; overflow-wrap: normal; }
@media (min-width: 768px) and (max-width: 1100px) { .gk-money-stat strong { font-size: 16px; } }

/* Top-bar search */
.gk-search { position: relative; width: 240px; }
.gk-topbar .gk-search-input { min-height: 40px; padding: 4px 12px 4px 32px; font-size: 13px; width: 100%; }
.gk-search-icon { position: absolute; left: 12px; top: 13px; color: var(--gk-muted); pointer-events: none; }
.gk-search-panel { position: absolute; top: calc(100% + 6px); right: 0; width: 320px; max-height: 70vh; overflow-y: auto; background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: 12px; box-shadow: 0 12px 32px rgb(15 23 42 / .18); padding: 6px; z-index: 120; }
.gk-search-heading { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--gk-muted); }
.gk-search-item { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 10px; border-radius: 8px; color: var(--gk-text); text-decoration: none; }
.gk-search-item:hover, .gk-search-item:focus-visible { background: var(--gk-bg); }
.gk-search-title { font-weight: 600; }
.gk-search-none { padding: 14px 10px; color: var(--gk-muted); }
/* ============================================================ home v2 */

/* ---- hero ---- */
.gk-home-hero { position: relative; overflow: hidden; background:
  radial-gradient(700px 360px at 8% 0%, rgba(22,184,154,.16), transparent 60%),
  linear-gradient(180deg, #EAF8F4 0%, var(--gk-bg) 100%); padding: 72px 0 84px; }
:root[data-theme="dark"] .gk-home-hero { background: linear-gradient(180deg, #0F2F3A, var(--gk-bg)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gk-home-hero { background: linear-gradient(180deg, #0F2F3A, var(--gk-bg)); } }
.gk-home-hero-copy { min-width: 0; }
.gk-home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.gk-home-title { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; color: var(--gk-primary); margin-bottom: 22px; }
:root[data-theme="dark"] .gk-home-title { color: var(--gk-text); }
.gk-home-title em { font-style: normal; background: linear-gradient(90deg, #0F9D84, #16B89A); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.gk-home-title-ne { display: block; margin-top: 14px; font-family: var(--gk-font-ne); font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: 0; color: var(--gk-muted); }
.gk-home-lead { font-size: 18px; line-height: 1.65; color: #475569; max-width: 520px; margin-bottom: 34px; }
:root[data-theme="dark"] .gk-home-lead { color: var(--gk-muted); }
.gk-home-lead .gk-sep { display: none; }
.gk-home-lead .gk-bilingual-inline { display: flex; flex-direction: column; gap: 4px; }
.gk-home-lead .gk-ne { font-size: 15px; opacity: 1; color: var(--gk-muted); font-weight: 400; }

.gk-home-search { display: flex; align-items: center; gap: 6px; max-width: 760px; padding: 7px; background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: 18px; box-shadow: 0 14px 40px rgba(18,52,90,.13); }
.gk-home-search-field { position: relative; flex: 1 1 auto; min-width: 0; color: var(--gk-muted); }
.gk-home-search-field svg { position: absolute; left: 16px; top: 16px; pointer-events: none; }
.gk-home-search-field input { width: 100%; min-height: 52px; padding: 0 12px 0 44px; border: 0; background: transparent; font-size: 16px; color: var(--gk-text); }
.gk-home-search-field input:focus { outline: none; }
.gk-home-search-field input::placeholder { color: #94A3B8; }
.gk-home-search-city { flex: 0 0 214px; border-left: 1px solid var(--gk-border); }
.gk-home-search-city .gk-picker-trigger { background: transparent !important; border: 0 !important; box-shadow: none; min-height: 52px !important; padding: 0 44px 0 14px !important; font-size: 15px; }
.gk-home-search-btn { min-height: 52px; padding: 0 26px; border-radius: 13px; flex: none; }
.gk-home-search-btn .gk-sep { display: none; }
.gk-home-search-btn .gk-bilingual-inline { display: flex; flex-direction: column; line-height: 1.2; }
.gk-home-search-btn .gk-ne { font-size: 11px; }

.gk-home-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 22px; font-size: 14px; }
.gk-home-locate { display: inline-flex; align-items: center; gap: 8px; color: var(--gk-accent-text); font-weight: 600; font-size: 14px; padding: 0; }
.gk-home-locate .gk-sep { display: none; } .gk-home-locate .gk-ne { font-weight: 500; opacity: .8; margin-left: 4px; }
.gk-home-locate:hover { color: var(--gk-primary); }
.gk-home-quick-sep { width: 1px; height: 16px; background: var(--gk-border-strong); }
.gk-home-quick a { color: #334155; font-weight: 500; }
.gk-home-quick a:hover { color: var(--gk-accent-text); }
.gk-home-quick .gk-sep, .gk-home-quick a .gk-ne { display: none; }
.gk-home-quick-urgent { color: var(--gk-danger) !important; }

/* hero visual: static product composition */
.gk-home-visual { position: relative; height: 480px; }
.gk-hv-bg { position: absolute; inset: 0; border-radius: 36px; background:
  radial-gradient(260px 260px at 88% 12%, rgba(22,184,154,.35), transparent 70%),
  linear-gradient(150deg, #D6F3EA 0%, #E6EEF8 100%); }
.gk-hv-bg::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(rgba(18,52,90,.12) 1.2px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(135deg, transparent 35%, #000 100%); }
.gk-hv-mark { position: absolute; right: 26px; top: 24px; width: 190px; height: auto; opacity: .16; }
.gk-hv-card { position: absolute; background: var(--gk-surface); border-radius: 18px; box-shadow: 0 18px 44px rgba(18,52,90,.18); padding: 20px; }
.gk-hv-listing { left: 7%; top: 9%; width: 78%; z-index: 2; }
.gk-hv-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.gk-hv-name { font-weight: 700; font-size: 17px; color: var(--gk-primary); }
.gk-hv-place { font-size: 13px; color: var(--gk-muted); margin-top: 2px; }
.gk-hv-badge { font-size: 12px; font-weight: 700; color: var(--gk-teal-700); background: var(--gk-teal-100); padding: 4px 12px; border-radius: 999px; }
.gk-hv-tags { display: flex; gap: 6px; margin: 14px 0 12px; }
.gk-hv-tags > span { font-size: 12px; font-weight: 600; color: var(--gk-navy-600); background: var(--gk-navy-50); padding: 3px 11px; border-radius: 999px; }
.gk-hv-rates { border-top: 1px solid var(--gk-border); }
.gk-hv-rates > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gk-border); font-size: 14px; }
.gk-hv-rates dt { color: var(--gk-text); font-weight: 500; } .gk-hv-rates dd { color: var(--gk-primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.gk-hv-foot { display: flex; margin-top: 14px; padding-bottom: 54px; }
.gk-hv-open { font-size: 12px; color: var(--gk-success); font-weight: 600; }
.gk-hv-cta { font-size: 12px; font-weight: 700; color: #fff; background: var(--gk-primary); padding: 8px 14px; border-radius: 10px; }
.gk-hv-job { right: 5%; bottom: 6%; width: 52%; z-index: 3; padding: 16px 18px; }
.gk-hv-job-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gk-hv-job-id { font-weight: 700; font-size: 14px; color: var(--gk-primary); letter-spacing: .03em; }
.gk-hv-ready { font-size: 12px; font-weight: 700; color: var(--job-ready-fg); background: var(--job-ready-bg); padding: 3px 11px; border-radius: 999px; }
.gk-hv-steps { display: flex; gap: 5px; margin: 14px 0 10px; }
.gk-hv-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--gk-border); }
.gk-hv-steps i.on { background: var(--gk-accent); }
.gk-hv-job-note { font-size: 12px; color: var(--gk-muted); }

@media (max-width: 960px) {
  .gk-home-hero { padding: 48px 0 56px; }
  .gk-home-hero-copy { min-width: 0; }
.gk-home-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .gk-home-visual { height: 400px; max-width: 520px; }
}
@media (max-width: 620px) {
  .gk-home-search { flex-wrap: wrap; }
  .gk-home-search-field { flex: 1 1 100%; }
  .gk-home-search-city { flex: 1 1 auto; border-left: 0; border-top: 1px solid var(--gk-border); }
  .gk-home-search-btn { flex: 1 1 100%; }
  .gk-home-visual { display: none; }
  .gk-home-quick-sep { display: none; }
}

/* ---- vehicles ---- */
.gk-home-vehicles { padding: 0 0 72px; margin-top: -28px; position: relative; z-index: 2; }
.gk-vehicle-panel { display: flex; align-items: center; gap: 28px; padding: 22px; background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: 24px; box-shadow: 0 16px 44px rgba(18,52,90,.09); }
.gk-vehicle-intro { flex: 0 0 210px; padding-left: 8px; padding-right: 24px; border-right: 1px solid var(--gk-border); }
.gk-vehicle-intro h2 { font-size: 22px; line-height: 1.25; font-weight: 800; margin-bottom: 6px; }
.gk-vehicle-intro p { font-size: 13px; line-height: 1.5; color: var(--gk-muted); }
.gk-vehicle-intro .gk-sep { display: none; } .gk-vehicle-intro .gk-bilingual-inline { display: flex; flex-direction: column; }
.gk-vehicle-intro p .gk-ne { font-size: 12px; }
.gk-vehicle-grid { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gk-vehicle-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px 14px; background: var(--gk-bg); border: 1px solid transparent; border-radius: 16px; color: var(--gk-primary); text-align: center; transition: transform var(--gk-motion-fast), box-shadow var(--gk-motion-fast), border-color var(--gk-motion-fast); }
:root[data-theme="dark"] .gk-vehicle-tile { color: var(--gk-text); }
.gk-vehicle-tile:hover { transform: translateY(-3px); border-color: rgba(22,184,154,.55); box-shadow: 0 10px 24px rgba(18,52,90,.12); color: var(--gk-primary); }
.gk-vehicle-icon { width: 54px; height: 54px; margin-bottom: 6px; }
.gk-vehicle-icon .gk-ic-fill { fill: var(--gk-bg); }
.gk-vehicle-icon .gk-ic-accent { stroke: var(--gk-teal-500); }
.gk-vehicle-name { font-size: 15px; font-weight: 700; }
.gk-vehicle-ne { font-size: 12px; color: var(--gk-muted); font-family: var(--gk-font-ne); }
@media (max-width: 1040px) { .gk-vehicle-panel { flex-direction: column; align-items: stretch; } .gk-vehicle-intro { flex: none; border-right: 0; border-bottom: 1px solid var(--gk-border); padding: 0 0 16px; } .gk-vehicle-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .gk-vehicle-grid { grid-template-columns: repeat(2, 1fr); } .gk-home-vehicles { margin-top: 0; padding-top: 24px; } }

/* ---- section heads ---- */
.gk-home-sec-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.gk-home-sec-head h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
.gk-home-sec-head p { font-size: 17px; color: var(--gk-muted); }
.gk-home-sec-head .gk-sep { display: none; } .gk-home-sec-head .gk-bilingual-inline { display: flex; flex-direction: column; gap: 2px; } .gk-home-sec-head p .gk-ne { font-size: 14px; }
.gk-public-page .gk-home-sec-head h2 .gk-bilingual-inline .gk-ne { font-size: .46em; font-weight: 500; }

/* ---- how it works ---- */
.gk-home-how { padding: 24px 0 88px; }
.gk-home-steps { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: start; max-width: 980px; margin-inline: auto; }
.gk-home-steps > li { text-align: center; padding: 0 8px; }
.gk-home-step-ic { position: relative; display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; background: var(--gk-mint); color: var(--gk-primary); }
:root[data-theme="dark"] .gk-home-step-ic { color: var(--gk-teal-300); }
.gk-home-step-ic svg { width: 38px; height: 38px; }
.gk-home-step-ic b { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--gk-accent); color: var(--gk-on-accent); font-size: 13px; font-weight: 800; box-shadow: 0 0 0 4px var(--gk-bg); }
.gk-home-steps h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.gk-home-steps p { font-size: 15px; color: var(--gk-muted); max-width: 260px; margin-inline: auto; }
.gk-home-steps .gk-sep { display: none; } .gk-home-steps .gk-bilingual-inline { display: flex; flex-direction: column; gap: 3px; } .gk-home-steps p .gk-ne { font-size: 13px; }
.gk-public-page .gk-home-steps h3 .gk-bilingual-inline .gk-ne { font-size: .66em; }
.gk-home-step-arrow { position: relative; height: 88px; padding: 0 !important; }
.gk-home-step-arrow::before { content: ''; position: absolute; left: 6px; right: 12px; top: 43px; height: 2px; background: var(--gk-border-strong); }
.gk-home-step-arrow::after { content: ''; position: absolute; right: 10px; top: 38px; width: 10px; height: 10px; border-top: 2px solid var(--gk-border-strong); border-right: 2px solid var(--gk-border-strong); transform: rotate(45deg); }
@media (max-width: 800px) { .gk-home-steps { grid-template-columns: 1fr; gap: 36px; } .gk-home-step-arrow { display: none; } }

/* ---- owner banner ---- */
.gk-home-owner { padding: 0 0 96px; }
.gk-owner-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 52px 56px; border-radius: 28px; background:
  radial-gradient(420px 260px at 100% 100%, rgba(125,227,204,.35), transparent 65%),
  linear-gradient(110deg, #0B2542 0%, #12345A 48%, #0F8F7B 100%); color: #fff; min-height: 300px; }
.gk-owner-copy { position: relative; z-index: 2; max-width: 470px; }
.gk-owner-copy h2 { color: #fff; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.gk-public-page .gk-owner-copy h2 .gk-bilingual-inline .gk-ne { color: var(--gk-teal-300); font-size: .42em; }
.gk-owner-copy p { color: #D5E1EF; font-size: 17px; margin-bottom: 28px; }
.gk-owner-copy p .gk-sep { display: none; } .gk-owner-copy p .gk-bilingual-inline { display: flex; flex-direction: column; gap: 3px; } .gk-owner-copy p .gk-ne { color: var(--gk-teal-300); font-size: 14px; opacity: 1; }
.gk-owner-btn { background: #fff; color: var(--gk-navy-700); box-shadow: 0 8px 22px rgba(4,16,34,.3); }
.gk-owner-btn:hover { background: var(--gk-teal-100); color: var(--gk-navy-900); }
.gk-owner-visual { position: relative; flex: 0 0 470px; height: 250px; }
.gk-od-panel { position: absolute; right: 118px; top: 0; width: 340px; background: #fff; border-radius: 16px; padding: 14px 16px 16px; box-shadow: 0 24px 50px rgba(4,16,34,.4); color: var(--gk-text); }
.gk-od-bar { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; }
.gk-od-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--gk-border-strong); }
.gk-od-bar span { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--gk-muted); }
.gk-od-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gk-od-stats > div { background: var(--gk-bg); border-radius: 10px; padding: 8px 10px; }
.gk-od-stats small { display: block; font-size: 10px; color: var(--gk-muted); font-weight: 600; }
.gk-od-stats b { font-size: 13px; color: var(--gk-primary); font-variant-numeric: tabular-nums; }
.gk-od-chart { display: flex; align-items: flex-end; gap: 8px; height: 84px; margin-top: 14px; padding: 0 4px; }
.gk-od-chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #16B89A, #0F9D84); }
.gk-od-phone { position: absolute; right: 8px; bottom: -52px; width: 128px; height: 214px; background: #fff; border: 6px solid #0B2542; border-radius: 26px; padding: 14px 12px; box-shadow: 0 24px 50px rgba(4,16,34,.45); }
.gk-od-phone-top { width: 34px; height: 5px; border-radius: 3px; background: var(--gk-border-strong); margin: 0 auto 16px; }
.gk-od-line { height: 8px; border-radius: 4px; background: var(--gk-border); margin-bottom: 8px; } .gk-od-line.w70 { width: 70%; background: var(--gk-navy-100); }
.gk-od-chip { display: inline-block; margin-top: 10px; font-size: 10px; font-weight: 800; color: var(--job-ready-fg); background: var(--job-ready-bg); padding: 3px 10px; border-radius: 999px; }
@media (max-width: 960px) { .gk-owner-visual { display: none; } .gk-owner-banner { padding: 36px 28px; min-height: 0; } }

.gk-home-hero-copy { padding-right: 8px; }
.gk-home-search-city .gk-picker-trigger > span:first-child { overflow: visible; }
@media (min-width: 961px) { .gk-home-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } .gk-home-search { margin-right: -60px; } }
.gk-hv-job { width: 46%; right: 4%; padding: 14px 16px; } .gk-hv-ready { font-size: 11px; padding: 3px 9px; }
.gk-hv-job-id, .gk-hv-ready { white-space: nowrap; }
/* ============================================================ home: tracks, why, app */

.gk-home-how { padding-bottom: 40px; }
.gk-home-track { display: flex; align-items: center; gap: 16px; max-width: 980px; margin: 8px auto 36px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gk-accent-text); font-weight: 800; }
.gk-home-track::after { content: ''; flex: 1; height: 1px; background: var(--gk-border-strong); }
.gk-public-page .gk-home-track .gk-bilingual-inline { display: inline; }
.gk-public-page .gk-home-track .gk-sep { display: inline; }
.gk-public-page .gk-home-track .gk-bilingual-inline .gk-ne { display: inline; font-size: 1em; margin: 0; color: var(--gk-muted); text-transform: none; letter-spacing: 0; font-weight: 600; }
.gk-home-track + .gk-home-steps { margin-bottom: 56px; }

/* why */
.gk-home-why { padding: 56px 0 88px; background: var(--gk-surface); border-block: 1px solid var(--gk-border); }
.gk-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1040px; margin-inline: auto; }
.gk-why-card { padding: 34px 34px 30px; border: 1px solid var(--gk-border); border-radius: 24px; background: var(--gk-bg); }
.gk-why-card-alt { background: linear-gradient(160deg, #0B2542, #12345A); border-color: transparent; color: #fff; }
.gk-why-card > h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gk-accent-text); font-weight: 800; margin-bottom: 22px; }
.gk-why-card-alt > h3 { color: var(--gk-teal-300); }
.gk-public-page .gk-why-card > h3 .gk-bilingual-inline { display: inline; }
.gk-public-page .gk-why-card > h3 .gk-sep { display: inline; }
.gk-public-page .gk-why-card > h3 .gk-bilingual-inline .gk-ne { display: inline; font-size: 1em; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 600; color: inherit; opacity: .75; }
.gk-why-card ul { display: flex; flex-direction: column; gap: 20px; }
.gk-why-card li { position: relative; padding-left: 34px; }
.gk-why-card li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--gk-teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A67' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.gk-why-card-alt li::before { background-color: rgba(125,227,204,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237DE3CC' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.gk-why-card li b { display: block; font-size: 16px; font-weight: 700; color: var(--gk-primary); margin-bottom: 3px; }
.gk-why-card-alt li b { color: #fff; }
.gk-why-card li span { display: block; font-size: 14.5px; line-height: 1.55; color: var(--gk-muted); }
.gk-why-card-alt li span { color: #C5D3E4; }
.gk-why-card .gk-sep { display: none; }
.gk-why-card .gk-bilingual-inline { display: flex; flex-direction: column; gap: 1px; }
.gk-why-card li .gk-ne { font-size: 12.5px; opacity: .85; font-weight: 500; }
.gk-why-card li b .gk-ne { font-size: 12.5px; font-weight: 500; opacity: .8; }
.gk-why-card-alt li span .gk-ne { color: var(--gk-teal-300); opacity: 1; }
:root[data-theme="dark"] .gk-why-card li b { color: var(--gk-text); }
@media (max-width: 860px) { .gk-why-grid { grid-template-columns: 1fr; } .gk-why-card { padding: 28px 24px; } }

/* app */
.gk-home-app { padding: 88px 0; background: radial-gradient(520px 320px at 12% 40%, rgba(22,184,154,.16), transparent 65%), var(--gk-bg); }
.gk-app-grid { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: center; max-width: 1000px; }
.gk-app-phone { display: flex; justify-content: center; }
.gk-ap-screen { --gk-text: #1F2937; --gk-muted: #64748B; --gk-border: #E2E8F0; color: var(--gk-text); width: 268px; min-height: 500px; padding: 22px 16px 14px; background: #fff; border: 9px solid #0B2542; border-radius: 40px; box-shadow: 0 30px 70px rgba(18,52,90,.28); display: flex; flex-direction: column; gap: 14px; position: relative; }
.gk-ap-screen::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 64px; height: 6px; border-radius: 4px; background: #E2E8F0; }
.gk-ap-top { margin-top: 12px; display: flex; flex-direction: column; background: linear-gradient(135deg, #12345A, #0B2542); color: #C5D3E4; border-radius: 16px; padding: 16px; font-size: 12px; }
.gk-ap-top b { color: #fff; font-size: 24px; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.gk-ap-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gk-ap-kpis > div { background: var(--gk-bg); border-radius: 12px; padding: 10px 12px; }
.gk-ap-kpis small { display: block; font-size: 10px; color: var(--gk-muted); font-weight: 600; } .gk-ap-kpis b { font-size: 15px; color: var(--gk-primary); }
.gk-ap-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gk-ap-list > div { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 10px 12px; border: 1px solid var(--gk-border); border-radius: 12px; font-size: 12px; color: var(--gk-text); }
.gk-ap-list span { display: flex; flex-direction: column; font-weight: 600; } .gk-ap-list i { font-style: normal; font-size: 10px; color: var(--gk-muted); font-weight: 700; letter-spacing: .04em; }
.gk-ap-list em { font-style: normal; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.gk-ap-list em.r { background: var(--job-ready-bg); color: var(--job-ready-fg); } .gk-ap-list em.p { background: var(--job-progress-bg); color: var(--job-progress-fg); } .gk-ap-list em.a { background: var(--job-awaiting-bg); color: var(--job-awaiting-fg); }
.gk-ap-nav { display: flex; justify-content: space-around; padding-top: 6px; border-top: 1px solid var(--gk-border); }
.gk-ap-nav u { width: 22px; height: 6px; border-radius: 3px; background: var(--gk-border-strong); margin-top: 8px; } .gk-ap-nav u.on { background: var(--gk-accent); }

.gk-app-eyebrow { display: inline-block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--gk-accent-text); margin-bottom: 14px; }
.gk-app-eyebrow .gk-sep { display: inline; } .gk-app-eyebrow .gk-ne { text-transform: none; letter-spacing: 0; font-weight: 600; }
.gk-app-copy h2 { font-size: clamp(30px, 3.8vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.028em; margin-bottom: 16px; }
.gk-app-copy h2 .gk-sep { display: none; } .gk-public-page .gk-app-copy h2 .gk-bilingual-inline .gk-ne { font-size: .4em; margin-top: 8px; }
.gk-app-copy > p { font-size: 17px; line-height: 1.65; color: var(--gk-muted); max-width: 520px; margin-bottom: 24px; }
.gk-app-copy > p .gk-sep { display: none; } .gk-app-copy > p .gk-bilingual-inline { display: flex; flex-direction: column; gap: 4px; } .gk-app-copy > p .gk-ne { font-size: 14px; }
.gk-app-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.gk-app-list li { position: relative; padding-left: 32px; font-weight: 600; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-app-list li { color: var(--gk-text); }
.gk-app-list li::before { content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--gk-teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A67' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.gk-app-list .gk-sep { display: none; } .gk-app-list .gk-bilingual-inline { display: flex; flex-direction: column; } .gk-app-list .gk-ne { font-size: 12.5px; font-weight: 500; color: var(--gk-muted); opacity: 1; }
.gk-app-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.gk-app-soon { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gk-muted); font-weight: 600; }
.gk-app-soon b { background: var(--gk-warning-bg); color: var(--gk-warning); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
@media (max-width: 860px) { .gk-app-grid { grid-template-columns: 1fr; gap: 40px; } .gk-home-app { padding: 56px 0; } .gk-ap-screen { min-height: 440px; } }

/* footer app note */
.gk-footer-app { display: inline-flex; flex-direction: column; gap: 2px; margin-top: 20px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #fff; }
.gk-footer-app b { font-size: 14px; } .gk-footer-app span { font-size: 12px; color: var(--gk-teal-300); }
.gk-footer-app:hover { border-color: var(--gk-teal-300); color: #fff; }
/* ============================================================ language: one at a time */
/* Both strings are always in the markup. <html data-lang="en|ne"> picks which one shows. */
.gk-sep { display: none !important; }
html:not([data-lang="ne"]) :is(.gk-ne, [lang="ne"], .gk-th-ne, .gk-nav-ne, .gk-label-ne, .gk-content-ne, .gk-vehicle-ne, .gk-toast-ne):not(:where(input, textarea)) { display: none !important; }
html[data-lang="ne"] :is(.gk-en, .gk-th-en, .gk-nav-en, .gk-label-en, .gk-content-en) { display: none !important; }

/* when Nepali is the main text it must read as main text, not as a quiet second line */
html[data-lang="ne"] body { font-family: var(--gk-font-ne); line-height: 1.7; }
html[data-lang="ne"] :is(.gk-ne, [lang="ne"], .gk-th-ne, .gk-nav-ne, .gk-label-ne, .gk-vehicle-ne, .gk-toast-ne, .gk-home-title-ne):not(:where(input, textarea)) {
  display: inline !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important;
  opacity: 1 !important; font-weight: inherit !important; margin: 0 !important; letter-spacing: 0 !important; text-transform: none !important; font-family: var(--gk-font-ne) !important;
}
html[data-lang="ne"] .gk-th-ne, html[data-lang="ne"] .gk-nav-ne, html[data-lang="ne"] .gk-vehicle-ne { display: block !important; }
html[data-lang="ne"] .gk-content-ne { display: block !important; border-left: 0; padding-left: 0; }
html[data-lang="ne"] :is(h1, h2, h3, h4, .gk-home-title, .gk-page-title, .gk-section-title, .gk-hero-title, .gk-owner-copy h2, .gk-app-copy h2) { letter-spacing: 0 !important; font-weight: 700 !important; line-height: 1.3; }
html[data-lang="ne"] .gk-home-title { line-height: 1.25; font-size: clamp(34px, 4.6vw, 58px); }
html[data-lang="ne"] .gk-btn { letter-spacing: 0; font-size: 16px; }
html[data-lang="ne"] .gk-home-quick-urgent, html[data-lang="ne"] .gk-hero-links a { text-transform: none; }
/* stacked / flex wrappers around a single visible string */
html[data-lang="ne"] :is(.gk-bilingual-inline, .gk-bilingual-stacked) { display: inline; }
.gk-keep-lang { display: inline !important; }

/* toggle */
.gk-lang-toggle { display: inline-flex; padding: 3px; gap: 2px; background: var(--gk-navy-50); border: 1px solid var(--gk-border); border-radius: 999px; flex: none; }
:root[data-theme="dark"] .gk-lang-toggle { background: var(--gk-surface-tint); }
.gk-lang-btn { display: inline-flex; align-items: center; justify-content: center; line-height: 1; min-height: 34px; min-width: 46px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--gk-muted); letter-spacing: .02em; transition: background-color var(--gk-motion-fast), color var(--gk-motion-fast), box-shadow var(--gk-motion-fast); }
.gk-lang-btn:hover { color: var(--gk-primary); }
.gk-lang-btn[aria-pressed="true"] { background: var(--gk-primary); color: var(--gk-on-primary); box-shadow: 0 1px 3px rgba(18,52,90,.3); }
.gk-lang-btn[data-set-lang="ne"] { font-family: var(--gk-font-ne); font-size: 14px; }
.gk-sidebar .gk-lang-toggle { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
@media (max-width: 560px) { .gk-lang-btn { min-width: 40px; padding: 0 10px; } }

/* An amount ("Rs 1,200") never breaks; app.js wraps each one. */
gk-amt { white-space: nowrap; }
/* Cash & Bank accounts, the new entry form, Day Book account strip */
.gk-hint { font-size: 12px; color: var(--gk-muted); }
.gk-alert-error { background: var(--gk-danger-bg); border-color: rgba(185,28,28,.3); color: var(--gk-danger); }
.gk-danger-text { color: var(--gk-danger); }

/* Day Book: where the money is */
.gk-acct-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.gk-acct-chip { display: inline-flex; flex-direction: column; gap: 1px; padding: 8px 14px; border-radius: var(--gk-radius-md); border: 1px solid var(--gk-border); background: var(--gk-surface); color: var(--gk-text); text-decoration: none; min-width: 0; }
.gk-acct-chip.is-on { border-color: var(--gk-accent); background: var(--gk-mint); }
:root[data-theme="dark"] .gk-acct-chip.is-on { background: var(--gk-secondary); }
.gk-acct-chip-name { font-size: 12px; color: var(--gk-muted); }
.gk-acct-chip-bal { font-size: 15px; font-weight: 700; }
.gk-acct-strip-manage { margin-left: auto; font-size: 13px; }

/* Entry modal: fixed head and foot, two fields per row, optional full screen */
.gk-modal.gk-entry-modal { max-width: 820px; padding: 0; gap: 0; }
.gk-modal.gk-entry-modal.is-full { max-width: none; width: 100%; min-height: 100%; border-radius: 0; }
.gk-entry-backdrop:has(.gk-entry-modal.is-full) { padding: 0; }
.gk-entry-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px 14px 28px; border-bottom: 1px solid var(--gk-border); }
.gk-entry-close { padding: 4px 10px; min-height: 36px; }
.gk-entry-tools { display: flex; gap: 4px; }
.gk-entry-tool { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--gk-muted); cursor: pointer; }
.gk-entry-tool:hover { background: var(--gk-sunken); color: var(--gk-text); }
.gk-entry-tool:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-entry-form { display: flex; flex-direction: column; flex: 1 0 auto; }
.gk-entry-body { flex: 1 0 auto; padding: 20px 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.gk-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: start; width: 100%; }
.gk-entry-grid > * { min-width: 0; margin: 0; }
.gk-entry-wide { grid-column: 1 / -1; }
.gk-entry-modal.is-full .gk-entry-grid { max-width: 1040px; margin: 0 auto; }
.gk-entry-foot { padding: 14px 28px; border-top: 1px solid var(--gk-border); background: var(--gk-bg); border-radius: 0 0 var(--gk-radius-xl) var(--gk-radius-xl); }
.gk-entry-modal.is-full .gk-entry-foot { border-radius: 0; }
.gk-entry-modal .gk-label { color: var(--gk-text); }
.gk-entry-grid .gk-paynow { flex-wrap: nowrap; }
.gk-layout-owner .gk-entry-grid .gk-paynow .gk-seg-btn { flex: 1 1 0; min-width: 0; min-height: 44px; flex-wrap: wrap; row-gap: 0; }
.gk-entry-photo { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1.5px dashed var(--gk-border-strong); border-radius: var(--gk-radius-md); color: var(--gk-muted); cursor: pointer; }
.gk-entry-photo:hover { border-color: var(--gk-accent); background: var(--gk-surface-tint); }
.gk-entry-photo:focus-within { box-shadow: var(--gk-focus); }
.gk-entry-photo.is-error { border-color: var(--gk-danger); }
.gk-entry-photo svg { flex: none; }
.gk-entry-photo img { width: 48px; height: 48px; flex: none; object-fit: cover; border-radius: 8px; }
.gk-entry-photo-text { display: flex; flex-direction: column; min-width: 0; font-size: 14px; color: var(--gk-text); }
.gk-entry-photo-text small { font-size: 12px; color: var(--gk-muted); }
@media (max-width: 640px) {
  .gk-entry-grid { grid-template-columns: minmax(0, 1fr); }
  .gk-entry-gap { display: none; }
  .gk-entry-full { display: none; }
  .gk-entry-head, .gk-entry-body, .gk-entry-foot { padding-left: 16px; padding-right: 16px; }
}
.gk-newcat { display: flex; gap: 8px; margin-top: 8px; }
.gk-newcat .gk-input { flex: 1; min-height: 40px; }
.gk-file-input { padding: 8px; height: auto; }

/* Type pills */
.gk-type-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gk-sunken); color: var(--gk-muted); }
.gk-type-pill.is-in { background: var(--gk-success-bg); color: var(--gk-success); }
.gk-type-pill.is-out { background: var(--gk-danger-bg); color: var(--gk-danger); }
.gk-type-pill.is-udhar { background: var(--gk-warning-bg); color: var(--gk-warning-text); }
.gk-pill-edited { margin-left: 4px; border: 1px solid var(--gk-border); }
.gk-btn-danger-text { color: var(--gk-danger); }
.gk-entry-acct { font-size: 11px; color: var(--gk-muted); margin-top: 2px; }
.gk-entry-bill { margin-left: 8px; font-size: 12px; white-space: nowrap; }

/* Accounts page */
.gk-accounts { display: flex; flex-direction: column; gap: 16px; }
.gk-accounts-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px; }
.gk-accounts-total-n { display: block; font-size: 30px; line-height: 40px; color: var(--gk-text); }
.gk-accounts-form { padding: 20px; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.gk-accounts-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.gk-account-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.gk-account-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gk-account-name { font-weight: 700; font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gk-account-bal { font-size: 20px; color: var(--gk-success); white-space: nowrap; }
.gk-account-bal.is-neg { color: var(--gk-danger); }
.gk-account-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.gk-account-actions .gk-btn { min-height: 36px; padding: 4px 10px; font-size: 13px; }
.gk-account-inline { display: flex; flex-direction: column; gap: 10px; }
.gk-accounts-note { margin: 0; }

/* Home: money you have */
.gk-hand-card { margin-bottom: 24px; }
.gk-hand-total { margin-left: 8px; font-size: 18px; color: var(--gk-text); }
.gk-hand-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.gk-hand-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: 10px; border-left: 3px solid var(--gk-accent); }
.gk-hand-item strong { font-size: 17px; white-space: nowrap; color: var(--gk-text); }

/* Day Book row actions, share-by-hand box, manual payment */
.gk-btn-row { min-height: 48px; padding: 4px 8px; font-size: 13px; }
.gk-share-box { padding: 16px; margin-bottom: 20px; border-left: 4px solid var(--gk-warning); }
.gk-share-text { margin: 8px 0; overflow-wrap: anywhere; }
.gk-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gk-checkout-card { padding: 24px; margin-bottom: 24px; }
.gk-checkout-title { margin: 0 0 12px; font-size: 18px; }
.gk-checkout-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.gk-checkout-packs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.gk-checkout-where { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.gk-checkout-qr { width: 180px; max-width: 100%; border: 1px solid var(--gk-border); border-radius: 8px; background: #fff; }
.gk-checkout-bank { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.gk-checkout-bank dt { color: var(--gk-muted); }
.gk-checkout-bank dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.gk-checkout-total { margin: 0; }
.gk-checkout-choose { margin-top: 12px; width: 100%; }
.gk-checkout-history { margin: 16px 0 0; padding-left: 18px; font-size: 13px; }

.gk-report-party { padding: 16px; margin-bottom: 16px; }
.gk-report-party-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gk-line-ne { margin-top: 6px; min-height: 38px; font-size: 13px; }
.gk-checkout-packs .gk-btn { flex: 1 1 96px; width: auto; }
.gk-line-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gk-line-actions .gk-btn { white-space: nowrap; width: auto; }

/* dark-mode contrast on the home quick links (loads after 05) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gk-home-quick a { color: var(--gk-text); } }
:root[data-theme="dark"] .gk-home-quick a { color: var(--gk-text); }
.gk-doc-answered { padding: 0 20px 20px; }
/* contrast: these only switched for a chosen dark theme, not for the system one */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gk-lang-toggle { background: var(--gk-surface-tint); }
  :root:not([data-theme="light"]) .gk-tag-service { color: var(--gk-teal-300); }
}
:root[data-theme="dark"] .gk-tag-service { color: var(--gk-teal-300); }
.gk-lang-btn[aria-pressed="false"] { color: #475569; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gk-lang-btn[aria-pressed="false"] { color: var(--gk-text); } }
:root[data-theme="dark"] .gk-lang-btn[aria-pressed="false"] { color: var(--gk-text); }
.gk-sidebar .gk-lang-btn[aria-pressed="false"] { color: #C5D3E4; }
.gk-contact-heading { font-size: 18px; line-height: 26px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gk-badge-verified { color: var(--gk-teal-300); } }
:root[data-theme="dark"] .gk-badge-verified { color: var(--gk-teal-300); }

/* Screen checks, 26 Nov */
.gk-emergency-header .gk-emergency-badge { width: auto; height: auto; border-radius: 999px; padding: 8px 18px; gap: 8px; font-weight: 700; color: var(--gk-danger); box-shadow: none; }
.gk-emergency-badge .gk-sep { display: none; }
.gk-emergency-page .gk-alert-info { flex-direction: column; }
.gk-content-en > * + * { margin-top: 12px; }
.gk-content-en > :is(h2, h3):not(:first-child) { margin-top: 28px; }
.gk-service-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.gk-service-row > * { min-width: 0; }
@media (max-width: 640px) {
  .gk-service-row { grid-template-columns: 1fr 1fr auto; margin-bottom: 16px; }
  .gk-service-row > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) { .gk-table.gk-stack :is(th, td) { padding-inline: 8px; } }

/* Phone: wide tables become one card per row, so amounts and actions are never off screen. */
@media (max-width: 640px) {
  .gk-table.gk-stack, .gk-table.gk-stack :is(tbody, tfoot, tr, td) { display: block; width: 100%; }
  .gk-table.gk-stack thead { display: none; }
  .gk-table.gk-stack tr { padding: 10px 0; border-bottom: 1px solid var(--gk-border); }
  .gk-table.gk-stack td { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px; border: 0; padding: 4px 14px; text-align: right; }
  .gk-table.gk-stack td[data-label]::before { content: attr(data-label); color: var(--gk-muted); font-size: 12px; font-weight: 600; text-align: left; margin-right: auto; }
  html[data-lang="ne"] .gk-table.gk-stack td[data-label-ne]::before { content: attr(data-label-ne); }
  .gk-table.gk-stack td:empty { display: none; }
  .gk-table.gk-stack tr.gk-stack-total { display: flex; justify-content: space-between; }
  .gk-table.gk-stack tr.gk-stack-total td { width: auto; }
}

/* Income, expense and journal pages */
.gk-flash { background: var(--gk-secondary); color: var(--gk-primary); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.gk-money-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px; margin-bottom: 16px; }
.gk-money-total { font-size: 26px; font-weight: 700; margin-top: 4px; }
.gk-money-total.is-in { color: var(--gk-success); }
.gk-money-total.is-out { color: var(--gk-danger); }
.gk-filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; padding: 14px 18px; margin-bottom: 16px; }
.gk-filter-field { min-width: 190px; }
.gk-filter-grow { flex: 1; }
.gk-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }
.gk-locked { padding: 32px 20px; text-align: center; }
.gk-locked-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.gk-journal-form { padding: 18px; margin-bottom: 16px; }
.gk-journal-top { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 12px; }
.gk-journal-line { display: grid; grid-template-columns: 2fr 1fr 1fr 48px; gap: 12px; align-items: start; }
.gk-journal-remove { min-height: 48px; margin-top: 22px; }
.gk-journal-totals { display: flex; gap: 20px; flex-wrap: wrap; padding: 12px 0; font-weight: 700; }
.gk-journal-diff { color: var(--gk-danger); }
.gk-journal-card { padding: 16px; margin-bottom: 12px; }
.gk-journal-card-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.gk-journal-reverse { border-top: 1px solid var(--gk-border); padding-top: 12px; }
@media (max-width: 767px) {
  .gk-journal-top, .gk-journal-line { grid-template-columns: 1fr; }
  .gk-journal-remove { margin-top: 0; }
  .gk-filter-field { flex: 1 1 100%; }
}
.gk-book-choices { display: flex; gap: 6px; flex-wrap: wrap; }
.gk-report-sub { margin: 16px 0 8px; }
.gk-money-page, .gk-journal-page { display: block; }

/* Parts and stock */
.gk-parts-page { display: block; }
.gk-stock-form { padding: 18px; margin-bottom: 16px; }
.gk-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.gk-table-card { padding: 0; overflow: hidden; }
.gk-chip-low { margin-left: 8px; color: var(--gk-danger); border-color: var(--gk-danger); }
.gk-qty-input { max-width: 130px; }
.gk-danger-link { color: var(--gk-danger); margin-top: 12px; }
.gk-job-part { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--gk-border); }
.gk-job-part-back { display: flex; gap: 8px; align-items: center; }
.gk-check { display: flex; gap: 8px; align-items: center; min-height: 48px; }
.gk-sms-actions { margin-top: 16px; }

/* Parts page (28 Nov): heading, totals, list with filter tabs, row menu, modal form */
.gk-pt-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.gk-pt-lead { flex: 1 1 300px; margin: 0; color: var(--gk-muted); font-size: 15px; max-width: 460px; }
.gk-pt-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gk-pt-head-actions .gk-btn { display: inline-flex; align-items: center; gap: 8px; }
.gk-pt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.gk-pt-stat { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; text-align: left; font: inherit; color: inherit; border-left: 4px solid var(--gk-border); }
.gk-pt-stat-btn { cursor: pointer; transition: box-shadow var(--gk-motion-fast), border-color var(--gk-motion-fast); }
.gk-pt-stat-btn:hover { box-shadow: var(--gk-elevation-raised); }
.gk-pt-stat-btn:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-pt-stat.is-warn { border-left-color: var(--gk-warning-fill); }
.gk-pt-stat.is-danger { border-left-color: var(--gk-danger); }
.gk-pt-stat.is-on { background: var(--gk-surface-tint); }
.gk-pt-stat-label { font-size: 13px; font-weight: 600; color: var(--gk-muted); }
.gk-pt-stat-value { font-size: 24px; line-height: 30px; font-weight: 700; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-pt-stat-value { color: var(--gk-text); }
.gk-pt-list { padding: 0; overflow: visible; }
.gk-pt-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--gk-border); }
.gk-pt-search { position: relative; flex: 1 1 280px; max-width: 420px; display: flex; align-items: center; }
.gk-pt-search svg { position: absolute; left: 14px; color: var(--gk-muted); pointer-events: none; }
.gk-pt-search .gk-input { padding-left: 42px; }
.gk-pt-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--gk-radius-md); background: var(--gk-sunken); }
.gk-pt-tab { min-height: 40px; padding: 6px 16px; border: 0; border-radius: var(--gk-radius-sm); background: transparent; color: var(--gk-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.gk-pt-tab:hover { color: var(--gk-primary); }
.gk-pt-tab.is-on { background: var(--gk-surface); color: var(--gk-primary); box-shadow: var(--gk-elevation-card); }
.gk-pt-tab:focus-visible { outline: none; box-shadow: var(--gk-focus); }
:root[data-theme="dark"] .gk-pt-tab.is-on { color: var(--gk-text); }
.gk-pt-table-wrap { border: 0; border-radius: 0 0 var(--gk-radius-lg) var(--gk-radius-lg); overflow: visible; }
.gk-pt-table th.gk-pt-num, .gk-pt-table td.gk-pt-num { text-align: right; }
.gk-pt-table td { vertical-align: top; }
.gk-pt-act { width: 1%; white-space: nowrap; }
.gk-pt-name { font-weight: 600; color: var(--gk-text); }
.gk-pt-sub { display: flex; gap: 8px; margin-top: 2px; font-size: 13px; color: var(--gk-muted); }
.gk-pt-code { font-variant-numeric: tabular-nums; padding: 0 6px; border-radius: 4px; background: var(--gk-sunken); }
.gk-pt-qty { font-weight: 600; }
.gk-pt-unit { font-weight: 400; color: var(--gk-muted); }
.gk-pt-dim { color: var(--gk-muted); }
.gk-pt-pill { display: inline-flex; align-items: center; margin-top: 4px; padding: 2px 10px; border-radius: var(--gk-radius-pill); font-size: 12px; font-weight: 600; line-height: 18px; }
.gk-pt-pill.is-danger { background: var(--gk-danger-bg); color: var(--gk-danger); }
.gk-pt-pill.is-warn { background: var(--gk-warning-bg); color: var(--gk-warning-text); }
.gk-pt-pill.is-muted { background: var(--gk-sunken); color: var(--gk-muted); }
.gk-pt-pill-btn { border: 0; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; min-height: 32px; }
.gk-pt-margin { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--gk-success); }
.gk-pt-margin.is-loss { color: var(--gk-danger); }
.gk-pt-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.gk-pt-menu { position: relative; }
.gk-pt-menu-btn { min-width: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--gk-muted); }
.gk-pt-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 60; min-width: 230px; padding: 6px; display: flex; flex-direction: column; background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); box-shadow: var(--gk-elevation-raised); }
.gk-pt-menu-list > button, .gk-pt-menu-list > a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--gk-radius-sm); background: transparent; color: var(--gk-text); font: inherit; font-size: 14px; font-weight: 500; text-align: left; text-decoration: none; white-space: normal; cursor: pointer; }
.gk-pt-menu-list > button:hover, .gk-pt-menu-list > a:hover { background: var(--gk-teal-50); }
:root[data-theme="dark"] .gk-pt-menu-list > button:hover, :root[data-theme="dark"] .gk-pt-menu-list > a:hover { background: var(--gk-sunken); }
.gk-pt-menu-list > .is-danger { color: var(--gk-danger); border-top: 1px solid var(--gk-border); border-radius: 0 0 var(--gk-radius-sm) var(--gk-radius-sm); }
.gk-pt-menu-note { padding: 10px 12px 6px; border-top: 1px solid var(--gk-border); font-size: 12px; line-height: 18px; color: var(--gk-muted); white-space: normal; }
.gk-pt-modal { max-width: 600px; gap: 16px; }
.gk-pt-modal-wide { max-width: 880px; }
.gk-pt-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gk-pt-modal-head .gk-hint { margin: 4px 0 0; }
.gk-modal.gk-entry-modal.gk-pt-form-modal:not(.is-full) { max-width: 860px; }
.gk-pt-form-modal .gk-entry-head .gk-hint { margin: 4px 0 0; }
.gk-pt-form-sep { padding-top: 14px; border-top: 1px solid var(--gk-border); font-size: 13px; font-weight: 700; color: var(--gk-muted); }
.gk-pt-profit { min-height: 24px; }
.gk-pt-form-name { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.gk-pt-profit > div { display: flex; align-items: baseline; gap: 10px; color: var(--gk-success); }
.gk-pt-profit > div.is-loss { color: var(--gk-danger); }
.gk-pt-profit-label { font-size: 13px; font-weight: 600; color: var(--gk-muted); }
.gk-pt-profit strong { font-size: 18px; }
@media (max-width: 1023px) { .gk-pt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .gk-pt-head-actions { width: 100%; }
  .gk-pt-head-actions .gk-btn { flex: 1 1 auto; justify-content: center; }
  .gk-pt-toolbar { flex-direction: column; align-items: stretch; }
  .gk-pt-search { flex: none; max-width: none; }
  .gk-pt-tabs { justify-content: space-between; }
  .gk-pt-tab { flex: 1; padding: 6px 8px; font-size: 13px; white-space: nowrap; }
  .gk-pt-table-wrap { overflow-x: auto; }
  .gk-pt-form-name { grid-template-columns: 1fr; }
  .gk-pt-stat-value { font-size: 20px; }
}

/* Entry form: paid now / udhar, then an account list with balances and a + to add one */
.gk-paynow .gk-seg-btn { flex: 1 1 140px; }
.gk-acct-pick { display: flex; gap: 8px; align-items: stretch; }
.gk-acct-pick .gk-picker-wrapper { flex: 1; min-width: 0; }
.gk-acct-add { min-width: 48px; min-height: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.gk-acct-new { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px dashed var(--gk-border-strong); border-radius: var(--gk-radius-md); background: var(--gk-surface-tint); }
.gk-acct-new-actions { display: flex; justify-content: flex-end; gap: 8px; }

.gk-entry-category { display: block; font-weight: 600; color: var(--gk-text); }
/* Phone: one part fits in a short card (name, left, cost, price, actions); stock value stays on wider screens. */
@media (max-width: 640px) {
  .gk-pt-table.gk-stack tr { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; column-gap: 4px; }
  .gk-pt-table.gk-stack td { display: block; width: auto; text-align: left !important; padding: 2px 12px; }
  .gk-pt-table.gk-stack td:first-child, .gk-pt-table.gk-stack td.gk-pt-act { grid-column: 1 / -1; }
  .gk-pt-table.gk-stack td:first-child[data-label]::before, .gk-pt-table.gk-stack td.gk-pt-act[data-label]::before { display: none; }
  .gk-pt-table.gk-stack .gk-pt-pill { display: inline-block; border-radius: 8px; padding: 2px 8px; line-height: 1.35; }
  .gk-pt-table.gk-stack td[data-label]::before { display: block; margin: 0; }
  .gk-pt-table.gk-stack td.gk-pt-value { display: none; }
  .gk-pt-table.gk-stack .gk-pt-actions { justify-content: flex-end; }
}
.gk-chip-draft { margin-left: 8px; background: var(--gk-warning-bg); color: var(--gk-warning-text); text-transform: none; }
/* ============================================================ responsive + app-like shell */

.gk-public-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.gk-public-body :is(a, button) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.gk-public-body img { max-width: 100%; }
/* logos and marks keep their own proportions at every width */
.gk-wordmark img, .gk-footer-brand img { width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.gk-hv-mark { height: auto; }
.gk-public-body .gk-wordmark { min-height: 44px; }

/* theme switch (public and owner headers) */
.gk-theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--gk-border); background: var(--gk-surface); color: var(--gk-text); cursor: pointer; }
.gk-theme-toggle:hover { border-color: var(--gk-accent); }
.gk-theme-toggle .gk-theme-sun { display: none; }
:root[data-theme="dark"] .gk-theme-toggle .gk-theme-sun { display: block; }
:root[data-theme="dark"] .gk-theme-toggle .gk-theme-moon { display: none; }

/* grid children may shrink: stops long emails and numbers widening the page */
.gk-contact-grid > *, .gk-profile-info-grid > *, .gk-garages-layout > *, .gk-article-layout > * { min-width: 0; }
.gk-channel-card > div { min-width: 0; }
.gk-channel-val { overflow-wrap: anywhere; }

.gk-tabbar { display: none; }

/* tablet header: one-line buttons */
@media (min-width: 768px) and (max-width: 1023px) {
  .gk-topbar-inner { gap: 12px; padding-inline: 16px; }
  .gk-topbar-nav { gap: 6px; }
  .gk-topbar-nav .gk-btn { padding-inline: 10px; white-space: nowrap; }
  .gk-wordmark img { height: 30px; }
}
.gk-topbar-login { white-space: nowrap; }

/* stacked hero: the preview card keeps one shape and never spills out of its box */
@media (min-width: 621px) and (max-width: 960px) {
  .gk-home-visual { height: auto; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; margin-inline: auto; }
}

/* tablet and phone are touch screens: finger-sized targets */
@media (max-width: 1023px) {
  .gk-lang-btn { min-height: 38px; position: relative; }
  .gk-lang-btn::after { content: ''; position: absolute; inset: -5px 0; }
  .gk-public-body .gk-public-content :is(.gk-btn, .gk-date-toggle-btn, .gk-date-preset-btn), .gk-home-locate, .gk-home-quick a { min-height: 44px; }
  .gk-home-quick a, .gk-guides-page a.gk-link { display: inline-flex; align-items: center; min-height: 44px; }
  .gk-footer-col a { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
}

/* phone */
@media (max-width: 767px) {
  /* app bar */
  .gk-public-topbar { padding-top: env(safe-area-inset-top); }
  .gk-public-topbar .gk-topbar-inner { min-height: 60px; gap: 8px; padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); }
  .gk-public-topbar .gk-wordmark { flex: 0 1 auto; min-width: 0; min-height: 44px; }
  .gk-public-topbar .gk-wordmark img { height: 30px; }
  .gk-public-topbar .gk-topbar-nav { gap: 8px; flex: none; }
  .gk-public-topbar .gk-topbar-nav > a { display: none; }

  /* bottom tab bar */
  .gk-has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .gk-tabbar { position: fixed; inset: auto 0 0 0; z-index: 110; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 4px max(4px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left)); background: var(--gk-surface); border-top: 1px solid var(--gk-border); box-shadow: 0 -6px 20px rgba(18,52,90,.08); }
  .gk-tabbar-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 55px; border-radius: 14px; color: var(--gk-muted); font-size: 11px; font-weight: 600; line-height: 1.3; text-align: center; }
  .gk-tabbar-item > span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gk-tabbar-item .gk-sep { display: none; }
  .gk-tabbar-item[aria-current="page"] { color: var(--gk-accent-text); background: var(--gk-mint); }
  :root[data-theme="dark"] .gk-tabbar-item[aria-current="page"] { color: var(--gk-teal-300); background: var(--gk-surface-tint); }

  /* touch */
  .gk-public-body .gk-public-content :is(input, textarea):not([type="checkbox"]):not([type="radio"]) { font-size: 16px; } /* no iOS zoom on focus */
  .gk-public-body :is(.gk-btn, .gk-vehicle-tile, .gk-tabbar-item):active { transform: scale(.97); }

  /* compact footer */
  .gk-public-footer { padding: 36px 0 24px; }
  .gk-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .gk-footer-brand { grid-column: 1 / -1; }
}

@media (hover: none) {
  .gk-vehicle-tile:hover, .gk-service-card:hover, .gk-benefit-card:hover, .gk-article-card:hover { transform: none; }
}

@media (max-width: 400px) {
  .gk-public-topbar .gk-wordmark img { height: 24px; }
  .gk-public-topbar .gk-lang-btn { min-width: 36px; padding: 0 8px; }
}

@media (max-width: 620px) {
  /* app-style launcher grid: equal square tiles */
  .gk-vehicle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .gk-vehicle-tile { aspect-ratio: 1 / 1; justify-content: center; padding: 8px 4px; }
  .gk-vehicle-icon { width: 44%; height: auto; aspect-ratio: 1 / 1; margin-bottom: 2px; }
  .gk-vehicle-panel { padding: 16px; }
  .gk-vehicle-name { font-size: 13px; }

  /* steps read as a list: icon left, text right */
  .gk-home-steps { gap: 20px; }
  .gk-home-steps > li:not(.gk-home-step-arrow) { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; text-align: left; padding: 0; }
  .gk-home-steps .gk-home-step-ic { grid-row: 1 / span 2; width: 56px; height: 56px; margin: 4px 0 0; align-self: start; }
  .gk-home-step-ic svg { width: 26px; height: 26px; }
  .gk-home-steps h3 { font-size: 17px; margin-bottom: 4px; align-self: end; }
  .gk-home-steps p { max-width: none; margin: 0; }
  .gk-home-track { margin-bottom: 20px; }
  .gk-home-track + .gk-home-steps { margin-bottom: 36px; }
  .gk-home-sec-head { margin-bottom: 28px; }
  .gk-home-why, .gk-home-how { padding-bottom: 40px; }
  .gk-home-why { padding-top: 40px; }

  /* app phone mock-up keeps a handset shape */
  .gk-ap-screen { width: min(268px, 78vw); min-height: 0; aspect-ratio: 9 / 17; }

  /* plans swipe sideways, one card at a time */
  .gk-plans-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--gk-gutter-mobile)); padding: 18px var(--gk-gutter-mobile) 20px; scroll-padding-inline: var(--gk-gutter-mobile); }
  .gk-plans-grid > .gk-plan-card { flex: 0 0 84%; scroll-snap-align: start; padding: 24px; transform: none; }

  .gk-photos-grid { grid-template-columns: 1fr; }
}

/* desktop hero panel is tall enough to hold the whole preview card */
@media (min-width: 961px) { .gk-home-visual { height: 520px; } }
:root[data-theme="dark"] .gk-hv-bg { background: radial-gradient(260px 260px at 88% 12%, rgba(22,184,154,.28), transparent 70%), linear-gradient(150deg, #123B44 0%, #16294A 100%); }

/* smallest phones: all five tab labels stay readable in full */
@media (max-width: 360px) { .gk-tabbar { padding-inline: 2px; } .gk-tabbar-item { font-size: 10px; letter-spacing: -.01em; } }

/* ---- Launch screens: Home, Sell Part, quick forms (26 Nov) ---- */

/* Payment buttons */
.gk-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.gk-seg-btn { flex: 1 1 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; padding: 8px 10px; border-radius: var(--gk-radius-md); border: 1.5px solid var(--gk-border); background: var(--gk-surface); color: var(--gk-text); font: inherit; font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; }
.gk-seg-btn small { font-size: 11px; font-weight: 500; color: var(--gk-muted); }
.gk-seg-btn:hover { border-color: var(--gk-accent); }
.gk-seg-btn.is-on { background: var(--gk-primary); border-color: var(--gk-primary); color: var(--gk-on-primary); }
.gk-seg-btn.is-on small { color: var(--gk-on-primary); opacity: .85; }
.gk-seg-btn:focus-visible { outline: 3px solid var(--gk-accent); outline-offset: 2px; }

/* Home */
.gk-home-top { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; margin-bottom: 20px; align-items: stretch; }
.gk-home-top > * { min-width: 0; }
.gk-profit { background: var(--gk-sidebar-bg); color: #fff; border-radius: var(--gk-radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.gk-profit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gk-profit-label { display: block; font-size: 13px; opacity: .78; }
.gk-profit-value { display: block; font-size: 38px; line-height: 46px; font-weight: 700; overflow-wrap: anywhere; }
.gk-profit-how { min-height: 48px; min-width: 64px; padding: 4px 12px; background: none; border: 1px solid rgba(255,255,255,.28); border-radius: var(--gk-radius-pill); color: var(--gk-teal-300); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gk-profit-how:focus-visible, .gk-profit a:focus-visible { outline: 3px solid var(--gk-accent); outline-offset: 2px; }
.gk-profit-missing { display: block; padding: 10px 12px; border-radius: var(--gk-radius-sm, 6px); background: #FCF1CC; color: #1F2937; font-size: 13px; font-weight: 600; text-decoration: none; }
.gk-profit-how-body { margin: 0; font-size: 14px; }
.gk-profit-how-body > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.gk-profit-how-body dt, .gk-profit-how-body dd { margin: 0; }
.gk-profit-how-body dd { white-space: nowrap; font-weight: 700; }
.gk-profit-how-body p { margin: 10px 0 0; font-size: 12px; opacity: .78; }
.gk-profit-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); color: inherit; text-decoration: none; }
.gk-profit-flow small { display: block; font-size: 12px; opacity: .78; }
.gk-profit-flow strong { font-size: 22px; overflow-wrap: anywhere; }
.gk-split { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.gk-split-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gk-split-row small { display: block; font-size: 12px; color: var(--gk-muted); }
.gk-split-row strong { font-size: 17px; overflow-wrap: anywhere; }
.gk-split-note { margin: 0; padding-top: 10px; border-top: 1px solid var(--gk-border); font-size: 12px; color: var(--gk-muted); }
.gk-split-dues { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.gk-split-dues a { min-height: 48px; text-decoration: none; }
.gk-quick-grid.is-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gk-needs { margin-bottom: 24px; }
.gk-needs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gk-needs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--gk-border); border-left: 3px solid var(--gk-accent); border-radius: var(--gk-radius-md); background: var(--gk-bg); color: var(--gk-text); text-decoration: none; font-size: 14px; font-weight: 600; }
.gk-needs-row.is-warn { border-left-color: var(--gk-warning); }
.gk-needs-row strong { font-size: 18px; }
@media (max-width: 1279px) { .gk-quick-grid.is-six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .gk-home-top, .gk-needs-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .gk-quick-grid.is-six { gap: 8px; }
  .gk-quick-grid.is-six .gk-quick-tile { align-items: center; text-align: center; padding: 12px 4px; gap: 6px; font-size: 13px; }
  .gk-profit-value { font-size: 32px; line-height: 40px; }
}

/* Sell Part */
.gk-pos-page { display: block; }
.gk-receipt { font-size: 14px; }
.gk-pos { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px; align-items: start; }
.gk-pos-pick, .gk-pos-cart { padding: 16px; min-width: 0; }
.gk-pos-search { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.gk-pos-results { list-style: none; margin: 0 0 12px; padding: 0; }
.gk-pos-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 10px; background: none; border: 0; border-bottom: 1px solid var(--gk-border); color: var(--gk-text); font: inherit; text-align: left; cursor: pointer; }
.gk-pos-result:hover { background: var(--gk-bg); }
.gk-pos-result:focus-visible { outline: 3px solid var(--gk-accent); outline-offset: -3px; }
.gk-pos-result-main { display: flex; flex-direction: column; min-width: 0; }
.gk-pos-price { font-weight: 700; white-space: nowrap; }
.gk-pos-warn { color: var(--gk-warning-text, #8A5A00); font-weight: 600; }
.gk-pos-add { width: 100%; }
.gk-pos-quick { margin: 8px 0 12px; padding: 12px; border: 1px dashed var(--gk-border); border-radius: var(--gk-radius-md); }
.gk-pos-cart { display: flex; flex-direction: column; gap: 12px; }
.gk-pos-line { padding-bottom: 12px; border-bottom: 1px solid var(--gk-border); }
.gk-pos-line-head { display: flex; align-items: center; gap: 12px; }
.gk-pos-line-head strong:first-child { flex: 1; min-width: 0; }
.gk-pos-x { min-width: 48px; min-height: 48px; }
.gk-pos-line-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.gk-stepper { display: flex; gap: 4px; }
.gk-stepper input { min-width: 0; text-align: center; }
.gk-stepper button { flex: none; width: 48px; min-height: 48px; border: 1.5px solid var(--gk-border); border-radius: var(--gk-radius-md); background: var(--gk-surface); color: var(--gk-text); font: inherit; font-size: 20px; cursor: pointer; }
.gk-stepper button:focus-visible { outline: 3px solid var(--gk-accent); outline-offset: 2px; }
.gk-pos-note { margin: 8px 0; padding: 10px 12px; border-radius: var(--gk-radius-sm, 6px); background: #FCF1CC; color: #1F2937; font-size: 13px; }
.gk-pos-note .gk-link { font-weight: 700; color: #12345A; }
.gk-picked { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 12px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); }
.gk-pick-list { list-style: none; margin: 4px 0 0; padding: 4px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); background: var(--gk-surface); }
.gk-pick-list button { display: flex; gap: 8px; align-items: center; width: 100%; min-height: 48px; padding: 4px 10px; background: none; border: 0; color: var(--gk-text); font: inherit; text-align: left; cursor: pointer; }
.gk-pick-list button:hover, .gk-pick-list button:focus-visible { background: var(--gk-bg); }
.gk-pick-none { padding: 10px; }
.gk-pos-foot { position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 8px; margin: 0 -16px -16px; padding: 12px 16px 16px; background: var(--gk-surface); border-top: 1px solid var(--gk-border); border-radius: 0 0 var(--gk-radius-lg) var(--gk-radius-lg); }
.gk-pos-total { display: flex; justify-content: space-between; align-items: baseline; }
.gk-pos-total strong { font-size: 26px; }
.gk-pos-done { max-width: 560px; margin: 8px auto 24px; padding: 28px 28px 24px; }
.gk-pos-done-title { margin: 0; text-align: center; font-size: 20px; color: var(--gk-primary); }
.gk-sale-done-head { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 20px; text-align: center; }
.gk-sale-done-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 50%; background: var(--gk-mint); color: var(--gk-accent-text); box-shadow: 0 0 0 8px color-mix(in srgb, var(--gk-mint) 45%, transparent); }
.gk-sale-done-icon.is-udhar { background: #FCF1CC; color: #8A5A00; box-shadow: 0 0 0 8px rgba(252, 241, 204, .45); }
.gk-sale-done-amount { margin: 4px 0 0; font-size: 32px; line-height: 40px; font-weight: 700; color: var(--gk-text); }
.gk-sale-done-sub { margin: 0; color: var(--gk-muted); font-size: 14px; }
.gk-sale-done-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--gk-border); }
.gk-sale-done-actions .gk-btn { width: 100%; }
.gk-receipt { padding: 18px 20px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); background: var(--gk-bg); }
.gk-receipt-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; padding-bottom: 14px; border-bottom: 1px dashed var(--gk-border); font-size: 14px; }
.gk-receipt-brand { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gk-receipt-brand strong { font-size: 16px; color: var(--gk-primary); }
.gk-receipt-brand span { color: var(--gk-muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.gk-receipt-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.gk-receipt-meta .is-wide { grid-column: 1 / -1; }
.gk-receipt-meta dt { color: var(--gk-muted); font-size: 12px; }
.gk-receipt-meta dd { margin: 2px 0 0; font-weight: 600; color: var(--gk-text); }
.gk-receipt-phone { color: var(--gk-muted); font-weight: 500; }
.gk-receipt-lines { list-style: none; margin: 0; padding: 0; }
.gk-receipt-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gk-border); }
.gk-receipt-lines li > .gk-tabular { font-weight: 600; white-space: nowrap; }
.gk-receipt-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: 600; }
.gk-receipt-item small { color: var(--gk-muted); font-size: 12px; font-weight: 500; }
.gk-receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 10px 0 8px; font-weight: 700; }
.gk-receipt-total strong { font-size: 22px; color: var(--gk-primary); }
.gk-receipt-paid { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; padding: 4px 12px; border-radius: var(--gk-radius-pill); background: var(--gk-success-bg); color: var(--gk-success); font-size: 13px; font-weight: 600; }
.gk-receipt-paid.is-udhar { background: #FCF1CC; color: #8A5A00; }
.gk-receipt-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.gk-receipt-actions .gk-btn { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 160px; }
.gk-sale-pay { display: flex; flex-direction: column; gap: 12px; }
.gk-sale-pay > .gk-hint { margin: -4px 0 0 152px; }
.gk-switch { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; padding: 3px; border: 1px solid var(--gk-border); border-radius: 10px; background: var(--gk-bg); }
.gk-switch-btn { min-height: calc(var(--gk-ctl-h, 40px) - 4px); padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--gk-muted); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
.gk-switch-btn:hover { color: var(--gk-text); }
.gk-switch-btn.is-on { background: var(--gk-surface); color: var(--gk-primary); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 0 0 1px var(--gk-border); }
.gk-switch-btn:focus-visible { outline: 2px solid var(--gk-accent); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .gk-switch-btn { transition: none; } }
@media (max-width: 767px) { .gk-sale-pay > .gk-hint { margin-left: 0; } }
@media (max-width: 767px) { .gk-pos-done { padding: 20px 16px; } .gk-receipt { padding: 14px; } }
@media (max-width: 1023px) { .gk-pos { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .gk-pos-foot { bottom: 68px; } .gk-pos-line-fields { grid-template-columns: minmax(0, 1fr); } }
.gk-nav-draft { margin-left: 8px; padding: 1px 6px; border: 1px solid currentColor; border-radius: var(--gk-radius-pill); font-size: 10px; letter-spacing: 0; text-transform: none; }
@media (min-width: 768px) and (max-width: 1279px) { .gk-nav-draft { display: none; } }
@media print {
  .gk-bottom-nav, .gk-drawer-backdrop { display: none !important; }
  .gk-pos-done { max-width: none; margin: 0; padding: 0; border: 0 !important; box-shadow: none !important; }
  .gk-receipt { border: 0; background: none; padding: 0; }
}

/* Dues: the search keeps a usable width and a total never breaks in two */
.gk-list-search { flex: 1 1 240px; max-width: 320px; }
.gk-dues-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.gk-dues-total { font-size: 28px; white-space: nowrap; }
@media (max-width: 640px) { .gk-list-search { max-width: none; } .gk-dues-totals { gap: 10px; } .gk-dues-total { font-size: 19px; } }

/* Payment account buttons: kind on top, the account's own name below. */
.gk-pay-accounts .gk-seg-btn { flex: 0 1 auto; flex-direction: row; gap: 6px; padding-inline: 14px; }
.gk-pay-kind { font-size: 11px; font-weight: 500; color: var(--gk-muted); }
.gk-seg-btn.is-on .gk-pay-kind { color: var(--gk-on-primary); opacity: .8; }
/* Date field and calendar pop-up (x-gk.date-picker). One calendar, chosen in Settings. */
.gk-datepick { display: block; }
.gk-datepick-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.gk-datepick-btn svg { flex: none; color: var(--gk-muted); }
.gk-datepick-btn:hover svg { color: var(--gk-accent); }
.gk-datepick-text { font-variant-numeric: tabular-nums; color: var(--gk-text); }
.gk-datepick-empty { color: var(--gk-muted); }

.gk-cal-backdrop { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(11,37,66,.55); backdrop-filter: blur(2px); }
.gk-cal { width: 100%; max-width: 360px; background: var(--gk-surface); border-radius: var(--gk-radius-xl); box-shadow: var(--gk-elevation-raised); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; animation: gk-modal-in var(--gk-motion-standard) var(--gk-motion-easing) forwards; }
.gk-cal-head { display: flex; align-items: center; gap: 6px; }
.gk-cal-nav { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gk-border); background: var(--gk-surface); color: var(--gk-primary); font-size: 22px; line-height: 1; cursor: pointer; }
.gk-cal-nav:hover { background: var(--gk-mint); border-color: var(--gk-accent); }
.gk-cal-title { flex: 1; min-height: 40px; border: 0; background: transparent; border-radius: var(--gk-radius-md); font: inherit; font-size: 17px; font-weight: 700; color: var(--gk-primary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.gk-cal-title:hover { background: var(--gk-mint); }
.gk-cal-title > span[aria-hidden] { font-size: 12px; color: var(--gk-muted); }
:root[data-theme="dark"] .gk-cal-title, :root[data-theme="dark"] .gk-cal-nav { color: var(--gk-text); }
.gk-cal-mode { text-align: center; font-size: 12px; font-weight: 600; color: var(--gk-muted); margin-top: -4px; }

.gk-cal-week, .gk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.gk-cal-week span { text-align: center; font-size: 12px; font-weight: 700; color: var(--gk-muted); padding: 2px 0; }
.gk-cal-week .is-sat, .gk-cal-day.is-sat { color: var(--gk-danger); }
.gk-cal-day { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--gk-text); font-variant-numeric: tabular-nums; cursor: pointer; }
.gk-cal-day:hover { background: var(--gk-mint); }
.gk-cal-day.is-today { box-shadow: inset 0 0 0 2px var(--gk-accent); font-weight: 700; }
.gk-cal-day.is-sel, .gk-cal-day.is-sel.is-sat { background: var(--gk-primary); color: var(--gk-on-primary); font-weight: 700; }
.gk-cal-day.is-blank { visibility: hidden; }
.gk-cal-day:focus-visible, .gk-cal-month:focus-visible, .gk-cal-nav:focus-visible, .gk-cal-title:focus-visible { outline: 3px solid var(--gk-accent); outline-offset: 2px; }

.gk-cal-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 0; }
.gk-cal-month { min-height: 48px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); background: var(--gk-surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--gk-text); cursor: pointer; }
.gk-cal-month:hover { border-color: var(--gk-accent); background: var(--gk-mint); }
.gk-cal-month.is-sel { background: var(--gk-primary); border-color: var(--gk-primary); color: var(--gk-on-primary); }

.gk-cal-picked { text-align: center; font-size: 14px; font-weight: 600; color: var(--gk-text); min-height: 20px; font-variant-numeric: tabular-nums; }
.gk-cal-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--gk-border); padding-top: 12px; }
.gk-cal-spacer { flex: 1; }
.gk-cal-actions .gk-btn { min-height: 40px; padding: 6px 14px; }

@media (max-width: 480px) {
  .gk-cal-backdrop { align-items: flex-end; padding: 0; }
  .gk-cal { max-width: none; border-radius: var(--gk-radius-xl) var(--gk-radius-xl) 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* Settings: the language buttons are lit by app.js (aria-pressed), not by Livewire. */
.gk-lang-choice[aria-pressed="true"] { background: var(--gk-primary); border-color: var(--gk-primary); color: var(--gk-on-primary); }
.gk-lang-choice[aria-pressed="true"] small { color: var(--gk-on-primary); opacity: .85; }

/* ---- Desk Home, plain-language layout (28 Nov) ---- */
.gk-hm { display: flex; flex-direction: column; gap: 28px; }
.gk-hm > .gk-offline-banner:empty { display: none; }
.gk-hm-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.gk-hm-hello h2 { margin: 0; font-size: 28px; line-height: 36px; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-hm-hello h2 { color: var(--gk-text); }
.gk-hm-date { margin: 4px 0 0; color: var(--gk-muted); font-size: 15px; }
.gk-hm-meter { min-width: 260px; flex: 0 1 340px; }

/* Section headings */
.gk-hm-sec { margin: 0 0 12px; font-size: 17px; line-height: 24px; font-weight: 700; color: var(--gk-text); }
.gk-hm-sec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.gk-hm-sec-row .gk-hm-sec { margin: 0; }
.gk-hm-sec-row .gk-link { font-size: 14px; }

/* Get started */
.gk-hm-setup { padding: 22px; background: linear-gradient(135deg, var(--gk-surface) 55%, var(--gk-surface-tint)); }
.gk-hm-setup-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.gk-hm-setup-head h3 { margin: 0; font-size: 19px; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-hm-setup-head h3 { color: var(--gk-text); }
.gk-hm-setup-head p { margin: 2px 0 0; font-size: 14px; color: var(--gk-muted); }
.gk-hm-setup-bar { flex: 0 1 240px; height: 8px; border-radius: var(--gk-radius-pill); background: var(--gk-border); overflow: hidden; }
.gk-hm-setup-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gk-accent); transition: width var(--gk-motion-standard) var(--gk-motion-easing); }
.gk-hm-setup-bar.is-1 span { width: 33.4%; } .gk-hm-setup-bar.is-2 span { width: 66.7%; } .gk-hm-setup-bar.is-3 span { width: 100%; }
.gk-hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gk-hm-steps.is-of2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gk-hm-setup-bar.is-1.is-of2 span { width: 50%; }
.gk-hm-step { display: flex; align-items: center; gap: 14px; height: 100%; min-height: 76px; padding: 14px 16px; border: 1.5px solid var(--gk-border); border-radius: var(--gk-radius-md); background: var(--gk-surface); color: var(--gk-text); text-decoration: none; transition: border-color var(--gk-motion-fast), box-shadow var(--gk-motion-fast), transform var(--gk-motion-fast); }
.gk-hm-step:hover { border-color: var(--gk-accent); box-shadow: var(--gk-elevation-card); transform: translateY(-1px); }
.gk-hm-step:focus-visible { outline: 3px solid var(--gk-accent); outline-offset: 2px; }
.gk-hm-step-num { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gk-primary); color: var(--gk-on-primary); font-weight: 700; font-size: 16px; }
.gk-hm-step-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gk-hm-step-text strong { font-size: 15px; line-height: 21px; }
.gk-hm-step-text small { font-size: 13px; line-height: 18px; color: var(--gk-muted); }
.gk-hm-step-go { flex: none; color: var(--gk-accent-text); }
.gk-hm-step.is-done { background: var(--gk-surface-tint); border-color: transparent; }
.gk-hm-step.is-done .gk-hm-step-num { background: var(--gk-accent); color: var(--gk-on-accent); }
.gk-hm-step.is-done strong { color: var(--gk-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.gk-hm-step.is-done small { color: var(--gk-accent-text); font-weight: 600; }

/* Action buttons: icon, name, when to use */
.gk-hm-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gk-hm-action { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 16px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-lg); background: var(--gk-surface); color: var(--gk-text); text-decoration: none; box-shadow: var(--gk-elevation-card); transition: transform var(--gk-motion-fast), box-shadow var(--gk-motion-fast), border-color var(--gk-motion-fast); }
.gk-hm-action:hover { transform: translateY(-2px); box-shadow: var(--gk-elevation-raised); border-color: var(--gk-accent); }
.gk-hm-action:focus-visible { outline: 3px solid var(--gk-accent); outline-offset: 2px; }
.gk-hm-action-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gk-mint); color: var(--gk-accent-text); }
.gk-hm-action-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gk-hm-action-text strong { font-size: 16px; line-height: 22px; }
.gk-hm-action-text small { font-size: 13px; line-height: 18px; color: var(--gk-muted); }
.gk-hm-action.is-in .gk-hm-action-icon { background: var(--gk-success-bg); color: var(--gk-success); }
.gk-hm-action.is-out .gk-hm-action-icon { background: var(--gk-danger-bg); color: var(--gk-danger); }
.gk-hm-action.is-main { background: var(--gk-primary); border-color: var(--gk-primary); color: var(--gk-on-primary); }
.gk-hm-action.is-main small { color: var(--gk-on-primary); opacity: .8; }
.gk-hm-action.is-main .gk-hm-action-icon { background: rgba(255,255,255,.14); color: var(--gk-on-primary); }
:root[data-theme="dark"] .gk-hm-action.is-main .gk-hm-action-icon { background: rgba(11,37,66,.16); }

/* Today */
.gk-hm-today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.gk-hm-today > *, .gk-hm-owe > * { min-width: 0; }
.gk-hm-stat, .gk-hm-due { display: flex; flex-direction: column; gap: 6px; padding: 20px; color: var(--gk-text); text-decoration: none; border-top: 4px solid var(--gk-border); transition: box-shadow var(--gk-motion-fast); }
.gk-hm-stat:hover, .gk-hm-due:hover { box-shadow: var(--gk-elevation-raised); }
.gk-hm-stat:focus-visible, .gk-hm-due:focus-visible { outline: 3px solid var(--gk-accent); outline-offset: 2px; }
.gk-hm-stat-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; }
.gk-hm-stat-label { font-size: 14px; font-weight: 600; color: var(--gk-muted); }
.gk-hm-stat-value { font-size: 30px; line-height: 38px; font-weight: 700; white-space: nowrap; }
.gk-hm-stat-note { font-size: 13px; line-height: 19px; color: var(--gk-muted); }
.gk-hm-stat.is-in { border-top-color: var(--gk-success); }
.gk-hm-stat.is-in .gk-hm-stat-icon { background: var(--gk-success-bg); color: var(--gk-success); }
.gk-hm-stat.is-in .gk-hm-stat-value { color: var(--gk-success); }
.gk-hm-stat.is-out { border-top-color: var(--gk-danger); }
.gk-hm-stat.is-out .gk-hm-stat-icon { background: var(--gk-danger-bg); color: var(--gk-danger); }
.gk-hm-stat.is-out .gk-hm-stat-value { color: var(--gk-danger); }
.gk-hm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.gk-hm-chips > span, .gk-hm-have > span { display: inline-flex; gap: 4px; align-items: baseline; padding: 4px 10px; border-radius: var(--gk-radius-pill); background: var(--gk-bg); border: 1px solid var(--gk-border); font-size: 12px; color: var(--gk-muted); white-space: nowrap; }
.gk-hm-chips b, .gk-hm-have b { color: var(--gk-text); font-weight: 700; }

.gk-hm-profit { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--gk-radius-lg); background: linear-gradient(140deg, var(--gk-hero-from), var(--gk-hero-to)); color: #fff; box-shadow: var(--gk-elevation-card); border-top: 4px solid var(--gk-accent); }
.gk-hm-profit.is-loss { border-top-color: #F87171; }
.gk-hm-profit .gk-hm-stat-label { color: #C5D3E4; }
.gk-hm-profit-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gk-hm-how { min-height: 40px; padding: 4px 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); border-radius: var(--gk-radius-pill); color: var(--gk-teal-300); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gk-hm-how:hover { background: rgba(255,255,255,.16); }
.gk-hm-how:focus-visible, .gk-hm-profit a:focus-visible { outline: 3px solid var(--gk-accent); outline-offset: 2px; }
.gk-hm-profit-value { font-size: 34px; line-height: 42px; font-weight: 700; color: var(--gk-teal-300); white-space: nowrap; }
.gk-hm-profit.is-loss .gk-hm-profit-value { color: #FCA5A5; }
.gk-hm-profit-say { font-size: 13px; line-height: 19px; color: #D5E1EF; }
.gk-hm-profit-missing { display: block; margin-top: 4px; padding: 8px 12px; border-radius: var(--gk-radius-sm); background: #FCF1CC; color: #1F2937; font-size: 13px; font-weight: 600; text-decoration: none; }
.gk-hm-profit-how { margin: 6px 0 0; font-size: 13px; }
.gk-hm-profit-how > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.gk-hm-profit-how dt, .gk-hm-profit-how dd { margin: 0; }
.gk-hm-profit-how dd { white-space: nowrap; font-weight: 700; }
.gk-hm-profit-how p { margin: 8px 0 0; font-size: 12px; line-height: 18px; color: #C5D3E4; }

/* Udhar and money */
.gk-hm-owe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.gk-hm-due-value { font-size: 26px; line-height: 34px; font-weight: 700; white-space: nowrap; }
.gk-hm-due-go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--gk-accent-text); }
.gk-hm-due.is-collect { border-top-color: var(--gk-warning-fill); }
.gk-hm-due.is-collect .gk-hm-due-value { color: var(--gk-warning-text); }
.gk-hm-due.is-pay { border-top-color: var(--gk-muted); }
.gk-hm-due.is-have { border-top-color: var(--gk-accent); }
.gk-hm-have { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }

/* Needs attention, lists, empty states */
.gk-hm-needs { margin: 0; }
.gk-hm .gk-attention-ok { display: flex; align-items: center; gap: 8px; margin: 0; }
.gk-hm .gk-dash-grid { gap: 16px; }
.gk-hm .gk-entry-row { justify-content: flex-start; }
.gk-hm .gk-entry-main { flex: 1; }
.gk-hm-entry-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.gk-hm-entry-dot.is-in { background: var(--gk-success-bg); color: var(--gk-success); }
.gk-hm-entry-dot.is-out { background: var(--gk-danger-bg); color: var(--gk-danger); }
.gk-hm-entry-dot.is-credit { background: var(--gk-warning-bg); color: var(--gk-warning-text); }
.gk-hm-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; text-align: center; }
.gk-hm-empty p { margin: 0; max-width: 320px; font-size: 14px; color: var(--gk-muted); }
.gk-hm-empty-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gk-mint); color: var(--gk-accent-text); }

@media (max-width: 1279px) {
  .gk-hm-today { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gk-hm-profit { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  .gk-hm-steps, .gk-hm-steps.is-of2, .gk-hm-owe { grid-template-columns: minmax(0, 1fr); }
  .gk-hm-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .gk-hm { gap: 22px; }
  .gk-hm-hello h2 { font-size: 24px; line-height: 32px; }
  .gk-hm-today { grid-template-columns: minmax(0, 1fr); }
  .gk-hm-action { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 12px; }
  .gk-hm-action-icon { width: 40px; height: 40px; border-radius: 12px; }
  .gk-hm-action-text strong { font-size: 15px; }
  .gk-hm-stat-value, .gk-hm-profit-value { font-size: 28px; line-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .gk-hm-action, .gk-hm-step, .gk-hm-setup-bar span { transition: none; }
  .gk-hm-action:hover, .gk-hm-step:hover { transform: none; }
}

/* ============================================================ compact desk (28 Nov)
   The owner asked for smaller buttons, tabs and chips across the desk. One scale, set here last so it wins:
   desktop 38-40px controls, phone keeps 44px for thumbs. Public pages are untouched. */
.gk-layout-owner { --gk-ctl-h: 40px; --gk-ctl-h-sm: 34px; --gk-input-h: 42px; }
@media (max-width: 767px) { .gk-layout-owner { --gk-ctl-h: 44px; --gk-ctl-h-sm: 44px; --gk-input-h: 44px; } }

.gk-layout-owner .gk-btn { min-height: var(--gk-ctl-h); padding: 7px 16px; font-size: 14px; border-radius: 10px; gap: 6px; }
.gk-layout-owner .gk-btn-sm, .gk-layout-owner .gk-btn-row { min-height: var(--gk-ctl-h-sm); padding: 5px 10px; font-size: 13px; }
.gk-layout-owner .gk-btn-lg { min-height: 44px; padding: 9px 20px; font-size: 15px; }
.gk-layout-owner .gk-btn-quiet, .gk-layout-owner .gk-btn-ghost { padding-inline: 10px; }

/* Segmented choices (paid now / udhar, payment accounts) */
.gk-layout-owner .gk-seg { gap: 6px; }
.gk-layout-owner .gk-seg-btn { min-height: var(--gk-ctl-h); padding: 5px 12px; font-size: 13px; border-radius: 10px; flex: 0 1 auto; flex-direction: row; gap: 6px; }
.gk-layout-owner .gk-seg-btn small { font-size: 11px; }
.gk-layout-owner .gk-pay-accounts .gk-seg-btn { flex: 0 1 auto; min-height: var(--gk-ctl-h); flex-direction: row; gap: 6px; padding: 5px 14px; }
.gk-layout-owner .gk-seg-btn .gk-pay-kind { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.gk-layout-owner .gk-seg-btn:focus-visible { outline-width: 2px; outline-offset: 1px; }
.gk-layout-owner .gk-seg-btn.is-on:hover { border-color: var(--gk-primary); }
.gk-layout-owner .gk-paynow .gk-seg-btn { flex: 0 1 auto; }

/* Pill chips from x-gk.choice carry inline sizes, so these need !important */
.gk-layout-owner .gk-choice-chip { min-height: 36px !important; padding: 4px 12px !important; font-size: 13px !important; }
.gk-layout-owner .gk-chip { min-height: 32px; padding: 4px 12px; font-size: 13px; }

/* Tabs and toggles */
.gk-layout-owner :is(.gk-btn-toggle, .gk-date-toggle-btn, .gk-date-preset-btn) { min-height: var(--gk-ctl-h-sm); padding: 4px 12px; font-size: 13px; }
.gk-layout-owner .gk-pt-tab { min-height: var(--gk-ctl-h-sm); padding: 4px 12px; font-size: 13px; }
.gk-layout-owner .gk-pt-tabs { padding: 3px; }

/* Inputs and the searchable picker line up with the buttons */
.gk-layout-owner .gk-input:not(textarea) { min-height: var(--gk-input-h); }
.gk-layout-owner .gk-picker-trigger { min-height: var(--gk-input-h) !important; padding: 6px 44px 6px 12px !important; }
.gk-layout-owner .gk-picker-popover [role="option"] { min-height: 40px !important; }
.gk-layout-owner .gk-acct-add { min-width: var(--gk-input-h); min-height: var(--gk-input-h); }
.gk-layout-owner .gk-pt-menu-btn { min-width: var(--gk-ctl-h-sm); min-height: var(--gk-ctl-h-sm); }
@media (min-width: 768px) { .gk-layout-owner .gk-input:not(textarea) { padding-top: 8px; padding-bottom: 8px; font-size: 15px; } }

/* ============================================================ bill screens (28 Nov)
   Purchase bill and sales receipt typed as a table, the way a Nepali bill reads. Uses the compact desk scale from
   13-compact.css (40px controls on desktop, 44px on phone). */
.gk-bill { display: flex; flex-direction: column; gap: 14px; }
.gk-bill-head { display: flex; align-items: center; gap: 12px; }
.gk-bill-head > div { flex: 1; min-width: 0; }
.gk-bill-back { width: var(--gk-ctl-h, 40px); padding: 0 !important; justify-content: center; }
.gk-bill-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--gk-primary); line-height: 1.25; }
.gk-bill-sub { margin: 2px 0 0; font-size: 13px; color: var(--gk-muted); }
.gk-bill-code { padding: 4px 10px; border-radius: var(--gk-radius-pill); background: var(--gk-secondary); color: var(--gk-primary); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Top row: supplier / customer, bill no., our no., date */
.gk-bill-top { display: grid; grid-template-columns: minmax(220px, 1.6fr) 1fr 0.8fr minmax(190px, 1.1fr); gap: 12px 16px; align-items: start; padding: 16px; }
.gk-bill-top-sale { grid-template-columns: minmax(260px, 2fr) minmax(180px, 1fr); max-width: 760px; }
.gk-bill-top .gk-form-group { margin: 0; }
.gk-bill-party { min-width: 0; }
.gk-bill-supplier { display: flex; flex-direction: column; gap: 4px; }
.gk-bill-inline-add { align-self: flex-start; color: var(--gk-accent-text); }
.gk-bill-readonly { display: flex; align-items: center; background: var(--gk-sunken); color: var(--gk-muted); cursor: default; }
.gk-bill-quick { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 12px; align-items: end; padding: 12px; border-radius: var(--gk-radius-md); background: var(--gk-surface-tint); border: 1px solid var(--gk-border); }
.gk-bill-quick .gk-form-group { margin: 0; }
.gk-bill-quick-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* The lines */
.gk-bill-items { padding: 0; overflow: visible; }
.gk-bill-grid { display: flex; flex-direction: column; }
.gk-bill-row { display: grid; gap: 8px; align-items: start; padding: 8px 12px; border-bottom: 1px solid var(--gk-border); }
.gk-bill-grid-buy .gk-bill-row { grid-template-columns: 28px minmax(160px, 1fr) 72px 92px 92px 150px 56px 96px 36px; }
.gk-bill-grid-sell .gk-bill-row { grid-template-columns: 28px minmax(160px, 1fr) 124px 92px 92px 150px 96px 36px; }
.gk-bill-row-head { align-items: center; padding-top: 10px; padding-bottom: 10px; background: var(--gk-sunken); border-radius: var(--gk-radius-lg) var(--gk-radius-lg) 0 0; font-size: 12px; font-weight: 600; color: var(--gk-muted); text-transform: none; }
.gk-bill-row:not(.gk-bill-row-head):hover { background: var(--gk-bg); }
.gk-bill-sn { padding-top: 10px; text-align: center; color: var(--gk-muted); font-size: 13px; }
.gk-bill-row-head .gk-bill-sn { padding-top: 0; }
.gk-bill-num { text-align: right; }
.gk-bill-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gk-bill-cell .gk-field-error { font-size: 12px; color: var(--gk-danger); }
.gk-bill-cell-label { display: none; font-size: 12px; font-weight: 600; color: var(--gk-muted); }
.gk-bill-num-input { text-align: right; }
.gk-bill-part-name { font-size: 14px; line-height: 1.3; padding-top: 2px; }
.gk-bill-part .gk-hint { font-size: 12px; }
.gk-bill-unit-text { padding-top: 10px; font-size: 13px; color: var(--gk-muted); }
.gk-layout-owner .gk-bill-unit { gap: 4px; flex-wrap: nowrap; }
.gk-layout-owner .gk-bill-unit .gk-choice-chip { min-height: 32px !important; padding: 2px 8px !important; font-size: 12px !important; }
.gk-bill-disc { display: grid; grid-template-columns: 58px 1fr; gap: 4px; }
.gk-bill-affix-wrap { position: relative; display: block; }
.gk-bill-pct { width: 100%; padding-right: 22px !important; text-align: right; }
.gk-bill-affix { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--gk-muted); pointer-events: none; }
.gk-bill-vat, .gk-bill-vat-head { align-items: center; justify-content: center; }
.gk-bill-vat { padding-top: 10px; }
.gk-bill-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; }
.gk-bill-check input { width: 18px; height: 18px; accent-color: var(--gk-primary); cursor: pointer; }
.gk-bill-vat-head .gk-bill-check { flex-direction: column; gap: 2px; }
.gk-bill-amount { align-items: flex-end; padding-top: 10px; }
.gk-bill-amount strong { font-size: 14px; }
.gk-bill-amount small { font-size: 11px; color: var(--gk-muted); }
.gk-bill-del { align-items: center; }
.gk-bill-x { width: 36px; padding: 0 !important; justify-content: center; color: var(--gk-danger); }
.gk-bill-x:disabled { color: var(--gk-border-strong); }
.gk-bill-row-notes { grid-column: 2 / -1; display: flex; flex-direction: column; gap: 6px; }
.gk-bill-row-notes .gk-pos-note { margin: 0; }
.gk-bill-cost { display: grid; grid-template-columns: 1fr minmax(200px, 260px); gap: 8px 12px; align-items: end; }
.gk-bill-cost .gk-form-group { margin: 0; }
.gk-layout-owner .gk-bill-stepper button { width: 32px; min-height: var(--gk-input-h); font-size: 16px; border-radius: 8px; }
.gk-bill-stepper input { padding-inline: 4px; }

.gk-bill-addrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; }
.gk-bill-add { display: inline-flex; align-items: center; gap: 6px; min-height: var(--gk-ctl-h-sm, 34px); padding: 4px 10px; border: 1.5px dashed var(--gk-accent); border-radius: 8px; background: transparent; color: var(--gk-accent-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gk-bill-add:hover { background: var(--gk-secondary); }
.gk-bill-add:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-bill-addrow-total { margin-left: auto; font-size: 13px; color: var(--gk-muted); }
.gk-bill-addrow-total strong { color: var(--gk-text); font-size: 14px; }

/* Add item by search (sales) */
.gk-bill-finder { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.gk-bill-finder-input { flex: none; max-width: 520px; }
.gk-bill-top .gk-datepick-btn { white-space: nowrap; }
.gk-bill-finds { list-style: none; margin: 0; padding: 4px; max-width: 520px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); background: var(--gk-surface); box-shadow: var(--gk-shadow-md); }
.gk-bill-finds button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--gk-text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.gk-bill-finds button > span:first-child { display: flex; flex-direction: column; }
.gk-bill-finds button:hover, .gk-bill-finds button:focus-visible { background: var(--gk-secondary); outline: none; }
.gk-bill-finds .gk-hint { font-size: 12px; }
.gk-bill-finder > .gk-hint { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gk-bill-items > .gk-bill-quick { margin: 0 12px 12px; }

/* Customer combo (server-side search) */
.gk-combo { position: relative; }
.gk-combo-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer; background: var(--gk-surface); }
.gk-combo-trigger > svg { flex: none; color: var(--gk-muted); }
.gk-combo-value { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gk-combo-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 7px; background: var(--gk-secondary); color: var(--gk-accent-text); }
.gk-combo-pop { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; min-width: 280px; padding: 8px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); background: var(--gk-surface); box-shadow: var(--gk-elevation-raised); }
.gk-combo-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 280px; overflow-y: auto; }
.gk-combo-list button, .gk-bill-finds .gk-combo-add { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--gk-text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.gk-combo-list button:hover, .gk-combo-list button:focus-visible, .gk-combo-list button.is-on { background: var(--gk-secondary); outline: none; }
.gk-combo-list button.is-on { font-weight: 600; color: var(--gk-primary); }
.gk-combo-add { color: var(--gk-accent-text) !important; font-weight: 600 !important; }
.gk-combo-none { padding: 8px 10px; font-size: 13px; }

/* Bottom: notes + photo | totals + payment */
.gk-bill-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 14px; align-items: start; }
.gk-bill-extra, .gk-bill-summary { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.gk-bill-extra .gk-form-group, .gk-bill-summary .gk-form-group { margin: 0; }
.gk-bill-extra .gk-hint, .gk-bill-summary .gk-hint { margin: 0; font-size: 12px; }
.gk-bill-note { min-height: 76px; resize: vertical; }
.gk-bill-upload { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--gk-border-strong); border-radius: var(--gk-radius-md); background: var(--gk-bg); color: var(--gk-muted); cursor: pointer; }
.gk-bill-upload > span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--gk-text); }
.gk-bill-upload:hover { border-color: var(--gk-accent); color: var(--gk-accent-text); }
.gk-bill-upload:focus-within { box-shadow: var(--gk-focus); }
.gk-bill-upload.is-error { border-color: var(--gk-danger); }
.gk-bill-sums { margin: 0; display: flex; flex-direction: column; }
.gk-bill-sums > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.gk-bill-sums dt { color: var(--gk-muted); }
.gk-bill-sums dd { margin: 0; }
.gk-bill-grand { margin-top: 4px; padding-top: 10px !important; border-top: 1px solid var(--gk-border); }
.gk-bill-grand dt { color: var(--gk-text); font-weight: 700; }
.gk-bill-grand dd { font-size: 20px; font-weight: 700; color: var(--gk-primary); }
.gk-bill-sums-inline { max-width: 360px; margin: 12px 0 0 auto; }

.gk-bill-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0 8px; }
.gk-bill-actions-gap { flex: 1; }

/* Purchase view panel */
.gk-bill-view { display: flex; flex-direction: column; gap: 8px; }
.gk-bill-view-actions { display: flex; gap: 8px; align-items: center; }
.gk-bill-view-sub { margin: 18px 0 8px; font-size: 15px; font-weight: 600; color: var(--gk-primary); }
.gk-bill-view-table .gk-bill-num { text-align: right; }

/* Part form: units */
.gk-pt-units-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gk-pt-units-row .gk-form-group { margin: 0; }
.gk-pt-alt-link { align-self: flex-start; color: var(--gk-accent-text); }
.gk-pt-convert { margin: 0; }
.gk-pt-unit-fixed { display: flex; align-items: center; gap: 8px; min-height: var(--gk-input-h, 42px); padding: 0 12px; border-radius: var(--gk-radius-md); background: var(--gk-sunken); }
.gk-pt-convert-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.gk-pt-convert-input { width: 110px; text-align: right; }

/* Receipt discount */
.gk-receipt-disc { color: var(--gk-muted); font-size: 12px; }
.gk-receipt-sub { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; color: var(--gk-muted); }

@media (max-width: 1100px) {
  .gk-bill-top { grid-template-columns: 1fr 1fr; }
  .gk-bill-foot { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .gk-bill-row-head { display: none; }
  .gk-bill-grid .gk-bill-row { grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; position: relative; }
  .gk-bill-row .gk-bill-sn { position: absolute; top: 12px; left: 12px; padding: 0; width: 22px; height: 22px; line-height: 22px; border-radius: 6px; background: var(--gk-sunken); font-size: 12px; }
  .gk-bill-row .gk-bill-part { grid-column: 1 / -1; padding-left: 30px; padding-right: 40px; }
  .gk-bill-row .gk-bill-del { position: absolute; top: 8px; right: 8px; }
  .gk-bill-cell-label { display: block; }
  .gk-bill-part .gk-bill-cell-label { display: none; }
  .gk-bill-vat, .gk-bill-amount, .gk-bill-unit-text { padding-top: 0; }
  .gk-bill-vat { flex-direction: row; justify-content: flex-start; }
  .gk-bill-vat .gk-bill-cell-label { display: inline; }
  .gk-bill-amount { align-items: flex-start; }
  .gk-bill-row-notes { grid-column: 1 / -1; }
  .gk-bill-cost { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gk-bill-top, .gk-bill-top-sale, .gk-pt-units-row { grid-template-columns: 1fr; }
  .gk-bill-actions { flex-direction: column-reverse; align-items: stretch; }
  .gk-bill-actions-gap { display: none; }
  .gk-bill-actions > * { width: 100%; justify-content: center; }
  .gk-bill-addrow-total { margin-left: 0; width: 100%; }
}

/* ---- Search-and-select picker (x-gk.picker): type in the box, pick from the list, or add what is missing ---- */
.gk-pick { position: relative; width: 100%; }
.gk-pick-box { position: relative; }
.gk-pick .gk-pick-input { display: block; width: 100%; padding-right: 44px !important; cursor: text; text-overflow: ellipsis; }
.gk-pick .gk-pick-input[readonly] { cursor: pointer; }
.gk-pick .gk-pick-input::placeholder { color: var(--gk-muted); }
.gk-pick .gk-pick-input:focus::placeholder { color: var(--gk-text); opacity: .55; }
.gk-pick-icon { position: absolute; top: 0; right: 0; bottom: 0; width: 42px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--gk-muted); cursor: pointer; }
.gk-pick-icon svg { transition: transform var(--gk-motion-fast, .15s); }
.gk-pick-icon svg.is-open { transform: rotate(180deg); }
.gk-pick-spin { width: 16px; height: 16px; border: 2px solid var(--gk-border); border-top-color: var(--gk-primary); border-radius: 50%; animation: gk-spin .7s linear infinite; }
.gk-pick-pop { overflow-y: auto; padding: 6px; }
.gk-pick-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: var(--gk-radius-sm); color: var(--gk-text); cursor: pointer; }
.gk-pick-opt.is-active { background: var(--gk-bg); }
.gk-pick-opt.is-on { background: var(--gk-mint); color: var(--gk-primary); font-weight: 600; }
.gk-pick-opt svg { flex-shrink: 0; color: var(--gk-primary); }
.gk-pick-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-pick-note { padding: 12px; color: var(--gk-muted); font-size: 13px; text-align: center; }
.gk-pick-fail { color: var(--gk-danger); }
.gk-pick-fail .gk-link { background: none; border: 0; font: inherit; cursor: pointer; margin-left: 6px; }
.gk-pick-add { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; margin-top: 4px; border-top: 1px solid var(--gk-border); border-radius: var(--gk-radius-sm); color: var(--gk-primary); font-weight: 600; cursor: pointer; }
.gk-pick-add.is-active, .gk-pick-add:hover { background: var(--gk-mint); }
.gk-pick-add b { font-weight: 700; }
.gk-layout-owner .gk-pick-opt, .gk-layout-owner .gk-pick-add { min-height: 40px; }
@media (prefers-reduced-motion: reduce) { .gk-pick-spin { animation-duration: 2s; } .gk-pick-icon svg { transition: none; } }

/* ==========================================================================
   16. Lists: the one search box (x-gk.search) and the one pager (x-gk.pager)
   Same filter-row look as Income / Expense on every list page.
   ========================================================================== */
.gk-filter-row { align-items: flex-start; }
.gk-filter-row > .gk-filter-field > .gk-label { margin-bottom: 6px; min-height: 20px; }
.gk-filter-row > .gk-btn, .gk-filter-row > .gk-filter-actions { align-self: flex-end; }
.gk-filter-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gk-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-height: 48px; }
.gk-filter-check { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px; font-size: 14px; font-weight: 500; cursor: pointer; }
.gk-filter-check input { width: 20px; height: 20px; accent-color: var(--gk-primary); flex: none; }

.gk-lsearch-field { min-width: 220px; }
.gk-lsearch { position: relative; display: flex; align-items: center; }
.gk-lsearch-icon { position: absolute; left: 14px; color: var(--gk-muted); pointer-events: none; }
.gk-lsearch .gk-lsearch-input { width: 100%; min-height: 48px; padding-left: 42px; padding-right: 44px; }
.gk-lsearch-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.gk-lsearch-clear {
  position: absolute; right: 6px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--gk-radius-pill); background: transparent; color: var(--gk-muted); cursor: pointer;
  transition: background var(--gk-motion-fast) var(--gk-motion-easing), color var(--gk-motion-fast) var(--gk-motion-easing);
}
.gk-lsearch-clear:hover { background: var(--gk-sunken); color: var(--gk-text); }
.gk-lsearch-clear:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-lsearch-spin {
  position: absolute; right: 16px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--gk-border-strong); border-top-color: var(--gk-accent); animation: gk-lsearch-spin .7s linear infinite;
}
@keyframes gk-lsearch-spin { to { transform: rotate(360deg); } }

/* Pager: "Showing 51–100 of 230" on the left, pages on the right. */
.gk-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
  margin-top: 16px; padding: 10px 4px;
}
.gk-pager-info { margin: 0; font-size: 13px; color: var(--gk-muted); font-weight: 500; }
.gk-pager-nav { display: flex; align-items: center; gap: 6px; }
.gk-pager-pages { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.gk-pager-btn {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--gk-border); border-radius: var(--gk-radius-sm); background: var(--gk-surface); color: var(--gk-text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background var(--gk-motion-fast) var(--gk-motion-easing), border-color var(--gk-motion-fast) var(--gk-motion-easing);
}
.gk-pager-btn:hover:not([disabled]):not(.is-current) { border-color: var(--gk-border-strong); background: var(--gk-sunken); }
.gk-pager-btn:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-pager-btn.is-current { background: var(--gk-primary); border-color: var(--gk-primary); color: var(--gk-on-primary); cursor: default; }
.gk-pager-btn[disabled] { opacity: .45; cursor: not-allowed; }
.gk-pager-gap { min-width: 24px; text-align: center; color: var(--gk-muted); }
.gk-pager-compact { display: none; font-size: 14px; font-weight: 600; color: var(--gk-text); padding: 0 6px; }
.gk-card > .gk-pager { margin: 0; padding: 12px 18px; border-top: 1px solid var(--gk-border); }

@media (max-width: 640px) {
  .gk-lsearch-field { min-width: 0; flex: 1 1 100%; }
  .gk-pager { justify-content: center; }
  .gk-pager-info { width: 100%; text-align: center; }
  .gk-pager-pages { display: none; }
  .gk-pager-compact { display: inline; }
  .gk-pager-step { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .gk-lsearch-spin { animation-duration: 2s; }
}

/* Stat tiles shared by list pages (built on the Parts page tiles) */
.gk-pt-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gk-pt-stat.is-in { border-left-color: var(--gk-success); }
.gk-pt-stat.is-in .gk-pt-stat-value { color: var(--gk-success); }
.gk-pt-stat.is-out { border-left-color: var(--gk-danger); }
.gk-pt-stat.is-out .gk-pt-stat-value { color: var(--gk-danger); }
.gk-pt-stat.is-due { border-left-color: var(--gk-warning-fill); }
.gk-pt-stat.is-due .gk-pt-stat-value { color: var(--gk-warning); }
.gk-pt-stat-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.gk-pt-stat-row > div { display: flex; flex-direction: column; gap: 6px; }
.gk-pt-stat-hint { font-size: 12px; color: var(--gk-muted); }
@media (max-width: 900px) { .gk-pt-stats-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gk-pt-stats-3 { grid-template-columns: 1fr; } }

/* List card: table + pager in one card, rows that read at a glance */
.gk-list-card { padding: 0; overflow: hidden; }
.gk-list-card > .gk-table-wrapper { border: 0; border-radius: 0; }
.gk-list-card > .gk-empty { margin: 20px; }
.gk-empty-actions { display: flex; justify-content: center; margin: -8px 20px 24px; }
.gk-table th.gk-num, .gk-table td.gk-num { text-align: right; }
.gk-row-title { font-weight: 600; color: var(--gk-primary); text-decoration: none; }
.gk-row-title:hover { text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .gk-row-title { color: var(--gk-text); }
.gk-row-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--gk-muted); }
.gk-row-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: var(--gk-radius-pill); background: var(--gk-mint); color: var(--gk-accent-text); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.gk-row-phone { color: inherit; text-decoration: none; }
.gk-row-phone:hover { color: var(--gk-accent-text); text-decoration: underline; }
.gk-row-none { color: var(--gk-muted); }
.gk-row-act { width: 1%; white-space: nowrap; text-align: right; }
.gk-amt { font-weight: 700; font-size: 14px; }
.gk-amt.is-due { color: var(--gk-warning); }
.gk-amt.is-pay { color: var(--gk-danger); }
.gk-amt.is-in { color: var(--gk-success); }
.gk-amt.is-zero { font-weight: 600; font-size: 13px; color: var(--gk-muted); }

/* Small form popups (add supplier, add staff…): same shell as the entry form */
.gk-form-modal { max-width: 480px; gap: 14px; }
.gk-form-modal .gk-form-group { margin: 0; }
.gk-form-modal .gk-label { color: var(--gk-text); margin-bottom: 6px; }
.gk-form-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gk-form-modal-close { min-width: 40px; min-height: 40px; padding: 0; }
.gk-pt-stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .gk-pt-stats-2 { grid-template-columns: 1fr; } }
.gk-form-modal-sub { margin: -6px 0 0; font-size: 14px; color: var(--gk-muted); }
.gk-form-modal-sub strong { color: var(--gk-text); }

/* Job board: status filter pills + kanban columns */
.gk-filter-full { flex: 1 1 100%; min-width: 0; }
.gk-status-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.gk-status-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px;
  border: 1px solid var(--gk-border); border-radius: var(--gk-radius-pill); background: var(--gk-surface); color: var(--gk-text);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.gk-status-pill:hover { border-color: var(--gk-border-strong); background: var(--gk-sunken); }
.gk-status-pill:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-status-pill.is-on { background: var(--gk-primary); border-color: var(--gk-primary); color: var(--gk-on-primary); }
.gk-status-pill-n { min-width: 22px; padding: 0 6px; border-radius: var(--gk-radius-pill); background: var(--gk-sunken); color: var(--gk-muted); font-size: 12px; text-align: center; }
.gk-status-pill.is-on .gk-status-pill-n { background: rgba(255,255,255,.18); color: inherit; }
/* Each column is only as tall as its cards. A long one stops at the window height and scrolls,
   so the sideways scrollbar stays on screen. */
.gk-kanban { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.gk-kanban::-webkit-scrollbar { height: 10px; }
.gk-kanban::-webkit-scrollbar-track { background: var(--gk-sunken); border-radius: var(--gk-radius-pill); }
.gk-kanban::-webkit-scrollbar-thumb { background: var(--gk-border-strong); border-radius: var(--gk-radius-pill); }
.gk-kanban-col { --col: var(--gk-border-strong); flex: 1 0 220px; max-width: 360px; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--gk-sunken); border: 1px solid var(--gk-border); border-top: 3px solid var(--col); border-radius: var(--gk-radius-md); scroll-snap-align: start; }
.gk-kanban-col.is-new { --col: var(--job-new-fg); }
.gk-kanban-col.is-inspection { --col: var(--job-inspection-fg); }
.gk-kanban-col.is-awaiting { --col: var(--job-awaiting-fg); }
.gk-kanban-col.is-approved { --col: var(--job-approved-fg); }
.gk-kanban-col.is-progress { --col: var(--job-progress-fg); }
.gk-kanban-col.is-ready { --col: var(--job-ready-fg); }
.gk-kanban-col.is-delivered { --col: var(--job-delivered-fg); }
.gk-kanban-col.is-cancelled { --col: var(--job-cancelled-fg); }
.gk-kanban-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--gk-border); background: var(--gk-surface); }
.gk-kanban-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--col); }
.gk-kanban-title { margin: 0; font-size: 13px; line-height: 20px; font-weight: 700; color: var(--gk-text); }
.gk-kanban-count { margin-left: auto; min-width: 24px; padding: 1px 8px; border-radius: var(--gk-radius-pill); background: var(--gk-sunken); color: var(--gk-text); font-size: 12px; font-weight: 700; text-align: center; }
.gk-kanban-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px; overflow-y: auto; }
.gk-kanban .gk-kanban-card { display: block; flex: none; padding: 12px; color: inherit; text-decoration: none; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); box-shadow: var(--gk-elevation-card); transition: box-shadow var(--gk-motion-fast) var(--gk-motion-easing), border-color var(--gk-motion-fast) var(--gk-motion-easing); }
.gk-kanban .gk-kanban-card:hover { border-color: var(--gk-accent); box-shadow: var(--gk-elevation-raised); }
.gk-kanban .gk-kanban-card:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-kanban-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.gk-kanban-code { font-weight: 700; font-size: 12px; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-kanban-code { color: var(--gk-accent-text); }
.gk-kanban-date { font-size: 11px; color: var(--gk-muted); }
.gk-kanban-name { display: block; font-weight: 600; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.gk-kanban-vehicle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 12px; color: var(--gk-muted); }
.gk-kanban-plate { padding: 1px 6px; border: 1px solid var(--gk-border); border-radius: 6px; background: var(--gk-sunken); color: var(--gk-text); font-weight: 600; white-space: nowrap; }
.gk-kanban-staff { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--gk-muted); }
.gk-kanban-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--gk-border); }
.gk-kanban-pay { padding: 2px 8px; border-radius: var(--gk-radius-pill); background: var(--gk-sunken); color: var(--gk-muted); font-size: 11px; font-weight: 600; }
.gk-kanban-pay.is-paid { background: var(--job-ready-bg); color: var(--job-ready-fg); }
.gk-kanban-pay.is-due { background: var(--job-inspection-bg); color: var(--job-inspection-fg); }
/* One status chosen: its cards spread across the page */
.gk-kanban.is-single .gk-kanban-col { flex-basis: 100%; max-width: none; max-height: none; }
.gk-kanban.is-single .gk-kanban-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; }
.gk-kanban-more { margin-top: 8px; }
/* Phone: the statuses with work stack down the page; the filter pills still show every count */
@media (max-width: 767px) {
  .gk-kanban { flex-direction: column; align-items: stretch; overflow: visible; }
  .gk-kanban-col, .gk-kanban.is-single .gk-kanban-col { flex: none; max-width: none; max-height: none; }
  .gk-kanban-body { overflow: visible; }
}
/* Parts: the toolbar sits inside the list card, so it is a filter row without its own card */
.gk-pt-toolbar.gk-filter-row { margin: 0; justify-content: flex-start; align-items: flex-start; }
.gk-staff-seats { min-width: 0; }
.gk-staff-seats .gk-pt-stat-value { display: flex; align-items: center; min-height: 48px; }
.gk-btn-danger-text { color: var(--gk-danger); }

/* Appointments */
.gk-pt-tabs-wrap { flex-wrap: wrap; }
.gk-pt-tab .gk-status-pill-n { margin-left: 4px; }
.gk-apt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.gk-apt-card { padding: 18px 20px; border-left: 4px solid var(--gk-primary); display: flex; flex-direction: column; gap: 12px; }
.gk-apt-card.is-pending { border-left-color: var(--gk-warning-fill); }
.gk-apt-card.is-accepted { border-left-color: var(--gk-success); }
.gk-apt-card.is-declined { border-left-color: var(--gk-border-strong); }
.gk-apt-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gk-apt-name { margin: 4px 0 0; font-size: 16px; color: var(--gk-text); }
.gk-apt-facts { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--gk-radius-sm); background: var(--gk-bg); font-size: 13px; }
.gk-apt-note { margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--gk-border); font-size: 12px; color: var(--gk-muted); }
.gk-apt-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: auto; }
.gk-apt-resched { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 420px) { .gk-apt-grid { grid-template-columns: 1fr; } }
.gk-history-card { padding: 20px; }
.gk-history-title { margin: 0 0 16px; font-size: 17px; }
.gk-table td.gk-table-empty { padding: 20px 16px; text-align: center; color: var(--gk-muted); }
.gk-history-card > .gk-pager { margin-top: 8px; padding: 8px 0 0; }
/* ============================================================ bill sheet (29 Nov)
   One look for every bill typed as a table: sales invoice, purchase bill, quotation / estimate, sales return.
   One white sheet: party | number + date, a ruled line table (cells are the inputs), "+ Add item" with the
   sub total, then notes / photo on the left and the totals / payment on the right. Save buttons under the sheet. */
.gk-sheet { display: flex; flex-direction: column; gap: 16px; max-width: 1240px; }
.gk-sheet-head { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.gk-sheet-back { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--gk-text); cursor: pointer; text-decoration: none; }
.gk-sheet-back:hover { background: var(--gk-sunken); }
.gk-sheet-back:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-sheet-title { margin: 0; flex: 1; min-width: 0; font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--gk-primary); }
.gk-sheet-head-aside { display: flex; align-items: center; gap: 8px; }

.gk-sheet-card { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 22px; }

/* Top: party on the left, number and date on the right */
.gk-sheet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; padding-bottom: 22px; border-bottom: 1px solid var(--gk-border); flex-wrap: wrap; }
.gk-sheet-party { flex: 1 1 260px; max-width: 440px; min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.gk-sheet-party .gk-form-group, .gk-sheet-meta .gk-form-group { margin: 0; }
.gk-sheet-meta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.gk-sheet-meta { flex: 0 1 auto; }
.gk-sheet-meta > * { width: 170px; }
.gk-sheet-meta > .gk-sheet-meta-wide { width: 200px; }
.gk-sheet-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gk-sheet-auto { font-size: 12px; font-weight: 600; color: var(--gk-accent-text); }
.gk-sheet-fixed { display: flex; align-items: center; min-height: var(--gk-input-h, 42px); padding: 0 14px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); background: var(--gk-bg); color: var(--gk-text); font-size: 15px; font-weight: 600; }
.gk-sheet-party-info { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--gk-muted); }
.gk-sheet-party-info strong { color: var(--gk-text); font-weight: 600; }
.gk-sheet-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; background: none; color: var(--gk-accent-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gk-sheet-link:hover { text-decoration: underline; }
.gk-sheet-link:focus-visible { outline: none; box-shadow: var(--gk-focus); border-radius: 4px; }
.gk-sheet-quick { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 12px; align-items: end; padding: 14px; border-radius: var(--gk-radius-md); background: var(--gk-surface-tint); border: 1px solid var(--gk-border); }
.gk-sheet-quick .gk-form-group { margin: 0; }
.gk-sheet-quick-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* The ruled table */
.gk-sheet-wrap { border: 1px solid var(--gk-border-strong); border-radius: var(--gk-radius-md); }
.gk-sheet-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; }
.gk-sheet-table th { padding: 12px 14px; background: var(--gk-sunken); color: var(--gk-muted); font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--gk-border-strong); }
.gk-sheet-table th:first-child { border-top-left-radius: calc(var(--gk-radius-md) - 1px); }
.gk-sheet-table th:last-child { border-top-right-radius: calc(var(--gk-radius-md) - 1px); }
.gk-sheet-table th + th, .gk-sheet-table td + td { border-left: 1px solid var(--gk-border); }
.gk-sheet-table td { padding: 0; vertical-align: top; border-bottom: 1px solid var(--gk-border); background: var(--gk-surface); }
.gk-sheet-table th.is-num { text-align: right; }
.gk-sheet-table th.is-center { text-align: center; }
.gk-sheet-sn { text-align: center; }
.gk-sheet-table th.gk-sheet-sn { padding-left: 4px; padding-right: 4px; text-overflow: clip; }
td.gk-sheet-sn { padding: 13px 4px; color: var(--gk-muted); font-variant-numeric: tabular-nums; }
.gk-sheet-row:focus-within td { background: var(--gk-surface-tint); }

/* A cell is its input: no box, a ring only while typing */
.gk-sheet-in { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 0; background: transparent; color: var(--gk-text); font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; }
.gk-sheet-in::placeholder { color: var(--gk-muted); opacity: .8; }
.gk-sheet-in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gk-accent); background: var(--gk-surface); }
.gk-sheet-in.is-num { text-align: right; }
.gk-sheet-in.is-error, .gk-sheet-cell.is-error .gk-sheet-in { box-shadow: inset 0 0 0 2px var(--gk-danger); }
.gk-sheet-cell { position: relative; display: flex; flex-direction: column; min-width: 0; }
.gk-sheet-cell .gk-field-error { display: block; padding: 0 14px 8px; font-size: 12px; color: var(--gk-danger); }
.gk-sheet-affix { display: flex; align-items: center; }
.gk-sheet-affix > span { flex: none; padding-left: 14px; color: var(--gk-muted); font-size: 13px; }
.gk-sheet-affix > span.is-after { padding: 0 12px 0 0; }
.gk-sheet-affix .gk-sheet-in { flex: 1; min-width: 0; }
.gk-sheet-affix:has(.gk-sheet-in:focus) { box-shadow: inset 0 0 0 2px var(--gk-accent); }
.gk-sheet-affix:has(.gk-sheet-in:focus) .gk-sheet-in { box-shadow: none; }
.gk-sheet-disc { display: grid; grid-template-columns: 44% 56%; }
.gk-sheet-disc > * + * { border-left: 1px solid var(--gk-border); }
.gk-sheet-amount { display: flex; align-items: flex-start; justify-content: flex-end; gap: 2px; flex-direction: column; padding: 13px 14px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gk-sheet-amount small { font-size: 11px; font-weight: 500; color: var(--gk-muted); }
.gk-sheet-amount { align-items: flex-end; }
.gk-sheet-unit { padding: 13px 14px; color: var(--gk-muted); font-size: 13px; }
.gk-sheet-unit-pick { padding: 6px 8px; }
.gk-layout-owner .gk-sheet-unit-pick .gk-choice-chip { min-height: 30px !important; padding: 2px 8px !important; font-size: 12px !important; }
.gk-sheet-del { display: flex; align-items: center; justify-content: center; min-height: 48px; }
.gk-sheet-x { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--gk-danger); cursor: pointer; }
.gk-sheet-x:hover { background: var(--gk-danger-bg); }
.gk-sheet-x:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-sheet-x:disabled { color: var(--gk-border-strong); background: none; cursor: default; }
.gk-sheet-vat { display: flex; align-items: center; justify-content: center; min-height: 48px; }
.gk-sheet-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; }
.gk-sheet-check input { width: 18px; height: 18px; accent-color: var(--gk-primary); cursor: pointer; }
.gk-sheet-sub { display: block; padding: 0 14px 10px; font-size: 12px; color: var(--gk-muted); }
.gk-sheet-sub.is-warn { color: var(--gk-warning-text); }
.gk-sheet-kind { align-self: flex-start; margin: 0 14px 10px; padding: 2px 8px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-pill); background: var(--gk-bg); color: var(--gk-muted); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.gk-sheet-kind:hover { border-color: var(--gk-accent); color: var(--gk-accent-text); }
.gk-sheet-kind.is-part { background: var(--gk-mint); border-color: transparent; color: var(--gk-accent-text); cursor: default; }

/* The searchable picker sits flat inside its cell */
.gk-sheet-table .gk-pick .gk-pick-input, .gk-layout-owner .gk-sheet-table .gk-picker-trigger { min-height: 48px !important; padding: 12px 40px 12px 14px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 14px !important; }
.gk-sheet-table .gk-pick .gk-pick-input:focus { box-shadow: inset 0 0 0 2px var(--gk-accent) !important; background: var(--gk-surface) !important; }
.gk-sheet-table .gk-pick-pop { min-width: 320px; }

/* Under the lines: add item | sub total */
.gk-sheet-table tfoot td { background: var(--gk-bg); border-bottom: 0; }
.gk-sheet-table tfoot td:first-child { border-bottom-left-radius: calc(var(--gk-radius-md) - 1px); }
.gk-sheet-table tfoot td:last-child { border-bottom-right-radius: calc(var(--gk-radius-md) - 1px); }
.gk-sheet-addcell { padding: 6px 8px !important; white-space: nowrap; }
.gk-sheet-add { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--gk-accent-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.gk-sheet-add:hover { background: var(--gk-mint); }
.gk-sheet-add:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-sheet-add-more { margin-left: 4px; color: var(--gk-muted); font-size: 13px; white-space: nowrap; }
.gk-sheet-add-more .gk-sheet-link { display: inline; }
.gk-sheet-subcell { padding: 14px !important; font-weight: 600; }
.gk-sheet-subcell > div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.gk-sheet-subcell span:last-child { color: var(--gk-text); }
.gk-sheet-lbl { display: none; }

/* Bottom: notes / photo | totals / payment */
.gk-sheet-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 24px 48px; align-items: start; }
.gk-sheet-left { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.gk-sheet-left .gk-form-group { margin: 0; }
.gk-sheet-note { min-height: 96px; resize: vertical; }
.gk-sheet-photo { display: flex; align-items: center; gap: 12px; }
.gk-sheet-photo-tile { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 92px; height: 92px; flex: none; border: 1.5px dashed var(--gk-border-strong); border-radius: var(--gk-radius-md); background: var(--gk-surface); color: var(--gk-muted); cursor: pointer; overflow: hidden; }
.gk-sheet-photo-tile:hover { border-color: var(--gk-accent); color: var(--gk-accent-text); background: var(--gk-surface-tint); }
.gk-sheet-photo-tile:focus-within { box-shadow: var(--gk-focus); }
.gk-sheet-photo-tile.is-error { border-color: var(--gk-danger); }
.gk-sheet-photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.gk-sheet-photo-text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.gk-sheet-photo-text .gk-hint { font-size: 12px; }
.gk-sheet-left > .gk-hint { margin: 0; font-size: 12px; }

.gk-sheet-right { display: flex; flex-direction: column; gap: 14px; }
.gk-sheet-sums { margin: 0; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.gk-sheet-sums > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.gk-sheet-sums dt { color: var(--gk-muted); }
.gk-sheet-sums dd { margin: 0; }
.gk-sheet-line { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 12px; }
.gk-sheet-line > .gk-sheet-line-label { font-size: 15px; font-weight: 600; color: var(--gk-text); }
.gk-sheet-line .gk-form-group { margin: 0; }
.gk-sheet-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 16px; border: 1px solid var(--gk-border-strong); border-radius: var(--gk-radius-md); background: var(--gk-bg); font-variant-numeric: tabular-nums; }
.gk-sheet-total span { color: var(--gk-muted); font-size: 14px; }
.gk-sheet-total strong { font-size: 20px; font-weight: 700; color: var(--gk-primary); }
.gk-sheet-right > .gk-hint { margin: 0 0 0 152px; font-size: 12px; }
.gk-sheet-right .gk-field-error { font-size: 12px; }

.gk-sheet-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-bottom: 8px; }
.gk-sheet-actions .gk-sheet-actions-gap { flex: 1; }
.gk-layout-owner .gk-sheet-actions .gk-btn { min-height: 44px; padding-inline: 20px; font-size: 15px; }

/* The garage's note under a bill's lines */
.gk-bill-note { margin: 16px 0 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }

/* A cell that is only read (billing a job: the lines are changed on the job) */
.gk-sheet-read { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 48px; padding: 8px 14px; font-size: 14px; }
.gk-sheet-read.is-num { align-items: flex-end; font-variant-numeric: tabular-nums; }
.gk-sheet-read .gk-sheet-sub { padding: 0; }
@media (max-width: 900px) { .gk-sheet-read.is-num { align-items: flex-start; padding-top: 4px; } .gk-sheet-wide > .gk-sheet-read { padding-left: 4px; } }

/* Labour and hand-typed parts, parts held in stock, and lines that cannot change (1 Dec) */
.gk-sheet-addcell { white-space: normal !important; }
.gk-sheet-tag { align-self: flex-start; margin: 0 14px 10px; padding: 2px 8px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-pill); background: var(--gk-bg); color: var(--gk-muted); font-size: 11px; font-weight: 600; }
.gk-sheet-sub.is-lock { color: var(--gk-text); font-weight: 600; }
.gk-sheet-x.is-locked { color: var(--gk-muted); }
.gk-sheet-x.is-locked:hover { background: var(--gk-sunken); }
.gk-sheet-fixedmark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--gk-muted); }
.gk-sheet-stockfix { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: end; padding: 14px 16px 14px 66px; border-left: 3px solid var(--gk-danger); }
.gk-sheet-stockfix-text strong { display: block; color: var(--gk-danger); font-size: 14px; }
.gk-sheet-stockfix-text p { margin: 4px 0 0; font-size: 13px; color: var(--gk-text); }
.gk-sheet-stockfix-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.gk-sheet-stockfix-act .gk-form-group { margin: 0; width: 180px; }
.gk-sheet-stockfix-act > .gk-btn { margin-top: 24px; }
.gk-sheet-stockfix-hint { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--gk-muted); }
@media (max-width: 900px) { .gk-sheet-stockfix { grid-template-columns: 1fr; padding: 12px 14px; } .gk-sheet-stockfix-act > .gk-btn { margin-top: 0; align-self: flex-end; } }
/* Phone: the two discount boxes share half a card, so they give up padding to show two digits */
@media (max-width: 600px) {
  .gk-sheet-disc .gk-sheet-in { padding-left: 4px; padding-right: 4px; }
  .gk-sheet-disc .gk-sheet-affix > span { padding-left: 6px; }
  .gk-sheet-disc .gk-sheet-affix > span.is-after { padding: 0 6px 0 0; }
}

/* Column widths */
.gk-sheet-table col.c-sn { width: 52px; }
.gk-sheet-table col.c-qty { width: 84px; }
.gk-sheet-table col.c-unit { width: 92px; }
.gk-sheet-table col.c-rate { width: 116px; }
.gk-sheet-table col.c-disc { width: 168px; }
.gk-sheet-table col.c-vat { width: 76px; }
.gk-sheet-table col.c-amt { width: 124px; }
.gk-sheet-table col.c-del { width: 48px; }
@media (max-width: 1200px) {
  .gk-sheet-table col.c-qty { width: 72px; }
  .gk-sheet-table col.c-unit { width: 80px; }
  .gk-sheet-table col.c-rate { width: 104px; }
  .gk-sheet-table col.c-disc { width: 150px; }
  .gk-sheet-table col.c-amt { width: 112px; }
  .gk-sheet-in, .gk-sheet-amount, .gk-sheet-unit { padding-left: 10px; padding-right: 10px; }
  .gk-sheet-affix > span { padding-left: 10px; }
  .gk-sheet-table th { padding: 12px 10px; }
}

:root[data-theme="dark"] .gk-sheet-table th { background: var(--gk-sunken); }

@media (max-width: 1100px) {
  .gk-sheet-card { padding: 20px; }
  .gk-sheet-bottom { grid-template-columns: 1fr; }
  .gk-sheet-left { max-width: none; }
}

/* Phone and small tablet: each line becomes a small card */
@media (max-width: 900px) {
  .gk-sheet-top { flex-direction: column; align-items: stretch; }
  .gk-sheet-party { flex-basis: auto; min-width: 0; max-width: none; }
  .gk-sheet-meta { justify-content: stretch; }
  .gk-sheet-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .gk-sheet-meta > *, .gk-sheet-meta > .gk-sheet-meta-wide { width: auto; min-width: 0; }
  .gk-sheet-meta > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .gk-sheet-amtcell { display: flex !important; align-items: center; justify-content: space-between; }
  .gk-sheet-amtcell .gk-sheet-lbl { padding: 0 14px; }
  .gk-sheet-amtcell .gk-sheet-amount { padding: 12px 14px; }
  .gk-sheet-wrap { border: 0; }
  .gk-sheet-table, .gk-sheet-table tbody, .gk-sheet-table tfoot { display: block; }
  .gk-sheet-table colgroup, .gk-sheet-table thead { display: none; }
  .gk-sheet-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; border: 1px solid var(--gk-border-strong); border-radius: var(--gk-radius-md); overflow: visible; }
  .gk-sheet-row > td { display: block; border: 0 !important; border-bottom: 1px solid var(--gk-border) !important; background: transparent; }
  .gk-sheet-row > td.gk-sheet-sn { position: absolute; top: 12px; left: 10px; padding: 0; width: 24px; height: 24px; line-height: 24px; border-radius: 6px; background: var(--gk-sunken); font-size: 12px; border: 0 !important; z-index: 1; }
  .gk-sheet-row > td.gk-sheet-wide { grid-column: 1 / -1; padding-left: 36px; padding-right: 44px; }
  .gk-sheet-row > td.gk-sheet-delcell { position: absolute; top: 4px; right: 4px; border: 0 !important; background: transparent; }
  .gk-sheet-row > td.gk-sheet-notecell { grid-column: 1 / -1; padding: 0 !important; }
  .gk-sheet-lbl { display: block; padding: 8px 14px 0; font-size: 11px; font-weight: 600; color: var(--gk-muted); }
  .gk-sheet-wide .gk-sheet-lbl { display: none; }
  .gk-sheet-row > td:last-child, .gk-sheet-row > td.gk-sheet-amtcell { border-bottom: 0 !important; }
  .gk-sheet-amount { align-items: flex-start; padding-top: 6px; }
  .gk-sheet-unit { padding-top: 6px; }
  .gk-sheet-vat { justify-content: flex-start; padding: 6px 14px; min-height: 40px; }
  .gk-sheet-table tfoot tr { display: flex; flex-direction: column; gap: 8px; }
  .gk-sheet-table tfoot td { display: block; border: 1px solid var(--gk-border) !important; border-radius: var(--gk-radius-md); }
  .gk-sheet-line { grid-template-columns: 1fr; gap: 6px; }
  .gk-sheet-right > .gk-hint { margin-left: 0; }
}
@media (max-width: 600px) {
  .gk-sheet-card { padding: 16px; gap: 18px; }
  .gk-sheet-title { font-size: 19px; }
  .gk-sheet-actions { flex-direction: column-reverse; align-items: stretch; }
  .gk-sheet-actions .gk-sheet-actions-gap { display: none; }
  .gk-sheet-actions > * { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .gk-sheet-in, .gk-sheet-x { transition: none; } }

/* A note row under a line (cost not entered) */
.gk-sheet-noterow td { background: var(--gk-surface-tint); }
.gk-sheet-costnote { display: grid; grid-template-columns: 1fr minmax(200px, 280px); gap: 8px 16px; align-items: end; padding: 10px 14px 12px 70px; }
.gk-sheet-costnote .gk-form-group, .gk-sheet-costnote .gk-pos-note { margin: 0; }
@media (max-width: 900px) {
  .gk-sheet-noterow { margin-top: -12px; border-top: 0; border-radius: 0 0 var(--gk-radius-md) var(--gk-radius-md); grid-template-columns: 1fr; }
  .gk-sheet-costnote { grid-template-columns: 1fr; padding: 10px 14px; }
}
/* Named cells, so the phone layout can place them */
.gk-sheet-qtycell, .gk-sheet-unitcell, .gk-sheet-ratecell, .gk-sheet-disccell, .gk-sheet-vatcell { min-width: 0; }
@media (max-width: 900px) { .gk-sheet-disccell, .gk-sheet-amtcell { grid-column: span 1; } }
.gk-sheet-mode { margin-bottom: 8px; }

/* Phone: the date takes its own row; sharing one made it and the bill number wrap */
@media (max-width: 600px) { .gk-sheet-meta > .gk-sheet-meta-wide { grid-column: 1 / -1; } }

/* ==========================================================================
   17. Add / edit pages: numbered sections, stacking columns, save bar after the last section
   ========================================================================== */
.gk-form-page { max-width: 860px; margin: 0 auto; }
.gk-form-stack { display: flex; flex-direction: column; gap: 16px; }
.gk-form-section { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; overflow: visible; }
.gk-form-section .gk-form-group { margin: 0; }
.gk-form-section .gk-label { margin-bottom: 6px; }
.gk-form-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-form-title { color: var(--gk-text); }
.gk-form-step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--gk-mint); color: var(--gk-accent-text); font-size: 14px; }
.gk-form-lead { margin: 0; font-size: 13px; color: var(--gk-muted); }
.gk-form-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gk-form-wide { grid-column: 1 / -1; }
.gk-form-bar { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding: 12px 0; background: var(--gk-bg); border-top: 1px solid var(--gk-border); }
.gk-form-done { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-left: 4px solid var(--gk-success); }

/* Customer suggestions under the job card search */
.gk-suggest { position: relative; display: flex; flex-direction: column; gap: 6px; }
.gk-suggest-list { list-style: none; margin: 0; padding: 4px; max-height: 280px; overflow-y: auto; background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); box-shadow: var(--gk-elevation-raised); }
.gk-suggest-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; border-radius: var(--gk-radius-sm); background: transparent; color: var(--gk-text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.gk-suggest-item span { color: var(--gk-muted); font-size: 13px; }
.gk-suggest-item:hover, .gk-suggest-item:focus-visible { outline: none; background: var(--gk-sunken); }

/* Job card lines */
.gk-jline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gk-jline { display: grid; grid-template-columns: 76px minmax(0, 1fr) 84px 120px 118px 40px; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); background: var(--gk-bg); }
.gk-jline-kind { align-self: start; margin-top: 22px; padding: 4px 8px; border-radius: var(--gk-radius-sm); background: var(--gk-mint); color: var(--gk-accent-text); font-size: 12px; font-weight: 600; text-align: center; }
.gk-jline-kind.is-part { background: var(--gk-warning-bg); color: var(--gk-warning-text); }
.gk-jline-desc { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; }
.gk-jline-cell, .gk-jline-amount { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gk-jline-label { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--gk-muted); }
.gk-jline-amount strong { display: flex; align-items: center; justify-content: flex-end; min-height: 48px; font-size: 14px; white-space: nowrap; }
.gk-jline-amount .gk-jline-label { text-align: right; }
.gk-jline-remove { margin-top: 24px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--gk-radius-sm); background: transparent; color: var(--gk-muted); cursor: pointer; }
.gk-jline-remove:hover { background: var(--gk-danger-bg); color: var(--gk-danger); }
.gk-jline-remove:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-jline-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.gk-jline-total { margin: 0; font-size: 14px; color: var(--gk-muted); }
.gk-jline-total strong { margin-left: 8px; font-size: 20px; color: var(--gk-text); }

@media (max-width: 760px) {
  .gk-jline { grid-template-columns: 1fr 1fr; }
  .gk-jline-kind { grid-column: 1; justify-self: start; margin: 6px 0 0; }
  .gk-jline-remove { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; }
  .gk-jline-desc { grid-column: 1 / -1; padding-top: 0; }
  .gk-jline-amount { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 640px) {
  .gk-form-cols { grid-template-columns: 1fr; }
  .gk-form-section { padding: 18px 16px; }
  .gk-form-bar .gk-btn-primary { flex: 1; }
}

/* Detail pages: customer, vehicle, job card */
.gk-detail-page { display: flex; flex-direction: column; gap: 16px; }
.gk-detail-page > .gk-flash, .gk-detail-page > .gk-alert, .gk-detail-page > .gk-card { margin: 0; }
.gk-detail-head { padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.gk-detail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.gk-detail-who { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.gk-detail-avatar { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--gk-mint); color: var(--gk-accent-text); font-size: 22px; font-weight: 700; }
.gk-detail-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gk-detail-name { margin: 0; font-size: 22px; line-height: 30px; font-weight: 700; color: var(--gk-text); overflow-wrap: anywhere; }
.gk-detail-line { margin: 0; font-size: 14px; color: var(--gk-muted); }
.gk-detail-strong { font-size: 15px; font-weight: 600; color: var(--gk-text); }
.gk-detail-note { font-style: italic; }
.gk-detail-balance { display: flex; flex-direction: column; gap: 4px; min-width: 200px; padding: 14px 18px; text-align: right; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); background: var(--gk-bg); }
.gk-detail-balance strong { font-size: 26px; color: var(--gk-text); }
.gk-detail-balance.is-due strong { color: var(--gk-warning); }
.gk-detail-balance.is-pay strong { color: var(--gk-danger); }
.gk-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 16px; border-top: 1px solid var(--gk-border); }
.gk-detail-actions-flat { padding-top: 0; border-top: 0; }
.gk-detail-delete { margin-left: auto; }
.gk-detail-steps { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--gk-border); }
.gk-detail-section-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 18px 20px 0; font-size: 17px; }
.gk-detail-empty { margin: 0; padding: 18px 20px 24px; color: var(--gk-muted); font-size: 14px; }
.gk-detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.gk-detail-facts > div { padding: 12px 14px; border-radius: var(--gk-radius-sm); background: var(--gk-bg); }
.gk-detail-facts dt { font-size: 12px; font-weight: 600; color: var(--gk-muted); }
.gk-detail-facts dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; color: var(--gk-text); }
.gk-detail-concern { padding: 18px 24px; border-left: 4px solid var(--gk-warning-fill); }
.gk-detail-concern p { margin: 6px 0 0; overflow-wrap: anywhere; }
.gk-veh-grid { list-style: none; margin: 0; padding: 16px 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gk-veh-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); color: inherit; text-decoration: none; }
.gk-veh-card:hover { border-color: var(--gk-accent); box-shadow: var(--gk-elevation-card); }
.gk-veh-card:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-veh-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0; }
.gk-detail-head .gk-veh-top { justify-content: flex-start; }
.gk-veh-model { font-size: 14px; }
.gk-plate { display: inline-block; padding: 2px 10px; border: 2px solid var(--gk-text); border-radius: 6px; font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--gk-text); }
.gk-plate-lg { font-size: 20px; padding: 4px 14px; }
.gk-row-tag-warn { background: var(--gk-warning-bg); color: var(--gk-warning-text); }
.gk-table tr.gk-sum-first td { border-top: 2px solid var(--gk-border-strong); }
.gk-table tr.gk-sum-grand td { background: var(--gk-mint); font-size: 15px; font-weight: 700; }
.gk-timeline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gk-timeline-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--gk-border); }
.gk-timeline-list li:last-child { border-bottom: 0; }
@media (max-width: 640px) {
  .gk-detail-head { padding: 18px 16px; }
  .gk-detail-balance { width: 100%; text-align: left; }
  .gk-detail-facts { grid-template-columns: 1fr; }
  .gk-detail-delete { margin-left: 0; }
  .gk-timeline-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* Walk-in switch and the amount to collect */
.gk-form-mode { padding: 12px; }
.gk-form-mode .gk-seg-btn { min-height: 60px; }
.gk-walkin-pay { display: flex; flex-direction: column; justify-content: center; gap: 2px; margin: 0; padding: 10px 16px; border-radius: var(--gk-radius-md); background: var(--gk-mint); }
.gk-walkin-pay span { font-size: 13px; font-weight: 600; color: var(--gk-muted); }
.gk-walkin-pay strong { font-size: 24px; color: var(--gk-text); }
/* ==========================================================================
   18. Part sales: heading row, filters, row actions, receipt pop-up
   ========================================================================== */
.gk-ps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.gk-ps-lead { margin: 0; font-size: 14px; color: var(--gk-muted); }

.gk-ps-filters { padding: 16px 18px; margin-bottom: 16px; }
.gk-ps-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1.2fr)) repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.gk-ps-grid .gk-filter-field, .gk-ps-grid .gk-input-wrapper { min-width: 0; margin: 0; }
.gk-ps-grid .gk-label { display: block; margin-bottom: 6px; min-height: 20px; }
.gk-ps-grid .gk-datepick-btn { width: 100%; }
.gk-ps-quick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gk-border); }
.gk-ps-clear { margin-left: auto; }
.gk-ps-busy { opacity: .6; transition: opacity var(--gk-motion-fast) var(--gk-motion-easing); }

.gk-ps-code { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; }
.gk-ps-code:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-ps-parts { max-width: 280px; overflow-wrap: anywhere; }
.gk-ps-void td { color: var(--gk-muted); }

.gk-ps-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--gk-radius-pill); background: var(--gk-sunken); color: var(--gk-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.gk-ps-badge.is-paid { background: var(--gk-success-bg); color: var(--gk-success); }
.gk-ps-badge.is-udhar { background: var(--gk-warning-bg); color: var(--gk-warning-text); }
.gk-ps-badge.is-void { background: var(--gk-danger-bg); color: var(--gk-danger); }

.gk-ps-acts { display: inline-flex; gap: 6px; justify-content: flex-end; }
.gk-ps-act {
  width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gk-border); border-radius: var(--gk-radius-sm); background: var(--gk-surface); color: var(--gk-text); cursor: pointer;
  transition: background var(--gk-motion-fast) var(--gk-motion-easing), border-color var(--gk-motion-fast) var(--gk-motion-easing);
}
.gk-ps-act:hover { border-color: var(--gk-accent); background: var(--gk-mint); color: var(--gk-primary); }
.gk-ps-act.is-danger { color: var(--gk-danger); }
.gk-ps-act.is-danger:hover { border-color: var(--gk-danger); background: var(--gk-danger-bg); color: var(--gk-danger); }
.gk-ps-act:focus-visible { outline: none; box-shadow: var(--gk-focus); }
:root[data-theme="dark"] .gk-ps-act:hover:not(.is-danger) { background: var(--gk-surface-tint); color: var(--gk-text); }

/* Receipt pop-up. Not .gk-modal-backdrop: that class is hidden on paper, and this receipt must print. Sits under the confirm box. */
.gk-ps-overlay { position: fixed; inset: 0; z-index: 7500; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(11,37,66,.62); backdrop-filter: blur(3px); }
.gk-ps-modal { width: 100%; max-width: 560px; display: flex; flex-direction: column; background: var(--gk-surface); border-radius: var(--gk-radius-xl); box-shadow: var(--gk-elevation-raised); }
.gk-ps-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--gk-border); }
.gk-ps-modal-title { display: flex; align-items: center; gap: 10px; }
.gk-ps-modal-title h3 { margin: 0; }
.gk-ps-modal-body { flex: 1 0 auto; padding: 16px 20px; }
.gk-ps-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--gk-border); }
.gk-ps-modal-foot .gk-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

.gk-ps-grid .gk-datepick-text, .gk-ps-grid .gk-datepick-empty { white-space: nowrap; }
@media (max-width: 1535px) {
  .gk-ps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gk-ps-search { grid-column: 1 / -1; }
}
@media (max-width: 1100px) { .gk-ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .gk-ps-grid { grid-template-columns: 1fr; }
  .gk-ps-act { width: 48px; height: 48px; }
  .gk-ps-overlay { padding: 12px 8px; }
}
@media print {
  .gk-ps-overlay { position: static; display: block; padding: 0; background: none; backdrop-filter: none; }
  .gk-ps-modal { max-width: none; box-shadow: none; }
  .gk-ps-modal-body { padding: 0; }
}
@media (max-width: 767px) { .gk-ps-parts { max-width: none; } .gk-ps-parts > div { text-align: right; } }
/* ==========================================================================
   19. Job detail: header with progress steps, work on the left, money and facts on the right
   ========================================================================== */
.gk-jd-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--gk-muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.gk-jd-back:hover { color: var(--gk-accent-text); }
.gk-jd-back:focus-visible { outline: none; box-shadow: var(--gk-focus); }

.gk-jd-hero { display: flex; flex-direction: column; gap: 18px; }
.gk-jd-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.gk-jd-id { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gk-jd-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gk-jd-code { margin: 0; font-size: 26px; line-height: 34px; font-weight: 700; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-jd-code { color: var(--gk-text); }
.gk-jd-who { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.gk-jd-name { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.gk-jd-model { font-size: 14px; color: var(--gk-muted); }
.gk-jd-docs { display: flex; gap: 8px; flex-wrap: wrap; }
.gk-jd-docs .gk-btn { text-decoration: none; }

.gk-jd-steps { list-style: none; margin: 0; padding: 18px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--gk-border); }
.gk-jd-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 4px; text-align: center; }
.gk-jd-step::before { content: ""; position: absolute; top: 13px; right: calc(50% + 18px); left: calc(-50% + 18px); height: 2px; background: var(--gk-border); }
.gk-jd-step:first-child::before { display: none; }
.gk-jd-step.is-done::before, .gk-jd-step.is-now::before, .gk-jd-step.is-skipped::before { background: var(--gk-accent); }
.gk-jd-dot { width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--gk-border-strong); border-radius: 50%; background: var(--gk-surface); color: var(--gk-muted); font-size: 12px; font-weight: 700; }
.gk-jd-step.is-done .gk-jd-dot { border-color: var(--gk-accent); background: var(--gk-accent); color: var(--gk-on-accent); }
.gk-jd-step.is-skipped .gk-jd-dot { border-color: var(--gk-accent); }
.gk-jd-step.is-now .gk-jd-dot { border-color: var(--gk-primary); background: var(--gk-primary); color: var(--gk-on-primary); box-shadow: 0 0 0 4px var(--gk-mint); }
.gk-jd-step-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gk-jd-step-name { font-size: 12px; line-height: 17px; font-weight: 600; color: var(--gk-muted); }
.gk-jd-step.is-done .gk-jd-step-name, .gk-jd-step.is-now .gk-jd-step-name { color: var(--gk-text); }
.gk-jd-step-date { font-size: 11px; color: var(--gk-muted); }

.gk-jd-next { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--gk-radius-md); background: var(--gk-bg); }
.gk-jd-next-label { font-size: 13px; font-weight: 600; color: var(--gk-muted); }
.gk-jd-next .gk-btn { display: inline-flex; align-items: center; gap: 8px; }
.gk-jd-cancel { margin-left: auto; }

.gk-jd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.gk-jd-main, .gk-jd-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gk-main-content .gk-jd-main > .gk-card, .gk-main-content .gk-jd-side > .gk-card { margin: 0; }
.gk-jd-card { display: flex; flex-direction: column; gap: 12px; }
.gk-jd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gk-jd-h { margin: 0; font-size: 15px; font-weight: 700; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-jd-h { color: var(--gk-text); }
.gk-jd-count { font-size: 12px; font-weight: 600; color: var(--gk-muted); }
.gk-jd-concern { margin: 0; padding: 12px 14px; border-left: 3px solid var(--gk-warning-fill); border-radius: var(--gk-radius-sm); background: var(--gk-bg); white-space: pre-line; overflow-wrap: anywhere; }

.gk-jd-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gk-jd-kind { flex: none; min-width: 62px; padding: 2px 8px; border-radius: var(--gk-radius-pill); background: var(--gk-mint); color: var(--gk-accent-text); font-size: 11px; font-weight: 600; text-align: center; }
.gk-jd-kind.is-part { background: var(--gk-warning-bg); color: var(--gk-warning-text); }
.gk-jd-desc { font-weight: 600; overflow-wrap: anywhere; }
.gk-jd-sums { align-self: flex-end; width: min(100%, 300px); margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gk-jd-sums > div { display: flex; justify-content: space-between; gap: 16px; padding: 0 16px; }
.gk-jd-sums dt { color: var(--gk-muted); }
.gk-jd-sums dd { margin: 0; font-weight: 600; }
.gk-jd-sums > .is-grand { align-items: baseline; margin-top: 4px; padding: 10px 16px; border-radius: var(--gk-radius-sm); background: var(--gk-mint); }
.gk-jd-sums > .is-grand dt, .gk-jd-sums > .is-grand dd { color: var(--gk-text); font-weight: 700; }
.gk-jd-sums > .is-grand dd { font-size: 18px; }

.gk-jd-pay { padding: 3px 10px; border-radius: var(--gk-radius-pill); background: var(--gk-sunken); color: var(--gk-muted); font-size: 12px; font-weight: 600; }
.gk-jd-pay.is-paid { background: var(--gk-success-bg); color: var(--gk-success); }
.gk-jd-pay.is-part, .gk-jd-pay.is-due { background: var(--gk-warning-bg); color: var(--gk-warning-text); }
.gk-jd-balance { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--gk-muted); }
.gk-jd-balance strong { font-size: 28px; line-height: 36px; color: var(--gk-text); }
.gk-jd-balance.is-part strong, .gk-jd-balance.is-due strong { color: var(--gk-warning); }
.gk-jd-balance.is-paid strong { color: var(--gk-success); }
.gk-jd-bar { height: 8px; overflow: hidden; border-radius: var(--gk-radius-pill); background: var(--gk-sunken); }
.gk-jd-bar span { display: block; height: 100%; background: var(--gk-accent); }
.gk-jd-wide { width: 100%; justify-content: center; text-align: center; text-decoration: none; }

.gk-jd-facts { margin: 0; display: flex; flex-direction: column; }
.gk-jd-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--gk-border); }
.gk-jd-facts > div:last-child { border-bottom: 0; }
.gk-jd-facts dt { flex: none; font-size: 13px; color: var(--gk-muted); }
.gk-jd-facts dd { margin: 0; min-width: 0; font-size: 14px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.gk-jd-log { list-style: none; margin: 0; padding: 0; }
.gk-jd-log li { position: relative; padding: 0 0 14px 22px; }
.gk-jd-log li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gk-accent); }
.gk-jd-log li::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: 2px; width: 1px; background: var(--gk-border-strong); }
.gk-jd-log li:last-child { padding-bottom: 0; }
.gk-jd-log li:last-child::after { display: none; }
.gk-jd-log-title { font-size: 14px; font-weight: 600; }
.gk-jd-log-note { font-size: 13px; overflow-wrap: anywhere; }

@media (max-width: 1150px) { .gk-jd-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .gk-jd-steps { grid-auto-flow: row; grid-template-columns: 1fr; gap: 10px; }
  .gk-jd-step { flex-direction: row; text-align: left; gap: 12px; }
  .gk-jd-step::before { display: none; }
}
@media (max-width: 767px) {
  .gk-jd-next .gk-btn { width: 100%; justify-content: center; }
  .gk-jd-cancel { margin-left: 0; }
  .gk-jd-item { justify-content: flex-end; }
  .gk-jd-sums { align-self: stretch; width: 100%; }
}

/* Adding work to a saved job */
.gk-jd-addbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.gk-jd-addline { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); }
.gk-jd-addline .gk-form-group { margin: 0; }
.gk-jd-addline-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: start; }
.gk-jd-addline-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.gk-jd-lineact { text-align: right; }
@media (max-width: 767px) { .gk-jd-addline-grid { grid-template-columns: 1fr; } }

/* Parts from stock, inside the narrower main column */
.gk-journal-line.gk-jp-line { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); align-items: end; }
.gk-jp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 767px) { .gk-journal-line.gk-jp-line { grid-template-columns: 1fr; } }
/* ==========================================================================
   20. Estimates: list extras, entry sheet extras, saved estimate page and its document
   (the list shares the heading, filters, badges, row actions and pop-up of 18-part-sales)
   ========================================================================== */
.gk-ps-badge.is-void, .gk-ps-badge.is-paid, .gk-ps-badge.is-udhar { border: 0; }
.gk-est-nowrap { white-space: nowrap; }
.gk-est-table .gk-ps-parts { max-width: 220px; }
.gk-est-actcol { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.gk-est-steps { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.gk-est-steps .gk-btn { text-decoration: none; white-space: nowrap; }
.gk-est-became { font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (min-width: 768px) { .gk-est-table th, .gk-est-table td { padding-inline: 10px; } .gk-est-table .gk-est-actcol { min-width: 196px; } }
.gk-est-soon { color: var(--gk-warning-text); font-weight: 600; }
.gk-ps-grid.gk-est-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); }
@media (max-width: 1535px) { .gk-ps-grid.gk-est-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .gk-ps-grid.gk-est-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gk-ps-grid.gk-est-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .gk-est-table .gk-ps-parts { max-width: none; } .gk-est-table td > div:not(.gk-ps-acts) { margin-left: auto; text-align: right; } .gk-est-table td > div .gk-row-sub { display: block; text-align: right; } }

.gk-ps-modal.gk-est-modal { max-width: 760px; }
.gk-est-foot-end { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.gk-est-modal .gk-ps-modal-foot .gk-btn { flex-direction: row; flex-wrap: nowrap; min-height: 44px; white-space: nowrap; }
@media (max-width: 560px) { .gk-est-modal .gk-ps-modal-foot { flex-wrap: wrap; } .gk-est-foot-end { flex: 1 1 100%; flex-wrap: nowrap; } .gk-est-foot-end > * { flex: 1 1 0; justify-content: center; } .gk-est-modal .gk-ps-modal-foot .gk-btn { min-height: 48px; } }

/* Entry sheet */
.gk-est-job { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); background: var(--gk-surface-tint); }
.gk-est-job-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gk-est-plate { font-size: 16px; letter-spacing: .02em; }
.gk-est-job-warn { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: var(--gk-warning-text); }
.gk-sheet-meta > .gk-est-valid { width: 230px; display: flex; flex-direction: column; gap: 8px; }
.gk-est-chips { display: flex; gap: 6px; }
.gk-est-chip { flex: 1; min-height: 32px; padding: 4px 6px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-pill); background: var(--gk-surface); color: var(--gk-muted); font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.gk-est-chip:hover { border-color: var(--gk-accent); color: var(--gk-accent-text); }
.gk-est-chip.is-on { border-color: var(--gk-accent); background: var(--gk-mint); color: var(--gk-accent-text); }
.gk-est-chip:focus-visible { outline: none; box-shadow: var(--gk-focus); }
:root[data-theme="dark"] .gk-est-chip.is-on { background: var(--gk-surface-tint); color: var(--gk-text); }
@media (max-width: 767px) { .gk-sheet-meta > .gk-est-valid { width: 100%; } .gk-est-chip { min-height: 48px; } }

/* Saved estimate page */
.gk-est-page { width: 100%; max-width: 880px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; }
.gk-est-page > * { margin: 0; }
.gk-est-bar, .gk-est-bar-start, .gk-est-bar-end { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gk-est-bar { justify-content: space-between; }
.gk-est-bar .gk-btn, .gk-est-state .gk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.gk-est-state { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; padding: 16px 20px; border-left: 4px solid var(--gk-border-strong); }
.gk-est-state.is-wait { border-left-color: var(--gk-warning-fill); }
.gk-est-state.is-ok { border-left-color: var(--gk-success); }
.gk-est-state.is-no { border-left-color: var(--gk-danger); }
.gk-est-state-text { flex: 1 1 240px; }
.gk-est-state h2 { margin: 0; font-size: 16px; font-weight: 700; }
.gk-est-state p { margin: 2px 0 0; font-size: 13px; color: var(--gk-muted); }
.gk-est-state-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.gk-est-state-acts:empty { display: none; }
.gk-est-share { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 18px; }
.gk-est-share pre { margin: 0; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; }
.gk-est-paper { padding: 32px; }

/* The document */
.gk-est-doc { font-size: 14px; }
.gk-est-doc p { margin: 0; }
.gk-est-doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 3px solid var(--gk-primary); }
.gk-est-doc-garage { margin: 0 0 2px; font-size: 20px; font-weight: 700; color: var(--gk-primary); }
.gk-est-doc-head p { font-size: 13px; color: var(--gk-muted); }
.gk-est-doc-id { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.gk-est-doc-kind { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gk-accent-text); }
.gk-est-doc-id strong { font-size: 20px; }
.gk-est-doc-info { display: grid; grid-template-columns: 1fr 1fr minmax(190px, auto); gap: 14px 24px; padding: 18px 0; }
.gk-est-doc-info > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.gk-est-doc-info > div > span:not(.gk-est-doc-label) { font-size: 13px; color: var(--gk-muted); }
.gk-est-doc-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gk-muted); }
.gk-est-doc-info dl { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gk-est-doc-info dl > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.gk-est-doc-info dt { color: var(--gk-muted); }
.gk-est-doc-info dd { margin: 0; font-weight: 600; white-space: nowrap; }
.gk-est-doc-lines { width: 100%; border-collapse: collapse; }
.gk-est-doc-lines th { padding: 10px 12px; background: var(--gk-sunken); color: var(--gk-muted); font-size: 12px; font-weight: 600; text-align: left; }
.gk-est-doc-lines td { padding: 12px; border-bottom: 1px solid var(--gk-border); vertical-align: top; }
.gk-est-doc-lines .is-num { text-align: right; white-space: nowrap; }
.gk-est-doc-lines td.is-num:last-child { font-weight: 600; }
.gk-est-doc-lines .is-sn { width: 36px; color: var(--gk-muted); }
.gk-est-doc-item { display: block; font-weight: 600; overflow-wrap: anywhere; }
.gk-est-doc-lines small { display: block; margin-top: 2px; font-size: 12px; color: var(--gk-muted); }
.gk-est-doc-qtyrate { display: none; }
.gk-est-doc-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 16px 32px; align-items: start; padding-top: 16px; }
.gk-est-doc-note p { margin-top: 4px; font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; }
.gk-est-doc-sums { margin: 0; }
.gk-est-doc-sums > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 14px; }
.gk-est-doc-sums dt { color: var(--gk-muted); }
.gk-est-doc-sums dd { margin: 0; white-space: nowrap; }
.gk-est-doc-sums > .is-total { margin-top: 8px; padding-block: 12px; border-radius: var(--gk-radius-md); background: var(--gk-mint); }
.gk-est-doc-sums .is-total dt { color: var(--gk-text); font-weight: 600; }
.gk-est-doc-sums .is-total dd { font-size: 20px; font-weight: 700; color: var(--gk-primary); }
.gk-est-doc .gk-document-notice { margin-top: 24px; }
:root[data-theme="dark"] .gk-est-doc-sums > .is-total { background: var(--gk-surface-tint); }
:root[data-theme="dark"] .gk-est-doc-garage, :root[data-theme="dark"] .gk-est-doc-sums .is-total dd { color: var(--gk-text); }
.gk-est-modal .gk-est-doc-info { grid-template-columns: 1fr 1fr; }
.gk-est-modal .gk-est-doc-info dl { grid-column: 1 / -1; flex-direction: row; gap: 24px; flex-wrap: wrap; }
.gk-est-modal .gk-est-doc-info dl > div { gap: 8px; }

@media (max-width: 640px) {
  .gk-est-paper { padding: 18px 14px; }
  .gk-est-doc-info, .gk-est-doc-foot { grid-template-columns: 1fr; }
  .gk-est-doc-id { align-items: flex-start; }
  .gk-est-doc-lines .is-qty, .gk-est-doc-lines .is-rate { display: none; }
  .gk-est-doc-lines th, .gk-est-doc-lines td { padding-inline: 6px; }
  .gk-est-doc-lines .is-sn { width: 24px; }
  .gk-est-doc-qtyrate { display: inline; }
  .gk-est-bar-end, .gk-est-state-acts { width: 100%; }
  .gk-est-bar-end > *, .gk-est-state-acts > * { flex: 1 1 140px; }
}
@media print { .gk-est-paper { padding: 0; border: 0; box-shadow: none; } }

/* ready-to-send message (estimate, bill, receipt) */
.gk-share-msg { margin: 0; align-self: stretch; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }

/* ============================================================ vehicle history (past visits) */
.gk-vh { display: flex; flex-direction: column; gap: 12px; }
.gk-vh-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.gk-vh-title h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--gk-primary); }
:root[data-theme="dark"] .gk-vh-title h3 { color: var(--gk-text); }
.gk-vh-title .gk-btn { min-height: 44px; }
.gk-vh-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--gk-border); border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); overflow: hidden; }
.gk-vh-summary > div { background: var(--gk-surface); padding: 12px 16px; min-width: 0; }
.gk-vh-summary dt { font-size: 12px; font-weight: 600; color: var(--gk-muted); }
.gk-vh-summary dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.gk-vh-summary dd.is-due { color: var(--gk-danger); }
.gk-vh-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; }
.gk-vh-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gk-vh-visit { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.gk-vh-visit.is-cancelled { background: var(--gk-bg); border-style: dashed; box-shadow: none; }
.gk-vh-visit.is-cancelled .gk-vh-body { color: var(--gk-muted); text-decoration: line-through; }
.gk-vh-head { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.gk-vh-date strong { display: block; font-size: 15px; }
.gk-vh-date span { font-size: 12px; color: var(--gk-muted); }
.gk-vh-meta { margin: 2px 0 0; font-size: 13px; color: var(--gk-muted); display: flex; flex-wrap: wrap; column-gap: 8px; }
.gk-vh-meta > span + span::before { content: "·"; margin-right: 8px; opacity: .6; }
.gk-vh-none { font-style: italic; }
.gk-vh-state { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.gk-vh-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-left: 166px; }
.gk-vh-body h4 { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--gk-muted); }
.gk-vh-body ul { list-style: none; margin: 0; padding: 0; }
.gk-vh-body li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14px; overflow-wrap: anywhere; }
.gk-vh-body em { font-size: 12px; color: var(--gk-warning-text); font-style: normal; margin-left: 6px; }
.gk-vh-qty { color: var(--gk-muted); white-space: nowrap; }
.gk-vh-more { border: 0; background: none; padding: 6px 0; min-height: 44px; font: inherit; font-size: 13px; font-weight: 600; color: var(--gk-accent-text); cursor: pointer; }
.gk-vh-note { margin: 0 0 0 166px; font-size: 13px; padding: 8px 12px; border-radius: var(--gk-radius-sm); background: var(--gk-warning-bg); color: var(--gk-warning-text); }
.gk-vh-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--gk-border); padding-top: 12px; }
.gk-vh-billno { display: block; font-size: 12px; color: var(--gk-muted); margin-bottom: 4px; }
.gk-vh-sums { display: flex; gap: 24px; margin: 0; flex-wrap: wrap; }
.gk-vh-sums dt { font-size: 12px; color: var(--gk-muted); }
.gk-vh-sums dd { margin: 0; font-size: 15px; font-weight: 700; }
.gk-vh-sums .is-due dd { color: var(--gk-danger); }
.gk-vh-links { display: flex; gap: 8px; margin-left: auto; }
.gk-vh-links .gk-btn { min-height: 44px; }
@media (max-width: 640px) {
  .gk-vh-summary { grid-template-columns: 1fr 1fr; }
  .gk-vh-visit { padding: 14px; }
  .gk-vh-head { grid-template-columns: 1fr auto; gap: 8px; }
  .gk-vh-id { grid-column: 1 / -1; grid-row: 2; }
  .gk-vh-state { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-end; }
  .gk-vh-body { grid-template-columns: 1fr; padding-left: 0; gap: 8px; }
  .gk-vh-note { margin-left: 0; }
  .gk-vh-links { width: 100%; }
  .gk-vh-links .gk-btn { flex: 1; min-height: 48px; }
}
/* ============================================================ purchase return (29 Nov)
   Built on the bill sheet (16-sheet.css). Only what the return adds: the two ways in, the search results, the quantity
   table and the printed return note. */
.gk-pret { min-width: 0; }
.gk-pret-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1 1 320px; max-width: 520px; }
.gk-pret-mode { display: flex; flex-direction: column; gap: 2px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--gk-border-strong); border-radius: var(--gk-radius-md); background: var(--gk-surface); color: var(--gk-text); font: inherit; text-align: left; cursor: pointer; }
.gk-pret-mode strong { font-size: 14px; font-weight: 600; }
.gk-pret-mode small { font-size: 12px; color: var(--gk-muted); }
.gk-pret-mode.is-on { border-color: var(--gk-primary); background: var(--gk-secondary); box-shadow: inset 0 0 0 1px var(--gk-primary); }
.gk-pret-mode:focus-visible { outline: none; box-shadow: var(--gk-focus); }

.gk-pret-finder { display: flex; flex-direction: column; gap: 8px; }
.gk-pret-finder > .gk-lsearch-field { flex: none; max-width: 560px; }
.gk-pret-finder > .gk-hint { margin: 0; }
.gk-pret-results { list-style: none; margin: 0; padding: 0; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-md); overflow: hidden; }
.gk-pret-results li + li { border-top: 1px solid var(--gk-border); }
.gk-pret-results button { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; padding: 8px 14px; border: 0; background: var(--gk-surface); color: var(--gk-text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.gk-pret-results button:hover { background: var(--gk-secondary); }
.gk-pret-results button:focus-visible { outline: none; box-shadow: inset var(--gk-focus); }
.gk-pret-results button > span:first-child { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.gk-pret-results small { font-size: 12px; color: var(--gk-muted); }
.gk-pret-result-end { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; text-align: right; }
.gk-pret-add { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 8px; border: 1.5px dashed var(--gk-accent); color: var(--gk-accent-text); font-size: 18px; font-weight: 600; }

.gk-pret-chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--gk-border); border-left: 4px solid var(--gk-accent); border-radius: var(--gk-radius-md); background: var(--gk-surface-tint); }
.gk-pret-chosen .gk-hint { margin-top: 2px; }
.gk-pret-chosen-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.gk-pret-table td { vertical-align: top; }
.gk-pret-table th.gk-bill-num, .gk-pret-table td.gk-bill-num { text-align: right; }
.gk-pret-table tr.is-picked td { background: var(--gk-surface-tint); }
.gk-pret-table .gk-hint { font-size: 12px; }
.gk-pret-table .gk-field-error { display: block; max-width: 240px; font-size: 12px; }
.gk-pret-qty { display: flex; align-items: center; gap: 6px; }
.gk-pret-qty .gk-input { width: 96px; text-align: right; }
.gk-pret-units, .gk-pret-settle { display: flex; gap: 6px; flex-wrap: wrap; }
.gk-pret-units button, .gk-pret-settle button { min-height: 40px; padding: 6px 12px; border: 1px solid var(--gk-border-strong); border-radius: var(--gk-radius-pill); background: var(--gk-surface); color: var(--gk-text); font: inherit; font-size: 13px; cursor: pointer; }
.gk-pret-units button.is-on, .gk-pret-settle button.is-on { border-color: var(--gk-primary); background: var(--gk-secondary); color: var(--gk-primary); font-weight: 600; }
.gk-pret-units button:focus-visible, .gk-pret-settle button:focus-visible { outline: none; box-shadow: var(--gk-focus); }
:root[data-theme="dark"] .gk-pret-units button.is-on, :root[data-theme="dark"] .gk-pret-settle button.is-on { color: var(--gk-text); }
.gk-pret-warn { font-size: 12px; font-weight: 600; color: var(--gk-danger); }

.gk-pret-garage { margin: 0; font-size: 13px; font-weight: 700; color: var(--gk-muted); }
.gk-pret-signs { display: none; }

.gk-pret-table td svg { flex: none; }
.gk-pret .gk-datepick-btn { white-space: nowrap; }
/* Where the sheet's top row stacks, the 320px basis would become a height. */
@media (max-width: 900px) {
  .gk-pret-modes { flex: 0 0 auto; width: 100%; max-width: none; }
}
@media (max-width: 700px) {
  .gk-pret-modes { grid-template-columns: 1fr; }
  .gk-pret .gk-sheet-meta { display: flex; flex-direction: column; width: 100%; }
  .gk-pret .gk-sheet-meta > *, .gk-pret .gk-sheet-meta > .gk-sheet-meta-wide { width: 100%; }
  .gk-pret-results button > span:first-child { flex-basis: calc(100% - 46px); }
  .gk-pret-result-end { order: 3; }
  .gk-pret-add { order: 2; }
  .gk-pret-results button { flex-wrap: wrap; gap: 6px 12px; }
  .gk-pret-result-end { align-items: flex-start; text-align: left; }
}
@media print {
  .gk-pret-note { border: 0 !important; }
  .gk-pret-note .gk-danger-link { display: none !important; }
  .gk-pret-signs { display: flex; justify-content: space-between; gap: 40px; margin: 48px 0 16px; }
  .gk-pret-signs > span { min-width: 200px; padding-top: 6px; border-top: 1px solid #000; text-align: center; font-size: 10pt; }
}
/* ============================================================ staff pay: workers and pay (owner only)
   Lists use .gk-pt-stats, .gk-table.gk-stack and .gk-seg from the shared parts; only what Staff pay adds is here. */
.gk-wp { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gk-wp > .gk-flash, .gk-wp > .gk-alert, .gk-wp > .gk-card, .gk-wp > .gk-pt-stats, .gk-wp > .gk-pos-note { margin: 0; }
.gk-wp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 16px; flex-wrap: wrap; }
.gk-wp-head > .gk-lsearch-field { flex: 1 1 260px; max-width: 420px; }
.gk-wp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.gk-wp-card { display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.gk-wp-card .gk-form-group { margin: 0; }
.gk-wp-card .gk-pos-note { margin: 0; }
/* add / change worker: a narrow form in three parts */
.gk-wp .gk-wp-card.gk-wp-form { gap: 0; padding: 0; width: 100%; max-width: 760px; margin-inline: auto; }
.gk-wp-form > .gk-alert { margin: 16px 20px 0; }
.gk-wp-form-head { padding: 18px 20px; border-bottom: 1px solid var(--gk-border); }
.gk-wp-form-title { margin: 0 0 2px; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--gk-text); }
.gk-wp-form-head .gk-hint { margin: 0; }
.gk-wp-section { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; min-width: 0; }
.gk-wp-section + .gk-wp-section { border-top: 1px solid var(--gk-border); }
.gk-wp-section-title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gk-muted); }
html[data-lang="ne"] .gk-wp-section-title { letter-spacing: 0; font-size: 13px; }
.gk-wp-section .gk-form-grid { gap: 14px 16px; align-items: start; }
.gk-wp-payhint { margin: 6px 0 0; }
.gk-wp-form > .gk-wp-foot { padding: 14px 20px; border-top: 1px solid var(--gk-border); }
.gk-wp-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.gk-wp .gk-wp-adv { color: var(--gk-info); }
/* compact toolbar, figures and list */
.gk-wp-head > .gk-lsearch-field > .gk-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gk-wp-head { align-items: center; }
.gk-wp .gk-wp-stats { gap: 10px; }
.gk-wp .gk-wp-stats > .gk-pt-stat { gap: 2px; padding: 10px 14px; }
.gk-wp .gk-wp-stats .gk-pt-stat-value { font-size: 19px; line-height: 26px; }
.gk-wp .gk-wp-list { padding: 0; overflow: hidden; }
.gk-wp-list > .gk-pager { padding: 8px 14px; }
.gk-wp-list .gk-table td { vertical-align: middle; }
.gk-wp-who { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; }
.gk-wp-who .gk-row-title, .gk-wp-who .gk-row-sub { display: block; }
.gk-wp-avatar { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gk-surface-tint); color: var(--gk-text); font-size: 14px; font-weight: 700; }
.gk-wp-rowacts { display: flex; justify-content: flex-end; align-items: center; gap: 6px; flex-wrap: wrap; }
.gk-wp-linked { margin: 0; padding: 12px 20px 0; }
.gk-wp-textbtn { border: 0; background: none; padding: 0 4px; min-height: 48px; font: inherit; cursor: pointer; }
.gk-wp-textbtn:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-wp .gk-input.gk-wp-amount { max-width: 220px; margin-left: auto; text-align: right; }
.gk-wp-what { overflow-wrap: anywhere; }
.gk-wp-money { white-space: nowrap; }
.gk-wp-voided td:not(.gk-wp-act) { color: var(--gk-muted); }
.gk-wp-voided .gk-wp-what, .gk-wp-voided .gk-wp-money { text-decoration: line-through; }

/* how this worker earns, and their jobs waiting for a bill */
.gk-wp > .gk-wp-how { margin: 0; }
.gk-wp-card .gk-jd-h { margin: 0; }
.gk-wp-card > .gk-hint { margin: 0; }
.gk-wp-jobs { list-style: none; margin: 0; padding: 0; }
.gk-wp-jobs li { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--gk-border); }
.gk-wp-jobs li > .gk-link { display: inline-flex; align-items: center; min-height: 32px; }
.gk-wp-jobs li > strong { margin-left: auto; }
.gk-wp-warn { margin: 0; padding: 10px 12px; border-radius: var(--gk-radius-sm); background: var(--gk-warning-bg); color: var(--gk-warning-text); font-size: 13px; font-weight: 600; }

/* the mechanic choice on the job page, new job and walk-in */
.gk-wp-mechanic { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gk-wp-mechanic .gk-form-group { margin: 0; }
.gk-wp-mechanic .gk-seg-btn { overflow-wrap: anywhere; }
.gk-wp-calc { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-sm); font-size: 14px; }

@media (max-width: 700px) {
  .gk-wp-head > .gk-lsearch-field { max-width: none; }
  .gk-wp-actions, .gk-wp-actions > .gk-btn { width: 100%; }
  .gk-wp-form-head, .gk-wp-section, .gk-wp-form > .gk-wp-foot { padding-inline: 14px; }
  .gk-wp-foot > .gk-btn { flex: 1 1 140px; }
  .gk-wp .gk-input.gk-wp-amount { max-width: 160px; }
  .gk-wp .gk-table.gk-stack td.gk-wp-act { justify-content: flex-end; }
}

/* ==========================================================================
   24. Every pop-up: one scroll rule
   The backdrop scrolls, never a box inside the pop-up. A pop-up is as tall as
   its content, and its buttons come after the last field, so nothing can cover
   a field. Never give a pop-up max-height, overflow or a pinned footer.
   ========================================================================== */
@media screen {
  .gk-modal-backdrop, .gk-global-confirm-modal, .gk-ps-overlay, .gk-cal-backdrop { overflow-y: auto; overscroll-behavior: contain; }
  /* Auto margins centre a short pop-up; a tall one starts at the top and stays fully reachable. */
  .gk-modal-backdrop > *, .gk-global-confirm-modal > *, .gk-ps-overlay > *, .gk-cal-backdrop > * { margin: auto; flex-shrink: 0; }
}
/* On a phone, a bottom-sheet calendar still sits at the bottom. */
@media screen and (max-width: 480px) { .gk-cal-backdrop > * { margin-bottom: 0; } }

/* Compact: a pop-up is only as tall as its fields need. Phone touch sizes stay in 99-touch.css. */
@media screen {
  .gk-modal-backdrop .gk-modal:not(.gk-entry-modal) { padding: 16px 20px; gap: 12px; }
  .gk-modal-backdrop .gk-modal-title, .gk-ps-overlay .gk-modal-title { font-size: 18px; line-height: 24px; margin: 0; }
  .gk-modal-backdrop .gk-modal :is(.gk-hint, .gk-form-modal-sub, .gk-field-hint) { margin: 0; line-height: 16px; }
  .gk-modal-backdrop .gk-modal .gk-form-group { gap: 4px; margin: 0; }
  .gk-modal-backdrop .gk-modal .gk-label { font-size: 13px; line-height: 18px; margin: 0; }
  .gk-modal-backdrop .gk-modal .gk-form-grid { gap: 12px; }

  .gk-modal-backdrop .gk-entry-head { padding: 10px 12px 10px 20px; }
  .gk-modal-backdrop .gk-entry-body { padding: 12px 20px 14px; gap: 10px; }
  .gk-modal-backdrop .gk-entry-grid { gap: 10px 16px; }
  .gk-modal-backdrop .gk-entry-foot { padding: 10px 20px; }
  .gk-modal-backdrop .gk-entry-photo { min-height: 48px; padding: 6px 12px; }
  .gk-modal-backdrop .gk-pt-form-sep { padding-top: 8px; }
  .gk-modal-backdrop .gk-pt-profit { min-height: 0; }
  /* Full screen: the buttons still follow the last field, with no stretched gap between them. */
  .gk-modal-backdrop .gk-entry-modal.is-full :is(.gk-entry-form, .gk-entry-body) { flex-grow: 0; }

  .gk-ps-overlay .gk-ps-modal-head { padding: 10px 16px; }
  .gk-ps-overlay .gk-ps-modal-body { padding: 12px 16px; }
  .gk-ps-overlay .gk-ps-modal-foot { padding: 10px 16px; }
}
.gk-pt-stock-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; align-items: start; }

/* Mouse screens: shorter controls inside pop-ups. */
@media screen and (min-width: 768px) {
  .gk-modal-backdrop .gk-modal { --gk-input-h: 40px; --gk-ctl-h: 40px; }
  .gk-layout-owner .gk-modal-backdrop .gk-modal .gk-input:not(textarea) { min-height: 40px; padding-block: 6px; }
  .gk-layout-owner .gk-modal-backdrop .gk-modal .gk-picker-trigger { min-height: 40px !important; }
  .gk-layout-owner .gk-modal-backdrop .gk-modal .gk-btn { min-height: 40px; }
  .gk-modal-backdrop .gk-entry-tool { width: 36px; height: 36px; }
}
@media (max-width: 480px) { .gk-pt-stock-row > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* ==========================================================================
   25. Jobs: board toolbar and cards, quick-add pop-up, new job card, job intake facts
   ========================================================================== */
.gk-jb-bar { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; margin-bottom: 16px; }
.gk-jb-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gk-jb-search { flex: 1 1 260px; min-width: 0; }
.gk-jb-search > .gk-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gk-jb-top .gk-pt-head-actions { margin: 0; gap: 8px; }
.gk-layout-owner .gk-status-pill { min-height: 34px; padding: 4px 12px; gap: 6px; }
.gk-status-pill.is-late:not(.is-on) { border-color: var(--gk-danger); color: var(--gk-danger); }
.gk-kanban-what { margin: 6px 0 0; font-size: 12px; line-height: 17px; color: var(--gk-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.gk-kanban-due { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: var(--gk-radius-pill); background: var(--gk-sunken); color: var(--gk-muted); font-size: 11px; font-weight: 600; }
.gk-kanban-due.is-today { background: var(--gk-warning-bg); color: var(--gk-warning-text); }
.gk-kanban-due.is-late { background: var(--gk-surface); border: 1px solid var(--gk-danger); color: var(--gk-danger); }

/* Add customer / vehicle / worker without leaving the page */
.gk-modal-backdrop > .gk-qa { width: min(100%, 560px); max-width: 560px; }
.gk-qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.gk-qa-sub { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--gk-border); font-size: 14px; font-weight: 700; color: var(--gk-text); }
.gk-qa-types { display: flex; flex-wrap: wrap; gap: 6px; }
.gk-qa-match { align-self: flex-start; }
.gk-worker-backdrop > .gk-wp-form { display: flex; flex-direction: column; gap: 0; padding: 0; width: min(100%, 680px); }

/* New job card */
.gk-jf-quick { font-weight: 500; }
.gk-jf-mode { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gk-jf .gk-form-section { padding: 16px 20px; gap: 12px; }
.gk-jf .gk-form-title { font-size: 16px; }
.gk-jf .gk-form-step { width: 24px; height: 24px; font-size: 13px; }
.gk-jf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gk-jf-picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: var(--gk-radius-md); background: var(--gk-mint); }
.gk-jf-picked-who { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
.gk-jf-flag { padding: 2px 10px; border-radius: var(--gk-radius-pill); background: var(--gk-warning-bg); color: var(--gk-warning-text); font-size: 12px; font-weight: 600; }
.gk-jf-newpill { border-style: dashed; }
.gk-jf-add { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gk-jf-history { font-size: 13px; }
.gk-jf-history summary { cursor: pointer; font-weight: 600; color: var(--gk-accent-text); }
.gk-jf-history ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.gk-jf-history li { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--gk-border); }
.gk-jf-history-what { flex: 1 1 100%; color: var(--gk-muted); overflow-wrap: anywhere; }
.gk-jf-date { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gk-jf-date > .gk-datepick { flex: 1 1 160px; min-width: 0; margin: 0; }

/* Job page */
.gk-jd-intake { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.gk-jd-intake dt { font-size: 12px; font-weight: 600; color: var(--gk-muted); }
.gk-jd-intake dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.gk-jd-intake .is-late dt, .gk-jd-intake .is-late dd { color: var(--gk-danger); }
.gk-jd-side .gk-wp-calc, .gk-jd-side .gk-seg { flex-wrap: wrap; }
.gk-jp-add { display: flex; flex-direction: column; gap: 12px; }

/* Phone: finished steps, the current one and only the next one */
@media (max-width: 860px) { .gk-jd-step.is-todo ~ .gk-jd-step.is-todo { display: none; } }

@media (max-width: 640px) {
  .gk-jb-search { flex-basis: 100%; }
  .gk-jb-top .gk-pt-head-actions { width: auto; flex: 1 1 auto; }
  .gk-qa-grid { grid-template-columns: 1fr; }
  .gk-jf .gk-form-section { padding: 14px 12px; }
}
/* ==========================================================================
   26. Who is doing what: busy, free and unassigned (Home and Workers & pay)
   ========================================================================== */
.gk-wb { min-width: 0; }
.gk-wb-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.gk-wb-count { display: inline-flex; align-items: baseline; gap: 6px; margin: 0; padding: 6px 14px; border: 1px solid var(--gk-border); border-radius: var(--gk-radius-pill); font-size: 13px; color: var(--gk-muted); }
.gk-wb-count strong { font-size: 18px; color: var(--gk-text); }
.gk-wb-count.is-free { border-color: var(--gk-accent); background: var(--gk-mint); }
.gk-wb-count.is-free, .gk-wb-count.is-free strong { color: var(--gk-accent-text); }
.gk-wb-count.is-warn, .gk-wb-count.is-warn strong { border-color: var(--gk-warning-fill); color: var(--gk-warning-text); }
:root[data-theme="dark"] .gk-wb-count.is-free { background: var(--gk-surface-tint); }
:root[data-theme="dark"] .gk-wb-count.is-free, :root[data-theme="dark"] .gk-wb-count.is-free strong { color: var(--gk-text); }
.gk-wb-list, .gk-wb-jobs, .gk-wb-free { margin: 0; padding: 0; list-style: none; }
.gk-wb-person, .gk-wb-row { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr); gap: 6px 16px; align-items: start; padding: 10px 0; border-top: 1px solid var(--gk-border); }
.gk-wb-name { padding-top: 10px; font-weight: 600; overflow-wrap: anywhere; }
.gk-wb-jobs { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gk-wb-job { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: var(--gk-radius-md); color: inherit; text-decoration: none; }
.gk-wb-job:hover { background: var(--gk-surface-tint); }
.gk-wb-job:focus-visible { outline: none; box-shadow: var(--gk-focus); }
.gk-wb-what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.gk-wb-free { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.gk-wb-free li { padding: 6px 12px; border-radius: var(--gk-radius-pill); background: var(--gk-sunken); font-size: 13px; font-weight: 600; }
@media (max-width: 560px) { .gk-wb-person, .gk-wb-row { grid-template-columns: 1fr; } .gk-wb-name { padding-top: 0; } .gk-wb-job { flex-wrap: wrap; padding-inline: 0; } .gk-wb-what { flex-basis: 100%; order: 3; white-space: normal; } }
/* Loaded last. On a phone every control is a thumb target (44px), whatever a screen's own sheet says. */
@media (max-width: 767px) {
  .gk-layout-owner { --gk-ctl-h: 44px; --gk-ctl-h-sm: 44px; --gk-input-h: 44px; }
  .gk-layout-owner :is(button, a).gk-btn { min-height: 44px; }
  .gk-layout-owner :is(.gk-choice-chip, .gk-chip, .gk-seg-btn, .gk-pt-tab, .gk-btn-toggle) { min-height: 44px !important; }
  .gk-layout-owner main button:not(.gk-picker-trigger):not([role="option"]) { min-height: 44px; }
}
