:root {
    color-scheme: light;
    --brand-cyan-50: #f2fbff;
    --brand-cyan-100: #dff5ff;
    --brand-cyan-200: #c6ecff;
    --brand-cyan-500: #58aef2;
    --brand-cyan-600: #3794e0;
    --brand-violet-100: #efe7ff;
    --brand-violet-200: #dfd1ff;
    --brand-violet-500: #8b5cf6;
    --brand-violet-600: #7c4deb;
    --brand-ink: #101828;
    --brand-fog: #667085;
    --surface-line: rgba(15, 23, 42, 0.1);
    --panel-shadow: 0 24px 60px rgba(16, 24, 40, 0.08), 0 8px 20px rgba(88, 174, 242, 0.06);
    --soft-shadow: 0 16px 34px rgba(16, 24, 40, 0.06), 0 6px 16px rgba(124, 77, 235, 0.04);
    --search-shadow: 0 28px 72px rgba(88, 174, 242, 0.16), 0 12px 28px rgba(124, 77, 235, 0.08);
}

html {
    scroll-behavior: auto;
}

html:has(body.overflow-hidden) {
    overflow: hidden;
}

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

img,
svg,
canvas {
    max-width: 100%;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(88, 174, 242, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.06), transparent 24%),
        #eef2f6;
}

body.profile-page {
    background:
        radial-gradient(circle at top left, rgba(88, 174, 242, 0.06), transparent 24%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.04), transparent 22%),
        #f1f4f8;
}

body.profile-page .page-glow {
    opacity: 0;
}

body.profile-page main {
    width: 100%;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.profile-page .site-footer {
    margin-top: 0 !important;
}

body.profile-page.profile-page--surface-light {
    background:
        radial-gradient(circle at top left, rgba(88, 174, 242, 0.06), transparent 24%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.05), transparent 22%),
        #f1f4f8;
}

body.profile-page.profile-page--surface-dark {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 24%),
        #0c1220;
}

body.dashboard-page {
    --dashboard-bg:
        radial-gradient(circle at 10% 8%, rgba(88, 174, 242, 0.08), transparent 24%),
        radial-gradient(circle at 88% 16%, rgba(139, 92, 246, 0.06), transparent 22%),
        #f3f6fb;
    --dashboard-text: #101828;
    --dashboard-muted: #667085;
    --dashboard-surface: rgba(255, 255, 255, 0.88);
    --dashboard-surface-soft: rgba(255, 255, 255, 0.94);
    --dashboard-surface-subtle: rgba(248, 250, 252, 0.78);
    --dashboard-panel-border: rgba(255, 255, 255, 0.78);
    --dashboard-soft-border: rgba(15, 23, 42, 0.1);
    --dashboard-outline: rgba(255, 255, 255, 0.52);
    --dashboard-shadow: 0 24px 60px rgba(16, 24, 40, 0.08), 0 8px 20px rgba(88, 174, 242, 0.06);
    --dashboard-soft-shadow: 0 16px 34px rgba(16, 24, 40, 0.06), 0 6px 16px rgba(124, 77, 235, 0.04);
    --dashboard-header-bg: rgba(255, 255, 255, 0.88);
    --dashboard-footer-bg: rgba(255, 255, 255, 0.92);
    --dashboard-input-bg: rgba(248, 250, 252, 0.88);
    --dashboard-input-border: rgba(15, 23, 42, 0.12);
    --dashboard-button-secondary-bg: rgba(255, 255, 255, 0.96);
    --dashboard-button-secondary-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 251, 255, 0.94));
    --dashboard-sidebar-highlight: linear-gradient(135deg, rgba(242, 251, 255, 0.92), rgba(247, 243, 255, 0.94));
    background: var(--dashboard-bg);
    color: var(--dashboard-text);
}

html.dashboard-theme-dark body.dashboard-page {
    --dashboard-bg:
        radial-gradient(circle at 12% 8%, rgba(35, 89, 173, 0.18), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(111, 67, 214, 0.16), transparent 22%),
        linear-gradient(180deg, #09111d 0%, #0a1320 46%, #08111c 100%);
    --dashboard-text: #edf3ff;
    --dashboard-muted: rgba(191, 203, 220, 0.78);
    --dashboard-surface: rgba(12, 21, 35, 0.86);
    --dashboard-surface-soft: rgba(16, 26, 42, 0.92);
    --dashboard-surface-subtle: rgba(255, 255, 255, 0.04);
    --dashboard-panel-border: rgba(125, 150, 188, 0.16);
    --dashboard-soft-border: rgba(125, 150, 188, 0.18);
    --dashboard-outline: rgba(255, 255, 255, 0.05);
    --dashboard-shadow: 0 28px 70px rgba(2, 8, 20, 0.42), 0 10px 24px rgba(46, 106, 199, 0.08);
    --dashboard-soft-shadow: 0 18px 40px rgba(2, 8, 20, 0.34);
    --dashboard-header-bg: rgba(7, 15, 27, 0.88);
    --dashboard-footer-bg: rgba(7, 15, 27, 0.82);
    --dashboard-input-bg: rgba(11, 19, 32, 0.9);
    --dashboard-input-border: rgba(125, 150, 188, 0.18);
    --dashboard-button-secondary-bg: rgba(255, 255, 255, 0.04);
    --dashboard-button-secondary-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
    --dashboard-sidebar-highlight: linear-gradient(135deg, rgba(23, 38, 64, 0.98), rgba(29, 37, 73, 0.98));
    background: var(--dashboard-bg);
}

body.dashboard-page .page-glow {
    opacity: 0.72;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.76), transparent 24%),
        radial-gradient(circle at 86% 12%, rgba(88, 174, 242, 0.08), transparent 18%),
        radial-gradient(circle at 82% 84%, rgba(139, 92, 246, 0.06), transparent 22%);
}

html.dashboard-theme-dark body.dashboard-page .page-glow {
    opacity: 0.34;
    background:
        radial-gradient(circle at 14% 12%, rgba(88, 174, 242, 0.18), transparent 22%),
        radial-gradient(circle at 84% 16%, rgba(139, 92, 246, 0.16), transparent 20%),
        radial-gradient(circle at 60% 86%, rgba(255, 255, 255, 0.04), transparent 24%);
}

body.dashboard-page .surface-panel {
    border-color: var(--dashboard-panel-border);
    background: var(--dashboard-surface);
    box-shadow: var(--dashboard-shadow);
}

body.dashboard-page .surface-soft {
    border-color: var(--dashboard-soft-border);
    background: var(--dashboard-surface-soft);
    box-shadow: var(--dashboard-soft-shadow);
}

body.dashboard-page .surface-subtle {
    border-color: var(--dashboard-soft-border);
    background: var(--dashboard-surface-subtle);
    box-shadow: none;
}

body.dashboard-page .section-outline::after {
    box-shadow: inset 0 0 0 1px var(--dashboard-outline);
}

body.dashboard-page .text-ink {
    color: var(--dashboard-text) !important;
}

body.dashboard-page .text-fog {
    color: var(--dashboard-muted) !important;
}

body.dashboard-page .border-slate-200\/80,
body.dashboard-page .border-slate-200\/90,
body.dashboard-page .border-slate-200 {
    border-color: var(--dashboard-soft-border) !important;
}

body.dashboard-page .form-input {
    border-color: var(--dashboard-input-border);
    background: var(--dashboard-input-bg);
    color: var(--dashboard-text);
}

body.dashboard-page .form-input:focus {
    background: var(--dashboard-surface-soft);
}

