/* Factory control room: graphite panels, signal orange and an arcade foreman. */
:root{
  color-scheme:dark;
  --green:#ff913d;
  --green-dark:#ffac66;
  --green-pale:#ff913d14;
  --ink:#eef3fb;
  --muted:#9cacc0;
  --border:#2c394b;
  --bg:#0b1019;
  --panel:#121c2a;
  --panel-raised:#172233;
  --cyan:#64d9ff;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
}
body{
  background:radial-gradient(ellipse at 89% 0%,#48317814,transparent 43%),radial-gradient(ellipse at 22% 2%,#ff913d05,transparent 42%),var(--bg);
  color:var(--ink);
}
button:focus-visible,a:focus-visible{outline-color:var(--cyan)}
input:focus,select:focus,textarea:focus{outline-color:#6dd8f0}
.sidebar{background:linear-gradient(165deg,#111925,#0b111b 55%);border-right-color:#2b3545}
.sidebar::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(#ff913d,transparent 24%)}
.brand{font-size:32px;font-weight:800;color:#f5f7ff;letter-spacing:-1.5px}
.brand .brand-wordmark{font-size:16px;letter-spacing:-.45px;white-space:nowrap;line-height:1}
.brand-mark{background:var(--green);border:1px solid #ffb36b;border-radius:7px;box-shadow:0 0 23px #ff913d22;transform:none}
.brand-mark i{background:#14202b;border-radius:0}
.brand-mark i:nth-child(2){opacity:1;background:#65401e}
.brand-dot{color:#ff913d}
.workspace{border-color:#303b4e;background:#151e2c;border-radius:7px}
.workspace-icon{background:#243043;color:#d8e2f1;border:1px solid #3a4a61;border-radius:5px}
.workspace strong{color:#e8edf7;font-size:12px}
.workspace div>span{color:#a0afc4}
.workspace-chevron{color:#7d8fa9}
.nav-caption{color:#899bb5;font-family:var(--mono);font-size:9px;letter-spacing:.7px}
.nav-item{color:#a5b5cb;font-size:12px;border:1px solid transparent;border-radius:6px;font-weight:550}
.nav-item.active{background:linear-gradient(90deg,#ff913d1f,#ff913d0c);border-color:#ff913d37;color:#ffad6f;box-shadow:inset 2px 0 #ff913d}
.nav-item:not(.active):hover{background:#1c293b;color:#eef4ff}
.nav-count{background:#ff913d;color:#17120e;border-radius:3px;font-family:var(--mono);font-weight:700}
.sidebar-footer{border-color:#2d394b}
.avatar{background:#26364d;color:#d0e4ff;border:1px solid #405775;font-family:var(--mono);border-radius:7px}
.sidebar-footer strong{color:#dde7f6}
.sidebar-footer div>span{color:#91a3bb}
.help-card{position:relative;overflow:hidden;padding:0 14px 14px;border-color:#344057;border-radius:8px;background:radial-gradient(ellipse at 55% 30%,#31336d66,transparent 68%),linear-gradient(155deg,#192235,#101725);margin-bottom:18px}
.help-card::before{content:"";display:block;height:3px;position:absolute;top:0;left:0;right:0;background:repeating-linear-gradient(130deg,#e9973920 0 5px,transparent 5px 10px);z-index:1}
.crew-art{height:162px;position:relative;display:flex;align-items:center;justify-content:center;margin:0 -14px 2px;isolation:isolate}
.crew-art::after{content:"";position:absolute;left:20px;right:20px;bottom:9px;height:22px;border:1px solid #4b73bd38;border-radius:50%;transform:perspective(70px) rotateX(45deg);background:#4079b316;box-shadow:0 0 20px #4396cf13;z-index:-1}
.crew-art img{width:166px;height:166px;object-fit:contain;position:relative;filter:drop-shadow(0 7px 12px #0008);animation:foreman-idle calc(10s / var(--ui-motion-speed,.5)) ease-in-out infinite}
.crew-glow{position:absolute;width:110px;height:110px;background:radial-gradient(circle,#6558de30,transparent 70%);left:50%;top:24px;transform:translateX(-50%);z-index:-1}
.crew-label{display:flex;align-items:center;gap:5px;font:8px/1.5 var(--mono);letter-spacing:.6px;color:#8fc9ed;margin-bottom:8px}
.crew-label i{width:4px;height:4px;border-radius:50%;background:#5acbeb;box-shadow:0 0 7px #44aefb88}
.help-card strong{font-size:12px;font-weight:650;color:#eaf1fd}
.help-card p{color:#9aadc7;font-size:10px;line-height:1.75;margin:7px 0 13px}
.help-card button{font-size:10px;color:#ffb171;border-top:1px solid #33425b;padding-top:10px}
.topbar{background:#0e1520d9;border-color:#273346;backdrop-filter:blur(14px)}
.breadcrumb{color:#92a3bc;font-size:11px}
.breadcrumb>span[data-icon]{color:#8fa4c1}
.breadcrumb strong{color:#dbe7f7}
.crumb-slash{color:#53637d}
.demo-label{color:#c4d3e8;border-color:#40516a;background:#192438;border-radius:4px;font-family:var(--mono);letter-spacing:.4px}
.save-indicator{color:#a2b5c8}
.save-indicator i{background:#69daa1;box-shadow:0 0 7px #5de4a166}
.help-top{color:#9ab2d0!important}
main{padding-top:30px}
.page-heading{margin-bottom:24px}
.eyebrow{color:#ffad69;font-family:var(--mono);font-size:9px;letter-spacing:1px;display:flex;align-items:center;gap:8px;margin-bottom:8px}
.eyebrow::before{content:"";width:11px;height:3px;display:inline-block;background:#ff913d;box-shadow:4px 0 9px #ff913d35;flex-shrink:0}
h1{color:#f5f7fc;font-size:29px;letter-spacing:-.9px;font-weight:750}
.page-heading p{color:#a5b6cd;font-size:12px;margin-top:8px}
.button{background:#1b283a;border-color:#3c4d66;color:#e1ebfb;border-radius:6px;font-weight:600}
.button:hover{background:#25354c;border-color:#526986}
.button.primary{background:#ff913d;border-color:#ffac68;color:#17120e;font-weight:700;box-shadow:0 3px 14px #ff913d1a}
.button.primary:hover{background:#ffa45b;border-color:#ffc18a;box-shadow:0 3px 19px #ff913d2b}
.button.primary:active{background:#f3822e}
.stats{gap:14px}
.stat-card{background:linear-gradient(125deg,#182232,#121c2a);border-color:#2d3b50;border-radius:7px;position:relative;overflow:hidden;min-height:90px;padding:15px 17px}
.stat-card::after{content:"";position:absolute;right:0;top:0;width:24px;height:3px;background:#5bdfa5;opacity:.8}
.stat-card:nth-child(2)::after{background:#ffae4e}
.stat-card:nth-child(3)::after{background:#6fafff}
.stat-card:nth-child(4)::after{background:#b89eff}
.stat-icon{width:38px;height:38px;border-radius:7px;background:#123529;color:#70f2b2;border-color:#286649}
.stat-card:nth-child(2) .stat-icon{color:#ffb668;background:#3b2919;border-color:#6d4a27}
.stat-card:nth-child(3) .stat-icon{color:#7ab9ff;background:#192e4b;border-color:#355981}
.stat-card:nth-child(4) .stat-icon{color:#c0a7ff;background:#2b2345;border-color:#524178}
.stat-title{font-size:11px;color:#adbed5;line-height:1.4}
.stat-value{font-family:var(--mono);font-size:28px;font-weight:700;color:#f7f9ff;line-height:1.25;margin-top:3px;letter-spacing:-1px}
.stat-value small{font-family:var(--font);font-size:10px;color:#9cb0c8;letter-spacing:0}
.schedule-card{background:#121b29;border-color:#37465c;border-radius:7px;box-shadow:0 8px 35px #0002,inset 0 1px #6b83a210}
.calendar-toolbar{padding-top:19px;padding-bottom:18px;background:linear-gradient(115deg,#182334,#131d2c)}
.month-label{font-size:18px;color:#eaf2ff;letter-spacing:-.3px;font-weight:700}
.icon-button{color:#a8bdd7;border-radius:5px}
.icon-button:hover{background:#2c3a50;color:#fff0da}
.today-button{color:#d4e1f4;background:#202d41;border-color:#40536e}
.view-switch{background:#0c1421;border-color:#2e3c52;border-radius:6px;gap:3px}
.view-switch button{color:#9bb0cb;border-radius:4px;font-size:11px}
.view-switch button.active{color:#ffb16f;background:#38281d;box-shadow:inset 0 0 0 1px #b572374f;font-weight:650}
.view-switch button:not(.active):hover{background:#1a2840;color:#dceaff}
.filter-toolbar{background:#131d2c;padding-bottom:18px}
.select-wrap,.search-field{border-color:#374860;background:#0d1623;border-radius:5px}
.select-wrap>span:first-child{color:#91abc9}
.select-wrap select{color:#cfdef1;font-size:11px}
.select-wrap>span:last-child{color:#92a9c6}
.search-field>span{color:#9ab0cd}
.search-field input{color:#eff4ff}
.search-field input::placeholder{color:#97a9c3}
.search-field kbd{color:#9caec9;background:#1c293d;border-color:#3a4b68}
.search-field:focus-within,.select-wrap:focus-within{border-color:#71d5f4;box-shadow:0 0 0 2px #71d5f41c}
.toolbar-divider{background:#35465e}
.text-button{color:#b2c6df;font-weight:550}
.text-button:hover{color:#ffb97e}
.calendar-scroll{scrollbar-color:#536782 #0d1522}
.cal-header{background:#162236;border-color:#35475e}
.machine-heading{background:#182538;border-color:#40506a;color:#becce2;font-family:var(--mono);font-size:10px;letter-spacing:.7px}
.machine-heading small{color:#9fb1cc;font-family:var(--font);font-size:9px;letter-spacing:0}
.date-heading{border-right-color:#2e3c51;background:#152134;color:#d2def1}
.date-heading>small{color:#99adc8;font-size:9px}
.date-heading .date-num{color:#e3edfc;font-family:var(--mono);font-size:12px;font-weight:600;border-radius:5px}
.date-heading.weekend{background:#101b2c}
.date-heading.weekend>small{color:#8197b6}
.date-heading.weekend .date-num{color:#a1b5d1}
.date-heading.is-today{background:#3c2b1b;border-color:#785635}
.date-heading.is-today .date-num{background:#ff913d;color:#1e140c;box-shadow:0 0 16px #ff913d2e;font-weight:750}
.date-heading.is-today>small{color:#ffbc89}
.mini-month{background:#233752;color:#b9dcff;top:0;font-size:7px;border-radius:2px;padding:0 1px}
.machine-row{border-color:#354256}
.machine-label{background:#172232;border-color:#40506a}
.machine-number{background:#24334a;border-color:#435571;color:#c4d5eb;border-radius:5px;font-family:var(--mono);font-size:11px}
.machine-name{color:#e8f0fc;font-family:var(--mono);font-size:13px;font-weight:700;letter-spacing:-.3px}
.machine-model{color:#a0b4ce;font-size:9px}
.machine-model i{background:#83a6c5}
.shift-labels{color:#ffc36b}
.shift-labels>span:nth-child(2){color:#99baff}
.shift-track{background:#101b29}
.shift-track.night{background:#0c1421;border-top-color:#354057}
.day-cell{border-right-color:#27364a}
.day-cell.weekend{background:#19243770}
.day-cell.is-today{background:#ff913d0a;border-left-color:#ffb06724;border-right-color:#ffb06732}
.day-cell:hover{background:#6bd8ff19;box-shadow:inset 0 0 0 1px #6bd8ff48}
.day-cell:hover:after{color:#8fdfff;font-weight:500}
.day-cell.selected{background:#cc722a3d!important;box-shadow:inset 0 2px #ffb06d,inset 0 -2px #ffb06d}
.event{font-size:11px;font-weight:600;border-radius:4px;border-width:1px;box-shadow:inset 0 1px #ffffff12}
.event small{font-size:9px;opacity:.85;font-weight:400}
.event:hover{filter:brightness(1.14);box-shadow:0 0 11px #acc6ff16;border-color:currentColor}
.color-green{--bar-bg:#176447;--bar-border:#369b6d;background:var(--bar-bg);color:#d8ffee;border-color:var(--bar-border)}
.color-blue{--bar-bg:#264d93;--bar-border:#4e7fd1;background:var(--bar-bg);color:#e5f0ff;border-color:var(--bar-border)}
.color-purple{--bar-bg:#663d94;--bar-border:#9263c5;background:var(--bar-bg);color:#f3e8ff;border-color:var(--bar-border)}
.color-amber{--bar-bg:#83541a;--bar-border:#c18c35;background:var(--bar-bg);color:#fff2ce;border-color:var(--bar-border)}
.color-teal{--bar-bg:#155c6d;--bar-border:#378fa1;background:var(--bar-bg);color:#d6fdff;border-color:var(--bar-border)}
.color-rose{--bar-bg:#87404e;--bar-border:#c07180;background:var(--bar-bg);color:#ffeff2;border-color:var(--bar-border)}
.color-slate{--bar-bg:#40516b;--bar-border:#748baa;background:var(--bar-bg);color:#edf4ff;border-color:var(--bar-border)}
.color-lime{--bar-bg:#4a6023;--bar-border:#819a3d;background:var(--bar-bg);color:#f0ffd4;border-color:var(--bar-border)}
.event.maintenance{--bar-bg:repeating-linear-gradient(135deg,#483318,#483318 5px,#382813 5px,#382813 8px);--bar-border:#bd8f42;background:var(--bar-bg);color:#ffe2a1;border-color:var(--bar-border)}
.calendar-footer{border-color:#354256;background:#151f2e;color:#b0c2da;font-size:10px}
.legend-dot.production{background:#55c993;box-shadow:0 0 6px #55c99325}
.legend-dot.maintenance{background:#e1ad55}
.legend-free{background:#101b29;border-color:#6b7f9b}
.calendar-hint{color:#9eb3d0;font-size:9px}
.under-calendar{color:#91a8c4;font-size:10px;padding-top:14px}
.under-calendar>span:first-child>span{color:#ffbb71}
.app-footer{color:#8297b5;font-size:9px;padding-top:3px}
.footer-brand{color:#a6b7ce}
.app-footer>span:last-child{color:#8b9fb9}
.list-card{background:#121c2a;border-color:#33465f;border-radius:7px}
.list-toolbar{border-color:#33445d}
.list-toolbar strong{color:#e5edf9}
.part-row{border-color:#2c3b51}
.part-row:not(.part-heading):hover{background:#18263a}
.part-heading{background:#1b293d;color:#b2c4df;font-family:var(--mono);font-size:9px;letter-spacing:.3px}
.part-info strong{color:#e8effc}
.part-info small{color:#99b1d0}
.part-swatch{border:1px solid;border-radius:6px}
.part-meta{color:#a1b6d2}
.machines-grid{gap:16px}
.machine-card{background:linear-gradient(135deg,#182538,#101b2b);border-color:#34475e;border-radius:7px;box-shadow:0 2px 12px #0002}
.machine-card-top h3{color:#e9f3ff;font-family:var(--mono)}
.machine-card-top p{color:#9bb4d4}
.machine-status{background:#123527;color:#86f0b6;border:1px solid #326849;border-radius:4px}
.machine-status.free{background:#1b2c42;color:#a9c2e2;border-color:#425c7e}
.machine-status.service{background:#3d2c15;color:#ffd18a;border-color:#715329}
.machine-current{color:#d8e7fc}
.machine-card-bottom{color:#a0b5d3;border-color:#32465f}
.machine-card-bottom button{color:#ffb477}
.empty-state{background:#111c2b;color:#adbed6}
.empty-state strong{color:#edf3fc}
.overlay{background:#03060bbd;backdrop-filter:blur(5px)}
.drawer{background:#111c2a;box-shadow:-12px 0 50px #0006;border-left:1px solid #3c4e68}
.drawer-header{border-color:#34465f;background:#162235}
.drawer h2,.modal-header h2{color:#edf4ff}
.field-label{color:#c2d3eb;font-size:12px}
.optional{color:#97adc9}
.form-control{border-color:#415571;background:#0b1523;color:#e3edff;border-radius:6px}
.form-control::placeholder{color:#8fa5c2}
.type-switch{border-color:#344761;background:#0a1422;border-radius:6px}
.type-switch button{color:#a4bad6}
.type-switch button.active{background:#203850;color:#89ddff;box-shadow:inset 0 0 0 1px #4e8ba845}
.inline-button{color:#ffba7f}
.date-fields>div label{color:#a4bbd8}
.date-fields>span{color:#8ba3c3}
.shift-options label>span{border-color:#3a4d69;color:#afc3e0;background:#111d2f;border-radius:6px}
.shift-options input:checked+span{color:#ffc18a;border-color:#b77d41;background:#38281b}
.job-summary{background:#1b2a40;color:#b2c8e4;border:1px solid #2c4565}
.job-summary strong{color:#e0eeff}
.quantity-input>span{color:#a9bfdc}
.drawer-actions{border-color:#374a64;background:#142135}
.drawer-actions .danger{color:#ff9e93}
.drawer-actions .danger:hover{background:#4e2730}
.conflict-box{background:#342813;border-color:#80602b;color:#ffda98}
.conflict-box input{accent-color:#ffb553}
.form-error{color:#ffa19b}
.modal{background:#152235;border:1px solid #3d5370;border-radius:9px;box-shadow:0 20px 80px #0009}
.color-choice{border-color:#ffffff20}
.color-choice.active{outline-color:#ffbf88}
.help-intro{color:#aec4e0}
.help-step>span{background:#3f2c1b;color:#ffb57d;border:1px solid #7e552d;border-radius:6px;font-family:var(--mono)}
.help-step strong{color:#e7f1ff}
.help-step p{color:#a8bedc}
.help-note{background:#0d192b;color:#a8bfdf;border:1px solid #304967}
.toast{background:#192d29;color:#ddfff1;border:1px solid #408c6b;border-radius:6px;box-shadow:0 7px 35px #0005}
.toast button{color:#ffbc8a}
.toast.error{background:#4d2630;border-color:#bc6e79;color:#ffdfdf}
.event.drag-preview{box-shadow:0 0 20px #6ee5ff36;border-color:#bdedff}
.event.drag-preview.invalid{background:#6b2d33;color:#ffe4e4;border-color:#ff8888}
.shift-track.drop-target{box-shadow:inset 0 0 0 1px #73c6dd;background:#1b405b66}
.shift-track.drop-target.invalid{box-shadow:inset 0 0 0 1px #d88989;background:#632e3944}
.gesture-intro{color:#abc1df}
.gesture-destination{background:#122c3c;border-color:#2e6075;color:#c5eaff}
.gesture-conflicts{background:#3d2e16;color:#ffda93;border:1px solid #71552a}
@keyframes foreman-idle{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media(min-width:1600px){.stat-card{min-height:94px}.crew-art{height:176px}.crew-art img{width:180px;height:180px}}
@media(max-width:1150px){.brand{font-size:29px}.nav-item{font-size:11px}.stat-title{font-size:10px}.stat-value{font-size:25px}.stat-icon{width:32px;height:34px}.crew-art{height:144px}.crew-art img{width:148px;height:148px}.crew-label{font-size:7px;letter-spacing:.4px}.help-card{padding-left:11px;padding-right:11px}.help-card strong{font-size:11px}.help-card p{font-size:9px}.month-label{font-size:16px}}
@media(max-width:800px){.nav-item{font-size:0}.brand{padding:0}.stat-icon{display:none}.stat-title{font-size:10px}.stat-value{font-size:24px}.stat-card{min-height:80px;padding:12px}.topbar{background:#0d1521}.crew-art img{animation:none}.calendar-footer{font-size:9px}.page-heading h1{font-size:24px}}
@media(max-width:560px){.sidebar::before{height:58px;bottom:auto}.brand{font-size:24px}.brand-mark{width:28px;height:28px;border-radius:5px}.nav-item{width:36px}.page-heading h1{font-size:25px}.page-heading p{font-size:11px}.stat-card{min-height:72px;padding:10px 12px}.stat-title{font-size:10px}.stat-icon{display:grid;width:28px;height:28px}.stat-value{font-size:24px}.calendar-toolbar{padding-top:15px;padding-bottom:14px}.view-switch button{font-size:11px}.month-label{font-size:16px}.calendar-footer{font-size:8px}.under-calendar{font-size:8px}.machine-name{font-size:11px}.machine-number{font-size:9px}.eyebrow{font-size:8px;letter-spacing:.7px}.app-footer{font-size:8px}.modal{border-radius:8px}}
@media(prefers-reduced-motion:reduce){.crew-art img{animation:none}}
@media(max-height:800px) and (min-width:801px){.crew-art{height:115px}.crew-art img{width:123px;height:123px}.help-card p{margin-top:5px;margin-bottom:10px}.brand{margin-bottom:24px}.workspace{margin-bottom:20px}}
@media(max-height:660px) and (min-width:801px){.crew-art{height:82px}.crew-art img{width:92px;height:92px}.help-card p{display:none}.help-card button{margin-top:9px}.help-card{margin-bottom:11px}.sidebar{padding-top:20px}.brand{margin-bottom:20px}}
@media print{body{color:#111;background:#fff}:root{color-scheme:light}.help-card{display:none}.page-heading h1,.page-heading p,.eyebrow,.stat-title,.stat-value,.month-label,.machine-name,.machine-model,.machine-number,.date-heading .date-num,.date-heading>small{color:#222}.schedule-card,.cal-header,.machine-label,.machine-heading,.date-heading,.shift-track,.shift-track.night,.day-cell.weekend,.calendar-footer,.stat-card{background:#fff;border-color:#bbb;color:#333}.event{print-color-adjust:exact;-webkit-print-color-adjust:exact}.under-calendar{color:#444}}
@media(max-width:1150px) and (min-width:561px){.brand .brand-wordmark{font-size:14px;letter-spacing:-.4px}}
