*{box-sizing:border-box}body{margin:0;background:#f2f6fb;color:#10294e;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px}header{height:58px;background:#193d70;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(16px,calc((100% - 980px)/2));font-weight:700}header a{color:white;text-decoration:none}main{max-width:980px;margin:18px auto;padding:0 14px}.card{background:white;border:1px solid #d5e0ef;border-radius:14px;padding:20px;margin:14px 0;box-shadow:0 2px 8px #193d7010}.login{max-width:620px;margin-top:34px}.login .card{padding:28px}h1{font-size:1.35rem;margin:0 0 10px}h2{font-size:1.15rem;margin:0 0 16px}h3{margin:0 0 8px;font-size:1.08rem}.muted,small{color:#6680a2}.top{display:flex;justify-content:space-between;align-items:center}.top p{margin:0}.filters form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}label{font-weight:650;font-size:.9rem;display:block;margin:13px 0 6px}input,select,textarea{font:inherit;color:inherit;border:1px solid #c6d5e8;border-radius:9px;padding:11px 12px;width:100%;background:white}input[type=checkbox],input[type=file]{width:auto}button,.button{border:0;border-radius:9px;padding:11px 16px;background:#e8eef7;color:#143c70;font-weight:700;font-size:1rem;cursor:pointer;text-decoration:none;display:inline-block}.primary{background:#2860e9;color:#fff}.danger{color:#a31919;background:#ffeded}.filters input,.filters select{width:auto;min-width:140px}.filters button{align-self:end}.assignees{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:8px}.check{display:flex;align-items:center;gap:8px;border:1px solid #d5e0ef;border-radius:8px;padding:9px;margin:0}.tasklist h2{margin:24px 4px 10px}.task{border-left:5px solid #2860e9}.task.done{border-left-color:#16a085;background:#f9fffc}.taskhead{display:flex;justify-content:space-between;gap:12px}.taskhead p{margin:6px 0}.badge{background:#eef3fc;color:#31537f;padding:6px 10px;border-radius:999px;white-space:nowrap;height:max-content}.done .badge{background:#d8f5e8;color:#08704f}.photos{display:flex;gap:8px;overflow:auto;margin:12px 0}.photos img{width:120px;height:100px;object-fit:cover;border-radius:8px;border:1px solid #d5e0ef}.doneby{font-size:.9rem;color:#176b54}.actions,.actions form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.actions form:first-child{flex:1}.actions input[name=completion_note]{flex:1;min-width:150px}.filebtn{border:1px solid #d5e0ef;border-radius:8px;padding:9px;cursor:pointer;margin:0}.filebtn input{max-width:180px}.empty{color:#6680a2}.flash{padding:10px;border-radius:8px;background:#eaf2ff;color:#17417d;margin:10px 0}.flash.error{background:#fff0f0;color:#a31919}.flash.success{background:#e7fbf2;color:#08704f}.employee{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e0e8f2;padding:10px 0}.employee form{margin:0}details{margin-top:24px;border-top:1px solid #e0e8f2;padding-top:16px}summary{cursor:pointer;color:#59728f}@media(max-width:600px){main{margin:10px auto;padding:0 10px}.card{padding:15px}.login .card{padding:20px}.actions form:first-child{width:100%}.taskhead{align-items:flex-start}}
.import-card{border-top:5px solid #2860e9}.import-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;background:#f4f8ff;border:1px dashed #adc3e2;border-radius:10px}.import-form input[type=file]{flex:1;min-width:220px}.gallery-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:16px 0 8px}.gallery-head h3{margin:0}.photo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:145px;gap:10px;max-height:310px;overflow-y:auto;padding:2px 6px 2px 2px;overscroll-behavior:contain}.staged-photo{position:relative;display:flex;flex-direction:column;margin:0;min-width:0;height:145px;border:1px solid #cbd9ea;border-radius:10px;overflow:hidden;background:#f8fafc;cursor:grab}.staged-photo img{width:100%;height:105px;object-fit:cover;pointer-events:none}.staged-photo.selected{outline:3px solid #2860e9;outline-offset:1px}.staged-photo.dragging{opacity:.45}.photo-caption{display:flex;align-items:center;gap:6px;padding:5px 7px;font-size:.75rem;min-width:0}.photo-caption span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-caption input{flex:none}.gallery-empty{padding:16px;color:#6680a2;background:#f8fafc;border-radius:9px}.photo-dropzone{border:2px dashed #9bb4d4;border-radius:12px;background:#f8fbff;padding:14px;min-height:118px;transition:.15s}.photo-dropzone strong,.photo-dropzone>span{display:block}.photo-dropzone>span{font-size:.85rem;color:#6680a2;margin:4px 0 10px}.photo-dropzone.drag-over{border-color:#2860e9;background:#eaf1ff;box-shadow:0 0 0 3px #2860e922}.selected-photos{display:flex;gap:8px;flex-wrap:wrap}.group-empty{font-size:.9rem;color:#7890ad;padding:6px 2px}.selected-photo{display:flex;align-items:center;gap:6px;width:145px;padding:5px;border:1px solid #d2deed;border-radius:8px;background:white;font-size:.75rem}.selected-photo img{width:44px;height:44px;object-fit:cover;border-radius:5px}.selected-photo span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-actions{display:flex;justify-content:space-between;gap:10px;margin-top:12px}.group-actions .primary{margin-left:auto}@media(max-width:600px){.photo-gallery{grid-auto-rows:115px;gap:7px;max-height:250px}.staged-photo{height:115px}.staged-photo img{height:78px}.photo-caption{padding:4px;font-size:.68rem;gap:4px}.gallery-head{align-items:flex-start;flex-direction:column}.import-form input[type=file]{width:100%;min-width:0}.group-actions{flex-wrap:wrap}.group-actions .primary{margin-left:0}.selected-photo{width:calc(50% - 4px)}}
.group-form{margin-top:18px}.group-setup{padding:14px;border:1px solid #d5e0ef;border-radius:12px;background:#fbfdff}.group-setup h3{margin-bottom:4px}.group-setup>label{margin-top:12px}.task-presets{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:7px}.preset{padding:9px 10px;text-align:left;background:#fff;border:1px solid #cbd9ea;font-size:.9rem}.preset.active{background:#e8f0ff;border-color:#2860e9;box-shadow:inset 0 0 0 1px #2860e9;color:#16418a}.custom-title{margin-top:8px}.group-setup .assignees{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));max-height:190px;overflow-y:auto;padding:2px;overscroll-behavior:contain}.group-setup .check{min-height:40px;padding:7px 9px}.group-setup .check input{width:18px;height:18px;flex:none}.group-setup textarea{resize:vertical}.group-setup .photo-dropzone{margin-top:12px;background:#f0f6ff}.group-setup .photo-dropzone strong{font-size:1rem}.group-setup .group-actions{position:sticky;bottom:0;z-index:2;padding:8px 0 2px;background:#fbfdff}.group-actions button{min-height:44px}.group-actions .primary{flex:1}.photo-gallery{touch-action:pan-y}.staged-photo{touch-action:pan-y;user-select:none;-webkit-user-select:none}.staged-photo.selected{background:#eaf1ff}.photo-caption input{width:20px;height:20px}@media(max-width:600px){.group-form{margin-top:12px}.group-setup{padding:11px}.task-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.preset{min-height:42px;padding:8px;font-size:.82rem}.group-setup .assignees{grid-template-columns:repeat(2,minmax(0,1fr));max-height:180px}.group-setup .check{font-size:.82rem;min-height:42px}.group-actions{position:sticky;bottom:0}.group-actions button{font-size:.9rem;padding:11px 10px}.photo-gallery{max-height:270px}}