html.dashboard-theme-dark body.dashboard-page .form-input:focus {
    border-color: rgba(96, 165, 250, 0.44);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

html.dashboard-theme-dark body.dashboard-page .form-input:disabled,
html.dashboard-theme-dark body.dashboard-page .form-input[readonly],
html.dashboard-theme-dark body.dashboard-page textarea.form-input:disabled,
html.dashboard-theme-dark body.dashboard-page select.form-input:disabled {
    background: linear-gradient(180deg, rgba(14, 22, 36, 0.92), rgba(10, 18, 31, 0.92));
    color: rgba(191, 203, 220, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.dashboard-page .btn-secondary,
body.dashboard-page .btn-danger {
    border-color: var(--dashboard-soft-border);
    background: var(--dashboard-button-secondary-bg);
    color: var(--dashboard-text);
}

body.dashboard-page .btn-secondary:hover,
body.dashboard-page .btn-danger:hover {
    background: var(--dashboard-button-secondary-hover);
}

html.dashboard-theme-dark body.dashboard-page .btn-secondary:focus-visible,
html.dashboard-theme-dark body.dashboard-page .btn-danger:focus-visible,
html.dashboard-theme-dark body.dashboard-page .btn-primary:focus-visible {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

body.dashboard-page .modal-card {
    border-color: var(--dashboard-panel-border);
    background: color-mix(in srgb, var(--dashboard-surface) 92%, transparent);
    color: var(--dashboard-text);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

html.dashboard-theme-dark body.dashboard-page .tooltip-trigger {
    border-color: rgba(125, 150, 188, 0.18);
    background: rgba(17, 27, 43, 0.9);
    color: rgba(191, 203, 220, 0.86);
}

html.dashboard-theme-dark body.dashboard-page .tooltip-trigger:hover,
html.dashboard-theme-dark body.dashboard-page .tooltip-trigger:focus-visible {
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(21, 34, 54, 0.96);
    color: #dbeafe;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

html.dashboard-theme-dark body.dashboard-page .bio-translation-row {
    border-color: rgba(125, 150, 188, 0.16) !important;
    background: rgba(17, 27, 43, 0.92) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

html.dashboard-theme-dark body.dashboard-page .bio-translation-row [data-bio-translation-toggle="true"] {
    background: rgba(19, 31, 49, 0.9);
}

html.dashboard-theme-dark body.dashboard-page .bio-translation-row .bg-brand-50 {
    background: rgba(219, 234, 254, 0.96) !important;
}

html.dashboard-theme-dark body.dashboard-page .bio-translation-row .text-brand-700 {
    color: #1d4ed8 !important;
}

html.dashboard-theme-dark body.dashboard-page .bio-translation-row [data-bio-translation-remove="true"] {
    color: rgba(191, 203, 220, 0.82);
}

html.dashboard-theme-dark body.dashboard-page .bio-translation-row [data-bio-translation-remove="true"]:hover,
html.dashboard-theme-dark body.dashboard-page .bio-translation-row [data-bio-translation-remove="true"]:focus-visible {
    color: #fda4af;
}

html.dashboard-theme-dark body.dashboard-page .bio-translation-row .translation-chevron {
    color: rgba(191, 203, 220, 0.8) !important;
}

body.dashboard-page .category-translations-panel {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.9);
}

body.dashboard-page .category-translations-title,
body.dashboard-page .category-translations-label {
    color: rgba(71, 85, 105, 0.9);
}

body.dashboard-page .category-translations-expand-toggle {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.7);
    color: rgba(51, 65, 85, 0.92);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.dashboard-page .category-translation-row {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.35rem 0.5rem 0.5rem;
}

body.dashboard-page .category-translation-body {
    display: none !important;
}

body.dashboard-page .category-translation-row.is-open .category-translation-body {
    display: block !important;
}

body.dashboard-page .category-translation-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem;
    color: inherit;
}

body.dashboard-page .category-translation-toggle__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(71, 85, 105, 0.9);
}

body.dashboard-page .category-translation-toggle__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

body.dashboard-page .category-translation-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(148, 163, 184, 0.34);
    color: rgba(71, 85, 105, 0.9);
    background: rgba(255, 255, 255, 0.72);
}

body.dashboard-page .category-translation-status.is-filled {
    border-color: rgba(16, 185, 129, 0.45);
    color: rgba(5, 150, 105, 0.95);
    background: rgba(236, 253, 245, 0.95);
}

body.dashboard-page .category-translation-chevron {
    font-size: 0.72rem;
    color: rgba(100, 116, 139, 0.9);
    transition: transform 160ms ease;
}

body.dashboard-page .category-translation-row.is-open .category-translation-chevron {
    transform: rotate(180deg);
}

html.dashboard-theme-dark body.dashboard-page .category-translations-panel {
    border-color: rgba(125, 150, 188, 0.22) !important;
    background: rgba(16, 27, 44, 0.94) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

html.dashboard-theme-dark body.dashboard-page .category-translations-title,
html.dashboard-theme-dark body.dashboard-page .category-translations-label {
    color: rgba(219, 234, 254, 0.8) !important;
}

html.dashboard-theme-dark body.dashboard-page .category-translations-input {
    border-color: rgba(125, 150, 188, 0.28);
    background: rgba(13, 22, 36, 0.96);
    color: #e2e8f0;
}

html.dashboard-theme-dark body.dashboard-page .category-translations-input::placeholder {
    color: rgba(191, 203, 220, 0.72);
}

html.dashboard-theme-dark body.dashboard-page .category-translations-input:focus {
    border-color: rgba(96, 165, 250, 0.52);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

html.dashboard-theme-dark body.dashboard-page .category-translations-expand-toggle {
    border-color: rgba(125, 150, 188, 0.34);
    background: rgba(20, 33, 52, 0.9);
    color: rgba(219, 234, 254, 0.9);
}

html.dashboard-theme-dark body.dashboard-page .category-translation-row {
    border-color: rgba(125, 150, 188, 0.24);
    background: rgba(12, 22, 37, 0.7);
}

html.dashboard-theme-dark body.dashboard-page .category-translation-toggle__label {
    color: rgba(191, 203, 220, 0.88);
}

html.dashboard-theme-dark body.dashboard-page .category-translation-status {
    border-color: rgba(125, 150, 188, 0.34);
    color: rgba(191, 203, 220, 0.9);
    background: rgba(20, 33, 52, 0.86);
}

html.dashboard-theme-dark body.dashboard-page .category-translation-status.is-filled {
    border-color: rgba(52, 211, 153, 0.45);
    color: #a7f3d0;
    background: rgba(6, 78, 59, 0.42);
}

html.dashboard-theme-dark body.dashboard-page .category-translation-chevron {
    color: rgba(191, 203, 220, 0.84);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-link-categories-block .category-translations-panel,
html.dashboard-theme-dark body.dashboard-page .group-actions-modal .category-translations-panel {
    border-color: rgba(125, 150, 188, 0.24) !important;
    background: rgba(16, 27, 44, 0.96) !important;
}

html.dashboard-theme-dark body.dashboard-page .dashboard-link-categories-block .category-translations-title,
html.dashboard-theme-dark body.dashboard-page .dashboard-link-categories-block .category-translations-label,
html.dashboard-theme-dark body.dashboard-page .group-actions-modal .category-translations-title,
html.dashboard-theme-dark body.dashboard-page .group-actions-modal .category-translations-label {
    color: rgba(226, 232, 240, 0.86) !important;
}

html.dashboard-theme-dark body.dashboard-page .group-actions-modal__linked-item {
    border-color: rgba(125, 150, 188, 0.22);
    background: rgba(12, 22, 37, 0.72);
}

html.dashboard-theme-dark body.dashboard-page .group-actions-modal__linked-badge {
    border-color: rgba(125, 150, 188, 0.28);
    background: rgba(20, 33, 52, 0.88);
    color: rgba(219, 234, 254, 0.84);
}

html.dashboard-theme-dark body.dashboard-page .group-actions-modal__linked-toggle {
    border-color: rgba(125, 150, 188, 0.34) !important;
    background: linear-gradient(180deg, rgba(18, 30, 48, 0.96) 0%, rgba(11, 22, 37, 0.94) 100%) !important;
    color: rgba(241, 245, 249, 0.94) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 34px rgba(2, 8, 23, 0.36) !important;
}

html.dashboard-theme-dark body.dashboard-page .group-actions-modal__linked-toggle-leading {
    border-color: rgba(96, 165, 250, 0.3);
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.34), rgba(15, 23, 42, 0.92));
    color: rgba(219, 234, 254, 0.96);
}

html.dashboard-theme-dark body.dashboard-page .group-actions-modal__linked-toggle-meta {
    color: rgba(241, 245, 249, 0.98);
}

html.dashboard-theme-dark body.dashboard-page .group-actions-modal__linked-toggle-icon {
    background: rgba(30, 41, 59, 0.88);
    color: rgba(191, 203, 220, 0.88);
}

html.dashboard-theme-dark body.dashboard-page .group-actions-modal__linked-toggle:hover,
html.dashboard-theme-dark body.dashboard-page .group-actions-modal__linked-toggle:focus-visible {
    border-color: rgba(96, 165, 250, 0.5) !important;
    background: linear-gradient(180deg, rgba(24, 39, 61, 0.98) 0%, rgba(13, 24, 42, 0.98) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 38px rgba(2, 8, 23, 0.42) !important;
}

html.dashboard-theme-dark body.dashboard-page .group-actions-modal__linked-list.is-open .group-actions-modal__linked-toggle {
    border-color: rgba(96, 165, 250, 0.58) !important;
    background: linear-gradient(180deg, rgba(18, 43, 74, 0.98) 0%, rgba(11, 25, 46, 0.96) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 42px rgba(2, 8, 23, 0.48) !important;
}

html.dashboard-theme-dark body.dashboard-page .group-actions-modal__linked-list.is-open .group-actions-modal__linked-toggle-icon {
    background: rgba(30, 64, 175, 0.32);
    color: rgba(219, 234, 254, 0.98);
}

html.dashboard-theme-dark body.dashboard-page .group-actions-modal__linked-panel {
    border-color: rgba(125, 150, 188, 0.22);
    background: rgba(9, 17, 30, 0.72);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-links-page .dashboard-links-subpanel,
html.dashboard-theme-dark body.dashboard-page .dashboard-links-page .dashboard-links-field-card,
html.dashboard-theme-dark body.dashboard-page .dashboard-links-page .dashboard-links-icon-shell,
html.dashboard-theme-dark body.dashboard-page .dashboard-links-page .dashboard-links-group-panel,
html.dashboard-theme-dark body.dashboard-page .dashboard-link-categories-block .group-create-form,
html.dashboard-theme-dark body.dashboard-page .dashboard-links-page .group-create-form,
html.dashboard-theme-dark body.dashboard-page .link-config-modal__body,
html.dashboard-theme-dark body.dashboard-page .group-actions-modal__share-box,
html.dashboard-theme-dark body.dashboard-page .guided-link-target-shell,
html.dashboard-theme-dark body.dashboard-page .guided-link-identity-panel,
html.dashboard-theme-dark body.dashboard-page .guided-link-summary-row {
    background: rgba(14, 23, 38, 0.88);
    border-color: rgba(125, 150, 188, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-links-count-card,
html.dashboard-theme-dark body.dashboard-page .link-icon-preview-chip,
html.dashboard-theme-dark body.dashboard-page .group-actions-modal__share-icon,
html.dashboard-theme-dark body.dashboard-page .guided-link-position-badge,
html.dashboard-theme-dark body.dashboard-page .link-config-modal__resolved-label {
    border-color: rgba(125, 150, 188, 0.18);
    background: rgba(18, 30, 48, 0.92);
    color: #dbeafe;
    box-shadow: none;
}

html.dashboard-theme-dark body.dashboard-page .dashboard-links-section-toggle__chevron,
html.dashboard-theme-dark body.dashboard-page .dashboard-group-create-toggle__icon,
html.dashboard-theme-dark body.dashboard-page .link-scope-note__icon {
    background: rgba(18, 30, 48, 0.92);
    color: #93c5fd;
    box-shadow: none;
}

html.dashboard-theme-dark body.dashboard-page .dashboard-standard-form-toggle,
html.dashboard-theme-dark body.dashboard-page .dashboard-group-create-toggle {
    border-top-color: rgba(125, 150, 188, 0.16);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-standard-form-toggle__summary,
html.dashboard-theme-dark body.dashboard-page .dashboard-group-create-toggle__summary,
html.dashboard-theme-dark body.dashboard-page .link-scope-note,
html.dashboard-theme-dark body.dashboard-page .platform-picker__trigger,
html.dashboard-theme-dark body.dashboard-page .platform-picker__menu,
html.dashboard-theme-dark body.dashboard-page .link-scope-card,
html.dashboard-theme-dark body.dashboard-page .group-selection-option__card,
html.dashboard-theme-dark body.dashboard-page .group-list-row,
html.dashboard-theme-dark body.dashboard-page .group-list-row__main,
html.dashboard-theme-dark body.dashboard-page .group-list-row__share,
html.dashboard-theme-dark body.dashboard-page .link-icon-mode-card,
html.dashboard-theme-dark body.dashboard-page .link-icon-option__card,
html.dashboard-theme-dark body.dashboard-page .guided-link-platform-card,
html.dashboard-theme-dark body.dashboard-page .guided-link-visibility-card,
html.dashboard-theme-dark body.dashboard-page .guided-link-summary-row__action,
html.dashboard-theme-dark body.dashboard-page .dashboard-guided-link-promo,
html.dashboard-theme-dark body.dashboard-page .dashboard-guided-link-entry,
html.dashboard-theme-dark body.dashboard-page .guided-link-progress__dot {
    border-color: rgba(125, 150, 188, 0.18);
    background: rgba(17, 27, 43, 0.92);
}

html.dashboard-theme-dark body.dashboard-page .platform-picker__menu {
    box-shadow: 0 24px 54px rgba(2, 8, 20, 0.42);
}

html.dashboard-theme-dark body.dashboard-page .platform-picker__trigger:hover,
html.dashboard-theme-dark body.dashboard-page .platform-picker__trigger:focus-visible,
html.dashboard-theme-dark body.dashboard-page .platform-picker__trigger[aria-expanded="true"],
html.dashboard-theme-dark body.dashboard-page .link-scope-card:hover,
html.dashboard-theme-dark body.dashboard-page .group-selection-option__card:hover,
html.dashboard-theme-dark body.dashboard-page .group-list-row:hover,
html.dashboard-theme-dark body.dashboard-page .group-list-row:focus-within,
html.dashboard-theme-dark body.dashboard-page .group-list-row__share:hover,
html.dashboard-theme-dark body.dashboard-page .group-list-row__share:focus-visible,
html.dashboard-theme-dark body.dashboard-page .link-icon-mode-card:hover,
html.dashboard-theme-dark body.dashboard-page .link-icon-option__card:hover,
html.dashboard-theme-dark body.dashboard-page .guided-link-platform-card:hover,
html.dashboard-theme-dark body.dashboard-page .guided-link-platform-card:focus-visible,
html.dashboard-theme-dark body.dashboard-page .guided-link-visibility-card:hover,
html.dashboard-theme-dark body.dashboard-page .guided-link-visibility-card:focus-visible,
html.dashboard-theme-dark body.dashboard-page .guided-link-summary-row__action:hover,
html.dashboard-theme-dark body.dashboard-page .guided-link-summary-row__action:focus-visible,
html.dashboard-theme-dark body.dashboard-page .dashboard-standard-form-toggle__summary:hover,
html.dashboard-theme-dark body.dashboard-page .dashboard-standard-form-toggle__summary:focus-visible,
html.dashboard-theme-dark body.dashboard-page .dashboard-group-create-toggle__summary:hover,
html.dashboard-theme-dark body.dashboard-page .dashboard-group-create-toggle__summary:focus-visible,
html.dashboard-theme-dark body.dashboard-page .dashboard-guided-link-promo:hover,
html.dashboard-theme-dark body.dashboard-page .dashboard-guided-link-promo:focus-visible {
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(21, 34, 54, 0.96);
    box-shadow: 0 14px 32px rgba(2, 8, 20, 0.28);
}

html.dashboard-theme-dark body.dashboard-page .platform-picker__option {
    color: #edf3ff;
}

html.dashboard-theme-dark body.dashboard-page .platform-picker__option:hover,
html.dashboard-theme-dark body.dashboard-page .platform-picker__option:focus-visible,
html.dashboard-theme-dark body.dashboard-page .platform-picker__option.is-selected {
    background: rgba(26, 41, 64, 0.96);
    color: #f8fbff;
}

html.dashboard-theme-dark body.dashboard-page .platform-picker__eyebrow,
html.dashboard-theme-dark body.dashboard-page .platform-picker__chevron,
html.dashboard-theme-dark body.dashboard-page .guided-link-step__eyebrow,
html.dashboard-theme-dark body.dashboard-page .guided-link-summary__title,
html.dashboard-theme-dark body.dashboard-page .guided-link-summary-row__label,
html.dashboard-theme-dark body.dashboard-page .dashboard-group-create-toggle__copy,
html.dashboard-theme-dark body.dashboard-page .link-scope-card__copy,
html.dashboard-theme-dark body.dashboard-page .link-icon-mode-card__copy,
html.dashboard-theme-dark body.dashboard-page .guided-link-visibility-card__copy,
html.dashboard-theme-dark body.dashboard-page .link-icon-option__label {
    color: rgba(191, 203, 220, 0.76);
}

html.dashboard-theme-dark body.dashboard-page .platform-picker__value,
html.dashboard-theme-dark body.dashboard-page .link-scope-card__title,
html.dashboard-theme-dark body.dashboard-page .link-icon-mode-card__title,
html.dashboard-theme-dark body.dashboard-page .guided-link-visibility-card__label,
html.dashboard-theme-dark body.dashboard-page .dashboard-group-create-toggle__title,
html.dashboard-theme-dark body.dashboard-page .guided-link-summary-row__value,
html.dashboard-theme-dark body.dashboard-page .guided-link-modal__title,
html.dashboard-theme-dark body.dashboard-page .guided-link-platform-card,
html.dashboard-theme-dark body.dashboard-page .group-list-row__edit,
html.dashboard-theme-dark body.dashboard-page .group-list-row__share {
    color: #edf3ff;
}

html.dashboard-theme-dark body.dashboard-page .guided-link-modal__copy,
html.dashboard-theme-dark body.dashboard-page .guided-link-step__copy,
html.dashboard-theme-dark body.dashboard-page .guided-link-field-helper,
html.dashboard-theme-dark body.dashboard-page .dashboard-guided-link-entry__copy,
html.dashboard-theme-dark body.dashboard-page .dashboard-guided-link-promo__text {
    color: rgba(191, 203, 220, 0.8);
}

html.dashboard-theme-dark body.dashboard-page .group-selection-option__check {
    border-color: rgba(125, 150, 188, 0.2);
    background: rgba(10, 18, 31, 0.96);
}

html.dashboard-theme-dark body.dashboard-page .link-scope-card.is-selected,
html.dashboard-theme-dark body.dashboard-page .group-selection-option__card.is-selected,
html.dashboard-theme-dark body.dashboard-page .link-icon-mode-card.is-selected,
html.dashboard-theme-dark body.dashboard-page .link-icon-option__card.is-selected,
html.dashboard-theme-dark body.dashboard-page .link-icon-option.is-selected .link-icon-option__card,
html.dashboard-theme-dark body.dashboard-page .guided-link-platform-card.is-selected,
html.dashboard-theme-dark body.dashboard-page .guided-link-visibility-card.is-selected {
    border-color: rgba(96, 165, 250, 0.46);
    background: rgba(25, 39, 61, 0.96);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14), 0 16px 34px rgba(2, 8, 20, 0.24);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-links-page .link-summary-card {
    border-color: rgba(125, 150, 188, 0.16);
    background: rgba(17, 27, 43, 0.92);
    box-shadow: 0 16px 34px rgba(2, 8, 20, 0.18);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-links-page .link-summary-card:hover,
html.dashboard-theme-dark body.dashboard-page .dashboard-links-page .link-summary-card:focus-visible {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(22, 35, 55, 0.98);
    box-shadow: 0 18px 38px rgba(2, 8, 20, 0.28);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-links-page .link-summary-card__title,
html.dashboard-theme-dark body.dashboard-page .dashboard-links-page .link-summary-card__edit {
    color: #edf3ff;
}

html.dashboard-theme-dark body.dashboard-page .dashboard-links-page .link-summary-card__visibility,
html.dashboard-theme-dark body.dashboard-page .dashboard-links-page .link-summary-card__visibility i {
    color: rgba(191, 203, 220, 0.8);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-groups-block .group-create-form,
html.dashboard-theme-dark body.dashboard-page .dashboard-link-categories-block .group-create-form {
    border-color: rgba(125, 150, 188, 0.16) !important;
    background: rgba(14, 23, 38, 0.94) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-groups-block .group-create-form .form-input,
html.dashboard-theme-dark body.dashboard-page .dashboard-link-categories-block .group-create-form .form-input {
    background: rgba(17, 27, 43, 0.96);
    border-color: rgba(125, 150, 188, 0.18);
    color: #edf3ff;
}

html.dashboard-theme-dark body.dashboard-page .dashboard-groups-block .group-create-form .form-input::placeholder,
html.dashboard-theme-dark body.dashboard-page .dashboard-link-categories-block .group-create-form .form-input::placeholder {
    color: rgba(191, 203, 220, 0.66);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-groups-block .group-create-form .text-ink,
html.dashboard-theme-dark body.dashboard-page .dashboard-link-categories-block .group-create-form .text-ink {
    color: #edf3ff !important;
}

html.dashboard-theme-dark body.dashboard-page .dashboard-groups-block .group-create-form .text-fog,
html.dashboard-theme-dark body.dashboard-page .dashboard-groups-block .group-create-form p,
html.dashboard-theme-dark body.dashboard-page .dashboard-link-categories-block .group-create-form .text-fog,
html.dashboard-theme-dark body.dashboard-page .dashboard-link-categories-block .group-create-form p {
    color: rgba(191, 203, 220, 0.78);
}

html.dashboard-theme-dark body.dashboard-page .group-list-row__main {
    border-color: rgba(125, 150, 188, 0.18);
    background: rgba(15, 24, 39, 0.94);
}

html.dashboard-theme-dark body.dashboard-page .group-list-row__main:focus-visible {
    border-color: rgba(96, 165, 250, 0.32);
}

html.dashboard-theme-dark body.dashboard-page .group-list-row__edit {
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(20, 33, 52, 0.96);
    color: #dbeafe;
}

html.dashboard-theme-dark body.dashboard-page .group-list-row:hover .group-list-row__edit,
html.dashboard-theme-dark body.dashboard-page .group-list-row:focus-within .group-list-row__edit,
html.dashboard-theme-dark body.dashboard-page .group-list-row__main:hover .group-list-row__edit,
html.dashboard-theme-dark body.dashboard-page .group-list-row__main:focus-visible .group-list-row__edit {
    border-color: rgba(125, 211, 252, 0.28);
    background: rgba(24, 40, 63, 0.98);
    color: #eff6ff;
}

html.dashboard-theme-dark body.dashboard-page .guided-link-progress__dot,
html.dashboard-theme-dark body.dashboard-page .guided-link-progress__line {
    background: rgba(18, 30, 48, 0.92);
    border-color: rgba(125, 150, 188, 0.18);
    color: rgba(191, 203, 220, 0.78);
}

html.dashboard-theme-dark body.dashboard-page .guided-link-progress__node {
    color: rgba(191, 203, 220, 0.72);
}

html.dashboard-theme-dark body.dashboard-page .guided-link-icon-shell {
    background: rgba(255, 255, 255, 0.03);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-guided-link-promo__title,
html.dashboard-theme-dark body.dashboard-page .guided-link-modal__kicker,
html.dashboard-theme-dark body.dashboard-page .link-config-modal__eyebrow,
html.dashboard-theme-dark body.dashboard-page .group-actions-modal__eyebrow {
    color: #c4b5fd;
}

html.frontend-theme-light {
    color-scheme: light;
}

html.frontend-theme-dark {
    color-scheme: dark;
}

body.frontend-page.frontend-theme-dark {
    --frontend-bg:
        radial-gradient(circle at 12% 8%, rgba(30, 75, 160, 0.16), transparent 28%),
        radial-gradient(circle at 86% 14%, rgba(100, 60, 200, 0.13), transparent 26%),
        linear-gradient(180deg, #07111f 0%, #0b1220 48%, #101827 100%);
    --frontend-surface: rgba(11, 19, 34, 0.88);
    --frontend-surface-soft: rgba(14, 23, 40, 0.94);
    --frontend-surface-soft-alt: rgba(13, 22, 38, 0.92);
    --frontend-surface-subtle: rgba(255, 255, 255, 0.04);
    --frontend-card: rgba(15, 23, 42, 0.78);
    --frontend-border: rgba(255, 255, 255, 0.08);
    --frontend-outline: rgba(255, 255, 255, 0.05);
    --frontend-text: #f8fafc;
    --frontend-muted: rgba(203, 213, 225, 0.72);
    --frontend-accent: #60a5fa;
    --frontend-header: rgba(7, 17, 31, 0.86);
    --frontend-footer: rgba(7, 17, 31, 0.82);
    --frontend-input: rgba(10, 17, 30, 0.92);
    --frontend-shadow: 0 28px 70px rgba(2, 8, 20, 0.42), 0 10px 24px rgba(46, 106, 199, 0.08);
    --frontend-soft-shadow: 0 14px 36px rgba(2, 8, 20, 0.28);
    background: var(--frontend-bg);
    color: var(--frontend-text);
}

body.frontend-page.frontend-theme-dark .page-glow {
    opacity: 0.34;
    background:
        radial-gradient(circle at 14% 12%, rgba(88, 174, 242, 0.18), transparent 22%),
        radial-gradient(circle at 84% 16%, rgba(139, 92, 246, 0.16), transparent 20%),
        radial-gradient(circle at 60% 86%, rgba(255, 255, 255, 0.04), transparent 24%);
}

body.frontend-page.frontend-theme-dark .surface-panel {
    border-color: var(--frontend-border);
    background: var(--frontend-surface);
    box-shadow: var(--frontend-shadow);
}

body.frontend-page.frontend-theme-dark .surface-soft {
    border-color: var(--frontend-border);
    background: var(--frontend-surface-soft);
    box-shadow: var(--frontend-soft-shadow);
}

body.frontend-page.frontend-theme-dark .surface-subtle {
    border-color: var(--frontend-border);
    background: var(--frontend-surface-subtle);
}

body.frontend-page.frontend-theme-dark .section-outline::after {
    box-shadow: inset 0 0 0 1px var(--frontend-outline);
}

body.frontend-page.frontend-theme-dark .text-ink,
body.frontend-page.frontend-theme-dark .text-slate-900,
body.frontend-page.frontend-theme-dark .text-slate-800,
body.frontend-page.frontend-theme-dark .text-slate-700 {
    color: var(--frontend-text) !important;
}

body.frontend-page.frontend-theme-dark .text-fog,
body.frontend-page.frontend-theme-dark .text-slate-600,
body.frontend-page.frontend-theme-dark .text-slate-500,
body.frontend-page.frontend-theme-dark .text-slate-400 {
    color: var(--frontend-muted) !important;
}

body.frontend-page.frontend-theme-dark .border-slate-200,
body.frontend-page.frontend-theme-dark .border-slate-200\/80,
body.frontend-page.frontend-theme-dark .border-slate-200\/90,
body.frontend-page.frontend-theme-dark .border-slate-100 {
    border-color: var(--frontend-border) !important;
}

body.frontend-page.frontend-theme-dark .bg-white,
body.frontend-page.frontend-theme-dark .bg-white\/90,
body.frontend-page.frontend-theme-dark .bg-white\/85,
body.frontend-page.frontend-theme-dark .bg-white\/80,
body.frontend-page.frontend-theme-dark .bg-white\/75,
body.frontend-page.frontend-theme-dark .bg-white\/70,
body.frontend-page.frontend-theme-dark .bg-slate-50\/70,
body.frontend-page.frontend-theme-dark .bg-slate-100 {
    background: var(--frontend-surface-soft-alt) !important;
}

body.frontend-page.frontend-theme-dark .btn-secondary,
body.frontend-page.frontend-theme-dark .btn-danger {
    border-color: var(--frontend-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--frontend-text);
}

body.frontend-page.frontend-theme-dark .btn-secondary:hover,
body.frontend-page.frontend-theme-dark .btn-danger:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
}

body.frontend-page.frontend-theme-dark .form-input {
    border-color: var(--frontend-border);
    background: var(--frontend-input);
    color: var(--frontend-text);
}

body.frontend-page.frontend-theme-dark .form-input:focus {
    border-color: rgba(96, 165, 250, 0.44);
    background: var(--frontend-surface-soft);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

body.frontend-page.frontend-theme-dark .site-navbar {
    border-color: rgba(255, 255, 255, 0.08);
    background: var(--frontend-header);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 20px rgba(2, 8, 20, 0.18);
}

body.frontend-page.frontend-theme-dark .site-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: var(--frontend-footer);
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04);
}

body.frontend-page.frontend-theme-dark .site-footer p,
body.frontend-page.frontend-theme-dark .site-footer a {
    color: var(--frontend-muted);
}

body.frontend-page.frontend-theme-dark .site-footer a:hover {
    color: var(--frontend-text);
}

body.frontend-page.frontend-theme-dark .site-navbar-nav-link,
body.frontend-page.frontend-theme-dark .site-menu-link,
body.frontend-page.frontend-theme-dark .site-account-menu__link,
body.frontend-page.frontend-theme-dark .site-account-menu__header-link,
body.frontend-page.frontend-theme-dark .site-language-switcher__trigger,
body.frontend-page.frontend-theme-dark .search-form [data-search-input="true"],
body.frontend-page.frontend-theme-dark .search-form button[type="submit"],
body.frontend-page.frontend-theme-dark .search-suggestions,
body.frontend-page.frontend-theme-dark .site-notification-panel,
body.frontend-page.frontend-theme-dark .site-notification-toggle,
body.frontend-page.frontend-theme-dark .site-search-toggle-mobile,
body.frontend-page.frontend-theme-dark .site-menu-toggle,
body.frontend-page.frontend-theme-dark .site-account-menu__trigger,
body.frontend-page.frontend-theme-dark .site-account-menu__panel,
body.frontend-page.frontend-theme-dark .site-language-switcher__menu,
body.frontend-page.frontend-theme-dark .site-menu-panel {
    border-color: var(--frontend-border);
    background: var(--frontend-surface-soft);
    color: var(--frontend-text);
    box-shadow: var(--frontend-soft-shadow);
}

body.frontend-page.frontend-theme-dark .site-navbar-nav-link {
    color: rgba(214, 226, 242, 0.78);
}

body.frontend-page.frontend-theme-dark .site-navbar-nav-link:hover,
body.frontend-page.frontend-theme-dark .site-navbar-nav-link:focus-visible,
body.frontend-page.frontend-theme-dark .site-navbar-nav-link.is-active {
    color: #f8fbff;
    text-shadow: 0 0 18px rgba(147, 197, 253, 0.22);
}

body.frontend-page.frontend-theme-dark .site-navbar-nav-link::after,
body.frontend-page.frontend-theme-dark .site-menu-link::after {
    background: rgba(147, 197, 253, 0);
}

body.frontend-page.frontend-theme-dark .site-navbar-nav-link:hover::after,
body.frontend-page.frontend-theme-dark .site-navbar-nav-link:focus-visible::after,
body.frontend-page.frontend-theme-dark .site-navbar-nav-link.is-active::after,
body.frontend-page.frontend-theme-dark .site-menu-link:hover::after,
body.frontend-page.frontend-theme-dark .site-menu-link:focus-visible::after,
body.frontend-page.frontend-theme-dark .site-menu-link.is-active::after {
    background: rgba(147, 197, 253, 0.9);
}

body.frontend-page.frontend-theme-dark .search-form [data-search-input="true"] {
    background: var(--frontend-input);
    color: var(--frontend-text);
}

body.frontend-page.frontend-theme-dark .search-form [data-search-input="true"]::placeholder {
    color: rgba(191, 203, 220, 0.58);
}

body.frontend-page.frontend-theme-dark .search-form button[type="submit"]:hover,
body.frontend-page.frontend-theme-dark .site-account-menu__trigger:hover,
body.frontend-page.frontend-theme-dark .site-language-switcher__trigger:hover,
body.frontend-page.frontend-theme-dark .site-notification-toggle:hover,
body.frontend-page.frontend-theme-dark .site-search-toggle-mobile:hover,
body.frontend-page.frontend-theme-dark .site-menu-toggle:hover {
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(17, 29, 47, 0.96);
}

body.frontend-page.frontend-theme-dark .site-menu-link:hover,
body.frontend-page.frontend-theme-dark .site-menu-link:focus-visible,
body.frontend-page.frontend-theme-dark .site-menu-link.is-active,
body.frontend-page.frontend-theme-dark .site-account-menu__link:hover,
body.frontend-page.frontend-theme-dark .site-account-menu__link:focus-visible,
body.frontend-page.frontend-theme-dark .site-account-menu__header-link:hover,
body.frontend-page.frontend-theme-dark .site-account-menu__header-link:focus-visible,
body.frontend-page.frontend-theme-dark .site-notification-item:hover,
body.frontend-page.frontend-theme-dark .site-notification-item:focus-visible {
    background: rgba(255, 255, 255, 0.04);
    color: var(--frontend-text);
}

body.frontend-page.frontend-theme-dark .site-menu-section-label,
body.frontend-page.frontend-theme-dark .site-account-menu__caret,
body.frontend-page.frontend-theme-dark .site-notification-empty {
    color: var(--frontend-muted);
}

body.frontend-page.frontend-theme-dark .search-suggestions,
body.frontend-page.frontend-theme-dark .search-empty-profile-card,
body.frontend-page.frontend-theme-dark .result-card,
body.frontend-page.frontend-theme-dark .discovery-card {
    border-color: var(--frontend-border);
    background: var(--frontend-card);
    box-shadow: var(--frontend-soft-shadow);
}

body.frontend-page.frontend-theme-dark .search-empty-profile-card:hover,
body.frontend-page.frontend-theme-dark .result-card:hover,
body.frontend-page.frontend-theme-dark .discovery-card:hover,
body.frontend-page.frontend-theme-dark .discovery-card:focus-visible {
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 16px 40px rgba(2, 8, 20, 0.36), 0 6px 16px rgba(46, 106, 199, 0.1);
}

body.frontend-page.frontend-theme-dark .result-avatar,
body.frontend-page.frontend-theme-dark .discovery-avatar,
body.frontend-page.frontend-theme-dark .search-empty-profile-card img {
    box-shadow: 0 10px 24px rgba(2, 8, 20, 0.28);
}

body.frontend-page.frontend-theme-dark .home-hero-carousel__button {
    border-color: var(--frontend-border);
    background: rgba(16, 26, 42, 0.92);
    color: var(--frontend-text);
}

body.frontend-page.frontend-theme-dark .home-hero-carousel__button:hover,
body.frontend-page.frontend-theme-dark .home-hero-carousel__button:focus-visible {
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(18, 31, 49, 0.98);
}

body.frontend-page.frontend-theme-dark .home-hero-carousel__edge--left {
    background: linear-gradient(90deg, rgb(14, 21, 46), rgba(16, 21, 48, 0));
}

body.frontend-page.frontend-theme-dark .home-hero-carousel__edge--right {
    background: linear-gradient(270deg, rgb(14, 21, 46), rgba(16, 21, 48, 0));
}

body.frontend-page.frontend-theme-dark [data-home-discovery-section="true"]::before {
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.92) 0%, rgba(10, 18, 30, 0.42) 58%, rgba(10, 18, 30, 0) 100%);
}

body.frontend-page.frontend-theme-dark.search-page > .site-body-wrap > main > section.surface-panel.section-outline {
    background:
        radial-gradient(circle at top center, rgba(18, 31, 49, 0.94) 0%, rgba(12, 22, 36, 0.92) 48%, rgba(9, 17, 29, 0.94) 100%);
}

body.frontend-page.frontend-theme-dark .insight-content,
body.frontend-page.frontend-theme-dark .insight-content h1,
body.frontend-page.frontend-theme-dark .insight-content h2,
body.frontend-page.frontend-theme-dark .insight-content h3,
body.frontend-page.frontend-theme-dark .insight-content h4 {
    color: var(--frontend-text);
}

body.frontend-page.frontend-theme-dark .insight-content blockquote {
    border-left-color: rgba(96, 165, 250, 0.4);
    color: var(--frontend-muted);
}

body.frontend-page.frontend-theme-dark .insight-content hr,
body.frontend-page.frontend-theme-dark .insight-content table,
body.frontend-page.frontend-theme-dark .insight-content th,
body.frontend-page.frontend-theme-dark .insight-content td {
    border-color: var(--frontend-border);
}

body.frontend-page.frontend-theme-dark .insight-content th {
    background: rgba(255, 255, 255, 0.05);
}

body.frontend-page.frontend-theme-dark .insight-article-cta {
    border-color: rgba(88, 174, 242, 0.24);
    background: rgba(18, 34, 55, 0.9);
}

/* -------------------------------------------------------
   FRONTEND DARK MODE — HOME PAGE REFINEMENTS
   ------------------------------------------------------- */

/* Hero: let body dark gradient show through instead of white panel */
body.frontend-page.frontend-theme-dark .home-hero-upgrade {
    background: linear-gradient(180deg,
        rgba(7, 17, 31, 0.45) 0%,
        rgba(10, 18, 30, 0.18) 65%,
        transparent 100%);
}

/* Hero auth bottom fade band: replace light grey ramp with dark-matching fade */
body.frontend-page.frontend-theme-dark .home-hero-auth::before {
    background: linear-gradient(180deg, rgba(7, 17, 31, 0), rgba(9, 17, 31, 0.72) 46%, rgba(9, 17, 31, 0.96));
}

/* Hero auth radial white glow: suppress in dark mode */
body.frontend-page.frontend-theme-dark .home-hero-auth::after {
    opacity: 0 !important;
}

/* Discovery section: override inline Tailwind bg gradient with dark surface */
body.frontend-page.frontend-theme-dark [data-home-discovery-section="true"] {
    background: linear-gradient(180deg, rgba(9, 17, 31, 0.99) 0%, rgba(11, 20, 34, 0.98) 100%) !important;
}

/* Discovery section ambient decorators: suppress the light blobs */
body.frontend-page.frontend-theme-dark [data-home-discovery-section="true"] [aria-hidden="true"] > div {
    opacity: 0 !important;
}

/* Discovery filter pill container already handled via bg-white\/90 override */

/* Active discovery filter pill */
body.frontend-page.frontend-theme-dark .home-discovery-filter[aria-current="page"] {
    background: rgba(20, 42, 78, 0.94) !important;
    color: rgba(147, 197, 253, 0.92) !important;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18), 0 8px 20px rgba(46, 106, 199, 0.08);
}

/* Inactive discovery filter pill hover */
body.frontend-page.frontend-theme-dark .home-discovery-filter:hover:not([aria-current]) {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f8fafc !important;
}

/* Brand-tinted backgrounds (filter pills, pagination active) */
body.frontend-page.frontend-theme-dark .bg-brand-50 {
    background: rgba(20, 42, 78, 0.94) !important;
}

/* Brand text in dark mode: boost to readable accent blue */
body.frontend-page.frontend-theme-dark .text-brand-700 {
    color: rgba(147, 197, 253, 0.92) !important;
}

body.frontend-page.frontend-theme-dark .text-brand-500,
body.frontend-page.frontend-theme-dark .text-brand-600 {
    color: rgba(96, 165, 250, 0.88) !important;
}

/* Feature / audience card icon background tints */
body.frontend-page.frontend-theme-dark .bg-sky-50 {
    background: rgba(12, 38, 72, 0.82) !important;
}

body.frontend-page.frontend-theme-dark .bg-violet-50 {
    background: rgba(35, 18, 70, 0.82) !important;
}

body.frontend-page.frontend-theme-dark .bg-emerald-50 {
    background: rgba(12, 45, 36, 0.82) !important;
}

/* Keep icon colors vivid against dark tinted backgrounds */
body.frontend-page.frontend-theme-dark .text-sky-600 {
    color: #38bdf8 !important;
}

body.frontend-page.frontend-theme-dark .text-violet-600 {
    color: #a78bfa !important;
}

body.frontend-page.frontend-theme-dark .text-emerald-600 {
    color: #34d399 !important;
}

/* "How it works" section: bg-[#eef2f6] → dark navy surface */
body.frontend-page.frontend-theme-dark .bg-\[\#eef2f6\] {
    background: rgba(9, 16, 28, 0.98) !important;
}

/* Section border-y within dark "How" section */
body.frontend-page.frontend-theme-dark .bg-\[\#eef2f6\].border-y {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

/* Highlighted audience card accent border */
body.frontend-page.frontend-theme-dark .border-indigo-200 {
    border-color: rgba(96, 120, 200, 0.28) !important;
}

/* CTA band: slightly desaturated gradient so it reads as premium, not harsh */
body.frontend-page.frontend-theme-dark .home-cta-band {
    background: linear-gradient(135deg, #1d4d7c 0%, #464bc0 55%, #6644b4 100%) !important;
}

body.profile-page.profile-page--surface-dark .site-navbar {
    border-color: rgba(120, 148, 190, 0.12);
    background: rgba(9, 17, 29, 0.9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.profile-page.profile-page--surface-dark .site-navbar-nav-link {
    color: rgba(214, 226, 242, 0.78);
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

body.profile-page.profile-page--surface-dark .site-navbar-nav-link:hover,
body.profile-page.profile-page--surface-dark .site-navbar-nav-link:focus-visible,
body.profile-page.profile-page--surface-dark .site-navbar-nav-link.is-active {
    color: #f8fbff;
    text-shadow: 0 0 18px rgba(147, 197, 253, 0.22);
}

body.profile-page.profile-page--surface-dark .site-navbar-nav-link::after {
    background: rgba(147, 197, 253, 0);
}

body.profile-page.profile-page--surface-dark .site-navbar-nav-link:hover::after,
body.profile-page.profile-page--surface-dark .site-navbar-nav-link:focus-visible::after,
body.profile-page.profile-page--surface-dark .site-navbar-nav-link.is-active::after {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.96), rgba(167, 139, 250, 0.92));
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.34);
}

body.profile-page.profile-page--surface-dark .site-search-toggle-mobile,
body.profile-page.profile-page--surface-dark .site-notification-toggle,
body.profile-page.profile-page--surface-dark .site-menu-toggle {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(222, 234, 248, 0.85);
    box-shadow: none;
}

body.profile-page.profile-page--surface-dark .site-search-toggle-mobile:hover,
body.profile-page.profile-page--surface-dark .site-notification-toggle:hover,
body.profile-page.profile-page--surface-dark .site-menu-toggle:hover {
    border-color: rgba(148, 163, 184, 0.32);
    background: rgba(255, 255, 255, 0.12);
    color: #f8fbff;
}

body.profile-page.profile-page--surface-dark .site-menu-panel {
    border-color: rgba(120, 148, 190, 0.14);
    background: rgba(9, 18, 32, 0.95);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.32);
}

body.profile-page.profile-page--surface-dark .site-menu-link {
    color: rgba(191, 203, 220, 0.75);
}

body.profile-page.profile-page--surface-dark .site-menu-link:hover,
body.profile-page.profile-page--surface-dark .site-menu-link:focus-visible,
body.profile-page.profile-page--surface-dark .site-menu-link.is-active {
    color: #f8fbff;
    background: rgba(255, 255, 255, 0.07);
}

body.profile-page.profile-page--surface-dark .site-menu-section-label {
    color: rgba(148, 163, 184, 0.65);
}

body.profile-page.profile-page--surface-dark .site-footer {
    border-top-color: rgba(148, 163, 184, 0.1);
    background: rgba(9, 17, 29, 0.72);
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04);
}

body.profile-page.profile-page--surface-dark .site-footer p,
body.profile-page.profile-page--surface-dark .site-footer a {
    color: rgba(191, 203, 220, 0.5);
}

body.profile-page.profile-page--surface-dark .site-footer a:hover {
    color: rgba(222, 234, 248, 0.88);
}

body.profile-page.profile-page--surface-dark .site-navbar.section-outline::after {
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}

html.dashboard-theme-dark body.dashboard-page .site-navbar {
    border-color: rgba(125, 150, 188, 0.12);
    background: var(--dashboard-header-bg);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.dashboard-theme-dark body.dashboard-page .site-footer {
    margin-top: 0;
    border-top-color: rgba(125, 150, 188, 0.1);
    background: var(--dashboard-footer-bg);
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04);
}

html.dashboard-theme-dark body.dashboard-page .site-footer p,
html.dashboard-theme-dark body.dashboard-page .site-footer a {
    color: rgba(191, 203, 220, 0.66);
}

html.dashboard-theme-dark body.dashboard-page .site-footer a:hover {
    color: #f8fbff;
}

html.dashboard-theme-dark body.dashboard-page .site-navbar-nav-link,
html.dashboard-theme-dark body.dashboard-page .site-menu-link,
html.dashboard-theme-dark body.dashboard-page .site-account-menu__link,
html.dashboard-theme-dark body.dashboard-page .site-account-menu__header-link,
html.dashboard-theme-dark body.dashboard-page .site-language-switcher__trigger,
html.dashboard-theme-dark body.dashboard-page .search-form [data-search-input="true"],
html.dashboard-theme-dark body.dashboard-page .search-form button[type="submit"],
html.dashboard-theme-dark body.dashboard-page .search-suggestions,
html.dashboard-theme-dark body.dashboard-page .site-notification-panel,
html.dashboard-theme-dark body.dashboard-page .site-notification-toggle,
html.dashboard-theme-dark body.dashboard-page .site-search-toggle-mobile,
html.dashboard-theme-dark body.dashboard-page .site-menu-toggle,
html.dashboard-theme-dark body.dashboard-page .site-account-menu__trigger,
html.dashboard-theme-dark body.dashboard-page .site-account-menu__panel,
html.dashboard-theme-dark body.dashboard-page .site-language-switcher__menu,
html.dashboard-theme-dark body.dashboard-page .site-menu-panel {
    border-color: rgba(125, 150, 188, 0.16);
    background: rgba(10, 18, 31, 0.9);
    color: var(--dashboard-text);
    box-shadow: none;
}

html.dashboard-theme-dark body.dashboard-page .site-navbar-nav-link {
    color: rgba(214, 226, 242, 0.8);
}

html.dashboard-theme-dark body.dashboard-page .site-navbar-nav-link:hover,
html.dashboard-theme-dark body.dashboard-page .site-navbar-nav-link:focus-visible,
html.dashboard-theme-dark body.dashboard-page .site-navbar-nav-link.is-active {
    color: #f8fbff;
}

html.dashboard-theme-dark body.dashboard-page .site-navbar-nav-link::after,
html.dashboard-theme-dark body.dashboard-page .site-menu-link::after {
    background: rgba(147, 197, 253, 0);
}

html.dashboard-theme-dark body.dashboard-page .site-navbar-nav-link:hover::after,
html.dashboard-theme-dark body.dashboard-page .site-navbar-nav-link:focus-visible::after,
html.dashboard-theme-dark body.dashboard-page .site-navbar-nav-link.is-active::after,
html.dashboard-theme-dark body.dashboard-page .site-menu-link:hover::after,
html.dashboard-theme-dark body.dashboard-page .site-menu-link:focus-visible::after,
html.dashboard-theme-dark body.dashboard-page .site-menu-link.is-active::after {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.96), rgba(167, 139, 250, 0.92));
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.34);
}

html.dashboard-theme-dark body.dashboard-page .search-form [data-search-input="true"] {
    color: var(--dashboard-text);
    box-shadow: 0 24px 60px rgba(2, 8, 20, 0.24), 0 8px 20px rgba(15, 23, 42, 0.08);
}

html.dashboard-theme-dark body.dashboard-page .search-form [data-search-input="true"]::placeholder {
    color: rgba(191, 203, 220, 0.46);
}

html.dashboard-theme-dark body.dashboard-page .search-form button[type="submit"]:hover,
html.dashboard-theme-dark body.dashboard-page .site-account-menu__trigger:hover,
html.dashboard-theme-dark body.dashboard-page .site-language-switcher__trigger:hover,
html.dashboard-theme-dark body.dashboard-page .site-notification-toggle:hover,
html.dashboard-theme-dark body.dashboard-page .site-search-toggle-mobile:hover,
html.dashboard-theme-dark body.dashboard-page .site-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

html.dashboard-theme-dark body.dashboard-page .site-menu-link:hover,
html.dashboard-theme-dark body.dashboard-page .site-menu-link:focus-visible,
html.dashboard-theme-dark body.dashboard-page .site-menu-link.is-active,
html.dashboard-theme-dark body.dashboard-page .site-account-menu__link:hover,
html.dashboard-theme-dark body.dashboard-page .site-account-menu__link:focus-visible,
html.dashboard-theme-dark body.dashboard-page .site-account-menu__header-link:hover,
html.dashboard-theme-dark body.dashboard-page .site-account-menu__header-link:focus-visible,
html.dashboard-theme-dark body.dashboard-page .site-notification-item:hover,
html.dashboard-theme-dark body.dashboard-page .site-notification-item:focus-visible {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fbff;
}

html.dashboard-theme-dark body.dashboard-page .site-menu-section-label,
html.dashboard-theme-dark body.dashboard-page .site-account-menu__caret,
html.dashboard-theme-dark body.dashboard-page .site-notification-empty {
    color: rgba(191, 203, 220, 0.62);
}

body.profile-page.profile-page--theme-soft-blue .site-navbar {
    background: rgba(237, 246, 255, 0.88);
    border-color: rgba(162, 207, 255, 0.38);
}
body.profile-page.profile-page--theme-soft-blue .site-footer {
    background: rgba(237, 246, 255, 0.88);
    border-top-color: rgba(162, 207, 255, 0.28);
}

body.profile-page.profile-page--theme-warm-sand .site-navbar {
    background: rgba(255, 248, 239, 0.92);
    border-color: rgba(255, 226, 187, 0.42);
}
body.profile-page.profile-page--theme-warm-sand .site-footer {
    background: rgba(255, 248, 239, 0.9);
    border-top-color: rgba(255, 226, 187, 0.32);
}

body.profile-page.profile-page--theme-emerald .site-navbar {
    background: rgba(237, 248, 245, 0.9);
    border-color: rgba(144, 236, 213, 0.36);
}
body.profile-page.profile-page--theme-emerald .site-footer {
    background: rgba(237, 248, 245, 0.9);
    border-top-color: rgba(144, 236, 213, 0.28);
}

body.profile-page.profile-page--theme-lavender .site-navbar {
    background: rgba(248, 243, 255, 0.9);
    border-color: rgba(221, 201, 255, 0.4);
}
body.profile-page.profile-page--theme-lavender .site-footer {
    background: rgba(248, 243, 255, 0.9);
    border-top-color: rgba(221, 201, 255, 0.3);
}

body.profile-page.profile-page--theme-sunset .site-navbar {
    background: rgba(255, 242, 234, 0.9);
    border-color: rgba(255, 179, 129, 0.38);
}
body.profile-page.profile-page--theme-sunset .site-footer {
    background: rgba(255, 242, 234, 0.9);
    border-top-color: rgba(255, 179, 129, 0.28);
}

body.profile-page.profile-page--theme-clay .site-navbar {
    background: rgba(251, 241, 237, 0.9);
    border-color: rgba(224, 167, 148, 0.36);
}
body.profile-page.profile-page--theme-clay .site-footer {
    background: rgba(251, 241, 237, 0.9);
    border-top-color: rgba(224, 167, 148, 0.28);
}

.page-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.95), transparent 24%),
        radial-gradient(circle at 86% 12%, rgba(88, 174, 242, 0.1), transparent 18%),
        radial-gradient(circle at 82% 84%, rgba(139, 92, 246, 0.08), transparent 22%);
}

.surface-panel {
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(18px);
}

.profile-theme-shell {
    position: relative;
    isolation: isolate;
    --profile-texture-filter: none;
    --profile-texture-swatch-filter: var(--profile-texture-filter);
    width: min(100%, 74rem);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 2.4rem;
    padding: 0.9rem;
    background: var(--profile-theme-background, linear-gradient(160deg, #f8fbff 0%, #eef3f8 52%, #e8eef5 100%));
    box-shadow: var(--profile-shell-shadow, 0 28px 72px rgba(15, 23, 42, 0.08));
    transition: box-shadow 240ms ease, transform 240ms ease, filter 240ms ease;
    contain: paint;
}

.profile-theme-page {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    background: var(--profile-theme-background, linear-gradient(160deg, #f8fbff 0%, #eef3f8 52%, #e8eef5 100%));
}

.profile-theme-page::before,
.profile-theme-page::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.profile-theme-page::before {
    z-index: 0;
    opacity: var(--profile-texture-opacity, 0);
    background-image: var(--profile-texture-image, none);
    background-size: var(--profile-texture-size, cover);
    background-position: var(--profile-texture-position, center top);
    background-repeat: no-repeat;
    filter: var(--profile-texture-filter, none);
}

.profile-theme-page::after {
    z-index: 0;
    background:
        radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.36), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.14), transparent 34%);
    opacity: 0.9;
}

.profile-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - 5rem);
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}

.profile-theme-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: var(--profile-texture-opacity, 0);
    background-image: var(--profile-texture-image, none);
    background-size: var(--profile-texture-size, cover);
    background-position: var(--profile-texture-position, center top);
    background-repeat: no-repeat;
    filter: var(--profile-texture-filter, none);
    transition: opacity 240ms ease, filter 240ms ease, transform 320ms ease;
    transform: scale(1);
}

.profile-theme-card {
    position: relative;
    z-index: 1;
    border-color: var(--profile-card-border, rgba(255, 255, 255, 0.78));
    background: var(--profile-card-bg, rgba(255, 255, 255, 0.9));
    box-shadow: var(--profile-card-shadow, var(--panel-shadow));
    backdrop-filter: blur(var(--profile-card-blur, 18px));
    color: var(--profile-card-copy, #475467);
    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        color 220ms ease,
        box-shadow 240ms ease,
        transform 240ms ease,
        opacity 200ms ease;
}

.profile-content > .profile-theme-card {
    align-self: center;
}

.profile-theme-card.section-outline::after {
    box-shadow: inset 0 0 0 1px var(--profile-card-outline, rgba(255, 255, 255, 0.52));
}

.profile-theme-title {
    color: var(--profile-card-title, var(--brand-ink));
    transition: color 220ms ease;
}

.profile-theme-eyebrow,
.profile-theme-handle,
.profile-theme-copy,
.profile-theme-copy strong,
.profile-theme-link-title,
.profile-theme-growth-title {
    color: var(--profile-card-copy, #475467);
}

.profile-theme-copy strong,
.profile-theme-link-title,
.profile-theme-growth-title {
    color: var(--profile-card-title, var(--brand-ink));
    transition: color 220ms ease;
}

.profile-theme-badge {
    border: 1px solid var(--profile-card-chip-border, rgba(148, 163, 184, 0.2));
    background: var(--profile-card-chip-bg, rgba(248, 250, 252, 0.9));
    color: var(--profile-card-chip-text, rgba(71, 85, 105, 0.95));
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.bio-lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.82rem;
    border-radius: 9999px;
    border: 1px solid var(--profile-card-chip-border, rgba(148, 163, 184, 0.24));
    background: var(--profile-card-chip-bg, rgba(248, 250, 252, 0.88));
    color: var(--profile-card-chip-text, rgba(71, 85, 105, 0.82));
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.bio-lang-pill:hover {
    border-color: rgba(var(--profile-accent-rgb, 88, 174, 242), 0.36);
    color: var(--profile-card-title, var(--brand-ink));
}

.profile-theme-card .profile-link-tile,
.profile-theme-card .profile-growth-cta,
.profile-theme-card .profile-engagement-button,
.profile-theme-card .btn-secondary {
    border-color: var(--profile-surface-border, rgba(15, 23, 42, 0.08));
    background: var(--profile-surface-bg, rgba(255, 255, 255, 0.9));
    box-shadow: var(--profile-surface-shadow, 0 10px 22px rgba(16, 24, 40, 0.05));
    color: var(--profile-surface-text, var(--brand-ink));
    transition:
        background-color 200ms ease,
        border-color 200ms ease,
        color 200ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.profile-theme-card .profile-link-tile .profile-theme-link-title {
    color: var(--profile-surface-text, var(--brand-ink)) !important;
}

.profile-theme-card {
    --profile-category-title-color: var(--profile-card-title, var(--brand-ink));
    --profile-category-divider-color: rgba(var(--profile-accent-rgb, 88, 174, 242), 0.24);
    --profile-category-card-bg: var(--profile-surface-bg, rgba(255, 255, 255, 0.9));
    --profile-category-card-border: var(--profile-surface-border, rgba(15, 23, 42, 0.08));
    --profile-category-card-hover-bg: var(--profile-surface-bg-hover, rgba(255, 255, 255, 0.96));
}

.profile-theme-card .profile-link-tile:hover,
.profile-theme-card .profile-link-tile:focus-visible {
    border-color: rgba(var(--profile-accent-rgb, 88, 174, 242), 0.24);
    box-shadow: var(--profile-surface-shadow-hover, 0 18px 36px rgba(16, 24, 40, 0.08), 0 8px 18px rgba(var(--profile-accent-rgb, 88, 174, 242), 0.12));
}

.profile-theme-card .profile-engagement-button:hover,
.profile-theme-card .profile-engagement-button:focus-visible,
.profile-theme-card .btn-secondary:hover,
.profile-theme-card .btn-secondary:focus-visible {
    border-color: rgba(var(--profile-accent-rgb, 88, 174, 242), 0.28);
    background: var(--profile-surface-bg-hover, rgba(255, 255, 255, 0.96));
}

.profile-theme-card .profile-engagement-button__icon,
.profile-theme-card .profile-engagement-button__count {
    color: var(--profile-surface-muted, rgba(71, 85, 105, 0.95));
}

.profile-theme-card .profile-engagement-button.is-active {
    color: rgb(var(--profile-accent-rgb, 88, 174, 242));
    border-color: rgba(var(--profile-accent-rgb, 88, 174, 242), 0.28);
    background: var(--profile-surface-active-bg, var(--profile-surface-bg-hover, rgba(255, 255, 255, 0.96)));
}

.profile-theme-card .profile-hero-avatar {
    box-shadow: var(--profile-avatar-shadow, 0 18px 40px rgba(15, 23, 42, 0.1), 0 8px 20px rgba(88, 174, 242, 0.08));
}

.profile-theme-card .profile-share-button {
    box-shadow: var(--profile-share-shadow, 0 18px 38px rgba(88, 174, 242, 0.22), 0 8px 18px rgba(111, 67, 214, 0.12));
}

.profile-theme-card .profile-share-button:hover {
    box-shadow: var(--profile-share-shadow-hover, 0 22px 42px rgba(88, 174, 242, 0.24), 0 10px 22px rgba(111, 67, 214, 0.14));
}

.profile-theme-card .profile-growth-cta__button {
    box-shadow: 0 18px 34px rgba(var(--profile-accent-rgb, 88, 174, 242), 0.22);
}

.theme-light,
.theme-soft-blue,
.theme-warm-sand,
.theme-emerald,
.theme-lavender,
.theme-sunset,
.theme-clay {
    --profile-texture-filter: brightness(0) saturate(100%) contrast(118%);
    --profile-texture-swatch-filter: brightness(0) saturate(100%) contrast(126%);
    --profile-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.48));
    --profile-card-border: rgba(255, 255, 255, 0.84);
    --profile-card-outline: rgba(255, 255, 255, 0.62);
    --profile-card-shadow: 0 28px 70px rgba(16, 24, 40, 0.12), 0 10px 28px rgba(15, 23, 42, 0.05);
    --profile-card-blur: 22px;
    --profile-card-title: #172033;
    --profile-card-copy: #52607a;
    --profile-card-chip-bg: rgba(248, 250, 252, 0.82);
    --profile-card-chip-border: rgba(148, 163, 184, 0.18);
    --profile-card-chip-text: rgba(71, 85, 105, 0.92);
    --profile-surface-bg: rgba(255, 255, 255, 0.84);
    --profile-surface-bg-hover: rgba(255, 255, 255, 0.96);
    --profile-surface-active-bg: rgba(255, 255, 255, 0.98);
    --profile-surface-border: rgba(15, 23, 42, 0.08);
    --profile-surface-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
    --profile-surface-shadow-hover: 0 18px 36px rgba(16, 24, 40, 0.08), 0 8px 18px rgba(15, 23, 42, 0.04);
    --profile-surface-text: #172033;
    --profile-surface-muted: rgba(71, 85, 105, 0.95);
    --profile-shell-shadow: 0 28px 72px rgba(15, 23, 42, 0.08);
    --profile-avatar-shadow: 0 18px 40px rgba(15, 23, 42, 0.1), 0 8px 20px rgba(var(--profile-accent-rgb, 88, 174, 242), 0.12);
    --profile-share-shadow: 0 18px 38px rgba(var(--profile-accent-rgb, 88, 174, 242), 0.24), 0 8px 18px rgba(111, 67, 214, 0.12);
    --profile-share-shadow-hover: 0 22px 42px rgba(var(--profile-accent-rgb, 88, 174, 242), 0.28), 0 10px 22px rgba(111, 67, 214, 0.14);
    --profile-category-title-color: #172033;
    --profile-category-divider-color: rgba(var(--profile-accent-rgb, 88, 174, 242), 0.42);
    --profile-category-card-bg: rgba(255, 255, 255, 0.82);
    --profile-category-card-border: rgba(15, 23, 42, 0.08);
    --profile-category-card-hover-bg: rgba(255, 255, 255, 0.96);
}

.theme-dark,
.theme-graphite,
.theme-ocean,
.theme-neon {
    --profile-texture-filter: none;
    --profile-texture-swatch-filter: none;
    --profile-card-bg: linear-gradient(180deg, rgba(17, 27, 43, 0.86), rgba(11, 19, 33, 0.94));
    --profile-card-border: rgba(132, 155, 189, 0.34);
    --profile-card-outline: rgba(255, 255, 255, 0.08);
    --profile-card-shadow: 0 34px 92px rgba(4, 10, 22, 0.48), 0 0 0 1px rgba(120, 164, 255, 0.06), 0 10px 34px rgba(56, 189, 248, 0.08);
    --profile-card-blur: 18px;
    --profile-card-title: #f8fbff;
    --profile-card-copy: rgba(222, 234, 248, 0.82);
    --profile-card-chip-bg: rgba(255, 255, 255, 0.06);
    --profile-card-chip-border: rgba(148, 163, 184, 0.2);
    --profile-card-chip-text: rgba(224, 232, 245, 0.88);
    --profile-surface-bg: rgba(255, 255, 255, 0.06);
    --profile-surface-bg-hover: rgba(255, 255, 255, 0.1);
    --profile-surface-active-bg: rgba(255, 255, 255, 0.12);
    --profile-surface-border: rgba(148, 163, 184, 0.16);
    --profile-surface-shadow: 0 12px 28px rgba(2, 6, 23, 0.16);
    --profile-surface-shadow-hover: 0 16px 34px rgba(2, 6, 23, 0.2), 0 8px 18px rgba(255, 255, 255, 0.03);
    --profile-surface-text: #f8fbff;
    --profile-surface-muted: rgba(191, 203, 220, 0.92);
    --profile-shell-shadow: 0 34px 92px rgba(2, 6, 23, 0.22);
    --profile-avatar-shadow: 0 20px 48px rgba(2, 6, 23, 0.35), 0 8px 22px rgba(var(--profile-accent-rgb, 88, 174, 242), 0.16);
    --profile-share-shadow: 0 20px 44px rgba(var(--profile-accent-rgb, 88, 174, 242), 0.2), 0 10px 26px rgba(76, 29, 149, 0.18);
    --profile-share-shadow-hover: 0 24px 48px rgba(var(--profile-accent-rgb, 88, 174, 242), 0.22), 0 12px 28px rgba(76, 29, 149, 0.2);
    --profile-category-title-color: #f8fbff;
    --profile-category-divider-color: rgba(var(--profile-accent-rgb, 88, 174, 242), 0.3);
    --profile-category-card-bg: rgba(255, 255, 255, 0.06);
    --profile-category-card-border: rgba(148, 163, 184, 0.16);
    --profile-category-card-hover-bg: rgba(255, 255, 255, 0.1);
}

.theme-dark .profile-theme-card .profile-link-tile .profile-theme-link-title,
.theme-graphite .profile-theme-card .profile-link-tile .profile-theme-link-title,
.theme-ocean .profile-theme-card .profile-link-tile .profile-theme-link-title,
.theme-neon .profile-theme-card .profile-link-tile .profile-theme-link-title {
    color: #f8fbff !important;
    text-shadow: 0 1px 0 rgba(2, 6, 23, 0.28);
}

.theme-light {
    --profile-accent-rgb: 88, 174, 242;
    --profile-theme-background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.92), transparent 24%),
        radial-gradient(circle at 82% 16%, rgba(196, 181, 253, 0.2), transparent 24%),
        linear-gradient(180deg, #f7fbff 0%, #eef4fb 48%, #e7eef6 100%);
}

.theme-dark {
    --profile-accent-rgb: 88, 174, 242;
    --profile-theme-background:
        radial-gradient(circle at 18% 10%, rgba(24, 56, 104, 0.42), transparent 22%),
        radial-gradient(circle at 82% 14%, rgba(76, 109, 173, 0.18), transparent 24%),
        linear-gradient(180deg, #09111d 0%, #0a1423 48%, #09101c 100%);
}

.theme-soft-blue {
    --profile-accent-rgb: 91, 165, 255;
    --profile-card-bg: linear-gradient(180deg, rgba(237, 246, 255, 0.96), rgba(220, 234, 255, 0.92));
    --profile-theme-background:
        radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.86), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(162, 207, 255, 0.34), transparent 24%),
        linear-gradient(180deg, #edf6ff 0%, #dceaff 48%, #d2e5ff 100%);
}

.theme-warm-sand {
    --profile-accent-rgb: 214, 144, 60;
    --profile-card-bg: linear-gradient(180deg, rgba(255, 248, 239, 0.96), rgba(249, 235, 216, 0.92));
    --profile-theme-background:
        radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.82), transparent 22%),
        radial-gradient(circle at 82% 16%, rgba(255, 226, 187, 0.28), transparent 24%),
        linear-gradient(180deg, #fff8ef 0%, #f9ebd8 46%, #f3dfc3 100%);
}

.theme-emerald {
    --profile-accent-rgb: 16, 185, 129;
    --profile-card-bg: linear-gradient(180deg, rgba(237, 248, 245, 0.96), rgba(207, 238, 229, 0.92));
    --profile-theme-background:
        radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.76), transparent 22%),
        radial-gradient(circle at 84% 18%, rgba(144, 236, 213, 0.22), transparent 24%),
        linear-gradient(180deg, #edf8f5 0%, #cfeee5 46%, #bfe3db 100%);
}

.theme-lavender {
    --profile-accent-rgb: 139, 92, 246;
    --profile-card-bg: linear-gradient(180deg, rgba(248, 243, 255, 0.96), rgba(232, 222, 250, 0.92));
    --profile-theme-background:
        radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.82), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(221, 201, 255, 0.26), transparent 24%),
        linear-gradient(180deg, #f8f3ff 0%, #e8defa 48%, #ddd1f4 100%);
}

.theme-graphite {
    --profile-accent-rgb: 148, 163, 184;
    --profile-theme-background:
        radial-gradient(circle at 18% 10%, rgba(84, 106, 146, 0.22), transparent 20%),
        radial-gradient(circle at 84% 16%, rgba(149, 168, 198, 0.14), transparent 22%),
        linear-gradient(180deg, #111b2b 0%, #101927 44%, #0c1523 100%);
}

.theme-sunset {
    --profile-accent-rgb: 245, 117, 74;
    --profile-card-bg: linear-gradient(180deg, rgba(255, 242, 234, 0.96), rgba(254, 224, 210, 0.92));
    --profile-theme-background:
        radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.82), transparent 22%),
        radial-gradient(circle at 84% 16%, rgba(255, 179, 129, 0.28), transparent 24%),
        linear-gradient(180deg, #fff2ea 0%, #ffe0d2 46%, #fecfc6 100%);
}

.theme-ocean {
    --profile-accent-rgb: 56, 189, 248;
    --profile-theme-background:
        radial-gradient(circle at 16% 10%, rgba(31, 115, 167, 0.28), transparent 20%),
        radial-gradient(circle at 84% 18%, rgba(81, 157, 223, 0.2), transparent 24%),
        linear-gradient(180deg, #0a1827 0%, #0c2131 46%, #0a1624 100%);
}

.theme-neon {
    --profile-accent-rgb: 34, 211, 238;
    --profile-theme-background:
        radial-gradient(circle at 18% 10%, rgba(215, 84, 145, 0.32), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(61, 170, 240, 0.22), transparent 26%),
        linear-gradient(180deg, #261036 0%, #251146 38%, #0a1222 100%);
}

.theme-clay {
    --profile-accent-rgb: 179, 109, 86;
    --profile-card-bg: linear-gradient(180deg, rgba(251, 241, 237, 0.96), rgba(241, 221, 215, 0.92));
    --profile-theme-background:
        radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.8), transparent 22%),
        radial-gradient(circle at 84% 18%, rgba(224, 167, 148, 0.24), transparent 24%),
        linear-gradient(180deg, #fbf1ed 0%, #f1ddd7 46%, #e7c8c1 100%);
}

/* ── Texture: none ──────────────────────────────────────────────────────── */

.tx-none { --profile-texture-opacity: 0; }

/* ── Texture classes: set CSS variables (inherited by ::before) ─────────── */

.tx-waves {
    --profile-texture-image: url('../textures/meonlink/waves.svg');
    --profile-texture-opacity: 0.12;
}

.tx-curves {
    --profile-texture-image: url('../textures/meonlink/curves.svg');
    --profile-texture-opacity: 0.11;
}

.tx-dots {
    --profile-texture-image: url('../textures/meonlink/dots.svg');
    --profile-texture-opacity: 0.10;
    --profile-texture-size: auto;
}

.tx-splatter {
    --profile-texture-image: url('../textures/meonlink/splatter.svg');
    --profile-texture-opacity: 0.10;
}

.tx-stars {
    --profile-texture-image: url('../textures/meonlink/stars.svg');
    --profile-texture-opacity: 0.10;
}

.tx-grain {
    --profile-texture-image: url('../textures/meonlink/grain.svg');
    --profile-texture-opacity: 0.12;
}

.tx-topography {
    --profile-texture-image: url('../textures/meonlink/topography.svg');
    --profile-texture-opacity: 0.10;
}

.tx-mesh {
    --profile-texture-image: url('../textures/meonlink/mesh.svg');
    --profile-texture-opacity: 0.11;
}

.tx-orbit {
    --profile-texture-image: url('../textures/meonlink/orbit.svg');
    --profile-texture-opacity: 0.12;
    --profile-texture-position: center center;
}

.tx-grid {
    --profile-texture-image: url('../textures/meonlink/grid.svg');
    --profile-texture-opacity: 0.10;
    --profile-texture-size: auto;
}

.tx-lines {
    --profile-texture-image: url('../textures/meonlink/lines.svg');
    --profile-texture-opacity: 0.10;
    --profile-texture-size: auto;
}

.tx-geometric {
    --profile-texture-image: url('../textures/meonlink/geometric.svg');
    --profile-texture-opacity: 0.10;
}

.tx-radial {
    --profile-texture-image: url('../textures/meonlink/radial.svg');
    --profile-texture-opacity: 0.12;
    --profile-texture-position: center center;
}

.tx-bokeh {
    --profile-texture-image: url('../textures/meonlink/bokeh.svg');
    --profile-texture-opacity: 0.11;
}

.tx-clouds {
    --profile-texture-image: url('../textures/meonlink/clouds.svg');
    --profile-texture-opacity: 0.11;
}

/* ── Stars: dark themes only ────────────────────────────────────────────── */

.theme-dark.tx-stars,
.theme-graphite.tx-stars,
.theme-ocean.tx-stars,
.theme-neon.tx-stars { --profile-texture-opacity: 0.22; }

/* ── Dark theme opacity boosts ──────────────────────────────────────────── */

.theme-dark.tx-waves,    .theme-graphite.tx-waves,    .theme-ocean.tx-waves,    .theme-neon.tx-waves    { --profile-texture-opacity: 0.16; }
.theme-dark.tx-curves,   .theme-graphite.tx-curves,   .theme-ocean.tx-curves,   .theme-neon.tx-curves   { --profile-texture-opacity: 0.14; }
.theme-dark.tx-dots,     .theme-graphite.tx-dots,     .theme-ocean.tx-dots,     .theme-neon.tx-dots     { --profile-texture-opacity: 0.14; }
.theme-dark.tx-splatter, .theme-graphite.tx-splatter, .theme-ocean.tx-splatter, .theme-neon.tx-splatter { --profile-texture-opacity: 0.13; }
.theme-dark.tx-grain,    .theme-graphite.tx-grain,    .theme-ocean.tx-grain,    .theme-neon.tx-grain    { --profile-texture-opacity: 0.20; }
.theme-dark.tx-topography, .theme-graphite.tx-topography, .theme-ocean.tx-topography, .theme-neon.tx-topography { --profile-texture-opacity: 0.14; }
.theme-dark.tx-mesh,     .theme-graphite.tx-mesh,     .theme-ocean.tx-mesh,     .theme-neon.tx-mesh     { --profile-texture-opacity: 0.16; }
.theme-dark.tx-orbit,    .theme-graphite.tx-orbit,    .theme-ocean.tx-orbit,    .theme-neon.tx-orbit    { --profile-texture-opacity: 0.18; }
.theme-dark.tx-grid,     .theme-graphite.tx-grid,     .theme-ocean.tx-grid,     .theme-neon.tx-grid     { --profile-texture-opacity: 0.14; }
.theme-dark.tx-lines,    .theme-graphite.tx-lines,    .theme-ocean.tx-lines,    .theme-neon.tx-lines    { --profile-texture-opacity: 0.15; }
.theme-dark.tx-geometric, .theme-graphite.tx-geometric, .theme-ocean.tx-geometric, .theme-neon.tx-geometric { --profile-texture-opacity: 0.14; }
.theme-dark.tx-radial,   .theme-graphite.tx-radial,   .theme-ocean.tx-radial,   .theme-neon.tx-radial   { --profile-texture-opacity: 0.18; }
.theme-dark.tx-bokeh,    .theme-graphite.tx-bokeh,    .theme-ocean.tx-bokeh,    .theme-neon.tx-bokeh    { --profile-texture-opacity: 0.20; }
.theme-dark.tx-clouds,   .theme-graphite.tx-clouds,   .theme-ocean.tx-clouds,   .theme-neon.tx-clouds   { --profile-texture-opacity: 0.18; }

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 110;
    transition: box-shadow 0.22s ease;
}

.site-navbar.is-scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.07);
}

