@font-face { font-family: "Rawest"; src: url("../fonts/Rawest-Thin.otf") format("opentype"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Rawest"; src: url("../fonts/Rawest-ExtraLight.otf") format("opentype"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Rawest"; src: url("../fonts/Rawest-Light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Rawest"; src: url("../fonts/Rawest-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Rawest"; src: url("../fonts/Rawest-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Rawest"; src: url("../fonts/Rawest-SemiBold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Rawest"; src: url("../fonts/Rawest-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #e8e8e6;
  --bg-deep: #dededd;
  --surface: #f3f3f1;
  --surface-2: #fafafa;
  --ink: #1a1a1a;
  --ink-2: #3a3a38;
  --muted: #6f6f6c;
  --faint: #9a9a96;
  --line: #d2d2cf;
  --line-strong: #bdbdba;
  --accent: #2e4146;
  --accent-2: #3b545a;
  --accent-soft: #dce4e6;
  --accent-ink: #2e4146;
  --on-accent: #f2efe8;
  --dial-sky: #1d3a32;
  --dial-body: #f2efe8;
  --dial-rim: rgba(26, 26, 26, 0.2);
  --warn: #9a5b22;
  --danger: #9a3530;
  --ok: #2e4146;
  --shadow: 0 1px 0 rgba(26, 26, 26, 0.03), 0 12px 32px rgba(26, 26, 26, 0.05);
  --sidebar-bg: #efefed;
  --nav-hover: color-mix(in srgb, var(--accent) 8%, transparent);
  --row-hover: color-mix(in srgb, var(--accent) 5%, transparent);
  --board-col: #ececeb;
  --overlay: rgba(26, 26, 26, 0.28);
  --radius: 4px;
  --radius-sm: 4px;
  --sidebar: 232px;
  --sidebar-collapsed: 56px;
  --highlight: #00a2b3;
  --on-highlight: #f4fffe;

  --st-intake: #64748b;
  --st-intake-bg: #eef2f6;
  --st-estimate: #3b82f6;
  --st-estimate-bg: #e0edff;
  --st-approval: #eab308;
  --st-approval-bg: #fef6c7;
  --st-approved: #22c55e;
  --st-approved-bg: #dcfce7;
  --st-progress: #8b5cf6;
  --st-progress-bg: #efe9fe;
  --st-parts: #f97316;
  --st-parts-bg: #ffedd5;
  --st-ready: #14b8a6;
  --st-ready-bg: #ccfbf1;
  --st-completed: #a8a29e;
  --st-completed-bg: #f3f1ef;
  --st-declined: #f43f5e;
  --st-declined-bg: #ffe4e6;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1a1a;
  --bg-deep: #161616;
  --surface: #222222;
  --surface-2: #2a2a2a;
  --ink: #f2f1ed;
  --ink-2: #c8c7c3;
  --muted: #8d8c88;
  --faint: #6a6966;
  --line: #333333;
  --line-strong: #404040;
  --accent: #2e4146;
  --accent-2: #3b545a;
  --accent-soft: #1c2628;
  --accent-ink: #8fb0b6;
  --on-accent: #f2efe8;
  --dial-sky: #152c26;
  --dial-body: #ede9e0;
  --dial-rim: rgba(255, 255, 255, 0.14);
  --warn: #c4a27a;
  --danger: #c98984;
  --ok: #8aa3a0;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 16px 36px rgba(0, 0, 0, 0.28);
  --sidebar-bg: #1f1f1f;
  --nav-hover: rgba(255, 255, 255, 0.04);
  --row-hover: rgba(255, 255, 255, 0.035);
  --board-col: #1e1e1e;
  --overlay: rgba(22, 22, 22, 0.7);
  --radius: 4px;
  --radius-sm: 4px;
  --highlight: #1ecad6;
  --on-highlight: #0a1618;

  --st-intake: #cbd5e1;
  --st-intake-bg: #334155;
  --st-estimate: #bfdbfe;
  --st-estimate-bg: #1e3a8a;
  --st-approval: #fde047;
  --st-approval-bg: #854d0e;
  --st-approved: #86efac;
  --st-approved-bg: #14532d;
  --st-progress: #ddd6fe;
  --st-progress-bg: #4c1d95;
  --st-parts: #fdba74;
  --st-parts-bg: #9a3412;
  --st-ready: #99f6e4;
  --st-ready-bg: #115e59;
  --st-completed: #d6d3d1;
  --st-completed-bg: #44403c;
  --st-declined: #fecdd3;
  --st-declined-bg: #9f1239;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Source Sans 3", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Rawest", sans-serif;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 48px;
  display: grid;
  grid-template-columns: 1fr minmax(180px, 360px) 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--line);
}
.appbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font-family: "Rawest", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
  justify-self: start;
}
.home {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--bg);
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-family: "Rawest", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.appbar-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}
.appbar-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  border-radius: var(--radius);
  color: var(--ink-2);
  display: grid;
  place-items: center;
}
.appbar-btn:hover { background: var(--nav-hover); color: var(--ink); }
.appbar-btn .nav-icon { width: 18px; height: 18px; }
.appbar-btn svg { width: 16px; height: 16px; }
.appbar-dial {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}
.appbar-dial:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}
.dial {
  width: 46px;
  height: 46px;
  display: block;
  overflow: visible;
  transition: transform 0.2s ease;
}
.appbar-dial:active .dial { transform: scale(0.96); }
.dial-stars {
  fill: #f4f0df;
  opacity: 0;
  transition: opacity 0.45s ease 0.14s;
}
.dial-sun,
.dial-moon {
  transform-box: view-box;
  transform-origin: 22px 22px;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.dial-sun { opacity: 1; transform: translateY(0) scale(0.78); }
.dial-sun-core {
  fill: #b7792f;
  stroke: #d09a54;
  stroke-width: 0.8;
}
.dial-sun-rays {
  fill: #b7792f;
  stroke: none;
}
.dial-moon {
  fill: #d9bd79;
  stroke: #efd89e;
  stroke-width: 0.8;
  opacity: 0;
  transform: translate(-14px, 16px) scale(0.5);
}
[data-theme="dark"] .dial-stars { opacity: 0.75; }
[data-theme="dark"] .dial-sun {
  opacity: 0;
  transform: translate(14px, 16px) scale(0.5);
}
[data-theme="dark"] .dial-moon {
  opacity: 1;
  transform: translate(0) scale(0.9);
}
@media (prefers-reduced-motion: reduce) {
  .dial,
  .dial-stars,
  .dial-sun,
  .dial-moon { transition: none; }
}
.profile-wrap { position: relative; }
.appbar-profile {
  width: 28px;
  height: 28px;
  margin: 0 2px 0 6px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
}
.appbar-profile:hover { background: var(--accent-2); }
.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.profile-name { font-weight: 600; }
.profile-role { color: var(--muted); font-size: 13px; margin-top: 2px; }

.shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr) auto;
  transition: grid-template-columns 0.2s ease;
}

