:root {
  color-scheme: dark;
  --paper: #0d141c;
  --ink: #e4edf5;
  --muted: #a0b2c3;
  --line: #2b3b4b;
  --blue: #79c9f4;
  --wash: #1b3040;
  --surface: #16222e;
  --field: #101a24;
  --orange: #f7933a;
  font: 15px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #a24b09; outline-offset: 2px; }
.top { background: #111e2a; color: #fff; border-bottom: 3px solid #f7933a; }
.top-inner, .wrap { max-width: 1250px; margin: auto; padding-inline: clamp(16px, 4vw, 52px); }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 12px; }
.brand { display: flex; gap: 12px; align-items: center; line-height: 1.2; }
.brand strong { display: block; font-size: 20px; }
.shop-logo { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.brand div span { color: #d1eaf9; font-size: 12px; }
.mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--orange); color: var(--ink); border-radius: 8px; font-weight: 900; letter-spacing: -.075em; }
.environment { border: 1px solid #759ab5; border-radius: 99px; padding: 5px 12px; font-size: 12px; text-align: center; }
.environment-live { background: #fff0c2; border-color: #fff0c2; color: #4a3300; font-weight: 700; }
.jobs-tools { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin: 0 0 20px; }
.jobs-tools > label:first-child { min-width: 260px; }
.jobs-board table { width: 100%; border-collapse: collapse; text-align: left; }
.jobs-board th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--wash); white-space: nowrap; }
.jobs-board td, .jobs-board th { padding: 18px 14px; border-bottom: 1px solid var(--line); }
.jobs-board th:first-child, .jobs-board td:first-child { min-width: 190px; }
.job-name { text-align: left; font-weight: 700; }
.job-done { background: #193e32; color: #9ce3bd; }
.job-stage { min-width: 118px; font-size: 12px; font-weight: 650; padding: 8px 24px 8px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); }
.job-stage[data-stage="pickup"] { min-width: 132px; }
#job-dialog { width: min(760px, calc(100vw - 32px)); }
#job-form { display: grid; gap: 18px; }
textarea { font: inherit; width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 7px; padding: 10px; color: var(--ink); background: var(--field); }
.intro { padding: 36px 0 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.eyebrow { margin: 0; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1, h2, p { margin: 0; }
h1 { font: 600 clamp(36px, 5vw, 62px)/1.08 Georgia, serif; letter-spacing: -.04em; margin: 5px 0 8px; }
h2 { font-size: 21px; line-height: 1.2; margin-top: 4px; }
.intro p:last-child, .subtle { color: var(--muted); }
.button { border: 1px solid var(--blue); border-radius: 8px; padding: 9px 14px; font-weight: 700; text-decoration: none; color: var(--blue); background: var(--surface); display: inline-block; text-align: center; }
.primary { background: #328dc2; border-color: #328dc2; color: #fff; }
.connect { background: var(--orange); color: var(--ink); border-color: #d16b1e; padding: 11px 18px; }
.button[hidden] { display: none; }
.button:hover:not(:disabled) { filter: brightness(.92); }
.connections { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid var(--line); padding: 12px 0 18px; color: var(--muted); font-size: 13px; }
.connections strong, .connections a { color: var(--blue); }
.notice { border: 1px solid #36566c; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; background: var(--wash); }
.notice.error { background: #3c2723; border-color: #83513e; color: #ffcfb4; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.metric { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px 18px; }
.metric span { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; font: 600 clamp(23px, 4vw, 33px)/1.3 Georgia, serif; }
.workspace { display: grid; grid-template-columns: minmax(255px, .85fr) minmax(0, 1.65fr); gap: 16px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.panel.jobs-board { max-width: 100%; overflow-x: auto; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px; }
.badge { display: inline-block; border-radius: 99px; background: var(--wash); color: var(--blue); padding: 3px 9px; font-weight: 700; font-size: 11px; text-align: center; }
.badge.neutral { background: #253442; color: var(--muted); }
.badge.attention { background: #47351e; color: #ffd599; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding-inline: 12px; }
.tabs button { flex: 1; border: 0; border-bottom: 3px solid transparent; padding: 9px 4px; background: var(--surface); color: var(--muted); font-weight: 700; }
.tabs [aria-pressed=true] { color: var(--blue); border-bottom-color: var(--blue); }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 9px; text-align: left; padding: 13px 15px; width: 100%; border: 0; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; background: var(--surface); color: var(--ink); }
.job:last-child { border-bottom: 0; }
.job:hover, .job[aria-current=true] { background: var(--wash); }
.job[aria-current=true] { border-left-color: var(--blue); }
.job strong { overflow-wrap: anywhere; }
.job small { color: var(--muted); }
.job .badge { justify-self: end; align-self: start; }
.empty { color: var(--muted); padding: 19px; }
.detail > .panel-head { border-bottom: 1px solid var(--line); }
.detail-body { padding: 19px; display: grid; gap: 17px; }
.detail-body h3 { font-size: 14px; margin: 0 0 6px; }
.lines { list-style: none; padding: 0; margin: 0; }
.lines li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; border-bottom: 1px solid var(--line); padding: 7px 0; overflow-wrap: anywhere; }
.lines li span:last-child { color: var(--muted); font-size: 12px; }
.cost-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; min-width: 0; }
.cost-form legend { padding: 0 5px; font-weight: 700; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fields label { display: grid; gap: 3px; align-content: start; font-size: 13px; font-weight: 650; }
.fields label[hidden] { display: none; }
.line-costs { margin-top: 12px; }
.line-costs[hidden] { display: none; }
input:not([type=checkbox]), select { min-width: 0; width: 100%; border: 1px solid #41566b; border-radius: 6px; background: var(--surface); color: var(--ink); padding: 7px 8px; }
.confirm { display: flex; align-items: start; gap: 7px; font-size: 13px; margin: 12px 0; }
.confirm input { margin-top: 4px; }
.calc { background: var(--wash); border: 1px solid #36566c; padding: 13px; border-radius: 10px; }
.calc dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; margin: 7px 0 12px; }
.calc dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.split div { background: var(--surface); border-radius: 7px; padding: 8px; }
.split span { display: block; font-size: 12px; color: var(--muted); }
.split strong { font-size: clamp(14px, 2.5vw, 19px); overflow-wrap: anywhere; }
.approve { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 12px; align-items: center; }
.approve p { font-size: 13px; }
.payout-posting { border-top: 1px solid var(--line); }
footer { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); padding: 22px 0; font-size: 11px; }
@media (max-width: 730px) {
  .workspace { grid-template-columns: 1fr; }
  .intro { align-items: flex-start; flex-direction: column; padding-top: 24px; }
  .summary { gap: 6px; }
  .metric { padding: 9px; }
}
@media (max-width: 380px) { .fields { grid-template-columns: 1fr; } }
.tool-nav { display: flex; gap: 8px; margin-top: 18px; }
.tool-nav a { padding: 7px 12px; color: var(--blue); border-radius: 7px; text-decoration: none; font-weight: 700; }
.tool-nav a[aria-current=page] { background: #24648c; color: #fff; }
.invoice-form { display: grid; gap: 16px; }
.invoice-form[hidden] { display: none; }
.invoice-help { margin-top: 8px; }
.invoice-design { margin-bottom: 12px; }
.print-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.garment-line { display: grid; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.garment-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.size-quantities { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.customer-choice { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.customer-choice label { flex: 1 1 180px; }
.customer-fields { grid-template-columns: 1fr; }
#customer-dialog { width: min(460px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
#customer-dialog::backdrop { background: rgb(16 57 87 / 40%); }
#pricing-dialog { width: min(640px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
#pricing-dialog::backdrop { background: rgb(16 57 87 / 40%); }
#pricing-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
#pricing-example-heading { margin: 0; font-size: 16px; }
.text-button { color: var(--blue); background: none; border: 0; padding: 0; text-decoration: underline; font: inherit; }
.remove-garment { justify-self: end; }
.invoice-form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.print-setup h3 { font-size: 15px; margin-bottom: 4px; }
.remove-print[hidden] { display: none; }
#invoice-design-name, .job small, .detail .panel-head .subtle { overflow-wrap: anywhere; }
.invoice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 540px) { .garment-fields, .print-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .size-quantities { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

a { color: var(--blue); }
dialog { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; }
dialog::backdrop { background: rgb(0 0 0 / 65%); }
.job-stage.neutral { background: #20303e; color: var(--muted); }
.job-stage.attention { background: #43331f; color: #ffd599; }
.job-stage.job-done { background: #193e32; color: #9ce3bd; }
.danger-text { color: #ffa49b; }
.job-row-actions { font-size: 12px; margin-top: 8px; }
input:not([type=checkbox]), select, textarea { background: var(--field); }
::placeholder { color: #8399ad; opacity: 1; }
.button:hover:not(:disabled) { filter: brightness(1.13); }
.job-due-date { min-width: 145px; font-size: 12px; padding: 8px 9px; }
