:root {
    --fd-bg: #f8fafc;
    --fd-surface: #ffffff;
    --fd-border: #e2e8f0;
    --fd-text: #0f172a;
    --fd-muted: #64748b;
    --fd-primary: #166534;
    --fd-primary-dark: #14532d;
    --fd-primary-soft: #15803d;
    --fd-danger-bg: #fef2f2;
    --fd-danger-text: #991b1b;
    --fd-success-bg: #f0fdf4;
    --fd-success-text: #166534;
    --fd-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --fd-radius: 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--fd-bg);
    color: var(--fd-text);
    overflow-x: hidden;
    height: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a,
.btn-link {
    color: #006bb7;
}

main {
    padding-top: 1rem;
    width: 100%;
    min-width: 0;
}

.content {
    padding-top: 1.1rem;
    min-width: 0;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type="checkbox"]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: 0.9rem;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeGxpbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBvdmVyZmxvdz0iaGlkZGVuIj48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwIj48cmVjdCB4PSIyMzUiIHk9IjUxIiB3aWR0aD0iNTYiIGhlaWdodD0iNDkiLz48L2NsaXBQYXRoPjwvZGVmcz48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDApIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjM1IC01MSkiPjxwYXRoIGQ9Ik0yNjMuNTA2IDUxQzI2NC43MTcgNTEgMjY1LjgxMyA1MS40ODM3IDI2Ni42MDYgNTIuMjY1OEwyNjcuMDUyIDUyLjc5ODcgMjY3LjUzOSA1My42MjgzIDI5MC4xODUgOTIuMTgzMSAyOTAuNTQ1IDkyLjc5NSAyOTAuNjU2IDkyLjk5NkMyOTAuODc3IDkzLjUxMyAyOTEgOTQuMDgxNSAyOTEgOTQuNjc4MiAyOTEgOTcuMDY1MSAyODkuMDM4IDk5IDI4Ni42MTcgOTlMMjQwLjM4MyA5OUMyMzcuOTYzIDk5IDIzNiA5Ny4wNjUxIDIzNiA5NC42NzgyIDIzNiA5NC4zNzk5IDIzNi4wMzEgOTQuMDg4NiAyMzYuMDg5IDkzLjgwNzJMMjM2LjMzOCA5My4wMTYyIDIzNi44NTggOTIuMTMxNCAyNTkuNDczIDUzLjYyOTQgMjU5Ljk2MSA1Mi43OTg1IDI2MC40MDcgNTIuMjY1OEMyNjEuMiA1MS40ODM3IDI2Mi4yOTYgNTEgMjYzLjUwNiA1MVpNMjYzLjU4NiA2Ni4wMTgzQzI2MC43MzcgNjYuMDE4MyAyNTkuMzEzIDY3LjEyNDUgMjU5LjMxMyA2OS4zMzcgMjU5LjMxMyA2OS42MTAyIDI1OS4zMzIgNjkuODYwOCAyNTkuMzcxIDcwLjA4ODdMMjYxLjc5NSA4NC4wMTYxIDI2NS4zOCA4NC4wMTYxIDI2Ny44MjEgNjkuNzQ3NUMyNjcuODYgNjkuNzMwOSAyNjcuODc5IDY5LjU4NzcgMjY3Ljg3OSA2OS4zMTc5IDI2Ny44NzkgNjcuMTE4MiAyNjYuNDQ4IDY2LjAxODMgMjYzLjU4NiA2Ni4wMTgzWk0yNjMuNTc2IDg2LjA1NDdDMjYxLjA0OSA4Ni4wNTQ3IDI1OS43ODYgODcuMzAwNSAyNTkuNzg2IDg5Ljc5MjEgMjU5Ljc4NiA5Mi4yODM3IDI2MS4wNDkgOTMuNTI5NSAyNjMuNTc2IDkzLjUyOTUgMjY2LjExNiA5My41Mjk1IDI2Ny4zODcgOTIuMjgzNyAyNjcuMzg3IDg5Ljc5MjEgMjY3LjM4NyA4Ny4zMDA1IDI2Ni4xMTYgODYuMDU0NyAyNjMuNTc2IDg2LjA1NDdaIiBmaWxsPSIjRkZFNTAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L2c+PC9zdmc+) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* Shared forms / buttons */

.fd-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.fd-form-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fd-form-group {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fd-label,
.fd-panel .form-label,
.fd-form .form-label {
    font-weight: 600;
    color: #1e293b;
}

.fd-input,
.fd-textarea,
.fd-form .form-control,
.fd-form .form-select {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #fff;
    outline: none;
    font-size: 16px;
}

.fd-input,
.fd-form .form-control,
.fd-form .form-select {
    padding: 1rem 1.1rem;
    font-size: 1.05rem;
}

.fd-textarea {
    padding: 0.9rem 1rem;
    min-height: 120px;
    font-size: 1rem;
    resize: vertical;
}

    .fd-input:focus,
    .fd-textarea:focus,
    .fd-form .form-control:focus,
    .fd-form .form-select:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }

.fd-form .btn,
.fd-btn {
    min-height: 48px;
    font-weight: 700;
}

.fd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.4rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.fd-btn--primary {
    background: linear-gradient(135deg, var(--fd-primary-soft), var(--fd-primary));
    color: white;
    box-shadow: 0 12px 30px rgba(22, 101, 52, 0.35);
}

    .fd-btn--primary:hover {
        transform: translateY(-1px);
    }

.fd-btn--ghost {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border-color: #cbd5e1;
}

    .fd-btn--ghost:hover {
        background: #f8fafc;
        color: #0f172a;
    }

.fd-btn--outline-light {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.72);
}

    .fd-btn--outline-light:hover {
        background: rgba(255, 255, 255, 0.08);
        color: white;
    }

