.setup-editor{width:1000px}.setup-steps{display:flex;gap:30px;padding:17px 28px;border-bottom:1px solid var(--line);background:var(--subtle);font-size:11px;color:var(--muted)}.setup-steps span{display:flex;align-items:center;gap:8px}.setup-steps b{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);font-size:10px;font-weight:500}.setup-steps .active{color:var(--accent)}.setup-steps .active b{background:var(--accent);border-color:var(--accent);color:var(--onaccent)}.setup-steps .done{color:var(--green)}.setup-steps .done b{background:var(--greensoft);border-color:var(--greenline)}.setup-editor .form-content{padding:28px}.setup-protocol-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.setup-protocol{padding:16px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;gap:10px;cursor:pointer}.setup-protocol.active{border-color:var(--accent);background:var(--soft)}.setup-protocol input{width:15px;height:15px;flex-shrink:0;accent-color:var(--accent)}.setup-protocol .protocol-symbol{width:27px;height:27px;min-width:27px;background:var(--panel);color:var(--accent);border:0}.setup-protocol strong{font-size:12px;display:block}.setup-protocol small{font-size:10px;color:var(--muted);display:block;margin-top:5px;line-height:1.5}.inventory-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:20px}.inventory-grid>div{background:var(--subtle);border:1px solid var(--line);padding:14px 17px;border-radius:9px}.inventory-grid small{color:var(--muted);font-size:10px}.inventory-grid p{font-size:12px;margin-top:7px}.setup-plan{border:1px solid var(--line);border-radius:10px;overflow:hidden}.plan-row{display:grid;grid-template-columns:minmax(180px,1fr) 120px minmax(240px,1.4fr);gap:20px;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}.plan-row:last-child{border:0}.plan-row>div>strong{font-size:12px;display:block}.plan-row small{font-size:10px;display:block;color:var(--muted);margin-top:5px}.plan-row label{font-size:9px;color:var(--muted)}.plan-row input{padding:7px 10px;margin-top:5px;font-size:12px}.plan-ok{font-size:11px;color:var(--green)}.plan-error{font-size:11px;color:#c35a64}.plan-row.conflict{background:var(--soft)}.plan-blocker{border:1px solid #c35a6460}.plan-resources{display:flex;flex-wrap:wrap;gap:15px;font-size:10px;color:var(--muted);margin-top:19px}.plan-resources strong{font-weight:500;color:var(--text)}.plan-details{margin-top:20px;color:var(--muted);font-size:11px}.plan-details summary{cursor:pointer}.plan-details pre{font:11px/1.8 monospace;padding:17px;background:var(--subtle);border-radius:9px;white-space:pre-wrap;color:var(--text)}.local-node-badge{display:inline-block;font-size:9px;margin-top:9px;background:var(--soft);color:var(--accent);border-radius:5px;padding:4px 7px}
@media(max-width:720px){.setup-editor .form-content{padding:18px}.setup-steps{padding:12px 16px;gap:12px;font-size:9px;flex-wrap:wrap}.setup-steps b{height:19px;width:19px;font-size:9px}.setup-protocol-grid{grid-template-columns:1fr 1fr;gap:9px}.setup-protocol{padding:12px;flex-wrap:wrap;gap:6px}.setup-protocol>span:last-child{width:100%}.setup-protocol strong{font-size:11px}.plan-row{grid-template-columns:1fr 90px;gap:12px;padding:13px}.plan-row>div:last-child{grid-column:1/-1}.inventory-grid{gap:9px}.inventory-grid>div{padding:12px}.inventory-grid p{font-size:11px}.setup-editor .fields input{font-size:16px}}
@media(max-width:420px){.inventory-grid{grid-template-columns:1fr}.setup-protocol-grid{grid-template-columns:1fr 1fr}.setup-steps{gap:9px}.setup-steps span{gap:5px}}
.setup-editor .setup-steps{font-size:14px;gap:26px;padding:20px 28px}.setup-editor .setup-steps b{width:29px;height:29px;font-size:13px}.setup-editor .setup-protocol-grid{grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}.setup-editor .setup-protocol{padding:21px;min-height:110px;align-items:flex-start;flex-wrap:wrap;gap:12px}.setup-editor .setup-protocol>span:last-child{width:100%}.setup-editor .setup-protocol strong{font-size:16px}.setup-editor .setup-protocol small{font-size:13px}.setup-editor .setup-protocol input{width:20px;height:20px}.setup-editor .inventory-grid>div{padding:20px;border-radius:14px}.setup-editor .inventory-grid small{font-size:13px}.setup-editor .inventory-grid p{font-size:15px;line-height:1.65}.setup-editor .plan-row{padding:22px;grid-template-columns:minmax(160px,1fr) 125px minmax(200px,1fr)}.setup-editor .plan-row strong{font-size:16px}.setup-editor .plan-row small,.setup-editor .plan-row label,.setup-editor .plan-ok,.setup-editor .plan-error{font-size:13px}.setup-editor .plan-row input{font-size:16px;padding:11px}.setup-editor .plan-row .full{grid-column:1/-1}.setup-editor .form-note{font-size:14px;line-height:1.65;margin-top:22px}.setup-editor #runtime-progress{color:var(--accent);margin-top:18px;overflow-wrap:anywhere}.setup-editor .form-content>button{margin:14px 0}.setup-editor .title h2{margin-top:6px}.setup-editor .title p{margin-top:8px}
@media(max-width:720px){.setup-editor .setup-steps{font-size:12px;gap:12px;padding:16px}.setup-editor .plan-row{grid-template-columns:1fr 100px;padding:16px}.setup-editor .plan-row>div:last-of-type{grid-column:1/-1}.setup-editor .setup-protocol{padding:15px}.setup-editor .inventory-grid>div{padding:15px}.setup-editor .setup-protocol strong{font-size:14px}}
.setup-editor{display:flex;flex-direction:column;max-height:calc(100dvh - 90px)}.setup-editor .editor-head,.setup-editor .setup-steps,.setup-editor .editor-footer{flex-shrink:0}.setup-editor .form-content{overflow-y:auto;min-height:0}.setup-editor .editor-footer{background:var(--panel)}
@media(max-width:720px){.setup-editor{max-height:calc(100dvh - 32px)}}
.protocol-option.protocol-installed{border-color:var(--greenline);background:var(--greensoft)}.protocol-option.protocol-installed .protocol-symbol,.protocol-option.protocol-installed small{color:var(--green)}.protocol-option.protocol-unavailable{opacity:.55;background:var(--subtle);cursor:not-allowed}.protocol-option.protocol-unavailable:hover{transform:none;border-color:var(--line)}
.user-device-chip{display:flex;flex-direction:column;gap:7px;padding:11px 14px;border:1px solid var(--line);border-radius:12px;background:var(--subtle)}.user-device-chip.live{border-color:var(--greenline);background:var(--greensoft)}.device-chip-name{display:flex;align-items:center;gap:8px;font-size:14px}.device-chip-name svg{width:19px;height:19px}.device-chip-name strong{font-weight:600}.user-device-chip.live .device-chip-name{color:var(--green)}.device-chip-protocols{display:flex;flex-wrap:wrap;gap:9px;font-size:12px;color:var(--muted)}.device-chip-protocols .live{color:var(--green);font-weight:600}.connection-title>strong{font-size:18px}.connection-name>strong{font-size:14px;font-weight:600}

.setup-check{display:flex;align-items:center;gap:10px}.setup-check input{width:16px;height:16px}.setup-editor input[type=file]{padding:12px;background:var(--subtle)}

/* Keep device identities and protocol badges inside the Compass catalog. */
.compass-workspace,.compass-detail,.compass-catalog{min-width:0}
.compass-user{max-width:100%;min-width:0}
.compass-user>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
.compass-user .compass-protocols{display:flex;flex-direction:column;gap:10px;min-width:0;max-width:100%}
.compass-user .device-chip-name{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;max-width:100%}
.compass-user .device-chip-name>strong{flex:1 1 calc(100% - 34px);min-width:0;overflow-wrap:anywhere}
.compass-user .protocol-pill{max-width:100%;white-space:normal}

.custom-avatar{width:100%;height:100%;object-fit:cover;border-radius:inherit}.device-chip-name .custom-avatar{width:22px;height:22px;border-radius:6px}.avatar-upload{display:flex;flex-direction:column;gap:8px;margin-top:20px}.avatar-preview{width:64px;height:64px;border-radius:16px;margin:12px 0}

.server-icon-country{display:inline-flex;align-items:center;gap:12px}.country-flag{display:inline-flex;font-size:25px;line-height:1}.country-flag svg{width:30px;height:18px;border-radius:3px;box-shadow:0 0 0 1px var(--line)}.country-local{font-size:11px;color:var(--muted);padding:4px 6px;border:1px solid var(--line);border-radius:5px}
