/* Report composition and file management, v1.5. */
.report-card .report-actions{grid-column:1/-1}
.report-manage-actions{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:12px;margin-top:12px;grid-column:1/-1}
.report-manage-actions .btn{min-height:44px;flex:1;font-size:14px}
.report-selection{margin-top:18px;min-width:0}
.report-selection-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.report-selection-tools .btn{min-height:44px;font-size:13px;flex:1 1 130px}
.report-selection>input{width:100%;min-width:0;min-height:48px}
.report-selection-note{font-size:13px;color:var(--muted);line-height:1.5;margin:12px 0}
.report-selection-note:empty{display:none}
.report-selection-list{display:grid;gap:14px;margin-top:14px}
.report-selection-finding{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden;min-width:0}
.report-selection-finding.is-selected{border-color:color-mix(in srgb,var(--lime) 40%,var(--line))}
.report-selection-heading{display:flex;align-items:flex-start;gap:11px;cursor:pointer;min-height:60px;padding:15px;color:var(--text);background:var(--bg)}
.report-selection-heading>input{width:23px;height:23px;min-width:23px;min-height:23px;margin-top:1px;accent-color:var(--lime);flex:0 0 23px}
.report-selection-heading>span:nth-child(2){min-width:0;flex:1}
.report-selection-heading strong{display:block;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.report-selection-heading small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.report-selection-count{font-size:11px;line-height:1.5;text-align:right;color:var(--muted);white-space:nowrap}
.report-photo-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px}
.report-photo-choice{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:2px solid var(--line);border-radius:11px;background:var(--bg);cursor:pointer}
.report-photo-choice.is-selected{border-color:var(--lime)}
.report-photo-choice.is-unavailable{opacity:.55;cursor:default}
.report-photo-image{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--surface)}
.report-photo-image img{display:block;width:100%;height:100%;object-fit:cover}
.report-photo-image input[type=checkbox]{position:absolute;top:8px;left:8px;width:24px;height:24px;margin:0;accent-color:var(--lime);box-shadow:0 0 0 3px #00000099;cursor:pointer}
.report-photo-choice>span{font-size:13px;font-weight:700;padding:8px 9px 0;line-height:1.4}
.report-photo-choice>small{display:block;font-size:11px;line-height:1.45;padding:3px 9px 10px;color:var(--muted);overflow-wrap:anywhere}
.report-selection-finding>.field-hint{padding:10px 15px;margin:0}
.report-selection-empty{padding:16px;font-size:14px;line-height:1.5;color:var(--muted);border:1px dashed var(--line);border-radius:12px}
.report-selection>.btn{margin-top:14px;width:100%}
.report-selection [hidden]{display:none!important}
.report-photo-choice:focus-within,.report-selection-heading:focus-within{outline:2px solid var(--lime);outline-offset:2px}
@media(max-width:600px){
 .report-photo-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:10px}
 .report-selection-heading{padding:13px 11px;gap:9px;flex-wrap:wrap}
 .report-selection-heading>span:nth-child(2){flex-basis:calc(100% - 35px)}
 .report-selection-count{margin-left:32px;text-align:left}
 .report-selection-tools .btn{flex-basis:calc(50% - 8px);min-width:0;padding:9px 10px;font-size:12px}
 .report-manage-actions{gap:8px}
 .report-manage-actions .btn{min-width:0;font-size:13px}
}
/* A report's name is the first choice and the primary label in its library. */
.report-name-step .field > label { font-size: 17px; font-weight: 700; }
.report-name-step input { font-size: 17px; font-weight: 600; }
.report-filename-hint { margin-top: 9px; overflow-wrap: anywhere; }
.report-filename-preview { color: var(--text); font-weight: 550; }
.report-card > h3 { font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.report-card .report-file-label { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.report-modal .layout-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.report-customization>.stack{padding-top:18px}.report-frame-controls{display:grid;gap:14px}.report-frame-controls input[type=color]{height:48px;width:100%;padding:5px;min-width:0}.report-frame-width{display:flex;align-items:center;gap:16px}.report-frame-width>.field{flex:1;min-width:0}.report-frame-width output{min-width:45px;font-weight:700}.report-frame-width input[type=range]{padding:0;min-height:44px;width:100%}.report-style-sample{--report-preview-accent:#B8FF00;--report-preview-border:1px;--report-preview-frame:#B8FF00;position:relative;padding:18px;background:#fff;color:#111111;border:1px solid #d4d4d4;border-radius:12px;overflow:hidden}.report-style-rule{display:block;width:42px;height:4px;background:var(--report-preview-accent);margin-bottom:12px}.report-style-sample strong{font-size:17px}.report-style-sample p{font-size:13px;color:#525252;margin:6px 0 14px}.report-style-photo{height:80px;display:flex;align-items:center;justify-content:center;border:var(--report-preview-border) solid var(--report-preview-frame);background:#ffffff;color:#525252;font-size:13px}.report-style-sample[data-text-size=large] p{font-size:16px}.report-style-sample[data-text-size=compact] p{font-size:11px}.report-text-blocks{display:flex;flex-direction:column;gap:14px}.report-text-block{display:grid;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}.report-text-block-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}.report-text-block-head>div{display:flex;gap:5px;flex-wrap:wrap}.report-text-block .btn{min-height:40px;font-size:12px}.report-saved-styles{border-top:1px solid var(--line);padding-top:16px}.report-saved-styles>summary{cursor:pointer;font-weight:650;min-height:44px}.report-saved-styles>.stack{margin-top:12px}.report-style-actions{display:flex;gap:8px;flex-wrap:wrap}.report-style-actions .btn{flex:1}.report-evidence-actions .btn{min-width:0;white-space:normal}.report-sort-control{width:auto;min-width:170px;max-width:100%;min-height:44px}
@media(max-width:600px){.report-modal .layout-options{grid-template-columns:repeat(2,minmax(0,1fr))}.report-modal .layout-option{padding:13px 10px}.report-modal .layout-option strong{font-size:15px}.report-modal .layout-option small{font-size:12px}.report-customization .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-text-block-head>div{width:100%}.report-text-block-head .btn{flex:1}.report-style-actions .btn{white-space:normal;min-width:0}.report-evidence-actions{flex-wrap:wrap}.report-evidence-actions .btn{flex:1 1 30%;font-size:13px;padding:10px 7px}.report-sort-control{flex:1}}

.report-settings-style{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:12px}.report-settings-style>div{min-width:0}.report-settings-style strong{display:block;overflow-wrap:anywhere}.report-settings-style small{display:block;color:var(--muted);margin-top:4px}