.site-navbar-layout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-navbar-primary-nav {
    display: none;
}

.site-navbar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-navbar-brand-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.site-navbar-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.site-navbar-logo {
    display: block;
}

.site-navbar-search {
    flex: 1 1 auto;
    min-width: 0;
}

.site-mobile-search-panel {
    display: none;
}

.site-language-switcher {
    flex: 0 0 auto;
}

.site-language-switcher__trigger {
    white-space: nowrap;
}

.site-language-switcher__menu {
    min-width: 12rem;
}

.site-navbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
}

.site-navbar-actions-mobile {
    display: inline-flex;
}

.site-menu-toggle {
    align-self: center;
}

.site-notification-root {
    position: relative;
    z-index: 115;
}

.site-notification-root-mobile {
    display: inline-flex;
}

.site-notification-root-desktop {
    display: none;
}

.site-notification-portal {
    position: fixed;
    inset: 0;
    z-index: 240;
    pointer-events: none;
}

.site-notification-badge {
    position: absolute;
    top: -0.28rem;
    right: -0.28rem;
    display: inline-flex;
    min-width: 1.2rem;
    height: 1.2rem;
    align-items: center;
    justify-content: center;
    padding: 0 0.28rem;
    border-radius: 9999px;
    background: var(--brand-ink);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.18);
}

.site-notification-badge.hidden {
    display: none !important;
}

.site-notification-panel {
    position: absolute;
    z-index: 1;
    width: min(25rem, calc(100vw - 1.5rem));
    max-height: min(70vh, 30rem);
    overflow: hidden;
    border-radius: 1.4rem;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.65rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.site-notification-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-notification-list {
    max-height: min(52vh, 24rem);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 0.6rem 0.7rem;
}

.site-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    border-radius: 1.05rem;
    padding: 0.82rem 0.88rem;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.site-notification-item:hover,
.site-notification-item:focus-visible {
    background: rgba(242, 251, 255, 0.94);
    outline: none;
    transform: translateY(-1px);
}

.site-notification-item.is-unread {
    background: rgba(248, 250, 252, 0.72);
}

.site-notification-item__icon {
    display: inline-flex;
    height: 2.2rem;
    width: 2.2rem;
    flex: 0 0 2.2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
}

.site-notification-item__icon i,
.site-notification-toast__icon i {
    font-size: 0.95rem;
    line-height: 1;
}

.site-notification-empty {
    padding: 0.9rem 0.95rem 1rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--brand-fog);
}

