/* Settings at every level (platform, customer, location, device): grouped rows with an info hover (D-119). */
.set-page{display:grid;gap:22px;max-width:1180px}
.set-summary{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;padding-bottom:4px}
.set-summary h2{font-size:18px;margin:0 0 4px;letter-spacing:-.01em}
.set-summary p{margin:0;color:var(--muted);font-size:13px;max-width:640px;line-height:1.5}
.set-count{font-size:12px;color:var(--muted);border:1px solid var(--line);background:white;border-radius:999px;padding:5px 12px;white-space:nowrap}
.set-count.has-own{color:var(--green);border-color:#b9ddd5;background:#eef8f5;font-weight:600}

.set-group{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;align-items:start;padding-top:22px;border-top:1px solid var(--line)}
.set-summary + .set-group{border-top:0;padding-top:0}
.set-group-head h2{font-size:14px;margin:2px 0 6px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.set-group-head p{margin:0;font-size:12.5px;line-height:1.55;color:var(--muted)}
.set-tag{font-size:10.5px;font-weight:600;color:#8a5a00;background:#fff4dc;border:1px solid #f1d9a4;border-radius:999px;padding:1px 8px}
.set-group.is-inactive .set-card{opacity:.72}

.set-card{background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 1px 2px #192c3e0a}
.set-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,220px) 128px;gap:16px;align-items:center;padding:13px 16px 13px 18px;position:relative}
.set-row + .set-row{border-top:1px solid #edf1f4}
.set-row.is-own::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--green)}
.set-label{min-width:0}
.set-name{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--ink)}
.set-label p{margin:3px 0 0;font-size:12px;color:var(--muted);line-height:1.45}
.set-value{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.set-value > strong{font-size:14px;font-weight:600;color:var(--ink);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.set-measure strong{font-size:15px;font-variant-numeric:tabular-nums}
.set-measure small{font-size:12px;font-weight:500;color:var(--muted);margin-left:4px}
.set-measure small.tight{margin-left:1px}
.set-name-value{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.set-source{font-size:11px;line-height:1;padding:3px 7px;border-radius:999px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;text-decoration:none}
.set-source.own{background:#e6f4f0;color:#06705f;font-weight:600}
.set-source.inherited{background:#eef2f6;color:#4b5d70}
a.set-source.inherited:hover{background:#e2e9f0;color:var(--ink)}
.set-source.default{color:#8091a1;padding-left:0}
.set-actions{display:flex;justify-content:flex-end;align-items:center;gap:4px}
.set-actions form{display:contents}
.set-edit{font-size:12px;padding:6px 12px;border-radius:7px;min-width:78px}
.set-reset,.set-reset-slot{width:30px;height:30px;flex-shrink:0}
.set-reset{display:inline-grid;place-items:center;padding:0;border-radius:7px;border-color:transparent;background:transparent;color:var(--muted)}
.set-reset:hover{background:#f1f4f7;color:var(--ink)}
.set-reset svg{width:16px;height:16px}

.info-tip{position:relative;display:inline-flex}
.info-tip-button{display:inline-grid;place-items:center;width:18px;height:18px;padding:0;border:0;background:none;color:#9aa8b6;border-radius:50%;cursor:help}
.info-tip-button svg{width:15px;height:15px}
.info-tip-button:hover,.info-tip-button:focus-visible{color:var(--green)}
.info-tip-button:focus-visible{outline:2px solid #8dc8bb;outline-offset:1px}
.info-tip-text{position:absolute;z-index:30;left:-10px;bottom:calc(100% + 8px);width:max-content;max-width:300px;padding:9px 11px;border-radius:7px;background:#192c3e;color:white;font-size:12px;font-weight:400;line-height:1.5;box-shadow:0 8px 24px #142c3633;display:none;pointer-events:none;white-space:normal}
.info-tip-text::after{content:"";position:absolute;left:14px;top:100%;border:6px solid transparent;border-top-color:#192c3e}
.info-tip:hover .info-tip-text,.info-tip:focus-within .info-tip-text{display:block;animation:info-tip-in .12s ease-out}
@keyframes info-tip-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}

.set-frame-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 22px}
.set-frame-head .config-sections{margin:0}
.set-frame-head .config-sections button{font-size:12px;padding:7px 13px}
.set-chain{margin:0;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.set-chain strong{color:#3f5167;font-weight:600}
.set-chain i{font-style:normal;color:#a8b5c1}

.set-dialog .set-dialog-help{margin:-6px 0 0;font-size:13px;line-height:1.55;color:#3f5167}
.set-dialog .set-dialog-current{margin:0;font-size:12.5px;color:var(--muted)}
.set-dialog .set-dialog-current strong{color:var(--ink)}
.set-dialog .set-dialog-note{margin:0;font-size:12px;color:var(--muted);background:#f5f7f9;border-radius:7px;padding:9px 11px}
.set-number span{display:flex;align-items:center;gap:8px}
.set-number input{max-width:160px}
.set-number em{font-style:normal;font-weight:400;color:var(--muted);font-size:13px}

@media (max-width:900px){
  .set-group{grid-template-columns:1fr;gap:12px}
}
@media (max-width:620px){
  .set-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:12px 14px}
  .set-value{grid-column:1;flex-direction:row;align-items:center;gap:8px}
  .set-actions{grid-column:2;grid-row:1 / span 2}
  .set-edit{min-width:0}
  .set-reset-slot{display:none}
  .info-tip-text{max-width:min(300px,calc(100vw - 48px))}
}