[data-sidebar="collapsed"] {
  --sidebar: var(--sidebar-collapsed);
}

.sidebar {
  position: sticky;
  top: 48px;
  height: calc(100vh - 48px);
  padding: 12px 0 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
  overflow: hidden;
}

.nav-toggle {
  width: var(--sidebar-collapsed);
  height: 32px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}
.nav-toggle:hover { background: var(--nav-hover); color: var(--ink); }
.nav-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  height: 40px;
  padding: 0 16px 0 0;
  line-height: 1;
  border-radius: var(--radius);
  color: var(--ink-2);
  white-space: nowrap;
}
.nav a:hover { background: var(--nav-hover); }
.nav a.active {
  color: var(--ink);
  font-weight: 500;
}
.nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--highlight);
}
.nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
}
.nav a .nav-icon {
  width: var(--sidebar-collapsed);
  flex: 0 0 var(--sidebar-collapsed);
}
.nav-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-label { flex: 1; line-height: 1; }
.nav-count {
  font-family: "Source Sans 3", sans-serif;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
}

[data-sidebar="collapsed"] .nav-label,
[data-sidebar="collapsed"] .nav-count {
  display: none;
}
.field:focus,
.select:focus {
  border-color: var(--highlight);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight) 22%, transparent);
}

.main {
  min-width: 0;
  padding: 20px 28px 48px;
}

.search-trigger {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 10px;
  border: 1px solid transparent;
  background: var(--bg-deep);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}
.search-trigger span:nth-child(2) { flex: 1; }
.search-trigger:hover { color: var(--ink-2); }
.search-trigger kbd,
.palette-bar kbd {
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
}
.search-icon {
  color: var(--faint);
  pointer-events: none;
  display: grid;
  place-items: center;
}
.search-icon .nav-icon { width: 16px; height: 16px; }
.search-icon svg { width: 14px; height: 14px; }
.file-btn { cursor: pointer; }
.file-btn input { display: none; }
.span-2 { grid-column: 1 / -1; }
.tight { margin-top: 10px; }
.pick-list { margin: 12px 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.watch-title { font-size: 24px !important; }
.panel-b > h3 { margin: 0 0 12px; }

.palette-bg {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--overlay);
  display: flex;
  justify-content: center;
  padding: 12vh 20px 40px;
}
.palette {
  width: min(640px, 100%);
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.palette-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.palette-bar .search-icon { color: var(--ink-2); }
.palette-bar input {
  flex: 1;
  min-width: 0;
  height: 28px;
  border: 0;
  background: none;
  outline: none;
  font-size: 16px;
  color: var(--ink);
}
.palette-list {
  overflow: auto;
  padding: 8px 0 10px;
}
.palette-group + .palette-group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.palette-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 16px 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.palette-h .nav-icon { width: 14px; height: 14px; }
.palette-h svg { width: 12px; height: 12px; }
.palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.palette-item.on,
.palette-item:hover { background: var(--bg); }
.palette-ic {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
}
.palette-ic .nav-icon { width: 16px; height: 16px; }
.palette-ic svg { width: 15px; height: 15px; }
.palette-group[data-kind="customers"] .palette-ic { color: var(--ink); }
.palette-group[data-kind="jobs"] .palette-ic { color: var(--highlight); }
.palette-group[data-kind="watches"] .palette-ic { color: var(--ok); }
.palette-copy { min-width: 0; }
.palette-copy strong { font-weight: 600; }
.search-empty { padding: 20px 16px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  white-space: nowrap;
}
.btn:hover { border-color: var(--line-strong); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary:hover {
  background: var(--highlight);
  border-color: var(--highlight);
  color: var(--on-highlight);
}
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: default; }

.page-head {
  margin-bottom: 22px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink-2);
}
.crumb {
  color: var(--ink-2);
}
a.crumb:hover { color: var(--ink); }
.crumb-sep {
  color: var(--faint);
  user-select: none;
}
.page-head:has(+ .cmdbar),
.page-head:has(+ .job-flow) {
  margin-bottom: 12px;
}
.cmdbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  padding: 14px 0 18px;
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
}
.cmd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 2px 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
.cmd .nav-icon svg { stroke: var(--highlight); }
.cmd:hover { color: var(--highlight); }
.page-title {
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}
.page-sub { color: var(--muted); margin: 6px 0 0; font-style: italic; letter-spacing: 0.01em; }

.banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 16px;
  margin: 0;
  background: color-mix(in srgb, var(--highlight) 10%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--highlight) 20%, var(--line));
  border-radius: var(--radius);
}
.banner-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.banner-ic {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--highlight);
}
.banner-ic .nav-icon,
.banner-ic svg { width: 18px; height: 18px; }
.banner-title strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  padding-left: 30px;
}
.banner-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 2px 0 0 30px;
}