.site-notification-toasts {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 170;
    display: flex;
    width: min(22rem, calc(100vw - 1.5rem));
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.site-notification-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 1.3rem;
    padding: 0.95rem 1rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.site-notification-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-notification-toast__icon {
    display: inline-flex;
    height: 2.1rem;
    width: 2.1rem;
    flex: 0 0 2.1rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
}

.site-menu-panel {
    position: relative;
    z-index: 105;
    display: none;
    flex-direction: column;
    gap: 0.85rem;
}

.site-menu-group-primary,
.site-menu-group-auth,
.site-menu-group-language,
.site-menu-group-user {
    width: 100%;
}

.site-menu-group-user {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.site-menu-link-auth {
    color: var(--brand-fog);
}

.site-menu-link-signup {
    color: var(--brand-cyan-600);
}

.site-menu-link-signup:hover,
.site-menu-link-signup:focus-visible,
.site-menu-link-signup.is-active {
    color: var(--brand-violet-600);
}

.site-menu-link-mobile-only {
    display: inline-flex;
}

.site-menu-section-mobile-only {
    display: flex;
}

.site-account-menu {
    position: relative;
    z-index: 116;
}

.site-account-menu-mobile {
    display: inline-flex;
}

.site-account-menu-desktop {
    display: none;
}

.site-account-menu__trigger {
    display: inline-flex;
    min-height: 2.7rem;
    align-items: center;
    gap: 0.42rem;
    cursor: pointer;
    list-style: none;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.3rem 0.5rem 0.3rem 0.3rem;
    color: var(--brand-ink);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-account-menu__trigger::-webkit-details-marker {
    display: none;
}

.site-account-menu__trigger:hover,
.site-account-menu__trigger:focus-visible {
    border-color: rgba(88, 174, 242, 0.24);
    background: rgba(242, 251, 255, 0.94);
    outline: none;
    transform: translateY(-1px);
}

.site-account-menu__avatar {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 9999px;
    background: rgba(242, 251, 255, 0.94);
    color: var(--brand-cyan-600);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.site-account-menu__caret {
    color: #94a3b8;
    font-size: 0.68rem;
    line-height: 1;
    transition: transform 160ms ease, color 160ms ease;
}

.site-account-menu[open] .site-account-menu__caret {
    transform: rotate(180deg);
}

.site-account-menu__avatar-lg {
    height: 2.9rem;
    width: 2.9rem;
    flex-basis: 2.9rem;
    font-size: 1rem;
}

.avatar-gradient-fallback {
    overflow: hidden;
    color: #fff !important;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 24px rgba(79, 70, 229, 0.12);
}

.site-account-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.65rem);
    width: min(18rem, calc(100vw - 1.25rem));
    overflow: hidden;
    border-radius: 1.3rem;
    border: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(255, 255, 255, 0.97);
    padding: 0.8rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(16px);
}

.site-account-menu__panel-mobile {
    width: min(18rem, calc(100vw - 1rem));
}

.site-account-menu__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.2rem 0.2rem 0.75rem;
}

.site-account-menu__header-link {
    border-radius: 1rem;
    color: inherit;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.site-account-menu__header-link:hover,
.site-account-menu__header-link:focus-visible {
    background: rgba(248, 250, 252, 0.86);
    color: var(--brand-ink);
    outline: none;
}

.site-account-menu__links {
    display: grid;
    gap: 0.2rem;
}

.site-account-menu__link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 2.8rem;
    border-radius: 0.95rem;
    border: 0;
    background: transparent;
    padding: 0.78rem 0.85rem;
    color: var(--brand-fog);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.site-account-menu__link:hover,
.site-account-menu__link:focus-visible {
    background: rgba(242, 251, 255, 0.94);
    color: var(--brand-ink);
    outline: none;
}

.site-account-menu__link-accent {
    color: var(--brand-cyan-600);
}

.site-account-menu__link-accent:hover,
.site-account-menu__link-accent:focus-visible {
    color: var(--brand-violet-600);
}

.site-account-menu__link-button {
    appearance: none;
    cursor: pointer;
    font: inherit;
}

.site-account-menu__logout-form {
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.admin-sidebar-toggle {
    border: 0;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.admin-sidebar-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.78);
}

.admin-sidebar-chevron {
    transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.admin-sidebar-toggle[aria-expanded="true"] .admin-sidebar-chevron {
    transform: rotate(180deg);
    color: var(--brand-cyan-600);
    background: rgba(242, 251, 255, 0.94);
}

.site-menu-link {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    min-height: 2.95rem;
    padding: 0.75rem 0.95rem;
    border-radius: 1rem;
    border: 0;
    background: transparent;
    color: var(--brand-fog);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.site-menu-link:hover,
.site-menu-link:focus-visible,
.site-menu-link.is-active {
    color: var(--brand-ink);
    background: rgba(242, 251, 255, 0.94);
    outline: none;
}

.site-menu-link-accent {
    color: var(--brand-cyan-600);
}

.site-menu-link-accent:hover,
.site-menu-link-accent:focus-visible,
.site-menu-link-accent.is-active {
    color: var(--brand-violet-600);
}

.site-menu-link-button {
    appearance: none;
    cursor: pointer;
    font: inherit;
}

.site-menu-section {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.4rem;
}

.site-menu-section-links {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.15rem;
}

.site-menu-section-label {
    padding: 0 0.95rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(102, 112, 133, 0.9);
}

.tooltip-trigger {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-fog);
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.tooltip-trigger:hover,
.tooltip-trigger:focus-visible {
    border-color: rgba(88, 174, 242, 0.24);
    background: rgba(242, 251, 255, 0.94);
    color: var(--brand-cyan-600);
    transform: translateY(-1px);
    outline: none;
}

.app-tooltip-bubble {
    position: absolute;
    z-index: 220;
    max-width: min(20rem, calc(100vw - 1.5rem));
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(16, 24, 40, 0.94);
    color: #fff;
    padding: 0.7rem 0.85rem;
    font-size: 0.8rem;
    line-height: 1.55;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
    pointer-events: none;
}

.surface-panel.section-outline::after {
    border-radius: inherit;
}

.dashboard-main {
    width: 100%;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dashboard-shell {
    width: min(100%, 88rem) !important;
    max-width: calc(100% - 1rem) !important;
    margin: 0 auto;
    border-radius: 1.5rem;
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-toggle {
    background: var(--dashboard-sidebar-highlight) !important;
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-toggle__title,
html.dashboard-theme-dark body.dashboard-page .dashboard-profile-link-card__url,
html.dashboard-theme-dark body.dashboard-page .dashboard-metric-card__value,
html.dashboard-theme-dark body.dashboard-page .dashboard-metric-card__label,
html.dashboard-theme-dark body.dashboard-page .dashboard-next-card__action,
html.dashboard-theme-dark body.dashboard-page .dashboard-overview-support-card__eyebrow,
html.dashboard-theme-dark body.dashboard-page .dashboard-overview-tip-item__title,
html.dashboard-theme-dark body.dashboard-page .dashboard-overview-share-field,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-tile__name,
html.dashboard-theme-dark body.dashboard-page .dashboard-themes-current-chip__value,
html.dashboard-theme-dark body.dashboard-page .dashboard-appearance-mode-card__title {
    color: var(--dashboard-text);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-toggle__subtitle,
html.dashboard-theme-dark body.dashboard-page .dashboard-profile-link-card__meta,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-tile__hint,
html.dashboard-theme-dark body.dashboard-page .dashboard-overview-share-copy,
html.dashboard-theme-dark body.dashboard-page .dashboard-overview-tip-item__copy,
html.dashboard-theme-dark body.dashboard-page .dashboard-appearance-mode-card__copy,
html.dashboard-theme-dark body.dashboard-page .dashboard-themes-hero__copy,
html.dashboard-theme-dark body.dashboard-page .dashboard-themes-current-chip__label {
    color: var(--dashboard-muted);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-identity,
html.dashboard-theme-dark body.dashboard-page .dashboard-profile-link-card,
html.dashboard-theme-dark body.dashboard-page .dashboard-overview-card__hero,
html.dashboard-theme-dark body.dashboard-page .dashboard-overview-support-card--share,
html.dashboard-theme-dark body.dashboard-page .dashboard-overview-tip-item,
html.dashboard-theme-dark body.dashboard-page .dashboard-overview-share-field {
    border-color: var(--dashboard-soft-border);
    background: rgba(255, 255, 255, 0.03);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-link,
html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-utility,
html.dashboard-theme-dark body.dashboard-page .dashboard-inline-action,
html.dashboard-theme-dark body.dashboard-page .dashboard-next-card__action {
    border-color: var(--dashboard-soft-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--dashboard-text);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-link:hover,
html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-link:focus-visible,
html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-utility:hover,
html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-utility:focus-visible,
html.dashboard-theme-dark body.dashboard-page .dashboard-inline-action:hover,
html.dashboard-theme-dark body.dashboard-page .dashboard-inline-action:focus-visible,
html.dashboard-theme-dark body.dashboard-page .dashboard-next-card:hover,
html.dashboard-theme-dark body.dashboard-page .dashboard-next-card:focus-visible,
html.dashboard-theme-dark body.dashboard-page .dashboard-metric-card:hover,
html.dashboard-theme-dark body.dashboard-page .dashboard-metric-card:focus-within {
    border-color: rgba(96, 165, 250, 0.22);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 30px rgba(2, 8, 20, 0.18);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-link.is-active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(99, 102, 241, 0.16));
    box-shadow: inset 3px 0 0 rgba(88, 174, 242, 0.95);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-themes-hero,
html.dashboard-theme-dark body.dashboard-page .dashboard-overview-card__hero {
    border-bottom-color: var(--dashboard-soft-border);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-themes-hero__title,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-modal__title,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-texture-option__name,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-modal__meta-label,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-modal__textures-title {
    color: var(--dashboard-text);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-theme-modal__copy,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-modal__helper,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-texture-option__meta,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-modal__notice {
    color: var(--dashboard-muted);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-themes-current-chip,
html.dashboard-theme-dark body.dashboard-page .dashboard-themes-plan-badge,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-tile,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-texture-option,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-modal__meta {
    border-color: var(--dashboard-soft-border);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
}

html.dashboard-theme-dark body.dashboard-page .dashboard-theme-tile:hover,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-tile:focus-visible,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-texture-option:hover,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-texture-option:focus-visible {
    border-color: rgba(96, 165, 250, 0.22);
    background: rgba(255, 255, 255, 0.05);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-theme-tile.is-current {
    border-color: rgba(96, 165, 250, 0.36);
    background: linear-gradient(180deg, rgba(18, 35, 58, 0.98), rgba(17, 27, 43, 0.95));
    box-shadow: 0 20px 40px rgba(2, 8, 20, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-theme-tile.is-current .dashboard-theme-tile__footer {
    border-top-color: rgba(96, 165, 250, 0.18);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-theme-tile.is-current .dashboard-theme-tile__hint {
    color: #bfdbfe;
}

html.dashboard-theme-dark body.dashboard-page .dashboard-theme-texture-option.is-current {
    border-color: rgba(96, 165, 250, 0.34);
    background: linear-gradient(135deg, rgba(18, 35, 58, 0.98), rgba(30, 31, 62, 0.95));
    box-shadow: 0 14px 28px rgba(2, 8, 20, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-theme-texture-option.is-current .dashboard-theme-texture-option__meta {
    color: #bfdbfe;
}

/* ── Mobile dark mode overrides ─────────────────────────────────────────── */

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar {
    border-color: var(--dashboard-panel-border);
    background: var(--dashboard-surface);
    box-shadow: var(--dashboard-shadow);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-panel {
    border-color: var(--dashboard-panel-border);
    background: var(--dashboard-surface-soft);
    box-shadow: 0 28px 56px rgba(2, 8, 20, 0.48);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-chevron {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: var(--dashboard-muted);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-identity p {
    color: var(--dashboard-text);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-premium-badge {
    border-color: rgba(251, 191, 36, 0.28);
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.24), rgba(120, 53, 15, 0.18));
    box-shadow: none;
    color: #fde68a;
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-premium-badge i {
    color: #f59e0b;
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-sheet-header__label {
    color: var(--dashboard-text);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-sheet-header__close {
    color: var(--dashboard-muted);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-sidebar-sheet-header__close:hover {
    color: var(--dashboard-text);
}

/* Super Admin badge — dark mode */
html.dashboard-theme-dark body.dashboard-page .dashboard-role-badge {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(147, 197, 253, 0.35);
    color: #93c5fd;
}

.dashboard-sidebar {
    width: 100%;
    align-self: start;
}

.dashboard-sidebar-toggle {
    border: 0;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-sidebar-toggle__summary {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.95rem;
}

.dashboard-sidebar-toggle__icon,
.dashboard-sidebar-identity__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.88);
    color: var(--brand-cyan-600);
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-sidebar-toggle__icon {
    height: 2.7rem;
    width: 2.7rem;
    flex: 0 0 2.7rem;
    font-size: 0.98rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(88, 174, 242, 0.96), rgba(123, 97, 255, 0.92));
}

.dashboard-sidebar-toggle__title {
    display: block;
    color: var(--brand-ink);
    font-family: var(--font-display);
    font-size: 1.16rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.dashboard-sidebar-toggle__subtitle {
    display: block;
    margin-top: 0.22rem;
    color: var(--brand-fog);
    font-size: 0.92rem;
    line-height: 1.25;
}

.dashboard-sidebar-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.78);
}

.dashboard-sidebar-chevron {
    transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.dashboard-sidebar-toggle[aria-expanded="true"] .dashboard-sidebar-chevron {
    transform: rotate(180deg);
    color: var(--brand-cyan-600);
    background: rgba(242, 251, 255, 0.94);
}

.dashboard-sidebar-backdrop {
    border: 0;
    background: rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.dashboard-sidebar-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.dashboard-sidebar-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-sidebar-sheet-header__label {
    color: rgba(102, 112, 133, 0.82);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.dashboard-sidebar-sheet-header__close {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.9);
    color: var(--brand-fog);
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.dashboard-sidebar-sheet-header__close:hover,
.dashboard-sidebar-sheet-header__close:focus-visible {
    border-color: rgba(88, 174, 242, 0.18);
    background: rgba(242, 251, 255, 0.94);
    color: var(--brand-ink);
    outline: none;
}

.dashboard-sidebar-identity {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    border-radius: 1.35rem;
    background: rgba(248, 250, 252, 0.72);
    padding: 0.95rem;
}

.dashboard-sidebar-identity__avatar {
    height: 3.25rem;
    width: 3.25rem;
    flex: 0 0 3.25rem;
    font-size: 1rem;
}

.dashboard-sidebar-identity__meta {
    display: grid;
    gap: 0.3rem;
}

.dashboard-sidebar-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    margin-top: 0.2rem;
    padding: 0.38rem 0.72rem;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.94));
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.12);
    color: #b45309;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.dashboard-sidebar-premium-badge i {
    color: #d97706;
}

.dashboard-sidebar-nav {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr;
}

.dashboard-sidebar-link,
.dashboard-sidebar-utility {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.74);
    padding: 0.85rem 0.95rem;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--brand-fog);
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.dashboard-sidebar-link:hover,
.dashboard-sidebar-link:focus-visible,
.dashboard-sidebar-utility:hover,
.dashboard-sidebar-utility:focus-visible {
    border-color: rgba(88, 174, 242, 0.18);
    background: rgba(242, 251, 255, 0.94);
    color: var(--brand-ink);
    outline: none;
}

.dashboard-sidebar-link.is-active {
    border-color: rgba(88, 174, 242, 0.18);
    background: rgba(242, 251, 255, 0.98);
    box-shadow: inset 3px 0 0 rgba(88, 174, 242, 0.95);
}

.dashboard-sidebar-utility-primary {
    border-color: rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.82);
    color: var(--brand-fog);
}

.dashboard-secondary-action {
    opacity: 0.92;
}

.dashboard-overview-eyebrow {
    color: rgba(102, 112, 133, 0.78);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.dashboard-overview-title {
    text-wrap: balance;
}

.dashboard-overview-card {
    padding: 0;
    min-width: 0;
}

.dashboard-overview-card__hero {
    padding: 1.2rem 1.2rem 1rem;
    background: linear-gradient(135deg, rgba(245, 243, 255, 0.92) 0%, rgba(239, 246, 255, 0.84) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.dashboard-metrics-strip {
    overflow: visible;
}

.dashboard-metrics-grid {
    display: grid;
}

.dashboard-next-actions-grid {
    display: grid;
}

.dashboard-profile-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem 1.15rem;
    background: rgba(255, 255, 255, 0.92);
}

.dashboard-profile-link-card__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.9rem;
}

.dashboard-profile-link-card__avatar {
    display: inline-flex;
    height: 2.65rem;
    width: 2.65rem;
    flex: 0 0 2.65rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.92), rgba(59, 130, 246, 0.88));
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
}

.dashboard-profile-link-card__url {
    display: inline-flex;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--brand-ink);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 160ms ease;
}

.dashboard-profile-link-card__url:hover,
.dashboard-profile-link-card__url:focus-visible {
    color: var(--brand-cyan-600);
    outline: none;
}

.dashboard-profile-link-card__handle {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-profile-link-card__meta {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(102, 112, 133, 0.82);
    font-size: 0.78rem;
    font-weight: 600;
}

.dashboard-profile-link-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: stretch;
    justify-content: flex-end;
}

.dashboard-profile-link-card .dashboard-inline-action,
.dashboard-overview-support-card .dashboard-inline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 2.3rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(203, 213, 225, 0.92);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.52rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-ink);
    text-decoration: none;
    box-shadow: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-profile-link-card .dashboard-inline-action:hover,
.dashboard-profile-link-card .dashboard-inline-action:focus-visible,
.dashboard-overview-support-card .dashboard-inline-action:hover,
.dashboard-overview-support-card .dashboard-inline-action:focus-visible {
    border-color: rgba(88, 174, 242, 0.18);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
    outline: none;
}

.dashboard-profile-link-card .dashboard-inline-action--accent,
.dashboard-overview-support-card .dashboard-inline-action--accent {
    border-color: rgba(196, 181, 253, 0.75);
    background: rgba(245, 243, 255, 0.92);
}

.dashboard-overview-support-card .dashboard-inline-action--quiet {
    min-height: 2.2rem;
    border-radius: 0.8rem;
    padding: 0.48rem 0.78rem;
    font-size: 0.8rem;
    box-shadow: none;
}

.dashboard-overview-support-card .dashboard-inline-action.is-disabled {
    opacity: 0.58;
    cursor: not-allowed;
    pointer-events: none;
}

.dashboard-role-badge {
    gap: 0.38rem;
}

.dashboard-metric-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 0.3rem;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dashboard-metric-card:hover,
.dashboard-metric-card:focus-within {
    border-color: rgba(88, 174, 242, 0.14);
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.dashboard-metric-card__icon {
    display: inline-flex;
    height: 2.15rem;
    width: 2.15rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.dashboard-metric-card__icon--violet {
    background: rgba(237, 233, 254, 0.94);
    color: #7c3aed;
}

.dashboard-metric-card__icon--sky {
    background: rgba(239, 246, 255, 0.94);
    color: #0284c7;
}

.dashboard-metric-card__icon--amber {
    background: rgba(255, 251, 235, 0.96);
    color: #d97706;
}

.dashboard-metric-card__icon--slate {
    background: rgba(241, 245, 249, 0.96);
    color: #475569;
}

.dashboard-metric-card__icon--rose {
    background: rgba(255, 241, 242, 0.96);
    color: #e11d48;
}

.dashboard-metric-card__icon--emerald {
    background: rgba(236, 253, 245, 0.96);
    color: #059669;
}

.dashboard-metric-card__label {
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--brand-fog);
}

.dashboard-metric-card__value {
    margin-top: 0.75rem;
    color: var(--brand-ink);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-metric-card__value-sm {
    font-size: 1.6rem;
    line-height: 1.15;
}

.dashboard-next-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.1rem;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dashboard-next-card:hover,
.dashboard-next-card:focus-visible {
    border-color: rgba(88, 174, 242, 0.16);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
    outline: none;
}

.dashboard-next-card__icon {
    display: inline-flex;
    height: 2.45rem;
    width: 2.45rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    margin-bottom: 0.2rem;
    font-size: 0.98rem;
}

.dashboard-next-card__icon--violet {
    background: rgba(237, 233, 254, 0.94);
    color: #7c3aed;
}

.dashboard-next-card__icon--sky {
    background: rgba(239, 246, 255, 0.94);
    color: #0284c7;
}

.dashboard-next-card__icon--slate {
    background: rgba(241, 245, 249, 0.96);
    color: #475569;
}

.dashboard-overview-support-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.dashboard-overview-support-card {
    min-width: 0;
}

.dashboard-overview-support-card--share {
    background: linear-gradient(135deg, rgba(245, 243, 255, 0.78) 0%, rgba(239, 246, 255, 0.72) 100%);
}

.dashboard-overview-support-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.dashboard-overview-support-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--brand-ink);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dashboard-overview-support-card__eyebrow i {
    color: #d97706;
    font-size: 0.88rem;
}

.dashboard-overview-support-card__eyebrow--accent i {
    color: #7c3aed;
}

.dashboard-overview-tip-list {
    display: grid;
    gap: 0.8rem;
}

.dashboard-overview-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(248, 250, 252, 0.72);
}

.dashboard-overview-tip-item__icon {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    font-size: 0.82rem;
}

.dashboard-overview-tip-item__icon--violet {
    background: rgba(237, 233, 254, 0.94);
    color: #7c3aed;
}

.dashboard-overview-tip-item__icon--sky {
    background: rgba(239, 246, 255, 0.94);
    color: #2563eb;
}

.dashboard-overview-tip-item__title {
    color: var(--brand-ink);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.dashboard-overview-tip-item__copy {
    margin-top: 0.18rem;
    color: var(--brand-fog);
    font-size: 0.82rem;
    line-height: 1.55;
}

.dashboard-overview-share-copy {
    color: var(--brand-fog);
    font-size: 0.88rem;
    line-height: 1.6;
}

.dashboard-overview-share-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(203, 213, 225, 0.92);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.75rem 0.95rem;
    color: var(--brand-ink);
    font-size: 0.88rem;
    font-weight: 600;
}

.dashboard-overview-share-field i {
    color: var(--brand-fog);
}

.dashboard-overview-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.dashboard-next-card__action {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    border-radius: 9999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.94);
    padding: 0.45rem 0.85rem;
    color: var(--brand-ink);
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 3.1rem;
    border-radius: 1.05rem;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.74);
    padding: 0.8rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.admin-sidebar-link:hover,
.admin-sidebar-link:focus-visible {
    border-color: rgba(88, 174, 242, 0.16);
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-ink);
    outline: none;
}

.admin-sidebar-link.is-active {
    border-color: rgba(88, 174, 242, 0.18);
    background: rgba(242, 251, 255, 0.98);
    box-shadow: inset 3px 0 0 rgba(88, 174, 242, 0.95);
}

.admin-sidebar-link-icon {
    display: inline-flex;
    height: 2.35rem;
    width: 2.35rem;
    flex: 0 0 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    transition: background 160ms ease, color 160ms ease;
}

.dashboard-quick-actions {
    width: 100%;
}

.admin-search-field {
    position: relative;
    display: flex;
    width: 100%;
    min-width: min(100%, 22rem);
    align-items: center;
}

.admin-search-icon {
    pointer-events: none;
    position: absolute;
    left: 1rem;
    color: var(--brand-fog);
}

.admin-search-input {
    padding-left: 2.85rem;
}

.admin-header-link,
.admin-inline-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brand-fog);
    text-decoration: none;
    transition: color 160ms ease;
}

.admin-header-link::after,
.admin-inline-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 9999px;
    background: rgba(88, 174, 242, 0.9);
    opacity: 0;
    transition: opacity 160ms ease;
}

.admin-header-link:hover,
.admin-header-link:focus-visible,
.admin-inline-link:hover,
.admin-inline-link:focus-visible {
    color: var(--brand-ink);
    outline: none;
}

.admin-header-link:hover::after,
.admin-header-link:focus-visible::after,
.admin-inline-link:hover::after,
.admin-inline-link:focus-visible::after {
    opacity: 1;
}

.admin-user-mobile-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.95rem;
    border-radius: 1.4rem;
    padding: 0.95rem 1rem;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-user-mobile-item:hover,
.admin-user-mobile-item:focus-visible {
    border-color: rgba(88, 174, 242, 0.16);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.06);
    outline: none;
    transform: translateY(-1px);
}

.admin-user-sheet-card {
    width: min(100%, 34rem);
}

.admin-section-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    border-radius: 1.4rem;
    background: transparent;
    padding: 0.9rem 1rem;
    text-align: left;
    transition: background 160ms ease, box-shadow 160ms ease;
}

.admin-section-toggle:hover,
.admin-section-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.72);
    outline: none;
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.62);
}

.admin-section-chevron,
.collapsible-chevron {
    display: inline-flex;
    height: 2.35rem;
    width: 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-fog);
    transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

[data-collapsible-toggle="true"][aria-expanded="true"] .collapsible-chevron,
[data-collapsible-toggle="true"][aria-expanded="true"] .admin-section-chevron {
    transform: rotate(180deg);
    color: var(--brand-cyan-600);
    background: rgba(242, 251, 255, 0.94);
}

.surface-soft {
    border: 1px solid var(--surface-line);
    background: rgba(255, 255, 255, 0.93);
    box-shadow: var(--soft-shadow);
}

.surface-subtle {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.76);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
}

.section-outline {
    position: relative;
}

.section-outline::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
    pointer-events: none;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.82rem 1.2rem;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
    text-decoration: none;
}

.btn-primary {
    border: 1px solid rgba(88, 174, 242, 0.2);
    background: linear-gradient(135deg, var(--brand-cyan-600), var(--brand-violet-500));
    color: #fff;
    box-shadow: 0 18px 34px rgba(88, 174, 242, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #2f88d9, var(--brand-violet-600));
    box-shadow: 0 20px 38px rgba(88, 174, 242, 0.22);
}

.btn-secondary {
    border: 1px solid rgba(15, 23, 42, 0.11);
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-ink);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(88, 174, 242, 0.26);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 251, 255, 0.94));
}

.btn-danger {
    border: 1px solid rgba(225, 29, 72, 0.16);
    background: rgba(255, 255, 255, 0.96);
    color: #be123c;
}

.btn-danger:hover {
    border-color: rgba(225, 29, 72, 0.26);
    background: rgba(255, 241, 242, 0.92);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-danger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.9);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

.home-hero {
    position: relative;
    --home-hero-progress: 0;
    --home-hero-shift: 0px;
    --home-hero-scale: 1;
    --home-hero-opacity: 1;
    --home-scroll-cue-shift: 0px;
}

.home-hero-upgrade {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    min-height: min(46rem, calc(100vh - 4.5rem));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.96) 52%, rgba(239, 245, 255, 0.94) 100%);
}

.home-hero-upgrade__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 88rem;
    padding-top: clamp(2.25rem, 5vw, 4.2rem);
    padding-bottom: clamp(1.7rem, 4vw, 2.8rem);
}

.home-hero-gradient-text {
    background: linear-gradient(135deg, #4d9fff 0%, #6c6ff8 55%, #9e68ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero-carousel {
    position: relative;
    margin: clamp(1.8rem, 4vw, 3rem) auto 0;
    width: 100%;
}

.home-hero-carousel__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.15rem 0 0.9rem;
    scroll-behavior: auto;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    -ms-overflow-style: none;
}

.home-hero-carousel__track::-webkit-scrollbar {
    display: none;
}

.home-hero-carousel__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.home-hero-carousel__edge {
    position: absolute;
    top: 0;
    bottom: 3.75rem;
    z-index: 2;
    width: min(5rem, 16vw);
    pointer-events: none;
}

.home-hero-carousel__edge--left {
    left: 0;
    background: linear-gradient(90deg, rgba(247, 250, 255, 0.98), rgba(247, 250, 255, 0));
}

.home-hero-carousel__edge--right {
    right: 0;
    background: linear-gradient(270deg, rgba(247, 250, 255, 0.98), rgba(247, 250, 255, 0));
}

.home-hero-profile-card {
    flex: 0 0 14.2rem;
    width: 14.2rem;
    max-width: 14.2rem;
}

.home-hero-profile-card:hover,
.home-hero-profile-card:focus-visible {
    transform: scale(1.03);
    box-shadow: 0 20px 44px rgba(16, 24, 40, 0.11);
}

.home-hero-carousel__controls {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.7rem;
}

.home-hero-carousel__button {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.94);
    color: rgba(71, 85, 105, 0.96);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.055);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.home-hero-carousel__button:hover,
.home-hero-carousel__button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(88, 174, 242, 0.24);
    background: rgba(242, 251, 255, 0.96);
    color: var(--brand-cyan-600);
    outline: none;
}

[data-home-hero-content="true"] {
    position: relative;
    z-index: 1;
    transform: translate3d(0, var(--home-hero-shift), 0) scale(var(--home-hero-scale));
    transform-origin: center top;
    opacity: var(--home-hero-opacity);
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
    will-change: transform, opacity;
}

.home-hero-auth::before {
    content: '';
    position: absolute;
    inset: auto 0 -0.5rem;
    height: 10rem;
    background: linear-gradient(180deg, rgba(238, 242, 246, 0), rgba(242, 251, 255, 0.52) 46%, rgba(239, 244, 251, 0.92));
    pointer-events: none;
    opacity: calc(0.52 + (var(--home-hero-progress) * 0.28));
    transform: translate3d(0, calc(var(--home-hero-progress) * 14px), 0);
    transition: opacity 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.home-hero-auth::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(26rem, calc(100vw - 3rem));
    height: 6.75rem;
    transform: translate3d(-50%, calc(var(--home-hero-progress) * 18px), 0) scale(calc(1 + (var(--home-hero-progress) * 0.035)));
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent 72%);
    pointer-events: none;
    opacity: calc(0.86 - (var(--home-hero-progress) * 0.16));
    transition: opacity 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.home-explore-cue-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.home-explore-copy {
    margin: 0;
    max-width: 26rem;
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--brand-fog);
}

.home-scroll-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
    transform: translate3d(0, var(--home-scroll-cue-shift), 0);
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.home-scroll-cue__icon {
    display: inline-flex;
    height: 2.9rem;
    width: 2.9rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-fog);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.05);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    animation: homeScrollCueFloat 3.2s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    will-change: transform, opacity;
    opacity: 0.94;
}

.home-scroll-cue.is-idle .home-scroll-cue__icon {
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.07);
    opacity: 1;
}

.home-scroll-cue:hover .home-scroll-cue__icon,
.home-scroll-cue:focus-visible .home-scroll-cue__icon {
    transform: translateY(1px);
    border-color: rgba(88, 174, 242, 0.24);
    background: rgba(242, 251, 255, 0.95);
    color: var(--brand-cyan-600);
    box-shadow: 0 16px 32px rgba(16, 24, 40, 0.07);
}

.home-scroll-cue.is-pressed {
    transform: translate3d(0, var(--home-scroll-cue-shift), 0) scale(0.98);
}

.home-scroll-cue:focus-visible {
    border-radius: 9999px;
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.9);
}

.home-back-to-top {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 110;
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand-ink);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.1), 0 6px 16px rgba(88, 174, 242, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 0.8rem, 0);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), visibility 220ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
    will-change: transform, opacity;
}

.home-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.home-back-to-top:hover,
.home-back-to-top:focus-visible {
    border-color: rgba(88, 174, 242, 0.24);
    background: rgba(242, 251, 255, 0.95);
    color: var(--brand-cyan-600);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.12), 0 10px 22px rgba(88, 174, 242, 0.08);
    outline: none;
}

.home-back-to-top:focus-visible {
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.9), 0 16px 34px rgba(16, 24, 40, 0.1);
}

.home-back-to-top.is-pressed {
    transform: translate3d(0, 0, 0) scale(0.96);
}

.home-signup-fab {
    position: fixed;
    right: 1.1rem;
    bottom: 4.85rem;
    z-index: 112;
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: flex-end;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 0.8rem, 0) scale(0.94);
    pointer-events: none;
    text-decoration: none;
    transition: width 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), visibility 220ms ease;
    will-change: width, transform, opacity;
}

.home-signup-fab.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
}

.home-signup-fab.is-expanded,
.home-signup-fab:focus-visible {
    width: min(12.25rem, calc(100vw - 2rem));
}

.home-signup-fab__label {
    position: absolute;
    top: 50%;
    right: 1.6rem;
    z-index: 1;
    display: inline-flex;
    min-width: 8.8rem;
    height: 2.65rem;
    align-items: center;
    justify-content: flex-start;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    padding: 0 2.35rem 0 1rem;
    color: var(--brand-ink);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.1), 0 8px 18px rgba(88, 174, 242, 0.07);
    opacity: 0;
    transform: translate3d(0.7rem, -50%, 0) scaleX(0.72);
    transform-origin: right center;
    transition: opacity 180ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.home-signup-fab__icon {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 2;
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--brand-cyan-600), var(--brand-violet-500));
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 18px 36px rgba(88, 174, 242, 0.24), 0 8px 18px rgba(124, 77, 235, 0.16);
    transform: translate3d(0, -50%, 0);
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease, filter 180ms ease;
}

.home-signup-fab__icon-minus {
    display: none;
}

.home-signup-fab.is-expanded .home-signup-fab__label,
.home-signup-fab:focus-visible .home-signup-fab__label {
    opacity: 1;
    transform: translate3d(0, -50%, 0) scaleX(1);
}

.home-signup-fab.is-expanded .home-signup-fab__icon-plus,
.home-signup-fab:focus-visible .home-signup-fab__icon-plus {
    display: none;
}

.home-signup-fab.is-expanded .home-signup-fab__icon-minus,
.home-signup-fab:focus-visible .home-signup-fab__icon-minus {
    display: inline-block;
}

.home-signup-fab:hover .home-signup-fab__icon,
.home-signup-fab:focus-visible .home-signup-fab__icon {
    filter: saturate(1.04);
    transform: translate3d(0, calc(-50% - 1px), 0) scale(1.02);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.94), 0 22px 42px rgba(88, 174, 242, 0.28), 0 10px 22px rgba(124, 77, 235, 0.18);
    outline: none;
}

.home-signup-fab:focus-visible {
    outline: none;
}

.home-signup-fab:focus-visible .home-signup-fab__icon {
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.9), 0 0 0 7px rgba(255, 255, 255, 0.9), 0 20px 40px rgba(88, 174, 242, 0.24);
}

.home-signup-fab.is-pressed .home-signup-fab__icon {
    transform: translate3d(0, -50%, 0) scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
    .home-signup-fab.is-visible:hover {
        width: min(12.25rem, calc(100vw - 2rem));
    }

    .home-signup-fab.is-visible:hover .home-signup-fab__label {
        opacity: 1;
        transform: translate3d(0, -50%, 0) scaleX(1);
    }

    .home-signup-fab.is-visible:hover .home-signup-fab__icon-plus {
        display: none;
    }

    .home-signup-fab.is-visible:hover .home-signup-fab__icon-minus {
        display: inline-block;
    }
}

@keyframes homeScrollCueFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, 0.18rem, 0);
    }
}

/* ─── Scroll reveal ──────────────────────────────────────────────────────── */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal][data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.22s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.form-input {
    width: 100%;
    min-height: 3.3rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.84);
    color: var(--brand-ink);
    padding: 0.9rem 1rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(88, 174, 242, 0.52);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.75);
}

.form-input:disabled,
.form-input[readonly],
textarea.form-input:disabled,
select.form-input:disabled {
    cursor: not-allowed;
    border-color: rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.92));
    color: rgba(52, 64, 84, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.profile-tag-input {
    display: flex;
    min-height: 3.3rem;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.84);
    padding: 0.55rem 0.65rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.profile-tag-input:focus-within {
    border-color: rgba(88, 174, 242, 0.52);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.75);
}

.profile-tag-input.is-disabled {
    cursor: not-allowed;
    border-color: rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.92));
}

.profile-tag-input__chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.profile-tag-chip {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    gap: 0.45rem;
    border-radius: 9999px;
    border: 1px solid rgba(88, 174, 242, 0.18);
    background: rgba(242, 251, 255, 0.92);
    padding: 0.38rem 0.45rem 0.38rem 0.75rem;
    color: var(--brand-ink);
    font-size: 0.86rem;
    font-weight: 700;
}

.profile-tag-chip__remove {
    display: inline-flex;
    height: 1.55rem;
    width: 1.55rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 0;
    background: rgba(255, 255, 255, 0.85);
    color: var(--brand-fog);
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.profile-tag-chip__remove:hover,
.profile-tag-chip__remove:focus-visible {
    background: #fff;
    color: var(--brand-ink);
    outline: none;
}

.profile-tag-input__entry {
    min-width: 10rem;
    flex: 1 1 10rem;
    border: 0;
    background: transparent;
    color: var(--brand-ink);
    font: inherit;
    outline: none;
    padding: 0.55rem 0.35rem;
}

.profile-tag-input__entry:disabled {
    cursor: not-allowed;
}

.password-field {
    position: relative;
}

.password-field .form-input {
    padding-right: 4rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    display: inline-flex;
    height: 2.45rem;
    width: 2.45rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand-fog);
    transform: translateY(-50%);
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.password-toggle:hover {
    border-color: rgba(88, 174, 242, 0.2);
    background: rgba(242, 251, 255, 0.94);
    color: var(--brand-cyan-600);
}

.password-toggle:focus-visible {
    outline: none;
    border-color: rgba(88, 174, 242, 0.34);
    background: #fff;
    color: var(--brand-cyan-600);
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.55);
}

.password-toggle[aria-pressed="true"] {
    color: var(--brand-ink);
    background: rgba(242, 251, 255, 0.96);
}

.password-toggle i {
    pointer-events: none;
}

.bio-editor-shell {
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.84);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.bio-editor-shell:focus-within {
    border-color: rgba(88, 174, 242, 0.52);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.75);
}

.bio-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.78);
    padding: 0.8rem;
}

.bio-toolbar-button {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-ink);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.bio-toolbar-button:hover {
    transform: translateY(-1px);
    border-color: rgba(88, 174, 242, 0.24);
    background: rgba(242, 251, 255, 0.94);
    box-shadow: 0 10px 18px rgba(16, 24, 40, 0.05);
}

.bio-toolbar-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

.bio-editor {
    min-height: 12rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 1rem 1rem 1.1rem;
    line-height: 1.8;
    box-shadow: none;
    outline: none;
}

.bio-editor:focus {
    box-shadow: none;
    background: transparent;
}

.bio-editor.is-disabled {
    cursor: not-allowed;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.92));
    color: rgba(52, 64, 84, 0.88);
}

.bio-editor p,
.bio-editor ul,
.bio-editor ol,
.profile-rich-bio p,
.profile-rich-bio ul,
.profile-rich-bio ol {
    margin: 0;
}

.bio-editor p + p,
.bio-editor p + ul,
.bio-editor p + ol,
.bio-editor ul + p,
.bio-editor ol + p,
.bio-editor ul + ul,
.bio-editor ol + ol,
.profile-rich-bio p + p,
.profile-rich-bio p + ul,
.profile-rich-bio p + ol,
.profile-rich-bio ul + p,
.profile-rich-bio ol + p,
.profile-rich-bio ul + ul,
.profile-rich-bio ol + ol {
    margin-top: 0.7rem;
}

.bio-editor ul,
.bio-editor ol,
.profile-rich-bio ul,
.profile-rich-bio ol {
    padding-left: 1.2rem;
}

.bio-editor ul,
.profile-rich-bio ul {
    list-style: disc;
}

.bio-editor ol,
.profile-rich-bio ol {
    list-style: decimal;
}

.bio-editor ul,
.bio-editor ol,
.profile-rich-bio ul,
.profile-rich-bio ol {
    list-style-position: outside;
}

.bio-editor li + li,
.profile-rich-bio li + li {
    margin-top: 0.3rem;
}

.bio-align-left {
    text-align: left !important;
}

.bio-align-center {
    text-align: center !important;
}

.bio-align-right {
    text-align: right !important;
}

.bio-align-justify {
    text-align: justify !important;
}

.bio-editor.bio-align-left,
.profile-rich-bio.bio-align-left {
    text-align: left !important;
}

.bio-editor.bio-align-center,
.profile-rich-bio.bio-align-center {
    text-align: center !important;
}

.bio-editor.bio-align-right,
.profile-rich-bio.bio-align-right {
    text-align: right !important;
}

.bio-editor.bio-align-justify,
.profile-rich-bio.bio-align-justify {
    text-align: justify !important;
}

.profile-rich-bio {
    width: 100%;
}

.profile-rich-bio strong {
    color: var(--brand-ink);
}

.form-checkbox-wrap {
    display: flex;
    width: 100%;
    min-height: 3.3rem;
    align-items: center;
    gap: 0.75rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.84);
    padding: 0.9rem 1rem;
}

.form-checkbox-wrap.is-disabled {
    border-color: rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.92));
    color: rgba(52, 64, 84, 0.88);
}

.form-error {
    margin-top: 0.55rem;
    font-size: 0.875rem;
    color: #e11d48;
}

.search-form {
    position: relative;
    z-index: 100;
}

.search-suggestions {
    animation: suggestionsIn 160ms ease;
    z-index: 100 !important;
    width: min(100%, 22rem);
    min-width: 0;
    max-width: min(22rem, calc(100vw - 2rem));
    margin-top: 30px !important;
}

.search-suggestion-item {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.9rem;
    padding: 0.7rem 0.95rem;
    text-decoration: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.is-active {
    background: transparent;
    transform: none;
}

.search-suggestion-avatar {
    display: inline-flex;
    height: 2.25rem;
    width: 2.25rem;
    flex: 0 0 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: none;
}

.result-grid {
    display: flex;
    width: min(100%, 88rem);
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.result-grid--search {
    display: flex;
    max-width: 88rem;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
}

.profile-links-grid {
    display: grid;
    width: 100%;
    max-width: 19rem;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(5.4rem, 5.4rem));
    justify-content: center;
    gap: 0.7rem;
}

.profile-link-category-section {
    width: 100%;
}

.profile-link-category-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.15rem;
}

.profile-link-category-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin: 0;
    text-align: center;
    color: var(--profile-category-title-color, var(--profile-card-title, var(--brand-ink)));
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.profile-link-category-title__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: 9999px;
    background: rgba(var(--profile-category-icon-rgb, var(--profile-accent-rgb, 88, 174, 242)), 0.14);
    color: rgba(var(--profile-category-icon-rgb, var(--profile-accent-rgb, 88, 174, 242)), 1);
    box-shadow: inset 0 0 0 1px rgba(var(--profile-category-icon-rgb, var(--profile-accent-rgb, 88, 174, 242)), 0.18);
}

.profile-link-category-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--profile-category-divider-color, rgba(88, 174, 242, 0.24)) 58%, transparent) 18%, var(--profile-category-divider-color, rgba(88, 174, 242, 0.24)) 52%, color-mix(in srgb, var(--profile-category-divider-color, rgba(88, 174, 242, 0.24)) 58%, transparent) 82%, transparent 100%);
}

.profile-link-category-grid {
    display: grid;
    width: 100%;
    max-width: 19rem;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(5.4rem, 5.4rem));
    justify-content: center;
    gap: 0.7rem;
}

.profile-link-card-portrait {
    min-height: 6.75rem;
    padding: 0.8rem 0.65rem;
    border-color: var(--profile-category-card-border, var(--profile-surface-border, rgba(15, 23, 42, 0.08))) !important;
    background: var(--profile-category-card-bg, var(--profile-surface-bg, rgba(255, 255, 255, 0.9))) !important;
}

.profile-link-card-portrait:hover,
.profile-link-card-portrait:focus-visible {
    background: var(--profile-category-card-hover-bg, var(--profile-surface-bg-hover, rgba(255, 255, 255, 0.96))) !important;
}

.profile-link-category-heading--color-accent { --profile-category-icon-rgb: var(--profile-accent-rgb, 88, 174, 242); }
.profile-link-category-heading--color-sky { --profile-category-icon-rgb: 56, 189, 248; }
.profile-link-category-heading--color-emerald { --profile-category-icon-rgb: 16, 185, 129; }
.profile-link-category-heading--color-violet { --profile-category-icon-rgb: 139, 92, 246; }
.profile-link-category-heading--color-amber { --profile-category-icon-rgb: 245, 158, 11; }
.profile-link-category-heading--color-rose { --profile-category-icon-rgb: 244, 63, 94; }
.profile-link-category-heading--color-slate { --profile-category-icon-rgb: 148, 163, 184; }

