/* Benchlane Workshop OS · original presentation · MIT.
 * Static family styles; behavior lives in the supplied runtime modules.
 */

/* 01 — Materials, typography and accessible foundations */
@font-face {
  font-family: Outfit;
  src: url('../fonts/outfit-variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-variable.ttf') format('truetype');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --font: 'IBM Plex Sans', sans-serif;
  --heading: Outfit, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --ink: #28302f;
  --muted: #64706a;
  --canvas: #f5f3ee;
  --surface: #fff;
  --surface-soft: #f8f8f4;
  --surface-raised: #fff;
  --surface-hover: #f1f3ed;
  --line: #dedfd8;
  --line-strong: #b6bdb2;
  --accent: #a45232;
  --accent-hover: #894127;
  --accent-soft: #f2e2d6;
  --accent-ink: #fffaf6;
  --brass: #a45232;
  --brass-text: #97492c;
  --moss: #4c7058;
  --clay: #a16049;
  --good: #365d45;
  --good-soft: #e5eee4;
  --warm: #875127;
  --warm-soft: #f5e9d6;
  --bad: #a13e35;
  --bad-soft: #f8e7e2;
  --rail: #28302f;
  --rail-deep: #222a28;
  --rail-ink: #edf0e9;
  --rail-muted: #b6c1b7;
  --rail-line: #46514a;
  --modal-head: linear-gradient(115deg, #f5eee6, #f8f6f1);
  --modal-foot: #efeee7;
  --shadow: 0 2px 3px #28302f04, 0 7px 20px #28302f04;
  --shadow-lift: 0 5px 12px #28302f08, 0 12px 30px #28302f0e;
  --shadow-dialog: 0 28px 100px #15201b40;
  --radius: 14px;
  --rail-width: 240px;
  --ease: cubic-bezier(0.2, 0.7, 0.25, 1);
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--canvas);
  --bs-border-color: var(--line);
  --bs-link-color: var(--brass-text);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #f0f1e9;
  --muted: #b6c1b7;
  --canvas: #202725;
  --surface: #2b3430;
  --surface-soft: #26302b;
  --surface-raised: #323d36;
  --surface-hover: #364239;
  --line: #465249;
  --line-strong: #6b7a6c;
  --accent: #e0a386;
  --accent-hover: #edb89c;
  --accent-soft: #473a30;
  --accent-ink: #2a251f;
  --brass: #e0a386;
  --brass-text: #e8ad8f;
  --moss: #9ab69a;
  --clay: #c58e75;
  --good: #b5d0b3;
  --good-soft: #324738;
  --warm: #e4c18a;
  --warm-soft: #483e2d;
  --bad: #f1b1a5;
  --bad-soft: #4b3430;
  --rail: #252d29;
  --rail-deep: #202723;
  --rail-line: #475248;
  --modal-head: linear-gradient(115deg, #3c3d32, #333d34);
  --modal-foot: #364033;
  --shadow: 0 2px 4px #10171112, 0 7px 24px #10171114;
  --shadow-lift: 0 6px 14px #10171120, 0 14px 32px #10171130;
  --shadow-dialog: 0 28px 100px #10171180;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 360px;
  background: var(--canvas);
  color: var(--ink);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
::selection {
  color: var(--ink);
  background: var(--accent-soft);
}
h1,
h2,
h3,
h4,
.brand,
.wordmark {
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 550;
}
h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.8px;
}
h2 {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.45px;
}
h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}
h4 {
  font-size: 16px;
}
p {
  margin: 0 0 16px;
}
p:last-child {
  margin-bottom: 0;
}
ul,
ol {
  padding-left: 23px;
}
a {
  color: var(--brass-text);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--accent-hover);
}
small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
strong {
  font-weight: 600;
}
img,
svg,
canvas {
  max-width: 100%;
}
button,
input,
select,
textarea,
summary {
  font: inherit;
}
button,
input,
select {
  min-height: 42px;
}
button {
  cursor: pointer;
}
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button,
a,
input,
select,
textarea,
summary {
  transition:
    color 160ms,
    background-color 160ms,
    border-color 160ms,
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: none;
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px #28302f03 inset;
}
input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: var(--muted);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.95;
}
textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.65;
}
input[type='checkbox'],
input[type='radio'] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  padding: 0;
  accent-color: var(--accent);
  vertical-align: middle;
  box-shadow: none;
}
input[type='range'] {
  padding: 8px 0;
  accent-color: var(--accent);
  box-shadow: none;
}
input[type='color'] {
  padding: 4px;
}
input[type='file'] {
  width: 100%;
  font-size: 14px;
  padding: 7px;
}
input::file-selector-button {
  margin-right: 12px;
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--brass-text);
  cursor: pointer;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
