*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{color:#1a1a2e;-webkit-font-smoothing:antialiased;background:#f0f2f5;font-family:system-ui,-apple-system,Helvetica Neue,sans-serif;font-size:16px}#root{min-height:100svh}button{font-family:inherit}select,input,textarea{font-family:inherit;font-size:16px}.page{background:#fff;flex-direction:column;max-width:480px;min-height:100svh;margin:0 auto;display:flex}.page-header{z-index:10;background:#fff;border-bottom:1px solid #e8eaed;padding:14px 16px 12px;position:sticky;top:0}.page-header h1{color:#1a1a2e;font-size:17px;font-weight:700}.page-header .sub{color:#6b7280;margin-top:2px;font-size:12px}.page-body{flex:1;padding:20px 16px 40px}.steps{align-items:center;gap:6px;margin-bottom:20px;display:flex}.step-bar{background:#e5e7eb;border-radius:3px;flex:1;height:5px}.step-bar.done{background:#22c55e}.step-bar.active{background:#3b82f6}.step-text{color:#6b7280;white-space:nowrap;font-size:12px}.section-title{color:#1a1a2e;margin-bottom:6px;font-size:19px;font-weight:700}.section-desc{color:#6b7280;margin-bottom:20px;font-size:14px;line-height:1.6}.btn{cursor:pointer;text-align:center;border:none;border-radius:10px;width:100%;padding:15px 16px;font-size:16px;font-weight:600;line-height:1.2;transition:opacity .1s,transform 50ms;display:block}.btn:active{opacity:.82;transform:scale(.98)}.btn-primary{color:#fff;background:#3b82f6}.btn-success{color:#fff;background:#22c55e}.btn-ghost{color:#374151;background:#f3f4f6}.btn-danger{color:#fff;background:#ef4444}.btn-row{flex-direction:column;gap:10px;margin-top:24px;display:flex}.form-group{margin-bottom:22px}.form-label{color:#374151;margin-bottom:8px;font-size:14px;font-weight:600;display:block}.form-label .optional{color:#9ca3af;margin-left:6px;font-size:12px;font-weight:400}.form-select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center no-repeat;border:2px solid #d1d5db;border-radius:10px;width:100%;padding:13px 40px 13px 12px;font-size:16px}.form-select:focus{border-color:#3b82f6;outline:none}.form-input{background:#fff;border:2px solid #d1d5db;border-radius:10px;width:100%;padding:13px 12px;font-size:16px}.form-input:focus{border-color:#3b82f6;outline:none}.form-textarea{resize:vertical;border:2px solid #d1d5db;border-radius:10px;width:100%;min-height:80px;padding:12px;font-size:15px}.form-textarea:focus{border-color:#3b82f6;outline:none}.option-card{cursor:pointer;text-align:left;background:#fff;border:2px solid #e5e7eb;border-radius:12px;width:100%;margin-bottom:12px;padding:16px;transition:border-color .1s,background .1s}.option-card:active{transform:scale(.98)}.option-card.selected{background:#eff6ff;border-color:#3b82f6}.option-card-title{color:#1a1a2e;margin-bottom:4px;font-size:16px;font-weight:700}.option-card-desc{color:#6b7280;font-size:13px;line-height:1.5}.radio-list{flex-direction:column;gap:8px;display:flex}.radio-item{cursor:pointer;border:2px solid #e5e7eb;border-radius:10px;align-items:center;gap:10px;padding:12px 14px;transition:border-color .1s,background .1s;display:flex}.radio-item.selected{background:#eff6ff;border-color:#3b82f6}.radio-item input[type=radio]{accent-color:#3b82f6;flex-shrink:0;width:18px;height:18px}.radio-item-label{color:#1a1a2e;font-size:15px;font-weight:500}.chip-row{flex-wrap:wrap;gap:8px;display:flex}.chip{color:#374151;cursor:pointer;background:#fff;border:2px solid #e5e7eb;border-radius:8px;padding:9px 16px;font-size:14px;font-weight:500;transition:all .1s}.chip:active{transform:scale(.95)}.chip.selected{color:#1d4ed8;background:#eff6ff;border-color:#3b82f6;font-weight:700}.calendar-tabs{border:2px solid #3b82f6;border-radius:10px;margin-bottom:18px;display:flex;overflow:hidden}.calendar-tab{cursor:pointer;color:#3b82f6;background:#fff;border:none;flex:1;padding:11px;font-size:15px;font-weight:700}.calendar-tab.active{color:#fff;background:#3b82f6}.calendar-legend{justify-content:center;gap:14px;margin-bottom:14px;display:flex}.legend-item{color:#6b7280;align-items:center;gap:5px;font-size:12px;display:flex}.legend-dot{border-radius:4px;width:14px;height:14px}.legend-dot.avail{background:#22c55e}.legend-dot.unavail{background:#ef4444}.legend-dot.unset{background:#e5e7eb;border:1px solid #d1d5db}.calendar-month{margin-bottom:18px}.calendar-month-label{color:#6b7280;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px;font-size:13px;font-weight:700}.cal-header,.cal-grid{grid-template-columns:repeat(7,1fr);gap:3px;display:grid}.cal-header{margin-bottom:3px}.cal-header-cell{text-align:center;color:#9ca3af;padding:3px 0;font-size:11px;font-weight:700}.cal-header-cell.sat{color:#3b82f6}.cal-header-cell.sun{color:#ef4444}.cal-cell{aspect-ratio:1;cursor:pointer;border:none;border-radius:7px;flex-direction:column;justify-content:center;align-items:center;gap:1px;min-height:44px;transition:transform 60ms;display:flex;position:relative}.cal-cell:active{transform:scale(.88)}.cal-cell.unset{background:#e5e7eb}.cal-cell.avail{background:#22c55e}.cal-cell.unavail{background:#ef4444}.cal-cell-date{color:#374151;font-size:13px;font-weight:700;line-height:1}.cal-cell.avail .cal-cell-date,.cal-cell.unavail .cal-cell-date{color:#fff}.cal-cell-mark{color:#9ca3af;font-size:10px;line-height:1}.cal-cell.avail .cal-cell-mark,.cal-cell.unavail .cal-cell-mark{color:#fffc}.cal-cell.holiday:after{content:"";background:#f59e0b;border-radius:50%;width:5px;height:5px;position:absolute;top:3px;right:3px}.cal-empty{min-height:44px}.cal-cell.locked{cursor:not-allowed;background-image:repeating-linear-gradient(45deg,#e5e7eb,#e5e7eb 4px,#f3f4f6 4px 8px)}.cal-cell.locked .cal-cell-date{color:#9ca3af}.cal-cell.locked .cal-cell-mark{color:#6b7280;font-size:9px;font-weight:700}.legend-dot.locked{background-image:repeating-linear-gradient(45deg,#d1d5db,#d1d5db 3px,#f3f4f6 3px 6px);border:1px solid #d1d5db}.contract-note{color:#6b7280;text-align:center;margin-top:2px;margin-bottom:14px;font-size:12px}.contract-note.warn{color:#b45309;font-weight:600}.contract-warn-tag{color:#92400e;background:#fef3c7;border-radius:10px;margin-left:6px;padding:1px 8px;font-size:11px;font-weight:700}.period-row{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;flex-direction:column;gap:8px;margin-bottom:10px;padding:12px;display:flex}.period-dates{align-items:center;gap:8px;display:flex}.period-dates .form-input{flex:1;padding:10px 8px;font-size:14px}.period-tilde{color:#9ca3af;flex-shrink:0}.period-remove{color:#dc2626;cursor:pointer;background:0 0;border:none;align-self:flex-start;padding:0;font-size:12px;text-decoration:underline}.stats-row{text-align:center;background:#f9fafb;border-radius:10px;gap:10px;margin-bottom:14px;padding:12px;display:flex}.stats-item{flex:1}.stats-value{font-size:22px;font-weight:800;line-height:1.1}.stats-label{color:#9ca3af;margin-top:2px;font-size:11px}.stats-value.avail{color:#16a34a}.stats-value.unavail{color:#dc2626}.stats-value.unset{color:#9ca3af}.overlay{z-index:50;background:#00000073;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.bottom-sheet{background:#fff;border-radius:20px 20px 0 0;width:100%;max-width:480px;padding:20px 16px 36px}.sheet-handle{background:#e5e7eb;border-radius:2px;width:40px;height:4px;margin:0 auto 16px}.sheet-title{margin-bottom:10px;font-size:17px;font-weight:700}.sheet-body{color:#374151;background:#f9fafb;border-radius:8px;margin-bottom:8px;padding:12px;font-size:14px;line-height:1.8}.sheet-note{color:#6b7280;margin-bottom:16px;font-size:13px}.summary-block{margin-bottom:20px}.summary-block-title{text-transform:uppercase;letter-spacing:.06em;color:#9ca3af;margin-bottom:8px;font-size:12px;font-weight:700}.summary-row{border-bottom:1px solid #f3f4f6;align-items:flex-start;gap:8px;padding:9px 0;font-size:14px;display:flex}.summary-key{color:#6b7280;flex-shrink:0;width:90px;padding-top:1px}.summary-val{color:#1a1a2e;font-weight:500;line-height:1.5}.shift-badge{border-radius:12px;padding:2px 10px;font-size:12px;font-weight:700;display:inline-block}.shift-badge.morning{color:#78350f;background:#fef9c3}.shift-badge.evening{color:#1e3a8a;background:#dbeafe}.shift-badge.both{color:#5b21b6;background:#f3e8ff}.complete-wrap{text-align:center;flex-direction:column;align-items:center;padding:40px 16px 20px;display:flex}.complete-icon{margin-bottom:20px;font-size:72px}.complete-title{margin-bottom:10px;font-size:22px;font-weight:800}.complete-msg{color:#6b7280;margin-bottom:20px;font-size:15px;line-height:1.7}.complete-note{color:#15803d;background:#dcfce7;border-radius:10px;width:100%;margin-bottom:24px;padding:14px 16px;font-size:14px;font-weight:600}.admin-tabs{border-bottom:2px solid #e5e7eb;margin-bottom:20px;display:flex}.admin-tab{color:#6b7280;cursor:pointer;background:0 0;border:none;border-bottom:3px solid #0000;flex:1;margin-bottom:-2px;padding:12px 4px;font-size:13px;font-weight:600}.admin-tab.active{color:#3b82f6;border-bottom-color:#3b82f6}.submission-rate{color:#3b82f6;text-align:center;margin-bottom:4px;font-size:40px;font-weight:800}.submission-rate-label{color:#6b7280;text-align:center;margin-bottom:20px;font-size:14px}.status-badge{white-space:nowrap;border-radius:12px;padding:4px 12px;font-size:12px;font-weight:700}.status-badge.submitted{color:#15803d;background:#dcfce7}.status-badge.absent{color:#92400e;background:#fef9c3}.status-badge.pending{color:#991b1b;background:#fee2e2}.status-badge.alert-badge{color:#dc2626;background:#fee2e2}.status-list{flex-direction:column;display:flex}.staff-row{border-bottom:1px solid #f3f4f6;padding:12px 0}.staff-row-pending{background:#fff5f5}.staff-row-main{flex-wrap:wrap;align-items:center;gap:6px 16px;font-size:13px;display:flex}.sr-cell{white-space:nowrap}.sr-name{color:#1a1a2e;font-size:15px;font-weight:700}.staff-row-pending .sr-name{color:#dc2626}.sr-muted{color:#6b7280}.unconfirmed-banner{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;margin-bottom:16px;padding:10px 14px;font-size:14px;font-weight:700}.change-alert{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;margin-top:8px;padding:10px 12px;font-size:13px}.change-alert-header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;font-weight:700;display:flex}.change-alert-diff{color:#7f1d1d;font-family:ui-monospace,monospace;font-size:12px;line-height:1.8}.change-alert-more{color:#b91c1c;cursor:pointer;background:0 0;border:none;margin-top:4px;padding:0;font-size:12px;text-decoration:underline}.shortage-summary{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;gap:16px;margin-bottom:16px;padding:14px 16px;font-size:14px;font-weight:600;display:flex}.table-wrap{-webkit-overflow-scrolling:touch;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:center;white-space:nowrap;border-bottom:1px solid #f3f4f6;padding:8px 6px}th{color:#6b7280;background:#f9fafb;font-size:11px;font-weight:700}tr.shortage-row td{color:#dc2626;background:#fef2f2}tr.shortage-row td:not(.shortage-val){color:#991b1b}.shortage-val{font-weight:800}td.ok-val{color:#16a34a;font-weight:700}td input[type=number]{text-align:center;border:1px solid #d1d5db;border-radius:6px;width:58px;padding:4px 6px;font-size:13px}.cond-row{border-bottom:1px solid #f3f4f6;align-items:flex-start;gap:8px;padding:12px 0;font-size:13px;display:flex}.cond-name{flex-shrink:0;width:80px;font-weight:700}.cond-detail{color:#374151;flex:1;line-height:1.6}.flag-badge{color:#92400e;white-space:nowrap;background:#fef3c7;border-radius:8px;padding:2px 7px;font-size:11px;font-weight:700}.cond-limit-diff{color:#b45309;font-weight:700}.csv-btn-wrap{padding-top:16px}.danger-zone{text-align:center;border-top:1px dashed #e5e7eb;margin-top:40px;padding-top:20px}.btn-sm-danger{color:#dc2626;background:#fff5f5;border-color:#fecaca}.url-list{flex-direction:column;display:flex}.url-row{border-bottom:1px solid #f3f4f6;padding:12px 0}.url-row-main{flex-wrap:wrap;align-items:center;gap:6px 16px;margin-bottom:8px;font-size:13px;display:flex}.url-text{color:#374151;word-break:break-all;font-family:ui-monospace,monospace;font-size:12px}.url-actions{flex-wrap:wrap;gap:8px;display:flex}.url-actions a.btn-sm{text-decoration:none;display:inline-block}.qr-print-area{display:none}@media print{@page{size:A4;margin:12mm}@page shift-print{size:A4 landscape;margin:8mm}body *{visibility:hidden}.qr-print-area,.qr-print-area *,.shift-print-area,.shift-print-area *{visibility:visible}.qr-print-area{grid-template-columns:repeat(2,1fr);width:100%;display:grid;position:absolute;top:0;left:0}.qr-card{break-inside:avoid;border:1px dashed #999;flex-direction:column;justify-content:center;align-items:center;gap:8px;height:65mm;padding:12px;display:flex}.qr-card-name{color:#000;font-size:15px;font-weight:700}.qr-card-url{color:#333;word-break:break-all;text-align:center;font-size:9px}.shift-print-area{page:shift-print;width:100%;position:absolute;top:0;left:0}.shift-print-title{color:#000;margin-bottom:6px;font-size:13px;font-weight:700}.shift-print-table{border-collapse:collapse;width:100%}.shift-print-table th,.shift-print-table td{text-align:center;color:#000;white-space:nowrap;border:1px solid #999;padding:2px 1px;font-size:8px}.shift-print-table th:first-child,.shift-print-table td:first-child{text-align:left;white-space:nowrap;padding-left:4px;font-size:9px}}@media (width>=768px){.url-row-main{flex-wrap:nowrap}.url-row-main .sr-name{flex-shrink:0;width:100px}.url-row-main .url-text{flex:1}.url-row-main .sr-muted{flex-shrink:0;width:120px}}.deadline-label{color:#dc2626;background:#fef2f2;border-radius:10px;margin-top:4px;padding:2px 8px;font-size:11px;font-weight:700;display:inline-block}.status-toolbar{justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}.btn-sm{cursor:pointer;color:#374151;white-space:nowrap;background:#f9fafb;border:1px solid #d1d5db;border-radius:8px;flex-shrink:0;padding:6px 12px;font-size:12px;font-weight:600}.btn-sm:active{opacity:.7}.btn-sm.copied{color:#15803d;background:#dcfce7;border-color:#86efac}.toggle-row{color:#374151;cursor:pointer;align-items:center;gap:8px;font-size:13px;display:flex}.toggle-row input[type=checkbox]{accent-color:#3b82f6;flex-shrink:0;width:16px;height:16px}.bulk-input-area{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:12px;padding:12px 14px}.bulk-label{color:#6b7280;margin-bottom:8px;font-size:12px;font-weight:700}.bulk-method-tabs{border:1px solid #d1d5db;border-radius:8px;margin-bottom:10px;display:flex;overflow:hidden}.bulk-method-tab{cursor:pointer;color:#6b7280;background:#fff;border:none;border-right:1px solid #d1d5db;flex:1;padding:7px 4px;font-size:12px;font-weight:600}.bulk-method-tab:last-child{border-right:none}.bulk-method-tab.active{color:#fff;background:#3b82f6}.bulk-row{align-items:center;gap:8px;display:flex}.bulk-number-input{text-align:center;border:1px solid #d1d5db;border-radius:8px;width:80px;padding:7px 8px;font-size:14px}.bulk-unit{color:#6b7280;font-size:13px}.bulk-apply-btn{cursor:pointer;color:#fff;background:#3b82f6;border:none;border-radius:8px;padding:7px 14px;font-size:13px;font-weight:700}.bulk-apply-btn:active{opacity:.8}.bulk-paste-hint{color:#9ca3af;margin-bottom:6px;font-size:11px}.dow-grid{grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:4px;display:grid}.dow-cell{flex-direction:column;align-items:center;gap:3px;display:flex}.dow-label{color:#6b7280;font-size:11px;font-weight:700}.dow-input{text-align:center;border:1px solid #d1d5db;border-radius:6px;width:100%;padding:5px 2px;font-size:12px}.formula-note{color:#6b7280;background:#f3f4f6;border-radius:6px;margin-bottom:8px;padding:6px 10px;font-size:12px}tr.shortage-row td.ok-val{color:#16a34a}.filter-row{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.filter-chip{cursor:pointer;color:#6b7280;background:#fff;border:2px solid #e5e7eb;border-radius:16px;padding:6px 14px;font-size:12px;font-weight:700}.filter-chip:active{transform:scale(.95)}.filter-chip.active{color:#1d4ed8;background:#eff6ff;border-color:#3b82f6}@media (width>=768px){.admin-page{width:100%;max-width:none}.admin-page .page-header{padding:16px 24px 14px}.admin-page .page-header h1{font-size:20px}.admin-page .page-body{padding:24px 24px 56px}.admin-page .admin-tab{flex:0 auto;padding:13px 28px;font-size:14px}.staff-row-main{flex-wrap:nowrap;justify-content:flex-start}.sr-name{flex-shrink:0;width:100px}.sr-cell:nth-child(3){flex-shrink:0;width:84px}.sr-cell:nth-child(5){flex-shrink:0;width:96px}.sr-cell:nth-child(6){flex-shrink:0;width:160px}.headcount-table-wrap{max-height:75vh;overflow-y:auto}.headcount-table-wrap table{table-layout:fixed;width:100%;font-size:14px}.headcount-table-wrap thead th:first-child{width:64px}.headcount-table-wrap thead th:nth-child(2){width:48px}.headcount-table-wrap thead th:nth-child(3){width:100px}.headcount-table-wrap thead th{z-index:2;background:#f9fafb;position:sticky;top:0;box-shadow:0 1px #e5e7eb}.headcount-table-wrap td input[type=number]{width:72px;font-size:14px}.bulk-method-tabs{display:none}.bulk-panels{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.bulk-panel-item{display:block!important}.bulk-panel-title{color:#374151;border-bottom:1px solid #e5e7eb;margin-bottom:8px;padding-bottom:4px;font-size:12px;font-weight:700}.cond-table-wrap{display:block}.cond-cards{display:none}.cond-table-wrap{max-height:65vh;overflow-y:auto}.cond-table thead th{z-index:2;background:#f9fafb;position:sticky;top:0;box-shadow:0 1px #e5e7eb}.cond-table th,.cond-table td{text-align:left}.cond-td-name{min-width:80px;font-weight:700}.cond-td-note{word-break:break-all;max-width:220px}}@media (width<=767px){.cond-table-wrap{display:none}.cond-cards{display:block}.bulk-panel-item{display:none}.bulk-panel-item.mobile-active{display:block}.bulk-panel-title{display:none}}.shift-warning-banner{cursor:pointer;width:100%;font:inherit;text-align:left;border:none;display:block}.shift-warning-banner.ok{color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0}.shift-table-wrap{max-height:70vh;overflow-y:auto}.shift-table{border-collapse:collapse;table-layout:fixed;font-size:12px}.shift-table th,.shift-table td{text-align:center;white-space:nowrap;border:1px solid #f3f4f6;padding:0}.shift-table thead th{z-index:2;color:#6b7280;background:#f9fafb;padding:6px 2px;font-size:11px;font-weight:700;position:sticky;top:0;box-shadow:0 1px #e5e7eb}.shift-table th.shift-date-col{width:30px;padding:6px 0}.shift-table th.shift-th-weekend{color:#dc2626}.shift-table-name-col{z-index:1;background:#fff;min-width:88px;font-size:13px;font-weight:700;position:sticky;left:0;box-shadow:1px 0 #e5e7eb;text-align:left!important;padding:6px 10px!important}.shift-table thead .shift-table-name-col{z-index:3;background:#f9fafb}.shift-table tfoot .shift-table-name-col{background:#f9fafb;font-size:12px;font-weight:700}.shift-cell{cursor:pointer;color:#1a1a2e;width:30px;height:34px;font-size:13px;font-weight:800;position:relative}.shift-cell.cell-avail{background:#fff}.shift-cell.cell-unavail{background:#d1d5db}.shift-cell.cell-unset{background:#fef9c3}.shift-cell.cell-locked{cursor:not-allowed;background-image:repeating-linear-gradient(45deg,#6b7280,#6b7280 4px,#9ca3af 4px 8px)}.shift-cell.assigned{color:#1d4ed8}.shift-cell.warn-yellow{box-shadow:inset 0 0 0 2px #eab308}.shift-cell.warn-orange{box-shadow:inset 0 0 0 2px #f97316}.shift-cell.warn-red{box-shadow:inset 0 0 0 2px #dc2626}.legend-dot.cell-avail{background:#fff;border:1px solid #d1d5db}.legend-dot.cell-unavail{background:#d1d5db}.legend-dot.cell-unset{background:#fef9c3;border:1px solid #fde68a}.legend-dot.cell-locked{background-image:repeating-linear-gradient(45deg,#6b7280,#6b7280 3px,#9ca3af 3px 6px)}.shift-table tbody td:nth-last-child(-n+2),.shift-table tfoot td:nth-last-child(-n+2){color:#374151;font-size:12px;font-weight:700}.shift-table tfoot td{font-weight:700}.warning-list{max-height:55vh;margin-bottom:8px;overflow-y:auto}.warning-list-item{background:#f9fafb;border-left:4px solid #d1d5db;border-radius:8px;flex-wrap:wrap;gap:4px 10px;margin-bottom:6px;padding:8px 10px;font-size:13px;display:flex}.warning-list-item.warn-red{border-left-color:#dc2626}.warning-list-item.warn-orange{border-left-color:#f97316}.warning-list-item.warn-yellow{border-left-color:#eab308}.warning-list-name{font-weight:700}.warning-list-date{color:#6b7280}.warning-list-reason{color:#374151;flex-basis:100%}@media (width>=768px){.shift-table{font-size:13px}.shift-cell{width:34px;height:38px}.shift-table th.shift-date-col{width:34px}.warning-list-item{flex-wrap:nowrap}.warning-list-reason{flex-basis:auto}}
