/* R1K: recorder inventory, declared capacities, and camera associations. */
.recorder-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;flex:1;min-height:0;align-items:start}
.recorder-inventory{display:flex;flex-direction:column;min-height:0;max-height:100%;align-self:start}
.recorder-inventory>.panel-head,.recorder-plan>.panel-head{padding:12px 15px;min-height:50px;flex-shrink:0}
.recorder-inventory .code-chip{margin-left:2px}
.recorder-inventory-scroll{overflow:auto;min-height:0;padding:14px;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin;scrollbar-color:#a7bdd9 transparent}
.recorder-card{border:1px solid var(--line);border-radius:9px;background:#fff;flex-shrink:0;overflow:hidden}
.recorder-card>header{display:flex;align-items:center;gap:11px;padding:13px 14px;background:#f8faff;border-bottom:1px solid var(--line)}
.recorder-device-icon{width:36px;height:36px;display:grid;place-items:center;background:#18283b;color:#eaf2ff;border-radius:8px;flex-shrink:0}
.recorder-device-icon .icon{width:19px;height:19px}
.recorder-device-name{min-width:0;flex:1}
.recorder-device-name h3{font-size:.9375rem;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.recorder-device-name p{font-size:.75rem;line-height:1.35;margin-top:4px;color:var(--muted);overflow-wrap:anywhere}
.recorder-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}
.recorder-actions .icon-button,.recorder-plan>.panel-head .icon-button{height:30px;width:30px;border-radius:7px}
.recorder-actions .icon{width:17px;height:17px}
.recorder-link{text-decoration:none;color:var(--brand);background:#fff}
.recorder-link:hover{background:var(--brand-soft)}
.recorder-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px}
.recorder-metrics>div{min-width:0}
.recorder-metrics span{display:block;font-size:.75rem;color:var(--muted);line-height:1.35}
.recorder-metrics strong{display:block;font-size:.875rem;line-height:1.3;font-weight:600;color:#18283b;margin-top:5px;overflow-wrap:anywhere}
.recorder-assignment-budget{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:0 14px 12px;font-size:.75rem;line-height:1.5;color:#5c6b80}
.recorder-assignment-budget .pill{font-size:.6875rem}
.recorder-card>footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:9px 14px;border-top:1px solid var(--line);background:#fbfcfe}
.recorder-card>footer>span:last-child:not(.pill){font-size:.75rem;color:var(--muted)}
.recorder-card>footer .pill{font-size:.6875rem;white-space:normal;line-height:1.25}
.recorder-inventory-foot{display:flex;gap:8px;align-items:center;flex-shrink:0;padding:11px 15px;border-top:1px solid var(--line);color:#5c6b80;font-size:.8125rem}
.recorder-inventory-foot .icon{width:16px;height:16px}
.recorder-empty{min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px 22px;color:var(--muted)}
.recorder-empty>.icon{width:38px;height:38px;color:#415b7e;margin-bottom:17px}
.recorder-empty h3{font-size:1rem;color:#18283b;margin-bottom:8px}
.recorder-empty p{font-size:.875rem;line-height:1.6;max-width:350px}
.recorder-empty .button{margin-top:20px}
.recorder-plan{min-width:0;max-height:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#a7bdd9 transparent}
.recorder-plan-body{padding:14px 16px}
.recorder-plan-target{display:flex;gap:12px;align-items:center}
.recorder-plan-target>strong{font-size:2rem;line-height:1;font-weight:650;color:#18283b;letter-spacing:-.04em}
.recorder-plan-target>div>span{font-size:.875rem;color:#18283b;font-weight:500}
.recorder-plan-target p{font-size:.75rem;color:var(--muted);margin-top:5px;line-height:1.4}
.recorder-plan-source{font-size:.75rem;color:var(--muted);line-height:1.5;margin:10px 0 4px}
.recorder-comparison{padding:12px 0;border-bottom:1px solid var(--line)}
.recorder-comparison h3{font-size:.875rem;font-weight:550;color:#18283b;margin-bottom:8px}
.recorder-comparison-values{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.recorder-comparison-values span{display:block;font-size:.75rem;line-height:1.3;color:var(--muted)}
.recorder-comparison-values strong{display:block;font-size:.9375rem;line-height:1.4;font-weight:600;margin-top:3px;color:#18283b;overflow-wrap:anywhere}
.recorder-comparison>p{font-size:.75rem;line-height:1.4;color:#5c6b80;margin-top:6px}
.recorder-comparison.short>p{color:#805a12}
.recorder-comparison.pending>p{color:#805a12}
.recorder-plan-assumptions{font-size:.75rem;line-height:1.5;color:var(--muted);padding-top:11px}
.recorder-disclaimer{display:flex;align-items:flex-start;gap:8px;flex-shrink:0;font-size:.75rem;line-height:1.5;color:#a7bdd9}
.recorder-disclaimer>.icon{width:15px;height:15px;margin-top:1px}
.recorder-restricted{padding:0 14px 12px;font-size:.75rem;line-height:1.5;color:var(--muted)}
.recorder-form-estimate{font-size:.8125rem;line-height:1.5;color:#5c6b80;padding:11px 13px;background:#f5f7fc;border:1px solid var(--line);border-radius:7px;margin-top:15px}
.recorder-detail>.recorder-metrics{padding:16px 0}
.recorder-detail>.recorder-assignment-budget,.recorder-detail>.recorder-restricted{padding-left:0;padding-right:0}
.recorder-linked,.recorder-access-detail{border-top:1px solid var(--line);padding-top:14px;margin-top:13px}
.recorder-linked h3,.recorder-access-detail h3{font-size:.875rem;font-weight:600;margin-bottom:9px}
.recorder-linked ul{margin:0;padding:0;list-style:none;max-height:180px;overflow:auto}
.recorder-linked li{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid var(--line);font-size:.8125rem;line-height:1.4}
.recorder-linked li:last-child{border-bottom:0}
.recorder-linked li>span:first-child{min-width:0;overflow-wrap:anywhere}
.recorder-linked li>span:last-child{color:var(--muted);white-space:nowrap;flex-shrink:0}
.recorder-linked p,.recorder-access-detail p{font-size:.8125rem;color:var(--muted);line-height:1.5}
.recorder-access-detail>div{display:flex;align-items:center;gap:11px;margin-bottom:8px}
.recorder-access-detail>div>span{font-size:.8125rem;line-height:1.5;overflow-wrap:anywhere;min-width:0}
.recorder-detail-notes{white-space:pre-wrap;padding-top:14px}
.recorder-detail-note{font-size:.75rem;line-height:1.5;color:var(--muted);margin-top:16px}
@media(max-width:1150px){.recorder-layout{grid-template-columns:minmax(0,1fr) 290px;gap:14px}.recorder-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}.recorder-device-icon{display:none}}
@media(max-width:900px){.recorder-layout{grid-template-columns:1fr;flex:none}.recorder-inventory,.recorder-plan{max-height:none;overflow:visible}.recorder-inventory-scroll{overflow:visible}.recorder-plan-body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px}.recorder-plan-target,.recorder-plan-source,.recorder-plan-assumptions{grid-column:1/-1}.recorder-device-icon{display:grid}.recorder-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.recorder-card>header{padding:12px;gap:8px}.recorder-device-icon{display:none}.recorder-actions{gap:4px}.recorder-actions .icon-button{width:28px;height:30px}.recorder-device-name h3{font-size:.875rem}.recorder-metrics{grid-template-columns:repeat(2,minmax(0,1fr));padding:13px;gap:13px}.recorder-inventory-scroll{padding:10px}.recorder-plan-body{display:block}.recorder-plan-target{display:flex}.recorder-disclaimer{font-size:.75rem}.recorder-detail>.recorder-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