.profile-link-tile {
    display: flex;
    width: 100%;
    min-height: 6.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 1.2rem;
    padding: 0.8rem 0.65rem;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.profile-link-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 174, 242, 0.22);
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.08), 0 8px 18px rgba(88, 174, 242, 0.06);
}

.profile-link-icon {
    height: 2.95rem;
    width: 2.95rem;
    flex: 0 0 2.95rem;
    border-radius: 0.95rem;
    overflow: hidden;
}

.profile-hero-avatar {
    height: 8rem;
    width: 8rem;
    border-radius: 1.8rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1), 0 8px 20px rgba(88, 174, 242, 0.08);
}

.profile-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(88, 174, 242, 0.26);
    background: linear-gradient(135deg, rgba(88, 174, 242, 0.98), rgba(111, 67, 214, 0.98));
    color: #fff;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 18px 38px rgba(88, 174, 242, 0.22), 0 8px 18px rgba(111, 67, 214, 0.12);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.profile-action-row {
    display: grid;
    width: 100%;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.profile-action-row.is-guest .profile-share-button {
    grid-column: 1 / -1;
    justify-self: stretch;
}

.profile-engagement-button,
.profile-action-secondary {
    min-height: 3.2rem;
}

.profile-engagement-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.11);
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-ink);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
    padding: 0.82rem 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.profile-engagement-button:hover,
.profile-engagement-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(88, 174, 242, 0.26);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 251, 255, 0.94));
    outline: none;
}

.profile-engagement-button.is-active {
    border-color: rgba(88, 174, 242, 0.24);
    background: rgba(242, 251, 255, 0.96);
    color: var(--brand-cyan-600);
}

.profile-engagement-button.is-bouncing {
    transform: scale(1.03);
}

.profile-engagement-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.profile-engagement-button__icon {
    display: inline-flex;
    height: 1rem;
    width: 1rem;
    flex: 0 0 1rem;
    align-items: center;
    justify-content: center;
    color: rgba(100, 116, 139, 0.92);
}

.profile-engagement-button__icon i {
    display: inline-block;
    font-size: 0.95rem;
    opacity: 0.82;
    transition: transform 160ms ease, opacity 160ms ease, color 160ms ease;
}

.profile-engagement-button.is-active .profile-engagement-button__icon {
    color: var(--brand-cyan-600);
}

.profile-engagement-button.is-active .profile-engagement-button__icon i {
    opacity: 1;
}

.profile-engagement-button.is-bouncing .profile-engagement-button__icon i {
    transform: scale(1.08);
}

.profile-engagement-button__count {
    display: inline-flex;
    min-width: 1.5rem;
    justify-content: center;
    font-size: 0.84rem;
    color: rgba(71, 85, 105, 0.95);
}

.profile-engagement-button.is-active .profile-engagement-button__count {
    color: inherit;
}

.profile-engagement-feedback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(88, 174, 242, 0.16);
    background: rgba(242, 251, 255, 0.94);
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-cyan-600);
}

.profile-engagement-feedback.is-error {
    border-color: rgba(225, 29, 72, 0.14);
    background: rgba(255, 241, 242, 0.94);
    color: #be123c;
}

.profile-share-button:hover {
    transform: translateY(-1px);
    filter: saturate(1.02);
    box-shadow: 0 22px 42px rgba(88, 174, 242, 0.24), 0 10px 22px rgba(111, 67, 214, 0.14);
}

.profile-share-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(223, 245, 255, 0.95), 0 18px 38px rgba(88, 174, 242, 0.22), 0 8px 18px rgba(111, 67, 214, 0.12);
}

.profile-growth-cta {
    border-radius: 1.3rem;
    padding: 0.72rem 0.82rem;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.035), 0 4px 12px rgba(88, 174, 242, 0.025);
}

.profile-growth-cta__inner {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: flex-start;
}

.profile-growth-cta__action {
    width: 100%;
}

.profile-growth-cta__button {
    width: 100%;
    justify-content: center;
    padding: 0.58rem 0.9rem;
    font-size: 0.82rem;
    min-height: 2.35rem;
}

@media (min-width: 640px) {
    .profile-growth-cta {
        padding: 0.78rem 0.95rem;
    }

    .profile-growth-cta__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
    }

    .profile-growth-cta__action {
        width: auto;
        flex: 0 0 auto;
    }

    .profile-growth-cta__button {
        width: auto;
        min-width: 7.6rem;
    }

    .result-grid--search {
        justify-content: center;
    }

    .result-grid--search .result-card {
        width: calc((100% - 0.9rem) / 2);
        max-width: none;
        flex-basis: calc((100% - 0.9rem) / 2);
    }
}

.result-card {
    display: flex;
    width: min(100%, 16rem);
    flex: 0 1 16rem;
    min-height: 14.55rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 1.55rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.95);
    padding: 1.1rem 0.9rem 0.95rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 16px 42px rgba(16, 24, 40, 0.08), 0 6px 16px rgba(88, 174, 242, 0.05);
    transform: scale(1);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms ease, box-shadow 200ms ease;
}

.result-card:hover {
    transform: scale(1.03);
    border-color: rgba(88, 174, 242, 0.22);
    box-shadow: 0 20px 48px rgba(16, 24, 40, 0.1);
}

.result-card {
    --rc-border: rgba(88, 174, 242, 0.38);
    --rc-glow:   rgba(88, 174, 242, 0.32);
}

/* Light-tinted themes */
.result-card[data-profile-theme="soft-blue"] {
    --rc-border: rgba(91, 165, 255, 0.45);
    --rc-glow:   rgba(91, 165, 255, 0.35);
    background: rgba(232, 244, 255, 0.97);
    border-color: rgba(91, 165, 255, 0.18);
}
.result-card[data-profile-theme="warm-sand"] {
    --rc-border: rgba(214, 144, 60, 0.45);
    --rc-glow:   rgba(214, 144, 60, 0.35);
    background: rgba(255, 247, 234, 0.97);
    border-color: rgba(214, 144, 60, 0.16);
}
.result-card[data-profile-theme="emerald"] {
    --rc-border: rgba(16, 185, 129, 0.42);
    --rc-glow:   rgba(16, 185, 129, 0.32);
    background: rgba(230, 253, 242, 0.97);
    border-color: rgba(16, 185, 129, 0.14);
}
.result-card[data-profile-theme="lavender"] {
    --rc-border: rgba(139, 92, 246, 0.42);
    --rc-glow:   rgba(139, 92, 246, 0.32);
    background: rgba(243, 239, 255, 0.97);
    border-color: rgba(139, 92, 246, 0.15);
}
.result-card[data-profile-theme="sunset"] {
    --rc-border: rgba(245, 117, 74, 0.42);
    --rc-glow:   rgba(245, 117, 74, 0.32);
    background: rgba(255, 245, 238, 0.97);
    border-color: rgba(245, 117, 74, 0.15);
}
.result-card[data-profile-theme="clay"] {
    --rc-border: rgba(179, 109, 86, 0.42);
    --rc-glow:   rgba(179, 109, 86, 0.32);
    background: rgba(255, 243, 237, 0.97);
    border-color: rgba(179, 109, 86, 0.16);
}

/* Dark surface themes */
.result-card[data-profile-theme="dark"],
.search-empty-profile-card[data-profile-theme="dark"] {
    --rc-border: rgba(88, 174, 242, 0.34);
    --rc-glow:   rgba(88, 174, 242, 0.18);
    background:
        radial-gradient(circle at 18% 14%, rgba(95, 146, 224, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(35, 52, 79, 0.7), rgba(22, 35, 56, 0.76));
    border-color: rgba(133, 169, 224, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.result-card[data-profile-theme="graphite"],
.search-empty-profile-card[data-profile-theme="graphite"] {
    --rc-border: rgba(148, 163, 184, 0.32);
    --rc-glow:   rgba(148, 163, 184, 0.17);
    background:
        radial-gradient(circle at 22% 16%, rgba(186, 196, 211, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(49, 59, 75, 0.68), rgba(33, 41, 55, 0.76));
    border-color: rgba(166, 179, 198, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.result-card[data-profile-theme="ocean"],
.search-empty-profile-card[data-profile-theme="ocean"] {
    --rc-border: rgba(56, 189, 248, 0.34);
    --rc-glow:   rgba(56, 189, 248, 0.2);
    background:
        radial-gradient(circle at 18% 14%, rgba(74, 180, 234, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(20, 50, 76, 0.7), rgba(12, 35, 56, 0.78));
    border-color: rgba(94, 191, 235, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.result-card[data-profile-theme="neon"],
.search-empty-profile-card[data-profile-theme="neon"] {
    --rc-border: rgba(34, 211, 238, 0.36);
    --rc-glow:   rgba(34, 211, 238, 0.2);
    background:
        radial-gradient(circle at 18% 14%, rgba(34, 211, 238, 0.12), transparent 28%),
        radial-gradient(circle at 82% 20%, rgba(188, 120, 255, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(45, 33, 73, 0.68), rgba(22, 29, 48, 0.78));
    border-color: rgba(96, 210, 223, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Dark card text overrides */
.result-card[data-profile-theme="dark"] .text-slate-800,
.search-empty-profile-card[data-profile-theme="dark"] .text-slate-800      { color: rgba(241, 247, 255, 0.96); }
.result-card[data-profile-theme="dark"] .text-slate-500,
.search-empty-profile-card[data-profile-theme="dark"] .text-slate-500      { color: rgba(176, 197, 225, 0.78); }
.result-card[data-profile-theme="graphite"] .text-slate-800,
.search-empty-profile-card[data-profile-theme="graphite"] .text-slate-800  { color: rgba(241, 245, 250, 0.96); }
.result-card[data-profile-theme="graphite"] .text-slate-500,
.search-empty-profile-card[data-profile-theme="graphite"] .text-slate-500  { color: rgba(187, 196, 210, 0.78); }
.result-card[data-profile-theme="ocean"] .text-slate-800,
.search-empty-profile-card[data-profile-theme="ocean"] .text-slate-800     { color: rgba(234, 247, 255, 0.96); }
.result-card[data-profile-theme="ocean"] .text-slate-500,
.search-empty-profile-card[data-profile-theme="ocean"] .text-slate-500     { color: rgba(156, 210, 232, 0.8); }
.result-card[data-profile-theme="neon"] .text-slate-800,
.search-empty-profile-card[data-profile-theme="neon"] .text-slate-800      { color: rgba(233, 252, 255, 0.96); }
.result-card[data-profile-theme="neon"] .text-slate-500,
.search-empty-profile-card[data-profile-theme="neon"] .text-slate-500      { color: rgba(162, 227, 232, 0.8); }

/* Colored bottom accent + elevation — all themed result cards */
.result-card[data-profile-theme] {
    box-shadow:
        0 16px 42px rgba(16, 24, 40, 0.08),
        0 6px 16px rgba(88, 174, 242, 0.05),
        inset 0 -3px 0 var(--rc-border);
}

.result-card[data-profile-theme] .result-avatar {
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.1);
}

.result-card[data-profile-theme]:hover {
    transform: scale(1.03);
    box-shadow:
        0 20px 48px rgba(16, 24, 40, 0.1),
        inset 0 -3px 0 var(--rc-border);
}

.result-grid--search .result-card {
    width: min(100%, 16rem);
    max-width: 16rem;
    flex: 0 1 min(100%, 16rem);
}

.discovery-grid {
    display: grid;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(12.75rem, 1fr));
    justify-items: center;
    gap: 0.85rem;
}

[data-home-discovery-section="true"] {
    position: relative;
    scroll-margin-top: 1.25rem;
    margin-top: -1.15rem;
    padding-top: calc(60px + 1.15rem);
}

[data-home-discovery-section="true"]::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 6.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(242, 251, 255, 0.12) 58%, rgba(242, 251, 255, 0));
    pointer-events: none;
    opacity: 0.9;
}

[data-home-discovery-content="true"] {
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 360ms ease;
    will-change: transform, opacity;
}

[data-home-discovery-section="true"].is-enhanced [data-home-discovery-content="true"] {
    opacity: 0.01;
    transform: translate3d(0, 16px, 0);
}

[data-home-discovery-section="true"].is-enhanced.is-visible [data-home-discovery-content="true"] {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.home-discovery-filter {
    position: relative;
    transform: translate3d(0, 0, 0);
    transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
    will-change: transform;
}

.home-discovery-filter[aria-current="page"] {
    box-shadow: inset 0 0 0 1px rgba(88, 174, 242, 0.12), 0 12px 24px rgba(88, 174, 242, 0.1);
}

.home-discovery-filter.is-pressed {
    transform: scale(0.97);
}

.discovery-card {
    display: flex;
    width: 100%;
    max-width: 14.2rem;
    min-height: 12.8rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 1.45rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.95rem 0.85rem 0.85rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.07), 0 6px 14px rgba(88, 174, 242, 0.04);
    transform: scale(1);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms ease, box-shadow 200ms ease;
    will-change: transform;
}

.discovery-card:hover,
.discovery-card:focus-visible {
    transform: scale(1.03);
    border-color: rgba(88, 174, 242, 0.22);
    box-shadow: 0 20px 44px rgba(16, 24, 40, 0.11);
    outline: none;
}

.discovery-card.is-pressed {
    transform: translate3d(0, -1px, 0) scale(0.985);
}

.discovery-avatar,
.discovery-avatar-fallback {
    height: 4.35rem;
    width: 4.35rem;
    border-radius: 1.2rem;
    object-fit: cover;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
}

.discovery-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(223, 245, 255, 0.96), rgba(239, 231, 255, 0.96));
    color: var(--brand-ink);
    font-size: 0.96rem;
    font-weight: 800;
}

@media (max-width: 639.98px) and (orientation: portrait) {
    [data-home-hero-content="true"] {
        transition-duration: 140ms;
    }

    .home-explore-copy {
        max-width: 18.5rem;
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .home-scroll-cue__icon {
        height: 2.65rem;
        width: 2.65rem;
        animation-duration: 3.5s;
    }

    .home-back-to-top {
        right: 0.85rem;
        bottom: 0.95rem;
        height: 3.1rem;
        width: 3.1rem;
    }

    .home-signup-fab {
        right: 0.85rem;
        bottom: 5rem;
        height: 3.35rem;
        width: 3.35rem;
    }

    .home-signup-fab.is-expanded,
    .home-signup-fab:focus-visible {
        width: min(11.4rem, calc(100vw - 1.7rem));
    }

    .home-signup-fab__icon {
        height: 3.35rem;
        width: 3.35rem;
    }

    .home-signup-fab__label {
        right: 1.7rem;
        min-width: 8.55rem;
        height: 2.72rem;
        padding-right: 2.35rem;
        font-size: 0.83rem;
    }

    [data-home-discovery-section="true"] {
        margin-top: -0.75rem;
        padding-top: calc(60px + 0.75rem);
    }

    .discovery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
        align-items: stretch;
    }

    .discovery-card {
        max-width: none;
        min-height: 11.4rem;
        padding: 0.85rem 0.7rem 0.8rem;
        border-radius: 1.25rem;
    }

    .discovery-card.is-pressed {
        transform: scale(0.99);
    }

    .discovery-avatar,
    .discovery-avatar-fallback {
        height: 3.65rem;
        width: 3.65rem;
        border-radius: 1rem;
    }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
    .home-back-to-top {
        right: 1rem;
        bottom: 1rem;
    }

    .home-signup-fab {
        right: 1rem;
        bottom: 4.95rem;
    }
}

@media (max-width: 1023.98px) {
    .home-hero-profile-card {
        flex-basis: min(14.2rem, calc((100vw - 2.7rem) / 2));
        width: min(14.2rem, calc((100vw - 2.7rem) / 2));
        max-width: min(14.2rem, calc((100vw - 2.7rem) / 2));
    }

    .home-hero-upgrade.home-hero-auth {
        min-height: auto;
    }

    .home-hero-upgrade.home-hero-auth .home-hero-upgrade__inner {
        padding-top: clamp(1.65rem, 4vw, 2.6rem);
        padding-bottom: clamp(0.35rem, 2vw, 0.85rem);
    }

    .home-hero-upgrade.home-hero-auth .home-hero-carousel {
        margin-top: clamp(1.15rem, 3vw, 1.8rem);
    }

    .home-hero-upgrade.home-hero-auth + [data-home-discovery-section="true"] {
        margin-top: -2.4rem;
        padding-top: calc(48px + 2.4rem);
    }
}

@media (hover: hover) and (pointer: fine) {
    .home-discovery-filter:hover {
        transform: translate3d(0, -1px, 0);
        box-shadow: 0 12px 24px rgba(16, 24, 40, 0.06);
    }

    .discovery-card:hover {
        transform: translate3d(0, -2px, 0) scale(1.01);
    }
}

.result-avatar,
.result-avatar-fallback {
    height: 5.15rem;
    width: 5.15rem;
    border-radius: 1.45rem;
    object-fit: cover;
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.08);
}

.result-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(223, 245, 255, 0.96), rgba(239, 231, 255, 0.96));
    color: var(--brand-ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.clamp-3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.line-clamp-1,
.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.link-editor-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--soft-shadow);
}

.link-editor-card.is-editing {
    border-color: rgba(88, 174, 242, 0.28);
    box-shadow: 0 0 0 4px rgba(223, 245, 255, 0.85), var(--soft-shadow);
}

.link-platform-chip {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 3.3rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.78);
    padding: 0.75rem 0.95rem;
}

.link-platform-icon {
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    flex: 0 0 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 1rem;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.inline-actions > * {
    flex: 0 0 auto;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(6px);
}

.modal-overlay.is-open {
    display: flex;
}

.modal-card {
    width: min(100%, calc(100vw - 1.5rem));
    border-radius: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.96);
    padding: 1.5rem;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.share-modal-card {
    width: min(100%, 32rem);
}

.share-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.share-channel-tile {
    display: flex;
    min-height: 5.8rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 1.1rem;
    padding: 0.6rem 0.35rem;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.share-channel-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 174, 242, 0.2);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.07), 0 7px 16px rgba(88, 174, 242, 0.05);
}

.share-channel-icon {
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 1.12rem;
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.share-channel-whatsapp {
    background: linear-gradient(135deg, #20c05c, #0ea85a);
}

.share-channel-telegram {
    background: linear-gradient(135deg, #34a6eb, #2187d9);
}

.share-channel-x {
    background: linear-gradient(135deg, #111827, #0f172a);
}

.share-channel-facebook {
    background: linear-gradient(135deg, #1877f2, #1659c4);
}

.share-channel-linkedin {
    background: linear-gradient(135deg, #0a66c2, #084c94);
}

.share-channel-email {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.share-channel-native {
    background: linear-gradient(135deg, var(--brand-cyan-600), var(--brand-violet-500));
}

.help-accordion-item {
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.help-accordion-item.is-open {
    border-color: rgba(88, 174, 242, 0.2);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.06), 0 8px 18px rgba(88, 174, 242, 0.05);
}

.help-accordion-trigger {
    transition: background 160ms ease;
}

.help-accordion-trigger:hover {
    background: rgba(248, 250, 252, 0.92);
}

.help-accordion-icon {
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.help-accordion-item.is-open .help-accordion-icon {
    background: linear-gradient(135deg, var(--brand-cyan-100), var(--brand-violet-100));
    color: var(--brand-cyan-600);
    transform: rotate(0deg);
}

.cookie-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 130;
    width: 100%;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
}

.cookie-banner.is-visible {
    display: block;
    animation: cookieBannerIn 180ms ease;
}

mark {
    background: rgba(198, 236, 255, 0.88);
    color: inherit;
    border-radius: 0.35rem;
    padding: 0 0.08rem;
}

@keyframes suggestionsIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 639.98px) {
    .site-navbar {
        padding-left: 0.8rem !important;
        padding-right: 0.8rem !important;
    }

    .site-navbar-row {
        gap: 0.5rem;
        align-items: center;
    }

    .site-navbar-search {
        display: none;
    }

    .site-mobile-search-panel {
        margin-top: 0.65rem;
    }

    .site-mobile-search-panel.is-open {
        display: block;
    }

    .site-mobile-search-panel .search-form {
        min-width: 0;
    }

    .site-mobile-search-panel [data-search-input="true"] {
        height: 3rem;
        padding-left: 0.95rem;
        padding-right: 3.3rem;
        font-size: 0.92rem;
        box-shadow: 0 18px 44px rgba(148, 163, 184, 0.18), 0 6px 18px rgba(15, 23, 42, 0.05);
    }

    .site-mobile-search-panel button[type="submit"] {
        right: 0.35rem;
        top: 0.35rem;
        height: 2.3rem;
        width: 2.3rem;
    }

    .site-navbar-actions-mobile {
        gap: 0.35rem;
    }

    .search-suggestions {
        width: 100%;
        max-width: calc(100vw - 2rem);
    }

    .dashboard-shell {
        width: 100%;
        max-width: 100% !important;
        border-radius: 0;
    }

    .dashboard-overview-card {
        padding: 0;
    }

    .dashboard-overview-card__hero {
        padding: 1rem 0.95rem 0.9rem;
    }

    .dashboard-overview-eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
    }

    .dashboard-overview-title {
        font-size: clamp(1.28rem, 8vw, 1.7rem);
        line-height: 1.06;
    }

    .dashboard-quick-actions {
        width: 100%;
        gap: 0.5rem;
    }

    .result-card {
        width: min(100%, 22rem);
        flex-basis: min(100%, 22rem);
        min-height: 13.7rem;
        padding: 1rem 0.85rem 0.9rem;
    }

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

    .inline-actions {
        width: 100%;
    }

    .inline-actions > * {
        flex: 1 1 calc(50% - 0.65rem);
        width: 100%;
        justify-content: center;
    }

    .bio-toolbar {
        gap: 0.35rem;
        padding: 0.65rem;
    }

    .bio-toolbar-button {
        height: 2.3rem;
        width: 2.3rem;
    }

    .profile-share-button {
        min-height: 3.2rem;
    }

    .profile-action-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 19rem;
        margin-inline: auto;
    }

    .profile-action-row.is-guest {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-share-button,
    .profile-action-secondary {
        width: 100%;
    }

    .dashboard-quick-actions .btn-primary,
    .dashboard-quick-actions .btn-secondary {
        width: 100%;
        min-height: 2.75rem;
        padding-inline: 1rem;
        padding-block: 0.7rem;
    }

    .admin-search-field {
        min-width: 100%;
    }

    .admin-header-link,
    .admin-inline-link {
        min-height: 2.75rem;
    }

    .dashboard-sidebar {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .dashboard-profile-link-card__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .dashboard-inline-action {
        width: 100%;
        justify-content: center;
        min-height: 2.55rem;
    }

    .dashboard-profile-link-card {
        flex-direction: column;
        align-items: stretch;
        padding: 0.9rem 0.95rem 1rem;
        gap: 0.85rem;
    }

    .dashboard-profile-link-card__identity {
        gap: 0.75rem;
    }

    .dashboard-profile-link-card__avatar {
        height: 2.35rem;
        width: 2.35rem;
        flex-basis: 2.35rem;
        font-size: 0.84rem;
    }

    .dashboard-profile-link-card__meta {
        display: none;
    }

    .dashboard-metrics-strip {
        margin-right: 0;
        margin-left: 0;
        overflow: visible;
        padding: 0;
    }

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

    .dashboard-overview-share-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-metrics-grid {
        min-width: 0;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .dashboard-metric-card {
        min-width: 0;
        padding: 0.8rem 0.6rem;
        text-align: center;
    }

    .dashboard-metric-card__label {
        font-size: 0.66rem;
        line-height: 1.3;
    }

    .dashboard-metric-card__value {
        margin-top: 0.5rem;
        font-size: 1.56rem;
    }

    .dashboard-metric-card__value-sm {
        font-size: 0.88rem;
        line-height: 1.1;
    }

    .dashboard-next-actions-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .dashboard-next-card {
        gap: 0.85rem;
        padding: 0.95rem;
    }

    .dashboard-next-card__action {
        min-height: 2.2rem;
        padding-inline: 0.78rem;
    }

    .dashboard-sidebar-toggle {
        min-height: 3rem;
        padding: 0.72rem 0.85rem !important;
    }

    .dashboard-sidebar-toggle__summary {
        gap: 0.72rem;
    }

    .dashboard-sidebar-toggle__icon {
        height: 2.35rem;
        width: 2.35rem;
        flex-basis: 2.35rem;
    }

    .dashboard-sidebar-toggle__title {
        font-size: 0.88rem;
    }

    .dashboard-sidebar-chevron {
        height: 2.5rem;
        width: 2.5rem;
        flex: 0 0 2.5rem;
    }

    .dashboard-sidebar-panel {
        left: 0.7rem;
        right: 0.7rem;
        max-width: 22rem;
        padding: 0.95rem;
    }

    .app-tooltip-bubble {
        max-width: min(16rem, calc(100vw - 1.5rem));
    }
}

@media (max-width: 1023.98px) and (orientation: landscape) {
    .dashboard-sidebar-panel {
        max-width: min(24rem, calc(100vw - 2rem));
    }
}

@media (orientation: landscape) and (max-width: 1180px), (min-width: 640px) and (max-width: 1180px) {
    .profile-action-row {
        max-width: 25rem;
        margin-inline: auto;
    }

    .profile-action-row.is-guest {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-action-row.is-guest .profile-engagement-button,
    .profile-action-row.is-guest .profile-share-button {
        min-width: 0;
        width: 100%;
        padding-inline: 0.8rem;
        font-size: 0.88rem;
    }

    .profile-action-row.is-guest .profile-share-button {
        grid-column: auto;
    }

    .profile-engagement-button,
    .profile-share-button,
    .profile-action-secondary {
        padding-inline: 0.9rem;
        font-size: 0.9rem;
    }

    .profile-action-row.is-guest .profile-engagement-button__label,
    .profile-action-row.is-guest .profile-engagement-button__count {
        white-space: nowrap;
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    .link-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .dashboard-metric-card {
        min-width: 0;
        padding: 0.9rem 0.72rem;
        text-align: center;
    }

    .dashboard-metric-card__label {
        font-size: 0.7rem;
    }

    .dashboard-metric-card__value {
        font-size: 1.72rem;
    }

    .dashboard-metric-card__value-sm {
        font-size: 0.94rem;
    }
}

@media (min-width: 768px) {
    .dashboard-shell {
        max-width: calc(100% - 1.5rem) !important;
    }

    .profile-links-grid {
        width: min(100%, 25rem);
        max-width: 25rem;
        grid-template-columns: repeat(auto-fit, minmax(5.55rem, 5.55rem));
    }

    .result-grid {
        gap: 0.95rem;
    }

    .result-card {
        width: 13.4rem;
        flex-basis: 13.4rem;
    }

    .result-grid--search {
        justify-content: center;
    }

    .result-grid--search .result-card {
        width: calc((100% - 1.9rem) / 3);
        max-width: none;
        flex-basis: calc((100% - 1.9rem) / 3);
    }

    .profile-hero-avatar {
        height: 9rem;
        width: 9rem;
        border-radius: 2rem;
    }

    .profile-link-tile {
        min-height: 7rem;
    }

    .link-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .share-channel-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .dashboard-quick-actions {
        width: auto;
    }

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

@media (min-width: 1024px) {
    .site-navbar-layout {
        display: grid;
        grid-template-columns: max-content max-content minmax(0, 1fr) max-content;
        align-items: center;
        column-gap: 1.35rem;
        row-gap: 0;
    }

    .site-navbar-row {
        display: contents;
    }

    .site-navbar-brand-wrap {
        grid-column: 1;
        justify-self: start;
    }

    .site-navbar-primary-nav {
        grid-column: 2;
        display: flex;
        align-items: center;
        gap: 0.15rem;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .site-navbar-nav-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        padding: 0.45rem 0.5rem;
        border-radius: 0.7rem;
        background: transparent;
        color: var(--brand-fog);
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
        transition: color 160ms ease;
    }

    .site-navbar-nav-link:hover,
    .site-navbar-nav-link:focus-visible,
    .site-navbar-nav-link.is-active {
        color: var(--brand-ink);
        background: transparent;
    }

    .site-navbar-nav-link::after {
        content: '';
        position: absolute;
        right: 0.5rem;
        bottom: 0.2rem;
        left: 0.5rem;
        height: 2px;
        border-radius: 9999px;
        background: rgba(88, 174, 242, 0);
        transition: background 160ms ease, opacity 160ms ease;
        opacity: 0;
    }

    .site-navbar-nav-link:hover::after,
    .site-navbar-nav-link:focus-visible::after,
    .site-navbar-nav-link.is-active::after {
        background: rgba(88, 174, 242, 0.9);
        opacity: 1;
    }

    .site-navbar-search {
        grid-column: 3;
        width: 100%;
        min-width: 0;
        max-width: 42rem;
        justify-self: center;
        display: block;
    }

    .site-navbar-search .search-form {
        width: min(100%, 42rem);
        margin-left: 0;
        margin-right: 0;
    }

    .site-menu-panel {
        display: flex !important;
        grid-column: 4;
        width: auto !important;
        margin-left: 0;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        justify-self: end;
        gap: 1.2rem;
        white-space: nowrap;
    }

    .site-notification-root-desktop {
        display: inline-flex !important;
        flex: 0 0 auto;
        margin-right: 0;
    }

    .site-menu-section {
        width: auto;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .site-menu-section-links {
        width: auto;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 0.2rem;
        min-width: 0;
    }

    .site-menu-group-primary {
        display: none !important;
    }

    .site-menu-group-user {
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 0.45rem;
        padding-left: 0.3rem;
    }

    .site-menu-group-auth {
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 0.18rem;
        padding-left: 0.15rem;
    }

    .site-menu-group-language {
        width: auto;
        flex-direction: row;
        align-items: center;
        padding-left: 0.95rem;
    }

    .site-menu-section-label {
        display: none;
    }

    .site-menu-link {
        display: inline-flex;
        width: auto;
        min-height: auto;
        padding: 0.45rem 0.5rem;
        border-radius: 0.7rem;
        background: transparent;
        color: var(--brand-fog);
        font-size: 0.9rem;
    }

    .site-menu-link:hover,
    .site-menu-link:focus-visible,
    .site-menu-link.is-active {
        color: var(--brand-ink);
        background: transparent;
    }

    .site-menu-link::after {
        content: '';
        position: absolute;
        right: 0.5rem;
        bottom: 0.2rem;
        left: 0.5rem;
        height: 2px;
        border-radius: 9999px;
        background: rgba(88, 174, 242, 0);
        transition: background 160ms ease, opacity 160ms ease;
        opacity: 0;
    }

    .site-menu-link-auth {
        font-weight: 600;
    }

    .site-menu-link-signup {
        min-height: 2.75rem;
        border-radius: 9999px;
        background: linear-gradient(135deg, rgba(88, 174, 242, 0.96), rgba(123, 97, 255, 0.92));
        padding: 0.68rem 1rem;
        color: #fff;
        box-shadow: 0 14px 28px rgba(88, 174, 242, 0.2);
    }

    .site-menu-link-signup:hover,
    .site-menu-link-signup:focus-visible,
    .site-menu-link-signup.is-active {
        background: linear-gradient(135deg, rgba(88, 174, 242, 1), rgba(123, 97, 255, 0.96));
        color: #fff;
    }

    .site-menu-link-signup::after {
        display: none;
    }

    .site-menu-link-mobile-only,
    .site-menu-section-mobile-only,
    .site-account-menu-mobile {
        display: none !important;
    }

    .site-account-menu-desktop {
        display: inline-flex;
    }

    .site-account-menu__panel {
        width: 17rem;
    }

    .site-language-switcher__trigger {
        min-height: 2.7rem;
        padding: 0.55rem 0.8rem;
        font-size: 0.86rem;
        box-shadow: none;
    }

    .site-mobile-search-panel {
        display: none !important;
    }

    .site-menu-link:hover::after,
    .site-menu-link:focus-visible::after,
    .site-menu-link.is-active::after {
        background: rgba(88, 174, 242, 0.9);
        opacity: 1;
    }

    .dashboard-shell {
        max-width: calc(100% - 2rem) !important;
    }

    .result-card {
        width: 12.7rem;
        flex-basis: 12.7rem;
    }

    .result-grid--search {
        justify-content: center;
    }

    .result-grid--search .result-card {
        width: calc((100% - 2.85rem) / 4);
        flex-basis: calc((100% - 2.85rem) / 4);
    }

    .link-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .dashboard-sidebar {
        position: sticky;
        top: 1.25rem;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.78);
        background: rgba(255, 255, 255, 0.88);
        box-shadow: var(--panel-shadow);
    }

    .dashboard-sidebar-toggle {
        display: none;
    }

    .dashboard-sidebar-panel {
        display: block !important;
    }

    .dashboard-sidebar-sheet-header,
    .dashboard-sidebar-backdrop {
        display: none !important;
    }

    .dashboard-overview-card {
        padding: 0;
    }

    .dashboard-overview-card__hero {
        padding: 1.45rem 1.5rem 1.1rem;
    }

    .dashboard-next-actions-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
    .site-navbar-layout {
        column-gap: 1rem;
    }

    .site-menu-panel {
        gap: 0.9rem;
    }

    .site-navbar-primary-nav {
        gap: 0.05rem;
    }

    .site-navbar-nav-link {
        padding: 0.4rem 0.42rem;
        font-size: 0.86rem;
    }

    .site-menu-link {
        padding: 0.4rem 0.42rem;
        font-size: 0.86rem;
    }

    .site-account-menu__trigger {
        padding-right: 0.42rem;
    }

    .site-language-switcher__trigger {
        padding: 0.5rem 0.72rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 1023.98px) {
    .site-navbar {
        z-index: 135;
    }

    .admin-page .site-menu-panel,
    .admin-page .site-menu-toggle {
        display: none !important;
    }

    .admin-sidebar-panel {
        display: none;
    }

    .dashboard-sidebar-panel {
        display: none;
    }

    .dashboard-sidebar {
        position: relative;
        z-index: 120;
        padding: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.78);
        background: rgba(255, 255, 255, 0.88);
        box-shadow: var(--panel-shadow);
    }

    .dashboard-sidebar-toggle {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 3.15rem;
        justify-content: space-between;
        padding: 0.8rem 0.95rem !important;
    }

    .dashboard-sidebar-toggle__summary {
        gap: 0.8rem;
    }

    .dashboard-sidebar-toggle__icon {
        height: 2.45rem;
        width: 2.45rem;
        flex-basis: 2.45rem;
        font-size: 0.88rem;
    }

    .dashboard-sidebar-toggle__title {
        font-size: 1.02rem;
    }

    .dashboard-sidebar-toggle__subtitle {
        margin-top: 0.12rem;
        font-size: 0.82rem;
    }

    .dashboard-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 145;
    }

    .dashboard-sidebar-panel {
        position: fixed;
        top: max(0.75rem, env(safe-area-inset-top));
        left: 0.85rem;
        right: 0.85rem;
        z-index: 150;
        display: block !important;
        width: auto;
        max-width: 24rem;
        max-height: calc(100dvh - max(1.5rem, env(safe-area-inset-top) + env(safe-area-inset-bottom) + 1rem));
        margin-inline: auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-radius: 1.55rem;
        border: 1px solid rgba(255, 255, 255, 0.84);
        background: rgba(255, 255, 255, 0.96);
        padding: 1rem;
        box-shadow: 0 26px 56px rgba(15, 23, 42, 0.16);
        transform: translateX(-108%);
        opacity: 0;
        visibility: hidden;
        transition: transform 200ms ease, opacity 180ms ease, visibility 180ms ease;
    }

    .dashboard-sidebar-panel.is-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .site-menu-panel {
        align-items: stretch;
    }

    .site-menu-panel[data-nav-panel="true"] {
        box-shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        min-height: 2.9rem;
    }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
    .site-navbar {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .site-navbar-row {
        gap: 0.65rem;
    }

    .site-navbar-search {
        display: none;
    }

    .site-mobile-search-panel {
        margin-top: 0.7rem;
    }

    .site-mobile-search-panel.is-open {
        display: block;
    }

    .site-mobile-search-panel [data-search-input="true"] {
        height: 3.15rem;
        padding-left: 1rem;
        padding-right: 3.45rem;
        font-size: 0.95rem;
    }

    .site-mobile-search-panel button[type="submit"] {
        right: 0.45rem;
        top: 0.45rem;
        height: 2.35rem;
        width: 2.35rem;
    }

    .dashboard-overview-card {
        padding: 0;
    }

    .dashboard-overview-card__hero {
        padding: 1.1rem 1.1rem 0.95rem;
    }

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

    .dashboard-next-card {
        padding: 1.1rem;
    }

    .dashboard-overview-support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (min-width: 1024px) {
    .site-navbar-actions-mobile {
        display: none !important;
    }

    .site-notification-root-mobile {
        display: none !important;
    }

    .site-notification-root-desktop {
        display: inline-flex !important;
    }
}

@media (min-width: 1200px) {
    .result-grid {
        gap: 0.9rem;
    }

    .result-card {
        width: 11.9rem;
        flex-basis: 11.9rem;
        min-height: 13.8rem;
        padding: 0.95rem 0.82rem 0.88rem;
    }

    .result-grid--search {
        justify-content: center;
    }

    .result-grid--search .result-card {
        width: calc((100% - 4.5rem) / 6);
        flex-basis: calc((100% - 4.5rem) / 6);
    }

    .link-summary-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1440px) {
    .dashboard-shell {
        max-width: min(86rem, calc(100% - 3rem)) !important;
    }

    .result-card {
        width: 11.4rem;
        flex-basis: 11.4rem;
    }

}

/* profile-editor-and-link-modals */
body.overflow-hidden {
    overflow: hidden;
}

.avatar-preview-card,
.link-summary-item,
.link-config-modal .link-editor-card,
.avatar-crop-modal,
.delete-account-modal {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--soft-shadow);
}

.link-summary-item {
    display: block;
    border-radius: 1.5rem;
    width: 100%;
    min-width: 0;
    padding: 0.62rem 0.72rem;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.link-summary-item:hover {
    border-color: rgba(88, 174, 242, 0.18);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.07), 0 6px 18px rgba(88, 174, 242, 0.05);
    transform: translateY(-1px);
}

.dashboard-links-section-toggle__chevron {
    transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.dashboard-links-section-toggle[aria-expanded="true"] .dashboard-links-section-toggle__chevron {
    transform: rotate(180deg);
    color: var(--brand-cyan-600);
    background: rgba(242, 251, 255, 0.94);
}

.dashboard-section-counter {
    display: inline-flex;
    min-width: 2.15rem;
    height: 2.15rem;
    align-items: center;
    justify-content: center;
    padding: 0 0.7rem;
    border-radius: 9999px;
    background: rgba(248, 250, 252, 0.92);
    color: var(--brand-ink);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.7);
}

.dashboard-link-form-grid {
    display: grid;
    gap: 1rem;
}

.link-scope-note {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    border: 1px solid rgba(203, 213, 225, 0.74);
    border-radius: 1.1rem;
    background: rgba(248, 250, 252, 0.86);
    padding: 0.9rem 1rem;
}

.link-scope-note__icon {
    display: inline-flex;
    height: 2.25rem;
    width: 2.25rem;
    flex: 0 0 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-cyan-600);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.06);
}

.saved-links-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.saved-links-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.link-summary-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.9rem;
    border-radius: 1.5rem;
    padding: 0.9rem;
}

.link-summary-card__trigger {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
}

.link-summary-card__trigger:hover,
.link-summary-card__trigger:focus-visible {
    outline: none;
}

.link-summary-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.link-summary-card__pill {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.42rem;
    border-radius: 9999px;
    background: rgba(248, 250, 252, 0.92);
    padding: 0.42rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475467;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.84);
}

.link-summary-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.dashboard-saved-links-grid {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-saved-groups-grid {
    grid-template-columns: minmax(0, 1fr);
}

.link-summary-grid {
    display: grid;
    gap: 0.62rem;
    grid-template-columns: minmax(0, 1fr);
}

.link-summary-icon {
    display: inline-flex;
    height: 2.15rem;
    width: 2.15rem;
    flex: 0 0 2.15rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.72rem;
    font-size: 0.8rem;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
    overflow: hidden;
}

.link-icon-builder {
    border-radius: 1.55rem;
}

.link-scope-card {
    display: flex;
    min-height: 5.4rem;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.95rem 1rem;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.link-scope-card:hover {
    border-color: rgba(88, 174, 242, 0.24);
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.05);
}

.link-scope-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.link-scope-card__copy {
    font-size: 0.78rem;
    line-height: 1.55;
    color: #64748b;
}

.link-scope-card.is-selected {
    border-color: rgba(88, 174, 242, 0.4);
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.06), 0 0 0 3px rgba(88, 174, 242, 0.08);
    transform: translateY(-1px);
}

.group-selection-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.group-selection-option {
    display: block;
}

.group-selection-option__card {
    display: flex;
    min-height: 4.8rem;
    align-items: center;
    gap: 0.9rem;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.84);
    padding: 0.78rem 0.92rem;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.group-selection-option__card:hover {
    border-color: rgba(88, 174, 242, 0.24);
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.05);
}

.group-selection-option__card.is-selected {
    border-color: rgba(88, 174, 242, 0.4);
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.06), 0 0 0 3px rgba(88, 174, 242, 0.08);
    transform: translateY(-1px);
}

.group-selection-option__check {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    background: rgba(248, 250, 252, 0.94);
    color: rgba(88, 174, 242, 0);
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.group-selection-option__card.is-selected .group-selection-option__check {
    border-color: rgba(88, 174, 242, 0.38);
    background: linear-gradient(135deg, rgba(88, 174, 242, 0.14), rgba(139, 92, 246, 0.12));
    color: var(--brand-cyan-600);
    transform: scale(1.02);
}

.group-section-toggle {
    display: flex;
    width: auto;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    border-radius: 1.35rem;
    background: transparent;
    padding: 0.2rem 0;
    text-align: left;
    transition: color 160ms ease;
}

.group-section-toggle:hover,
.group-section-toggle:focus-visible {
    outline: none;
}

.group-section-toggle__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.group-section-panel {
    margin-top: 0.25rem;
}

.group-list {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: minmax(0, 1fr);
}

.group-list-row {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.7rem;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.84);
    padding: 0.9rem 0.95rem;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.group-list-row:hover,
.group-list-row:focus-within {
    border-color: rgba(88, 174, 242, 0.24);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.05);
    transform: translateY(-1px);
}

.group-list-row__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid rgba(203, 213, 225, 0.64);
    border-radius: 0.95rem;
    background: rgba(248, 250, 252, 0.72);
    padding: 0.72rem 0.82rem;
    width: 100%;
    min-width: 0;
    text-align: left;
}

.group-list-row__main:focus-visible {
    outline: none;
    border-color: rgba(88, 174, 242, 0.28);
}

.group-list-row__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-cyan-600);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.group-list-row__share {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0.55rem 0.8rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--brand-cyan-600);
    text-decoration: none;
    border-radius: 0.95rem;
    border: 1px solid rgba(88, 174, 242, 0.16);
    background: rgba(242, 251, 255, 0.92);
    transition: color 160ms ease, opacity 160ms ease, border-color 160ms ease, background 160ms ease;
}

.group-list-row__share,
.group-list-row > [data-group-modal-trigger] {
    width: 100%;
}

.group-list-row__share:hover,
.group-list-row__share:focus-visible {
    color: var(--brand-violet-600);
    border-color: rgba(88, 174, 242, 0.28);
    background: rgba(255, 255, 255, 0.98);
    outline: none;
}

.platform-picker-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.platform-picker {
    position: relative;
    width: 100%;
    z-index: 5;
}

.platform-picker__trigger {
    display: flex;
    width: 100%;
    min-height: 3.3rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.84);
    padding: 0.8rem 1rem;
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.platform-picker__trigger:hover,
.platform-picker__trigger:focus-visible,
.platform-picker__trigger[aria-expanded="true"] {
    outline: none;
    border-color: rgba(88, 174, 242, 0.34);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(198, 236, 255, 0.55);
}

.platform-picker__trigger.is-disabled {
    cursor: not-allowed;
    border-color: rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.92));
    box-shadow: none;
}

