* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 0;
    color: #1d1d1f;
    position: relative;
    overflow-x: hidden;
}

/* Printer icon in header */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.brand-text h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.brand-text .subtitle {
    font-size: 1.1rem;
    color: #6e6e73;
    font-weight: 400;
}

.metrics-text {
    font-size: 0.9375rem;
    color: #6e6e73;
    font-weight: 400;
    margin: 0;
}

.brand-text .metrics-number {
    font-weight: 500;
    color: #1d1d1f;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: left;
    color: #1d1d1f;
    margin-bottom: 60px;
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.header-row-mobile {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #1d1d1f;
}

/* Profile Icon Dropdown */
.profile-dropdown-container {
    position: relative;
    display: inline-block;
}

.profile-icon-btn {
    background: transparent;
    border: 1px solid #d2d2d7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.profile-icon-btn:hover {
    background: #f5f5f7;
    border-color: #1d1d1f;
}

.profile-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: max-content;
    min-width: 0;
    z-index: 1000;
    overflow: hidden;
    transform-origin: top right;
}

.profile-dropdown-name {
    padding: 10px 14px 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}


.profile-username {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1d1d1f;
    margin-bottom: 4px;
    text-align: right;
}

.profile-guest-indicator {
    display: block;
    font-size: 0.85rem;
    color: #6e6e73;
    font-weight: 400;
    text-align: right;
}

.profile-dropdown-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0;
}

.profile-dropdown-item {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    text-align: right;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    font-size: 0.95rem;
    color: #1d1d1f;
    transition: background-color 0.2s;
}

.profile-dropdown-item:hover {
    background: #f5f5f7;
}

.profile-dropdown-icon {
    width: 18px;
    height: 18px;
    color: #6e6e73;
}

/* Nav links (The Vision, How to use) — underlined, bold, slightly toward login */
.nav-links-header {
    position: absolute;
    left: 58%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 32px;
    z-index: 10;
}

.nav-link {
    color: #1d1d1f;
    text-decoration: underline;
    font-size: 0.9375rem;
    font-weight: 700;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: #0066cc;
}

/* Login Link */

.login-link {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-block;
}

.login-link:hover {
    background-color: #f5f5f7;
    border-color: #1d1d1f;
    text-decoration: none;
}


.upload-section {
    background: #fbfbfd;
    border-radius: 18px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #e5e5e5;
}

