.fd-module {
    --fd-accent: #673ab7;
    --fd-border: #dadce0;
    --fd-bg: #f8f9fa;
    --fd-panel-bg: #f1f3f4;
    --fd-panel-border: #dfe1e5;
    --fd-card-bg: #fff;
    --fd-text: #202124;
    --fd-text-secondary: #3c4043;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 2rem;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    color: var(--fd-text);
}

.fd-btn {
    border-radius: 4px;
}

.fd-btn--primary {
    background: var(--fd-accent);
    border-color: var(--fd-accent);
}

.fd-btn--dashed {
    border: 2px dashed var(--fd-border);
    background-color: #eceff1 !important;
    color: var(--fd-text-secondary);
    width: 100%;
    padding: 1rem;
    box-shadow: none;
}

.fd-btn--dashed:hover,
.fd-btn--dashed:focus,
.fd-btn--dashed:active {
    background-color: #eceff1 !important;
    border-color: var(--fd-border);
    color: var(--fd-text-secondary);
    box-shadow: none;
}

.fd-muted {
    color: var(--fd-text-secondary);
}

.fd-busy-host {
    position: relative;
}

.fd-busy {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.78);
    border-radius: inherit;
    min-height: 120px;
}

.fd-busy__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.fd-busy--center {
    position: fixed;
    inset: 0;
    z-index: 10005;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 0;
    min-height: 0;
}

.fd-busy--center .fd-busy__panel {
    background: #ffffff;
    border: 1px solid #eceff1;
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(60, 64, 67, 0.14);
    padding: 1.25rem 1.75rem;
    min-width: 200px;
}

.fd-edit-dialog.e-dialog {
    max-width: calc(100vw - 2rem);
}

.fd-edit-dialog.e-dialog .e-dlg-header-content,
.fd-edit-dialog.e-dialog .e-dlg-content {
    background: #fcfcfd;
}

.fd-edit-dialog.e-dialog .e-dlg-content {
    padding: 0.75rem 1rem 1rem;
    max-height: min(72vh, 640px);
    overflow: auto;
}

.fd-response-edit .fd-field-card {
    padding: 0.85rem 1rem;
}

.fd-response-edit .fd-response-edit__actions {
    margin-top: 0.75rem;
}

.fd-busy__message {
    margin: 0;
    color: var(--fd-text-secondary);
    font-size: 0.95rem;
    text-align: center;
    padding: 0 1rem;
}

.fd-list__header,
.fd-designer__toolbar,
.fd-stats__header,
.fd-responses__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Skjemaliste – hero (Speech-inspirert) */
.fd-hero {
    position: relative;
    border-radius: 0.85rem;
    overflow: hidden;
    margin-bottom: 2rem;
    min-height: 140px;
    display: flex;
    align-items: flex-end;
}

.fd-hero__media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(69, 39, 160, 0.25) 0%, rgba(49, 27, 146, 0.72) 100%),
        linear-gradient(145deg, #311b92 0%, #4527a0 35%, #673ab7 60%, #512da8 100%);
}

.fd-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(179, 157, 219, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(126, 87, 194, 0.22) 0%, transparent 40%);
}

.fd-hero__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
    color: #fff;
}

.fd-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.fd-hero__copy {
    min-width: 0;
}

.fd-hero__title {
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    max-width: 760px;
    margin: 0 0 0.4rem;
}

.fd-hero__sub {
    max-width: 640px;
    opacity: 0.92;
    margin: 0 0 0.85rem;
    line-height: 1.4;
    font-size: 0.9375rem;
}

.fd-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.fd-hero__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fd-hero__filter-btn {
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.fd-hero__filter-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.fd-hero__filter-btn--active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.95);
    border-width: 2px;
    color: #fff;
    font-weight: 600;
}

.fd-hero__filter-btn--active:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.fd-hero__badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.fd-hero-btn.e-btn,
.fd-hero-btn {
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    padding: 0.65rem 1.25rem !important;
}

.fd-module .fd-hero .fd-hero-btn--primary.e-btn {
    background: linear-gradient(135deg, #9575cd 0%, #673ab7 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.fd-module .fd-hero .fd-hero-btn--primary.e-btn:hover {
    filter: brightness(1.06);
}

.fd-module .fd-hero .fd-hero-btn--secondary.e-btn {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #fff !important;
    box-shadow: none;
}

.fd-module .fd-hero .fd-hero-btn--secondary.e-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.fd-form-code-picker__list {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.fd-form-code-picker__label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
}

.fd-form-code-picker__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    color: var(--fd-text-secondary);
}

