/* Sourcing Lab minimal CSS (moved from inline) */
.axes-nav {display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:10px 0 14px;}
.axis-tab {padding:8px 12px; border:1px solid #e3e3e3; border-radius:999px; background:#fff; cursor:pointer; user-select:none}
.axis-tab.active {background:#0f172a; color:#fff; border-color:#0f172a}
.axis-panel {display:none}
.axis-panel.active {display:block}
.seg {display:inline-flex; border:1px solid #e3e3e3; border-radius:12px; overflow:hidden;}
.seg button {padding:8px 12px; border:0; background:#fff; cursor:pointer}
.seg button.active {background:#0f172a; color:#fff}
.ctrl-row {display:flex; gap:12px; align-items:center; flex-wrap:wrap;}
#webhook-output .spinner,
.sourcing-lab-wrapper-fullpage .spinner {
  width:18px;
  height:18px;
  border:2px solid #d9d9d9;
  border-top-color:#0f172a;
  border-radius:50%;
  display:inline-block;
  animation:slab-spin 0.9s linear infinite !important;
  position:relative;
  vertical-align:middle;
  flex-shrink:0;
  will-change:transform;
}
@keyframes slab-spin {
  from {transform: rotate(0deg);}
  to {transform: rotate(360deg);}
}
.q-mono {font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size:.9em; white-space:pre-wrap}
.btn {display:inline-block; padding:8px 10px; border-radius:8px; border:1px solid #d9d9d9; background:#fff; cursor:pointer}
.btn.primary {background:#0f172a; color:#fff; border-color:#0f172a}

/* rating stars */
.star {
    cursor: pointer;
    font-size: 2em;
    color: black;
}

.star.selected,
.star:hover,
.star.selected ~ .star:hover {
    color: #FFA500;
}

#star-container .star {
    margin-right: 2px;
}

/* copy buttons */
#copy-button,
#copy-ai-button {
    background-color: #85C1C1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
}

#copy-button:hover,
#copy-ai-button:hover {
    background-color: #6AA7A7;
}

/* response output areas */
#response-output,
#ai-response-output {
    /*white-space: pre-wrap;*/
    word-wrap: break-word;
    max-width: 100%;
    overflow-wrap: break-word;
}

#ai-response-output {
    background-color: #ffffff;
    padding: 20px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
}

/* loading indicator */
#loading-message {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    padding: 24px;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(1px);
    color: #f8fafc;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.slab-loading-content {
    width: min(480px, 100%);
    padding: 32px 28px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.6);
    text-align: center;
}

#loading-message h2 {
    margin: 0 0 18px;
    font-size: 1.4rem;
    font-weight: 700;
    color: inherit;
}

#progress-bar {
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    overflow: hidden;
}

#progress-fill {
    height: 20px;
    width: 0%;
    background: #85C1C1;
    transition: width 0.5s ease;
}

#progress-text {
    margin-top: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#loading-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.45;
    background-color: var(--slab-loading-dot-color, #38bdf8);
    animation: dotPulse 1.2s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
    --slab-loading-dot-color: #38bdf8;
    animation-delay: 0s;
}

.loading-dot:nth-child(2) {
    --slab-loading-dot-color: #fbbf24;
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    --slab-loading-dot-color: #34d399;
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.slab-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.slab-button-icon-svg {
    width: 18px;
    height: 18px;
}

.slab-button-label {
    display: inline-block;
}

.slab-error-popup {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.slab-error-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(1.5px);
}

.slab-error-dialog {
    position: relative;
    background: #fff;
    color: #0f172a;
    border-radius: 18px;
    padding: 28px 30px;
    max-width: 520px;
    width: min(520px, 100%);
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.28);
    z-index: 1;
}

.slab-error-dialog h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.slab-error-intro {
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 500;
}

