*{box-sizing:border-box}body{margin:0;background:#f2f6f5;color:#163b42;font:16px system-ui,Arial}header{background:#163b42;color:white;padding:20px max(18px,calc((100vw - 1040px)/2))}header p{font-size:13px;color:#ffdc83}main{max-width:1040px;margin:auto;padding:20px}section,article{background:white;border:1px solid #cbd8d6;border-radius:12px;padding:18px;margin:15px 0}h1,h2,h3{line-height:1.25}label{display:block;margin:15px 0}input,textarea,select,button{font:inherit;padding:12px;border-radius:7px;border:1px solid #9ab5b0;width:100%;margin-top:5px}textarea{min-height:105px}button{cursor:pointer;background:#166b5c;color:white;border:0;font-weight:650;margin:8px 0}button.secondary{background:#e2eeeb;color:#163b42}button:disabled{opacity:.5;cursor:wait}.ok{background:#d9f2e4;padding:14px;border-radius:7px}.error{background:#ffe2dd;padding:14px;border-radius:7px}#status:empty{display:none}.muted{font-size:14px;color:#526b67}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:15px}img{max-width:100%;max-height:280px}a{color:#086854}.qr{width:220px;height:220px}table{width:100%;border-collapse:collapse}td,th{padding:10px;text-align:left;border-bottom:1px solid #dce7e5}small{display:block}#status{position:sticky;top:0;z-index:2}.list{white-space:pre-wrap}

.scroll-table{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px;border-bottom:1px solid #ddd}fieldset{margin:15px 0}input[type=checkbox]{width:auto}nav{padding:18px}nav a{display:inline-block;margin:4px}form{border-top:1px solid #ddd;margin-top:18px;padding-top:12px}.generated-qr{max-width:100%;width:260px}@media print{body.print-session header,body.print-session #status,body.print-session main>#app>section:not(#sessions),body.print-session nav{display:none}body.print-session #sessions>*:not(.grid){display:none}body.print-session #sessions .grid article{break-inside:avoid}body.print-session #sessions .grid a{display:none}}

@font-face{font-family:Lexend;src:url('/sivic-lexend.ttf') format('truetype');font-weight:100 900;font-display:swap}:root{--ink:#142b3b;--blue:#193e7c;--navy:#102653;--gold:#f3c84b;--muted:#52627a;--line:#d6dfeb}body{font:17px/1.75 Lexend,system-ui,sans-serif;background:#f3f6fb;color:var(--ink)}html{scroll-padding-top:20px}header.app-header{display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--navy);color:white;padding:22px max(24px,calc((100vw - 1120px)/2))}.srs-brand{display:flex;align-items:center;gap:14px;color:white;line-height:1.4;font-size:19px;font-weight:750}.srs-brand img{width:64px;height:64px;object-fit:contain;background:transparent;padding:0;border-radius:0}.srs-brand small{font-size:13px;font-weight:400;margin-top:5px;color:#dde6f7}.portal-back{color:white;border:1px solid #9eafd0;padding:10px 16px;min-height:48px;display:inline-flex;align-items:center;border-radius:8px;font-size:14px}main{max-width:1168px;padding:26px 24px}section,article{border-color:var(--line);border-radius:14px;padding:25px}section>h1:first-child{margin-top:0}h1,h2,h3{color:var(--navy);letter-spacing:-.5px}h1{font-size:32px}h2{font-size:25px}h3{font-size:19px}.muted,small{color:var(--muted)}.srs-brand small{color:#dde6f7}input,textarea,select{background:white;color:var(--ink);border:1px solid #8093ae;min-height:48px}input[type=checkbox]{width:22px;height:22px;min-height:22px;vertical-align:middle}button{min-height:50px;background:var(--blue);color:white;font-size:15px;font-weight:650}button:hover{background:#234f92}button.secondary{background:#e9eff9;color:var(--navy)}button.secondary:hover{background:#dce6f6}a{color:var(--blue);text-underline-offset:3px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c98200;outline-offset:3px}form{border-color:var(--line);padding-top:20px}label{font-size:15px;line-height:1.8}fieldset{border:1px solid var(--line);border-radius:10px;min-width:0}fieldset label{padding:6px 0;min-height:44px}.ok{background:#e3f2e9;color:#215c3c}.error{background:#fde7e3;color:#86291e}#status{border:0;margin:0 0 18px;box-shadow:0 4px 12px #10265310}#app>nav{display:flex;gap:8px;flex-wrap:wrap;padding:8px 0;color:transparent}#app>nav a{display:inline-flex;min-height:48px;align-items:center;padding:10px 14px;border:1px solid var(--line);border-radius:9px;color:var(--blue);background:white;font-size:14px;margin:0}#app>nav a:hover{background:#e9eff9}#app>section:has(#login),#app>section:has(#personal-password){max-width:560px;margin:32px auto;padding:32px}#app>section:has(#pin),#app>section:has(#attendance){max-width:720px;margin:24px auto}#app>section:has(#pin) h1,#app>section:has(#attendance) h1{font-size:29px}#app>section:has(#pin)>p,#app>section:has(#attendance)>p{color:var(--muted)}#app>section:has(#refresh){border-top:5px solid var(--blue)}#app>section:has(#refresh)>button{width:auto;margin-right:8px;padding:12px 18px}#app>section:has(#refresh) #refresh{background:var(--gold);color:var(--navy)}#app img:not(.qr):not(.generated-qr){border-radius:9px}.scroll-table{max-width:100%}td,th{border-color:var(--line);padding:13px;font-size:14px}th{color:var(--muted);font-size:12px}td button{width:auto;min-width:90px}details summary{min-height:48px;cursor:pointer;padding:10px}button,input,select,textarea{max-width:100%}.candidate-notice{background:#e9eef8;color:#102653;padding:10px 20px;display:flex;gap:10px 25px;flex-wrap:wrap;justify-content:center;align-items:center;font-size:12px}.candidate-notice strong{letter-spacing:.7px}input[type=file]{font-size:14px}nav a,.grid a{min-height:44px}.grid a{display:inline-flex;align-items:center}.grid article{min-width:0;overflow-wrap:anywhere}#app section p{overflow-wrap:anywhere}.list{white-space:pre-wrap}@media(max-width:760px){header.app-header{padding:18px 20px;gap:10px}.srs-brand{font-size:14px;gap:10px}.srs-brand img{width:54px;height:54px}.srs-brand small{font-size:10px}.portal-back{font-size:12px;padding:8px 10px;max-width:106px}main{padding:18px}section,article{padding:20px}h1{font-size:27px}h2{font-size:23px}.grid{grid-template-columns:1fr}#app>section:has(#login),#app>section:has(#personal-password){padding:23px;margin:22px auto}#app>nav a{font-size:12px;padding:9px 11px}#app>section:has(#refresh)>button{width:100%;margin-right:0}.candidate-notice{font-size:10px;justify-content:flex-start;gap:2px}td,th{padding:10px}#app>section:has(#pin) h1,#app>section:has(#attendance) h1{font-size:25px}}@media print{.candidate-notice{display:none}body.print-session header.app-header{display:none}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Clear photo attachment control for patrol reports. */
label.photo-upload{display:flex;flex-direction:column;gap:12px;margin:20px 0;padding:18px;border:2px solid #163f78;border-radius:14px;background:#edf4ff;color:#12294f}label.photo-upload strong{font-size:1.15rem;color:#12294f}label.photo-upload span,label.photo-upload small{color:#243b5b;line-height:1.5}label.photo-upload input[type=file]{display:block;width:100%;min-height:54px;background:#fff;color:#12294f;padding:8px;border:1px solid #9db3d2;border-radius:8px;box-sizing:border-box;font-size:16px}label.photo-upload input[type=file]::file-selector-button{min-height:44px;border:0;border-radius:6px;background:#163f78;color:#fff;font-weight:700;padding:10px 14px;margin-right:10px;cursor:pointer}label.photo-upload:focus-within{outline:3px solid #c09938;outline-offset:3px}

.send-status{padding:14px;border-radius:8px;border:2px solid currentColor;line-height:1.5;font-weight:700}.send-status.error{background:#fff0ec;color:#8d2615}.send-status.ok{background:#edf6ff;color:#153b68}form[aria-busy=true] button[type=submit]{opacity:.85;cursor:wait}

.session-report .report-controls{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.report-controls button{min-height:48px}.report-table-wrap{overflow-x:auto}.session-report table{width:100%;border-collapse:collapse}.session-report th,.session-report td{padding:10px;border:1px solid #a5b4c9;text-align:left;vertical-align:top}.session-report .report-body{white-space:pre-wrap;overflow-wrap:anywhere}.session-report-photo{display:block;max-width:100%;max-height:420px;object-fit:contain}.session-report figure{margin:16px 0}.report-empty{color:#475569}.report-end{border-top:1px solid #a5b4c9;padding-top:16px}.session-report-view #status:empty{display:none}@media print{@page{size:A4;margin:14mm}body.session-report-view{background:white;color:#111;font-size:10pt}body.session-report-view header,body.session-report-view nav,body.session-report-view footer,body.session-report-view #status,.session-report-view .report-controls,.session-report-view #report-image-status{display:none!important}.session-report-view main,.session-report-view #app,.session-report-view section{margin:0!important;padding:0!important;max-width:none!important;width:auto!important;border:0!important;box-shadow:none!important}.session-report article{break-inside:auto;border-bottom:1px solid #bbb;padding:10px 0}.session-report h2,.session-report h3{break-after:avoid}.session-report figure,.session-report tr{break-inside:avoid}.session-report-photo{max-width:160mm;max-height:85mm}.report-table-wrap{overflow:visible}.session-report table{table-layout:fixed}.session-report td{overflow-wrap:anywhere}.session-report thead{display:table-header-group}}

.patrol-duration{background:#eef5ff;border:2px solid #214e88;border-radius:12px;padding:16px;margin:18px 0;line-height:1.7}.patrol-duration strong{color:#123567}
