@import url("/_content/OqtaneLibrary.Components/wallet-balance.css");
@import url("/_content/Modules/OqtaneLibrary.KvittoSplittoHandling/components/KS-balance.css");

.fd-module {
    --fd-accent: #0d9488;
    --fd-accent-deep: #0f766e;
    --fd-accent-darker: #115e59;
    --fd-border: #dadce0;
    --fd-bg: #e4e7eb;
    --fd-panel-bg: #eceff1;
    --fd-panel-border: #cfd3d8;
    --fd-card-bg: #fff;
    --fd-text: #1e293b;
    --fd-text-secondary: #475569;
    --fd-text-subtle: #64748b;
    --fd-btn-disabled-bg: #e2e8f0;
    --fd-btn-disabled-fg: #64748b;
    --fd-btn-disabled-border: rgba(15, 23, 42, 0.12);
    max-width: var(--choose-hero-max-width, 100%);
    width: 100%;
    margin: 0.25rem auto 0;
    padding: 1rem 1rem 2rem;
    box-sizing: border-box;
    border-radius: 0.85rem;
    background: var(--fd-bg);
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    color: var(--fd-text);
}

/* Hovedside – Oqtane-tema utenfor, grått lag, hero og SiteSettings (som MatchMate) */
.fd-module.fd-module--landing {
    --fd-gutter: 0.5rem;
    --fd-landing-inset: 0.5rem;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 1px;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    gap: var(--fd-landing-inset);
    background: var(--fd-bg);
    border-radius: 0.85rem;
    overflow: visible;
    margin-top: 0.25rem;
    padding: var(--fd-landing-inset);
    padding-bottom: 2rem;
}

.fd-home {
    display: flex;
    flex-direction: column;
    gap: var(--fd-landing-inset, 0.5rem);
    width: 100%;
}