.counters {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}
.counter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px 11px;
  text-align: left;
}
.counter::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--st, var(--muted));
  margin-bottom: 8px;
}
.counter:hover { background: var(--surface-2); }
.counter.active {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st) 50%, var(--line));
}
.counter-n {
  font-family: "Source Sans 3", sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.counter-l {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
  margin-top: 2px;
  line-height: 1.25;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.panel-h h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.panel-b { padding: 16px; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--row-hover); }
.mono { font-family: "Source Sans 3", sans-serif; }
.job-no { font-family: "Source Sans 3", sans-serif; font-weight: 500; }
.muted { color: var(--muted); }
.right { text-align: right; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 9px 0 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  background: var(--st-bg, var(--surface-2));
  color: var(--ink);
  white-space: nowrap;
}
.badge i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--st, var(--muted));
}
.badge.Intake, [data-st="Intake"], .col[data-col="Intake"] { --st: var(--st-intake); --st-bg: var(--st-intake-bg); }
.badge.Estimate, [data-st="Estimate"], .col[data-col="Estimate"] { --st: var(--st-estimate); --st-bg: var(--st-estimate-bg); }
.badge.Awaiting-Approval, [data-st="Awaiting Approval"], .col[data-col="Awaiting Approval"] { --st: var(--st-approval); --st-bg: var(--st-approval-bg); }
.badge.Approved, [data-st="Approved"], .col[data-col="Approved"] { --st: var(--st-approved); --st-bg: var(--st-approved-bg); }
.badge.In-Progress, [data-st="In Progress"], .col[data-col="In Progress"] { --st: var(--st-progress); --st-bg: var(--st-progress-bg); }
.badge.Waiting-for-Parts, [data-st="Waiting for Parts"], .col[data-col="Waiting for Parts"] { --st: var(--st-parts); --st-bg: var(--st-parts-bg); }
.badge.Ready, [data-st="Ready"], .col[data-col="Ready"] { --st: var(--st-ready); --st-bg: var(--st-ready-bg); }
.badge.Completed, [data-st="Completed"] { --st: var(--st-completed); --st-bg: var(--st-completed-bg); }
.badge.Declined, [data-st="Declined"] { --st: var(--st-declined); --st-bg: var(--st-declined-bg); }
.badge.Paid { --st: var(--st-approved); --st-bg: var(--st-approved-bg); }
.badge.Partially-Paid { --st: var(--st-approval); --st-bg: var(--st-approval-bg); }
.badge.Unpaid { --st: var(--st-intake); --st-bg: var(--st-intake-bg); }
.badge.Draft { --st: var(--st-estimate); --st-bg: var(--st-estimate-bg); }
.badge.Sent { --st: var(--st-approval); --st-bg: var(--st-approval-bg); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.seg {
  display: inline-flex;
  background: var(--bg-deep);
  border-radius: var(--radius);
  padding: 3px;
}
.seg button {
  height: 30px;
  border: 0;
  background: transparent;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
}
.seg button.active { background: var(--surface-2); box-shadow: var(--shadow); }

.field, .select {
  height: 36px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 0 10px;
}
textarea.field {
  height: auto;
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}
label.lbl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.req::after { content: " · required"; color: var(--faint); }

.job-flow {
  display: flex;
  align-items: stretch;
  gap: 3px;
  margin: 0 0 16px;
  overflow-x: auto;
}
.job-flow-step {
  flex: 1 1 0;
  min-width: 132px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px 10px 26px;
  background: var(--accent);
  color: color-mix(in srgb, var(--on-accent) 78%, transparent);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
}
.job-flow-step:first-child {
  padding-left: 14px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}
.job-flow-step:last-child {
  padding-right: 14px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%);
}
.job-flow-step:hover {
  background: var(--accent-2);
  color: var(--on-accent);
}
.job-flow-step.done {
  color: var(--on-accent);
}
.job-flow-step.future {
  background: var(--accent-2);
  color: color-mix(in srgb, var(--on-accent) 55%, transparent);
}
.job-flow-step.future:hover { color: var(--on-accent); }
.job-flow-step.here {
  background: var(--highlight);
  color: var(--on-highlight);
  z-index: 1;
}
.job-flow-step.here:hover {
  background: color-mix(in srgb, var(--highlight) 88%, var(--ink));
  color: var(--on-highlight);
}
.job-flow-step.blocked {
  background: var(--danger);
  color: var(--on-highlight);
}
.job-flow-step.viewing .job-flow-l {
  box-shadow: inset 0 -2px 0 var(--highlight);
}
.job-flow-n {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--on-accent) 35%, transparent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 500;
}
.job-flow-step.done .job-flow-n {
  background: var(--on-accent);
  color: var(--accent);
  border-color: var(--on-accent);
}
.job-flow-step.here .job-flow-n {
  background: var(--on-highlight);
  color: var(--highlight);
  border-color: var(--on-highlight);
}
.job-flow-step.future .job-flow-n {
  background: transparent;
  color: inherit;
}
.job-flow-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.job-flow-l { font-size: 13px; font-weight: 500; }
.job-flow-d {
  font-size: 11px;
  margin-top: 2px;
  opacity: 0.72;
}
.job-flow-step.here .job-flow-d { opacity: 0.82; color: inherit; }

.job-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px 32px;
  align-items: start;
}
.job-layout:has(.job-rail) {
  grid-template-columns: 220px minmax(0, 1fr) auto;
}
.job-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 18px 24px;
  padding: 2px 0 0;
}
.job-strip-h {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.job-strip-wide { grid-column: 1 / -1; }
.job-strip > div {
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
}
.job-strip > div > span:first-child {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 4px;
}
.job-strip .badge {
  display: inline-flex;
  width: auto;
  margin: 0;
}
.job-strip .field,
.job-strip .select {
  width: 100%;
  margin-top: 2px;
}

.job-hero {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 22px;
  margin-bottom: 18px;
}
.job-hero.slim {
  grid-template-columns: 72px 1fr;
  padding: 14px;
  margin-bottom: 0;
}
.job-hero.slim .job-photo {
  width: 72px;
  height: 72px;
}

.job-rail {
  display: flex;
  align-items: stretch;
  position: sticky;
  top: 64px;
  align-self: start;
  max-height: calc(100vh - 80px);
  min-height: 420px;
}
.job-rail-pane {
  width: 340px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
}
.job-rail-h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.job-rail-h h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}
.job-rail-collapse {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
  display: grid;
  place-items: center;
}
.job-rail-collapse:hover { color: var(--ink); background: var(--surface); }
.job-rail-b {
  flex: 1;
  overflow: auto;
  padding: 14px;
}
.job-rail-tabs {
  width: 48px;
  flex: 0 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}