.upload-section.uploading {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.upload-section.uploading .upload-area,
.upload-section.uploading .upload-consent-row {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.upload-area {
    border: 2px dashed #d2d2d7;
    border-radius: 12px;
    padding: 45px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #ffffff;
}

.upload-area:hover {
    border-color: #1d1d1f;
    background: #fafafa;
}

.upload-area.dragover {
    border-color: #1d1d1f;
    background: #f5f5f7;
    transform: scale(1.01);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: #1d1d1f;
    margin: 0 auto 20px;
    stroke-width: 1.5;
}

.upload-area h2 {
    color: #1d1d1f;
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 600;
}

.upload-area p {
    color: #6e6e73;
    margin: 8px 0;
    font-size: 0.95rem;
}

.upload-title-mobile,
.upload-subtitle-mobile {
    display: none;
}

.upload-mobile-row {
    display: none;
}

.upload-btn {
    display: inline-block;
    background: #1d1d1f;
    color: white;
    padding: 12px 24px;
    border-radius: 980px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 16px;
    pointer-events: auto;
}

.upload-btn:hover {
    background: #000000;
    transform: scale(1.02);
}

.upload-consent-row {
    margin-top: 16px;
    text-align: center;
}

.upload-consent-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1d1d1f;
    max-width: 420px;
    text-align: left;
}

.upload-consent-label input[type="checkbox"] {
    margin-top: 0.2em;
    flex-shrink: 0;
}

.legal-link {
    color: #0066cc;
    text-decoration: underline;
}

.legal-link:hover {
    color: #004499;
}

.upload-area.upload-disabled {
    pointer-events: none;
    opacity: 0.7;
}

.upload-area.upload-disabled .upload-btn {
    cursor: not-allowed;
}

.legal-modal-body {
    white-space: pre-wrap;
    margin-bottom: 20px;
    line-height: 1.5;
    color: #1d1d1f;
}

/* Terms / Privacy modals: same width/height, fixed height, scrollable body */
.modal-content.legal-modal {
    width: 725px;
    max-width: 90vw;
    height: 68vh;
    max-height: 68vh;
    display: flex;
    flex-direction: column;
}

.modal-content.legal-modal .modal-body {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-content.legal-modal .modal-header h2 {
    font-size: 130%;
}

.modal-content.legal-modal .legal-modal-body {
    font-size: 71.875%;
}

.upload-progress {
    margin-top: 24px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: #1d1d1f;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #6e6e73;
    font-size: 0.875rem;
}

.files-section {
    margin-bottom: 32px;
}

.files-container-box {
    background: #fbfbfd;
    border-radius: 18px;
    padding: 32px;
    border: 1px solid #e5e5e5;
    overflow-x: auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.section-header h2 {
    color: #1d1d1f;
    font-size: 1.5rem;
}

.section-title-mobile {
    display: none;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.collection-locations-link {
    display: inline-block;
    color: #0071e3;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.collection-locations-link:hover {
    color: #0077ed;
    text-decoration: underline;
}

.refresh-btn {
    background: transparent;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: #f5f5f7;
    border-color: #1d1d1f;
    transform: rotate(180deg);
}

.refresh-icon {
    width: 18px;
    height: 18px;
    color: #1d1d1f;
    transition: transform 0.2s ease;
}

.files-container {
    overflow-x: auto;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.files-table thead {
    background: transparent;
    border-bottom: 1px solid #e5e5e5;
}

.files-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: capitalize;
    letter-spacing: 0;
    color: #1d1d1f;
}

/* Print Jobs table column widths */
.print-jobs-table th:nth-child(1) {
    width: 15%;
    min-width: 120px;
}

.print-jobs-table th:nth-child(2) {
    width: 18%;
    min-width: 150px;
}

.print-jobs-table th:nth-child(3) {
    width: 12%;
    min-width: 100px;
}

.print-jobs-table th:nth-child(4) {
    width: 10%;
    min-width: 80px;
}

.print-jobs-table th:nth-child(5) {
    width: 25%;
    min-width: 200px;
}

.print-jobs-table th:nth-child(6) {
    width: 20%;
    min-width: 150px;
}

/* Staged files table - keep checkbox column styling */
.files-table:not(.print-jobs-table) th:first-child {
    width: 50px;
    text-align: center;
}

.files-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.files-table tbody tr:hover {
    background-color: #f5f5f7;
}

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

.files-table td {
    padding: 16px;
    vertical-align: middle;
}

/* Ensure proper alignment for Print Jobs table */
.files-table tbody td {
    padding: 12px 16px;
}

.file-checkbox-cell {
    text-align: center;
    width: 50px;
}

.files-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1d1d1f;
}

.file-name-cell {
    font-weight: 500;
    color: #1d1d1f;
    word-break: break-word;
    max-width: 400px;
}

.file-preview-link {
    color: #1d1d1f;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
}

.file-preview-link:hover {
    color: #0066cc;
}

.file-size-cell {
    color: #6e6e73;
    font-size: 0.875rem;
    white-space: nowrap;
}

.file-pages-cell {
    color: #6e6e73;
    font-size: 0.875rem;
    white-space: nowrap;
    text-align: center;
}

.file-date-cell {
    color: #6e6e73;
    font-size: 0.875rem;
    white-space: nowrap;
}

.file-action-cell {
    text-align: right;
    white-space: nowrap;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.file-status-cell {
    white-space: nowrap;
}

.file-released-at-cell {
    font-size: 0.875rem;
    color: #6e6e73;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.status-sent {
    background: #f0f0f0;
    color: #6e6e73;
}

.status-printed {
    background: #e8f5e9;
    color: #1b5e20;
}

.status-failed {
    background: #ffebee;
    color: #c62828;
}

.info-icon {
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.2s ease;
    user-select: none;
}

.info-icon:hover {
    transform: scale(1.1);
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 980px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #1d1d1f;
    color: white;
}

.btn-primary:hover {
    background: #000000;
}

.btn-danger {
    background: #c00;
    color: white;
}

.btn-danger:hover {
    background: #a00;
}

.btn-secondary {
    background: transparent;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.btn-secondary:hover {
    background: #f5f5f7;
    border-color: #1d1d1f;
}

.btn-release {
    background: #1d1d1f;
    color: white;
    margin-right: 8px;
}

.btn-release:hover {
    background: #000000;
}

.btn-stage {
    background: transparent;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
    margin-right: 8px;
}

.btn-stage:hover {
    background: #f5f5f7;
}

.btn-delete {
    background: transparent;
    color: #ff3b30;
    border: 1px solid #ff3b30;
}

.btn-delete:hover {
    background: #ff3b30;
    color: white;
}

/* Icon button for trash */
.btn-icon {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon svg {
    pointer-events: none;
}

.btn-delete-icon {
    color: #8e8e93;
}

.btn-delete-icon:hover {
    color: #ff3b30;
    background: #fff5f5;
}

.btn-delete-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: auto; /* Allow hover for tooltip */
}

.btn-delete-disabled:hover {
    color: #8e8e93; /* Keep gray color, don't change to red */
    background: rgba(142, 142, 147, 0.1); /* Light gray background instead of red */
}

/* Status link */
.status-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.status-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

.table-actions {
    margin-top: 24px;
    padding: 16px;
    background: transparent;
    border-radius: 12px;
    text-align: right;
}

.btn-release-bulk {
    background: #1d1d1f;
    color: white;
    padding: 12px 24px;
    font-size: 0.95rem;
}

.btn-release-bulk:hover {
    background: #000000;
}

.btn-release-bulk:disabled {
    background: #d2d2d7;
    color: #6e6e73;
    cursor: not-allowed;
}

.loading, .empty-state {
    text-align: center;
    padding: 48px;
    color: #6e6e73;
    font-size: 1rem;
}

.loading td, .empty-state td {
    text-align: center;
}

.empty-state {
    color: #8e8e93;
}

.released-links-empty {
    text-align: center;
    padding: 48px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    /* ----- Mobile typography (standardized) -----
     * 1. Main header: "Print Link"
     * 2. Section titles: "Upload Here", "Your Files", "Your Print Links" (same size)
     * 3. Normal text: body, empty states, file names, buttons, modals (same as "No print links created")
     * 4. Footnotes: smaller than normal (upload subtitle, file meta, hints)
     */
    header h1,
    .brand-text h1 {
        font-size: 1.4rem;
    }
    .section-title-mobile,
    .upload-title-mobile {
        font-size: 1.1rem !important;
        font-weight: 600;
    }
    .released-links-empty,
    .staged-cards-empty,
    .progress-text,
    .file-card-name,
    .modal-body,
    .modal-body p {
        font-size: 0.8rem !important;
    }
    .upload-subtitle-mobile,
    .upload-consent-label,
    .upload-consent-label span,
    .file-card-meta,
    .qr-hint,
    .print-options-hint,
    .print-job-file-card .file-card-meta {
        font-size: 0.72rem !important;
    }

    html {
        min-width: 345px;
        overflow-x: auto;
    }

    html:has(body.store-job-page),
    html:has(body.print-links-home) {
        overflow-x: visible;
    }
    
    body {
        min-width: 345px;
        overflow-x: auto;
    }

    /* Sticky headers: overflow-x:auto on body/html creates a scroll box and breaks sticky (iOS / WebKit) */
    body.store-job-page,
    body.print-links-home {
        overflow-x: visible;
    }
    
    .container {
        min-width: 345px;
    }
    
    .files-table,
    .files-table th,
    .files-table td {
        font-size: 0.8rem !important;
    }
    
    .files-table th,
    .files-table td {
        padding: 12px 8px;
    }
    
    .file-name-cell {
        max-width: 200px;
    }
    
    /* Header: logo, Print Link, subtitle left; hamburger right; same row via .header-row-mobile */
    header {
        text-align: left;
        width: 100%;
    }
    
    .header-row-mobile {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .logo-container {
        flex-shrink: 0;
        min-width: 0;
        display: flex;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }
    
    .header-nav-mobile {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }
    
    .brand-text {
        min-width: 0;
        text-align: left;
    }
    
    .brand-text h1 {
        margin-bottom: 2px;
        text-align: left;
    }
    
    .brand-text .subtitle {
        font-size: 0.72rem;
        text-align: left;
    }
    
    .metrics-text {
        font-size: 0.72rem;
        margin-top: 6px;
    }
    
    header {
        margin-bottom: 32px;
        padding: 10px 0;
    }
    
    .container {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        padding: 20px 12px;
    }
    
    /* Create Print Job: center on viewport (break out of container) */
    #stagedMobileActions {
        display: block !important;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-top: 12px;
        margin-bottom: 6px;
        padding: 0;
        box-sizing: border-box;
        text-align: center;
    }
    #stagedMobileActions .btn-release-bulk {
        display: inline-block;
        margin: 0;
    }
    
    /* Staged files list: no outer box on mobile */
    .files-container-box {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        overflow: visible;
    }
    
    /* Section headers and refresh button */
    .section-header {
        margin-bottom: 12px;
    }
    
    .section-header h2 {
        font-size: 1.1rem;
    }
    .section-title-desktop {
        display: none;
    }
    .section-title-mobile {
        display: inline;
    }
    
    .released-links-empty {
        font-size: 0.8rem;
        padding: 20px 16px;
    }
    
    .refresh-btn {
        width: 21px;
        height: 21px;
        padding: 3px;
    }
    
    .refresh-icon {
        width: 9px;
        height: 9px;
    }
    
    /* Buttons: smaller on mobile */
    .btn {
        padding: 4px 10px;
        font-size: 0.72rem;
    }
    
    .btn-release-bulk {
        padding: 6px 12px;
        font-size: 0.72rem;
    }
    
    .btn-icon {
        padding: 4px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .btn-icon svg,
    .btn-delete-icon svg {
        width: 12px;
        height: 12px;
    }
    
    /* Upload (mobile): icon + "Upload here" on one line, subtitle below; all centered */
    .upload-btn {
        display: none !important;
    }
    
    .upload-section {
        padding: 12px 0;
        margin-bottom: 20px;
        background: transparent;
        border: none;
    }
    
    .upload-area {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 16px;
        border: 1px solid #e5e5ea;
        border-radius: 12px;
        background: #f5f5f7;
    }
    
    .upload-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    
    .upload-icon-desktop {
        display: none !important;
    }
    
    .upload-mobile-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .upload-mobile-row .upload-icon-mobile {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        margin-bottom: 6px;
    }
    
    .upload-mobile-row .upload-title-mobile {
        display: block !important;
        margin: 0 !important;
        color: #1d1d1f;
    }
    
    /* Desktop copy hidden on mobile */
    .upload-title-desktop,
    .upload-subtitle {
        display: none !important;
    }
    
    .upload-area .upload-title-mobile,
    .upload-mobile-row .upload-title-mobile {
        display: block !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        color: #1d1d1f;
    }
    
    .upload-area .upload-subtitle-mobile {
        display: block !important;
        margin: 4px 0 0;
        max-width: 100%;
        color: #6e6e73;
        white-space: normal;
        text-align: center;
    }
    
    /* Upload progress: status bar and text consistent with other mobile text */
    .upload-progress {
        margin-top: 16px;
    }
    .progress-bar {
        height: 4px;
        margin-bottom: 10px;
    }
    .progress-text {
        font-size: 0.8rem;
        color: #6e6e73;
        margin: 0;
    }
    
    /* Print Job Box (after job is created) - mobile, inspired by staged cards/section layout */
    .print-job-box {
        border-radius: 12px;
        margin-bottom: 16px;
        border: 1px solid #e5e5e5;
        overflow: hidden;
    }
    
    .print-job-actions-mobile {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    /* All three buttons: outer box 15% smaller (36 * 0.85 ≈ 31px) */
    .print-job-actions-mobile .btn-disable-job,
    .print-job-actions-mobile .btn-refresh-job,
    .print-job-actions-mobile .btn-copy-link.btn-copy-link-inline {
        position: static;
        width: 31px;
        height: 31px;
        min-width: 31px;
        min-height: 31px;
        padding: 0;
        border-radius: 6px;
        border: 1px solid #d2d2d7;
        background: transparent !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .print-job-actions-mobile .btn-copy-link.btn-copy-link-inline {
        background: #1d1d1f !important;
        border-color: #1d1d1f;
        color: #ffffff;
    }
    
    .print-job-actions-mobile .btn-disable-job:hover,
    .print-job-actions-mobile .btn-refresh-job:hover {
        background: #f5f5f7 !important;
        border-color: #1d1d1f;
    }
    
    .print-job-actions-mobile .btn-copy-link.btn-copy-link-inline:hover {
        background: #000000 !important;
        border-color: #000000;
        color: #ffffff;
    }
    
    /* Chain and icons: same size for disable link and copy (14px = 16 * 0.875 for reduced box) */
    .print-job-actions-mobile .btn-disable-job .disable-link-icon,
    .print-job-actions-mobile .btn-refresh-job .refresh-icon,
    .print-job-actions-mobile .btn-copy-link.btn-copy-link-inline svg {
        width: 14px;
        height: 14px;
        margin: 0;
    }
    
    .print-job-box .btn-disable-job .disable-link-icon,
    .print-job-box .btn-refresh-job .refresh-icon,
    .print-job-box .btn-copy-link.btn-copy-link-inline svg {
        width: 10px;
        height: 10px;
    }
    
    .print-job-box-part1 {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 7px 8px;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .print-job-box-part1 > * {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .print-job-left-section {
        flex-direction: column;
        gap: 4px;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }
    
    /* QR code: centered on its own row */
    .print-job-left-section .qr-code-image-inline {
        display: block;
        margin: 0 auto;
    }
    
    .print-job-left-section .qr-code-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
    
    /* Buttons row: centered below QR */
    .print-job-actions-mobile {
        display: flex !important;
        justify-content: center;
        align-items: center;
    }
    
    .print-job-right-section {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
        max-width: 100%;
        align-items: stretch;
        box-sizing: border-box;
    }
    
    .print-job-right-section > * {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .print-options-section-inline,
    .confirmation-number-section-inline,
    .job-status-message-section {
        min-width: 0;
        width: 100%;
        display: block;
    }
    
    .print-options-section-inline label,
    .confirmation-number-section-inline label,
    .job-status-message-section label {
        font-size: 0.72rem;
        margin-bottom: 1px;
    }
    
    .print-options-display-inline,
    .job-status-message-display {
        display: block;
        width: 100%;
        padding: 4px 0;
        font-size: 0.8rem !important;
        box-sizing: border-box;
    }
    
    /* Print options in print job: footnote size on mobile */
    .print-job-box .print-options-display-inline,
    .print-job-box .print-options-display-inline .print-options-line1,
    .print-job-box .print-options-display-inline .print-options-line2,
    .print-job-box .print-options-display-inline .print-options-line3 {
        font-size: 0.72rem !important;
    }
    
    /* Center-align print options and status content on mobile */
    .print-job-box .print-options-section-inline,
    .print-job-box .job-status-message-section {
        text-align: center;
    }
    .print-job-box .print-options-display-inline,
    .print-job-box .job-status-message-display {
        text-align: center;
    }
    
    .qr-code-image-inline {
        width: 95px;
        height: 95px;
    }
    
    .qr-code-placeholder {
        font-size: 0.8rem;
    }
    
    .confirmation-number-wrapper {
        gap: 8px;
    }
    
    .confirmation-number-inline {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .btn-copy-link.btn-copy-link-inline {
        width: 36px;
        height: 36px;
    }
    
    .confirmation-number-wrapper .btn-copy-link.btn-copy-link-inline svg,
    .btn-copy-link.btn-copy-link-inline svg {
        width: 16px;
        height: 16px;
    }
    
    .print-job-box-part2-inner {
        margin: 0 0 8px 0;
        padding: 0 14px;
        border-radius: 0;
        border: none;
        background: transparent;
        overflow-x: visible;
    }
    
    .print-job-files-table thead th {
        padding: 8px 10px;
        font-size: 0.72rem;
    }
    
    .print-job-files-table tbody td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .print-job-files-table .file-name-cell {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .print-job-files-table .file-actions-cell {
        padding: 6px 8px;
    }
    
    .print-job-files-table .file-actions-cell .btn-icon {
        min-width: 28px;
        min-height: 28px;
        padding: 4px;
    }
    
    .print-job-files-table .file-actions-cell .btn-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .print-job-files-table .status-badge {
        font-size: 0.72rem;
    }
    
    /* Print job file list: cards on mobile (like staged files) */
    .print-job-box-part2-inner .print-job-files-table {
        display: none !important;
    }
    
    .print-job-box-part2-inner .print-job-files-cards {
        display: flex !important;
        flex-direction: column;
        gap: 7px;
    }
    
    .print-job-file-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 6px 0;
        background: transparent;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #e5e5ea;
    }
    
    .print-job-file-card:last-child {
        border-bottom: none;
    }
    
    .print-job-file-card .file-card-info {
        display: flex;
        flex-direction: column;
        gap: 1px;
        min-width: 0;
    }
    
    .print-job-file-card .file-card-name {
        font-size: 0.8rem !important;
        font-weight: 500;
        color: #0066cc;
        text-decoration: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .print-job-file-card .file-card-meta {
        font-size: 0.72rem !important;
        color: #6e6e73;
    }
    
    .print-job-file-card .file-card-meta .status-badge {
        font-size: inherit;
    }
    
    .print-job-file-card .file-card-released-at {
        display: block;
        font-size: 0.72rem !important;
        color: #6e6e73;
        margin-top: 4px;
    }
    
    .print-job-file-card .file-card-delete {
        flex-shrink: 0;
        padding: 4px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .print-job-file-card .file-card-delete svg {
        width: 12px;
        height: 12px;
    }
}

.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1d1d1f;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 320px;
    font-size: 0.95rem;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #1d1d1f;
}

.notification.error {
    background: #ff3b30;
}

.notification.info {
    background: #6e6e73;
}

/* Flyout notification: mobile sizing */
@media (max-width: 768px) {
    .notification {
        bottom: 16px;
        right: 12px;
        left: 12px;
        max-width: none;
        width: auto;
        padding: 12px 16px;
        font-size: 0.8rem;
        border-radius: 10px;
    }
}

/* Login Modal */
.modal {
    display: none; /* Hidden by default - only shown when explicitly called */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-content {
    background: white;
    border-radius: 18px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header h2 {
    margin: 0;
    color: #1d1d1f;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #8e8e93;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f5f5f7;
    color: #1d1d1f;
}

.modal-body {
    padding: 28px;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 1px solid #e5e5e5;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #6e6e73;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: #1d1d1f;
}

.tab-btn.active {
    color: #1d1d1f;
    border-bottom-color: #1d1d1f;
    font-weight: 600;
}

.auth-google-container {
    margin-bottom: 20px;
}
.auth-google-container #googleSignInBtn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Keep Google-rendered button same width as Continue as Guest */
.auth-google-container #googleSignInBtn > div {
    width: 100% !important;
}
.auth-google-container #googleSignInBtn iframe {
    width: 100% !important;
    max-width: 100%;
}
.auth-google-container .btn-google-popup {
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-google-popup {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: #1d1d1f;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.btn-google-popup:hover {
    background: #f8f9fa;
    border-color: #dadce0;
}
.btn-google-popup:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}
.auth-divider {
    text-align: center;
    margin: 16px 0;
    color: #86868b;
}

.auth-guest-row {
    margin-top: 8px;
}

.auth-guest-row .btn-guest {
    width: 100%;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 400;
    border-radius: 12px;
    border: 1px solid #d2d2d7;
    background: transparent;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.auth-guest-row .btn-guest:hover {
    background: #f5f5f7;
    border-color: #1d1d1f;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form .btn-primary {
    margin-top: 8px;
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-form .btn-guest {
    margin-top: 12px;
    width: 100%;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 400;
    border-radius: 12px;
    border: 1px solid #d2d2d7;
    background: transparent;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.auth-form .btn-guest:hover {
    background: #f5f5f7;
    border-color: #1d1d1f;
}

.form-group label {
    font-weight: 500;
    color: #1d1d1f;
    font-size: 0.875rem;
}

.form-group input {
    padding: 14px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fbfbfd;
}

.form-group input:focus {
    outline: none;
    border-color: #1d1d1f;
    background: #ffffff;
}

.error-message {
    color: #ff3b30;
    font-size: 0.875rem;
    margin-top: -8px;
    min-height: 0;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    border: none;
    display: none;
}

.error-message:not(:empty) {
    display: block;
    min-height: 20px;
    padding: 10px 12px;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .files-container {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }
}

/* Confirmation Modal Styles */
.confirmation-modal {
    max-width: 480px;
}

.confirmation-body {
    text-align: center;
}

.confirmation-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 28px;
}

.confirmation-number-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.confirmation-number-section label {
    font-weight: 500;
    color: #6e6e73;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.confirmation-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    letter-spacing: 1px;
    background: #fbfbfd;
}

.btn-copy {
    background: #1d1d1f;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 980px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    align-self: center;
    width: auto;
    min-width: 120px;
}

.btn-copy:hover {
    background: #000000;
}

.qr-code-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qr-code-section label,
.print-options-section label {
    font-weight: 500;
    color: #6e6e73;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.print-options-section {
    margin-bottom: 16px;
}

.print-options-display {
    padding: 12px 16px;
    background: #f5f5f7;
    border-radius: 8px;
    color: #1d1d1f;
    font-size: 0.875rem;
    margin-top: 8px;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: #fbfbfd;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
}

.qr-code-image {
    max-width: 200px;
    max-height: 200px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.qr-hint {
    color: #8e8e93;
    font-size: 0.8rem;
    margin-top: 4px;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

/* Responsive styles for confirmation modal */
@media (max-width: 600px) {
    .confirmation-modal {
        max-width: 95%;
    }
    
    .confirmation-number {
        font-size: 1.2rem;
        padding: 14px;
    }
    
    .qr-code-image {
        max-width: 180px;
    }
}

/* All modals + confirmation modals: mobile sizing + text aligned with rest of mobile UX */
@media (max-width: 768px) {
    .modal-content {
        width: calc(100% - 24px);
        max-width: none;
        margin: 12px;
        border-radius: 14px;
    }
    .modal-header {
        padding: 16px 18px 14px;
    }
    .modal-header h2 {
        font-size: 1.1rem;
        font-weight: 600;
    }
    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
    .modal-body {
        padding: 18px;
        font-size: 0.8rem;
    }
    .modal-body p {
        font-size: 0.8rem;
        line-height: 1.45;
    }
    .confirmation-modal {
        max-width: none;
        width: calc(100% - 24px);
    }
    .confirmation-modal .modal-body {
        font-size: 0.8rem;
    }
    .confirmation-info {
        gap: 20px;
        margin-bottom: 20px;
    }
    .confirmation-number-section label {
        font-size: 0.72rem;
    }
    .confirmation-number {
        font-size: 1.1rem;
        padding: 12px 14px;
    }
    .confirmation-actions {
        padding-top: 18px;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .confirmation-actions .btn {
        font-size: 0.8rem;
    }
    #deleteConfirmMessage,
    #disableConfirmMessage,
    #statusInfoMessage {
        font-size: 0.8rem !important;
        line-height: 1.45 !important;
        margin-bottom: 18px !important;
    }
    #deleteConfirmActions .btn,
    #disableConfirmActions .btn,
    #statusInfoModal .modal-body .btn {
        font-size: 0.8rem;
    }
    #deleteConfirmActions,
    #disableConfirmActions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   PRINT OPTIONS MODAL STYLES
   ============================================ */

/* Width sized to fit Copies/Pages row; controls scaled to match */
.print-options-modal {
    max-width: 400px;
    width: 95%;
}

.print-options-modal .print-options-body {
    padding: 16px 20px;
}

/* Desktop: one row per section — Color mode, Paper Size, Orientation each on one row; rest unchanged */
.print-options-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Color mode: two equal-width buttons (same width as Orientation row) */
.print-options-form .option-group:nth-child(1) .option-buttons {
    flex-wrap: nowrap;
    display: flex;
}
.print-options-form .option-group:nth-child(1) .option-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
}

/* Paper size: select width = combined width of color mode row (full row) */
.print-options-form .option-group:nth-child(2) .option-select {
    width: 100%;
    box-sizing: border-box;
}

/* Orientation: two equal-width buttons, combined width same as color row */
.print-options-form .option-group:nth-child(3) .option-buttons {
    flex-wrap: nowrap;
    display: flex;
}
.print-options-form .option-group:nth-child(3) .option-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
}

/* Copies + Pages on same row on desktop; extra gap so no empty space on right */
.copies-pages-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-end;
}

.copies-pages-row .option-group {
    flex: 1;
    min-width: 0;
    max-width: 200px;
}

.copies-pages-row .option-group:first-child {
    max-width: 120px;
}

/* Pages: All + input in one row; row height matches Copies box (36px) */
.print-options-form .option-group-pages .pages-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 36px;
}

.print-options-form .option-group-pages .custom-pages-input {
    flex: 1;
    min-width: 80px;
    max-width: 130px;
    height: 36px;
    box-sizing: border-box;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #1d1d1f;
}

/* Print options modal: tighter row/field sizes to fit narrow width */
.print-options-modal .option-group {
    gap: 6px;
}
.print-options-modal .option-label {
    font-size: 0.8125rem;
}
.print-options-modal .option-btn {
    padding: 8px 12px;
    font-size: 0.8125rem;
}
.print-options-modal .option-btn svg {
    width: 14px;
    height: auto;
}
.print-options-modal .option-select {
    padding: 10px 36px 10px 12px;
    font-size: 0.875rem;
    background-position: right 10px center;
}
.print-options-modal .copies-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}
.print-options-modal .copies-input {
    width: 52px;
    height: 36px;
    font-size: 0.875rem;
}
.print-options-modal .radio-label,
.print-options-modal .checkbox-label {
    font-size: 0.875rem;
}
.print-options-modal .checkbox-label {
    padding: 4px 0;
}
.print-options-modal .custom-pages-input {
    padding: 6px 10px;
    font-size: 0.8125rem;
}
.print-options-modal .print-options-summary {
    padding-top: 12px;
    margin-top: 4px;
    text-align: center;
}
.print-options-modal .print-options-summary span {
    font-size: 0.8125rem;
}
.print-options-modal .print-options-footer {
    padding: 14px 20px;
    justify-content: center;
}
.print-options-modal .print-options-footer .btn {
    padding: 10px 16px;
    font-size: 0.875rem;
}

/* Option Buttons (Color Mode, Orientation) */
.option-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: #ffffff;
    color: #1d1d1f;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    border-color: #1d1d1f;
    background: #f5f5f7;
}

.option-btn.active {
    border-color: #1d1d1f;
    background: #1d1d1f;
    color: #ffffff;
}

.option-btn svg {
    flex-shrink: 0;
}

/* Paper Size Select */
.option-select {
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.95rem;
    color: #1d1d1f;
    cursor: pointer;
    transition: border-color 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231d1d1f' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.option-select:hover,
.option-select:focus {
    border-color: #1d1d1f;
    outline: none;
}

/* Copies Control */
.copies-control {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.copies-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #d2d2d7;
    background: #ffffff;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copies-btn:first-child {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.copies-btn:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.copies-btn:hover {
    background: #f5f5f7;
}

.copies-btn:active {
    background: #e5e5e5;
}

.copies-input {
    width: 60px;
    height: 40px;
    border: 1px solid #d2d2d7;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #1d1d1f;
    -moz-appearance: textfield;
}

.copies-input::-webkit-outer-spin-button,
.copies-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.copies-input:focus {
    outline: none;
}

/* Pages Control */
.pages-control {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #1d1d1f;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #1d1d1f;
    cursor: pointer;
}

.custom-pages-input {
    flex: 1;
    max-width: 200px;
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #1d1d1f;
    transition: border-color 0.2s ease;
}

.custom-pages-input:disabled {
    background: #f5f5f7;
    color: #8e8e93;
    cursor: not-allowed;
}

.custom-pages-input:not(:disabled):hover,
.custom-pages-input:not(:disabled):focus {
    border-color: #1d1d1f;
    outline: none;
}

/* Checkbox (Duplex) */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #1d1d1f;
    padding: 8px 0;
}

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

/* Print Options Summary */
.print-options-summary {
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    margin-top: 8px;
    text-align: center;
}

.print-options-summary span {
    font-size: 0.875rem;
    color: #6e6e73;
}

/* Print Options Footer */
.print-options-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid #e5e5e5;
}

/* Print Options Hint in Confirmation */
.print-options-hint {
    color: #6e6e73;
    font-weight: 500;
}

/* Responsive styles for print options modal (Create Print Job) - mobile */
@media (max-width: 768px) {
    /* Modal container: use most of viewport, scroll if needed */
    .print-options-modal {
        max-width: none;
        width: calc(100% - 24px);
        margin: 12px;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .print-options-modal .modal-header {
        padding: 16px 20px 14px;
    }
    
    .print-options-modal .modal-header h2 {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .print-options-modal .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .print-options-body {
        padding: 16px 20px;
    }
    
    .print-options-form {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
    
    .print-options-modal .option-group {
        gap: 6px;
    }
    
    .print-options-modal .option-label {
        font-size: 0.8rem;
    }
    
    /* Color mode: two in one row, same width as Orientation buttons */
    .print-options-modal .print-options-form .option-group:nth-child(1) .option-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
    }
    .print-options-modal .print-options-form .option-group:nth-child(1) .option-btn {
        width: auto;
        min-width: 0;
        flex: 1;
        padding: 6px 6px;
        font-size: 0.7rem;
        justify-content: center;
    }
    .print-options-modal .print-options-form .option-group:nth-child(1) .option-btn svg {
        width: 12px;
        height: auto;
    }
    
    /* Orientation: both in one row, same width as color, center */
    .print-options-modal .print-options-form .option-group:nth-child(3) .option-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        justify-content: center;
    }
    .print-options-modal .print-options-form .option-group:nth-child(3) .option-btn {
        width: auto;
        min-width: 0;
        flex: 1;
        max-width: 50%;
        padding: 6px 6px;
        font-size: 0.7rem;
        justify-content: center;
    }
    .print-options-modal .print-options-form .option-group:nth-child(3) .option-btn svg {
        width: 12px;
        height: auto;
    }
    
    .print-options-modal .option-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .print-options-modal .option-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .print-options-modal .option-btn svg {
        width: 14px;
        height: auto;
    }
    
    .print-options-modal .option-select {
        padding: 10px 14px 10px 12px;
        font-size: 0.8rem;
        padding-right: 36px;
    }
    
    /* Copies + Pages: same row, aligned so control rows match height and baseline */
    .print-options-modal .copies-pages-row {
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: flex-end;
    }
    .print-options-modal .copies-pages-row .option-group {
        flex: 1;
        min-width: 0;
    }

    /* Copies: reduce width by 25% (140px -> 105px) */
    .print-options-modal .copies-control {
        width: 100%;
        max-width: 105px;
    }
    
    .print-options-modal .copies-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .print-options-modal .copies-input {
        width: 52px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    /* Pages: same row as Copies; match control height (36px) */
    .print-options-modal .option-group-pages .pages-control {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        min-height: 36px;
    }
    .print-options-modal .option-group-pages .radio-label {
        margin: 0;
        flex-shrink: 0;
    }
    .print-options-modal .option-group-pages .custom-pages-input {
        flex: 1;
        min-width: 0;
        max-width: 100%;
        height: 36px;
        box-sizing: border-box;
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .print-options-modal .pages-control {
        gap: 8px;
    }
    
    .print-options-modal .radio-label {
        font-size: 0.8rem;
    }
    
    .print-options-modal .radio-label input[type="radio"] {
        width: 16px;
        height: 16px;
    }
    
    .print-options-modal .custom-pages-input {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .print-options-modal .checkbox-label {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    .print-options-modal .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
    
    .print-options-summary {
        padding-top: 12px;
        margin-top: 6px;
        text-align: center;
    }
    
    .print-options-summary span {
        font-size: 0.8rem;
    }
    
    /* Footer: Cancel and Create Print Link side by side, reduced width */
    .print-options-footer {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 10px;
        padding: 16px 20px;
        border-top: 1px solid #e5e5e5;
    }
    
    .print-options-footer .btn {
        width: auto;
        flex: 1;
        max-width: 48%;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* Print Job Parent-Child Structure */
.print-job-row {
    background-color: #f5f5f7;
    font-weight: 600;
    border-top: 2px solid #d2d2d7;
}

.print-job-row:hover {
    background-color: #e8e8ed;
}

.print-job-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    transition: transform 0.2s ease;
}

.print-job-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.toggle-icon {
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.print-job-row.expanded .toggle-icon {
    transform: rotate(90deg);
}

.file-row-child {
    background-color: #fafafa;
}

.file-row-child:hover {
    background-color: #f0f0f0;
}

.file-count {
    font-weight: 400;
    color: #6e6e73;
    font-size: 0.875rem;
    margin-left: 8px;
}

.status-ready {
    background: #fff3cd;
    color: #856404;
}

.status-staged {
    background: #e3f2fd;
    color: #1565c0;
}

.status-processing {
    background: #e3f2fd;
    color: #0277bd;
}

.status-unknown {
    background: #f0f0f0;
    color: #424242;
}

/* File children nested table */
.file-children-row {
    background-color: #fafafa;
}

.file-children-container {
    padding: 0 !important;
    background-color: #ffffff;
}

.file-children-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.file-children-table thead {
    background-color: #f5f5f7;
}

.file-children-table thead th {
    padding: 8px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6e6e73;
    border-bottom: 1px solid #d2d2d7;
}

.file-children-table tbody tr {
    border-bottom: 1px solid #e5e5e7;
}

.file-children-table tbody tr:hover {
    background-color: #f5f5f7;
}

.file-children-table .file-name-cell,
.file-children-table .file-size-cell,
.file-children-table .file-pages-cell,
.file-children-table .file-status-cell {
    padding: 8px 12px;
    font-size: 0.875rem;
}

.print-options-cell {
    font-size: 0.875rem;
    color: #6e6e73;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
}

/* View files link */
.view-files-link {
    color: #0071e3;
    text-decoration: none;
    margin-left: 8px;
    font-size: 0.875rem;
    font-weight: 400;
}

.view-files-link:hover {
    text-decoration: underline;
}

/* Files Modal */
.files-modal {
    max-width: 800px;
    width: 90%;
}

.files-modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

.files-modal-table {
    width: 100%;
    border-collapse: collapse;
}

.files-modal-table thead {
    background-color: #f5f5f7;
    position: sticky;
    top: 0;
    z-index: 10;
}

.files-modal-table thead th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #1d1d1f;
    border-bottom: 2px solid #d2d2d7;
}

.files-modal-table tbody tr {
    border-bottom: 1px solid #e5e5e7;
}

.files-modal-table tbody tr:hover {
    background-color: #f5f5f7;
}

.files-modal-table .file-name-cell,
.files-modal-table .file-size-cell,
.files-modal-table .file-pages-cell,
.files-modal-table .file-status-cell {
    padding: 12px;
    font-size: 0.875rem;
}

/* Stores Modal */
.stores-modal {
    max-width: 1200px;
    width: 95%;
    height: 85vh;
}

.stores-modal-body {
    height: calc(85vh - 60px);
    padding: 0;
    overflow: hidden;
}

.stores-modal-layout {
    display: flex;
    height: 100%;
    gap: 0;
}

.stores-list-container {
    flex: 0 0 40%;
    overflow-y: auto;
    padding: 20px;
    border-right: 1px solid #e5e5e5;
    background: #fafafa;
}

.stores-map-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.map-search-container {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: white;
    border-bottom: 1px solid #e5e5e5;
}

.zip-code-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.zip-code-input:focus {
    border-color: #0071e3;
}

.search-zip-btn {
    padding: 10px 24px;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-zip-btn:hover {
    background: #0077ed;
}

.search-zip-btn:active {
    background: #0051a2;
}

.stores-map {
    flex: 1;
    min-height: 0;
    background: #e5e5e5;
}

/* Leaflet map container */
.stores-map .leaflet-container {
    height: 100%;
    width: 100%;
}

/* Custom marker styles */
.custom-marker,
.search-marker {
    background: transparent !important;
    border: none !important;
}

.store-item {
    background: #fbfbfd;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.store-item:hover {
    border-color: #d2d2d7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.store-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.store-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 4px 0;
}

.store-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-status.active {
    background: #d1f2eb;
    color: #006644;
}

.store-status.inactive {
    background: #f5f5f7;
    color: #6e6e73;
}

.store-address {
    color: #6e6e73;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 8px 0;
}

.store-details {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    font-size: 0.875rem;
    color: #6e6e73;
}

.store-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-detail-item strong {
    color: #1d1d1f;
}

/* Print Job Box Layout */
.print-job-box {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

.btn-disable-job {
    position: absolute;
    top: 16px;
    right: 48px;
    background: transparent;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.btn-disable-job:hover {
    background: #f5f5f7;
    border-color: #1d1d1f;
}

.btn-disable-job .disable-link-icon {
    width: 12px;
    height: 12px;
    color: #1d1d1f;
}

/* Disabled state: visible but not clickable; hover shows title "Job already disabled" */
.btn-disable-job-disabled,
.btn-disable-job:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.btn-disable-job-disabled:hover,
.btn-disable-job:disabled:hover {
    background: transparent !important;
    border-color: #d2d2d7 !important;
}

.btn-refresh-job {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.btn-refresh-job:hover {
    background: #f5f5f7;
    border-color: #1d1d1f;
}

.btn-refresh-job:active {
    transform: scale(0.95);
}

.btn-refresh-job .refresh-icon {
    width: 12px;
    height: 12px;
    color: #1d1d1f;
}

.btn-refresh-job:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.print-job-box-part1 {
    display: flex;
    gap: 32px;
    padding: 32px;
    align-items: flex-start;
}

.print-job-left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.print-job-right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.print-job-box-part2-inner {
    padding: 32px;
    background: #fbfbfd;
    border-radius: 18px;
    border: 1px solid #e5e5e5;
    margin: 24px 32px 32px 32px;
}

/* Mobile-only: file list as cards (hidden on desktop) */
.print-job-files-cards {
    display: none;
}

/* Standard view (desktop only): Disable, Copy Link, Refresh below QR, same-size box and icon */
.print-job-box > .btn-disable-job,
.print-job-box > .btn-refresh-job {
    display: none !important;
}
/* Hide confirmation number section (same as mobile; Copy link is in the row below QR) */
.print-job-box .confirmation-number-section-inline {
    display: none !important;
}
/* QR and action links vertically centered in the card row */
.print-job-box-part1 {
    align-items: center;
}
.print-job-left-section {
    align-items: center;
}
.print-job-actions-mobile {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Desktop only: left column = QR only; right column = row1 (dates | links), row2 (print options), row3 (status) */
@media (min-width: 769px) {
    /* Desktop: show confirmation number below QR (left section), hide the right-section confirmation block */
    .print-job-box .confirmation-number-section-inline {
        display: none !important;
    }
    .print-job-box .confirmation-number-below-qr {
        display: none !important;
    }
    /* Reduce white space around QR: tighter padding and gap; left column only as wide as QR */
    .print-job-box-part1 {
        padding: 20px 24px;
        gap: 24px;
    }
    .print-job-left-section {
        flex: 0 0 auto;
    }
    /* Left column: only QR code (hide mobile actions on desktop) */
    .print-job-left-section .print-job-actions-mobile {
        display: none !important;
    }
    /* Right column row 1: [confirmation 30% | status 70%] | (Copy, Refresh, Disable) */
    .print-job-right-row1 {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: space-between;
        gap: 24px;
        width: 100%;
        flex-wrap: nowrap;
    }
    .print-job-right-row1 .row1-confirmation-status-split {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
        flex: 1 1 auto;
        min-width: 0;
    }
    .print-job-right-row1 .confirmation-code-box {
        flex: 0 0 30%;
        min-width: 0;
        padding: 12px 16px;
        background: #ffffff;
        border-radius: 8px;
        border: 1px solid #e5e5e5;
        color: #1d1d1f;
        font-size: 0.875rem;
        font-weight: 600;
        font-family: 'Monaco', 'Menlo', monospace;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .print-job-right-row1 .row1-confirmation-status-split .job-status-message-section {
        flex: 1 1 70%;
        min-width: 0;
    }
    .print-job-right-row1 .row1-confirmation-status-split .job-status-message-display {
        height: 100%;
        min-height: 44px;
        box-sizing: border-box;
    }
    /* Row1 status section (when inside split): take 70% */
    .print-job-actions-desktop {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex: 0 0 auto;
    }
    .print-job-actions-desktop .btn-disable-job,
    .print-job-actions-desktop .btn-refresh-job,
    .print-job-actions-desktop .btn-copy-link.btn-copy-link-inline {
        position: static;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        border-radius: 8px;
        border: 1px solid #d2d2d7;
        background: transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .print-job-actions-desktop .btn-copy-link.btn-copy-link-inline {
        background: #1d1d1f;
        border-color: #1d1d1f;
        color: #ffffff;
    }
    .print-job-actions-desktop .btn-disable-job:hover,
    .print-job-actions-desktop .btn-refresh-job:hover {
        background: #f5f5f7;
        border-color: #1d1d1f;
    }
    .print-job-actions-desktop .btn-copy-link.btn-copy-link-inline:hover {
        background: #000000;
        border-color: #000000;
        color: #ffffff;
    }
    .print-job-actions-desktop .btn-disable-job .disable-link-icon,
    .print-job-actions-desktop .btn-refresh-job .refresh-icon,
    .print-job-actions-desktop .btn-copy-link.btn-copy-link-inline svg {
        width: 16px;
        height: 16px;
        margin: 0;
        color: inherit;
    }
    .print-job-actions-desktop .btn-copy-link.btn-copy-link-inline svg {
        color: #ffffff;
    }
    .print-job-actions-desktop .btn-copy-link.btn-copy-link-inline:hover svg {
        color: #ffffff;
    }
    /* Uniform font and color in right section (desktop): job dates, print options, status */
    .print-job-right-section {
        font-size: 0.875rem;
    }
    .print-job-right-section .job-dates-section,
    .print-job-right-section .job-dates-display,
    .print-job-right-section .job-date-line,
    .print-job-right-section .print-options-display-inline,
    .print-job-right-section .job-status-message-display {
        font-size: 0.875rem;
        color: #1d1d1f;
    }
    /* Job dates box: same style as status/options; Created and Last released always on one line */
    .print-job-right-section .job-dates-display {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 1rem;
        align-items: center;
    }
    .print-job-right-section .job-dates-display .job-date-line {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .print-job-actions-mobile .btn-disable-job,
    .print-job-actions-mobile .btn-refresh-job,
    .print-job-actions-mobile .btn-copy-link.btn-copy-link-inline {
        position: static;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        border-radius: 8px;
        border: 1px solid #d2d2d7;
        background: transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .print-job-actions-mobile .btn-copy-link.btn-copy-link-inline {
        background: #1d1d1f;
        border-color: #1d1d1f;
        color: #ffffff;
    }
    .print-job-actions-mobile .btn-disable-job:hover,
    .print-job-actions-mobile .btn-refresh-job:hover {
        background: #f5f5f7;
        border-color: #1d1d1f;
    }
    .print-job-actions-mobile .btn-copy-link.btn-copy-link-inline:hover {
        background: #000000;
        border-color: #000000;
        color: #ffffff;
    }
    .print-job-actions-mobile .btn-disable-job .disable-link-icon,
    .print-job-actions-mobile .btn-refresh-job .refresh-icon,
    .print-job-actions-mobile .btn-copy-link.btn-copy-link-inline svg {
        width: 16px;
        height: 16px;
        margin: 0;
        color: inherit;
    }
    .print-job-actions-mobile .btn-copy-link.btn-copy-link-inline svg {
        color: #ffffff;
    }
    .print-job-actions-mobile .btn-copy-link.btn-copy-link-inline:hover svg {
        color: #ffffff;
    }
}

/* Mobile: remove outer box from files section; no boxes for confirmation, options, status */
@media (max-width: 768px) {
    .print-job-actions-desktop {
        display: none !important;
    }
    .print-job-box .confirmation-code-box {
        display: none !important;
    }
    .print-job-right-row1 {
        display: flex;
        flex-direction: column;
        gap: 4px;
        order: 1;
    }
    .print-job-right-section .print-options-section-inline {
        order: 2;
    }
    .print-job-right-section .job-dates-section {
        order: 3;
    }
    .print-job-box .print-job-box-part2-inner {
        padding: 0 14px;
        margin: 6px 0 8px 0;
        background: transparent !important;
        border: none !important;
        border-radius: 0;
        box-shadow: none;
    }
    .print-job-box .confirmation-number-inline,
    .print-job-box .print-options-display-inline,
    .print-job-box .job-status-message-display,
    .print-job-box .job-dates-display {
        background: transparent !important;
        border: none !important;
        border-radius: 0;
        padding: 1px 0;
        box-shadow: none;
    }
    .print-job-box .print-options-display-inline,
    .print-job-box .job-status-message-display,
    .print-job-box .job-dates-display {
        font-size: 0.72rem;
    }
    /* Print options: full width + centered text on mobile */
    .print-job-box .print-options-section-inline {
        min-width: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    .print-job-box .print-options-section-inline .print-options-display-inline {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .print-job-box .job-status-message-section {
        min-width: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    /* Created and Last released: center-aligned on mobile */
    .print-job-box .job-dates-section,
    .print-job-box .job-dates-display {
        text-align: center !important;
    }
    .print-job-box .job-dates-display .job-date-line {
        display: block;
        text-align: center;
    }
    .print-job-box .job-status-message-display {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* Print options: first line (Color · Letter · Portrait), second line (rest) */
    .print-job-box .print-options-display-inline .print-options-line1,
    .print-job-box .print-options-display-inline .print-options-line2,
    .print-job-box .print-options-display-inline .print-options-line3 {
        display: block;
        text-align: center !important;
    }
    .print-job-box .print-options-display-inline .print-options-line2,
    .print-job-box .print-options-display-inline .print-options-line3 {
        margin-top: 1px;
    }
    /* QR code: 20% smaller on mobile (override base .qr-code-image-inline which appears later) */
    .print-job-box .qr-code-image-inline,
    .qr-code-image-inline {
        width: 95px !important;
        height: 95px !important;
    }
    /* Confirmation number below QR, same width as QR (mobile only) */
    .print-job-box .confirmation-number-below-qr {
        display: block !important;
        width: 95px;
        max-width: 95px;
        padding: 8px 6px;
        text-align: center;
        font-size: 0.7rem;
        font-weight: 600;
        font-family: 'Monaco', 'Menlo', monospace;
        color: #1d1d1f;
        background: #ffffff;
        border: 1px solid #e5e5e5;
        border-radius: 6px;
        word-break: break-all;
        line-height: 1.2;
        margin-top: 6px;
    }
    .print-job-box .confirmation-number-section-inline {
        display: none !important;
    }
}

.print-options-section-inline,
.confirmation-number-section-inline,
.job-status-message-section {
    width: 100%;
    margin-bottom: 0;
    min-width: 500px;
}

.print-options-section-inline label,
.confirmation-number-section-inline label,
.job-status-message-section label {
    display: block;
    font-weight: 500;
    color: #6e6e73;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.job-status-message-display {
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 8px;
    color: #1d1d1f;
    font-size: 0.875rem;
    border: 1px solid #e5e5e5;
}

.job-dates-section {
    width: 100%;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #6e6e73;
}
.job-dates-display {
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 8px;
    color: #1d1d1f;
    font-size: 0.875rem;
    border: 1px solid #e5e5e5;
}
.job-date-line {
    display: block;
    margin-bottom: 2px;
}

.qr-code-image-inline {
    width: 210px;
    height: 210px;
}
.confirmation-number-below-qr {
    display: none;
    box-sizing: border-box;
}

.qr-code-placeholder {
    color: #8e8e93;
    font-size: 0.875rem;
}

.print-options-display-inline {
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 8px;
    color: #1d1d1f;
    font-size: 0.875rem;
    border: 1px solid #e5e5e5;
}

.confirmation-number-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.confirmation-number-inline {
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 8px;
    color: #1d1d1f;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', monospace;
    border: 1px solid #e5e5e5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.btn-copy-icon {
    background: #1d1d1f;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.btn-copy-icon:hover {
    background: #000000;
    transform: scale(1.05);
}

.file-actions-cell {
    text-align: center;
    padding: 8px;
}
}

.btn-copy-inline {
    background: #1d1d1f;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease;
    width: 100%;
}

.btn-copy-inline:hover {
    background: #000000;
}

.print-job-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.print-job-files-header h3 {
    color: #1d1d1f;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.print-job-files-table {
    width: 100%;
    border-collapse: collapse;
}

.print-job-files-table thead {
    background-color: #f5f5f7;
}

.print-job-files-table thead th {
    padding: 12px;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6e6e73;
    border-bottom: 1px solid #d2d2d7;
}

.print-job-files-table tbody tr {
    border-bottom: 1px solid #e5e5e7;
}

.print-job-files-table tbody tr:hover {
    background-color: #f5f5f7;
}

/* Store page notice box (Privacy & Data Use) — match main .container content width */
.store-notice-box {
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 16px 20px;
    background: #f5f5f7;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    text-align: center;
}

.store-notice-title {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.store-notice-hazard-icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    color: #f59e0b;
}

.store-notice-list {
    font-size: 0.8125rem;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0 auto;
    padding-left: 1.25rem;
    list-style-position: outside;
    display: inline-block;
    text-align: left;
}

.store-notice-list li {
    margin-bottom: 4px;
}

.store-notice-list li:last-child {
    margin-bottom: 0;
}

.store-notice-body {
    font-size: 0.8125rem;
    color: #6e6e73;
    line-height: 1.5;
    margin: 0;
}

/* Store + main app: allow sticky headers (global body overflow-x:hidden breaks sticky, esp. mobile WebKit) */
body.store-job-page,
body.print-links-home {
    overflow-x: visible;
}

/* Store page – Apple-style theme */
body.store-job-page {
    background: #ffffff;
}

/* Store page header: left-aligned; sticks to top on scroll (mobile + desktop) */
body.store-job-page header {
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
body.store-job-page .header-content {
    justify-content: flex-start;
}
body.store-job-page .logo-container {
    text-align: left;
}
body.store-job-page .brand-text,
body.store-job-page .brand-text h1 {
    text-align: left;
}

/* Main app (index.html): sticky header like store job */
body.print-links-home #mainContainer > header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#storeJobContainer {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

#storeJobContainer .store-job-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
    padding: 32px 24px 24px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#storeJobContainer .store-job-confirmation-wrap {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e7;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#storeJobContainer #jobContent {
    max-width: 100%;
    margin: 0 auto;
}

#storeJobContainer .store-job-confirmation-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

#storeJobContainer .store-job-confirmation-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 100%;
}

#storeJobContainer .store-job-confirmation-number-wrapper {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
}

#storeJobContainer .store-job-confirmation-reset-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    color: #1d1d1f;
    background: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

#storeJobContainer .store-job-confirmation-reset-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#storeJobContainer .store-job-confirmation-reset-btn:hover {
    background: #f5f5f7;
    border-color: #aeaeb2;
}

#storeJobContainer .store-job-confirmation-reset-btn:active {
    background: #e8e8ed;
}

/* Shell: bordered box around confirmation input */
#storeJobContainer .store-job-confirmation-input-shell.store-job-confirmation-number-inline {
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
    padding: 0;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    box-sizing: border-box;
    width: min(520px, 100%);
}

#storeJobContainer .store-job-confirmation-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    background: transparent;
    text-align: center;
    outline: none;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    letter-spacing: 0.12em;
    color: #1d1d1f;
    overflow-x: auto;
}

@supports (field-sizing: content) {
    #storeJobContainer .store-job-confirmation-input-shell.store-job-confirmation-number-inline {
        width: auto;
        min-width: min(12ch, 100%);
        max-width: min(520px, 100%);
    }

    #storeJobContainer .store-job-confirmation-input {
        field-sizing: content;
        min-width: min(12ch, 100%);
        max-width: min(520px, 100%);
    }
}

/* Desktop: larger “Confirmation Number” label, solid black */
@media (min-width: 769px) {
    #storeJobContainer .store-job-confirmation-label {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #000000;
    }
}
#storeJobContainer .store-job-confirmation-input-shell:focus-within {
    border-color: rgba(0, 86, 214, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 86, 214, 0.14);
}

#storeJobContainer .store-job-below {
    text-align: center;
    margin: 0 auto;
}

#storeJobContainer .store-job-status-text {
    font-size: 0.9375rem;
    color: #1d1d1f;
    margin-bottom: 6px;
}

#storeJobContainer .store-job-meta-lines {
    margin-bottom: 20px;
}

#storeJobContainer .store-job-meta-line {
    font-size: 0.8125rem;
    color: #8e8e93;
}

#storeJobContainer .store-job-meta-line + .store-job-meta-line {
    margin-top: 2px;
}

/* Store job print options: same structure as main page (print-options-section-inline + line1/2/3) */
#storeJobContainer .store-job-box .print-options-section-inline {
    margin-bottom: 16px;
}

#storeJobContainer .store-job-box .print-options-display-inline .print-options-line1,
#storeJobContainer .store-job-box .print-options-display-inline .print-options-line2,
#storeJobContainer .store-job-box .print-options-display-inline .print-options-line3 {
    display: block;
}

#storeJobContainer .store-job-box .print-options-display-inline .print-options-line2,
#storeJobContainer .store-job-box .print-options-display-inline .print-options-line3 {
    margin-top: 2px;
}

#storeJobContainer .store-job-table-wrap {
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e5e7;
    background: #fafafa;
}

/* Desktop files table: fixed column widths so values align row-to-row (mobile uses cards, not this table). */
#storeJobContainer .store-job-files-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.875rem;
}

/*
 * Cols: Select 10% | Name 33% | Size 9% | Pages 7% | Status 14% | Released At 17%
 */
#storeJobContainer .store-job-files-table th:nth-child(1),
#storeJobContainer .store-job-files-table td:nth-child(1) {
    width: 10%;
}

#storeJobContainer .store-job-files-table th:nth-child(2),
#storeJobContainer .store-job-files-table td:nth-child(2) {
    width: 33%;
}

#storeJobContainer .store-job-files-table th:nth-child(3),
#storeJobContainer .store-job-files-table td:nth-child(3) {
    width: 9%;
}

#storeJobContainer .store-job-files-table th:nth-child(4),
#storeJobContainer .store-job-files-table td:nth-child(4) {
    width: 7%;
}

#storeJobContainer .store-job-files-table th:nth-child(5),
#storeJobContainer .store-job-files-table td:nth-child(5) {
    width: 14%;
}

#storeJobContainer .store-job-files-table th:nth-child(6),
#storeJobContainer .store-job-files-table td:nth-child(6) {
    width: 17%;
}

#storeJobContainer .store-job-files-table td.store-job-left {
    vertical-align: middle;
    overflow: hidden;
}