.fd-btn--danger {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

    .fd-btn--danger:hover {
        background: #fecaca;
        color: #7f1d1d;
    }

.fd-btn--danger-ghost {
    background: #fff;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

    .fd-btn--danger-ghost:hover {
        background: #fef2f2;
    }

.fd-alert {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.fd-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.fd-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.fd-alert--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.fd-alert--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.fd-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.85rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.45;
}

    .fd-checkbox-row input[type="checkbox"] {
        margin-top: 0.2rem;
        flex-shrink: 0;
    }

/* Generic cards / panels */

.fd-card,
.fd-panel {
    background: var(--fd-surface);
    border: 1px solid var(--fd-border);
    border-radius: 20px;
    box-shadow: var(--fd-shadow);
}

.fd-card {
    padding: 1.4rem;
}

    .fd-card h4 {
        margin-bottom: 0.6rem;
        font-weight: 700;
    }

    .fd-card p {
        margin: 0;
        color: var(--fd-muted);
    }

.fd-panel {
    padding: 1.25rem;
}

.fd-panel--large {
    min-height: 360px;
}

.fd-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .fd-panel__header h2 {
        margin: 0;
        font-size: 1.1rem;
        color: #0f172a;
    }

.fd-panel__header--split {
    align-items: flex-start;
}

.fd-page,
.fd-institution-page,
.fd-profile-page,
.fd-created-page,
.fd-app-content {
    width: 100%;
    min-width: 0;
}

.fd-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem 2rem;
    display: grid;
    gap: 2rem;
}

.fd-page-loading {
    padding: 2rem;
}

.fd-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

    .fd-page-header h3 {
        margin: 0;
        font-weight: 800;
    }

.fd-subtitle {
    color: var(--fd-muted);
    margin: 0.4rem 0 0;
}

.fd-empty-state {
    text-align: center;
    padding: 2rem 1rem;
}

    .fd-empty-state h3 {
        margin-bottom: 0.5rem;
        color: #0f172a;
    }

    .fd-empty-state p {
        color: #64748b;
        margin-bottom: 1rem;
    }

.fd-empty-state--soft {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
}

/* Public layout */

.fd-public-layout {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.05), transparent 30%), #f8fafc;
}

.fd-public-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(248, 250, 252, 0.96);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.fd-public-header__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.9rem 1rem 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.fd-public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #0f172a;
    margin-left: 0;
    padding-left: 0;
}

.fd-public-brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .fd-public-brand__mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.fd-public-brand__text {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fd-public-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .fd-public-nav a {
        text-decoration: none;
        color: #475569;
        font-weight: 600;
    }

        .fd-public-nav a:hover {
            color: #0f172a;
        }

.fd-public-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: white;
    border: 1px solid #dbe3ee;
    color: #0f172a !important;
}

.fd-mobile-menu-toggle {
    display: none;
}

.fd-public-main {
    min-height: calc(100vh - 72px);
}

/* Auth */

.fd-auth-layout {
    min-height: calc(100vh - 73px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: #f8fafc;
}

.fd-auth-aside,
.fd-auth-side {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #052e16 0%, #14532d 55%, #166534 100%);
    color: #fff;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 73px);
}

    .fd-auth-aside::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
        background-size: 40px 40px;
        pointer-events: none;
    }

.fd-auth-aside__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    padding: 3.5rem;
    display: grid;
    gap: 2rem;
}

.fd-auth-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.fd-auth-brand__mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 1.2rem;
    font-weight: 800;
}

.fd-auth-brand__name {
    font-size: 1.05rem;
    font-weight: 800;
}

.fd-auth-brand__meta {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
}

.fd-auth-copy__title {
    font-size: clamp(2rem, 3.6vw, 3.6rem);
    line-height: 1.02;
    font-weight: 800;
    margin: 0 0 1rem;
    letter-spacing: -0.04em;
    color: white;
    max-width: 520px;
}

.fd-auth-copy__text,
.fd-auth-side__subtitle {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.84);
    margin: 0;
    max-width: 460px;
}

.fd-auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: calc(100vh - 73px);
}

.fd-auth-main__inner {
    width: 100%;
    max-width: 430px;
}