.slab-error-details {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.slab-error-instructions {
    margin-bottom: 8px;
    font-weight: 600;
    color: #0f172a;
}

.slab-error-steps {
    margin: 0 0 18px 0;
    padding-left: 20px;
    color: #334155;
    line-height: 1.5;
}

.slab-error-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

body.slab-modal-open {
    overflow: hidden;
}

.sourcing-lab-wrapper-fullpage {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #f1f5f9;
    overflow: auto;
    padding: 20px;
    width: 100%;
    max-width: 4200px;
    height: 100vh;
    margin-top: 30px;
}

.sourcing-lab-wrapper-fullpage.sourcing-lab-wrapper-auth-screen {
    margin-top: 0;
}

.sourcing-lab-wrapper-fullpage .sourcing-lab-inner {
    /*max-width: 960px;*/
    margin: 20px;
}

html.sourcing-lab-fullpage,
body.sourcing-lab-fullpage {
    overflow: hidden;
    height: 100%;
    margin: 0;
}

.sourcing-lab-auth-required {
    text-align: center;
    padding: 40px 20px;
}

.sourcing-lab-auth-actions {
    margin-top: 20px;
}

.sourcing-lab-login-button {
    display: inline-block;
    background-color: #0078d4;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.sourcing-lab-login-button:hover,
.sourcing-lab-login-button:focus {
    background-color: #106ebe;
    color: #fff;
}

.sourcing-lab-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.slab-app-branding {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0px 0 0px;
}

.slab-branding-logo {
    flex: 0 0 auto;
    max-width: 100px;
    width: 100%;
    margin: 10px 5px;
}

.slab-branding-logo-link {
    display: inline-flex;
}

.slab-branding-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.slab-branding-title {
    display: flex;
    flex-direction: column;
    line-height: 1;
    color: #0f172a;
    text-transform: uppercase;
    --slab-brand-primary-size: clamp(18px, 3vw, 32px);
}

.slab-branding-title-primary {
    font-size: var(--slab-brand-primary-size);
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.slab-branding-title-secondary {
    font-size: calc(var(--slab-brand-primary-size) / 3);
    font-weight: 500;
    letter-spacing: 0.2em;
    margin-top: 6px;
    white-space: nowrap;
    align-self: flex-start;
}

.slab-app-branding--login-screen {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.slab-app-branding--login-screen .slab-branding-title {
    align-items: center;
}

.slab-app-branding--login-screen .slab-branding-title-secondary {
    align-self: center;
}

.slab-app-branding--login-screen .slab-branding-logo {
    max-width: 80px;
}

/* --- Application shell layout --- */
.slab-app-shell {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.slab-app-sidebar {
    flex: 0 0 30%;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-gutter: stable both-edges;
}

.slab-app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.slab-client-card,
.slab-jobs-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.04);
}

.slab-client-card-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
}

.slab-invite-button {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.slab-client-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    font-size: 0.9rem;
    color: #0f172a;
}

.slab-client-credits-icon {
    font-size: 1rem;
    line-height: 1;
}

.slab-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.slab-card-title {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.slab-tertiary-button {
    background: transparent;
    border: 1px solid #cbd5f5;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #0f172a;
    transition: background-color 0.2s ease;
}

.slab-tertiary-button:hover,
.slab-tertiary-button:focus {
    background: #e2e8f0;
}

.slab-client-card.slab-card-active {
    border-color: #0f172a;
    box-shadow: 0 16px 26px rgba(15, 23, 42, 0.12);
}

.slab-tertiary-button.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.sourcing-lab-wrapper .slab-primary-button,
.sourcing-lab-wrapper .slab-secondary-button {
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}

.slab-main-panel {
    display: none;
}

.slab-main-panel.is-active {
    display: block;
}

.slab-panel-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
	margin-bottom: 16px;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.slab-need-card {
    margin-top: 24px;
    margin-bottom: 24px;
}

.slab-need-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.slab-collapse-toggle {
    border: none;
    background: transparent;
    color: #1d4ed8;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.slab-collapse-toggle:hover,
.slab-collapse-toggle:focus {
    text-decoration: underline;
}

.slab-need-card.is-collapsed {
    padding-bottom: 16px;
}

.slab-need-card-content[hidden] {
    display: none;
}

.slab-results-wrapper {
    margin-top: 24px;
    display: none;
}

.slab-results-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.slab-results-tab {
    border: 1px solid #cbd5f5;
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.slab-results-tab.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.slab-results-tab:focus {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}

.slab-results-panels {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.slab-results-panel {
    display: none;
}

.slab-results-panel.is-active {
    display: block;
}

.slab-results-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 16px;
}

.slab-results-section:last-child {
    margin-bottom: 0;
}

.slab-results-section-title {
    margin: 0 0 16px;
    font-size: 1.15rem;
    color: #0f172a;
}

.slab-results-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.slab-recruitment-card {
    box-shadow: 0 20px 32px rgba(15, 23, 42, 0.1);
}

.slab-recruitment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.slab-recruitment-title {
    margin: 0;
    font-size: 1.4rem;
    color: #0f172a;
}

.slab-recruitment-content {
    display: block;
}

.slab-recruitment-content > *:first-child {
    margin-top: 0;
}

.slab-recruitment-content > *:last-child {
    margin-bottom: 0;
}

.slab-offer-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.slab-ai-image-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
    flex-wrap: wrap;
}

.ai-image-card {
    flex: 1 1 30%;
    max-width: 32%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-image-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.slab-image-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 900px) {
    .ai-image-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.slab-results-survey {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    margin-top: 8px;
}

.slab-results-survey h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #0f172a;
}

.slab-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}

.slab-panel-title {
    margin: 0;
    font-size: 1.3rem;
    color: #0f172a;
}

.sourcing-lab-wrapper .slab-primary-button {
    border: none;
    background: #0f172a;
    color: #fff;
}

.sourcing-lab-wrapper .slab-secondary-button {
    border: 1px solid #cbd5f5;
    background: #fff;
    color: #0f172a;
}

:where(.sourcing-lab-wrapper button[type="submit"]),
:where(.sourcing-lab-wrapper input[type="submit"]),
:where(.sourcing-lab-wrapper .wpforms-submit.wpforms-button) {
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: 16px 32px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

:where(.sourcing-lab-wrapper button[type="submit"]):hover,
:where(.sourcing-lab-wrapper input[type="submit"]):hover,
:where(.sourcing-lab-wrapper .wpforms-submit.wpforms-button):hover {
    opacity: 0.9;
}

.slab-primary-button:hover,
.slab-secondary-button:hover {
    opacity: 0.9;
}

.slab-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.slab-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #475569;
}

.slab-logo-field {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #475569;
}

.slab-logo-field .slab-logo-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.slab-logo-field .slab-logo-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 1px solid #dce1e7;
    border-radius: 8px;
    background: #fff;
}

.slab-logo-field .slab-logo-preview[hidden] {
    display: none;
}

.slab-logo-field .slab-logo-preview img {
    max-height: 52px;
    width: auto;
    border-radius: 6px;
}

.slab-form-grid input,
.slab-form-grid textarea {
    padding: 8px 10px;
    border: 1.5px solid #dce1e7;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
}

.slab-field-label-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    color: #1f2937;
}

.slab-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.slab-inline-link:hover,
.slab-inline-link:focus {
    text-decoration: underline;
    color: #1d4ed8;
}

.slab-inline-link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    text-decoration: none;
}