.fd-page-part {
    position: relative;
    overflow: hidden;
    border-radius: 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.fd-page-part--hero {
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fd-page-part--body {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.fd-page__media {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.fd-page__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fd-body {
    --fd-page-body-inset: 0.25rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--fd-landing-inset, 0.5rem);
    padding: var(--fd-page-body-inset);
    box-sizing: border-box;
}

.fd-module--landing .fd-page-part--hero .fd-hero {
    margin-bottom: 0;
    box-shadow: none;
    border-radius: inherit;
}

.fd-module--landing .fd-body .fd-overview-panel,
.fd-module--landing .fd-body .fd-fill__panel {
    position: relative;
    z-index: 1;
    background: var(--fd-panel-bg);
    border: 1px solid var(--fd-panel-border);
    border-radius: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fd-module--landing .fd-overview-panel.fd-list__panel {
    margin-top: 0;
}

.fd-list__panel-media {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.fd-list__panel-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fd-list__panel-content {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .fd-module.fd-module--landing {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        --fd-gutter: 0.75rem;
        padding: var(--fd-landing-inset);
        padding-bottom: 2rem;
        border-radius: 0.85rem;
        overflow-x: clip;
        overflow-y: visible;
    }

    .fd-module--landing .fd-page-part {
        border-radius: 0.75rem;
    }

    .fd-module--landing .fd-body {
        --fd-page-body-inset: 0.75rem;
        border-radius: 0.75rem;
    }

    .fd-module--landing .fd-body .fd-overview-panel,
    .fd-module--landing .fd-body .fd-fill__panel {
        border-radius: 0.75rem;
    }
}

@media (max-width: 576px) {
    .fd-module.fd-module--landing {
        --fd-landing-inset: 0.35rem;
        margin-top: 0.15rem;
        padding: var(--fd-landing-inset);
        padding-bottom: 1.25rem;
        gap: var(--fd-landing-inset);
        border-radius: 0;
    }

    .fd-module--landing .fd-page-part,
    .fd-module--landing .fd-body .fd-overview-panel,
    .fd-module--landing .fd-body .fd-fill__panel {
        border-radius: 0.5rem;
    }
}

@media (prefers-color-scheme: dark) {
    .fd-module {
        --fd-bg: #1a2332;
        --fd-panel-bg: #1e293b;
        --fd-panel-border: #334155;
        --fd-card-bg: #1e293b;
        --fd-border: #334155;
        --fd-text: #e2e8f0;
        --fd-text-secondary: #cbd5e1;
        --fd-text-subtle: #94a3b8;
        --fd-btn-disabled-bg: #334155;
        --fd-btn-disabled-fg: #94a3b8;
        --fd-btn-disabled-border: rgba(226, 232, 240, 0.12);
    }
}

[data-theme="dark"] .fd-module,
.theme-dark .fd-module,
.oqtane-dark .fd-module {
    --fd-bg: #1a2332;
    --fd-panel-bg: #1e293b;
    --fd-panel-border: #334155;
    --fd-card-bg: #1e293b;
    --fd-border: #334155;
    --fd-text: #e2e8f0;
    --fd-text-secondary: #cbd5e1;
    --fd-text-subtle: #94a3b8;
    --fd-btn-disabled-bg: #334155;
    --fd-btn-disabled-fg: #94a3b8;
    --fd-btn-disabled-border: rgba(226, 232, 240, 0.12);
}

.fd-module.tts-module {
    --fd-accent: var(--tts-accent, #0d9488);
    --fd-accent-deep: var(--tts-accent-deep, #0f766e);
    --fd-accent-darker: var(--tts-accent-deep, #115e59);
}

.fd-module:has(.fd-responses) {
    max-width: var(--choose-hero-max-width, 100%);
}

.fd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--fd-border);
    border-radius: 4px;
    background: #fff;
    color: var(--fd-text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.fd-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fd-btn--primary {
    background: linear-gradient(135deg, var(--tts-btn-primary-start, var(--fd-accent)) 0%, var(--tts-btn-primary-end, var(--fd-accent-darker)) 100%);
    border-color: var(--fd-accent);
    color: var(--tts-btn-primary-text, #fff);
    box-shadow: 0 4px 14px var(--tts-btn-primary-shadow, rgba(13, 148, 136, 0.24));
}

.fd-btn--primary:hover:not(:disabled),
.fd-btn--primary:focus:not(:disabled) {
    filter: brightness(1.08);
    box-shadow: 0 0.25rem 0.5rem var(--tts-btn-primary-shadow, rgba(13, 148, 136, 0.35));
}

.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;
    pointer-events: none;
}

.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;
    pointer-events: none;
}

.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;
    pointer-events: auto;
}

.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-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eceff1;
    border-top-color: var(--fd-accent);
    border-radius: 50%;
    animation: fd-spin 0.8s linear infinite;
}

.fd-spinner--sm {
    width: 36px;
    height: 36px;
}

@keyframes fd-spin {
    to {
        transform: rotate(360deg);
    }
}

.fd-modal {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.fd-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.fd-modal:has(.fd-periodic-dialog) .fd-modal__panel {
    width: min(960px, 100%);
}

.fd-periodic-dialog__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.fd-periodic-dialog__weekdays {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.fd-periodic-dialog__weekday {
    min-width: 6.5rem;
}

.fd-periodic-dialog__interval {
    max-width: 8rem;
}

.fd-periodic-dialog__publish {
    display: block;
    margin: 0.75rem 0 1rem;
}

.fd-periodic-dialog__preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1rem 0 0.5rem;
}

.fd-periodic-dialog__preview-title {
    margin: 0;
    font-size: 1rem;
}

.fd-periodic-dialog__preview-table-wrap {
    overflow: auto;
    max-height: 16rem;
    border: 1px solid var(--fd-border);
    border-radius: 6px;
}

.fd-periodic-dialog__preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.fd-periodic-dialog__preview-table th,
.fd-periodic-dialog__preview-table td {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid var(--fd-border);
    vertical-align: middle;
}

.fd-periodic-dialog__preview-table th {
    text-align: left;
    background: #f4f5f7;
    position: sticky;
    top: 0;
}

.fd-periodic-dialog__preview-count {
    margin-top: 0.5rem;
}

.fd-modal__panel {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: min(85vh, 720px);
    display: flex;
    flex-direction: column;
    background: #fcfcfd;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.fd-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--fd-border);
}

.fd-modal__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.fd-modal__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--fd-text-secondary);
    touch-action: manipulation;
}

.fd-modal__content {
    padding: 0.75rem 1rem 1rem;
    overflow: auto;
    max-height: min(72vh, 640px);
}

.fd-designer__toolbar {
    position: sticky;
    top: 0;
    z-index: 50;
    isolation: isolate;
    background: var(--fd-fill-surface, #fff);
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.fd-designer__toolbar-lead {
    margin-right: auto;
}

.fd-btn--toolbar {
    min-height: 44px;
    min-width: 44px;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.fd-designer__body {
    position: relative;
    min-height: 120px;
}

.fd-list__header,
.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-shell {
    position: relative;
    width: 100%;
}

.fd-hero-shell > .ks-module-top-bar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0.35rem;
    box-sizing: border-box;
}

.fd-hero-shell > .ks-module-top-bar .ks-module-top-bar__end {
    margin-left: auto;
}

.fd-hero-shell > .ks-module-top-bar .ks-balance-bar--embedded {
    justify-content: flex-end;
    margin-bottom: 0;
}

.fd-hero {
    position: relative;
    border-radius: 0.85rem;
    overflow: hidden;
    margin-bottom: 2rem;
    min-height: 140px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    --fd-hero-btn-secondary-bg: rgba(255, 255, 255, 0.14);
    --fd-hero-btn-secondary-border: rgba(255, 255, 255, 0.5);
    --fd-hero-btn-secondary-text: #fff;
    --fd-hero-btn-secondary-text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    --fd-hero-btn-secondary-hover-bg: rgba(255, 255, 255, 0.22);
    --fd-hero-btn-secondary-hover-text: #fff;
}

.fd-hero__media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(13, 148, 136, 0.25) 0%, rgba(15, 118, 110, 0.72) 100%),
        linear-gradient(145deg, #0d9488 0%, #0f766e 35%, #115e59 60%, #14532d 100%);
}

.fd-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(153, 246, 228, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(45, 212, 191, 0.18) 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__layout--with-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
}

.fd-hero__aside {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-shrink: 0;
}

.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--compact {
    min-height: 7rem;
    margin-bottom: 1.25rem;
}

.fd-hero--compact .fd-hero__overlay {
    padding: 1rem 1.25rem;
}

.fd-hero--compact .fd-hero__title {
    max-width: none;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.fd-hero--compact .fd-hero__sub {
    max-width: none;
    margin-bottom: 0;
}

.fd-hero__back-row {
    margin-bottom: 0.65rem;
}

.fd-hero__back.fd-hero-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
}

.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__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
}

.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__badge--clickable {
    appearance: none;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.fd-hero__badge--clickable:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
}

.fd-hero__badge--active {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.95);
    color: #0f766e;
    font-weight: 600;
}

.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,
.fd-module .fd-hero .fd-hero-btn--primary.e-btn {
    background: linear-gradient(135deg, var(--tts-btn-primary-start, var(--fd-accent)) 0%, var(--tts-btn-primary-end, var(--fd-accent-darker)) 100%) !important;
    border: none !important;
    color: var(--tts-btn-primary-text, #fff) !important;
    box-shadow: 0 4px 14px var(--tts-btn-primary-shadow, rgba(13, 148, 136, 0.28));
}

.fd-module .fd-hero .fd-hero-btn--primary:hover,
.fd-module .fd-hero .fd-hero-btn--primary.e-btn:hover {
    filter: brightness(1.06);
}

.fd-module .fd-hero .fd-hero-btn--secondary,
.fd-module .fd-hero .fd-hero-btn--secondary.e-btn {
    background: var(--fd-hero-btn-secondary-bg) !important;
    border: 1px solid var(--fd-hero-btn-secondary-border) !important;
    color: var(--fd-hero-btn-secondary-text) !important;
    text-shadow: var(--fd-hero-btn-secondary-text-shadow);
    box-shadow: none;
}

.fd-module .fd-hero .fd-hero-btn--secondary:hover,
.fd-module .fd-hero .fd-hero-btn--secondary.e-btn:hover {
    background: var(--fd-hero-btn-secondary-hover-bg) !important;
    color: var(--fd-hero-btn-secondary-hover-text) !important;
}

.fd-module .fd-hero .fd-hero-btn--secondary.fd-hero-btn--active,
.fd-module .fd-hero .fd-hero-btn--secondary.fd-hero-btn--active.e-btn {
    background: rgba(255, 255, 255, 0.32) !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
    color: #fff !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-form-json-import__textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
    resize: vertical;
}

.fd-form-json-import__error {
    color: #b3261e;
    font-size: 0.8125rem;
    margin: -0.35rem 0 0.75rem;
}

.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;
    overflow: visible;
}

.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__header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.fd-overview-panel__header-copy {
    flex: 1 1 240px;
    min-width: 0;
}

.fd-list__header-filters {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex: 0 1 auto;
    min-width: 0;
}

.fd-list__header-filters-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    max-width: 100%;
}

.fd-list__period-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0 0.15rem;
    min-height: 44px;
    white-space: nowrap;
}

.fd-list__period-switch .form-check-input {
    margin: 0;
    cursor: pointer;
}

.fd-list__period-switch .form-check-label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fd-accent-deep);
    cursor: pointer;
}

.fd-list__category-filter {
    flex: 1 1 auto;
    min-width: 180px;
    max-width: 420px;
    border: 1px solid var(--fd-fill-border-soft);
    border-radius: 8px;
    background: var(--fd-fill-surface-block);
}

.fd-list__category-filter-panel--expanded {
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--fd-fill-border-soft);
    border-radius: 8px;
    background: var(--fd-fill-surface-block);
}

.fd-list__category-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
}

.fd-list__category-filter-toggle:focus-visible {
    outline: 2px solid var(--fd-accent-deep);
    outline-offset: 2px;
}

.fd-list__category-filter-toggle-label {
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--fd-accent-deep);
}

