:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f5f7fb;
}
* { box-sizing: border-box; }
[hidden] { display:none !important; }
body { margin: 0; background: #f5f7fb; min-height: 100vh; min-height:100dvh; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar {
  background: white;
  border-bottom: 1px solid #e8ebf2;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.topbar { gap:12px 24px; flex-wrap:wrap; }
.brand, .user-pill, .toolbar > *, .grid > *, .field { min-width:0; }
.brand, .user-pill > span:first-child, .toolbar, .card, .modal, .file-chip { overflow-wrap:anywhere; }
.user-pill { flex-wrap:wrap; }
.user-pill > span:first-child { flex:1; }
.role-badge, .status-badge { flex-shrink:0; }
.user-pill { display:flex; align-items:center; gap:10px; font-size:14px; color:#566079; }
.role-badge, .status-badge {
  display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:5px 10px; font-size:12px; font-weight:700;
  background:#eef2ff; color:#3c4ad9;
}
.status-badge.to_do { background:#fff3d8; color:#8b5e00; }
.status-badge.in_progress { background:#e3f2ff; color:#1663a3; }
.status-badge.completed { background:#e4f8ea; color:#25733a; }
.container { width:min(1120px, calc(100% - 28px)); margin: 26px auto 60px; }
.login-wrap { min-height:100vh; display:grid; place-items:center; padding:20px; }
.login-card { width:min(430px,100%); background:white; border:1px solid #e7eaf0; border-radius:22px; padding:28px; box-shadow:0 18px 50px rgba(31,45,86,.08); }
.login-card h1 { margin:0 0 8px; font-size:28px; }
.login-card p { margin:0 0 24px; color:#6b7280; }
.login-card #loginForm + .btn { margin-top:16px; }
.field { display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.field label { font-size:13px; font-weight:700; color:#47516a; }
input, textarea, select { width:100%; min-width:0; max-width:100%; border:1px solid #d8deea; border-radius:12px; padding:11px 12px; background:white; color:#172033; outline:none; }
input[type="file"]::file-selector-button { border:0; border-radius:8px; padding:8px 10px; margin-right:10px; background:#eef1f6; color:#26324b; font:inherit; cursor:pointer; }
button:focus-visible, a:focus-visible { outline:3px solid #6376f6; outline-offset:3px; }
input:focus, textarea:focus, select:focus { border-color:#6376f6; box-shadow:0 0 0 3px rgba(99,118,246,.12); }
textarea { resize:vertical; min-height:88px; }
.btn { border:0; border-radius:12px; padding:11px 15px; font-weight:700; background:#1f2a44; color:white; }
.btn.secondary { background:#eef1f6; color:#26324b; }
.btn.primary { background:#4f63f5; }
.btn.success { background:#228c49; }
.btn.danger { background:#d94242; }
.btn.ghost { background:transparent; color:#47516a; border:1px solid #d8deea; }
.btn.small { padding:8px 10px; border-radius:10px; font-size:13px; }
a.btn { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.btn.big { width:100%; padding:15px 18px; font-size:16px; border-radius:14px; }
.grid { display:grid; gap:18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.admin-sections > section { min-width:0; }
.card { background:white; border:1px solid #e7eaf0; border-radius:18px; padding:18px; box-shadow:0 6px 18px rgba(22,34,66,.035); }
.card h2, .card h3 { margin-top:0; }
.toolbar { display:flex; gap:10px; align-items:center; justify-content:space-between; margin-bottom:18px; flex-wrap:wrap; }
.toolbar h1 { margin:0; font-size:26px; }
.muted { color:#7b8498; }
.small-text { font-size:12px; color:#7b8498; }
.photo-preview { width:100%; height:180px; object-fit:contain; border-radius:14px; background:#edf0f6; border:1px solid #e2e7ef; }
.photo-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(220px, 100%),1fr)); gap:12px; align-items:start; }
.item-card { min-width:0; background:white; border:1px solid #e1e6ef; border-radius:16px; overflow:hidden; }
.item-card > a { display:block; }
.item-card img { width:100%; height:160px; object-fit:contain; background:#eef1f6; display:block; }
.item-card p { white-space:pre-wrap; overflow-wrap:anywhere; }
.item-body { padding:14px; }
.item-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.batch-card { margin-bottom:16px; }
.batch-meta { display:flex; gap:10px 20px; flex-wrap:wrap; font-size:13px; color:#6c768d; margin-bottom:12px; }
.empty { text-align:center; padding:44px 20px; color:#788198; border:1px dashed #ccd3e0; border-radius:16px; background:#fafbfe; }
.notice { padding:11px 13px; border-radius:12px; background:#eef4ff; color:#34518e; font-size:13px; margin-bottom:16px; }
.credentials { background:#f8f9fc; border:1px solid #e9ecf3; border-radius:14px; padding:14px; font-size:13px; line-height:1.65; }
.modal-backdrop { position:fixed; inset:0; background:rgba(15,22,38,.5); display:grid; place-items:center; padding:18px; z-index:100; }
.modal { width:min(620px,100%); max-height:90vh; overflow:auto; background:white; border-radius:20px; padding:20px; }
.modal h2 { margin-top:0; }
.modal-actions { display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }
.modal { max-height:calc(100dvh - 36px); overscroll-behavior:contain; }
body:has(.modal-backdrop) { overflow:hidden; }
.history-entry { padding:12px 0; border-bottom:1px solid #edf0f4; }
.history-entry:last-child { border-bottom:0; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(30px); opacity:0; pointer-events:none; background:#1f2a44; color:white; padding:11px 15px; border-radius:12px; transition:.2s; z-index:200; font-size:14px; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.file-chip { display:inline-block; margin-top:8px; padding:7px 9px; border-radius:10px; background:#f2f4f8; font-size:12px; color:#45506a; }
@media (max-width:760px) {
  .grid.two { grid-template-columns:1fr; }
  input, textarea, select { font-size:16px; min-height:44px; }
  .btn, .btn.small { min-height:44px; display:inline-flex; align-items:center; justify-content:center; text-align:center; }
  .topbar { padding:12px 16px; padding-top:max(12px, env(safe-area-inset-top)); position:relative; }
  .brand { font-size:17px; }
  .container { width:calc(100% - 32px); margin-top:20px; margin-bottom:calc(32px + env(safe-area-inset-bottom)); }
  .card { padding:16px; }
  .toolbar { align-items:flex-start; gap:14px; }
  .toolbar h1 { font-size:22px; }
  .batch-meta { gap:6px 14px; line-height:1.5; }
  .item-actions .btn { flex:1 1 130px; }
  .photo-preview { height:220px; }
  .toast { width:max-content; max-width:calc(100% - 32px); text-align:center; overflow-wrap:anywhere; bottom:calc(16px + env(safe-area-inset-bottom)); }
  .login-wrap { min-height:100dvh; padding:20px 16px; }
  .modal-backdrop { padding:12px; padding-top:max(12px, env(safe-area-inset-top)); padding-bottom:max(12px, env(safe-area-inset-bottom)); }
  .modal { padding:20px 16px; border-radius:16px; max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .modal-actions .btn { flex:1 1 100px; }
}
@media (max-width:480px) {
  .topbar { gap:10px; }
  .brand { flex-basis:100%; }
  .user-pill { width:100%; gap:8px; }
  .toolbar > div { flex-basis:100%; }
  .toolbar > .btn { flex:1 1 auto; }
  .photo-grid { grid-template-columns:minmax(0,1fr); }
  .item-card img { height:220px; }
  .login-card { padding:24px 20px; border-radius:18px; }
  .login-card h1 { font-size:25px; }
  .empty { padding:28px 16px; }
}
@media (prefers-reduced-motion:reduce) {
  .toast { transition:none; }
}

/* Evidence capture keeps the existing indigo primary and slate secondary palette. */
.evidence-workspace { max-width:680px; margin:0 auto; }
.employee-container { max-width:620px; margin-top:0; padding-top:max(24px, env(safe-area-inset-top)); }
.employee-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:38px; }
.employee-header h1 { margin:0; font-size:23px; font-weight:650; letter-spacing:-.035em; }
.employee-header-actions { display:flex; gap:10px; flex-shrink:0; }
.employee-header h1 { min-width:0; overflow-wrap:anywhere; }
.employee-container:has(.evidence-submit) { padding-bottom:calc(110px + env(safe-area-inset-bottom)); }
.logout-icon { width:44px; height:44px; display:grid; place-items:center; background:white; border:1px solid #e4e8f0; border-radius:50%; color:#596478; }
.logout-icon:hover { background:#eef1f6; color:#172033; }
.employee-shell .capture-panel { border:0; padding:0; background:transparent; border-radius:0; }
.employee-shell .capture-panel h2 { font-size:18px; font-weight:650; margin-bottom:18px; }
.employee-shell .capture-button { background:white; border:1px dashed #b9c3e8; min-height:150px; border-radius:18px; gap:16px; }
.employee-shell .capture-button svg { box-sizing:content-box; width:25px; height:25px; padding:13px; border-radius:16px; background:#eff1ff; }
.employee-shell .capture-button:hover { background:#fafaff; border-color:#4f63f5; }
.employee-shell .evidence-section { margin-top:34px; }
.employee-shell .evidence-heading h2 { font-size:16px; font-weight:650; }
.employee-shell .evidence-item { border-color:#e6eaf1; border-radius:16px; }
.employee-shell .empty { background:transparent; border:0; padding:38px 16px; font-size:14px; }
.submission-list { display:grid; gap:12px; }
.submission-list .submission-row { border:1px solid #e6eaf1; border-radius:16px; padding:18px; background:white; }
.submission-row h3 { margin:0; font-size:15px; font-weight:650; }
.submission-row > div { min-width:0; overflow-wrap:anywhere; }
.submission-row > button { flex-shrink:0; }
.submission-heading { margin-bottom:24px; }
.back-home { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 6px 0 0; border:0; background:transparent; color:#53617c; font-size:14px; margin-bottom:16px; }
.submission-heading h2 { margin:0; font-size:21px; letter-spacing:-.025em; }
.submission-heading p { margin:7px 0 0; color:#7b8498; font-size:13px; }
.submitted-item { align-items:center; padding:16px; }
.submitted-item .evidence-detail > p { margin:0; }
.submitted-item .evidence-thumb { cursor:default; }
.submission-row { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:14px 0; border-top:1px solid #e7eaf0; }
.submission-row small { display:block; margin-top:4px; color:#6c768d; }
.capture-panel { background:white; padding:24px; border:1px solid #e7eaf0; border-radius:20px; }
.capture-panel h2 { margin:0 0 6px; font-size:21px; letter-spacing:-.025em; }
.capture-panel > p { margin:0 0 22px; font-size:14px; }
.capture-options { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.capture-button { min-height:132px; border:1px dashed #b6c0ef; border-radius:16px; background:#f7f8ff; color:#394ccf; display:flex; flex-direction:column; gap:14px; align-items:center; justify-content:center; padding:18px 8px; font-size:14px; }
.capture-button svg { width:30px; height:30px; }
.capture-button:hover { background:#eef1ff; border-color:#4f63f5; }
button:disabled { opacity:.5; cursor:not-allowed; }
.evidence-section { margin-top:28px; }
.evidence-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.evidence-heading h2 { margin:0; display:flex; align-items:center; gap:9px; font-size:18px; }
.evidence-count { display:inline-grid; place-items:center; min-width:25px; height:25px; padding:0 6px; background:#e9edfa; color:#485673; border-radius:8px; font-size:12px; }
.evidence-list { display:grid; gap:12px; }
.evidence-item { display:flex; align-items:flex-start; gap:14px; padding:14px; box-shadow:none; }
.evidence-thumb { flex:0 0 88px; border:0; border-radius:10px; padding:0; overflow:hidden; background:#eef1f6; }
.evidence-item .evidence-thumb img { width:88px; height:88px; object-fit:cover; }
.evidence-detail { flex:1; min-width:0; }
.evidence-detail > p { margin:0 0 8px; font-size:14px; line-height:1.5; }
.evidence-tools { display:flex; gap:4px; flex-wrap:wrap; }
.evidence-tool { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:6px; border:0; border-radius:8px; padding:8px; color:#47516a; background:transparent; font-size:12px; }
.evidence-tool svg { width:18px; height:18px; }
.evidence-tool:hover { background:#eef1f6; }
.evidence-tool.delete-tool { color:#b83232; margin-left:auto; }
.evidence-submit { position:fixed; bottom:0; left:0; right:0; z-index:20; display:flex; justify-content:center; padding:16px 16px calc(16px + env(safe-area-inset-bottom)); background:#f5f7fb; border-top:1px solid #e7eaf0; }
.evidence-submit > .btn { max-width:620px; box-shadow:0 4px 14px rgba(79,99,245,.14); }
.evidence-submit > p { margin:9px 0 0; text-align:center; }
.photo-editor h2 { font-size:21px; }
.photo-editor .photo-preview { height:280px; margin-bottom:20px; }
.photo-editor textarea { min-height:110px; }
.photo-editor .modal-actions { margin-top:20px; }
@media (max-width:760px) {
  .capture-panel { padding:20px 16px; }
  .capture-button { min-height:120px; }
  .evidence-item { padding:12px; gap:10px; }
  .evidence-tools { gap:0; }
  .evidence-tool { padding:8px 6px; }
  .photo-editor .photo-preview { height: min(32dvh, 280px); }
}
@media (max-width:360px) {
  .evidence-thumb { flex-basis:64px; }
  .evidence-item .evidence-thumb img { width:64px; height:76px; }
}
.client-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:28px 0}.client-stat{text-align:left;border:1px solid #e6eaf1;border-radius:18px;background:white;padding:22px;display:flex;flex-direction:column;gap:14px;color:#172033}.client-stat strong{font-size:32px;font-weight:650}.client-stat small{color:#6c768d}.client-filter label{display:flex;align-items:center;gap:10px}.client-filter select{width:auto}.client-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.client-item{padding:16px}.client-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.client-card-content{display:flex;gap:16px;align-items:center}.client-item .evidence-thumb{flex-basis:112px}.client-item .evidence-thumb img{width:112px;height:112px;object-fit:cover}.client-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:14px;margin:0 0 10px}.client-photo img{width:100%;max-height:55dvh;object-fit:contain;border-radius:12px;background:#f5f7fb}.full-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}@media(max-width:760px){.client-grid{grid-template-columns:1fr}.client-summary{gap:8px}.client-stat{padding:12px;gap:10px}.client-stat .status-badge{font-size:11px;padding:5px}.client-stat strong{font-size:27px}.client-card-top .evidence-tool{padding:8px}.client-card-content{gap:12px}.client-summary small{line-height:1.4}}
.compare-evidence-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin:16px 0 12px;white-space:normal;line-height:1.4}.compare-evidence-button svg{width:20px;height:20px;flex-shrink:0}.client-item>.compare-evidence-button{margin-bottom:0}.comparison-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.comparison-grid section{min-width:0}.comparison-grid img{display:block;width:100%;height:230px;object-fit:contain;background:#f5f7fb;border-radius:12px}.comparison-grid h3{font-size:16px;color:#394ccf}@media(max-width:760px){.comparison-grid{grid-template-columns:minmax(0,1fr)}.comparison-grid img{height:auto;max-height:45dvh;min-height:160px}.compare-evidence-button{padding:12px;font-size:14px}}
.history-photo-preview{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin:12px 0 4px;padding:8px;border:1px solid #e6eaf1;border-radius:12px;background:#f5f7fb;color:#394ccf;max-width:180px;text-align:left;font-size:12px}.history-photo-preview img{display:block;width:148px;height:104px;object-fit:contain;border-radius:7px;background:#eef1f6}.history-photo-preview:hover{border-color:#4f63f5;background:#eff1ff}
.history-modal{height:min(680px,calc(100dvh - 48px));width:min(720px,100%);display:flex;flex-direction:column;overflow:hidden;padding:0}.history-heading{padding:20px 24px 14px;border-bottom:1px solid #edf0f4;flex-shrink:0}.history-heading h2{margin:0}.history-scroll{min-height:0;flex:1;overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain;padding:0 24px 20px}.history-footer{padding:14px 24px;border-top:1px solid #edf0f4;flex-shrink:0;background:white}.history-scroll:focus-visible{outline:2px solid #6376f6;outline-offset:-3px}@media(max-width:760px){.history-modal{height:min(680px,calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));padding:0}.history-heading,.history-footer{padding:16px}.history-scroll{padding:0 16px 16px}}
.history-image-viewer{width:min(1000px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:16px;border:0;border-radius:16px;overflow:auto}.history-image-viewer::backdrop{background:rgba(15,22,38,.75)}.history-image-viewer .client-photo img{max-height:75dvh}.history-image-viewer>button{margin-bottom:12px}
.client-topbar{flex-wrap:nowrap}.client-topbar .brand{flex-basis:auto}.client-topbar .logout-icon{flex:0 0 44px}.client-topbar .logout-icon svg{width:20px;height:20px}.client-workspace .client-summary{gap:16px;margin:20px 0 24px}.client-workspace .client-stat{position:relative;gap:10px;padding:20px;border-radius:14px;box-shadow:0 2px 4px rgba(22,34,66,.02)}.client-workspace .client-stat .status-badge{align-self:flex-start;background:transparent;padding:0;font-size:13px;border-radius:0}.client-workspace .client-stat strong{font-size:32px;line-height:1.15;font-variant-numeric:tabular-nums;letter-spacing:-.03em}.client-workspace .client-stat small{font-size:12px;line-height:1.4}.client-workspace .client-filter{justify-content:flex-end;margin-bottom:16px}.client-filter label{font-size:13px;font-weight:600;color:#566079}.client-workspace .client-filter select{min-height:46px;min-width:168px;padding:12px 40px 12px 16px;border:1px solid #dce2ec;background-color:#eef1f6;color:#26324b;border-radius:10px;cursor:pointer}.client-filter select:hover{background-color:#e6ebf3}@media(max-width:760px){.client-workspace .client-summary{gap:8px}.client-workspace .client-stat{padding:14px 10px;gap:10px}.client-workspace .client-stat .status-badge{font-size:11px;white-space:normal}.client-workspace .client-stat strong{font-size:28px}.client-workspace .client-stat small{font-size:11px}.client-workspace .client-filter select{min-width:160px}.client-topbar .brand{font-size:16px}}

/* Client dashboard header and consistent native-select spacing. */
.client-header-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.client-download-report{min-height:44px;white-space:nowrap}
.client-mobile-report{display:none}
.client-shell>.container{margin-top:24px;margin-bottom:0;padding-bottom:calc(40px + env(safe-area-inset-bottom))}
.client-workspace .client-summary{margin-top:0}
.client-workspace .client-filter select{appearance:none;-webkit-appearance:none;padding:12px 44px 12px 16px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23566079' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:20px}
@media(max-width:760px){
  .client-header-actions .client-download-report{display:none}
  .client-mobile-report{display:block;margin-bottom:20px}
  .client-mobile-report .client-download-report{display:block;width:100%;min-height:44px;padding:11px 15px;font-size:13px}
  .client-shell>.container{margin-top:20px;padding-bottom:calc(32px + env(safe-area-inset-bottom))}
}
.admin-client-navigation{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}.admin-client-navigation>.btn{display:flex;align-items:center;gap:8px;min-height:46px}.admin-client-navigation svg{width:18px;height:18px}.admin-client-navigation .field{margin:0;flex:0 1 320px}@media(max-width:760px){.admin-client-navigation{align-items:stretch;flex-direction:column;gap:16px}.admin-client-navigation>.btn{align-self:flex-start}.admin-client-navigation .field{flex:auto;width:100%}}
.admin-photo-filters { display:flex; flex-wrap:wrap; gap:20px; margin-bottom:24px; }
.admin-photo-filters .field { flex:1; min-width:200px; margin-bottom:0; }
.admin-photo { min-width:0; }
.photo-selection { display:flex; gap:8px; align-items:center; font-weight:600; }
.photo-selection input { width:20px; height:20px; }
.admin-photo .item-card { height:auto; }

/* Compact admin navigation and consistent form-control spacing. */
.admin-topbar { flex-wrap:nowrap; gap:16px; padding:16px 28px; }
.admin-topbar .brand { flex:1 1 auto; min-width:0; font-size:18px; font-weight:650; line-height:1.35; }
.admin-header-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.admin-header-actions .logout-icon { border:0; background:transparent; flex-shrink:0; }
.admin-header-actions .logout-icon:hover { background:#f1f3f7; }
.profile-menu { position:relative; }
.profile-toggle { cursor:pointer; list-style:none; }
.profile-toggle::-webkit-details-marker { display:none; }
.profile-menu[open] .profile-toggle { background:#eef1f6; }
.profile-menu-panel { position:absolute; top:calc(100% + 8px); right:0; width:208px; max-width:calc(100vw - 32px); padding:6px; border:1px solid #e4e8f0; border-radius:12px; background:white; box-shadow:0 8px 28px rgba(23,32,51,.09); z-index:30; }
.profile-menu-panel button { display:block; width:100%; min-height:44px; padding:12px; border:0; border-radius:8px; background:transparent; color:#26324b; text-align:left; font-size:14px; line-height:1.4; }
.profile-menu-panel button:hover { background:#f5f7fb; }
.profile-toggle:focus-visible,.admin-header-actions button:focus-visible { outline:2px solid #6376f6; outline-offset:3px; }
select { appearance:none; -webkit-appearance:none; min-height:46px; padding:12px 44px 12px 14px; line-height:1.4; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23566079' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; background-size:20px; cursor:pointer; }
.admin-photo-filters { padding:20px; margin-bottom:28px; max-width:420px; background:transparent; border:0; box-shadow:none; padding:0; }
.admin-photo-filters .field { min-width:0; }
.admin-photo-filters label { margin-bottom:8px; }
.admin-photo-filters + section > h2 { font-size:20px; margin:0 0 20px; }
.admin-photo-filters + section > .toolbar { gap:12px; margin-bottom:24px; align-items:center; }
.admin-photo .small-text { line-height:1.6; margin:12px 0; }
@media(max-width:760px) {
 .admin-topbar { padding:12px 16px; padding-top:max(12px,env(safe-area-inset-top)); gap:12px; }
 .admin-topbar .brand { font-size:16px; flex-basis:auto; }
 .admin-header-actions { gap:4px; }
 .admin-photo-filters { max-width:none; margin-bottom:24px; }
 .admin-photo-filters + section > .toolbar > .btn { flex:1 1 auto; padding:12px 14px; }
}
/* Keep the send action reachable without covering the evidence list. */
.employee-shell .evidence-submit { position:fixed; bottom:0; left:0; right:0; display:flex; justify-content:center; margin:0; padding:16px 16px calc(16px + env(safe-area-inset-bottom)); border-top:1px solid #e7eaf0; }
.employee-shell .evidence-submit > .btn { width:100%; max-width:620px; }
.employee-container:has(.evidence-submit:not([hidden])) { padding-bottom:calc(110px + env(safe-area-inset-bottom)); }
/* Compact client-scoped photo review. */
.admin-review-actions { display:flex; justify-content:flex-end; align-items:center; gap:12px; margin:0 0 18px; }
.admin-review-actions .btn.small { width:auto; flex:none; min-height:40px; padding:10px 16px; font-size:13px; }
.admin-review-grid { gap:14px; }
.admin-review-item .client-card-top { margin-bottom:12px; }
.admin-review-item .evidence-tools { gap:2px; flex-wrap:wrap; justify-content:flex-end; }
.admin-review-item .evidence-tool { padding:8px; min-width:36px; min-height:36px; }
.admin-review-item .evidence-tool svg { width:18px; height:18px; }
.admin-review-item .client-description { font-size:14px; }
.admin-review-item .photo-selection input { margin:0; }
/* Stable popup dimensions with content scrolling inside the frame. */
.modal:has(.evidence-viewer) { width:min(640px,100%); height:min(720px,calc(100dvh - 40px)); padding:0; overflow:hidden; }
.evidence-viewer { height:100%; display:flex; flex-direction:column; min-height:0; }
.evidence-viewer-header { display:flex; justify-content:flex-end; padding:10px 14px; border-bottom:1px solid #edf0f4; flex-shrink:0; }
.evidence-viewer-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding:20px; }
.evidence-viewer .client-photo img { display:block; height:300px; max-height:42dvh; width:100%; object-fit:contain; }
.evidence-viewer .full-description { margin:20px 0 0; font-size:15px; }
.evidence-viewer-scroll:focus-visible { outline:2px solid #6376f6; outline-offset:-3px; }
@media(max-width:760px) {
 .admin-review-grid { grid-template-columns:minmax(0,1fr); }
 .admin-review-item .client-card-content { gap:12px; }
 .admin-review-item .evidence-thumb { flex-basis:88px; }
 .admin-review-item .evidence-thumb img { width:88px; height:88px; }
 .modal:has(.evidence-viewer) { height:min(720px,calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); }
 .evidence-viewer-scroll { padding:16px; }
}
.employee-shell .evidence-detail > p {
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  line-height:1.5;
  height:4.5em;
  min-height:4.5em;
  max-height:4.5em;
  overflow:hidden;
}
.submitted-item .evidence-thumb { cursor:pointer; }
.admin-review-item .evidence-tools .delete-tool { margin-left:0; }
.admin-review-item .client-card-top { justify-content:flex-end; }
/* Compact admin client view: one navigation row and per-photo deletion. */
.admin-client-navigation { display:grid; grid-template-columns:auto minmax(0,320px); justify-content:start; align-items:end; gap:12px; margin-bottom:16px; }
.admin-client-navigation > .admin-back { display:inline-flex; gap:5px; align-items:center; justify-content:center; align-self:end; min-height:44px; padding:8px; background:transparent; font-size:13px; border:0; }
.admin-client-navigation .admin-back svg { width:16px; height:16px; }
.admin-client-navigation .field { width:100%; margin:0; }
.admin-client-navigation .field label { font-size:12px; margin-bottom:6px; }
.admin-client-navigation select { min-height:44px; padding:10px 40px 10px 12px; border-radius:10px; }
.admin-client-workspace .client-summary { gap:10px; margin:12px 0 16px; }
.admin-client-workspace .client-stat { padding:12px; gap:6px; border-radius:12px; }
.admin-client-workspace .client-stat strong { font-size:26px; }
.admin-client-workspace .client-stat small { font-size:11px; }
.admin-client-workspace .client-filter { justify-content:space-between; gap:12px; margin-bottom:14px; }
.admin-client-workspace .client-filter label { margin:0 0 0 auto; font-size:12px; gap:8px; }
.admin-client-workspace .client-filter select { min-height:40px; min-width:132px; padding:9px 36px 9px 12px; font-size:13px; }
.admin-client-workspace .client-grid { gap:12px; }
.admin-client-workspace .client-item { padding:12px; border-radius:12px; }
.admin-client-workspace .client-card-top { gap:6px; margin-bottom:8px; }
.admin-client-workspace .evidence-tools { gap:0; }
.admin-client-workspace .evidence-tool { min-width:36px; min-height:40px; padding:8px; }
.admin-client-workspace .evidence-tool svg { width:17px; height:17px; }
.admin-client-workspace .client-card-content { gap:12px; }
.admin-client-workspace .evidence-thumb { flex-basis:88px; }
.admin-client-workspace .evidence-thumb img { width:88px; height:88px; }
@media(max-width:760px) {
 .admin-client-navigation { grid-template-columns:auto minmax(0,1fr); gap:10px; margin-bottom:14px; }
 .admin-client-navigation > .admin-back { align-self:end; }
 .admin-client-navigation .field { flex:auto; }
 .admin-client-workspace .client-stat { padding:10px; gap:6px; }
 .admin-client-workspace .client-stat strong { font-size:24px; }
}
.archive-page { max-width:680px; margin:0 auto; }
.archive-page > .toolbar { justify-content:flex-start; gap:16px; }
.archive-page h2 { font-size:20px; margin:0; }
.archive-list { display:grid; gap:12px; }
.archive-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px; background:white; border:1px solid #e4e8f0; border-radius:12px; }
.archive-row strong { font-size:14px; }
.archive-row p { margin:6px 0 0; font-size:12px; color:#758096; }
.archive-filters { display:flex; flex-wrap:wrap; gap:16px; margin:20px 0; }
.archive-filters label { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:600; flex:1; min-width:130px; max-width:220px; }
.archive-filters select { width:100%; }
.archive-cleanup { align-self:flex-end; min-height:44px; }
.archive-row .archive-resolved { color:#2563eb; font-weight:600; }
.archive-recovery { display:block; margin-top:5px; font-size:12px; color:#758096; }
.archive-row .btn { flex:none; min-width:56px; }
.cleanup-action { font-size:12px; min-height:40px; padding:8px; }
@media(max-width:760px){.client-header-actions{gap:4px}.client-topbar .brand{font-size:14px}.archive-row{padding:14px}.client-topbar .profile-toggle{width:40px;height:40px}}
/* Compact evidence cards, with a bounded number of items per page. */
.client-workspace .client-summary { margin:16px 0; gap:12px; }
.client-workspace .client-stat { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px 12px; padding:14px 16px; }
.client-workspace .client-stat strong { grid-column:2; grid-row:1 / span 2; font-size:28px; }
.client-workspace .client-stat small { grid-column:1; }
.client-workspace .client-grid { gap:12px; align-items:start; }
.client-workspace .client-item { padding:12px; border-radius:12px; }
.client-workspace .client-card-top { margin-bottom:8px; gap:6px; }
.client-workspace .client-card-content { gap:12px; }
.client-workspace .client-item .evidence-thumb { flex-basis:72px; }
.client-workspace .client-item .evidence-thumb img { display:block; width:72px; height:72px; }
.client-workspace .client-description { -webkit-line-clamp:2; margin-bottom:5px; font-size:13px; }
.client-workspace .client-item .small-text { font-size:11px; }
.client-workspace .client-item > .compare-evidence-button { width:auto; margin:8px 0 0 auto; padding:6px 10px; min-height:36px; font-size:12px; gap:6px; }
.client-workspace .compare-evidence-button svg { width:16px; height:16px; }
.client-pagination { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; margin:16px 0; font-size:12px; color:#526579; }
.client-page-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.client-page-controls label { display:flex; align-items:center; gap:6px; margin:0; font-size:12px; }
.client-page-controls input { width:64px; min-height:40px; padding:8px; text-align:center; }
.client-page-controls .btn { min-height:40px; }
.client-pagination:focus-visible { outline:2px solid #2563eb; outline-offset:4px; }
@media(min-width:1100px) { .client-workspace .client-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) {
 .client-workspace .client-stat { padding:10px; gap:6px; display:flex; }
 .client-workspace .client-stat strong { font-size:24px; }
 .client-pagination { justify-content:center; }
 .client-page-controls { justify-content:center; gap:8px; }
}
