/* Light console, based on the approved AIEUY reference. Login keeps its wiring bench. */
:root { --accent:#6d43f5; --cyan:#6840e8; --panel:#fff; --text:#1e2143; --muted:#727b99; --line:#e8eaf4; }
.ui-icon { width:20px; height:20px; display:inline-block; vertical-align:middle; flex:none; }
.icon-badge { width:38px; height:38px; display:inline-grid; place-items:center; border-radius:10px; background:#f1edff; color:#7040ff; flex:none; }
.icon-badge .ui-icon { width:22px; height:22px; }
.icon-badge.tone-green { color:#13ac6b; background:#ecfbf3; }
.icon-badge.tone-amber { color:#e99a12; background:#fff8e9; }
.icon-badge.tone-blue { color:#4479e4; background:#edf4ff; }
.icon-badge.tone-red { color:#e34d6b; background:#fff0f3; }
.globalbar { height:54px; gap:38px; padding:0 27px; border-color:var(--line); }
.globalbar .brand { min-width:190px; color:#171733; }
.brand>strong>span { color:#7c829d; }
.globalnav { gap:34px; }
.globalnav a { color:#555d80; font-size:13px; }
.globalnav a.active { color:#693aff; }
.globalnav a.active:after { background:#7548ff; height:3px; }
.global-right .env-label { color:#6e46e6; background:#eee8ff; border:0; padding:4px 9px; font-weight:600; }
.global-right .user-avatar { background:#eae4ff; color:#7041ed; border:0; width:34px; height:34px; font-size:13px; }
.global-right .user-menu { color:#525b7c; }
.global-right>a { color:#60698d; }
.shell { grid-template-columns:224px minmax(0,1fr); padding-top:54px; background:#f5f6fc; }
.sidebar { top:54px; width:224px; background:linear-gradient(180deg,#fbfbff,#f7f7ff); border-color:#e8e9f5; }
.workspace-label { padding:22px 19px 20px; border:0; margin:0; gap:12px; }
.workspace-label strong { color:#24274a; font-size:13px; font-weight:600; }
.workspace-label small { color:#7983a4; font-size:10px; margin-top:3px; }
.space-icon { width:42px; height:44px; background:#eae3ff; border:0; border-radius:10px; color:#7142fb; }
.space-icon svg { width:24px; height:24px; }
.sidebar nav { padding:0 16px 14px; }
.nav-label { color:#8a90aa; font-size:11px; padding:17px 10px 9px; }
.nav-link { min-height:40px; margin:0 0 5px; padding:9px 12px; color:#454d75; gap:13px; font-size:13px; position:relative; border-radius:7px; font-weight:500; }
.nav-link svg { width:20px; height:20px; color:#646d94; stroke-width:1.8; opacity:1; }
.nav-link.active,.nav-link.active:hover { color:#6231fa; background:#ece6ff; font-weight:600; }
.nav-link.active svg { color:#6d39ff; }
.nav-link.active:before { content:""; position:absolute; left:-16px; width:4px; height:26px; background:#7545ff; border-radius:0 4px 4px 0; }
.nav-link:hover { color:#633bdf; background:#f0edfc; }
.nav-link b { background:#ebe6ff; color:#7142ec; padding:1px 6px; border-radius:5px; font-size:10px; }
.sidebar-bottom { border-color:#ebecf5; background:transparent; padding:15px 25px 20px; }
.sidebar-bottom>a { color:#727b9f; font-size:11px; margin-top:11px; gap:10px; }
.sidebar-bottom svg { width:17px; height:17px; }
.sidebar-bottom>a>svg:last-child:not(:first-child) { width:12px; height:12px; margin-left:auto; }
.contextbar { background:#fafbff; border-color:#e9ebf6; height:42px; padding-inline:32px; }
.breadcrumb { font-size:11px; color:#7c85a4; gap:9px; }
.breadcrumb strong { color:#636d90; }
.project-picker { color:#8a91aa; gap:14px; }
.project-picker select { background:transparent; color:#5d6789; border-left:1px solid #e4e7f3; padding-left:15px; }
.content { max-width:1780px; padding:26px 32px 25px; }
.page-heading { align-items:center; margin-bottom:23px; }
.page-heading h1 { font-size:27px; font-weight:650; color:#191b3d; letter-spacing:-.5px; margin-bottom:7px; }
.page-heading p { color:#717c9b; font-size:13px; line-height:1.8; }
.btn { border-color:#e0e3f0; color:#424b70; border-radius:7px; box-shadow:0 2px 5px #34336504; min-height:38px; font-size:12px; padding:8px 14px; }
.btn.primary { background:#7146f7; border-color:#7146f7; color:#fff; box-shadow:0 4px 9px #7344ed26; }
.btn.primary:hover { background:#6032e6; border-color:#6032e6; color:#fff; }
.btn:hover { color:#6338e5; background:#f8f6ff; border-color:#c5b8f6; }
.btn.primary svg { color:#fff; }
.panel { border-color:#e7eaf4; border-radius:10px; box-shadow:0 2px 5px #45466b02; }
.panel-head { min-height:62px; border-color:#eef0f8; padding:17px 20px; }
.panel-head h2 { color:#282c50; font-size:14px; font-weight:600; }
.panel-head .small { color:#7547ed; }
.panel-body { color:#59627f; }
.data-table th { font-size:11px; color:#7a84a3; background:#f8f9fe; padding:11px 17px; }
.data-table td { color:#5b6687; font-size:12px; padding:14px 17px; border-color:#edf0f7; }
.data-table .table-empty { color:#7e88a4; padding:33px 20px; }
.device-name strong { color:#32395d; font-size:12px; }
.device-name small { color:#818aa4; font-size:10px; }
.device-mini { color:#7749ed; background:#f0ebff; border-color:#e7dfff; }
.status.green { background:#e8faef; color:#199a61; padding:2px 7px; border-radius:6px; }
.status.neutral { color:#8189a1; }
.protocol { background:#fafaff; color:#737e9f; border-color:#e8eaf5; }
.notice { color:#636d8d; background:#f5f3ff; border-color:#e5dff7; }
.field label { color:#4e587b; }
.field input,.field textarea,.field select { color:#303a60; border-color:#dfe3f0; }
.field .hint,.hint { color:#7b86a3; }
.footer { color:#8b94af; font-size:10px; }
.footer a { color:#787fa0; }
.guest-banner { color:#626b8f; border-color:#e1dcfa; background:#f0edff; }

/* Project overview: the same visual objects are used in navigation and content. */
.project-hero { display:flex; align-items:center; gap:20px; margin-bottom:24px; }
.project-hero>.icon-badge { width:64px; height:64px; border-radius:13px; background:linear-gradient(145deg,#aa8fff,#784aff); color:#fff; box-shadow:inset 0 1px 0 #ffffff55; }
.project-hero>.icon-badge svg { width:34px; height:34px; stroke-width:1.6; }
.project-heading { min-width:0; flex:1; }
.project-title { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.project-title h1 { font-size:27px; line-height:1.35; font-weight:650; color:#171b3c; margin:0; letter-spacing:-.6px; overflow-wrap:anywhere; }
.project-title>span { padding:3px 10px; border-radius:12px; color:#8053ed; background:#eae3ff; font-size:10px; white-space:nowrap; }
.project-heading>p { font-size:12px; color:#75809e; margin:6px 0 8px; }
.project-meta { display:flex; align-items:center; gap:19px; color:#7e88a5; font-size:10px; flex-wrap:wrap; }
.project-meta>span { display:flex; align-items:center; gap:8px; }
.project-meta svg { width:14px; height:14px; color:#7884a7; }
.project-hero>.actions { flex:none; margin-left:auto; }
.overview-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; margin-bottom:18px; }
.overview-metric { display:flex; align-items:flex-start; gap:18px; border:1px solid #e8eaf6; border-radius:10px; padding:21px 19px 18px; background:#fff; min-width:0; min-height:116px; }
.overview-metric>.icon-badge { width:48px; height:49px; border-radius:12px; }
.overview-metric>.icon-badge svg { width:26px; height:26px; }
.overview-metric-content { flex:1; min-width:0; }
.overview-metric h2 { font-size:12px; color:#545e7f; margin:0 0 5px; font-weight:500; }
.overview-value { display:flex; align-items:baseline; gap:6px; }
.overview-value strong { font:600 30px/1.2 "Segoe UI",sans-serif; letter-spacing:-.7px; color:#191d3d; }
.overview-value small { color:#8690ac; font-size:11px; }
.overview-metric p { font-size:10px; color:#8a93ad; margin:5px 0 0; }
.quota-meter { height:6px; width:100%; background:#f0f1f8; border-radius:6px; overflow:hidden; margin-top:12px; }
.quota-meter>span { display:block; height:100%; background:#b49cff; border-radius:6px; }
.experiment-path { background:#eeeafa; border-color:#e1dcf7; padding:17px 22px; gap:20px; border-radius:9px; margin-bottom:18px; }
.path-heading { display:flex; gap:12px; align-items:center; color:#393e68; margin-right:15px; }
.path-heading>.icon-badge { width:29px; height:32px; background:#e8e0ff; }
.path-heading>.icon-badge svg { width:19px; height:19px; }
.path-heading strong { font-size:12px; font-weight:600; }
.path-heading small { font-size:10px; color:#8b87ab; margin-top:3px; font-weight:400; }
.path-stop { gap:12px; color:#515679; }
.path-stop>span { width:37px; height:37px; border-color:#d3c5ff; background:#f8f6ff; font:600 13px "Segoe UI",sans-serif; color:#7544f4; }
.path-stop.current>span,.path-stop.complete>span { background:#7544f4; border-color:#7544f4; color:white; box-shadow:0 2px 5px #7648ec18; }
.path-stop.current strong { color:#7544f4; }
.path-stop>span svg { width:17px; height:17px; }
.path-stop strong { font-size:12px; font-weight:500; }
.path-stop small { font-size:10px; color:#8b87a4; }
.path-stop>i { color:#ad91ee; padding:0; margin-left:auto; }
.path-stop>i svg { width:20px; height:20px; }
.overview-grid { grid-template-columns:minmax(0,1fr) 320px; gap:17px; }
.overview-grid>.stack { gap:17px; }
.overview-heading { display:flex; align-items:center; gap:12px; min-width:0; }
.overview-heading>.icon-badge { width:34px; height:36px; border-radius:9px; }
.overview-heading>.icon-badge svg { width:21px; height:21px; }
.overview-heading h2 { margin:0; color:#252b50; font-size:14px; line-height:1.5; }
.overview-heading p { color:#8790aa; font-size:11px; margin:2px 0 0; }
.overview-panel .panel-head { border-bottom:0; align-items:center; }
.overview-panel .table-scroll { padding:0 16px 12px; }
.overview-panel .data-table thead th:first-child { border-radius:6px 0 0 6px; }
.overview-panel .data-table thead th:last-child { border-radius:0 6px 6px 0; }
.tool-tiles { padding:0 17px 16px; display:flex; flex-direction:column; gap:9px; }
.tool-tiles>a { display:flex; gap:12px; align-items:center; padding:7px 10px; border:1px solid #e8eaf5; border-radius:8px; transition:background .15s,border-color .15s; }
.tool-tiles>a:hover { background:#faf8ff; border-color:#cabbf9; }
.tool-tiles .icon-badge { width:36px; height:38px; border-radius:9px; }
.tool-tiles strong { font-weight:500; font-size:12px; display:block; color:#3d456a; }
.tool-tiles small { font-size:10px; color:#8b94ae; display:block; margin-top:3px; }
.tool-tiles>a>.ui-icon { margin-left:auto; color:#8c94af; width:14px; height:14px; }
.chart-controls { display:flex; align-items:center; gap:9px; flex-wrap:wrap; justify-content:flex-end; }
.chart-selector { color:#657193; border-color:#e0e4f1; font-size:10px; max-width:150px; padding:5px 7px; }
.chart-range { display:flex; border:1px solid #e1e5f2; border-radius:6px; overflow:hidden; }
.chart-range button { border:0; border-right:1px solid #e1e5f2; background:white; padding:5px 9px; color:#7b85a3; font-size:10px; }
.chart-range button:last-child { border-right:0; }
.chart-range button[aria-pressed="true"] { background:#7647f7; color:#fff; }
.cloud-chart { padding:5px 20px 12px; }
.cloud-chart svg { height:205px; }
.cloud-chart text { fill:#929bb5; font-size:10px; }
.chart-current { padding:0 10px 0; }
.chart-current>strong { color:#48456e; font-size:23px; }
.chart-current>span { color:#8b94ae; font-size:10px; }
.chart-legend { text-align:center; color:#8d96af; font-size:10px; margin-top:3px; }
.empty-chart { height:261px; gap:7px; }
.empty-chart strong { color:#606b8e; font-size:13px; }
.empty-chart span { color:#8c97b0; font-size:11px; }
.empty-chart a { color:#7144ee; font-size:11px; }
.activity-list { padding:0 17px 9px; }
.activity { align-items:flex-start; padding:11px 0; gap:10px; }
.activity>.icon-badge { width:26px; height:27px; border-radius:50%; }
.activity>.icon-badge svg { width:15px; height:15px; }
.activity strong { color:#d6617b; font-size:11px; }
.activity p { color:#7c87a3; font-size:10px; margin:3px 0; }
.activity small { color:#9aa3b9; font-size:10px; }
.quiet-empty { padding:18px 12px; height:147px; }
.quiet-empty>svg { color:#c5b1ff; width:29px; height:29px; }
.quiet-empty span { color:#7c85a1; font-size:11px; }
.quiet-empty small { color:#929bb3; font-size:10px; }
.manual-link { border:1px solid #e9e6f6; background:#f1edfc; border-radius:8px; padding:15px 17px; gap:12px; }
.manual-link>svg { color:#8d69e6; }
.manual-link strong { color:#645885; font-size:11px; }
.manual-link p { color:#9690ae; font-size:10px; }

/* A control protocol and an application message are taught separately. */
.learning-guide { margin-bottom:20px; border:1px solid #e4dff8; background:#fff; border-radius:10px; overflow:hidden; }
.learning-guide>summary { display:flex; align-items:center; gap:13px; padding:15px 19px; cursor:pointer; list-style:none; }
.learning-guide>summary::-webkit-details-marker { display:none; }
.learning-guide>summary strong { display:block; font-size:14px; color:#3e3763; }
.learning-guide>summary small { display:block; font-size:11px; color:#8385a2; margin-top:3px; }
.guide-expand { margin-left:auto; color:#7a53d8; font-size:11px; white-space:nowrap; display:flex; gap:6px; align-items:center; }
.guide-expand svg { width:14px; height:14px; }
.learning-guide[open] .guide-expand svg { transform:rotate(90deg); }
.guide-body { padding:3px 21px 20px; }
.guide-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; padding:18px 0; border-top:1px solid #efedf6; }
.guide-cards>div { position:relative; }
.guide-cards .icon-badge { width:31px; height:33px; border-radius:8px; margin-bottom:9px; }
.guide-cards .icon-badge svg { width:19px; height:19px; }
.guide-cards h3 { font-size:13px; color:#4c4d72; margin:0 0 6px; }
.guide-cards p { font-size:12px; color:#7a819e; line-height:1.9; margin:0; }
.guide-example { display:flex; gap:17px; align-items:center; background:#f8f7fd; border:1px solid #edeaf7; padding:15px 17px; border-radius:7px; }
.guide-example>span { flex:1; min-width:0; }
.guide-example b { display:block; font-size:11px; font-weight:500; color:#666186; }
.guide-example code { display:block; font-size:12px; color:#734cbd; margin:4px 0; overflow-wrap:anywhere; }
.guide-example small { font-size:10px; color:#9690ad; }
.guide-example>.ui-icon { width:16px; height:16px; color:#b19add; }
.guide-note { color:#848aa4; font-size:11px; line-height:1.9; margin:14px 0 12px; }
.guide-manual { color:#7b50d6; font-size:11px; display:inline-flex; align-items:center; gap:7px; }
.guide-manual svg { width:13px; height:13px; }
.at-reference .panel-head h2 { color:#343755; }
.at-command>span { color:#6e7392; }
.at-command>code { color:#5d35b4; font-size:13px; }
.at-command-detail strong { color:#54486d; }
.at-command-detail p,.at-command-detail small { color:#7a6b8d; }
.at-category .selected { color:#7041dc; border-color:#d9c9fb; background:#eee7ff; }
.at-flow>span { color:#65708f; }
.at-flow>span svg { color:#8c6ddd; }
.at-module-state { color:#8486a0; }

/* Protocol options remain real radios: keyboard, FormData and screen readers work natively. */
.protocol-options { padding:0; margin:0 0 22px; border:0; min-width:0; }
.protocol-options legend { color:#505b7d; font-size:12px; margin-bottom:10px; }
.protocol-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.protocol-option { position:relative; cursor:pointer; min-width:0; }
.protocol-option input { position:absolute; left:11px; top:14px; margin:0; accent-color:#7543ef; z-index:1; }
.protocol-option>span { display:block; border:1px solid #e1e4f0; border-radius:8px; padding:13px 11px 11px 33px; background:#fff; height:100%; }
.protocol-option input:checked+span { background:#f6f2ff; border-color:#a88af0; box-shadow:0 0 0 1px #a88af026; }
.protocol-option input:focus-visible+span { outline:2px solid #7543ef; outline-offset:2px; }
.protocol-option strong { display:flex; align-items:center; gap:7px; font-size:12px; color:#514473; }
.protocol-option strong svg { width:17px; height:17px; color:#8055d8; }
.protocol-option small { display:block; font-size:10px; color:#8a83a0; margin-top:5px; line-height:1.7; }
.device-connect { padding:20px; margin-bottom:22px; border:1px solid #e4dcf7; border-radius:9px; background:#f5f1ff; display:flex; align-items:center; gap:14px; }
.device-connect>div { flex:1; min-width:0; }
.device-connect h2 { font-size:14px; color:#554675; margin:0 0 4px; }
.device-connect p { font-size:11px; color:#8a7c9d; margin:0; line-height:1.8; }
.device-connect .actions { flex:none; }

@media(min-width:1550px) {
 .globalbar { padding-inline:27px; gap:39px; }
 .content { padding:27px 32px; }
 .overview-grid { grid-template-columns:minmax(0,1fr) 378px; }
 .cloud-chart svg { height:215px; }
 .overview-metric { min-height:120px; padding:22px; }
 .project-heading>p { font-size:13px; }
}
@media(max-width:1250px) {
 .sidebar { width:205px; } .shell { grid-template-columns:205px minmax(0,1fr); }
 .globalbar .brand { min-width:175px; }
 .content { padding:24px; } .contextbar { padding-inline:24px; }
 .project-hero { flex-wrap:wrap; gap:14px; } .project-hero>.actions { width:100%; justify-content:flex-end; }
 .project-hero>.icon-badge { width:54px; height:55px; }
 .project-title h1 { font-size:25px; }
 .overview-metric { gap:11px; padding:18px 14px; }
 .overview-metric>.icon-badge { width:36px; height:38px; border-radius:9px; }
 .overview-metric>.icon-badge svg { width:22px; height:22px; }
 .overview-value strong { font-size:27px; }
 .overview-grid { grid-template-columns:minmax(0,1fr) 285px; }
 .experiment-path { padding:16px; gap:13px; }
 .path-heading { margin-right:0; gap:8px; }
 .path-heading small { max-width:95px; white-space:normal; }
 .path-stop { gap:8px; } .path-stop>span { width:30px; height:30px; }
 .path-stop small { font-size:9px; }
 .overview-panel .panel-head { flex-wrap:wrap; }
 .chart-controls { width:100%; justify-content:space-between; }
}
@media(max-width:1020px) {
 .overview-grid { grid-template-columns:1fr; }
 .overview-aside { display:grid!important; grid-template-columns:1fr 1fr; }
 .overview-aside .manual-link { grid-column:span 2; }
 .experiment-path { flex-wrap:wrap; } .path-heading { width:100%; }
 .path-heading small { display:inline; max-width:none; margin-left:10px; }
 .overview-metrics { gap:10px; }
 .overview-metric { flex-direction:column; gap:10px; }
}
@media(max-width:760px) {
 .globalbar { height:63px; padding:0 16px; gap:16px; }
 .globalbar .brand { min-width:0; }
 .globalnav { gap:18px; } .globalnav a { font-size:11px; }
 .global-right .user-avatar { width:30px; height:30px; font-size:11px; }
 .shell { display:block; padding-top:63px; }
 .sidebar { width:224px; top:63px; box-shadow:12px 0 40px #29214612; }
 .sidebar .nav-link { font-size:13px; min-height:42px; }
 .contextbar { top:63px; padding-inline:17px; height:46px; }
 .content { padding:22px 17px; }
 .page-heading { align-items:flex-start; }
 .page-heading h1 { font-size:23px; } .page-heading p { font-size:12px; }
 .project-hero { gap:12px; margin-bottom:17px; }
 .project-hero>.icon-badge { width:45px; height:48px; border-radius:10px; }
 .project-hero>.icon-badge svg { width:28px; height:28px; }
 .project-title { gap:7px; } .project-title h1 { font-size:21px; letter-spacing:-.4px; }
 .project-title>span { font-size:9px; padding:2px 6px; }
 .project-heading>p { font-size:11px; line-height:1.9; margin-bottom:6px; }
 .project-meta { gap:5px; font-size:9px; }
 .project-meta>span:nth-child(2) { display:none; }
 .project-hero>.actions { margin-top:0; } .project-hero>.actions .btn { min-height:35px; font-size:11px; }
 .overview-metrics { grid-template-columns:1fr 1fr; gap:10px; margin-bottom:15px; }
 .overview-metric { flex-direction:row; padding:16px 12px; gap:10px; min-height:101px; }
 .overview-metric>.icon-badge { width:32px; height:34px; }
 .overview-metric>.icon-badge svg { width:19px; height:19px; }
 .overview-metric h2 { font-size:10px; } .overview-value strong { font-size:26px; }
 .overview-value small { font-size:9px; } .overview-metric p { font-size:9px; }
 .quota-meter { margin-top:8px; }
 .experiment-path { gap:14px 9px; padding:16px 14px; margin-bottom:16px; }
 .path-heading { width:100%; margin:0; }
 .path-heading small { font-size:9px; margin-left:8px; }
 .path-stop { flex:0 0 calc(50% - 5px); gap:9px; }
 .path-stop strong { font-size:11px; } .path-stop small { font-size:9px; }
 .path-stop>i { display:none; }
 .overview-grid { gap:16px; } .overview-aside { display:flex!important; }
 .overview-grid>.stack { gap:16px; }
 .overview-panel .panel-head { padding:15px; gap:12px; }
 .overview-heading { gap:10px; } .overview-heading h2 { font-size:13px; } .overview-heading p { font-size:10px; }
 .overview-panel .table-scroll { padding-inline:10px; }
 .chart-controls { justify-content:space-between; gap:8px; }
 .chart-selector { max-width:140px; }
 .chart-range button { padding:5px 8px; font-size:10px; }
 .cloud-chart { padding:3px 12px 13px; } .cloud-chart svg { height:180px; }
 .chart-current { padding:0 5px; } .chart-current>span { font-size:9px; }
 .tool-tiles strong { font-size:12px; } .tool-tiles small { font-size:11px; }
 .learning-guide>summary { padding:14px; gap:10px; align-items:flex-start; }
 .learning-guide>summary .icon-badge { width:31px; height:33px; border-radius:8px; }
 .learning-guide>summary strong { font-size:13px; } .learning-guide>summary small { font-size:10px; line-height:1.8; }
 .guide-expand { font-size:0; align-self:center; gap:0; } .guide-expand svg { width:15px; height:15px; }
 .guide-body { padding:0 16px 18px; } .guide-cards { grid-template-columns:1fr; gap:17px; }
 .guide-cards>div { padding-left:43px; } .guide-cards .icon-badge { position:absolute; top:0; left:0; }
 .guide-cards h3 { font-size:12px; } .guide-cards p { font-size:11px; }
 .guide-example { flex-direction:column; align-items:stretch; gap:13px; }
 .guide-example>.ui-icon { align-self:center; transform:rotate(90deg); }
 .guide-example code { font-size:11px; } .guide-note { font-size:11px; }
 .device-connect { flex-wrap:wrap; padding:17px; gap:12px; }
 .device-connect .actions { width:100%; }
 .protocol-grid { gap:9px; }
}

/* Match the reference chart proportions without stretching SVG text. */
.telemetry-chart{padding:0 23px 13px}.chart-unit{font-size:10px;color:#8c96b1;display:flex;justify-content:space-between;margin-bottom:3px;padding-inline:4px}.chart-unit>span{font-size:10px;color:#aaa2bf}.chart-canvas-wrap{position:relative;height:205px;min-width:0}.chart-legend{margin-top:6px;color:#8e99b4;font-size:10px;display:flex;align-items:center;justify-content:center;gap:4px}.chart-scope{font-size:9px;color:#aaaec1;text-align:center;margin:4px 0 0}.chart-load-error{display:grid;place-items:center;height:100%;font-size:12px;line-height:1.9;color:#8a819f;padding:20px}.overview-panel .empty-chart{height:260px}.overview-metric{min-height:119px}.project-hero{margin-bottom:25px}.project-heading>p{line-height:1.8}.workspace-label{padding-top:27px;padding-bottom:16px}.sidebar .nav-link{margin-bottom:4px}.sidebar-bottom{padding-bottom:22px}.overview-heading .icon-badge{background:#f3efff}.project-hero>.actions .btn.primary{background:linear-gradient(120deg,#8252ff,#6c42f3);border-color:#7949fb}.overview-metric .icon-badge{background:#f2efff}.overview-metric .tone-green{background:#eafbf2}.overview-metric .tone-amber{background:#fff8eb}.overview-metric h2{color:#5b6180}.path-stop.current>span{background:linear-gradient(135deg,#9468ff,#6838fa)}
@media(min-width:1550px){.chart-canvas-wrap{height:208px}}
@media(max-width:760px){.telemetry-chart{padding:0 12px 13px}.chart-canvas-wrap{height:190px}.chart-unit{font-size:9px}.chart-scope{font-size:8px}.project-hero{margin-bottom:17px}.overview-metric{min-height:101px}.sidebar{top:63px}.workspace-label{padding-top:22px}.sidebar .nav-link{margin-bottom:4px}}

/* Resource creation is a centered task dialog, with an independently scrolling body. */
body:has(#resource-dialog[open]) { overflow:hidden; }
#resource-dialog {
 width:min(620px,calc(100% - 40px)); max-width:none;
 height:auto; max-height:calc(100vh - 56px); max-height:calc(100dvh - 56px);
 margin:auto; padding:0; border:1px solid #e6e2f0; border-radius:16px;
 background:#fff; color:#262445; overflow:hidden;
 box-shadow:0 24px 90px #29214230,0 3px 16px #29214212;
}
#resource-dialog::backdrop { background:#23213b66; backdrop-filter:blur(3px); }
#resource-dialog[open] { animation:resource-appear .16s ease-out; }
#resource-form {
 display:flex; flex-direction:column; min-height:0;
 max-height:calc(100vh - 56px); max-height:calc(100dvh - 56px);
}
.resource-modal-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; flex:none; padding:23px 27px 21px; border-bottom:1px solid #eceaf4; }
.resource-modal-heading { display:flex; align-items:center; gap:13px; min-width:0; }
.resource-modal-heading>.icon-badge { width:42px; height:44px; border-radius:11px; }
.resource-modal-heading h2 { margin:0; color:#26233f; font-size:19px; line-height:1.5; font-weight:650; }
.resource-modal-heading p { margin:4px 0 0; color:#7c7890; font-size:12px; line-height:1.75; }
.resource-modal-head .icon-button { width:32px; height:32px; border:0; background:transparent; border-radius:7px; color:#91899f; display:grid; place-items:center; flex:none; padding:6px; margin:-2px -7px 0 0; }
.resource-modal-head .icon-button:hover { color:#6235d4; background:#f2edfc; }
.resource-modal-head .icon-button svg { width:18px; height:18px; }
.resource-modal-body { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:23px 27px; scrollbar-width:thin; scrollbar-color:#d7cdec transparent; }
.resource-modal-body .field { margin-bottom:19px; }
.resource-modal-body .field label { display:block; color:#55506d; font-size:12px; margin-bottom:8px; line-height:1.5; }
.resource-modal-body .field input,.resource-modal-body .field select,.resource-modal-body .field textarea { width:100%; min-height:42px; padding:10px 12px; font-size:13px; border:1px solid #dfdbed; border-radius:7px; color:#39314f; background:#fff; }
.resource-modal-body .field input::placeholder,.resource-modal-body .field textarea::placeholder { color:#a09aaf; }
.resource-modal-body .field input:focus,.resource-modal-body .field select:focus,.resource-modal-body .field textarea:focus { border-color:#9f82ed; outline:2px solid #b79df52b; outline-offset:1px; }
.resource-modal-body .field textarea { min-height:110px; resize:vertical; }
.resource-modal-body .hint { display:block; color:#8a829a; font-size:11px; line-height:1.85; margin:7px 0 0; }
.resource-identity-row { display:grid; grid-template-columns:1fr 1fr; gap:17px; }
.resource-modal-body .protocol-options { margin:2px 0 20px; }
.resource-modal-body .protocol-options legend { font-size:12px; color:#55506d; margin-bottom:10px; }
.resource-modal-body .protocol-option>span { padding-block:13px; min-height:76px; }
.resource-modal-body .protocol-option small { font-size:11px; }
.resource-modal-body .model-preview { display:grid; grid-template-columns:1fr 1fr; gap:7px 12px; padding:15px 17px; margin:0; border:1px solid #e9e5f3; border-radius:8px; background:#f8f7fc; font-size:11px; color:#877c9a; }
.resource-modal-body .model-preview strong { grid-column:1/-1; font-size:12px; color:#655a7c; margin-bottom:2px; }
.resource-modal-body>.hint { margin:13px 0 0; }
.resource-modal-foot { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:17px 27px; border-top:1px solid #eceaf4; background:#fcfbff; flex:none; }
.resource-modal-foot>a { display:inline-flex; align-items:center; gap:6px; color:#887b9d; font-size:11px; white-space:nowrap; }
.resource-modal-foot>a svg { width:15px; height:15px; }
.resource-modal-foot>a:hover { color:#6d43d3; }
.resource-modal-foot .actions { display:flex; gap:10px; }
.resource-modal-foot .btn { min-height:38px; padding:8px 18px; }
#resource-form button:disabled,#resource-form input:disabled,#resource-form select:disabled,#resource-form textarea:disabled { cursor:wait; opacity:.6; }
.resource-form-error { color:#a43151; font-size:12px; line-height:1.8; padding:11px 13px; border:1px solid #efd1da; background:#fff5f8; border-radius:7px; margin:17px 0 0; }
.resource-form-error[hidden] { display:none; }
#resource-dialog :focus-visible { outline:2px solid #8051dc; outline-offset:3px; }
@keyframes resource-appear { from { opacity:0; transform:translateY(6px) scale(.99); } to { opacity:1; transform:translateY(0) scale(1); } }
@media(max-width:560px) {
 #resource-dialog { width:calc(100% - 24px); max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); border-radius:12px; }
 #resource-form { max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); }
 .resource-modal-head { padding:18px; gap:10px; }
 .resource-modal-heading { align-items:flex-start; gap:10px; }
 .resource-modal-heading>.icon-badge { width:34px; height:36px; border-radius:9px; }
 .resource-modal-heading>.icon-badge svg { width:20px; height:20px; }
 .resource-modal-heading h2 { font-size:17px; }
 .resource-modal-heading p { font-size:11px; margin-top:3px; }
 .resource-modal-body { padding:19px 18px; }
 .resource-identity-row { grid-template-columns:1fr; gap:0; }
 .resource-modal-body .model-preview { grid-template-columns:1fr; }
 .resource-modal-foot { padding:14px 18px; gap:10px; }
 .resource-modal-foot .btn { padding-inline:14px; }
 .resource-modal-foot>a { font-size:10px; gap:4px; }
}
@media(prefers-reduced-motion:reduce) { #resource-dialog[open] { animation:none; } }

.device-walkthrough { margin:0 0 23px; border:1px solid #e5dff2; border-radius:10px; background:#fff; overflow:hidden; }
.device-walkthrough>summary { display:flex; align-items:center; gap:12px; padding:17px 20px; cursor:pointer; list-style:none; }
.device-walkthrough>summary::-webkit-details-marker { display:none; }
.device-walkthrough>summary strong { display:block; color:#4e446a; font-size:13px; font-weight:600; }
.device-walkthrough>summary small { display:block; color:#978ba7; font-size:11px; margin-top:4px; }
.device-walkthrough>summary>.ui-icon { margin-left:auto; color:#9b8fae; width:16px; height:16px; }
.device-walkthrough[open]>summary>.ui-icon { transform:rotate(90deg); }
.device-walkthrough-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:2px 20px 20px; gap:18px; }
.device-walkthrough-grid article { position:relative; padding:18px 17px 16px; border:1px solid #ece8f4; border-radius:8px; background:#fcfbfe; display:flex; flex-direction:column; align-items:flex-start; }
.walkthrough-index { display:grid; place-items:center; width:25px; height:25px; border:1px solid #dbccf4; border-radius:50%; font:600 12px "Segoe UI",sans-serif; color:#8052c6; margin-bottom:11px; background:#f3ecff; }
.device-walkthrough-grid h2 { font-size:13px; color:#4d4266; margin:0 0 8px; }
.device-walkthrough-grid p { font-size:12px; line-height:1.9; color:#857a95; margin:0 0 12px; flex:1; }
.device-walkthrough-grid small { font-size:10px; line-height:1.7; color:#9b90aa; display:block; margin:0 0 13px; }
.device-walkthrough-grid .btn { min-height:34px; font-size:11px; padding:6px 11px; }
.walkthrough-help { display:flex; align-items:center; justify-content:space-between; gap:15px; background:#f8f6fc; border-top:1px solid #ece8f4; padding:12px 20px; font-size:11px; line-height:1.8; }
.walkthrough-help>span { display:flex; align-items:center; gap:8px; color:#94859f; }
.walkthrough-help>a { display:flex; align-items:center; gap:7px; color:#7953b8; white-space:nowrap; }
.walkthrough-help .ui-icon { width:15px; height:15px; }
@media(max-width:1020px) { .device-walkthrough-grid { gap:10px; padding-inline:16px; } .device-walkthrough-grid article { padding:15px 12px; } }
@media(max-width:760px) { .device-walkthrough>summary { padding:16px; } .device-walkthrough>summary strong { font-size:12px; } .device-walkthrough>summary small { font-size:10px; } .device-walkthrough-grid { grid-template-columns:1fr; gap:10px; padding:0 16px 16px; } .device-walkthrough-grid article { padding:15px 15px 15px 54px; } .walkthrough-index { position:absolute; left:15px; top:15px; } .device-walkthrough-grid h2 { margin-top:2px; } .device-walkthrough-grid p { margin-bottom:8px; } .walkthrough-help { flex-direction:column; align-items:flex-start; gap:7px; padding:12px 16px; } }
.model-explanation{padding:14px 18px;border-top:1px solid #eceaf4;background:#fcfbfe;color:#96849f;font-size:10px;line-height:1.9;display:grid;gap:6px}.model-explanation>span{display:flex;align-items:flex-start;gap:7px}.model-explanation .ui-icon{width:14px;height:14px;margin-top:3px}.model-explanation>a{color:#8866ac;justify-self:start}.device-summary+.device-connect .actions{flex-wrap:wrap}

/* Active small buttons need the same contrast as the other primary actions. */
.panel-head .btn.primary { color:#fff; }
#payload { min-height:164px; font:12px/1.8 var(--mono); }
@media(max-width:760px) { #payload { min-height:156px; font-size:11px; } }