.job-rail.closed .job-rail-tabs { border-radius: var(--radius); }
.job-rail-tab {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.job-rail-tab:hover { color: var(--ink); background: var(--nav-hover); }
.job-rail-tab.on {
  color: var(--ink);
  background: var(--surface-2);
}
.rail-tools { display: grid; gap: 8px; margin-bottom: 16px; }
.rail-search { position: relative; display: block; }
.rail-search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.rail-search .field { padding-left: 34px; }
.rail-watch { display: grid; gap: 10px; }
.rail-watch .job-photo { width: 100%; height: auto; aspect-ratio: 1; }
.hist {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 4px;
}
.hist::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}
.tl-day { position: relative; }
.tl-day + .tl-day {
  margin-top: 8px;
  padding-top: 16px;
}
.tl-day-h {
  position: relative;
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.tl-item {
  position: relative;
  padding: 0 0 18px 22px;
}
.tl-mark {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--st, var(--line-strong));
  box-shadow: 0 0 0 3px var(--surface-2);
}
.tl-item.tl-note .tl-mark {
  width: 9px;
  height: 9px;
  left: 6px;
  top: 6px;
  background: var(--line-strong);
}
.tl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.tl-kicker {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.tl-date {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.tl-shift {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.tl-arrow { color: var(--muted); font-size: 13px; }
.tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.tl-item.tl-note .tl-kicker { font-weight: 400; }
.job-photo {
  width: 112px;
  height: 112px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--bg-deep);
  border: 1px solid var(--line);
}
.job-photo.ph {
  display: grid;
  place-items: center;
  color: var(--faint);
  font-family: "Source Sans 3", sans-serif;
  font-size: 12px;
}
.job-id {
  font-family: "Source Sans 3", sans-serif;
  font-size: 24px;
  letter-spacing: -0.03em;
  font-weight: 400;
  line-height: 1;
  margin: 0 0 8px;
}
.job-watch {
  font-size: 20px;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.job-meta { color: var(--muted); margin-top: 6px; }
.job-hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.layout-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.stage-card-h {
  padding: 14px 16px 0;
}
.stage-card-h h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stage-card-b { padding: 12px 16px 16px; }
.stage-card-b .field,
.stage-card-b .select { width: 100%; }
.quote {
  font-size: 16px;
  letter-spacing: -0.02em;
  background: transparent;
  border-left: 1px solid var(--highlight);
  padding: 12px 14px;
  font-style: italic;
}

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.line-table td, .line-table th { cursor: default; }
.totals { margin-top: 10px; width: 260px; margin-left: auto; }
.totals div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}
.totals .grand { font-weight: 600; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }

.log { display: flex; flex-direction: column; gap: 14px; }
.log-item { display: grid; grid-template-columns: 132px 1fr; gap: 12px; }
.log-date { color: var(--muted); font-size: 13px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.shot {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.shot figcaption { padding: 8px 10px 10px; font-size: 12px; color: var(--muted); }

.board {
  display: grid;
  grid-template-columns: repeat(7, minmax(200px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.col {
  background: var(--board-col);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 280px;
  padding: 10px;
}
.col-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}
.col-h span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.col-h span:first-child::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--st, var(--muted));
}
.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 8px;
  cursor: grab;
}
.card:hover { border-color: var(--line-strong); }
.card .watch { font-weight: 500; margin: 6px 0 2px; }
.col.over { outline: 2px dashed var(--highlight); }

.wizard {
  max-width: 760px;
  margin: 0 auto;
}
.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.step {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
.step.on { background: var(--surface-2); color: var(--ink); border-color: var(--highlight); }
.step b { display: block; font-family: "Source Sans 3", sans-serif; font-size: 11px; margin-bottom: 2px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.watch-pick {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
}
.watch-pick.on { border-color: var(--highlight); }
.watch-pick img, .mini-ph {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-deep);
}
.mini-ph { display: grid; place-items: center; font-size: 10px; color: var(--faint); }

.person-row, .link-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 14px;
  border-radius: var(--radius);
  z-index: 50;
}

.empty { padding: 28px; color: var(--muted); text-align: center; }

[data-panel] { cursor: pointer; }

.rec-panel {
  position: relative;
  display: flex;
  align-items: stretch;
  align-self: stretch;
  min-height: calc(100vh - 48px);
  background: var(--surface);
}
.rec-resize {
  position: absolute;
  left: -8px;
  top: 0;
  bottom: 0;
  width: 8px;
  z-index: 3;
  cursor: col-resize;
  background: transparent;
}
.rec-resize::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
}
.rec-resize:hover::after,
.rec-resize.is-drag::after {
  background: color-mix(in srgb, var(--highlight) 28%, transparent);
}
.rec-pane {
  width: 420px;
  max-width: 72vw;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: calc(100vh - 48px);
  border-radius: 0;
  border-top: 0;
  border-left: 1px solid var(--line);
  border-right: 0;
}
.rec-pane .job-rail-b { padding: 16px 18px 24px; }
.rec-pane .job-layout {
  grid-template-columns: 1fr;
  gap: 20px;
}
.rec-panel .job-rail-h {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.rec-panel .job-rail-h h2 {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.rec-panel .job-rail-collapse {
  grid-column: 2;
  grid-row: 1;
}
.rec-cmds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  grid-column: 1;
  grid-row: 2;
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 24px;
}
.modal {
  width: min(560px, 100%);
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.modal h3 { margin: 0; }
.modal-h, .modal-b, .modal-f { padding: 16px 18px; }
.modal-h, .modal-f { border-color: var(--line); }
.modal-h { border-bottom: 1px solid var(--line); }
.modal-f { border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.inline-form { display: grid; gap: 10px; }

.shell.has-projects {
  grid-template-columns: var(--sidebar) 268px minmax(0, 1fr) auto;
}
.projects-pane {
  position: sticky;
  top: 48px;
  height: calc(100vh - 48px);
  overflow: auto;
  padding: 14px 12px 24px;
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
}
.projects-search { position: relative; display: block; margin-bottom: 18px; }
.projects-search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.projects-search .field { width: 100%; padding-left: 34px; }
.proj-new {
  width: 100%;
  height: 36px;
  justify-content: flex-start;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: var(--radius);
}
.proj-new:hover { background: var(--nav-hover); }
.proj-new.on { background: var(--nav-hover); color: var(--highlight); }
.proj-new .nav-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.proj-new .nav-icon svg { width: 16px; height: 16px; }
.proj-block { margin-bottom: 22px; }
.proj-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
}
.proj-block h3 span { color: var(--faint); letter-spacing: 0; }
.proj-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--ink-2);
}
.proj-item:hover { background: var(--nav-hover); color: var(--ink); }
.proj-item.on {
  color: var(--ink);
  font-weight: 500;
}
.proj-item.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--highlight);
}
.proj-row { position: relative; }
.proj-row .proj-item { padding-right: 34px; }
.proj-more {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  background: none;
  border-radius: var(--radius);
  color: var(--faint);
  display: grid;
  place-items: center;
  opacity: 0;
}
.proj-row:hover .proj-more,
.proj-row.menu-open .proj-more,
.proj-more:focus-visible { opacity: 1; }
.proj-more:hover { background: var(--row-hover); color: var(--ink); }
.proj-more .nav-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.proj-more .nav-icon svg { width: 16px; height: 16px; stroke-width: 2.6; }
.proj-menu {
  position: absolute;
  top: calc(100% - 6px);
  right: 4px;
  z-index: 30;
  min-width: 152px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.proj-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink-2);
  font-size: 13px;
  text-align: left;
}
.proj-menu button:hover { background: var(--nav-hover); color: var(--ink); }
.proj-menu button.danger { color: var(--danger); }
.proj-menu .nav-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.proj-menu .nav-icon svg { width: 15px; height: 15px; }
.proj-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.proj-name .nav-icon { width: 14px; height: 14px; flex: 0 0 14px; color: var(--faint); }
.proj-name .nav-icon svg { width: 13px; height: 13px; }
.proj-item.on .proj-name .nav-icon { color: var(--highlight); }
.proj-meta { color: var(--muted); font-size: 12px; }
.proj-empty { padding: 6px 10px; color: var(--faint); font-size: 13px; }

