.production-page { display: block; min-height: auto; max-width: 1320px; margin: auto; padding: 26px 28px; }
#gate { padding: 30px; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 0 0 18px; }
.stats div { padding: 14px 18px; background: #fff; border: 1px solid #dce4df; border-radius: 9px; }
.stats span { display: block; color: #52675c; font-size: 13px; }
.stats strong { display: block; color: #20593f; font-size: 31px; font-variant-numeric: tabular-nums; line-height: 1.25; margin-top: 5px; }
.stats .alert-stat strong { color: #97521e; }
.board .panel-top { padding: 14px 17px 6px; }
.refresh,.filters,.row-actions,.dialog-foot { display: flex; align-items: center; gap: 10px; }
.refresh { flex-wrap: wrap; justify-content: end; }
.refresh button,.row-actions button,.dialog-head button { padding: 5px 10px; font-size: 13px; }
.filters { padding: 6px 17px 12px; flex-wrap: wrap; }
.filters label { margin: 0; }
.filters input[type="search"] { width: min(245px,100%); }
.filters input,.filters select { margin: 0; }
.filters .check { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.check input { width: auto; accent-color: #27664f; }
select { font: inherit; color: #20312b; background: #fff; border: 1px solid #cdd9d1; border-radius: 6px; padding: 9px; }
#feedback:not(:empty) { padding: 0 17px 10px; font-size: 13px; color: #2b6449; }
.job-list { overflow-x: auto; }
.job-list table { min-width: 720px; }
.job-list th { white-space: nowrap; }.job-list td { max-width: 255px; overflow-wrap: anywhere; vertical-align: middle; }
.job-list td:nth-child(2) { min-width: 0; }.job-list td:first-child { font-weight: 650; }
.job-list td .secondary { display: block; margin-top: 3px; color: #66786f; font-size: 12px; font-weight: 400; }
.label { display: inline-block; padding: 2px 8px; font-size: 12px; border-radius: 5px; color: #56645d; background: #edf0ee; font-weight: 600; }
.label.running { color: #245477; background: #e6eff6; }.label.done { color: #286044; background: #e4f1e8; }.label.blocked { color: #9b431f; background: #fae8da; }
.issue-text { display: block; margin-top: 4px; color: #963d21; white-space: pre-wrap; overflow-wrap: anywhere; }
.percent { font-weight: 600; font-variant-numeric: tabular-nums; }
.job-list progress { display: block; width: 76px; max-width: 100%; height: 6px; margin-top: 3px; accent-color: #3e805e; }
.job-list .empty { text-align: center; max-width: none; padding: 35px 12px; color: #64766c; font-weight: 400; }
.board-foot { border-top: 1px solid #e5ebe7; margin: 0; padding: 10px 17px; font-size: 12px; color: #63746b; }
dialog { width: min(540px, calc(100% - 24px)); max-height: 90vh; max-height: 90dvh; overflow: auto; padding: 20px; border: 1px solid #ccd8cf; border-radius: 12px; color: #20312b; box-shadow: 0 16px 60px #122c2229; }
dialog::backdrop { background: #162b237d; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dialog-head h2 { font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 13px; }
.form-fields label { margin: 0; min-width: 0; }.form-fields .wide { grid-column: 1/-1; }
.form-fields input,.form-fields select,.form-fields textarea { width: 100%; margin-top: 4px; font-weight: 400; }
.form-fields input[readonly] { background: #f1f5f2; }.form-fields textarea { min-height: 54px; }
.dialog-foot { justify-content: end; margin-top: 14px; flex-wrap: wrap; }.dialog-foot span { margin-right: auto; }
#editError:not(:empty) { margin-top: 10px; }.history-item { border-top: 1px solid #dce4df; padding: 12px 0; }.history-item h3 { font-size: 15px; margin: 0 0 3px; }.history-item p { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 740px) {
  header,.header-actions { flex-wrap: wrap; }.production-page { padding: 16px 12px; }.hero { align-items: start; }.hero button { white-space: nowrap; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.stats div { padding: 9px 12px; }.stats strong { font-size: 24px; }
  .refresh { gap: 5px; }.refresh span { font-size: 11px; }.filters { gap: 8px; }.filters label:first-child { flex-basis: 100%; }.filters input[type=search] { width: 100%; }
  .job-list table,.job-list tbody { display: block; min-width: 0; }.job-list thead { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }
  .job-list tr { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 15px; border-top: 1px solid #dce4df; gap: 7px 14px; }
  .job-list td { border: 0; padding: 0; max-width: none; }.job-list td[data-label]::before { content: attr(data-label); display: block; color: #66786f; font-size: 11px; }
  .job-list td:first-child,.job-list .empty { grid-column: 1/-1; }.job-list .row-actions { justify-content: end; flex-wrap: wrap; }.job-list td:last-child { align-self: end; }
}