.fd-form-code-picker__result-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.fd-form-code-picker__result {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    margin-bottom: 0.75rem;
}

.fd-form-code-picker__query {
    margin-bottom: 1rem;
}

.fd-form-import__label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.fd-form-import__dropdown {
    margin-bottom: 1rem;
}

.fd-list-section {
    margin-bottom: 2rem;
}

.fd-overview-panel,
.fd-groups__panel {
    background: var(--fd-panel-bg);
    border: 1px solid var(--fd-panel-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.fd-overview-panel .fd-form-card,
.fd-groups__panel .fd-form-card {
    background: var(--fd-card-bg);
    border-color: var(--fd-border);
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.14);
}

.fd-overview-panel .fd-form-card--action,
.fd-groups__panel .fd-form-card--action {
    background: var(--fd-card-bg);
}

.fd-list__panel {
    margin-top: 0.5rem;
}

.fd-overview-panel__header,
.fd-groups__panel-header {
    margin-bottom: 1.25rem;
}

.fd-overview-panel__title,
.fd-list-section__title,
.fd-groups__panel-header h2,
.fd-overview-panel__header h2 {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #311b92;
}

.fd-overview-panel__subtitle,
.fd-groups__panel-subtitle {
    margin: 0;
}

.fd-list-section__title {
    margin: 0 0 1.25rem;
}

.fd-list__empty {
    margin: 1rem 0 0;
}

@media (max-width: 576px) {
    .fd-hero {
        min-height: 107px;
    }

    .fd-hero__overlay {
        padding: 1rem 1.15rem;
    }

    .fd-hero__sub {
        font-size: 0.875rem;
        margin-bottom: 0.65rem;
    }

    .fd-overview-panel,
    .fd-groups__panel {
        padding: 1rem 0.65rem 1.15rem;
        border-radius: 10px;
    }

    .fd-overview-panel__title,
    .fd-list-section__title,
    .fd-groups__panel-header h2,
    .fd-overview-panel__header h2 {
        font-size: 1.25rem;
    }

    .fd-list__grid,
    .fd-registration-form-picker__grid,
    .fd-groups__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

    .fd-overview-panel .fd-form-card,
    .fd-groups__panel .fd-form-card,
    .fd-registration-form-picker__card {
        min-width: 0;
        max-width: 100%;
    }

    .fd-registration-form-picker__card h3,
    .fd-overview-panel .fd-form-card h3 {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

.fd-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
}

.fd-form-card,
.fd-field-card,
.fd-designer__header-card,
.fd-stat-card {
    background: var(--fd-card-bg);
    border: 1px solid var(--fd-border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
}

.fd-form-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.fd-form-card__top h3 {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.fd-form-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
}

.fd-form-card--listed {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fd-form-card__body {
    flex: 1 1 auto;
    min-height: 0;
}

.fd-form-card__description {
    margin: 0.35rem 0 0;
}

.fd-form-card__period {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
}

.fd-form-card__period-text {
    color: var(--fd-text-secondary);
}

.fd-form-card__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 500;
}

.fd-form-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.fd-form-card__actions .fd-btn--design.e-btn {
    background: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: #fff !important;
}

.fd-form-card__actions .fd-btn--design.e-btn:hover,
.fd-form-card__actions .fd-btn--design.e-btn:focus {
    background: #1557b0 !important;
    border-color: #1557b0 !important;
    color: #fff !important;
}

.fd-form-card__actions .fd-btn--groups.e-btn {
    background: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: #fff !important;
}

.fd-form-card__actions .fd-btn--groups.e-btn:hover,
.fd-form-card__actions .fd-btn--groups.e-btn:focus {
    background: #1557b0 !important;
    border-color: #1557b0 !important;
    color: #fff !important;
}

.fd-form-card__actions .fd-btn--success.e-btn {
    background: #188038 !important;
    border-color: #188038 !important;
    color: #fff !important;
}

.fd-form-card__actions .fd-btn--success.e-btn:hover,
.fd-form-card__actions .fd-btn--success.e-btn:focus {
    background: #137333 !important;
    border-color: #137333 !important;
    color: #fff !important;
}

.fd-form-card__actions .fd-btn--copy.e-btn {
    background: #f9ab00 !important;
    border-color: #f9ab00 !important;
    color: #202124 !important;
}

.fd-form-card__actions .fd-btn--publish.e-btn {
    background: var(--fd-accent) !important;
    border-color: var(--fd-accent) !important;
    color: #fff !important;
}

.fd-form-card__actions .fd-btn--publish.e-btn:hover:not(:disabled),
.fd-form-card__actions .fd-btn--publish.e-btn:focus:not(:disabled) {
    background: #5e35b1 !important;
    border-color: #5e35b1 !important;
    color: #fff !important;
}

.fd-form-card__actions .fd-btn--publish.e-btn:disabled {
    opacity: 0.55;
}

.fd-form-card__actions .fd-btn--copy.e-btn:hover,
.fd-form-card__actions .fd-btn--copy.e-btn:focus {
    background: #e37400 !important;
    border-color: #e37400 !important;
    color: #202124 !important;
}

.fd-form-card__actions .fd-btn--delete.e-btn {
    background: #fff !important;
    border-color: #c5221f !important;
    color: #c5221f !important;
}

.fd-form-card__actions .fd-btn--delete.e-btn:hover:not(:disabled),
.fd-form-card__actions .fd-btn--delete.e-btn:focus:not(:disabled) {
    background: #fce8e6 !important;
    border-color: #b31412 !important;
    color: #b31412 !important;
}

.fd-form-card__actions .fd-btn--delete.e-btn:disabled {
    opacity: 0.55;
}

.fd-form-card--action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    border-style: dashed;
    background: #f8f9fa;
}

.fd-form-card--clickable {
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.fd-form-card--clickable:hover,
.fd-form-card--clickable:focus-visible {
    border-color: var(--fd-accent);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(103, 58, 183, 0.12);
    outline: none;
}

.fd-form-card__action-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    gap: 0.35rem;
}

.fd-form-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    background: rgba(103, 58, 183, 0.12);
    color: var(--fd-accent);
}

.fd-form-card__action-title {
    margin: 0;
    font-size: 1.05rem;
}

.fd-form-card__action-text {
    margin: 0;
    font-size: 0.875rem;
    max-width: 14rem;
}

.fd-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #e8eaed;
}

