/* CrewTime components: reusable UI patterns */
        #tools-section {
            padding-top: 0;
        }

        .form-container {
            margin-top: 15px;
        }

        .form-group {
            margin-bottom: 14px;
        }

        .form-row {
            display: flex;
            gap: 12px;
            margin-bottom: 14px;
        }

        label {
            display: block;
            margin-bottom: var(--space-2);
            color: var(--text-primary);
            font-weight: 600;
            font-size: var(--text-sm);
            text-transform: none;
            letter-spacing: 0;
            min-height: auto;
        }

        input, select {
            width: 100%;
            padding: var(--space-3) var(--space-4);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            font-size: var(--text-base);
            background: var(--surface);
            transition: all var(--dur-2) ease;
            color: var(--text-primary);
            font-weight: 500;
        }

        input:focus, select:focus {
            outline: none;
            border-color: var(--text-primary);
            background: var(--surface);
            box-shadow: var(--ring), var(--shadow-md);
        }

        .time-inputs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: var(--space-2);
            padding: var(--space-2) var(--space-3);
            background: var(--surface);
            border-radius: var(--radius-md);
            border: 1px solid var(--border-light);
            transition: all var(--dur-2) ease;
            height: auto;
        }

        .checkbox-group:hover {
            border-color: var(--border-medium);
            box-shadow: var(--shadow-sm);
        }

        .checkbox-group input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
            accent-color: #000000;
        }

        .checkbox-group label {
            margin: 0;
            cursor: pointer;
            font-weight: 600;
            text-transform: none;
            color: #1a1a1a;
            letter-spacing: 0;
        }

        #min-10hrs,
        #midnight-2x {
            flex-shrink: 0;
            margin-top: 2px;
        }

        #min-10hrs + label,
        #midnight-2x + label {
            line-height: 1.4;
            display: flex;
            align-items: center;
        }

        .job-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 28px;
            gap: 16px;
        }

        .job-header h2 {
              margin: 0;
              font-size: 22px;
              font-weight: 700;
              color: #0f172a;
        }

        #change-job-btn {
            width: auto;
            background: #6b7280;
            padding: var(--space-2) var(--space-4);
            font-size: var(--text-sm);
            margin-top: 0;
            box-shadow: var(--shadow-md);
        }

        #change-job-btn:hover {
            background: #4b5563;
            box-shadow: var(--shadow-lg);
        }

        button {
            background: var(--text-primary);
            color: white;
            padding: var(--space-4) var(--space-6);
            border: none;
            border-radius: var(--radius-md);
            font-size: var(--text-base);
            font-weight: 700;
            cursor: pointer;
            width: 100%;
            transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-in-out), opacity var(--dur-2) var(--ease-in-out);
            box-shadow: var(--shadow-md);
            margin-top: var(--space-3);
        }

        button:hover {
            background: #1e293b;
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        button:active {
            transform: translateY(0);
        }

        button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .invoice-preview-modal {
            opacity: 0;
            visibility: hidden;
            pointer-events: none !important;
            transition: opacity var(--dur-2) var(--ease-in-out), visibility 0s linear var(--dur-2);
        }

        .invoice-preview-modal.show {
            opacity: 1;
            visibility: visible;
            pointer-events: auto !important;
            transition: opacity var(--dur-2) var(--ease-in-out), visibility 0s;
        }

        .invoice-preview-modal-content {
            transform: translateY(10px) scale(0.99);
            opacity: 0;
            transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-in-out);
        }

        .invoice-preview-modal.show .invoice-preview-modal-content {
            transform: translateY(0) scale(1);
            opacity: 1;
        }

        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }
            *, *::before, *::after {
                animation-duration: 1ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 1ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* Focus States for Accessibility */
        *:focus-visible {
            outline: 3px solid rgba(59, 130, 246, 0.5);
            outline-offset: 2px;
        }

        button:focus-visible,
        input:focus-visible,
        select:focus-visible,
        textarea:focus-visible {
            outline: 3px solid rgba(59, 130, 246, 0.6);
            outline-offset: 2px;
        }

        a:focus-visible {
            outline: 3px solid rgba(59, 130, 246, 0.5);
            outline-offset: 2px;
            border-radius: var(--radius-sm);
        }

        [data-page-heading]:focus,
        [data-page-heading]:focus-visible {
            outline: none !important;
        }

        .logo:focus {
            outline: none;
        }

        .logo:focus-visible {
            outline: 2px solid rgba(15, 23, 42, 0.22);
            outline-offset: 4px;
            border-radius: var(--radius-full);
        }

        .penalty-buttons-section {
            display: flex;
            gap: var(--space-2);
            background: var(--surface-secondary);
            padding: var(--space-2);
            border-radius: var(--radius-md);
            border: 1px solid var(--border-light);
            justify-content: flex-start;
            min-height: auto;
            align-items: center;
        }

            .penalty-options-row {
                display: flex;
                gap: 12px;
                align-items: flex-start;
            }

            .penalty-group {
                flex: 1;
            }

            .options-box {
                justify-content: flex-start;
                flex-wrap: wrap;
                row-gap: 8px;
                column-gap: 8px;
                width: 100%;
                overflow: hidden;
            }

        .form-container.minimized {
            display: none;
        }

        .penalty-button-wrapper {
            position: relative;
        }

        .penalty-btn {
            background: var(--surface);
            border: 1px solid var(--border-light);
            color: var(--text-primary);
            padding: var(--space-2) var(--space-3);
            width: auto;
            margin: 0;
            box-shadow: none;
            border-radius: var(--radius-md);
            font-size: var(--text-xs);
            font-weight: 700;
            letter-spacing: 0;
            transition: border-color var(--dur-1) var(--ease-in-out), background var(--dur-1) var(--ease-in-out), color var(--dur-1) var(--ease-in-out);
        }

        .penalty-btn:hover {
            background: var(--surface-hover);
            border-color: var(--border-medium);
        }

        .penalty-btn.active {
            background: var(--surface-hover);
            border-color: var(--text-primary);
            color: var(--text-primary);
        }

        .penalty-dropdown {
            position: absolute;
            top: calc(100% + var(--space-1));
            bottom: auto;
            left: 0;
            background: var(--surface);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow-lg);
            z-index: var(--z-dropdown);
            overflow: hidden;
            min-width: 80px;
            transform-origin: top left;
            animation: penaltyDropIn 120ms ease-out;
        }

        .rate-option {
            display: block;
            width: 100%;
            padding: var(--space-2) var(--space-3);
            border: none;
            background: var(--surface);
            cursor: pointer;
            font-size: var(--text-xs);
            font-weight: 700;
            color: var(--text-primary);
            text-align: left;
            border-bottom: 1px solid var(--border-light);
            transition: background var(--dur-1) var(--ease-in-out);
        }

        .rate-option:last-child {
            border-bottom: none;
        }

        .rate-option:hover {
            background: var(--surface-hover);
        }

        @keyframes penaltyDropIn {
            from {
                opacity: 0;
                transform: translateY(-4px) scale(0.98);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .penalties-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
        }

        .penalty-item {
            background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
            padding: 4px 8px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 700;
            font-size: 12px;
            color: #1E40AF;
            border: 1px solid #86efac;
            box-shadow: 0 3px 10px rgba(16, 185, 129, 0.14);
        }

        .remove-penalty {
            background: #1E40AF;
            color: white;
            padding: 2px 7px;
            border-radius: 999px;
            font-size: 11px;
            width: auto;
            margin: 0;
            box-shadow: none;
            font-weight: 700;
        }

        .remove-penalty:hover {
            background: #1E3A8A;
            transform: none;
        }

        .results {
            margin-top: 28px;
            padding: 20px;
            background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
            border-radius: 15px;
            display: none;
            border: 2px solid #e3efe9;
            box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
        }

        .results.show {
            display: block;
        }

        .results h2 {
            color: #2f8d6a;
            margin-bottom: 16px;
            font-size: 20px;
            font-weight: 800;
        }

        .breakdown-item {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 2px solid rgba(0, 102, 255, 0.2);
        }

        .breakdown-item .label {
            color: #1a1a1a;
            font-weight: 600;
        }

        .breakdown-item .value {
            font-weight: 800;
            color: #000000;
        }

        .total {
            margin-top: 14px;
            padding-top: 14px;
            border-top: 3px solid #000000;
            font-size: 20px;
            font-weight: 800;
            display: flex;
            justify-content: space-between;
        }

        .total .value {
            color: #000000;
            font-size: 26px;
            font-weight: 900;
        }

        .saved-days {
            margin-top: 20px;
        }

        .saved-days-table {
            width: 100%;
            border-collapse: collapse;
            margin: 30px 0;
        }

        .saved-days-table thead {
            background: var(--text-primary);
            color: white;
        }

        .saved-days-table th {
            padding: 18px 16px;
            text-align: left;
            font-weight: 700;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .saved-days-table th:last-child {
            text-align: center;
        }

        .saved-days-table tbody tr {
            border-bottom: 2px solid #e0e0e0;
            background: #fafafa;
        }

        .saved-days-table tbody tr:hover {
            background: #f0f0f0;
        }

        .saved-days-table td {
            padding: 18px 16px;
            color: #1a1a1a;
            font-weight: 600;
            font-size: 14px;
        }

        .saved-days-table .day-label {
            color: #000000;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .saved-days-table .day-label:hover {
            text-decoration: underline;
            color: #333333;
        }

        .saved-days-table .pay {
            color: #000000;
            font-weight: 800;
            font-size: 15px;
        }

        .saved-days-table .actions {
            text-align: center;
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .edit-day {
            background: transparent;
            color: #6a6a6a;
            padding: 6px 10px;
            font-size: 12px;
            width: auto;
            margin: 0;
            box-shadow: none;
            font-weight: 700;
        }

        .edit-day:hover {
            background: #000000;
            color: white;
            transform: none;
        }

        .delete-day {
            background: transparent;
            color: #6a6a6a;
            padding: 6px 8px;
            font-size: 16px;
            width: auto;
            margin: 0;
            box-shadow: none;
            font-weight: 700;
            line-height: 1;
        }

        .job-creation-section {
            animation: slideIn 0.3s ease-out;
        }

        .create-job-page {
            animation: slideIn 0.3s ease-out;
            position: relative;
        }

        .create-job-shell {
            max-width: 720px;
            margin: var(--space-4) auto 0;
            padding: var(--space-6);
            border-radius: var(--radius-lg);
            border: 1px solid rgba(226, 232, 240, 0.86);
            background: rgba(255, 255, 255, 0.8);
            box-shadow:
                0 22px 34px rgba(15, 23, 42, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.84);
            backdrop-filter: blur(14px) saturate(120%);
            -webkit-backdrop-filter: blur(14px) saturate(120%);
        }

        .create-job-kicker {
            font-size: var(--text-xs);
            color: var(--text-tertiary);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: var(--space-2);
        }

        .create-job-title {
            font-size: var(--text-2xl);
            line-height: 1.1;
            color: var(--text-primary);
            font-weight: 700;
            margin-bottom: var(--space-2);
            letter-spacing: -0.02em;
        }

        .create-job-subtitle {
            color: var(--text-secondary);
            font-size: var(--text-sm);
            line-height: 1.5;
            margin-bottom: var(--space-5);
            max-width: 55ch;
        }

        .create-job-shell .settings-field {
            margin-bottom: var(--space-3);
        }

        .create-job-shell .settings-field label {
            text-transform: none;
            letter-spacing: 0;
            font-size: var(--text-sm);
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: var(--space-2);
        }

        .create-job-shell .settings-field input {
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            background: var(--surface);
            font-size: var(--text-base);
            font-weight: 600;
            padding: var(--space-3) var(--space-4);
            box-shadow: none;
        }

        .create-job-shell .settings-field input:focus {
            border-color: var(--border-dark);
            box-shadow: var(--ring);
        }

        .create-client-block {
            margin-bottom: var(--space-4);
            padding: var(--space-4);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            background: var(--surface-secondary);
            box-shadow: none;
        }

        .create-client-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--space-3);
            margin-bottom: var(--space-2);
        }

        .create-client-head label {
            margin: 0;
            font-size: var(--text-sm);
            font-weight: 700;
            color: var(--text-primary);
        }

        .create-client-tag {
            font-size: 11px;
            font-weight: 700;
            color: #2563EB;
            background: #f2f7f4;
            border: 1px solid #c5ddd2;
            border-radius: 999px;
            padding: 4px 8px;
        }

        .create-client-select-wrap {
            position: relative;
        }

        .create-client-select-wrap::after {
            content: '▾';
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #64748b;
            font-size: 12px;
            pointer-events: none;
        }

        #create-job-client-select {
            appearance: none;
            -webkit-appearance: none;
            padding-right: 34px;
            border-radius: 12px;
            border: 1px solid #cfdced;
            background: #ffffff;
            font-weight: 700;
            color: #0f172a;
        }

        #create-job-client-select:focus {
            border-color: #93c5fd;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
        }

        .create-client-help {
            margin-top: 8px;
            font-size: 12px;
            color: #64748b;
            line-height: 1.35;
        }

        #create-job-new-client-fields {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px dashed #dbe5f1;
        }

        .invoice-preview-card {
            margin-top: 12px;
            padding: 12px;
            border: 1px solid #dbe5f1;
            border-radius: 12px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .invoice-preview-card:hover {
            border-color: #93c5fd;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
            transform: translateY(-2px);
        }

        .invoice-preview-title {
            font-size: 12px;
            font-weight: 800;
            color: #334155;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.6px;
        }

        .invoice-preview-row {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            font-size: 12px;
            color: #475569;
            margin-bottom: 6px;
        }

        .invoice-preview-row strong {
            color: #0f172a;
            font-weight: 800;
        }

        .create-job-actions {
            display: flex;
            gap: var(--space-3);
        }

        .create-job-primary {
            flex: 1.4;
            margin: 0;
            padding: var(--space-4) var(--space-5);
            border-radius: var(--radius-md);
            border: none;
            background: var(--text-primary);
            color: #fff;
            font-size: var(--text-sm);
            font-weight: 700;
            cursor: pointer;
            transition: all var(--dur-2);
            box-shadow: var(--shadow-md);
        }

        .create-job-primary:hover {
            background: #1e293b;
            box-shadow: var(--shadow-lg);
        }

        .create-job-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            box-shadow: var(--shadow-md);
        }

        .create-job-secondary {
            flex: 1;
            margin: 0;
            padding: var(--space-4) var(--space-5);
            border-radius: var(--radius-md);
            border: 1px solid var(--border-light);
            background: var(--surface-secondary);
            color: var(--text-primary);
            font-size: var(--text-sm);
            font-weight: 700;
            cursor: pointer;
            transition: all var(--dur-2);
            box-shadow: none;
        }

        .create-job-secondary:hover {
            background: var(--surface-hover);
        }

        .jobs-list-section {
            animation: slideIn 0.3s ease-out;
        }

        .jobs-list-section {
            padding: var(--space-8) 5%;
            animation: slideIn var(--dur-3) ease-out;
        }

        .jobs-list-header {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            margin-bottom: var(--space-6);
            position: relative;
            gap: 14px;
        }

        .jobs-list-left {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            justify-self: start;
            padding-left: 0;
            min-height: 0;
            flex-wrap: wrap;
        }

        .jobs-primary-action-box {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 220px;
            max-width: 220px;
            min-height: 0;
            padding: 6px 8px;
            margin-left: 0;
            border-radius: 12px;
            border: 1px solid rgba(214, 224, 237, 0.86);
            background: rgba(248, 251, 255, 0.84);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
            margin-right: 0;
            align-self: center;
        }

        .jobs-list-right {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            justify-self: end;
        }

        .jobs-filter-select {
            min-width: 116px;
            padding: 6px 9px;
            border-radius: 10px;
            border: 1px solid #d6e0ed;
            background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
            color: var(--text-primary);
            font-size: 11px;
            font-weight: 700;
            outline: none;
            box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
        }

        .jobs-filter-select:focus {
            border-color: #93c5fd;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
        }

        .jobs-list-header h2 {
            position: static;
            color: var(--text-primary);
            font-size: var(--text-2xl);
            font-weight: 700;
            margin: 0;
            letter-spacing: -0.02em;
            justify-self: center;
            text-align: center;
        }

        .back-to-menu-btn {
            background: #6b7280;
            color: white;
            padding: var(--space-3) var(--space-6);
            border: none;
            border-radius: var(--radius-md);
            font-size: var(--text-sm);
            font-weight: 700;
            cursor: pointer;
            width: auto;
            box-shadow: var(--shadow-md);
            transition: all var(--dur-2);
        }

        .back-to-menu-btn:hover {
            background: #4b5563;
            box-shadow: var(--shadow-lg);
        }

        .jobs-table {
            width: 100%;
            min-width: 800px;
            table-layout: fixed;
            border-collapse: separate;
            border-spacing: 0;
            background: rgba(255, 255, 255, 0.84);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow:
                0 20px 34px rgba(15, 23, 42, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.84);
            border: 1px solid rgba(226, 232, 240, 0.9);
            backdrop-filter: blur(12px) saturate(120%);
            -webkit-backdrop-filter: blur(12px) saturate(120%);
        }

        .jobs-table thead {
            background: rgba(248, 250, 252, 0.92);
        }

        .jobs-table th {
            padding: var(--space-4) var(--space-5);
            text-align: left;
            font-weight: 600;
            font-size: var(--text-xs);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-tertiary);
            border-bottom: 1px solid var(--border-light);
        }

        .jobs-table th input[type="checkbox"],
        .jobs-table td input[type="checkbox"] {
            cursor: pointer;
            width: 12px;
            height: 12px;
            appearance: none;
            -webkit-appearance: none;
            border: 1.5px solid #0f172a;
            border-radius: 3px;
            background: #ffffff;
            display: inline-grid;
            place-content: center;
            vertical-align: middle;
        }

        .jobs-table th input[type="checkbox"]::before,
        .jobs-table td input[type="checkbox"]::before {
            content: "";
            width: 5px;
            height: 5px;
            transform: scale(0);
            transition: transform 120ms ease-in-out;
            background: #0f172a;
            border-radius: 1px;
        }

        .jobs-table th input[type="checkbox"]:checked::before,
        .jobs-table td input[type="checkbox"]:checked::before {
            transform: scale(1);
        }

        .jobs-table th input[type="checkbox"]:focus-visible,
        .jobs-table td input[type="checkbox"]:focus-visible {
            outline: 2px solid rgba(37, 99, 235, 0.38);
            outline-offset: 1px;
        }

        #signup-step-panels input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 12px;
            height: 12px;
            border: 1.5px solid #0f172a;
            border-radius: 3px;
            background: #ffffff;
            display: inline-grid;
            place-content: center;
            vertical-align: middle;
        }

        #signup-step-panels input[type="checkbox"]::before {
            content: "";
            width: 5px;
            height: 5px;
            transform: scale(0);
            transition: transform 120ms ease-in-out;
            background: #0f172a;
            border-radius: 1px;
        }

        #signup-step-panels input[type="checkbox"]:checked::before {
            transform: scale(1);
        }

        .jobs-table tbody tr {
            border-bottom: 1px solid var(--border-light);
            transition: all 0.15s ease;
            opacity: 0;
            animation: fadeInRow 0.3s ease-out forwards;
        }

        .jobs-table tbody tr:last-child {
            border-bottom: none;
        }

        .jobs-table tbody tr:hover {
            background: rgba(243, 247, 252, 0.9);
        }

        .jobs-table tbody tr.job-row-selected {
            background: rgba(224, 242, 254, 0.9);
        }

        .jobs-table tbody tr.job-row-selected:hover {
            background: rgba(186, 230, 253, 0.84);
        }

        .jobs-table td {
            padding: 18px 20px;
            color: #1f2937;
            font-weight: 500;
            font-size: 15px;
        }

        .jobs-table .job-name {
            color: #111827;
            font-weight: 700;
            font-size: 15px;
            min-width: 0;
        }

        .job-name-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .job-expand-caret {
            width: 20px;
            height: 20px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #475569;
            background: #f1f5f9;
            transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
        }

        .job-expand-caret.open {
            transform: rotate(180deg);
            background: #e2e8f0;
            color: #0f172a;
        }

        .job-row-expandable {
            cursor: pointer;
        }

        .job-row-expandable td {
            user-select: none;
        }

        .job-days-expand-row {
            display: none;
            background: #fbfdff;
        }

        .job-days-expand-row.open {
            display: table-row;
        }

        .job-days-expand-row td {
            padding: 0;
            border-top: 1px solid #eef2f7;
        }

        .job-days-expand-panel {
            padding: 16px 20px 18px 72px;
            display: grid;
            gap: 8px;
        }

        .job-days-expand-item {
            display: grid;
            grid-template-columns: minmax(140px, 210px) 1fr auto;
            gap: 14px;
            align-items: center;
            background: #ffffff;
            border: 1px solid #e6edf5;
            border-radius: 10px;
            padding: 10px 12px;
            cursor: pointer;
            transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
        }

        .job-days-expand-item:hover {
            border-color: #c9d9ec;
            background: #f8fbff;
            transform: translateY(-1px);
        }

        .job-days-expand-label {
            font-size: 13px;
            font-weight: 700;
            color: #0f172a;
        }

        .job-days-expand-detail {
            font-size: 12px;
            font-weight: 600;
            color: #64748b;
            line-height: 1.4;
        }

        .job-days-expand-total {
            font-size: 13px;
            font-weight: 700;
            color: #0f172a;
            white-space: nowrap;
        }

        .job-days-expand-empty {
            font-size: 13px;
            color: #64748b;
            font-weight: 600;
            background: #ffffff;
            border: 1px dashed #d6e0eb;
            border-radius: 10px;
            padding: 12px;
        }

        .jobs-table .job-date {
            color: #6b7280;
            font-weight: 500;
            font-size: 14px;
        }

        .jobs-table .job-days {
            color: #6b7280;
            font-weight: 500;
        }

        .jobs-table .job-pay {
            color: #111827;
            font-weight: 700;
            font-size: 16px;
        }

        .jobs-table .job-actions {
            display: grid;
            grid-template-columns: repeat(3, max-content) 24px;
            justify-content: center;
            width: 100%;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .jobs-table .job-actions .job-expand-caret {
            margin-left: 0;
            width: 24px;
            height: 24px;
            font-size: 13px;
            flex: 0 0 auto;
        }

        .jobs-list-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .job-name-link {
            color: #111827;
            font-weight: 700;
            cursor: pointer;
            transition: color 0.2s ease;
            display: block;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .job-name-link:hover {
            color: #000000;
            text-decoration: none;
        }

        .job-action-btn {
            padding: 8px 14px;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            width: auto;
            margin: 0;
        }

        .status-chip {
            display: inline-block;
            padding: 5px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.2px;
            text-transform: uppercase;
        }

        .status-chip.sent {
            background: #dcfce7;
            color: #166534;
        }

        .status-chip.unsent {
            background: #f1f5f9;
            color: #475569;
        }

        .status-chip.paid {
            background: #e3efe9;
            color: #1D4ED8;
        }

        .status-chip.unpaid {
            background: #fef3c7;
            color: #92400e;
        }

        .job-status-btn {
            background: #f8fafc;
            color: #334155;
            border: 1px solid #dbe2ec;
        }

        .job-status-btn:hover {
            background: #eef2f7;
        }

        .job-view-btn {
            background: #f3f4f6;
            color: #374151;
            border: 1px solid #e5e7eb;
        }

        .job-view-btn:hover {
            background: #e5e7eb;
            border-color: #d1d5db;
        }

        .job-view-btn:active {
            background: #d1d5db;
        }

        .job-save-btn {
            background: #6366f1;
            color: white;
        }

        .job-save-btn:hover {
            background: #4f46e5;
        }

        .job-save-btn:active {
            background: #4338ca;
        }

        .home-inline-btn {
            background: #f1f5f9;
            color: #0f172a;
            padding: 10px 16px;
            border: 1px solid #e2e8f0;
            border-radius: 999px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            width: auto;
            box-shadow: none;
            transition: all 0.2s;
        }

        .home-inline-btn:hover {
            background: #e2e8f0;
            transform: translateY(-2px);
        }

        .job-edit-btn {
            background: #000000;
            color: white;
        }

        .job-edit-btn:hover {
            background: #1a1a1a;
        }

        .job-edit-btn:active {
            background: #333;
        }

        .job-delete-btn {
            background: #fee;
            color: #dc2626;
            border: 1px solid #fecaca;
        }

        .job-delete-btn:hover {
            background: #fca;
            border-color: #fca5a5;
        }

        .job-delete-btn:active {
            background: #fbb;
        }

        .no-jobs-message {
            text-align: center;
            padding: 80px 20px;
            color: #6b7280;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .job-creation-section {
            animation: slideIn 0.3s ease-out;
        }

        .password-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .password-wrapper input {
            padding-right: 45px;
        }

        .toggle-password {
            position: absolute;
            right: 14px;
            cursor: pointer;
            font-size: 20px;
            user-select: none;
            color: #94a3b8;
            transition: color 0.2s ease;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .toggle-password:hover {
            color: #64748b;
        }

        .toggle-password svg {
            width: 20px;
            height: 20px;
        }

        #signup-section .signup-shell {
            max-width: min(920px, 92vw);
            margin: 40px auto 56px;
        }

        #login-section .signup-shell {
            width: 50%;
            max-width: none;
            margin: 40px auto 56px;
        }

        #login-section form {
            max-width: 100%;
        }

        #signup-section form {
            max-width: 100%;
        }

        #signup-step-panels [data-signup-step="4"] .settings-field {
            border: 1px solid #d6e0ed;
            border-radius: 16px;
            padding: 14px;
            background: linear-gradient(160deg, #ffffff 0%, #f6f9ff 58%, #eef4ff 100%);
            box-shadow:
                0 14px 32px rgba(15, 23, 42, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        #signup-step-panels [data-signup-step="4"] .settings-field > label {
            font-size: 14px;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 10px;
        }

        .signup-template-scroll {
            display: block;
            overflow: hidden;
            padding: 0;
        }

        .signup-template-scroll::-webkit-scrollbar {
            height: 8px;
        }

        .signup-template-scroll::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 999px;
        }

        .signup-template-option {
            width: 100%;
            border: 1px solid #d6e0ed;
            border-radius: 16px;
            background: linear-gradient(170deg, #ffffff 0%, #f8fbff 58%, #edf4ff 100%);
            padding: 14px;
            cursor: pointer;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
            box-shadow:
                0 16px 30px rgba(15, 23, 42, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
            margin: 0;
            text-align: left;
            overflow: hidden;
            position: relative;
        }

        .signup-template-option:hover {
            border-color: #94a3b8;
            transform: translateY(-1px);
        }

        .signup-template-option.active {
            border-color: #000000;
            box-shadow:
                0 0 0 4px #000000,
                0 24px 36px rgba(15, 23, 42, 0.18);
        }

        .signup-template-option-choice {
            margin-top: 10px;
            font-size: 12px;
            font-weight: 700;
            color: #334155;
        }

        .signup-template-option.active .signup-template-option-choice {
            color: #000000;
        }

        .signup-template-option-title {
            font-size: 15px;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 5px;
            line-height: 1.3;
        }

        .signup-template-option-copy {
            font-size: 12px;
            color: #64748b;
            line-height: 1.4;
            margin-bottom: 12px;
            white-space: normal;
        }

        .signup-template-option-preview {
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            overflow: hidden;
            background: #ffffff;
            box-shadow:
                0 10px 22px rgba(15, 23, 42, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
            height: 420px;
            padding: 10px 10px 12px;
            position: relative;
        }

        .signup-template-option-preview .invoice-template-stack {
            transform: scale(0.64);
            transform-origin: top left;
            width: 157%;
            margin-left: 3px;
            margin-bottom: -60%;
            pointer-events: none;
        }

        .signup-template-option-preview .invoice-template-canvas {
            box-shadow: none;
            border-width: 1px;
            border-color: #dbe5f1 !important;
            border-radius: 0 0 14px 14px;
            overflow: hidden;
            clip-path: inset(0 round 0 0 14px 14px);
        }

        .signup-template-option-preview .invoice-template-canvas::before,
        .signup-template-option-preview .invoice-template-canvas::after {
            box-shadow: none !important;
            border-color: transparent !important;
        }

        .signup-template-option-preview::after {
            content: "";
            position: absolute;
            left: 10px;
            right: 10px;
            bottom: 10px;
            height: 2px;
            background: #dbe5f1;
            border-radius: 2px;
            pointer-events: none;
        }

        .signup-template-controls {
            margin-top: 12px;
            display: grid;
            grid-template-columns: auto 1fr auto;
            align-items: center;
            gap: 10px;
        }

        #signup-template-carousel-status {
            text-align: center;
            margin: 0;
            font-size: 12px;
            font-weight: 800;
            color: #475569;
        }

        /* Toast Notification Styles */
        .toast-container {
            position: fixed;
            left: 50%;
            bottom: 18px;
            transform: translateX(-50%);
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 8px;
            pointer-events: none !important;
            width: min(92vw, 520px);
        }

        .toast {
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: var(--radius-lg);
            padding: var(--space-3) var(--space-4);
            box-shadow: var(--shadow-lg);
            display: flex;
            align-items: center;
            gap: var(--space-3);
            width: 100%;
            opacity: 0;
            transform: translateY(var(--space-4)) scale(0.98);
            transition: transform 0.22s ease, opacity 0.22s ease;
            pointer-events: all;
            border: 1px solid var(--border-light);
        }

        .toast.show {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .toast.success {
            border-color: #BFDBFE;
        }

        .toast.error {
            border-color: #fecaca;
        }

        .toast.warning {
            border-color: #fcd34d;
        }

        .toast.info {
            border-color: #d8e1ee;
        }

        .toast-icon {
            font-size: 14px;
            font-weight: 900;
            flex-shrink: 0;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            color: #0f172a;
            background: #e2e8f0;
        }

        .toast.success .toast-icon {
            background: #BFDBFE;
            color: #1E40AF;
        }

        .toast.error .toast-icon {
            background: #fee2e2;
            color: #b91c1c;
        }

        .toast.warning .toast-icon {
            background: #fef3c7;
            color: #a16207;
        }

        .toast-content {
            flex: 1;
            color: #0f172a;
            font-size: 13px;
            font-weight: 650;
            line-height: 1.35;
            letter-spacing: -0.1px;
        }

        .toast-close {
            cursor: pointer;
            color: #64748b;
            font-size: 18px;
            line-height: 1;
            padding: 2px 6px;
            background: transparent;
            border: none;
            flex-shrink: 0;
            transition: all 0.15s ease;
            border-radius: 8px;
            margin: 0;
            width: auto;
            box-shadow: none;
        }

        .toast-close:hover {
            color: #0f172a;
            background: #e2e8f0;
            transform: none;
        }

        .create-job-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            background: #0a84ff;
            color: white;
            padding: 10px 16px;
            border: none;
            outline: none;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: var(--shadow-md);
            transition: all var(--dur-2);
            min-width: 194px;
            width: auto;
            margin: 0;
        }

        .create-job-btn:hover {
            background: #0079eb;
            box-shadow: var(--shadow-lg);
            transform: translateY(-2px);
        }

        .create-job-btn:active {
            box-shadow: var(--shadow-sm);
            transform: translateY(-1px);
        }

        .create-job-btn:focus-visible {
            outline: 2px solid rgba(10, 132, 255, 0.5);
            outline-offset: 2px;
        }

        .delete-selected-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-2);
            background: #fff5f5;
            color: #b91c1c;
            padding: 4px 8px;
            border: 1px solid #f8c8c8;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            transition: all var(--dur-2);
            box-shadow: var(--shadow-sm);
            min-width: 88px;
            line-height: 1;
        }

        .delete-selected-btn.hidden {
            display: inline-flex !important;
            visibility: hidden;
            pointer-events: none;
        }

        .delete-selected-btn .delete-selected-count {
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: var(--radius-full);
            background: #b91c1c;
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 700;
            line-height: 1;
        }

        .penalty-options-row {
            align-items: stretch;
        }

        .penalty-options-row .penalty-group {
            display: flex;
            flex-direction: column;
        }

        .penalty-options-row .penalty-buttons-section {
            flex: 1;
            min-height: 46px;
        }

        .penalty-options-row .penalty-buttons-section.options-box {
            min-height: 46px;
            display: flex;
            align-items: center;
            align-content: flex-start;
            justify-content: flex-start;
            flex-wrap: wrap;
            overflow: hidden;
            width: 100%;
            box-sizing: border-box;
        }

        .penalty-options-row .penalty-buttons-section.options-box .checkbox-group {
            min-width: 0;
            flex: 0 1 auto;
        }

        .penalty-options-row .penalty-buttons-section.options-box .checkbox-group label {
            white-space: normal;
        }

        .delete-selected-btn:hover {
            background: #ffecec;
            border-color: #ef9a9a;
            color: #991b1b;
            box-shadow: var(--shadow-md);
        }

        .delete-selected-btn:active {
            box-shadow: var(--shadow-sm);
        }

        .home-inline-btn {
            background: var(--surface-secondary);
            color: var(--text-primary);
            padding: var(--space-2) var(--space-4);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            font-size: var(--text-sm);
            font-weight: 700;
            cursor: pointer;
            width: auto;
            box-shadow: var(--shadow-sm);
            transition: all var(--dur-2);
        }

        .home-inline-btn:hover {
            background: var(--surface-hover);
            transform: translateY(-2px);
        }

        .save-job-btn {
            background: #00cc88;
            box-shadow: var(--shadow-md);
            margin-top: var(--space-5);
        }

        .save-job-btn:hover {
            background: #009966;
            box-shadow: var(--shadow-lg);
        }

        .invoice-builder-section.hidden {
            display: none;
        }

            .invoice-builder-section {
                position: relative;
            }

        .invoice-stats-card {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--space-4);
            margin: var(--space-6) auto;
            max-width: 100%;
            padding: var(--space-5);
            background: var(--surface);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
        }

        .invoice-stat {
            display: flex;
            flex-direction: column;
            gap: var(--space-2);
        }

        .invoice-stat.highlight {
            padding: var(--space-3);
            background: var(--surface-secondary);
            border-radius: var(--radius-md);
        }

        .invoice-stat-label {
            font-size: var(--text-xs);
            font-weight: 600;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .invoice-stat-value {
            font-size: var(--text-xl);
            font-weight: 700;
            color: var(--text-primary);
        }

        .invoice-stat.highlight .invoice-stat-value {
            font-size: var(--text-2xl);
        }

        .job-summary-section {
            animation: slideIn 0.3s ease-out;
              position: relative;
        }

        .job-summary-header {
            background: var(--surface-secondary);
            color: var(--text-primary);
            padding: var(--space-4) var(--space-5);
            border-radius: var(--radius-lg);
            margin-bottom: var(--space-5);
            border: 1px solid var(--border-light);
            box-shadow: none;
            display: inline-flex;
            flex-direction: column;
            align-items: flex-start;
            gap: var(--space-1);
            max-width: 100%;
        }

        .job-summary-header h2 {
            margin: 0;
            font-size: var(--text-xl);
            font-weight: 700;
            letter-spacing: -0.02em;
        }

            .job-summary-subtitle {
                margin: var(--space-1) 0 0 0;
                font-size: var(--text-xs);
                text-transform: uppercase;
                letter-spacing: 0.05em;
                color: var(--text-tertiary);
                font-weight: 700;
            }

        .job-summary-header .status {
            font-size: 16px;
            font-weight: 700;
            opacity: 0.95;
            display: inline-block;
        }

        .job-summary-content {
            background: rgba(255, 255, 255, 0.82);
            border-radius: var(--radius-lg);
            padding: var(--space-4);
            border: 1px solid rgba(226, 232, 240, 0.88);
