:root {
  color-scheme: light;
  --ink: #182723;
  --muted: #74817c;
  --subtle: #9aa59f;
  --line: #e5ebe7;
  --canvas: #f4f7f5;
  --paper: #ffffff;
  --green: #17866d;
  --green-dark: #106c58;
  --green-pale: #e8f5ef;
  --shadow: 0 10px 28px rgba(28, 58, 47, .045);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--canvas);
  background-image: linear-gradient(rgba(244, 247, 245, .77), rgba(244, 247, 245, .86)), url("/frontend/assets/schaeffler-background.jpg");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(23, 134, 109, .25);
  outline-offset: 3px;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 clamp(22px, 5vw, 76px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; text-decoration: none; }
.brand-mark {
  width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px;
  background: #173e34; color: #d7f3e7; font-size: 19px; font-weight: 750; letter-spacing: -.08em;
}
.brand-copy { display: grid; line-height: 1.15; gap: 4px; }
.brand-copy strong { font-size: 12px; letter-spacing: .13em; }
.brand-copy small { color: var(--muted); font-size: 8px; letter-spacing: .16em; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 5px; flex: 1; }
.nav-link { color: #68766f; text-decoration: none; padding: 9px 12px; border-radius: 8px; white-space: nowrap; font-size: 12px; font-weight: 600; transition: background .18s ease, color .18s ease; }
.nav-link:hover { color: var(--ink); background: #f2f6f3; }
.nav-link.active { color: var(--green-dark); background: var(--green-pale); }
.button { min-height: 40px; display: inline-flex; justify-content: center; align-items: center; gap: 11px; border: 0; border-radius: 9px; padding: 0 16px; text-decoration: none; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-quiet { color: var(--ink); background: #f4f7f5; border: 1px solid var(--line); white-space: nowrap; }
.button-quiet:hover { background: #eaf1ed; }
.button-light { color: #1b4437; background: #f7fffa; margin-top: 9px; }
.button:disabled { cursor: not-allowed; opacity: .55; }

.page-shell { width: min(1216px, calc(100% - 56px)); margin: 0 auto; padding: 44px 0 25px; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 8px; color: #82908a; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.eyebrow-dot { display: inline-block; width: 5px; height: 5px; margin: 0 0 1px 7px; border-radius: 50%; background: #56b89a; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(27px, 3.1vw, 36px); font-weight: 650; letter-spacing: -.045em; line-height: 1.16; }
.heading-period { color: var(--green); }
.lede { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.updated-note { display: inline-flex; align-items: center; gap: 9px; padding-bottom: 5px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #50a886; }
.status-dot-muted { background: #aab5af; }

.hero-panel { position: relative; min-height: 225px; overflow: hidden; display: flex; align-items: center; padding: 35px 42px; border-radius: 17px; color: #fff; background: linear-gradient(112deg, #143b32 0%, #1b5949 57%, #277661 100%); box-shadow: 0 18px 40px rgba(29, 80, 64, .12); }
.hero-content { position: relative; z-index: 2; max-width: 530px; }
.hero-label { display: flex; align-items: center; gap: 9px; color: #a9d5c4; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.hero-icon { font-size: 17px; color: #d7f3e7; }
.hero-panel h2 { margin: 14px 0 8px; font-size: 25px; letter-spacing: -.035em; font-weight: 630; }
.hero-panel p { max-width: 420px; color: #c0d9cf; font-size: 12px; }
.hero-orbit { position: absolute; top: 50%; right: 11%; width: 230px; height: 230px; transform: translateY(-50%); }
.orbit-ring { position: absolute; inset: 0; border: 1px solid rgba(209, 241, 227, .17); border-radius: 50%; }
.orbit-ring-two { inset: 28px; border-color: rgba(209, 241, 227, .2); }
.orbit-core { position: absolute; top: 50%; left: 50%; width: 79px; height: 79px; display: grid; place-items: center; transform: translate(-50%, -50%); border-radius: 26px; background: rgba(228, 255, 240, .12); border: 1px solid rgba(228, 255, 240, .26); color: #e4fff0; font-size: 31px; font-weight: 650; }
.orbit-satellite { position: absolute; top: 27px; right: 39px; color: #c5e8d7; font-size: 19px; }
.hero-footnote { position: absolute; right: 24px; bottom: 19px; display: flex; align-items: center; gap: 8px; color: #c0d9cf; font-size: 10px; }

.section-block { margin-top: 33px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-heading .eyebrow { margin-bottom: 3px; }
.section-heading h2 { margin-bottom: 0; font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.subtle-label { color: var(--subtle); font-size: 10px; }
.surface { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.health-card { min-height: 90px; padding: 16px 14px; display: flex; align-items: center; gap: 11px; }
.card-icon, .quick-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; font-size: 17px; }
.icon-teal { color: #23836e; background: #e9f5f0; }
.icon-blue { color: #5578a7; background: #edf2f9; }
.icon-violet { color: #7864a2; background: #f1eef8; }
.icon-amber { color: #ad8550; background: #faf3e8; }
.health-card-copy { min-width: 0; flex: 1; }
.health-card h3 { margin: 0 0 2px; font-size: 11px; font-weight: 700; }
.health-card p { margin: 0; color: var(--muted); font-size: 9px; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 650; white-space: nowrap; }
.pill-neutral { color: #75817b; background: #f1f4f2; }
.pill-success { color: #26735f; background: #e8f4ed; }
.pill-danger { color: #93645e; background: #fff0ed; white-space: normal; text-align: right; }
.pill .status-dot { width: 6px; height: 6px; }

.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.execution-card, .task-card, .events-card { padding: 20px; }
.compact-heading { align-items: center; margin-bottom: 16px; }
.target-icon, .task-symbol { color: #82918a; font-size: 21px; }
.target-banner { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #dcebe3; border-radius: 10px; background: #f6fbf8; }
.target-indicator { width: 9px; height: 9px; border-radius: 50%; background: #65ac8d; box-shadow: 0 0 0 4px #e2f1e9; }
.target-banner div { flex: 1; display: grid; gap: 2px; }
.target-banner strong { font-size: 12px; }
.target-banner small { color: var(--muted); font-size: 10px; }
.target-tag { padding: 5px 7px; border-radius: 5px; color: #26735f; background: #e8f4ed; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.card-note { margin: 12px 0 8px; color: var(--muted); font-size: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); text-decoration: none; font-size: 10px; font-weight: 750; }
.text-link:hover { color: #0a513f; }
.empty-state { min-height: 74px; display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 10px; background: #f7f9f8; }
.empty-state-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: #7c8d85; background: #eaf0ec; font-size: 18px; }
.empty-state strong { font-size: 11px; }
.empty-state p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.task-card > .text-link { margin-top: 11px; }

.quick-section { margin-top: 34px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-card { min-height: 78px; padding: 13px; display: flex; align-items: center; gap: 11px; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.quick-card:hover { transform: translateY(-2px); border-color: #cbdcd2; box-shadow: 0 12px 24px rgba(28, 58, 47, .08); }
.quick-card > span:nth-child(2) { min-width: 0; flex: 1; display: grid; gap: 3px; }
.quick-card strong { font-size: 10px; }
.quick-card small { color: var(--muted); font-size: 9px; }
.quick-icon { width: 33px; height: 33px; font-size: 15px; }
.quick-arrow { color: #9aa69f; font-size: 14px; }

.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 14px; }
.events-card { min-height: 164px; }
.event-empty { min-height: 74px; display: flex; align-items: center; gap: 13px; color: var(--muted); }
.event-line { width: 2px; height: 40px; margin-left: 4px; border-radius: 2px; background: #e1eae5; }
.event-empty p { margin: 0; font-size: 10px; }
.task-history { display: grid; gap: 8px; margin-top: 12px; }
.task-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 11px; border-radius: 8px; background: #f7f9f8; font-size: 10px; }
.task-row span { color: var(--muted); white-space: nowrap; }
.task-trace { display: grid; gap: 8px; }
.task-event { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 8px 10px; border-left: 2px solid #dcebe3; font-size: 10px; overflow-wrap: anywhere; }
.task-event span:first-child { color: var(--muted); white-space: nowrap; }
.safety-card { padding: 18px 20px; border: 1px solid #f0d8d4; border-radius: 12px; background: #fffaf9; box-shadow: var(--shadow); }
.safety-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.safety-symbol { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #a34638; background: #f9e8e5; font-size: 15px; font-weight: 800; }
.pill-safety { color: #986c65; background: #f8eeec; }
.safety-card .eyebrow { color: #ad7a72; margin-bottom: 4px; }
.safety-card h2 { margin-bottom: 5px; font-size: 15px; }
.safety-card > p:not(.eyebrow) { margin-bottom: 11px; color: #786a67; font-size: 10px; }
.safety-divider { height: 1px; margin-bottom: 9px; background: #f0e3e0; }
.safety-card small { display: block; color: #8e7772; font-size: 9px; line-height: 1.55; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 15px 0 0; border-top: 1px solid var(--line); color: var(--subtle); font-size: 9px; }

/* Shared page scaffolding */
.page-header { margin-bottom: 24px; }
.page-header h1 { margin-bottom: 7px; }
.page-header .lede { max-width: 680px; }
.page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.page-card { padding: 20px; }
.page-card h2 { margin-bottom: 7px; font-size: 15px; letter-spacing: -.02em; }
.page-card p { color: var(--muted); font-size: 11px; }
.page-card-full { grid-column: 1 / -1; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.metric-card { padding: 16px; }
.metric-card small { display: block; color: var(--muted); font-size: 10px; }
.metric-card strong { display: block; margin: 8px 0 3px; font-size: 18px; letter-spacing: -.03em; }
.metric-card span { color: var(--subtle); font-size: 9px; }
.state-metric-list { display: grid; gap: 8px; margin-top: 15px; }
.state-metric-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.state-metric-row strong { max-width: 65%; color: var(--ink); font-size: 10px; text-align: right; overflow-wrap: anywhere; }
.state-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.state-summary-grid > div { min-width: 0; display: grid; gap: 5px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fafcfb; }
.state-summary-grid small { color: var(--muted); font-size: 9px; }
.state-summary-grid strong { font-size: 11px; overflow-wrap: anywhere; }
.state-summary-grid .state-danger, .state-danger { color: #a33f32; }
.state-summary-grid .state-success, .state-success { color: #26735f; }
.state-summary-grid .state-warning, .state-warning { color: #8b6b1b; }
.state-joints { overflow-x: auto; }
.state-joint-table { min-width: 660px; display: grid; }
.state-joint-row { display: grid; grid-template-columns: 1.2fr repeat(4, minmax(90px, 1fr)); gap: 12px; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 10px; }
.state-joint-row span { overflow-wrap: anywhere; color: var(--muted); }
.state-joint-row span:first-child { color: var(--ink); font-weight: 650; }
.state-joint-header { background: #f6f9f7; border-radius: 7px; }
.state-joint-header span { color: #607068; font-weight: 750; }
.state-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.state-source-row { min-width: 0; display: grid; gap: 4px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fafcfb; }
.state-source-row[data-status="healthy"], .state-source-row[data-status="ready"] { border-color: #d6e9de; background: #f4faf6; }
.state-source-row[data-status="disconnected"], .state-source-row[data-status="failed"] { border-color: #efd8d3; background: #fff8f7; }
.state-source-row strong { font-size: 10px; }
.state-source-row span { color: var(--muted); font-size: 9px; }
.state-source-row small, .state-boundary-note { color: var(--subtle); font-size: 9px; overflow-wrap: anywhere; }
.state-boundary-note { margin: 14px 0 0; line-height: 1.55; }
.page-shell.is-stale .metric-grid, .page-shell.is-stale .page-grid { opacity: 0.55; transition: opacity 0.2s ease; }
.arm-control-options { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 14px 0; }
.arm-side-group { display: flex; gap: 8px; border: 0; padding: 0; margin: 0; }
.arm-side-group legend { width: 100%; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.arm-side-toggle[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.arm-slider { display: grid; gap: 6px; min-width: 200px; }
.arm-slider output { color: var(--ink); font-size: 11px; }
.arm-slider input[type="range"] { width: 100%; accent-color: #5f8f7a; }
.hand-slider-row { display: flex; justify-content: center; gap: 56px; padding: 16px 0; flex-wrap: wrap; }
.hand-dial-wrap { display: grid; justify-items: center; gap: 10px; }
.hand-dial { width: 240px; height: 240px; touch-action: none; cursor: grab; outline: none; border-radius: 50%; }
.hand-dial:focus-visible { outline: 2px solid #5f8f7a; outline-offset: 4px; }
.hand-dial[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.hand-dial svg { width: 100%; height: 100%; display: block; }
.hand-dial .dial-track { fill: none; stroke: #d9dfdb; stroke-width: 10; stroke-linecap: round; }
.hand-dial .dial-progress { fill: none; stroke: #5f8f7a; stroke-width: 10; stroke-linecap: round; }
.hand-dial .dial-knob { fill: #3b4a43; stroke: #ffffff; stroke-width: 3; }
.hand-dial .dial-readout { font-size: 26px; font-weight: 600; fill: #1f2a24; text-anchor: middle; dominant-baseline: middle; }
.hand-slider-name { font-weight: 600; }
.hand-slider-state { font-size: 12px; color: #6f7b74; text-align: center; min-height: 1.2em; }
.notice { padding: 13px 15px; border: 1px solid #e8e7d8; border-radius: 9px; color: #756f54; background: #fbfaf2; font-size: 10px; }
.notice-danger { border-color: #f0d8d4; color: #93645e; background: #fff8f6; }
.target-banner-page { margin-bottom: 14px; }
.estop-status { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 20px; margin: 0 0 14px; padding: 17px 19px; border: 1px solid #e5c76d; border-radius: 11px; color: #66551d; background: #fffbed; box-shadow: var(--shadow); }
.estop-status[data-state="latched"] { border-color: #e0aaa2; color: #812f25; background: #fff3f1; }
.estop-status[data-state="released"] { border-color: #9fd2b0; color: #1b6742; background: #f0fbf3; }
.estop-status[data-state="stale"], .estop-status[data-state="disconnected"], .estop-status[data-state="unknown"] { border-color: #e5c76d; color: #66551d; background: #fffbed; }
.estop-status-main { min-width: 0; }
.estop-status .eyebrow { margin-bottom: 4px; color: currentColor; opacity: .78; }
.estop-status h2 { margin: 0 0 5px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.025em; }
.estop-status-main > p:last-child { margin: 0; font-size: 11px; }
.estop-status-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 15px; margin: 0; align-content: center; }
.estop-status-meta div { min-width: 0; display: grid; gap: 2px; }
.estop-status-meta dt { font-size: 9px; opacity: .72; }
.estop-status-meta dd { margin: 0; font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }
.disabled-panel { opacity: .72; }
.disabled-control { width: 100%; margin-top: 8px; }
.form-field { display: grid; gap: 7px; margin: 13px 0; color: #43524b; font-size: 10px; font-weight: 650; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; color: var(--ink); background: #fafcfb; font-size: 11px; }
.form-field textarea { min-height: 100px; resize: vertical; }
.architecture-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 17px 0 0; }
.architecture-step { padding: 14px; border-radius: 9px; background: #f6f9f7; }
.architecture-step span { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.architecture-step strong { display: block; margin: 6px 0 3px; font-size: 11px; }
.architecture-step p { margin: 0; font-size: 9px; }
.camera-placeholder { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed #d6e1da; border-radius: 10px; color: #75847c; background: radial-gradient(ellipse at center, #f9fbfa 0%, #f0f4f1 100%); }
.camera-glyph { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 14px; color: #638275; background: #e5eee8; font-size: 20px; }
.camera-placeholder strong { color: #4f5f57; font-size: 11px; }
.camera-placeholder small { font-size: 9px; }
.auth-dialog { width: min(420px, calc(100% - 32px)); max-width: none; padding: 0; overflow: visible; border: 0; border-radius: 16px; background: transparent; color: var(--ink); box-shadow: 0 24px 80px rgba(16, 42, 33, .22); }
.auth-dialog::backdrop { background: rgba(16, 33, 27, .46); backdrop-filter: blur(3px); }
.auth-panel { position: relative; padding: 30px; border-radius: 16px; background: #fff; }
.dialog-close { position: absolute; top: 14px; right: 15px; width: 32px; height: 32px; border: 0; border-radius: 9px; color: #718078; background: #f3f6f4; font-size: 21px; cursor: pointer; }
.auth-mark { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; color: #e4fff0; background: #173e34; font-size: 20px; font-weight: 700; }
.auth-panel h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.04em; }
.auth-description { margin-bottom: 18px; color: var(--muted); font-size: 11px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 17px; padding: 4px; border-radius: 9px; background: #f3f6f4; }
.auth-tab { min-height: 33px; border: 0; border-radius: 7px; color: #7a8780; background: transparent; font-size: 10px; font-weight: 700; }
.auth-tab.active { color: var(--green-dark); background: #fff; box-shadow: 0 1px 4px rgba(16, 42, 33, .08); }
.auth-form .form-field { margin: 12px 0; }
.auth-submit { width: 100%; margin-top: 6px; color: #fff; background: var(--green); }
.auth-unavailable { margin: 13px 0 0; padding: 10px; border-radius: 8px; color: #796d4f; background: #fbf8ed; font-size: 9px; line-height: 1.5; }
.auth-feedback { margin: 0 0 12px; padding: 10px 11px; border-radius: 8px; color: #426451; background: #edf7f0; font-size: 10px; }
.auth-feedback[data-kind="error"] { color: #8c4e44; background: #fbefed; }
.auth-feedback[data-kind="success"] { color: #28664f; background: #eaf6ef; }
.auth-form[hidden], .auth-feedback[hidden], .auth-unavailable[hidden] { display: none; }
.auth-link { display: block; width: 100%; margin-top: 11px; padding: 5px; border: 0; color: var(--green-dark); background: transparent; text-align: center; font-size: 10px; font-weight: 700; cursor: pointer; }
.auth-link:hover { text-decoration: underline; }
.auth-link-muted { color: var(--muted); }
.auth-policy { margin: 17px 0 0; color: #87938d; font-size: 9px; line-height: 1.55; text-align: center; }
.auth-form .form-field[hidden] { display: none; }
.auth-form input[disabled], .auth-form button[disabled] { cursor: not-allowed; opacity: .6; }
.auth-form input[name="code"] { font-size: 20px; font-weight: 700; letter-spacing: .3em; text-align: center; }
.account-chip { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.account-chip > span { color: #51645a; font-size: 10px; font-weight: 700; }
.account-logout { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: #5e6b64; background: #fff; font-size: 10px; font-weight: 700; cursor: pointer; }
.account-logout:hover { color: #9a4d43; border-color: #efd9d5; background: #fff8f7; }
[hidden] { display: none !important; }
.microservice-workspace { display: grid; grid-template-columns: 172px minmax(0, 1.2fr) minmax(300px, .85fr); align-items: start; align-content: start; gap: 14px; }
.service-dock { min-width: 0; padding: 15px 11px 12px; }
.dock-heading { padding: 3px 7px 13px; }
.dock-heading .eyebrow { margin-bottom: 2px; }
.dock-heading h2 { margin: 0 0 2px; font-size: 14px; }
.dock-heading small { color: var(--muted); font-size: 9px; }
.service-launchers { display: grid; gap: 5px; }
.service-launcher { width: 100%; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid transparent; border-radius: 10px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.service-launcher:hover { transform: translateX(2px); background: #f5f8f6; }
.service-launcher.is-selected { border-color: #d8e9df; background: #eef7f1; }
.launcher-logo { width: 44px; height: 44px; display: block; overflow: hidden; flex: 0 0 auto; border: 1px solid #dce5df; border-radius: 12px; background: #15202b; box-shadow: 0 3px 8px rgba(15, 32, 25, .1); }
.launcher-logo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 18% center; }
.launcher-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.launcher-copy strong { font-size: 9px; line-height: 1.25; overflow-wrap: anywhere; }
.launcher-copy small { color: var(--muted); font-size: 8px; line-height: 1.3; overflow-wrap: anywhere; }
.launcher-indicator { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #aeb8b2; }
.launcher-indicator[data-state="running"] { background: #4ca27f; box-shadow: 0 0 0 3px #e4f2e9; }
.launcher-indicator[data-state="not_running"] { background: #c67568; box-shadow: 0 0 0 3px #f8ece9; }
.launcher-indicator[data-state="unconfigured"], .launcher-indicator[data-state="unavailable"] { background: #c2a46e; }
.dock-footnote { display: flex; align-items: center; gap: 7px; margin: 13px 5px 0; padding-top: 11px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 8px; }
.dock-footnote .status-dot { width: 6px; height: 6px; }
.service-detail { min-width: 0; padding: 19px; }
.service-detail-header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.selected-service-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.selected-service-identity > div { min-width: 0; }
.selected-service-identity .eyebrow { margin-bottom: 2px; }
.selected-service-identity h2 { margin: 0 0 3px; font-size: 15px; letter-spacing: -.02em; }
.selected-service-logo { width: 42px; height: 42px; overflow: hidden; flex: 0 0 auto; border: 1px solid #dce5df; border-radius: 12px; background: #15202b; }
.selected-service-logo img { width: 100%; height: 100%; object-fit: cover; object-position: 18% center; }
.service-desktop { min-height: 420px; }
.service-empty { width: min(100%, 390px); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.service-empty .empty-state-icon { width: 48px; height: 48px; margin-bottom: 2px; font-size: 21px; }
.service-empty strong { color: #43534b; font-size: 13px; }
.service-empty small { color: var(--muted); font-size: 10px; }
.container-outline { overflow: hidden; }
.container-service-logo { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 18% center; border-radius: inherit; }
.open-service-dialog { width: min(410px, calc(100% - 32px)); max-width: none; padding: 0; border: 0; border-radius: 16px; color: var(--ink); background: transparent; box-shadow: 0 24px 80px rgba(16, 42, 33, .22); }
.open-service-dialog::backdrop { background: rgba(16, 33, 27, .48); backdrop-filter: blur(3px); }
.open-service-panel { position: relative; padding: 27px; border-radius: 16px; background: #fff; }
.open-service-panel h2 { margin: 0 0 7px; font-size: 19px; letter-spacing: -.035em; }
.open-service-panel .auth-description { margin-bottom: 12px; }
.open-service-note { margin: 0; padding: 10px; border-radius: 8px; color: #716a51; background: #fbf8ed; font-size: 9px; }
.service-dependencies { margin-top: 15px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; }
.service-dependencies > strong { font-size: 10px; }
.service-dependencies ul { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.service-dependencies li { display: grid; gap: 2px; padding-left: 10px; border-left: 2px solid #d5e2da; }
.service-dependencies li[data-ready="false"] { border-color: #d4a06f; }
.service-dependencies li strong { color: #506158; font-size: 9px; }
.service-dependencies li span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.digital-twin-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-self: start; gap: 12px; padding: 17px; }
.digital-twin-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.digital-twin-header .eyebrow { margin-bottom: 2px; }
.digital-twin-header h2 { margin: 0 0 3px; font-size: 15px; letter-spacing: -.02em; }
.digital-twin-header small { color: var(--muted); font-size: 9px; }
.twin-mode-pill { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #dce9e0; border-radius: 999px; color: #52725e; background: #f0f7f2; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.digital-twin-viewer { position: relative; width: 100%; height: 420px; min-height: 330px; max-height: 520px; flex: 0 0 420px; align-self: stretch; overflow: hidden; border: 1px solid #dfe8e2; border-radius: 11px; background: radial-gradient(ellipse at 50% 42%, #fbfdfb 0%, #edf3ef 70%, #e7eee9 100%); }
.digital-twin-viewer canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: 100%; display: block; cursor: grab; touch-action: none; }
.digital-twin-viewer canvas:active { cursor: grabbing; }
.digital-twin-loading, .digital-twin-error { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 22px; color: var(--ink); background: rgba(246, 249, 247, .9); text-align: center; }
.digital-twin-loading small, .digital-twin-error small { max-width: 260px; color: var(--muted); font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.digital-twin-error { color: #8f4e44; }
.digital-twin-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.digital-twin-controls label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.digital-twin-controls input { accent-color: var(--green); }
.digital-twin-note { margin: 0; padding: 9px 10px; border-radius: 8px; color: #716a51; background: #fbf8ed; font-size: 8px; line-height: 1.45; }
.control-status { margin-bottom: 15px; padding: 19px; }
.control-status[data-state="ready"] { border-color: #cce4d7; }
.control-status[data-state="unavailable"] { border-color: #efd5d1; }
.control-status-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.control-status-heading .eyebrow { margin-bottom: 3px; }
.control-status-heading h2 { margin: 0 0 4px; font-size: 15px; }
.control-status-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 10px; }
.control-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
.control-check { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; }
.control-check[data-ready="true"] { border-color: #d6e9de; background: #f4faf6; }
.control-check[data-ready="false"] { border-color: #f0e1d4; background: #fffaf5; }
.control-check strong { font-size: 10px; }
.control-check span { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.control-permission-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.hand-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hand-control { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfa; }
.hand-control h3 { grid-column: 1 / -1; margin: 0 0 2px; font-size: 11px; }
.button-control { color: #fff; background: var(--green); }
.button-control:hover:not(:disabled) { background: var(--green-dark); }
.control-action-footer { display: grid; gap: 5px; margin-top: 14px; }
.button-stop { width: fit-content; color: #8f4e44; border: 1px solid #efd8d3; background: #fff7f5; }
.button-stop:hover:not(:disabled) { background: #fbeae7; }
.control-action-footer small, .control-readonly-state span { color: var(--muted); font-size: 9px; }
.control-action-result { margin: 12px 0 0; padding: 10px; border-radius: 8px; color: #486151; background: #f0f7f2; font-size: 10px; }
.control-action-result[data-kind="error"] { color: #8e4b41; background: #fbefed; }
.control-action-result[data-kind="success"] { color: #28664f; background: #eaf6ef; }
.control-readonly-state { display: grid; gap: 5px; padding: 13px; border-radius: 9px; background: #f7f9f8; }
.control-readonly-state strong { font-size: 10px; }
.control-dependency-explainer { display: grid; gap: 9px; margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 10px; }
.control-dependency-explainer strong { color: var(--ink); }
.joystick-layout { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto auto; align-items: center; justify-items: center; gap: 8px; padding: 14px 0 4px; }
.joystick-label { color: var(--muted); font-size: 11px; font-weight: 650; }
.joystick-label-top { grid-column: 2; grid-row: 1; }
.joystick-label-left { grid-column: 1; grid-row: 2; }
.joystick-pad { grid-column: 2; grid-row: 2; width: 220px; height: 220px; touch-action: none; cursor: grab; border-radius: 50%; outline: none; }
.joystick-pad:active { cursor: grabbing; }
.joystick-pad:focus-visible { outline: 2px solid #5f8f7a; outline-offset: 4px; }
.joystick-pad svg { width: 100%; height: 100%; display: block; }
.joystick-pad .joystick-ring { fill: #f4f7f5; stroke: #d9dfdb; stroke-width: 2; }
.joystick-pad .joystick-axis { stroke: #d9dfdb; stroke-width: 1; stroke-dasharray: 3 4; }
.joystick-pad .joystick-trail { stroke: #5f8f7a; stroke-width: 6; stroke-linecap: round; opacity: .35; }
.joystick-pad .joystick-knob { fill: #3b4a43; stroke: #ffffff; stroke-width: 3; }
.joystick-label-right { grid-column: 3; grid-row: 2; }
.joystick-label-bottom { grid-column: 2; grid-row: 3; }
.joystick-readout { margin: 6px 0 0; text-align: center; color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.control-grid { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: start; column-gap: 14px; row-gap: 12px; }
.controller-control-card { padding: 15px 18px; }
.controller-control-card .compact-heading { margin-bottom: 8px; }
.controller-control-card h2 { font-size: 15px; }
.controller-control-layout { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.controller-control-layout .control-permission-note { margin: 0; }
.controller-control-layout .button { flex: 0 0 auto; }
.controller-control-note { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.control-card-compact { padding: 14px 16px; }
.control-card-compact h2 { font-size: 14px; }
.control-card-compact > p { font-size: 10px; }
.control-card-compact .compact-heading { margin-bottom: 10px; }
.control-card-compact .notice { margin: 0; padding: 9px 11px; font-size: 10px; }
.control-card-compact .control-permission-note { margin-top: 8px; }
.control-card-compact .hand-dial-wrap { gap: 5px; }
.control-card-compact .hand-slider-name { font-size: 11px; }
.control-card-compact .hand-slider-state { font-size: 10px; }
.control-grid #base-joystick-card { grid-column: 1; grid-row: 1; padding: 13px 11px; }
.control-grid #base-joystick-card .compact-heading { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 9px; }
.control-grid #base-joystick-card .joystick-layout { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 3px; padding: 9px 0 2px; }
.control-grid #base-joystick-card .joystick-label { font-size: 9px; line-height: 1.25; text-align: center; }
.control-grid #head-control-card { grid-column: 1; grid-row: 2; padding: 10px 12px; }
.control-grid #head-control-card .compact-heading { flex-direction: row; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 2px; }
.control-grid #head-control-card .pill { max-width: 125px; padding: 5px 7px; font-size: 8px; }
.head-joystick-layout { display: grid; grid-template-columns: 1fr 104px 1fr; grid-template-rows: auto 104px auto; align-items: center; justify-items: center; gap: 3px; padding-top: 4px; }
.head-joystick { grid-column: 2; grid-row: 2; width: 104px; height: 104px; border-radius: 50%; opacity: .65; }
.head-joystick svg { display: block; width: 100%; height: 100%; }
.head-joystick .joystick-ring { fill: #f4f7f5; stroke: #d9dfdb; stroke-width: 2; }
.head-joystick .joystick-axis { stroke: #d9dfdb; stroke-width: 1; stroke-dasharray: 3 4; }
.head-joystick .joystick-knob { fill: #65736c; stroke: #fff; stroke-width: 3; }
.head-joystick-label { color: var(--muted); font-size: 9px; font-weight: 650; }
.head-joystick-label-top { grid-column: 2; grid-row: 1; }
.head-joystick-label-left { grid-column: 1; grid-row: 2; }
.head-joystick-label-right { grid-column: 3; grid-row: 2; }
.head-joystick-label-bottom { grid-column: 2; grid-row: 3; }
.control-grid #arm-control-card { grid-column: 1; grid-row: 3; padding: 12px; }
.control-grid #arm-control-card .compact-heading { align-items: flex-start; gap: 8px; }
.control-grid #arm-control-card .pill { flex: 0 0 auto; padding: 5px 7px; font-size: 8px; }
.arm-trigger-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 9px 0; }
.arm-trigger-map > div { display: grid; gap: 6px; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: #fafcfb; }
.arm-trigger-map strong { color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.arm-direction-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.arm-direction-buttons button { height: 40px; border: 1px solid #b8ccc0; border-radius: 5px; background: #fff; color: #234838; font-size: 21px; line-height: 1; cursor: pointer; touch-action: none; }
.arm-direction-buttons button:hover:not(:disabled), .arm-direction-buttons button:focus-visible { background: #e8f4ec; border-color: #286347; }
.arm-direction-buttons button:active:not(:disabled) { background: #c9e6d3; }
.arm-direction-buttons button:disabled { opacity: .45; cursor: not-allowed; }
.control-grid .control-camera-card { grid-column: 2; grid-row: 1 / span 3; }
.control-camera-toolbar { margin: 4px 0 10px; gap: 8px; }
.control-camera-toolbar select { flex: 1 1 120px; min-width: 120px; padding: 7px 9px; font-size: 11px; }
.control-camera-toolbar .button { padding: 7px 11px; font-size: 11px; }
.control-camera-viewport { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #0c1916; }
.control-camera-viewport > .control-camera-placeholder, .control-camera-viewport > .control-camera-frame { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; min-height: 0; max-height: none; }
.control-camera-viewport > .control-camera-placeholder { z-index: 1; }
.control-camera-viewport > .control-camera-frame { object-fit: contain; }
.control-camera-viewport > [hidden] { display: none !important; }
.control-camera-card { padding: 16px; }
.control-camera-card .monitoring-frame-meta { margin-top: 7px; }
#control-camera-status[data-state="ready"] { color: var(--green-dark); }
#control-camera-status[data-state="error"] { color: #b23b3b; }
.accessory-control-card { padding: 18px 20px; }
.accessory-control-card .compact-heading { margin-bottom: 16px; }
.accessory-control-card h2 { font-size: 16px; }
.accessory-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.accessory-control-field { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafcfb; }
.accessory-control-field > span:first-child { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink); font-size: 11px; }
.accessory-control-field output { color: var(--green-dark); font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.accessory-control-field input[type="range"] { width: 100%; accent-color: var(--green); cursor: pointer; }
.color-selection { display: flex; align-items: center; gap: 10px; }
.color-selection input[type="color"] { width: 52px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.color-preview { flex: 1; height: 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--green); }
.face-selection { display: flex; align-items: center; gap: 10px; }
.face-selection select { min-width: 112px; flex: 1; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 11px; }
.face-control-field { position: relative; overflow: hidden; border-color: #cfe1d6; background: linear-gradient(145deg, #f7fbf8 0%, #eef7f1 100%); }
.face-control-field::after { position: absolute; right: -22px; bottom: -34px; width: 110px; height: 110px; border: 1px solid rgba(95, 143, 122, .14); border-radius: 50%; content: ""; }
.face-control-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.face-control-heading span { display: grid; gap: 3px; }
.face-control-heading small { color: var(--muted); font-size: 9px; font-weight: 500; }
.face-control-heading output { color: var(--green-dark); font-size: 11px; font-weight: 750; }
.face-selection { position: relative; z-index: 1; align-items: stretch; }
.face-selection select { min-width: 0; }
.face-preview { display: grid; place-items: center; min-width: 82px; height: 48px; border: 1px solid #b8d2c1; border-radius: 12px; color: #e5f5e9; background: radial-gradient(circle at 50% 35%, #466e59 0%, #263d32 72%); box-shadow: inset 0 0 12px rgba(153, 224, 178, .14), 0 4px 10px rgba(43, 77, 58, .1); font-size: 20px; font-weight: 700; letter-spacing: 1px; text-shadow: 0 0 7px rgba(203, 255, 215, .55); }
.accessory-control-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; }
.accessory-control-footer .control-permission-note { margin: 0; }
.accessory-control-footer .button { flex: 0 0 auto; }
@media (max-width: 900px) {
  .control-grid { grid-template-columns: minmax(0, 1fr); }
  .control-grid #base-joystick-card, .control-grid #head-control-card, .control-grid #arm-control-card, .control-grid .control-camera-card { grid-column: auto; grid-row: auto; position: static; }
  .control-grid .control-camera-card, .control-camera-placeholder, .control-camera-frame { width: 100%; max-width: 100%; }
  .control-camera-viewport > .control-camera-placeholder { min-height: 0; }
  .control-grid #base-joystick-card .joystick-label { font-size: 11px; }
  .control-grid #head-control-card .compact-heading { flex-direction: row; align-items: center; gap: 12px; }
  .controller-control-layout { align-items: stretch; flex-direction: column; gap: 10px; }
  .controller-control-layout .button { width: 100%; }
  .accessory-control-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .estop-status { grid-template-columns: 1fr; gap: 13px; }
  .estop-status-meta { gap: 8px 12px; }
  .control-check-grid, .hand-control-grid { grid-template-columns: 1fr; }
  .control-status-heading { align-items: flex-start; flex-direction: column; }
  .accessory-control-footer { align-items: stretch; flex-direction: column; }
  .accessory-control-footer .button { width: 100%; }
}
.dialog-actions { display: flex; justify-content: end; gap: 8px; margin-top: 19px; }
.button-open { color: #fff; background: var(--green); }
.service-monitor { padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.service-monitor-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.service-monitor-top h2 { margin: 0 0 5px; font-size: 16px; letter-spacing: -.025em; }
.service-subtitle { margin: 0; color: var(--muted); font-size: 10px; }
.pill-running { color: #26735f; background: #e8f4ed; }
.service-desktop { min-height: 370px; position: relative; display: grid; place-items: center; overflow: hidden; padding: 26px; border: 1px solid #dfe8e2; border-radius: 11px; background: radial-gradient(ellipse at 52% 44%, #f6faf7 0%, #edf3ef 57%, #e7eee9 100%); }
.service-checking, .service-offline { width: min(100%, 390px); display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.service-checking strong, .service-offline h3 { margin: 0; color: #394b42; font-size: 14px; }
.service-checking small, .service-offline small { color: var(--muted); font-size: 10px; }
.service-offline p { max-width: 340px; margin: 0; color: var(--muted); font-size: 11px; }
.offline-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 2px; border-radius: 16px; color: #8e6f67; background: #f4e9e6; font-size: 25px; }
.checking-spinner { width: 25px; height: 25px; border: 2px solid #d9e6df; border-top-color: var(--green); border-radius: 50%; animation: service-spin .8s linear infinite; }
.service-window { width: min(100%, 760px); overflow: hidden; border: 1px solid rgba(255, 255, 255, .7); border-radius: 13px; background: #fff; box-shadow: 0 25px 65px rgba(27, 55, 42, .2), 0 4px 14px rgba(27, 55, 42, .08); transform-origin: center; }
.service-window.is-opening { animation: service-window-open .8s cubic-bezier(.2, .78, .25, 1) both; }
.window-titlebar { min-height: 41px; display: flex; align-items: center; gap: 11px; padding: 0 13px; border-bottom: 1px solid #e8ede9; color: #58675f; background: #fbfcfb; font-size: 9px; font-weight: 700; }
.window-controls { display: flex; gap: 5px; }
.window-controls i { width: 7px; height: 7px; border-radius: 50%; background: #d8e0db; }
.window-controls i:first-child { background: #ed9d91; }
.window-controls i:nth-child(2) { background: #e8c975; }
.window-controls i:nth-child(3) { background: #8bc6a2; }
.window-state { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #43836d; font-size: 8px; }
.window-state .status-dot { width: 6px; height: 6px; }
.window-body { min-height: 212px; display: flex; align-items: center; justify-content: center; gap: clamp(22px, 6vw, 65px); padding: 27px; }
.window-visual { width: 140px; height: 140px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 28px; background: linear-gradient(145deg, #e8f5ee, #f5faf6); }
.container-outline { width: 73px; height: 73px; position: relative; display: grid; place-items: center; border: 1px solid #95c5ad; border-radius: 18px; color: #24765e; background: rgba(255, 255, 255, .8); box-shadow: 0 8px 22px rgba(29, 98, 72, .12); }
.container-cube { font-size: 30px; }
.cube-pulse { position: absolute; inset: -10px; border: 1px solid rgba(63, 155, 115, .38); border-radius: 24px; animation: container-pulse 1.4s ease-out infinite; }
.window-copy { width: min(100%, 340px); }
.window-copy .eyebrow { margin-bottom: 6px; color: #56836e; }
.window-copy h3 { margin: 0 0 5px; font-size: 19px; letter-spacing: -.035em; }
.window-copy p { margin: 0 0 16px; color: var(--muted); font-size: 10px; }
.window-copy small { color: #88958e; font-size: 8px; }
.startup-progress { height: 4px; overflow: hidden; margin-bottom: 8px; border-radius: 5px; background: #edf2ee; }
.startup-progress span { width: 100%; height: 100%; display: block; transform: scaleX(.24); transform-origin: left; border-radius: inherit; background: linear-gradient(90deg, #248367, #82c5a0); }
.is-opening .startup-progress span { animation: service-progress 1.05s ease-out both; }
.window-footer { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 14px; border-top: 1px solid #edf0ee; color: #89958e; background: #fcfdfc; font-size: 8px; }
.service-monitor-footer { display: flex; justify-content: space-between; gap: 15px; padding: 13px 2px 0; color: var(--subtle); font-size: 9px; }
.service-monitor-footer > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.service-monitor-footer .status-dot { width: 6px; height: 6px; }
.monitoring-camera-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 4px 0 16px; color: var(--subtle); font-size: 12px; }
.monitoring-camera-toolbar select { min-width: 210px; max-width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.monitoring-frame { display: block; width: 100%; max-height: 560px; object-fit: contain; border-radius: 12px; background: #0c1916; }
.monitoring-frame-meta { min-height: 18px; margin-top: 9px; color: var(--subtle); font-size: 11px; }
.monitoring-camera-list, .monitoring-detections, .monitoring-events { display: grid; gap: 9px; margin-top: 14px; }
.monitoring-camera-card, .monitoring-detection-row, .monitoring-event-row { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(100px, 1fr) minmax(120px, 1fr); align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; font-size: 11px; }
.monitoring-camera-card strong, .monitoring-detection-row strong, .monitoring-event-row strong { color: var(--ink); }
.monitoring-camera-card span, .monitoring-detection-row span, .monitoring-event-row span { color: var(--muted); }
.monitoring-camera-card small, .monitoring-detection-row small, .monitoring-event-row small { color: var(--subtle); }
.monitoring-event-row { grid-template-columns: minmax(120px, .65fr) minmax(140px, 1.3fr) minmax(120px, 1fr); }
.ai-loop-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: stretch; gap: 18px; margin-top: 22px; }
.ai-loop-vision-card, .ai-loop-activity-card { min-width: 0; }
.ai-loop-frame-stage { position: relative; display: grid; place-items: center; width: 100%; min-height: 260px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #0c1916; }
.ai-loop-frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.ai-loop-frame[hidden] { display: none; }
.ai-loop-frame-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 9px; padding: 24px; color: #d7e5de; text-align: center; }
.ai-loop-frame-placeholder[hidden] { display: none; }
.ai-loop-frame-placeholder .camera-glyph { color: #80c2a4; font-size: 28px; }
.ai-loop-frame-placeholder strong { font-size: 13px; }
.ai-loop-frame-placeholder small { max-width: 340px; color: #9fb2a8; font-size: 10px; }
.ai-loop-frame-meta { min-height: 18px; margin: 9px 0 0; color: var(--subtle); font-size: 10px; }
.ai-loop-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ai-loop-metrics div { min-width: 0; }
.ai-loop-metrics dt { color: var(--subtle); font-size: 8px; font-weight: 800; }
.ai-loop-metrics dd { margin: 4px 0 0; color: var(--ink); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.ai-loop-detection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 14px; }
.ai-loop-detection-heading h3 { margin: 0; font-size: 12px; }
.ai-loop-detection-heading span { color: var(--subtle); font-size: 9px; }
.ai-loop-detections { display: grid; gap: 0; max-height: 220px; margin-top: 7px; overflow: auto; overscroll-behavior: contain; }
.ai-loop-detection-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(90px, .5fr); align-items: center; gap: 10px; min-height: 37px; border-bottom: 1px solid var(--line); font-size: 10px; }
.ai-loop-detection-row strong { overflow-wrap: anywhere; }
.ai-loop-detection-row span { color: var(--green-dark); font-variant-numeric: tabular-nums; }
.ai-loop-detection-row small { color: var(--muted); text-align: right; }
.ai-loop-activity-heading { align-items: center; }
.ai-loop-activity-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.ai-loop-activity-actions .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
.ai-loop-activity-note { margin: 0 0 10px; padding: 9px 10px; border-left: 2px solid #78ad91; background: #f6faf7; color: var(--muted); font-size: 10px; }
.ai-loop-activity-list { display: grid; max-height: min(68vh, 680px); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.ai-loop-activity-row { display: grid; gap: 4px; padding: 13px 3px; border-bottom: 1px solid var(--line); }
.ai-loop-activity-row strong { color: var(--ink); font-size: 11px; overflow-wrap: anywhere; }
.ai-loop-activity-row small { color: var(--subtle); font-size: 9px; }
.ai-loop-trace-details { margin-top: 4px; }
.ai-loop-trace-details summary { color: var(--green-dark); cursor: pointer; font-size: 10px; }
.ai-loop-trace-details pre { max-height: 240px; margin: 7px 0 0; padding: 9px 10px; overflow: auto; border-left: 2px solid #78ad91; background: #f6faf7; color: var(--ink); font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-loop-activity-row:first-child { border-top: 1px solid var(--line); }
.ai-loop-activity-card .muted, .ai-loop-detections .muted { margin: 12px 0; font-size: 10px; }
.ai-loop-debug-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 18px; margin-top: 18px; }
.ai-loop-debug-card { min-width: 0; }
.ai-loop-reasoner-list, .ai-loop-journal-list { display: grid; max-height: min(60vh, 620px); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.ai-loop-state-section { min-width: 0; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ai-loop-state-section h3 { margin: 0 0 7px; color: var(--ink); font-size: 11px; }
.ai-loop-state-section > .muted { margin: 0 0 7px; font-size: 9px; }
.ai-loop-state-pre, .ai-loop-journal-row pre { max-height: 260px; margin: 0; padding: 10px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: #f7faf8; color: var(--ink); font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-loop-journal-row { padding: 9px 2px; border-bottom: 1px solid var(--line); }
.ai-loop-journal-row summary { color: var(--green-dark); cursor: pointer; font-size: 10px; overflow-wrap: anywhere; }
.ai-loop-journal-row pre { margin-top: 8px; }
.logs-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 20px; }
.logs-toolbar label { color: var(--muted); font-size: 10px; font-weight: 600; }
.logs-toolbar select { min-width: 150px; }
.logs-toolbar .subtle-label { margin-left: auto; }
.logs-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 24px; align-items: stretch; width: 100%; margin-top: 24px; }
.logs-card { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.robot-logs-scroll { flex: 1 1 0; min-height: 0; max-height: 560px; margin-top: 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.robot-logs { display: grid; gap: 12px; }
.robot-log-row { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; font-size: 11px; }
.robot-log-row strong { color: var(--ink); overflow-wrap: anywhere; }
.robot-log-row span { color: var(--muted); overflow-wrap: anywhere; }
.robot-log-row small { color: var(--subtle); overflow-wrap: anywhere; }
.logs-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 10px; }
.logs-pagination .button { flex: 0 0 auto; padding: 8px 12px; }
.logs-pagination .button:disabled { cursor: not-allowed; opacity: .5; }
.activation-card { min-width: 0; }
.activation-card .section-heading { align-items: center; }
.activation-card .subtle-label { max-width: none; white-space: nowrap; }
.activation-note { margin: 0 0 14px; font-size: 10px !important; line-height: 1.5; }
.activation-pipeline { display: grid; gap: 8px; margin-top: 18px; }
.activation-arrow { display: grid; place-items: center; height: 20px; color: #77a894; font-size: 20px; font-weight: 750; line-height: 1; }
.flow-stage { display: grid; }
.flow-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #b9d5c6; }
.flow-branch { display: grid; grid-template-rows: 20px minmax(82px, 1fr); align-items: stretch; gap: 5px; min-width: 0; }
.flow-branch .activation-row { width: 100%; height: 100%; }
.flow-branch-arrow { color: #77a894; font-size: 20px; font-weight: 750; line-height: 1; text-align: center; }
.activation-row { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfb; }
.activation-indicator { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: #b7c2bc; box-shadow: 0 0 0 3px #edf1ee; }
.activation-row[data-state="active"] { border-color: #cce6d7; background: #f4fbf6; }
.activation-row[data-state="active"] .activation-indicator { background: #3f9d7d; box-shadow: 0 0 0 3px #dff1e5; }
.activation-row[data-state="observed"] .activation-indicator { background: #c2a46e; box-shadow: 0 0 0 3px #f3ecdc; }
.activation-row strong, .activation-row span, .activation-row small { display: block; overflow-wrap: anywhere; }
.activation-row strong { color: var(--ink); font-size: 10px; }
.activation-row span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.activation-row small { margin-top: 5px; color: var(--subtle); font-size: 9px; }
.monitoring-detection-row { grid-template-columns: minmax(90px, .6fr) minmax(110px, .7fr) minmax(120px, 1fr); }
@media (max-width: 650px) {
  .logs-layout { grid-template-columns: minmax(0, 1fr); }
  .ai-loop-grid { grid-template-columns: minmax(0, 1fr); }
  .ai-loop-debug-grid { grid-template-columns: minmax(0, 1fr); }
  .ai-loop-frame-stage { min-height: 210px; }
  .ai-loop-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-loop-activity-heading { align-items: flex-start; flex-direction: column; }
  .ai-loop-activity-actions { justify-content: flex-start; }
  .monitoring-camera-card, .monitoring-detection-row, .monitoring-event-row, .robot-log-row { grid-template-columns: 1fr; gap: 5px; }
  .monitoring-camera-toolbar { align-items: stretch; }
  .monitoring-camera-toolbar select { flex: 1 1 100%; }
  .logs-toolbar .subtle-label { margin-left: 0; }
  .logs-pagination { gap: 6px; font-size: 9px; }
  .logs-pagination .button { padding: 7px 9px; }
}
.service-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@keyframes service-spin { to { transform: rotate(360deg); } }
@keyframes service-window-open { from { opacity: 0; transform: scale(.42) translateY(45px); filter: blur(4px); } to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); } }
@keyframes service-progress { from { transform: scaleX(.08); } to { transform: scaleX(1); } }
@keyframes container-pulse { 0% { transform: scale(.82); opacity: .75; } 100% { transform: scale(1.28); opacity: 0; } }

@media (max-width: 1150px) {
  .topbar { flex-wrap: wrap; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
  .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .sign-in-button { margin-left: auto; }
  .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .robot-log-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .logs-layout { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .flow-branches { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .topbar { padding-inline: 18px; }
  .main-nav { gap: 1px; }
  .nav-link { padding: 8px 9px; font-size: 10px; }
  .page-shell { width: min(100% - 34px, 580px); padding-top: 30px; }
  .welcome-row { align-items: start; flex-direction: column; gap: 12px; }
  .hero-panel { min-height: 230px; padding: 27px 23px; }
  .hero-orbit { right: -100px; opacity: .48; }
  .hero-footnote { right: auto; left: 23px; bottom: 13px; }
  .health-grid, .quick-grid, .overview-grid, .bottom-grid, .page-grid { grid-template-columns: 1fr; }
  .logs-layout { grid-template-columns: 1fr; }
  .page-card-full { grid-column: auto; }
  .health-card { min-height: 78px; }
  .section-heading { align-items: start; }
  .subtle-label { max-width: 130px; text-align: right; }
  .metric-grid, .architecture-flow { grid-template-columns: 1fr; }
  .page-footer { flex-direction: column; gap: 4px; }
  .service-info-grid { grid-template-columns: 1fr; }
  .microservice-workspace { grid-template-columns: 1fr; align-items: stretch; }
  .service-dock { padding: 13px; }
  .service-launchers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-launcher { padding: 7px; }
  .service-detail { padding: 14px; }
  .service-detail-header { align-items: flex-start; }
  .service-desktop { min-height: 360px; }
  .service-monitor { padding: 15px; }
  .service-desktop { min-height: 335px; padding: 17px; }
  .window-body { flex-direction: column; gap: 18px; padding: 22px 18px; }
  .window-visual { width: 92px; height: 92px; border-radius: 21px; }
  .container-outline { width: 58px; height: 58px; border-radius: 15px; }
  .container-cube { font-size: 24px; }
  .window-copy { text-align: center; }
  .service-monitor-footer { flex-direction: column; gap: 4px; }
  .digital-twin-viewer { height: 360px; min-height: 340px; max-height: 360px; flex-basis: 360px; }
}
@media (min-width: 701px) and (max-width: 1050px) {
  .microservice-workspace { grid-template-columns: 164px minmax(0, 1fr); }
  .digital-twin-panel { grid-column: 2; }
  .digital-twin-viewer { height: 400px; min-height: 370px; max-height: 400px; flex-basis: 400px; }
}
/* Live telemetry: toolbar, charts, meters, and status lists */
.live-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: -6px 0 18px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .86); box-shadow: var(--shadow); }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 11px; }
.live-indicator .status-dot { width: 7px; height: 7px; }
.live-indicator[data-state="live"] .status-dot { background: #3f9d7d; box-shadow: 0 0 0 3px #e4f2e9; }
.live-indicator[data-state="stale"] .status-dot, .live-indicator[data-state="error"] .status-dot { background: #c2a46e; }
.live-indicator[data-state="paused"] .status-dot { background: #aab5af; }
.live-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.live-actions .button { min-height: 34px; padding: 0 13px; font-size: 11px; }
.button[aria-pressed="true"] { color: var(--green-dark); border-color: #cfe5da; background: var(--green-pale); }
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.live-card { min-width: 0; padding: 18px; }
.live-card-wide { grid-column: 1 / -1; }
.live-card .section-heading { margin-bottom: 12px; }
.live-card .section-heading h2 { font-size: 15px; }
.card-state { color: var(--subtle); font-size: 10px; white-space: nowrap; }
.card-state[data-tone="error"] { color: #9a5b50; }
.card-state[data-tone="ok"] { color: #2f7c63; }
.chart-host { min-width: 0; }
.talos-chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: #e3ebe6; stroke-width: 1; }
.chart-tick { fill: #8a9891; font-size: 10px; }
.chart-series { stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-series circle { fill: currentColor; }
.chart-series-0 { stroke: #17866d; color: #17866d; background: #17866d; }
.chart-series-1 { stroke: #4f7fb8; color: #4f7fb8; background: #4f7fb8; }
.chart-series-2 { stroke: #c28a3c; color: #c28a3c; background: #c28a3c; }
.chart-series-3 { stroke: #8a6fb8; color: #8a6fb8; background: #8a6fb8; }
.chart-series-4 { stroke: #c46b5f; color: #c46b5f; background: #c46b5f; }
.chart-series-5 { stroke: #5e8f7a; color: #5e8f7a; background: #5e8f7a; }
.chart-empty { margin: 0; padding: 26px 8px; color: var(--muted); font-size: 11px; text-align: center; }
.chart-empty[hidden] { display: none; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 9px 0 0; padding: 0; list-style: none; }
.chart-legend li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.chart-legend strong { color: var(--ink); font-size: 10px; }
.chart-swatch { width: 10px; height: 10px; display: inline-block; border-radius: 3px; }
.probe-list, .ai-service-list, .jetson-facts { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.probe-list li, .ai-service-list li { display: grid; grid-template-columns: minmax(110px, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfb; font-size: 10px; }
.probe-list strong, .ai-service-list strong { color: var(--ink); font-size: 10px; }
.probe-list span, .ai-service-list span { color: var(--muted); font-size: 9px; text-align: right; }
.ai-service-list li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
.ai-service-list li strong { grid-column: 1; grid-row: 1; }
.ai-service-list li span:nth-of-type(1) { grid-column: 2; grid-row: 1; }
.ai-service-list li span:nth-of-type(2) { grid-column: 1; grid-row: 2; text-align: left; }
.ai-service-list li span:nth-of-type(3) { grid-column: 2; grid-row: 2; }
.ai-service-list li span[data-model-loaded="true"] { color: #2f7c63; font-weight: 650; }
.ai-service-list li span[data-model-loaded="false"] { color: #9a5b50; font-weight: 650; }
.ai-service-list li span[data-model-loaded="stale"] { color: #9a7440; font-weight: 650; }
.probe-list li[data-state="running"] { border-color: #d6e9de; background: #f4faf6; }
.probe-list li[data-state="not_running"] { border-color: #efd8d3; background: #fff8f7; }
.ai-service-list li[data-status="healthy"], .ai-service-list li[data-status="ready"] { border-color: #d6e9de; background: #f4faf6; }
.ai-service-list li[data-status="disconnected"], .ai-service-list li[data-status="failed"] { border-color: #efd8d3; background: #fff8f7; }
.ai-service-list li[data-status="degraded"] { border-color: #eadcc3; background: #fffaf1; }
.jetson-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jetson-facts > div { min-width: 0; display: grid; gap: 2px; padding: 9px 10px; border-radius: 8px; background: #f7f9f8; }
.jetson-facts small { color: var(--muted); font-size: 9px; }
.jetson-facts strong { color: var(--ink); font-size: 11px; overflow-wrap: anywhere; }
.meter-list { display: grid; gap: 9px; margin-top: 10px; }
.meter-row { display: grid; grid-template-columns: minmax(68px, auto) minmax(60px, 1fr) minmax(86px, auto); align-items: center; gap: 10px; font-size: 10px; }
.meter-label { color: var(--muted); }
.meter-bar { display: block; width: 100%; height: 8px; }
.meter-track { fill: #edf2ee; }
.meter-fill { fill: #3f9d7d; }
.meter-value { color: var(--ink); font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.live-pose { margin-top: 4px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; }
.live-pose .eyebrow { margin-bottom: 2px; }
.live-pose-note { margin: 8px 0 0; color: var(--subtle); font-size: 8px; line-height: 1.45; }
.console-chart { padding: 0 27px 16px; }
.console-chart .chart-legend { margin-top: 4px; }
.service-live-note { margin: 0; color: var(--muted); font-size: 10px; }
.service-live-note[data-tone="error"] { color: #9a5b50; }
.is-stale .live-card { opacity: .62; transition: opacity .2s ease; }
.pill-warning { color: #7d6129; background: #faf3e4; }
.status-dot-warn { background: #c2a46e; }
.overview-events { display: grid; gap: 8px; }
.overview-event-row { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfb; font-size: 10px; }
.overview-event-row strong { color: var(--ink); font-size: 10px; }
.overview-event-row span { min-width: 0; color: var(--muted); overflow-wrap: anywhere; }
.overview-event-row small { color: var(--subtle); font-size: 9px; white-space: nowrap; }
.pill-text { display: inline; }

@media (max-width: 1050px) {
  .live-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .live-toolbar { align-items: stretch; }
  .live-actions { width: 100%; }
  .live-actions .button { flex: 1 1 auto; }
  .jetson-facts { grid-template-columns: 1fr; }
  .meter-row { grid-template-columns: 74px minmax(40px, 1fr) minmax(70px, auto); }
  .console-chart { padding: 0 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}