:root{--bg:#0b0b0d;--panel:#151518;--panel2:#1d1d21;--text:#f5f5f5;--muted:#a6a6ad;--line:#303036;--accent:#e52b2b;--accent2:#b51f1f;--ok:#42c98a;--danger:#ff5a5f;font-family:Arial,Helvetica,sans-serif}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--text);margin:0}body{font-size:16px}button,input{font:inherit}.shell{min-height:100vh}.login-page{background:radial-gradient(circle at 50% 0,#26262b 0,#0b0b0d 48%);place-items:center;min-height:100vh;padding:24px;display:grid}.login-card{border:1px solid var(--line);background:#151518f5;border-radius:22px;width:min(420px,100%);padding:28px;box-shadow:0 24px 80px #00000073}.brand{text-align:center}.brand img{object-fit:contain;width:132px;height:132px}.brand h1{margin:14px 0 4px;font-size:22px}.brand p{color:var(--muted);margin:0;font-size:14px}.form{gap:14px;margin-top:26px;display:grid}.label{color:#d8d8dc;margin-bottom:6px;font-size:13px;display:block}.input{border:1px solid var(--line);width:100%;height:50px;color:var(--text);background:#0f0f12;border-radius:12px;outline:none;padding:0 14px}.input:focus{border-color:#77777e;box-shadow:0 0 0 3px #e52b2b1f}.btn{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:12px;min-height:50px;padding:0 18px;font-weight:800}.btn:hover{background:var(--accent2)}.btn:disabled{opacity:.55;cursor:not-allowed}.error{color:#ffb8ba;background:#ff5a5f1a;border:1px solid #ff5a5f59;border-radius:10px;padding:12px;font-size:13px}.footer-note{text-align:center;color:#73737b;margin-top:20px;font-size:12px}.topbar{border-bottom:1px solid var(--line);z-index:10;background:#101012;justify-content:space-between;align-items:center;height:68px;padding:0 18px;display:flex;position:sticky;top:0}.topbar-brand{align-items:center;gap:10px;font-weight:800;display:flex}.topbar-brand img{object-fit:contain;width:38px;height:38px}.topbar small{color:var(--muted);font-weight:400;display:block}.main{width:min(900px,100%);margin:0 auto;padding:24px 18px 100px}.hero{margin-bottom:20px}.hero h2{margin:0;font-size:24px}.hero p{color:var(--muted);margin:7px 0 0}.search-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:16px}.search-row{gap:10px;display:flex}.search-row .input{flex:1}.result{gap:10px;margin-top:16px;display:grid}.result-card{background:var(--panel2);border:1px solid var(--line);border-radius:14px;padding:14px}.result-name{font-size:17px;font-weight:800}.result-meta{color:var(--muted);margin-top:5px;font-size:13px}.empty{text-align:center;color:var(--muted);padding:22px}.badge{color:#ddd;background:#29292e;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:800;display:inline-flex}.logout{color:#ddd;border:1px solid var(--line);cursor:pointer;background:0 0;border-radius:10px;padding:8px 11px}@media (max-width:560px){.main{padding:18px 14px 90px}.search-row{flex-direction:column}.search-row .btn{width:100%}.login-card{padding:22px}}.home-actions{justify-content:flex-end;margin-bottom:12px;display:flex}.secondary-btn{background:var(--panel2);border:1px solid var(--line);align-items:center;text-decoration:none;display:inline-flex}.secondary-btn:hover{background:#28282d}.result-card{color:inherit;text-decoration:none;display:block}.result-card:hover{border-color:#666}.page-head{margin-bottom:20px}.page-head h1{margin:10px 0 4px;font-size:28px}.page-head p{color:var(--muted);margin:0}.profile-grid{gap:14px;display:grid}.panel{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:18px}.panel h2{margin:0 0 16px;font-size:16px}.data-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.data-grid div{background:var(--panel2);border-radius:12px;padding:12px}.data-grid span,.field span{color:var(--muted);margin-bottom:6px;font-size:12px;display:block}.data-grid strong{font-size:14px;display:block}.long-text{white-space:pre-wrap;color:#ddd;margin:0;line-height:1.6}.section-title{justify-content:space-between;align-items:center;display:flex}.photo-list,.record-list{gap:10px;display:grid}.photo-item,.record-item{border:1px solid var(--line);background:var(--panel2);border-radius:12px;padding:12px}.photo-item{align-items:center;gap:12px;display:flex}.photo-placeholder{width:64px;height:64px;color:var(--muted);background:#29292e;border-radius:10px;place-items:center;font-size:10px;font-weight:800;display:grid}.photo-item strong,.photo-item small{display:block}.photo-item small{color:var(--muted);margin-top:4px;font-size:11px}.record-top small,.record-item>small{color:var(--muted);font-size:11px}.record-item p{color:#ddd;white-space:pre-wrap;margin:9px 0;line-height:1.5}.form-card{max-width:760px}.textarea{border:1px solid var(--line);width:100%;color:var(--text);resize:vertical;background:#0f0f12;border-radius:12px;outline:none;padding:12px;line-height:1.5}.textarea:focus{border-color:#77777e;box-shadow:0 0 0 3px #e52b2b1f}@media (max-width:560px){.home-actions{justify-content:stretch}.secondary-btn{justify-content:center;width:100%}.data-grid,.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.form-actions .btn{width:100%}.page-head h1{font-size:24px}}.head-row{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.head-row .secondary-btn{min-height:44px}.upload-box,.record-form{background:var(--panel2);border:1px solid var(--line);border-radius:14px;gap:12px;margin-bottom:16px;padding:14px;display:grid}.check{color:#ddd;align-items:center;gap:8px;font-size:13px;display:flex}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.photo-card{border:1px solid var(--line);background:#0f0f12;border-radius:14px;overflow:hidden}.photo-card img{aspect-ratio:auto;object-fit:contain;background:#08080a;width:100%;height:auto;display:block}.photo-caption{gap:4px;padding:10px;display:grid}.photo-caption small{color:var(--muted);font-size:11px}.record-list{gap:10px;display:grid}.record-item{background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:13px}.record-top{justify-content:space-between;gap:10px;display:flex}.record-top small{color:var(--muted)}.record-item p{white-space:pre-wrap;margin:10px 0;line-height:1.5}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.field{gap:6px;display:grid}.field.full{grid-column:1/-1}.field span{color:var(--muted);font-size:12px}.textarea{resize:vertical;border:1px solid var(--line);width:100%;color:var(--text);font:inherit;background:#0f0f12;border-radius:12px;outline:none;padding:12px}.form-actions{justify-content:flex-end;margin-top:16px;display:flex}.section-title{justify-content:space-between;align-items:center;gap:10px;display:flex}.section-title h2{margin-bottom:0}.secondary-btn{color:#eee}@media (max-width:560px){.head-row{flex-direction:column;align-items:stretch}.head-row .secondary-btn{justify-content:center;width:100%}.photo-grid,.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}}.topbar-actions{align-items:center;gap:8px;display:flex}.admin-main{gap:14px;display:grid}.admin-main .page-head{margin-bottom:0}.admin-create{background:var(--panel2);border:1px solid var(--line);border-radius:14px;gap:14px;margin-top:16px;padding:14px;display:grid}.admin-create h3{margin:0;font-size:14px}.user-list{gap:10px;margin-top:14px;display:grid}.user-card{background:var(--panel2);border:1px solid var(--line);border-radius:12px;justify-content:space-between;align-items:center;gap:14px;padding:13px;display:flex}.user-info{gap:3px;display:grid}.user-info span,.user-info small{color:var(--muted);font-size:12px}.user-controls{align-items:center;gap:8px;display:flex}.input.compact{min-width:150px;height:42px}.audit-list{gap:8px;margin-top:14px;display:grid}.audit-item{background:var(--panel2);border:1px solid var(--line);border-radius:10px;justify-content:space-between;gap:16px;padding:11px;display:flex}.audit-item>div{gap:3px;display:grid}.audit-item span,.audit-item small{color:var(--muted);font-size:11px}.audit-item strong{font-size:12px}@media (max-width:560px){.user-card,.audit-item{flex-direction:column;align-items:stretch}.user-controls{flex-direction:column;width:100%}.user-controls .input,.user-controls button{justify-content:center;width:100%}.input.compact{min-width:0}}.security-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.muted{color:var(--muted);line-height:1.5}.success{background:#2eb4641f;border:1px solid #2eb46459;border-radius:10px;padding:12px}.danger{border-color:#dc3c3c73}@media (max-width:760px){.security-grid{grid-template-columns:1fr}}.login-page{background-image:url(/rocam-login-bg.png);background-position:50%;background-repeat:no-repeat;background-size:cover;background-attachment:fixed;place-items:center;min-height:100vh;padding:32px 20px;display:grid;position:relative;overflow:hidden}.login-page:before{content:"";pointer-events:none;background:linear-gradient(#0000002e,#000000b8);position:absolute;inset:0}.login-card{z-index:1;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#0f0f12e0;border:1px solid #ffffff1f;border-radius:22px;width:min(430px,100%);padding:32px;position:relative;box-shadow:0 30px 90px #000000a6,inset 0 0 0 1px #ffffff05}.login-card .brand{text-align:center}.login-card .brand img{object-fit:contain;filter:drop-shadow(0 8px 22px #00000073);width:118px;height:118px}.login-card .brand h1{letter-spacing:.5px;margin:14px 0 5px;font-size:25px;font-weight:900}.login-card .brand h2{color:var(--accent);letter-spacing:1.5px;margin:0;font-size:13px;font-weight:800}.login-card .brand p{max-width:310px;color:var(--muted);margin:9px auto 0;font-size:13px;line-height:1.45}.login-access{border-top:1px solid #ffffff17;margin-top:27px;padding-top:22px}.login-access h3{margin:0;font-size:16px}.login-access p{color:var(--muted);margin:5px 0 0;font-size:12px}.login-card .form{margin-top:18px}.login-card .btn{letter-spacing:.8px;margin-top:4px}.login-footer{text-align:center;color:#77777f;border-top:1px solid #ffffff14;margin-top:25px;padding-top:18px}.login-footer p{margin:3px 0;font-size:11px;line-height:1.4}.login-footer strong{color:#a9a9af;font-weight:700}.login-footer small{color:#626269;margin-top:6px;font-size:10px;display:block}@media (max-width:560px){.login-page{background-position:28%;background-attachment:scroll;padding:20px 14px}.login-card{border-radius:18px;padding:25px 20px}.login-card .brand img{width:100px;height:100px}.login-card .brand h1{font-size:22px}}.photo-search-panel{background:linear-gradient(145deg,#1d1d21f5,#0f0f12fa);max-width:760px;margin:0 auto;padding:24px;box-shadow:0 18px 55px #00000047}.photo-search-icon{background:#0f0f12;border:1px solid #ffffff1a;border-radius:16px;place-items:center;width:62px;height:62px;margin-bottom:18px;font-size:30px;display:grid}.photo-search-panel h3{margin:0;font-size:20px}.photo-search-panel>.muted{color:var(--muted);margin:8px 0 0;line-height:1.5}.photo-search-actions{grid-template-columns:1fr 1fr;gap:12px;margin-top:22px;display:grid}.photo-search-actions .btn{width:100%;min-height:54px}.photo-search-notice{border:1px solid #ffffff14;border-left:3px solid var(--accent);background:#ffffff06;border-radius:12px;margin-top:22px;padding:15px 16px}.photo-search-notice strong{margin-bottom:6px;font-size:13px;display:block}.photo-search-notice p{color:var(--muted);margin:0;font-size:13px;line-height:1.55}@media (max-width:560px){.photo-search-panel{border-radius:16px;padding:20px 16px}.photo-search-icon{width:56px;height:56px;margin-bottom:15px;font-size:27px}.photo-search-panel h3{font-size:18px}.photo-search-actions{grid-template-columns:1fr}.photo-search-actions .btn{min-height:56px}.photo-search-notice{margin-top:18px}}.photo-search-camera{border:3px solid #eee;border-radius:10px;width:64px;height:50px;margin-bottom:18px;position:relative}.photo-search-camera:before{content:"";background:#eee;border-radius:5px 5px 0 0;width:22px;height:8px;position:absolute;top:-9px;left:8px}.photo-search-camera-lens{border:4px solid #eee;border-radius:50%;width:22px;height:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.photo-search-preview{gap:16px;display:grid}.photo-search-preview-label{color:var(--muted);letter-spacing:.7px;font-size:12px;font-weight:800}.photo-search-preview img{object-fit:contain;border:1px solid var(--line);background:#08080a;border-radius:16px;width:100%;max-height:520px;display:block}.photo-search-preview-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.photo-search-development{text-align:center;color:var(--muted);margin:0;font-size:12px}@media (max-width:560px){.photo-search-preview img{max-height:60vh}.photo-search-preview-actions{grid-template-columns:1fr}.photo-search-preview-actions .btn{width:100%}}.photo-search-results{text-align:left;width:100%;margin-top:14px}.photo-search-results h3{margin:0 0 10px;font-size:16px}.photo-search-result{background:#17171b;border:1px solid #2b2b31;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;padding:12px 14px;display:flex}.photo-search-result strong{min-width:0;display:block}.photo-search-result span{color:#a9a9b2;flex-shrink:0;font-size:12px}.photo-search-result-image{object-fit:cover;object-position:center;background:#08080a;border:1px solid #303038;border-radius:8px;flex:0 0 72px;width:72px;height:72px}.export-page{background:#17171a;min-height:100vh;padding:24px}.export-actions{justify-content:flex-end;gap:10px;width:min(210mm,100%);margin:0 auto 16px;display:flex}.export-sheet{color:#111;box-sizing:border-box;background:#fff;width:min(210mm,100%);min-height:297mm;margin:0 auto;padding:16mm;font-family:Arial,Helvetica,sans-serif;box-shadow:0 8px 30px #00000059}.export-header{border-bottom:3px solid #111;align-items:center;gap:18px;margin-bottom:22px;padding-bottom:16px;display:flex}.export-header img{object-fit:contain;width:82px;height:82px}.export-header strong{letter-spacing:1.5px;font-size:13px;display:block}.export-header h1{margin:4px 0;font-size:25px;line-height:1.1}.export-header p{margin:0;font-size:12px;font-weight:700}.export-identification{grid-template-columns:48mm 1fr;align-items:start;gap:18px;margin-bottom:22px;display:grid}.export-photo{background:#f1f1f1;border:1px solid #aaa;justify-content:center;align-items:center;width:48mm;min-height:58mm;display:flex;overflow:hidden}.export-photo img{object-fit:contain;width:100%;height:auto;max-height:70mm;display:block}.export-photo-empty{color:#777;justify-content:center;align-items:center;width:100%;min-height:58mm;font-size:11px;font-weight:700;display:flex}.export-main-data{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.export-field{box-sizing:border-box;border:1px solid #ccc;min-height:48px;padding:9px 10px}.export-field-full{grid-column:1/-1}.export-field span{color:#666;text-transform:uppercase;margin-bottom:5px;font-size:10px;font-weight:700;display:block}.export-field strong{overflow-wrap:anywhere;font-size:12px;line-height:1.4;display:block}.export-section{break-inside:avoid;border:1px solid #bbb;margin-top:14px}.export-section h2{letter-spacing:.4px;background:#ededed;border-bottom:1px solid #bbb;margin:0;padding:7px 10px;font-size:11px}.export-section p{white-space:pre-wrap;overflow-wrap:anywhere;min-height:38px;margin:0;padding:10px;font-size:11px;line-height:1.5}.export-footer{color:#666;border-top:1px solid #bbb;justify-content:space-between;gap:12px;margin-top:22px;padding-top:8px;font-size:9px;display:flex}@media (max-width:700px){.export-page{padding:10px}.export-sheet{min-height:auto;padding:18px}.export-identification{grid-template-columns:1fr}.export-photo{width:100%;max-width:220px;min-height:220px;margin:0 auto}.export-main-data{grid-template-columns:1fr}.export-field-full{grid-column:auto}}@media print{@page{size:A4;margin:0}body{background:#fff!important}.export-page{background:#fff;min-height:0;padding:0}.export-actions{display:none!important}.export-sheet{width:210mm;min-height:297mm;box-shadow:none;margin:0;padding:16mm}}