.main.is-work { padding: 0; min-height: calc(100vh - 48px); }
.workspace {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}
.workspace-hero { width: min(640px, 100%); text-align: center; }
.workspace-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.workspace-kicker .nav-icon { width: 16px; height: 16px; }
.workspace-lead {
  max-width: 520px;
  margin: 10px auto 22px;
  color: var(--muted);
}
.workspace-composer,
.george-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.workspace-composer { margin-bottom: 16px; text-align: left; }
.workspace-composer .field,
.george-composer .field {
  flex: 1;
  border: 0;
  background: transparent;
  box-shadow: none;
  height: 36px;
}
.workspace-composer .btn,
.george-composer .btn { border-radius: 999px; height: 36px; padding: 0 16px; }
.workspace .george-choices { justify-content: center; }

.george-work {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 48px);
}
.george-chat-panel {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  background: var(--sidebar-bg);
}
.george-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc(100vh - 48px);
  border-right: 1px solid var(--line);
}
.george-resize {
  position: absolute;
  top: 0;
  right: -8px;
  bottom: 0;
  width: 8px;
  z-index: 3;
  cursor: col-resize;
  background: transparent;
}
.george-resize::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
}
.george-resize:hover::after,
.george-resize.is-drag::after {
  background: color-mix(in srgb, var(--highlight) 28%, transparent);
}
.george-chat-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 6px;
  border-right: 1px solid var(--line);
}
.george-chat-tab {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  border-radius: var(--radius);
  color: var(--ink-2);
  display: grid;
  place-items: center;
}
.george-chat-tab:hover,
.george-chat-tab.on { color: var(--ink); background: var(--nav-hover); }
.george-chat-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.george-chat-h .job-rail-collapse { margin-left: auto; }
.george-chat-h strong { font-family: "Rawest", sans-serif; font-weight: 500; }
.george-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-family: "Rawest", sans-serif;
  font-size: 12px;
  font-weight: 600;
}
.george-thread {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.george-who {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}
.george-bubble {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.george-msg.user .george-bubble {
  background: color-mix(in srgb, var(--highlight) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--highlight) 22%, var(--line));
}
.george-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}
.george-composer { margin: 0 12px 14px; }
.george-canvas { flex: 1; min-width: 0; padding: 20px 28px 48px; overflow: auto; }

@media (max-width: 1180px) {
  .counters { grid-template-columns: repeat(4, 1fr); }
  .layout-2, .job-hero, .job-hero.slim, .job-layout { grid-template-columns: 1fr; }
  .george-work { flex-direction: column; }
  .george-chat { width: 100% !important; min-height: 0; }
  .george-resize { display: none; }
  .shell.has-projects { grid-template-columns: var(--sidebar) minmax(0, 1fr) auto; }
  .projects-pane { display: none; }
  .job-rail { position: static; max-height: none; min-height: 0; }
  .job-rail-pane { width: 100%; border-right: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); }
  .job-hero-actions { align-items: flex-start; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .appbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0 12px;
  }
  .shell, .shell.has-projects { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }
  .nav-toggle { display: none; }
  .nav { flex-direction: row; overflow-x: auto; }
  .nav a {
    gap: 12px;
    padding: 9px 10px;
  }
  .nav a .nav-icon {
    width: 20px;
    flex: 0 0 20px;
  }
  [data-sidebar="collapsed"] .nav-label,
  [data-sidebar="collapsed"] .nav-count { display: initial; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .main { padding: 16px; }
  .page-title { font-size: 22px; }
  .job-id { font-size: 22px; }
  .grid-2, .grid-3, .log-item { grid-template-columns: 1fr; }
  .rec-pane { max-width: 100vw; }
}