.fd-auth-card {
    width: 100%;
    background: #fff;
    border-radius: 28px;
    padding: 1.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.fd-auth-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

    .fd-auth-features li {
        margin-bottom: 0.5rem;
    }

.fd-step-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.fd-step-subtitle {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.fd-auth-link-row {
    margin-top: 0.9rem;
    text-align: left;
}

.fd-auth-link {
    font-size: 0.92rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

    .fd-auth-link:hover {
        color: #0f172a;
        text-decoration: underline;
    }

/* Verify */

.fd-verify-page {
    padding: 3rem 1rem 4rem;
}

.fd-verify-shell {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

.fd-verify-header {
    text-align: center;
    margin-bottom: 0.25rem;
}

.fd-verify-header__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fd-verify-header h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.fd-verify-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #64748b;
    line-height: 1.7;
}

.fd-verify-search-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 1.6rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.fd-verify-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.85rem;
    align-items: end;
    margin-top: 0.5rem;
}

    .fd-verify-search-row .fd-btn {
        min-width: 140px;
    }

.fd-verify-search-hint {
    margin: 0.85rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.fd-verify-card {
    background: white;
    border-radius: 28px;
    border: 1px solid #e2e8f0;
    padding: 1.75rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.fd-verify-card--success {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #ffffff, #f8fffb);
}

.fd-verify-card--danger {
    border-color: #fecaca;
    background: linear-gradient(180deg, #ffffff, #fff8f8);
}

.fd-verify-card--loading {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.fd-verify-result {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fd-verify-result__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex: 0 0 52px;
    background: #f1f5f9;
    color: #0f172a;
}

.fd-verify-card--success .fd-verify-result__icon {
    background: #ecfdf5;
    color: #166534;
}

.fd-verify-card--danger .fd-verify-result__icon {
    background: #fef2f2;
    color: #991b1b;
}

.fd-verify-result__label {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.fd-verify-result h2,
.fd-verify-state h3 {
    margin: 0 0 0.4rem;
    color: #0f172a;
    font-size: 1.45rem;
}

.fd-verify-result p,
.fd-verify-state p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.fd-verify-grid,
.fd-created-grid,
.fd-profile-summary,
.fd-profile-readonly {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.fd-verify-field,
.fd-created-field,
.fd-profile-summary__item,
.fd-profile-readonly__item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

    .fd-verify-field span,
    .fd-created-field span,
    .fd-profile-summary__item span,
    .fd-profile-readonly__item span {
        display: block;
        font-size: 0.82rem;
        color: #64748b;
        margin-bottom: 0.35rem;
    }

    .fd-verify-field strong,
    .fd-created-field strong,
    .fd-profile-summary__item strong,
    .fd-profile-readonly__item strong {
        display: block;
        font-size: 1rem;
        color: #0f172a;
        line-height: 1.5;
        word-break: break-word;
    }

.fd-verify-field--full,
.fd-created-field--full,
.fd-profile-summary__item--full,
.fd-profile-readonly__item--full {
    grid-column: 1 / -1;
}

.fd-verify-state {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fd-verify-state__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
}

.fd-verify-institution {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.fd-verify-institution__identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fd-verify-institution__logo,
.fd-verify-institution__fallback-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    flex: 0 0 64px;
}

.fd-verify-institution__logo {
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: white;
}

.fd-verify-institution__fallback-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #166534, #14532d);
    color: white;
    font-size: 1.35rem;
    font-weight: 800;
}

.fd-verify-institution__label {
    display: inline-block;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.fd-verify-institution__name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.fd-verify-institution__meta {
    margin-top: 0.2rem;
    color: #64748b;
    line-height: 1.5;
}

.fd-verify-field__top,
.fd-created-field__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.fd-verify-copy,
.fd-created-copy {
    border: 1px solid #dbe3ee;
    background: white;
    color: #0f172a;
    border-radius: 10px;
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

    .fd-verify-copy:hover,
    .fd-created-copy:hover {
        background: #f8fafc;
    }

.fd-verify-link,
.fd-verify-link a {
    color: #0f766e;
    text-decoration: none;
    word-break: break-word;
}

    .fd-verify-link:hover,
    .fd-verify-link a:hover {
        text-decoration: underline;
    }

.fd-verify-institution__website {
    display: inline-block;
    margin-top: 0.45rem;
    color: #0f766e;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

    .fd-verify-institution__website:hover {
        text-decoration: underline;
    }

.fd-verify-trust {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-weight: 600;
    font-size: 0.92rem;
}

.fd-verify-meta {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #64748b;
}

.fd-verify-watermark {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

/* App shell */

.fd-app-layout {
    min-height: 100vh;
    background: #f8fafc;
}

.fd-app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #052e16, #14532d);
    padding: 1.2rem 0.8rem;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 30;
}

.fd-app-main {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.fd-app-content {
    width: 100%;
    min-width: 0;
    padding: 1.5rem;
    overflow-x: hidden;
}

.fd-app-topbar__left,
.fd-app-topbar__right {
    display: flex;
    align-items: center;
}

.fd-app-topbar__right {
    margin-left: auto;
}

.fd-app-topbar__link {
    text-decoration: none;
    font-weight: 600;
    color: #166534;
}

.fd-page,
.fd-institution-page,
.fd-profile-page,
.fd-created-page {
    width: 100%;
    min-width: 0;
    max-width: 1280px;
    margin: 0 auto;
}

.fd-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #0f172a;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
}

.fd-mobile-nav {
    display: none;
    width: 100%;
    transition: all 0.2s ease;
}

/* Sidebar nav */

.fd-sidebar-nav {
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100%;
    gap: 1.25rem;
}

.fd-sidebar-group {
    display: grid;
    gap: 0.35rem;
}

.fd-sidebar-group__label {
    padding: 0 0.8rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.fd-sidebar-group--bottom {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fd-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    transition: 0.2s;
}

    .fd-sidebar-link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: white;
    }

    .fd-sidebar-link.active,
    .fd-sidebar-link[aria-current="page"] {
        background: rgba(255, 255, 255, 0.12);
        color: white;
    }

.fd-sidebar-link--primary {
    background: linear-gradient(135deg, #15803d, #166534);
    color: white;
    margin-top: 0.3rem;
}

    .fd-sidebar-link--primary:hover {
        background: linear-gradient(135deg, #166534, #14532d);
    }

.fd-sidebar-link--button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.fd-sidebar-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    opacity: 0.9;
}

/* Dashboard */

.fd-institution-page {
    display: grid;
    gap: 1rem;
    padding: 0;
}

.fd-dashboard-hero {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--fd-border);
    border-radius: var(--fd-radius);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: var(--fd-shadow);
    margin-bottom: 1.5rem;
}

.fd-dashboard-hero--clean {
    align-items: center;
    padding: 1.5rem 1.6rem;
}

.fd-dashboard-hero__left {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: 0;
    flex: 1 1 auto;
}

.fd-dashboard-hero__logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fd-text);
    flex-shrink: 0;
}

    .fd-dashboard-hero__logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.fd-dashboard-hero__content {
    min-width: 0;
    flex: 1 1 auto;
}

.fd-dashboard-hero__eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fd-muted);
    margin-bottom: 0.35rem;
}

.fd-dashboard-hero__title {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.2;
    word-break: break-word;
}

.fd-dashboard-hero__subtitle {
    margin: 0.55rem 0 0;
    color: var(--fd-muted);
    line-height: 1.65;
    max-width: 720px;
}

.fd-dashboard-hero__meta {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--fd-muted);
    font-size: 0.95rem;
}

.fd-dashboard-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 0 1 260px;
    width: 100%;
    max-width: 260px;
}

.fd-dashboard-userbadge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--fd-border);
    width: fit-content;
    max-width: 100%;
}

.fd-dashboard-userbadge__avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.fd-dashboard-userbadge__name {
    font-weight: 600;
    word-break: break-word;
}

.fd-dashboard-userbadge__role {
    font-size: 0.9rem;
    color: var(--fd-muted);
    word-break: break-word;
}

.fd-stats-grid {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.fd-stats-grid--dashboard {
    margin-top: -0.5rem;
    margin-bottom: 0.2rem;
}

.fd-stat-card {
    min-width: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.fd-stat-card__label {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.fd-stat-card strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1.15;
    color: #0f172a;
    word-break: break-word;
}

.fd-stat-card small {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.86rem;
}

.fd-stat-card--danger strong {
    color: #b91c1c;
}

.fd-dashboard-grid {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.fd-dashboard-grid--balanced {
    align-items: start;
}

.fd-dashboard-side,
.fd-dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.fd-insight {
    text-align: center;
}

.fd-insight__value {
    font-size: 2rem;
    font-weight: 800;
    color: #b91c1c;
}

.fd-tip-box {
    padding: 1rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--fd-border);
    color: var(--fd-text);
    line-height: 1.55;
}

.fd-link-action {
    color: var(--fd-primary);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

    .fd-link-action:hover {
        text-decoration: underline;
    }

/* Tables / rows */

.fd-table-wrap {
    overflow-x: auto;
}

.fd-table {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.fd-table__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
}

.fd-table__title {
    font-weight: 700;
    color: #0f172a;
}

.fd-table__meta {
    color: #64748b;
    margin-top: 0.25rem;
}

.fd-table__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.fd-doc-list {
    display: grid;
    gap: 0.9rem;
}

.fd-doc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    margin-bottom: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .fd-doc-row:hover {
        border-color: #cbd5e1;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
        transform: translateY(-1px);
    }

.fd-doc-row__main {
    min-width: 0;
    flex: 1;
}

.fd-doc-row__top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

.fd-doc-row__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.fd-doc-row__side {
    flex-shrink: 0;
    text-align: right;
}

.fd-doc-row__date {
    color: #64748b;
    font-size: 0.92rem;
    white-space: nowrap;
}

.fd-action-btn {
    appearance: none;
    border: 1px solid #dbe3ee;
    background: #ffffff;
    color: var(--fd-text);
    border-radius: 12px;
    min-height: 42px;
    padding: 0.68rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

    .fd-action-btn:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        color: var(--fd-text);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    }

    .fd-action-btn:active {
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .fd-action-btn:focus-visible {
        outline: none;
        border-color: #86efac;
        box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
    }

.fd-action-btn--primary {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: var(--fd-primary);
}

    .fd-action-btn--primary:hover {
        background: #dcfce7;
        border-color: #86efac;
        color: var(--fd-primary-dark);
    }

.fd-action-btn--danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--fd-danger-text);
}

    .fd-action-btn--danger:hover {
        background: #fee2e2;
        border-color: #fca5a5;
        color: #7f1d1d;
    }

/* Status */

.fd-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.fd-status-valid {
    background: var(--fd-success-bg);
    color: var(--fd-success-text);
}

.fd-status-revoked {
    background: #fef2f2;
    color: #991b1b;
}

.fd-status-inactive {
    background: #f1f5f9;
    color: #475569;
}

/* Profile */

.fd-profile-page {
    padding: 0;
    display: grid;
    gap: 1.25rem;
}

.fd-profile-header {
    background: linear-gradient(135deg, #052e16, #166534);
    color: white;
    border-radius: 28px;
    padding: 1.75rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.fd-profile-header__identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fd-profile-header__logo,
.fd-profile-header__fallback-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    flex: 0 0 72px;
}

.fd-profile-header__logo {
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fd-profile-header__fallback-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
}

.fd-profile-header__eyebrow {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
}

.fd-profile-header__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: white;
    letter-spacing: -0.03em;
}

.fd-profile-header__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.fd-profile-header__audit {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.fd-profile-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    font-weight: 600;
}

.fd-profile-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 1rem;
}

.fd-profile-side {
    display: grid;
    gap: 1rem;
}

.fd-profile-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fd-profile-form-grid__full {
    grid-column: 1 / -1;
}

.fd-profile-hint {
    display: block;
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.fd-profile-preview {
    text-align: center;
    display: grid;
    gap: 0.9rem;
}

.fd-profile-preview__logo,
.fd-profile-preview__fallback-logo {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    margin: 0 auto;
}

.fd-profile-preview__logo {
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.fd-profile-preview__fallback-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #166534, #14532d);
    color: white;
    font-size: 1.7rem;
    font-weight: 800;
}

.fd-profile-preview__name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.fd-profile-preview__meta,
.fd-profile-preview__audit {
    color: #64748b;
    font-size: 0.95rem;
}

.fd-profile-preview__description {
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.fd-profile-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--fd-border);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: var(--fd-shadow);
}

.fd-profile-hero__identity {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    min-width: 0;
}

.fd-profile-hero__logo,
.fd-profile-hero__fallback-logo {
    width: 104px;
    height: 104px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.fd-profile-hero__logo {
    object-fit: contain;
    background: #ffffff;
    padding: 12px;
}

.fd-profile-hero__fallback-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.fd-profile-hero__content {
    min-width: 0;
}

.fd-profile-hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fd-primary);
    margin-bottom: 0.4rem;
}

.fd-profile-hero__title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fd-profile-hero__title {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.15;
    color: var(--fd-text);
}

.fd-profile-hero__subtitle {
    margin: 0.5rem 0 0;
    color: var(--fd-muted);
    max-width: 720px;
}

.fd-profile-hero__audit {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    color: var(--fd-muted);
}

.fd-profile-hero__actions {
    flex-shrink: 0;
}

.fd-profile-cards {
    display: grid;
    gap: 1.25rem;
}

.fd-brand-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.fd-brand-card__logo,
.fd-brand-card__fallback {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.fd-brand-card__logo {
    object-fit: contain;
    background: #ffffff;
    padding: 10px;
}

.fd-brand-card__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--fd-text);
}

.fd-brand-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fd-text);
}