.slab-field-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.slab-context-field {
    position: relative;
}

.slab-context-field textarea {
    display: none;
    resize: vertical;
}

.slab-context-field.is-editing textarea {
    display: block;
}

.slab-context-field.is-editing .slab-context-display {
    display: none;
}

.slab-context-display {
    padding: 12px;
    border: 1.5px solid #dce1e7;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #1f2937;
    white-space: pre-line;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    min-height: 120px;
    display: block;
}

.slab-context-display.is-empty {
    background: #f1f5f9;
    color: #94a3b8;
    font-style: italic;
}

.slab-visual-gallery-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slab-visual-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    width: 100%;
}

.slab-visual-gallery-card {
    position: relative;
    border: 1.5px solid #dce1e7;
    border-radius: 10px;
    background: #f8fafc;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.slab-visual-gallery-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.slab-visual-gallery-card.is-pending {
    border-style: dashed;
    opacity: 0.8;
}

.slab-visual-gallery-card.is-pending::after {
    content: 'Analyse en cours…';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f2937;
    background: rgba(248, 250, 252, 0.85);
    border-radius: 10px;
}

.slab-visual-gallery-image-wrapper {
    overflow: hidden;
    border-radius: 8px;
}

.slab-visual-gallery-caption {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.4;
    min-height: 32px;
}

