body[data-system] { --accent: #167c63; font-size: 17px; background: #f2f6f4; }
.boot-message { padding: 30px; color: #167c63; font-size: 20px; }
.terminal { width: 100%; }
.terminal .topbar { min-height: 80px; padding: 0 20px; gap: 22px; }
.terminal .brand-name { font-size: 20px; }
.terminal .brand-caption { font-size: 11px; }
.terminal .brand { min-width: 295px; }
.terminal .brand-mark { width: 43px; height: 43px; }
.terminal .topnav { gap: 1px; }
.terminal .topnav a { padding: 0 15px; font-size: 17px; }
.header-tools { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.header-tools .icon-button { width: 40px; height: 40px; padding: 0; }
.header-tools .icon { width: 20px; height: 20px; }
.font-button { font-weight: 800; font-size: 16px; }
.notification-button { position: relative; }
.notification-count { position: absolute; right: -4px; top: -6px; min-width: 17px; padding: 2px; background: #bf5547; color: white; border-radius: 20px; font-size: 11px; }
.terminal .page { width: 100%; padding: 22px 20px 18px; }
.terminal .page-heading { align-items: center; margin-bottom: 20px; }
.terminal h1 { font-size: 28px; }
.terminal .eyebrow { font-size: 13px; }
.terminal .heading-note { font-size: 16px; }
.terminal .heading-actions { justify-content: flex-end; }
.terminal .time-chip { font-weight: 500; font-size: 15px; }
.live-chip { display: inline-flex; align-items: center; gap: 7px; color: #3f6254; font-size: 14px; }
.live-chip .pulse { width: 7px; height: 7px; box-shadow: none; }
.terminal .metric-grid { gap: 14px; margin-bottom: 16px; }
.terminal .metric { position: relative; align-items: flex-start; min-height: 122px; padding: 17px 18px; }
.terminal .metric-icon { position: absolute; top: 17px; right: 16px; width: 36px; height: 36px; }
.terminal .metric-label { font-size: 16px; padding-right: 34px; }
.terminal .metric-value { margin: 10px 0 8px; font-size: 31px; letter-spacing: -.02em; }
.terminal .metric-trend { color: #778780; font-size: 13px; }
.terminal .metric-unit { margin-left: 6px; font-weight: 500; font-size: 15px; letter-spacing: 0; }
.terminal .content-grid { grid-template-columns: minmax(0,1.55fr) minmax(330px,1fr); gap: 16px; align-items: stretch; }
.terminal .panel { padding: 19px; }
.terminal .panel-heading { margin-bottom: 17px; }
.terminal .panel-title { font-size: 20px; }
.terminal .panel-subtitle { margin-top: 6px; font-size: 14px; line-height: 1.5; }
.terminal .badge { font-size: 13px; font-weight: 600; }
.panel-kicker { display: flex; align-items: center; gap: 8px; }
.panel-kicker > .icon { width: 20px; height: 20px; color: var(--green); }
.board { position: relative; min-height: 232px; padding: 24px 16px 16px; overflow: hidden; background-color: #f4f8f5; background-image: radial-gradient(#b8cfc15e .8px,transparent .8px); background-size: 14px 14px; border: 1px solid #dce8e0; border-radius: 6px; }
.board-caption { display: flex; justify-content: space-between; gap: 10px; color: #657c6e; font-size: 12px; letter-spacing: .05em; }
.energy-network { display: flex; align-items: center; justify-content: center; min-height: 138px; margin-top: 9px; }
.energy-node { position: relative; z-index: 1; width: 28%; min-width: 0; text-align: center; }
.node-picture { display: grid; place-items: center; width: 74px; height: 70px; margin: 0 auto 10px; color: #287c60; background: #fff; border: 1px solid #c9ded0; border-radius: 11px; box-shadow: 0 4px 0 #e4eee7; }
.node-picture > .icon { width: 39px; height: 39px; stroke-width: 1.3; }
.energy-node.node-1 .node-picture { background: #e8f3eb; border-color: #a8c8b4; }
.energy-node strong { display: block; font-size: 16px; }
.energy-node small { display: block; margin-top: 4px; color: #718278; font-size: 12px; }
.energy-connector { position: relative; flex: 1; height: 4px; margin: -45px 0 0; background: #c1d5c8; }
.energy-connector.active { background: repeating-linear-gradient(90deg,#3b9a70 0 9px,#c7dfd0 9px 18px); background-size: 36px 4px; animation: power-flow .9s linear infinite; }
.energy-connector::after { position: absolute; right: 1px; top: -4px; width: 10px; height: 10px; border-top: 2px solid #5a9277; border-right: 2px solid #5a9277; transform: rotate(45deg); content: ''; }
.energy-connector.reverse { animation-direction: reverse; }
.energy-connector.reverse::after { right: auto; left: 1px; transform: rotate(225deg); }
@keyframes power-flow { to { background-position: 36px 0; } }
.network-caption { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; margin-top: 8px; color: #2c7052; background: #e7f1e9; border-radius: 4px; font-size: 14px; }
.network-caption .icon { width: 17px; height: 17px; }
.device-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.device-tile { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.device-tile.off { background: #f8faf9; }
.device-tile .circuit-name { font-size: 16px; }
.device-tile .circuit-desc { margin-top: 6px; font-size: 13px; }
.device-tile .reading-value { margin-top: 6px; font-size: 22px; }
.device-tile .reading-label { font-size: 13px; }
.device-tile .readings { justify-content: space-between; gap: 12px; margin-top: 15px; }
.device-tile .mini-control { font-size: 14px; }
.device-tile .circuit-bottom { padding-top: 13px; margin-top: 13px; }
.button-text { padding: 4px 0; color: var(--green); border: 0; background: none; font-weight: 600; font-size: 14px; cursor: pointer; }
.switch-wrap { display: flex; align-items: center; gap: 8px; }
.terminal .toggle { width: 48px; height: 28px; }
.terminal .toggle::after { width: 22px; height: 22px; }
.terminal .toggle[aria-checked='true']::after { transform: translateX(20px); }
.terminal .control-title { font-size: 16px; }
.terminal .control-help { font-size: 14px; }
.terminal .control-stack { gap: 14px; }
.control-mode-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.mode-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.mode-option { flex: 1; min-height: 43px; padding: 8px 10px; background: #fff; border: 1px solid #dce4df; border-radius: 5px; color: #52675b; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; }
.mode-option.selected { color: var(--green-dark); background: #eaf4ed; border-color: #4b9574; box-shadow: inset 0 0 0 .3px #4b9574; }
.mode-option:hover { border-color: var(--green); }
.terminal .wide-control { padding: 15px; background: #f5f8f5; }
.terminal .wide-control-head { font-size: 15px; }
.terminal .wide-control-head output { font-size: 20px; font-weight: 800; }
.terminal input[type='range'] { height: 26px; margin: 9px 0 4px; cursor: pointer; }
.terminal .range-labels { font-size: 13px; }
.control-hint { display: flex; align-items: flex-start; gap: 7px; padding: 11px 12px; color: #718176; background: #f7f9f7; border-radius: 5px; font-size: 13px; line-height: 1.6; }
.control-hint .icon { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; }
.apply-button { width: 100%; min-height: 46px; font-size: 16px; }
.control-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: #76867b; }
.dirty-dot { width: 6px; height: 6px; display: inline-block; margin-right: 5px; background: #d39737; border-radius: 50%; }
.chart-toolbar { display: flex; align-items: center; gap: 12px; }
.terminal .segmented button { min-height: 36px; padding: 0 12px; font-size: 14px; }
.terminal .trend-panel { margin-top: 16px; }
.plot-legend { display: flex; gap: 18px; color: #66776e; font-size: 13px; }
.plot-legend span { display: inline-flex; gap: 6px; align-items: center; }
.plot-legend i { width: 15px; height: 3px; background: var(--green); border-radius: 2px; }
.plot-legend .ref { background: #a5b7ad; }
.plot { height: 192px; width: 100%; }
.plot svg { width: 100%; height: 100%; display: block; }
.plot text { font-size: 12px; font-family: inherit; fill: #7c8a82; }
.chart-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 0 0; border-top: 1px solid #edf1ee; color: #75847c; font-size: 13px; }
.summary-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 16px 0 0; margin-top: 12px; border-top: 1px solid #e9efea; }
.summary-strip > div { padding-left: 20px; border-left: 1px solid #e1e8e3; }
.summary-strip > div:first-child { padding-left: 0; border: 0; }
.summary-strip small { color: #77867d; font-size: 13px; }
.summary-strip strong { display: block; margin-top: 5px; font-size: 20px; }
.summary-strip strong span { margin-left: 5px; font-size: 13px; color: #728178; font-weight: 500; }
.below-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-top: 16px; }
.event-list { display: grid; gap: 0; }
.event-row { display: grid; grid-template-columns: 9px 1fr auto; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid #eef2ef; }
.event-row:last-child { border-bottom: 0; }
.event-dot { width: 6px; height: 6px; margin-top: 6px; background: #61a47d; border-radius: 50%; }
.event-row strong { font-size: 14px; font-weight: 500; }
.event-row time { color: #829087; font-size: 12px; }
.lesson-mini { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef2ef; }
.lesson-mini:last-child { border: 0; }
.lesson-mini strong { display: block; font-size: 15px; }
.lesson-mini small { display: block; margin-top: 4px; font-size: 13px; color: #7b897f; }
.lesson-mini button { margin-left: auto; }
.terminal .footer { margin-top: 20px; font-size: 13px; }
.section-lead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-lead h2 { margin: 0; font-size: 23px; }
.section-lead p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.device-large-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.device-large-grid .device-tile { padding: 22px; }
.device-large-grid .circuit-name { font-size: 21px; }
.device-large-grid .reading-value { font-size: 29px; }
.device-visual { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.device-visual > .icon { width: 58px; height: 58px; padding: 11px; color: var(--green); background: #e9f4ec; border-radius: 8px; }
.hardware-list { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 15px; }
.hardware-list th { padding: 13px 12px; text-align: left; color: #677b6d; background: #f4f8f5; font-size: 14px; font-weight: 500; border-bottom: 1px solid #dce5de; }
.hardware-list td { padding: 14px 12px; border-bottom: 1px solid #eaf0ec; }
.hardware-list tr:last-child td { border-bottom: 0; }
.hardware-list td:first-child { font-weight: 600; }
.hardware-list .icon { width: 17px; height: 17px; color: var(--green); margin-right: 7px; }
.table-scroll { width: 100%; overflow: auto; }
.scenario-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.scenario-card { display: flex; flex-direction: column; padding: 16px; text-align: left; background: white; border: 1px solid #dbe6de; border-radius: 6px; cursor: pointer; }
.scenario-card:hover { border-color: #65a27b; background: #f7fbf7; }
.scenario-card .icon { color: var(--green); width: 25px; height: 25px; margin-bottom: 12px; }
.scenario-card strong { font-size: 16px; margin-bottom: 7px; }
.scenario-card small { font-size: 13px; color: #748679; line-height: 1.5; }
.scenario-card > span { margin-top: 15px; color: var(--green); font-weight: 600; font-size: 13px; }
.control-layout { display: grid; grid-template-columns: minmax(330px,.9fr) minmax(0,1.5fr); gap: 16px; align-items: start; }
.safety-list { display: grid; gap: 13px; }
.safety-list > div { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #506e59; }
.safety-list .icon { width: 18px; height: 18px; }
.battery-block { padding: 16px; margin-bottom: 15px; border: 1px solid #dce8e0; background: #f5faf6; border-radius: 6px; }
.battery-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; font-size: 15px; }
.soc-track { height: 13px; background: #dfeae2; border-radius: 5px; overflow: hidden; }
.soc-track > div { height: 100%; border-radius: 5px; background: #4d9f71; transition: width .4s ease; }
.battery-block small { display: block; margin-top: 9px; color: #728779; font-size: 12px; }
.training-header { padding: 24px; margin-bottom: 18px; background: #e8f2eb; border: 1px solid #d1e3d6; border-radius: 7px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.training-header h2 { margin: 0 0 7px; font-size: 24px; }
.training-header p { margin: 0; max-width: 850px; color: #5e7866; font-size: 16px; line-height: 1.6; }
.training-progress { text-align: right; white-space: nowrap; }
.training-progress strong { font-size: 35px; color: var(--green); }
.training-progress span { display: block; margin-top: 5px; color: #728579; font-size: 14px; }
.lesson-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.lesson-card { position: relative; display: flex; flex-direction: column; padding: 23px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.lesson-card.active-lesson { border-color: #55a173; box-shadow: inset 0 3px #55a173; }
.lesson-card h3 { font-size: 21px; line-height: 1.5; margin: 16px 0 9px; }
.lesson-card p { margin: 0 0 18px; font-size: 15px; line-height: 1.7; color: #748479; }
.lesson-card .primary-button { margin-top: auto; }
.lesson-card-top { display: flex; justify-content: space-between; align-items: center; }
.lesson-card-top > span { font-size: 30px; font-weight: 700; color: #a4bbaa; }
.lesson-steps { margin: 16px 0; }
.step-row { display: flex; align-items: start; gap: 12px; padding: 16px 0; border-bottom: 1px solid #eaf0ec; }
.step-row input { width: 21px; height: 21px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--green); }
.step-row label { font-size: 16px; line-height: 1.6; cursor: pointer; }
.step-row input:checked + label { color: #738c7b; }
.training-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 16px; flex-wrap: wrap; }
.search-input { display: flex; align-items: center; gap: 9px; padding: 0 12px; min-height: 43px; background: white; border: 1px solid var(--line); border-radius: 5px; }
.search-input .icon { width: 18px; height: 18px; color: #829186; }
.search-input input { min-width: 150px; max-width: 220px; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.log-type { display: inline-block; min-width: 48px; text-align: center; padding: 4px 8px; border-radius: 4px; background: #edf4ee; color: #53785d; font-size: 13px; }
.empty-state { padding: 50px 20px; text-align: center; color: #7a8b7e; }
.empty-state .icon { width: 36px; height: 36px; color: #a1b8a7; margin-bottom: 10px; }
.empty-state h3 { font-size: 19px; margin: 8px 0; color: #435e4b; }
.empty-state p { font-size: 15px; }
.alarm-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; margin-bottom: 10px; border: 1px solid #ead7b6; border-left: 3px solid #c99c49; border-radius: 5px; background: #fffdf7; }
.alarm-item.ack { border-color: #dce6de; border-left-color: #a4b3a7; background: #f9fbf9; }
.alarm-item strong { display: block; font-size: 16px; }
.alarm-item small { display: block; margin-top: 8px; font-size: 13px; color: #877f69; }
.terminal .outline-button, .terminal .primary-button { min-height: 43px; font-size: 15px; }
.danger-button { border-color: #e3cfc9; color: #ac5c4f; }
.danger-button:hover { background: #fff4f0; border-color: #c98e7e; }
.toast { position: fixed; z-index: 100; bottom: 25px; left: 50%; display: flex; align-items: center; gap: 10px; max-width: min(90vw,650px); padding: 15px 20px; transform: translateX(-50%); border: 1px solid #c4ddca; background: #fff; box-shadow: 0 6px 30px #173c2129; border-radius: 7px; color: #276140; font-size: 16px; line-height: 1.5; }
.toast.error { border-color: #e8cfb4; color: #996127; }
.toast .icon { width: 21px; height: 21px; flex-shrink: 0; }
.modal-backdrop { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 18px; background: #10251cd0; backdrop-filter: blur(3px); }
.modal { width: min(100%,650px); max-height: 90vh; overflow: auto; padding: 26px; border: 0; border-radius: 10px; background: white; box-shadow: 0 15px 80px #0004; }
.modal-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 21px; gap: 15px; }
.modal-heading h2 { margin: 0; font-size: 23px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.detail-field { min-width: 0; padding: 15px; border-radius: 5px; background: #f4f8f4; }
.detail-field span { display: block; color: #6b806f; font-size: 14px; }
.detail-field strong { display: block; margin-top: 9px; font-size: 23px; }
.modal p { color: #687f6d; font-size: 16px; line-height: 1.7; }
.notice-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; margin-bottom: 15px; background: #fff6df; border: 1px solid #eddab1; border-radius: 5px; color: #916c26; font-size: 15px; }
.terminal button:focus-visible, .terminal a:focus-visible, input:focus-visible { outline: 3px solid #65a881; outline-offset: 3px; }
body.large-text .terminal { font-size: 19px; }
body.large-text .terminal .panel-title { font-size: 23px; }
body.large-text .terminal .control-title, body.large-text .terminal .control-mode-label, body.large-text .terminal .wide-control-head, body.large-text .terminal .energy-node strong, body.large-text .terminal .hardware-list, body.large-text .terminal .mode-option, body.large-text .terminal .topnav a { font-size: 19px; }
body.large-text .terminal .panel-subtitle, body.large-text .terminal .heading-note, body.large-text .terminal .control-help, body.large-text .terminal .reading-label, body.large-text .terminal .circuit-desc, body.large-text .terminal .event-row strong { font-size: 16px; }
body.large-text .terminal .metric-value { font-size: 36px; }
body.large-text .terminal .content-grid { grid-template-columns: minmax(0,1.35fr) minmax(375px,1fr); }
@media(min-width:1700px) { .terminal .metric { min-height: 138px; padding: 22px; } .terminal .metric-value { font-size: 37px; } .terminal .page { padding: 26px 22px; } .terminal .board { min-height: 270px; padding-top: 28px; } .terminal .energy-network { min-height: 170px; } .terminal .node-picture { width: 88px; height: 82px; } .terminal .plot { height: 235px; } .terminal .device-tile { padding: 20px; } }
@media(max-width:1180px) {
  .terminal .topbar { gap: 10px; padding: 0 14px; flex-wrap: wrap; }
  .terminal .brand { min-width: 270px; }
  .terminal .brand-name { font-size: 18px; }
  .terminal .topnav a { padding: 0 11px; font-size: 16px; }
  .header-tools { gap: 6px; }
  .terminal .topnav { order: 3; flex-basis: calc(100% + 28px); height: 49px; margin: 0 -14px; padding: 0 8px; border-top: 1px solid var(--line); }
  .terminal .brand, .header-tools { margin-top: 12px; margin-bottom: 12px; }
  .terminal .content-grid { grid-template-columns: minmax(0,1.3fr) minmax(320px,1fr); }
  .terminal .page-heading { align-items: flex-start; }
  .terminal .heading-actions { flex-wrap: wrap; }
  .terminal .time-chip { display: none; }
  .terminal .metric-label { font-size: 15px; }
  .terminal .metric { padding: 14px; }
  .terminal .metric-icon { top: 12px; right: 12px; width: 31px; height: 31px; }
  .device-tile { padding: 12px; }
  .device-tile .circuit-name { font-size: 15px; }
  .device-tile .badge { font-size: 11px; padding: 4px; }
  .terminal .panel { padding: 16px; }
  .lesson-grid { gap: 12px; }
  .lesson-card { padding: 18px; }
}
@media(max-width:920px) {
  .terminal .content-grid, .control-layout, body.large-text .terminal .content-grid { grid-template-columns: 1fr; }
  .terminal .heading-actions { width: auto; }
  .terminal .page-heading { flex-direction: row; }
  .terminal .page { padding: 18px 14px; }
  .terminal .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .terminal .metric { min-height: 115px; }
  .control-stack { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .control-stack > .control-mode-block, .control-stack > .apply-button, .control-stack > .control-footer, .control-stack > .control-hint { grid-column: 1/-1; }
  .control-stack > .wide-control { height: 100%; }
  .control-stack > .battery-block { grid-column: 1/-1; margin-bottom: 0; }
  .below-grid { grid-template-columns: 1fr; }
  .lesson-grid { grid-template-columns: 1fr; }
  .lesson-card { padding: 20px; }
  .lesson-card h3 { margin-top: 10px; }
  .training-header { padding: 20px; }
}
@media(max-width:620px) {
  .terminal .brand { min-width: 0; }
  .terminal .brand-name { font-size: 16px; }
  .terminal .brand-caption { font-size: 9px; }
  .terminal .brand-mark { width: 35px; height: 35px; }
  .terminal .topbar { padding: 0 10px; }
  .terminal .topnav { flex-basis: calc(100% + 20px); margin: 0 -10px; padding: 0 4px; }
  .terminal .topnav a { padding: 0 10px; font-size: 15px; }
  .header-tools .icon-button { width: 33px; height: 36px; }
  .header-tools .fullscreen-button { display: none; }
  .terminal .page { padding: 16px 10px; }
  .terminal .page-heading { flex-direction: column; gap: 13px; }
  .terminal h1 { font-size: 25px; }
  .terminal .heading-note { font-size: 15px; }
  .terminal .heading-actions { justify-content: flex-start; gap: 8px; }
  .terminal .metric-grid { gap: 9px; }
  .terminal .metric { padding: 13px; min-height: 112px; }
  .terminal .metric-icon { width: 27px; height: 27px; right: 10px; }
  .terminal .metric-icon .icon { width: 17px; height: 17px; }
  .terminal .metric-label { font-size: 14px; padding-right: 25px; }
  .terminal .metric-value { font-size: 29px; }
  .terminal .metric-unit { font-size: 12px; margin-left: 3px; }
  .terminal .metric-trend { font-size: 12px; }
  .terminal .panel { padding: 15px; }
  .terminal .panel-title { font-size: 19px; }
  .terminal .panel-subtitle { font-size: 13px; }
  .terminal .panel-heading { align-items: flex-start; gap: 7px; }
  .panel-heading .badge { flex-shrink: 0; }
  .node-picture { width: 58px; height: 57px; }
  .node-picture > .icon { width: 32px; height: 32px; }
  .energy-node strong { font-size: 13px; }
  .energy-node small { font-size: 10px; }
  .energy-node { width: 30%; }
  .energy-network { min-height: 126px; }
  .board { padding: 15px 9px 10px; min-height: 214px; }
  .board-caption { font-size: 10px; }
  .network-caption { font-size: 11px; gap: 5px; }
  .device-pair, .device-large-grid { grid-template-columns: 1fr; gap: 10px; }
  .device-tile { padding: 15px; }
  .device-tile .circuit-name { font-size: 17px; }
  .device-tile .badge { font-size: 12px; }
  .control-stack { grid-template-columns: 1fr; }
  .control-stack > * { grid-column: 1 !important; }
  .control-row { flex-wrap: wrap; }
  .plot { height: 178px; }
  .trend-panel .panel-heading { flex-wrap: wrap; }
  .chart-toolbar { width: 100%; justify-content: space-between; margin-top: 7px; }
  .plot-legend { gap: 10px; font-size: 12px; }
  .terminal .segmented button { padding: 0 10px; font-size: 13px; }
  .chart-footer { align-items: start; font-size: 11px; }
  .summary-strip strong { font-size: 17px; }
  .summary-strip > div { padding-left: 12px; }
  .summary-strip small { font-size: 11px; }
  .summary-strip strong span { font-size: 11px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card { display: grid; grid-template-columns: 27px 1fr auto; align-items: center; column-gap: 12px; padding: 13px; }
  .scenario-card .icon { grid-row: span 2; margin: 0; }
  .scenario-card small { grid-column: 2; }
  .scenario-card > span { grid-column: 3; grid-row: 1/3; margin: 0; }
  .scenario-card strong { margin-bottom: 4px; }
  .training-header { align-items: flex-start; flex-direction: column; padding: 17px; }
  .training-header h2 { font-size: 22px; }
  .training-progress { display: flex; align-items: baseline; gap: 8px; }
  .training-progress strong { font-size: 28px; }
  .training-progress span { display: inline; }
  .device-large-grid .device-tile { padding: 17px; }
  .device-large-grid .circuit-name { font-size: 18px; }
  .terminal .footer { flex-direction: column; gap: 5px; font-size: 11px; }
  .detail-grid { gap: 10px; }
  .detail-field { padding: 12px; }
  .detail-field strong { font-size: 20px; }
  .alarm-item { flex-direction: column; align-items: flex-start; }
}
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; } }

.overview-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(330px,1fr); gap: 16px; }
.overview-layout > .control-panel { grid-column: 2; grid-row: 1/3; }
.overview-layout > .trend-panel { grid-row: 2; margin-top: 0; }
.control-right { display: grid; gap: 16px; }
.pv-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; color: #617d68; font-size: 13px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #edf1ee; color: #738478; font-size: 13px; }
.pagination > div { display: flex; gap: 7px; }
.terminal .pagination .outline-button { min-height: 30px; height: 30px; width: 34px; padding: 0; font-size: 21px; }
button:disabled { opacity: .42; cursor: default; pointer-events: none; }
.records-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 16px; }
.lesson-detail ~ .training-notes { display: none; }
@media(min-width:1000px) and (min-height:580px) {
  body[data-system],body.landing { height: 100dvh; overflow: hidden; }
  #app,.terminal { height: 100%; }
  .terminal { display: flex; flex-direction: column; }
  .terminal .topbar { position: relative; flex: 0 0 67px; min-height: 67px; height: 67px; flex-wrap: nowrap; gap: 16px; padding: 0 18px; }
  .terminal .brand { min-width: 256px; margin: 0; padding: 0; }
  .terminal .brand-name { font-size: 18px; }
  .terminal .brand-mark { width: 39px; height: 39px; }
  .terminal .topnav { order: 0; flex-basis: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; }
  .terminal .topnav a { padding: 0 13px; font-size: 16px; }
  .terminal .header-tools { margin: 0 0 0 auto; }
  .terminal .page { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 15px 18px 11px; }
  .terminal .page-heading { flex: 0 0 auto; margin: 0 0 13px; gap: 15px; }
  .terminal .page-heading h1 { font-size: 25px; }
  .terminal .eyebrow { display: none; }
  .terminal .heading-note { font-size: 14px; margin-top: 5px; }
  .terminal .heading-actions { width: auto; }
  .terminal .time-chip { display: inline-flex; font-size: 14px; }
  .terminal .footer { flex: 0 0 auto; margin-top: 10px; font-size: 11px; line-height: 18px; }
  .terminal .footer .live-chip { font-size: 11px; }
  #view-content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .terminal .metric-grid { flex: 0 0 auto; margin-bottom: 12px; gap: 12px; }
  .terminal .metric { min-height: 103px; padding: 14px 17px; }
  .terminal .metric-value { font-size: 30px; margin: 8px 0 6px; }
  .terminal .metric-label { font-size: 15px; }
  .terminal .metric-trend { font-size: 12px; }
  .terminal .panel { padding: 16px; min-height: 0; }
  .terminal .panel-heading { flex: 0 0 auto; margin-bottom: 12px; }
  .terminal .panel-title { font-size: 19px; }
  .terminal .panel-subtitle { margin-top: 4px; font-size: 13px; }
  .overview-layout { flex: 1; min-height: 0; grid-template-columns: minmax(0,1.62fr) minmax(330px,1fr); grid-template-rows: minmax(0,1.65fr) minmax(0,1fr); gap: 12px; }
  .topology-panel { display: flex; flex-direction: column; }
  .topology-panel > [data-topology] { flex: 1; min-height: 0; }
  .topology-panel .board { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 13px 15px 9px; }
  .energy-network { flex: 1; min-height: 0; margin-top: 5px; }
  .node-picture { width: 66px; height: 60px; margin-bottom: 7px; }
  .node-picture > .icon { width: 35px; height: 35px; }
  .energy-node strong { font-size: 15px; }
  .energy-node small { font-size: 11px; }
  .network-caption { min-height: 28px; margin-top: 4px; font-size: 13px; }
  .energy-connector { margin-top: -38px; }
  .device-pair { flex: 0 0 auto; gap: 11px; margin-top: 10px; }
  .device-tile { padding: 11px 13px; }
  .device-tile .circuit-name { font-size: 15px; }
  .device-tile .circuit-desc { display: none; }
  .device-tile .readings { margin-top: 9px; }
  .device-tile .reading-label { font-size: 12px; }
  .device-tile .reading-value { font-size: 21px; margin-top: 3px; }
  .device-tile .circuit-bottom { margin-top: 9px; padding-top: 8px; }
  .device-tile .button-text { padding: 0; font-size: 13px; }
  .device-tile .button-text .icon { width: 14px; height: 14px; }
  .device-tile .mini-control { font-size: 12px; }
  .terminal .toggle { width: 42px; height: 24px; }
  .terminal .toggle::after { width: 18px; height: 18px; }
  .terminal .toggle[aria-checked='true']::after { transform: translateX(18px); }
  .overview-layout > .trend-panel { display: flex; flex-direction: column; }
  .overview-layout .trend-panel .panel-heading { margin-bottom: 6px; }
  .overview-layout .trend-panel .panel-subtitle { display: none; }
  .overview-layout .trend-panel .chart-toolbar { gap: 10px; }
  .plot { flex: 1; min-height: 0; height: auto; }
  .chart-footer { flex: 0 0 auto; padding-top: 7px; font-size: 11px; }
  .chart-footer .icon { width: 14px; height: 14px; }
  .plot-legend { gap: 12px; font-size: 12px; }
  .control-panel { display: flex; flex-direction: column; }
  .control-stack { display: flex; flex-direction: column; justify-content: space-between; flex: 1; min-height: 0; gap: 12px; }
  .control-stack > * { width: 100%; }
  .control-mode-label { margin-bottom: 8px; font-size: 15px; }
  .mode-option { min-height: 40px; padding: 7px 9px; font-size: 14px; }
  .terminal .wide-control { padding: 13px; }
  .terminal .wide-control-head { font-size: 15px; }
  .terminal .wide-control-head output { font-size: 20px; }
  .terminal input[type='range'] { height: 22px; margin: 7px 0 3px; }
  .terminal .range-labels { font-size: 12px; }
  .control-hint { padding: 10px 12px; font-size: 12px; line-height: 1.6; }
  .control-footer { font-size: 12px; }
  .control-footer .button-text { font-size: 13px; }
  .control-panel .apply-button { min-height: 44px; }
  .battery-block { padding: 12px; margin-bottom: 0; }
  .battery-block small { margin-top: 6px; }
  .control-layout { flex: 1; min-height: 0; grid-template-columns: minmax(320px,.9fr) minmax(0,1.6fr); gap: 12px; align-items: stretch; }
  .control-right { min-height: 0; display: grid; gap: 12px; grid-template-rows: minmax(0,1fr) minmax(0,1.1fr) auto; }
  .scenario-panel { display: flex; flex-direction: column; }
  .scenario-grid { flex: 1; min-height: 0; }
  .scenario-card { padding: 13px; justify-content: center; }
  .scenario-card .icon { margin-bottom: 9px; }
  .scenario-card strong { font-size: 15px; }
  .scenario-card small { font-size: 12px; }
  .scenario-card > span { margin-top: 10px; }
  .control-flow-panel { display: flex; flex-direction: column; }
  .control-flow-panel [data-topology] { flex: 1; min-height: 0; }
  .control-flow-panel .board { height: 100%; min-height: 0; display: flex; flex-direction: column; padding: 13px; }
  .safety-panel .panel-heading { margin-bottom: 8px; }
  .safety-list { gap: 8px; }
  .safety-list > div { font-size: 14px; }
  .device-large-grid { flex: 0 0 auto; gap: 12px; margin-bottom: 12px; }
  .device-large-grid .device-tile { padding: 16px; }
  .device-visual { gap: 12px; margin-bottom: 9px; }
  .device-visual > .icon { width: 43px; height: 43px; padding: 8px; }
  .device-large-grid .circuit-name { font-size: 18px; }
  .device-large-grid .circuit-desc { display: block; font-size: 12px; margin-top: 3px; }
  .device-large-grid .reading-value { font-size: 26px; }
  .device-large-grid .circuit-bottom { margin-top: 9px; }
  .hardware-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .hardware-panel .table-scroll { flex: 1; }
  .hardware-list th { padding: 10px; font-size: 13px; }
  .hardware-list td { padding: 11px 10px; font-size: 14px; }
  .hardware-panel .pagination { margin-top: auto; }
  .pagination { padding-top: 8px; }
  .records-grid { flex: 1; min-height: 0; gap: 12px; }
  .logs-panel { display: flex; flex-direction: column; }
  [data-log-table] { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  [data-log-table] > .table-scroll { flex: 1; }
  [data-log-table] .pagination { margin-top: auto; }
  .filter-bar { margin-bottom: 12px; gap: 10px; }
  .records-grid .search-input { width: 180px; min-height: 37px; }
  .records-grid .search-input input { min-width: 0; font-size: 14px; }
  .records-grid .segmented button { padding: 0 9px; font-size: 13px; }
  .records-grid .hardware-list { table-layout: fixed; white-space: normal; }
  .records-grid .hardware-list th:nth-child(1) { width: 132px; }
  .records-grid .hardware-list th:nth-child(2),.records-grid .hardware-list th:nth-child(4) { width: 76px; }
  .records-grid .hardware-list td { line-height: 1.6; font-size: 14px; }
  .records-grid .hardware-list td:nth-child(3) { min-width: 0 !important; }
  .records-grid .hardware-list .badge { font-size: 12px; padding: 4px; }
  .alarm-item { align-items: flex-start; padding: 13px; gap: 9px; }
  .alarm-item strong { font-size: 15px; line-height: 1.6; }
  .alarm-item small { font-size: 12px; }
  .alarm-item .outline-button { min-height: 32px; padding: 0 9px; font-size: 12px; }
  .alarm-item .outline-button .icon { width: 13px; height: 13px; }
  .training-header { flex: 0 0 auto; padding: 18px 20px; margin-bottom: 12px; }
  .training-header .eyebrow { display: none; }
  .training-header h2 { font-size: 22px; margin-bottom: 6px; }
  .training-header p { max-width: none; font-size: 14px; }
  .training-progress strong { font-size: 31px; }
  .lesson-grid { flex: 1; min-height: 0; gap: 12px; }
  .lesson-card { justify-content: center; padding: 20px; }
  .lesson-card h3 { font-size: 22px; }
  .lesson-card-top > span:first-child { font-size: 34px; }
  .lesson-card .primary-button,.lesson-card .outline-button { margin-top: 10px; }
  .training-notes { flex: 0 0 auto; margin-top: 12px; }
  .lesson-detail { flex: 0 0 auto; margin-top: 12px; }
  .lesson-steps { margin: 7px 0 12px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
  .step-row { border: 0; padding: 10px 0; }
  .step-row label { font-size: 15px; }
  .view-training:has(.lesson-detail) .lesson-card { padding: 15px 20px; }
  .view-training:has(.lesson-detail) .lesson-card-top > span:first-child { font-size: 26px; }
  .view-training:has(.lesson-detail) .lesson-card h3 { font-size: 20px; margin: 8px 0; }
  .view-training:has(.lesson-detail) .lesson-card p { margin-bottom: 8px; }
  .notice-bar { flex: 0 0 auto; margin-bottom: 10px; padding: 7px 12px; font-size: 13px; }
  .pv-summary { font-size: 12px; padding-top: 7px; }
  body.large-text .terminal .overview-layout { grid-template-columns: minmax(0,1.4fr) minmax(360px,1fr); }
  body.large-text .terminal .control-mode-label,body.large-text .terminal .mode-option,body.large-text .terminal .wide-control-head { font-size: 17px; }
  body.large-text .terminal .panel-title { font-size: 21px; }
  body.large-text .terminal .metric-value { font-size: 33px; }
}
@media(min-width:1000px) and (max-height:820px) and (min-height:580px) {
  .terminal .topbar { flex-basis: 60px; height: 60px; min-height: 60px; }
  .terminal .page { padding: 11px 14px 8px; }
  .terminal .page-heading { margin-bottom: 10px; }
  .terminal .page-heading h1 { font-size: 23px; }
  .terminal .metric { min-height: 91px; padding: 11px 15px; }
  .terminal .metric-value { font-size: 28px; margin: 7px 0 4px; }
  .terminal .metric-label { font-size: 14px; }
  .terminal .metric-icon { width: 29px; height: 29px; top: 10px; }
  .terminal .metric-grid { margin-bottom: 10px; gap: 10px; }
  .terminal .panel { padding: 13px; }
  .terminal .panel-title { font-size: 18px; }
  .terminal .panel-heading { margin-bottom: 9px; }
  .terminal .panel-subtitle { font-size: 12px; margin-top: 3px; }
  .overview-layout { gap: 10px; grid-template-rows: minmax(0,1.95fr) minmax(0,1fr); }
  .topology-panel .board { padding: 9px 12px 7px; }
  .board-caption { font-size: 10px; }
  .node-picture { width: 54px; height: 48px; margin-bottom: 5px; }
  .node-picture > .icon { width: 29px; height: 29px; }
  .energy-node strong { font-size: 14px; }
  .energy-node small { font-size: 10px; margin-top: 3px; }
  .network-caption { min-height: 24px; font-size: 12px; }
  .device-tile { padding: 8px 11px; }
  .device-tile .readings { margin-top: 7px; }
  .device-tile .circuit-bottom { margin-top: 7px; padding-top: 6px; }
  .device-tile .reading-value { font-size: 19px; }
  .device-tile .circuit-name { font-size: 14px; }
  .device-tile .badge { font-size: 11px; padding: 4px; }
  .device-pair { margin-top: 8px; gap: 8px; }
  .control-stack { gap: 9px; }
  .control-mode-label { font-size: 14px; margin-bottom: 7px; }
  .mode-option { min-height: 37px; font-size: 14px; padding: 5px 8px; }
  .terminal .wide-control { padding: 11px; }
  .terminal .wide-control-head { font-size: 14px; }
  .terminal .wide-control-head output { font-size: 18px; }
  .terminal input[type='range'] { height: 20px; margin: 6px 0 2px; }
  .control-hint { padding: 8px 10px; font-size: 11px; }
  .control-panel .apply-button { min-height: 39px; }
  .battery-block { padding: 10px; }
  .battery-block small { font-size: 11px; }
  .soc-track { height: 10px; }
  .battery-block-head { font-size: 14px; margin-bottom: 7px; }
  .terminal .footer { margin-top: 7px; }
  .plot-legend { font-size: 11px; gap: 9px; }
  .terminal .trend-panel .segmented button { min-height: 29px; font-size: 12px; padding: 0 9px; }
  .chart-footer { font-size: 10px; padding-top: 5px; }
  .device-large-grid .device-tile { padding: 11px 15px; }
  .device-large-grid .reading-value { font-size: 23px; }
  .device-large-grid .device-visual { margin-bottom: 5px; }
  .device-large-grid .circuit-name { font-size: 17px; }
  .device-visual > .icon { width: 35px; height: 35px; padding: 6px; }
  .hardware-list td { padding: 8px 10px; }
  .hardware-list th { padding: 8px 10px; }
  .hardware-panel .panel-heading .panel-subtitle { display: none; }
  .scenario-card { padding: 10px; }
  .scenario-card .icon { width: 20px; height: 20px; margin-bottom: 6px; }
  .scenario-card strong { font-size: 14px; }
  .scenario-card > span { margin-top: 7px; font-size: 11px; }
  .control-right { gap: 10px; }
  .control-flow-panel .board { padding: 9px 12px; }
  .safety-list { gap: 5px; }
  .safety-list > div { font-size: 13px; }
  .training-header { padding: 13px 18px; margin-bottom: 10px; }
  .training-header h2 { font-size: 20px; }
  .training-header p { font-size: 13px; }
  .training-progress strong { font-size: 27px; }
  .lesson-card h3 { font-size: 20px; }
  .lesson-card p { font-size: 14px; }
  .training-notes .panel-heading { margin-bottom: 8px; }
  .lesson-detail { margin-top: 10px; }
  .lesson-steps { margin: 0 0 8px; }
  .step-row { padding: 5px 0; }
  .step-row label { font-size: 14px; }
  .lesson-detail .training-actions .primary-button,.lesson-detail .training-actions .outline-button { min-height: 35px; font-size: 13px; }
  .records-grid .hardware-list td { font-size: 13px; padding: 9px 7px; }
}
@media(min-width:1000px) and (max-width:1200px) {
  .terminal .topbar { gap: 10px; padding: 0 13px; }
  .terminal .brand { min-width: 238px; gap: 9px; }
  .terminal .brand-name { font-size: 16px; }
  .terminal .brand-caption { font-size: 10px; }
  .terminal .topnav a { font-size: 15px; padding: 0 10px; }
  .terminal .header-tools .icon-button { width: 34px; height: 36px; }
  .terminal .time-chip { display: none; }
  .chart-footer > span:last-child { display: none; }
  .overview-layout { grid-template-columns: minmax(0,1.3fr) minmax(325px,1fr); }
  .terminal .badge { font-size: 11px; }
  .terminal .topology-panel .panel-subtitle { font-size: 11px; }
  .plot-legend { display: none; }
  .device-tile .circuit-name { font-size: 13px; }
  .records-grid { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
  .filter-bar { gap: 8px; }
  .records-grid .search-input { width: 100%; }
}
@media(max-width:999px) {
  .overview-layout,.records-grid { display: flex; flex-direction: column; }
  .overview-layout > .control-panel { order: 1; }
  .overview-layout > .trend-panel { order: 2; }
  .control-right { margin-top: 14px; }
  .pv-summary { flex-wrap: wrap; }
}
@media(min-width:1000px) and (min-height:580px) {
  .topology-panel .board { min-height: 145px; }
  .energy-network { flex-shrink: 0; }
  .energy-node { display: flex; flex-direction: column; align-items: center; }
  .control-stack > .battery-block + .control-mode-block { margin-top: 0; }
}
@media(min-width:1000px) and (max-height:820px) and (min-height:580px) {
  .topology-panel > [data-topology] { min-height: 130px; }
  .topology-panel .board { min-height: 130px; }
  .topology-panel .board-caption { display: none; }
  .topology-panel .energy-network { margin-top: 0; }
  .topology-panel .node-picture { width: 50px; height: 43px; }
  .device-tile .circuit-bottom { margin-top: 5px; padding-top: 5px; }
  .device-tile .readings { margin-top: 5px; }
  .chart-footer > span:first-child { max-width: 75%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media(min-width:1000px) and (max-height:700px) and (min-height:580px) {
  .terminal .topbar { flex-basis: 54px; height: 54px; min-height: 54px; }
  .terminal .page { padding: 9px 12px 7px; }
  .terminal .page-heading { margin-bottom: 8px; }
  .terminal .heading-note { margin-top: 4px; font-size: 13px; }
  .terminal .page-heading h1 { font-size: 21px; }
  .terminal .heading-actions .outline-button { min-height: 36px; font-size: 13px; }
  .terminal .metric { min-height: 78px; padding: 8px 13px; }
  .terminal .metric-value { font-size: 25px; margin: 5px 0 3px; }
  .terminal .metric-label { font-size: 13px; }
  .terminal .metric-trend { font-size: 11px; }
  .terminal .metric-icon { width: 25px; height: 25px; top: 8px; }
  .terminal .metric-icon .icon { width: 16px; height: 16px; }
  .terminal .panel { padding: 10px 12px; }
  .terminal .panel-heading { margin-bottom: 8px; }
  .terminal .panel-title { font-size: 17px; }
  .terminal .panel-subtitle { font-size: 11px; }
  .overview-layout { grid-template-rows: minmax(0,2.5fr) minmax(0,1fr); }
  .topology-panel .panel-subtitle { display: none; }
  .topology-panel > [data-topology] { min-height: 108px; }
  .topology-panel .board { min-height: 108px; padding: 7px 10px 5px; }
  .topology-panel .node-picture { width: 42px; height: 34px; margin-bottom: 3px; }
  .topology-panel .node-picture .icon { width: 24px; height: 24px; }
  .topology-panel .energy-node strong { font-size: 13px; }
  .topology-panel .network-caption { min-height: 21px; margin-top: 3px; font-size: 11px; }
  .topology-panel .energy-connector { margin-top: -29px; }
  .device-tile { padding: 7px 10px; }
  .device-tile .reading-value { font-size: 18px; }
  .device-tile .reading-label { font-size: 11px; }
  .device-tile .circuit-bottom { margin-top: 4px; padding-top: 4px; }
  .terminal .control-stack { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-content: space-between; gap: 9px; }
  .control-stack > .control-mode-block,.control-stack > .apply-button,.control-stack > .control-footer,.control-stack > .battery-block { grid-column: 1/-1; }
  .control-stack > .wide-control { height: 100%; }
  .terminal .wide-control { padding: 10px; }
  .terminal .wide-control-head { flex-wrap: wrap; font-size: 13px; gap: 5px; }
  .terminal .wide-control-head output { font-size: 18px; }
  .control-mode-label { font-size: 13px; margin-bottom: 7px; }
  .control-mode-label .live-chip { font-size: 12px; }
  .control-stack > div:not([class]) > .mode-picker { display: flex; flex-wrap: wrap; gap: 4px; }
  .control-stack > div:not([class]) .mode-option { flex: 1 0 40%; }
  .mode-option { font-size: 13px; min-height: 34px; padding: 5px; }
  .control-panel .apply-button { min-height: 36px; font-size: 14px; }
  .control-footer { font-size: 11px; }
  .control-footer .button-text { font-size: 12px; }
  .battery-block small { display: none; }
  .battery-block-head { margin-bottom: 5px; }
  .battery-block { padding: 8px 10px; }
  .pv-summary { padding-top: 5px; font-size: 10px; }
  .terminal .footer { margin-top: 5px; font-size: 10px; }
  .chart-footer { display: none; }
  .terminal .trend-panel .panel-title { font-size: 16px; }
  .terminal .trend-panel .panel-heading { margin-bottom: 3px; }
  .terminal .trend-panel .segmented button { min-height: 26px; font-size: 11px; }
  .device-large-grid .device-tile { padding: 9px 12px; }
  .device-large-grid .device-visual { margin-bottom: 0; }
  .device-large-grid .reading-value { font-size: 21px; }
  .device-large-grid .circuit-name { font-size: 16px; }
  .hardware-list td { padding: 6px 9px; }
  .hardware-list th { padding: 7px 9px; }
  .terminal .hardware-list .badge { font-size: 11px; padding: 3px 6px; }
  .hardware-panel .pagination { padding-top: 6px; }
  .scenario-panel .panel-subtitle { display: none; }
  .scenario-card { padding: 9px; }
  .scenario-card .icon { display: none; }
  .scenario-card strong { font-size: 14px; }
  .scenario-card small { font-size: 11px; }
  .control-flow-panel .board-caption { display: none; }
  .control-flow-panel .node-picture { width: 48px; height: 40px; margin-bottom: 3px; }
  .control-flow-panel .network-caption { min-height: 22px; font-size: 11px; }
  .control-flow-panel .energy-node small { font-size: 10px; }
  .safety-list > div { font-size: 12px; }
  .safety-panel .outline-button { min-height: 32px; font-size: 12px; }
  .training-header { padding: 10px 14px; }
  .training-header h2 { font-size: 18px; }
  .training-header p { font-size: 12px; }
  .lesson-card { padding: 15px; }
  .lesson-card h3 { font-size: 18px; margin: 8px 0; }
  .lesson-card p { font-size: 12px; margin-bottom: 7px; }
  .lesson-card-top > span:first-child { font-size: 26px; }
  .lesson-card .primary-button,.lesson-card .outline-button { min-height: 33px; font-size: 12px; margin-top: 6px; }
  .lesson-steps { gap: 12px; }
  .step-row label { font-size: 13px; }
  .step-row input { width: 17px; height: 17px; }
  .lesson-detail .panel-subtitle { display: none; }
  .records-grid .hardware-list td { font-size: 12px; padding: 6px; }
  .records-grid .filter-bar { margin-bottom: 8px; }
}