.fd-badge--ok {
    background: #e6f4ea;
    color: #137333;
}

.fd-badge--draft {
    background: #fef7e0;
    color: #b06000;
}

.fd-badge--login {
    background: #e8f0fe;
    color: #1967d2;
}

.fd-badge--period-active {
    background: #e6f4ea;
    color: #137333;
}

.fd-badge--period-not-started {
    background: #fef7e0;
    color: #b06000;
}

.fd-badge--period-expired {
    background: #fce8e6;
    color: #c5221f;
}

.fd-field-card {
    margin-bottom: 1.75rem;
}

.fd-designer__header-card {
    margin-bottom: 1.75rem;
}

.fd-designer__fields {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.fd-designer__fields .fd-field-card {
    margin-bottom: 0;
}

.fd-designer.fd-fill {
    max-width: none;
}

.fd-designer__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.fd-designer__workspace {
    min-width: 0;
}

.fd-designer__workspace > .fd-fill__panel {
    background: var(--fd-fill-surface);
}

.fd-designer__live-preview {
    position: sticky;
    top: 1rem;
    min-width: 0;
}

.fd-designer__live-preview-title {
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--fd-fill-border-soft);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--fd-fill-text-secondary);
}

.fd-designer__live-preview-panel {
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    background: var(--fd-fill-surface);
}

@media (max-width: 991.98px) {
    .fd-designer__layout {
        grid-template-columns: 1fr;
    }

    .fd-designer__live-preview {
        position: static;
    }

    .fd-designer__live-preview-panel {
        max-height: none;
    }
}

.fd-fill__nav.fd-designer__toolbar {
    margin-bottom: 1rem;
}

.fd-designer__preview {
    padding: 1rem 1.25rem;
    background: var(--fd-fill-surface-block);
    border: 1px solid var(--fd-fill-border-soft);
    border-radius: 8px;
}

.fd-designer__preview--form {
    margin-bottom: 0;
}

.fd-designer__preview--hidden {
    padding: 0.75rem 1rem;
}