label:has(> input[type='checkbox']),
label:has(> input[type='radio']) {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-height: 34px;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
legend {
  float: none;
  width: auto;
  margin: 0 0 12px;
  padding: 0 6px;
  font: 500 18px/1.4 var(--heading);
}
fieldset > label + label,
fieldset > label + .conditional-fields {
  margin-top: 16px;
}
hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
  opacity: 1;
}
code,
kbd {
  font-family: var(--mono);
}
code {
  color: var(--brass-text);
  overflow-wrap: anywhere;
}
kbd {
  padding: 3px 6px;
  border: 1px solid var(--rail-line);
  border-radius: 4px;
  color: inherit;
  background: transparent;
  font-size: 12px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 1100;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--surface);
  font-weight: 600;
  box-shadow: var(--shadow-dialog);
}
.skip-link:focus {
  top: 10px;
}
.muted,
.field-hint {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.15px;
  line-height: 1.5;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* 02 — The tool rail and compact workspace shell */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--rail-width);
  padding: 26px 16px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #69776b transparent;
  background: linear-gradient(160deg, var(--rail), var(--rail-deep));
  border-right: 1px solid var(--rail-line);
  color: var(--rail-ink);
  transition:
    transform 220ms var(--ease),
    visibility 220ms;
}
.sidebar a {
  color: inherit;
  text-decoration: none;
}
.sidebar a:hover {
  color: #fff;
}
.sidebar small {
  color: var(--rail-muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 7px;
  color: var(--rail-ink);
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1;
}
.brand-mark {
  width: 34px;
  height: 36px;
  flex: 0 0 34px;
  color: #d7a185;
}
.brand small {
  margin-top: 8px;
  font: 500 12px/1 var(--font);
  letter-spacing: 2.1px;
}
.workshop-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 27px 0 16px;
  padding: 12px 10px;
  border: 1px solid var(--rail-line);
  border-radius: 10px;
  background: #ffffff04;
  font-size: 13px;
  line-height: 1.4;
}
.workshop-switch small {
  margin-top: 4px;
  font-size: 12px;
}
.workshop-switch:hover {
  border-color: #869684;
  background: #ffffff08;
}
.sidebar .avatar {
  width: 31px;
  height: 34px;
  border-radius: 7px;
  background: #4a5548;
  color: #eceddb;
}
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 41px;
  padding: 8px 9px;
  border: 1px solid var(--rail-line);
  border-radius: 8px;
  background: #ffffff05;
  color: var(--rail-muted);
  text-align: left;
  font-size: 12px;
}
.sidebar-search .icon {
  width: 16px;
  height: 16px;
}
.sidebar-search kbd {
  margin-left: auto;
  flex: none;
  padding: 2px 4px;
}
.sidebar-search:hover:not(:disabled) {
  color: var(--rail-ink);
  background: #ffffff0c;
}
.nav-section {
  margin-top: 25px;
}
.nav-label {
  display: block;
  margin: 0 11px 8px;
  color: var(--rail-muted);
  font-size: 12px;
  font-weight: 400;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 41px;
  margin: 3px 0;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
  color: var(--rail-muted);
}
.nav-item:hover {
  background: #ffffff09;
  border-color: #ffffff0b;
}
.nav-item.active {
  background: linear-gradient(115deg, #995235, #ab6040);
  border-color: #c77f5a;
  color: #fffaf3;
  box-shadow:
    0 3px 8px #18211c18,
    inset 0 1px #ffffff14;
}
.nav-item.active .icon {
  color: #fff1e8;
}
.sidebar :focus-visible {
  outline-color: #f1bd97;
}
.sidebar-bottom {
  margin-top: 25px;
  padding-top: 16px;
  border-top: 1px solid var(--rail-line);
}
.sidebar-bottom .nav-item {
  font-size: 13px;
}
.workspace {
  min-width: 0;
  margin-left: var(--rail-width);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 13px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar .nav-toggle {
  display: none;
}
.breadcrumb-line {
  color: var(--ink);
  font-size: 13px;
}
.breadcrumb-line > span {
  margin: 0 12px;
  color: var(--line-strong);
}
.shift-label {
  margin-right: 8px;
  white-space: nowrap;
  color: var(--ink);
  font-size: 13px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.icon-btn:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
}
.icon-btn:active:not(:disabled) {
  transform: translateY(0);
  background: var(--accent-soft);
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--good);
  background: var(--good-soft);
  font: 600 12px/1 var(--font);
  text-decoration: none;
}
.avatar.large {
  flex-basis: 68px;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  font-size: 22px;
}
.workspace-main {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 28px 28px 24px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}
.page-heading > div:first-child {
  min-width: 0;
}
.page-heading .eyebrow {
  margin-bottom: 8px;
}
.page-heading h1 + p {
  max-width: 690px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.heading-actions {
  justify-content: flex-end;
  flex-shrink: 0;
  max-width: 45%;
}
.actions,
.heading-actions,
.demo-row,
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.related-links {
  margin-top: 20px;
  gap: 10px 14px;
}
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer > span:first-child {
  color: var(--ink);
  font-weight: 500;
}
.footer > span:first-child > span {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 400;
}
.footer a {
  color: var(--muted);
}
.footer a:hover {
  color: var(--brass-text);
}
.demo-note {
  max-width: 950px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.nav-backdrop {
  display: none;
}
.noscript {
  margin: 0;
  padding: 16px 24px;
  background: var(--warm-soft);
  color: var(--warm);
}
[data-runtime-status] {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

/* 03 — Actions, rich surfaces and operational summaries */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(120deg, var(--surface-raised), var(--surface-soft));
  color: var(--ink);
  font: 500 14px/1.45 var(--font);
  text-decoration: none;
  white-space: normal;
  box-shadow: 0 1px 2px #28302f06;
}
.btn:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--ink);
  border-color: var(--muted);
  box-shadow: 0 3px 7px #28302f09;
  transform: translateY(-1px);
}
.btn.primary {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: linear-gradient(
    115deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 90%, var(--accent-hover))
  );
  box-shadow:
    0 3px 7px #9b4b2920,
    inset 0 1px #ffffff12;
}
.btn.primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
  box-shadow: 0 5px 12px #9b4b2929;
}
.btn.danger {
  color: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 35%, var(--line));
}
.btn.danger:hover:not(:disabled) {
  background: var(--bad-soft);
}
.btn.active,
.btn[aria-pressed='true'] {
  color: var(--brass-text);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: none;
}
.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: inset 0 1px 3px #28302f15;
}
.btn:disabled {
  opacity: 0.6;
  color: var(--ink);
}
.btn.primary:disabled {
  color: var(--accent-ink);
}
.text-link,
.table-link {
  color: var(--brass-text);
  font-size: inherit;
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover,
.table-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.panel,
.workshop-story,
.photo-strip {
  min-width: 0;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 19px 21px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, var(--surface), var(--surface-soft));
}
.panel-head h2 {
  margin: 0;
  font-size: 19px;
}
.panel-head .eyebrow {
  margin-bottom: 5px;
  font-size: 12px;
}
.panel-head > .text-link {
  flex: none;
  font-size: 13px;
}
.panel-body {
  padding: 21px;
}
.panel-body > :last-child {
  margin-bottom: 0;
}
.panel-body > .table-scroll:first-child {
  margin-top: -4px;
}
.panel-body > .table-scroll + p {
  margin-top: 18px;
}
.panel-body > .panel {
  box-shadow: none;
}
.context-bar,
.shift-strip,
.board-toolbar,
.report-controls,
.document-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
}
.context-bar > div:not(.segmented),
.shift-strip > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.shift-strip {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(110deg, var(--surface), var(--surface-soft));
}
.shift-strip > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--good) 14%, transparent);
  border-radius: 6px;
  background: var(--good-soft);
  color: var(--good);
  font: 500 12px/1.3 var(--font);
  white-space: nowrap;
  text-transform: none;
  vertical-align: middle;
}
.badge.warm {
  color: var(--warm);
  background: var(--warm-soft);
  border-color: color-mix(in srgb, var(--warm) 15%, transparent);
}
.badge.bad {
  color: var(--bad);
  background: var(--bad-soft);
  border-color: color-mix(in srgb, var(--bad) 15%, transparent);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}