/* ============================================================
   Landing page (#/home)
   ============================================================ */
.lp {
  min-height: 100vh;
  background: var(--bg);
  padding-top: 56px;
}
.lp-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}
.lp-sec { padding-block: 88px; border-top: 1px solid var(--line); scroll-margin-top: 56px; }
.lp-sec.tight { padding-block: 64px; }
.lp-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.lp-h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.lp-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
}
.lp-sec-head { margin-bottom: 36px; }

/* --- top bar --- */
.lp-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 56px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.lp-bar.is-scrolled { border-bottom-color: var(--line); }
.lp-bar-in {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.lp-bar .appbar-brand { font-size: 16px; }
.lp-bar-nav {
  margin-left: 24px;
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}
.lp-bar-nav a:hover { color: var(--ink); }
.lp-bar-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- hero --- */
.lp-hero { padding-block: 96px 76px; text-align: center; }
.lp-shot { padding-block-end: 88px; }
.lp-h1 {
  margin: 0 auto 22px;
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 19ch;
}
.lp-hero p {
  margin: 0 auto;
  max-width: 64ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}
.lp-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

/* --- app mock --- */
.lp-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.lp-frame-bar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.lp-frame-bar .brand-mark { width: 20px; height: 20px; font-size: 8px; }
.lp-frame-bar kbd {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
  font-family: inherit;
}
.lp-frame-body { display: grid; grid-template-columns: 52px minmax(0, 1fr); }
.lp-rail {
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--faint);
}
.lp-rail-on { color: var(--accent-ink); display: grid; place-items: center; }
.lp-pane {
  padding: 16px;
  min-width: 0;
  overflow-x: auto;
  /* a soft right edge, so the cut-off column reads as "scrolls on" */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
@media (min-width: 861px) {
  .lp-pane { -webkit-mask-image: none; mask-image: none; }
}
.lp-pane-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.lp-pane-h b { font-family: "Rawest", sans-serif; font-weight: 500; font-size: 15px; }
.lp-pane-h span { font-size: 12px; color: var(--muted); }
.lp-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(168px, 1fr));
  gap: 10px;
}
.lp-board .col { min-height: 0; padding: 10px; }
.lp-board .card { cursor: default; font-size: 13px; }
.lp-board .card:last-child { margin-bottom: 0; }
.lp-board .card b { font-weight: 500; display: block; }
.lp-board .card span { color: var(--muted); font-size: 12px; }
.lp-board .col-h { font-size: 11px; }

/* --- workflow rail ---
   Vertical by default. It only goes horizontal where all six phases fit on a
   single row; an auto-fitting grid would otherwise wrap to 4 + 2, which reads
   as a broken grid rather than a sequence. */
.lp-flow {
  position: relative;
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
}
.lp-flow::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.lp-step {
  position: relative;
  padding: 0 0 20px;
}
.lp-step:last-child { padding-bottom: 0; }
/* the dot sits on the connecting rule in both orientations */
.lp-step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -26px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-ink);
}
.lp-step h3 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.lp-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
/* Six fixed columns, never auto-fit, so the row can only be all-or-nothing.
   Below this the vertical stepper above applies - tablets included. */
@media (min-width: 1181px) {
  .lp-flow {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding-left: 0;
  }
  .lp-flow::before { display: none; }
  .lp-step {
    padding: 20px 20px 0 0;
    border-top: 1px solid var(--line);
  }
  .lp-step::before { top: -5px; left: 0; }
}

/* --- one watch, one history --- */
.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.lp-bullets { margin: 26px 0 0; padding: 0; list-style: none; }
.lp-bullets li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}
.lp-bullets li:last-child { border-bottom: 1px solid var(--line); }
.lp-bullets .nav-icon { color: var(--accent-ink); width: 18px; flex: 0 0 18px; }
.lp-bullets .nav-icon svg { width: 16px; height: 16px; }
.lp-tl {
  position: relative;
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
}
.lp-tl::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.lp-tl li { position: relative; padding: 0 0 20px; }
.lp-tl li:last-child { padding-bottom: 0; }
.lp-tl li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--accent-ink);
  background: var(--accent-ink);
}
.lp-tl-d { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.lp-tl-t { font-weight: 500; margin: 2px 0 1px; }
.lp-tl-s { font-size: 13px; color: var(--muted); }

/* --- features --- */
.lp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lp-feat { background: var(--surface); padding: 22px; }
.lp-feat-ic {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.lp-feat h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.lp-feat p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* --- benefits --- */
.lp-bens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-bens li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.lp-bens .nav-icon { color: var(--accent-ink); width: 18px; flex: 0 0 18px; }
.lp-bens .nav-icon svg { width: 16px; height: 16px; }

/* --- closing cta --- */
.lp-band {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
}
.lp-band h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.lp-band p {
  margin: 0 auto;
  max-width: 52ch;
  color: color-mix(in srgb, var(--on-accent) 76%, transparent);
}
.lp-band .lp-cta { justify-content: center; }
.lp-band .btn {
  background: var(--on-accent);
  border-color: var(--on-accent);
  color: var(--accent);
}
.lp-band .btn:hover { background: var(--highlight); border-color: var(--highlight); color: var(--on-highlight); }
.lp-band .btn-ghost {
  background: transparent;
  color: var(--on-accent);
  border-color: color-mix(in srgb, var(--on-accent) 34%, transparent);
}
.lp-band .btn-ghost:hover { background: transparent; color: var(--on-accent); border-color: var(--on-accent); }

/* --- early access form --- */
.lp-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px auto 0;
  max-width: 440px;
}
.lp-form .field {
  flex: 1 1 220px;
  height: 40px;
  background: var(--on-accent);
  border-color: var(--on-accent);
  color: var(--accent);
}
.lp-form .field::placeholder { color: color-mix(in srgb, var(--accent) 50%, transparent); }
.lp-band .lp-ok {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 26px auto 0;
  padding: 10px 18px;
  border: 1px solid color-mix(in srgb, var(--on-accent) 30%, transparent);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--on-accent);
}