.fd-list__category-filter-summary {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.8125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-list__category-filter-chevron {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #5f6368;
}

.fd-list__category-filter-panel {
    padding: 0.65rem 0.85rem 0.85rem;
    border-top: 1px solid var(--fd-fill-border-soft);
}

.fd-list__category-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
}

.fd-list__category-filter-options .fd-checkbox {
    margin: 0;
}

.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: var(--fd-accent-deep);
}

.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;
}

.fd-list__sections {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fd-list__category-section {
    padding-top: 0.25rem;
}

.fd-list__category-section + .fd-list__category-section,
.fd-list__grid + .fd-list__category-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--fd-border);
}

.fd-list__category-title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fd-text, #1f2937);
}

.fd-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
    align-items: stretch;
    overflow: visible;
}

.fd-overview-panel .fd-list__grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.fd-overview-panel .fd-list__grid .fd-form-card-host {
    min-height: 0;
}

.fd-overview-panel .fd-list__grid .fd-form-card.fd-form-card--listed,
.fd-overview-panel .fd-list__grid .fd-form-card--action {
    padding: 0.75rem 0.9rem;
}

.fd-overview-panel .fd-list__grid .fd-form-card__top {
    margin-bottom: 0.15rem;
}

.fd-overview-panel .fd-list__grid .fd-form-card__top h3 {
    font-size: 1rem;
    line-height: 1.3;
}

.fd-overview-panel .fd-list__grid .fd-form-card__description,
.fd-overview-panel .fd-list__grid .fd-form-card__detail-line {
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.fd-overview-panel .fd-list__grid .fd-form-card__meta {
    margin-top: 0.45rem;
    gap: 0.35rem;
    font-size: 0.8125rem;
}

.fd-overview-panel .fd-list__grid .fd-form-card__meta--footer {
    margin-top: 0.45rem;
    padding-top: 0;
}

.fd-overview-panel .fd-list__grid .fd-form-card__body--with-menu {
    padding-right: 2.15rem;
}

.fd-overview-panel .fd-list__grid .fd-form-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.15rem;
}

.fd-overview-panel .fd-list__grid .fd-form-card__action-title {
    font-size: 0.95rem;
}

.fd-overview-panel .fd-list__grid .fd-form-card__action-text {
    font-size: 0.8125rem;
}

.fd-overview-panel .fd-list__category-title {
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.fd-overview-panel .fd-list__category-section + .fd-list__category-section {
    margin-top: 1rem;
    padding-top: 1rem;
}

.fd-list__panel-content,
.fd-module--landing .fd-overview-panel.fd-list__panel {
    overflow: visible;
}

@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-form-card--listed {
        height: auto;
    }

    .fd-form-card__actions {
        margin-top: 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__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: var(--fd-text-secondary);
}

.fd-form-card__fact {
    white-space: nowrap;
}

.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-host {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.fd-list__grid .fd-form-card-host,
.fd-registration-form-picker .fd-form-card-host {
    min-height: 20rem;
}

.fd-form-card-host > .fd-form-card {
    flex: 1 1 auto;
    min-height: 0;
}

.fd-form-card--with-menu {
    position: relative;
    overflow: visible;
    z-index: 0;
}

.fd-form-card--with-menu:has(.fd-form-card__menu-panel) {
    z-index: 5;
}

.fd-form-card__body--with-menu {
    padding-right: 2.5rem;
}

.fd-form-card__menu {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
}

.fd-form-card__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
    color: #1f2937;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
}

.fd-form-card__menu-btn:hover,
.fd-form-card__menu-btn:focus-visible {
    background: rgba(0, 0, 0, 0.12);
    outline: none;
}

.fd-form-card__menu-btn-dots {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}

.fd-form-card__menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: default;
}

