/* Formal console controls and protocol editor, using the shared theme tokens. */
:root{--ink:var(--text);--line:var(--border)}
.btn-primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}.btn-primary:hover{background:var(--accent);filter:brightness(1.1)}.btn-small{font-size:10px;padding:5px 9px;min-height:28px}.btn-subtle{border-color:transparent;background:transparent;color:var(--muted-strong)}.btn-danger{border-style:dashed;background:transparent;color:var(--text)}
.btn-icon{height:30px;width:30px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted-strong)}.btn-icon:hover{background:var(--surface-2);border-color:var(--border)}.btn-icon .icon{width:15px;height:15px}.btn-icon.mobile-menu{display:none}.small-copy{font-size:10px}.break-all{overflow-wrap:anywhere}.space-top{margin-top:20px}.console-badge{display:inline-flex;gap:6px;align-items:center;font-size:9px;color:var(--muted-strong);border:1px solid var(--border);padding:4px 7px;border-radius:5px}.workspace>.icon{width:12px;height:12px;color:var(--muted)}
.section-head .head-actions{flex-shrink:0}.sidebar .brand-name{font-size:19px}.sidebar .brand-version{font-size:8px}.side-account{display:flex;align-items:center;gap:10px}.chain-mini>.icon{width:13px;color:var(--muted)}.route-preview .chain-stop b{font-size:10px}.node-card .card-header>.btn-icon{margin-left:auto}.node-card .card-header>.status-pill{margin-left:auto}.node-card .card-header>.status-pill+.btn-icon{margin-left:0}.node-card .node-card-label{overflow-wrap:anywhere;line-height:1.8;min-height:19px}.node-meta dd{overflow-wrap:anywhere}.node-live-error{font-size:9px;line-height:1.7;margin-top:14px;color:var(--muted-strong)}.config-strip span:last-child{text-align:right}.node-card .row-actions{display:flex;gap:1px}
.status-pill{display:inline-flex;align-items:center;gap:5px;background:var(--surface-2);border:1px solid var(--border);border-radius:5px;color:var(--text);font-size:9px;padding:3px 7px;line-height:1.35;white-space:nowrap}.status-pill.offline{color:var(--muted)}.status-pill.pending,.status-pill.blue{border-style:dashed;color:var(--muted-strong)}.status-pill.error{color:var(--text);border-style:dashed}.dot{width:4px;height:4px;background:currentColor;display:inline-block;border-radius:50%}
.notice{display:flex;align-items:flex-start;gap:9px;padding:12px 14px;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;color:var(--muted-strong);font-size:10px;line-height:1.9;margin-bottom:18px}.notice>.icon{height:14px;width:14px;margin-top:2px}.notice-content{flex:1;min-width:0}.notice.warning,.notice.error{border-style:dashed}.notice strong{font-weight:550;color:var(--text)}
.empty-state{padding:42px 23px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.empty-icon{height:40px;width:40px;display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;color:var(--muted);margin-bottom:14px}.empty-icon>.icon{height:19px;width:19px}.empty-state h3{font-size:12px;font-weight:500;color:var(--muted-strong);margin-bottom:8px}.empty-state p{font-size:10px;line-height:1.9;color:var(--muted);max-width:360px}.empty-state>.btn{margin-top:17px}.link-btn{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:var(--muted-strong);padding:0;font-size:10px}.link-btn>.icon{height:12px;width:12px}
.config-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 18px;border:1px solid var(--border);background:var(--surface);border-radius:10px;margin-bottom:20px}.node-select{display:flex;align-items:center;gap:11px}.node-select>.icon{width:16px;color:var(--muted)}.node-select>select{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:8px 27px 8px 10px;font-size:11px;min-width:170px}.config-actions{display:flex;align-items:center;gap:8px}.inline-meta{display:inline-flex;align-items:center;gap:10px;color:var(--muted);font-size:10px}.dirty-label{font-size:9px;color:var(--text);white-space:nowrap;margin-right:3px}.config-tabs{display:flex;gap:5px;margin-bottom:20px;overflow-x:auto}.config-tabs .tab{padding:8px 12px;font-size:11px;display:inline-flex;align-items:center;gap:7px;border:1px solid transparent}.config-tabs .tab.active{border-color:var(--border)}.config-tabs .tab>.icon{height:14px;width:14px}.tab-count{font-size:8px;margin-left:3px;color:var(--muted)}.config-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.config-section-heading h2{font-size:13px;font-weight:550}.config-section-heading p{font-size:10px;line-height:1.7;color:var(--muted);margin-top:5px}.config-section-heading>.btn{flex-shrink:0}
.table-wrap>table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:11px}.table-wrap>table th{font-size:9px;color:var(--muted);font-weight:400;padding:13px 20px;background:var(--surface-2);border-bottom:1px solid var(--border)}.table-wrap>table td{padding:17px 20px;border-bottom:1px solid var(--border);color:var(--muted-strong)}.table-wrap>table tr:last-child td{border:0}.table-wrap>table strong{font-weight:500;color:var(--text);font-size:11px}.table-secondary{font-size:9px;color:var(--muted);margin-top:4px;line-height:1.7}.table-actions{display:flex;align-items:center;gap:3px;justify-content:flex-end}.config-name{display:flex;align-items:center;gap:10px}.config-icon{width:29px;height:29px;display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--border);border-radius:7px;color:var(--muted)}.config-icon>.icon{height:13px;width:13px}.protocol-tag{display:inline-flex;align-items:center;font-size:9px;border:1px solid var(--border);border-radius:4px;background:var(--surface-2);color:var(--muted-strong);padding:3px 6px}
.route-list{display:grid;gap:10px}.route-row{display:flex;gap:13px;align-items:center;padding:17px 18px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.route-row.disabled{opacity:.5}.route-order{display:flex;flex-direction:column;align-items:center;gap:0;flex-shrink:0}.route-order>.btn-icon{width:18px;height:12px}.route-order .icon{height:10px;width:10px}.route-order>span{font-size:9px;color:var(--muted);margin:3px 0}.route-content{flex:1;min-width:0}.route-title{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:500}.route-title>.status-pill{font-size:8px}.route-domains{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:8px}.domain-chip{font-family:ui-monospace,monospace;border:1px solid var(--border);background:var(--surface-2);color:var(--muted);font-size:8px;border-radius:4px;padding:3px 5px}.route-destination{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted-strong);min-width:90px}.route-destination>.icon{height:12px;width:12px}.route-row .switch.on{background:var(--accent);border-color:var(--accent)}.route-row .switch.on:after{transform:translateX(12px);background:var(--accent-text)}.route-default{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;margin:17px 9px 0}.route-default>.icon{height:13px;width:13px}.settings-card{padding:23px;max-width:850px}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.full{grid-column:1/-1}.field>label{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--text);font-size:10px;font-weight:500}.field>label>small{font-weight:400;color:var(--muted);font-size:9px}.field input,.field select,.field textarea{width:100%;min-width:0;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:7px;padding:10px 11px;font-size:11px;outline:none}.field input::placeholder,.field textarea::placeholder{color:var(--muted)}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--muted-strong)}.field textarea{resize:vertical;line-height:1.8;min-height:85px;font-size:10px}.field>p,.field-hint{color:var(--muted);font-size:9px;line-height:1.9}.field label.check-label{display:flex;align-items:flex-start;justify-content:flex-start;gap:8px;font-weight:400;font-size:10px;line-height:1.8;color:var(--muted-strong)}.check-label>input[type=checkbox]{width:13px;height:13px;padding:0;margin:3px 0 0;accent-color:var(--accent);flex-shrink:0}.field .generate{display:inline-flex;gap:3px;align-items:center;background:transparent;padding:0;border:0;font-size:9px;font-weight:400;color:var(--muted-strong)}.generate>.icon{height:10px;width:10px}.field-hidden{display:none!important}.form-divider{display:flex;align-items:center;gap:10px;grid-column:1/-1;font-size:9px;color:var(--muted);line-height:1.8;margin:3px 0}.form-divider:after{content:'';height:1px;background:var(--border);flex:1}.form-footer{margin-top:23px;padding-top:18px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:flex-end;gap:8px}.detail-box{padding:13px 14px;border:1px solid var(--border);border-radius:7px;background:var(--surface-2);color:var(--muted-strong);font-size:10px;line-height:1.9}.detail-box pre{white-space:pre-wrap;overflow-wrap:anywhere}.field-row{display:flex;align-items:center;gap:8px}.field-row>input{flex:1}
.modal-backdrop{z-index:100}.modal-header.modal-head{padding-bottom:20px;border-bottom:1px solid var(--border);align-items:flex-start}.modal-header.modal-head>.btn-icon{margin-top:-2px}.modal-header.modal-head p{font-size:10px;line-height:1.8;margin-top:6px;color:var(--muted)}.modal-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:15px 24px;border-top:1px solid var(--border)}.modal.wide{width:760px}.modal-error{display:none}.modal-error.visible{display:flex}.modal-body .notice{margin-bottom:17px}.command{padding:15px;background:var(--surface-2);border:1px solid var(--border);color:var(--text);border-radius:8px;font-size:10px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:13px 0}.secret-note,.cli-hint{font-size:9px;color:var(--muted);line-height:1.9}.json-pre{font-size:10px;line-height:1.8;background:var(--surface-2);border:1px solid var(--border);color:var(--muted-strong);border-radius:7px;padding:15px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:400px;overflow:auto}.key-list{display:grid;gap:8px}.key-list>div{padding:10px 12px;background:var(--surface-2);border:1px solid var(--border);border-radius:6px;font-size:9px;overflow-wrap:anywhere;color:var(--muted-strong)}.key-list strong{display:block;font-size:10px;margin-bottom:4px}
.release-layout{display:grid;gap:20px}.release-card{padding:23px}.release-card h2{font-size:13px}.release-card>p{font-size:10px;color:var(--muted);line-height:1.9;margin:9px 0 17px}.upload-zone{display:block;border:1px dashed var(--border);border-radius:8px;background:var(--surface-2);padding:20px;text-align:center;font-size:10px;color:var(--muted-strong);cursor:pointer;margin-bottom:17px}.upload-zone>.icon{height:22px;width:22px;margin:0 auto 8px}.upload-zone>small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.upload-zone>input{display:none}.release-item{display:flex;align-items:flex-start;gap:11px;padding:17px 21px;border-bottom:1px solid var(--border)}.release-item:last-child{border:0}.release-icon{height:31px;width:31px;border:1px solid var(--border);background:var(--surface-2);border-radius:7px;display:grid;place-items:center;color:var(--muted)}.release-icon>.icon{height:15px;width:15px}.release-info{flex:1;min-width:0}.release-info strong{font-size:11px;font-weight:500}.release-info p{font-size:8px;color:var(--muted);margin-top:6px;overflow-wrap:anywhere;line-height:1.8}.release-info .protocol-tag{margin:6px 4px 0 0;font-size:8px}.signed-label{display:inline-flex;align-items:center;gap:4px;color:var(--muted-strong);font-size:8px}.signed-label>.icon{height:11px;width:11px}.key-text{font-family:ui-monospace,monospace;padding:12px;border:1px solid var(--border);border-radius:7px;background:var(--surface-2);font-size:9px;color:var(--muted-strong);overflow-wrap:anywhere;line-height:1.8}.card-heading{padding:20px 22px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px}.card-heading h2{font-size:12px;font-weight:550}.sub-label{font-size:9px;color:var(--muted);margin-left:5px;font-weight:400}.instructions{display:grid;gap:20px;padding:22px}.instruction{display:flex;align-items:flex-start;gap:10px}.step-number{height:21px;width:21px;display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--border);border-radius:50%;font-size:9px;color:var(--muted-strong);flex-shrink:0}.instruction h3{font-size:10px;font-weight:500}.instruction p{font-size:9px;color:var(--muted);line-height:1.9;margin-top:5px}.filter-select{padding:7px 27px 7px 10px;background:var(--surface);color:var(--muted-strong);border:1px solid var(--border);border-radius:6px;font-size:10px}.job-error{font-size:9px;color:var(--muted-strong);line-height:1.8;max-width:330px;white-space:normal;margin-top:5px}.activity-view-switch{margin-bottom:20px}
.initial-loading{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:17px;font-size:11px;color:var(--muted)}.loading-mark{width:40px;height:40px;display:grid;place-items:center;background:var(--text);color:var(--surface);border-radius:11px;font-size:23px;font-weight:600}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:35px;background:var(--bg)}.auth-card{max-width:410px;width:100%;border:1px solid var(--border);background:var(--surface);border-radius:16px;padding:36px;box-shadow:var(--shadow)}.auth-card>.brand{padding:0;margin:0 0 34px}.auth-heading>span{font-size:8px;letter-spacing:1.5px}.auth-heading>h1{font-size:25px;margin-top:10px}.auth-heading>p{font-size:10px;color:var(--muted);margin:12px 0 25px;line-height:1.8}.auth-card form>.btn{margin-top:18px;min-height:39px}.auth-footer{font-size:9px;color:var(--muted);margin-top:22px}.toast-root .toast.error{border-style:dashed}.notice .btn{margin-top:8px}
@media(max-width:1250px){.config-toolbar{flex-wrap:wrap}.config-actions{margin-left:auto}.node-grid{gap:17px}.release-card{padding:20px}}
@media(max-width:760px){.btn-icon.mobile-menu{display:inline-flex}.console-badge{display:none}.config-toolbar{padding:12px}.node-select{width:100%}.node-select>select{flex:1;min-width:0;font-size:10px}.config-actions{width:100%;justify-content:flex-end;gap:6px}.config-actions>.btn{font-size:10px;padding:7px 9px}.config-actions>.inline-meta,.dirty-label{margin-right:auto;font-size:8px}.config-tabs{gap:3px;margin-bottom:17px}.config-tabs .tab{font-size:10px;padding:7px 9px;gap:5px}.config-tabs .tab>.icon{height:12px;width:12px}.config-section-heading h2{font-size:12px}.config-section-heading p{font-size:9px;max-width:230px}.config-section-heading>.btn{font-size:9px;padding:7px 9px}.table-wrap>table{font-size:10px}.table-wrap>table th,.table-wrap>table td{padding:13px 14px}.table-wrap>table strong{font-size:10px}.table-secondary{font-size:8px}.config-name{gap:8px}.config-icon{width:25px;height:25px}.protocol-tag{font-size:8px}.route-row{gap:9px;padding:14px 12px;flex-wrap:wrap}.route-content{flex-basis:calc(100% - 80px)}.route-title{font-size:10px}.route-destination{margin-left:27px;flex:1;font-size:9px}.domain-chip{font-size:7px}.route-row>.switch{margin-left:auto}.route-default{font-size:9px;gap:6px;line-height:1.8;flex-wrap:wrap}.field.full{grid-column:auto}.settings-card{padding:19px}.field>label{font-size:10px}.field input,.field select,.field textarea{font-size:10px}.form-divider{grid-column:auto;font-size:8px}.form-footer{flex-wrap:wrap}.modal.wide{width:100%}.modal-head.modal-header{padding-bottom:17px}.modal-foot{padding:13px 20px}.release-card{padding:19px}.release-item{padding:16px;gap:8px}.release-info strong{font-size:10px}.signed-label{font-size:7px}.release-icon{height:27px;width:27px}.notice{font-size:9px;padding:11px 12px;gap:7px}.notice>.icon{height:12px;width:12px}.empty-state{padding:35px 20px}.empty-state p{font-size:9px}.settings-layout .section-head{margin-bottom:20px}.auth-page{padding:22px}.auth-card{padding:29px}.auth-heading>h1{font-size:23px}.node-card .card-footer .btn{font-size:9px}.activity-view-switch .tab{font-size:9px}}

.settings-layout>div>.section-head,.activity-view-switch~.section-head{display:none}.settings-update-toolbar{display:flex;justify-content:flex-end;margin-bottom:17px}

.history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--border)}.history-row:last-child{border-bottom:0}.history-row strong{font-size:11px;font-weight:500}.history-row p{font-size:9px;margin-top:5px}.binding-list{gap:12px}.binding-list .check-label>span{font-size:10px}.binding-list .check-label small{display:block;color:var(--muted);font-size:9px;line-height:1.8;margin-top:3px}.binding-list input:disabled+span{opacity:.5}.traffic-rankings{margin-top:20px}

/* Explanatory notices follow the same rhythm as their preceding content block. */
:where(.card,.grid-2,.grid-equal,.route-list,.table-wrap)+.notice{margin-top:20px}
.analytics-rankings{align-items:stretch}
@media(max-width:760px){:where(.card,.grid-2,.grid-equal,.route-list,.table-wrap)+.notice{margin-top:16px}.analytics-rankings{align-items:start;margin-top:16px}}