#storeJobContainer .store-job-files-table td.store-job-col-select {
    vertical-align: middle;
    text-align: center;
}

#storeJobContainer .store-job-file-name-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

/* Grow only to content when short (no gap before extension); shrink + ellipsis when long */
#storeJobContainer .store-job-file-name-basename {
    min-width: 0;
    flex: 0 1 auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#storeJobContainer .store-job-file-name-ext {
    flex-shrink: 0;
    white-space: nowrap;
}

#storeJobContainer .store-job-files-table td:nth-child(3),
#storeJobContainer .store-job-files-table td:nth-child(4),
#storeJobContainer .store-job-files-table td:nth-child(5),
#storeJobContainer .store-job-files-table td:nth-child(6) {
    vertical-align: middle;
}

#storeJobContainer .store-job-files-table th {
    text-align: left;
    padding: 12px 12px;
    font-weight: 600;
    color: #1d1d1f;
    background: #f5f5f7;
    border-bottom: 1px solid #e5e5e7;
}

#storeJobContainer .store-job-files-table td {
    padding: 12px 12px;
    border-bottom: 1px solid #e5e5e7;
    color: #1d1d1f;
}

#storeJobContainer .store-job-files-table td.store-job-date-cell {
    white-space: pre-line;
}

#storeJobContainer .store-job-released-at-date {
    color: #8e8e93;
}

