:root { color-scheme: light; }
.workspace {
  --page: #eaf1fb;
  --ink: #1d2635;
  --line: #bdc3cf;
  --control: #6e7b8c;
  --primary: #243a52;
  --accent: #e2f0fb;
  --focus: #306091;
}
.workspace[data-role="operator"] { --page: #e6f3ea; --primary: #26544a; --accent: #e6f3ea; --focus: #2d6a58; }
.workspace[data-role="supervisor"] { --page: #fbf9e0; --primary: #584118; --accent: #fbf3ab; --focus: #7a5d25; }
.workspace[data-role="manager"] { --page: #fdf1f1; --primary: #7c1518; --accent: #fdf1f1; --focus: #9a1c1f; }
.workspace :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@font-face {
  font-family: Vazirmatn;
  src: url('/vazirmatn-latin-400-normal.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('/vazirmatn-arabic-400-normal.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}
.workspace { margin: 0; background: var(--page); color: var(--ink); font-family: Vazirmatn, Tahoma, sans-serif; }
.workspace * { box-sizing: border-box; }
.workspace header { background: white; border-bottom: 1px solid var(--line); }
.workspace nav, .workspace main { width: min(100% - 32px, 720px); margin-inline: auto; }
.workspace nav { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.workspace .dashboard-link { color: var(--primary); text-underline-offset: 4px; }
.workspace nav img { width: 92px; height: auto; }
.workspace main { padding-block: 24px; }
.workspace h1 { font-size: 1.5rem; margin-top: 0; }
.workspace h2 { font-size: 1.15rem; }
.workspace form, .workspace li { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.workspace textarea { display: block; width: 100%; min-height: 104px; padding: 12px; margin-block: 8px 12px; resize: vertical; }
.workspace textarea, .workspace select, .workspace button { font: inherit; border-radius: 8px; border: 1px solid var(--control); }
.workspace button, .workspace select { min-height: 42px; padding: 6px 14px; }
.workspace button { background: var(--primary); color: white; cursor: pointer; }
.workspace button:disabled { opacity: .55; cursor: wait; }
.workspace ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.workspace li p { white-space: pre-wrap; overflow-wrap: anywhere; }
.workspace small { display: block; margin-bottom: 8px; color: #435060; }

.workspace [hidden] { display: none !important; }
.view-switch, .machine-select { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.workspace button[aria-pressed="false"] { background: white; color: var(--ink); }
.machine-totals, .machine-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.machine-totals > div, .machine-detail table, .machine-chart {
  background: white; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
}
.machine-totals strong { display: block; margin-top: 6px; font-size: 1.5rem; }
.chart-key { color: #435060; font-size: .9rem; }
.machine-chart { display: grid; grid-template-columns: repeat(7, minmax(38px, 1fr)); gap: 4px; overflow-x: auto; margin-bottom: 16px; }
.chart-group { text-align: center; font-size: .8rem; }
.chart-bars { display: flex; justify-content: center; gap: 4px; height: 114px; border-bottom: 1px solid #a4adbc; }
.chart-bar { display: flex; flex-direction: column-reverse; width: 32%; max-width: 23px; }
.chart-bar.forecast { opacity: .5; }
.machine-select button { border-inline-start-width: 4px; }
.machine-detail table { width: 100%; text-align: start; }
.machine-detail caption { text-align: start; padding: 4px 10px; font-weight: bold; }
.machine-detail th, .machine-detail td { padding: 4px; text-align: start; }
.machine-detail td:not(:first-child) { font-variant-numeric: tabular-nums; }
#new-machine { margin-top: 16px; }
#new-machine summary { cursor: pointer; margin-bottom: 8px; }
#machine-form { display: grid; gap: 12px; }
#machine-form input { display: block; width: 100%; margin-top: 4px; padding: 8px; font: inherit; border: 1px solid var(--control); border-radius: 8px; }
@media (max-width: 470px) {
  .machine-detail { grid-template-columns: 1fr; }
  .machine-totals { font-size: .85rem; }
}

#shift-assignments { margin-top: 16px; }
#shift-assignments summary { cursor: pointer; }
#assignment-form { display: grid; gap: 10px; }
#assignment-form fieldset { border: 1px solid var(--control); border-radius: 8px; }
#available-machines { display: grid; gap: 4px; max-height: 18rem; overflow: auto; }
#available-machines label { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.operator-shift { background: white; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 12px; }
.operator-shift h2 { margin-top: 0; }
.operator-machine-detail { margin-bottom: 0; }

.production-panel { margin-top: 12px; }
.production-panel summary { cursor: pointer; }
.production-form, .production-fields { display: grid; gap: 10px; }
.production-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.production-form label { display: block; }
.production-form input, .production-form select {
  display: block; width: 100%; min-width: 0; min-height: 42px; margin: 4px 0 8px;
  font: inherit; border: 1px solid var(--control); border-radius: 8px; padding: 6px 10px;
}
.production-form fieldset { border: 1px solid var(--control); border-radius: 8px; margin-bottom: 8px; }
@media (max-width: 470px) {
  .production-fields { grid-template-columns: 1fr; }
}

#production-reviews { margin-top: 16px; }
#production-reviews summary { cursor: pointer; }
#review-selection select { display: block; width: 100%; margin-top: 8px; }
.review-actions label { display: block; margin-top: 12px; }
.production-panel button { margin-block: 6px; }

.operator-card { margin-block: 8px; background: #fbfcfe; border: 1px solid var(--line); border-radius: 12px; }
.operator-card > summary { cursor: pointer; padding: 10px 12px; min-height: 42px; border-radius: inherit; }
.operator-card[open] > summary { background: var(--accent); }
.operator-card > :not(summary) { margin: 8px 10px; }
.operator-form { display: grid; gap: 10px; }
.operator-form label { display: block; }
.operator-form input, .operator-form select {
  color: var(--ink); background: white; width: 100%; display: block; min-height: 42px;
  border: 1px solid var(--control); border-radius: 8px; font: inherit; margin-top: 4px; padding: 6px 10px;
}
.operator-form fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; }
.operator-form [role="status"]:empty, #personnel-forms [role="status"]:empty, #assembly-forms [role="status"]:empty { display: none; }
#operator-personnel, #operator-assembly { margin-block: 20px; }

.workspace .assembly-entry {
  padding: clamp(12px, 3vw, 22px);
  border-color: #a5cabe;
  box-shadow: 0 8px 24px #133b2c14;
}
.assembly-entry .assembly-fields { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.assembly-fields h2 { margin: 8px 0 0; color: #204e42; }
.assembly-fields > label { width: min(100%, 440px); }
.assembly-lines { display: grid; gap: 6px; }
.assembly-line {
  min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end;
  gap: 6px 8px; padding: 10px; background: #f4faf7; border: 1px solid #d1e4dc; border-radius: 8px;
}
.assembly-line label:first-child { grid-column: span 2; }
.assembly-line label { font-size: .86rem; }
.assembly-line input { direction: ltr; text-align: center; font-variant-numeric: tabular-nums; }
.assembly-input-line { grid-template-columns: minmax(0, 1.8fr) repeat(4, minmax(0, 1fr)) auto; }
.assembly-input-line label:first-child { grid-column: auto; }
.assembly-input-line input[readonly] { background: #e6f1eb; color: #245345; border-color: #bed5c9; }
.assembly-line select { text-overflow: ellipsis; }
.assembly-line .assembly-balance { grid-column: 1/-1; color: #266049; font-size: .84rem; min-height: 1.25em; }
.assembly-input-detail { grid-column: 1/-1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 12px; }
.assembly-ratio { color: #36594f; font-size: .84rem; }
.assembly-input-detail:not(:has(> :not(:empty))) { display: none; }
.assembly-line .has-difference, .assembly-message { color: #8a303b; }
.assembly-line .assembly-balance:empty { display: none; }
.workspace .assembly-secondary { color: var(--primary); background: white; border-color: #a4c5b8; }
.assembly-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.assembly-fields > button { justify-self: start; }
.assembly-totals, .assembly-success { margin: 0; padding: 9px 12px; color: #215546; background: #e4f3e9; border-radius: 8px; }
.assembly-success { margin-bottom: 10px; }
.assembly-message { margin-block: 2px 0; }
.assembly-table-wrap { overflow: auto; }
.assembly-table-wrap table { width: 100%; border-collapse: collapse; }
.assembly-table-wrap caption { text-align: start; font-weight: bold; padding: 6px; }
.assembly-table-wrap td, .assembly-table-wrap th { text-align: start; white-space: nowrap; padding: 6px; border-bottom: 1px solid #d3e5dc; }
.assembly-cost-report .assembly-table-wrap td:nth-last-child(-n+2) { font-weight: bold; }
#assembly-costs [role="status"]:empty, .assembly-rate-form p:empty { display: none; }

.master-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.master-tabs button[aria-pressed="true"] { background: linear-gradient(160deg, #a01e32, #73151f); }
.workspace .master-form { gap: 14px; padding: clamp(12px, 3vw, 20px); border-color: #d4afb7; box-shadow: 0 8px 24px #72223512; }
.master-form h2, .master-form h3 { margin: 0; color: #73151f; }
.master-form h3 { font-size: 1rem; }
.master-form fieldset { padding: 6px 10px 10px; border-color: #e2cbd0; }
.master-form legend { padding-inline: 5px; color: #76404a; font-weight: bold; }
.master-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px 12px; }
.master-grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.master-form input[readonly] { background: #f7eef0; border-color: #d4afb7; }
.master-options { display: flex; flex-wrap: wrap; gap: 6px; }
.master-options label { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 2px 8px; border: 1px solid #e2cbd0; border-radius: 8px; }
.master-options input[type="checkbox"] { display: inline; width: 16px; min-height: 16px; margin: 0; accent-color: var(--primary); }
.master-extra summary, .master-records summary { cursor: pointer; color: #693943; padding-block: 5px; }
.master-form textarea { min-height: 66px; }
.master-recipe, #master-recipe-lines { display: grid; gap: 8px; margin-block-start: 8px; }
.master-recipe-row { display: grid; gap: 8px; grid-template-columns: minmax(0,2fr) minmax(0,1fr) auto; align-items: end; }
.workspace .master-secondary { background: white; color: var(--primary); border-color: #bc8b97; }
.master-recipe > button { justify-self: start; }
.master-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.master-hint, .master-actions [role="status"] { margin: 0; color: #76404a; font-size: .9rem; }
.master-hint:empty, #master-load-status:empty { display: none; }
.master-actions [data-success="true"] { color: #245a44; }
.master-records { margin-block: 12px 0; padding: 8px 12px; border: 1px solid #e2cbd0; border-radius: 12px; background: white; }
.master-records .assembly-table-wrap td { white-space: normal; overflow-wrap: anywhere; }
.master-cell-label { display: none; }

#shift-management { --shift-line: #e4d5a6; }
#managed-shift-picker select { display: block; width: 100%; margin-block: 4px 10px; background: white; }
#shift-management .operator-card { border-color: var(--shift-line); background: #fffdf4; }
#shift-management .operator-card[open] > summary { background: #f9edbb; }
#shift-management .shift-form { border-color: var(--shift-line); }
#shift-management .shift-form button { justify-self: start; }
.shift-time-hint, .shift-status { margin: 0; color: #716020; }
.shift-time-hint:empty, .shift-status:empty { display: none; }
.shift-status { padding-block: 6px; }
.shift-status[data-success="true"], .shift-approved { color: #245a44; }
.shift-status[data-success="false"], .shift-pending { color: #814416; }
.shift-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--shift-line); background: #fffdf4; }
.shift-summary h2, .shift-summary p { margin: 0; }
.shift-summary p { flex-basis: 100%; font-size: .9rem; }
.shift-phase { padding: 2px 9px; border-radius: 20px; background: #f7e6a8; font-size: .85rem; }
.shift-list { display: grid; gap: 6px; }
.shift-list p, .shift-form p { margin: 0; }
.shift-list-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 7px 8px; border: 1px solid var(--shift-line); border-radius: 8px; background: white; }
.shift-list-row span { font-size: .85rem; }
.shift-list-row button { margin-inline-start: auto; }
.workspace .shift-secondary { color: var(--primary); background: white; border-color: #b7a66f; }
.workspace[data-role="supervisor"]:has(#shift-management:not([hidden]) #shift-week:not([hidden])) {
  --page: #faf7e8;
}
#shift-management { --week-outline: #ded1aa; --week-paper: #fffef8; --week-muted: #6a5736; }
.workspace:has(#shift-management:not([hidden]) #shift-week:not([hidden])) {
  & header { border-block-end-color: #ded1aa; }
  & nav button { background: white; color: var(--primary); }
  & :is(nav, .view-switch) button { border-color: #ded1aa; }
}
#shift-management-heading { margin-block: 0 10px; color: #2e281c; }
.shift-view-switch {
  display: inline-flex; gap: 4px; padding: 4px; margin-block-end: 12px;
  background: #efe8cf; border: 1px solid var(--week-outline); border-radius: 11px;
}
.workspace .shift-view-switch button { border: 0; min-height: 44px; }
.workspace .shift-view-switch button[aria-pressed="false"] { background: transparent; color: var(--primary); }
.shift-week-calendar {
  padding: 10px; margin-block-end: 14px;
  border: 1px solid var(--week-outline); border-radius: 13px; background: var(--week-paper);
}
.shift-week-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-end: 8px; }
.workspace .shift-week-controls button {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px;
  min-height: 44px; border-color: var(--week-outline); white-space: nowrap;
}
.shift-week-arrow {
  width: 7px; height: 7px; border-top: 1.7px solid currentColor; border-right: 1.7px solid currentColor;
  transform: rotate(225deg);
}
#shift-week-previous .shift-week-arrow { transform: rotate(45deg); }
#shift-week-range { min-width: 0; margin: 0; color: var(--primary); text-align: center; font-size: .92rem; font-weight: bold; line-height: 1.55; }
#shift-week-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }
.workspace #shift-week-days button {
  display: grid; align-content: start; min-height: 68px; padding: 5px 1px;
  border-color: var(--week-outline); background: #faf6e7; color: var(--primary); font-size: .86rem; line-height: 1.35;
}
.workspace #shift-week-days button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: white; }
#shift-week-days small { margin: 0; color: inherit; }
#shift-week-days .shift-day-date { font-size: .76rem; }
#shift-week-days .shift-day-count { font-size: .69rem; }
#shift-week-days .shift-day-short { display: none; }
.workspace #shift-week-form { border: 0; background: transparent; padding: 0; }
#shift-week-cards { display: grid; gap: 8px; }
.shift-week-card {
  min-width: 0; padding: 10px 12px; background: var(--week-paper);
  border: 1px solid var(--week-outline); border-radius: 13px;
}
.shift-week-card p { margin: 0; }
.shift-week-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.shift-week-card-title { flex: 1 1 8rem; min-width: 0; }
.shift-week-card-title h2 { margin: 0; font-size: 1.03rem; line-height: 1.4; overflow-wrap: anywhere; }
.shift-week-card-title span { display: block; color: var(--week-muted); font-size: .81rem; }
.shift-week-card .shift-week-count { display: flex; align-items: center; gap: 8px; color: var(--week-muted); font-size: .87rem; }
.shift-week-count input[inputmode="numeric"] { width: 54px; min-height: 44px; margin: 0; border-color: #afa27b; text-align: center; }
.shift-week-slots {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px;
  padding-block-start: 8px; border-block-start: 1px solid #e9e0c6;
}
.shift-week-slots:empty { display: none; }
.shift-week-slots label, .shift-week-slots select { min-width: 0; }
.shift-week-slots label { color: var(--week-muted); font-size: .87rem; }
.shift-week-slots select { padding-inline: 8px; border-color: #afa27b; text-overflow: ellipsis; }
.shift-week-save { display: grid; gap: 4px; margin-block-start: 10px; }
.workspace #save-shift-week { justify-self: start; border-color: var(--primary); }
@media (max-width: 600px) {
  #shift-management .shift-form :is(select,input,textarea,button), #managed-shift { min-height: 46px; font-size: 1rem; }
  #shift-management .shift-form button { width: 100%; }

  .workspace:has(#shift-management:not([hidden]) #shift-week:not([hidden])) {
    & :is(nav, main) { width: calc(100% - 24px); }
    & nav { min-height: 54px; }
    & nav img { width: 80px; }
    & nav button { min-height: 44px; }
    & main { padding-block: 10px 0; }
    & .view-switch {
      display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin-block-end: 10px;
    }
    & .view-switch button { padding-inline: 3px; min-height: 44px; font-size: .86rem; }
  }
  #shift-management-heading { margin-block-end: 6px; font-size: 1.2rem; }
  .shift-view-switch { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-block-end: 8px; }
  .shift-view-switch button { padding-inline: 4px; font-size: .9rem; }
  .shift-week-calendar { padding: 7px; margin-block-end: 8px; }
  .shift-week-controls { gap: 4px; margin-block-end: 6px; }
  .workspace .shift-week-controls button { flex: 0 0 44px; padding: 0; }
  .shift-week-nav-text { display: none; }
  #shift-week-range { font-size: .84rem; }
  #shift-week-days { gap: 4px; }
  .workspace #shift-week-days button { min-height: 63px; font-size: .78rem; }
  #shift-week-days .shift-day-short { display: block; }
  #shift-week-days .shift-day-full { display: none; }
  #shift-week-days .shift-day-date { font-size: .72rem; }
  #shift-week-days .shift-day-count { font-size: .69rem; }
  .shift-week-slots { grid-template-columns: minmax(0,1fr); }
  .shift-week-count input[inputmode="numeric"], .shift-week-slots select {
    min-height: 46px; font-size: 1rem; scroll-margin-block-end: 86px;
  }
  .shift-week-save {
    position: sticky; inset-block-end: 0; z-index: 2; margin-inline: -12px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); border-block-start: 1px solid var(--week-outline);
    background: var(--page);
  }
  .shift-week-save .shift-status { order: -1; overflow-wrap: anywhere; }
  .workspace #save-shift-week { width: 100%; min-height: 48px; }
}
@media (max-width: 373px) {
  #shift-week-days { grid-template-columns: repeat(4,minmax(0,1fr)); }
  #shift-week-days .shift-day-short { display: none; }
  #shift-week-days .shift-day-full { display: block; }
}
@media (max-width: 600px) and (max-height: 430px) {
  .shift-week-save { position: static; }
}

@media (max-width: 600px) {
  .workspace:has(#master-view:not([hidden])) main { width: calc(100% - 20px); padding-block-start: 14px; }
  #master-heading { margin-block-end: 8px; font-size: 1.25rem; }
  .master-tabs {
    position: sticky; inset-block-start: 0; z-index: 3; display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px;
    margin-block-end: 9px; padding-block: 6px; background: var(--page);
  }
  .workspace .master-tabs button { min-height: 46px; padding-inline: 4px; font-size: .91rem; }
  .master-tab-prefix { display: none; }
  .workspace .master-form { gap: 12px; border-radius: 14px; }
  .master-grid-2 { grid-template-columns: minmax(0,1fr); }
  .master-compact { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: end; }
  .master-injection-grid > label:not(.master-numeric) { grid-column: 1/-1; }
  .master-form fieldset { padding-inline: 8px; }
  .master-form label { min-width: 0; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
  .master-form input:not([type="checkbox"]), .master-form select, .master-form textarea {
    min-width: 0; max-width: 100%; min-height: 48px; font-size: 1rem;
    scroll-margin-block: 4rem 6rem;
  }
  .master-form select { padding-inline: 8px; text-overflow: ellipsis; }
  .master-form input[inputmode="numeric"], .master-form input[inputmode="decimal"] { text-align: center; }
  .master-options { display: grid; grid-template-columns: minmax(0, 1fr); }
  .master-options[data-choices="colorIds"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .master-options label { min-height: 46px; }
  .master-options input[type="checkbox"] { flex: none; width: 18px; height: 18px; }
  .master-extra summary, .master-records summary { min-height: 44px; padding-block: 10px; }
  .master-recipe-row {
    grid-template-columns: minmax(0, 1fr) auto; padding: 8px;
    border: 1px solid #e2cbd0; border-radius: 9px; background: #fff9fa;
  }
  .master-recipe-row > label:first-child { grid-column: 1/-1; }
  .workspace .master-recipe button { min-height: 46px; }
  .master-recipe > button { width: 100%; }
  .master-actions {
    position: sticky; inset-block-end: 0; z-index: 2; display: grid; gap: 5px;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    background: white; border-block-start: 1px solid #ecd8dc;
  }
  .master-actions [role="status"] { order: -1; overflow-wrap: anywhere; }
  .workspace .master-actions button { min-height: 48px; width: 100%; background: linear-gradient(160deg, #a01e32, #73151f); }
  .master-records .assembly-table-wrap { overflow: visible; }
  .master-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .master-table, .master-table tbody { display: block; }
  .master-table tbody tr {
    display: grid; margin-block-end: 8px; padding: 4px 9px;
    border: 1px solid #ecd8dc; border-radius: 10px; background: #fff9fa;
  }
  .master-records .master-table td { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.45fr); gap: 7px; border-color: #f1e2e5; padding: 6px 0; }
  .master-records .master-table td:last-child { border: 0; }
  .master-cell-label { display: inline; color: #76404a; font-size: .84rem; }
}
@media (max-width: 600px) and (max-height: 430px) {
  .master-tabs, .master-actions { position: static; }
}
@media (max-width: 600px) {
  .assembly-line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .assembly-line label:first-child { grid-column: span 3; }
  .assembly-input-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assembly-input-line label:first-child { grid-column: 1/-1; }
  .assembly-input-line > button { justify-self: start; }
}
