*{box-sizing:border-box}
body{margin:0;width:600px;min-width:600px;background:#0f172a;color:#e5e7eb;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px}
.app{padding:12px;width:600px;min-width:600px;display:block}
.head{display:flex;gap:10px;align-items:center;margin-bottom:10px}
.logo{width:42px;height:42px;border-radius:50%;background:#fff}
.title{font-weight:800;font-size:16px}
.ver{font-size:12px;color:#93c5fd}
.row{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.checks label{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border:1px solid #334155;border-radius:999px;background:#111827;user-select:text}
.block{margin-top:10px}
.label{font-size:12px;color:#a5b4fc;margin-bottom:4px}
select,textarea{width:100%;background:#020617;color:#e5e7eb;border:1px solid #334155;border-radius:6px;padding:6px;font-size:12px}
textarea{min-width:100%;max-width:100%;min-height:9em;height:9em;resize:vertical;line-height:1.35;overflow:auto;font-family:Consolas,monospace;white-space:pre;overflow-wrap:normal;word-break:normal}
.hint{font-size:11px;color:#94a3b8;margin-top:3px}
.status{margin-top:10px;padding:8px;border:1px solid #334155;border-radius:8px;background:#111827}
.mono{font-family:Consolas,monospace;word-break:break-all;margin-top:4px;color:#7dd3fc}
.badge{display:inline-block;margin-top:6px;padding:2px 8px;border-radius:999px;background:#1e293b;color:#facc15}
.muted{margin-top:4px;color:#94a3b8;font-size:11px}
.actions{display:flex;justify-content:flex-end;gap:6px;margin-top:12px}
button{border:1px solid #334155;background:#1e293b;color:#e5e7eb;border-radius:6px;padding:6px 10px;cursor:pointer}
button:hover{background:#334155}

.tab-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:6px}
.tab-actions button{font-size:12px;padding:5px 8px}

.path-input{width:100%;box-sizing:border-box;margin-top:6px;padding:6px 8px;border-radius:8px;border:1px solid rgba(148,163,184,.45);background:rgba(15,23,42,.65);color:#e5e7eb;font-family:Consolas,monospace;font-size:12px;}

.keymark{font-family:Consolas,monospace;font-size:11px;color:#facc15;margin-left:6px}
.tab-list{border:1px solid #334155;border-radius:8px;background:#020617;max-height:150px;overflow:auto;padding:6px;font-family:Consolas,monospace;font-size:11px;color:#cbd5e1}
.tab-item{display:grid;grid-template-columns:auto 1fr auto;gap:6px;align-items:center;border-bottom:1px solid rgba(51,65,85,.75);padding:5px 2px}
.tab-item:last-child{border-bottom:0}
.tab-key{color:#facc15;white-space:nowrap}
.tab-val{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tab-x{border:1px solid rgba(248,113,113,.7);background:rgba(127,29,29,.55);color:#fecaca;border-radius:5px;padding:2px 7px;font-size:11px;cursor:pointer}
.tab-x:hover{background:rgba(153,27,27,.85)}
.disabled-note{margin-top:10px;padding:8px;border:1px solid #334155;border-radius:8px;background:#111827;color:#94a3b8;font-size:12px}

.tab-current{background:rgba(30,64,175,.25);border-radius:6px;padding-left:4px;padding-right:4px}

.head-tab{font-family:Consolas,monospace;color:#facc15;margin-left:8px}
.tab-list-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tab-save-summary{font-family:Consolas,monospace;font-size:11px;color:#facc15;background:rgba(30,41,59,.85);border:1px solid #334155;border-radius:999px;padding:2px 7px}
#serversText{width:100%;white-space:pre;overflow:auto;overflow-wrap:normal;word-break:normal;}

.tab-save-summary.is-saved{color:#86efac;border-color:rgba(34,197,94,.6);background:rgba(22,101,52,.35)}
.tab-save-summary.is-missing{color:#fecaca;border-color:rgba(248,113,113,.7);background:rgba(127,29,29,.45)}

.tab-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px;vertical-align:middle;border:1px solid rgba(255,255,255,.35)}
.tab-dot-live{background:#22c55e;box-shadow:0 0 0 2px rgba(34,197,94,.16)}
.tab-dot-dead{background:#ef4444;box-shadow:0 0 0 2px rgba(239,68,68,.16)}
.tab-dot-base{background:#facc15;box-shadow:0 0 0 2px rgba(250,204,21,.14)}
.tab-live .tab-key{color:#86efac}
.tab-dead .tab-key{color:#fecaca}

.tab-current-badge{display:inline-block;margin-right:5px;padding:1px 5px;border-radius:999px;background:rgba(59,130,246,.35);border:1px solid rgba(96,165,250,.65);color:#bfdbfe;font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:10px;font-weight:800;vertical-align:middle}

.bus-debug-check{display:flex;align-items:center;gap:6px;font-weight:700;color:#bfdbfe;margin-bottom:6px}
.bus-debug-block input[type="text"]{font-size:11px}


.zip-apply-recv-checks{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 2px 0}
.zip-apply-recv-checks label{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border:1px solid #334155;border-radius:999px;background:#111827;color:#bfdbfe;font-weight:700;user-select:text}
.zip-apply-recv-box{margin-top:8px;border:1px solid rgba(56,189,248,.45);border-radius:8px;background:rgba(8,47,73,.35);padding:7px}
.zip-apply-recv-title{font-size:12px;font-weight:800;color:#7dd3fc;margin-bottom:4px}
.zip-apply-recv-text{white-space:pre-wrap;font-size:11px;line-height:1.45;color:#bae6fd}

.url5-block{border:1px solid rgba(56,189,248,.35);border-radius:8px;background:rgba(8,47,73,.18);padding:8px}
.url5-actions,.url5-send-row{display:flex;gap:6px;align-items:center;margin-top:6px}
.url5-actions button,.url5-send-row button{font-size:12px;padding:5px 8px}
.url5-list{margin-top:7px;border:1px solid #334155;border-radius:8px;background:#020617;max-height:126px;overflow:auto;padding:6px;font-size:11px;line-height:1.45;color:#cbd5e1}
.url5-link-row{display:grid;grid-template-columns:58px 54px 1fr 56px;gap:6px;padding:4px 2px;border-bottom:1px solid rgba(51,65,85,.7)}
.url5-link-row:last-child{border-bottom:0}
.url5-key{color:#facc15;font-weight:800}
.url5-role{color:#86efac}
.url5-url{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#bae6fd}
.url5-seen{color:#94a3b8;text-align:right}
#url5Target{flex:1;min-width:0}
#url5FileInput{flex:1;min-width:0;border:1px solid #334155;background:#020617;color:#cbd5e1;border-radius:6px;padding:5px;font-size:11px}
.url5-chat{min-height:54px;height:54px;white-space:pre-wrap}


.alarm-block{border:1px solid rgba(250,204,21,.42);border-radius:8px;background:rgba(113,63,18,.22);padding:8px}
.alarm-row{display:flex;gap:6px;align-items:center;margin-top:5px}
.alarm-enable{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:5px 8px;border:1px solid #334155;border-radius:999px;background:#111827;color:#fde68a;font-weight:700;user-select:text}
.alarm-url-input{flex:1;min-width:0;margin-top:0}
.alarm-test-btn{width:34px;min-width:34px;height:30px;padding:0;font-weight:900;color:#fef3c7;border-color:rgba(250,204,21,.58);background:rgba(120,53,15,.75)}
.alarm-test-btn:hover{background:rgba(146,64,14,.95)}
