:root {
  color-scheme: light;
  --ink: #202923;
  --muted: #738078;
  --paper: #fbfcf9;
  --canvas: #f0f3ee;
  --line: #dce3dc;
  --forest: #17332c;
  --forest-soft: #28483e;
  --lime: #d5e77d;
  --lime-ink: #25331a;
  --clay: #b9684b;
  --clay-pale: #f7e9e2;
  --blue: #386981;
  --blue-pale: #e7f0f4;
  --green-pale: #e7efe6;
  --shadow: 0 14px 38px rgba(22, 43, 35, .06);
  --font-ui: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-ui); font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(88, 135, 100, .36); outline-offset: 2px; }
.app-frame { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; width: 236px; flex-direction: column; padding: 27px 18px 17px; background: var(--forest); color: #eef4e9; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 37px; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px 10px 10px 3px; background: var(--lime); color: var(--forest); font: 700 20px Georgia, serif; }
.brand-image { display: block; width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; }
.brand strong, .brand small, .user-meta strong, .user-meta small { display: block; }
.brand strong { font-size: 13px; line-height: 1.2; }
.brand small { margin-top: 2px; color: #9db2a6; font-size: 12px; }
.nav-caption, .eyebrow { color: #899990; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.nav-caption { padding: 0 11px 11px; color: #8ca197; }
.primary-nav { display: grid; gap: 5px; }
.nav-link { display: flex; min-height: 44px; align-items: center; gap: 11px; padding: 0 11px; border-radius: 5px; color: #c3d0c7; font-size: 14px; transition: background .18s ease, color .18s ease; }
.nav-link:hover { background: rgba(255,255,255,.07); color: white; }
.nav-link.is-active { background: #29483e; color: white; box-shadow: inset 3px 0 var(--lime); }
.nav-glyph { width: 17px; color: #b8ca9c; font-size: 17px; text-align: center; }
.sidebar-bottom { display: grid; gap: 16px; margin-top: auto; padding: 15px 7px 0; border-top: 1px solid rgba(232,242,232,.13); }
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border: 1px solid #5e7768; border-radius: 50%; color: var(--lime); font-size: 13px; font-weight: 700; }
.user-meta { min-width: 0; }
.user-meta strong { overflow: hidden; color: #f2f5f0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { margin-top: 2px; color: #a0b3a7; font-size: 11px; }
.logout-button { padding: 0; border: 0; background: transparent; color: #b6c6bd; cursor: pointer; font-size: 12px; }
.logout-button:hover { color: white; }
.main-area { min-height: 100vh; margin-left: 236px; }
.topbar { display: flex; height: 58px; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--line); background: rgba(251,252,249,.78); }
.global-search-form { display: flex; width: min(430px, 48%); height: 40px; align-items: center; border: 1px solid #d4ddd4; border-radius: 4px; background: var(--paper); }
.global-search-form:focus-within { border-color: #829a87; box-shadow: 0 0 0 2px rgba(88, 135, 100, .12); }
.global-search-form input { width: 100%; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.global-search-form .icon-button { height: 38px; }
.breadcrumb { color: #68766d; font-size: 12px; font-weight: 600; }
.breadcrumb span { padding: 0 8px; color: #a6b0a8; }
.breadcrumb a { color: #68766d; }
.topbar-date { color: var(--muted); font-size: 12px; }
.page-content { max-width: 1500px; margin: 0 auto; padding: 38px 38px 70px; }
.page-heading { margin-bottom: 28px; }
.page-heading h1, .detail-heading h1 { margin: 8px 0 7px; font: 400 34px/1.13 var(--font-display); letter-spacing: 0; }
.page-heading p { margin: 0; }
.eyebrow { display: inline-block; color: #7d897f; }
.heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.compact-heading { margin-bottom: 24px; }
.compact-heading h1 { margin-bottom: 5px; }
.muted { color: var(--muted); }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 0 15px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 700; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--forest); color: #fff; }
.button-primary:hover { background: #24483d; }
.button-primary > span:last-child { color: var(--lime); font-size: 17px; }
.button-plus { color: var(--lime); font-size: 18px; line-height: 1; }
.button-secondary { border-color: #cfd9d0; background: var(--paper); color: var(--ink); }
.button-secondary:hover { border-color: #93a89a; background: white; }
.button-quiet { background: transparent; color: #68766d; }
.button-danger-quiet { border-color: #e6c7bc; background: #fffaf8; color: #9a5038; }
.button-danger-quiet:hover { background: var(--clay-pale); }
.button-wide { width: 100%; justify-content: space-between; margin-top: 9px; padding-inline: 15px; }
.metric-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 24px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); box-shadow: var(--shadow); }
.metric { min-height: 116px; padding: 17px 19px; border-right: 1px solid var(--line); }
.metric { color: inherit; text-decoration: none; transition: background .16s ease, transform .16s ease; }
.metric:hover { background: #f5f8f1; transform: translateY(-1px); }
.metric:focus-visible { position: relative; z-index: 1; }
.metric:last-child { border-right: 0; }
.metric > span { display: block; color: #748178; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.metric strong { display: block; margin: 5px 0 1px; color: var(--forest); font: 400 31px/1.05 Georgia, serif; }
.metric small { color: #68766d; font-size: 12px; }
.metric-warm strong { color: #af6348; }
.metric-alert strong { color: #a74535; }
.metric-cool strong { color: var(--blue); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(310px, .92fr); gap: 20px; align-items: start; }
.section-panel { border: 1px solid var(--line); border-radius: 5px; background: var(--paper); box-shadow: var(--shadow); }
.orders-panel, .queue-panel, .list-panel, .detail-jobs-panel, .cancelled-jobs-panel { overflow: hidden; }
.section-heading { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 3px 0 0; font: 400 21px/1.2 var(--font-display); }
.section-heading .eyebrow { font-size: 10px; }
.text-link, .inline-link { color: #33624e; font-size: 13px; font-weight: 700; }
.text-link:hover, .inline-link:hover { color: #1c3c30; text-decoration: underline; text-underline-offset: 3px; }
.queue-count, .heading-count { color: #68766d; font-size: 12px; font-family: var(--font-ui); }
.heading-count { margin-left: 5px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.data-table th { height: 39px; padding: 0 12px; background: #f5f7f3; color: #69776e; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.data-table th:first-child, .data-table td:first-child { padding-left: 19px; }
.data-table td { height: 60px; padding: 9px 12px; border-bottom: 1px solid #e9eee8; color: #46564c; font-size: 13px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f8faf6; }
.record-link { color: #2d5847; font-weight: 700; }
.record-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.record-code { color: #2c5947; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 700; }
.customer-name { display: block; color: var(--ink); font-weight: 600; }
.table-subline { display: block; margin-top: 2px; color: #748178; font-size: 11px; }
.status-pill { display: inline-flex; min-height: 25px; align-items: center; padding: 0 9px; border-radius: 3px; background: #edf1ed; color: #46564c; font-size: 12px; font-weight: 700; }
.status-pill.status-new-order { background: #edf1ed; color: #56645a; }
.status-pill.status-in-progress, .status-pill.status-designing, .status-pill.status-correction { background: #edf1d9; color: #59652e; }
.status-pill.status-done { background: var(--green-pale); color: #35614a; }
.status-pill.status-cancelled { background: #f1e9e5; color: #8e5945; }
.queue-list { padding: 0 16px; }
.queue-item { display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 9px; padding: 13px 2px; border-bottom: 1px solid #e9eee8; }
.queue-item:last-child { border-bottom: 0; }
.queue-date { padding-top: 1px; color: #a65d42; font: 700 12px/1.3 "SFMono-Regular", Consolas, monospace; }
.date-empty { color: #a6afa8; }
.queue-content { min-width: 0; }
.queue-content strong { display: block; overflow: hidden; color: #344239; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.queue-content small { display: block; overflow: hidden; margin-top: 3px; color: #748178; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.queue-stage { grid-column: 2; width: fit-content; margin-top: -4px; color: #56645a; font-size: 11px; }
.empty-state { padding: 42px 18px; text-align: center; }
.empty-state h3 { margin: 8px 0 4px; font: 400 20px var(--font-display); }
.empty-state p { max-width: 340px; margin: 0 auto 17px; color: #68766d; font-size: 13px; }
.empty-mark { color: #7f9b58; font-size: 23px; }
.empty-state.compact { padding: 24px 18px; text-align: left; }
.empty-state.compact p { margin: 0 0 8px; }
.message-stack { position: fixed; z-index: 10; top: 67px; right: 25px; display: grid; gap: 8px; width: min(380px, calc(100vw - 35px)); }
.message { padding: 12px 15px; border: 1px solid #c9dacb; border-radius: 4px; background: #f4faf2; box-shadow: var(--shadow); color: #31523d; font-size: 14px; animation: message-in .24s ease both; }
.search-result-summary { margin: -8px 0 16px; color: #68766d; font-size: 14px; }
.search-result-summary strong { color: var(--ink); }
.global-results-grid { display: grid; gap: 16px; }
.search-result-panel { overflow: hidden; }
.search-result-list { padding: 0 16px; }
.search-result-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 24px; gap: 12px; align-items: center; min-height: 66px; border-bottom: 1px solid #e8ede7; }
.search-result-row:last-child { border-bottom: 0; }
.search-result-row:hover .search-result-main strong { color: #2d684d; text-decoration: underline; text-underline-offset: 3px; }
.search-result-type { color: #748178; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.search-result-main { min-width: 0; }
.search-result-main strong, .search-result-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-main strong { color: #33433a; font-size: 14px; }
.search-result-main small { margin-top: 3px; color: #748178; font-size: 12px; }
.search-result-arrow { color: #4e715a; font-size: 18px; }
.search-no-results { margin: 0; padding: 15px 19px; color: #68766d; font-size: 13px; }
.search-result-jobs .data-table { min-width: 700px; }
.order-job-summary { display: grid; min-width: 150px; max-width: 250px; gap: 2px; white-space: normal; }
.order-job-summary span { overflow: hidden; color: #46564c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.order-job-summary small { color: #78857c; font-size: 11px; }
@keyframes message-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.sortable-heading { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
.sortable-heading:hover { color: #315b44; }
.order-column-heading { display: flex; min-width: max-content; align-items: center; gap: 6px; white-space: normal; }
.column-filter { position: relative; flex: 0 0 auto; }
.column-filter > summary { list-style: none; }
.column-filter > summary::-webkit-details-marker { display: none; }
.column-filter-trigger { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid transparent; border-radius: 3px; color: #758379; cursor: pointer; }
.column-filter-trigger:hover, .column-filter[open] > .column-filter-trigger { border-color: #d4ded4; background: #fff; color: #315b44; }
.column-filter-trigger.has-filter { color: #315b44; }
.filter-funnel { position: relative; display: block; width: 12px; height: 13px; }
.filter-funnel::before { position: absolute; top: 1px; left: 0; width: 0; height: 0; border-top: 6px solid currentColor; border-right: 6px solid transparent; border-left: 6px solid transparent; content: ""; }
.filter-funnel::after { position: absolute; top: 6px; left: 5px; width: 2px; height: 6px; background: currentColor; content: ""; }
.column-filter-popover { min-width: 205px; margin-top: 5px; padding: 11px; border: 1px solid var(--line); border-radius: 4px; background: white; box-shadow: var(--shadow); white-space: normal; }
.column-filter-popover form { display: grid; gap: 8px; }
.column-filter-popover label { color: #46564c; font-size: 12px; font-weight: 700; }
.column-filter-popover .field-control { min-height: 39px; font-size: 13px; }
.column-filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.column-filter-actions .button { min-height: 35px; padding-inline: 10px; font-size: 12px; }
.column-filter-actions a { color: #68766d; font-size: 12px; }
.column-filter-actions a:hover { color: #315b44; text-decoration: underline; }
.filter-tabs { display: flex; align-items: center; gap: 5px; }
.filter-tab { padding: 8px 12px; border-radius: 3px; color: #627066; font-size: 13px; font-weight: 600; }
.filter-tab:hover { background: #e6ebe4; color: var(--ink); }
.filter-tab.is-selected { background: var(--forest); color: white; }
.search-form { display: flex; width: min(290px, 100%); height: 42px; align-items: center; border: 1px solid #d7dfd7; border-radius: 4px; background: var(--paper); }
.search-form input { width: 100%; min-width: 0; height: 100%; padding: 0 10px; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 14px; }
.icon-button { display: grid; width: 34px; height: 32px; flex: 0 0 auto; place-items: center; border: 0; background: transparent; color: #597463; cursor: pointer; font-size: 19px; }
.orders-table td { height: 65px; }
.orders-table {
  table-layout: fixed;
  min-width: 1080px;
}
.orders-table th.is-resizable {
  position: relative;
}
.column-resize-handle {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  z-index: 4;
}
.column-resize-handle::after {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 3px;
  width: 2px;
  border-radius: 1px;
  background: transparent;
  content: "";
}
.orders-table th:hover .column-resize-handle::after,
.orders-table th:focus-within .column-resize-handle::after {
  background: #9fb0a2;
}
body.is-column-resizing {
  cursor: col-resize;
  user-select: none;
}
.row-muted td { color: #6f7c73; }
.form-section { margin-bottom: 15px; padding: 24px 26px 26px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); box-shadow: var(--shadow); }
.form-section-heading { display: flex; gap: 14px; margin-bottom: 23px; }
.section-number { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e9efdf; color: #597145; font: 700 12px "SFMono-Regular", Consolas, monospace; }
.form-section-heading h2 { margin: 1px 0 3px; font: 400 21px var(--font-display); }
.form-section-heading p { margin: 0; color: #68766d; font-size: 13px; }
.form-grid { display: grid; gap: 15px; }
.order-meta-grid { grid-template-columns: 1fr 1fr; }
.field-wrap { display: grid; align-content: start; gap: 6px; min-width: 0; }
.field-wrap label, .stack-form label { color: #46564c; font-size: 13px; font-weight: 700; }
.field-control, .stack-form input { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #cbd6cc; border-radius: 3px; background: #fff; color: var(--ink); font-size: 15px; }
textarea.field-control { min-height: 78px; resize: vertical; }
.field-control:focus, .stack-form input:focus { border-color: #799580; background: white; }
.field-wide { grid-column: 1 / -1; }
.required-mark { color: #bb6547; }
.optional-label { margin-left: 4px; color: #78857c; font-size: 11px; font-weight: 500; }
.inline-link { width: fit-content; font-size: 12px; }
.designer-add-button { width: fit-content; min-height: 34px; padding: 2px 4px; border: 0; background: transparent; color: #2d684d; cursor: pointer; font: 700 12px var(--font-ui); text-align: left; }
.designer-add-button:hover { color: #1c3c30; text-decoration: underline; text-underline-offset: 3px; }
.errorlist { margin: 0; padding: 0; color: #a44938; font-size: 12px; list-style: none; }
.job-entry-row { margin-bottom: 11px; padding: 13px 14px 15px; border: 1px solid #e1e7e0; border-radius: 4px; background: #f8faf7; }
.job-row-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.job-row-label { color: #68766d; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.job-row-index { color: #4e715a; font-family: "SFMono-Regular", Consolas, monospace; }
.remove-row { min-height: 32px; padding: 0 5px; border: 0; background: transparent; color: #8a523d; cursor: pointer; font-size: 12px; }
.remove-row:hover { color: #7d3929; text-decoration: underline; }
.job-fields { grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(95px, 1fr)); gap: 10px; }
.job-fields .field-description { grid-column: 1 / -1; }
.job-fields .field-description textarea.field-control { min-height: 90px; }
.add-job-button { min-height: 42px; padding-inline: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 3px 1px 0; }
.customer-form { max-width: 780px; padding: 25px; }
.customer-fields { grid-template-columns: 1fr 1fr; margin-bottom: 25px; }
.form-alert { margin: 0 0 18px; padding: 11px 13px; border: 1px solid #e8c8bd; border-radius: 3px; background: #fff6f2; color: #914d39; font-size: 13px; }
.detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.back-link { display: inline-block; margin-bottom: 8px; color: #63746a; font-size: 12px; font-weight: 700; }
.back-link:hover { color: #264d3c; }
.detail-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.detail-title-row h1 { margin: 0; }
.detail-heading-main > p { margin: 8px 0 0; font-size: 14px; }
.dot-separator { padding: 0 5px; color: #a1aaa2; }
.detail-actions { display: flex; align-items: center; gap: 8px; }
.detail-actions form, .row-action form { margin: 0; }
.detail-summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.detail-summary-strip > div { min-height: 73px; padding: 13px 17px; border-right: 1px solid var(--line); }
.detail-summary-strip > div:last-child { border-right: 0; }
.detail-summary-strip span { display: block; color: #69776e; font-size: 11px; font-weight: 700; letter-spacing: .07em; }
.detail-summary-strip strong { display: block; overflow: hidden; margin-top: 4px; color: #33433a; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.order-notes { margin: 0 0 16px; padding: 13px 17px; border-left: 3px solid #bacd8e; background: #f8faf5; }
.order-notes p { margin: 5px 0 0; color: #46564c; font-size: 13px; }
.detail-jobs-panel { margin-bottom: 16px; }
.job-detail-table { min-width: 1280px; }
.job-detail-table td { height: 72px; }
.job-detail-table .field-control { min-height: 42px; padding: 7px 9px; font-size: 13px; }
.job-detail-table textarea[name$="-description"] {
  min-width: 280px;
  min-height: 78px;
  white-space: normal;
  resize: vertical;
}
.job-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 7px 8px;
  border-radius: 4px;
  background: #f2f5ef;
}
.job-file-row code {
  overflow-wrap: anywhere;
  color: #395543;
  font: 11px/1.4 "SFMono-Regular", Consolas, monospace;
}
.copy-name-button.copy-name-button-small {
  width: 32px;
  height: 32px;
}
.copy-name-button.copy-name-button-small .copy-icon {
  width: 14px;
  height: 14px;
}
.quantity-rate-fields { display: flex; min-width: 210px; align-items: center; gap: 6px; }
.quantity-rate-fields input[name$="-quantity"] { width: 74px; }
.quantity-rate-fields input[name$="-rate"] { width: 105px; }
.job-detail-table select.field-control { min-width: 145px; }
.job-detail-table input[type="date"].field-control { min-width: 145px; }
.vendor-filter-hint { margin-top: 4px; white-space: normal; }
.job-row-actions { display: flex; align-items: center; gap: 9px; }
.row-save-button { min-height: 38px; padding-inline: 11px; font-size: 12px; }
.status-select { min-height: 40px; max-width: 150px; padding: 5px 25px 5px 8px; border: 1px solid #cbd6cc; border-radius: 3px; background: white; color: #46564b; font-size: 12px; }
.inline-status-form { display: flex; align-items: center; gap: 2px; }
.save-status { width: 34px; height: 36px; color: #4d7359; }
.row-action { min-height: 36px; padding: 4px 3px; border: 0; background: transparent; color: #8a523d; cursor: pointer; font-size: 12px; }
.row-action:hover { color: #7e3527; text-decoration: underline; }
.pending-price { color: #8c542e; font-size: 12px; font-weight: 600; }
.cancelled-jobs-panel { margin-top: 15px; }
.completed-panel { margin-top: 20px; overflow: hidden; }
.designer-jobs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.job-sort-form { display: flex; align-items: center; gap: 9px; }
.job-sort-form label, .my-job-status-form label { color: #46564c; font-size: 13px; font-weight: 700; }
.job-sort-form .field-control { width: auto; min-width: 185px; min-height: 42px; font-size: 13px; }
.my-jobs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 15px; }
.my-job-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); box-shadow: var(--shadow); }
.my-job-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.my-job-card h2 { overflow-wrap: anywhere; margin: 14px 0 4px; color: #29372f; font: 400 21px/1.25 var(--font-display); }
.my-job-customer { overflow: hidden; margin: 0; color: #68766d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.my-job-customer span { padding: 0 3px; color: #a0aaa2; }
.my-job-customer a { color: #33624e; font-weight: 700; }
.my-job-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 17px 0; padding: 12px 0; border-block: 1px solid #e8ede7; }
.my-job-facts dt { color: #69776e; font-size: 10px; font-weight: 700; letter-spacing: .07em; }
.my-job-facts dd { margin: 4px 0 0; color: #33433a; font-size: 13px; font-weight: 600; }
.filename-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border-radius: 4px; background: #f2f5ef; }
.filename-row > div { min-width: 0; }
.filename-row .eyebrow { display: block; margin-bottom: 4px; font-size: 10px; }
.filename-row code { display: block; overflow-wrap: anywhere; color: #395543; font: 12px/1.5 "SFMono-Regular", Consolas, monospace; }
.copy-name-button { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid #cfd9d0; border-radius: 4px; background: white; color: #315b44; cursor: pointer; font-size: 20px; }
.copy-name-button:hover { border-color: #8ea695; background: #f9fbf7; }
.copy-icon { position: relative; display: block; width: 18px; height: 18px; }
.copy-icon::before, .copy-icon::after { position: absolute; width: 10px; height: 12px; border: 1.7px solid currentColor; border-radius: 2px; content: ""; }
.copy-icon::before { top: 1px; left: 2px; opacity: .65; }
.copy-icon::after { top: 5px; left: 6px; background: white; }
.copy-name-button.is-copied .copy-icon::before { display: none; }
.copy-name-button.is-copied .copy-icon::after { top: -3px; left: 0; width: 18px; height: 22px; border: 0; background: transparent; content: "✓"; font: 700 20px/1.2 var(--font-ui); }

/* Vendor Hub and Cards */
.vendor-hub-panel { margin-top: 20px; overflow: hidden; }
.vendor-hub-header-actions { display: flex; align-items: baseline; gap: 14px; }
.text-sub { font-size: 13px; }
.vendor-hub-content { display: grid; gap: 24px; padding: 20px; }
.vendor-stage-block { display: grid; gap: 12px; }
.vendor-stage-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.vendor-stage-title { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .05em; color: var(--forest); }
.stage-icon { font-size: 18px; }
.vendor-stage-stats { display: inline-flex; align-items: center; gap: 8px; }
.badge-count { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 12px; background: #e9eee8; color: #355845; font-size: 12px; font-weight: 600; }
.badge-alert { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 12px; background: #fbeee8; color: #a24b33; font-size: 12px; font-weight: 600; }
.vendor-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.vendor-hub-card { display: flex; flex-direction: column; justify-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: #fafbf9; transition: transform .15s ease, border-color .15s ease; }
.vendor-hub-card:hover { transform: translateY(-1px); border-color: #a4bba8; background: #fff; }
.vendor-hub-card.is-active { border-left: 3px solid #355845; background: #fff; }
.vendor-card-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vendor-card-header strong { font-size: 14px; color: #223028; }
.vendor-job-pill { display: inline-flex; padding: 2px 7px; border-radius: 3px; background: #eef4e8; color: #35614a; font-size: 11px; font-weight: 700; }
.vendor-job-pill.pill-idle { background: #f0f2ef; color: #768379; font-weight: 500; }
.vendor-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 6px; }
.due-text { color: #8e543b; font-size: 12px; font-weight: 600; }
.ready-badge { display: inline-flex; padding: 2px 6px; border-radius: 3px; background: #e1efe2; color: #235835; font-size: 11px; font-weight: 700; }
.vendor-card-preview { display: grid; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #d8e2d8; }
.vendor-preview-item { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.preview-desc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #58665c; }
.vendor-card-footer { margin-top: 12px; padding-top: 8px; border-top: 1px solid #edf2ec; }
.vendor-empty-card { padding: 14px; border: 1px dashed #d0dad0; border-radius: 4px; background: #fcfdfa; text-align: center; }
.form-section-portal { margin-top: 15px; padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: #f6f8f4; }
.portal-checkbox-row { display: flex; align-items: flex-start; gap: 8px; }
.portal-checkbox-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; }
.portal-checkbox-row label strong, .portal-checkbox-row label small { display: block; }
.row-actions-group { display: flex; gap: 10px; align-items: center; }

.my-job-status-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 13px; }
.my-job-status-form label { grid-column: 1 / -1; }
.my-job-status-form .field-control { min-width: 0; min-height: 42px; font-size: 13px; }
.my-job-status-form .button { min-height: 42px; padding-inline: 11px; font-size: 12px; }
.mobile-break { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.designer-dialog { width: min(540px, calc(100% - 24px)); max-height: min(90vh, 720px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(16, 35, 27, .24); }
.designer-dialog::backdrop { background: rgba(17, 37, 29, .56); }
.designer-dialog form { padding: 24px; }
.designer-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.designer-dialog-heading h2 { margin: 4px 0 0; font: 400 25px var(--font-display); }
.dialog-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 4px; background: white; color: #56645a; cursor: pointer; font-size: 22px; }
.designer-dialog-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.designer-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.designer-dialog .form-alert { margin-top: 15px; }

.login-page { min-height: 100vh; background: #f0f3ee; }
.login-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(320px, .95fr) minmax(380px, 1.05fr); }
.login-brand-panel { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 38px 8vw 28px; background: var(--forest); color: #eef2eb; }
.login-brand-panel::after { position: absolute; right: -92px; bottom: 70px; width: 330px; height: 330px; border: 1px solid rgba(213,231,125,.24); border-radius: 50%; content: ""; box-shadow: 0 0 0 34px rgba(213,231,125,.04), 0 0 0 70px rgba(213,231,125,.035); }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; color: #dce6d9; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.login-company-logo { display: block; width: 112px; height: 76px; margin: 12px 0 10px; object-fit: contain; object-position: left center; }
.login-panel-copy { position: relative; z-index: 1; max-width: 430px; margin: auto 0; padding: 65px 0; }
.login-panel-copy .eyebrow { color: var(--lime); }
.login-panel-copy h1 { margin: 17px 0; color: #f3f5f0; font: 400 38px/1.08 var(--font-display); }
.login-panel-copy p { max-width: 330px; margin: 0; color: #b9c8be; font-size: 15px; }
.login-panel-index { position: relative; z-index: 1; display: flex; justify-content: space-between; color: #91a69a; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.login-panel-index span { color: #d1dfa2; }
.login-form-panel { display: grid; place-items: center; padding: 35px; }
.login-form-wrap { width: min(365px, 100%); }
.login-form-wrap .eyebrow { color: #718176; }
.login-form-wrap h2 { margin: 8px 0 4px; font: 400 34px Georgia, serif; }
.login-form-wrap > p { margin: 0 0 26px; font-size: 14px; }
.stack-form { display: grid; gap: 9px; }
.stack-form label:not(:first-child) { margin-top: 8px; }
.stack-form input { min-height: 43px; }
.stack-form .button { min-height: 44px; margin-top: 14px; }
.login-form-wrap .form-alert { margin-bottom: 16px; }

@media (max-width: 1120px) {
  .page-content { padding-right: 25px; padding-left: 25px; }
  .topbar { padding: 0 25px; }
  .global-search-form { width: min(380px, 52%); }
  .metric { padding-inline: 13px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .9fr); gap: 14px; }
  .job-fields { grid-template-columns: repeat(4, minmax(90px, 1fr)); }
  .field-description { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .sidebar { position: sticky; inset: 0 0 auto; width: 100%; height: auto; padding: 11px 16px 10px; }
  .brand { padding: 0 2px 12px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-image { width: 36px; height: 36px; }
  .nav-caption, .sidebar-bottom { display: none; }
  .primary-nav { display: flex; gap: 5px; overflow-x: auto; }
  .nav-link { min-height: 40px; flex: 0 0 auto; padding-inline: 9px; font-size: 13px; }
  .nav-link.is-active { box-shadow: inset 0 -2px var(--lime); }
  .nav-glyph { font-size: 14px; }
  .main-area { margin-left: 0; }
  .topbar { height: 43px; padding-inline: 17px; }
  .global-search-form { width: min(360px, 62%); height: 36px; }
  .global-search-form input { padding-inline: 8px; font-size: 12px; }
  .global-search-form .icon-button { height: 34px; }
  .topbar-date { font-size: 11px; }
  .page-content { padding: 25px 17px 48px; }
  .page-heading h1, .detail-heading h1 { font-size: 29px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric { min-height: 101px; border-bottom: 1px solid var(--line); }
  .metric:nth-child(3) { border-right: 0; }
  .metric:nth-child(n+4) { border-bottom: 0; }
  .metric:nth-child(4) { border-right: 1px solid var(--line); }
  .detail-heading { align-items: flex-start; flex-direction: column; }
  .detail-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-summary-strip > div:nth-child(2) { border-right: 0; }
  .detail-summary-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .list-toolbar { align-items: flex-start; flex-direction: column; }
  .search-form { width: 100%; }
  .login-layout { grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr); }
  .login-brand-panel { padding-inline: 5vw; }
  .login-panel-copy h1 { font-size: 38px; }
}
@media (max-width: 560px) {
  .page-content { padding: 21px 12px 38px; }
  .topbar { height: auto; min-height: 44px; flex-wrap: wrap; gap: 8px; padding: 7px 12px; }
  .global-search-form { order: 3; width: 100%; }
  .heading-row { align-items: flex-start; }
  .heading-row .button { min-height: 44px; padding-inline: 10px; font-size: 13px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading p { max-width: 300px; font-size: 13px; }
  .mobile-break { display: initial; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 91px; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(3) { border-right: 1px solid var(--line); }
  .metric:nth-child(4) { border-right: 0; }
  .metric:last-child { grid-column: 1 / -1; border-top: 0; border-right: 0; border-bottom: 0; }
  .metric strong { font-size: 27px; }
  .section-heading { min-height: 69px; padding-inline: 13px; }
  .section-heading h2 { font-size: 20px; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 13px; }
  .data-table td { padding-inline: 9px; }
  .filter-tabs { width: 100%; justify-content: space-between; }
  .filter-tab { padding-inline: 9px; }
  .search-result-row { grid-template-columns: 72px minmax(0, 1fr) 20px; gap: 8px; }
  .order-meta-grid, .customer-fields { grid-template-columns: 1fr; }
  .form-section { padding: 19px 13px; }
  .form-section-heading { gap: 10px; }
  .form-section-heading h2 { font-size: 20px; }
  .form-section-heading p { font-size: 12px; }
  .job-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-description { grid-column: 1 / -1; }
  .detail-actions { width: 100%; flex-wrap: wrap; }
  .detail-actions .button { min-height: 44px; }
  .detail-summary-strip > div { padding: 11px 12px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: 220px; padding: 19px 22px; }
  .login-brand { font-size: 11px; }
  .login-company-logo { width: 100px; height: 68px; margin: 8px 0; }
  .login-panel-copy { margin: 25px 0 14px; padding: 0; }
  .login-panel-copy h1 { margin: 8px 0; font-size: 31px; }
  .login-panel-copy p { font-size: 14px; }
  .login-panel-index { font-size: 10px; }
  .login-brand-panel::after { right: -60px; bottom: -135px; width: 230px; height: 230px; }
  .login-form-panel { padding: 35px 23px 55px; }
  .designer-dialog form { padding: 19px 15px; }
  .designer-dialog-fields { grid-template-columns: 1fr; gap: 11px; }
  .designer-dialog-fields .field-wide { grid-column: auto; }
  .designer-dialog-actions .button { min-height: 44px; }
  .designer-jobs-toolbar { align-items: stretch; flex-direction: column; }
  .job-sort-form { flex-wrap: wrap; }
  .job-sort-form .field-control { min-width: 0; flex: 1; }
}