/* V3: a calm production desk, with red reserved for a request requiring a decision. */
.scan-details { margin:16px 0; padding:15px; background:#f6f7f3; border-radius:8px; }
.scan-details summary { cursor:pointer;font-size:14px;padding:6px!important;display:list-item!important; }
.scan-details summary::before { content:none!important; }
.source-scan { display:block;width:100%;max-width:760px;height:auto;margin:20px auto 0; }
:root {
  --request-red: #b72f3b;
}
button,
input,
select,
textarea {
  font: inherit;
}
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #548a73;
  outline-offset: 3px;
}
.identity-button {
  border: 1px solid #dce4dc;
  background: white;
  font-size: 13px;
  border-radius: 8px;
  padding: 9px 12px;
}
.work-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #e9f1f4;
  color: #345663;
  border-radius: 10px;
  font-size: 13px;
  margin: 0 0 18px;
}
.role-pill {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  background: #e8f0ea;
  color: #315746;
}
.auth-intro {
  margin-bottom: 24px;
}
.auth-intro p {
  margin-top: 14px;
  line-height: 1.65;
  color: #536a60;
}
.account-card {
  padding: 12px 0 24px;
}
.account-card h2 {
  margin: 16px 0 8px;
}
.full-button {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}
.submit-help {
  margin: 14px 0 0;
  line-height: 1.7;
}
.manager-shell {
  min-height: 100vh;
  background: #f3f6f5;
}
.manager-top {
  height: 82px;
  background: #132e30;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1320px) / 2));
  gap: 20px;
}
.manager-top .brand {
  padding: 0;
}
.manager-top > div:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.manager-top .role-pill {
  background: #d5e9df;
}
.manager-jumps { display: none; }
.manager-main {
  max-width: 1376px;
  margin: auto;
  padding: 42px 28px 64px;
}
.manager-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.manager-heading h1 {
  font-size: 36px;
  line-height: 1.23;
  margin: 14px 0;
  letter-spacing: -1.1px;
}
.manager-heading h1 span {
  color: #637d70;
}
.manager-heading p {
  color: #657c70;
  font-size: 15px;
}
.manager-stats {
  display: flex;
  gap: 48px;
  padding: 22px 0 30px;
  border-bottom: 1px solid #dce5df;
  margin-bottom: 28px;
}
.manager-stats > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.manager-stats strong {
  font-size: 32px;
  letter-spacing: -1px;
}
.manager-stats span {
  font-size: 14px;
  color: #6b7f73;
}
.manager-stats .attention strong {
  color: var(--request-red);
}
.manager-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.manager-grid .panel {
  margin: 0;
}
.manager-grid label {
  font-size: 14px;
}
.manager-grid input,
.manager-grid select,
.manager-grid textarea {
  font-size: 16px;
  min-height: 44px;
}
.form-details {
  padding: 12px 0;
}
.form-details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.form-details[open] summary {
  margin-bottom: 20px;
}
.form-details .form-grid {
  margin-top: 18px;
}
.order-summary {
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: #edf3ed;
  border-radius: 9px;
  font-size: 14px;
}
.order-summary strong {
  font-size: 18px;
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 16px;
}
.list-heading span {
  color: #7a8e80;
  font-size: 13px;
}
.manager-order {
  padding: 22px 24px;
  border: 1px solid #e0e8e2;
  background: white;
  border-radius: 13px;
  margin-bottom: 14px;
  box-shadow: 0 3px 9px #203e2d03;
}
.manager-order h3 {
  font-size: 19px;
  margin: 14px 0 5px;
}
.manager-order > p {
  color: #718375;
  font-size: 14px;
}
.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.order-spec {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 19px 0 10px;
  font-size: 14px;
}
.order-date {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #617868;
  margin: 12px 0 18px;
}
.urgent-order {
  border-left: 4px solid var(--request-red);
}
.urgency-button {
  color: #ac3440;
  border-color: #e9c9cd;
  background: #fff;
}
.urgency-button:hover {
  background: #fff1f2;
}
.urgency-button:disabled {
  opacity: 0.65;
  cursor: default;
}
.red-text {
  color: var(--request-red);
}
.request-state {
  padding: 14px 16px;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.6;
}
.request-state p {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}
.request-state.pending {
  color: #9a2535;
  background: #fff0f2;
}
.request-state.accepted {
  background: #edf5ea;
  color: #395e3f;
}
.request-state.rejected {
  background: #f0f2f2;
  color: #5d6967;
}
.danger-button {
  background: var(--request-red);
  color: white;
  border-color: var(--request-red);
}
.urgent-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 10px;
  background: #fff0f1;
  border: 1px solid #eed1d5;
  border-left: 4px solid var(--request-red);
  margin-bottom: 22px;
  color: #a42b39;
}
.urgent-banner small {
  display: block;
  font-size: 13px;
  margin-top: 5px;
}
.urgent-banner button {
  color: #a42b39;
  border-color: #e7bdc3;
}
.inbox-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}
.inbox-intro h2 {
  font-size: 19px;
  margin-bottom: 8px;
}
.inbox-intro p {
  color: #6c8173;
  font-size: 14px;
  line-height: 1.6;
}
.request-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.request-review {
  border: 1px solid #e0e6df;
  border-radius: 13px;
  background: #fff;
  padding: 24px;
}
.request-review.pending {
  border-top: 4px solid var(--request-red);
}
.request-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.request-review-head > span:last-child {
  font-size: 12px;
  color: #748678;
}
.request-review h2 {
  margin-bottom: 9px;
}
.request-review > p {
  font-size: 14px;
  color: #6b7c70;
}
.request-review blockquote {
  margin: 22px 0;
  padding: 16px;
  background: #f6f8f5;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.request-review.pending blockquote {
  background: #fff2f3;
}
.pill.danger {
  background: #fbe5e9;
  color: #a52335;
}
.resolution {
  line-height: 1.7;
}
.requested-order {
  box-shadow: inset 4px 0 var(--request-red);
  background: #fff4f5;
}
.technology-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 38px;
  align-items: center;
  margin-bottom: 28px;
}
.technology-intro h2 {
  font-size: 30px;
  letter-spacing: -0.7px;
  line-height: 1.25;
  margin: 12px 0 16px;
}
.technology-intro p {
  font-size: 15px;
  line-height: 1.7;
  color: #657b6b;
}
.technology-note {
  border-left: 2px solid #adc2b4;
  padding: 18px 24px;
}
.technology-note strong {
  display: block;
  margin-bottom: 10px;
}
.source-issues {
  margin: 30px 0;
}
.source-issues h2 {
  margin-bottom: 17px;
}
.issue-row {
  border-bottom: 1px solid #dce5dc;
}
.issue-row summary {
  font-size: 14px;
  cursor: pointer;
  padding: 14px 0;
  color: #806024;
}
.issue-row p {
  font-size: 14px;
  line-height: 1.75;
  max-width: 850px;
  padding: 0 0 18px 18px;
  color: #68796c;
}
.source-card {
  border-top: 1px solid #e0e6df;
}
.source-card summary {
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.source-card summary::before {
  content: "+";
  font-size: 20px;
  color: #6d8776;
}
.source-card[open] summary::before {
  content: "−";
}
.source-card[open] summary {
  background: #eef4ec;
}
.source-number {
  color: #90a18f;
  font-size: 24px;
  font-weight: 500;
}
.source-card summary > span:nth-child(2) {
  flex: 1;
}
.source-card summary strong {
  font-size: 16px;
  display: block;
}
.source-card small {
  display: block;
  color: #70836f;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 400;
}
.source-card summary > b {
  font-size: 18px;
  white-space: nowrap;
  margin-left: auto;
}
.source-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  padding: 18px 0;
}
.bed-technology {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid #e3e9df;
  border-bottom: 1px solid #e3e9df;
  margin: 8px 0 12px;
}
.bed-technology small {
  display: block;
  font-size: 12px;
  color: #7b8d7b;
  margin-bottom: 6px;
}
.bed-technology strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.rip-details {
  border-radius: 9px;
  border: 1px solid #d8e5e8;
  background: #f4f9fa;
  margin: 18px 0;
}
.rip-details summary {
  padding: 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #3e6670;
}
.rip-item {
  padding: 4px 18px 22px;
}
.rip-item p {
  font-size: 13px;
  color: #72858a;
  margin: 7px 0 13px;
}
.width-track {
  display: flex;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
}
.width-track > span {
  flex-shrink: 0;
  background: #cae1e8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #2e6476;
}
.width-track small {
  font-size: 12px;
}
.width-track > i {
  background: #708389;
  flex-shrink: 0;
}
.width-track > b {
  background: repeating-linear-gradient(
    135deg,
    #f4db9a 0 5px,
    #fff1c7 5px 10px
  );
  flex-shrink: 0;
}
.rip-balance {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin-top: 10px;
}
.rip-balance strong {
  color: #94600c;
}
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 26px;
}
.role-card {
  background: #fff;
  border: 1px solid #e0e7df;
  border-radius: 13px;
  padding: 28px;
}
.role-card h2 {
  margin: 20px 0 14px;
  font-size: 24px;
}
.role-card p {
  line-height: 1.8;
  font-size: 15px;
  margin-top: 12px;
}
.role-card.technologist {
  background: #183837;
  color: #edf4ea;
}
.role-card.technologist p {
  color: #c6d7cb;
}
.confirm-check {
  display: flex;
  align-items: start;
  gap: 12px;
  line-height: 1.65;
  margin-top: 20px;
}
.confirm-check input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  min-height: 0;
}
@media (max-width: 1100px) {
  .request-list {
    grid-template-columns: 1fr;
  }
  .manager-heading h1 {
    font-size: 30px;
  }
  .manager-grid {
    gap: 20px;
  }
  .manager-top {
    padding: 0 24px;
  }
  .top-actions .local {
    display: none;
  }
  .bed-technology {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { min-width: 0; }
  .manager-jumps { display: flex; gap: 10px; margin: 0 0 20px; }
  .manager-jumps a { padding: 12px; border: 1px solid #d9e3de; border-radius: 9px; background: white; color: #193e37; text-decoration: none; font-size: 14px; }
  #manager-orders, #manager-order { scroll-margin-top: 20px; }
  .sidebar { display: block; }
  .sidebar > .brand { display: none; }
  .sidebar nav { overflow-x: auto; margin: 0; padding-bottom: 3px; }
  .sidebar .nav { flex: 0 0 auto; min-height: 44px; padding: 10px 13px; }
  .sidebar .nav .nav-label { display: inline; font-size: 13px; }
  .sidebar .nav-icon { display: none; }
  .manager-main {
    padding: 25px 18px;
  }
  .manager-top {
    padding: 0 18px;
    height: 72px;
  }
  .manager-top .brand > div {
    display: block;
    font-size: 19px;
  }
  .manager-top .brand small {
    font-size: 8px;
  }
  .manager-top .brand img {
    width: 28px;
  }
  .manager-top .role-pill {
    display: none;
  }
  .manager-heading {
    display: block;
  }
  .manager-heading > button {
    margin-top: 18px;
  }
  .manager-heading h1 {
    font-size: 28px;
  }
  .manager-grid,
  .role-grid,
  .technology-intro {
    grid-template-columns: 1fr;
  }
  .manager-stats {
    gap: 20px;
    flex-wrap: wrap;
  }
  .manager-stats > div {
    display: block;
  }
  .manager-stats span {
    display: block;
    font-size: 12px;
  }
  .manager-stats strong {
    font-size: 27px;
  }
  .work-banner,
  .urgent-banner,
  .inbox-intro,
  .source-footer {
    flex-wrap: wrap;
  }
  .source-card summary {
    padding: 16px 12px;
    gap: 10px;
  }
  .source-number {
    font-size: 18px;
  }
  .source-card summary strong {
    font-size: 14px;
  }
  .source-card summary > b {
    font-size: 15px;
  }
  .source-card summary small {
    line-height: 1.7;
  }
  .request-review-head {
    flex-wrap: wrap;
  }
  .technology-note {
    padding-left: 18px;
  }
  .rip-balance {
    flex-wrap: wrap;
  }
  .identity-button {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .manager-grid .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .manager-grid .form-grid {
    grid-template-columns: 1fr;
  }
  .manager-heading h1 {
    font-size: 25px;
  }
  .order-spec,
  .order-date {
    flex-wrap: wrap;
  }
  .manager-top .brand small {
    display: none;
  }
}
@media print {
  .work-banner,
  .urgent-banner,
  .rip-details {
    display: none !important;
  }
  .bed-technology {
    break-inside: avoid;
  }
  .material-balance {
    break-inside: avoid;
  }
  .print-sheet .rip-details {
    display: block !important;
  }
  .identity-button {
    display: none;
  }
}
/* ПазлМастер 2.2 — luminous production cockpit. Screen-only theme keeps print legible. */
@media screen {
  :root { color-scheme: dark; --ink: #eef3ff; --muted: #a0adc4; --edge: #ffffff13; --panel: #121a2c; --cyan: #69e7f9; --violet: #a597ff; }
  body { background: #080e1b; color: var(--ink); font-size: 16px; line-height: 1.5; }
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 80% -15%, #5343c23b, transparent 55%), radial-gradient(ellipse at 15% 70%, #0f74801c, transparent 60%); }
  button { background: #1b263d; border-color: #ffffff1c; color: #e2eaff; min-height: 42px; }
  button:hover { background: #293752; border-color: #8c9cb966; }
  button:disabled { opacity: .45; }
  a { color: var(--cyan); }
  input, select, textarea { background: #0c1424; color: var(--ink); border-color: #42516d; min-height: 46px; font-size: 16px; }
  input::placeholder, textarea::placeholder { color: #8190aa; }
  input:focus, select:focus, textarea:focus { border-color: #73d9f0; box-shadow: 0 0 0 3px #69e7f91c; }
  :focus-visible { outline: 2px solid #9aecff; outline-offset: 4px; }
  .primary, .lime { background: linear-gradient(115deg, #89eff3, #b9b0ff); color: #101c32; border: 0; box-shadow: 0 6px 25px #71d9f223; }
  .primary:hover, .lime:hover { background: linear-gradient(115deg,#bcfaff,#d2caff); color: #091728; box-shadow: 0 8px 32px #a598ff3a; }
  .ghost { background: transparent; color: #b5c4dc; }
  .shell { grid-template-columns: 244px minmax(0,1fr); }
  .sidebar { background: linear-gradient(175deg,#11172d,#0b1321 65%); border-right: 1px solid var(--edge); padding: 32px 18px 22px; }
  .brand { gap: 10px; padding: 0 6px 30px; color: #f6f8ff; font-size: 22px; letter-spacing: -.7px; line-height: 1.15; }
  .brand small { display: block; color: #94a5bf; font-size: 12px; letter-spacing: 1.1px; margin-top: 8px; font-weight: 500; text-transform: none; }
  .brand-symbol { display: grid; place-items: center; flex: 0 0 40px; height: 42px; border-radius: 12px; background: linear-gradient(135deg,#87edf1,#9e88f6); color: #142139; font-size: 15px; font-weight: 850; letter-spacing: -1px; box-shadow: 0 0 28px #90b9fc24, inset 0 1px 0 #ffffffa1; }
  .nav { color: #a4b3ca; border: 1px solid transparent; border-radius: 12px; min-height: 48px; font-size: 14px; margin-bottom: 4px; }
  .nav:hover { background: #ffffff08; color: white; }
  .nav.active { background: linear-gradient(110deg,#7765e43d,#57cfe512); border-color: #ab9aff43; color: #f4f0ff; box-shadow: inset 3px 0 0 #b5a3ff; }
  .nav b { background: #ffffff0e; color: #d0d8ee; }
  .side-foot { color: #8391ab; font-size: 12px; line-height: 1.8; }
  .side-foot strong { color: #c7d4eb; }
  .topbar { background: #0e1426bc; border-bottom: 1px solid var(--edge); padding: 15px 30px; height: auto; min-height: 80px; backdrop-filter: blur(18px); }
  .breadcrumb { color: #95a6c2; font-size: 13px; }
  .breadcrumb b { color: #d7e3f5; }
  .top-actions { gap: 14px; align-items: center; }
  .release-badge { display: inline-flex; align-items: center; color: #afa0f9; border: 1px solid #a18af348; background: #9980ee12; padding: 5px 9px; border-radius: 7px; font-size: 13px; font-weight: 750; white-space: nowrap; }
  .role-switch { display: inline-flex; padding: 4px; gap: 3px; border: 1px solid #66728d52; border-radius: 12px; background: #080e1f; }
  .role-switch button { border: 0; background: transparent; color: #97a9c6; border-radius: 8px; padding: 8px 14px; font-size: 14px; min-height: 36px; box-shadow: none; }
  .role-switch button[aria-pressed="true"] { background: linear-gradient(115deg,#a4eaf1,#b3a5f5); color: #14223a; box-shadow: 0 2px 12px #7ccfee22; }
  .content { padding: 26px 30px 60px; max-width: 1920px; }
  .heading { margin-bottom: 14px; gap: 20px; }
  h1 { font-size: clamp(25px,2.3vw,38px); letter-spacing: -1.15px; color: #f0f4ff; line-height: 1.18; }
  h2, h3 { color: #eaf0ff; }
  .eyebrow { color: #9d94d9; font-size: 12px; letter-spacing: 2px; }
  .sub, .muted, .help, .panel-head p, .right-note p, .metric-foot, .track-meta, label { color: #9facbf; }
  label { font-size: 14px; }
  .help { font-size: 13px; }
  .sub { font-size: 15px; }
  .demo-disclaimer { color: #8493ae; font-size: 12px; margin: 12px 0 20px; }
  .panel, .metric, .right-note { background: linear-gradient(125deg,#161f33e6,#101929ef); border: 1px solid var(--edge); box-shadow: 0 16px 40px #00000015, inset 0 1px 0 #ffffff03; border-radius: 18px; }
  .panel-head { border-bottom: 1px solid var(--edge); padding: 20px 23px; }
  .panel-head h2 { font-size: 19px; }
  .panel-head p { font-size: 14px; }
  .journey { background: #111929; border: 1px solid var(--edge); margin-bottom: 18px; border-radius: 13px; }
  .journey .step { background: transparent; border-color: var(--edge); color: #d7e3f7; padding: 14px 18px; }
  .journey .step.active { background: #8980fa0d; }
  .journey .detail { color: #8fa2bf; font-size: 12px; }
  .step-num { background: #212d48; color: #b6c6de; }
  .step.done .step-num { background: #65d8ce1a; color: #74e3d7; }
  .step.active .step-num { background: #bcafff; color: #1e2040; }
  .metrics { gap: 13px; margin-bottom: 20px; }
  .metric { padding: 19px 20px; min-height: 135px; position: relative; overflow: hidden; }
  .metric::after { content: ""; position: absolute; inset: auto 20px 0; height: 1px; background: linear-gradient(90deg,transparent,#9687f875,transparent); }
  .metric-label { color: #a5b2c9; font-size: 13px; }
  .metric-label > span { display: none; }
  .metric-value { font-size: 34px; color: #f2f6ff; letter-spacing: -1px; }
  .metric-value em { font-size: 14px; color: #8fa1bd; }
  .metric-foot { font-size: 12px; }
  .metric-foot.warn { color: #f5c58d; }
  .progress { background: #ffffff0b; height: 3px; }
  .progress i { background: linear-gradient(90deg,#77ddea,#a18cf5); }
  .workspace { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .right-rail { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
  .advice { background: linear-gradient(130deg,#2c2952,#193849); border: 1px solid #8076b14d; border-radius: 18px; }
  .advice h2 { font-size: 24px; }
  .advice p { color: #c0cee0; }
  .view-tabs { background: #090f1f; border: 1px solid #ffffff0d; }
  .view-tabs button { background: transparent; color: #99a9c1; }
  .view-tabs button.active { background: #25304a; color: #e7f0ff; }
  .plant-board { padding: 23px; background: radial-gradient(ellipse at 80% 0%, #7059aa12, transparent 70%); }
  .plant-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
  .plant-toolbar h2 { margin: 3px 0 0; font-size: 26px; font-weight: 550; letter-spacing: -.5px; }
  .plant-totals { display: grid; grid-template-columns: auto auto; column-gap: 9px; align-items: baseline; text-align: right; }
  .plant-totals > strong { color: #ccdaef; font-size: 22px; font-weight: 600; }
  .plant-totals small { color: #8a9bb6; font-size: 14px; }
  .plant-totals > span { color: #8a9bb6; font-size: 12px; }
  .plant-dates { display: flex; gap: 8px; overflow: auto; padding-bottom: 5px; margin-bottom: 24px; }
  .plant-dates button { background: #0c1323; border-color: #ffffff0f; border-radius: 11px; padding: 9px 18px; display: grid; min-width: 126px; text-align: left; }
  .plant-dates button span { color: #899cb7; font-size: 11px; letter-spacing: 1px; }
  .plant-dates button strong { font-size: 16px; color: #c6d2e8; }
  .plant-dates button small { color: #8195b2; font-size: 12px; }
  .plant-dates button[aria-pressed="true"] { background: linear-gradient(130deg,#2e3158,#1b3c4c); border-color: #92b9ee6b; box-shadow: 0 0 24px #86a7ed0d; }
  .plant-dates button[aria-pressed="true"] strong { color: #f2f5ff; }
  .plant-scale { display: grid; grid-template-columns: 72px 1fr; gap: 18px; color: #7487a6; font-size: 11px; letter-spacing: .5px; padding: 0 18px 9px; }
  .plant-scale > div { display: flex; justify-content: space-between; }
  .plant-lanes { display: grid; gap: 12px; }
  .plant-lane { --lane: #a496ff; display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 18px; text-align: left; padding: 17px 18px; background: #111b2b; border: 1px solid #ffffff10; border-radius: 14px; color: #cdd9eb; transition: border-color .2s,background .2s,box-shadow .2s; }
  .plant-lane.w1000 { --lane: #60cde9; }
  .plant-lane.w1500 { --lane: #66dcba; }
  .plant-lane:hover { background: #1a263c; border-color: color-mix(in srgb,var(--lane) 40%,transparent); box-shadow: 0 6px 30px #0002; }
  .plant-lane.is-selected { border-color: color-mix(in srgb,var(--lane) 65%,transparent); background: linear-gradient(105deg,color-mix(in srgb,var(--lane) 10%,#101a2a),#111b2d); box-shadow: inset 3px 0 0 var(--lane),0 0 30px color-mix(in srgb,var(--lane) 5%,transparent); }
  .lane-number { display: flex; flex-direction: column; justify-content: center; gap: 1px; border-right: 1px solid #ffffff12; }
  .lane-number small { font-size: 10px; letter-spacing: 1.7px; color: #899db9; }
  .lane-number strong { font-size: 34px; line-height: 1.1; font-weight: 550; color: var(--lane); font-variant-numeric: tabular-nums; }
  .lane-content { min-width: 0; display: block; }
  .lane-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 12px; }
  .lane-meta > span:first-child { display: flex; gap: 13px; align-items: center; min-width: 0; }
  .lane-meta b { font-size: 14px; white-space: nowrap; color: #dce7f8; }
  .lane-meta small { color: #8ca1bf; font-size: 12px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lane-fill { color: var(--lane); font-size: 22px; font-weight: 700; line-height: 1; white-space: nowrap; }
  .lane-fill small { color: var(--lane); padding-left: 3px; }
  .lane-track { display: flex; height: 42px; width: 100%; border-radius: 6px; background: #080e1a; overflow: hidden; box-shadow: inset 0 2px 6px #0008,0 0 18px color-mix(in srgb,var(--lane) 8%,transparent); }
  .lane-piece { flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; color: #0e2435; font-size: 11px; font-weight: 750; background: linear-gradient(180deg,color-mix(in srgb,var(--lane) 68%,white),var(--lane) 30%,color-mix(in srgb,var(--lane) 68%,#1d264c)); border: 1px solid #ffffff47; border-left-color: #15223a5c; box-shadow: inset 0 -4px 0 #06172c19,inset 0 2px 0 #ffffff20; }
  .lane-cut { background: #080e18; flex: 0 0 auto; }
  .lane-remainder { flex: 0 0 auto; background: repeating-linear-gradient(125deg,#e6aa512e 0 5px,#e6aa5108 5px 10px); border: 1px solid #f2b65e45; display: grid; place-items: center; overflow: hidden; color: #eac183; font-size: 10px; letter-spacing: 1.7px; }
  .lane-footer { display: flex; align-items: center; gap: 18px; margin-top: 10px; font-size: 12px; font-weight: 400; color: #8c9fba; }
  .lane-footer b { color: #c0cfe4; font-weight: 550; }
  .lane-footer .lane-rest, .lane-rest b { color: #f5c581; }
  .lane-open { margin-left: auto; color: #b3c9e9; }
  .lane-empty { align-self: center; padding: 25px 0; border: 1px dashed #62759245; border-radius: 7px; text-align: center; color: #6f839f; }
  .plant-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; font-size: 12px; color: #8ba0be; }
  .plant-legend > span { display: flex; align-items: center; gap: 7px; }
  .plant-legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; }
  .legend-product { background: #9ca8ee; } .legend-cut { background: #7c8c9f; } .legend-rest { background: repeating-linear-gradient(125deg,#e4b671 0 2px,#61452a 2px 4px); }
  .legend { display: none; }
  .bed-detail { margin-top: 24px; }
  .bed-tag { background: #9481de24; color: #c4b6fa; border: 1px solid #a891e835; }
  .bed-tag.w1000 { background: #66d5ec19; color: #8bdcea; }
  .bed-tag.w1500 { background: #6ee2bf16; color: #81dfc0; }
  .ruler { color: #8ba0bc; }
  .track { background: #070e1a; border-color: #485775; border-radius: 10px; height: 86px; }
  .track .piece { background: linear-gradient(175deg,#acb4ed,#6c74a5); color: #132037; border-color: #dae2ff45; box-shadow: inset 0 -6px 0 #18203625; }
  .track.w1000 .piece { background: linear-gradient(175deg,#9ce8ef,#4099b4); }
  .track.w1500 .piece { background: linear-gradient(175deg,#a1efd3,#389d87); }
  .piece.highlight { box-shadow: inset 0 0 0 3px #fff,0 0 20px #fff5; }
  .offcut { background: repeating-linear-gradient(125deg,#f0b75c45 0 5px,#bd852418 5px 10px); color: #f6d292; }
  .material-balance { background: #0b1423; border-color: #34445f; }
  .material-balance strong { color: #e0eafb; }
  .material-balance span, .balance-plus { color: #94a7c5; }
  .material-balance .remainder-value { background: #9e631728; }
  .material-balance .remainder-value strong, .material-balance .remainder-value span { color: #f3c888; }
  .order-details, .source-card, .issue-row { border-color: #ffffff16; }
  .order-details summary, .source-card summary, .issue-row summary { color: #c2d2eb; }
  .order-details summary:hover, .source-card summary:hover, .issue-row summary:hover { background: #ffffff04; }
  .order-details[open] > summary { background: #8e8afc0b; }
  .bed-technology { background: #0c1729; border: 1px solid #34415a; }
  .bed-technology strong { color: #d4e0f3; }
  .bed-technology small { color: #8e9fbb; }
  .remainder-chip { background: #b8792323; color: #efc782; border-color: #d49b3640; }
  .rip-details { background: #14334050; border-color: #487b9157; }
  .rip-details summary, .rip-item strong { color: #a4ddec; }
  .rip-item p, .rip-balance { color: #97b2c7; }
  .rip-balance strong { color: #f4c47f; }
  .width-track > span { background: linear-gradient(180deg,#8adde6,#4b97b6); color: #102a40; border-color: #152e416b; }
  .width-track > b { background: repeating-linear-gradient(125deg,#d49d484c 0 5px,#b17d2220 5px 10px); }
  table { color: #c0cee1; }
  th { background: #0c1525; color: #9aaccc; border-color: #ffffff15; font-size: 12px; }
  td { border-color: #ffffff0e; font-size: 14px; }
  td small { color: #8196b5; }
  tbody tr:hover, .order-row:hover { background: #9e9ee70c; }
  .table-wrap { scrollbar-color: #3a4b6a #121b2c; }
  .pill, .role-pill { background: #70829719; color: #b0c0d6; }
  .pill.warn, .pill.danger { background: #ac434b20; color: #ffaaaa; }
  .notice { background: #4234164a; border-color: #a2814057; color: #e2c894; }
  .notice.info, .demo-banner { background: #263b6355; border-color: #627dad60; color: #c4d6f3; }
  .notice button { background: #ffffff0b; }
  .error { background: #5a26364a; color: #ffbac4; border-color: #b2526966; }
  dialog { background: #131d30; border: 1px solid #64709175; color: #d2deef; box-shadow: 0 32px 120px #000a,0 0 65px #7361a41c; border-radius: 20px; }
  dialog::backdrop { background: #050917ba; backdrop-filter: blur(7px); }
  .modal-head { border-color: var(--edge); }
  .modal-head h2 { font-size: 23px; }
  .modal-foot { border-color: var(--edge); }
  #toast { background: #253951; border: 1px solid #82b1d354; color: #e9f8ff; box-shadow: 0 12px 45px #0005; }
  .manager-shell { background: transparent; }
  .manager-top { background: #0f1729d9; border-bottom: 1px solid var(--edge); height: 90px; }
  .manager-top .brand { padding-bottom: 0; }
  .manager-controls { display: flex; align-items: center; gap: 15px; }
  .manager-heading h1 { color: #eaf0fd; font-size: 36px; }
  .manager-heading h1 span { background: linear-gradient(100deg,#80dfeb,#b8a0fa); color: transparent; background-clip: text; }
  .manager-heading p, .manager-stats span { color: #97a9c6; }
  .manager-stats { border-color: var(--edge); padding: 20px 0; margin: 22px 0; }
  .manager-stats strong { color: #c7d8f1; }
  .manager-order, .request-review { background: #121e31; border: 1px solid var(--edge); box-shadow: 0 12px 30px #0001; }
  .manager-order h3 { color: #e1ecff; }
  .manager-order p, .order-date { color: #97acc8; }
  .order-spec strong { color: #becbf2; }
  .order-summary { background: #7998e217; color: #b7cff2; border: 1px solid #8995d129; }
  .order-summary strong { color: #b4dfef; }
  .request-state.pending, .urgent-order, .urgent-banner { border-color: #dd6285; }
  .urgent-order { box-shadow: inset 3px 0 0 #e07898; }
  .request-state.pending, .urgent-banner { background: #622b412e; color: #f6afc0; }
  .request-state.pending p, .request-state.pending strong { color: #f8bdc9; }
  .request-state.accepted { background: #2866512b; color: #a5e1ce; }
  .request-state.accepted p { color: #a3cfc3; }
  .request-state.rejected { background: #654d322b; color: #ead0a7; }
  .request-review.pending { border-left-color: #dd6685; }
  .request-review blockquote { background: #07122160; border-color: #8a78ad; color: #d6dcee; }
  .request-review-head, .resolution { color: #acbdd7; }
  .urgency-button, .danger-button { color: #ffc0cf; background: #5d273a35; border-color: #bf60804d; }
  .urgency-button:hover, .danger-button:hover { background: #733d514d; }
  .technology-intro { background: linear-gradient(115deg,#2521475c,#15364138); border: 1px solid #79789f2c; border-radius: 18px; padding: 28px; }
  .technology-intro p, .technology-note, .technology-note p { color: #9eb1cc; }
  .technology-note { border-color: #9a8dd45e; }
  .technology-intro h2 { color: #d8d4ff; }
  .source-number { color: #b0a4e5; }
  .source-card summary strong { color: #dde7fa; }
  .source-card summary small, .source-footer { color: #92a7c3; }
  .issue-row { background: #0f1b2d; }
  .issue-row p { color: #b3c2d8; }
  .scan-details { background: #0c1525; }
  .scan-details summary { color: #8dcddf; }
  .version-row { border-color: var(--edge); }
  .move-options { display: grid; gap: 9px; margin: 16px 0; }
  .move-option { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid #415576; border-radius: 10px; background: #17263c; cursor: pointer; }
  .move-option input { min-height: auto; accent-color: #a597f9; width: 18px; height: 18px; }
  .move-option:has(input:checked) { border-color: #b2a2ff; box-shadow: inset 3px 0 0 #af9ff4; background: #32294a66; }
  .move-option strong { display: block; color: #e1e9f8; }
  .move-option small { color: #a0b4cf; }
  .move-explanation { background: #0c1627; padding: 13px 15px; border-radius: 9px; color: #b4c5df; font-size: 14px; }
  .move-blockers { margin-top: 14px; border-top: 1px solid var(--edge); padding-top: 13px; }
  .move-blockers summary { color: #91a5c4; cursor: pointer; font-size: 14px; }
  .move-blocker { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #ffffff09; font-size: 13px; color: #8c9db7; }
  .move-impact { background: #293252; padding: 13px 15px; margin-top: 14px; border-radius: 10px; font-size: 14px; }
  .move-impact strong { color: #bcdbed; }
  @media (min-width: 1800px) { .plant-lanes { gap: 15px; } .lane-track { height: 48px; } }
  @media (max-width: 1100px) { .shell { grid-template-columns: 200px minmax(0,1fr); } .brand { font-size: 18px; gap: 7px; } .brand-symbol { flex-basis: 32px; height: 35px; font-size: 12px; } .topbar { padding: 13px 20px; } .breadcrumb { display: none; } .top-actions { width: 100%; justify-content: space-between; } .content { padding: 24px 20px; } .right-rail { grid-template-columns: 1fr; } .lane-meta small { max-width: 220px; } }
  @media (max-width: 760px) {
    .shell { grid-template-columns: minmax(0,1fr); }
    .sidebar { padding: 9px; display: block; height: auto; min-width: 0; border-right: 0; }
    .sidebar .brand { display: flex; padding: 8px 8px 14px; }
    .sidebar .brand > div { display: block; }
    .sidebar nav { overflow-x: auto; display: flex; flex-direction: row; }
    .nav { min-height: 42px; margin: 0; }
    .topbar { padding: 10px 16px; min-height: 62px; }
    .top-actions { gap: 8px; }
    .role-switch button { padding: 8px 11px; font-size: 13px; }
    .content { padding: 22px 15px 45px; }
    .heading { gap: 12px; }
    .heading h1 { font-size: 29px; }
    .journey .step { padding: 11px 15px; }
    .metric { padding: 16px; min-height: 125px; }
    .metric-value { font-size: 28px; }
    .plant-board { padding: 16px 12px; }
    .plant-toolbar h2 { font-size: 23px; }
    .plant-totals { column-gap: 5px; }
    .plant-totals > span { font-size: 10px; }
    .plant-totals > strong { font-size: 19px; }
    .plant-dates { gap: 6px; margin-bottom: 18px; }
    .plant-dates button { min-width: 102px; padding: 8px 12px; }
    .plant-scale { grid-template-columns: 40px minmax(0,1fr); gap: 10px; padding: 0 10px 8px; }
    .plant-lane { grid-template-columns: 40px minmax(0,1fr); gap: 10px; padding: 13px 10px; }
    .lane-number strong { font-size: 26px; } .lane-number small { font-size: 8px; letter-spacing: .7px; }
    .lane-meta { gap: 6px; } .lane-meta > span:first-child { display: block; } .lane-meta small { display: block; max-width: 190px; font-size: 10px; }
    .lane-fill { font-size: 18px; } .lane-fill small { display: inline; }
    .lane-track { height: 38px; } .lane-piece { font-size: 9px; }
    .lane-footer { gap: 5px 12px; flex-wrap: wrap; font-size: 11px; } .lane-open { margin: 0; width: 100%; font-size: 12px; }
    .plant-legend { gap: 8px 12px; font-size: 10px; }
    .manager-top { height: auto; padding: 18px; flex-wrap: wrap; gap: 16px; }
    .manager-top .brand { font-size: 22px; } .manager-top .brand small { display: block; font-size: 12px; }
    .manager-controls { width: 100%; justify-content: space-between; }
    .manager-heading h1 { font-size: 29px; }
    .manager-jumps a { background: #1c2941; border-color: #53627c; color: #c6d6ed; }
    .technology-intro { padding: 22px; }
    .move-option { align-items: flex-start; } .move-blocker { flex-wrap: wrap; gap: 2px; }
  }
}

@media screen {
  .catalog-trigger { width:100%; margin-bottom:22px; text-align:left; padding:16px 18px; color:#caf3ff; border:1px solid #517789; background:linear-gradient(115deg,#153344,#26324f); }
  .line-cycle-settings {margin:24px 0;padding-top:20px;border-top:1px solid #34445d;}
  .manager-search {width:100%;margin-bottom:12px;}
  .puzzle-logo {width:48px;height:48px;flex:none;filter:drop-shadow(0 4px 15px #74d7e330);}
  .brand small {letter-spacing:.01em!important;}
  .manager-order[hidden] {display:none;}
  .empty,.empty h2 {color:#d5e4f4;}
  .empty p {color:#a7bbd4;}
  .line-cycle-settings>.help {margin:10px 0 16px;}
  .catalog-dialog { width:min(780px,calc(100vw - 32px)); padding:28px; }
  .catalog-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; }
  .catalog-heading h2 { margin:8px 0; }
  .catalog-filters { display:grid; grid-template-columns:2fr 1fr; gap:16px; margin:22px 0 12px; }
  .catalog-filters label { display:grid; gap:8px; }
  .catalog-results { max-height:46vh; overflow:auto; margin:16px 0; border:1px solid #34445d; border-radius:14px; }
  .catalog-item { display:flex; width:100%; justify-content:space-between; align-items:center; text-align:left; padding:16px; border:0; border-bottom:1px solid #34445d; border-radius:0; gap:16px; }
  .catalog-item small { display:block; margin-top:6px; color:#a7bbd4; font-size:13px; }
  .catalog-item:disabled { opacity:.6; }
  .lane-meta small,.lane-footer,.plant-legend { font-size:12px; }
  @media(max-width:760px) { .catalog-dialog {padding:18px;} .catalog-filters {grid-template-columns:1fr;} .catalog-item {padding:12px;} .catalog-item>span:last-child {font-size:12px;} .lane-footer {gap:8px;flex-wrap:wrap;} }
}
@media print { .demo-disclaimer { display:none; } }
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
