*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Pretendard,Apple SD Gothic Neo,sans-serif;background:#f4f5f7;color:#1a1a1a}.app{max-width:720px;margin:0 auto;padding:16px 16px 64px}.page h1{font-size:1.4rem;margin-bottom:4px}.subtitle{color:#666;margin-top:0;margin-bottom:20px;font-size:.9rem}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;font-size:.9rem;font-weight:600}.field input,.field select{font-weight:400;font-size:1rem;padding:10px 12px;border:1px solid #d5d7dc;border-radius:8px;background:#fff}.upload-form,.login-form{background:#fff;padding:20px;border-radius:12px;box-shadow:0 1px 3px #00000014}.store-select{position:relative}.store-select input{width:100%;font-size:1rem;padding:10px 12px;border:1px solid #d5d7dc;border-radius:8px}.store-select-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;max-height:260px;overflow-y:auto;background:#fff;border:1px solid #d5d7dc;border-radius:8px;box-shadow:0 4px 12px #0000001a;z-index:20}.store-select-item{display:flex;justify-content:space-between;width:100%;padding:10px 12px;border:none;background:none;text-align:left;cursor:pointer;font-size:.95rem}.store-select-item:hover{background:#f0f4ff}.store-region{color:#888;font-size:.8rem}.store-select-empty{padding:10px 12px;color:#999;font-size:.9rem}.store-contact{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-weight:400}.store-contact-name{font-size:.95rem;color:#33395c}.store-contact-tel{display:inline-block;padding:8px 14px;border-radius:999px;background:#f0f4ff;border:1px solid #d5e0ff;color:#2b3f8f;font-size:1.05rem;font-weight:600;letter-spacing:.02em;text-decoration:none}.store-contact-tel:active{background:#dfe7ff}.store-contact-hint{font-size:.8rem;color:#999;font-weight:400}.worker-progress-toggle{display:flex;align-items:center;gap:10px;width:100%;padding:10px 2px;background:none;border:none;font-size:1rem;font-weight:600;color:#33395c;text-align:left;cursor:pointer}.worker-progress-sub{font-size:.8rem;font-weight:400;color:#888}.worker-progress-table td,.worker-progress-table th{white-space:nowrap}.worker-progress-table .worker-sub{color:#888;font-size:.85rem}.worker-title{margin-left:6px;padding:1px 5px;border-radius:4px;background:#eef1f8;color:#5a648c;font-size:.7rem}.worker-regions{display:block;color:#999;font-size:.72rem;white-space:nowrap}.worker-row-zero td{color:#b4b8c2}.worker-row-subtotal td{background:#f6f8fd;font-weight:600}.worker-row-outsider td{background:#fff7e6;color:#8a6400}.worker-note-warn{color:#8a6400}.worker-select{display:flex;flex-direction:column;gap:8px}.worker-select select{width:100%;font-size:1rem;padding:10px 12px;border:1px solid #d5d7dc;border-radius:8px;background:#fff;font-weight:400}.worker-name-select{width:100%}.worker-selected-info{background:#f0f4ff;border:1px solid #d5e0ff;border-radius:8px;padding:8px 12px;font-size:.85rem;font-weight:400;color:#33395c;line-height:1.5}.photo-row{display:flex;flex-direction:column;gap:16px;margin-bottom:16px}.dropzone{border:2px dashed #cfd3da;border-radius:10px;padding:12px;background:#fafbfc}.dropzone-over{border-color:#6b8afd;background:#f0f4ff}.dropzone-header{display:flex;justify-content:space-between;margin-bottom:8px;font-size:.9rem}.dropzone-count{color:#888}.dropzone-add-btn{width:100%;padding:10px;border-radius:8px;border:1px solid #d5d7dc;background:#fff;font-size:.95rem;cursor:pointer}.thumb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:8px;margin-top:10px}.thumb{position:relative;aspect-ratio:1 / 1;border-radius:6px;overflow:hidden;background:#eee}.thumb img{width:100%;height:100%;object-fit:cover;display:block}.thumb-fallback{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:6px;text-align:center;background:#e9edf5;color:#5b6472}.thumb-fallback-badge{font-size:.7rem;font-weight:700;padding:1px 6px;border-radius:999px;background:#d7deeb;color:#40495a}.thumb-fallback-text{font-size:.65rem;line-height:1.3;white-space:pre-line}.thumb-button{display:block;width:100%;padding:0;border:none;cursor:pointer}.photo-lightbox-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000d9;display:flex;align-items:center;justify-content:center;z-index:60;padding:24px}.photo-lightbox-img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}.photo-lightbox-close{position:absolute;top:16px;right:16px;border:none;background:#ffffffeb;border-radius:8px;padding:8px 14px;cursor:pointer;font-size:.9rem}.thumb-remove{position:absolute;top:2px;right:2px;width:20px;height:20px;border-radius:50%;border:none;background:#0009;color:#fff;cursor:pointer;font-size:.8rem;line-height:1}.progress-track{width:100%;height:6px;border-radius:999px;background:#e4e8f0;overflow:hidden;margin-bottom:10px}.progress-fill{height:100%;background:#2f6fed;border-radius:999px;transition:width .2s ease}.submit-btn{width:100%;padding:14px;border:none;border-radius:10px;background:#2f6fed;color:#fff;font-size:1rem;font-weight:600;cursor:pointer}.submit-btn:disabled{background:#b7c3e0;cursor:not-allowed}.alert{padding:10px 12px;border-radius:8px;font-size:.9rem;margin-bottom:12px}.alert-error{background:#fdeceb;color:#b3261e}.alert-success{background:#e7f6ec;color:#1e7a3a}.alert-warning{background:#fff5e5;color:#8a5a00}.alert-sub{font-size:.82rem;opacity:.85}.app-footer{text-align:center;margin-top:24px;font-size:.85rem}.app-footer a{color:#2f6fed;text-decoration:none}.admin-page{max-width:100%}.admin-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:16px}.admin-actions{display:flex;gap:8px}.btn-secondary{padding:8px 14px;border-radius:8px;border:1px solid #d5d7dc;background:#fff;font-size:.9rem;cursor:pointer;text-decoration:none;color:#1a1a1a}.stats-card{background:#fff;border-radius:12px;padding:16px;margin-bottom:16px;box-shadow:0 1px 3px #00000014}.stats-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;text-align:center;margin-bottom:16px}.stats-number{font-size:1.4rem;font-weight:700}.stats-completed{color:#1e7a3a}.stats-pending{color:#b3261e}.stats-prior-done{color:#3b4cca}.stats-note{margin:-8px 0 12px;font-size:.78rem;color:#888}.stats-label{font-size:.8rem;color:#888}.region-table,.requests-table{width:100%;border-collapse:collapse;font-size:.85rem}.region-table th,.region-table td,.requests-table th,.requests-table td{padding:8px 6px;border-bottom:1px solid #eee;text-align:left}.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.filters input,.filters select{padding:8px 10px;border-radius:8px;border:1px solid #d5d7dc}.filters-date-sep{align-self:center;color:#888}.filters-search{min-width:220px}.filters-addr{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.filters-addr-sido{min-width:130px}.filters-addr-q{min-width:240px}.filters-addr-note{align-self:center;font-size:.8rem;color:#b06000}.chip-count{margin-left:5px;font-size:.78rem;color:#999}.chip-on .chip-count{color:#dbe6ff}.td-addr{margin-top:2px;font-size:.78rem;color:#8a8f98;white-space:nowrap}.chip-group{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.chip{padding:7px 12px;border:1px solid #d5d7dc;border-radius:999px;background:#fff;color:#444;font-size:.85rem;line-height:1.2;white-space:nowrap;cursor:pointer}.chip:hover{border-color:#2f6fed;color:#2f6fed}.chip-on{background:#2f6fed;border-color:#2f6fed;color:#fff;font-weight:600}.chip-on:hover{color:#fff}.th-sortable{cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap}.th-sortable:hover{color:#2f6fed}.badge{padding:2px 8px;border-radius:999px;font-size:.75rem;font-weight:600}.badge-completed{background:#e7f6ec;color:#1e7a3a}.badge-pending{background:#fdeceb;color:#b3261e}.badge-prior-done,.badge-maintenance{background:#eef2ff;color:#3b4cca;white-space:nowrap}.store-filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px}.store-filter-hint{font-size:.8rem;color:#667}.store-maintenance{margin-left:6px;padding:1px 6px;border-radius:999px;background:#eef2ff;color:#3b4cca;font-size:.72rem;font-weight:600;white-space:nowrap}.link-btn{border:none;background:none;color:#2f6fed;cursor:pointer;padding:0;font-size:.85rem}.link-btn-danger{color:#b3261e}.row-actions{display:flex;gap:10px}.badge-super{background:#eef0ff;color:#3c3fbf}.inline-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-top:8px;padding-top:16px;border-top:1px solid #eee}.inline-form .field{margin-bottom:0;min-width:160px}.inline-form .submit-btn{width:auto;padding:10px 18px}.pagination{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:16px}.pagination button{padding:6px 12px;border-radius:8px;border:1px solid #d5d7dc;background:#fff;cursor:pointer}.pagination button:disabled{opacity:.4;cursor:not-allowed}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;padding:16px;z-index:50}.modal{background:#fff;border-radius:12px;max-width:720px;width:100%;max-height:85vh;overflow-y:auto;padding:16px}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modal-header button{border:none;background:#f0f0f0;border-radius:6px;padding:6px 10px;cursor:pointer}.modal-body{display:flex;flex-direction:column;gap:16px}@media (min-width: 640px){.photo-row{flex-direction:row}.photo-row>*{flex:1}}html{-webkit-text-size-adjust:100%}body{overflow-x:hidden}.app{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));padding-bottom:calc(64px + env(safe-area-inset-bottom))}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.table-scroll>table{min-width:100%}.requests-table td,.region-table td{overflow-wrap:anywhere}.region-table th:not(:first-child),.region-table td:not(:first-child){white-space:nowrap;text-align:right}.stats-summary{grid-template-columns:repeat(auto-fit,minmax(72px,1fr))}.filters>*{max-width:100%}.filters-search{flex:1 1 220px;min-width:0}.filters-addr{flex:1 1 100%;min-width:0}.filters-addr>*{max-width:100%}.filters-addr-q{flex:1 1 180px;min-width:0}.filters input,.filters select{font-size:16px;max-width:100%}.field input,.field select{width:100%;font-size:16px}.chip{min-height:36px}.store-select-item{min-height:44px;align-items:center;gap:8px}.store-select-item .store-name{overflow-wrap:anywhere}.store-select-dropdown{max-height:min(260px,45vh)}.modal{max-height:85vh;max-height:85dvh}.photo-lightbox-backdrop{padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}img{max-width:100%}@media (max-width: 480px){.app{padding-top:12px;padding-bottom:calc(48px + env(safe-area-inset-bottom))}.page h1{font-size:1.2rem}.upload-form,.login-form,.stats-card{padding:16px}.requests-table,.region-table{font-size:.8rem}.requests-table th,.requests-table td{padding:8px 5px}.stats-number{font-size:1.2rem}.admin-header h1{font-size:1.15rem}.admin-actions{flex-wrap:wrap}.modal{padding:12px}.inline-form .field{min-width:0;flex:1 1 160px}}input[type=date],input[type=datetime-local],input[type=time],input[type=month]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;min-width:0;max-width:100%;min-height:44px;text-align:left;background-color:#fff}.field>input,.field>select,.field>textarea,.field>.store-select{min-width:0;max-width:100%}.field,.upload-form,.login-form{min-width:0}.dropzone-warning{margin-top:8px;padding:8px 10px;border-radius:8px;background:#fff8e6;border:1px solid #f3e0b0;color:#7a5a12;font-size:.8rem;line-height:1.45}.dropzone-warning-error{background:#fdeceb;border-color:#f3c6c2;color:#b3261e}.result-modal{max-width:420px;padding:20px}.result-modal-title{margin:0 0 10px;font-size:1.05rem;color:#1e7a3a}.result-modal-title-error{color:#b3261e}.result-modal-message{margin:0 0 12px;font-size:.92rem;line-height:1.55;color:#333;white-space:pre-line;overflow-wrap:anywhere}.result-modal-hint{margin:0 0 16px;padding:10px 12px;border-radius:8px;background:#f4f6fa;font-size:.82rem;line-height:1.6;color:#4a5060}.result-modal-actions{display:flex;gap:8px}.result-modal-actions>*{flex:1;min-height:46px}.result-modal-primary{width:auto;padding:12px;font-size:.95rem}.checkbox-row{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:500}.checkbox-row input[type=checkbox]{width:18px;height:18px;flex:none;margin:0}.field-hint{margin:6px 0 0;font-size:.82rem;color:#8a5a00}.timeline{display:flex;flex-direction:column;gap:18px}.timeline-empty{color:#888;font-size:.9rem;padding:16px 0}.timeline-day-date{font-weight:700;margin-bottom:8px;border-bottom:1px solid #e6e6e6;padding-bottom:6px}.timeline-day-count{font-weight:400;font-size:.82rem;color:#888;margin-left:6px}.timeline-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.timeline-item{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.9rem}.timeline-store{font-weight:600}.timeline-meta{color:#888;font-size:.82rem}.store-locked{margin-left:6px;padding:1px 6px;border-radius:999px;background:#fff5e5;color:#8a5a00;font-size:.72rem;font-weight:600;white-space:nowrap}.settings-card{background:#fff;border-radius:12px;padding:16px;margin-bottom:16px;box-shadow:0 1px 3px #00000014}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.settings-label{font-weight:600;margin-bottom:4px}.settings-desc{font-size:.82rem;color:#888;line-height:1.5}.settings-alert{margin:10px 0 0}.settings-saved{margin:10px 0 0;font-size:.82rem;color:#1e7a3a}.toggle-switch{position:relative;flex:none;width:52px;height:30px;padding:0;border:none;border-radius:999px;background:#c9ccd1;cursor:pointer;transition:background .15s ease}.toggle-switch.toggle-on{background:#2f6fed}.toggle-switch:disabled{opacity:.5;cursor:default}.toggle-thumb{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #00000040;transition:transform .15s ease}.toggle-switch.toggle-on .toggle-thumb{transform:translate(22px)}.refreshed-at{margin:-6px 0 12px;font-size:.8rem;color:#888;text-align:right}.alert-info{background:#eef4ff;color:#1f4fb0}.badge-unregistered{margin-left:6px;background:#f3e8ff;color:#7a3cb8;white-space:nowrap}.stats-unregistered{color:#7a3cb8}.admin-create-form{display:flex;flex-direction:column;gap:12px}.th-check,.td-check{width:34px;padding-right:0;text-align:center}.requests-table tr.row-selected td{background:var(--row-selected, #eef4ff)}.billed-cell{display:inline-flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap}.billed-on{font-size:.8rem;font-weight:600;color:#1e7a3a}.billed-off{font-size:.8rem;color:#999}.billed-na{font-size:.8rem;color:#c3cac8;-webkit-user-select:none;user-select:none}.bulk-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 10px;padding:10px 14px;background:#eef4ff;border:1px solid #d6e2f7;border-radius:8px}.bulk-count{font-weight:600;font-size:.9rem;color:#1f4fb0}.done-notice{line-height:1.6}.store-done{margin-left:6px;padding:1px 6px;border-radius:999px;background:#e7f6ec;color:#1e7a3a;font-size:.72rem;font-weight:600;white-space:nowrap}.store-unregistered{margin-left:6px;padding:1px 6px;border-radius:999px;background:#f3e8ff;color:#7a3cb8;font-size:.72rem;font-weight:600;white-space:nowrap}.duplicate-list{margin:6px 0 4px;padding-left:18px}.duplicate-list li{margin:2px 0}