.fd-designer__preview-input {
    pointer-events: none;
}

.fd-designer__settings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--fd-fill-border-soft);
}

.fd-designer__settings--form {
    margin-top: 0;
    margin-bottom: 1.75rem;
    padding-top: 0;
    border-top: none;
}

.fd-designer__settings-title {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--fd-fill-text-secondary);
}

.fd-designer__settings-title--section {
    margin-top: 1rem;
}

.fd-designer__setting-label {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fd-fill-text-secondary);
}

.fd-designer__settings > .fd-designer__setting-label:first-of-type,
.fd-designer__settings > .fd-designer__settings-title + .fd-designer__setting-label {
    margin-top: 0;
}

.fd-designer .fd-field-card__body .fd-designer__preview .fd-fill__label {
    margin-bottom: 0.35rem;
}

.fd-designer .fd-field-card__body label.fd-designer__setting-label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--fd-fill-text-secondary);
}

.fd-field-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--fd-border);
}

.fd-field-card__type {
    max-width: 220px;
}

.fd-field-card__actions {
    display: flex;
    gap: 0.25rem;
}

.fd-field-card__body label {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.fd-icon-btn {
    border: 1px solid var(--fd-border);
    background: #fff;
    border-radius: 4px;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

.fd-icon-btn--danger {
    color: #c5221f;
}

.fd-checkbox,
.fd-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.35rem 0;
}

.fd-options {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--fd-border);
}

