/* R4P / Fluent 2 — material layer. Structure and flow stay in styles.css. */
:root {
  --font:'Segoe UI Variable','Segoe UI',Inter,system-ui,sans-serif;
  --bg:#e9edf3; --bg-top:#f4f6fa; --panel:#ffffff; --solid:#fff;
  --chrome:rgba(250,252,255,.72); --field:#fff;
  --text:#202832; --secondary:#4d5968; --muted:#626f7e;
  --line:#e2e7ed; --strong:#c3cbd5; --inset:#f4f6f9; --inset-strong:#e9edf3;
  --ink:#0f6cbd; --on-ink:#fff; --accent:#0f6cbd; --accent-soft:#e8f2fc;
  --green:#107443; --green-fill:#12804a; --green-soft:#e5f3ec;
  --amber:#875400; --amber-fill:#b77908; --amber-soft:#fff2d6;
  --red:#b4232b; --red-fill:#c4313d; --red-soft:#fcebed;
  --vac:#12649f; --grip:#7151a8;
  --belt:#dce3ea; --slat:rgba(76,98,122,.13); --product:#fff; --product-edge:rgba(65,82,104,.26); --scan:rgba(15,108,189,.09);
  --radius-sm:6px; --radius-control:8px; --radius-card:14px; --radius-inset:10px;
  --space:18px; --header-height:76px; --rail-width:100px;
  --shadow:0 2px 5px rgba(29,49,74,.04),0 8px 20px rgba(29,49,74,.035);
  --dialog-shadow:0 24px 70px -12px rgba(26,42,64,.28),0 3px 12px rgba(26,42,64,.07);
  --glass-edge:rgba(255,255,255,.85); --glass-sheen:rgba(255,255,255,.55);
  --glass-floating:rgba(252,253,255,.92);
}
:root[data-theme=dark] {
  --bg:#15191f; --bg-top:#1e252e; --panel:#222933; --solid:#262e39;
  --chrome:rgba(29,36,46,.76); --field:#1a212a;
  --text:#f1f4f8; --secondary:#c0cad6; --muted:#a7b4c4;
  --line:#36414e; --strong:#536171; --inset:#1d252f; --inset-strong:#303c4b;
  --ink:#80beef; --on-ink:#102334; --accent:#80beef; --accent-soft:#243e53;
  --green:#80d6a6; --green-fill:#197b4c; --green-soft:#213e32;
  --amber:#f0c779; --amber-fill:#c3943e; --amber-soft:#443824;
  --red:#ffabb0; --red-fill:#b72f3c; --red-soft:#4a2b33;
  --vac:#8fc8ee; --grip:#c6b3ed;
  --belt:#333e4b; --slat:rgba(193,213,234,.12); --product:#bdcbd9; --product-edge:rgba(8,14,22,.5); --scan:rgba(102,181,242,.12);
  --shadow:0 2px 5px rgba(0,0,0,.1),0 8px 20px rgba(0,0,0,.08);
  --dialog-shadow:0 24px 70px -12px rgba(0,0,0,.55),0 3px 12px rgba(0,0,0,.15);
  --glass-edge:rgba(207,226,250,.13); --glass-sheen:rgba(190,217,250,.045);
  --glass-floating:rgba(35,44,56,.94);
}
html{background:var(--bg);scrollbar-color:var(--strong) var(--bg)}
body{background:linear-gradient(125deg,var(--bg-top),var(--bg) 75%);background-attachment:fixed;font-size:14px}
::selection{background:var(--accent-soft);color:var(--accent)}
input{caret-color:var(--accent)}
h1{font-size:28px;font-weight:650;letter-spacing:-.025em}
h2,h3{font-weight:600;letter-spacing:-.015em}
.header{gap:20px;background:linear-gradient(115deg,var(--glass-sheen),transparent 58%),var(--chrome);border-bottom:1px solid var(--glass-edge);box-shadow:0 1px 0 var(--line),0 5px 22px rgba(24,45,72,.025);backdrop-filter:blur(26px) saturate(1.3);-webkit-backdrop-filter:blur(26px) saturate(1.3)}
.brand img{width:60px;opacity:1}
.client-brand{border:0;border-left:1px solid var(--line);border-radius:0;font-size:10px;letter-spacing:.08em;padding:6px 16px;margin-left:-10px}
.line-state{background:var(--state-soft);color:var(--state-text);border:1px solid color-mix(in srgb,var(--state-text) 16%,transparent);min-height:46px;padding:5px 14px 5px 6px;border-radius:10px}
.line-state .state-icon{background:var(--state-fill);color:var(--state-on);border-radius:7px;width:30px;height:30px}
.line-state strong{font-weight:650;font-size:15px}
.line-state small{font-size:11px}
.header-recipe small,.clock small{font-size:11px}
.header-recipe strong{font-size:13px;font-weight:600}
.alarm-bell{width:40px;height:40px;border:0;background:var(--inset)}
.alarm-bell.has-alarms{background:var(--amber-soft)}
.alarm-bell .badge{min-width:17px;height:17px;font-size:10px;background:var(--amber);color:var(--solid);outline:2px solid var(--bg-top)}
.alarm-bell.critical .badge{background:var(--red-fill);color:#fff}
.clock strong{font-size:16px;letter-spacing:.01em}
.avatar{background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:600}
.user-name strong{font-size:13px;font-weight:600}
.user-name small{font-size:11px}
.language select{background:transparent;border-color:var(--line);height:38px;font-size:13px}
.rail{padding:20px 9px;gap:10px;background:linear-gradient(180deg,var(--glass-sheen),transparent 70%),var(--chrome);border-right:1px solid var(--glass-edge);box-shadow:1px 0 0 var(--line);backdrop-filter:blur(26px) saturate(1.25);-webkit-backdrop-filter:blur(26px) saturate(1.25)}
.nav-item{border-radius:10px;min-height:70px;font-size:11px;font-weight:500;gap:7px}
.nav-item .settings-label{font-size:10px}
.nav-item .icon{width:23px;height:23px}
.nav-item[aria-current=page]{background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 1px 0 var(--glass-edge)}
.nav-item[aria-current=page]::before{left:0;width:3px;top:24px;bottom:24px;background:var(--accent);border-radius:3px}
.nav-item .badge{right:11px;top:9px;min-width:16px;height:16px;font-size:10px;background:var(--amber-soft);color:var(--amber)}
main{padding:24px 28px 0}
.card{border:0;background:var(--panel);box-shadow:var(--shadow);padding:22px}
.card-heading{margin-bottom:18px}
.card-heading h2{font-size:15px}
.page-heading{margin:6px 0 26px}
.page-heading p{font-size:14px;color:var(--muted)}
.footer{border:0;margin-top:26px;font-size:11px;color:var(--muted);padding-top:10px}
/* Official Fluent buttons keep native Fluent states, size, focus and disabled behavior. */
fluent-button.button{font-family:var(--font);min-height:44px;height:auto;gap:8px;padding:0 15px;border-radius:var(--radius-control);font-size:13px;font-weight:600;line-height:1.3;--borderRadiusMedium:8px;--fontFamilyBase:var(--font);--fontSizeBase300:13px;--fontWeightSemibold:600}
fluent-button.button .icon{width:18px;height:18px}
fluent-button.button.primary{--colorBrandBackground:var(--ink);--colorNeutralForegroundOnBrand:var(--on-ink)}
fluent-button.button.go{--colorBrandBackground:var(--green-fill);--colorBrandBackgroundHover:color-mix(in srgb,var(--green-fill) 85%,#000);--colorBrandBackgroundPressed:color-mix(in srgb,var(--green-fill) 75%,#000);--colorNeutralForegroundOnBrand:#fff}
fluent-button.button.danger{--colorBrandBackground:var(--red-fill);--colorBrandBackgroundHover:color-mix(in srgb,var(--red-fill) 85%,#000);--colorBrandBackgroundPressed:color-mix(in srgb,var(--red-fill) 75%,#000);--colorNeutralForegroundOnBrand:#fff}
fluent-button.button.small{min-height:38px;padding:0 12px;font-size:12px}
fluent-button.button.large{min-height:46px;font-size:13px}
fluent-button.button.icon-only{width:40px;min-height:40px;padding:0}
fluent-button.button[disabled]{opacity:.48;cursor:not-allowed}
fluent-button.button.full{width:100%}
.link{font-size:12px;font-weight:600}
.kpi-grid{gap:18px;margin-bottom:20px}
.kpi-grid>.card{padding:22px;min-height:220px}
.metric-label{font-size:12px;font-weight:500;color:var(--secondary);gap:7px}
.metric-label .icon{width:17px;height:17px}
.metric-value{font-size:38px;font-weight:600;letter-spacing:-.04em;line-height:1.15;margin-top:10px}
.metric-value small{font-size:12px}
.metric-footer{font-size:11px}
.status-card{background:linear-gradient(130deg,color-mix(in srgb,var(--state-soft) 70%,var(--panel)),var(--panel));box-shadow:var(--shadow),inset 0 1px 0 var(--glass-edge);gap:14px}
.status-main{gap:12px}
.status-main>.state-icon{width:42px;height:42px;border-radius:10px;box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}
.status-main strong{font-size:25px;font-weight:600}
.status-main small{font-size:11px;margin-top:5px}
.status-facts{padding:10px 0;background:transparent;border-top:1px solid color-mix(in srgb,var(--state-text) 12%,transparent);border-radius:0}
.status-facts dt{font-size:11px}
.status-facts dd{font-size:13px;font-weight:600}
.meter{height:4px;background:var(--inset-strong)}
.meter span{background:var(--accent)}
.oee{gap:10px}
.oee>div{font-size:12px;row-gap:5px}
.oee small{font-size:10px}
.delta{font-size:10px;font-weight:600;padding:4px 7px;border-radius:5px;letter-spacing:0;margin-left:8px}
.chart-axis{font-size:10px;margin-top:6px}
.goal small{font-size:10px;background:var(--panel)}
.plot{gap:5px;border:0}
.plot span{border-radius:3px 3px 0 0;background:color-mix(in srgb,var(--accent) 28%,var(--panel))}
.plot span.now{background:var(--accent);opacity:.78}
.hourly{min-height:65px;margin-top:16px}
.spark.low .line{stroke:var(--amber-fill);stroke-width:1.6}
.spark.low .area{fill:color-mix(in srgb,var(--amber-fill) 7%,transparent)}
.home-grid{gap:20px;grid-template-columns:minmax(0,1fr) 300px}
.home-aside{gap:20px}
.count-pill{background:var(--inset);border-radius:6px;font-size:11px;min-height:28px}
.count-pill.warn{background:var(--amber-soft)}
.machine{padding:16px;gap:16px;background:var(--inset);border:1px solid var(--line);border-radius:10px}
.lane-caption{font-size:12px;gap:8px}
.lane-name{font-size:12px}
.lane-speed{font-size:12px}
.lane-caption .chip{font-size:10px;padding:3px 7px}
.conveyor{height:46px;border-color:var(--strong);border-radius:8px}
.camera{border:0;border-radius:7px;padding:5px 10px;min-height:34px;gap:7px;box-shadow:0 2px 7px rgba(20,36,54,.16)}
.camera.warn,.camera.fault{border-width:1px}
.camera:hover{transform:translateY(-50%);box-shadow:0 3px 10px rgba(20,36,54,.2)}
.camera b{font-size:11px}.camera small{font-size:10px}
.camera .icon{width:17px;height:17px}
.robots{gap:8px}
.robot{border:1px solid var(--line);border-radius:9px;box-shadow:none;background:var(--panel);transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.robot:hover{background:var(--solid);border-color:var(--accent);box-shadow:0 3px 10px rgba(24,45,72,.08)}
.robot-id{font-size:12px;font-weight:650;padding-left:7px}
.robot-id::after{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--m);margin:0 0 2px 7px}
.robot-tool{font-size:10px;padding:4px 7px;gap:3px;border-radius:5px}
.robot-tool .icon{width:13px;height:13px}
.robot-tool.vac,.robot-tool.grip{background:transparent}
.robot-rate{font-size:11px}
.robot .chip{font-size:10px;padding:2px 0;background:transparent}
.robot.fault{border:1px solid var(--red-fill);background:var(--red-soft);box-shadow:none}
.robot.off{border-style:dashed}
.robot::before,.robot::after{height:16px}
.robot::before{top:-17px}.robot::after{bottom:-17px}
.legend{font-size:10px;gap:8px 13px;margin-top:17px}
.legend i{width:5px;height:5px}
.legend-hint{font-size:10px}
.legend-tool .icon{width:13px;height:13px}
.chip{border-radius:5px;font-size:11px;font-weight:600}
.mini-alarm{border:1px solid color-mix(in srgb,var(--amber-fill) 20%,transparent);background:color-mix(in srgb,var(--amber-soft) 48%,var(--panel));min-height:86px;border-radius:8px;padding:12px;gap:10px}
.mini-alarm.critical{background:var(--red-soft);border-color:color-mix(in srgb,var(--red-fill) 30%,transparent)}
.mini-alarm.critical>.icon:first-child{color:var(--red)}
.mini-alarm strong{font-size:12px;line-height:1.5}
.mini-alarm small{font-size:11px}
.recipe-summary{gap:10px;margin:8px 0 18px}
.recipe-summary>span:first-child{width:36px;height:36px;background:var(--accent-soft);color:var(--accent);border-radius:8px}
.recipe-summary strong{font-size:14px;font-weight:600}
.recipe-summary small{font-size:11px}
.specs>div{font-size:12px;padding:14px 0}
.specs dd{font-weight:600}
/* Fluent selection, understated dividers and one consistent input family. */
.library-item{border-radius:8px;padding:14px 12px}
.library-item.selected{background:var(--accent-soft);border-color:transparent;box-shadow:inset 3px 0 var(--accent)}
.library-item.selected strong{color:var(--accent)}
.editor{padding:0}
.editor-header{padding:24px}
.editor-header h2{font-size:22px;font-weight:600}
.tabs{padding:0 24px;gap:12px}
.tabs button{font-size:14px;font-weight:500;padding:12px 10px}
.tabs button[aria-selected=true]{color:var(--accent);font-weight:600}
.tabs button[aria-selected=true]::after{background:var(--accent);height:3px;left:10px;right:10px;bottom:0;border-radius:3px}
.editor-footer{background:var(--inset);padding:18px 24px}
.notice{border:1px solid var(--line);font-size:13px;background:var(--inset);border-radius:8px}
.notice.warn{border-color:color-mix(in srgb,var(--amber-fill) 18%,transparent)}
.notice.fault{border-color:color-mix(in srgb,var(--red-fill) 18%,transparent)}
.field>label,.field>span:first-child{font-size:13px;font-weight:600}
input:not([type=checkbox]),select{border-radius:6px;border-color:var(--strong);border-bottom-color:var(--secondary);height:44px;font-size:14px}
input:not([type=checkbox]):focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.stepper{border-radius:6px;border-color:var(--strong);border-bottom-color:var(--secondary);height:46px}
.stepper input{height:44px;border:0;font-size:16px}
.stepper button{height:44px;background:transparent}
.stepper .suffix{font-size:12px}
.field .hint{font-size:12px}
.switch{height:24px;width:44px;background:transparent}
.switch::before{width:16px;height:16px;top:3px;left:3px;background:var(--secondary);box-shadow:none}
.switch:checked::before{transform:translateX(20px);background:#fff}
.toggle-row strong,.setting-row strong{font-size:14px}
.toggle-row label>span,.setting-row span.description{font-size:13px}
.segmented{padding:3px;border-radius:9px;background:var(--inset-strong);gap:3px}
.segmented button{border-radius:6px;font-size:13px;min-height:38px}
.segmented button[aria-selected=true],.segmented button[aria-checked=true]{color:var(--accent);box-shadow:0 1px 4px rgba(22,42,63,.1)}
.unit{border-radius:7px;background:var(--inset)}
.unit[aria-checked=true]{box-shadow:inset 0 -2px var(--accent)}
.quick-ranges button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}
.alarm-row{border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0;padding:22px 16px}
.alarm-row.critical{border-left:0}
.alarm-row strong{font-size:14px;font-weight:600}
.alarm-row small{font-size:12px}
.severity{border-radius:5px;font-size:11px}
.alarm-summary>span{border-color:var(--line);font-size:12px}
.alarm-summary b{font-size:16px;font-weight:600}
th{font-size:12px;background:var(--inset);font-weight:600}
td{font-size:13px}
.module-card .module-icon{background:var(--accent-soft);color:var(--accent);border-radius:8px}
.module-card h3{font-size:15px}
.module-card p{font-size:12px}
.level-scale .current{border-width:1px;box-shadow:inset 0 -2px var(--accent)}
/* Glass is limited to floating UI, where content passes behind the material. */
#dialog,.account-menu{background:linear-gradient(135deg,var(--glass-sheen),transparent 60%),var(--glass-floating);border:1px solid var(--glass-edge);border-radius:16px;box-shadow:var(--dialog-shadow);backdrop-filter:blur(32px) saturate(1.35);-webkit-backdrop-filter:blur(32px) saturate(1.35)}
#dialog::backdrop{background:rgba(16,29,47,.24);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.dialog-header h2{font-size:23px;font-weight:600;letter-spacing:-.025em}
.dialog-actions{background:transparent}
.account-menu{padding:22px}
.detail-grid dt,.account-facts dt{font-size:11px}
.detail-grid dd{font-size:16px;font-weight:600}
.recovery-steps li{border-radius:8px}
#toast{border:1px solid var(--glass-edge);background:var(--glass-floating);color:var(--text);box-shadow:var(--dialog-shadow);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-radius:10px}
@media(min-width:1101px){.robot{padding-top:34px;gap:7px}.robot-id{top:12px}.robot .machine-robot{max-width:142px}.synoptic{padding:22px}.home-aside>.card:last-child>.button{margin-top:auto}.home-aside>.card:last-child{padding-bottom:20px}}
@media(min-width:1600px){main{padding:28px 32px 0}.home-grid{grid-template-columns:minmax(0,1fr) 320px}.kpi-grid>.card{min-height:244px}.machine{padding:18px;gap:18px}.robot{padding-top:34px;padding-bottom:14px}.robot .machine-robot{max-width:154px}.robot-id{font-size:13px}.robot-tool,.robot-rate{font-size:12px}.robot .chip{font-size:11px}.home-grid{min-height:492px}}
@media(max-width:1390px){.header{gap:14px}.home-grid{grid-template-columns:minmax(0,1fr) 270px}.kpi-grid{gap:14px}.kpi-grid>.card{padding:18px}.metric-value{font-size:34px}.delta{display:flex;width:max-content;margin:6px 0 0}.status-main strong{font-size:22px}.home-grid{gap:16px}.home-aside{gap:16px}.home-aside .card{padding:18px}.synoptic{padding:18px}}
@media(max-width:1100px){main{padding:22px 22px 0}.home-grid{grid-template-columns:1fr}.kpi-grid>.card{min-height:220px}.home-aside{grid-template-columns:1fr 1fr}.delta{display:inline-flex;margin-left:8px}.machine{padding:16px}.robot{padding:10px 4px}.robot-id{position:static}.header{gap:12px}.rail{padding:16px 8px}.settings-grid{grid-template-columns:1fr}}
@media(max-width:760px){:root{--rail-width:90px;--header-height:70px}.header{gap:10px}.card{padding:18px}.kpi-grid>.card{padding:16px}.metric-value{font-size:31px}.delta{display:flex;margin:6px 0 0}.status-main{gap:8px}.status-main strong{font-size:21px}.status-main>.state-icon{width:34px;height:38px}.machine{padding:12px}.home-aside{grid-template-columns:1fr 1fr}.editor{padding:0}.editor-header{padding:18px}.editor-footer{padding:16px}.account-menu{padding:18px}.synoptic .card-heading{margin-bottom:14px}}
@media(max-width:560px){
  :root{--header-height:64px;--radius-card:12px;--radius-control:7px}
  .header{gap:7px;padding-right:10px}.brand{width:57px}.brand img{width:42px}
  .line-state{min-height:38px;padding:4px 8px 4px 4px;gap:7px;border-radius:8px}
  .line-state strong{font-size:12px}.line-state small{font-size:9px}.line-state .state-icon{width:25px;height:25px}
  .alarm-bell{width:34px;height:34px}.avatar{width:32px;height:32px;font-size:11px}.language{width:53px}.language select{height:34px;font-size:11px;padding-left:8px}
  .rail{left:9px;right:9px;bottom:calc(8px + env(safe-area-inset-bottom));padding:5px;gap:3px;border:1px solid var(--glass-edge);border-radius:16px;background:var(--chrome);box-shadow:0 5px 24px rgba(24,40,65,.15);backdrop-filter:blur(28px) saturate(1.5);-webkit-backdrop-filter:blur(28px) saturate(1.5)}
  .nav-item{min-height:53px;border-radius:10px;font-size:9px;gap:4px;padding:5px 1px}.nav-item .settings-label{font-size:8px}.nav-item .icon{width:20px;height:20px}.nav-item .badge{top:1px;right:8px;font-size:9px;min-width:14px;height:14px}
  main{padding:14px 12px calc(94px + env(safe-area-inset-bottom))}
  .kpi-grid{gap:10px;margin-bottom:14px}.kpi-grid>.card{border-radius:12px;padding:14px;min-height:192px}
  .metric-label{font-size:10px;gap:5px}.metric-value{font-size:30px;margin-top:9px}.metric-value small{font-size:10px}
  .metric-footer{font-size:10px;gap:4px}.metric-label .icon{width:14px;height:14px}
  .status-main{gap:7px}.status-main>.state-icon{width:30px;height:34px;border-radius:7px}.status-main strong{font-size:18px}.status-main small{font-size:9px}.status-card{gap:12px}
  .status-card fluent-button.button{padding:0 6px;min-height:42px;font-size:11px;--fontSizeBase300:11px}.status-card fluent-button.button .icon{width:15px;height:15px}
  .delta{font-size:9px;padding:3px 6px}.oee>div{font-size:10px}.oee .meter{height:3px}
  .home-grid{gap:14px}.home-aside{grid-template-columns:1fr;gap:14px}.card{padding:17px}.synoptic{padding:15px}.machine{padding:10px;gap:13px}.card-heading{margin-bottom:14px}.card-heading h2{font-size:14px}
  .count-pill{font-size:10px;padding:0 7px;min-height:27px}.counts{gap:5px}.lane-name,.lane-speed{font-size:10px}.lane-caption .chip{font-size:9px;padding:3px 5px}.lane-caption{gap:4px}.lane-name{gap:5px}
  .robot{border-radius:7px;padding:9px 6px}.robot-id{font-size:11px}.robot-tool{font-size:9px;padding:2px 0}.robot-rate{font-size:10px}.robot .chip{font-size:9px}.robot-id::after{width:4px;height:4px;margin-left:5px}
  .camera{left:6px;padding:4px 7px;min-height:32px}.out .camera{right:6px}.camera b{font-size:10px}.camera small{font-size:9px}
  .legend{font-size:9px;gap:7px 10px;margin-top:14px}.legend-hint{font-size:9px}.legend i{width:4px;height:4px}
  .page-heading{margin:4px 0 22px}.page-heading h1{font-size:26px}.page-heading p{font-size:12px}.page-actions{gap:8px}
  .editor{padding:0}.tabs{padding:0 12px;gap:2px}.tabs button{font-size:12px;padding:12px 8px}.editor-footer{padding:16px}.editor-footer fluent-button.button{font-size:11px;padding:0 10px;--fontSizeBase300:11px}
  .notice{padding:12px;font-size:12px}.notice>.button{margin-left:0}.critical-banner{padding:16px}.critical-banner .button{width:100%}
  .alarm-row{padding:16px 8px}.alarm-row>.cluster{gap:8px}.alarm-row>.cluster fluent-button.button{font-size:11px;padding:0 8px;--fontSizeBase300:11px}
  .module-card{padding:13px}.module-card .module-icon{width:29px;height:29px}.module-card .chip{font-size:9px}.module-card h3{font-size:13px}.module-card p{font-size:11px}
  .settings-card .segmented button{font-size:12px}.account-menu{border-radius:13px}.permissions li{font-size:12px}
  fluent-button.button{font-size:12px;padding:0 12px;--fontSizeBase300:12px}.dialog-header h2{font-size:21px}.dialog-actions{gap:8px}
}
@media(max-width:360px){.header{gap:5px;padding-right:7px}.brand{width:47px}.brand img{width:36px}.line-state{padding-right:6px;gap:5px}.line-state strong{font-size:11px}.language{width:49px}.avatar{width:28px;height:28px}.alarm-bell{width:31px}.kpi-grid>.card{padding:11px}.status-main>.state-icon{display:none}.status-main strong{font-size:19px}.metric-value{font-size:28px}.metric-footer{font-size:9px}.robot{grid-template-columns:45px minmax(0,1fr);padding:8px 5px;column-gap:3px}.robot-rate{font-size:9px}.robot-tool{font-size:8px}.robot .chip{font-size:8px}.lane-caption .chip{font-size:8px}.machine{padding:8px}.synoptic{padding:12px}.nav-item .settings-label{font-size:7.5px}}
:root[data-contrast=true]{--panel:var(--solid);--chrome:var(--solid);--glass-floating:var(--solid);--line:var(--strong);--secondary:var(--text);--muted:var(--text);--glass-sheen:transparent}
:root[data-contrast=true] :is(.header,.rail,#dialog,.account-menu,#toast){backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--solid)}
:root[data-contrast=true] .card{outline:1px solid var(--strong)}
@supports not (backdrop-filter:blur(1px)){.header,.rail,#dialog,.account-menu,#toast{background:var(--solid)}}
@media(prefers-reduced-transparency:reduce){.header,.rail,#dialog,.account-menu,#toast{background:var(--solid);backdrop-filter:none;-webkit-backdrop-filter:none}#dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){fluent-button{--durationNormal:0ms;--durationFast:0ms}}

svg.icon.fluent-icon{fill:currentColor;stroke:none}
fluent-button.button{min-width:0;max-width:100%;white-space:normal}
fluent-button.button::part(content){align-items:center;justify-content:center}
fluent-button.button.icon-only svg[slot=start]{margin:0}
fluent-button.button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* Mobile legibility floor: operational information remains readable on narrow HMIs. */
@media(max-width:560px){
  .nav-item,.nav-item .settings-label{font-size:10px;letter-spacing:-.025em}
  .metric-label,.metric-footer,.metric-value small,.status-main small,.delta,.oee>div,
  .count-pill,.lane-name,.lane-speed,.lane-caption .chip,.robot-tool,.robot-rate,.robot .chip,
  .camera b,.camera small,.legend,.legend-hint,.module-card .chip{font-size:11px}
  .metric-footer{flex-wrap:wrap;row-gap:3px}
  .status-main small{line-height:1.5}
  .status-main strong{line-height:1.2}
  .robot-tool{flex-wrap:wrap;white-space:normal;row-gap:1px}
  .robot-rate{white-space:normal;line-height:1.4}
  .robot .chip{white-space:normal;line-height:1.4}
  .legend{line-height:1.6}
  .line-state small{font-size:10px}
  .robot{min-height:104px}
}
@media(max-width:360px){
  .robot{grid-template-columns:34px minmax(0,1fr);column-gap:4px;padding:9px 6px}
  .robot-tool .icon{width:11px;height:11px}
  .status-main small{font-size:11px}
  .nav-item .settings-label{font-size:10px}
  .lane-caption{row-gap:6px}
}
