@import "https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap";:root{color:#19231f;font-synthesis:none;--green:#176149;--green-dark:#104b38;--green-soft:#e3efe9;--orange:#d97634;--ink:#19231f;--muted:#6e7974;--line:#d9dfdc;background:#eef2ef;font-family:Manrope,system-ui,sans-serif}*{box-sizing:border-box}body{background:#eef2ef;min-width:1080px;min-height:100vh;margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}.sr-only{clip:rect(0, 0, 0, 0);width:1px;height:1px;position:absolute;overflow:hidden}.app-shell{min-height:100vh}.topbar{border-bottom:1px solid var(--line);background:#fbfcfb;justify-content:space-between;align-items:center;height:82px;padding:0 3.2vw;display:flex;box-shadow:0 1px 8px #1a2e250a}.brand{align-items:center;gap:13px;display:flex}.brand-mark{color:#fff;background:var(--green);border-radius:9px;place-items:center;width:41px;height:41px;display:grid;box-shadow:inset 0 0 0 1px #ffffff1a}.brand h1{letter-spacing:-.5px;margin:0;font-size:20px;line-height:1.15}.brand p{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin:3px 0 0;font-size:11px;font-weight:600}.device-actions{align-items:center;gap:9px;display:flex}.connection-state{border-right:1px solid var(--line);align-items:center;gap:9px;min-width:132px;margin-right:3px;padding-right:12px;display:flex}.status-dot{background:#a8b0ac;border-radius:50%;width:9px;height:9px;box-shadow:0 0 0 4px #edf0ee}.connection-state.connected .status-dot{background:#31a173;box-shadow:0 0 0 4px #e1f2ea}.connection-state div{flex-direction:column;display:flex}.connection-state small{color:#89928e;letter-spacing:.14em;font-size:8px;font-weight:700}.connection-state strong{margin-top:1px;font-size:12px;font-weight:700}.button{border:1px solid #0000;border-radius:7px;align-items:center;gap:7px;height:36px;padding:0 13px;font-size:11px;font-weight:700;transition:background .15s,border-color .15s;display:inline-flex}.button-connect{color:#fff;background:var(--green)}.button-connect:hover:not(:disabled){background:var(--green-dark)}.button-flash{color:#6e3b17;background:#fff8f2;border-color:#edc5a6}.button-flash:hover:not(:disabled){color:#fff;background:var(--orange);border-color:var(--orange)}.button-quiet{color:#4c5752;background:#fff;border-color:#d7ddda}.button-quiet:hover:not(:disabled){border-color:#aeb8b3}.button:disabled{opacity:.45}main{padding:22px 3.2vw 28px}.browser-warning{color:#823e27;background:#fff2e9;border:1px solid #efcfba;border-radius:7px;align-items:center;gap:8px;max-width:1440px;margin:0 auto 12px;padding:10px 13px;font-size:12px;display:flex}.workspace{grid-template-columns:minmax(360px,.78fr) minmax(560px,1.35fr) 340px;gap:16px;max-width:1440px;height:calc(100vh - 132px);min-height:570px;margin:0 auto;display:grid}.workspace.stream-collapsed{grid-template-columns:minmax(380px,.82fr) minmax(620px,1.45fr) 48px}.control-panel,.data-panel,.stream-panel{border:1px solid var(--line);background:#fff;border-radius:11px;overflow:hidden;box-shadow:0 6px 24px #1f352b0d}.control-panel{padding:24px 25px;overflow-y:auto}.section-heading,.data-header{justify-content:space-between;align-items:flex-start;display:flex}.eyebrow{color:#7d8983;letter-spacing:.12em;margin-bottom:5px;font-family:DM Mono,monospace;font-size:9px;font-weight:500;display:block}h2{letter-spacing:-.35px;margin:0;font-size:19px}.protocol-badge{color:var(--green);background:#f5faf7;border:1px solid #d7e3dd;border-radius:5px;align-items:center;gap:5px;padding:5px 8px;font-family:DM Mono,monospace;font-size:9px;font-weight:500;display:inline-flex}.control-block{margin-top:25px}.field-label{color:#3d4943;letter-spacing:.015em;margin-bottom:9px;font-size:11px;font-weight:700;display:block}.field-label span{color:#7a8580;font-weight:500}.mode-toggle{background:#f1f4f2;border:1px solid #dce2df;border-radius:8px;grid-template-columns:1fr 1fr;gap:4px;height:38px;padding:4px;display:grid}.mode-toggle button{color:#66726d;text-transform:uppercase;letter-spacing:.05em;background:0 0;border:0;border-radius:5px;font-size:10px;font-weight:800}.mode-toggle button.selected{color:var(--green-dark);background:#fff;box-shadow:0 1px 4px #1f352b14}.parameter-grid{grid-template-columns:repeat(4,1fr);gap:7px;display:grid}.parameter-button{color:#52605a;white-space:nowrap;background:#fafbfa;border:1px solid #dce2df;border-radius:7px;justify-content:center;align-items:center;gap:5px;height:40px;padding:0 9px;font-size:10px;font-weight:700;transition:all .15s;display:flex}.parameter-button:nth-child(2),.parameter-button:nth-child(3),.parameter-button:nth-child(6),.parameter-button:nth-child(7){grid-column:span 1}.parameter-button:hover{color:var(--green);border-color:#9ab7aa}.parameter-button.selected{color:var(--green-dark);background:var(--green-soft);border-color:#7eaa96;box-shadow:inset 0 0 0 1px #a9c8b9}.reference-block{border-top:1px solid #e5e9e7;padding-top:19px}.number-input-wrap{background:#fbfcfb;border:1px solid #bdc9c3;border-radius:8px;align-items:center;height:62px;transition:border .15s,box-shadow .15s;display:flex}.number-input-wrap:focus-within{border-color:var(--green);box-shadow:0 0 0 3px #1761491a}.number-input-wrap input{min-width:0;height:100%;color:var(--ink);background:0 0;border:0;outline:0;flex:1;padding:0 17px;font-family:DM Mono,monospace;font-size:24px;font-weight:500}.number-input-wrap input::placeholder{color:#bdc5c1}.input-unit{color:#75817b;border-left:1px solid var(--line);padding:0 17px;font-size:12px;font-weight:700}.input-help{color:#8a948f;margin:7px 0 0;font-size:9px}.selected-reference-block{padding-top:16px}.selected-input-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.compact-reference{background:#fbfcfb;border:1px solid #dce2df;border-radius:7px;align-items:center;gap:8px;min-width:0;padding:9px 10px;display:flex}.compact-reference span{color:#46534d;white-space:nowrap;width:86px;font-size:10px;font-weight:800}.compact-reference small{color:#7f8985;font-size:8px;font-weight:600}.compact-reference input{min-width:0;height:31px;color:var(--ink);background:#fff;border:1px solid #c7d0cb;border-radius:5px;outline:0;flex:1;padding:0 8px;font-family:DM Mono,monospace;font-size:14px}.compact-reference input:focus{border-color:var(--green);box-shadow:0 0 0 3px #17614917}.record-button{color:#fff;background:var(--orange);letter-spacing:.07em;text-transform:uppercase;border:0;border-radius:8px;justify-content:center;align-items:center;gap:10px;width:100%;height:53px;margin-top:20px;font-size:12px;font-weight:800;transition:background .15s,transform .1s;display:flex;box-shadow:0 6px 14px #d9763433}.record-button:hover:not(:disabled){background:#c76628}.record-button:active:not(:disabled){transform:translateY(1px)}.record-button.reading{background:#af744d}.record-icon{border:2px solid #fff;border-radius:50%;width:12px;height:12px;box-shadow:0 0 0 3px #ffffff29}.spinner{border:2px solid #ffffff59;border-top-color:#fff;border-radius:50%;width:15px;height:15px;animation:.75s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.command-preview{color:#949d99;letter-spacing:.1em;align-items:center;gap:8px;margin-top:9px;font-size:8px;font-weight:700;display:flex}.command-preview code{color:#4e5e56;letter-spacing:0;font-family:DM Mono,monospace;font-size:9px}.command-preview .timeout{letter-spacing:.03em;margin-left:auto;font-weight:500}.feedback{border-radius:7px;align-items:center;gap:9px;min-height:42px;margin-top:15px;padding:10px 34px 10px 11px;font-size:10px;line-height:1.35;display:flex;position:relative}.feedback-error{color:#8e402a;background:#fff1ec;border:1px solid #f0c9bc}.feedback-success{color:#24644f;background:#edf8f2;border:1px solid #c7e3d5}.feedback button{color:inherit;background:0 0;border:0;padding:3px;position:absolute;top:50%;right:7px;transform:translateY(-50%)}.flash-status{background:#f8faf9;border:1px solid #d7e3dd;border-radius:7px;margin-top:12px;padding:10px 11px}.flash-status div:first-child{flex-direction:column;gap:2px;display:flex}.flash-status span{color:#87918c;letter-spacing:.11em;text-transform:uppercase;font-size:8px;font-weight:800}.flash-status strong{color:#3a4942;font-size:10px;line-height:1.35}.flash-meter{background:#e1e8e4;border-radius:999px;height:5px;margin-top:8px;overflow:hidden}.flash-meter span{background:var(--orange);border-radius:inherit;height:100%;transition:width .18s;display:block}.data-panel{flex-direction:column;min-width:0;display:flex}.data-header{border-bottom:1px solid #e1e6e3;align-items:center;min-height:76px;padding:20px 22px 14px}.data-actions{align-items:center;gap:8px;display:flex}.reading-count{color:#808a85;margin-right:3px;font-size:9px}.reading-count strong{color:#35423c;font-family:DM Mono,monospace;font-size:11px}.icon-text-button{color:#6e7974;background:0 0;border:0;border-radius:5px;align-items:center;gap:5px;height:32px;padding:0 8px;font-size:9px;font-weight:700;display:inline-flex}.icon-text-button.danger:hover:not(:disabled){color:#a64732;background:#fff1ed}.icon-text-button:disabled,.export-button:disabled{opacity:.35}.export-button{border:1px solid var(--green);color:#fff;background:var(--green);letter-spacing:.03em;text-transform:uppercase;border-radius:6px;align-items:center;gap:6px;height:34px;padding:0 11px;font-size:9px;font-weight:800;display:inline-flex}.export-button:hover:not(:disabled){background:var(--green-dark)}.confirm-clear{color:#9c4734;background:#fff2ee;border:1px solid #ebc9c0;border-radius:6px;align-items:center;gap:4px;height:32px;padding:0 4px 0 9px;font-size:9px;display:flex}.confirm-clear button{color:inherit;background:#fff;border:0;border-radius:3px;padding:3px 5px;font-size:9px;font-weight:700}.mode-summary{background:#f8faf9;border-bottom:1px solid #e1e6e3;grid-template-columns:1.2fr 1fr .8fr;align-items:center;height:57px;padding:0 22px;display:grid}.mode-summary div{flex-direction:column;gap:2px;display:flex}.mode-summary div+div{border-left:1px solid #dfe5e2;padding-left:18px}.mode-summary span{color:#8c9691;letter-spacing:.11em;font-size:7px;font-weight:800}.mode-summary strong,.mode-summary code{color:#3b4942;font-size:10px;font-weight:700}.mode-summary code{font-family:DM Mono,monospace;font-weight:500}.table-wrap{flex:1;min-height:0;position:relative;overflow:auto}table{border-collapse:collapse;table-layout:fixed;width:100%}.selected-table{min-width:780px}thead{z-index:2;position:sticky;top:0}th{color:#707c76;text-align:right;letter-spacing:.025em;background:#fff;border-bottom:1px solid #dfe5e2;height:47px;padding:0 18px;font-size:9px;font-weight:800}th small{color:#9ca49f;margin-top:2px;font-size:7px;font-weight:500;display:block}th:first-child{text-align:left}.serial-column{width:76px}.delete-column{width:52px}td{text-align:right;border-bottom:1px solid #edf0ee;height:54px;padding:0 18px}tbody tr:hover{background:#fafcfb}.serial-cell{color:#939c98;text-align:left;font-family:DM Mono,monospace;font-size:9px}.value-cell{color:#22312a;font-family:DM Mono,monospace;font-size:15px;font-weight:500}.entered-value{color:#53615a}.delete-button{color:#a0aaa5;opacity:0;background:0 0;border:0;border-radius:5px;place-items:center;width:28px;height:28px;padding:0;display:grid}tbody tr:hover .delete-button{opacity:1}.delete-button:hover{color:#ad4732;background:#fff0eb}.empty-state{color:#82908a;text-align:center;flex-direction:column;justify-content:center;align-items:center;display:flex;position:absolute;inset:48px 0 0}.empty-icon{color:#7da08f;background:#eef5f1;border-radius:50%;place-items:center;width:48px;height:48px;margin-bottom:12px;display:grid}.empty-state strong{color:#53605a;font-size:12px}.empty-state p{max-width:330px;margin:6px 0 0;font-size:9px;line-height:1.5}.data-footer{color:#98a19d;background:#fafbfa;border-top:1px solid #e2e7e4;justify-content:space-between;align-items:center;min-height:35px;padding:0 22px;font-size:8px;display:flex}.stream-panel{min-width:0;display:flex;position:relative}.stream-panel.collapsed{background:#f8faf9;justify-content:center;align-items:stretch}.stream-tab{width:42px;color:var(--green);letter-spacing:.08em;text-transform:uppercase;background:#f8faf9;border:0;border-right:1px solid #e1e6e3;flex-direction:column;justify-content:center;align-items:center;gap:9px;font-size:9px;font-weight:800;display:flex}.stream-panel.collapsed .stream-tab{border-right:0;width:100%}.stream-tab span{writing-mode:vertical-rl;transform:rotate(180deg)}.stream-content{flex-direction:column;flex:1;min-width:0;display:flex}.stream-header{border-bottom:1px solid #e1e6e3;justify-content:space-between;align-items:center;min-height:76px;padding:20px 18px 14px;display:flex}.stream-pill{color:#84908a;letter-spacing:.08em;background:#eef2ef;border-radius:999px;padding:4px 7px;font-family:DM Mono,monospace;font-size:8px;font-weight:500}.stream-pill.active{color:#176149;background:#e1f2ea}.stream-controls{border-bottom:1px solid #e5e9e7;grid-template-columns:1fr auto;gap:8px;padding:13px 16px;display:grid}.stream-toggle{color:#fff;background:var(--green);letter-spacing:.04em;text-transform:uppercase;border:1px solid #a9c8b9;border-radius:7px;justify-content:center;align-items:center;gap:7px;height:34px;font-size:9px;font-weight:800;display:inline-flex}.stream-toggle:hover:not(:disabled){background:var(--green-dark)}.stream-toggle:disabled,.stream-clear:disabled{opacity:.45}.stream-clear{color:#59645f;text-transform:uppercase;background:#fff;border:1px solid #d7ddda;border-radius:7px;height:34px;padding:0 10px;font-size:9px;font-weight:800}.stream-status{color:#77827d;background:#fbfcfb;border-bottom:1px solid #e5e9e7;justify-content:space-between;align-items:center;gap:10px;padding:10px 16px;font-size:9px;line-height:1.35;display:flex}.stream-status span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.stream-status code{color:#4d5e56;flex:none;font-family:DM Mono,monospace;font-size:8px}.live-value-grid{border-bottom:1px solid #e5e9e7;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:14px 16px;display:grid}.live-value-card{background:linear-gradient(#fff 0%,#f8fbf9 100%);border:1px solid #dfe7e3;border-radius:8px;min-width:0;padding:11px}.live-value-card div{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.live-value-card span{color:#49564f;font-size:9px;font-weight:800}.live-value-card small{color:#8a948f;white-space:nowrap;font-size:7px;font-weight:700}.live-value-card strong{color:#1f3028;letter-spacing:-.05em;margin-top:7px;font-family:DM Mono,monospace;font-size:24px;font-weight:500;display:block}.live-value-card em{color:#a46a3e;margin-top:4px;font-family:DM Mono,monospace;font-size:8px;font-style:normal;display:block}.live-value-card em.stable{color:#20845f}.stream-log{border-bottom:1px solid #e5e9e7;min-height:0;padding:13px 16px;overflow:auto}.stream-log-heading{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.stream-log-heading span{color:#46534d;font-size:10px;font-weight:800}.stream-log-heading small{color:#95a09b;font-size:8px;font-weight:700}.stream-sample{border-top:1px solid #edf1ef;grid-template-columns:66px 1fr;align-items:center;gap:8px;min-height:30px;display:grid}.stream-sample:first-of-type{border-top:0}.stream-sample time,.raw-line time{color:#9aa39f;font-family:DM Mono,monospace;font-size:8px}.stream-sample code{text-overflow:ellipsis;white-space:nowrap;color:#314039;min-width:0;font-family:DM Mono,monospace;font-size:9px;overflow:hidden}.stream-empty{color:#89948f;text-align:center;margin:20px 8px;font-size:9px;line-height:1.5}.raw-serial{background:#fbfcfb;padding:11px 16px 14px}.raw-serial summary{color:#5d6963;letter-spacing:.04em;text-transform:uppercase;cursor:pointer;font-size:9px;font-weight:800}.raw-serial p{color:#98a19d;margin:10px 0 0;font-size:9px}.raw-line{grid-template-columns:66px 1fr;gap:8px;margin-top:9px;display:grid}.raw-line code{text-overflow:ellipsis;color:#47544e;white-space:nowrap;min-width:0;font-family:DM Mono,monospace;font-size:8px;overflow:hidden}@media (width<=1200px){.topbar,main{padding-left:24px;padding-right:24px}.workspace{grid-template-columns:360px minmax(520px,1fr) 300px}.workspace.stream-collapsed{grid-template-columns:390px minmax(600px,1fr) 48px}.parameter-grid{grid-template-columns:repeat(3,1fr)}.button{padding-left:9px;padding-right:9px}.device-actions{gap:6px}.live-value-grid{grid-template-columns:1fr}}@media (width>=1500px){.workspace{height:min(760px,100vh - 142px)}.control-panel{padding:28px 30px}}