#storeJobContainer .store-job-files-table th.store-job-left,
#storeJobContainer .store-job-files-table td.store-job-left {
    text-align: left;
}

#storeJobContainer .store-job-files-table th.store-job-col-center,
#storeJobContainer .store-job-files-table td.store-job-col-center {
    text-align: center;
}

#storeJobContainer .store-job-files-table tbody tr:last-child td {
    border-bottom: none;
}

#storeJobContainer .store-job-files-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.8);
}

#storeJobContainer .store-job-release-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 16px;
    margin-top: 20px;
    margin-bottom: 0;
    background: #f5f5f7;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
}

#storeJobContainer .store-job-release-bar-hint {
    margin: 0;
    font-size: 0.875rem;
    color: #6e6e73;
    line-height: 1.35;
    text-align: center;
    max-width: 36rem;
}

#storeJobContainer .store-job-release-main-btn {
    flex-shrink: 0;
}

#storeJobContainer .store-job-select-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#storeJobContainer .store-job-select-na {
    color: #aeaeb2;
    font-size: 0.875rem;
}

#storeJobContainer .store-job-file-card-select-row {
    margin-bottom: 10px;
}

#storeJobContainer .store-job-release-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#storeJobContainer .store-job-release-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #248a3d;
    pointer-events: none;
}