.platform-picker__content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.2rem;
}

.platform-picker__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(102, 112, 133, 0.88);
}

.platform-picker__value {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    color: var(--brand-ink);
    font-size: 0.94rem;
    font-weight: 600;
}

.platform-picker__icon,
.platform-picker__option-icon {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.78rem;
    background: rgba(248, 250, 252, 0.96);
    color: var(--brand-fog);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
    font-size: 0.95rem;
    line-height: 1;
}

.platform-picker__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1;
}

.platform-picker__glyph--brands {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

.platform-picker__glyph--solid {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.platform-picker__chevron {
    flex: 0 0 auto;
    color: var(--brand-fog);
    transition: transform 160ms ease, color 160ms ease;
}

.platform-picker__trigger[aria-expanded="true"] .platform-picker__chevron {
    transform: rotate(180deg);
    color: var(--brand-cyan-600);
}

.platform-picker__menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    z-index: 120;
    width: max(100%, 18rem);
    max-width: min(24rem, calc(100vw - 2rem));
    max-height: min(18rem, 52vh);
    overflow-y: auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 48px rgba(16, 24, 40, 0.12);
    padding: 0.45rem;
    backdrop-filter: blur(18px);
}

.platform-picker__option {
    display: flex;
    width: 100%;
    min-height: 3.15rem;
    align-items: center;
    gap: 0.75rem;
    border: 0;
    border-radius: 0.95rem;
    background: transparent;
    padding: 0.62rem 0.72rem;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-ink);
    transition: background 160ms ease, color 160ms ease;
}

.platform-picker__option:hover,
.platform-picker__option:focus-visible,
.platform-picker__option.is-selected {
    background: rgba(242, 251, 255, 0.92);
    color: var(--brand-ink);
    outline: none;
}

.platform-picker__menu {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.platform-picker__menu::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.group-actions-modal__actions {
    display: grid;
    gap: 0.75rem;
}

.group-actions-modal__actions .btn-secondary,
.group-actions-modal__actions .btn-danger,
.group-actions-modal__actions form > button {
    width: 100%;
    min-height: 2.85rem;
    justify-content: center;
    border-radius: 0.9rem;
    padding: 0.72rem 1rem;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: none;
}

.link-icon-preview-chip {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.78rem 0.95rem;
}

.link-icon-preview-chip__media {
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    flex: 0 0 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    overflow: hidden;
    font-size: 1rem;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.06);
}

.link-icon-mode-card {
    display: flex;
    min-height: 5.4rem;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.95rem 1rem;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.link-icon-mode-card,
.link-icon-option__card {
    position: relative;
}

.link-icon-mode-card:hover {
    border-color: rgba(88, 174, 242, 0.24);
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.05);
}

.link-icon-mode-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.link-icon-mode-card__copy {
    font-size: 0.78rem;
    line-height: 1.55;
    color: #64748b;
}

.link-icon-mode-card.is-selected {
    border-color: rgba(88, 174, 242, 0.4);
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.06), 0 0 0 3px rgba(88, 174, 242, 0.08);
    transform: translateY(-1px);
}

.link-icon-option-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-icon-option__card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.84);
    padding: 0.72rem 0.82rem;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.link-icon-option__card:hover {
    border-color: rgba(88, 174, 242, 0.24);
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.05);
}

.link-icon-option__visual {
    display: inline-flex;
    height: 2.45rem;
    width: 2.45rem;
    flex: 0 0 2.45rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.82rem;
    font-size: 0.92rem;
}

.link-icon-option__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.link-icon-option__card.is-selected,
.link-icon-option.is-selected .link-icon-option__card {
    border-color: rgba(88, 174, 242, 0.4);
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.06), 0 0 0 3px rgba(88, 174, 242, 0.08);
    transform: translateY(-1px);
}

@media (min-width: 640px) {
    .dashboard-guided-link-entry {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        width: min(100%, 42rem);
    }

    .guided-link-summary__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .guided-link-modal__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .guided-link-modal__footer-actions {
        grid-template-columns: repeat(2, minmax(0, max-content));
        justify-content: end;
    }

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

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

    .group-actions-modal__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .link-icon-option-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .dashboard-saved-links-grid,
    .dashboard-saved-groups-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-link-category-grid {
        max-width: 19rem;
        grid-template-columns: repeat(auto-fit, minmax(5.4rem, 5.4rem));
    }
}

@media (min-width: 900px) {
    .group-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .link-config-modal .group-selection-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .link-config-modal .group-selection-option__card {
        min-height: 4.15rem;
        padding: 0.72rem 0.78rem;
    }
}

@media (min-width: 1024px) {
    .group-section-toggle {
        cursor: default;
    }

    .profile-action-row {
        grid-template-columns: repeat(4, minmax(0, max-content));
        justify-content: center;
    }

    .profile-action-row.is-guest {
        grid-template-columns: repeat(3, minmax(0, max-content));
    }

    .profile-action-row.is-guest .profile-share-button {
        grid-column: auto;
    }

    .profile-links-grid {
        width: min(100%, 38rem);
        max-width: 38rem;
        grid-template-columns: repeat(auto-fit, minmax(5.7rem, 5.7rem));
    }

    .profile-link-category-grid {
        width: min(100%, 38rem);
        max-width: 38rem;
        grid-template-columns: repeat(auto-fit, minmax(5.7rem, 5.7rem));
    }

    .group-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .group-actions-modal__actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .link-icon-option-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-saved-links-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-saved-groups-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 639.98px) {
    .profile-link-category-heading {
        gap: 0.6rem;
    }

    .profile-link-category-title {
        font-size: 0.98rem;
    }

    .profile-link-card-portrait {
        min-height: 6.75rem;
        padding: 0.8rem 0.65rem;
    }
}

@media (min-width: 520px) {
    .link-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .link-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .link-summary-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .group-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .link-summary-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.dashboard-links-page {
    gap: 1.75rem;
}

.dashboard-links-page .dashboard-links-hero {
    padding-block: 1.35rem;
}

.dashboard-links-page .dashboard-links-block,
.dashboard-links-page .dashboard-groups-block {
    padding: 1.35rem;
}

.dashboard-links-page .dashboard-links-block + .dashboard-links-block,
.dashboard-links-page .dashboard-links-block + .dashboard-groups-block,
.dashboard-links-page .dashboard-groups-block + .dashboard-links-block,
.dashboard-links-page .dashboard-groups-block + .dashboard-groups-block {
    margin-top: 2.6rem !important;
}

.dashboard-links-page .dashboard-links-block__toggle,
.dashboard-links-page .dashboard-groups-block__toggle {
    align-items: flex-start;
}

.dashboard-links-page .dashboard-links-block__body,
.dashboard-links-page .dashboard-groups-block__body {
    margin-top: 1.5rem;
}

.dashboard-links-page .dashboard-links-block__body > .dashboard-links-subpanel + .dashboard-links-subpanel {
    margin-top: 2.2rem !important;
}

.dashboard-links-page .dashboard-links-subpanel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.88));
    box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.52), 0 18px 42px rgba(16, 24, 40, 0.04);
}

.dashboard-links-count-card {
    border: 1px solid rgba(203, 213, 225, 0.78);
    box-shadow: 0 10px 20px rgba(16, 24, 40, 0.03);
}

.dashboard-links-page .dashboard-links-subpanel--create {
    padding-bottom: 2.5rem !important;
}

.dashboard-links-page .dashboard-link-create-form {
    gap: 1.5rem;
    margin-top: 1.35rem !important;
}

.dashboard-guided-link-entry {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    width: min(100%, 34rem);
    margin-top: 0.9rem;
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.52);
    padding: 0.75rem 0.95rem;
}

.dashboard-guided-link-entry--welcome {
    background: linear-gradient(180deg, rgba(242, 251, 255, 0.62), rgba(255, 255, 255, 0.82));
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.03);
}

.dashboard-guided-link-entry__title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-ink);
}

.dashboard-guided-link-entry__copy {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--brand-fog);
}

.dashboard-guided-link-entry__button {
    min-height: 2.35rem;
    padding-inline: 0.95rem;
    font-size: 0.82rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.dashboard-guided-link-promo {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(216, 225, 239, 0.9);
    border-radius: 1.1rem;
    background: linear-gradient(180deg, rgba(244, 244, 255, 0.9), rgba(239, 243, 255, 0.8));
    padding: 1rem 1.15rem;
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-guided-link-promo:hover,
.dashboard-guided-link-promo:focus-visible {
    border-color: rgba(139, 92, 246, 0.38);
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.04);
    outline: none;
    transform: translateY(-1px);
}

.dashboard-guided-link-promo__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.15rem;
}

.dashboard-guided-link-promo__title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-violet-600);
}

.dashboard-guided-link-promo__text {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--brand-fog);
}

.dashboard-guided-link-promo__action {
    display: inline-flex;
    min-height: 2.95rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(91, 33, 182, 0.95);
    background: linear-gradient(135deg, #5b21b6, #6d28d9);
    padding: 0.55rem 1.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 10px 24px rgba(91, 33, 182, 0.18);
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.12);
}

.dashboard-guided-link-promo__action i,
.dashboard-guided-link-promo__action span {
    color: inherit;
}

.dashboard-standard-form-toggle,
.dashboard-group-create-toggle {
    margin-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 1rem;
}

.dashboard-standard-form-toggle__summary,
.dashboard-group-create-toggle__summary {
    list-style: none;
}

.dashboard-standard-form-toggle__summary::-webkit-details-marker,
.dashboard-group-create-toggle__summary::-webkit-details-marker {
    display: none;
}

.dashboard-standard-form-toggle__summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border-radius: 0.8rem;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: rgba(255, 255, 255, 0.82);
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-fog);
}

.dashboard-standard-form-toggle__summary i {
    transition: transform 160ms ease;
}

.dashboard-standard-form-toggle[open] .dashboard-standard-form-toggle__summary i {
    transform: rotate(180deg);
}

.dashboard-group-create-toggle__summary {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    border: 1px dashed rgba(203, 213, 225, 0.95);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem 1rem;
    transition: border-color 160ms ease, background 160ms ease;
}

.dashboard-group-create-toggle__summary:hover,
.dashboard-group-create-toggle__summary:focus-visible {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(248, 250, 252, 0.94);
    outline: none;
}

.dashboard-group-create-toggle__icon {
    display: inline-flex;
    height: 2.85rem;
    width: 2.85rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: rgba(237, 233, 254, 0.9);
    color: var(--brand-violet-600);
    font-size: 1rem;
}

.dashboard-group-create-toggle__content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.dashboard-group-create-toggle__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-ink);
}

.dashboard-group-create-toggle__copy {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--brand-fog);
}

.dashboard-group-create-toggle__chevron {
    color: #94a3b8;
    transition: transform 160ms ease;
}

.dashboard-group-create-toggle[open] .dashboard-group-create-toggle__chevron {
    transform: rotate(90deg);
}

.guided-link-modal-card {
    width: min(100%, 39rem);
    max-height: min(92vh, 52rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.45rem 1.5rem 1.35rem;
    border-radius: 1.95rem;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
}

.guided-link-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.guided-link-modal__kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-violet-600);
}

.guided-link-modal__title {
    margin: 0.3rem 0 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--brand-ink);
}

.guided-link-modal__copy {
    margin: 0.35rem 0 0;
    max-width: 33rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--brand-fog);
}

.guided-link-form {
    margin-top: 1rem;
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.9rem;
}

.guided-link-progress {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0.15rem 0 0.1rem;
}

.guided-link-progress__indicator {
    display: none;
}

.guided-link-progress__rail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guided-link-progress__node {
    display: flex;
    min-width: 0;
    flex: 0 1 auto;
    align-items: center;
    gap: 0.5rem;
    color: #98a2b3;
}

.guided-link-progress__dot {
    display: inline-flex;
    height: 1.8rem;
    width: 1.8rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 2px solid rgba(203, 213, 225, 0.95);
    background: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    color: #98a2b3;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.guided-link-progress__text {
    font-size: 0.74rem;
    font-weight: 700;
    color: inherit;
    white-space: nowrap;
}

.guided-link-progress__line {
    height: 2px;
    min-width: 1.5rem;
    flex: 1 1 auto;
    border-radius: 9999px;
    background: rgba(226, 232, 240, 0.95);
    transition: background 160ms ease;
}

.guided-link-progress__node.is-active {
    color: var(--brand-violet-600);
}

.guided-link-progress__node.is-active .guided-link-progress__dot {
    border-color: var(--brand-violet-600);
    background: var(--brand-violet-600);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.guided-link-progress__node.is-complete {
    color: #16a34a;
}

.guided-link-progress__node.is-complete .guided-link-progress__dot {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}

.guided-link-progress__line.is-complete {
    background: #16a34a;
}

.guided-link-step {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0.15rem 0 0;
    box-shadow: none;
}

.guided-link-step::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.guided-link-step__intro {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.guided-link-step__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-fog);
}

.guided-link-step__copy {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--brand-fog);
}

.guided-link-field-helper {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--brand-fog);
}

.guided-link-platform-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.guided-link-platform-grid-shell {
    max-height: 19rem;
    overflow-y: auto;
    padding-right: 0.1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.guided-link-platform-grid-shell::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.guided-link-platform-grid--all {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guided-link-platform-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.42rem;
    border: 1.5px solid rgba(203, 213, 225, 0.82);
    border-radius: 0.95rem;
    background: #fff;
    padding: 0.7rem 0.45rem 0.65rem;
    text-align: center;
    color: var(--brand-fog);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.guided-link-platform-card:hover,
.guided-link-platform-card:focus-visible {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(245, 243, 255, 0.82);
    color: var(--brand-violet-600);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
    outline: none;
}

.guided-link-platform-card.is-selected {
    border-color: var(--brand-violet-600);
    background: rgba(245, 243, 255, 0.92);
    color: var(--brand-violet-600);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.guided-link-platform-card__icon {
    display: inline-flex;
    height: 2.35rem;
    width: 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 0.95rem;
}

.guided-link-platform-card__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.74rem;
    font-weight: 700;
}

.guided-link-target-shell {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.1rem;
    background: rgba(248, 250, 252, 0.72);
    padding: 0.95rem 1rem;
}

.guided-link-identity-panel {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.1rem;
    background: rgba(248, 250, 252, 0.72);
    padding: 0.95rem 1rem;
}

.guided-link-configuration-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guided-link-position-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.guided-link-position-row .form-input {
    width: min(100%, 5.5rem);
    text-align: center;
    font-weight: 700;
}

.guided-link-position-badge {
    display: inline-flex;
    min-height: 2.3rem;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(191, 219, 254, 0.95);
    background: rgba(239, 246, 255, 0.9);
    padding: 0.3rem 0.75rem;
    font-size: 0.73rem;
    font-weight: 700;
    color: #1d4ed8;
}

.guided-link-visibility-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.guided-link-visibility-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.3rem;
    border: 1.5px solid rgba(203, 213, 225, 0.82);
    border-radius: 0.95rem;
    background: #fff;
    padding: 0.78rem 0.78rem 0.8rem;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.guided-link-visibility-card:hover,
.guided-link-visibility-card:focus-visible {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(245, 243, 255, 0.82);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
    outline: none;
}

.guided-link-visibility-card.is-selected {
    border-color: var(--brand-violet-600);
    background: rgba(245, 243, 255, 0.92);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.guided-link-visibility-card__icon {
    font-size: 0.95rem;
    color: var(--brand-fog);
}

.guided-link-visibility-card.is-selected .guided-link-visibility-card__icon,
.guided-link-visibility-card.is-selected .guided-link-visibility-card__label {
    color: var(--brand-violet-600);
}

.guided-link-visibility-card__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-ink);
}

.guided-link-visibility-card__copy {
    font-size: 0.69rem;
    line-height: 1.45;
    color: var(--brand-fog);
}

.guided-link-summary {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.guided-link-summary__title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-fog);
}

.guided-link-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.guided-link-summary-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.82);
    padding: 0.82rem 0.9rem;
}

.guided-link-summary-row__icon {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: rgba(237, 233, 254, 0.85);
    color: var(--brand-violet-600);
    font-size: 0.88rem;
}

.guided-link-summary-row__label {
    margin: 0;
    font-size: 0.7rem;
    color: var(--brand-fog);
}

.guided-link-summary-row__value {
    margin: 0.1rem 0 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--brand-ink);
    word-break: break-word;
}

.guided-link-summary-row__action {
    flex: 0 0 auto;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.42rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-fog);
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.guided-link-summary-row__action:hover,
.guided-link-summary-row__action:focus-visible {
    border-color: rgba(139, 92, 246, 0.35);
    color: var(--brand-violet-600);
    background: rgba(245, 243, 255, 0.92);
    outline: none;
}

.guided-link-icon-shell {
    background: rgba(255, 255, 255, 0.42);
    box-shadow: none;
}

.guided-link-icon-shell .link-icon-builder {
    background: transparent;
    box-shadow: none;
}

.guided-link-icon-shell .link-icon-preview-chip {
    align-self: flex-start;
    min-width: 11rem;
}

.guided-link-icon-shell .link-icon-mode-card {
    min-height: 5rem;
    padding-right: 1rem;
}

.guided-link-icon-shell .link-icon-mode-card__check,
.guided-link-icon-shell .link-icon-option__check {
    display: none;
}

.guided-link-icon-shell .link-icon-option-shell {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.guided-link-icon-shell .link-icon-option-grid--compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

.guided-link-icon-shell .link-icon-option__card {
    justify-content: center;
    min-height: 3.6rem;
    padding: 0.55rem;
}

.guided-link-icon-shell .link-icon-option__visual {
    margin-inline: auto;
}

.guided-link-icon-shell .link-icon-option__label {
    display: none;
}

.guided-link-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border-top: 1px solid rgba(226, 232, 240, 0.86);
    margin-top: 0.4rem;
    padding-top: 1rem;
}

.guided-link-modal__footer .btn-secondary,
.guided-link-modal__footer .btn-primary {
    min-height: 2.85rem;
    justify-content: center;
}

.guided-link-modal__footer-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.link-config-modal {
    width: min(100%, 52rem);
    max-height: min(94vh, 60rem);
    border-radius: 2rem;
    padding: 1.45rem 1.5rem 1.3rem;
}

.link-config-modal__eyebrow,
.group-actions-modal__eyebrow {
    color: var(--brand-violet-600);
}

.link-config-modal__intro,
.group-actions-modal__intro {
    max-width: 31rem;
}

.link-config-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: rgba(248, 250, 252, 0.82);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.link-config-modal__body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.link-config-modal__footer {
    align-items: flex-start;
}

.link-config-modal__resolved {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.link-config-modal__resolved-label {
    background: rgba(245, 243, 255, 0.95);
    color: var(--brand-violet-600);
}

.link-config-modal__actions {
    justify-content: flex-end;
}

.group-actions-modal {
    width: min(100%, 37rem);
    max-height: calc(100dvh - 3rem);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border-radius: 2rem;
    padding: 1.45rem 1.5rem 1.3rem;
}

.group-actions-modal__header {
    flex: 0 0 auto;
}

.group-actions-modal__form {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
}

.group-actions-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.2rem;
    margin-right: -0.2rem;
    border-top: 1px solid rgba(226, 232, 240, 0.78);
    padding-top: 1rem;
}

.group-actions-modal__body::-webkit-scrollbar {
    width: 8px;
}

.group-actions-modal__body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
}

.group-actions-modal__linked-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    appearance: none;
    border: 1px solid rgba(191, 219, 254, 0.92);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 251, 255, 0.96) 100%),
        radial-gradient(circle at top left, rgba(88, 174, 242, 0.12), transparent 52%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 12px 28px rgba(88, 174, 242, 0.12),
        0 6px 18px rgba(124, 77, 235, 0.06);
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.group-actions-modal__linked-toggle:hover,
.group-actions-modal__linked-toggle:focus-visible {
    border-color: rgba(88, 174, 242, 0.54);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(236, 248, 255, 0.98) 100%),
        radial-gradient(circle at top left, rgba(88, 174, 242, 0.18), transparent 56%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 16px 34px rgba(88, 174, 242, 0.16),
        0 8px 20px rgba(124, 77, 235, 0.08);
    transform: translateY(-1px);
}

.group-actions-modal__linked-toggle:focus-visible {
    outline: none;
}

.group-actions-modal__linked-toggle-leading {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(191, 219, 254, 0.92);
    border-radius: 999px;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.98), rgba(219, 234, 254, 0.94));
    color: #2563eb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.group-actions-modal__linked-toggle-copy {
    display: flex;
    min-width: 0;
    align-items: center;
    flex: 1 1 auto;
}