.slab-visual-gallery-remove {
    align-self: flex-start;
    border: 0;
    background: transparent;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.slab-visual-gallery-remove:hover,
.slab-visual-gallery-remove:focus {
    text-decoration: underline;
}

.slab-visual-gallery-remove:disabled {
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: none;
}

.slab-visual-gallery-empty {
    font-size: 0.85rem;
    color: #94a3b8;
    padding: 12px;
    border: 1.5px dashed #dce1e7;
    border-radius: 8px;
    text-align: center;
}

.slab-context-display--animate {
    animation: slabContextReveal 0.55s ease-out;
}

@keyframes slabContextReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slab-context-activity textarea,
.slab-context-activity .slab-context-display {
    min-height: 140px;
    line-height: 1.45;
}

.slab-context-values textarea,
.slab-context-values .slab-context-display {
    min-height: 130px;
}

.slab-context-employer-brand textarea,
.slab-context-employer-brand .slab-context-display {
    min-height: 140px;
}

.slab-context-employer-promise textarea,
.slab-context-employer-promise .slab-context-display {
    min-height: 130px;
}

.slab-context-employer-visual textarea,
.slab-context-employer-visual .slab-context-display {
    min-height: 150px;
}

.slab-context-tabs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.slab-context-tab {
    position: relative;
    padding: 10px 16px;
    border: 0;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
}

.slab-context-tab:hover,
.slab-context-tab:focus {
    color: #1f2937;
    outline: none;
}

.slab-context-tab.is-active {
    color: #1f2937;
    background: #fff;
    box-shadow: 0 -1px 0 #fff inset, 0 1px 0 #fff;
}

.slab-context-tab-panels {
    border: 1px solid #e2e8f0;
    border-radius: 0 8px 8px 8px;
    background: #fff;
    padding: 16px;
}

.slab-context-tab-panel[hidden] {
    display: none;
}

.slab-context-tab-panel.is-active {
    display: block;
}

.slab-form-full {
    grid-column: 1 / -1;
}

.slab-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.slab-main-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.slab-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slab-field-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.slab-form-field textarea,
.slab-form-field input[type="email"] {
    padding: 10px 12px;
    border: 1px solid #dce1e7;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
}

.slab-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.slab-field-description {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
}

.slab-submit-button {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.slab-client-summary {
    font-size: 0.9rem;
    color: #1f2937;
    line-height: 1.5;
}

.slab-client-summary p {
    margin: 0 0 6px;
}

.slab-client-summary strong {
    display: block;
    color: #0f172a;
}

.slab-empty-text {
    margin: 0;
    color: #94a3b8;
}

.slab-client-logo {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.slab-client-logo img {
    max-height: 52px;
    width: auto;
    border-radius: 8px;
}

.slab-add-button {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: #0f172a;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.slab-add-button:hover {
    opacity: 0.9;
}

.slab-job-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 60vh;
    overflow-y: auto;
}

.slab-job-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slab-job-item:hover {
    border-color: #94a3b8;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.slab-job-item.active {
    border-color: #0f172a;
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12);
}


.slab-job-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.slab-job-item-title {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
    flex: 1;
}

.slab-job-item-meta {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.slab-job-delete-button {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: #000ff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.slab-job-delete-button:hover,
.slab-job-delete-button:focus {
    background: #cc0000;
    color: #fff;
    outline: none;
}

.slab-job-item-badge {
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    border: 1px solid #0f172a;
    padding: 2px 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.slab-helper-message {
    background: #f1f5f9;
    border: 1px dashed #cbd5f5;
    padding: 12px 16px;
    border-radius: 12px;
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.slab-job-workspace {
    display: none;
    flex-direction: column;
    gap: 14px;
    position: relative;
    isolation: isolate;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: clamp(24px, 4vw, 6px);
    box-shadow: 0 28px 52px rgba(15, 23, 42, 0.14);
}

.slab-job-workspace.is-visible {
    display: flex;
    animation: slab-fade-in 480ms ease-out;
}

.slab-workspace-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.slab-workspace-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slab-workspace-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.slab-workspace-title {
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.2;
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

.slab-welcome-screen {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: clamp(320px, 55vh, 520px);
    padding: clamp(32px, 6vw, 72px);
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.12), rgba(226, 232, 240, 0.32));
    color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.slab-welcome-screen.is-hidden {
    display: none;
}

.slab-welcome-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(140% 110% at 50% 100%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    mix-blend-mode: screen;
}

.slab-welcome-background {
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(60% 60% at 15% 20%, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0))
        , radial-gradient(70% 70% at 82% 25%, rgba(236, 72, 153, 0.32), rgba(236, 72, 153, 0))
        , radial-gradient(90% 80% at 52% 90%, rgba(16, 185, 129, 0.28), rgba(16, 185, 129, 0));
    opacity: 0.9;
    filter: saturate(120%);
    animation: slab-welcome-gradient 18s ease-in-out infinite alternate;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
}

.slab-welcome-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 3vw, 28px);
    max-width: 560px;
    opacity: 0;
    transform: translate3d(0, 24px, 0);
}

.slab-welcome-screen.is-active .slab-welcome-content {
    animation: slab-fade-up 700ms ease forwards;
}

.slab-welcome-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.slab-welcome-branding .slab-branding-logo {
    max-width: 120px;
    margin: 0;
    filter: drop-shadow(0 16px 30px rgba(15, 23, 42, 0.18));
}

.slab-welcome-branding .slab-branding-title {
    align-items: center;
    text-transform: uppercase;
    gap: 8px;
}

.slab-welcome-branding .slab-branding-title-primary {
    font-size: clamp(26px, 4vw, 44px);
    letter-spacing: 0.16em;
}

.slab-welcome-branding .slab-branding-title-secondary {
    align-self: center;
    font-size: clamp(11px, 1.6vw, 15px);
    letter-spacing: 0.32em;
}

.slab-welcome-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #1e293b;
}

.slab-welcome-text p {
    margin: 0;
}

.slab-welcome-text p + p {
    margin-top: 0.85em;
}

.slab-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.slab-modal.open {
    display: flex;
}

.slab-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.slab-modal-dialog {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: min(420px, 92%);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.slab-invite-dialog {
    width: min(640px, 94%);
}

.slab-invite-form,
.slab-invite-confirm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slab-invite-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.slab-invite-grid label {
    font-size: 0.85rem;
    color: #475569;
}

.slab-invite-grid input[type="text"],
.slab-invite-grid input[type="email"],
.slab-invite-grid input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dce1e7;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
}

.slab-invite-logo-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slab-invite-logo-field .slab-logo-preview img {
    max-height: 64px;
    width: auto;
}

.slab-invite-summary {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    gap: 8px 18px;
}

.slab-invite-summary dt {
    font-weight: 600;
    color: #0f172a;
}

.slab-invite-summary dd {
    margin: 0;
    color: #475569;
    word-break: break-word;
}

.slab-invite-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 640px) {
    .slab-invite-grid {
        grid-template-columns: 1fr;
    }
    .slab-invite-summary {
        grid-template-columns: 1fr;
    }
    .slab-invite-summary dt {
        color: #1e293b;
    }
}

