/* ================================================================
   Skill Bourse — Welcome Page Styles
   Mirrors the Figma/React design exactly.
   ================================================================ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.sb-body {
    font-family: 'Inter', sans-serif;
    background: #F8FAFC;
    min-height: 100vh;
}

/* ── Page shell ── */
.sb-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F8FAFC;
}

/* ================================================================
   HEADER
   ================================================================ */
.sb-header {
    width: 100%;
    padding: 2rem 5rem 0.5rem;
}

.sb-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* Logo */
.sb-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.sb-logo__img {
    height: 2rem;
    width: auto;
    display: block;
    object-fit: contain;
}

.si-card__logo .sb-logo__img {
    height: 2.75rem;
}

/* Nav */
.sb-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.sb-nav__link {
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.sb-nav__link:hover { color: #0F172A; }

.sb-nav__btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.5rem;
    border: 2px solid #0F172A;
    border-radius: 8px;
    color: #0F172A;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.sb-nav__btn-outline:hover {
    background: #0F172A;
    color: #fff;
}

/* ================================================================
   MAIN
   ================================================================ */
.sb-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 5rem 1.5rem;
}

.sb-main__inner {
    max-width: 1440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ── Headline ── */
.sb-headline { display: flex; flex-direction: column; gap: 0.75rem; }

.sb-headline__title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: #0F172A;
    letter-spacing: -0.5px;
}

.sb-headline__sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 500;
    color: #475569;
    max-width: 800px;
}

/* ── Two-column grid ── */
.sb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Left column */
.sb-col-left { display: flex; flex-direction: column; gap: 1.25rem; }

.sb-img-caption { text-align: center; }

.sb-img-caption__title {
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    font-weight: 600;
    color: #0F172A;
}

.sb-img-caption__sub {
    font-size: 0.95rem;
    color: #475569;
    margin-top: 0.5rem;
}

.sb-img-wrap {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    aspect-ratio: 4/3;
}

.sb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sb-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 60%);
    pointer-events: none;
}