.fd-option-row {
    display: grid;
    grid-template-columns: 1fr 120px auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.fd-limit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.fd-limit-row label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.fd-limit-hint {
    margin-top: 0.25rem;
    margin-bottom: 0;
    font-size: 0.8125rem;
}

.fd-field-card__flags {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.fd-designer__title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0;
}

.fd-designer__flags {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.fd-designer__add {
    margin-top: 0.5rem;
}

.fd-fill__header {
    margin: 0 0 1rem;
}

.fd-fill {
    --fd-fill-surface: var(--fd-panel-bg);
    --fd-fill-surface-block: #ffffff;
    --fd-fill-surface-muted: #eceff1;
    --fd-fill-border: var(--fd-panel-border);
    --fd-fill-border-soft: #e8eaed;
    --fd-fill-text: #202124;
    --fd-fill-text-secondary: #3c4043;
    --fd-fill-shadow: 0 1px 3px rgba(60, 64, 67, 0.12), 0 4px 12px rgba(60, 64, 67, 0.08);

    max-width: 720px;
    margin: 0 auto;
    padding: 0.5rem 0 2rem;
    color: var(--fd-fill-text);
    font-family: "Google Sans", Roboto, Arial, sans-serif;
}

/* Felles blokk-bakgrunn: skjemadefinisjon, felt i design, registrering og forhåndsvisning */
.fd-fill__panel .fd-fill__header,
.fd-fill__panel .fd-field-card,
.fd-fill__panel .fd-fill__contact,
.fd-designer__settings--form,
.fd-designer__live-preview-inner > .fd-fill__header,
.fd-designer__live-preview-inner .fd-field-card {
    background: var(--fd-fill-surface-block);
    border: 1px solid var(--fd-fill-border-soft);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: none;
}

.fd-fill__panel .fd-fill__header,
.fd-designer__live-preview-inner > .fd-fill__header {
    margin: 0 0 1rem;
    padding-bottom: 1rem;
    border-bottom: none;
}

.fd-fill__panel .fd-field-card,
.fd-designer__live-preview-inner .fd-field-card {
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
}

.fd-fill__panel .fd-field-card:last-child,
.fd-designer__live-preview-inner .fd-field-card:last-child {
    margin-bottom: 0;
}

.fd-fill__nav {
    margin-bottom: 1rem;
}

.fd-fill__panel {
    background: var(--fd-fill-surface);
    border: 1px solid var(--fd-fill-border);
    border-radius: 12px;
    box-shadow: var(--fd-fill-shadow);
    padding: 1.75rem 2rem 2rem;
    color: var(--fd-fill-text);
}

.fd-fill__panel.fd-busy-host,
.fd-response-edit.fd-busy-host,
.fd-stats.fd-busy-host,
.fd-designer.fd-busy-host {
    min-height: 160px;
}

.fd-fill__panel h2,
.fd-fill__panel h3,
.fd-fill__panel h4 {
    color: var(--fd-fill-text);
}

.fd-fill__panel label {
    color: var(--fd-fill-text);
    font-weight: 500;
}

.fd-fill__panel .fd-muted {
    color: var(--fd-fill-text-secondary);
}

.fd-fill__panel .form-control,
.fd-fill__panel input[type="text"],
.fd-fill__panel input[type="email"],
.fd-fill__panel input[type="number"],
.fd-fill__panel input[type="date"],
.fd-fill__panel textarea,
.fd-fill__panel select.form-select {
    background-color: var(--fd-fill-surface);
    color: var(--fd-fill-text);
    border: 1px solid var(--fd-fill-border);
    border-radius: 4px;
}

.fd-fill__panel .form-control:focus,
.fd-fill__panel input:focus,
.fd-fill__panel textarea:focus {
    border-color: var(--fd-accent);
    box-shadow: 0 0 0 0.15rem rgba(103, 58, 183, 0.15);
    outline: 0;
}

.fd-fill__panel .fd-field-card {
    border-color: var(--fd-fill-border-soft);
}

.fd-fill__label {
    display: block;
    margin-bottom: 0.35rem;
}

.fd-fill__label-text {
    font-weight: 500;
    color: var(--fd-fill-text);
}

.fd-fill__label-text--help {
    cursor: help;
    border-bottom: 1px dotted var(--fd-fill-text-secondary);
    position: relative;
    display: inline;
}

.fd-fill__label-text--help::after {
    content: attr(data-help);
    position: absolute;
    left: 0;
    top: calc(100% + 0.4rem);
    z-index: 5;
    min-width: 12rem;
    max-width: 22rem;
    padding: 0.5rem 0.75rem;
    background: #3c4043;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
}

.fd-fill__label-text--help:hover::after,
.fd-fill__label-text--help:focus::after,
.fd-fill__label-text--help:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

.fd-fill__panel .fd-checkbox,
.fd-fill__panel .fd-radio {
    color: var(--fd-fill-text);
}

.fd-fill__panel .fd-fill__success,
.fd-fill__panel .fd-auth-notice {
    margin-top: 0;
}

.fd-fill__panel .fd-section-text {
    color: var(--fd-fill-text);
}

@media (max-width: 576px) {
    .fd-fill {
        padding: 0 0 1.5rem;
    }

    .fd-fill__panel {
        padding: 1.25rem 1rem 1.5rem;
        border-radius: 8px;
    }
}

.fd-fill__full {
    margin-top: 1rem;
}

.fd-designer__max-reg {
    max-width: 12rem;
    margin-top: 0.25rem;
}

.fd-fill__success {
    padding: 1.5rem;
    background: #e6f4ea;
    border: 1px solid #c6e7cf;
    border-radius: 8px;
    color: #137333;
}

.fd-fill__success h2 {
    color: #137333;
    margin-top: 0;
}

.fd-payment {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    background: var(--fd-fill-surface-muted);
    border: 1px solid var(--fd-fill-border-soft);
    border-radius: 8px;
    color: var(--fd-fill-text);
}

.fd-payment__title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.fd-payment__summary {
    margin-bottom: 1rem;
}

.fd-payment__summary p {
    margin: 0.25rem 0;
}

.fd-payment__amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: #137333;
}

.fd-payment__badge {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #e6f4ea;
    border: 1px solid #c6e7cf;
    color: #137333;
    font-weight: 600;
}

.fd-payment__bank {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--fd-fill-border-soft);
}

.fd-payment-return__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.fd-payment-return-panel {
    max-width: 640px;
    margin: 1rem auto;
}

.fd-payment-return--cancelled {
    background: #fef7e0;
    border-color: #f9e076;
    color: #7a5c00;
}

.fd-payment-return--cancelled h2 {
    color: #7a5c00;
}

.fd-fill__total {
    margin: 1.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fd-fill-border-soft);
}

.fd-required {
    color: #c5221f;
}

.fd-amount {
    color: var(--fd-text-secondary);
    font-size: 0.875rem;
}

.fd-auth-notice {
    padding: 1.25rem 1.5rem;
    border: 1px solid #f9ab00;
    background: #fef7e0;
    border-radius: 8px;
    color: #3c4043;
}