#slab-job-modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slab-modal-description {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
}

.slab-modal-field {
    font-size: 0.85rem;
    color: #475569;
}

#slab-job-modal-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dce1e7;
    border-radius: 8px;
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .slab-app-shell {
        flex-direction: column;
    }
    .slab-app-sidebar {
        max-width: 100%;
        flex: 1;
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
    .slab-app-branding {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .slab-branding-logo {
        max-width: 80px;
    }
    .slab-branding-title {
        --slab-brand-primary-size: clamp(14px, 4.5vw, 20px);
    }
    .slab-form-grid {
        grid-template-columns: 1fr;
    }
    .slab-add-button {
        width: auto;
        height: auto;
        padding: 6px 14px;
    }
}

@media (max-width: 960px) {
    .slab-welcome-screen {
        min-height: clamp(280px, 50vh, 420px);
        padding: clamp(28px, 8vw, 56px);
    }
}

@media (max-width: 640px) {
    .slab-welcome-screen {
        border-radius: 24px;
        padding: clamp(24px, 9vw, 48px);
    }
    .slab-welcome-branding .slab-branding-logo {
        max-width: 92px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slab-job-workspace.is-visible {
        animation: none;
    }
    .slab-welcome-screen.is-active .slab-welcome-content {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .slab-welcome-background {
        animation: none;
    }
}

@keyframes slab-fade-in {
    from {
        opacity: 0;
        transform: translate3d(0, 12px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slab-fade-up {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slab-welcome-gradient {
    0% {
        transform: translate3d(-6%, -4%, 0) scale(1);
        filter: saturate(115%) hue-rotate(0deg);
    }
    50% {
        transform: translate3d(4%, 4%, 0) scale(1.05);
        filter: saturate(125%) hue-rotate(18deg);
    }
    100% {
        transform: translate3d(-3%, 5%, 0) scale(1);
        filter: saturate(120%) hue-rotate(-12deg);
    }
}

.slab-video-content {
    display: grid;
    gap: 12px;
}

.slab-video-message {
    margin: 0;
    font-weight: 500;
}

.slab-video-message--pending {
    color: #475569;
}

.slab-video-actions {
    margin-top: 12px;
}

.slab-video-request {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid #0f172a;
    background: transparent;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.slab-video-request:hover,
.slab-video-request:focus {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
    transform: translateY(-1px);
}

.slab-video-request:focus {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
}

.slab-video-request:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5f5;
    box-shadow: none;
    transform: none;
}

.slab-video-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid #0f172a;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.slab-video-download:hover,
.slab-video-download:focus {
    background: #15213c;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
    transform: translateY(-1px);
}

.slab-video-download:focus {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
}

.slab-video-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.slab-video-text {
    display: inline-block;
}