.kpi {
  position: relative;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(125deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow);
}
.kpi:first-child {
  background: linear-gradient(120deg, var(--surface) 10%, var(--accent-soft) 200%);
  border-color: color-mix(in srgb, var(--accent) 23%, var(--line));
}
.kpi > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.kpi strong {
  display: block;
  margin: 10px 0 7px;
  font: 500 32px/1.1 var(--heading);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
}
.kpi small {
  font-size: 12px;
  line-height: 1.5;
}
.panel-body > .kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}
.two-col,
.split-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card-grid > .panel {
  margin-bottom: 0;
}
.card-grid + .panel {
  margin-top: 20px;
}
[data-premium-card] {
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease),
    border-color 200ms;
}
[data-premium-card]:hover,
[data-premium-card]:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}
[data-reveal] {
  animation: bench-settle 360ms var(--ease) both;
}
@keyframes bench-settle {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(0);
  }
}
.workshop-photo {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}
.workshop-story {
  background: linear-gradient(125deg, var(--surface), var(--accent-soft) 190%);
}
.workshop-story > div,
.photo-strip > div {
  padding: 21px;
}
.workshop-story h2 {
  font-size: 23px;
}
.workshop-story p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
}
.workshop-story .workshop-photo {
  height: 210px;
}
.insight-card .workshop-photo,
.intake-context .workshop-photo {
  height: 218px;
}
.photo-strip {
  display: grid;
  grid-template-columns: 43% minmax(0, 1fr);
  align-self: stretch;
  background: linear-gradient(120deg, var(--surface), var(--surface-soft));
}
.photo-strip > img {
  height: 100%;
  min-height: 225px;
}
.photo-strip > div {
  align-self: center;
}
.photo-strip h2 {
  font-size: 22px;
}
.photo-strip p {
  color: var(--muted);
  font-size: 14px;
}
.photo-disclosure {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* 04 — Registers, saved views and portable data */
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.table,
.simple-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  --bs-table-bg: transparent;
  --bs-table-color: var(--ink);
  --bs-table-border-color: var(--line);
  --bs-table-accent-bg: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.table th,
.table td,
.simple-table th,
.simple-table td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.table thead th,
.simple-table thead th {
  padding-block: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.table th button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.table th button:hover:not(:disabled) {
  color: var(--brass-text);
}
.table th button span {
  color: var(--muted);
}
.table td small {
  margin-top: 4px;
  font-size: 12px;
}
.table tbody tr:last-child > *,
.simple-table tbody tr:last-child > * {
  border-bottom: 0;
}
.table tbody tr,
.simple-table tbody tr {
  transition: background-color 150ms;
}
.table tbody tr:hover,
.simple-table tbody tr:hover {
  background: var(--surface-soft);
}
.table tbody tr:has(input[type='checkbox']:checked) {
  background: var(--accent-soft);
}
.table .actions {
  flex-wrap: nowrap;
  gap: 6px;
}
.table .btn,
.simple-table .btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}
.table .check-cell {
  width: 42px;
}
.table .text-link {
  padding: 0;
  border: 0;
  background: transparent;
  min-height: 32px;
  text-align: left;
}
.table-toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.table-toolbar label {
  min-width: 135px;
  font-size: 12px;
}
.table-toolbar input,
.table-toolbar select {
  font-size: 14px;
}
.table-toolbar .search-field {
  flex: 1 1 245px;
  max-width: 390px;
}
.table-toolbar .btn,
.table-toolbar summary {
  min-height: 42px;
  font-size: 13px;
}
.table-toolbar .primary {
  margin-left: auto;
}
.table-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}
.table-bottom label {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 400;
}
.table-bottom select {
  min-height: 36px;
  padding: 6px 24px 6px 9px;
  font-size: 13px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pagination .btn {
  min-height: 36px;
  font-size: 13px;
}
.pagination > span {
  font-variant-numeric: tabular-nums;
}
.column-menu {
  position: relative;
  margin: 0;
}
.column-menu summary {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  list-style: none;
}
.column-menu summary::after {
  content: '⌄';
  font-size: 15px;
}
.column-menu summary::-webkit-details-marker {
  display: none;
}
.column-menu[open] summary {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.column-menu > div {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  width: 230px;
  max-width: calc(100vw - 60px);
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-lift);
}
.column-menu .check-label {
  min-width: 0;
  min-height: 36px;
  font-size: 13px;
}
.data-panel:has(.column-menu[open]) {
  overflow: visible;
}
.bulk-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--accent-soft);
  font-size: 13px;
}
.bulk-bar > span {
  margin-right: auto;
  font-weight: 500;
}
.bulk-bar .btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}
.empty-inline {
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}
.note-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(120deg, var(--surface), var(--surface-soft));
}
.note-card + .note-card {
  margin-top: 14px;
}
.note-card p {
  color: var(--muted);
  font-size: 14px;
}

/* 05 — Intake, service forms and canonical entity details */
.stack-form {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.stack-form > .actions {
  margin-top: 3px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}
.field-wide,
.form-grid > p,
.form-grid > .check-label {
  grid-column: 1 / -1;
}
.form-grid > label {
  min-width: 0;
}
.form-control,
.form-select {
  min-height: 44px;
  padding: 10px 12px;
  border-color: var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background-color: var(--surface);
  font: 400 15px/1.5 var(--font);
  box-shadow: 0 1px 2px #28302f03 inset;
}
.form-select {
  padding-right: 34px;
}
.form-control:focus,
.form-select:focus {
  color: var(--ink);
  background-color: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.form-control:disabled,
.form-select:disabled {
  background-color: var(--surface-soft);
  color: var(--muted);
}
.form-control[type='file'] {
  padding: 8px;
}
:root[data-theme='dark'] .form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23b6c1b7' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.check-label,
.checklist label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
}
.checklist {
  display: grid;
  gap: 9px;
}
.checklist label {
  min-height: 36px;
}
.checklist label:has(input:checked) {
  color: var(--good);
}
.conditional-fields {
  margin-top: 14px;
  padding: 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--surface-soft);
}
.field-hint {
  margin-top: -3px;
  font-weight: 400;
  line-height: 1.65;
}
.form-result,
.ai-result {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.form-result.bad,
[role='alert'].bad {
  border-color: color-mix(in srgb, var(--bad) 50%, var(--line));
  color: var(--bad);
  background: var(--bad-soft);
}
.stack-form > [role='status']:not(.ai-result):not(.form-result):not([hidden]) {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 14px;
}
.wizard-steps {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: intake-step;
}
.wizard-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  counter-increment: intake-step;
}
.wizard-steps li::before {
  content: counter(intake-step);
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 12px;
}
.wizard-steps li.active {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--brass-text);
  background: var(--accent-soft);
}
.wizard-steps li.active::before {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.wizard-steps li.completed {
  color: var(--good);
  background: var(--good-soft);
}
.file-drop {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: linear-gradient(120deg, var(--surface), var(--surface-soft));
  text-align: left;
}
.file-drop.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.file-drop input {
  margin-top: 12px;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 5px 6px 0 0;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--brass-text);
  font-size: 12px;
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 18px 0;
}
.detail-list > div {
  min-width: 0;
}
.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.detail-list dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.entity-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 17px;
  margin-bottom: 23px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.entity-banner > div {
  flex: 1;
  min-width: 150px;
}
.entity-banner h2 {
  margin-bottom: 6px;
  font-size: 25px;
}
.entity-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.availability-note {
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--good) 20%, var(--line));
  border-radius: 9px;
  background: var(--good-soft);
  color: var(--good);
  font-size: 14px;
}

/* 06 — Repair bench, people and calendar */
.segmented {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 60%, var(--canvas));
}
.segmented .btn {
  min-height: 34px;
  padding: 6px 13px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}
.segmented .btn.active {
  border-color: var(--line);
  background: var(--surface-raised);
  color: var(--brass-text);
  box-shadow: 0 2px 4px #28302f09;
}
.board-toolbar {
  align-items: flex-end;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.board-toolbar label {
  min-width: 205px;
  font-size: 12px;
}
.board-toolbar > span {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
}
.board-toolbar .badge {
  margin-right: 7px;
}
.repair-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(204px, 1fr));
  align-items: stretch;
  gap: 12px;
  height: min(660px, calc(100dvh - 330px));
  min-height: 450px;
  margin-bottom: 22px;
  padding: 2px 2px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  overscroll-behavior-x: contain;
}
.board-column {
  position: relative;
  height: 100%;
  min-width: 0;
  padding: 0 9px 9px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--canvas) 72%, var(--line));
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.board-column-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 -9px 0;
  padding: 15px 13px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 72%, var(--line));
}
.board-column-head h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font: 500 14px/1.4 var(--font);
  letter-spacing: 0;
}
.board-column-head h2::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--muted);
}
[data-workshop-stage='In progress'] .board-column-head h2::before {
  background: var(--accent);
}
[data-workshop-stage='Awaiting parts'] .board-column-head h2::before {
  background: var(--warm);
}
[data-workshop-stage='Ready'] .board-column-head h2::before {
  background: var(--moss);
}
.board-column-head > span {
  display: grid;
  place-items: center;
  min-width: 23px;
  min-height: 23px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}