.fd-form-card__menu-panel {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    z-index: 10050;
    min-width: 12.5rem;
    max-width: min(18rem, calc(100vw - 1rem));
    max-height: min(70vh, 24rem);
    max-height: min(70dvh, 24rem);
    margin: 0;
    padding: 0.35rem 0;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    color: #1f2937;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.fd-form-card__menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.fd-form-card__menu-item:hover:not(:disabled),
.fd-form-card__menu-item:focus-visible:not(:disabled) {
    background: rgba(0, 0, 0, 0.06);
}

.fd-form-card__menu-item:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.fd-form-card__menu-item--delete {
    color: #c5221f;
}

.fd-form-card__body {
    flex: 1 1 auto;
    min-height: 0;
}

.fd-form-card--listed .fd-form-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.fd-form-card__description {
    margin: 0.35rem 0 0;
}

.fd-form-card__description--emphasis {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fd-text-primary, #1f2937);
}

.fd-form-card__detail-line {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.fd-form-card__detail-label {
    font-weight: 500;
    color: var(--fd-text-primary, #1f2937);
}

.fd-form-card__detail-value {
    color: var(--fd-text-secondary);
}

.fd-form-card__main {
    flex: 1 1 auto;
    min-height: 0;
}

.fd-form-card__meta--footer {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 0.75rem;
}

.fd-list__grid .fd-form-card--with-header-image {
    padding: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.fd-list__grid .fd-form-card--with-header-image .fd-form-card__body--with-header-image {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
}

.fd-list__grid .fd-form-card--with-header-image .fd-form-card__body--with-header-image .fd-form-card__main,
.fd-list__grid .fd-form-card--with-header-image .fd-form-card__body--with-header-image .fd-form-card__meta--footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.fd-list__grid .fd-form-card--with-header-image .fd-form-card__body--with-header-image .fd-form-card__main {
    padding-top: 1rem;
}

.fd-list__grid .fd-form-card--with-header-image .fd-form-card__body--with-header-image .fd-form-card__meta--footer {
    padding-bottom: 1rem;
}

.fd-form-card__header-media {
    overflow: hidden;
    line-height: 0;
}

.fd-form-card__header-image {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
}

.fd-form-card__detail-value--period-active {
    color: #16a34a;
    font-weight: 700;
}

.fd-form-card__detail-value--period-expired {
    color: #dc2626;
    font-weight: 700;
}

.fd-form-card__detail-value--period-not-started {
    color: #ca8a04;
    font-weight: 700;
}

.fd-form-card__activity {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.9375rem;
}

.fd-datetime-field {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.fd-datetime-field__date {
    flex: 1 1 auto;
    min-width: 0;
}

.fd-datetime-field__time {
    flex: 0 0 7.5rem;
}

.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__period-text--expiring-soon {
    color: #c5221f;
    font-weight: 500;
}

.fd-form-card__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 500;
}

.fd-form-card__contact {
    color: #5f6368;
    font-size: 0.875rem;
}

.fd-contact-person-dialog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fd-contact-person-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #f8f9fa;
}

.fd-contact-person-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.fd-contacts-field__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fd-contacts-field__card {
    padding: 1rem;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #fff;
}

.fd-contacts-field__name {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.fd-contacts-field__short-name,
.fd-contacts-field__roles,
.fd-contacts-field__detail,
.fd-contacts-field__text {
    margin: 0.25rem 0 0;
}

.fd-contacts-field__roles {
    color: #5f6368;
    font-size: 0.875rem;
}

.fd-contacts-field__text {
    white-space: pre-wrap;
}

.fd-users-field-columns__add {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.fd-users-field-columns__add .form-select {
    flex: 1 1 12rem;
    min-width: 12rem;
}

.fd-users-field-columns__list {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.fd-users-field-columns__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #e8eaed;
}

.fd-users-field-columns__label {
    flex: 1 1 auto;
}

.fd-users-field-columns__actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.fd-users-field__table-wrap {
    overflow-x: auto;
}

.fd-users-field__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.fd-users-field__table th,
.fd-users-field__table td {
    border: 1px solid #dadce0;
    padding: 0.5rem 0.65rem;
    text-align: left;
    vertical-align: top;
}

.fd-users-field__table th {
    background: #f8f9fa;
    font-weight: 600;
}

.fd-users-field--print .fd-contacts-field__list {
    display: none;
}

.fd-editor-field__content {
    line-height: 1.6;
}

.fd-editor-field__content :where(p, ul, ol) {
    margin: 0 0 0.75rem;
}

.fd-editor-field__content :where(p:last-child, ul:last-child, ol:last-child) {
    margin-bottom: 0;
}

.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: linear-gradient(135deg, var(--tts-btn-primary-start, var(--fd-accent)) 0%, var(--tts-btn-primary-end, var(--fd-accent-darker)) 100%) !important;
    border-color: var(--fd-accent) !important;
    color: var(--tts-btn-primary-text, #fff) !important;
}

.fd-form-card__actions .fd-btn--design.e-btn:hover,
.fd-form-card__actions .fd-btn--design.e-btn:focus {
    filter: brightness(1.08);
    border-color: var(--fd-accent-deep) !important;
    color: #fff !important;
}

.fd-form-card__actions .fd-btn--groups.e-btn {
    background: linear-gradient(135deg, var(--tts-btn-primary-start, var(--fd-accent)) 0%, var(--tts-btn-primary-end, var(--fd-accent-darker)) 100%) !important;
    border-color: var(--fd-accent) !important;
    color: var(--tts-btn-primary-text, #fff) !important;
}

.fd-form-card__actions .fd-btn--groups.e-btn:hover,
.fd-form-card__actions .fd-btn--groups.e-btn:focus {
    filter: brightness(1.08);
    border-color: var(--fd-accent-deep) !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: var(--fd-accent-deep) !important;
    border-color: var(--fd-accent-deep) !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;
    height: 100%;
    min-height: 0;
    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(13, 148, 136, 0.15);
    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(13, 148, 136, 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--cancelled {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.fd-form-card__body--cancelled,
.fd-fill__panel--cancelled {
    position: relative;
    overflow: hidden;
}

.fd-form-card__body--cancelled .fd-form-card__header-media,
.fd-form-card__body--cancelled .fd-form-card__main,
.fd-form-card__body--cancelled .fd-form-card__meta--footer {
    position: relative;
    z-index: 1;
}

.fd-cancelled-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.fd-cancelled-watermark__text {
    font-size: clamp(2rem, 10vw, 4rem);
    font-weight: 700;
    color: rgba(185, 28, 28, 0.18);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transform: rotate(-24deg);
    user-select: none;
    white-space: nowrap;
}

.fd-badge--stopped {
    background: #fce8e6;
    color: #c5221f;
}

.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-badge--period-ended {
    background: #e8eaed;
    color: #3c4043;
}

.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,
.fd-designer__fields .fd-field-card-collapse {
    margin-bottom: 0;
}

.fd-field-card-dropzone {
    margin-bottom: 0;
}

.fd-field-card-dropzone--drag-over .fd-field-card-collapse {
    box-shadow: 0 0 0 2px var(--fd-fill-accent, #1a73e8);
}

.fd-field-card-collapse--dragging {
    opacity: 0.55;
}

.fd-field-card-collapse--drag-over {
    border-color: var(--fd-fill-accent, #1a73e8);
}

.fd-field-card__drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25rem;
    color: var(--fd-fill-text-secondary);
    cursor: grab;
    user-select: none;
    touch-action: none;
    letter-spacing: -0.2em;
    font-size: 0.95rem;
    line-height: 1;
}

.fd-field-card__drag-handle:active {
    cursor: grabbing;
}

.fd-designer.fd-fill {
    max-width: none;
    position: relative;
    z-index: 0;
}

.fd-designer__live-preview--interactive {
    pointer-events: auto;
}

.fd-designer__live-preview--interactive .fd-designer__live-preview-panel {
    pointer-events: auto;
}

.fd-designer__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.fd-designer__layout--compact {
    grid-template-columns: minmax(0, 1fr);
}

.fd-designer__workspace {
    min-width: 0;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.fd-designer__workspace > .fd-fill__panel {
    background: var(--fd-fill-surface);
}

.fd-designer__live-preview {
    position: sticky;
    top: 1rem;
    min-width: 0;
    align-self: start;
}

.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 {
    overflow: visible;
    background: var(--fd-fill-surface);
}

.fd-designer__settings-collapse {
    margin-bottom: 1rem;
    border: 1px solid var(--fd-fill-border-soft);
    border-radius: 8px;
    background: var(--fd-fill-surface-block);
}

.fd-designer__settings-collapse-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.fd-designer__settings-collapse-title::-webkit-details-marker,
.fd-designer__settings-collapse-title::marker {
    display: none;
    content: "";
}

.fd-designer__settings-collapse-chevron {
    flex-shrink: 0;
    width: 0.75rem;
    font-size: 0.75rem;
    line-height: 1;
    color: #5f6368;
    text-align: center;
}

.fd-designer__settings-collapse-chevron::before {
    content: "▸";
}

.fd-designer__settings-collapse[open] > .fd-designer__settings-collapse-title .fd-designer__settings-collapse-chevron::before,
.fd-field-card-collapse[open] > .fd-field-card-collapse__summary .fd-designer__settings-collapse-chevron::before {
    content: "▾";
}

.fd-designer__settings-collapse-title-text {
    flex: 1;
    min-width: 0;
}

.fd-designer__settings-collapse[open] .fd-designer__settings-collapse-title {
    border-bottom: 1px solid var(--fd-fill-border-soft);
}

.fd-designer__settings-collapse .fd-designer__settings {
    padding: 1rem;
    border-top: none;
}

.fd-designer__form-settings-sections .fd-designer__settings-collapse {
    margin-bottom: 0.75rem;
}

.fd-designer__form-settings-sections .fd-designer__settings-collapse:last-child {
    margin-bottom: 0;
}

.fd-designer__form-settings-sections .fd-designer__settings--section {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    border-top: none;
}

.fd-designer__form-settings-sections .fd-designer__flags {
    margin-top: 0;
}

.fd-field-card-collapse {
    margin-bottom: 0;
    border: 1px solid var(--fd-fill-border-soft);
    border-radius: 8px;
    background: var(--fd-fill-surface-block);
}

.fd-field-card-collapse__summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.fd-field-card-collapse__summary::-webkit-details-marker,
.fd-field-card-collapse__summary::marker {
    display: none;
    content: "";
}

.fd-field-card-collapse[open] > .fd-field-card-collapse__summary {
    border-bottom: 1px solid var(--fd-fill-border-soft);
}

.fd-field-card-collapse__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-field-card-collapse__type {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fd-fill-text-secondary);
}

.fd-field-card-collapse__actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.25rem;
    margin-left: 0.25rem;
}

.fd-field-card-collapse > .fd-field-card__body {
    margin-top: 0;
    padding: 1rem;
    border: none;
    border-radius: 0;
    background: transparent;
}

.fd-field-card-collapse > .fd-field-card__body .fd-designer__settings {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

@media (max-width: 991.98px) {
    .fd-designer__layout {
        grid-template-columns: 1fr;
    }

    .fd-designer__live-preview {
        display: 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__preview-input .form-control[disabled],
.fd-designer__preview-input textarea[disabled],
.fd-designer__preview-input .form-select[disabled] {
    opacity: 1;
    background-color: var(--fd-fill-surface-block, #fff);
    color: var(--fd-fill-text, inherit);
    cursor: default;
}

.fd-designer__field-inline-preview {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--fd-fill-border-soft);
}

@media (max-width: 991.98px) {
    .fd-designer__field-inline-preview {
        display: block;
    }
}

.fd-designer__live-preview--interactive .fd-designer__preview-select {
    pointer-events: auto;
}

.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;
    min-width: 44px;
    min-height: 44px;
    width: 2.75rem;
    height: 2.75rem;
    cursor: pointer;
    touch-action: manipulation;
    pointer-events: auto;
}

.fd-icon-btn--danger {
    color: #c5221f;
}

.fd-checkbox,
.fd-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.35rem 0;
}

.fd-checkbox--with-hint {
    align-items: flex-start;
}

.fd-checkbox__hint {
    font-size: 0.8125rem;
}

.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__currency-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.fd-designer__currency-row .fd-designer__currency {
    flex: 0 0 6rem;
    max-width: 6rem;
}

.fd-designer__currency-row .fd-designer__currency-rate {
    flex: 1 1 8rem;
    max-width: 10rem;
}

.fd-designer__registration-list-count {
    max-width: 8rem;
}

.fd-registration-list-tabs {
    margin: 0 0 1rem;
}

.fd-field-card__registration-lists {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.25rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--fd-border, #dadce0);
    border-radius: 0.375rem;
    background: rgba(103, 58, 183, 0.04);
}

.fd-registration-lists-assign-hint,
.fd-print-lists-assign-hint {
    margin-top: 0.5rem;
}

.fd-field-card__print-lists {
    margin-top: 0.75rem;
}

.fd-field-card-collapse__lists,
.fd-field-card__lists-summary {
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.fd-designer__flags {
    display: flex;
    flex-direction: column;
    gap: 0.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: #e0e3e7;
    --fd-fill-border: var(--fd-panel-border);
    --fd-fill-border-soft: #e8eaed;
    --fd-fill-text: #1e293b;
    --fd-fill-text-secondary: #475569;
    --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__display,
.fd-fill__panel .fd-fill__contact,
.fd-designer__settings--form,
.fd-designer__field-inline-preview .fd-field-card,
.fd-designer__field-inline-preview .fd-fill__display,
.fd-designer__live-preview-inner > .fd-fill__header,
.fd-designer__live-preview-inner .fd-field-card,
.fd-designer__live-preview-inner .fd-fill__display {
    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__header-description {
    margin: 0.35rem 0 0;
    font-size: 0.9375rem;
    color: var(--fd-fill-text-secondary);
}

.fd-fill__header-detail {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.fd-fill__header-detail-label {
    font-weight: 500;
    color: var(--fd-fill-text);
}

.fd-fill__header-detail-value--period-expired {
    color: #dc2626;
    font-weight: 700;
}

.fd-fill__header-detail-value {
    color: var(--fd-fill-text-secondary);
}

.fd-fill__form-periods {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    background: var(--fd-fill-surface-block);
    border: 1px solid var(--fd-fill-border-soft);
    border-radius: 8px;
}

.fd-fill__form-periods .fd-fill__header-detail:first-child {
    margin-top: 0;
}

.fd-fill__header-contact {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--fd-fill-surface-block);
    border: 1px solid var(--fd-fill-border-soft);
    border-radius: 8px;
}

.fd-fill__header-contact-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fd-fill-text);
    margin-bottom: 0.35rem;
}

.fd-fill__header-contact-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fd-fill-text);
}

.fd-fill__header-contact-detail {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--fd-fill-text-secondary);
    line-height: 1.4;
}

.fd-fill__panel .fd-field-card,
.fd-fill__panel .fd-fill__display,
.fd-designer__field-inline-preview .fd-field-card,
.fd-designer__field-inline-preview .fd-fill__display,
.fd-designer__live-preview-inner .fd-field-card,
.fd-designer__live-preview-inner .fd-fill__display {
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
}

.fd-fill__panel .fd-field-card:last-child,
.fd-fill__panel .fd-fill__display:last-child,
.fd-designer__field-inline-preview .fd-field-card:last-child,
.fd-designer__field-inline-preview .fd-fill__display:last-child,
.fd-designer__live-preview-inner .fd-field-card:last-child,
.fd-designer__live-preview-inner .fd-fill__display: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(13, 148, 136, 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__help-inline {
    font-weight: 400;
    color: var(--fd-fill-text-secondary);
}

.fd-date-range__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 575.98px) {
    .fd-date-range__row {
        grid-template-columns: 1fr;
    }
}

.fd-date-range__label {
    margin-bottom: 0.35rem;
}

.fd-date-range__days {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.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-fill__waitlist-actions {
    margin-top: 1rem;
}

.fd-fill__waitlist-notice {
    margin-bottom: 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-fill__field--total-amount .fd-fill__total-value {
    margin: 0.35rem 0 0;
}

.fd-required {
    color: #c5221f;
}

.fd-amount {
    color: var(--fd-text-secondary);
    font-size: 0.875rem;
}

.fd-field-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.fd-field-quantity__label {
    font-size: 0.875rem;
    color: var(--fd-text-secondary);
    margin-bottom: 0;
}

.fd-field-quantity__input {
    width: 80px;
}

.fd-field-quantity--inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0.5rem;
}

.fd-field-quantity--inline .fd-field-quantity__label {
    margin-bottom: 0;
}

.fd-field-quantity--inline .fd-field-quantity__input {
    width: 64px;
}

.fd-choice-option {
    margin: 0.35rem 0;
}

.fd-field-quantity--selected {
    margin: 0.25rem 0 0 1.75rem;
}

.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__grid-choice-matrix {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: flex-start;
}

.fd-responses__grid-choice-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3rem;
    max-width: 8rem;
    text-align: center;
}

.fd-responses__grid-choice-heading {
    font-size: 0.75rem;
    line-height: 1.25;
    color: var(--fd-text);
    font-weight: 600;
    word-break: break-word;
}

.fd-responses__grid-choice-mark {
    min-height: 1rem;
    font-size: 0.875rem;
    line-height: 1;
    font-weight: 700;
    color: var(--fd-text);
}

.fd-responses__header h2 {
    margin: 0;
}

.fd-responses__stats {
    margin-bottom: 1.25rem;
}

.fd-responses-tabs {
    margin-bottom: 1rem;
}

.fd-responses-email-list__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fd-responses-email-list__table-wrap {
    overflow-x: auto;
}

.fd-responses-email-list__table {
    width: 100%;
    border-collapse: collapse;
    background: var(--fd-card-bg);
    border: 1px solid var(--fd-border);
    border-radius: 8px;
    overflow: hidden;
}

.fd-responses-email-list__table th,
.fd-responses-email-list__table td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--fd-border);
    vertical-align: middle;
}

.fd-responses-email-list__table th {
    background: var(--fd-surface-muted, #f8f9fa);
    font-weight: 600;
}

.fd-responses-email-list__check-col {
    width: 3rem;
    text-align: center;
}

.fd-responses-email-list__checkbox {
    display: inline-flex;
    margin: 0;
}

.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 {
    /* Reduced horizontal padding to fit more info columns in the grid */
    padding: 0.75rem 0.55rem;
    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.25rem !important;
    white-space: nowrap;
}

.fd-responses__row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.fd-responses__row-menu {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
}

.fd-responses__row-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
    color: #1f2937;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
}

.fd-responses__row-menu-btn:hover,
.fd-responses__row-menu-btn:focus-visible {
    background: rgba(0, 0, 0, 0.12);
    outline: none;
}

.fd-responses__row-menu-btn-dots {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}

.fd-responses__row-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: default;
}

.fd-responses__row-menu-panel {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    z-index: 10050;
    min-width: 11rem;
    max-width: min(18rem, calc(100vw - 1rem));
    margin: 0;
    padding: 0.35rem 0;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    color: #1f2937;
    overflow: hidden;
}

.fd-responses__row-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}

.fd-responses__row-menu-item:hover,
.fd-responses__row-menu-item:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.fd-responses__row-menu-item--danger {
    color: #c5221f;
}

.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-response-edit__closed-hint {
    color: #c5221f;
    margin-bottom: 0.5rem;
}

.fd-responses__detail-row td {
    padding: 0;
    border-bottom: 1px solid var(--fd-border);
    background: #f0f1f3;
}

.fd-responses__detail-panel {
    padding: 0.35rem 0.5rem 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: var(--fd-accent-deep);
}

.fd-groups__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
    overflow: visible;
}

.fd-groups__card h3 {
    margin: 0 0 0.35rem;
}

.fd-groups__import-meta {
    font-size: 0.85rem;
    margin: 0.35rem 0 0;
}

.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-fill__display--image {
    width: 100%;
}

.fd-fill__image-wrap {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.fd-fill__image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 320px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.fd-image-carousel {
    border-radius: 8px;
    overflow: hidden;
}

.fd-image-carousel .carousel-inner,
.fd-image-carousel .carousel-item,
.fd-image-carousel .fd-fill__image-wrap {
    border-radius: 8px;
}

.fd-image-carousel__file-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.fd-image-carousel__file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fd-image-carousel__file-id {
    font-family: monospace;
    color: #555;
}

.fd-fill__link {
    color: #1565c0;
    text-decoration: underline;
    word-break: break-word;
}

.fd-fill__link:hover {
    text-decoration: none;
}

.fd-fill__link--preview {
    display: inline-block;
    margin-top: 0.75rem;
}

.fd-designer__checkbox {
    margin-top: 0.75rem;
}

.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(13, 148, 136, 0.12);
    color: var(--fd-accent);
}

.fd-registration-landing__btn--new:hover:not(:disabled),
.fd-registration-landing__btn--new:focus-visible:not(:disabled) {
    background: #ffffff;
    border-color: var(--fd-accent);
}

.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: linear-gradient(135deg, var(--tts-btn-primary-start, var(--fd-accent)) 0%, var(--tts-btn-primary-end, var(--fd-accent-darker)) 100%);
    border-color: var(--fd-accent);
    color: var(--tts-btn-primary-text, #ffffff);
}

.fd-registration-landing__btn--submit:hover:not(:disabled),
.fd-registration-landing__btn--submit:focus-visible:not(:disabled) {
    filter: brightness(1.08);
    border-color: var(--fd-accent-deep);
    color: var(--tts-btn-primary-text, #ffffff);
    box-shadow: 0 2px 6px var(--tts-btn-primary-shadow, rgba(13, 148, 136, 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: var(--fd-accent);
    box-shadow: 0 0 0 0.15rem rgba(13, 148, 136, 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: 1100px;
    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%, 340px), 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: var(--fd-accent);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.18);
    outline: none;
}

.fd-registration-form-picker__card .fd-form-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.fd-registration-form-picker__card .fd-badge--stopped {
    margin-top: auto;
    align-self: flex-start;
}

.fd-registration-form-picker__period {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.fd-field-section-divider,
.fd-form-section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1cm;
    height: 1cm;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
    padding: 0 1rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fd-field-section-divider--preview,
.fd-form-section-divider--preview,
.fd-section-divider-preview {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.fd-field-section-divider--fill,
.fd-form-section-divider--fill {
    margin: 0.75rem 0;
}

.fd-fill__field--section-divider {
    padding-left: 0;
    padding-right: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.fd-section-divider-color-picker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fd-section-divider-color-picker__input {
    width: 3.5rem;
    min-width: 3.5rem;
    height: 2.5rem;
    padding: 0.15rem;
    cursor: pointer;
}

.fd-section-divider-color-picker__hex {
    max-width: 8rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.fd-badge--info {
    background: #e3f2fd;
    color: #1565c0;
}

/* Menyfelt – BeoNav-lignende forhåndsvisning (uten natt/dag) */
.fd-menu-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(8px);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.fd-menu-nav {
    --fd-menu-accent: #2563eb;
    --fd-menu-text: #0f172a;
    --fd-menu-text-muted: #475569;
    --fd-menu-border: #e2e8f0;
    --fd-menu-bg: #f8fafc;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 0.85rem 1rem;
    color: var(--fd-menu-text);
}

.fd-menu-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--fd-menu-text);
    font-weight: 700;
    margin-right: auto;
}

.fd-menu-nav-brand:hover {
    color: var(--fd-menu-accent);
    text-decoration: none;
}

.fd-menu-nav-brand-icon {
    font-size: 1.25rem;
    color: var(--fd-menu-accent);
    line-height: 1;
}

.fd-menu-nav-brand-icon--image {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
    font-size: unset;
}

.fd-menu-nav-brand-text {
    font-size: 1.05rem;
}

.fd-menu-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.fd-menu-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
}

.fd-menu-nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fd-menu-text);
    border-radius: 1px;
}

.fd-menu-nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
}

.fd-menu-nav-item {
    position: relative;
}

.fd-menu-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--fd-menu-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.35rem 0.15rem;
    border-bottom: 2px solid transparent;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.fd-menu-nav-link:hover,
.fd-menu-nav-link--parent:hover {
    color: var(--fd-menu-accent);
    text-decoration: none;
}

.fd-menu-nav-caret {
    font-size: 0.7rem;
    opacity: 0.8;
}

.fd-menu-nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 10rem;
    padding: 0.4rem 0;
    background: #fff;
    border: 1px solid var(--fd-menu-border);
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.08);
    z-index: 50;
}

.fd-menu-nav-item--has-children:hover > .fd-menu-nav-submenu,
.fd-menu-nav-item--has-children:focus-within > .fd-menu-nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.fd-menu-nav-submenu .fd-menu-nav-link {
    padding: 0.45rem 0.85rem;
    border-bottom: none;
    white-space: nowrap;
}

.fd-menu-icon-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: var(--fd-menu-text, #0f172a);
}

.fd-menu-icon-preview__icon {
    font-size: 1.35rem;
    color: #2563eb;
}

@media (max-width: 767px) {
    .fd-menu-nav-toggle {
        display: flex;
    }

    .fd-menu-nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--fd-menu-border);
    }

    .fd-menu-nav-menu--open {
        display: flex;
    }

    .fd-menu-nav-item--has-children > .fd-menu-nav-submenu {
        position: static;
        display: flex;
        flex-direction: column;
        box-shadow: none;
        border: none;
        padding: 0 0 0 0.75rem;
        background: transparent;
    }

    .fd-menu-nav-link {
        padding: 0.55rem 0.15rem;
    }
}