#storeJobContainer .store-job-release-tick .store-session-tick-icon {
    width: 18px;
    height: 18px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

#storeJobContainer .store-job-release-tick.is-visible .store-session-tick-icon {
    opacity: 1;
}

#storeJobContainer .store-job-card-release-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* File cards: hidden on desktop, shown on mobile instead of table */
#storeJobContainer .store-job-file-cards {
    display: none;
}

#storeJobContainer .store-btn-primary,
#storeJobContainer .btn-release-print.store-btn-primary {
    background: #007AFF !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

#storeJobContainer .store-btn-primary:hover,
#storeJobContainer .btn-release-print.store-btn-primary:hover {
    background: #0051D5 !important;
}

#storeJobContainer .store-btn-primary:active,
#storeJobContainer .btn-release-print.store-btn-primary:active {
    transform: scale(0.98);
}

#storeJobContainer .store-btn-primary:disabled,
#storeJobContainer .btn-release-print.store-btn-primary:disabled {
    background: #a0a0a0 !important;
    cursor: not-allowed;
}

/* Store job page – mobile cleanup (aligned with index / how-to-use patterns) */
@media (max-width: 768px) {
    body.store-job-page .container,
    #storeJobContainer.container {
        padding: 20px 12px;
        max-width: 100%;
    }
    /* Header/logo/subtitle: exactly as main page – left-aligned, same spacing and sizes */
    body.store-job-page header {
        margin-bottom: 32px;
        padding: 10px 0;
        text-align: left;
        width: 100%;
    }
    body.store-job-page .header-row-mobile {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    body.store-job-page .logo-container {
        flex-shrink: 0;
        min-width: 0;
        display: flex;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }
    body.store-job-page .logo-icon {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }
    body.store-job-page .brand-text {
        min-width: 0;
        text-align: left;
    }
    body.store-job-page .brand-text h1 {
        font-size: 1.4rem;
        margin-bottom: 2px;
        text-align: left;
    }
    body.store-job-page .brand-text .subtitle {
        font-size: 0.72rem;
        text-align: left;
    }
    /* Notice box: tighter padding, smaller text */
    body.store-job-page .store-notice-box {
        padding: 12px 14px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    body.store-job-page .store-notice-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    body.store-job-page .store-notice-list {
        font-size: 0.75rem;
        padding-left: 1.1rem;
    }
    /* Job box: less padding, smaller type */
    #storeJobContainer .store-job-box {
        padding: 20px 14px 18px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    #storeJobContainer .store-job-confirmation-wrap {
        margin-bottom: 20px;
        padding-bottom: 18px;
    }
    #storeJobContainer .store-job-confirmation-label {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }
    #storeJobContainer .store-job-confirmation-input-shell.store-job-confirmation-number-inline {
        width: 100%;
        max-width: 100%;
    }

    #storeJobContainer .store-job-confirmation-input {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    #storeJobContainer .store-job-status-text {
        font-size: 0.85rem;
    }
    #storeJobContainer .store-job-meta-lines {
        margin-bottom: 14px;
    }
    #storeJobContainer .store-job-meta-line {
        font-size: 0.75rem;
    }
    /* Print options: same as main page print job mobile – transparent, stacked lines, small font */
    #storeJobContainer .store-job-box .print-options-section-inline {
        min-width: 0 !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 14px;
    }
    #storeJobContainer .store-job-box .print-options-section-inline .print-options-display-inline {
        background: transparent !important;
        border: none !important;
        padding: 1px 0 !important;
        box-shadow: none !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 0.72rem !important;
    }
    #storeJobContainer .store-job-box .print-options-display-inline .print-options-line1,
    #storeJobContainer .store-job-box .print-options-display-inline .print-options-line2,
    #storeJobContainer .store-job-box .print-options-display-inline .print-options-line3 {
        display: block;
        text-align: center !important;
    }
    #storeJobContainer .store-job-box .print-options-display-inline .print-options-line2,
    #storeJobContainer .store-job-box .print-options-display-inline .print-options-line3 {
        margin-top: 1px;
    }
    /* Table: compact padding, smaller font, horizontal scroll */
    #storeJobContainer .store-job-table-wrap {
        border-radius: 10px;
        margin-left: -2px;
        margin-right: -2px;
    }
    #storeJobContainer .store-job-files-table {
        font-size: 0.8rem;
    }
    #storeJobContainer .store-job-files-table th,
    #storeJobContainer .store-job-files-table td {
        padding: 12px 12px;
    }
    #storeJobContainer .store-job-release-bar {
        align-items: center;
        padding: 18px 12px;
        margin-top: 16px;
    }
    #storeJobContainer .store-job-release-main-btn {
        width: auto;
        min-width: 8rem;
    }
    /* Mobile: hide table, show file cards */
    #storeJobContainer .store-job-table-wrap {
        display: none !important;
    }
    #storeJobContainer .store-job-file-cards {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    #storeJobContainer .store-job-file-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 14px;
        background: #fafafa;
        border: 1px solid #e5e5e7;
        border-radius: 10px;
    }
    #storeJobContainer .store-job-file-card-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
        flex: 1;
        text-align: left;
    }
    /* File card: same as main page print job – File Name, then meta, then released (meta style) */
    #storeJobContainer .store-job-file-card-name {
        font-size: 0.8rem;
        font-weight: 500;
        color: #1d1d1f;
        text-align: left;
        min-width: 0;
        max-width: 100%;
    }
    #storeJobContainer .store-job-file-card-meta {
        font-size: 0.72rem;
        color: #6e6e73;
        text-align: left;
    }
    #storeJobContainer .store-job-file-card-meta .status-badge {
        font-size: inherit;
    }
    #storeJobContainer .store-job-file-card-released {
        font-size: 0.72rem;
        color: #1d1d1f;
        white-space: normal;
        text-align: left;
    }
    /* Release button: icon-only on mobile to save space (printer icon + aria-label) */
    #storeJobContainer .store-job-card-release-row {
        gap: 6px;
    }

    #storeJobContainer .store-job-file-card .store-job-card-release {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 10px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
    }
    #storeJobContainer .store-job-file-card .store-job-card-release .store-release-icon {
        display: block;
        width: 20px;
        height: 20px;
    }
    #storeJobContainer .store-job-file-card .store-job-card-release .store-release-btn-text {
        display: none;
    }
    #storeJobContainer .store-btn-primary,
    #storeJobContainer .btn-release-print.store-btn-primary {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    body.store-job-page .app-footer {
        padding: 18px 12px;
        margin-top: 28px;
    }
    body.store-job-page .copyright {
        font-size: 0.75rem;
    }
}

