@font-face { font-family: "Mabry U"; src: url("/static/fonts/MabryU-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Mabry U"; src: url("/static/fonts/MabryU-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Mabry U"; src: url("/static/fonts/MabryU-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Mabry U"; src: url("/static/fonts/MabryU-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: #fff;
  --sidebar: #ededf0;
  --text: #1d1d1f;
  --muted: #68686d;
  --line: #e5e5ea;
  --accent: #0066cc;
  --accent-hover: #0055b3;
  --accent-soft: #e8f1fc;
  --green: #217a42;
  --red: #b42328;
  --shadow: 0 2px 8px #00000004, 0 0 1px #0000000d;
  font-family: "Mabry U", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.45; }
button, input, select, textarea { font: inherit; }
pre, code, kbd, samp { font-family: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); cursor: pointer; font-weight: 500; line-height: 1.3; transition: background .15s, border-color .15s; }
button:hover { background: #f0f0f3; }
button:active { background: #e7e7ed; }
button:disabled { opacity: .5; cursor: wait; }
:is(button, a, input, select, summary):focus-visible { outline: 3px solid #007aff80; outline-offset: 3px; }
input:not([type=checkbox]):not([type=color]), select { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #d8d8de; border-radius: 10px; background: var(--panel); color: var(--text); }
input::placeholder { color: #75757b; }
input[type=checkbox] { accent-color: var(--accent); width: 20px; height: 20px; flex-shrink: 0; }
input[readonly] { background: var(--bg); color: var(--muted); }
input[type=color] { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 5px; background: #fff; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.9px; font-weight: 700; margin: 8px 0; }
h2 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.35px; }
h3 { font-size: 14px; font-weight: 500; }
.icon { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 12px 18px; border-radius: 10px; background: var(--panel); color: var(--accent); }
.skip-link:focus { top: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; width: 232px; padding: 30px 16px 20px; background: var(--sidebar); border-right: 1px solid #dedee3; display: flex; flex-direction: column; }
.logo { display: flex; align-items: center; gap: 11px; padding: 0 9px; }
.logo-mark { width: 40px; height: 40px; display: grid; place-items: center; color: white; background: var(--text); border-radius: 12px; }
.logo-mark .icon { width: 24px; height: 24px; }
.logo-text { font-size: 16px; font-weight: 700; letter-spacing: -.45px; white-space: nowrap; }
.logo-text small { display: block; font-size: 10px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 3px; }
.nav-label { padding: 0 12px; font-size: 11px; font-weight: 500; color: var(--muted); margin: 36px 0 10px; }
.primary-nav { display: grid; gap: 5px; margin-top: 32px; }
.primary-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; border-radius: 10px; padding: 11px 12px; font-size: 13px; font-weight: 500; }
.primary-nav .icon { color: var(--muted); }
.primary-nav a:hover { background: #e1e1e7; }
.primary-nav a.active { background: #dbe9fc; color: #005bbd; }
.primary-nav a.active .icon { color: #005bbd; }
.sidebar-bottom { margin-top: auto; }
.workspace-note { color: var(--muted); font-size: 12px; padding: 16px 12px; }
.workspace-note small { display: block; margin-top: 4px; font-size: 11px; }
.user { display: flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid #d8d8de; }
.avatar { border-radius: 50%; width: 30px; height: 30px; background: #dddde3; color: #67676d; display: grid; place-items: center; flex-shrink: 0; }
.avatar .icon { width: 16px; height: 16px; }
.user-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout { margin-left: auto; padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
main { margin-left: 232px; padding: 34px 40px; max-width: 1770px; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .07em; }
.page-header p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.connection { display: flex; align-items: flex-end; flex-direction: column; gap: 10px; flex-shrink: 0; }
.badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 20px; padding: 7px 11px; color: var(--green); background: #eaf5ed; font-size: 12px; white-space: nowrap; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.pending { color: var(--muted); background: #e9e9ee; }
.badge.offline { color: var(--red); background: #fbecee; }
.notice { background: #fff5de; color: #805619; border: 1px solid #f0dfb8; padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.notice.success { color: var(--green); background: #eef8f0; border-color: #cfe6d5; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.panel-head .muted { display: block; margin-top: 5px; font-size: 12px; }
.tag { color: var(--muted); background: var(--bg); padding: 5px 9px; border-radius: 7px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.tag:empty { display: none; }
.small-note { color: var(--muted); font-size: 12px; line-height: 1.7; }
.primary, .save-primary { color: white; background: var(--accent); border-color: var(--accent); font-weight: 500; }
.primary:hover, .save-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.primary:active, .save-primary:active { background: #004c99; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
th { color: var(--muted); font-size: 11px; font-weight: 500; padding: 0 12px 12px 0; }
td { border-top: 1px solid var(--line); padding: 14px 12px 14px 0; }
td:nth-child(2) { font-variant-numeric: tabular-nums; }
th:last-child, td:last-child { text-align: right; padding-right: 0; }
summary { cursor: pointer; min-height: 28px; font-weight: 500; font-size: 13px; line-height: 1.6; }
summary::marker { color: var(--muted); }
details[open] > summary { margin-bottom: 20px; }
footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; color: var(--muted); font-size: 11px; line-height: 1.6; }
dialog { width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid var(--line); border-radius: 20px; padding: 28px; color: var(--text); background: var(--panel); box-shadow: 0 24px 100px #0003; }
dialog::backdrop { background: #1d1d1f50; backdrop-filter: blur(5px); }
dialog header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
dialog h2 { margin-top: 8px; font-size: 23px; }
dialog > h2 { margin-bottom: 20px; }
dialog > button { margin-top: 20px; margin-right: 8px; }
dialog header button { font-size: 22px; width: 44px; flex-shrink: 0; border: 0; background: var(--bg); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.review-item { display: grid; grid-template-columns: 1fr auto; gap: 20px; border-top: 1px solid var(--line); padding: 14px 0; font-size: 13px; overflow-wrap: anywhere; }
.review-item span:last-child { color: var(--accent); font-variant-numeric: tabular-nums; }
dialog .muted { margin-top: 18px; }
[hidden] { display: none !important; }
@media (min-width: 1600px) { main { padding: 42px 52px; } }
@media (max-width: 1200px) { .sidebar { width: 210px; padding-inline: 12px; } main { margin-left: 210px; padding: 28px; } .logo { padding-inline: 4px; gap: 8px; } .logo-text { font-size: 15px; } }
@media (max-width: 900px) {
  .sidebar { width: auto; height: 72px; position: relative; padding: 14px 22px; flex-direction: row; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); background: #fafafc; }
  .nav-label, .workspace-note, .avatar { display: none; }
  .sidebar-bottom { margin: 0; }
  .user { border: 0; padding: 0; }
  .primary-nav { margin-top: 0; position: fixed; inset: auto 0 0; z-index: 10; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); background: #fafafcf2; backdrop-filter: blur(20px); border-top: 1px solid #dedee3; }
  .primary-nav a { flex-direction: column; justify-content: center; gap: 4px; padding: 5px; font-size: 10px; min-height: 49px; border-radius: 10px; color: var(--muted); }
  .primary-nav a.active { background: transparent; color: var(--accent); }
  .primary-nav .icon { width: 22px; height: 22px; }
  main { margin-left: 0; padding: 28px 24px calc(104px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .sidebar { height: 65px; padding: 12px 16px; }
  .logo-text { font-size: 15px; }
  .logo-text small { display: none; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  .logo-mark .icon { width: 21px; height: 21px; }
  .user-name { display: none; }
  main { padding: 24px 16px calc(96px + env(safe-area-inset-bottom)); }
  h1 { font-size: 28px; letter-spacing: -.75px; }
  h2 { font-size: 17px; }
  .page-header { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 22px; }
  .page-header p { font-size: 13px; }
  .connection { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; width: 100%; }
  .connection .muted { font-size: 11px; }
  .panel { padding: 20px 16px; border-radius: 14px; }
  .panel-head { gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
  .tag { font-size: 9px; white-space: normal; }
  table { font-size: 12px; }
  footer { flex-direction: column; gap: 5px; }
  dialog { padding: 22px 20px; border-radius: 18px; }
  dialog h2 { font-size: 21px; }
  .review-item { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 900px) { input:not([type=checkbox]):not([type=color]), select { font-size: 16px !important; } }

.machine-context { display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; margin-bottom:22px; font-size:12px; color:var(--muted); }
.machine-context a { display:inline-flex; align-items:center; gap:3px; color:var(--accent); min-height:44px; }
.machine-context .icon { width:16px; height:16px; }
.machine-context span { overflow-wrap:anywhere; }
.context-point { margin-left:auto; }
.machine-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; width:100%; max-width:620px; padding:4px; margin:0 0 26px; border-radius:13px; background:#e9e9ef; }
.machine-nav a, .machine-nav-disabled { display:flex; align-items:center; justify-content:center; gap:7px; padding:10px 8px; min-height:44px; min-width:0; border-radius:10px; font-size:13px; color:var(--muted); }
.machine-nav a.active { background:var(--panel); color:var(--text); box-shadow:0 1px 4px #0000000d; }
.machine-nav a:hover { color:var(--accent); }
.machine-nav .icon { width:17px; height:17px; flex-shrink:0; }
.machine-nav-disabled { opacity:.5; }
.platform-settings-main { max-width:1200px; }
.platform-settings-empty { display:flex; flex-direction:column; align-items:center; gap:18px; padding:64px 24px; background:var(--panel); border:1px solid var(--line); border-radius:18px; color:var(--muted); text-align:center; }
.platform-settings-symbol { display:grid; place-items:center; width:56px; height:56px; border-radius:16px; background:var(--bg); }
.platform-settings-symbol .icon { width:27px; height:27px; }
@media (max-width:600px) { .machine-nav a, .machine-nav-disabled { gap:5px; font-size:12px; padding-inline:5px; } .machine-nav { margin-bottom:22px; } }
@media (max-width:600px) { .machine-context { gap:4px 10px; margin-bottom:10px; } .context-point { margin-left:0; } }

h1 { overflow-wrap:anywhere; }
.page-header > div { min-width:0; }

.page-header p, .login-card > .muted { font-weight: 300; }

/* Current fleet notifications. */
#notifications-nav { position: relative; }
.notifications-label-short { display: none; }
.notifications-count { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px; background: #c52c32; color: #fff; font-size: 11px; font-weight: 500; line-height: 1; }
.notifications-count[hidden] { display: none; }
.notifications-main { max-width: 1400px; }
.notifications-toolbar { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.notifications-toolbar select { width: min(280px,100%); }
#notifications-summary, .notifications-updated { color: var(--muted); font-size: 12px; line-height: 1.5; }
.notifications-list { display: grid; gap: 14px; }
.notification-card { display: flex; align-items: center; gap: 24px; padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid #c88724; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); min-width: 0; }
.notification-card.critical { border-left-color: var(--red); }
.notification-content { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.notification-place { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.notification-card h2 { font-size: 18px; margin: 0 0 8px; line-height: 1.4; }
.notification-machine { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.notification-detail { font-size: 13px; line-height: 1.6; color: var(--muted); }
.notification-link { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--accent); border-radius: 10px; }
.notification-link:hover { background: var(--accent-soft); }
.notifications-empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.notifications-updated { margin-top: 24px; }
@media (max-width: 900px) {
 .primary-nav { padding-inline: 6px; }
 .primary-nav a { min-width: 0; }
 .notifications-label-full { display: none; }
 .notifications-label-short { display: inline; }
 #notifications-nav .notifications-count { position: absolute; top: 0; left: calc(50% + 4px); margin: 0; min-width: 16px; height: 16px; font-size: 9px; padding-inline: 4px; }
}
@media (max-width: 600px) {
 .notifications-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
 .notifications-toolbar select { width: 100%; }
 .notification-card { align-items: stretch; flex-direction: column; gap: 10px; padding: 18px; }
 .notification-card h2 { font-size: 17px; }
 .notification-link { align-self: flex-start; padding-inline: 0; }
}