.fd-stats__summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fd-stat-card__label {
    display: block;
    font-size: 0.75rem;
    color: var(--fd-text-secondary);
    margin-bottom: 0.25rem;
}

.fd-stats__field {
    margin-bottom: 1rem;
}

.fd-stats__registration {
    margin-bottom: 1.5rem;
}

.fd-stats__registration h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.fd-stats__registration-form {
    font-weight: 600;
}

.fd-stats__registration-intro {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
}

.fd-stats__registration-status {
    margin: 0.5rem 0 0;
}

.fd-stats__registration-full {
    margin: 0.35rem 0 0;
    color: #b06000;
    font-weight: 500;
}

.fd-stats__registration-extra {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
}

.fd-stats__progress {
    height: 0.5rem;
    background: #e8eaed;
    border-radius: 999px;
    overflow: hidden;
}

.fd-stats__progress-bar {
    height: 100%;
    background: var(--fd-accent);
    border-radius: 999px;
    min-width: 0;
    max-width: 100%;
}

.fd-stats__metric-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin: 0.35rem 0 0;
    padding: 0.15rem 0;
    border-bottom: 1px solid var(--fd-border);
    font-size: 0.875rem;
    line-height: 1.35;
}

.fd-stats__metric-line--head {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fd-text-secondary);
}

.fd-stats__metric-line-label {
    flex: 1 1 auto;
    min-width: 0;
}

.fd-stats__metric-line-values {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 4.5rem 5.5rem 5.5rem;
    column-gap: 0.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fd-stats__metric-line-values--count-only {
    grid-template-columns: 4.5rem;
}

.fd-stats__text-line {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.35;
    padding: 0.15rem 0;
    border-bottom: 1px solid var(--fd-border);
}

.fd-stats__field .fd-stats__text-line:first-of-type {
    margin-top: 0.75rem;
}

.fd-responses__grid-cell {
    min-width: 8rem;
    max-width: 16rem;
}

.fd-responses__grid-options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fd-responses__grid-option {
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--fd-text-secondary);
    white-space: nowrap;
}

.fd-responses__grid-option--selected {
    color: var(--fd-text);
    font-weight: 500;
}

.fd-responses__header h2 {
    margin: 0;
}

.fd-responses__stats {
    margin-bottom: 1.25rem;
}

.fd-responses__table-wrap {
    overflow-x: auto;
}

.fd-responses__table {
    width: 100%;
    border-collapse: collapse;
    background: var(--fd-card-bg);
    border: 1px solid var(--fd-border);
    border-radius: 8px;
    overflow: hidden;
}

.fd-responses__table th,
.fd-responses__table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--fd-border);
    vertical-align: top;
}

.fd-responses__table th {
    background: #f8f9fa;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fd-text-secondary);
}

.fd-responses__row {
    cursor: pointer;
}

.fd-responses__row:hover {
    background: #f8f9fa;
}

.fd-responses__row--expanded {
    background: #f3f6fc;
}

.fd-responses__actions-col {
    width: 4.75rem;
    text-align: right;
    padding-right: 0.5rem !important;
    white-space: nowrap;
}

.fd-responses__row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.fd-responses__payment-select {
    min-width: 7.5rem;
    padding: 0.2rem 1.75rem 0.2rem 0.45rem;
    font-size: 0.875rem;
    line-height: 1.35;
}

.fd-responses__edit-btn,
.fd-responses__mail-btn,
.fd-responses__delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fd-responses__edit-btn .e-icons,
.fd-responses__mail-btn .e-icons,
.fd-responses__delete-btn .e-icons {
    font-size: 1rem;
}

.fd-response-edit__meta {
    margin: 0 0 1rem;
}

.fd-response-edit__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.fd-responses__detail-row td {
    padding: 0;
    border-bottom: 1px solid var(--fd-border);
    background: #f0f1f3;
}

.fd-responses__detail-panel {
    padding: 0.35rem 0.75rem 0.45rem;
}