.fd-brand-card__meta {
    margin-top: 0.25rem;
    color: var(--fd-muted);
    line-height: 1.5;
}

.fd-logo-upload {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.fd-logo-upload__preview {
    flex-shrink: 0;
}

.fd-logo-upload__image,
.fd-logo-upload__fallback {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.fd-logo-upload__image {
    object-fit: contain;
    background: #ffffff;
    padding: 12px;
}

.fd-logo-upload__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--fd-text);
}

.fd-logo-upload__form {
    flex: 1;
    min-width: 220px;
}

.fd-profile-section + .fd-profile-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--fd-border);
}

.fd-profile-section__title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

/* Created page */

.fd-created-page {
    padding: 0;
}

.fd-created-shell {
    max-width: 920px;
    margin: 0 auto;
}

.fd-created-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 1.75rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.fd-created-state {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.fd-created-state__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: #166534;
    font-size: 1.4rem;
    font-weight: 800;
    flex: 0 0 56px;
}

.fd-created-state__label {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #166534;
}

.fd-created-state h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
    color: #0f172a;
}

.fd-created-state p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.fd-created-link {
    font-size: 0.95rem;
}

.fd-created-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.fd-created-qr {
    display: grid;
    gap: 1rem;
    justify-items: start;
}

.fd-created-qr__image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.fd-created-qr__hint {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    max-width: 420px;
}

