/* Compact inspection rows keep evidence and the full timeline one click away. */
.compact-violation{padding:0!important;scroll-margin-top:20px}.violation-overview{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:20px;align-items:center;padding:18px 22px}.violation-copy{min-width:0}.violation-labels{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:7px}.violation-labels>span:first-child{font-size:11px;color:#6c818a;margin-right:3px}.violation-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;border:0;background:none;text-align:left;padding:0;font-size:13px;font-weight:600;line-height:1.55;max-width:100%;color:#24404a;overflow-wrap:anywhere}.violation-title:hover{color:var(--accent)}.violation-copy .task-meta{margin-top:8px;font-size:10px;gap:7px 14px}.violation-preview{display:flex;gap:5px;align-items:center}.compact-photo{width:49px!important;height:49px!important;border-radius:7px!important;flex:none}.photo-more{width:44px;height:49px;border:1px solid #cfe0e5;background:#f0f7f7;border-radius:7px;color:var(--accent);font-weight:600;font-size:13px}.violation-tools{display:flex;gap:8px;align-items:center}.violation-tools .icon-btn{width:31px;height:32px;border:0;background:transparent}.violation-tools .icon-btn .icon{width:16px}.violation-tools .btn{font-size:11px;min-height:33px}.violation-tools .btn .icon{width:15px}.violation-expanded{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:28px;background:#fbfdfd;padding:22px;border-top:1px solid #e5eeee}.violation-work{min-width:0}.violation-work>.violation-actions{margin:0 0 16px;gap:8px}.violation-work .remedy-note{margin:0 0 19px;font-size:12px;overflow-wrap:anywhere}.violation-work>.field-help{display:block;margin-top:16px}.evidence-groups{display:grid;gap:22px}.evidence-groups h4{font:600 12px Arial,sans-serif;letter-spacing:0}.evidence-groups h4 span{font-size:10px;font-weight:400;margin-left:7px;color:#7e949b}.evidence-groups .photo-grid{margin-top:10px;gap:8px}.evidence-groups .photo-thumb{width:85px;height:68px}.evidence-groups .photo-thumb span{font-size:8px}.violation-timeline{min-width:0;padding-left:25px;border-left:1px solid #e0eaea}.violation-timeline>h4{font-size:16px;margin-bottom:20px}.history-list{padding:0;margin:0;list-style:none}.history-list>li{display:grid;grid-template-columns:26px minmax(0,1fr);gap:11px;position:relative;padding-bottom:23px}.history-list>li:not(:last-child):before{content:'';position:absolute;left:12px;top:27px;bottom:1px;width:1px;background:#dbe8e9}.history-dot{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#eaf3f1;color:#5f8f81}.history-dot .icon{width:14px;height:14px}.history-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}.history-head strong{font-size:12px;line-height:1.55;color:#34555f}.history-head time{font-size:9px;color:#70878f;white-space:nowrap}.history-actor{font-size:10px;color:#768a92;margin-top:3px}.history-comment{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:#425c66;background:white;border:1px solid #e2ebec;border-radius:7px;padding:10px 12px;margin-top:10px}.history-caption{font-size:10px;color:#799099;border-top:1px solid var(--line);padding-top:12px;line-height:1.7}.history-legacy{font-size:11px;color:#71858e;margin-top:6px;overflow-wrap:anywhere;white-space:pre-wrap}.history-changes{font-size:11px;color:#52717a;margin-top:8px}.history-changes summary{cursor:pointer;color:var(--accent);font-size:10px}.history-changes>div{padding-top:9px;display:grid;gap:4px;overflow-wrap:anywhere}.history-changes strong{font-size:10px}.history-changes del{color:#917169;text-decoration-color:#bcaaa3;font-size:10px;white-space:pre-wrap}.history-changes>div>span{font-size:11px;white-space:pre-wrap}.history-photos{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:10px}.history-photos small{color:#83969c;font-size:9px}.history-photos .compact-photo{width:38px!important;height:38px!important}.upload-field .upload-preview{display:flex;text-align:left;gap:9px}.queued-photo{position:relative;display:block;width:80px}.queued-photo img{width:80px;height:65px;border-radius:6px;object-fit:cover}.queued-photo>button{position:absolute;right:3px;top:3px;width:23px;height:23px;display:grid;place-items:center;border:0;border-radius:50%;background:white;color:#314f59;box-shadow:0 2px 8px #1c30372b}.queued-photo>button .icon{width:13px;height:13px}.queued-photo>small{display:block;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400;margin-top:3px}.queue-note{flex-basis:100%;font-size:10px;color:#607e89;font-weight:400;line-height:1.6}.gallery-controls{display:flex;align-items:center;justify-content:center;gap:18px;padding:14px 0 4px;font-size:12px;color:#53757d}.photo-viewer .gallery-controls>button{position:static;width:34px;height:34px}.photo-viewer #full-photo{max-height:77dvh}.site-card-v2{padding:22px}.site-card-v2>header{display:flex;align-items:center;gap:15px}.site-logo{width:65px;height:65px;border:1px solid #e1ecee;border-radius:12px;overflow:hidden;display:grid;place-items:center;background:#eff6f6;color:var(--accent);flex:none}.site-logo img{width:100%;height:100%;object-fit:cover}.site-logo .icon{width:28px;height:28px}.site-card-v2 header small{display:block;font-size:10px;color:#749099;margin-top:8px}.site-card-v2>h2{font-size:21px;margin:18px 0 9px}.site-card-v2>p{min-height:0;font-size:12px}.site-address{font-size:11px;color:#7d9299;display:block;margin-top:8px;min-height:35px}.site-logo-upload{display:flex;gap:18px;align-items:center;padding:17px;background:#f4f8f9;border:1px solid #dfe9ec;border-radius:9px}.site-logo-upload>img{width:85px;height:85px;object-fit:cover;border:1px solid #dce8eb;border-radius:9px;background:white;flex:none}.site-logo-upload>label{min-width:0;flex:1}.site-logo-upload input{font-size:11px}.coordinate-fields{margin-top:17px}.map-actions{display:flex;align-items:center;gap:20px;margin-top:15px;flex-wrap:wrap}.map-actions .text-link{font-size:11px}.site-map{height:320px;width:100%;margin-top:16px;background:#eef4f6;border:1px solid #d5e4e8;border-radius:9px;overflow:hidden}.map-message{margin-top:12px;font-size:11px}.company-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.company-card{padding:24px;display:flex;flex-direction:column;justify-content:space-between;gap:25px}.company-card h2{font-size:22px;margin:15px 0 12px;overflow-wrap:anywhere}.company-card p{font-size:12px;color:#66818a}.company-card small{font-size:11px;color:#80939a;display:block;margin-top:8px}.company-card footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:17px}.company-card .text-link{font-size:12px}.company-card .icon-btn{width:32px;height:32px}.company-lookup{padding:16px;background:#f4f9f9;border:1px solid #dfebed;border-radius:9px}.company-lookup>.btn{margin-top:13px}.lookup-results{font-size:11px;color:#587981;line-height:1.65;margin-top:10px}.lookup-results:empty{margin:0}.lookup-choice{display:block;width:100%;text-align:left;padding:11px 12px;border:1px solid #d5e4e7;border-radius:7px;background:white;margin-top:8px}.lookup-choice:hover{background:#eaf6f5;border-color:#a6cccd}.lookup-choice strong{font-size:12px;display:block;line-height:1.5}.lookup-choice small{font-size:10px;color:#6c8790;line-height:1.5}.admin-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:23px;align-items:start;margin-bottom:25px}.admin-settings,.integration-help{padding:26px}.admin-grid h2{font-size:23px;margin-bottom:23px}.admin-settings dl{margin:0 0 24px}.admin-settings dl>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid var(--line)}.admin-settings dt{font-size:12px;color:#607b84}.admin-settings dd{font-size:12px;margin:0;font-weight:600}.integration-help details{font-size:12px}.integration-help summary{font-weight:600;cursor:pointer;padding:12px 0}.integration-help details+details{border-top:1px solid var(--line);margin-top:13px}.integration-help ol{padding-left:19px;color:#5c7983;line-height:1.8}.integration-help li{margin-top:7px}.integration-help a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.integration-help p{font-size:11px;line-height:1.75}.admin-users .table-wrap{max-height:650px}.admin-users td{font-size:12px}.admin-users td small{max-width:300px;white-space:normal;overflow-wrap:anywhere}.admin-users th{position:sticky;top:0;background:#f7fafb;z-index:1}.registration-closed{padding:20px;background:#eff7f7;border-radius:10px}.registration-closed h3{font-size:23px}.registration-closed p{margin:15px 0 20px;font-size:13px}.auth-panel .field-grid{gap:12px}.auth-panel .company-lookup{padding:14px}.sidebar nav{gap:3px}.sidebar nav a{padding-block:10px}.sidebar-help{display:none}.violation-full-description{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:17px;color:#4a6670}
@media(max-width:1200px){.violation-overview{gap:14px}.violation-preview .compact-photo:nth-child(n+3){display:none}.violation-expanded{gap:20px;grid-template-columns:minmax(0,1fr)}.violation-timeline{border-left:0;border-top:1px solid #e0eaea;padding:20px 0 0}.violation-tools .btn{padding:7px 10px}.violation-preview{max-width:150px}.site-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.violation-overview{grid-template-columns:minmax(0,1fr) auto;padding:16px 18px}.violation-copy{grid-column:1/-1}.violation-preview{min-width:0;max-width:none}.violation-preview:empty{display:none}.violation-tools{justify-self:end;grid-column:2}.violation-expanded{padding:19px}.admin-grid{grid-template-columns:1fr}.company-grid{grid-template-columns:1fr}.site-grid{grid-template-columns:1fr}.history-head{gap:3px 15px}}
@media(max-width:600px){.violation-overview{gap:11px}.violation-title{font-size:12px;line-height:1.6}.violation-copy .task-meta{font-size:10px;gap:5px 10px}.violation-tools .btn{font-size:10px;min-height:32px}.violation-tools .btn .icon{width:13px}.violation-tools .icon-btn{width:25px}.compact-photo{width:38px!important;height:38px!important}.photo-more{width:34px;height:38px;font-size:11px}.violation-preview .compact-photo:nth-child(n+2){display:none}.violation-preview{gap:4px}.violation-work .violation-actions{gap:7px}.violation-work .btn-sm{font-size:10px}.violation-expanded{padding:17px}.history-list>li{gap:8px;grid-template-columns:24px minmax(0,1fr)}.history-head strong{font-size:11px}.history-head time{font-size:9px}.history-comment{font-size:11px;padding:10px}.history-actor{font-size:9px}.site-logo-upload{padding:12px;gap:12px;align-items:flex-start}.site-logo-upload>img{width:59px;height:59px}.site-logo-upload input{font-size:9px;padding:7px;min-height:35px}.site-logo-upload label{font-size:11px}.site-map{height:280px}.map-actions{gap:14px}.map-actions .btn{font-size:10px;white-space:normal}.admin-settings,.integration-help{padding:20px}.admin-grid h2{font-size:23px}.admin-settings dt,.admin-settings dd{font-size:11px}.company-card{padding:20px}.auth-panel .company-lookup .field-grid{grid-template-columns:1fr}.gallery-controls{font-size:11px}.violation-labels .badge{font-size:9px}.violation-labels>span:first-child{font-size:10px}}

.photo-more-1,.photo-more-2{display:none}
@media(min-width:601px) and (max-width:1200px){.photo-more-3{display:none}.photo-more-2{display:block}}
@media(max-width:600px){.photo-more-3,.photo-more-2{display:none}.photo-more-1{display:block}}

.auth-panel{min-width:0}.auth-panel .btn{white-space:normal}.auth-panel input{min-width:0}.skip-link:focus:not(:focus-visible){top:-100px}
.badge.disputed{background:#fff0d9;color:#986000}.badge.cancelled{background:#eef0f3;color:#6d7482}.actionable-violation .violation-overview{padding-bottom:11px}.violation-inline-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:0 22px 15px}.violation-inline-actions:empty{padding-bottom:4px}.violation-inline-actions .btn{font-size:11px;min-height:32px;padding:6px 10px}.violation-inline-actions .icon{width:15px;height:15px}.violation-context{font-size:10px;color:var(--accent);display:block;margin-bottom:6px}.row-state-note{font-size:10px;color:#7b8f96;overflow-wrap:anywhere}.dispute-note{color:#986000}.dispute-button{color:#8d6824}.remediation-date{color:#44826b}.violation-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(640px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--line);padding:0;background:#fff;color:var(--ink);box-shadow:-12px 0 50px #123e4920}.violation-drawer[open]{display:flex;flex-direction:column}.violation-drawer::backdrop{background:#102e396b}.violation-drawer>header{padding:24px;display:flex;align-items:center;gap:15px;justify-content:space-between;border-bottom:1px solid var(--line);flex:none}.violation-drawer>header p{font-size:11px;margin-bottom:7px}.violation-drawer h2{font-size:24px}.violation-drawer>nav{display:flex;gap:20px;padding:0 24px;border-bottom:1px solid var(--line);flex:none}.violation-drawer>nav button{border:0;border-bottom:2px solid transparent;padding:16px 0;background:white;font-size:12px;color:var(--muted)}.violation-drawer>nav button.active{border-bottom-color:var(--accent);color:var(--accent);font-weight:600}.drawer-body{overflow:auto;overscroll-behavior:contain;padding:24px;min-height:0;flex:1}.drawer-description{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);margin-bottom:24px}.drawer-facts{margin:18px 0 22px}.drawer-facts>div{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.drawer-facts dt{color:var(--muted)}.drawer-facts dd{margin:0;text-align:right;overflow-wrap:anywhere;min-width:0}.drawer-facts small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.dispute-summary{padding:16px;border:1px solid #e6d8b8;background:#fffaf1;border-radius:8px;font-size:12px;overflow-wrap:anywhere;margin-bottom:18px}.dispute-summary p{white-space:pre-wrap;margin-top:7px}.dispute-summary strong:not(:first-child){display:block;margin-top:15px}.drawer-body .remedy-note{font-size:12px;margin-bottom:20px;white-space:pre-wrap;overflow-wrap:anywhere}.site-contact-email{font-size:11px;color:var(--accent);display:block;overflow-wrap:anywhere;margin-top:8px}.public-link-panel{padding:16px;border:1px solid var(--line);border-radius:8px;background:#f4f8f8;margin-bottom:16px}.public-link-panel p{font-size:12px;margin-bottom:12px}.public-link-output{display:flex;gap:8px}.public-link-output input{min-width:0;flex:1;font-size:11px}.public-link-output button{flex:none}.public-link-warning{font-size:12px!important;line-height:1.7}.public-link-status{font-size:12px;color:var(--muted);margin-bottom:14px}.public-link-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.public-link-toggle{display:flex!important;flex-direction:row!important;gap:10px;align-items:flex-start;font-size:12px}.public-link-toggle input{width:16px;height:16px;min-height:0;flex:none;margin-top:2px}
@media(max-width:767px){.violation-inline-actions{padding:0 17px 16px;gap:7px}.violation-inline-actions .btn{font-size:10px;padding:7px 9px}.violation-drawer>header,.drawer-body{padding:20px 17px}.violation-drawer>nav{padding:0 17px;gap:17px}.violation-drawer>nav button{font-size:11px}.violation-drawer h2{font-size:22px}.actionable-violation .violation-overview{padding-bottom:12px}.drawer-facts>div{gap:12px}.public-link-output{flex-wrap:wrap}.public-link-output input{flex-basis:100%}}

.company-card-brand{display:flex;align-items:center;gap:15px}.company-logo{width:64px;height:64px;background:#fff}.company-logo img{object-fit:contain}.logo-remove-option{display:flex!important;align-items:flex-start;gap:9px;font-size:12px!important;line-height:1.5}.logo-remove-option input[type=checkbox]{width:16px;height:16px;min-height:16px;flex:none;margin:1px 0 0;accent-color:var(--accent)}.logo-source-note{line-height:1.65;margin-top:0}.site-logo-upload .field-help{display:block;line-height:1.6;margin-top:7px}
.upload-preview .photo-preview-pending{display:grid;place-items:center;box-sizing:border-box;width:100px;min-height:65px;margin:0;padding:6px;border:1px solid #dfe9ec;border-radius:6px;background:#f4f8f9;color:#607e89;font-size:10px;line-height:1.35;font-weight:400;text-align:center;overflow-wrap:anywhere}.queued-photo>.photo-preview-pending{width:80px;padding-top:29px}

/* Persisted violation photos: viewing and deletion are separate controls. */
.saved-photos{display:grid;gap:10px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f8fbfb}.saved-photos-heading{display:grid;gap:4px}.saved-photos-heading strong{font-size:12px}.saved-photos-heading small{font-size:10px;line-height:1.5;color:var(--muted)}.saved-photos-grid{display:flex;flex-wrap:wrap;gap:9px;margin:0}.saved-photo{display:flex;flex-direction:column;gap:4px;min-width:0;width:96px}.saved-photo .photo-thumb{width:100%;height:72px}.saved-photo-delete{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:30px;padding:4px 6px;border:1px solid #ead7d4;border-radius:6px;color:#a63d34;background:white;font-size:10px}.saved-photo-delete .icon{width:14px;height:14px}.saved-photo-delete:hover{background:#fff1ef}.photo-delete-controls{display:grid;justify-items:center;gap:8px;margin-top:8px;max-width:100%}.photo-delete-controls:empty{display:none}.photo-delete-controls .btn{min-height:32px;font-size:11px}.photo-delete-controls .icon{width:15px;height:15px}.photo-delete-confirm{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:space-between;padding:10px 12px;background:#fff7f5;border:1px solid #efd8d1;border-radius:8px;max-width:100%}.photo-delete-confirm p{font-size:12px;line-height:1.5}.photo-delete-confirm small{display:block;color:#786360;font-size:10px}.photo-delete-confirm>div{display:flex;gap:7px;flex-wrap:wrap}.photo-delete-danger{background:#aa4137;color:white;border:1px solid #aa4137}.photo-delete-danger:hover{background:#90362e}.photo-delete-error{margin:0;padding:9px 12px;border-radius:7px;background:#fff0ee;color:#a23731;font-size:12px;line-height:1.5;max-width:540px;overflow-wrap:anywhere}.photo-viewer:has(.photo-delete-controls) #full-photo{display:block;margin:auto;max-height:65dvh}.photo-viewer:has(.photo-delete-confirm) #full-photo{max-height:56dvh}
@media(max-width:600px){.saved-photo-delete{min-height:40px;font-size:11px}.photo-delete-controls .btn{min-height:40px}.photo-delete-confirm{padding:10px;gap:9px}.photo-delete-confirm>div{width:100%;justify-content:flex-end}.photo-viewer:has(.photo-delete-controls){max-width:calc(100vw - 16px);padding:10px}.photo-viewer:has(.photo-delete-controls) #full-photo{max-width:calc(100vw - 36px);max-height:59dvh}.photo-viewer:has(.photo-delete-confirm) #full-photo{max-height:46dvh}.photo-viewer .gallery-controls>button{width:40px;height:40px}.photo-viewer>.icon-btn[data-close-photo]{width:40px;height:40px}}

.photo-delete-reason{font-size:11px;line-height:1.5;color:var(--muted);text-align:center;max-width:540px;overflow-wrap:anywhere}