/* Page loading bar - shown only if load takes > 1s */
.page-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007AFF, #5AC8FA, #007AFF);
    background-size: 200% 100%;
    animation: page-loading-bar-shine 1.2s ease-in-out infinite;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.page-loading-bar.visible {
    opacity: 1;
}

@keyframes page-loading-bar-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* App Footer */
.app-footer {
    text-align: center;
    padding: 24px 20px;
    margin-top: 40px;
    border-top: 1px solid #e5e5e7;
    visibility: hidden;
}

body.page-loaded .app-footer {
    visibility: visible;
}

.copyright {
    font-size: 0.8125rem;
    color: #6e6e73;
    margin: 0;
    font-weight: 400;
}

/* Copy Print Job Link: black button, white chain (overrides .btn-copy-link) */
.confirmation-number-wrapper .btn-copy-link.btn-copy-link-inline,
.btn-copy-link.btn-copy-link-inline {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #1d1d1f !important;
    border: none !important;
    color: #ffffff !important;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.confirmation-number-wrapper .btn-copy-link.btn-copy-link-inline:hover,
.btn-copy-link.btn-copy-link-inline:hover {
    background: #000000 !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

.confirmation-number-wrapper .btn-copy-link.btn-copy-link-inline svg,
.btn-copy-link.btn-copy-link-inline svg {
    margin: 0;
    width: 18px;
    height: 18px;
    stroke: currentColor !important;
    fill: none !important;
    color: inherit;
}

/* Legacy full copy link (if used elsewhere) */
.copy-link-wrapper {
    margin-top: 8px;
}

.btn-copy-link {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid #d2d2d7;
    color: #1d1d1f;
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-link:hover {
    background: #f5f5f7;
    border-color: #1d1d1f;
}

.btn-copy-link svg {
    margin-right: 6px;
    vertical-align: middle;
}

.print-job-files-table tbody td {
    padding: 12px;
    font-size: 0.875rem;
}

/* How to Use page */
.how-to-use-page .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.nav-link-active {
    color: #0066cc;
    font-weight: 500;
    cursor: default;
}

.how-to-use-content {
    max-width: 720px;
    margin: 0 auto 48px;
}

.how-to-use-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

/* Tabs */
.how-to-use-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e5e7;
}

.how-to-use-tab {
    padding: 12px 24px;
    font-size: 1.375rem;
    font-weight: 600;
    color: #6e6e73;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.how-to-use-tab:hover {
    color: #1d1d1f;
}

.how-to-use-tab.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

.how-to-use-tab-panel {
    display: none;
}

.how-to-use-tab-panel.active {
    display: block;
}

/* User tab: infographic steps */
.how-to-use-infographic {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 8px;
    margin-bottom: 24px;
}

.how-to-use-step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    background: #f5f5f7;
    border-radius: 12px;
    min-width: 140px;
    text-align: center;
}

.how-to-use-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1d1d1f;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 50%;
}