/* Activity */

.fd-activity-list {
    display: grid;
    gap: 1rem;
}

.fd-activity-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--fd-border);
}

    .fd-activity-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.fd-activity-item__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex: 0 0 42px;
}

.fd-activity-item__content {
    min-width: 0;
    flex: 1;
}

.fd-activity-item__top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.fd-activity-item__title {
    font-weight: 700;
    color: #0f172a;
}

.fd-activity-item__date {
    font-size: 0.9rem;
    color: #64748b;
    white-space: nowrap;
}

.fd-activity-item__meta {
    margin-top: 0.35rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    color: #64748b;
    font-size: 0.92rem;
}

.fd-activity-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
}

.fd-activity-item__description {
    margin-top: 0.55rem;
    color: #334155;
    line-height: 1.6;
}

.fd-activity-item__toggle {
    margin-top: 0.75rem;
    border: 1px solid #dbe3ee;
    background: white;
    color: #0f172a;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

    .fd-activity-item__toggle:hover {
        background: #f8fafc;
    }

.fd-activity-item__details {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.75rem;
}

.fd-activity-item__json-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
}

.fd-activity-item__json-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 0.6rem;
}

.fd-activity-item__json-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.85rem;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Users / invites */

.fd-user-role {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.35rem;
}

.fd-user-role--admin {
    background: #fee2e2;
    color: #b91c1c;
}

.fd-user-role--manager {
    background: #eff6ff;
    color: #1d4ed8;
}

.fd-user-role--viewer {
    background: #f1f5f9;
    color: #475569;
}

.fd-user-role-select {
    min-width: 130px;
}

.fd-user-row-message {
    margin-top: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 600;
}

.fd-user-row__identity {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.fd-user-row__identity-text {
    min-width: 0;
}

.fd-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, #166534, #14532d);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex: 0 0 42px;
    box-shadow: 0 6px 16px rgba(22, 101, 52, 0.18);
}

.fd-user-avatar--soft {
    background: #f1f5f9;
    color: #334155;
    box-shadow: none;
}