.fd-responses__detail-list {
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.fd-responses__detail-item {
    margin: 0;
    padding: 0.12rem 0;
}

.fd-responses__detail-item span {
    display: inline;
}

.fd-responses__detail-label {
    font-weight: 500;
    color: var(--fd-text);
    margin-right: 0.3rem;
    white-space: nowrap;
}

.fd-responses__detail-value {
    color: var(--fd-text-secondary);
    white-space: pre-wrap;
}

.fd-responses__detail-amount {
    margin-left: 0.3rem;
    white-space: nowrap;
}

.fd-responses__detail-option {
    display: inline;
    margin-right: 0.35rem;
    white-space: nowrap;
    line-height: 1.2;
}

.fd-responses__detail-option--selected {
    color: var(--fd-text);
    font-weight: 500;
}

.fd-responses__hint {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
}

.fd-groups__toolbar {
    margin-bottom: 1rem;
}

.fd-groups__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.fd-groups__header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #311b92;
}

.fd-groups__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
}

.fd-groups__card h3 {
    margin: 0 0 0.35rem;
}

.fd-groups__import-meta {
    font-size: 0.85rem;
    margin: 0.35rem 0 0.75rem;
}

.fd-groups__dialog label {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.fd-groups__dialog .fd-limit-row {
    margin-top: 0.5rem;
}

.fd-groups__section {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fd-border);
}

.fd-groups__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.fd-groups__section--import {
    background: #fafafa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--fd-border);
}

.fd-groups__items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fd-groups__items-head,
.fd-groups__items-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    gap: 0.5rem;
    align-items: center;
}

.fd-groups__items-head {
    font-size: 0.85rem;
    color: var(--fd-text-secondary);
    margin-bottom: 0.25rem;
}

.fd-section-text {
    color: var(--fd-text);
    line-height: 1.5;
    white-space: pre-wrap;
}

.fd-section-text--sm {
    font-size: 0.875rem;
}

.fd-section-text--md {
    font-size: 1rem;
}

.fd-section-text--lg {
    font-size: 1.125rem;
}

.fd-section-text--sub {
    font-size: 1.25rem;
    font-weight: 500;
}

.fd-section-text--heading {
    font-size: 1.5rem;
    font-weight: 500;
}

.fd-section-text--list-title {
    margin-bottom: 0.5rem;
}

.fd-bullet-list {
    margin: 0;
    padding-left: 1.5rem;
}

.fd-fill__display {
    margin-bottom: 1.25rem;
}

.fd-bullets {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--fd-border);
}

.fd-bullets__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.fd-bullets__marker {
    color: var(--fd-text-secondary);
    font-size: 1.25rem;
    line-height: 1;
}

.fd-field-card__text-size {
    max-width: 220px;
}

.fd-display-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed var(--fd-border);
    border-radius: 6px;
    background: #fafafa;
}