.repair-card {
  margin: 10px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(125deg, var(--surface-raised), var(--surface));
  box-shadow: 0 2px 4px #28302f07;
}
.repair-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.repair-card-top > a {
  color: var(--brass-text);
  font: 500 12px/1.4 var(--font);
  text-decoration: none;
}
.repair-card-top > a:hover {
  text-decoration: underline;
}
.repair-card-top .badge {
  min-height: 23px;
  padding: 3px 6px;
}
.repair-card h3 {
  margin-bottom: 7px;
  font-size: 17px;
  line-height: 1.3;
}
.repair-card p {
  margin-bottom: 7px;
  font-size: 13px;
  line-height: 1.45;
}
.repair-card p.muted {
  font-size: 12px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.4;
}
.card-meta .avatar {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
  font-size: 12px;
}
.card-meta small {
  margin-top: 3px;
  font-size: 12px;
}
.card-meta > strong {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.repair-card select {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border-color: var(--line);
  background-color: var(--surface-soft);
  font-size: 12px;
}
.repair-card[draggable='true'] {
  cursor: grab;
}
.repair-card[draggable='true']:active {
  cursor: grabbing;
}
.repair-card.dragging {
  opacity: 0.5;
  transform: rotate(-1deg);
}
.board-column.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.supply-note {
  margin: 9px 0;
  padding: 9px;
  border-left: 2px solid var(--warm);
  border-radius: 5px;
  background: var(--warm-soft);
  color: var(--warm);
  font-size: 12px;
  line-height: 1.65;
}
.person-row,
.agenda-event,
.task-row,
.mail-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.person-row:last-child,
.agenda-event:last-child,
.task-row:last-child {
  border-bottom: 0;
}
.person-row:first-child {
  padding-top: 0;
}
.person-row > div,
.task-row > div,
.agenda-event > div {
  flex: 1;
  min-width: 0;
}
.person-row strong,
.task-row strong {
  font-size: 14px;
}
.person-row p,
.task-row p,
.agenda-event p {
  margin: 0;
}
.person-row small {
  margin-top: 3px;
  font-size: 12px;
}
.event-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.event-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.event-list li:first-child {
  padding-top: 0;
}
.event-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.event-list time,
.agenda-event time {
  min-width: 45px;
  color: var(--brass-text);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.event-list li > div {
  flex: 1;
}
.event-list strong {
  font-size: 14px;
}
.event-list p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.calendar-agenda {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.calendar-agenda > .panel:first-child {
  grid-column: 1 / -1;
  border-color: color-mix(in srgb, var(--accent) 33%, var(--line));
}
.calendar-agenda > .panel:first-child .panel-head {
  background: linear-gradient(110deg, var(--surface), var(--accent-soft));
}
.calendar-agenda .panel-head h2 {
  font-size: 17px;
}
.agenda-event {
  padding: 13px 0;
}
.agenda-event:first-child {
  padding-top: 0;
}
.agenda-event:last-child {
  padding-bottom: 0;
}
.agenda-event h3 {
  margin-bottom: 5px;
  font-size: 16px;
}
.agenda-event p {
  color: var(--muted);
  font-size: 13px;
}
.agenda-event > a {
  font-size: 13px;
}
.task-row {
  padding-inline: 0;
}
.task-row label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.task-row:has(input:checked) strong {
  color: var(--muted);
  text-decoration: line-through;
}
.queue-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid var(--line);
}
.queue-item > span {
  flex: 1;
  min-width: 150px;
}
.queue-item:last-child {
  border: 0;
}

/* 07 — Service desk messages, estimates and invoices */
.mail-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.mail-folders {
  padding: 15px;
  background: linear-gradient(125deg, var(--surface), var(--surface-soft));
}
.mail-folders > .btn {
  width: 100%;
}
.mail-folders nav {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}
.mail-folders nav .btn {
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.mail-folders nav .btn.active {
  background: var(--accent-soft);
  color: var(--brass-text);
}
.mail-row {
  padding: 20px;
  align-items: flex-start;
}
.mail-row:hover {
  background: var(--surface-soft);
}
.mail-row > a {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.mail-row strong {
  color: var(--muted);
  font-size: 12px;
}
.mail-row h3 {
  margin: 5px 0;
  font-size: 17px;
}
.mail-row p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.identity > div {
  flex: 1;
  min-width: 180px;
}
.identity h3 {
  margin-bottom: 5px;
}
.identity p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.identity > span:last-child:not(.avatar) {
  color: var(--muted);
  font-size: 13px;
}
.email-body {
  max-width: 760px;
  padding: 26px 0 8px;
  line-height: 1.85;
}
.invoice-document {
  padding: 30px;
}
.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 26px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.invoice-header > div {
  min-width: 0;
}
.invoice-header > div:last-child {
  text-align: right;
}
.wordmark {
  display: inline-block;
  margin-bottom: 9px;
  font-size: 34px;
  letter-spacing: -1.2px;
}
.wordmark > span {
  font-size: 12px;
  vertical-align: super;
}
.invoice-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.invoice-header h2 {
  margin: 10px 0;
  font-size: 26px;
}
.invoice-address {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 28px;
}
.invoice-address > section {
  min-width: 0;
}
.invoice-address p {
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.invoice-address > .detail-list {
  flex: 1;
  min-width: 260px;
  margin: 0;
}
.invoice-address > p {
  flex: 1;
  min-width: 220px;
  max-width: 390px;
  color: var(--muted);
}
.invoice-address h3 {
  font-size: 15px;
}
.invoice-address .detail-list {
  margin-top: 0;
}
.invoice-totals {
  width: 100%;
  max-width: 330px;
  margin: 25px 0 25px auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}
.invoice-totals p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 14px;
}
.invoice-totals p:last-child {
  margin-bottom: 0;
}
.invoice-totals strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.invoice-totals .grand-total {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  font-size: 17px;
}
.grand-total strong {
  color: var(--brass-text);
}
.invoice-notes {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.invoice-notes h3 {
  font-size: 15px;
}
.invoice-notes p {
  color: var(--muted);
  font-size: 13px;
}
.quote-table td:first-child {
  min-width: 270px;
}
.quote-table td:first-child > input {
  width: 100%;
  min-width: 235px;
}
.quote-table td:first-child > button {
  display: flex;
  width: fit-content;
  min-height: 32px;
  margin-top: 8px;
}
.quote-table td {
  padding-block: 16px;
  vertical-align: top;
}
.quote-table td input {
  min-height: 42px;
  font-size: 14px;
}
.quote-table input[data-quote-qty] {
  width: 86px;
  min-width: 86px;
}
.quote-table input[data-quote-price] {
  width: 112px;
  min-width: 112px;
}
.quote-table td[data-line-total] {
  min-width: 112px;
  padding-top: 27px;
}

/* 08 — Reports, chart examples and the secondary component directory */
.report-controls {
  justify-content: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  align-items: flex-end;
}
.report-controls label {
  min-width: 225px;
  font-size: 12px;
}
.report-controls > .btn {
  margin-left: auto;
}
.chart-frame {
  position: relative;
  height: 360px;
  min-width: 0;
  margin-bottom: 20px;
}
.chart-frame canvas {
  width: 100% !important;
  height: 100% !important;
}
.bar-chart {
  padding-top: 2px;
}
.bar-row {
  margin: 0 0 24px;
}
.bar-row > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 8px;
  font-size: 13px;
}
.bar-row strong {
  color: var(--ink);
  font-weight: 500;
}
.bar-row meter {
  display: block;
  width: 100%;
  height: 11px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: var(--surface-soft);
}
.bar-row meter::-webkit-meter-bar {
  height: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
}
.bar-row meter::-webkit-meter-optimum-value {
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--clay));
}
.bar-row meter::-moz-meter-bar {
  background: var(--accent);
}
.directory-group {
  margin-top: 28px;
}
.directory-group > h2 {
  margin-bottom: 14px;
  font-size: 21px;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.directory-grid > a {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.directory-grid > a:hover {
  background: var(--surface-hover);
  color: var(--brass-text);
}
.directory-grid small {
  margin-top: 7px;
  font-weight: 400;
  font-size: 13px;
}
.directory-search {
  margin-bottom: 24px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.directory-search input {
  width: 100%;
  margin-top: 2px;
}
.search-result {
  display: block;
  margin: 13px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.search-result:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface-soft);
}
.search-result h3 {
  margin-bottom: 6px;
}
.search-result p {
  color: var(--muted);
  font-size: 14px;
}
.tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 23px;
  padding: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  position: relative;
  min-height: 46px;
  padding: 10px 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.tabs button:hover {
  background: var(--surface-soft);
  color: var(--ink);
}
.tabs button.active,
.tabs button[aria-selected='true'] {
  border-bottom-color: var(--accent);
  color: var(--brass-text);
}
[data-tab-panel]:not([hidden]) {
  animation: bench-settle 200ms var(--ease);
}
.progress {
  height: 12px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--clay));
  transition: width 180ms var(--ease);
}
details {
  margin: 12px 0;
}
summary {
  min-height: 40px;
  padding: 10px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}
details p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.accordion details {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.accordion details:last-child {
  border: 0;
}
.accordion details[open] summary {
  color: var(--brass-text);
}
.accordion details p {
  padding: 0 0 7px;
}
.alert {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 14px;
  line-height: 1.7;
}
.alert.good {
  background: var(--good-soft);
  color: var(--good);
  border-color: color-mix(in srgb, var(--good) 25%, var(--line));
}
.alert.warm {
  background: var(--warm-soft);
  color: var(--warm);
  border-color: color-mix(in srgb, var(--warm) 25%, var(--line));
}
.alert.bad {
  background: var(--bad-soft);
  color: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 25%, var(--line));
}
.color-swatch {
  height: 110px;
  border: 1px solid #28302f18;
  border-radius: 10px;
}
.swatch-card h3 {
  margin-top: 12px;
}
.display-sample {
  font: 500 48px/1.12 var(--heading);
  letter-spacing: -1px;
}
.heat-cell {
  display: block;
  padding: 16px 12px;
  border: 1px solid color-mix(in srgb, var(--good) 20%, var(--line));
  border-radius: 6px;
  background: var(--good-soft);
  color: var(--good);
  text-align: center;
  font-size: 13px;
}
.heat-3,
.heat-4 {
  background: var(--accent-soft);
  color: var(--brass-text);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
}
.heat-5,
.heat-6 {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.project-card .panel-body > .badge {
  margin-bottom: 13px;
}
.project-card h2 {
  font-size: 23px;
}
.project-card .actions {
  margin-top: 20px;
}
.approval-card .panel-body > strong {
  display: block;
  margin-bottom: 15px;
  font: 500 30px/1.2 var(--heading);
}
.approval-card .actions {
  margin-top: 18px;
}
.approval-card [role='status']:not(:empty) {
  margin-top: 15px;
  color: var(--good);
}
.article-panel {
  max-width: 900px;
}
.article-panel .panel-body {
  padding: 28px;
  line-height: 1.85;
}
.article-panel h2,
.article-panel h3 {
  margin-top: 25px;
}
.article-panel h2:first-child,
.article-panel h3:first-child {
  margin-top: 0;
}
.guide-steps {
  margin: 0;
  padding-left: 22px;
}
.guide-steps li {
  padding-left: 9px;
  margin-bottom: 24px;
}
.guide-steps li::marker {
  color: var(--brass-text);
  font-weight: 600;
}
.timeline {
  padding-left: 22px;
  border-left: 2px solid var(--line);
}
.timeline > article,
.timeline > div,
.timeline > li {
  position: relative;
  margin: 0 0 25px;
}
.timeline h3 {
  font-size: 19px;
}
.timeline p {
  color: var(--muted);
}

/* 09 — Dialogs, drawers, command search and feedback */
.app-dialog,
.command-dialog {
  width: min(620px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  max-height: min(880px, calc(100dvh - 48px));
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-dialog);
}
.app-dialog::backdrop,
.command-dialog::backdrop,
.contextual-copilot::backdrop {
  background: #18231c9e;
  backdrop-filter: blur(3px);
  animation: bench-backdrop 160ms var(--ease);
}
.app-dialog[open],
.command-dialog[open] {
  animation: bench-dialog-in 200ms var(--ease);
}
@keyframes bench-dialog-in {
  from {
    opacity: 0.5;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes bench-backdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes club-drawer-in {
  from {
    opacity: 0.6;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--modal-head);
}
.modal-header h2 {
  margin: 0;
  font-size: 23px;
}
.modal-header .icon-btn {
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  font-size: 24px;
}
.modal-body {
  position: relative;
  padding: 24px;
  background: var(--surface);
}
.modal-body > .detail-list:first-child {
  margin-top: 0;
}
.modal-body .stack-form {
  gap: 17px;
}
.modal-body .stack-form > p.muted {
  font-size: 12px;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  background: var(--modal-foot);
}
.modal-footer > * {
  margin: 0;
}
.modal-footer > span:first-child {
  margin-right: auto;
  font-size: 12px;
}
.modal-body .modal-footer {
  margin: 6px -24px -24px;
}
.app-dialog.drawer {
  inset: 0;
  width: min(560px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border-radius: 16px 0 0 16px;
  animation: club-drawer-in 220ms var(--ease);
}
.command-dialog {
  width: min(680px, calc(100vw - 40px));
  margin-top: min(14vh, 150px);
}
.command-input {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px;
  border-bottom: 1px solid var(--line);
  background: var(--modal-head);
}
.command-input input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  background: var(--surface);
  font-size: 16px;
}
.command-input .btn {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 12px;
}
.command-results {
  max-height: 52dvh;
  padding: 10px;
  overflow: auto;
}
.command-results > a {
  display: block;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.command-results > a small {
  margin-top: 3px;
  font-size: 12px;
}
.command-results > a:hover,
.command-results > a.active {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--brass-text);
}
.command-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--modal-foot);
  color: var(--muted);
  font-size: 12px;
}
.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1100;
  display: grid;
  gap: 10px;
  width: min(410px, calc(100vw - 40px));
  pointer-events: none;
}
.toast,
.toast:not(.show) {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--ink);
  font: 400 14px/1.5 var(--font);
  box-shadow: var(--shadow-lift);
  opacity: 1;
  pointer-events: auto;
  animation: bench-dialog-in 180ms var(--ease);
}
.toast > span {
  flex: 1;
}
.toast .icon-btn {
  width: 32px;
  min-height: 32px;
  font-size: 21px;
}
.toast .btn {
  min-height: 34px;
  padding: 6px 10px;
}
.toast.bad {
  border-left-color: var(--bad);
}
.toast.warm {
  border-left-color: var(--warm);
}

/* 10 — Real API states, access examples and layout variants */
.integration-state {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}
.integration-state strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}
.integration-state small {
  font-size: 12px;
}
.ai-result p:last-child {
  margin-bottom: 0;
}
.ai-result[data-ai-state='loading'] {
  border-color: var(--accent);
  background: linear-gradient(110deg, var(--surface-soft), var(--accent-soft));
}
.ai-result[data-ai-state='error'] {
  border-color: color-mix(in srgb, var(--bad) 40%, var(--line));
  background: var(--bad-soft);
}
.ai-result[data-ai-state='success'] {
  border-color: color-mix(in srgb, var(--good) 35%, var(--line));
  background: var(--good-soft);
}
.ai-result .eyebrow {
  color: var(--brass-text);
}
.ai-result .note-card {
  margin-top: 15px;
}
.ai-result pre {
  max-width: 100%;
  margin: 15px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.8 var(--mono);
}
.ai-result .ai-upgrade-link {
  display: inline-block;
  margin-top: 12px;
}
.ai-result .ai-retry-button {
  margin-top: 14px;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 30px auto;
}
.auth-panel {
  margin: 0;
}
.auth-panel .panel-body {
  padding: 30px;
}
.auth-panel h2 {
  margin-top: 16px;
  font-size: 30px;
}
.auth-panel .related-links {
  gap: 10px 16px;
  padding-top: 6px;
  font-size: 13px;
}
.auth-photo img {
  height: 380px;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.auth-photo h2 {
  margin: 22px 0 10px;
  font-size: 25px;
}
.auth-photo .photo-disclosure {
  max-width: 370px;
  line-height: 1.7;
}
.password-wrap {
  display: flex;
  gap: 8px;
}
.password-wrap input {
  min-width: 0;
  flex: 1;
}
.error-panel {
  max-width: 760px;
  margin: 35px auto;
  background: linear-gradient(130deg, var(--surface), var(--accent-soft) 220%);
}
.error-panel .panel-body {
  padding: 40px;
}
.error-code {
  display: block;
  margin-bottom: 18px;
  color: var(--brass-text);
  font: 500 86px/1 var(--heading);
  letter-spacing: -4px;
}
.error-panel h2 {
  font-size: 28px;
}
.error-panel .related-links {
  margin-top: 25px;
}
body[data-layout='compact'] .workspace-main {
  max-width: 1300px;
}
body[data-layout='compact'] .panel-body {
  padding: 17px;
}
body[data-layout='compact'] .task-row {
  padding-block: 11px;
}
body[data-layout='wide'] .workspace-main {
  max-width: 2000px;
}
body[data-layout='focus'] .workspace-main {
  max-width: 1000px;
}
.focus-workspace {
  max-width: 780px;
  margin: 0 auto;
}

/* 11 — Responsive workspaces; retain readable labels and touch targets */
@media (min-width: 1600px) {
  .workspace-main {
    padding-inline: 36px;
  }
  .topbar {
    padding-inline: 36px;
  }
  .repair-card {
    padding: 16px;
  }
}
@media (max-width: 1279px) {
  .heading-actions {
    flex-shrink: 1;
    max-width: 38%;
  }
  .work-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(265px, 1fr);
  }
  .page-heading {
    gap: 18px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi {
    padding: 17px;
  }
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table-toolbar .search-field {
    max-width: none;
  }
  .mail-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 16px;
  }
  .photo-strip {
    grid-template-columns: 38% minmax(0, 1fr);
  }
}
@media (max-width: 1100px) and (min-width: 1024px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .work-grid > .workshop-story,
  .work-grid > .insight-card {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
  }
  .work-grid > .workshop-story img,
  .work-grid > .insight-card img {
    height: 100%;
    min-height: 225px;
  }
  .topbar {
    padding-inline: 22px;
  }
  .workspace-main {
    padding-inline: 22px;
  }
  .shift-label {
    display: none;
  }
}
@media (max-width: 1023px) {
  .sidebar {
    width: 268px;
    transform: translateX(-100%);
    visibility: hidden;
    box-shadow: 10px 0 50px #15201b2b;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 66px;
    padding: 12px 22px;
  }
  .topbar .nav-toggle {
    display: inline-flex;
  }
  .nav-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-open .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #18231c99;
    backdrop-filter: blur(2px);
    animation: bench-backdrop 180ms var(--ease);
  }
  body.nav-open {
    overflow: hidden;
  }
  .workspace-main {
    padding: 25px 22px;
  }
  .heading-actions {
    max-width: 42%;
  }
  .sidebar .sidebar-search {
    font-size: 13px;
  }
  .sidebar .nav-item {
    min-height: 44px;
  }
  .repair-board {
    height: 590px;
  }
  .sidebar .brand {
    margin-inline: 10px;
  }
  .calendar-agenda .panel-head h2 {
    font-size: 18px;
  }
}
@media (max-width: 800px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .work-grid > .workshop-story,
  .work-grid > .insight-card {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
  }
  .work-grid > .workshop-story img,
  .work-grid > .insight-card img {
    height: 100%;
    min-height: 230px;
  }
  .two-col,
  .split-workspace {
    gap: 16px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi {
    padding: 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }
  .heading-actions {
    max-width: none;
    justify-content: flex-start;
  }
  .breadcrumb-line {
    display: none;
  }
  .photo-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .photo-strip > img {
    height: 190px;
    min-height: 0;
  }
  .mail-row {
    padding: 18px;
  }
  .mail-row > .badge {
    display: none;
  }
  .calendar-agenda {
    grid-template-columns: minmax(0, 1fr);
  }
  .calendar-agenda > .panel:first-child {
    grid-column: auto;
  }
  .auth-layout {
    gap: 20px;
  }
  .auth-panel .panel-body {
    padding: 24px;
  }
  .auth-photo img {
    height: 330px;
  }
  .auth-photo h2 {
    font-size: 22px;
  }
  .table-toolbar .btn {
    min-height: 42px;
  }
}
@media (max-width: 639px) {
  body {
    font-size: 15px;
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 21px;
  }
  .workspace-main {
    padding: 22px 16px;
  }
  .topbar {
    min-height: 64px;
    padding: 11px 16px;
    gap: 8px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .topbar-actions > .avatar {
    display: none;
  }
  .topbar-actions .shift-label {
    margin-right: 2px;
    font-size: 12px;
  }
  .shift-label .muted {
    font-size: 12px;
  }
  .topbar .icon-btn {
    width: 40px;
    min-height: 40px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .page-heading .eyebrow {
    font-size: 12px;
    letter-spacing: 0.8px;
  }
  .page-heading h1 + p {
    margin-top: 10px;
    font-size: 14px;
  }
  .heading-actions {
    width: 100%;
    gap: 9px;
  }
  .heading-actions .btn {
    font-size: 13px;
  }
  .panel {
    margin-bottom: 17px;
  }
  .panel-head {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 65px;
    padding: 17px;
  }
  .panel-head h2 {
    font-size: 19px;
  }
  .panel-body {
    padding: 17px;
  }
  .panel-head > .text-link {
    font-size: 13px;
  }
  .context-bar,
  .shift-strip,
  .board-toolbar,
  .report-controls,
  .document-actions {
    gap: 12px;
    margin-bottom: 17px;
  }
  .shift-strip {
    padding: 13px;
  }
  .shift-strip > div {
    gap: 8px;
  }
  .shift-strip .btn {
    padding-inline: 10px;
    font-size: 13px;
  }
  .shift-strip > span {
    gap: 10px;
    font-size: 13px;
  }
  .kpi-grid {
    gap: 11px;
    margin-bottom: 18px;
  }
  .kpi {
    padding: 16px 14px;
    border-radius: 11px;
  }
  .kpi > span {
    font-size: 13px;
  }
  .kpi strong {
    margin: 9px 0;
    font-size: 29px;
  }
  .kpi small {
    font-size: 12px;
  }
  .work-grid,
  .two-col,
  .split-workspace,
  .card-grid,
  .form-grid,
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .card-grid {
    gap: 17px;
  }
  .form-grid {
    gap: 17px;
  }
  .field-wide,
  .form-grid > p,
  .form-grid > .check-label {
    grid-column: auto;
  }
  .work-grid > .workshop-story,
  .work-grid > .insight-card {
    display: block;
  }
  .work-grid > .workshop-story img,
  .work-grid > .insight-card img {
    height: 215px;
    min-height: 0;
  }
  .workshop-story > div,
  .photo-strip > div {
    padding: 19px;
  }
  .photo-strip {
    grid-template-columns: 40% minmax(0, 1fr);
    margin-bottom: 17px;
  }
  .photo-strip img {
    height: 100%;
    min-height: 245px;
  }
  .photo-strip > div {
    padding: 18px;
  }
  .photo-strip h2 {
    font-size: 21px;
  }
  .photo-strip p {
    font-size: 14px;
  }
  .photo-strip .text-link {
    font-size: 13px;
  }
  .table-toolbar {
    align-items: flex-end;
    gap: 10px 8px;
    padding: 15px;
  }
  .table-toolbar .search-field {
    flex-basis: 100%;
  }
  .table-toolbar > label:not(.search-field) {
    flex: 1;
    min-width: 160px;
  }
  .table-toolbar label {
    font-size: 13px;
  }
  .table-toolbar .btn,
  .table-toolbar summary {
    padding-inline: 10px;
    font-size: 13px;
  }
  .table-toolbar .primary {
    margin-left: 0;
  }
  .table-toolbar input {
    font-size: 16px;
  }
  .table th,
  .table td,
  .simple-table th,
  .simple-table td {
    padding: 13px;
  }
  .table td,
  .simple-table td {
    font-size: 14px;
  }
  .table th,
  .simple-table th {
    font-size: 12px;
  }
  .table th button {
    min-height: 32px;
  }
  .table .actions {
    min-width: 130px;
  }
  .table-bottom {
    padding: 15px;
    gap: 16px;
  }
  .table-bottom .pagination {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .table-bottom label {
    margin-left: auto;
    font-size: 12px;
  }
  .table-bottom .btn {
    min-height: 40px;
  }
  .related-links {
    gap: 10px;
  }
  .related-links .btn {
    padding-inline: 12px;
    font-size: 13px;
  }
  .repair-board {
    grid-template-columns: repeat(5, 270px);
    height: 610px;
    min-height: 450px;
    gap: 12px;
  }
  .board-column {
    padding-inline: 11px;
  }
  .board-column-head {
    margin-inline: -11px;
    padding-inline: 15px;
  }
  .board-column-head h2 {
    font-size: 15px;
  }
  .repair-card {
    padding: 16px;
  }
  .repair-card h3 {
    font-size: 18px;
  }
  .repair-card p {
    font-size: 14px;
  }
  .repair-card p.muted,
  .repair-card select,
  .card-meta {
    font-size: 13px;
  }
  .repair-card select {
    min-height: 42px;
  }
  .board-toolbar > span {
    font-size: 13px;
    line-height: 1.8;
  }
  .board-toolbar label {
    width: 100%;
    min-width: 0;
    font-size: 13px;
  }
  .person-row,
  .task-row {
    flex-wrap: wrap;
  }
  .person-row .badge {
    font-size: 12px;
  }
  .person-row small {
    font-size: 13px;
  }
  .agenda-event {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 11px;
  }
  .agenda-event > div {
    min-width: 160px;
  }
  .agenda-event > a {
    margin-left: 56px;
    min-height: 28px;
  }
  .agenda-event time {
    min-height: 30px;
    padding-top: 2px;
    font-size: 14px;
  }
  .agenda-event p {
    font-size: 14px;
  }
  .calendar-agenda .panel-head h2 {
    font-size: 19px;
  }
  .event-list li {
    flex-wrap: wrap;
    gap: 10px;
  }
  .event-list li > div {
    min-width: 140px;
  }
  .event-list p {
    font-size: 13px;
  }
  .context-bar > div:has([data-workshop-calendar-label]) {
    width: 100%;
    gap: 10px;
  }
  [data-workshop-calendar-label] {
    flex-basis: 100%;
    order: -1;
    padding-block: 5px;
  }
  [data-workshop-calendar-prev],
  [data-workshop-calendar-next] {
    font-size: 13px;
  }
  .form-control,
  .form-select,
  .stack-form input:not([type='checkbox']):not([type='radio']),
  .stack-form textarea,
  .stack-form select {
    font-size: 16px;
  }
  .checklist label {
    align-items: flex-start;
    min-height: 40px;
    padding-top: 7px;
    line-height: 1.55;
  }
  .checklist input {
    margin-top: 2px;
  }
  .form-actions {
    gap: 8px;
  }
  .form-actions .btn {
    min-height: 44px;
    padding-inline: 12px;
  }
  .wizard-steps {
    flex-wrap: wrap;
    gap: 7px;
  }
  .wizard-steps li {
    padding: 8px;
    font-size: 12px;
  }
  fieldset {
    padding: 16px;
  }
  legend {
    font-size: 18px;
  }
  .detail-list {
    gap: 17px 16px;
  }
  .detail-list dt {
    font-size: 12px;
  }
  .detail-list dd {
    font-size: 14px;
  }
  .entity-banner .avatar.large {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }
  .entity-banner h2 {
    font-size: 24px;
  }
  .file-drop {
    padding: 20px;
  }
  .mail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .mail-folders nav {
    display: flex;
    gap: 6px;
    overflow: auto;
    margin-top: 12px;
    padding-bottom: 3px;
  }
  .mail-folders nav .btn {
    flex: none;
    padding-inline: 11px;
    font-size: 13px;
  }
  .mail-row {
    padding: 18px 15px;
    gap: 11px;
  }
  .mail-row h3 {
    font-size: 18px;
  }
  .mail-row .avatar {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }
  .identity > div {
    min-width: 180px;
  }
  .identity > span:last-child:not(.avatar) {
    padding-left: 49px;
    font-size: 12px;
  }
  .invoice-document {
    padding: 19px;
  }
  .invoice-header {
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 20px;
  }
  .invoice-header > div {
    flex-basis: 100%;
  }
  .invoice-header > div:last-child {
    text-align: left;
  }
  .invoice-header h2 {
    font-size: 24px;
  }
  .invoice-header .wordmark {
    font-size: 32px;
  }
  .invoice-address {
    display: block;
    margin-bottom: 22px;
  }
  .invoice-address > section + section,
  .invoice-address > p {
    margin-top: 20px;
  }
  .invoice-address > .detail-list,
  .invoice-address > p {
    min-width: 0;
  }
  .invoice-address > .detail-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .invoice-totals {
    max-width: none;
    margin-top: 22px;
    padding: 16px;
  }
  .invoice-totals .grand-total {
    font-size: 16px;
  }
  .quote-table,
  .quote-table tbody {
    display: block;
  }
  .quote-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .quote-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .quote-table tbody tr:last-child {
    border-bottom: 0;
  }
  .quote-table tbody td {
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal;
    font-size: 14px;
  }
  .quote-table td:first-child {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .quote-table td:first-child > input {
    width: 100%;
    min-width: 0;
  }
  .quote-table input[data-quote-qty],
  .quote-table input[data-quote-price] {
    width: 100%;
    min-width: 0;
    padding-inline: 9px;
  }
  .quote-table td:not(:first-child)::before {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
  }
  .quote-table td:nth-child(2)::before {
    content: 'Quantity';
  }
  .quote-table td:nth-child(3)::before {
    content: 'Unit price';
  }
  .quote-table td:nth-child(4)::before {
    content: 'Line total';
  }
  .quote-table td[data-line-total] {
    min-width: 0;
    padding-top: 0;
    font-variant-numeric: tabular-nums;
    line-height: 2.5;
  }
  .quote-table td[data-line-total]::before {
    line-height: 1.5;
  }
  .report-controls {
    padding: 15px;
  }
  .report-controls label {
    width: 100%;
    min-width: 0;
    font-size: 13px;
  }
  .report-controls > .btn {
    margin-left: 0;
  }
  .chart-frame {
    height: 300px;
  }
  .directory-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .directory-grid > a {
    padding: 18px;
    border-right: 0;
  }
  .directory-search input {
    font-size: 16px;
  }
  .display-sample {
    font-size: 36px;
  }
  .article-panel .panel-body {
    padding: 20px;
  }
  .tabs {
    gap: 3px;
  }
  .tabs button {
    padding-inline: 13px;
    font-size: 14px;
  }
  .auth-layout {
    margin: 12px auto;
  }
  .auth-panel .panel-body {
    padding: 24px;
  }
  .auth-photo {
    margin: 20px 0 0;
  }
  .auth-photo img {
    height: 210px;
  }
  .auth-photo h2 {
    font-size: 24px;
  }
  .error-panel {
    margin: 15px auto;
  }
  .error-panel .panel-body {
    padding: 25px;
  }
  .error-code {
    font-size: 72px;
  }
  .error-panel h2 {
    font-size: 25px;
  }
  .app-dialog,
  .command-dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 13px;
  }
  .app-dialog.drawer {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  .modal-header {
    min-height: 74px;
    padding: 17px 18px;
  }
  .modal-header h2 {
    font-size: 21px;
  }
  .modal-body {
    padding: 20px 18px;
  }
  .modal-footer {
    padding: 15px 18px;
  }
  .modal-body .modal-footer {
    margin: 4px -18px -20px;
  }
  .modal-footer > span:first-child {
    flex-basis: 100%;
  }
  .modal-footer .btn {
    min-height: 44px;
    font-size: 14px;
  }
  .command-dialog {
    margin-top: 8dvh;
  }
  .command-input {
    gap: 8px;
    padding: 14px;
  }
  .command-results {
    max-height: 55dvh;
  }
  .command-results > a {
    padding: 13px 10px;
  }
  .command-footer {
    padding: 13px 16px;
  }
  .footer {
    gap: 12px;
    margin-top: 25px;
    line-height: 1.9;
  }
  .footer > span:first-child > span {
    margin-left: 5px;
  }
  .toast-region {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }
  .toast {
    font-size: 14px;
  }
  .demo-note {
    margin-top: 24px;
    font-size: 12px;
  }
}
@media (max-width: 389px) {
  .topbar-actions .shift-label {
    font-size: 12px;
  }
  .topbar-actions .shift-label .muted {
    display: none;
  }
  .photo-strip {
    display: block;
  }
  .photo-strip img {
    height: 195px;
    min-height: 0;
  }
  .kpi strong {
    font-size: 27px;
  }
  .kpi {
    padding-inline: 12px;
  }
  .table-bottom > label {
    margin-left: 0;
  }
}

/* No essential content waits for animation; motion is optional. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  *::backdrop {
    scroll-behavior: auto !important;
    animation-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-premium-card]:hover,
  [data-premium-card]:focus-within,
  .btn:hover,
  .icon-btn:hover,
  .search-result:hover {
    transform: none;
  }
}
@media (forced-colors: active) {
  .btn,
  .icon-btn,
  .badge,
  .avatar,
  .panel,
  .repair-card {
    border: 1px solid CanvasText;
  }
  .nav-item.active {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}
@media print {
  :root,
  :root[data-theme='dark'] {
    color-scheme: light;
    --ink: #222;
    --muted: #535b55;
    --canvas: #fff;
    --surface: #fff;
    --surface-soft: #f6f6f3;
    --line: #ccd0c9;
    --line-strong: #9ba397;
    --brass-text: #97492c;
    --good: #365d45;
    --good-soft: #e5eee4;
  }
  .sidebar,
  .topbar,
  .page-heading,
  .document-actions,
  .footer,
  .demo-note,
  .heading-actions,
  .toast-region,
  .nav-backdrop,
  dialog,
  [data-runtime-status] {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  .workspace-main {
    padding: 0;
  }
  body {
    min-width: 0;
    background: #fff;
    color: #222;
  }
  .invoice-document {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .panel {
    break-inside: avoid;
    box-shadow: none;
  }
  .table-scroll {
    overflow: visible;
  }
  a {
    color: inherit;
  }
}