.fd-invite-count {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.fd-invite-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fd-invite-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.fd-invite-card__main {
    flex: 1;
    min-width: 0;
}

.fd-invite-card__identity {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.fd-invite-card__identity-text {
    flex: 1;
    min-width: 0;
}

.fd-invite-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.fd-invite-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    word-break: break-word;
}

.fd-invite-card__badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fd-invite-card__meta {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #64748b;
    font-size: 0.92rem;
}

.fd-invite-card__linkbox {
    margin-top: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.fd-invite-card__linklabel {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.fd-invite-card__link {
    font-size: 0.9rem;
    color: #0f172a;
    word-break: break-all;
    line-height: 1.45;
}

.fd-invite-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex-shrink: 0;
}

/* Password / reset */

.fd-password-field {
    position: relative;
}

    .fd-password-field .fd-input {
        padding-right: 3.4rem;
    }

.fd-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .fd-password-toggle:hover {
        color: #0f172a;
        background: #f8fafc;
    }

    .fd-password-toggle:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
    }

.fd-reset-success {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.fd-reset-success__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #16a34a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.fd-reset-success__content h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    color: #166534;
}

.fd-reset-success__content p {
    margin: 0;
    color: #166534;
}

/* Misc */

.fd-doc-filters {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr;
    gap: 1rem;
}

/* Footer */

.fd-site-footer {
    margin: 2rem 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.fd-site-footer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.fd-site-footer__grid {
    display: grid;
    gap: 1rem;
}

.fd-site-footer__title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.fd-site-footer__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

    .fd-site-footer__links a {
        position: relative;
        color: #64748b;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .fd-site-footer__links a:hover {
            color: #0f172a;
        }

        .fd-site-footer__links a::before {
            content: "";
            position: absolute;
            left: 0;
            bottom: -2px;
            width: 0%;
            height: 1.5px;
            background: #0f172a;
            transition: width 0.25s ease;
        }

        .fd-site-footer__links a:hover::before {
            width: 100%;
        }

        .fd-site-footer__links a:not(:last-child)::after {
            content: "•";
            margin-left: 1rem;
            color: #cbd5e1;
        }

.fd-site-footer__bottom {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
}

/* Contact */

.fd-contact-header {
    text-align: center;
    margin-bottom: 1rem;
}

    .fd-contact-header h1 {
        margin: 0 0 0.5rem;
        font-size: clamp(1.8rem, 3vw, 2.4rem);
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .fd-contact-header p {
        margin: 0;
        color: var(--fd-muted);
        max-width: 520px;
        margin-inline: auto;
        line-height: 1.6;
    }

.fd-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.fd-contact-card {
    background: var(--fd-surface);
    border: 1px solid var(--fd-border);
    border-radius: 20px;
    padding: 1.4rem;
    box-shadow: var(--fd-shadow);
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .fd-contact-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    }

.fd-contact-card__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.9rem;
    border-radius: 14px;
    background: var(--fd-success-bg);
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fd-contact-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.fd-contact-card p {
    margin: 0 0 0.7rem;
    color: var(--fd-muted);
    font-size: 0.95rem;
}

.fd-contact-card a {
    font-weight: 700;
    color: var(--fd-primary);
    text-decoration: none;
}

    .fd-contact-card a:hover {
        text-decoration: underline;
    }

/* Responsive */

@media (max-width: 1250px) {
    .fd-dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .fd-dashboard-hero__actions {
        width: 100%;
        max-width: none;
        flex: none;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

        .fd-dashboard-hero__actions .fd-btn {
            flex: 1 1 220px;
            min-height: 48px;
        }

    .fd-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fd-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {
    .fd-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .fd-auth-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .fd-auth-aside,
    .fd-auth-side {
        display: none;
    }

    .fd-auth-main {
        min-height: auto;
        padding: 1rem;
        align-items: flex-start;
    }

    .fd-auth-main__inner {
        max-width: 100%;
    }

    .fd-auth-card {
        border-radius: 20px;
        padding: 1.25rem;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    }

    .fd-step-title {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .fd-step-subtitle {
        font-size: 0.96rem;
        line-height: 1.6;
        margin-bottom: 1.15rem;
    }
}

@media (max-width: 900px) {
    .fd-landing-v2 {
        height: auto;
        padding: 1rem 0 2rem;
    }

    .fd-landing-v2__features,
    .fd-trust-grid,
    .fd-how-steps,
    .fd-contact-grid {
        grid-template-columns: 1fr;
    }

    .fd-landing-v2__hero {
        padding: 2rem 1.25rem 1.25rem;
        border-radius: 24px;
        gap: 1.25rem;
    }

    .fd-landing-v2__title {
        font-size: 2.9rem;
    }

    .fd-landing-v2__subtitle {
        font-size: 1rem;
    }

    .fd-doc-row {
        flex-direction: column;
        align-items: stretch;
    }

    .fd-doc-row__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .fd-doc-row__side {
        text-align: left;
    }

    .fd-app-layout {
        display: block;
    }

    .fd-app-sidebar {
        display: none;
    }

    .fd-app-main {
        margin-left: 0;
        width: 100%;
    }

    .fd-app-topbar {
        height: auto;
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e2e8f0;
        background: white;
        position: sticky;
        top: 0;
        z-index: 20;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .fd-sidebar-toggle {
        display: inline-flex;
    }

    .fd-mobile-nav.fd-mobile-nav--open {
        display: block;
        width: 100%;
        margin-top: 0.75rem;
        padding: 0.75rem;
        border-radius: 18px;
        background: white;
        border: 1px solid #e2e8f0;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    }

    .fd-mobile-nav .fd-sidebar-nav {
        display: grid;
        grid-template-rows: auto;
        height: auto;
        gap: 1rem;
    }

    .fd-mobile-nav .fd-sidebar-group__label {
        color: #64748b;
        padding: 0 0 0.35rem;
    }

    .fd-mobile-nav .fd-sidebar-link {
        color: #0f172a;
        background: transparent;
        padding: 0.85rem 0.9rem;
        border-radius: 12px;
    }

        .fd-mobile-nav .fd-sidebar-link:hover,
        .fd-mobile-nav .fd-sidebar-link.active,
        .fd-mobile-nav .fd-sidebar-link[aria-current="page"] {
            background: #f8fafc;
            color: #0f172a;
        }

    .fd-mobile-nav .fd-sidebar-link--primary {
        background: #f0fdf4;
        color: #166534;
        margin-top: 0.25rem;
    }

        .fd-mobile-nav .fd-sidebar-link--primary:hover {
            background: #dcfce7;
            color: #14532d;
        }

    .fd-mobile-nav .fd-sidebar-link--button {
        width: 100%;
        color: #0f172a;
    }

    .fd-mobile-nav .fd-sidebar-icon {
        opacity: 1;
    }

    .fd-app-content {
        padding: 1rem;
    }

    .fd-dashboard-hero,
    .fd-dashboard-hero--clean {
        flex-direction: column;
        align-items: flex-start;
    }

    .fd-dashboard-hero__actions {
        width: 100%;
        max-width: none;
        display: flex;
        flex-direction: column;
        flex: none;
        gap: 0.75rem;
    }

        .fd-dashboard-hero__actions .fd-btn {
            width: 100%;
            flex: none;
            min-height: 48px;
            padding: 0.9rem 1rem;
            justify-content: center;
        }

    .fd-stats-grid--dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fd-doc-share {
        grid-template-columns: 1fr;
    }

    .fd-qr-preview {
        justify-content: flex-start;
    }

        .fd-qr-preview img {
            width: 140px;
            height: 140px;
        }
}

@media (max-width: 768px) {
    .fd-doc-filters {
        grid-template-columns: 1fr;
    }

    .fd-table__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .fd-table__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .fd-profile-hero {
        flex-direction: column;
    }

    .fd-profile-summary,
    .fd-profile-readonly,
    .fd-profile-form-grid {
        grid-template-columns: 1fr;
    }

    .fd-profile-summary__item--full,
    .fd-profile-readonly__item--full {
        grid-column: auto;
    }

    .fd-invite-card {
        flex-direction: column;
    }

    .fd-invite-card__actions {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

        .fd-invite-card__actions .fd-btn {
            flex: 1 1 180px;
        }

    .fd-public-header__inner {
        flex-wrap: wrap;
        align-items: center;
    }

    .fd-mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 14px;
        border: 1px solid #dbe3ee;
        background: white;
        color: #0f172a;
        cursor: pointer;
        flex-shrink: 0;
        font-size: 1.2rem;
        font-weight: 700;
    }

    .fd-public-nav {
        display: none;
        width: 100%;
    }

        .fd-public-nav.fd-public-nav--open {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 0.35rem;
            width: 100%;
            margin-top: 0.85rem;
            padding: 0.75rem;
            border-radius: 18px;
            background: white;
            border: 1px solid #e2e8f0;
            box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
        }

            .fd-public-nav.fd-public-nav--open a {
                display: block;
                padding: 0.85rem 0.9rem;
                border-radius: 12px;
                color: #0f172a;
                font-weight: 700;
                text-decoration: none;
            }

                .fd-public-nav.fd-public-nav--open a:hover {
                    background: #f8fafc;
                }

            .fd-public-nav.fd-public-nav--open .fd-public-nav__btn {
                width: 100%;
                justify-content: center;
                margin-top: 0.35rem;
            }
}

@media (max-width: 700px) {
    .fd-verify-search-row,
    .fd-verify-grid,
    .fd-created-grid,
    .fd-profile-readonly {
        grid-template-columns: 1fr;
    }

    .fd-verify-card,
    .fd-verify-search-card,
    .fd-created-card {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .fd-verify-result,
    .fd-verify-state {
        align-items: flex-start;
    }

    .fd-verify-institution__identity {
        align-items: flex-start;
    }

    .fd-verify-field__top,
    .fd-created-field__top {
        align-items: flex-start;
        flex-direction: column;
    }

    .fd-created-page {
        padding: 0;
    }

    .fd-activity-item {
        gap: 0.75rem;
    }

    .fd-activity-item__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .fd-activity-item__date {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .fd-page,
    .fd-institution-page,
    .fd-profile-page,
    .fd-created-page,
    .fd-app-content {
        padding: 1rem;
    }

    .fd-institution-page,
    .fd-profile-page,
    .fd-created-page {
        padding: 0;
    }

    .fd-landing-v2__hero {
        padding: 1.75rem 1rem 1rem;
        border-radius: 20px;
    }

    .fd-landing-v2__title {
        font-size: 2.2rem;
    }

    .fd-landing-v2__actions .fd-btn {
        width: 100%;
    }

    .fd-auth-card,
    .fd-profile-header,
    .fd-profile-success {
        border-radius: 18px;
    }

    .fd-dashboard-hero {
        padding: 1.25rem;
    }

    .fd-dashboard-hero__left {
        flex-direction: column;
    }

    .fd-dashboard-hero__title {
        font-size: 1.55rem;
    }

    .fd-dashboard-userbadge {
        width: 100%;
    }

    .fd-stats-grid,
    .fd-stats-grid--dashboard {
        grid-template-columns: 1fr;
    }

    .fd-form-grid,
    .fd-profile-form-grid {
        grid-template-columns: 1fr;
    }

    .fd-actions .fd-btn,
    .fd-actions button,
    .fd-actions a {
        width: 100%;
    }

    .fd-auth-link-row {
        margin-top: 1rem;
    }

    .fd-auth-link {
        display: inline-block;
        line-height: 1.5;
    }

    .fd-doc-card {
        border-radius: 20px;
        padding: 1rem;
    }

    .fd-doc-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fd-doc-card__actions {
        flex-direction: column;
    }

        .fd-doc-card__actions .fd-btn,
        .fd-share-actions .fd-action-btn {
            width: 100%;
        }

    .fd-share-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .fd-qr-preview img {
        width: 124px;
        height: 124px;
    }
}

/* My documents */

.fd-doc-list {
    display: grid;
    gap: 1.15rem;
}

.fd-doc-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
}

    .fd-doc-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
        border-color: #cbd5e1;
    }

.fd-doc-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .fd-doc-card__header > div:first-child {
        min-width: 0;
        flex: 1;
    }

.fd-doc-title {
    margin: 0 0 0.35rem;
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.fd-doc-meta {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.6;
    word-break: break-word;
}

    .fd-doc-meta strong {
        display: inline-block;
        color: #0f172a;
        font-size: 1rem;
        margin-bottom: 0.15rem;
    }

.fd-doc-status {
    flex-shrink: 0;
}

.fd-doc-card__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

    .fd-doc-card__actions .fd-btn {
        min-width: 150px;
    }

.fd-doc-share {
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(180px, 0.8fr);
    gap: 1.25rem;
    align-items: start;
}

.fd-doc-share__content {
    min-width: 0;
}

.fd-doc-share .fd-form-group {
    margin-bottom: 0.9rem;
}

.fd-doc-share .fd-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.45rem;
}

.fd-doc-share .fd-input {
    background: #f8fafc;
    border-color: #dbe3ee;
    color: #0f172a;
    font-size: 0.95rem;
    min-height: 46px;
}

    .fd-doc-share .fd-input[readonly] {
        cursor: default;
    }

.fd-share-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0.2rem 0 0.95rem;
}

    .fd-share-actions .fd-action-btn {
        min-height: 44px;
        padding: 0.72rem 1rem;
        border-radius: 12px;
        font-weight: 700;
    }

.fd-copy-feedback {
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.88rem;
    font-weight: 700;
}

.fd-qr-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .fd-qr-preview img {
        width: 160px;
        height: 160px;
        object-fit: contain;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        padding: 0.8rem;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    }

.fd-profile-grid--single {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: none;
}

    .fd-profile-grid--single .fd-profile-side {
        width: 100%;
    }

.fd-verify-search-input-wrap {
    position: relative;
    width: 100%;
}

/* make room for the icon INSIDE the input */
.fd-verify-search-input {
    width: 100%;
    padding-right: 3rem; /* space for 📎 */
}

/* the 📎 button */
.fd-verify-attach-btn {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    transition: all 0.2s ease;
}

    /* hover effect */
    .fd-verify-attach-btn:hover {
        background: #f1f5f9;
        color: #166534;
    }

/* hide real input */
.fd-verify-hidden-file {
    display: none;
}

.fd-verify-search-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.fd-verify-dropzone {
    flex: 1;
    border-radius: 14px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fd-verify-dropzone--active {
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.14);
}

.fd-verify-attach-btn:hover {
    background: #f1f5f9;
    color: #166534;
}


.fd-login-header {
    margin-bottom: 1.35rem;
}

.fd-login-badge {
    display: inline-flex;
    margin-bottom: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 800;
}

.fd-login-form {
    display: grid;
    gap: 0.95rem;
}

.fd-login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.fd-login-forgot {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

    .fd-login-forgot:hover {
        color: #166534;
        text-decoration: underline;
    }

.fd-login-options {
    margin-top: -0.25rem;
}

.fd-checkbox-row--compact {
    margin-top: 0;
    cursor: pointer;
}

.fd-login-submit {
    width: 100%;
    margin-top: 0.25rem;
}

.fd-login-help {
    margin-top: 0.15rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.fd-login-page {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background: #f8fafc;
}


.fd-login-badge {
    display: inline-flex;
    margin-bottom: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 800;
}

.fd-login-card h1 {
    margin: 0;
    color: #0f172a;
    font-size: 1.8rem;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.fd-login-card > p {
    margin: 0.55rem 0 1.35rem;
    color: #64748b;
    line-height: 1.6;
}

.fd-login-form {
    display: grid;
    gap: 0.95rem;
}

.fd-login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.fd-login-link {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

    .fd-login-link:hover {
        color: #166534;
        text-decoration: underline;
    }

.fd-login-remember {
    margin-top: -0.15rem;
    cursor: pointer;
}

.fd-login-submit {
    width: 100%;
}

.fd-login-help {
    margin-top: 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.fd-login-page {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    background: radial-gradient(circle at top, rgba(22, 101, 52, 0.08), transparent 32rem), #f8fafc;
}

.fd-login-trust {
    width: 100%;
    max-width: 760px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

    .fd-login-trust div {
        background: rgba(255,255,255,0.8);
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 0.9rem;
    }

    .fd-login-trust strong {
        display: block;
        color: #0f172a;
        font-size: 0.9rem;
    }

    .fd-login-trust span {
        display: block;
        margin-top: 0.25rem;
        color: #64748b;
        font-size: 0.85rem;
        line-height: 1.4;
    }

@media (max-width: 700px) {
    .fd-login-trust {
        grid-template-columns: 1fr;
    }
}
.fd-login-page {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    align-items: center;
}

/* LEFT SIDE */

.fd-login-side {
    background: linear-gradient(135deg, #052e16, #166534);
    color: white;
    border-radius: 28px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 520px;
}

.fd-login-side__badge {
    width: fit-content;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.fd-login-side h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1;
    font-weight: 900;
}

    .fd-login-side h1 span {
        display: block;
        color: #bbf7d0;
    }

.fd-login-side p {
    margin: 1.2rem 0 0;
    color: rgba(255,255,255,.85);
    line-height: 1.7;
}

.fd-login-side__points {
    margin-top: 1.5rem;
    display: grid;
    gap: .6rem;
    font-weight: 600;
}

/* RIGHT CARD */

.fd-login-card {
    background: white;
    border-radius: 24px;
    padding: 1.6rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.fd-login-title {
    margin: 0 0 1rem;
    font-size: 1.6rem;
    font-weight: 800;
}

.fd-login-form {
    display: grid;
    gap: 1rem;
}

.fd-login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fd-login-link {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

    .fd-login-link:hover {
        color: #166534;
        text-decoration: underline;
    }

.fd-login-submit {
    width: 100%;
    height: 52px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(22, 101, 52, 0.25);
    transition: all 0.2s ease;
}

.fd-login-help {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

/* MOBILE */

@media (max-width: 900px) {
    .fd-login-page {
        grid-template-columns: 1fr;
    }

    .fd-login-side {
        min-height: auto;
    }
}

/* ===============================
   LANDING + LOGIN UNIFIED STYLE
   =============================== */

/* HOME */

.fd-home {
    min-height: calc(100vh - 72px);
    background: #f8fafc;
    display: flex;
    align-items: center;
}

.fd-home-hero {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr; /* instead of 1.1 / 0.9 */
    gap: 1.5rem; /* was 2rem+ */
    align-items: center;
    align-items: stretch; /* KEY CHANGE */
}

/* LEFT GREEN PANEL (same style as login) */

.fd-home-side {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #064e3b, #166534);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 430px;
    padding: 1.8rem 2rem;
}

    .fd-home-side::after {
        content: "";
    position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 40%);
        pointer-events: none;
    }

    .fd-home-badge,
    .fd-home-side h1,
    .fd-home-side p,
    .fd-home-actions {
        position: relative;
        z-index: 1;
    }

.fd-home-badge {
    width: fit-content;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.fd-home-side h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.1rem);
    font-weight: 900;
    line-height: 1;
}

    .fd-home-side h1 span {
        display: block;
        color: #bbf7d0;
    }

.fd-home-side p {
    margin-top: 1.2rem;
    color: rgba(255,255,255,.85);
    line-height: 1.7;
}

.fd-home-actions {
    margin-top: 1.6rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

    .fd-home-actions .fd-btn--ghost {
        background: rgba(255,255,255,.18);
        color: white;
        border-color: rgba(255,255,255,.3);
    }

/* RIGHT PROCESS CARD */

.fd-home-process-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fd-home-process-title {
    text-align: center;
    width: 100%;
    max-width: 420px; /* same visual width as card */
    margin-bottom: 0.75rem;
}

.fd-home-process-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.fd-home-process-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
.fd-home-process-step {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 0;
}

    .fd-home-process-step + .fd-home-process-step {
        border-top: 1px solid #e2e8f0;
    }

.fd-home-process-step span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.fd-home-process-step h3 {
    margin: 0;
    font-size: 1rem;
}

.fd-home-process-step p {
    margin: .3rem 0 0;
    color: #64748b;
}

/* LOGIN PAGE */

.fd-login-page {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    align-items: center;
}

/* LEFT SIDE (same style as home) */

.fd-login-side {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #064e3b, #166534);
    color: white;
    border-radius: 28px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .fd-login-side::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 40%);
    }

    .fd-login-side__badge,
    .fd-login-side h1,
    .fd-login-side p {
        position: relative;
        z-index: 1;
    }

.fd-login-side__badge {
    padding: .4rem .75rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-weight: 800;
    margin-bottom: 1rem;
}

.fd-login-side h1 span {
    color: #bbf7d0;
}

/* RIGHT CARD */

.fd-login-card {
    background: white;
    border-radius: 24px;
    padding: 1.7rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.fd-login-title {
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 800;
}

.fd-login-form {
    display: grid;
    gap: 1rem;
}

.fd-login-submit {
    width: 100%;
    height: 52px;
    font-weight: 700;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(22, 101, 52, 0.25);
}

/* MOBILE */

@media (max-width: 900px) {
    .fd-home-hero,
    .fd-login-page {
        grid-template-columns: 1fr;
    }

    .fd-home-side,
    .fd-login-side {
        min-height: auto;
    }
}

/* PAGE WRAPPER */
.fd-contact-page {
    min-height: calc(100vh - 72px);
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
    background: radial-gradient(circle at top, rgba(22, 101, 52, 0.08), transparent 35rem), #f8fafc;
}

.fd-contact-shell {
    width: 100%;
    max-width: 1100px;
    display: grid;
    gap: 2rem;
}

/* HEADER */
.fd-contact-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.fd-contact-badge {
    display: inline-flex;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 0.9rem;
}

.fd-contact-header h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.fd-contact-header p {
    margin-top: 0.6rem;
    color: #64748b;
    line-height: 1.7;
}

/* GRID */
.fd-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* CARD */
.fd-contact-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

    .fd-contact-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
    }

/* ICON */
.fd-contact-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* TEXT */
.fd-contact-card h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.fd-contact-card p {
    margin: 0.5rem 0 0.75rem;
    color: #64748b;
    font-size: 0.95rem;
}

/* LINK */
.fd-contact-card a {
    font-weight: 700;
        color: #166534;
    text-decoration: none;
    }

    .fd-contact-card a:hover {
        text-decoration: underline;
}

/* MOBILE */
@media (max-width: 900px) {
    .fd-contact-grid {
        grid-template-columns: 1fr;
    }
}