.how-to-use-step-card p {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1d1d1f;
}

.how-to-use-step-arrow {
    font-size: 1.5rem;
    color: #8e8e93;
}

/* Quick links: mobile only (hidden on desktop) */
.how-to-use-quick-links {
    display: none;
}

.how-to-use-note {
    font-size: 0.9375rem;
    color: #6e6e73;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* FAQs */
.how-to-use-faq {
    margin-top: 32px;
}

.how-to-use-faq-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e5e7;
}

.how-to-use-faq-list {
    margin: 0;
}

.how-to-use-faq-list dt {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-top: 16px;
    margin-bottom: 4px;
}

.how-to-use-faq-list dt:first-child {
    margin-top: 0;
}

.how-to-use-faq-list dd {
    font-size: 0.9375rem;
    color: #6e6e73;
    margin: 0 0 0 0;
    padding-left: 0;
    line-height: 1.5;
}

.how-to-use-intro {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.6;
    color: #1d1d1f;
}

.how-to-use-section {
    margin-bottom: 48px;
}

.how-to-use-section-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e5e7;
}

.how-to-use-section-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #1d1d1f;
}

.how-to-use-section-body p {
    margin-bottom: 16px;
}

.how-to-use-section-body p:last-child {
    margin-bottom: 0;
}

