.siprec-admin {padding: 4px 18px 18px; min-width: 0;}
.siprec-panel-nav {display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.siprec-panel-nav > a {font-size:.85rem;}
.siprec-admin .segmented-tabs {margin: 0 0 12px;}
.siprec-picker {display:grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:12px;}
.siprec-admin .field-help {margin: 0 0 12px;}
.siprec-picker select {text-overflow: ellipsis;}
.siprec-count {margin:12px 0 6px; font-size:12px;}
.siprec-record {margin:8px 0; background:var(--surface); border:1px solid var(--line); border-radius:10px; overflow:hidden;}
.siprec-record > summary,.siprec-device-head {display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px;}
.siprec-record summary {cursor:pointer;overflow-wrap:anywhere;}
.siprec-record summary:focus-visible {outline:2px solid var(--primary);outline-offset:-2px;}
.siprec-record > summary::before {content:'›'; color:var(--primary); font-size:1.25rem; font-weight:700;}
.siprec-record[open] > summary::before {transform:rotate(90deg);}
.siprec-record > summary > span:first-of-type {flex:1;}
.siprec-record small {display:block; color:var(--muted); font-size:.83rem; margin-top:3px;}
.siprec-admin .badge {white-space:normal;}
.siprec-body {border-top:1px solid var(--line); padding:14px;}
.siprec-facts {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:12px; margin:8px 0 16px;}
.siprec-facts dt {color:var(--muted); font-size:.8rem;}
.siprec-facts dd {margin:3px 0 0; overflow-wrap:anywhere;}
.siprec-links {display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:.85rem; margin:0 0 12px;}
.siprec-body > details {padding:8px 0; margin-bottom:8px;}
.siprec-state {color:var(--muted); font-size:.83rem;}
.siprec-history {border-top:1px solid var(--line); margin-top:15px; padding-top:10px;}
.siprec-history h4 {margin:0 0 6px;}
.siprec-test {padding:10px; background:var(--surface-alt); border-radius:7px; margin:5px 0;}
.siprec-test summary {font-size:.9rem;}
.siprec-test .siprec-facts {margin-top:12px;}
.siprec-stages {list-style:none; padding:0; margin:12px 0; display:grid; gap:8px;}
.siprec-stages li {display:flex; gap:10px; align-items:baseline; border-inline-start:2px solid var(--teal); padding-inline-start:8px; overflow-wrap:anywhere;}
.siprec-stages time {font-size:.8rem; color:var(--muted); flex:0 0 auto;}
.siprec-dialog {width:min(640px,calc(100vw - 24px)); max-height:90dvh; padding:0; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--text); box-shadow:0 20px 72px #07172840;}
.siprec-dialog::backdrop {background:#07172880;}
.siprec-dialog form {max-height:88dvh; display:flex; flex-direction:column;}
.siprec-dialog .modal-heading,.siprec-dialog footer {padding:16px 20px;}
.siprec-edit-body {min-height:0; overflow:auto; padding:16px 20px;}
.siprec-edit-body p {margin-bottom:12px;}
.siprec-edit-body fieldset {border:1px solid var(--line); border-radius:8px; min-width:0;}
.siprec-edit-body fieldset label {display:inline-flex; margin:2px 4px;}
.siprec-dialog .message {margin:0 20px;}
.siprec-dialog footer {display:flex; justify-content:end; gap:8px; border-top:1px solid var(--line);}
@media(max-width:600px){.siprec-record > summary,.siprec-device-head,.siprec-stages li{flex-wrap:wrap;}.siprec-admin{padding-inline:8px;}}