/* --- footer --- */
.lp-foot {
  border-top: 1px solid var(--line);
  padding-block: 26px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.lp-foot .appbar-brand { font-size: 14px; cursor: pointer; }
.lp-foot-r { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lp-foot-r a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .lp-sec { padding-block: 64px; }
  .lp-hero { padding-block: 64px 52px; }
  .lp-split { grid-template-columns: 1fr; gap: 36px; }
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-bens { grid-template-columns: 1fr; gap: 0; }
  .lp-bar-nav { display: none; }
  .lp-shot { padding-block-end: 64px; }
  .lp-band { padding: 40px 24px; }
}
@media (max-width: 620px) {
  .lp-wrap, .lp-bar-in { padding-inline: 16px; }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-h2, .lp-band h2 { font-size: 25px; }
  .lp-hero p { font-size: 16px; }
  .lp-cta .btn { flex: 1 1 100%; }
  .lp-foot-r { margin-left: 0; width: 100%; }
  .lp-hide-sm { display: none; }
  .lp-form .field { flex: 1 1 100%; }
}

/* ============================================================
   Workflow: status tones, validation, admin editor
   ============================================================ */

/* Admin-created statuses have no .badge.<Name> rule, so the tone drives them. */
[data-tone="intake"] { --st: var(--st-intake); --st-bg: var(--st-intake-bg); }
[data-tone="estimate"] { --st: var(--st-estimate); --st-bg: var(--st-estimate-bg); }
[data-tone="approval"] { --st: var(--st-approval); --st-bg: var(--st-approval-bg); }
[data-tone="approved"] { --st: var(--st-approved); --st-bg: var(--st-approved-bg); }
[data-tone="progress"] { --st: var(--st-progress); --st-bg: var(--st-progress-bg); }
[data-tone="parts"] { --st: var(--st-parts); --st-bg: var(--st-parts-bg); }
[data-tone="ready"] { --st: var(--st-ready); --st-bg: var(--st-ready-bg); }
[data-tone="completed"] { --st: var(--st-completed); --st-bg: var(--st-completed-bg); }
[data-tone="declined"] { --st: var(--st-declined); --st-bg: var(--st-declined-bg); }

.nav-divider {
  display: block;
  height: 1px;
  margin: 10px 12px;
  background: var(--line);
}
[data-sidebar="collapsed"] .nav-divider { margin: 10px 14px; }

/* --- rendered fields + validation --- */
.wf-field { margin-bottom: 12px; }
.wf-field:last-child { margin-bottom: 0; }
.wf-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.wf-field .field, .wf-field .select { width: 100%; }
.wf-req {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--warn);
}
.wf-req.solo { display: block; margin-bottom: 5px; }
.field.is-invalid, .select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 16%, transparent);
}
.wf-error { margin: 5px 0 0; font-size: 12px; color: var(--danger); }
.wf-blocker {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--danger) 7%, var(--surface));
}
.wf-blocker strong { display: block; margin-bottom: 6px; font-weight: 500; }
.wf-blocker ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }

