/* YardMate "ops console" layout: dark rail, flat panels with hairlines, uppercase section labels, squared edges.
   YardMate's own colors and fonts are kept. A skin only: no screen, button or field is removed. */
:root { --rail: #0e1c15; --rail-fg: #b7c4bb; --accent: var(--green); --shadow: none; --r: 8px; --r-sm: 6px; --r-lg: 10px; --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; }
:root:not(.x):not(.y) { /* light unless the person picks dark in Settings, whatever the device is set to */
  --bg: #f2f5ef; --surface: #ffffff; --surface-2: #e9efe6; --ink: #15241b; --muted: #5d6d61; --line: #d9e2d6; --line-strong: #b9c9b6;
  --green: #1f6342; --green-deep: #174b33; --green-soft: #dcebe0; --gold: #f2b63a; --gold-soft: #fff1cf; --sprout: #6fb57a;
  --ok: #1b7044; --ok-soft: #dff3e7; --warn: #c98a12; --warn-soft: #fbefd2; --bad: #c0392f; --bad-soft: #fbe3e0; --info: #2562b8; --info-soft: #e1ecfb;
  --map-land: #eef3ea; --map-grid: #dde6d8; --map-water: #cfe3f0; --map-label: #7f948a; --map-route: #1f6342; --map-done: #9db79f;
  --rail: #0e1c15; --rail-fg: #b7c4bb; --shadow: none; color-scheme: light; }
body.gn-dark { --bg: #0f1813; --surface: #16221b; --surface-2: #1d2c23; --ink: #e8efe9; --muted: #9fb0a3; --line: #263729; --line-strong: #3b5141; --green: #4fae7c; --green-deep: #3b8f63; --green-soft: #1b3326; --gold: #f6c75a; --gold-soft: #3a3012; --sprout: #5f9f6a; --ok: #4cc585; --ok-soft: #173427; --warn: #e6b04a; --warn-soft: #3a2d10; --bad: #ef7a6f; --bad-soft: #3d1d1a; --info: #6ea2ee; --info-soft: #182a44; --rail: #08100c; color-scheme: dark; }
body { background: var(--bg); color: var(--ink); }

/* Type: condensed display for titles, uppercase section labels, mono for money and counts */
h1, .topbar h1 { font-size: 30px; font-weight: 700; line-height: 1.05; }
h2 { font-size: 23px; font-weight: 700; }
h3, .card-head h3, .jobcol-head h3 { font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.modal h2 { font-size: 24px; }
.topbar .sub { font-size: 15px; max-width: 68ch; }
.num, .stat .v, b.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat .v { font-family: var(--display); font-size: 30px; line-height: 1.05; }
.stat .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; order: -1; }
.field label, .label, .table th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }

/* Rail */
.rail { background: var(--rail); border-right: 0; color: var(--rail-fg); padding: 20px 12px; }
.rail .brand { color: #F4F4F2; text-decoration: none; padding: 0 8px 16px; }
.rail .brand svg { width: 30px; height: 30px; }
.rail .brand svg path { stroke: var(--sprout); }
.rail .brand svg path[fill] { fill: var(--sprout); stroke: none; }
.rail .brand b { font-family: var(--display); font-size: 20px; font-weight: 700; color: #F4F4F2; }
.rail .company { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #F4F4F2; }
.rail .company span { color: var(--rail-fg); }
.rail .company .brand-logo { background: #fff; padding: 2px 4px; }
.nav a { color: var(--rail-fg); font-weight: 500; font-size: 15px; gap: 12px; }
.nav a svg { width: 20px; height: 20px; color: var(--rail-fg); }
.nav a:hover { background: rgba(255, 255, 255, .06); }
.nav a.on { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a.on svg { color: var(--gold); }
.nav a .cnt { background: var(--gold); color: #1d1a0b; }
.rail .foot { border-top: 1px solid rgba(255, 255, 255, .1); color: var(--rail-fg); font-size: 12px; }
.rail .foot a, .rail .foot .muted, .rail .foot .small, .rail .foot b { color: var(--rail-fg); }
.rail .foot .btn { background: transparent; color: var(--rail-fg); border-color: rgba(255, 255, 255, .18); }
.rail .foot .btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.rail :focus-visible { outline-color: var(--sprout); }

/* Panels, buttons, pills */
.card, .stat, .wk-day, .mo-day, .jobcard { box-shadow: none; }
.stat { border-top: 4px solid var(--accent); border-radius: var(--r); }
.card-head { padding: 14px 18px 12px; }
.btn { border-radius: 6px; border-color: var(--line); font-weight: 600; }
.btn:hover { background: var(--surface); border-color: var(--muted); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn.ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn.lg { border-radius: 8px; }
.pill { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; }
.pill.gold { color: #7a5a06; }
.input, input.input, select.input, textarea.input { border-color: var(--line); background: var(--surface-2); border-radius: 6px; }
.input:focus { outline: 2px solid var(--green); border-color: var(--green); background: var(--surface); }
.seg { border-radius: 6px; padding: 0; gap: 6px; background: transparent; flex-wrap: wrap; }
.seg button, .seg label { border: 1px solid var(--line); background: var(--surface-2); border-radius: 6px; color: var(--ink); }
.seg button.on, .seg label.on { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.table td { border-color: var(--line); }
.toast { border-radius: 6px; }
.modal { border-radius: 10px 10px 0 0; }
@media (min-width: 720px) { .modal { border-radius: 10px; } }
.avatar { border-radius: 6px; }
.stop .n, .wk-stop .n { border-radius: 5px; }
.jobsteps li { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.mo-day { border-radius: 8px; }


/* Phone: black header and black tab bar */
@media (max-width: 900px) {
  .mhead { background: var(--rail); box-shadow: none; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .mh-co { font-family: var(--display); font-weight: 700; }
  .mh-ym { border-radius: 6px; background: rgba(255, 255, 255, .1); }
  .mh-ym svg { color: var(--gold); }
  .tabbar { background: var(--rail); border-top: 1px solid rgba(255, 255, 255, .14); }
  .tabbar a { color: var(--rail-fg); letter-spacing: .05em; }
  .tabbar a.on { color: #fff; }
  .tabbar a.on svg { color: var(--gold); }
  h1, .topbar h1 { font-size: 24px; }
  .stat .v { font-size: 26px; }
}
/* Small labels stay readable on their tinted backgrounds */
.pill.warn { color: #855600; } .pill.bad { color: #a52a21; } .pill.info { color: #1f55a3; } .pill.gold { color: #6b4f05; }
body.gn-dark .pill.warn { color: var(--warn); } body.gn-dark .pill.bad { color: var(--bad); } body.gn-dark .pill.info { color: var(--info); } body.gn-dark .pill.gold { color: var(--gold); }
.mo-day.out { opacity: 1; background: transparent; } .mo-day.out .mo-n, .mo-day.out .mo-c, .mo-day.out .mo-names { color: var(--muted); }
.table td a:not(.btn) { display: inline-block; padding-block: 4px 3px; margin-top: -4px; }
.table td .linkish { display: inline-block; padding-block: 3px; margin-bottom: -3px; }
[data-thread] .muted { color: #4b5a4f; } body.gn-dark [data-thread] .muted { color: var(--muted); }
.rail .company .avatar { color: #fff; }

/* One YardMate wordmark everywhere */
.rail .brand b, .mh-ym, .top > b{font-family:Archivo,Figtree,system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:900;letter-spacing:-.04em}
