
        /* ═══════════════════════════════════════
           TBM Final Design: A Clean + B Interactions
           ═══════════════════════════════════════ */

        * {
            box-sizing: border-box;
            outline: none;
            -webkit-tap-highlight-color: transparent;
        }

        :root {
            --primary: #3182f6;
            --primary-dark: #1b64da;
            --primary-light: #eff6ff;
            --primary-50: #f0f6ff;
            --success: #10b981;
            --success-light: #ecfdf5;
            --warning: #f59e0b;
            --warning-light: #fffbeb;
            --danger: #ef4444;
            --danger-light: #fef2f2;
            --text-main: #191f28;
            --text-sub: #4e5968;
            --text-muted: #8b95a1;
            --bg-body: #ffffff;
            --bg-card: #ffffff;
            --border-color: #e5e8eb;
            --border-medium: #cbd5e1;
            --radius: 18px;
            --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.02);
        }


        body {
            font-family: 'Pretendard', -apple-system, sans-serif;
            background: var(--bg-body);
            margin: 0;
            padding: 0;
            color: var(--text-main);
            -webkit-font-smoothing: antialiased;
            padding-bottom: 0px;
        }

        /* ── Progress Bar ── */
        .progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
            width: 0%;
            z-index: 200;
            transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 0 2px 2px 0;
        }

        /* ── Header ── */
        header {
            background: rgba(255, 255, 255, 0.97);
            padding: 12px 20px;
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid rgba(226, 232, 240, 0.6);
        }

        .header-inner {
            max-width: 560px !important;
            margin: 0 auto !important;
            width: 100% !important;
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .header-date {
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--text-muted);
            background: var(--bg-body);
            padding: 5px 10px;
            border-radius: 8px;
        }

        /* ── Container ── */
        .container {
            max-width: 560px !important;
            margin: 0 auto !important;
            padding: 12px 16px 12px 16px !important;
            animation: fadeIn 0.4s ease-out;
            width: 100% !important;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(12px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .info-card {
            background: linear-gradient(135deg, #005aab 0%, #006fd6 100%);
            border-radius: var(--radius);
            padding: 0;
            margin-bottom: 14px;
            color: white;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 24px -4px rgba(0, 90, 171, 0.35);
            min-height: 90px;
        }

        .info-card::before {
            content: '';
            position: absolute;
            top: -60%;
            right: -30%;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 70%);
            pointer-events: none;
        }

        .info-card::after {
            content: '';
            position: absolute;
            bottom: -40%;
            left: -15%;
            width: 160px;
            height: 160px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
            pointer-events: none;
        }

        /* Info card inner layout: 2 rows */
        .info-inner {
            position: relative;
            z-index: 1;
            padding: 18px 20px;
            min-height: 90px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 6px;
        }

        .info-top-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
        }

        .info-dept {
            font-size: 1.5rem;
            font-weight: 900;
            letter-spacing: -0.5px;
            line-height: 1.2;
        }

        .info-time-value {
            font-size: 1.5rem;
            font-weight: 900;
            letter-spacing: -1px;
            line-height: 1;
        }

        .info-bottom-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .info-subtitle {
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.45) 35%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.45) 65%, rgba(255, 255, 255, 0.45) 100%);
            background-size: 250% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: textShimmer 8.5s ease-in-out infinite;
        }

        @keyframes textShimmer {
            0% {
                background-position: 250% center;
            }
            100% {
                background-position: -250% center;
            }
        }

        .info-weather {
            font-size: 0.75rem;
            opacity: 0.8;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .info-weather i {
            font-size: 0.7rem;
        }

        /* ── F6: Load Previous TBM Button ── */
        .prev-tbm-btn {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 12px 16px;
            margin-bottom: 16px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            font-size: 0.88rem;
            font-weight: 600;
            color: #3182f6;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .prev-tbm-btn:hover {
            background: #f1f5f9;
            border-color: #cbd5e1;
        }

        .prev-tbm-btn:active {
            transform: scale(0.98);
        }

        .prev-tbm-btn i {
            font-size: 0.8rem;
        }

        .prev-tbm-btn .prev-date {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* ── Daily Safety Tip (스마트 안전 브리핑) ── */
        .daily-safety-tip {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            margin-bottom: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .daily-safety-tip:hover {
            background: #f1f5f9;
        }

        .daily-safety-badge {
            background: #3182f6;
            color: #ffffff;
            font-size: 0.72rem;
            font-weight: 800;
            padding: 3px 8px;
            border-radius: 6px;
            flex-shrink: 0;
            letter-spacing: -0.2px;
        }

        .daily-safety-text {
            font-size: 0.82rem;
            color: #334155;
            font-weight: 600;
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Photo Thumbnail */
        .photo-thumb-wrap {
            position: relative;
            display: inline-block;
            margin-top: 12px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .photo-thumb-img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            display: block;
            border-radius: 12px;
        }

        .photo-thumb-delete {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            font-size: 0.65rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }



        .info-sub {
            font-size: 0.82rem;
            opacity: 0.8;
            margin-top: 4px;
            font-weight: 500;
        }





        .info-time-label {
            font-size: 0.72rem;
            opacity: 0.6;
            margin-top: 2px;
        }

        /* ── Notice Card ── */
        .tbm-notice-card {
            margin-bottom: 14px;
            display: none;
            animation: slideDown 0.3s ease-out;
            border-radius: 14px;
            border: 1px solid #e5e8eb;
            box-shadow: 0 1px 4px rgba(0,0,0,0.03);
            position: relative;
            overflow: visible;
            padding: 16px 18px 14px;
            background: #fff !important;
            width: 100% !important;
            height: auto !important;
            max-width: 100% !important;
            max-height: none !important;
        }
        .tbm-notice-safety {
            background: #fffbeb !important;
            border: 1px solid #fef3c7 !important;
        }

        .tbm-notice-safety .tbm-notice-team-tag {
            color: #b45309 !important;
            font-size: 0.8rem !important;
            font-weight: 800 !important;
        }

        .tbm-notice-safety .tbm-notice-content {
            color: #78350f !important;
            font-size: 0.82rem !important;
            font-weight: 600 !important;
            line-height: 1.55 !important;
        }

        .tbm-notice-safety .tbm-notice-confirm-btn {
            background: #d97706 !important;
            color: #ffffff !important;
            font-weight: 700 !important;
            box-shadow: 0 1px 3px rgba(217, 119, 6, 0.25) !important;
        }

        .tbm-notice-safety .tbm-notice-confirm-btn:hover {
            background: #b45309 !important;
        }

        .tbm-notice-dept {
            background: #eff6ff !important;
            border: 1px solid #dbeafe !important;
        }

        .tbm-notice-dept .tbm-notice-team-tag {
            color: #1d4ed8 !important;
            font-size: 0.8rem !important;
            font-weight: 800 !important;
        }

        .tbm-notice-dept .tbm-notice-content {
            color: #1e3a8a !important;
            font-size: 0.82rem !important;
            font-weight: 600 !important;
            line-height: 1.55 !important;
        }

        .tbm-notice-dept .tbm-notice-confirm-btn {
            background: #2563eb !important;
            color: #ffffff !important;
            font-weight: 700 !important;
            box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25) !important;
        }

        .tbm-notice-dept .tbm-notice-confirm-btn:hover {
            background: #1d4ed8 !important;
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-8px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes slideUp {
            from { opacity: 1; transform: translateY(0); max-height: 200px; }
            to   { opacity: 0; transform: translateY(-6px); max-height: 0; margin-bottom: 0; padding: 0; }
        }
        .tbm-notice-card.dismissing {
            animation: slideUp 0.3s ease-in forwards !important;
            pointer-events: none;
        }

        .tbm-notice-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
            background: transparent !important;
            padding: 0 !important;
            width: 100% !important;
            border: none !important;
        }
        .tbm-notice-header::before { display: none; }

        /* 팀 이름 타이틀 - 순수 타이포그래피 */
        .tbm-notice-team-tag {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: -0.2px;
            color: #191f28;
            background: transparent !important;
            padding: 0 !important;
            border-radius: 0 !important;
            border: none;
        }

        /* 확인 버튼 - 토스 플랫 버튼 */
        .tbm-notice-confirm-btn {
            font-size: 0.76rem;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            transition: all 0.18s;
            letter-spacing: -0.2px;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: #f2f4f6;
            color: #4e5968;
            box-shadow: none !important;
        }
        .tbm-notice-confirm-btn:hover {
            background: #e5e8eb;
            color: #191f28;
        }

        .tbm-notice-icon-badge { display: none; }
        .tbm-notice-title      { display: none; }

        .tbm-notice-content {
            font-size: 0.82rem;
            line-height: 1.55;
            font-weight: 500;
            white-space: pre-wrap;
            word-break: break-all;
            margin: 0;
            color: var(--text-main);
        }

        /* ── Section Card (Borderless Open Flat Form) ── */
        .section-card {
            background: transparent !important;
            border-radius: 0 !important;
            padding: 4px 0 24px 0 !important;
            margin-bottom: 20px !important;
            box-shadow: none !important;
            border: none !important;
            border-bottom: 1px solid #f2f4f6 !important;
            animation: fadeUp 0.35s ease-out both;
            scroll-margin-top: 72px;
        }

        .section-card:last-of-type,
        #section-signature {
            border-bottom: none !important;
            padding-bottom: 4px !important;
            margin-bottom: 12px !important;
        }

        .section-card.field-required {
            border: none !important;
            border-bottom: 1px solid #f2f4f6 !important;
            background: transparent !important;
            box-shadow: none !important;
        }

        .section-card.section-done {
            border: none !important;
            border-bottom: 1px solid #f2f4f6 !important;
            background: transparent !important;
            box-shadow: none !important;
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(12px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .section-header {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            margin-bottom: 16px !important;
        }

        .section-num {
            width: 28px !important;
            height: 28px !important;
            background: #3182f6;
            color: white;
            border-radius: 50% !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            font-size: 0.82rem !important;
            font-weight: 800 !important;
            flex-shrink: 0 !important;
            box-shadow: 0 2px 6px rgba(49, 130, 246, 0.25);
            transition: all 0.3s ease;
            line-height: 1 !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .section-num.completed {
            background: #10b981;
            box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
        }

        @keyframes sectionComplete {
            0% {
                transform: scale(0.5) rotate(-10deg);
                opacity: 0.5;
            }
            40% {
                transform: scale(1.35) rotate(5deg);
                opacity: 1;
            }
            60% {
                transform: scale(0.95) rotate(-2deg);
            }
            100% {
                transform: scale(1) rotate(0deg);
            }
        }

        @keyframes sectionRipple {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            100% {
                transform: scale(2);
                opacity: 0;
            }
        }

        .section-num.optional {
            background: linear-gradient(135deg, #94a3b8, #64748b);
            box-shadow: 0 2px 6px rgba(100, 116, 139, 0.2);
        }

        /* ═══ Skeleton Loading ═══ */
        .skeleton-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .skeleton-item {
            height: 52px;
            border-radius: 12px;
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s ease-in-out infinite;
        }

        @keyframes shimmer {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }



        /* ═══ Celebration Confetti Overlay ═══ */
        .celebration-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9999;
        }

        .section-title {
            font-size: 1.05rem !important;
            font-weight: 700 !important;
            color: var(--text-main) !important;
            letter-spacing: -0.3px !important;
            line-height: 28px !important;
            display: inline-flex !important;
            align-items: center !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        /* Worker Count: Clean Tabular Typography */
        .worker-count {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.88rem;
            font-weight: 700;
            color: #3182f6;
            background: transparent !important;
            padding: 0 !important;
            border-radius: 0 !important;
            margin-left: auto;
            font-variant-numeric: tabular-nums;
        }

        /* ── Input Wrapper (Clearly Visible Select Target) ── */
        .input-wrapper {
            background: #f8fafc;
            border-radius: 12px;
            padding: 0 16px;
            border: 1px solid #e2e8f0;
            transition: all 0.2s ease;
            position: relative;
            cursor: pointer;
            min-height: 52px;
            display: flex;
            align-items: center;
        }

        .input-wrapper:hover {
            background: #f1f5f9;
            border-color: #cbd5e1;
        }

        .input-wrapper:focus-within {
            border-color: #3182f6;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.12);
        }

        select,
        input[type="text"] {
            width: 100%;
            padding: 14px 0;
            font-size: 0.95rem;
            border: none;
            background: transparent;
            font-weight: 600;
            color: var(--text-main);
            appearance: none;
            cursor: pointer;
            font-family: inherit;
        }

        .input-wrapper::after {
            content: '\f078';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.75rem;
            color: #8b95a1;
            pointer-events: none;
            transition: all 0.2s ease;
        }

        .input-wrapper:focus-within::after {
            transform: translateY(-50%) rotate(180deg);
            color: var(--primary);
        }

        .input-wrapper.no-arrow::after {
            display: none !important;
        }

        /* ── Textarea ── */
        textarea {
            width: 100%;
            padding: 14px;
            font-size: 0.92rem;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            background: #f8fafc;
            resize: none;
            min-height: 120px;
            font-family: inherit;
            line-height: 1.6;
            transition: all 0.2s ease;
            font-weight: 500;
            color: var(--text-main);
        }

        textarea:focus {
            border-color: #3182f6;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.12);
        }

        textarea::placeholder {
            color: var(--text-muted);
        }

        /* ── Photo Upload ── */
        .file-upload-wrapper {
            position: relative;
            overflow: hidden;
            width: 100%;
        }

        .file-upload-btn {
            border: 1px solid #e5e8eb;
            color: #4e5968;
            background: #ffffff;
            height: 200px;
            box-sizing: border-box;
            border-radius: 14px;
            text-align: center;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-size: 0.88rem;
        }

        .file-upload-btn i {
            font-size: 1.6rem;
            color: var(--text-muted);
            transition: all 0.2s ease;
        }

        .file-upload-btn:hover {
            background: #fafafa;
            border-color: #cbd5e1;
        }

        .file-upload-btn:active {
            background: var(--primary-light);
            border-color: var(--primary);
            color: var(--primary);
        }

        .file-upload-btn:active i {
            color: var(--primary);
        }

        .file-upload-btn.uploaded {
            display: none;
        }

        .file-upload-input {
            position: absolute;
            left: 0;
            top: 0;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }

        /* ── Photo Upload Dual Choice Grid (모바일 즉시촬영 vs 앨범분리) ── */
        .photo-dual-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            width: 100%;
            height: 200px;
        }

        .photo-choice-card {
            position: relative;
            border: 1px solid #e5e8eb;
            color: #4e5968;
            background: #ffffff;
            height: 200px;
            box-sizing: border-box;
            border-radius: 14px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 16px 10px;
            overflow: hidden;
        }

        .photo-choice-card:hover {
            background: #fafafa;
            border-color: #cbd5e1;
        }

        .photo-choice-card:active {
            background: #eff6ff;
            border-color: #3182f6;
            transform: scale(0.98);
        }

        .photo-choice-card i {
            font-size: 1.85rem;
            color: #4e5968;
            transition: all 0.2s ease;
        }

        .photo-choice-card.camera i {
            color: #3182f6;
        }

        .photo-choice-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: #191f28;
            letter-spacing: -0.3px;
        }

        .photo-choice-sub {
            font-size: 0.72rem;
            color: #8b95a1;
            font-weight: 500;
            letter-spacing: -0.2px;
        }

        /* ── Signature Area ── */
        .worker-card {
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid #f1f5f9;
            animation: fadeUp 0.3s ease-out;
        }

        .worker-card:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .worker-number {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--primary);
            background: var(--primary-light);
            padding: 3px 8px;
            border-radius: 6px;
            margin-bottom: 10px;
            display: inline-block;
        }

        .signature-wrapper {
            position: relative;
            height: 270px;
            margin-top: 8px;
            margin-bottom: 8px;
            border: 1px solid #e2e8f0;
            border-radius: 14px;
            background: #fff;
            overflow: hidden;
            touch-action: none;
            transition: all 0.2s ease;
            box-shadow: none !important;
        }

        @media (max-width: 768px) {
            .signature-wrapper {
                height: 260px;
            }
        }

        .signature-wrapper:focus-within,
        .signature-wrapper.active {
            border-color: #cbd5e1;
            box-shadow: none !important;
        }

        .signature-wrapper.completed {
            touch-action: auto !important;
        }

        .signature-wrapper.completed canvas {
            touch-action: auto !important;
            pointer-events: auto !important;
        }

        .signature-wrapper.completed .sig-clear {
            pointer-events: auto !important;
            z-index: 50 !important;
        }

        canvas {
            width: 100%;
            height: 100%;
            display: block;
            touch-action: none;
        }

        .sig-mask {
            position: absolute;
            inset: 0;
            background: #ffffff !important;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #64748b;
            font-weight: 600;
            font-size: 0.92rem;
            pointer-events: auto;
            gap: 8px;
            user-select: none;
            cursor: pointer;
            z-index: 10;
            transition: opacity 0.2s ease;
            touch-action: pan-y;
            border-radius: 14px;
            border: none !important;
            box-shadow: none !important;
        }

        .sig-mask:active {
            background: #ffffff !important;
        }

        .sig-clear {
            position: absolute;
            top: 8px;
            right: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-direction: row;
            white-space: nowrap;
            word-break: keep-all;
            gap: 4px;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 0.75rem;
            padding: 6px 12px;
            color: var(--text-sub);
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
            transition: all 0.15s ease;
        }

        .sig-clear:active {
            background: var(--danger-light);
            color: var(--danger);
        }

        /* ── Checkbox Items (Tactile List Cards) ── */
        .check-item-card {
            display: flex;
            align-items: center;
            padding: 11px 14px;
            min-height: 48px;
            background: #f8fafc;
            border-radius: 12px;
            border: 1px solid #f1f5f9;
            cursor: pointer;
            transition: all 0.18s ease;
            margin-bottom: 8px;
        }

        .check-item-card:last-child {
            margin-bottom: 0;
        }

        .check-item-card:hover {
            background: #f1f5f9;
        }

        .check-item-card:active {
            transform: scale(0.99);
        }

        .check-item-card.checked {
            background: #f0fdf4;
            border-color: #bbf7d0;
        }

        .check-item-card label {
            display: flex;
            align-items: center;
            width: 100%;
            cursor: pointer;
        }

        .check-item-card span {
            font-weight: 600;
            color: var(--text-main);
            font-size: 0.85rem;
            letter-spacing: -0.35px;
            flex: 1;
            line-height: 1.35;
        }

        .check-item-card.checked span {
            color: #15803d;
            font-weight: 700;
        }

        /* ── 2-Column Grid for Attendees (모바일 인원 2열 압축 카드) ── */
        .worker-checklist-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }

        .worker-checklist-grid .check-item-card {
            margin-bottom: 0;
            padding: 11px 12px;
            min-height: 48px;
        }

        .worker-checklist-grid .check-item-card span {
            font-size: 0.88rem;
            font-weight: 600;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Round Checkboxes */
        .dept-check-item,
        .worker-check-item {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            width: 22px;
            height: 22px;
            cursor: pointer;
            flex-shrink: 0;
            margin-left: 8px;
            border-radius: 50%;
            border: 2px solid #cbd5e1;
            background: white;
            position: relative;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .dept-check-item:checked,
        .worker-check-item:checked {
            border-color: #10b981;
            background: #10b981;
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
        }

        .dept-check-item:checked::after,
        .worker-check-item:checked::after {
            content: '';
            position: absolute;
            left: 7px;
            top: 3px;
            width: 6px;
            height: 10px;
            border: solid white;
            border-width: 0 2.5px 2.5px 0;
            transform: rotate(45deg);
            animation: checkBounce 0.3s ease;
        }

        @keyframes checkBounce {
            0% {
                transform: rotate(45deg) scale(0);
                opacity: 0;
            }

            50% {
                transform: rotate(45deg) scale(1.3);
            }

            100% {
                transform: rotate(45deg) scale(1);
                opacity: 1;
            }
        }

        /* ── Submit Button (B2: Progress Integrated, Non-sticky) ── */
        .bottom-bar {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding-bottom: 0px;
            margin-top: 10px;
            margin-bottom: 0px;
        }

        .save-all-btn {
            width: 100%;
            padding: 16px;
            border: none;
            border-radius: 14px;
            color: white;
            font-size: 1.05rem;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            letter-spacing: -0.3px;
            font-family: inherit;
            position: relative;
            overflow: hidden;
        }

        .save-all-btn.in-progress {
            background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        }

        .save-all-btn.in-progress .btn-fill {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
            border-radius: 14px;
            transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 1;
        }

        .save-all-btn .btn-text {
            position: relative;
            z-index: 1;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 8px !important;
            white-space: nowrap !important;
            width: 100% !important;
            line-height: 1 !important;
        }

        .save-all-btn .btn-text span {
            white-space: nowrap !important;
        }

        .save-all-btn.ready {
            background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
            animation: readyPulse 2s ease-in-out infinite;
        }

        @keyframes readyPulse {

            0%,
            100% {
                box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
            }

            50% {
                box-shadow: 0 6px 28px rgba(59, 130, 246, 0.5);
            }
        }

        .save-all-btn:active {
            transform: scale(0.98);
        }

        .save-all-btn:disabled {
            background: var(--border-medium);
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
            animation: none;
        }



        /* ── Loading Overlay ── */
        #tbm-loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.98);
            z-index: 9999;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .loader-spinner {
            width: 48px;
            height: 48px;
            border: 3px solid var(--border-color);
            border-radius: 50%;
            border-top-color: var(--primary);
            animation: spin 0.8s ease-in-out infinite;
            margin-bottom: 20px;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        #tbm-msg {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-main);
            text-align: center;
            margin-top: 16px;
            line-height: 1.6;
        }

        .success-icon {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: var(--success-light);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            animation: scaleIn 0.4s ease-out;
        }

        .success-icon i {
            font-size: 2.2rem;
            color: var(--success);
        }

        @keyframes scaleIn {
            from {
                transform: scale(0);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .empty-state {
            text-align: center;
            color: var(--text-muted);
            padding: 20px;
            font-size: 0.88rem;
        }

        .empty-state i {
            font-size: 1.5rem;
            margin-bottom: 10px;
            opacity: 0.5;
        }

        .toast {
            position: fixed;
            bottom: 36px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: #191f28;
            color: #ffffff;
            padding: 12px 24px;
            border-radius: 11px;
            font-family: 'Pretendard', sans-serif;
            font-weight: 500;
            font-size: 14px;
            letter-spacing: -0.3px;
            line-height: 1.45;
            word-break: keep-all;
            box-shadow: 0 10px 28px -2px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
            opacity: 0;
            transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
            z-index: 1001;
            display: none;
            align-items: center;
            gap: 8px;
            max-width: 88vw;
            border: none;
        }

        .toast.show {
            display: flex;
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* ── Required Field Indicators ── */
        .field-required {
            border: 1px solid var(--border-color) !important;
            background: #ffffff !important;
        }

        .field-error {
            border: 2px solid #ef4444 !important;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
            animation: fieldShake 0.5s ease;
        }

        @keyframes fieldShake {

            0%,
            100% {
                transform: translateX(0);
            }

            20% {
                transform: translateX(-4px);
            }

            40% {
                transform: translateX(4px);
            }

            60% {
                transform: translateX(-3px);
            }

            80% {
                transform: translateX(3px);
            }
        }

        .section-card.field-error {
            border: 2px solid #ef4444 !important;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
            animation: fieldShake 0.5s ease;
        }

        /* ═══ [NEW] Step Indicator ═══ */
        .step-indicator {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 0;
            margin: 0;
        }

        .step-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--border-color);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
        }

        .step-dot.active {
            background: var(--primary);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
            transform: scale(1.3);
        }

        .step-dot.done {
            background: var(--success);
        }

        .step-dot::after {
            display: none;
        }

        .step-dot.active::after {
            display: none;
        }

        /* ═══ [NEW] Weather Chip ═══ */
        .weather-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.18);
            border-radius: 6px;
            padding: 4px 8px;
            font-size: 0.78rem;
            color: white;
            font-weight: 600;
            margin-top: 10px;
            position: relative;
            z-index: 1;
        }

        .weather-chip i {
            font-size: 0.85rem;
        }

        /* ═══ [NEW] Photo Preview Card ═══ */
        .photo-preview-card {
            position: relative;
            border-radius: 14px;
            overflow: hidden;
            width: 100%;
            height: auto;
            max-height: 520px;
            border: 1px solid #e5e8eb;
            box-sizing: border-box;
            animation: fadeIn 0.3s ease;
            margin-bottom: 8px;
            background: #0f172a;
        }

        .photo-preview-card img {
            width: 100%;
            height: auto;
            max-height: 520px;
            display: block;
            object-fit: cover;
            user-select: none;
            -webkit-user-drag: none;
            pointer-events: none;
        }

        @media (max-width: 768px) {
            .photo-preview-card {
                height: auto;
                max-height: 500px;
            }
            .photo-preview-card img {
                height: auto;
                max-height: 500px;
            }
        }

        .photo-preview-delete {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 32px;
            height: 32px;
            background: rgba(0, 0, 0, 0.65);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s;
        }

        .photo-preview-delete:hover {
            background: var(--danger);
        }

        .photo-preview-info {
            position: absolute;
            top: auto;
            bottom: 10px;
            right: 10px;
            background: rgba(25, 31, 40, 0.85);
            backdrop-filter: blur(8px);
            color: white;
            padding: 5px 12px;
            font-size: 0.75rem;
            font-weight: 600;
            border-radius: 6px;
            white-space: nowrap;
            letter-spacing: -0.2px;
        }

        .photo-timestamp-badge {
            position: absolute;
            bottom: 12px;
            right: 12px;
            left: auto;
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.14);
            color: #ffffff;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.72rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            letter-spacing: -0.2px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
            pointer-events: none;
            z-index: 5;
        }

        /* ═══ [NEW] Check Confetti ═══ */
        .confetti-container {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            pointer-events: none;
            z-index: 10;
        }

        .confetti-particle {
            position: absolute;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            animation: confettiBurst 0.6s ease-out forwards;
        }

        @keyframes confettiBurst {
            0% {
                transform: translate(0, 0) scale(1);
                opacity: 1;
            }

            100% {
                opacity: 0;
            }
        }

        /* ═══ [NEW] Leader Signature Badge ═══ */
        .leader-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-weight: 600;
            color: var(--primary);
            font-size: 0.92rem;
        }

        .sig-done-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: transparent !important;
            color: #10b981;
            font-size: 0.82rem;
            font-weight: 700;
            padding: 0 !important;
            border-radius: 0 !important;
            margin-left: 8px;
            animation: fadeIn 0.3s ease;
        }

        /* ═══ [NEW] Success Overlay Enhancement ═══ */
        .success-overlay-content {
            text-align: center;
            animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes successPop {
            0% {
                transform: scale(0.5);
                opacity: 0;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .success-checkmark {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 2.2rem;
            box-shadow: 0 8px 32px rgba(16, 185, 129, 0.35);
            position: relative;
        }

        .success-checkmark::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 3px solid rgba(16, 185, 129, 0.3);
            animation: successRipple 1s ease-out;
        }

        @keyframes successRipple {
            0% {
                transform: scale(1);
                opacity: 1;
            }

            100% {
                transform: scale(2.2);
                opacity: 0;
            }
        }

        .success-summary {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 16px;
        }

        .success-stat {
            text-align: center;
        }

        .success-stat-value {
            font-size: 1.4rem;
            font-weight: 900;
            color: var(--primary);
        }

        .success-stat-label {
            font-size: 0.72rem;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* ═══ [NEW] History Section ═══ */
        .history-section {
            margin-top: 8px;
            margin-bottom: 20px;
        }

        .history-title {
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--text-muted);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .history-card {
            background: #f8fafc;
            border-radius: 12px;
            padding: 13px 16px;
            margin-bottom: 8px;
            border: 1px solid #f1f5f9;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.85rem;
        }

        .history-card-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .history-date-badge {
            background: transparent !important;
            color: #64748b;
            font-size: 0.82rem;
            font-weight: 600;
            padding: 0 !important;
            border-radius: 0 !important;
            white-space: nowrap;
            font-variant-numeric: tabular-nums;
        }

        .history-detail {
            color: var(--text-sub);
        }

        .history-detail strong {
            color: var(--text-main);
        }

        .history-attendee {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        /* ═══ [F3] Voice Input Button ═══ */
        .voice-input-area {
            position: relative;
        }

        .voice-btn {
            position: absolute;
            right: 12px;
            bottom: 12px;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: none;
            background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
            color: white;
            cursor: pointer;
            font-size: 1rem;
            box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 5;
        }

        .voice-btn:active {
            transform: scale(0.92);
        }

        .voice-btn.recording {
            background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
            animation: voicePulse 1.4s infinite;
        }

        @keyframes voicePulse {
            0% {
                box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
            }

            50% {
                box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
            }
        }

        .voice-btn.unsupported {
            display: none;
        }

        .voice-status {
            display: none;
            align-items: center;
            gap: 6px;
            font-size: 0.78rem;
            color: var(--danger);
            font-weight: 600;
            margin-top: 8px;
            animation: fadeIn 0.3s ease;
        }

        .voice-status.active {
            display: flex;
        }

        .voice-status .voice-dot {
            width: 8px;
            height: 8px;
            background: var(--danger);
            border-radius: 50%;
            animation: voicePulse 1.4s infinite;
        }

        .voice-wave-bars {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            height: 14px;
            margin-right: 4px;
        }

        .voice-wave-bar {
            width: 3px;
            background: var(--danger);
            border-radius: 2px;
            animation: voiceWave 0.8s ease-in-out infinite alternate;
        }

        .voice-wave-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
        .voice-wave-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
        .voice-wave-bar:nth-child(3) { height: 9px; animation-delay: 0.15s; }
        .voice-wave-bar:nth-child(4) { height: 12px; animation-delay: 0.4s; }

        @keyframes voiceWave {
            0% { transform: scaleY(0.4); }
            100% { transform: scaleY(1.2); }
        }

        /* ── global-toast — 토스 코어 솔리드 다크 ── */
        .global-toast {
            position: fixed;
            bottom: 36px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            padding: 11px 22px;
            border-radius: 12px;
            box-shadow: 0 10px 28px -2px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.1);
            z-index: 99999;
            transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
            font-family: 'Pretendard', sans-serif;
            font-size: 13.5px;
            font-weight: 500;
            letter-spacing: -0.3px;
            line-height: 1.42;
            word-break: keep-all;
            white-space: pre-line;
            text-align: center;
            opacity: 0;
            background: #191f28;
            border: none;
            color: #ffffff;
            width: max-content;
            max-width: 92vw;
            pointer-events: none;
        }
        .global-toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* ── Differentiators: Laser Scan & Digital Seal Stamp ── */
        .photo-timestamp-badge {
            position: absolute;
            bottom: 12px;
            right: 12px;
            left: auto;
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.14);
            color: #ffffff;
            font-size: 11px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            letter-spacing: -0.2px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
            pointer-events: none;
            z-index: 5;
        }


        /* ── Electronic Signature Verification Digital Stamp (공인 전자직인 인장) ── */
        .digital-seal-stamp {
            position: absolute;
            bottom: 12px;
            right: 14px;
            width: 78px;
            height: 78px;
            border: 2px solid #ef4444;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #ef4444;
            animation: stampDrop 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            pointer-events: none;
            user-select: none;
            z-index: 10;
            background: radial-gradient(circle, rgba(254, 242, 242, 0.65) 0%, transparent 75%);
            box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.35);
        }

        .photo-seal-stamp {
            bottom: 12px;
            right: 14px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 75%);
            box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.4), 0 4px 14px rgba(0, 0, 0, 0.32);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }

        .digital-seal-stamp .seal-top {
            font-size: 7.5px;
            letter-spacing: 0.4px;
            font-weight: 800;
            line-height: 1.1;
            white-space: nowrap;
            text-align: center;
        }

        .digital-seal-stamp .seal-center {
            font-size: 13px;
            line-height: 1.15;
            font-weight: 900;
            border-top: 1px solid rgba(239, 68, 68, 0.55);
            border-bottom: 1px solid rgba(239, 68, 68, 0.55);
            padding: 2px 0;
            margin: 2px 0;
            width: 84%;
            text-align: center;
            letter-spacing: 1px;
            white-space: nowrap;
        }

        .digital-seal-stamp .seal-bottom {
            font-size: 7.5px;
            letter-spacing: 0.6px;
            font-weight: 700;
            line-height: 1.1;
            white-space: nowrap;
            text-align: center;
        }

        @keyframes stampDrop {
            0% {
                opacity: 0;
                transform: scale(2.8) rotate(-18deg);
            }
            70% {
                opacity: 0.95;
                transform: scale(0.96) rotate(-3deg);
            }
            100% {
                opacity: 0.88;
                transform: scale(1) rotate(-6deg);
            }
        }
    