/* --- admin editor --- */
.field-sm, .select-sm { height: 30px; font-size: 13px; padding: 0 8px; }
.cmd-sm { font-size: 13px; }
.wf-spacer { flex: 1; }
.wf-hint { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.wf-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.wf-stages {
  position: sticky;
  top: 68px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wf-stages h3 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
}
.wf-stage-row {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
}
.wf-stage-row.dragging { opacity: 0.4; }
/* Drop indicator sits on the edge the row would move toward. */
.wf-stage-row.over-up::before,
.wf-stage-row.over-down::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--highlight);
}
.wf-stage-row.over-up::before { top: -1px; }
.wf-stage-row.over-down::after { bottom: -1px; }
.wf-grip {
  display: grid;
  place-items: center;
  width: 18px;
  flex: 0 0 18px;
  color: var(--faint);
  cursor: grab;
  opacity: 0;
}
.wf-stage-row:hover .wf-grip { opacity: 1; }
.wf-grip .nav-icon { width: 14px; height: 14px; flex: 0 0 14px; }
.wf-grip .nav-icon svg { width: 14px; height: 14px; stroke-width: 2.4; }
.wf-stage-keys { display: inline-flex; gap: 1px; opacity: 0; }
.wf-stage-row:hover .wf-stage-keys,
.wf-stage-keys:focus-within { opacity: 1; }
.wf-stage-keys .wf-ic { width: 22px; height: 22px; flex: 0 0 22px; }
.wf-stage-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink-2);
  text-align: left;
}
.wf-stage-row:hover .wf-stage-item { background: var(--nav-hover); color: var(--ink); }
.wf-stage-item.on { background: var(--nav-hover); color: var(--ink); font-weight: 500; }
.wf-stage-n {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 11px;
}
.wf-stage-item.on .wf-stage-n { border-color: var(--highlight); color: var(--highlight); }
.wf-stage-l { flex: 1; min-width: 0; }
.wf-stage-c { color: var(--faint); font-size: 12px; }
.wf-detail { min-width: 0; }
.wf-detail-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wf-stage-label {
  flex: 1;
  height: 40px;
  font-family: "Rawest", sans-serif;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.wf-sections { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.wf-section { padding: 0; }
.wf-section-h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.wf-section-h h3 { margin: 0; font-size: 14px; font-weight: 500; }
.wf-title { flex: 1; min-width: 100px; }
.wf-section-rules { padding: 12px; border-bottom: 1px solid var(--line); }
.wf-fields { padding: 8px 12px 12px; }
.wf-row { border-bottom: 1px solid var(--line); padding: 8px 0; }
.wf-row:last-of-type { border-bottom: 0; }
.wf-row-h { display: flex; align-items: center; gap: 8px; }
.wf-row-b { padding: 10px 0 4px 0; display: flex; flex-direction: column; gap: 8px; }
.wf-key { width: 150px; flex: 0 0 150px; font-size: 12px; }
.wf-row-h .field, .wf-row-h .select { min-width: 0; }
.wf-row-h > .field:not(.wf-key) { flex: 1; }
.wf-move { display: inline-flex; gap: 2px; margin-left: auto; }
.wf-ic {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--faint);
  display: grid;
  place-items: center;
  flex: 0 0 26px;
}
.wf-ic:hover:not(:disabled) { background: var(--row-hover); color: var(--ink); }
.wf-ic:disabled { opacity: 0.3; cursor: default; }
.wf-ic.on { color: var(--highlight); }
.wf-ic.danger:hover:not(:disabled) { color: var(--danger); }
.wf-ic .nav-icon { width: 15px; height: 15px; flex: 0 0 15px; }
.wf-ic .nav-icon svg { width: 14px; height: 14px; }
.wf-ic[data-wf-act$="-up"] .nav-icon svg { transform: rotate(90deg); }
.wf-ic[data-wf-act$="-down"] .nav-icon svg { transform: rotate(90deg); }

/* --- rules --- */
.wf-rules { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.wf-rule {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.wf-rule-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wf-rule-lead { font-size: 13px; color: var(--muted); }
.wf-rule-h .select { min-width: 0; }
.wf-conds { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wf-cond { display: flex; align-items: center; gap: 6px; width: 100%; flex-wrap: wrap; }
.wf-cond .select, .wf-cond .field { min-width: 0; flex: 1 1 130px; }
.wf-cond-gap { flex: 1 1 130px; }
.wf-advance { margin-bottom: 24px; }

@media (max-width: 1180px) {
  .wf-layout { grid-template-columns: 1fr; }
  .wf-stages { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .wf-key { width: 100%; flex: 1 1 100%; }
  .wf-row-h { flex-wrap: wrap; }
}

/* --- text tabs: label row with the active item underlined --- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
}
.tab {
  position: relative;
  padding: 0 0 9px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); font-weight: 500; }
.tab.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--highlight);
}

/* --- multiple workflows --- */
/* The workflows pane reuses the projects-pane components, so it only needs to
   stay visible where the projects pane is allowed to collapse away. */
.shell.has-workflows { grid-template-columns: var(--sidebar) 268px minmax(0, 1fr) auto; }
.wf-tag {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wf-meta { margin-bottom: 16px; }
.wf-meta-b {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 12px;
  padding: 14px 16px;
}
.wf-meta-f {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
@media (max-width: 1180px) {
  .shell.has-workflows { grid-template-columns: var(--sidebar) 232px minmax(0, 1fr); }
  .projects-pane.is-workflows { display: block; }
}
@media (max-width: 860px) {
  .wf-meta-b { grid-template-columns: 1fr; }
  .shell.has-workflows { grid-template-columns: 1fr; }
  .projects-pane.is-workflows { position: relative; top: 0; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* --- choosing a workflow when taking a job in --- */
.wf-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.wf-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink-2);
  text-align: left;
}
.wf-card:hover { border-color: var(--line-strong); color: var(--ink); }
.wf-card.on { border-color: var(--highlight); color: var(--ink); }
.wf-card-h { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.wf-card-d { font-size: 13px; color: var(--muted); line-height: 1.45; }
.wf-card-s {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.wf-card.on .wf-card-s { color: var(--accent-ink); }
.wf-nudge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--highlight) 30%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--highlight) 8%, var(--surface));
  font-size: 14px;
}
.wf-nudge span { flex: 1; min-width: 200px; }
.wf-chosen { margin: 0 0 14px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.wf-chosen strong { color: var(--ink); font-weight: 500; }
.wf-meta-r { padding: 14px 16px; border-top: 1px solid var(--line); }
.wf-meta-r h3 { margin: 0 0 4px; font-size: 13px; font-weight: 500; }

/* --- searchable dropdown (lists too long for a <select>) --- */
.picker { position: relative; }
.picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}
.picker-btn:hover { border-color: var(--line-strong); }
.picker-btn.has-value { color: var(--ink); border-color: var(--line-strong); }
.picker.open .picker-btn { border-color: var(--highlight); }
.picker-caret, .picker-clear {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 2px;
  color: var(--faint);
}
.picker-caret .nav-icon svg { width: 14px; height: 14px; transform: rotate(90deg); }
.picker-clear .nav-icon svg { width: 13px; height: 13px; }
.picker-clear:hover { background: var(--row-hover); color: var(--ink); }
.picker-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.picker-search { width: 100%; margin-bottom: 6px; }
.picker-list { max-height: 300px; overflow-y: auto; }
.picker-opt {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink-2);
  text-align: left;
  font-size: 14px;
}
.picker-opt:hover { background: var(--nav-hover); color: var(--ink); }
.picker-opt.on { color: var(--ink); font-weight: 500; }
.picker-opt.on::after { content: "✓"; margin-left: auto; color: var(--highlight); }
.picker-opt-l { min-width: 0; }
.picker-opt-s { color: var(--faint); font-size: 12px; }
.picker-empty, .picker-more { padding: 8px; color: var(--faint); font-size: 12px; }
.picker-more { border-top: 1px solid var(--line); margin-top: 4px; }

/* --- public site: language switcher (footer) --- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: 6px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}
.lang-opt {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.lang-opt:hover { color: var(--ink); }
.lang-opt.on { color: var(--ink); font-weight: 500; }
.lp-brand { cursor: pointer; }
.lp-logo {
  display: block;
  width: auto;
  height: 22px;
  aspect-ratio: 818 / 130;
}
.lp-logo-dark { display: none; }
[data-theme="dark"] .lp-logo-light { display: none; }
[data-theme="dark"] .lp-logo-dark { display: block; }
.lp-foot .lp-logo {
  height: 18px;
  width: auto;
}
@media (max-width: 620px) {
  .lp-bar-tools { gap: 6px; }
  .lp-bar-tools .btn-sm { height: 36px; }
  .lp-foot-r { gap: 8px; flex-wrap: wrap; }
  .lp-foot-r a { padding: 8px 0; }
  .lang-switch {
    width: 100%;
    margin: 0;
    padding: 0 0 4px;
    border-right: 0;
  }
  .lang-opt { padding: 8px 0; }
}