.fd-display-preview .fd-muted {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

.fd-assign__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fd-assign__header h2 {
    margin: 0 0 0.25rem;
}

.fd-assign__card {
    margin-top: 0.5rem;
}

.fd-assign__field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.fd-assign__field-select {
    max-width: 28rem;
    margin-bottom: 1rem;
}

.fd-assign__hint {
    margin-bottom: 1rem;
}

.fd-assign__panels {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1.25rem;
    width: 100%;
}

.fd-assign__panel {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fd-assign__panel--wide {
    flex: 1.75 1 0;
}

.fd-assign__panel-title {
    font-weight: 600;
    margin: 0;
}

.fd-assign__panel-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.fd-assign__toolbar-actions {
    display: flex;
    gap: 0.75rem;
}

.fd-btn--link {
    background: none;
    border: none;
    padding: 0;
    color: var(--fd-primary, #0d6efd);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.fd-assign__checklist {
    flex: 1 1 auto;
    min-height: 18rem;
    max-height: 24rem;
    overflow: auto;
    border: 1px solid var(--fd-border);
    border-radius: 6px;
    padding: 0.35rem;
    background: #fff;
}

.fd-assign__check-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.5rem;
    margin: 0;
    border-radius: 4px;
    cursor: pointer;
    color: var(--fd-text, #202124);
    background: transparent;
}

.fd-assign__check-row:hover {
    background: #f1f3f4;
}

.fd-assign__check-row--selected {
    background: #e8f0fe;
}

.fd-assign__check-row input {
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.fd-assign__participant-name {
    font-weight: 500;
}

.fd-assign__participant-group {
    font-size: 0.875rem;
}

.fd-assign__actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fd-border);
}

@media (max-width: 576px) {
    .fd-assign__panels {
        flex-direction: column;
    }
}

.fd-registration-landing .fd-fill__panel {
    background: var(--fd-panel-bg);
    border-color: var(--fd-panel-border);
    color: #202124;
}

.fd-registration-landing__header {
    margin-bottom: 1.5rem;
}

.fd-registration-landing__header h2 {
    margin: 0 0 0.5rem;
    color: #202124;
}

.fd-registration-landing__header .fd-muted {
    color: #5f6368;
}

.fd-registration-landing__actions,
.fd-registration-landing__code-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 22rem;
    margin-top: 0;
}

.fd-registration-landing__code-actions {
    margin-top: 1rem;
}

.fd-registration-landing__btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.8rem 1.15rem;
    border-radius: 10px;
    border: 1px solid #dadce0;
    background: #ffffff;
    color: #202124;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.fd-registration-landing__btn:hover:not(:disabled),
.fd-registration-landing__btn:focus-visible:not(:disabled) {
    border-color: #c4c7cc;
    box-shadow: 0 1px 4px rgba(60, 64, 67, 0.14);
}

.fd-registration-landing__btn:active:not(:disabled) {
    transform: translateY(1px);
}

.fd-registration-landing__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.fd-registration-landing__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.fd-registration-landing__btn--new {
    justify-content: flex-start;
    background: #f8f9fa;
}

.fd-registration-landing__btn--new .fd-registration-landing__btn-icon {
    background: rgba(103, 58, 183, 0.12);
    color: #673ab7;
}

.fd-registration-landing__btn--new:hover:not(:disabled),
.fd-registration-landing__btn--new:focus-visible:not(:disabled) {
    background: #ffffff;
    border-color: #673ab7;
}

.fd-registration-landing__btn--edit {
    justify-content: flex-start;
    background: #f8f9fa;
}

.fd-registration-landing__btn--edit .fd-registration-landing__btn-icon {
    background: rgba(95, 99, 104, 0.12);
    color: #5f6368;
}

.fd-registration-landing__btn--edit:hover:not(:disabled),
.fd-registration-landing__btn--edit:focus-visible:not(:disabled) {
    background: #ffffff;
    border-color: #5f6368;
}

.fd-registration-landing__btn--submit {
    background: #673ab7;
    border-color: #673ab7;
    color: #ffffff;
}

.fd-registration-landing__btn--submit:hover:not(:disabled),
.fd-registration-landing__btn--submit:focus-visible:not(:disabled) {
    background: #5e35b1;
    border-color: #5e35b1;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(103, 58, 183, 0.28);
}

.fd-registration-landing__btn--secondary {
    background: #ffffff;
    color: #3c4043;
}

.fd-registration-landing__code-form {
    max-width: 22rem;
}

.fd-registration-landing__code-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    color: #202124;
}

.fd-registration-landing__code-input {
    max-width: 12rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    text-transform: none;
    background-color: #ffffff;
    color: #202124;
    border: 1px solid #dadce0;
    border-radius: 8px;
}

.fd-registration-landing__code-input:focus {
    border-color: #673ab7;
    box-shadow: 0 0 0 0.15rem rgba(103, 58, 183, 0.15);
    outline: 0;
}

.fd-registration-landing__error {
    margin: 0.75rem 0 0;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #f5c2c0;
    background: #ffffff;
    color: #b3261e;
    font-size: 0.9rem;
    line-height: 1.45;
    box-shadow: 0 1px 2px rgba(179, 38, 30, 0.08);
}

.fd-registration-code-hint {
    margin-top: 1rem;
}

.fd-fill__confirmation-code {
    margin-top: 1.25rem;
    text-align: left;
}

.fd-registration-code-field {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-align: center;
    background: var(--fd-fill-surface);
}

.fd-registration-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.15rem;
    letter-spacing: 0.15em;
}

.fd-registration-form-picker {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
}

.fd-registration-form-picker__header {
    margin-bottom: 0;
}

.fd-registration-form-picker__empty {
    margin: 0;
}

.fd-registration-form-picker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
    min-width: 0;
    width: 100%;
}

.fd-registration-form-picker__card {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.fd-registration-form-picker__card:hover,
.fd-registration-form-picker__card:focus-visible {
    border-color: #673ab7;
    box-shadow: 0 2px 8px rgba(103, 58, 183, 0.18);
    outline: none;
}

.fd-registration-form-picker__card .fd-form-card__body {
    flex: 1 1 auto;
}

.fd-registration-form-picker__period {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