.group-actions-modal__linked-toggle-meta {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--brand-ink);
}

.group-actions-modal__linked-toggle-icon {
    display: inline-flex;
    height: 1.9rem;
    width: 1.9rem;
    flex: 0 0 1.9rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    font-size: 0.74rem;
    color: #64748b;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.group-actions-modal__linked-list.is-open .group-actions-modal__linked-toggle-icon {
    transform: rotate(180deg);
}

.group-actions-modal__linked-list.is-open .group-actions-modal__linked-toggle {
    border-color: rgba(88, 174, 242, 0.58);
    background:
        linear-gradient(180deg, rgba(244, 251, 255, 0.99) 0%, rgba(230, 244, 255, 0.95) 100%),
        radial-gradient(circle at top left, rgba(88, 174, 242, 0.2), transparent 56%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.99),
        0 18px 38px rgba(88, 174, 242, 0.18),
        0 8px 22px rgba(124, 77, 235, 0.08);
}

.group-actions-modal__linked-list.is-open .group-actions-modal__linked-toggle-icon {
    background: rgba(219, 234, 254, 0.98);
    color: #2563eb;
}

.group-actions-modal__linked-panel {
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.68);
    padding: 0.85rem;
}

.group-actions-modal__linked-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.8rem 0.9rem;
}

.group-actions-modal__linked-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: rgba(248, 250, 252, 0.95);
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-fog);
    white-space: nowrap;
}

.category-locale-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.55rem 0.4rem;
    border-radius: 0.75rem;
    border: 1.5px solid var(--brand-cyan-500);
    background: var(--brand-cyan-100);
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.category-locale-btn:hover {
    background: var(--brand-cyan-200);
    border-color: var(--brand-cyan-600);
    box-shadow: 0 0 0 3px rgba(88, 174, 242, 0.22);
}

.category-locale-btn__code {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-cyan-600);
    transition: color 0.15s;
}

.category-locale-btn__dot {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--brand-cyan-200);
    transition: background 0.15s;
}

.category-locale-btn[data-filled="true"] .category-locale-btn__dot {
    background: #22c55e;
}

.category-locale-btn.is-active {
    border-color: var(--brand-violet-600);
    background: var(--brand-violet-100);
    box-shadow: 0 0 0 3px rgba(124, 77, 235, 0.12);
}

.category-locale-btn.is-active:hover {
    background: var(--brand-violet-200);
    border-color: var(--brand-violet-600);
    box-shadow: 0 0 0 3px rgba(124, 77, 235, 0.18);
}

.category-locale-btn.is-active .category-locale-btn__code {
    color: #5b21b6;
}

.group-actions-modal__share-box {
    background: rgba(248, 250, 252, 0.82);
}

.group-actions-modal__share-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.group-actions-modal__share-icon {
    display: inline-flex;
    height: 2.35rem;
    width: 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-fog);
    box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.7);
}

.group-actions-modal__footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border-top: 1px solid rgba(226, 232, 240, 0.86);
    padding-top: 1rem;
}

.group-actions-modal__footer form {
    flex: 0 0 auto;
}

.group-actions-modal__footer .btn-danger,
.group-actions-modal__footer .btn-secondary {
    min-height: 2.9rem;
    border-radius: 0.9rem;
    padding-inline: 1.15rem;
}

[data-category-modal].modal-overlay,
[data-group-modal].modal-overlay {
    align-items: flex-start;
}

.dashboard-links-page .dashboard-link-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.dashboard-links-page .dashboard-links-fields-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-links-page .dashboard-links-fields-row__item {
    min-width: 0;
}

.dashboard-links-page .dashboard-links-group-panel {
    margin-top: 1.1rem;
    background: rgba(248, 250, 252, 0.72);
    box-shadow: none;
    border-color: rgba(226, 232, 240, 0.84);
}

.dashboard-links-page .dashboard-links-field-card,
.dashboard-links-page .dashboard-links-icon-shell {
    position: relative;
    overflow: visible;
    background: rgba(248, 250, 252, 0.58);
    box-shadow: none;
    border-color: rgba(226, 232, 240, 0.76);
}

.dashboard-links-page .dashboard-links-field-card:focus-within,
.dashboard-links-page .dashboard-links-icon-shell:focus-within {
    z-index: 25;
}

.dashboard-links-page .dashboard-links-field-card .form-input,
.dashboard-links-page .dashboard-links-icon-shell .form-input,
.dashboard-links-page .group-create-form .form-input {
    min-height: 3.4rem;
}

.dashboard-links-page .dashboard-links-icon-shell {
    padding: 1rem 1rem 0.8rem;
}

.dashboard-links-page .link-icon-builder {
    background: transparent;
    box-shadow: none;
}

.dashboard-links-page .dashboard-links-start-field {
    border-radius: 1.05rem;
    background: rgba(242, 251, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(88, 174, 242, 0.14);
    padding: 0.82rem;
}

.dashboard-links-page .dashboard-links-field-helper {
    margin-top: 0.48rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--brand-fog);
}

.dashboard-links-page .dashboard-links-action-row {
    margin-top: 1.7rem !important;
    padding-top: 0.35rem;
}

.dashboard-links-page .dashboard-links-action-row .btn-primary {
    min-height: 3.15rem;
    padding-inline: 1.5rem;
}

.dashboard-links-page .saved-links-shell {
    gap: 1rem;
}

.dashboard-links-page .dashboard-links-subpanel--saved-links {
    margin-top: 3.15rem !important;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.03);
}

.dashboard-links-page .dashboard-groups-block {
    margin-top: 3.35rem !important;
}

.dashboard-links-page .dashboard-saved-links-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.dashboard-links-page .link-summary-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    border-radius: 1.45rem;
    padding: 0.88rem 0.95rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.04);
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dashboard-links-page .link-summary-card:hover,
.dashboard-links-page .link-summary-card:focus-visible {
    border-color: rgba(88, 174, 242, 0.22);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 18px 38px rgba(16, 24, 40, 0.06);
    outline: none;
    transform: translateY(-1px);
}

.dashboard-links-page .link-summary-card__header {
    gap: 0.68rem;
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
}

.dashboard-links-page .link-summary-card__title-row {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem;
}

.dashboard-links-page .link-summary-card__title {
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

.dashboard-links-page .link-summary-card__edit {
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-violet-600);
}

.dashboard-links-page .link-summary-card__meta {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    padding-left: calc(2.15rem + 0.68rem);
}

.dashboard-links-page .link-summary-card__visibility {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #667085;
}

.dashboard-links-page .link-summary-card__visibility i {
    color: #667085;
    font-size: 0.64rem;
}

.dashboard-links-page .link-summary-card__visibility span {
    white-space: nowrap;
}

.dashboard-links-page .dashboard-saved-groups-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.dashboard-links-page .group-list-row {
    gap: 0.62rem;
    padding: 0.88rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.04);
}

.dashboard-links-page .group-list-row__main {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 0.35rem;
    min-height: auto;
    border-radius: 1rem;
    padding: 0;
    background: transparent;
    border: 0;
}

.dashboard-links-page .group-list-row__main > .min-w-0 {
    width: 100%;
    min-width: 0;
}

.dashboard-links-page .group-list-row__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
}

.dashboard-links-page .group-list-row__edit {
    min-height: 1.9rem;
    padding: 0.28rem 0.6rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--brand-violet-600);
    flex: 0 0 auto;
}

.dashboard-links-page .group-list-row__share {
    min-height: 2.2rem;
    border-radius: 9999px;
    padding-inline: 0.9rem;
    font-size: 0.76rem;
    font-weight: 600;
}

.dashboard-links-page .link-icon-mode-card,
.dashboard-links-page .link-icon-option__card {
    position: relative;
}

.link-icon-mode-card__check,
.link-icon-option__check {
    position: absolute;
    top: 0.72rem;
    right: 0.72rem;
    display: inline-flex;
    height: 1.55rem;
    width: 1.55rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    background: rgba(255, 255, 255, 0.95);
    color: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.link-icon-mode-card.is-selected .link-icon-mode-card__check,
.link-icon-option__card.is-selected .link-icon-option__check,
.link-icon-option.is-selected .link-icon-option__check {
    border-color: rgba(88, 174, 242, 0.35);
    background: linear-gradient(135deg, rgba(88, 174, 242, 0.14), rgba(139, 92, 246, 0.12));
    color: var(--brand-cyan-600);
    transform: scale(1.02);
}

.link-icon-option-shell {
    max-height: 23rem;
    overflow-y: auto;
    padding-right: 0.2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.link-icon-option-shell::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.link-icon-option-grid--compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
}

.link-icon-option-grid--compact .link-icon-option {
    display: flex;
    justify-content: center;
}

.link-icon-option-grid--compact .link-icon-option__visual {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    flex: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.link-icon-option-grid--compact .link-icon-option__visual:hover {
    border-color: rgba(88, 174, 242, 0.4);
    box-shadow: 0 0 0 2px rgba(88, 174, 242, 0.15);
}

.link-icon-option-grid--compact .link-icon-option.is-selected .link-icon-option__visual {
    border-color: rgba(88, 174, 242, 0.75);
    box-shadow: 0 0 0 2px rgba(88, 174, 242, 0.3);
    transform: translateY(-1px);
}

@media (min-width: 640px) {
    .link-icon-option-grid--compact {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .guided-link-platform-grid,
    .guided-link-platform-grid--all {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guided-link-platform-grid-shell {
        max-height: 18.25rem;
    }

    .guided-link-icon-shell .link-icon-option-grid--compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .link-icon-option-grid--compact {
        grid-template-columns: repeat(10, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .guided-link-modal-card {
        width: min(100%, 100vw - 1rem);
        max-height: min(94vh, 100%);
        padding: 1rem;
        border-radius: 1.6rem;
    }

    .guided-link-modal__title {
        font-size: 1.18rem;
    }

    .guided-link-modal__copy {
        font-size: 0.84rem;
        line-height: 1.55;
    }

    .guided-link-progress__rail {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .guided-link-progress__line {
        display: none;
    }

    .guided-link-progress__node {
        flex: 1 1 calc(50% - 0.25rem);
    }

    .guided-link-progress__text {
        font-size: 0.68rem;
    }

    .dashboard-links-page {
        gap: 1rem;
    }

    .dashboard-links-page .dashboard-links-hero,
    .dashboard-links-page .dashboard-links-block,
    .dashboard-links-page .dashboard-groups-block {
        padding: 1rem;
    }

    .dashboard-links-page .dashboard-links-block__body,
    .dashboard-links-page .dashboard-groups-block__body {
        margin-top: 1rem;
    }

    .dashboard-links-page .dashboard-links-subpanel {
        padding: 1rem;
    }

    .guided-link-modal__footer-actions .btn-secondary,
    .guided-link-modal__footer-actions .btn-primary,
    .guided-link-modal__footer > .btn-secondary {
        width: 100%;
    }

    .guided-link-modal__footer,
    .guided-link-modal__footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-guided-link-entry__button {
        width: 100%;
    }

    .dashboard-guided-link-promo {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-guided-link-promo__action {
        width: 100%;
    }

    .dashboard-standard-form-toggle__summary {
        width: 100%;
        justify-content: space-between;
    }

    .guided-link-platform-grid,
    .guided-link-visibility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guided-link-summary-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .guided-link-summary-row__action {
        margin-left: 2.75rem;
    }

    .group-actions-modal__share-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .group-actions-modal__share-icon {
        display: none;
    }

    .group-actions-modal__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .group-actions-modal__footer .btn-danger,
    .group-actions-modal__footer .btn-secondary,
    .group-actions-modal__actions .btn-secondary,
    .group-actions-modal__actions form > button {
        width: 100%;
    }

    .dashboard-links-page .dashboard-links-section-toggle__chevron {
        height: 2.75rem;
        width: 2.75rem;
    }

    .dashboard-links-page .dashboard-section-counter {
        min-width: 1.95rem;
        height: 1.95rem;
        padding-inline: 0.55rem;
        font-size: 0.76rem;
    }

    .dashboard-links-page .dashboard-saved-links-grid,
    .dashboard-links-page .dashboard-saved-groups-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-links-page .link-icon-option-shell {
        max-height: 18.5rem;
    }
}

@media (min-width: 1024px) {
    .dashboard-links-page .dashboard-links-fields-row--identity,
    .dashboard-links-page .dashboard-links-fields-row--config {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }

    .dashboard-links-page .dashboard-links-fields-row--config .dashboard-links-fields-row__item--visibility .link-scope-note {
        min-height: calc(100% - 2.75rem);
    }

    .dashboard-links-page .dashboard-links-fields-row--config {
        grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    }

    .dashboard-links-page .dashboard-saved-links-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-links-page .dashboard-saved-groups-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1440px) {
    .dashboard-links-page .dashboard-links-block,
    .dashboard-links-page .dashboard-groups-block {
        padding: 1.6rem;
    }

    .dashboard-links-page .dashboard-saved-links-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-links-page .dashboard-saved-groups-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .dashboard-links-page .dashboard-saved-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-links-page .dashboard-saved-groups-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -10px 30px rgba(16, 24, 40, 0.03);
    backdrop-filter: blur(12px);
}

.turnstile-shell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.turnstile-widget {
    min-height: 65px;
}

.turnstile-widget > div,
.turnstile-widget iframe {
    max-width: 100%;
}

.turnstile-fallback-note {
    border: 1px solid rgba(244, 114, 182, 0.12);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 1.2rem;
    padding: 0.85rem 1rem;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--brand-fog);
}

.modal-card {
    max-height: calc(100dvh - 3rem);
    overflow: hidden;
}

.share-modal-card {
    max-height: calc(100dvh - 3rem);
    padding: 1.3rem;
    overflow-y: hidden;
}

.link-config-modal {
    width: min(100%, 52rem);
    max-height: calc(100dvh - 3rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.testing-user-link-modal {
    width: min(100%, 48rem);
    max-height: min(88vh, 54rem);
    padding: 1.2rem 1.25rem 1.1rem;
}

.testing-user-link-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.2rem;
    margin-right: -0.2rem;
}

.testing-user-link-modal__panel {
    padding: 1rem;
}

.testing-user-link-modal__form {
    gap: 1rem;
}

.testing-user-link-modal__form > .grid {
    gap: 1rem;
}

.testing-user-link-modal__body .surface-soft,
.testing-user-link-modal__body .link-icon-builder {
    border-radius: 1.2rem;
    padding: 0.95rem;
}

.testing-user-link-modal__footer {
    gap: 0.85rem;
    padding-top: 1rem;
}

.testing-user-link-modal__footer .inline-actions {
    justify-content: flex-end;
}

.avatar-crop-modal {
    width: min(100%, 50rem);
    max-height: calc(100dvh - 3rem);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.2rem 1.25rem;
}

.delete-account-modal {
    width: min(100%, 34rem);
}

.analytics-detail-modal {
    width: min(100%, 64rem);
    max-height: min(92vh, calc(100vh - 2rem));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.analytics-detail-modal__header {
    flex: 0 0 auto;
}

.analytics-detail-modal__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.15rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.analytics-detail-modal__scroll::-webkit-scrollbar {
    display: none;
}

.analytics-top-link-row {
    border: 1px solid transparent;
}

.analytics-top-link-row__rank {
    background: rgba(226, 232, 240, 0.92);
    color: rgba(100, 116, 139, 0.96);
}

.analytics-top-link-row__clicks {
    color: rgba(100, 116, 139, 0.96);
}

button.analytics-top-link-row:hover,
button.analytics-top-link-row:focus-visible {
    background: rgba(248, 250, 252, 0.9);
    border-color: rgba(203, 213, 225, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    outline: none;
}

button.analytics-top-link-row:hover .analytics-top-link-row__rank,
button.analytics-top-link-row:focus-visible .analytics-top-link-row__rank {
    background: rgba(109, 40, 217, 0.14);
    color: rgba(109, 40, 217, 0.96);
}

button.analytics-top-link-row:hover .analytics-top-link-row__clicks,
button.analytics-top-link-row:focus-visible .analytics-top-link-row__clicks {
    color: rgba(109, 40, 217, 0.96);
}

.avatar-modal-close {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.9);
    color: var(--brand-fog);
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.avatar-modal-close:hover {
    border-color: rgba(88, 174, 242, 0.18);
    background: rgba(255, 255, 255, 0.98);
    color: var(--brand-ink);
}

@media (max-width: 1023.98px) {
    .modal-overlay {
        padding: 0.9rem;
    }

    [data-avatar-modal="true"].modal-overlay {
        align-items: flex-start;
        overflow-y: auto;
    }

    .modal-card {
        width: min(100%, calc(100vw - 1.1rem));
        max-height: min(94vh, calc(100vh - 1rem));
        padding: 1.15rem;
        border-radius: 1.5rem;
    }

    .guided-link-modal-card,
    .link-config-modal,
    .group-actions-modal,
    .share-modal-card,
    .avatar-crop-modal,
    .delete-account-modal {
        width: min(100%, calc(100vw - 1.1rem));
        max-width: none;
    }

    .share-modal-card {
        overflow: hidden;
    }

    .testing-user-link-modal {
        max-height: calc(100dvh - 1.8rem);
        padding: 1rem;
    }

    .testing-user-link-modal__panel {
        padding: 0.95rem;
    }

    .avatar-crop-modal {
        max-height: calc(100dvh - 1.8rem);
        margin-block: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .avatar-crop-layout {
        gap: 1rem;
    }

    .guided-link-modal__footer {
        flex-wrap: wrap;
    }

    .guided-link-modal__footer > .btn-secondary {
        flex: 1 1 100%;
    }

    .guided-link-modal__footer-actions {
        width: 100%;
    }

    .guided-link-modal__footer-actions .btn-secondary,
    .guided-link-modal__footer-actions .btn-primary {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 0;
    }

    .link-config-modal__actions,
    .group-actions-modal__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .link-config-modal__actions,
    .group-actions-modal__actions {
        width: 100%;
    }

    .link-config-modal__actions .btn-primary,
    .link-config-modal__actions .btn-secondary,
    .link-config-modal__actions .btn-danger,
    .link-config-modal__actions form > button,
    .group-actions-modal__footer .btn-danger,
    .group-actions-modal__footer .btn-secondary,
    .group-actions-modal__actions .btn-secondary,
    .group-actions-modal__actions form > button {
        width: 100%;
    }

    .link-config-modal__actions form,
    .group-actions-modal__footer form {
        width: 100%;
    }

    .group-actions-modal__share-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .group-actions-modal__share-icon {
        display: none;
    }

    .avatar-modal-close {
        height: 2.5rem;
        width: 2.5rem;
        flex: 0 0 auto;
    }

    .dashboard-theme-modal__footer {
        margin-left: -1.15rem;
        margin-right: -1.15rem;
        padding-left: 1.15rem;
        padding-right: 1.15rem;
        border-radius: 0 0 1.5rem 1.5rem;
    }

    .analytics-detail-modal {
        width: min(100%, calc(100vw - 1.1rem));
        max-height: min(94vh, calc(100vh - 1rem));
    }

    .analytics-detail-modal__scroll {
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .modal-overlay {
        padding: 0.65rem;
    }

    [data-avatar-modal="true"].modal-overlay {
        align-items: flex-start;
        overflow-y: auto;
    }

    .modal-card {
        width: min(100%, calc(100vw - 0.75rem));
        max-height: min(96vh, calc(100vh - 0.75rem));
        padding: 1rem;
        border-radius: 1.35rem;
    }

    .guided-link-modal-card,
    .link-config-modal,
    .group-actions-modal,
    .share-modal-card,
    .avatar-crop-modal,
    .delete-account-modal {
        width: min(100%, calc(100vw - 0.75rem));
    }

    .guided-link-modal__footer-actions .btn-secondary,
    .guided-link-modal__footer-actions .btn-primary {
        width: 100%;
        flex-basis: 100%;
    }

    .testing-user-link-modal {
        width: min(100%, calc(100vw - 0.75rem));
        max-height: calc(100dvh - 1.3rem);
    }

    .testing-user-link-modal__panel {
        padding: 0.9rem;
    }

    .avatar-crop-modal {
        max-height: calc(100dvh - 1.3rem);
        overflow-y: auto;
    }

    .avatar-crop-preview-panel {
        display: none;
    }

    .avatar-crop-sidebar {
        width: 100%;
    }

    .avatar-crop-stage {
        max-width: 19.75rem;
    }

    .avatar-crop-actions {
        margin-top: 1rem;
    }

    .share-channel-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .share-channel-tile {
        min-height: 4.85rem;
    }

    .group-actions-modal {
        max-height: calc(100dvh - 1rem);
    }
}

.avatar-crop-stage {
    position: relative;
    overflow: hidden;
    max-width: 24rem;
    margin-inline: auto;
    border-radius: 1.6rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.95), rgba(248, 250, 252, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.avatar-crop-stage canvas,
.avatar-crop-preview canvas {
    display: block;
    width: 100%;
    height: auto;
}

.avatar-crop-stage canvas {
    touch-action: none;
    cursor: grab;
}

.avatar-crop-stage canvas:active {
    cursor: grabbing;
}

.avatar-crop-preview {
    overflow: hidden;
    border-radius: 1.3rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.avatar-crop-layout {
    align-items: start;
    gap: 1.15rem;
}

.avatar-crop-main {
    min-width: 0;
}

.avatar-crop-sidebar {
    width: 11rem;
}

.avatar-crop-preview-panel {
    padding: 0.9rem;
}

.avatar-crop-hint-card {
    padding: 0.9rem 1rem;
    font-size: 0.84rem;
    line-height: 1.6;
}

.avatar-crop-actions {
    margin-top: 1.15rem;
}

@media (min-width: 1024px) {
    .avatar-crop-layout {
        grid-template-columns: minmax(0, 1fr) 11rem;
    }
}

html.dashboard-theme-dark body.dashboard-page .avatar-crop-stage {
    border-color: rgba(125, 150, 188, 0.18);
    background: linear-gradient(180deg, rgba(13, 22, 38, 0.98), rgba(16, 26, 42, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.dashboard-theme-dark body.dashboard-page .avatar-crop-preview-panel {
    border: 1px solid rgba(125, 150, 188, 0.16);
    background: rgba(17, 27, 43, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

html.dashboard-theme-dark body.dashboard-page .avatar-crop-preview {
    border-color: rgba(125, 150, 188, 0.18);
    background: rgba(10, 18, 31, 0.98);
}

html.dashboard-theme-dark body.dashboard-page .avatar-crop-hint-card {
    border-color: rgba(125, 150, 188, 0.16) !important;
    background: rgba(17, 27, 43, 0.9) !important;
    color: rgba(191, 203, 220, 0.82) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.insight-content {
    color: var(--brand-ink);
    font-size: 1rem;
    line-height: 1.9;
}

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

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

.insight-content p,
.insight-content ul,
.insight-content ol,
.insight-content blockquote,
.insight-content table,
.insight-content hr {
    margin: 0 0 1.4rem;
}

.insight-content h1,
.insight-content h2,
.insight-content h3,
.insight-content h4 {
    margin: 2.1rem 0 0.95rem;
    color: var(--brand-ink);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.16;
}

.insight-content h1 {
    font-size: 2rem;
}

.insight-content h2 {
    font-size: 1.7rem;
}

.insight-content h3 {
    font-size: 1.35rem;
}

.insight-content h4 {
    font-size: 1.1rem;
}

.insight-content a {
    color: var(--brand-cyan-600);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.16em;
}

.insight-content a:hover,
.insight-content a:focus-visible {
    color: var(--brand-violet-600);
}

.insight-content ul,
.insight-content ol {
    padding-left: 1.35rem;
    list-style-position: outside;
}

.insight-content ul {
    list-style-type: disc;
}

.insight-content ul ul {
    list-style-type: circle;
}

.insight-content ol {
    list-style-type: decimal;
}

.insight-content ol ol {
    list-style-type: lower-alpha;
}

.insight-content li::marker {
    color: var(--brand-cyan-600);
    font-weight: 700;
}

.insight-content li + li {
    margin-top: 0.45rem;
}

.insight-content blockquote {
    border-left: 3px solid rgba(88, 174, 242, 0.42);
    padding: 0.35rem 0 0.35rem 1rem;
    color: #475467;
}

.insight-content hr {
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.insight-content::after,
.insight-editor-content::after {
    content: '';
    display: block;
    clear: both;
}

.insight-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6rem auto;
    border-radius: 1.35rem;
}

.insight-content img[data-align="left"] {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.insight-content img[data-align="center"] {
    margin-left: auto !important;
    margin-right: auto !important;
}

.insight-content img[data-align="right"] {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.insight-content img[data-wrap="wrap"][data-align="left"] {
    float: left;
    margin-top: 0.35rem !important;
    margin-right: 1.5rem !important;
    margin-bottom: 1rem !important;
    margin-left: 0 !important;
}

.insight-content img[data-wrap="wrap"][data-align="right"] {
    float: right;
    margin-top: 0.35rem !important;
    margin-left: 1.5rem !important;
    margin-bottom: 1rem !important;
    margin-right: 0 !important;
}

.insight-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.insight-content th,
.insight-content td {
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    vertical-align: top;
}

.insight-content th {
    background: rgba(248, 250, 252, 0.9);
    font-weight: 700;
}

.insight-editor-shell {
    overflow: visible;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.55rem;
    background: rgba(255, 255, 255, 0.94);
}

.insight-editor-fallback {
    min-height: 18rem;
    resize: vertical;
}

.insight-editor-toolbar {
    position: sticky;
    top: calc(var(--site-navbar-offset, 5.25rem) + 0.6rem);
    z-index: 95;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0.9rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    border-top-left-radius: 1.55rem;
    border-top-right-radius: 1.55rem;
    background: rgba(248, 250, 252, 0.94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.insight-editor-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    padding-right: 0.7rem;
    margin-right: 0.2rem;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.insight-editor-group:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
}

.insight-editor-button,
.insight-editor-select {
    min-height: 2.55rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.95rem;
    background: #fff;
    color: #475467;
    font-size: 0.94rem;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.insight-editor-button {
    min-width: 2.55rem;
    padding: 0 0.78rem;
}

.insight-editor-image-align-icon {
    position: relative;
    display: inline-block;
    width: 1.25rem;
    height: 1rem;
}

.insight-editor-image-align-icon::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0.15rem;
    height: 0.12rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.28;
    box-shadow: 0 0.34rem 0 currentColor, 0 0.68rem 0 currentColor;
}

.insight-editor-image-align-icon > span {
    position: absolute;
    top: 0.08rem;
    z-index: 1;
    width: 0.54rem;
    height: 0.54rem;
    border-radius: 0.18rem;
    border: 1.5px solid currentColor;
    background: #fff;
    box-shadow: 0 0 0 0.12rem #fff;
}

.insight-editor-image-align-icon > span::after {
    content: '';
    position: absolute;
    right: 0.09rem;
    bottom: 0.09rem;
    width: 0.16rem;
    height: 0.16rem;
    border-radius: 999px;
    background: currentColor;
}

.insight-editor-image-align-icon--left > span {
    left: 0;
}

.insight-editor-image-align-icon--center > span {
    left: 50%;
    transform: translateX(-50%);
}

.insight-editor-image-align-icon--right > span {
    right: 0;
}

.insight-editor-button:hover,
.insight-editor-button:focus-visible,
.insight-editor-select:hover,
.insight-editor-select:focus-visible {
    border-color: rgba(88, 174, 242, 0.36);
    color: var(--brand-cyan-600);
    outline: none;
}

.insight-editor-button.is-active {
    border-color: rgba(88, 174, 242, 0.18);
    background: rgba(242, 251, 255, 0.95);
    color: var(--brand-cyan-600);
}

.insight-editor-select {
    padding: 0 0.85rem;
}

.insight-editor-group-colors {
    gap: 0.55rem;
}

.insight-editor-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(242, 251, 255, 0.7);
}

.insight-editor-table-toolbar-label {
    margin-right: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-fog);
}

.insight-editor-color-field {
    display: inline-flex;
    align-items: center;
}

.insight-editor-color-field input {
    width: 2.55rem;
    height: 2.55rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.95rem;
    background: #fff;
    padding: 0.35rem;
    cursor: pointer;
}

.insight-editor-surface {
    padding: 1.1rem 1.1rem 1.2rem;
}

.insight-editor-content {
    min-height: 26rem;
    outline: none;
    color: var(--brand-ink);
    line-height: 1.8;
}

.insight-editor-content p,
.insight-editor-content ul,
.insight-editor-content ol,
.insight-editor-content blockquote,
.insight-editor-content table,
.insight-editor-content hr {
    margin: 0 0 1.15rem;
}

.insight-editor-content ul,
.insight-editor-content ol {
    padding-left: 1.35rem;
    list-style-position: outside;
}

.insight-editor-content ul {
    list-style-type: disc;
}

.insight-editor-content ol {
    list-style-type: decimal;
}

.insight-editor-content li + li {
    margin-top: 0.45rem;
}

.insight-editor-content blockquote {
    border-left: 3px solid rgba(88, 174, 242, 0.42);
    padding: 0.35rem 0 0.35rem 1rem;
    color: #475467;
}

.insight-editor-content table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.insight-editor-content th,
.insight-editor-content td {
    position: relative;
    min-width: 6rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    vertical-align: top;
    background: rgba(255, 255, 255, 0.86);
}

.insight-editor-content th {
    background: rgba(242, 251, 255, 0.95);
    font-weight: 700;
}

.insight-editor-content .selectedCell::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(88, 174, 242, 0.12);
    box-shadow: inset 0 0 0 2px rgba(88, 174, 242, 0.45);
}

.insight-editor-content .column-resize-handle {
    position: absolute;
    top: 0;
    right: -2px;
    bottom: 0;
    width: 4px;
    background: rgba(88, 174, 242, 0.38);
    pointer-events: none;
}

.insight-editor-content h1,
.insight-editor-content h2,
.insight-editor-content h3,
.insight-editor-content h4 {
    margin: 1.6rem 0 0.8rem;
    color: var(--brand-ink);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.16;
}

.insight-editor-content h1 {
    font-size: 2rem;
}

.insight-editor-content h2 {
    font-size: 1.7rem;
}

.insight-editor-content h3 {
    font-size: 1.35rem;
}

.insight-editor-content h4 {
    font-size: 1.1rem;
}

.insight-editor-content > *:first-child {
    margin-top: 0;
}

.insight-editor-content a {
    color: var(--brand-cyan-600);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.16em;
    background: rgba(223, 245, 255, 0.72);
    border-radius: 0.35rem;
    box-shadow: inset 0 -1px 0 rgba(88, 174, 242, 0.18);
    padding: 0 0.14rem;
}

.insight-editor-content a:hover,
.insight-editor-content a:focus-visible {
    color: var(--brand-violet-600);
    background: rgba(239, 231, 255, 0.7);
}

.insight-editor-content img {
    display: block;
    width: 100%;
    height: auto;
    margin: 1.35rem auto;
    border-radius: 1.2rem;
}

.insight-editor-image-node {
    width: 100%;
    display: flex;
    margin: 1.35rem 0;
}

.insight-editor-image-node[data-wrap="wrap"][data-align="left"] {
    float: left;
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0.35rem 1.35rem 1rem 0;
}

.insight-editor-image-node[data-wrap="wrap"][data-align="right"] {
    float: right;
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0.35rem 0 1rem 1.35rem;
}

.insight-editor-image-wrapper {
    max-width: 100%;
}

.insight-editor-image-node img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 1.2rem;
    transition: box-shadow 160ms ease, border-color 160ms ease;
}

.insight-editor-image-node.ProseMirror-selectednode img,
.insight-editor-image-node[data-resize-state="true"] img {
    box-shadow: 0 0 0 3px rgba(88, 174, 242, 0.9);
}

.insight-editor-image-handle {
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 9999px;
    background: #fff;
    border: 2px solid var(--brand-cyan-600);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.18);
    transform: translate(-50%, -50%);
}

.insight-editor-image-handle[data-resize-handle="top-right"],
.insight-editor-image-handle[data-resize-handle="bottom-right"] {
    transform: translate(50%, -50%);
}

.insight-editor-image-handle[data-resize-handle="bottom-left"] {
    transform: translate(-50%, 50%);
}

@media (max-width: 767.98px) {
    .insight-content img[data-wrap="wrap"][data-align="left"],
    .insight-content img[data-wrap="wrap"][data-align="right"] {
        float: none;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .insight-editor-image-node[data-wrap="wrap"][data-align="left"],
    .insight-editor-image-node[data-wrap="wrap"][data-align="right"] {
        float: none;
        display: flex;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

.insight-editor-image-handle[data-resize-handle="bottom-right"] {
    transform: translate(50%, 50%);
}

@media (max-width: 639.98px) {
    .site-notification-panel {
        width: min(22rem, calc(100vw - 1rem));
    }

    .site-notification-toasts {
        right: 0.75rem;
        bottom: 0.75rem;
        width: calc(100vw - 1.5rem);
    }

    .modal-overlay {
        padding: 0.85rem;
    }

    .modal-card {
        padding: 1.1rem;
        border-radius: 1.6rem;
    }

    .link-summary-grid {
        grid-template-columns: 1fr;
    }

    .link-summary-card {
        padding: 0.82rem;
    }

    .saved-links-pagination {
        justify-content: center;
    }

    .cookie-banner [data-cookie-accept="true"],
    .cookie-banner [data-cookie-dismiss="true"] {
        width: 100%;
        justify-content: center;
    }

    .link-config-modal .form-checkbox-wrap,
    .link-config-modal .form-input,
    .delete-account-modal .form-input,
    .avatar-crop-modal .form-input {
        min-height: 3.15rem;
    }

    .link-config-modal .btn-primary,
    .link-config-modal .btn-secondary,
    .link-config-modal .btn-danger,
    .delete-account-modal .btn-primary,
    .delete-account-modal .btn-secondary,
    .delete-account-modal .btn-danger {
        min-height: 3rem;
    }

    .turnstile-widget {
        width: 100%;
    }

    .insight-editor-toolbar {
        gap: 0.55rem;
        padding: 0.8rem;
    }

    .insight-editor-group {
        padding-right: 0;
        margin-right: 0;
        border-right: 0;
    }

    .insight-editor-content {
        min-height: 20rem;
    }
}

.dashboard-themes-page {
    overflow: hidden;
}

.dashboard-appearance-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.38rem;
    border-radius: 9999px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(248, 250, 252, 0.8);
}

.dashboard-appearance-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.7rem 1.15rem;
    border-radius: 9999px;
    color: var(--brand-fog);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.dashboard-appearance-tab:hover,
.dashboard-appearance-tab:focus-visible {
    color: var(--brand-ink);
    outline: none;
}

.dashboard-appearance-tab.is-active {
    border: 1px solid rgba(88, 174, 242, 0.18);
    background: linear-gradient(135deg, rgba(242, 251, 255, 0.98), rgba(247, 243, 255, 0.96));
    color: var(--brand-ink);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.dashboard-appearance-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
}

.dashboard-appearance-mode-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-appearance-mode-card {
    position: relative;
    display: flex;
    gap: 1rem;
    min-height: 100%;
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.88);
    padding: 1.15rem;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-appearance-mode-card:hover,
.dashboard-appearance-mode-card:focus-within {
    border-color: rgba(88, 174, 242, 0.22);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.08);
    transform: translateY(-1px);
}

.dashboard-appearance-mode-card.is-current {
    border-width: 1.5px;
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.dashboard-appearance-mode-card.is-current[data-dashboard-mode-key="light"] {
    border-color: rgba(88, 174, 242, 0.34);
    background: linear-gradient(180deg, rgba(242, 251, 255, 0.98), rgba(255, 255, 255, 0.95));
}

.dashboard-appearance-mode-card.is-current[data-dashboard-mode-key="dark"] {
    border-color: rgba(99, 102, 241, 0.36);
    background: linear-gradient(180deg, rgba(240, 244, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.dashboard-appearance-mode-card.is-current[data-dashboard-mode-key="auto"] {
    border-color: rgba(124, 77, 235, 0.3);
    background: linear-gradient(180deg, rgba(247, 243, 255, 0.98), rgba(255, 255, 255, 0.95));
}

.dashboard-appearance-mode-card__icon {
    display: inline-flex;
    width: 2.9rem;
    height: 2.9rem;
    flex: 0 0 2.9rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(88, 174, 242, 0.14), rgba(139, 92, 246, 0.14));
    color: var(--brand-cyan-600);
    font-size: 1rem;
}

.dashboard-appearance-mode-card__body {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.dashboard-appearance-mode-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.dashboard-appearance-mode-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.dashboard-appearance-mode-card__copy {
    color: var(--brand-fog);
    font-size: 0.88rem;
    line-height: 1.65;
}

.dashboard-appearance-help {
    border: 1px solid rgba(226, 232, 240, 0.88);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-appearance-tabs {
    border-color: rgba(125, 150, 188, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-appearance-tab {
    color: var(--dashboard-muted);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-appearance-tab.is-active {
    border: 1px solid rgba(96, 165, 250, 0.24);
    background: linear-gradient(135deg, rgba(22, 37, 60, 0.98), rgba(35, 41, 78, 0.96));
    color: var(--dashboard-text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-appearance-mode-card,
html.dashboard-theme-dark body.dashboard-page .dashboard-appearance-help {
    border-color: var(--dashboard-soft-border);
    background: rgba(255, 255, 255, 0.03);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-appearance-mode-card:hover,
html.dashboard-theme-dark body.dashboard-page .dashboard-appearance-mode-card:focus-within {
    border-color: rgba(96, 165, 250, 0.22);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 30px rgba(2, 8, 20, 0.18);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-appearance-mode-card.is-current {
    box-shadow: 0 18px 36px rgba(2, 8, 20, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-appearance-mode-card.is-current[data-dashboard-mode-key="light"] {
    border-color: rgba(96, 165, 250, 0.38);
    background: linear-gradient(180deg, rgba(18, 35, 58, 0.98), rgba(17, 27, 43, 0.95));
}

html.dashboard-theme-dark body.dashboard-page .dashboard-appearance-mode-card.is-current[data-dashboard-mode-key="dark"] {
    border-color: rgba(129, 140, 248, 0.4);
    background: linear-gradient(180deg, rgba(21, 28, 52, 0.98), rgba(16, 23, 42, 0.95));
}

html.dashboard-theme-dark body.dashboard-page .dashboard-appearance-mode-card.is-current[data-dashboard-mode-key="auto"] {
    border-color: rgba(167, 139, 250, 0.38);
    background: linear-gradient(180deg, rgba(28, 27, 57, 0.98), rgba(17, 27, 43, 0.95));
}

.dashboard-themes-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 1.75rem;
}

.dashboard-themes-hero__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-violet-600);
}

.dashboard-themes-hero__title {
    margin: 0.55rem 0 0;
    font-size: clamp(1.85rem, 2vw, 2.45rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--brand-ink);
}

.dashboard-themes-hero__copy {
    max-width: 46rem;
    margin: 0.85rem 0 0;
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--brand-fog);
}

.dashboard-themes-hero__status {
    display: grid;
    gap: 0.85rem;
    min-width: min(100%, 18rem);
}

.dashboard-themes-current-chip,
.dashboard-themes-plan-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.dashboard-themes-current-chip__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-fog);
}

.dashboard-themes-current-chip__value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-ink);
}

.dashboard-themes-plan-badge {
    justify-content: flex-start;
    color: var(--brand-fog);
    font-size: 0.92rem;
    font-weight: 700;
}

.dashboard-themes-plan-badge i {
    color: var(--brand-cyan-600);
}

.dashboard-themes-plan-badge.is-premium {
    border-color: rgba(245, 158, 11, 0.28);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.92));
    color: #92400e;
}

.dashboard-themes-plan-badge.is-premium i {
    color: #d97706;
}

.dashboard-themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}

.dashboard-themes-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(88, 174, 242, 0.16);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(242, 251, 255, 0.95), rgba(247, 243, 255, 0.9));
}

.dashboard-themes-alert__icon {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.82);
    color: var(--brand-violet-600);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.dashboard-themes-alert__title {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--brand-ink);
}

.dashboard-themes-alert__copy {
    margin: 0.24rem 0 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--brand-fog);
}

.dashboard-theme-tile {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.95rem;
    min-height: 21.5rem;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.8);
    color: inherit;
    text-align: left;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
    cursor: pointer;
}

.dashboard-theme-tile:hover,
.dashboard-theme-tile:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(88, 174, 242, 0.24);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08), 0 8px 18px rgba(88, 174, 242, 0.08);
    outline: none;
}

.dashboard-theme-tile.is-current {
    border-color: rgba(88, 174, 242, 0.38);
    background: linear-gradient(180deg, rgba(242, 251, 255, 0.98), rgba(255, 255, 255, 0.96));
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08), 0 10px 22px rgba(88, 174, 242, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.76);
}

.dashboard-theme-tile.is-previewing {
    border-color: rgba(124, 77, 235, 0.24);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08), 0 10px 22px rgba(124, 77, 235, 0.12);
}

.dashboard-theme-tile.is-premium {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 252, 247, 0.92)),
        rgba(255, 255, 255, 0.9);
}

.dashboard-theme-tile.is-premium.is-locked {
    border-color: rgba(124, 77, 235, 0.2);
}

.dashboard-theme-tile__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-theme-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.8rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(248, 250, 252, 0.9);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #475467;
}

.dashboard-theme-pill.is-premium {
    border-color: rgba(217, 119, 6, 0.18);
    background: linear-gradient(135deg, rgba(255, 250, 240, 0.95), rgba(251, 191, 36, 0.12));
    color: #9a5b00;
}

.dashboard-theme-pill.is-current {
    border-color: rgba(88, 174, 242, 0.2);
    background: rgba(242, 251, 255, 0.95);
    color: var(--brand-cyan-600);
}

.dashboard-theme-pill.is-locked {
    border-color: rgba(124, 77, 235, 0.16);
    background: rgba(247, 243, 255, 0.95);
    color: var(--brand-violet-600);
}

/* ── White label toggle ─────────────────────────────────────────────────── */

.wl-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.wl-toggle__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.wl-toggle__track {
    position: relative;
    display: inline-block;
    width: 2.75rem;
    height: 1.5rem;
    background: #e2e8f0;
    border-radius: 9999px;
    transition: background 180ms ease;
    flex-shrink: 0;
}

.wl-toggle__track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 180ms ease;
}

.wl-toggle__input:checked + .wl-toggle__track {
    background: #58aef2;
}

.wl-toggle__input:checked + .wl-toggle__track::after {
    transform: translateX(1.25rem);
}

.wl-toggle__input:focus-visible + .wl-toggle__track {
    outline: 2px solid #58aef2;
    outline-offset: 2px;
}

/* ── /White label toggle ─────────────────────────────────────────────────── */

.dashboard-theme-tile__thumb {
    display: block;
    min-height: 0;
    aspect-ratio: 0.9;
}

.dashboard-theme-tile__thumb .profile-theme-shell {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0.6rem;
    border-radius: 1.35rem;
}

.dashboard-theme-tile__thumb .profile-theme-card {
    backdrop-filter: none;
}

.dashboard-theme-tile__mock-card {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    gap: 0.95rem;
    justify-content: flex-start;
    padding: 0.9rem;
    border-radius: 1rem;
    overflow: hidden;
}

.dashboard-theme-tile__mock-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-theme-tile__mock-avatar {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 2.6rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.95rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.dashboard-theme-tile__mock-meta {
    display: grid;
    gap: 0.4rem;
    flex: 1 1 auto;
}

.dashboard-theme-tile__mock-title,
.dashboard-theme-tile__mock-subtitle,
.dashboard-theme-tile__mock-link {
    display: block;
    border-radius: 999px;
    background: rgba(var(--profile-accent-rgb, 148, 163, 184), 0.18);
}

.dashboard-theme-tile__mock-title {
    width: 70%;
    height: 0.75rem;
}

.dashboard-theme-tile__mock-subtitle {
    width: 48%;
    height: 0.55rem;
}

.dashboard-theme-tile__mock-links {
    display: grid;
    gap: 0.55rem;
    margin-top: auto;
}

.dashboard-theme-tile__mock-link {
    height: 1.85rem;
    border-radius: 0.9rem;
}

.dashboard-theme-tile__footer {
    display: grid;
    gap: 0.22rem;
    min-height: 3.25rem;
    align-content: start;
}

.dashboard-theme-tile.is-current .dashboard-theme-tile__footer {
    padding-top: 0.35rem;
    border-top: 1px solid rgba(88, 174, 242, 0.14);
}

.dashboard-theme-tile__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-ink);
}

.dashboard-theme-tile__hint {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--brand-fog);
}

.dashboard-theme-modal {
    width: min(100%, 76rem);
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    overflow: hidden;
    max-height: min(92vh, calc(100vh - 2rem));
}

.dashboard-theme-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-theme-modal__eyebrow {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-violet-600);
}

.dashboard-theme-modal__title {
    margin: 0.5rem 0 0;
    font-size: 1.9rem;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--brand-ink);
}

.dashboard-theme-modal__copy {
    margin: 0.75rem 0 0;
    max-width: 40rem;
    font-size: 0.96rem;
    line-height: 1.8;
    color: var(--brand-fog);
}

.dashboard-theme-modal__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 1fr);
    gap: 1.6rem;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.dashboard-theme-modal__preview,
.dashboard-theme-modal__controls {
    min-height: 0;
}

.dashboard-theme-modal__preview {
    display: flex;
    align-items: stretch;
}

.dashboard-theme-preview-shell {
    width: 100%;
    margin: 0;
    padding: 1rem;
    border-radius: 1.8rem;
    min-height: 100%;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 40px rgba(16, 24, 40, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.dashboard-theme-preview-stage {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100%;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.75rem;
}

.dashboard-theme-preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    min-height: 3.1rem;
    padding: 0.3rem 0.35rem 0;
}

.dashboard-theme-preview-brand {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: color-mix(in srgb, rgb(var(--profile-accent-rgb, 88, 174, 242)) 82%, white 18%);
}

.dashboard-theme-preview-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.dashboard-theme-preview-nav__pill,
.dashboard-theme-preview-nav__avatar {
    display: inline-flex;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.dashboard-theme-preview-nav__pill {
    width: 2.3rem;
    height: 1.7rem;
    border-radius: 999px;
}

.dashboard-theme-preview-nav__pill--wide {
    width: clamp(6.5rem, 18vw, 10rem);
}

.dashboard-theme-preview-nav__avatar {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
}

.dashboard-theme-preview-card-wrap {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding: clamp(0.35rem, 1vw, 0.7rem);
    overflow: hidden;
}

.dashboard-theme-preview-card {
    width: min(100%, 21rem);
    max-width: 21rem;
    padding: 0.85rem 0.8rem 0.9rem;
    border-radius: 1.4rem;
    overflow: hidden;
    backdrop-filter: none;
}

.dashboard-theme-preview-shell.is-theme-transitioning {
    transform: translateY(1px);
    filter: saturate(1.015);
}

.dashboard-theme-preview-shell.is-theme-transitioning::before {
    opacity: calc(var(--profile-texture-opacity, 0) * 0.88);
    transform: scale(1.01);
}

.dashboard-theme-preview-shell.is-theme-transitioning .dashboard-theme-preview-card {
    transform: translateY(2px) scale(0.992);
    opacity: 0.985;
}

.dashboard-theme-preview-card .profile-hero-avatar {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 0.9rem;
}

.dashboard-theme-preview-card .profile-links-grid {
    gap: 0.35rem;
    grid-template-columns: repeat(auto-fit, minmax(3.9rem, 3.9rem));
    max-width: 100%;
    width: auto;
}

.dashboard-theme-preview-card .profile-link-tile {
    min-height: 3.1rem;
    padding: 0.5rem 0.4rem;
}

.dashboard-theme-preview-link,
.dashboard-theme-preview-actions button {
    cursor: default;
    pointer-events: none;
}

.dashboard-theme-preview-actions {
    width: 100%;
}

.dashboard-theme-preview-actions .profile-share-button,
.dashboard-theme-preview-actions .profile-engagement-button {
    opacity: 1;
}

.dashboard-theme-modal__controls {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    gap: 1.25rem;
    overflow: hidden;
}

.dashboard-theme-modal__controls > div:nth-child(2) {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-theme-modal__meta {
    padding: 1rem 1.05rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.82);
}

.dashboard-theme-modal__meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-theme-modal__meta-label,
.dashboard-theme-modal__textures-title {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-fog);
}

.dashboard-theme-modal__helper {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--brand-fog);
}

.dashboard-theme-texture-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.dashboard-theme-texture-option {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.85);
    text-align: left;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dashboard-theme-texture-option:hover,
.dashboard-theme-texture-option:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(88, 174, 242, 0.24);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    outline: none;
}

.dashboard-theme-texture-option.is-current {
    border-color: rgba(88, 174, 242, 0.36);
    background: linear-gradient(135deg, rgba(242, 251, 255, 0.94), rgba(247, 243, 255, 0.92));
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.dashboard-theme-texture-option.is-premium {
    border-color: rgba(124, 77, 235, 0.14);
}

.dashboard-theme-texture-option.is-locked {
    background: rgba(250, 247, 255, 0.9);
}

.dashboard-theme-texture-option__swatch {
    position: relative;
    display: block;
    width: 3.5rem;
    height: 3.5rem;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background:
        radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.42), transparent 24%),
        var(--profile-theme-background, linear-gradient(160deg, #edf4ff 0%, #dce6fb 54%, #d5def6 100%));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 18px rgba(15, 23, 42, 0.08);
}

.dashboard-theme-texture-option__swatch::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background-image: var(--profile-texture-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: var(--profile-texture-swatch-filter, var(--profile-texture-filter, none));
}

.dashboard-theme-texture-option__swatch::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 28%),
        radial-gradient(circle at 50% 108%, rgba(255, 255, 255, 0.18), transparent 36%);
    pointer-events: none;
}

.dashboard-theme-texture-option__name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.dashboard-theme-texture-option__current {
    min-height: 1.55rem;
    padding-inline: 0.55rem;
    font-size: 0.62rem;
}

/* ── Swatch thumbnail opacities (higher than full-size for visibility) ─── */

.dashboard-theme-texture-option__swatch.tx-none::before     { opacity: 0; }
.dashboard-theme-texture-option__swatch.tx-waves::before    { opacity: 0.72; }
.dashboard-theme-texture-option__swatch.tx-curves::before   { opacity: 0.65; }
.dashboard-theme-texture-option__swatch.tx-dots::before     { opacity: 0.68; background-size: auto; }
.dashboard-theme-texture-option__swatch.tx-splatter::before { opacity: 0.62; }
.dashboard-theme-texture-option__swatch.tx-grain::before    { opacity: 0.60; }
.dashboard-theme-texture-option__swatch.tx-topography::before { opacity: 0.62; }
.dashboard-theme-texture-option__swatch.tx-mesh::before     { opacity: 0.68; }
.dashboard-theme-texture-option__swatch.tx-orbit::before    { opacity: 0.70; background-position: center center; }
.dashboard-theme-texture-option__swatch.tx-grid::before     { opacity: 0.65; background-size: auto; }
.dashboard-theme-texture-option__swatch.tx-lines::before    { opacity: 0.65; background-size: auto; }
.dashboard-theme-texture-option__swatch.tx-geometric::before{ opacity: 0.65; }
.dashboard-theme-texture-option__swatch.tx-radial::before   { opacity: 0.70; background-position: center center; }
.dashboard-theme-texture-option__swatch.tx-bokeh::before    { opacity: 0.68; }
.dashboard-theme-texture-option__swatch.tx-clouds::before   { opacity: 0.65; }

/* Stars swatch: force dark background so stars are visible */
.dashboard-theme-texture-option__swatch.tx-stars {
    background:
        radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.18), transparent 28%),
        var(--profile-theme-background, linear-gradient(160deg, #1c233a 0%, #131a2d 56%, #0a1020 100%));
}
.dashboard-theme-texture-option__swatch.tx-stars::before    { opacity: 0.58; }

.dashboard-theme-texture-option__copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.dashboard-theme-texture-option__name {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--brand-ink);
}

.dashboard-theme-texture-option__meta {
    font-size: 0.78rem;
    color: var(--brand-fog);
}

.dashboard-theme-modal__footer {
    flex: 0 0 auto;
    display: grid;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.dashboard-theme-modal__notice {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--brand-fog);
}

.dashboard-theme-modal__notice:empty {
    display: none;
}

.dashboard-theme-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.dashboard-theme-modal [data-dashboard-theme-activate="true"]:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .profile-theme-shell,
    .profile-theme-shell::before,
    .profile-theme-page,
    .profile-theme-page::before,
    .profile-theme-page::after,
    .profile-theme-card,
    .profile-theme-title,
    .profile-theme-badge,
    .profile-theme-card .profile-link-tile,
    .profile-theme-card .profile-growth-cta,
    .profile-theme-card .profile-engagement-button,
    .profile-theme-card .btn-secondary,
    .dashboard-theme-tile,
    .dashboard-theme-texture-option {
        transition: none !important;
    }

    .dashboard-theme-preview-shell.is-theme-transitioning,
    .dashboard-theme-preview-shell.is-theme-transitioning::before,
    .dashboard-theme-preview-shell.is-theme-transitioning .dashboard-theme-preview-card {
        transform: none;
        filter: none;
        opacity: 1;
    }
}