/* SiteSettings hero-tema (samme paletter som MatchMate) */
.fd-hero__media.tts-hero__theme--purple,
.fd-page__media.tts-hero__theme--purple,
.fd-list__panel-media.tts-hero__theme--purple {
    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.tts-hero__theme--purple::after,
.fd-page__media.tts-hero__theme--purple::after,
.fd-list__panel-media.tts-hero__theme--purple::after {
    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__media.tts-hero__theme--blue,
.fd-page__media.tts-hero__theme--blue,
.fd-list__panel-media.tts-hero__theme--blue {
    background:
        linear-gradient(135deg, rgba(13, 71, 161, 0.25) 0%, rgba(21, 101, 192, 0.72) 100%),
        linear-gradient(145deg, #0d47a1 0%, #1565c0 35%, #1976d2 60%, #1e88e5 100%);
}

.fd-hero__media.tts-hero__theme--blue::after,
.fd-page__media.tts-hero__theme--blue::after,
.fd-list__panel-media.tts-hero__theme--blue::after {
    background:
        radial-gradient(circle at 15% 85%, rgba(144, 202, 249, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(100, 181, 246, 0.22) 0%, transparent 40%);
}

.fd-hero__media.tts-hero__theme--teal,
.fd-page__media.tts-hero__theme--teal,
.fd-list__panel-media.tts-hero__theme--teal {
    background:
        linear-gradient(135deg, rgba(0, 77, 64, 0.25) 0%, rgba(0, 105, 92, 0.72) 100%),
        linear-gradient(145deg, #004d40 0%, #00695c 35%, #00897b 60%, #26a69a 100%);
}

.fd-hero__media.tts-hero__theme--teal::after,
.fd-page__media.tts-hero__theme--teal::after,
.fd-list__panel-media.tts-hero__theme--teal::after {
    background:
        radial-gradient(circle at 15% 85%, rgba(128, 203, 196, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(77, 182, 172, 0.22) 0%, transparent 40%);
}

.fd-hero__media.tts-hero__theme--green,
.fd-page__media.tts-hero__theme--green,
.fd-list__panel-media.tts-hero__theme--green {
    background:
        linear-gradient(135deg, rgba(27, 94, 32, 0.25) 0%, rgba(46, 125, 50, 0.72) 100%),
        linear-gradient(145deg, #1b5e20 0%, #2e7d32 35%, #388e3c 60%, #43a047 100%);
}

.fd-hero__media.tts-hero__theme--green::after,
.fd-page__media.tts-hero__theme--green::after,
.fd-list__panel-media.tts-hero__theme--green::after {
    background:
        radial-gradient(circle at 15% 85%, rgba(165, 214, 167, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(129, 199, 132, 0.22) 0%, transparent 40%);
}

.fd-hero__media.tts-hero__theme--rose,
.fd-page__media.tts-hero__theme--rose,
.fd-list__panel-media.tts-hero__theme--rose {
    background:
        linear-gradient(135deg, rgba(136, 14, 79, 0.25) 0%, rgba(173, 20, 87, 0.72) 100%),
        linear-gradient(145deg, #880e4f 0%, #ad1457 35%, #c2185b 60%, #d81b60 100%);
}

.fd-hero__media.tts-hero__theme--rose::after,
.fd-page__media.tts-hero__theme--rose::after,
.fd-list__panel-media.tts-hero__theme--rose::after {
    background:
        radial-gradient(circle at 15% 85%, rgba(244, 143, 177, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(236, 64, 122, 0.22) 0%, transparent 40%);
}

.fd-hero__media.tts-hero__theme--slate,
.fd-page__media.tts-hero__theme--slate,
.fd-list__panel-media.tts-hero__theme--slate {
    background:
        linear-gradient(135deg, rgba(38, 50, 56, 0.25) 0%, rgba(55, 71, 79, 0.72) 100%),
        linear-gradient(145deg, #263238 0%, #37474f 35%, #455a64 60%, #546e7a 100%);
}

.fd-hero__media.tts-hero__theme--slate::after,
.fd-page__media.tts-hero__theme--slate::after,
.fd-list__panel-media.tts-hero__theme--slate::after {
    background:
        radial-gradient(circle at 15% 85%, rgba(176, 190, 197, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(144, 164, 174, 0.22) 0%, transparent 40%);
}

.fd-hero__media.tts-hero__theme--lightblue,
.fd-page__media.tts-hero__theme--lightblue,
.fd-list__panel-media.tts-hero__theme--lightblue {
    background:
        linear-gradient(135deg, rgba(227, 242, 253, 0.95) 0%, rgba(144, 202, 249, 0.88) 100%),
        linear-gradient(145deg, #e3f2fd 0%, #bbdefb 35%, #90caf9 60%, #64b5f6 100%);
}

.fd-hero__media.tts-hero__theme--lightblue::after,
.fd-page__media.tts-hero__theme--lightblue::after,
.fd-list__panel-media.tts-hero__theme--lightblue::after {
    background:
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.55) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(25, 118, 210, 0.12) 0%, transparent 40%);
}

.fd-hero__media.tts-hero__theme--lightgray,
.fd-page__media.tts-hero__theme--lightgray,
.fd-list__panel-media.tts-hero__theme--lightgray {
    background:
        linear-gradient(135deg, rgba(250, 250, 250, 0.98) 0%, rgba(207, 216, 220, 0.88) 100%),
        linear-gradient(145deg, #fafafa 0%, #eceff1 35%, #cfd8dc 60%, #b0bec5 100%);
}

.fd-hero__media.tts-hero__theme--lightgray::after,
.fd-page__media.tts-hero__theme--lightgray::after,
.fd-list__panel-media.tts-hero__theme--lightgray::after {
    background:
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.65) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(96, 125, 139, 0.1) 0%, transparent 40%);
}

.fd-hero__media.tts-hero__theme--lightgreen,
.fd-page__media.tts-hero__theme--lightgreen,
.fd-list__panel-media.tts-hero__theme--lightgreen {
    background:
        linear-gradient(135deg, rgba(232, 245, 233, 0.95) 0%, rgba(165, 214, 167, 0.88) 100%),
        linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 35%, #a5d6a7 60%, #81c784 100%);
}

.fd-hero__media.tts-hero__theme--lightgreen::after,
.fd-page__media.tts-hero__theme--lightgreen::after,
.fd-list__panel-media.tts-hero__theme--lightgreen::after {
    background:
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.55) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(56, 142, 60, 0.1) 0%, transparent 40%);
}

.fd-hero__media.tts-hero__theme--lightlavender,
.fd-page__media.tts-hero__theme--lightlavender,
.fd-list__panel-media.tts-hero__theme--lightlavender {
    background:
        linear-gradient(135deg, rgba(243, 229, 245, 0.95) 0%, rgba(206, 147, 216, 0.85) 100%),
        linear-gradient(145deg, #f3e5f5 0%, #e1bee7 35%, #ce93d8 60%, #ba68c8 100%);
}

.fd-hero__media.tts-hero__theme--lightlavender::after,
.fd-page__media.tts-hero__theme--lightlavender::after,
.fd-list__panel-media.tts-hero__theme--lightlavender::after {
    background:
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.55) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(106, 27, 154, 0.1) 0%, transparent 40%);
}

.fd-hero:has(.tts-hero__theme--lightblue, .tts-hero__theme--lightgray, .tts-hero__theme--lightgreen, .tts-hero__theme--lightlavender) {
    color: #202124;
    --fd-hero-btn-secondary-bg: var(--tts-btn-secondary-bg, rgba(255, 255, 255, 0.88));
    --fd-hero-btn-secondary-border: var(--tts-btn-secondary-border, rgba(32, 33, 36, 0.24));
    --fd-hero-btn-secondary-text: var(--tts-btn-secondary-text, #202124);
    --fd-hero-btn-secondary-text-shadow: none;
    --fd-hero-btn-secondary-hover-bg: var(--tts-btn-secondary-hover-bg, rgba(32, 33, 36, 0.08));
    --fd-hero-btn-secondary-hover-text: var(--tts-btn-secondary-text-hover, #202124);
}

.fd-hero:has(.tts-hero__theme--lightblue, .tts-hero__theme--lightgray, .tts-hero__theme--lightgreen, .tts-hero__theme--lightlavender) .fd-hero__overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.45) 70%, transparent 100%);
    color: #202124;
}

.fd-hero:has(.tts-hero__theme--lightblue, .tts-hero__theme--lightgray, .tts-hero__theme--lightgreen, .tts-hero__theme--lightlavender) .fd-hero__title,
.fd-hero:has(.tts-hero__theme--lightblue, .tts-hero__theme--lightgray, .tts-hero__theme--lightgreen, .tts-hero__theme--lightlavender) .fd-hero__sub {
    color: #202124;
}

.fd-hero:has(.tts-hero__theme--lightblue, .tts-hero__theme--lightgray, .tts-hero__theme--lightgreen, .tts-hero__theme--lightlavender) .fd-hero__filter-btn {
    background: rgba(32, 33, 36, 0.12);
    border-color: rgba(32, 33, 36, 0.28);
    color: #202124;
}

.fd-hero:has(.tts-hero__theme--lightblue, .tts-hero__theme--lightgray, .tts-hero__theme--lightgreen, .tts-hero__theme--lightlavender) .fd-hero__filter-btn--active {
    border-color: rgba(32, 33, 36, 0.55);
    color: #202124;
}

.fd-hero:has(.tts-hero__theme--lightblue, .tts-hero__theme--lightgray, .tts-hero__theme--lightgreen, .tts-hero__theme--lightlavender) .fd-hero__badge {
    background: rgba(32, 33, 36, 0.1);
    border-color: rgba(32, 33, 36, 0.2);
    color: #202124;
}

.fd-hero:has(.tts-hero__theme--lightblue, .tts-hero__theme--lightgray, .tts-hero__theme--lightgreen, .tts-hero__theme--lightlavender) .fd-hero__badge--active {
    background: #fff;
    border-color: rgba(32, 33, 36, 0.35);
    color: #0f766e;
}

/* Info panel (landing) */
.fd-info-panel {
    margin-bottom: 1.5rem;
}

.fd-info-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fd-info-tab {
    appearance: none;
    border: 1px solid var(--fd-border);
    border-radius: 999px;
    background: var(--fd-card-bg);
    color: var(--fd-text);
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.fd-info-tab:hover {
    border-color: var(--fd-accent);
}

.fd-info-tab--active {
    background: var(--fd-accent);
    border-color: var(--fd-accent);
    color: #fff;
}

.fd-info-section-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--fd-accent-deep);
}

.fd-info-features-lead,
.fd-info-pricing-lead,
.fd-info-userguide__intro,
.fd-info-userguide__lead {
    margin: 0 0 1rem;
    color: var(--fd-text-secondary);
}

.fd-info-feature-grid,
.fd-info-pricing-grid,
.fd-info-userguide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.fd-info-feature-card,
.fd-info-pricing-card,
.fd-info-userguide-card {
    border-radius: 0.75rem;
    border: 1px solid var(--fd-border);
    padding: 1rem 1.1rem;
    background: var(--fd-card-bg);
}

.fd-info-feature-card__title,
.fd-info-pricing-card__title,
.fd-info-userguide-card__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.fd-info-feature-card__text,
.fd-info-pricing-card__text,
.fd-info-userguide-card__text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--fd-text-secondary);
}

.fd-info-pricing-card__price {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fd-accent-deep);
}

.fd-info-pricing-note {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: var(--fd-text-secondary);
}

.fd-create-tier__card {
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fd-create-tier__card--selected {
    border-color: var(--fd-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--fd-accent) 25%, transparent);
}

.fd-create-tier__card:focus-visible {
    outline: 2px solid var(--fd-accent);
    outline-offset: 2px;
}

.fd-info-userguide__subtitle {
    margin: 1.25rem 0 0.35rem;
    font-size: 1.05rem;
}

.fd-info-userguide-steps {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.65rem;
}

.fd-info-userguide-steps li {
    color: var(--fd-text-secondary);
}

.fd-info-userguide-steps strong {
    display: block;
    color: var(--fd-text);
    margin-bottom: 0.15rem;
}

.fd-info-cardcolor-1 { border-left: 4px solid #0d9488; }
.fd-info-cardcolor-2 { border-left: 4px solid #2563eb; }
.fd-info-cardcolor-3 { border-left: 4px solid #7c3aed; }
.fd-info-cardcolor-4 { border-left: 4px solid #ea580c; }