.how-to-use-steps {
    margin: 16px 0 16px 24px;
    padding-left: 8px;
}

.how-to-use-steps li {
    margin-bottom: 12px;
}

.how-to-use-steps li:last-child {
    margin-bottom: 0;
}

/* Vision page */
.vision-page .vision-content {
    max-width: 720px;
    margin: 0 auto;
}

.vision-intro {
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 32px;
}

.vision-principles {
    list-style: none;
    margin: 24px 0 32px;
    padding: 0;
}

.vision-principle {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 24px;
    position: relative;
}

.vision-principle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1d1d1f;
}

.vision-principle strong {
    font-weight: 600;
    color: #1d1d1f;
}

.vision-close {
    font-size: 1.1rem;
    line-height: 1.65;
    margin-top: 24px;
}

/* Vision page: body text same gray as intro (bold/headings stay black) */
.vision-page .how-to-use-section-body,
.vision-page .how-to-use-section-body p {
    color: #6e6e73;
}
.vision-page .vision-principle {
    color: #6e6e73;
}

/* Contact Us page — form (desktop) */
.contact-content {
    max-width: 520px;
    margin: 0 auto;
}
.contact-intro {
    margin-bottom: 24px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact-form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1d1d1f;
}
.contact-required {
    color: #c00;
}
.contact-optional {
    color: #6e6e73;
    font-weight: 400;
    font-size: 0.9em;
}
.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 1rem;
    color: #1d1d1f;
    box-sizing: border-box;
}
.contact-phone-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}
.contact-phone-prefix {
    padding: 10px 0 10px 12px;
    font-size: 1rem;
    color: #1d1d1f;
    flex-shrink: 0;
}
.contact-phone-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 10px 12px 10px 4px;
    border-radius: 0 8px 8px 0;
}
.contact-phone-wrap input:focus {
    outline: none;
    box-shadow: none;
}
.contact-phone-wrap:focus-within {
    border-color: #1d1d1f;
    box-shadow: 0 0 0 2px rgba(29, 29, 31, 0.15);
}
.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: #1d1d1f;
    box-shadow: 0 0 0 2px rgba(29, 29, 31, 0.15);
}
.contact-form-group textarea {
    resize: vertical;
    min-height: 115px;
}
.contact-char-count {
    font-size: 0.75rem;
    color: #6e6e73;
    text-align: right;
}
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.contact-form-actions {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-form-actions .btn {
    align-self: flex-start;
}
.contact-form-error {
    color: #c00;
    font-size: 0.9rem;
    margin: 0;
}
.contact-form-success {
    color: #0a0;
    font-size: 0.95rem;
    margin: 0;
}

/* Vision & How to Use: mobile — all headers 1.1rem, body 0.8rem (no footnotes) */
@media (max-width: 768px) {
    .how-to-use-page .how-to-use-title,
    .vision-page .how-to-use-title {
        font-size: 1.1rem;
    }
    .how-to-use-page .how-to-use-tab,
    .how-to-use-page .how-to-use-section-title,
    .how-to-use-page .how-to-use-faq-title,
    .vision-page .how-to-use-section-title {
        font-size: 1.1rem;
    }
    .how-to-use-page .how-to-use-intro,
    .how-to-use-page .how-to-use-section-body,
    .how-to-use-page .how-to-use-section-body p,
    .how-to-use-page .how-to-use-steps,
    .how-to-use-page .how-to-use-steps li,
    .how-to-use-page .how-to-use-faq-list dt,
    .how-to-use-page .how-to-use-faq-list dd,
    .how-to-use-page .how-to-use-step-card p,
    .vision-page .how-to-use-section-body,
    .vision-page .how-to-use-section-body p {
        font-size: 0.8rem;
    }
    .how-to-use-page .how-to-use-note {
        font-size: 0.8rem;
    }
    .how-to-use-page .how-to-use-step-num {
        font-size: 0.9rem;
    }
    .how-to-use-page .how-to-use-step-arrow {
        font-size: 0.8rem;
    }
    /* How to Use mobile: hide 1,2,3 infographic; show quick links (Steps, FAQ, each question) */
    .how-to-use-page .how-to-use-infographic {
        display: none !important;
    }
    .how-to-use-page .how-to-use-quick-links {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 20px;
        padding: 12px 0 12px 10px;
    }
    .how-to-use-page .how-to-use-quick-links a {
        font-size: 0.8rem;
        color: #0066cc;
        text-decoration: none;
    }
    .how-to-use-page .how-to-use-quick-links a:hover {
        text-decoration: underline;
    }
    .vision-page .vision-intro,
    .vision-page .vision-principle {
        font-size: 0.8rem;
    }
    .vision-page .vision-close,
    .vision-page .how-to-use-note {
        font-size: 0.8rem;
    }
    /* Contact Us mobile: single column, consistent text size */
    .contact-page .contact-content {
        max-width: 100%;
        padding: 0 4px;
    }
    .contact-page .contact-form-row {
        grid-template-columns: 1fr;
    }
    .contact-page .contact-form-group label,
    .contact-page .contact-form-group input,
    .contact-page .contact-form-group select,
    .contact-page .contact-form-group textarea {
        font-size: 0.8rem;
    }
    .contact-page .contact-intro {
        font-size: 0.8rem;
    }
}

.profile-dropdown-link {
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

/* --- Mobile adaptive: header nav and drawer --- */
.header-nav-mobile {
    display: none;
}

@media (max-width: 768px) {
    .header-nav-desktop {
        display: none !important;
    }
    .header-nav-mobile {
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
    }
}

.header-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    color: #1d1d1f;
    -webkit-tap-highlight-color: transparent;
}

.header-menu-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.header-menu-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

.nav-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-drawer-overlay-open {
    opacity: 1;
    visibility: visible;
}

.nav-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100%;
    background: #fff;
    z-index: 1999;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.nav-drawer-panel-open {
    transform: translateX(0);
}

body.drawer-open {
    overflow: hidden;
}

.nav-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5ea;
}

.nav-drawer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
}

.nav-drawer-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #6e6e73;
    cursor: pointer;
    border-radius: 8px;
}

.nav-drawer-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1d1d1f;
}

.nav-drawer-links {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.nav-drawer-link {
    display: block;
    padding: 14px 20px;
    font-size: 1rem;
    color: #1d1d1f;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-drawer-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.nav-drawer-link-active {
    color: #0066cc;
    font-weight: 500;
}

/* --- Mobile staged files: cards --- */
.staged-mobile-view {
    margin-top: 0;
}

.staged-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 8px 0 0 10px;
}


.staged-mobile-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #1d1d1f;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.staged-files-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f5f5f7;
    border-radius: 12px;
    border: 1px solid #e5e5ea;
}

.file-card-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.file-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.file-card-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #0066cc;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-card-name:hover {
    text-decoration: underline;
}

.file-card-meta {
    font-size: 0.8rem;
    color: #6e6e73;
}

.file-card-delete {
    flex-shrink: 0;
    padding: 8px;
    border: none;
    background: transparent;
    color: #6e6e73;
    cursor: pointer;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.file-card-delete:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.staged-cards-empty {
    text-align: center;
    padding: 24px 16px;
    color: #8e8e93;
    font-size: 0.95rem;
}

/* --- Mobile only: reduced sizing for drawer, cards, nav (max-width: 768px) --- */
@media (max-width: 768px) {
    .header-menu-btn {
        width: 31px;
        height: 31px;
    }
    
    .header-menu-icon {
        width: 15px;
        height: 2px;
        box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
    }
    
    .nav-drawer-panel {
        width: min(220px, 80vw);
    }
    
    .nav-drawer-header {
        padding: 10px 14px;
    }
    
    .nav-drawer-title {
        font-size: 0.8rem;
    }
    
    .nav-drawer-close {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
    
    .nav-drawer-links {
        padding: 8px 0;
    }
    
    .nav-drawer-link {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    /* Staged files cards: smaller on mobile; no Select all */
    .staged-mobile-view {
        width: 100%;
    }
    
    .staged-mobile-select-all {
        display: none !important;
    }
    
    .file-card {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .file-card-delete {
        padding: 4px;
    }
    
    .file-card-delete svg {
        width: 12px;
        height: 12px;
    }
    
    .staged-cards-empty {
        padding: 12px 10px;
    }
}

/* Mobile typography: ensure 0.8rem (normal) and 0.72rem (footnotes) win over any earlier rules */
@media (max-width: 768px) {
    #releasedFilesTableBody .loading {
        font-size: 0.8rem !important;
    }
    .empty-state,
    .loading,
    .released-links-empty,
    .staged-cards-empty,
    .progress-text,
    .file-card-name,
    .print-job-file-card .file-card-name,
    .modal-body,
    .modal-body p,
    .confirmation-modal .modal-body,
    .print-options-display-inline,
    .print-job-box .job-status-message-display,
    .job-status-message-display,
    #deleteConfirmMessage,
    #disableConfirmMessage,
    #statusInfoMessage,
    .files-table,
    .files-table th,
    .files-table td,
    .confirmation-actions .btn,
    #deleteConfirmActions .btn,
    #disableConfirmActions .btn,
    #statusInfoModal .modal-body .btn {
        font-size: 0.8rem !important;
    }
    .upload-subtitle-mobile,
    .upload-consent-label,
    .upload-consent-label span,
    .file-card-meta,
    .print-job-file-card .file-card-meta,
    .qr-hint,
    .print-options-hint,
    .print-job-box .print-options-display-inline,
    .print-job-box .print-options-display-inline .print-options-line1,
    .print-job-box .print-options-display-inline .print-options-line2,
    .print-job-box .print-options-display-inline .print-options-line3 {
        font-size: 0.72rem !important;
    }
}