/* Right column */
.sb-col-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Feature cards ── */
.sb-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.8);
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.sb-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.sb-card__icon--blue   { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.sb-card__icon--purple { background: linear-gradient(135deg, #A855F7, #7C3AED); }
.sb-card__icon--green  { background: linear-gradient(135deg, #22C55E, #16A34A); }

.sb-card__score {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.sb-card__body { display: flex; flex-direction: column; gap: 0.2rem; }

.sb-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0F172A;
}

.sb-card__desc {
    font-size: 0.85rem;
    color: #475569;
}

/* ── CTA ── */
.sb-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1.5rem;
}

.sb-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 56px;
    background: #FFD447;
    color: #0F172A;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(255, 212, 71, 0.4);
}

.sb-cta__btn:hover {
    background: #ffc800;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 212, 71, 0.5);
}

.sb-cta__btn:active { transform: translateY(0); }

.sb-cta__hint {
    font-size: 0.875rem;
    color: #475569;
    font-style: italic;
}

/* ================================================================
   FOOTER
   ================================================================ */
.sb-footer {
    width: 100%;
    padding: 0 2rem 2rem;
    text-align: center;
}

.sb-footer__text {
    font-size: 0.875rem;
    color: #94A3B8;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

/* Fade-in for the whole content block */
@keyframes sbFadeIn {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

.sb-fade-in {
    animation: sbFadeIn 0.35s ease both;
}

/* Slide up (for cards / headline / CTA) */
@keyframes sbSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sb-slide-up {
    opacity: 0;
    animation: sbSlideUp 0.45s ease forwards;
    animation-delay: var(--delay, 0s);
}

/* Slide right (for feature cards) */
@keyframes sbSlideRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.sb-slide-right {
    opacity: 0;
    animation: sbSlideRight 0.4s ease forwards;
    animation-delay: var(--delay, 0s);
}

/* ================================================================
   RESPONSIVE — collapse to single column below 900px
   ================================================================ */
@media (max-width: 900px) {
    .sb-header  { padding: 1.5rem 1.5rem 0.5rem; }
    .sb-main    { padding: 1rem 1.5rem 1.5rem; }

    .sb-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sb-headline__title { font-size: 1.75rem; }
    .sb-headline__sub   { font-size: 1rem; }

    .sb-nav { gap: 1rem; }
}

@media (max-width: 560px) {
    .sb-header  { padding: 1rem 1rem 0.5rem; }
    .sb-main    { padding: 0.75rem 1rem 1rem; }

    .sb-nav__link { display: none; }

    .sb-cta__btn { width: 100%; }
}

/* ================================================================
   ABOUT PAGE
   ================================================================ */

/* Sticky white header */
.ab-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    padding: 1.25rem 2rem;
}

.ab-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ab-header__nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Yellow "Get Started" button (About header) */
.ab-btn-yellow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    background: #FFD447;
    color: #0F172A;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.ab-btn-yellow:hover {
    background: #FFC107;
    transform: translateY(-1px);
}

/* Main scrollable area */
.ab-main {
    flex: 1;
    overflow-y: auto;
    background: #F8FAFC;
}

.ab-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Generic section spacing */
.ab-section { width: 100%; }

/* ── Hero ── */
.ab-hero { text-align: center; }

.ab-hero__title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.ab-hero__sub {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #475569;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.ab-hero__img-wrap {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    max-width: 900px;
    margin: 0 auto;
}

.ab-hero__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* ── White content card ── */
.ab-card {
    background: #fff;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid #F1F5F9;
}

.ab-card__heading {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.ab-card__body-text {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #475569;
    line-height: 1.7;
}

/* ── Bullet list (Why We Exist) ── */
.ab-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ab-bullet-list__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: clamp(0.95rem, 1.3vw, 1.125rem);
    color: #475569;
    line-height: 1.6;
}

.ab-bullet-list__dot {
    color: #FFD447;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    flex-shrink: 0;
}

/* ── Differentiators 2×2 grid ── */
.ab-diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ab-diff-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #F8FAFC;
    border-radius: 0.75rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.ab-diff-item:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}

.ab-diff-item__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.ab-diff-item__icon--blue   { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.ab-diff-item__icon--purple { background: linear-gradient(135deg, #A855F7, #7C3AED); }
.ab-diff-item__icon--green  { background: linear-gradient(135deg, #22C55E, #16A34A); }
.ab-diff-item__icon--orange { background: linear-gradient(135deg, #F97316, #EA580C); }

.ab-diff-item__label {
    font-size: 1.05rem;
    font-weight: 500;
    color: #0F172A;
    line-height: 1.4;
}

/* ── Who We Serve ── */
.ab-serve-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.ab-serve-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.ab-serve-item__icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD447, #FFC107);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ab-serve-item__label {
    font-size: 1rem;
    font-weight: 500;
    color: #475569;
    text-align: center;
    max-width: 120px;
}

/* ── Bottom CTA section ── */
.ab-cta-section {
    text-align: center;
    padding: 3rem 1rem;
}

.ab-cta-section__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.75rem;
}

.ab-cta-section__sub {
    font-size: clamp(0.95rem, 1.4vw, 1.125rem);
    color: #475569;
    margin-bottom: 2rem;
}

.ab-cta-section__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background: #FFD447;
    color: #0F172A;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(255,212,71,0.4);
}

.ab-cta-section__btn:hover {
    background: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,212,71,0.5);
}

/* ── Page footer ── */
.ab-page-footer {
    background: #fff;
    border-top: 1px solid #E2E8F0;
    padding: 1.5rem 2rem;
    text-align: center;
}

.ab-page-footer__text {
    font-size: 0.875rem;
    color: #475569;
}

/* ── Scroll-reveal animation ── */
@keyframes sbReveal {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sb-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.sb-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── About responsive ── */
@media (max-width: 768px) {
    .ab-content    { padding: 2rem 1.25rem; gap: 2.5rem; }
    .ab-card       { padding: 2rem 1.5rem; }
    .ab-diff-grid  { grid-template-columns: 1fr; }
    .ab-hero__img  { height: 240px; }
    .ab-header     { padding: 1rem 1.25rem; }
}

/* ================================================================
   HOW IT WORKS PAGE
   ================================================================ */

/* Step card wrapper */
.hiw-step { }

/* Two-column grid inside each step card */
.hiw-step__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

/* Reverse: image left, content right */
.hiw-step__grid--reverse .hiw-step__content { order: 2; }
.hiw-step__grid--reverse .hiw-step__img-wrap { order: 1; }

/* Content column */
.hiw-step__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Badge row: icon + "STEP N" label */
.hiw-step__badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hiw-step__icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.hiw-step__icon--blue   { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.hiw-step__icon--purple { background: linear-gradient(135deg, #A855F7, #7C3AED); }
.hiw-step__icon--green  { background: linear-gradient(135deg, #22C55E, #16A34A); }
.hiw-step__icon--orange { background: linear-gradient(135deg, #F97316, #EA580C); }
.hiw-step__icon--pink   { background: linear-gradient(135deg, #EC4899, #DB2777); }

.hiw-step__label-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hiw-step__label {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FFD447;
    letter-spacing: 0.5px;
}

.hiw-step__line {
    width: 2rem;
    height: 4px;
    background: #FFD447;
    border-radius: 2px;
}

/* Title & description */
.hiw-step__title {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 700;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.hiw-step__desc {
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    color: #475569;
    line-height: 1.7;
}

/* Image column */
.hiw-step__img-wrap {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.hiw-step__img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hiw-step__img-wrap:hover .hiw-step__img {
    transform: scale(1.03);
}

/* ── Dark gradient CTA ── */
.hiw-cta {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
}

.hiw-cta__title {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.hiw-cta__sub {
    font-size: clamp(0.95rem, 1.4vw, 1.125rem);
    color: #94A3B8;
    margin-bottom: 2rem;
}

.hiw-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background: #FFD447;
    color: #0F172A;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(255,212,71,0.35);
}

.hiw-cta__btn:hover {
    background: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,212,71,0.5);
}

/* ================================================================
   SIGN IN PAGE
   ================================================================ */

.si-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    padding: 2rem 1rem;
    font-family: 'Inter', sans-serif;
}

.si-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.si-card__logo { margin-bottom: 1.25rem; }

.si-card__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.35rem;
}

.si-card__sub {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

/* Error banner */
.si-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    color: #DC2626;
    font-size: 0.875rem;
}

.si-error-banner ul { margin: 0; padding: 0; list-style: none; }

.si-success-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    color: #15803D;
    font-size: 0.875rem;
}

/* Fields */
.si-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.si-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0F172A;
}

.si-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #0F172A;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.si-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.si-field-error {
    font-size: 0.8rem;
    color: #DC2626;
    min-height: 1rem;
}

/* Submit button */
.si-submit-btn {
    width: 100%;
    padding: 0.8rem;
    background: #FFD447;
    color: #0F172A;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(255,212,71,0.35);
}

.si-submit-btn:hover {
    background: #FFC107;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255,212,71,0.45);
}

.si-submit-btn:active { transform: translateY(0); }

/* Footer links */
.si-footer-link {
    text-align: center;
    font-size: 0.875rem;
    color: #475569;
}

.si-footer-link a {
    color: #3B82F6;
    font-weight: 600;
    text-decoration: none;
}

.si-footer-link a:hover { text-decoration: underline; }

/* Test credentials collapsible */
.si-hint {
    margin-top: 1.5rem;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    overflow: hidden;
}

.si-hint__toggle {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    background: #F8FAFC;
    user-select: none;
    list-style: none;
}

.si-hint__toggle::-webkit-details-marker { display: none; }
.si-hint__toggle::before { content: '▶  '; font-size: 0.65rem; }
details[open] .si-hint__toggle::before { content: '▼  '; }

.si-hint__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    color: #475569;
}

.si-hint__table th {
    background: #F1F5F9;
    padding: 0.45rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #0F172A;
    border-bottom: 1px solid #E2E8F0;
}

.si-hint__table td {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #F1F5F9;
}

.si-hint__table tr:last-child td { border-bottom: none; }

/* Clickable email — auto-fills the form */
.si-hint__fill {
    background: none;
    border: none;
    padding: 0;
    color: #3B82F6;
    font-size: 0.78rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.si-hint__fill:hover { color: #2563EB; }

/* ── How It Works responsive ── */
@media (max-width: 768px) {
    .hiw-step__grid,
    .hiw-step__grid--reverse {
        grid-template-columns: 1fr;
    }

    .hiw-step__grid--reverse .hiw-step__content,
    .hiw-step__grid--reverse .hiw-step__img-wrap {
        order: unset;
    }

    .hiw-step__img  { height: 220px; }
    .hiw-cta        { padding: 2.5rem 1.25rem; }
}

/* ================================================================
   SIGN UP — password wrapper + quick-fill
   ================================================================ */

.si-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.si-pw-wrap .si-input {
    padding-right: 2.75rem;
    margin-bottom: 0;   /* gap handled by .si-field */
}

.si-pw-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.2s;
}

.si-pw-toggle:hover { color: #475569; }

.si-hint__fill-all {
    width: 100%;
    padding: 0.55rem 0.9rem;
    background: #0F172A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.si-hint__fill-all:hover { background: #1E293B; }

/* ================================================================
   EMAIL VERIFICATION PAGE
   ================================================================ */

/* Page shell */
.ev-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
}

/* Header (logo only, no nav) */
.ev-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    padding: 1.25rem 2rem;
}

.ev-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Back-to-dashboard link shown when editing an already-completed profile */
.bp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748B;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.bp-back-link:hover {
    background: #F1F5F9;
    color: #334155;
    border-color: #CBD5E1;
}

/* Main area centres the card */
.ev-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.ev-outer {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── White card ── */
.ev-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 0.875rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Card header block */
.ev-card__head {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.ev-icon-wrap {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.ev-card__title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0F172A;
    margin: 0;
}

.ev-card__sub {
    font-size: 0.875rem;
    color: #475569;
    margin: 0;
}

.ev-card__email {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0F172A;
    margin: 0;
}

/* ── OTP label ── */
.ev-digits-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0F172A;
    text-align: center;
    margin-bottom: 0.85rem;
}

/* ── 6 digit boxes ── */
.ev-digits {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.ev-digit {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #0F172A;
    border: 2px solid #CBD5E1;
    border-radius: 8px;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    caret-color: transparent; /* hide cursor, cleaner for OTP */
}

.ev-digit:hover  { border-color: #94A3B8; }

.ev-digit:focus  {
    border-color: #FFD447;
    box-shadow: 0 0 0 3px rgba(255,212,71,0.25);
}

.ev-digit--filled {
    border-color: #FFD447;
    background: #FFFBEB;
}

.ev-digit--error {
    border-color: #EF4444 !important;
    background: #FEF2F2 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important;
}

/* ── Error message ── */
.ev-error {
    font-size: 0.75rem;
    color: #EF4444;
    text-align: center;
    min-height: 1.1rem;
    margin-bottom: 1.25rem;
}

/* ── Verify button ── */
.ev-verify-btn {
    width: 100%;
    height: 3rem;
    background: #CBD5E1;           /* disabled state */
    color: #64748B;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.ev-verify-btn--ready {
    background: #FFD447;
    color: #0F172A;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255,212,71,0.4);
}

.ev-verify-btn--ready:hover {
    background: #FFC107;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255,212,71,0.5);
}

/* ── Spinner ── */
@keyframes evSpin {
    to { transform: rotate(360deg); }
}

.ev-spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2.5px solid rgba(15,23,42,0.25);
    border-top-color: #0F172A;
    border-radius: 50%;
    display: inline-block;
    animation: evSpin 0.8s linear infinite;
}

/* ── Resend block ── */
.ev-resend {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.ev-resend__label {
    font-size: 0.875rem;
    color: #475569;
    margin: 0;
}

.ev-resend__btn {
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0F172A;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.ev-resend__btn:hover { color: #475569; }

.ev-resend__countdown {
    font-size: 0.875rem;
    color: #475569;
    margin: 0;
}

/* ── Back to sign in ── */
.ev-back-wrap {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #F1F5F9;
    text-align: center;
}

.ev-back-link {
    font-size: 0.875rem;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.ev-back-link:hover { color: #0F172A; }

/* ── Below-card hint box ── */
.ev-hint {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.ev-hint__main {
    font-size: 0.75rem;
    color: #94A3B8;
    margin: 0;
}

.ev-hint__test {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.ev-hint__test-label {
    font-size: 0.75rem;
    color: #64748B;
}

.ev-hint__test-btn {
    background: none;
    border: 1.5px solid #CBD5E1;
    border-radius: 6px;
    padding: 0.2rem 0.65rem;
    font-family: 'Inter', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3B82F6;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.ev-hint__test-btn:hover {
    background: #EFF6FF;
    border-color: #93C5FD;
}

/* ── Email verified success tick ── */
.ev-success-tick {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(34,197,94,0.35);
    animation: evTickPop 0.5s cubic-bezier(.175,.885,.32,1.275) both;
}

@keyframes evTickPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .ev-card          { padding: 2rem 1.25rem; }
    .ev-digit         { width: 2.6rem; height: 3rem; font-size: 1.25rem; }
    .ev-digits        { gap: 0.45rem; }
    .ev-header        { padding: 1rem 1.25rem; }
}

/* ── Additional ev classes used by the si-card layout ── */

/* Row that holds the 6 digit boxes (alias for .ev-digits so both work) */
.ev-digits-row {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin: 1.25rem 0 0.5rem;
}

/* Disabled submit button state */
.si-submit-btn:disabled {
    background: #CBD5E1;
    color: #94A3B8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Green success banner (resend confirmation) */
.ev-success-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #15803D;
    margin-bottom: 1rem;
}

/* Resend row */
.ev-resend-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1.25rem;
}

.ev-resend-hint {
    font-size: 0.875rem;
    color: #64748B;
}

.ev-resend-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0F172A;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.ev-resend-btn:hover { color: #4F46E5; }

/* Development hint box */
.ev-dev-hint {
    margin-top: 1.5rem;
    background: #FFF7ED;
    border: 1px dashed #FED7AA;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: #92400E;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
}

.ev-dev-hint__label {
    font-weight: 700;
    color: #78350F;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ev-dev-code {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.4em;
    color: #0F172A;
    background: #FFF;
    border: 1px solid #FED7AA;
    border-radius: 8px;
    padding: 0.4rem 1.2rem;
}

.ev-dev-fill-btn {
    background: #F97316;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.ev-dev-fill-btn:hover { background: #EA580C; }

/* ── ev-icon-wrap inside si-card (centre it) ── */
.si-card .ev-icon-wrap {
    margin: 0 auto 0.25rem;
}

/* ================================================================
   BASIC PROFILE SETUP PAGE
   ================================================================ */

.bp-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
}

/* Scrollable main */
.bp-main {
    flex: 1;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.bp-outer {
    width: 100%;
    max-width: 1200px;
}

/* ── Two-column card ── */
.bp-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 0.875rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

/* ── Left panel (60%) ── */
.bp-form-panel {
    width: 60%;
    padding: 3rem;
    overflow-y: auto;
}

.bp-form-panel__head  { margin-bottom: 2rem; }

.bp-form-panel__title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.4rem;
}

.bp-form-panel__sub {
    font-size: 0.875rem;
    color: #475569;
}

/* ── Photo row ── */
.bp-photo-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.bp-photo-circle {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    background: #F1F5F9;
    border: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.bp-photo-btns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bp-file-hidden { display: none; }

.bp-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #FFD447;
    color: #0F172A;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.bp-upload-btn:hover {
    background: #FFC107;
    transform: translateY(-1px);
}

.bp-skip-btn {
    padding: 0.5rem 1rem;
    background: #fff;
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.bp-skip-btn:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
}

/* ── Form fields ── */
.bp-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.375rem;
}

.bp-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.bp-label--optional {
    font-weight: 400;
    color: #475569;
}

.bp-input,
.bp-textarea {
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    border: 2px solid #D1D5DB;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #0F172A;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bp-textarea {
    height: auto;
    padding: 0.75rem 1rem;
    resize: none;
    line-height: 1.6;
}

.bp-input:hover,
.bp-textarea:hover  { border-color: #9CA3AF; }

.bp-input:focus,
.bp-textarea:focus,
.bp-input--focus    {
    border-color: #FFD447;
    box-shadow: 0 0 0 3px rgba(255,212,71,0.22);
}

/* ── Select wrapper (custom chevron) ── */
.bp-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.bp-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 3rem;
    padding: 0 2.5rem 0 1rem;
    border: 2px solid #D1D5DB;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #9CA3AF;           /* placeholder colour */
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bp-select--chosen { color: #0F172A; }

.bp-select:hover  { border-color: #9CA3AF; }

.bp-select:focus  {
    border-color: #FFD447;
    box-shadow: 0 0 0 3px rgba(255,212,71,0.22);
}

.bp-select-chevron {
    position: absolute;
    right: 0.85rem;
    pointer-events: none;
    color: #94A3B8;
}

/* ── Field error ── */
.bp-field-error {
    font-size: 0.75rem;
    color: #EF4444;
    min-height: 1rem;
}

/* Input in error state (server-side) */
.input-validation-error {
    border-color: #EF4444 !important;
    background: #FEF2F2 !important;
}

/* ── Submit button ── */
.bp-submit {
    width: 100%;
    height: 3rem;
    background: #FFD447;
    color: #0F172A;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(255,212,71,0.4);
}

.bp-submit:hover:not(:disabled) {
    background: #FFC107;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,212,71,0.5);
}

.bp-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Right preview panel (40%) ── */
.bp-preview-panel {
    width: 40%;
    background: linear-gradient(135deg, rgba(255,212,71,0.12) 0%, rgba(255,212,71,0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.bp-preview-inner {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bp-preview-img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: block;
}

.bp-preview-text { text-align: center; }

.bp-preview-text__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.bp-preview-text__sub {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .bp-card             { flex-direction: column; }
    .bp-form-panel       { width: 100%; padding: 2rem 1.5rem; }
    .bp-preview-panel    { width: 100%; padding: 2rem 1.5rem; }
    .bp-preview-img      { max-height: 240px; object-fit: cover; }
    .bp-main             { padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
    .bp-photo-row        { flex-direction: column; align-items: flex-start; }
    .bp-photo-circle     { width: 6rem; height: 6rem; }
    .bp-form-panel       { padding: 1.5rem 1rem; }
}

/* ================================================================
   PROFILE SETUP — SECTION HEADERS & LAYOUT ADDITIONS
   ================================================================ */

/* Two-column name row */
.bp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 560px) {
    .bp-two-col { grid-template-columns: 1fr; }
}

/* Numbered section header */
.bp-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #F1F5F9;
}

.bp-section-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #FFD447;
    color: #0F172A;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bp-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.bp-section-sub {
    font-size: 0.82rem;
    color: #64748B;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

/* ── Action buttons row ── */
.bp-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Save for Later — outlined */
.bp-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 1.5rem;
    height: 3rem;
    background: #fff;
    color: #0F172A;
    border: 2px solid #0F172A;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.bp-save-btn:hover {
    background: #0F172A;
    color: #fff;
}

/* Continue / Submit — yellow (existing .bp-submit grows to fill) */
.bp-actions .bp-submit { flex: 1; min-width: 160px; }

/* ── Save/Draft toast banner ── */
.bp-toast {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 40;
    animation: sbSlideUp 0.3s ease both;
}

.bp-toast--success {
    background: #F0FDF4;
    border-bottom: 1px solid #BBF7D0;
    color: #166534;
}

.bp-toast--info {
    background: #EFF6FF;
    border-bottom: 1px solid #BFDBFE;
    color: #1D4ED8;
}

.bp-toast__close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    padding: 0 0.25rem;
    transition: opacity 0.2s;
}

.bp-toast__close:hover { opacity: 1; }

/* ── Right panel experience badge ── */
.bp-exp-count {
    background: #0F172A;
    color: #FFD447;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    animation: sbSlideUp 0.3s ease both;
}

/* ================================================================
   WORK EXPERIENCE SECTION
   ================================================================ */

/* "Add Another" button */
.exp-add-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    margin-top: 1rem;
    background: #F8FAFC;
    border: 2px dashed #CBD5E1;
    border-radius: 10px;
    color: #3B82F6;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.exp-add-btn:hover {
    background: #EFF6FF;
    border-color: #93C5FD;
    color: #2563EB;
}

/* Individual experience card */
.exp-card {
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.exp-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

/* Card header bar */
.exp-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.exp-card__num {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0F172A;
}

.exp-card__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #FFD447;
    flex-shrink: 0;
}

/* Remove button */
.exp-card__remove {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    color: #EF4444;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 0.15s;
}

.exp-card__remove:hover { background: #FEF2F2; }

/* Card body */
.exp-card__body {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* From / To date row */
.exp-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0; /* .bp-field already has margin */
}

@media (max-width: 500px) {
    .exp-date-row { grid-template-columns: 1fr; }
}

/* "Currently working here" checkbox */
.exp-current-check {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    margin-bottom: 1.25rem;
    user-select: none;
}

.exp-current-check input[type="checkbox"] { display: none; }

.exp-current-check__box {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid #CBD5E1;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
}

.exp-current-check input:checked + .exp-current-check__box {
    background: #FFD447;
    border-color: #FFD447;
}

.exp-current-check input:checked + .exp-current-check__box::after {
    content: '';
    display: block;
    width: 0.35rem;
    height: 0.6rem;
    border: 2px solid #0F172A;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.exp-current-check__label {
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
}

/* ── Currently uploaded resume banner ── */
.bp-resume-current {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.bp-resume-current__name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: #166534;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bp-resume-current__download {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #15803D;
    text-decoration: none;
    padding: 0.3rem 0.65rem;
    border: 1px solid #86EFAC;
    border-radius: 6px;
    transition: background 0.15s;
}

.bp-resume-current__download:hover { background: #DCFCE7; }

.bp-resume-current__replace {
    font-size: 0.75rem;
    color: #64748B;
    white-space: nowrap;
}

/* ── Global resume upload zone (Section 2) ── */
.bp-resume-zone {
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    padding: 2.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    background: #F8FAFC;
    margin-top: 0.25rem;
}

.bp-resume-zone:hover {
    border-color: #94A3B8;
    background: #F1F5F9;
}

.bp-resume-zone--drag {
    border-color: #FFD447;
    background: #FFFBEB;
    box-shadow: 0 0 0 4px rgba(255,212,71,0.2);
}

.bp-resume-zone--filled {
    border-color: #16A34A;
    background: #F0FDF4;
}

.bp-resume-zone__icon {
    margin-bottom: 0.25rem;
}

.bp-resume-zone__title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    margin: 0;
}

.bp-resume-zone__link {
    color: #0F172A;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bp-resume-zone__hint {
    font-size: 0.78rem;
    color: #94A3B8;
    margin: 0;
}

/* Chosen file row */
.bp-resume-chosen {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #0F172A;
    max-width: 100%;
}

.bp-resume-chosen span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bp-resume-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    font-size: 0.9rem;
    padding: 0 0.2rem;
    line-height: 1;
    transition: color 0.15s;
    flex-shrink: 0;
}

.bp-resume-clear:hover { color: #EF4444; }

/* ── Upload zones (per-experience, kept for future use) ── */
.exp-upload-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 560px) {
    .exp-upload-row { grid-template-columns: 1fr; }
}

.exp-upload-zone {
    border: 1.5px dashed #CBD5E1;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.exp-upload-zone:hover {
    border-color: #94A3B8;
    background: #F8FAFC;
}

.exp-upload-zone__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.exp-upload-btn {
    padding: 0.4rem 0.9rem;
    background: #FFD447;
    color: #0F172A;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.exp-upload-btn:hover {
    background: #FFC107;
    transform: translateY(-1px);
}

.exp-file-name {
    font-size: 0.75rem;
    color: #94A3B8;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Exp photo thumbnail */
.exp-photo-preview-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #FFD447;
}

.exp-photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================================================================
   ONBOARDING INTRO PAGE
   ================================================================ */

/* ── Entry animation ── */
@keyframes oiFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.oi-anim {
    opacity: 0;
    animation: oiFadeUp 0.55s ease both;
    animation-delay: var(--oi-delay, 0s);
}

/* ── Page shell ── */
.oi-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
}

/* ── Header ── */
.oi-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    padding: 1.25rem 2rem;
}

.oi-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Avatar circle — shows first letter of user name */
.oi-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #FFD447;
    color: #0F172A;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    user-select: none;
}

/* ── Main area ── */
.oi-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.oi-content {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.75rem;
}

/* ── Hero heading ── */
.oi-hero {
    text-align: center;
}

.oi-hero__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.oi-hero__sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #475569;
    font-weight: 400;
}

/* ── White steps card ── */
.oi-card {
    width: 100%;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 1.25rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

.oi-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0;
}

/* Vertical divider between steps */
.oi-step-divider {
    width: 1px;
    background: #E2E8F0;
    align-self: stretch;
    margin: 0 1.5rem;
    min-height: 8rem;
}

/* ── Individual step ── */
.oi-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 0 0.5rem;
}

/* Gradient icon circles */
.oi-step__icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.oi-step__icon--blue   { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.oi-step__icon--purple { background: linear-gradient(135deg, #A855F7, #7C3AED); }
.oi-step__icon--green  { background: linear-gradient(135deg, #22C55E, #16A34A); }

.oi-step__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.oi-step__desc {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.65;
}

/* ── CTA button ── */
.oi-cta {
    display: flex;
    justify-content: center;
}

.oi-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #FFD447;
    color: #0F172A;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1rem 2.25rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(255,212,71,0.45);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.oi-cta__btn:hover {
    background: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,212,71,0.55);
}

.oi-cta__btn:active {
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .oi-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .oi-step-divider {
        display: none;
    }

    .oi-card {
        padding: 2rem 1.25rem;
    }
}

/* ================================================================
   DAILY JOURNAL PAGE
   ================================================================ */

/* ── Entry animation ── */
@keyframes djFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0);    }
}

.dj-anim {
    opacity: 0;
    animation: djFadeIn 0.45s ease both;
    animation-delay: var(--dj-delay, 0s);
}

/* ── Page shell ── */
.dj-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
}

/* ── Header ── */
.dj-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    padding: 1.1rem 5rem;
    flex-shrink: 0;
}

.dj-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2.5rem;
}

/* ── Nav ── */
.dj-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.dj-nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #0F172A;
    text-decoration: none;
    transition: color 0.15s;
}

.dj-nav__link:hover { color: #FFD447; }

.dj-nav__link--muted { color: #475569; }
.dj-nav__link--muted:hover { color: #0F172A; }

.dj-nav__new-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #FFD447;
    color: #0F172A;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.dj-nav__new-btn:hover {
    background: #FFC107;
    transform: translateY(-1px);
}

/* ── Save toast ── */
.dj-toast {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #ECFDF5;
    border: 1px solid #6EE7B7;
    color: #065F46;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    margin: 1rem 5rem 0;
    border-radius: 10px;
    max-width: 1440px;
    position: relative;
}

.dj-toast__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #065F46;
    font-size: 0.85rem;
    margin-left: auto;
    padding: 0 0.25rem;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.dj-toast__close:hover { opacity: 1; }

/* ── Main scroll area ── */
.dj-main {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 5rem 3rem;
}

.dj-content {
    max-width: 1440px;
    margin: 0 auto;
}

/* ── Two-column grid ── */
.dj-grid {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 2rem;
    align-items: start;
}

/* ── Shared card ── */
.dj-card {
    background: #fff;
    border: 1px solid #F1F5F9;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}

.dj-card:last-child { margin-bottom: 0; }

.dj-card--yellow {
    background: linear-gradient(135deg, #FFD447, #FFC107);
    border-color: transparent;
}

.dj-card__title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.dj-card__divider {
    width: 100%;
    height: 1px;
    background: #E2E8F0;
    margin-bottom: 1rem;
}

.dj-card__divider--dark {
    background: rgba(15,23,42,0.1);
}

/* ── Left panel bullet lists ── */
.dj-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dj-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #0F172A;
    line-height: 1.5;
}

.dj-bullet-list li::before {
    content: "•";
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.dj-bullet-list--muted li { color: #475569; }
.dj-bullet-list--muted li::before { color: #475569; }

.dj-bullet-list__label {
    font-weight: 600;
    margin-right: 0.15rem;
}

/* ── Prompt text ── */
.dj-prompt-text {
    font-size: 0.95rem;
    color: #0F172A;
    font-style: italic;
    line-height: 1.7;
    margin: 0;
}

/* ── Textarea wrapper ── */
.dj-textarea-wrap {
    position: relative;
}

.dj-textarea {
    width: 100%;
    height: 16rem;
    padding: 1rem 1rem 3rem 1rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #0F172A;
    line-height: 1.6;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dj-textarea::placeholder { color: #94A3B8; }

.dj-textarea:focus {
    border-color: #FFD447;
    box-shadow: 0 0 0 3px rgba(255,212,71,0.2);
}

/* Char count */
.dj-char-count {
    position: absolute;
    bottom: 0.7rem;
    left: 1rem;
    font-size: 0.72rem;
    color: #94A3B8;
    pointer-events: none;
}

.dj-char-count--warn { color: #F59E0B; }

/* Mic / Video buttons */
.dj-media-btns {
    position: absolute;
    bottom: 0.65rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.dj-media-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: none;
    background: #F1F5F9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dj-media-btn:hover:not(:disabled) {
    background: #E2E8F0;
    color: #0F172A;
}

.dj-media-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Skill tags ── */
.dj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.dj-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--ds-teal-tint, #EEF6F3);
    color: var(--ds-teal, #0F6E56);
    border: 1.5px solid #C5E0D7;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Animation for newly added tags */
.dj-tag--new  { opacity: 0; transform: scale(0.85); }
.dj-tag--visible { opacity: 1; transform: scale(1); transition: opacity 0.2s, transform 0.2s; }

.dj-tag__remove {
    background: none;
    border: none;
    padding: 0.15rem;
    cursor: pointer;
    color: var(--ds-teal, #0F6E56);
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: background 0.1s;
}

.dj-tag__remove:hover { background: rgba(15,110,86,0.12); }

/* + Add Skill Tag button */
.dj-tag-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #F1F5F9;
    color: #475569;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dj-tag-add-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

/* Skill input row */
.dj-skill-input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.dj-skill-input {
    flex: 1;
    padding: 0.45rem 0.85rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #0F172A;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dj-skill-input:focus {
    border-color: #FFD447;
    box-shadow: 0 0 0 3px rgba(255,212,71,0.2);
}

.dj-skill-add {
    padding: 0.45rem 1rem;
    background: #FFD447;
    color: #0F172A;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.dj-skill-add:hover { background: #FFC107; }

.dj-skill-cancel {
    padding: 0.45rem 1rem;
    background: #fff;
    color: #475569;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.dj-skill-cancel:hover { border-color: #94A3B8; color: #0F172A; }

.dj-tags-hint {
    font-size: 0.75rem;
    color: #94A3B8;
    margin: 0;
}

/* ── Impact level radios ── */
.dj-impact-row {
    display: flex;
    gap: 2.5rem;
}

.dj-impact-opt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Hide native radio */
.dj-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom radio dot */
.dj-impact-opt__dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}

.dj-impact-opt__dot::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--ds-teal, #0F6E56);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.15s, transform 0.15s;
}

.dj-impact-opt__dot--checked {
    border-color: var(--ds-teal, #0F6E56);
    background: var(--ds-teal-tint, #EEF6F3);
}

.dj-impact-opt__dot--checked::after {
    opacity: 1;
    transform: scale(1);
}

.dj-impact-opt:hover .dj-impact-opt__dot { border-color: var(--ds-teal, #0F6E56); }

.dj-impact-opt__label {
    font-size: 0.9rem;
    color: #0F172A;
    font-weight: 500;
    transition: color 0.15s;
    user-select: none;
}

.dj-impact-opt__label--checked { color: var(--ds-teal, #0F6E56); font-weight: 600; }

/* ── Action buttons ── */
.dj-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dj-btn {
    padding: 0.65rem 2rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.dj-btn:hover { transform: translateY(-1px); }
.dj-btn:active { transform: translateY(0); }

.dj-btn--save {
    background: #FFD447;
    color: #0F172A;
    box-shadow: 0 3px 10px rgba(255,212,71,0.4);
}

.dj-btn--save:hover {
    background: #FFC107;
    box-shadow: 0 5px 14px rgba(255,212,71,0.5);
}

.dj-btn--submit {
    background: #0F172A;
    color: #fff;
    box-shadow: 0 3px 10px rgba(15,23,42,0.2);
}

.dj-btn--submit:hover {
    background: #1E293B;
    box-shadow: 0 5px 14px rgba(15,23,42,0.3);
}

.dj-btn--cancel {
    background: #fff;
    color: #475569;
    border: 1.5px solid #E2E8F0;
}

.dj-btn--cancel:hover {
    border-color: #94A3B8;
    color: #0F172A;
}

/* ── Left panel columns stack on mobile ── */
@media (max-width: 900px) {
    .dj-header { padding: 1rem 1.5rem; }
    .dj-toast  { margin: 0.75rem 1.5rem 0; }
    .dj-main   { padding: 1.5rem 1.5rem 3rem; }

    .dj-grid {
        grid-template-columns: 1fr;
    }

    .dj-impact-row { gap: 1.5rem; }
}

@media (max-width: 500px) {
    .dj-actions { flex-direction: column; }
    .dj-btn     { width: 100%; text-align: center; }
}

/* ================================================================
   CANDIDATE DASHBOARD  (cd-*)
   Fixed app-shell: full-height, sidebar + scrollable main
   ================================================================ */

/* ── Page shell ── */
.cd-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
    color: #0F172A;
    overflow: hidden;
}

/* ── Header ── */
.cd-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    flex-shrink: 0;
    z-index: 10;
}

.cd-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 2rem;
    max-width: 100%;
}

/* Avatar (purple gradient circle with initial) */
.cd-avatar {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #4F46E5);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
    cursor: pointer;
}

/* ── Avatar dropdown menu ── */
.cd-avatar-wrap {
    position: relative;
}

.cd-avatar-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    z-index: 200;
    overflow: hidden;
}

.cd-avatar-dropdown.is-open { display: block; }

.cd-avatar-dropdown__name {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748B;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cd-avatar-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.15s;
}

.cd-avatar-dropdown__item:hover { background: #F1F5F9; color: #334155; }

.cd-avatar-dropdown__signout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #DC2626;
    cursor: pointer;
    transition: background 0.15s;
}

.cd-avatar-dropdown__signout:hover { background: #FEF2F2; }

/* ── Profile-updated toast ── */
.cd-toast {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.cd-toast--success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.cd-toast__close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 0.2rem;
}

.cd-toast__close:hover { opacity: 1; }

/* ── Sidebar sign-out ── */
.cd-nav-signout-wrap {
    margin-top: 1.5rem;
    padding: 0 0.75rem;
    border-top: 1px solid #F1F5F9;
    padding-top: 0.75rem;
}

.cd-nav-signout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: none;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #DC2626;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.cd-nav-signout:hover { background: #FEF2F2; }

/* ── Body: sidebar + main row ── */
.cd-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ── Sidebar ── */
.cd-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #E2E8F0;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.cd-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
}

.cd-nav-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.cd-nav-item:hover { background: #F8FAFC; color: #0F172A; }

.cd-nav-item--active {
    background: #FFF9DB;
    color: #B45309;
    font-weight: 700;
}

/* ── Main scroll area ── */
.cd-main {
    flex: 1;
    overflow-y: auto;
    min-width: 0;
}

.cd-content {
    padding: 2rem 2.5rem 3rem;
    max-width: 1100px;
}

/* ── Tab containers ── */
.cd-tab { /* display toggled by JS */ }

/* ── Typography helpers ── */
.cd-h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    line-height: 1.2;
}

.cd-h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.cd-h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.cd-sub {
    font-size: 0.9rem;
    color: #64748B;
    margin: 0.35rem 0 0;
}

.cd-italic-text {
    font-style: italic;
    color: #1E293B;
    line-height: 1.7;
    margin: 0;
}

/* ── Page / section heads ── */
.cd-page-head { margin-bottom: 1.75rem; }

.cd-section-head {
    margin: 1.75rem 0 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #E2E8F0;
}

/* ── Base card ── */
.cd-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* Gradient card variants */
.cd-card--blue-purple {
    background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);
    border-color: #C7D2FE;
}

.cd-card--yellow-amber {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-color: #FCD34D;
}

.cd-card--purple-gradient {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    border-color: transparent;
}

.cd-card--purple-gradient .cd-snapshot-item {
    color: rgba(255,255,255,0.85);
}

.cd-card--purple-gradient .cd-snapshot-item span {
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

/* ── Stat grid (4 columns) ── */
.cd-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cd-stat-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: box-shadow 0.2s;
}

.cd-stat-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.07); }

.cd-stat-card--purple {
    background: linear-gradient(135deg, #7C3AED, #4F46E5);
    border-color: transparent;
}

.cd-stat-icon-wrap {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.cd-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1;
}

.cd-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cd-stat-unit {
    font-size: 0.8rem;
    color: #94A3B8;
}

/* ── Timeline (shared, used in multiple tabs) ── */
.cd-timeline {
    padding: 0.5rem 1.5rem;
}

/* Journal list: individual entry cards, so outer wrapper is transparent */
#journal-list {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.25rem 0;
}

.cd-timeline-entry {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.15s;
}

.cd-timeline-entry:last-child { border-bottom: none; }

.cd-timeline-entry--journal {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.15s, border-color 0.15s;
}

.cd-timeline-entry--journal:last-child {
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 0;
}

.cd-timeline-entry--journal:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-color: #CBD5E1;
}

.cd-timeline-entry--journal > .cd-dot {
    display: none;
}

.cd-timeline-entry__left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.cd-dot {
    color: #FFD447;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.cd-entry-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748B;
    white-space: nowrap;
    flex-shrink: 0;
}

.cd-entry-dash {
    color: #CBD5E1;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cd-entry-preview {
    font-size: 0.875rem;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 480px;
}

.cd-entry-body {
    flex: 1;
    min-width: 0;
}

.cd-entry-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* View entry button (compact, right side) */
.cd-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s;
}

.cd-view-btn:hover { border-color: #94A3B8; color: #0F172A; }

/* ── CTA row (add new entry etc.) ── */
.cd-cta-row {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 0;
}

.cd-cta-row--gap { gap: 1rem; }

.cd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFD447;
    color: #0F172A;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 3px 10px rgba(255,212,71,0.35);
}

.cd-cta-btn:hover {
    background: #FFC107;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(255,212,71,0.5);
    color: #0F172A;
    text-decoration: none;
}

.cd-cta-btn--outline {
    background: #fff;
    color: #475569;
    border: 1.5px solid #E2E8F0;
    box-shadow: none;
}

.cd-cta-btn--outline:hover {
    border-color: #94A3B8;
    color: #0F172A;
    background: #fff;
    box-shadow: none;
}

.cd-cta-btn--sm { padding: 0.5rem 1.25rem; font-size: 0.83rem; }

/* ── Filters card ── */
.cd-filters-card { padding: 1rem 1.25rem; margin-bottom: 1.25rem; }

.cd-filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
}

/* Search */
.cd-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cd-search-icon {
    position: absolute;
    left: 0.85rem;
    pointer-events: none;
    color: #64748B;
}

.cd-search-input {
    width: 100%;
    padding: 0.6rem 0.85rem 0.6rem 2.4rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #0F172A;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cd-search-input:focus {
    border-color: #FFD447;
    box-shadow: 0 0 0 3px rgba(255,212,71,0.2);
}

.cd-search-input::placeholder { color: #94A3B8; }

/* Select wrapper with chevron */
.cd-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cd-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 0.6rem 2.5rem 0.6rem 0.85rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #0F172A;
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cd-select:focus {
    border-color: #FFD447;
    box-shadow: 0 0 0 3px rgba(255,212,71,0.2);
}

.cd-chevron {
    position: absolute;
    right: 0.75rem;
    pointer-events: none;
    color: #64748B;
}

/* ── Tag pills ── */
.cd-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.cd-tags-label {
    font-size: 0.78rem;
    color: #94A3B8;
    font-weight: 500;
    margin-right: 0.15rem;
}

.cd-tag-pill {
    display: inline-flex;
    align-items: center;
    background: #F1F5F9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.cd-tag-pill--purple {
    background: #EDE9FE;
    color: #6D28D9;
}

.cd-tag-pill--green {
    background: #DCFCE7;
    color: #16A34A;
}

/* ── Status badges (timeline) ── */
.cd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.cd-badge--pending {
    background: #FEF3C7;
    color: #B45309;
}

.cd-badge--validated {
    background: #DCFCE7;
    color: #16A34A;
}

/* ── Entry action buttons (journal tab) ── */
.cd-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.cd-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #475569;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cd-action-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.cd-action-btn:hover:not(:disabled) { background: #F8FAFC; border-color: #94A3B8; color: #0F172A; }

.cd-action-btn--validate {
    background: #FFD447;
    color: #0F172A;
    border-color: #FFD447;
    font-weight: 700;
}

.cd-action-btn--validate:hover:not(:disabled) {
    background: #FFC107;
    border-color: #FFC107;
}

.cd-action-btn--validate-link {
    background: none;
    color: #4F46E5;
    border: none;
    padding: 0.35rem 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s;
}

.cd-action-btn--validate-link:hover { color: #7C3AED; }

.cd-action-btn--pending {
    background: #FEF3C7;
    color: #B45309;
    border-color: #FCD34D;
}

.cd-action-btn--validated {
    background: #DCFCE7;
    color: #16A34A;
    border-color: #86EFAC;
}

.cd-action-btn--edit { color: #2563EB; border-color: #BFDBFE; }
.cd-action-btn--edit:hover:not(:disabled) { background: #EFF6FF; color: #1D4ED8; border-color: #93C5FD; }

.cd-action-btn--delete { color: #DC2626; border-color: #FCA5A5; }
.cd-action-btn--delete:hover:not(:disabled) { background: #FEF2F2; color: #B91C1C; border-color: #F87171; }

/* ── Bullet lists ── */
.cd-bullet-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
}

.cd-bullet-list--bold li { font-weight: 600; }

/* ── Score SVG donut ── */
.cd-score-circle-wrap {
    position: relative;
    display: inline-block;
    width: 168px;
    height: 168px;
    margin: 0 auto;
}

.cd-score-svg {
    width: 100%;
    height: 100%;
}

.cd-score-ring {
    transition: stroke-dasharray 1s ease;
}

.cd-score-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cd-score-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1;
}

.cd-score-denom {
    font-size: 0.72rem;
    color: #64748B;
    margin-top: 0.2rem;
    font-weight: 500;
}

/* ── Score breakdown bars ── */
.cd-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cd-breakdown-item { display: flex; flex-direction: column; gap: 0.4rem; }

.cd-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cd-breakdown-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.cd-breakdown-pct {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
}

.cd-bar-track {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 999px;
    overflow: hidden;
}

.cd-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD447, #F59E0B);
    border-radius: 999px;
    transition: width 0.6s ease;
}

/* ── Employer validation impact card (score tab) ── */
.cd-val-impact-card {
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: box-shadow 0.2s;
    margin-bottom: 0;
}

.cd-val-impact-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.07); }

.cd-val-impact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cd-val-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #16A34A;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

.cd-val-impact-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.75rem;
}

.cd-val-stat { display: flex; flex-direction: column; gap: 0.2rem; }

.cd-val-stat__label {
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 500;
}

.cd-val-stat__num {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0F172A;
}

.cd-val-toggle-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #64748B;
    margin-top: 0.5rem;
}

/* Collapsible validated entries list */
.cd-val-list {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.cd-val-entry {
    padding: 0.75rem 0;
    border-bottom: 1px solid #F1F5F9;
}

.cd-val-entry:last-child { border-bottom: none; }

.cd-val-entry__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.cd-val-entry__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0F172A;
}

.cd-val-entry__meta {
    font-size: 0.78rem;
    color: #64748B;
    margin: 0.1rem 0 0.5rem;
}

/* ── Evidence Report tab ── */
.cd-request-val-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #0F172A;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.cd-request-val-btn:hover {
    background: #1E293B;
    transform: translateY(-1px);
}

.cd-val-status-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cd-val-status-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    color: #334155;
    font-weight: 500;
}

/* Candidate header in report */
.cd-report-candidate {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cd-report-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #4F46E5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cd-report-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #334155;
}

.cd-report-info__label {
    font-weight: 600;
    color: #64748B;
}

.cd-report-info__val {
    color: #0F172A;
    font-weight: 500;
}

/* Score snapshot grid */
.cd-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 1.5rem;
}

.cd-snapshot-item {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.5;
}

.cd-snapshot-item span {
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    margin-right: 0.35rem;
}

/* ── Job Search tab ── */
.cd-job-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cd-job-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.2s, transform 0.15s;
}

.cd-job-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.cd-job-card__head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cd-job-logo {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.cd-job-info { flex: 1; min-width: 0; }

.cd-job-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 0.3rem;
}

.cd-job-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #64748B;
    margin: 0;
}

.cd-match-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.cd-match-badge--high { background: #DCFCE7; color: #16A34A; }
.cd-match-badge--mid  { background: #FEF3C7; color: #B45309; }
.cd-match-badge--low  { background: #FEE2E2; color: #DC2626; }

.cd-job-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #F1F5F9;
}

.cd-job-type {
    font-size: 0.8rem;
    color: #64748B;
    font-weight: 500;
}

.cd-job-view-btn {
    background: #0F172A;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.cd-job-view-btn:hover { background: #1E293B; }

/* ── Settings tab ── */
.cd-settings-field {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cd-settings-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    min-width: 80px;
    flex-shrink: 0;
}

.cd-settings-input {
    flex: 1;
    min-width: 200px;
    padding: 0.55rem 0.85rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #0F172A;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cd-settings-input:focus {
    border-color: #FFD447;
    box-shadow: 0 0 0 3px rgba(255,212,71,0.2);
}

.cd-settings-group-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 0.6rem;
}

/* Checkboxes */
.cd-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.cd-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: #FFD447;
    cursor: pointer;
}

.cd-checkbox-label {
    font-size: 0.875rem;
    color: #334155;
    cursor: pointer;
}

/* Custom radios (theme) */
.cd-radio-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cd-radio-opt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #334155;
    user-select: none;
}

.cd-radio-native {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cd-radio-dot {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s;
    position: relative;
}

.cd-radio-dot::after {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #FFD447;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.15s, transform 0.15s;
}

.cd-radio-dot--checked { border-color: #FFD447; }

.cd-radio-dot--checked::after {
    opacity: 1;
    transform: scale(1);
}

/* Privacy buttons */
.cd-privacy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #F1F5F9;
    padding: 0.85rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
}

.cd-privacy-btn:last-child { border-bottom: none; }
.cd-privacy-btn:hover { color: #0F172A; }
.cd-privacy-btn--danger { color: #DC2626; }
.cd-privacy-btn--danger:hover { color: #B91C1C; }

/* ── Validation modal ── */
.cd-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(2px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.cd-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cd-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.cd-modal__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}

.cd-modal__close {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: #F1F5F9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.cd-modal__close:hover { background: #E2E8F0; color: #0F172A; }

.cd-modal__body {
    padding: 1.25rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cd-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.75rem 1.5rem;
    border-top: 1px solid #E2E8F0;
}

.cd-modal-field { display: flex; flex-direction: column; gap: 0.4rem; }

.cd-modal-label {
    font-size: 0.83rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Entry info (single validation mode) */
.cd-modal-entry-info {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.cd-modal-entry-info__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.3rem;
}

.cd-modal-entry-info__text {
    font-size: 0.875rem;
    color: #0F172A;
    margin: 0;
    line-height: 1.5;
}

/* Multi-select entry list */
.cd-modal-entries {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.5rem;
}

.cd-modal-entry-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.6rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s;
}

.cd-modal-entry-row:hover { background: #F8FAFC; }

.cd-modal-cb {
    width: 1rem;
    height: 1rem;
    accent-color: #FFD447;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cd-modal-entry-row__text {
    font-size: 0.83rem;
    color: #334155;
    line-height: 1.4;
}

.cd-modal-textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #0F172A;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    line-height: 1.5;
}

.cd-modal-textarea:focus {
    border-color: #FFD447;
    box-shadow: 0 0 0 3px rgba(255,212,71,0.2);
}

.cd-modal-textarea::placeholder { color: #94A3B8; }

.cd-modal-count-hint {
    font-size: 0.78rem;
    color: #64748B;
    font-weight: 600;
    margin: 0;
}

/* ── Success toast ── */
.cd-success-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #fff;
    border: 1.5px solid #86EFAC;
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #16A34A;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 200;
    animation: cd-toast-in 0.3s ease;
}

@keyframes cd-toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Skills Dashboard nav link (styled like a nav-item but is an <a>) */
.cd-nav-item--skills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-top: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid #E2E8F0;
    color: #4F46E5;
    font-weight: 600;
    background: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}

.cd-nav-item--skills:hover {
    background: #EDE9FE;
    color: #4F46E5;
    text-decoration: none;
}

/* ================================================================
   SKILLS DASHBOARD  (sd-*)
   ================================================================ */

.sd-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
    color: #0F172A;
    overflow: hidden;
}

.sd-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.sd-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 2rem;
}

.sd-header__sep {
    color: #CBD5E1;
    font-size: 1.1rem;
    font-weight: 300;
}

.sd-header__crumb {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
}

.sd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.45rem 0.95rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.sd-back-btn:hover {
    border-color: #94A3B8;
    color: #0F172A;
    text-decoration: none;
}

.sd-main {
    flex: 1;
    overflow-y: auto;
}

.sd-content {
    padding: 2rem 2.5rem 3rem;
    max-width: 1100px;
}

.sd-page-head { margin-bottom: 2rem; }

.sd-h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    line-height: 1.2;
}

.sd-sub {
    font-size: 0.9rem;
    color: #64748B;
    margin: 0.35rem 0 0;
}

/* Placeholder card (replaced once SkillsDashboard component is added) */
.sd-placeholder {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sd-placeholder__icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: #FFFBEB;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FCD34D;
}

.sd-placeholder__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}

.sd-placeholder__desc {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.7;
    margin: 0;
    max-width: 480px;
}

.sd-placeholder__desc code {
    background: #F1F5F9;
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    font-size: 0.83rem;
    color: #4F46E5;
}

/* ── Dashboard responsive ── */
@media (max-width: 1100px) {
    .cd-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .cd-filters-grid { grid-template-columns: 1fr 1fr; }
    .cd-snapshot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .cd-sidebar { width: 180px; }
    .cd-content { padding: 1.5rem 1.25rem 2.5rem; }
    .cd-stat-grid { grid-template-columns: 1fr 1fr; }
    .cd-timeline-entry { flex-direction: column; gap: 0.5rem; }
    .cd-entry-preview { max-width: 100%; white-space: normal; }
}

@media (max-width: 580px) {
    .cd-body { flex-direction: column; }
    .cd-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #E2E8F0; padding: 0.75rem; }
    .cd-nav { flex-direction: row; overflow-x: auto; padding: 0; gap: 0.25rem; }
    .cd-nav-item { white-space: nowrap; padding: 0.55rem 0.85rem; }
    .cd-stat-grid { grid-template-columns: 1fr; }
    .cd-filters-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   INDUSTRY GRID  (ig-*)
   Mirrors the IndustryGrid React component design exactly.
   ================================================================ */

/* ── Entry animation ── */
@keyframes ig-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ig-anim {
    animation: ig-fade-up 0.3s ease both;
    animation-delay: var(--ig-delay, 0s);
}

/* ── Page shell ── */
.ig-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
    color: #0F172A;
}

/* ── Header ── */
.ig-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
}

.ig-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
}

/* ── Main / content ── */
.ig-main {
    flex: 1;
    padding: 3rem;
}

.ig-content {
    max-width: 1440px;
    margin: 0 auto;
}

/* ── Page heading ── */
.ig-page-head { margin-bottom: 3rem; }

.ig-h1 {
    font-size: clamp(2rem, 4vw, 2.625rem); /* 42px max */
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.ig-sub {
    font-size: 1.25rem;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

/* ── 4-column industry grid ── */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ── Industry card ── */
.ig-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 140px;
    border-radius: 12px;
    padding: 1.5rem;
    background: #F4F4F4;
    color: #0F172A;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.ig-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
    text-decoration: none;
}

.ig-card:active { transform: scale(0.98); }

/* Highlighted (first/featured) card — blue */
.ig-card--highlighted {
    background: #4A90E2;
    color: #fff;
}

.ig-card__name {
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.ig-card__count {
    font-size: 0.875rem; /* 14px */
    margin: 0;
    color: #475569;
}

.ig-card--highlighted .ig-card__count {
    color: rgba(255,255,255,0.9);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .ig-grid { grid-template-columns: repeat(3, 1fr); }
    .ig-main { padding: 2rem; }
    .ig-header__inner { padding: 1rem 2rem; }
}

@media (max-width: 768px) {
    .ig-grid { grid-template-columns: repeat(2, 1fr); }
    .ig-h1 { font-size: 1.75rem; }
    .ig-sub { font-size: 1rem; }
    .ig-page-head { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
    .ig-grid { grid-template-columns: 1fr; }
    .ig-main { padding: 1.25rem; }
    .ig-card { height: 110px; }
}

/* ================================================================
   SKILLS DASHBOARD  (sdb-*)
   Self-contained: industry grid ↔ job families, toggled by JS.
   ================================================================ */

/* ── Entry animation ── */
@keyframes sdb-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sdb-anim {
    animation: sdb-fade-up 0.3s ease both;
    animation-delay: var(--sdb-delay, 0s);
}

/* ── Page shell ── */
.sdb-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
    color: #0F172A;
}

/* ── Header ── */
.sdb-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
}

.sdb-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
}

/* ── Main scroll area ── */
.sdb-main {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.sdb-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Typography ── */
.sdb-h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.sdb-h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
}

.sdb-sub {
    font-size: 1.125rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

.sdb-page-head { margin-bottom: 1.5rem; }

/* ── Search card ── */
.sdb-search-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #F1F5F9;
    margin-bottom: 2rem;
}

.sdb-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sdb-search-icon {
    position: absolute;
    left: 1rem;
    pointer-events: none;
}

.sdb-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #0F172A;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sdb-search-input:focus {
    border-color: #FFD447;
    box-shadow: 0 0 0 3px rgba(255,212,71,0.25);
}

.sdb-search-input::placeholder { color: #94A3B8; }

/* ── Industry cards grid ── */
.sdb-ind-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.sdb-ind-card {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    padding: 1.5rem;
    background: #F4F4F4;
    color: #0F172A;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
    user-select: none;
    border: none;
    text-align: left;
}

.sdb-ind-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.sdb-ind-card:active { transform: scale(0.98); }

.sdb-ind-card--highlighted {
    background: #4A90E2;
    color: #fff;
}

.sdb-ind-card__icon {
    opacity: 0.65;
    margin-bottom: 0.25rem;
}

.sdb-ind-card--highlighted .sdb-ind-card__icon { opacity: 0.8; }

.sdb-ind-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: inherit;
}

.sdb-ind-card__count {
    font-size: 0.875rem;
    margin: 0;
    color: #475569;
}

.sdb-ind-card--highlighted .sdb-ind-card__count { color: rgba(255,255,255,0.9); }

/* ── Summary stats card ── */
.sdb-stats-card {
    background: linear-gradient(135deg, #F5F3FF 0%, #EFF6FF 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #E0E7FF;
    margin-top: 0.5rem;
}

.sdb-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.sdb-stat__num {
    font-size: 2rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    line-height: 1;
}

.sdb-stat__label {
    font-size: 1rem;
    color: #475569;
    margin: 0.4rem 0 0;
}

/* ── Job families panel ── */

/* Back button */
.sdb-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 2px solid #0F172A;
    border-radius: 8px;
    padding: 0.55rem 1.1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0F172A;
    cursor: pointer;
    margin-bottom: 1.75rem;
    transition: background 0.15s, color 0.15s;
}

.sdb-back-btn:hover { background: #F1F5F9; }

/* Industry hero (blue gradient header card) */
.sdb-ind-hero {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 24px rgba(74,144,226,0.3);
    margin-bottom: 2rem;
}

.sdb-ind-hero__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.sdb-ind-hero__meta {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* Job family cards grid (3 columns) */
.sdb-jf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sdb-jf-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    border: 1px solid #F1F5F9;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
}

.sdb-jf-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.11);
    transform: translateY(-1px);
}

.sdb-jf-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.sdb-jf-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sdb-jf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sdb-jf-row__label {
    font-size: 0.875rem;
    color: #475569;
}

.sdb-jf-row__val {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0F172A;
}

/* Demand badge */
.sdb-demand {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.sdb-demand--high  { background: #F0FDF4; color: #16A34A; }
.sdb-demand--mid   { background: #FFF7ED; color: #EA580C; }
.sdb-demand--low   { background: #F9FAFB; color: #6B7280; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .sdb-ind-grid { grid-template-columns: repeat(3, 1fr); }
    .sdb-jf-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sdb-ind-grid  { grid-template-columns: repeat(2, 1fr); }
    .sdb-jf-grid   { grid-template-columns: 1fr; }
    .sdb-stats-grid { grid-template-columns: 1fr; gap: 1rem; }
    .sdb-main  { padding: 1.25rem; }
    .sdb-h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .sdb-ind-grid { grid-template-columns: 1fr; }
    .sdb-ind-card { height: 110px; }
}

/* ================================================================
   JOB FAMILY GRID  (jfg-*)
   Mirrors the JobFamilyGrid React component design exactly.
   ================================================================ */

/* ── Entry animation ── */
@keyframes jfg-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.jfg-anim {
    animation: jfg-fade-up 0.3s ease both;
    animation-delay: var(--jfg-delay, 0s);
}

/* ── Page shell ── */
.jfg-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
    color: #0F172A;
}

/* ── Header ── */
.jfg-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
}

.jfg-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
}

/* ── Main / content ── */
.jfg-main {
    flex: 1;
    padding: 3rem;
}

.jfg-content {
    max-width: 1440px;
    margin: 0 auto;
}

/* ── Back button (text + arrow, no border) ── */
.jfg-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: color 0.15s;
}

.jfg-back-btn svg {
    transition: transform 0.15s;
}

.jfg-back-btn:hover {
    color: #0F172A;
    text-decoration: none;
}

.jfg-back-btn:hover svg { transform: translateX(-4px); }

/* ── Page heading ── */
.jfg-page-head { margin-bottom: 3rem; }

.jfg-h1 {
    font-size: clamp(2rem, 4vw, 2.625rem);
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.jfg-sub {
    font-size: 1.25rem;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

/* ── 3-column job family grid ── */
.jfg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Job family card ── */
.jfg-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    cursor: pointer;
    text-decoration: none;
    color: #0F172A;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.jfg-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-decoration: none;
    color: #0F172A;
}

.jfg-card:active { transform: scale(0.98); }

.jfg-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.jfg-card__count {
    font-size: 0.875rem;
    color: #475569;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .jfg-grid { grid-template-columns: repeat(2, 1fr); }
    .jfg-main { padding: 2rem; }
    .jfg-header__inner { padding: 1rem 2rem; }
}

@media (max-width: 768px) {
    .jfg-grid { grid-template-columns: repeat(2, 1fr); }
    .jfg-h1 { font-size: 1.75rem; }
    .jfg-sub { font-size: 1rem; }
    .jfg-page-head { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
    .jfg-grid { grid-template-columns: 1fr; }
    .jfg-main { padding: 1.25rem; }
}

/* ================================================================
   SKILL GRID  (sg-*)
   Mirrors the SkillGrid React component design exactly.
   ================================================================ */

/* ── Entry animation ── */
@keyframes sg-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sg-anim {
    animation: sg-fade-up 0.3s ease both;
    animation-delay: var(--sg-delay, 0s);
}

/* ── Page shell (reuses ig/jfg pattern) ── */
.sg-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
    color: #0F172A;
}

.sg-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
}

.sg-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
}

.sg-main {
    flex: 1;
    padding: 3rem;
}

.sg-content {
    max-width: 1440px;
    margin: 0 auto;
}

/* ── Page heading ── */
.sg-page-head { margin-bottom: 3rem; }

.sg-h1 {
    font-size: clamp(2rem, 4vw, 2.625rem);
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.sg-sub {
    font-size: 1.25rem;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

/* ── 2-column skill grid ── */
.sg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* ── Skill card ── */
.sg-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    cursor: pointer;
    text-decoration: none;
    color: #0F172A;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.sg-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-decoration: none;
    color: #0F172A;
}

.sg-card:active { transform: scale(0.98); }

/* Card top row: name + check icon */
.sg-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.sg-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    line-height: 1.3;
}

.sg-check { flex-shrink: 0; }

/* Meta row: proficiency badge + entry count */
.sg-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Proficiency badges */
.sg-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.sg-badge--expert       { background: #DCFCE7; color: #15803D; }
.sg-badge--advanced     { background: #DBEAFE; color: #1D4ED8; }
.sg-badge--intermediate { background: #FEF9C3; color: #A16207; }
.sg-badge--beginner     { background: #F3F4F6; color: #374151; }

/* Entry count (award icon + text) */
.sg-entries {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    color: #475569;
}

/* Footer: "View evidence" link */
.sg-card__footer {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #4A90E2;
}

.sg-view-evidence {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4A90E2;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .sg-main { padding: 2rem; }
    .sg-header__inner { padding: 1rem 2rem; }
}

@media (max-width: 768px) {
    .sg-grid { grid-template-columns: 1fr; }
    .sg-h1 { font-size: 1.75rem; }
    .sg-sub { font-size: 1rem; }
    .sg-page-head { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
    .sg-main { padding: 1.25rem; }
}

/* ================================================================
   EVIDENCE LIST  (el-*)
   Mirrors the EvidenceList React component design exactly.
   ================================================================ */

/* ── Entry animation ── */
@keyframes el-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.el-anim {
    animation: el-fade-up 0.3s ease both;
    animation-delay: var(--el-delay, 0s);
}

/* ── Page shell ── */
.el-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
    color: #0F172A;
}

.el-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
}

.el-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
}

.el-main {
    flex: 1;
    padding: 3rem;
}

.el-content {
    max-width: 1440px;
    margin: 0 auto;
}

/* ── Page heading ── */
.el-page-head { margin-bottom: 3rem; }

.el-h1 {
    font-size: clamp(2rem, 4vw, 2.625rem);
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.el-sub {
    font-size: 1.25rem;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

/* ── Evidence list (vertical flex column) ── */
.el-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Evidence item card ── */
.el-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.el-item:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.el-item:active { transform: scale(0.99); }

/* Top row: date + impact badge */
.el-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.el-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

/* Impact badge (with border) */
.el-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.el-badge--high   { background: #DCFCE7; color: #15803D; border-color: #86EFAC; }
.el-badge--medium { background: #FEF9C3; color: #A16207; border-color: #FCD34D; }
.el-badge--low    { background: #F3F4F6; color: #374151; border-color: #D1D5DB; }

/* Title row: icon + text */
.el-item__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    line-height: 1.3;
}

/* Excerpt: 3-line clamp */
.el-item__excerpt {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer: award icon + "View full journal entry" */
.el-item__footer {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #4A90E2;
}

.el-view-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4A90E2;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .el-main { padding: 2rem; }
    .el-header__inner { padding: 1rem 2rem; }
}

@media (max-width: 768px) {
    .el-h1 { font-size: 1.75rem; }
    .el-sub { font-size: 1rem; }
    .el-page-head { margin-bottom: 2rem; }
    .el-item__top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .el-main { padding: 1.25rem; }
}

/* ── Daily Journal — Past Entries ─────────────────────────────────── */
.dj-past-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dj-past-item {
    padding: 0.625rem 0.75rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
}

.dj-past-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.dj-past-item__date {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0F172A;
}

.dj-past-item__impact {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}
.dj-past-item__impact--high   { background:#D1FAE5; color:#065F46; }
.dj-past-item__impact--medium { background:#FEF9C3; color:#713F12; }
.dj-past-item__impact--low    { background:#FEE2E2; color:#991B1B; }

.dj-past-item__snippet {
    font-size: 0.775rem;
    color: #475569;
    margin: 0 0 0.2rem;
    line-height: 1.45;
}

.dj-past-item__skills {
    font-size: 0.7rem;
    color: #94A3B8;
    margin: 0;
}

/* ── Textarea shell with embedded toolbar ───────────────────────── */
.dj-textarea-shell {
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, box-shadow .15s;
}
.dj-textarea-shell:focus-within {
    border-color: #FFD447;
    box-shadow: 0 0 0 3px rgba(255,212,71,.2);
}
.dj-textarea-inner {
    width: 100%;
    min-height: 14rem;
    padding: 1rem;
    border: none;
    resize: vertical;
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    color: #0F172A;
    line-height: 1.6;
    background: #fff;
    outline: none;
}
.dj-textarea-inner::placeholder { color: #94A3B8; }

/* Recording status bar inside the shell */
.dj-rec-status-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .38rem .75rem;
    background: #FEF2F2;
    border-top: 1px solid #FCA5A5;
    font-size: .8rem;
    color: #DC2626;
    font-weight: 500;
}
.dj-rec-status-bar--video {
    background: #EFF6FF;
    border-top-color: #93C5FD;
    color: #2563EB;
}
.dj-rec-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #EF4444; flex-shrink: 0;
    animation: dj-pulse 1s ease-in-out infinite;
}
@keyframes dj-pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }

.dj-rec-timer-inline {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.dj-rec-stop-inline {
    margin-left: auto;
    font-size: .73rem;
    padding: 2px 10px;
    border-radius: 5px;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 600;
}
.dj-rec-stop-inline:hover { opacity: .75; }

/* Transcription bar */
.dj-transcribe-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .38rem .75rem;
    background: #F0FDF4;
    border-top: 1px solid #BBF7D0;
    font-size: .8rem;
    color: #15803D;
}

/* Media preview inside the shell */
.dj-media-preview-wrap {
    border-top: 1px solid #E2E8F0;
    background: #F8FAFC;
    padding: .6rem .75rem;
}
.dj-media-preview-wrap audio,
.dj-media-preview-wrap video {
    width: 100%;
    border-radius: 6px;
    display: block;
}
.dj-media-preview-wrap video { max-height: 140px; object-fit: cover; }
.dj-media-preview-label {
    font-size: .72rem;
    color: #94A3B8;
    margin-bottom: .35rem;
}

/* Upload bar */
.dj-upload-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .75rem;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    font-size: .8rem;
    color: #64748B;
}

/* Toolbar at the bottom of the shell */
.dj-textarea-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .35rem .6rem;
    border-top: 1px solid #E2E8F0;
    background: #F8FAFC;
}
.dj-toolbar-btns {
    display: flex;
    align-items: center;
    gap: 2px;
}
.dj-toolbar-sep {
    width: 1px;
    height: 15px;
    background: #E2E8F0;
    margin: 0 4px;
    display: inline-block;
    flex-shrink: 0;
}
.dj-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748B;
    transition: background .12s, color .12s;
}
.dj-icon-btn:hover { background: #fff; color: #0F172A; }
.dj-icon-btn--active-audio { background: #FEF2F2 !important; color: #DC2626 !important; }
.dj-icon-btn--active-video { background: #EFF6FF !important; color: #2563EB !important; }
.dj-icon-btn:disabled { opacity: .3; cursor: not-allowed; }

/* char-count override: static inside toolbar */
.dj-textarea-shell .dj-char-count { position: static; }

@keyframes dj-spin { to { transform: rotate(360deg); } }

/* ── Sign-up: password rules checklist ──────────────────────────── */
.su-rules {
    list-style: none;
    margin: .6rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.su-rule {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    color: #94A3B8;
    transition: color .15s;
}
.su-rule__icon {
    font-size: .7rem;
    width: 14px;
    text-align: center;
    font-weight: 700;
    flex-shrink: 0;
}
.su-rule--pass { color: #16A34A; }
.su-rule--fail { color: #EF4444; }

/* ── Strength bar ────────────────────────────────────────────────── */
.su-strength {
    margin-top: .65rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.su-strength__track {
    flex: 1;
    height: 5px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
}
.su-strength__fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width .3s ease, background .3s ease;
}
.su-strength__label {
    font-size: .72rem;
    font-weight: 600;
    min-width: 44px;
    text-align: right;
}

/* ── Confirm input states ────────────────────────────────────────── */
.si-input--ok    { border-color: #16A34A !important; }
.si-input--error { border-color: #EF4444 !important; }

/* ── Journal supervisor fields ── */
.dj-sup-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}
.dj-sup-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #0F172A;
    background: #F8FAFC;
    outline: none;
    transition: border-color .18s;
}
.dj-sup-input::placeholder { color: #94A3B8; }
.dj-sup-input:hover  { border-color: #9CA3AF; }
.dj-sup-input:focus  { border-color: #FACC15; background: #fff; }

/* ── Entry type gate ────────────────────────────────────────────── */
.dj-entry-gate {
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 1.25rem;
}
.dj-entry-gate__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.35rem;
}
.dj-entry-gate__sub {
    font-size: 0.8rem;
    color: #64748B;
    margin-bottom: 1.5rem;
}
.dj-entry-gate__btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.dj-entry-type-btn {
    flex: 1 1 160px;
    max-width: 220px;
    padding: 0.85rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.dj-entry-type-btn:hover {
    border-color: #FACC15;
    background: #FEFCE8;
    box-shadow: 0 2px 8px rgba(250,204,21,.25);
}
.dj-entry-type-btn__icon { font-size: 1.6rem; }
.dj-entry-type-btn__label { font-size: 0.85rem; font-weight: 700; color: #0F172A; }
.dj-entry-type-btn__desc  { font-size: 0.72rem; color: #64748B; font-weight: 400; }

/* ── Entry type badge (shown after selection) ── */
.dj-type-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.55rem 0.9rem;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
}
.dj-type-badge__pill {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.dj-type-badge__pill--regular    { background: #EFF6FF; color: #1D4ED8; }
.dj-type-badge__pill--validation { background: #F0FDF4; color: #15803D; }
.dj-type-badge__change {
    margin-left: auto;
    font-size: 0.75rem;
    color: #64748B;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
}


/* ── F3 Validation Entry UI ────────────────────────────────────────── */
.dj-card--validation-guide {
    border-left: 3px solid #15803D;
    background: #F0FDF4;
}
.dj-card--validation-guide .dj-card__title { color: #15803D; }

.dj-val-hint {
    font-size: 0.8rem;
    color: #64748B;
    margin: 0 0 0.85rem;
}

/* Scope date row */
.dj-scope-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.dj-scope-field { display: flex; flex-direction: column; gap: 0.35rem; }

/* Skill checkboxes */
.dj-skill-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.5rem;
}
.dj-skill-check-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #334155;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: background .15s;
}
.dj-skill-check-label:hover { background: #F1F5F9; }
.dj-skill-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #15803D;
    flex-shrink: 0;
    cursor: pointer;
}
.dj-skill-check-text { line-height: 1.3; }

/* Video required card */
.dj-card--video-required {
    background: #FFFBEB;
    border: 1.5px solid #FCD34D;
    padding: 0.85rem 1rem;
}
.dj-video-required-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #92400E;
}
.dj-video-required-inner svg { flex-shrink: 0; margin-top: 1px; color: #D97706; }

/* Video status badge */
.dj-video-status-badge {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.dj-video-status-badge--missing { background: #FEE2E2; color: #991B1B; }
.dj-video-status-badge--ok      { background: #DCFCE7; color: #15803D; }
/* ── F4 Validator Contact page ─────────────────────────────────────── */
.vc-page { min-height: 100vh; background: #F8FAFC; display: flex; flex-direction: column; }
.vc-main { flex: 1; padding: 2rem 1rem 3rem; }
.vc-content { max-width: 960px; margin: 0 auto; }

/* Progress steps */
.vc-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: #94A3B8;
}
.vc-step { padding: 0.3rem 0.75rem; border-radius: 20px; background: #F1F5F9; }
.vc-step--done   { background: #DCFCE7; color: #15803D; font-weight: 600; }
.vc-step--active { background: #FACC15; color: #0F172A; font-weight: 700; }
.vc-step-arrow   { color: #CBD5E1; font-size: 1rem; }

/* Grid */
.vc-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 700px) {
    .vc-grid { grid-template-columns: 1fr; }
}

/* Form heading */
.vc-form-title { font-size: 1.1rem; font-weight: 700; color: #0F172A; margin: 0 0 0.25rem; }
.vc-form-sub   { font-size: 0.82rem; color: #64748B; margin: 0 0 0.75rem; }

/* Fields */
.vc-field { margin-bottom: 1.1rem; }
.vc-req   { color: #EF4444; margin-left: 2px; }
.vc-label-note { font-size: 0.72rem; font-weight: 400; color: #94A3B8; margin-left: 0.3rem; }

.vc-field-error, .vc-field-warn {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
}
.vc-field-error { background: #FEE2E2; color: #991B1B; }
.vc-field-warn  { background: #FEF9C3; color: #92400E; }
.vc-input--error { border-color: #EF4444 !important; }

/* Relationship grid */
.vc-relation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.35rem;
}
@media (max-width: 600px) { .vc-relation-grid { grid-template-columns: 1fr 1fr; } }

.vc-relation-opt {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.7rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    color: #334155;
    transition: border-color .15s, background .15s;
    user-select: none;
}
.vc-relation-opt input[type="radio"] { display: none; }
.vc-relation-opt:hover { border-color: #FACC15; background: #FEFCE8; }
.vc-relation-opt--selected { border-color: #FACC15; background: #FEF9C3; font-weight: 600; color: #0F172A; }

/* Consent */
.vc-field--consent { margin-top: 0.5rem; }
.vc-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: #334155;
    cursor: pointer;
    line-height: 1.4;
}
.vc-consent-label input[type="checkbox"] { margin-top: 2px; accent-color: #15803D; flex-shrink: 0; }

/* Actions */
.vc-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* Alert */
.vc-alert {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.vc-alert--error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
/* ── ValidatorContact form fields ─────────────────────────────────── */
.vc-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}
.vc-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #0F172A;
    background: #F8FAFC;
    outline: none;
    transition: border-color .18s;
}
.vc-input::placeholder { color: #94A3B8; }
.vc-input:hover  { border-color: #9CA3AF; }
.vc-input:focus  { border-color: #FACC15; background: #fff; box-shadow: 0 0 0 3px rgba(250,204,21,.15); }
/* ── Skills/Entries Modal system ──────────────────────────────────────── */
.dj-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.dj-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    cursor: pointer;
}
.dj-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: min(560px, 96vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    overflow: hidden;
}
.dj-modal__panel--wide { width: min(720px, 96vw); }

.dj-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem 0.75rem;
    border-bottom: 1px solid #F1F5F9;
    flex-shrink: 0;
}
.dj-modal__title { font-size: 1rem; font-weight: 700; color: #0F172A; margin: 0; }
.dj-modal__hint  { font-size: 0.8rem; color: #64748B; margin: 0; padding: 0.6rem 1.25rem 0; }
.dj-modal__close {
    background: none; border: none; font-size: 1.4rem; line-height: 1;
    color: #94A3B8; cursor: pointer; padding: 0 0.25rem;
}
.dj-modal__close:hover { color: #0F172A; }

.dj-modal__actions-top {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem 0;
    flex-shrink: 0;
}
.dj-modal__text-btn {
    background: none; border: none; font-size: 0.78rem; color: #2563EB;
    cursor: pointer; padding: 0.15rem 0; text-decoration: underline;
}
.dj-modal__text-btn:hover { color: #1D4ED8; }

.dj-modal__footer {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid #F1F5F9;
    flex-shrink: 0;
}

/* Skills modal checkboxes (scrollable body) */
.dj-skill-checkboxes--modal {
    overflow-y: auto;
    flex: 1;
    padding: 0.6rem 1.25rem;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.35rem;
    align-content: start;
}

/* Compact trigger row */
.dj-val-skill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.dj-btn-modal-open {
    flex-shrink: 0;
    padding: 0.45rem 1rem;
    background: #0F172A;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.dj-btn-modal-open:hover { background: #1E293B; }

/* Selected skill chips */
.dj-skills-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}
.dj-skill-chip {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    border-radius: 20px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Previous entries list */
.dj-entries-list {
    overflow-y: auto;
    flex: 1;
    padding: 0.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.dj-entry-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 9px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.dj-entry-row:hover { border-color: #FACC15; background: #FEFCE8; }
.dj-entry-row input[type=checkbox] { margin-top: 2px; flex-shrink: 0; accent-color: #FACC15; }
.dj-entry-row__body { flex: 1; min-width: 0; }
.dj-entry-row__head { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.2rem; }
.dj-entry-row__date { font-size: 0.78rem; font-weight: 600; color: #0F172A; }
.dj-entry-row__preview { font-size: 0.78rem; color: #64748B; margin: 0; line-height: 1.4; word-break: break-word; }

.dj-entry-badge {
    font-size: 0.65rem; font-weight: 600; padding: 0.1rem 0.45rem;
    border-radius: 20px;
}
.dj-entry-badge--video  { background: #EDE9FE; color: #6D28D9; }
.dj-entry-badge--audio  { background: #E0F2FE; color: #0369A1; }
.dj-entry-badge--val    { background: #DCFCE7; color: #15803D; }

/* AI summary box */
.dj-summary-box {
    margin: 0.5rem 1.25rem 0;
    border: 1.5px solid #FACC15;
    border-radius: 10px;
    background: #FEFCE8;
    overflow: hidden;
    flex-shrink: 0;
}
.dj-summary-box__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.9rem;
    background: #FEF9C3;
    border-bottom: 1px solid #FACC15;
    font-size: 0.82rem;
}
.dj-summary-text {
    padding: 0.75rem 0.9rem;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.6;
    max-height: 180px;
    overflow-y: auto;
    white-space: pre-wrap;
}
.dj-summary-error {
    margin: 0.5rem 1.25rem 0;
    padding: 0.6rem 0.9rem;
    background: #FEE2E2;
    color: #991B1B;
    border-radius: 8px;
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* ── F7 Validation badges on Evidence Report ─────────────────────────── */
.cd-val-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.18rem 0.6rem;
    white-space: nowrap;
    letter-spacing: .01em;
}

.cd-report-info__val--green {
    color: #15803D;
    font-weight: 600;
}

/* ── F5 Review Request page ──────────────────────────────────────────── */
.rr-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
}
.rr-summary-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.5rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #F1F5F9;
    align-items: baseline;
    font-size: 0.875rem;
}
.rr-summary-row:last-child { border-bottom: none; }
.rr-summary-label { font-size: 0.75rem; font-weight: 600; color: #94A3B8; text-transform: uppercase; letter-spacing: .04em; }
.rr-summary-value { color: #1E293B; word-break: break-word; }
.rr-summary-value--green { color: #15803D; font-weight: 600; }

.rr-section-label { font-size: 0.75rem; font-weight: 600; color: #94A3B8; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 0.5rem; }
.rr-skill-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.rr-skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.875rem;
    color: #1E293B;
}
.rr-skill-item::before { content: "◆"; font-size: 0.5rem; color: #7C3AED; flex-shrink: 0; }
.rr-skill-item:last-child { border-bottom: none; }

.rr-send-btn { padding: 0.75rem 2rem; font-size: 1rem; }

.rr-already-sent {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: #DCFCE7;
    border: 1px solid #86EFAC;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #15803D;
    margin-bottom: 1rem;
}
.rr-already-sent__icon { font-size: 1.2rem; }

/* ── Dashboard toasts for F5/F6 ─────────────────────────────────────── */
.dash-toast {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    animation: dash-toast-in 0.3s ease;
}
.dash-toast--success { background: #DCFCE7; border: 1px solid #86EFAC; color: #15803D; }
.dash-toast--error   { background: #FEE2E2; border: 1px solid #FECACA; color: #991B1B; }
.dash-toast__icon { font-size: 1.1rem; flex-shrink: 0; }
@keyframes dash-toast-in { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

/* PII Screening Modal */
.pii-flags-list { display:flex; flex-direction:column; gap:.75rem; margin:1rem 0; max-height:340px; overflow-y:auto; }
.pii-flag-row { background:#FEF3C7; border:1px solid #FDE68A; border-radius:8px; padding:.75rem 1rem; display:grid; grid-template-columns:auto 1fr; gap:.35rem .75rem; align-items:start; }
.pii-flag-row--high { background:#FEE2E2; border-color:#FECACA; }
.pii-flag-badge { display:inline-flex; align-items:center; gap:.3rem; font-size:.65rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; border-radius:99px; padding:.15em .55em; }
.pii-flag-badge--high   { background:#FCA5A5; color:#7F1D1D; }
.pii-flag-badge--medium { background:#FDE68A; color:#78350F; }
.pii-flag-found  { font-size:.82rem; color:#1E293B; }
.pii-flag-found strong { font-weight:700; font-family:monospace; background:rgba(0,0,0,.06); border-radius:3px; padding:.1em .3em; }
.pii-flag-arrow  { font-size:.78rem; color:#64748B; }
.pii-flag-suggest { font-size:.8rem; color:#1E293B; font-style:italic; }
@media (prefers-color-scheme: dark) {
  .pii-flag-row { background:#422006; border-color:#92400E; }
  .pii-flag-row--high { background:#450A0A; border-color:#7F1D1D; }
  .pii-flag-found  { color:#F1F5F9; }
  .pii-flag-found strong { background:rgba(255,255,255,.1); }
  .pii-flag-arrow  { color:#94A3B8; }
  .pii-flag-suggest { color:#CBD5E1; }
  .pii-flag-badge--high   { background:#7F1D1D; color:#FCA5A5; }
  .pii-flag-badge--medium { background:#78350F; color:#FDE68A; }
}

/* ================================================================
   DESIGN SYSTEM v2 — Prototype tokens & components (.ds- prefix)
   All pages migrated to this system keep backward compat with old
   .si- / .dj- / .cd- classes which remain untouched above.
   ================================================================ */

:root {
  --ds-paper:       #FAFAF7;
  --ds-card:        #FFFFFF;
  --ds-ink:         #10293A;
  --ds-muted:       #5B6B75;
  --ds-faint:       #8A97A0;
  --ds-teal:        #0F6E56;
  --ds-teal-dark:   #0A4F3E;
  --ds-teal-tint:   #E4F3ED;
  --ds-amber:       #B45309;
  --ds-amber-tint:  #FEF3C7;
  --ds-line:        #E4E6E1;
  --ds-line-strong: #CFD3CC;
  --ds-red:         #DC2626;
  --ds-red-tint:    #FEE2E2;
  --ds-green:       #15803D;
  --ds-green-tint:  #DCFCE7;
}

/* ── Page shell ── */
.ds-page {
  min-height: 100vh;
  background: var(--ds-paper);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  color: var(--ds-ink);
}

/* ── Appbar ── */
.ds-appbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,247,.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ds-line);
  padding: 0 1.5rem;
}
.ds-appbar__inner {
  max-width: 1200px; margin: 0 auto;
  height: 3.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

/* ── Wordmark ── */
.ds-wordmark { display:inline-flex; align-items:center; gap:.5rem; text-decoration:none; }
.ds-wm-mark  { flex-shrink:0; }
.ds-wm-text  {
  font-family:'Instrument Sans',system-ui,sans-serif;
  font-weight:600; font-size:1rem; color:var(--ds-ink); letter-spacing:-.01em;
}
.ds-wm-text strong { font-weight:700; }

/* ── App nav ── */
.ds-appnav { display:flex; align-items:center; gap:.25rem; }
.ds-appnav__link {
  padding:.375rem .75rem; border-radius:6px;
  font-size:.875rem; font-weight:500; color:var(--ds-muted);
  text-decoration:none; transition:color .15s,background .15s;
}
.ds-appnav__link:hover       { color:var(--ds-ink); background:var(--ds-line); }
.ds-appnav__link--active     { color:var(--ds-teal); background:var(--ds-teal-tint); }
.ds-appnav__link--muted      { opacity:.6; }

/* ── Avatar ── */
.ds-avatar {
  width:2rem; height:2rem; border-radius:50%;
  background:var(--ds-teal); color:#fff;
  font-size:.8125rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; user-select:none; flex-shrink:0;
}

/* ── Auth layout ── */
.ds-auth-page {
  min-height:100vh; background:var(--ds-paper);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:2rem 1rem 3rem;
  font-family:'Instrument Sans',system-ui,sans-serif;
}
.ds-auth-card {
  background:var(--ds-card); border:1px solid var(--ds-line);
  border-radius:12px; padding:2.25rem 2.5rem;
  width:100%; max-width:440px;
  box-shadow:0 2px 12px rgba(15,41,58,.06);
}
.ds-auth-title {
  font-family:'Fraunces',Georgia,serif;
  font-size:1.625rem; font-weight:500; color:var(--ds-ink); margin:0 0 .25rem;
}
.ds-auth-sub  { font-size:.9rem; color:var(--ds-muted); margin:0 0 1.5rem; }
.ds-auth-footer {
  margin-top:1.25rem; font-size:.84rem; color:var(--ds-muted); text-align:center;
}
.ds-auth-footer a { color:var(--ds-teal); text-decoration:none; font-weight:500; }
.ds-auth-footer a:hover { text-decoration:underline; }

/* ── Card ── */
.ds-card {
  background:var(--ds-card); border:1px solid var(--ds-line);
  border-radius:10px; padding:1.5rem;
}

/* ── Notecard ── */
.ds-notecard {
  background:var(--ds-teal-tint); border-radius:8px; padding:.875rem 1rem;
  font-size:.8125rem; color:var(--ds-muted); line-height:1.6; margin-top:1rem;
}

/* ── Form elements ── */
.ds-field    { margin-bottom:1.1rem; }
.ds-label    { display:block; font-size:.8125rem; font-weight:600; color:var(--ds-ink); margin-bottom:.35rem; }
.ds-label-note { font-weight:400; font-size:.75rem; color:var(--ds-faint); }
.ds-input, .ds-textarea, .ds-select {
  width:100%; padding:.625rem .875rem;
  border:1px solid var(--ds-line-strong); border-radius:7px;
  font-size:.9375rem; font-family:inherit;
  color:var(--ds-ink); background:var(--ds-card);
  outline:none; transition:border-color .15s,box-shadow .15s;
  -webkit-appearance:none; appearance:none;
}
.ds-input:focus,.ds-textarea:focus,.ds-select:focus {
  border-color:var(--ds-teal); box-shadow:0 0 0 3px var(--ds-teal-tint);
}
.ds-input--error,.ds-textarea--error { border-color:var(--ds-red) !important; }
.ds-input--ok  { border-color:var(--ds-green); }
.ds-textarea   { resize:vertical; min-height:100px; }
.ds-select-wrap { position:relative; }
.ds-select-wrap .ds-select { padding-right:2.25rem; }
.ds-select-chevron {
  position:absolute; right:.75rem; top:50%; transform:translateY(-50%);
  pointer-events:none; color:var(--ds-faint);
}
.ds-field-error { display:block; font-size:.78rem; color:var(--ds-red); margin-top:.3rem; }
.ds-field-warn  { display:block; font-size:.78rem; color:var(--ds-amber); margin-top:.3rem; }
.ds-pw-wrap { position:relative; }
.ds-pw-wrap .ds-input { padding-right:2.75rem; }
.ds-pw-toggle {
  position:absolute; right:.75rem; top:50%; transform:translateY(-50%);
  background:none; border:none; padding:0; cursor:pointer; color:var(--ds-faint);
  display:flex; align-items:center;
}
.ds-pw-toggle:hover { color:var(--ds-ink); }

/* ── Buttons ── */
.ds-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  padding:.625rem 1.25rem; border-radius:7px;
  font-size:.9375rem; font-weight:500; font-family:inherit;
  cursor:pointer; border:1px solid transparent;
  transition:background .15s,color .15s,border-color .15s;
  text-decoration:none; white-space:nowrap;
}
.ds-btn--primary { background:var(--ds-teal); color:#fff; border-color:var(--ds-teal); }
.ds-btn--primary:hover { background:var(--ds-teal-dark); border-color:var(--ds-teal-dark); }
.ds-btn--ghost   { background:transparent; color:var(--ds-muted); border-color:var(--ds-line-strong); }
.ds-btn--ghost:hover { background:var(--ds-line); color:var(--ds-ink); }
.ds-btn--full    { width:100%; }
.ds-btn:disabled { opacity:.5; cursor:not-allowed; }

/* ── Banners ── */
.ds-banner {
  display:flex; align-items:flex-start; gap:.6rem;
  padding:.75rem 1rem; border-radius:8px;
  font-size:.875rem; line-height:1.5; margin-bottom:1rem;
}
.ds-banner--error   { background:var(--ds-red-tint);   color:var(--ds-red);   border:1px solid #fca5a5; }
.ds-banner--success { background:var(--ds-green-tint);  color:var(--ds-green); border:1px solid #86efac; }
.ds-banner--info    { background:var(--ds-teal-tint);   color:var(--ds-teal);  border:1px solid #6ee7b7; }
.ds-banner--warn    { background:var(--ds-amber-tint);  color:var(--ds-amber); border:1px solid #fcd34d; }

/* ── Steps (breadcrumb) ── */
.ds-steps       { display:flex; align-items:center; gap:.375rem; flex-wrap:wrap; margin-bottom:1.5rem; font-size:.8125rem; }
.ds-step        { padding:.25rem .625rem; border-radius:99px; font-weight:500; color:var(--ds-faint); }
.ds-step--active{ color:var(--ds-teal); background:var(--ds-teal-tint); }
.ds-step--done  { color:var(--ds-muted); }
.ds-step-arrow  { color:var(--ds-line-strong); }

/* ── Pill ── */
.ds-pill       { display:inline-flex; align-items:center; padding:.25rem .65rem; border-radius:99px; font-size:.75rem; font-weight:600; background:var(--ds-teal-tint); color:var(--ds-teal); border:1px solid rgba(15,110,86,.12); }
.ds-pill--amber{ background:var(--ds-amber-tint); color:var(--ds-amber); border-color:rgba(180,83,9,.12); }
.ds-pill--grey { background:var(--ds-line); color:var(--ds-muted); border-color:transparent; }

/* ── Layout helpers ── */
.ds-two-col { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media (max-width:520px) { .ds-two-col { grid-template-columns:1fr; } }
.ds-sep { height:1px; background:var(--ds-line); margin:1.25rem 0; }

/* ── Section heading ── */
.ds-section-head  { display:flex; align-items:center; gap:.625rem; margin:1.75rem 0 .75rem; }
.ds-section-badge { width:1.375rem; height:1.375rem; border-radius:50%; background:var(--ds-teal); color:#fff; font-size:.7rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ds-section-title { font-size:.9375rem; font-weight:600; color:var(--ds-ink); margin:0; }
.ds-section-sub   { font-size:.84rem; color:var(--ds-muted); margin:.25rem 0 0; }

/* ── Password rules ── */
.ds-rules { list-style:none; padding:.5rem 0 0; margin:0; display:flex; flex-direction:column; gap:.2rem; }
.ds-rule  { font-size:.8rem; color:var(--ds-faint); display:flex; align-items:center; gap:.35rem; }
.ds-rule__icon { font-size:.7rem; width:1rem; text-align:center; }
.ds-rule--pass { color:var(--ds-green); }
.ds-rule--fail { color:var(--ds-red); }
.ds-strength { margin-top:.5rem; display:flex; align-items:center; gap:.75rem; }
.ds-strength__track { flex:1; height:4px; background:var(--ds-line); border-radius:2px; overflow:hidden; }
.ds-strength__fill  { height:100%; width:0; border-radius:2px; transition:width .3s,background .3s; }
.ds-strength__label { font-size:.75rem; font-weight:600; min-width:3.5rem; }

/* ── OTP digits ── */
.ds-digits-row { display:flex; justify-content:center; gap:.5rem; margin-bottom:1rem; }
.ds-digit {
  width:2.75rem; height:3.25rem; text-align:center;
  font-size:1.375rem; font-weight:700;
  border:1.5px solid var(--ds-line-strong); border-radius:8px;
  background:var(--ds-card); color:var(--ds-ink); caret-color:var(--ds-teal);
  outline:none; transition:border-color .15s,box-shadow .15s;
}
.ds-digit:focus { border-color:var(--ds-teal); box-shadow:0 0 0 3px var(--ds-teal-tint); }
.ds-resend-row { text-align:center; font-size:.8375rem; color:var(--ds-faint); margin-top:.75rem; }
.ds-resend-btn { background:none; border:none; color:var(--ds-teal); font-size:.8375rem; font-weight:500; cursor:pointer; padding:0; font-family:inherit; }
.ds-resend-btn:hover { text-decoration:underline; }
.ds-dev-hint { margin-top:1.25rem; padding:.75rem 1rem; background:var(--ds-amber-tint); border-radius:8px; font-size:.8125rem; color:var(--ds-amber); display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.ds-dev-code { font-family:monospace; font-size:1rem; font-weight:700; letter-spacing:.1em; }
.ds-dev-fill-btn { background:var(--ds-amber); color:#fff; border:none; border-radius:5px; padding:.25rem .625rem; font-size:.78rem; font-weight:600; cursor:pointer; font-family:inherit; }

/* ── Validator thank-you (standalone, Layout=null) ── */
.ds-vt-page { min-height:100vh; background:var(--ds-paper); font-family:'Instrument Sans',system-ui,sans-serif; color:var(--ds-ink); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:3rem 1rem; }
.ds-vt-card { background:var(--ds-card); border:1px solid var(--ds-line); border-radius:12px; padding:2.5rem 2.25rem; width:100%; max-width:460px; text-align:center; box-shadow:0 2px 16px rgba(15,41,58,.06); }
.ds-vt-icon { width:4rem; height:4rem; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.5rem; margin:0 auto 1.25rem; }
.ds-vt-icon--green { background:var(--ds-green-tint); color:var(--ds-green); }
.ds-vt-icon--red   { background:var(--ds-red-tint);   color:var(--ds-red);   }
.ds-vt-icon--grey  { background:var(--ds-line);        color:var(--ds-muted); }
.ds-vt-icon--amber { background:var(--ds-amber-tint);  color:var(--ds-amber); }
.ds-vt-title { font-family:'Fraunces',Georgia,serif; font-size:1.5rem; font-weight:500; color:var(--ds-ink); margin:0 0 .5rem; }
.ds-vt-body  { font-size:.9375rem; line-height:1.7; color:var(--ds-muted); margin:0 0 1.25rem; }
.ds-vt-skills { background:var(--ds-line); border-radius:8px; padding:1rem 1.125rem; text-align:left; margin-bottom:1.25rem; }
.ds-vt-skills__label { font-size:.7rem; font-weight:700; color:var(--ds-faint); text-transform:uppercase; letter-spacing:.06em; margin-bottom:.5rem; }
.ds-vt-skills ul { margin:0; padding-left:1.25rem; }
.ds-vt-skills li { font-size:.875rem; color:var(--ds-ink); padding:.15rem 0; }
.ds-vt-footer { margin-top:2rem; font-size:.78rem; color:var(--ds-faint); }
.ds-vt-footer a { color:var(--ds-teal); text-decoration:none; }

/* ── Validator flow pages (2-col layout) ── */
.ds-flow-page { min-height:100vh; background:var(--ds-paper); font-family:'Instrument Sans',system-ui,sans-serif; color:var(--ds-ink); }
.ds-flow-main { max-width:1000px; margin:0 auto; padding:2rem 1.5rem 4rem; }
.ds-flow-grid { display:grid; grid-template-columns:1fr 1.6fr; gap:1.5rem; align-items:start; }
@media (max-width:720px) { .ds-flow-grid { grid-template-columns:1fr; } }
.ds-flow-card { background:var(--ds-card); border:1px solid var(--ds-line); border-radius:10px; padding:1.375rem 1.5rem; margin-bottom:1rem; }
.ds-flow-card:last-child { margin-bottom:0; }
.ds-flow-card__title { font-size:.7rem; font-weight:700; color:var(--ds-faint); text-transform:uppercase; letter-spacing:.04em; margin:0 0 .75rem; }
.ds-flow-card--amber { background:var(--ds-amber-tint); border-color:rgba(180,83,9,.15); }
.ds-bullet-list { padding-left:1.125rem; margin:0; font-size:.875rem; color:var(--ds-muted); line-height:1.6; }
.ds-bullet-list li { padding:.2rem 0; }
.ds-form-title { font-family:'Fraunces',Georgia,serif; font-size:1.375rem; font-weight:500; color:var(--ds-ink); margin:0 0 .25rem; }
.ds-form-sub   { font-size:.875rem; color:var(--ds-muted); margin:0 0 1rem; }

/* ── Relation chip grid ── */
.ds-relation-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:.5rem; }
.ds-relation-opt {
  display:flex; align-items:center; gap:.4rem;
  padding:.5rem .75rem; border:1.5px solid var(--ds-line-strong); border-radius:7px;
  font-size:.8125rem; font-weight:500; color:var(--ds-muted);
  cursor:pointer; transition:border-color .15s,background .15s,color .15s;
}
.ds-relation-opt input[type=radio] { display:none; }
.ds-relation-opt:hover           { border-color:var(--ds-teal); color:var(--ds-teal); }
.ds-relation-opt--selected       { border-color:var(--ds-teal); background:var(--ds-teal-tint); color:var(--ds-teal); }

/* ── Consent checkbox ── */
.ds-consent-label { display:flex; align-items:flex-start; gap:.6rem; font-size:.8375rem; color:var(--ds-muted); cursor:pointer; line-height:1.5; }
.ds-consent-label input[type=checkbox] { margin-top:.15rem; accent-color:var(--ds-teal); flex-shrink:0; }

/* ── Actions row ── */
.ds-actions { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; margin-top:1.5rem; }

/* ── Summary grid (review page) ── */
.ds-summary-grid { display:flex; flex-direction:column; }
.ds-summary-row { display:flex; gap:1rem; font-size:.875rem; padding:.5rem 0; border-bottom:1px solid var(--ds-line); }
.ds-summary-row:last-child { border-bottom:none; }
.ds-summary-label { min-width:5.5rem; font-weight:600; color:var(--ds-faint); font-size:.75rem; text-transform:uppercase; letter-spacing:.04em; }
.ds-summary-value { color:var(--ds-ink); flex:1; }
.ds-summary-value--green { color:var(--ds-green); }
.ds-sent-banner { display:flex; align-items:center; gap:.5rem; padding:.75rem 1rem; background:var(--ds-green-tint); border:1px solid #86efac; border-radius:8px; font-size:.875rem; color:var(--ds-green); font-weight:500; margin-bottom:1rem; }
.ds-skill-list  { list-style:none; padding:0; margin:.5rem 0 0; display:flex; flex-wrap:wrap; gap:.375rem; }
.ds-skill-item  { display:inline-flex; padding:.25rem .625rem; background:var(--ds-line); border-radius:99px; font-size:.78rem; color:var(--ds-ink); font-weight:500; }

/* ── Profile setup layout ── */
.ds-setup-page { min-height:100vh; background:var(--ds-paper); font-family:'Instrument Sans',system-ui,sans-serif; color:var(--ds-ink); }
.ds-setup-main { max-width:920px; margin:0 auto; padding:2rem 1.5rem 4rem; }
.ds-setup-header { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:1.5rem; gap:1rem; flex-wrap:wrap; }
.ds-setup-title { font-family:'Fraunces',Georgia,serif; font-size:1.875rem; font-weight:500; color:var(--ds-ink); margin:0; }
.ds-setup-sub   { font-size:.9rem; color:var(--ds-muted); margin:.25rem 0 0; }
.ds-setup-body  { background:var(--ds-card); border:1px solid var(--ds-line); border-radius:12px; padding:2rem 2.25rem; }
@media (max-width:600px) { .ds-setup-body { padding:1.25rem 1rem; } }

/* ── Toast ── */
.ds-toast { display:flex; align-items:center; gap:.625rem; padding:.75rem 1rem; border-radius:8px; font-size:.875rem; margin-bottom:1.25rem; }
.ds-toast--success { background:var(--ds-green-tint); color:var(--ds-green); border:1px solid #86efac; }
.ds-toast--info    { background:var(--ds-teal-tint);  color:var(--ds-teal);  border:1px solid #6ee7b7; }
.ds-toast__close   { margin-left:auto; background:none; border:none; font-size:.9rem; cursor:pointer; color:inherit; opacity:.6; padding:0; }
.ds-toast__close:hover { opacity:1; }

/* ── Photo upload ── */
.ds-photo-row   { display:flex; align-items:center; gap:1rem; margin-bottom:1.25rem; }
.ds-photo-circle { width:5rem; height:5rem; border-radius:50%; border:2px dashed var(--ds-line-strong); background:var(--ds-line); display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; }
.ds-photo-btns  { display:flex; gap:.5rem; flex-wrap:wrap; }

/* ── Resume drop zone ── */
.ds-resume-zone { border:1.5px dashed var(--ds-line-strong); border-radius:10px; padding:1.5rem; text-align:center; cursor:pointer; transition:border-color .15s,background .15s; }
.ds-resume-zone:hover,.ds-resume-zone--drag { border-color:var(--ds-teal); background:var(--ds-teal-tint); }
.ds-resume-zone--filled { border-style:solid; border-color:var(--ds-green); }
.ds-resume-zone__title  { font-size:.875rem; color:var(--ds-ink); margin:.5rem 0 .25rem; }
.ds-resume-zone__link   { color:var(--ds-teal); font-weight:600; }
.ds-resume-zone__hint   { font-size:.78rem; color:var(--ds-faint); margin:0; }
.ds-resume-chosen { display:flex; align-items:center; gap:.5rem; font-size:.875rem; color:var(--ds-ink); }
.ds-resume-clear  { background:none; border:none; cursor:pointer; color:var(--ds-faint); padding:0; font-size:.9rem; }
.ds-resume-current { display:flex; align-items:center; gap:.625rem; padding:.75rem 1rem; background:var(--ds-green-tint); border:1px solid #86efac; border-radius:8px; margin-bottom:.75rem; font-size:.875rem; }
.ds-resume-current__name     { flex:1; color:var(--ds-ink); font-weight:500; }
.ds-resume-current__download { display:flex; align-items:center; gap:.25rem; color:var(--ds-teal); text-decoration:none; font-size:.78rem; font-weight:600; }
.ds-resume-current__replace  { font-size:.75rem; color:var(--ds-faint); }

/* ── Experience cards ── */
.ds-exp-card      { border:1px solid var(--ds-line); border-radius:8px; padding:1.25rem; margin-bottom:.875rem; background:var(--ds-card); }
.ds-exp-card__head { display:flex; justify-content:space-between; align-items:center; margin-bottom:.875rem; }
.ds-exp-card__num  { font-size:.7rem; font-weight:700; color:var(--ds-teal); text-transform:uppercase; letter-spacing:.05em; display:flex; align-items:center; gap:.4rem; }
.ds-exp-card__dot  { width:.5rem; height:.5rem; border-radius:50%; background:var(--ds-teal); }
.ds-exp-card__remove { background:none; border:none; cursor:pointer; color:var(--ds-faint); font-size:.78rem; font-weight:500; display:flex; align-items:center; gap:.3rem; padding:.25rem .5rem; border-radius:5px; font-family:inherit; }
.ds-exp-card__remove:hover { color:var(--ds-red); background:var(--ds-red-tint); }
.ds-exp-date-row  { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; }
.ds-exp-current-check { display:flex; align-items:center; gap:.5rem; font-size:.84rem; color:var(--ds-muted); cursor:pointer; margin:.25rem 0 .75rem; }
.ds-exp-current-check input[type=checkbox] { accent-color:var(--ds-teal); }
.ds-exp-add-btn {
  width:100%; padding:.625rem; border:1.5px dashed var(--ds-line-strong);
  border-radius:8px; background:none; font-size:.875rem; font-weight:500; color:var(--ds-teal);
  cursor:pointer; display:flex; align-items:center; justify-content:center; gap:.4rem;
  font-family:inherit; transition:border-color .15s,background .15s;
  margin:.5rem 0 1.25rem;
}
.ds-exp-add-btn:hover { border-color:var(--ds-teal); background:var(--ds-teal-tint); }

/* ── Back link ── */
.ds-back-link {
  display:inline-flex; align-items:center; gap:.35rem;
  font-size:.8375rem; color:var(--ds-muted); text-decoration:none; font-weight:500;
}
.ds-back-link:hover { color:var(--ds-teal); }

/* ── Universal home icon button ── */
.sb-home-btn {
  display:inline-flex; align-items:center; justify-content:center;
  width:50px; height:50px; border-radius:10px;
  color:#5B6B75; text-decoration:none; flex-shrink:0;
  margin-right:.75rem;
  transition:background .15s, color .15s;
}
.sb-home-btn:hover { background:#EEF6F3; color:#0F6E56; }
}