:root{color-scheme:light;--ink:#1d2926;--muted:#71807b;--green:#173b35;--green2:#e8f0ed;--line:#e2e8e5;--paper:#f7f9f8;--danger:#a43d35;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);min-height:100vh}
.topbar{background:var(--green);color:white;padding:25px 22px 23px;display:flex;align-items:center;justify-content:space-between}.topbar h1{font-size:25px;letter-spacing:-.5px;margin:4px 0 0}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:700;color:var(--muted);margin:0 0 7px}.topbar .eyebrow{color:#c1d5ce}.lockmark{font-size:15px;color:#9dd2b8}
main{max-width:680px;margin:0 auto;padding:22px 18px 36px}.section-heading,.detail-title-row,.field-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-heading{margin-bottom:18px}h2{font-size:22px;margin:0;letter-spacing:-.4px}h3{font-size:16px;margin:0 0 8px}.muted{color:var(--muted);font-size:12px;margin:5px 0 0}
button{font:inherit;cursor:pointer;border:0}.primary{background:var(--green);color:white;border-radius:12px;padding:12px 16px;font-weight:650;min-height:44px}.secondary{background:var(--green2);color:var(--green);border-radius:10px;padding:10px 14px;font-weight:600;min-height:42px}.cards-list{display:grid;gap:10px}.card-row{width:100%;display:flex;align-items:center;gap:8px;background:white;border:1px solid var(--line);border-radius:15px;padding:6px 10px 6px 6px;min-height:76px;touch-action:pan-y}.card-open{min-width:0;flex:1;display:flex;align-items:center;gap:14px;background:transparent;padding:7px;text-align:left;color:inherit}.thumb{width:58px;height:48px;border-radius:8px;object-fit:cover;background:#edf1ef;flex:none}.card-row .name{font-weight:650;flex:1}.card-row .arrow{color:#87958f;font-size:23px}.drag-handle{width:42px;height:48px;flex:none;border-radius:9px;background:#f0f4f2;color:#64756e;font-size:25px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}.drag-handle:active{cursor:grabbing}.card-row.dragging{opacity:.45;border:2px dashed var(--green);background:var(--green2)}.empty{background:white;border:1px dashed #cbd7d1;border-radius:17px;padding:34px 22px;text-align:center;margin-top:12px}.empty-icon{font-size:36px;color:#82958c}.empty h3{margin-top:10px}.empty p{color:var(--muted);font-size:14px;line-height:1.5;max-width:310px;margin:8px auto 18px}.hidden{display:none!important}
.back-button{background:none;color:var(--green);font-weight:650;padding:4px 0 18px;font-size:15px}.detail-title-row{margin-bottom:18px}.detail-images{display:grid;gap:18px}.image-block{background:white;border:1px solid var(--line);border-radius:15px;padding:12px}.image-block .eyebrow{margin-bottom:10px}.card-image{display:block;width:100%;max-height:55vh;object-fit:contain;border-radius:8px;background:#eef1ef;cursor:zoom-in}.notes-panel{background:white;border:1px solid var(--line);border-radius:15px;padding:16px;margin-top:16px}.notes-panel p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin:0}.danger-outline{margin-top:20px;border:1px solid #e7c9c6;color:var(--danger);background:white;border-radius:10px;padding:11px 15px}
form{margin-top:20px}label{display:block;font-size:14px;font-weight:650;margin:0 0 8px}input[type=text],input:not([type=file]),textarea{width:100%;font:inherit;border:1px solid #d6dfda;background:white;border-radius:10px;padding:12px;color:var(--ink);font-size:16px}input[type=file]{display:block;width:100%;font-size:13px;margin:8px 0}textarea{resize:vertical;line-height:1.45}.photo-field{margin:21px 0}.field-heading label{margin:0}.preview{width:100%;min-height:94px;max-height:190px;border-radius:10px;overflow:hidden}.preview img{width:100%;height:190px;object-fit:contain;background:#edf1ef}.empty-preview{background:#edf1ef;color:var(--muted);display:grid;place-items:center;font-size:13px}.text-button{background:none;color:var(--green);padding:9px 0;font-weight:600}.required,.error{color:var(--danger)}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.error{font-size:13px;min-height:18px}
footer{display:flex;justify-content:space-between;gap:10px;max-width:680px;margin:0 auto;padding:14px 20px 25px;color:var(--muted);font-size:11px}.viewer{position:fixed;inset:0;background:rgba(0,0,0,.94);z-index:10;display:grid;place-items:center;padding:55px 12px 20px}.viewer img{max-width:100%;max-height:100%;object-fit:contain}.viewer-close{position:absolute;right:18px;top:calc(env(safe-area-inset-top) + 12px);background:#333;color:white;border-radius:50%;width:42px;height:42px;font-size:18px}
@media(min-width:600px){main{padding-top:30px}.card-row{min-width:0}}