@media (max-width: 1279.98px) {
    .dashboard-theme-modal {
        height: min(94vh, calc(100vh - 1rem));
        max-height: min(94vh, calc(100vh - 1rem));
        padding-bottom: 0;
    }

    .dashboard-theme-modal__body {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
        padding-right: 0;
        gap: 0.75rem;
    }

    .dashboard-theme-modal__preview {
        flex: 0 0 52%;
        min-height: 0;
        overflow: hidden;
    }

    .dashboard-theme-modal__controls {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .dashboard-theme-modal__controls > div:first-child {
        flex: 0 0 auto;
    }

    .dashboard-theme-modal__controls > div:nth-child(2) {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .dashboard-theme-modal__meta {
        padding: 0.4rem 0.75rem;
    }

    .dashboard-theme-modal__meta-label,
    .dashboard-theme-modal__helper {
        display: none;
    }

    .dashboard-theme-modal__footer {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding: 0.6rem 1.5rem 0.75rem;
        border-radius: 0 0 1.75rem 1.75rem;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .dashboard-theme-modal__notice {
        display: none;
    }

    .dashboard-theme-modal__actions {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .dashboard-theme-modal__actions .btn-secondary,
    .dashboard-theme-modal__actions .btn-primary {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding: 0.55rem 0.75rem;
        font-size: 0.87rem;
    }

    .dashboard-theme-texture-grid {
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .dashboard-appearance-tabs {
        width: 100%;
    }

    .dashboard-appearance-tab {
        flex: 1 1 calc(50% - 0.3rem);
    }

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

    .dashboard-themes-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-theme-tile {
        padding: 0.9rem;
    }

    .dashboard-theme-modal__title {
        font-size: 1.55rem;
    }

    .dashboard-theme-modal {
        gap: 1rem;
    }

    .dashboard-theme-preview-card {
        padding: 1rem 0.9rem 1.1rem;
    }

    .dashboard-theme-preview-topbar {
        min-height: 2.6rem;
        padding-top: 0;
    }

    .dashboard-theme-preview-nav__pill {
        width: 1.95rem;
        height: 1.45rem;
    }

    .dashboard-theme-preview-nav__pill--wide {
        width: 5.2rem;
    }

    .dashboard-theme-modal__actions {
        flex-direction: row;
        align-items: center;
    }

    .dashboard-theme-modal__actions .btn-secondary,
    .dashboard-theme-modal__actions .btn-primary {
        width: auto;
    }

    .dashboard-theme-modal__footer {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 0 0 1.35rem 1.35rem;
    }
}

@media (max-width: 640px) {
    .dashboard-theme-modal__footer {
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    }
}

/* ── Preview card: miniature typography & spacing ────────────────────── */

.dashboard-theme-preview-card .profile-theme-eyebrow {
    font-size: 0.6rem;
    margin-top: 0.75rem;
}

.dashboard-theme-preview-card .profile-theme-title {
    font-size: 1.4rem;
    margin-top: 0.4rem;
}

.dashboard-theme-preview-card .profile-theme-handle {
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.dashboard-theme-preview-card .profile-rich-bio {
    font-size: 0.78rem;
    line-height: 1.55;
    margin-top: 0.6rem;
    max-width: 100%;
}

.dashboard-theme-preview-card .profile-link-icon {
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 1.9rem;
    font-size: 0.72rem;
    border-radius: 0.58rem;
}

.dashboard-theme-preview-card .profile-theme-link-title {
    font-size: 0.62rem;
    margin-top: 0.3rem;
    line-height: 1.3;
}

/* ── Cancel button: clear contrast, not disabled-looking ─────────────── */

.dashboard-theme-modal__actions .btn-secondary {
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.97);
    color: var(--brand-ink);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dashboard-theme-modal__actions .btn-secondary:hover {
    border-color: rgba(15, 23, 42, 0.24);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.09);
    transform: translateY(-1px);
}

/* ── Dark mode: glass panels + cancel button ─────────────────────────── */

html.dashboard-theme-dark body.dashboard-page .dashboard-theme-preview-shell {
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-theme-modal__meta,
html.dashboard-theme-dark body.dashboard-page .dashboard-theme-modal__footer {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

html.dashboard-theme-dark body.dashboard-page .dashboard-theme-modal__actions .btn-secondary {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(210, 225, 244, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.dashboard-theme-dark body.dashboard-page .dashboard-theme-modal__actions .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* -------------------------------------------------------
   DASHBOARD DARK MODE — TAILWIND UTILITY OVERRIDES
   Covers raw Tailwind classes used inline in view templates
   that are not covered by semantic dashboard tokens.
   ------------------------------------------------------- */

/* White / light grey backgrounds → dark surfaces */
html.dashboard-theme-dark body.dashboard-page .bg-white {
    background: var(--dashboard-surface-soft) !important;
}

html.dashboard-theme-dark body.dashboard-page .bg-slate-50 {
    background: rgba(255, 255, 255, 0.04) !important;
}

html.dashboard-theme-dark body.dashboard-page .bg-slate-100 {
    background: rgba(255, 255, 255, 0.07) !important;
}

html.dashboard-theme-dark body.dashboard-page .hover\:bg-slate-50:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

html.dashboard-theme-dark body.dashboard-page .hover\:bg-slate-100:hover {
    background: rgba(255, 255, 255, 0.09) !important;
}

/* Violet accent tints (top-link rank badge, click counts) */
html.dashboard-theme-dark body.dashboard-page .bg-violet-100 {
    background: rgba(109, 40, 217, 0.22) !important;
}

html.dashboard-theme-dark body.dashboard-page .text-violet-700 {
    color: rgba(167, 139, 250, 0.92) !important;
}

html.dashboard-theme-dark body.dashboard-page .text-violet-600 {
    color: rgba(167, 139, 250, 0.82) !important;
}

/* Trend indicator colours (keep vivid on dark) */
html.dashboard-theme-dark body.dashboard-page .text-emerald-600 {
    color: #34d399 !important;
}

html.dashboard-theme-dark body.dashboard-page .text-rose-500 {
    color: #fb7185 !important;
}

html.dashboard-theme-dark body.dashboard-page .analytics-premium-chip {
    border-color: rgba(245, 158, 11, 0.28) !important;
    background: rgba(120, 53, 15, 0.34) !important;
    color: #fbbf24 !important;
}

html.dashboard-theme-dark body.dashboard-page .analytics-premium-upsell {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.74)) !important;
}

html.dashboard-theme-dark body.dashboard-page .analytics-detail-modal-overlay {
    backdrop-filter: blur(12px) saturate(1.18);
    background: rgba(2, 6, 23, 0.72);
}

html.dashboard-theme-dark body.dashboard-page .analytics-detail-modal {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.96));
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow:
        0 48px 120px rgba(2, 6, 23, 0.55),
        0 20px 48px rgba(2, 6, 23, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.dashboard-theme-dark body.dashboard-page .analytics-detail-modal__summary,
html.dashboard-theme-dark body.dashboard-page .analytics-detail-modal__panel,
html.dashboard-theme-dark body.dashboard-page .analytics-detail-modal__item {
    border-color: rgba(148, 163, 184, 0.14) !important;
}

html.dashboard-theme-dark body.dashboard-page .analytics-detail-modal__summary {
    background: rgba(255, 255, 255, 0.04) !important;
}

html.dashboard-theme-dark body.dashboard-page .analytics-detail-modal__panel {
    background: rgba(15, 23, 42, 0.56) !important;
}

html.dashboard-theme-dark body.dashboard-page .analytics-detail-modal__item {
    background: rgba(255, 255, 255, 0.05) !important;
}

html.dashboard-theme-dark body.dashboard-page .analytics-detail-modal__count {
    background: rgba(30, 41, 59, 0.94) !important;
    color: rgba(125, 211, 252, 0.96) !important;
}

html.dashboard-theme-dark body.dashboard-page .analytics-top-link-row__rank,
html.dashboard-theme-dark body.dashboard-page .analytics-top-link-modal-entry__rank {
    background: rgba(30, 41, 59, 0.94) !important;
    color: rgba(148, 163, 184, 0.96) !important;
}

html.dashboard-theme-dark body.dashboard-page .analytics-top-link-row__clicks {
    color: rgba(148, 163, 184, 0.96) !important;
}

html.dashboard-theme-dark body.dashboard-page button.analytics-top-link-row:hover,
html.dashboard-theme-dark body.dashboard-page button.analytics-top-link-row:focus-visible {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(148, 163, 184, 0.12) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 12px 24px rgba(2, 6, 23, 0.2) !important;
}

html.dashboard-theme-dark body.dashboard-page button.analytics-top-link-row:hover .analytics-top-link-row__rank,
html.dashboard-theme-dark body.dashboard-page button.analytics-top-link-row:focus-visible .analytics-top-link-row__rank {
    background: rgba(109, 40, 217, 0.22) !important;
    color: rgba(196, 181, 253, 0.98) !important;
}

html.dashboard-theme-dark body.dashboard-page button.analytics-top-link-row:hover .analytics-top-link-row__clicks,
html.dashboard-theme-dark body.dashboard-page button.analytics-top-link-row:focus-visible .analytics-top-link-row__clicks {
    color: rgba(196, 181, 253, 0.98) !important;
}

html.dashboard-theme-dark body.dashboard-page .analytics-top-link-modal-entry__url,
html.dashboard-theme-dark body.dashboard-page .analytics-top-link-modal-entry__countries-copy {
    color: rgba(226, 232, 240, 0.92) !important;
}

html.dashboard-theme-dark body.dashboard-page .analytics-top-link-modal-entry__countries {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
}

/* ── Modal overlay: deeper blur for premium depth ────────────────────── */

[data-dashboard-themes-modal="true"].modal-overlay {
    backdrop-filter: blur(12px) saturate(1.2);
    background: rgba(15, 23, 42, 0.52);
}

/* ── Modal card: premium shadow and glass ring ───────────────────────── */

.dashboard-theme-modal.modal-card {
    box-shadow:
        0 48px 120px rgba(15, 23, 42, 0.32),
        0 20px 48px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.52);
}

/* ── Preview shell: softening overlay (above texture, below content) ─── */

.dashboard-theme-preview-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.11);
}

.dashboard-theme-preview-shell.theme-dark::after,
.dashboard-theme-preview-shell.theme-graphite::after,
.dashboard-theme-preview-shell.theme-ocean::after,
.dashboard-theme-preview-shell.theme-neon::after {
    background: rgba(255, 255, 255, 0.08);
}

/* ── Preview action row: compact size ────────────────────────────────── */

.dashboard-theme-preview-card .profile-engagement-button {
    font-size: 0.72rem;
    padding: 0.45rem 0.7rem;
    min-height: 0;
    gap: 0.35rem;
}

.dashboard-theme-preview-card .profile-engagement-button .profile-engagement-button__icon {
    font-size: 0.72rem;
}

.dashboard-theme-preview-card .profile-share-button {
    font-size: 0.72rem;
    padding: 0.45rem 0.85rem;
    min-height: 0;
}

/* ── Theme card colors: override surface-panel's dashboard background ── */

body.dashboard-page .dashboard-theme-preview-card.profile-theme-card,
body.dashboard-page .dashboard-theme-tile__thumb .profile-theme-card {
    background: var(--profile-card-bg, rgba(255, 255, 255, 0.92));
    border-color: var(--profile-card-border, rgba(255, 255, 255, 0.78));
}
