:root {
  color-scheme: dark;
  --bg: #0b1418;
  --sidebar: #101d22;
  --surface: #141f24;
  --surface-raised: #18252b;
  --surface-soft: #1b2a30;
  --line: #2a393f;
  --line-soft: #223138;
  --ink: #edf3f3;
  --muted: #91a3a8;
  --muted-2: #71848a;
  --teal: #58d6ca;
  --teal-soft: #173c3d;
  --amber: #f3bf67;
  --red: #f07882;
  --green: #8ddc70;
  --shadow: 0 14px 40px rgb(0 0 0 / .16);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; }
a { color: inherit; }
button, input, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { font-weight: 650; }
h1 { margin: 5px 0 6px; font-size: clamp(25px, 2.2vw, 31px); line-height: 1.15; letter-spacing: -.8px; }
h2 { margin: 0; font-size: 15px; letter-spacing: -.15px; }
h3 { margin: 0; font-size: 14px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { min-height: 100vh; padding: 27px 15px 17px; background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { min-height: 50px; padding: 0 9px; margin-bottom: 25px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; text-decoration: none; }
.brand img { display: block; width: 164px; max-height: 38px; object-fit: contain; object-position: left center; }
.brand-subtitle, .login-brand span { margin: 1px 0 0 2px; color: #a4b4b8; font-size: 9px; line-height: 1.15; letter-spacing: 1.35px; }
.brand-subtitle i, .login-brand i { color: var(--teal); font-style: normal; }
.workspace-switch { width: 100%; padding: 13px 12px; margin: 0 0 27px; display: flex; align-items: center; gap: 10px; text-align: left; color: var(--ink); background: #17262b; border: 1px solid #304047; border-radius: 11px; cursor: default; }
.workspace-light { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(141 220 112 / .1); }
.workspace-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.workspace-copy strong { font-size: 12px; line-height: 1.2; }
.workspace-copy small { color: var(--muted); font-size: 11px; }
.workspace-caret { color: var(--muted); font-size: 17px; }
.nav-label, .eyebrow { margin: 0; color: #7f969a; font-size: 9px; font-weight: 700; letter-spacing: 1.45px; }
.nav-label { padding: 0 11px; margin-bottom: 9px; }
.main-nav { display: grid; gap: 3px; }
.nav-item { min-height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 12px; color: #a3b2b5; border-radius: 8px; text-decoration: none; font-size: 13px; transition: background .15s ease, color .15s ease; }
.nav-item:hover { background: #192a30; color: var(--ink); }
.nav-item.active { color: var(--teal); background: #1a3739; }
.nav-icon { width: 15px; color: #92a7aa; text-align: center; font-size: 15px; }
.nav-item.active .nav-icon { color: var(--teal); }
.nav-soon { min-width: 19px; margin-left: auto; padding: 1px 6px; color: #f6a1a8; background: #48272e; border-radius: 12px; text-align: center; font-size: 10px; }
.management-label { margin-top: 27px; }
.sidebar-bottom { margin-top: auto; padding: 17px 10px 0; display: flex; align-items: center; gap: 7px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }
.secure-indicator { width: 7px; height: 7px; flex: 0 0 auto; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgb(141 220 112 / .1); }
.orbit-version { margin-left: auto; color: #63777d; font-size: 9px; letter-spacing: .4px; }
.app-main { min-width: 0; }
.topbar { height: 67px; padding: 0 clamp(22px, 3vw, 42px); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #0d171b; border-bottom: 1px solid var(--line); }
.breadcrumbs { min-width: 0; display: flex; align-items: center; gap: 9px; color: var(--muted-2); font-size: 12px; }
.breadcrumbs a { color: #a9b7ba; text-decoration: none; }
.breadcrumbs strong { color: var(--ink); font-weight: 600; }
.top-actions, .heading-actions { display: flex; align-items: center; gap: 10px; }
.user-chip { max-width: 150px; overflow: hidden; text-overflow: ellipsis; padding: 7px 10px; color: #c5d0d1; background: #172429; border: 1px solid var(--line-soft); border-radius: 7px; font-size: 11px; white-space: nowrap; }
.top-actions form { margin: 0; }
.quiet-button { padding: 7px 8px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 11px; }
.quiet-button:hover { color: var(--ink); }
.content { width: min(100%, 1550px); margin: 0 auto; padding: 28px clamp(22px, 3vw, 42px) 48px; }
.page-heading { margin: 2px 0 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-heading .eyebrow { color: var(--teal); }
.page-intro, .muted { color: var(--muted); }
.page-intro { margin: 0; font-size: 13px; }
.button { min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; text-decoration: none; font-size: 12px; font-weight: 650; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #082022; background: var(--teal); box-shadow: 0 5px 15px rgb(88 214 202 / .12); }
.button.primary:hover { background: #73e3d8; }
.button.secondary { color: var(--ink); background: #172429; border-color: #35454b; }
.button.secondary:hover { border-color: #5c7379; }
.button.full { width: 100%; margin-top: 10px; }
.notice { border: 1px solid; border-radius: 9px; }
.metric-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card, .panel, .tenant-card, .project-list, .form-card, .visu-card, .detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.metric-card { min-height: 124px; padding: 15px 16px 13px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #9aabad; font-size: 11px; }
.metric-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; font-size: 14px; }
.metric-icon.violet { color: #baacf8; background: #302d49; }
.metric-icon.teal { color: var(--teal); background: #1b3b3e; }
.metric-icon.amber { color: var(--amber); background: #3c3324; }
.metric-icon.rose { color: #f28d98; background: #3d2830; }
.metric-number { margin: 4px 0 1px; font-size: 25px; line-height: 1.15; font-weight: 700; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.metric-caption { display: flex; align-items: center; gap: 7px; color: #84979b; font-size: 10px; }
.metric-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; }
.metric-dot.mint { background: var(--green); }
.dashboard-panels { margin-bottom: 28px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 12px; }
.panel { min-width: 0; padding: 16px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.panel-tag { padding: 5px 7px; color: #83969a; background: #1c2a2f; border: 1px solid #2c3b41; border-radius: 5px; font-size: 8px; letter-spacing: .55px; }
.teal-dot { background: var(--teal); }
.text-link { color: #90c9c5; text-decoration: none; font-size: 10px; white-space: nowrap; }
.text-link:hover { color: var(--teal); }
.recent-projects { margin-top: 8px; }
.recent-project { min-height: 48px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.recent-project:last-child { border-bottom: 0; }
.recent-project:hover .recent-project-copy strong { color: var(--teal); }
.project-status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; }
.project-status-dot.on { background: var(--green); }
.project-status-dot.plan { background: var(--amber); }
.project-status-dot.off { background: #7c8990; }
.recent-project-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.recent-project-copy strong { overflow: hidden; color: #dce5e5; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.recent-project-copy small { overflow: hidden; color: var(--muted-2); text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.recent-project-time { color: #8a9b9e; font-size: 8px; white-space: nowrap; }
.panel-footer { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.panel-footer a { color: #89c8c2; text-decoration: none; font-size: 9px; }
.panel-footer a:hover { color: var(--teal); }
.panel-empty { min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; }
.panel-empty-icon { color: #527b7c; font-size: 20px; }
.panel-empty strong { color: #cad4d5; font-size: 10px; }
.panel-empty span:last-child { color: var(--muted-2); font-size: 9px; }
.projects-section { scroll-margin-top: 20px; }
.project-table-wrap { width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.project-table { width: 100%; min-width: 790px; border-collapse: collapse; text-align: left; }
.project-table th { padding: 11px 14px; color: #809296; background: #111c20; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 650; letter-spacing: .35px; white-space: nowrap; }
.project-table td { padding: 12px 14px; color: #c4d0d1; border-bottom: 1px solid var(--line-soft); font-size: 10px; vertical-align: middle; }
.project-table tbody tr:last-child td { border-bottom: 0; }
.project-table tbody tr:hover { background: #172429; }
.project-name { color: #e2eaea; text-decoration: none; font-size: 11px; font-weight: 650; }
.project-name:hover, .tenant-column a:hover { color: var(--teal); }
.tenant-column a { color: #a9b9ba; text-decoration: none; }
.table-subtitle { display: block; margin-top: 3px; color: var(--muted-2); font-size: 9px; }
.status-chip, .plc-state { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.status-chip i, .plc-state i { width: 6px; height: 6px; flex: 0 0 auto; display: inline-block; border-radius: 50%; background: #77868a; }
.status-chip.fault { color: #f09099; }
.status-chip.fault i, .plc-state.faulted i { background: var(--red); box-shadow: 0 0 0 3px rgb(240 120 130 / .1); }
.status-chip.healthy { color: #9bdcaa; }
.status-chip.healthy i, .plc-state.running i { background: var(--green); box-shadow: 0 0 0 3px rgb(141 220 112 / .08); }
.status-chip.neutral, .plc-state.unknown { color: #87989b; }
.plc-state { color: #b6c3c4; }
.plc-state.stopped i { background: var(--amber); }
.date-value { color: #c5d1d2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-tenants { margin-top: 30px; }
.section-heading { margin: 0 0 12px; }
.section-heading .eyebrow { margin-bottom: 4px; color: var(--teal); }
.section-heading h2 { font-size: 15px; }
.section-heading p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.tenant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 11px; }
.tenant-card { min-height: 156px; padding: 15px; color: inherit; text-decoration: none; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.tenant-card:hover { transform: translateY(-2px); background: var(--surface-raised); border-color: #446166; }
.tenant-top { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.tenant-avatar { width: 32px; height: 32px; display: grid; place-items: center; color: var(--teal); background: #1b3c3f; border: 1px solid #285255; border-radius: 9px; font-size: 13px; font-weight: 700; }
.arrow { color: #829497; font-size: 15px; }
.tenant-card h3 { color: #e1e9e9; font-size: 12px; }
.tenant-card p { margin: 4px 0 14px; color: var(--muted); font-size: 10px; }
.card-bottom { padding-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #819296; border-top: 1px solid var(--line-soft); font-size: 9px; }
.card-bottom b { color: var(--teal); font-weight: 500; }
.tenant-slug { overflow: hidden; color: #6f8286; text-overflow: ellipsis; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.tenant-card.add-tenant { min-height: 156px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border-style: dashed; background: transparent; }
.add-symbol { width: 29px; height: 29px; margin-bottom: 12px; display: grid; place-items: center; color: var(--teal); background: #183336; border-radius: 8px; font-size: 17px; }
.tenant-card.add-tenant p { margin-bottom: 0; }
.empty-state { padding: 34px 20px; color: var(--muted); background: var(--surface); border: 1px dashed #405157; border-radius: 11px; text-align: center; }
.empty-state h3 { margin: 8px 0 4px; color: var(--ink); }
.empty-state p { margin: 0 0 17px; font-size: 11px; }
.empty-state.compact { padding: 26px 20px; }
.empty-icon { color: var(--teal); font-size: 23px; }
.breadcrumbs + .page-heading { margin-top: 0; }
.content > .breadcrumbs { margin-bottom: 18px; }
.project-list { overflow: hidden; }
.project-row { min-height: 64px; padding: 11px 15px; display: flex; align-items: center; gap: 12px; color: inherit; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.project-row:last-child { border-bottom: 0; }
.project-row:hover { background: var(--surface-raised); }
.project-symbol { width: 32px; height: 32px; display: grid; place-items: center; color: var(--teal); background: #1b3b3e; border-radius: 8px; font-size: 15px; }
.project-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.project-main strong { overflow: hidden; color: #e0e8e8; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.project-main span { color: var(--muted); font-size: 10px; }
.pill { padding: 4px 8px; border-radius: 20px; font-size: 9px; font-weight: 650; }
.pill-green { color: #a4e18a; background: #233a2b; }
.pill-blue { color: #9bdad4; background: #1c3839; }
.form-card { max-width: 660px; padding: 22px; }
.stack-form { display: flex; flex-direction: column; gap: 8px; }
.stack-form label, .field-row label { margin-top: 5px; color: #b3c0c1; font-size: 11px; font-weight: 600; }
.stack-form input, .field-row input, .field-row select { width: 100%; min-height: 40px; padding: 9px 11px; color: var(--ink); background: #0f1a1e; border: 1px solid #34444a; border-radius: 7px; outline: none; font-size: 12px; }
.stack-form input:focus, .field-row input:focus, .field-row select:focus { border-color: #58a9a3; box-shadow: 0 0 0 3px rgb(88 214 202 / .1); }
.field-row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 7px; }
.field-row input[type="checkbox"] { width: auto; min-height: auto; align-self: flex-start; accent-color: var(--teal); }
.field-row:has(input[type="checkbox"]) { flex-direction: row; align-items: center; flex-wrap: wrap; }
.field-row:has(input[type="checkbox"]) label { order: 2; margin: 0; }
.field-row:has(input[type="checkbox"]) input { order: 1; }
.field-row small { color: var(--muted); font-size: 10px; }
.field-row .field-error, .required { color: #f28d98; }
.required { margin-left: 3px; }
.form-actions { margin-top: 5px; padding-top: 14px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.visu-card { min-height: 86px; padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.visu-copy { display: flex; align-items: center; gap: 11px; }
.visu-copy .metric-icon { margin: 0; }
.visu-copy h3 { margin-bottom: 3px; }
.visu-copy p { margin: 0; color: var(--muted); font-size: 10px; }
.notice { margin-top: 11px; padding: 11px 13px; display: flex; align-items: flex-start; gap: 9px; color: #b9c9ca; background: #17272b; border-color: #2c4549; font-size: 10px; }
.notice strong { color: var(--teal); white-space: nowrap; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.detail-card { padding: 14px; }
.detail-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.detail-card strong { font-size: 11px; }
.status-detail-grid { margin-bottom: 7px; }
.status-updated-line { margin: 0 0 24px; color: var(--muted-2); font-size: 9px; }
.messages { margin-bottom: 13px; }
.alert { padding: 10px 12px; border-radius: 7px; font-size: 11px; }
.alert.success { color: #b1e3a0; background: #203327; border: 1px solid #334c39; }
.alert.error { margin: 13px 0; color: #f3a3aa; background: #38242a; border: 1px solid #58343b; }
.login-body { min-height: 100vh; padding: 20px; display: grid; place-items: center; background: radial-gradient(ellipse at 18% 12%, #17383b 0, transparent 33%), radial-gradient(ellipse at 84% 88%, #162a2f 0, transparent 34%), var(--bg); }
.login-card { width: min(100%, 410px); padding: 34px; background: #121e23; border: 1px solid #2b3b41; border-radius: 14px; box-shadow: 0 22px 70px rgb(0 0 0 / .32); }
.login-brand { margin-bottom: 37px; display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.login-brand img { width: 172px; max-height: 44px; object-fit: contain; object-position: left center; }
.login-card .eyebrow { color: var(--teal); }
.login-card h1 { margin: 7px 0 8px; font-size: 27px; }
.login-intro { margin-bottom: 23px; color: var(--muted); font-size: 12px; }
.login-foot { margin-top: 23px; padding-top: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #829397; border-top: 1px solid var(--line-soft); font-size: 10px; }
.two-factor-card { width: min(100%, 490px); }
.two-factor-card .login-brand { margin-bottom: 28px; }
.two-factor-card h1, .two-factor-card h2 { margin-bottom: 9px; color: var(--ink); }
.two-factor-card p { color: var(--muted); font-size: 12px; }
.two-factor-card a:not(.button) { color: #8bd9d1; }
.two-factor-card label { display: block; margin: 9px 0 5px; color: #b6c4c5; font-size: 11px; font-weight: 600; }
.two-factor-card input, .two-factor-card select { width: 100%; min-height: 40px; padding: 9px 11px; color: var(--ink); background: #0f1a1e; border: 1px solid #34444a; border-radius: 7px; font-size: 12px; outline: none; }
.two-factor-card input:focus, .two-factor-card select:focus { border-color: #58a9a3; box-shadow: 0 0 0 3px rgb(88 214 202 / .1); }
.two-factor-card input[type="checkbox"] { width: auto; min-height: auto; }
.two-factor-card .form-group { margin: 10px 0; }
.two-factor-card .form-horizontal .form-group { display: block; margin: 0 0 14px; }
.two-factor-card .form-horizontal .control-label { display: block; width: 100%; padding: 0; margin: 0 0 6px; text-align: left; }
.two-factor-card .form-horizontal [class*="col-"] { float: none; width: 100%; padding: 0; }
.two-factor-card .form-horizontal .col-sm-offset-4 { margin-left: 0; }
.two-factor-card .form-horizontal .form-group:last-child { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.two-factor-card .form-horizontal .form-group:last-child [class*="col-"] { width: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.two-factor-card .btn { min-height: 38px; margin: 8px 4px 0 0; padding: 0 13px; color: #082022; background: var(--teal); border: 0; border-radius: 7px; font-size: 11px; font-weight: 650; cursor: pointer; }
.two-factor-card .btn:hover { background: #73e3d8; }
.two-factor-card .btn-default, .two-factor-card .btn-secondary { color: var(--ink); background: #1b292e; border: 1px solid #35454b; }
.two-factor-card .btn-link { min-height: 38px; padding: 0 10px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 7px; text-decoration: none; }
.two-factor-card .btn-link:hover { color: var(--ink); background: #1b292e; }
.two-factor-card .help-block, .two-factor-card .helptext, .two-factor-card small { color: var(--muted); font-size: 10px; }
.two-factor-card ul.errorlist { padding: 0; color: #f39aa2; list-style: none; font-size: 10px; }
.two-factor-card .alert-danger, .two-factor-card .alert-error { padding: 10px 12px; color: #f3a3aa; background: #38242a; border: 1px solid #58343b; border-radius: 7px; font-size: 11px; }
.two-factor-card .alert-success { padding: 10px 12px; color: #b1e3a0; background: #203327; border: 1px solid #334c39; border-radius: 7px; font-size: 11px; }
.two-factor-card .qr-code, .two-factor-card img[src*="qrcode"] { max-width: 220px; padding: 10px; background: #fff; border-radius: 7px; }
.two-factor-card .container { width: 100%; }
.two-factor-card .row { display: flex; flex-wrap: wrap; gap: 8px; }
.invite-card { width: min(100%, 460px); }
.invite-email { padding: 10px 12px; color: #c4d0d1; background: #172429; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; }
.invite-section-label { margin: 21px 0 8px; color: var(--teal) !important; font-size: 10px !important; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.invite-note { margin: 14px 0 0; color: var(--muted-2) !important; font-size: 10px !important; }
.field-error { color: #f39aa2; }
.visu-frame { height: min(72vh, 820px); min-height: 420px; margin-top: 11px; overflow: hidden; background: #080e12; border: 1px solid var(--line); border-radius: 10px; }
.visu-frame iframe { width: 100%; height: 100%; background: #fff; border: 0; }
.asset-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.asset-card { min-width: 0; padding: 17px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); text-decoration: none; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.asset-card:hover { transform: translateY(-2px); background: var(--surface-raised); border-color: #426267; }
.asset-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line-soft); }
.asset-card-heading h3 { margin-top: 4px; font-size: 15px; line-height: 1.3; }
.asset-kicker { display: block; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.asset-arrow { color: var(--teal); font-size: 17px; }
.asset-card-status { padding: 9px 0; display: grid; gap: 7px; border-bottom: 1px solid var(--line-soft); }
.asset-status-line { min-height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.asset-status-line > span { color: var(--muted); font-size: 10px; }
.asset-status-line > strong { color: #dce6e6; font-size: 10px; text-align: right; }
.asset-status-line .plc-state, .asset-status-line .status-chip { font-size: 9px; }
.asset-card-meta { padding: 10px 0 0; display: grid; gap: 9px; }
.asset-card-meta > div, .asset-card-footer { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.asset-card-meta span, .asset-card-footer span { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.asset-card-meta strong, .asset-card-footer strong { min-width: 0; overflow: hidden; color: #dce6e6; font-size: 9px; font-weight: 550; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.asset-card-footer { padding-top: 9px; margin-top: 9px; border-top: 1px solid var(--line-soft); }
.button.danger { color: #ffb8b8; background: #382226; border-color: #64383c; }
.controller-rollup { margin: 0 0 12px; padding: 13px 15px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 11px; }
.controller-rollup strong { color: var(--ink); }
.controller-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.controller-card { min-width: 0; padding: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.controller-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--line-soft); }
.controller-card-heading h3 { margin: 4px 0 0; font-size: 14px; }
.controller-online { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; }
.controller-online i { width: 7px; height: 7px; border-radius: 50%; background: #76858a; }
.controller-online.online i { background: #6bd38a; box-shadow: 0 0 8px rgb(107 211 138 / .45); }
.controller-online.offline { color: #ffb1b1; }
.controller-online.offline i { background: #e36b74; }
.controller-values { padding: 9px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.controller-values > div { min-width: 0; display: grid; gap: 4px; }
.controller-values span, .controller-card-footer { color: var(--muted); font-size: 9px; }
.controller-values strong { overflow: hidden; color: #dce6e6; font-size: 10px; font-weight: 600; text-overflow: ellipsis; }
.controller-card-footer { padding-top: 9px; display: flex; justify-content: space-between; gap: 9px; border-top: 1px solid var(--line-soft); }
.controller-actions { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 8px; }
.controller-actions form { margin: 0; }
.token-card { max-width: 780px; }
.token-card h2 { margin: 0 0 8px; font-size: 17px; }
.token-card > p { margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.token-card label { display: block; margin: 12px 0 6px; color: #b3c0c1; font-size: 11px; font-weight: 600; }
.token-copy-row { display: flex; gap: 7px; }
.token-copy-row input { flex: 1; min-width: 0; min-height: 39px; padding: 8px 10px; color: var(--ink); background: #0f1a1e; border: 1px solid #34444a; border-radius: 7px; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.token-card .form-actions { margin-top: 18px; }
@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-panels { grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); }
  .asset-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; padding: 12px 16px; display: block; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { min-height: 34px; margin: 0; padding: 0; }
  .brand img { width: 142px; max-height: 29px; }
  .brand-subtitle, .workspace-switch, .nav-label, .main-nav, .management-label, .sidebar-bottom { display: none; }
  .topbar { height: 58px; padding: 0 16px; }
  .top-actions { gap: 6px; }
  .content { padding: 23px 16px 35px; }
  .dashboard-panels { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; }
}
@media (max-width: 520px) {
  .topbar { align-items: center; }
  .user-chip { display: none; }
  .quiet-button { padding: 6px 3px; }
  .page-heading { flex-direction: column; gap: 13px; }
  .page-heading .button { align-self: flex-start; }
  .metric-grid { gap: 8px; }
  .metric-card { min-height: 112px; padding: 12px; }
  .metric-number { font-size: 23px; }
  .dashboard-panels { gap: 9px; }
  .panel { padding: 13px; }
  .tenant-grid { grid-template-columns: 1fr; }
  .asset-card-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .controller-grid { grid-template-columns: 1fr; }
  .controller-rollup { flex-direction: column; }
  .token-copy-row { flex-wrap: wrap; }
  .token-copy-row input { flex-basis: 100%; }
  .visu-card { align-items: flex-start; flex-direction: column; }
  .login-card { padding: 28px 22px; }
  .project-row { gap: 8px; padding: 11px; }
  .project-row .pill { display: none; }
}
