/* V0.9 路径按内容占宽；小屋工作空间与 CCTV 弹窗。 */
.page-path-row{display:inline-flex;width:max-content;max-width:100%;vertical-align:top}
.path-page-actions{display:inline-flex;align-items:center;flex-shrink:0;gap:8px}
.path-page-actions .btn{padding:5px 11px;font-size:11px}
.tree-shelter-link{border:0;background:transparent;padding:0;color:var(--brand);font-size:12px;font-weight:600;text-align:left}
.tree-shelter-link:hover{text-decoration:underline}
.shelter-card-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:12px;margin-top:4px;border-top:1px solid var(--line);flex-wrap:wrap}
.shelter-card-actions .link-btn{font-size:11px}
.shelter-card-actions .btn{font-size:10px;padding:3px 9px}
.shelter-detail-panel .detail-body{min-height:330px}
.shelter-environment{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:8px 0 20px}
.shelter-environment>div{display:flex;flex-direction:column;gap:4px;border:1px solid #e1edef;background:#f6fafb;padding:17px;border-radius:8px}
.shelter-environment .icon{color:var(--brand);width:20px;height:20px}
.shelter-environment strong{font-size:26px;font-weight:600;color:#416b7b}
.shelter-environment small,.shelter-environment span{font-size:11px;font-weight:400;color:var(--muted)}
.preprocess-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.preprocess-unit{min-width:0}
.preprocess-unit>.between{flex-wrap:wrap;gap:7px}
.preprocess-parameters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px}
.preprocess-parameter{display:flex;flex-direction:column;gap:4px;padding:13px;border:1px solid #e5edef;border-radius:7px;background:#f9fcfc;min-width:0}
.preprocess-parameter>span{font-size:11px;color:#7894a0}
.preprocess-parameter strong{font-size:24px;color:#3c7785;font-weight:600}
.preprocess-parameter small{font-size:10px;font-weight:400;color:#8aa0aa}
.preprocess-parameter.abnormal{background:#fff9ee;border-color:#edd9ac}
.preprocess-parameter.abnormal strong{color:#b78327}
.shelter-empty{padding:35px 20px;text-align:center;font-size:12px;color:var(--muted)}
.shelter-detail-panel .detail-body>.between{flex-wrap:wrap;gap:12px}
.modal.wide.cctv-modal{width:min(1080px,100%);max-height:calc(100dvh - 40px)}
.cctv-modal .modal-body{padding:20px}
.cctv-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px;color:#6a8898;font-size:12px}
.cctv-toolbar select{border:1px solid #dce6eb;border-radius:6px;padding:7px 10px;max-width:100%;background:white;color:var(--ink);font-size:12px}
.cctv-toolbar>.status{margin-left:auto}
.cctv-stage{position:relative;aspect-ratio:16/9;background:#102327;border-radius:8px;overflow:hidden}
.cctv-demo,.cctv-demo svg{display:block;width:100%;height:100%}
.cctv-stage video{width:100%;height:100%;display:block;object-fit:contain}
.cctv-error{position:absolute;inset:0;align-content:center;text-align:center;color:#cbdde2;font-size:13px;padding:30px;pointer-events:none;background:#13262be6}
.cctv-caption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px;font-size:11px;color:var(--muted)}
@media(max-width:1050px){.preprocess-grid{grid-template-columns:1fr}}
@media(max-width:780px){.path-page-actions .btn{padding:4px 7px;font-size:10px;gap:4px}.path-page-actions .icon{width:13px;height:13px}.tree-shelter-link{font-size:11px}.shelter-card-actions{gap:7px}.shelter-card-actions .link-btn{font-size:10px}.shelter-card-actions .btn{padding-inline:5px}.shelter-environment{gap:10px}.shelter-environment>div{padding:12px}.shelter-environment strong{font-size:23px}.preprocess-parameters{gap:8px}.preprocess-parameter{padding:10px}.preprocess-parameter strong{font-size:22px}.cctv-modal{max-height:calc(100dvh - 28px)}.cctv-modal .modal-body{padding:14px}.cctv-toolbar{gap:8px;font-size:11px}.cctv-toolbar select{font-size:11px}.cctv-caption{font-size:10px}.cctv-error{font-size:11px}}
