/* FCD Interface 1.1.0
 * Production mapping of the canonical FCD Complete UI Library v12.
 * Geometry, typography, surfaces, and responsive rhythm intentionally retain
 * the reference library's visual grammar.
 */

/* --------------------------------------------------------------------------
   Canonical tokens and document base
   -------------------------------------------------------------------------- */

.fcd-interface {
    --fci-bg: #03050a;
    --fci-bg-2: #050812;
    --fci-panel: #070a12;
    --fci-panel-2: #0b0f19;
    --fci-text: #edf1f8;
    --fci-muted: #aab2c1;
    --fci-muted-2: #80778d;
    --fci-plum: #8d45d8;
    --fci-violet: #b56dff;
    --fci-violet-2: #d4a7ff;
    --fci-blue: #248cff;
    --fci-blue-2: #6ab8ff;
    --fci-cyan: #7adfff;
    --fci-green: #62e3b3;
    --fci-yellow: #f2cf6f;
    --fci-red: #ff7890;
    --fci-border: rgba(130, 150, 185, 0.18);
    --fci-border-2: rgba(125, 102, 190, 0.28);
    --fci-radius: 16px;
    --fci-radius-2: 24px;
    --fci-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    min-height: 100vh;
    margin: 0;
    color: var(--fci-text);
    background:
        radial-gradient(circle at 74% 15%, rgba(61, 45, 112, 0.1), transparent 28rem),
        radial-gradient(circle at 18% 48%, rgba(25, 62, 115, 0.06), transparent 26rem),
        linear-gradient(180deg, #02040a 0%, #03060d 48%, #02040a 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    color-scheme: dark;
    isolation: isolate;
}

.fcd-interface::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.36;
    background:
        radial-gradient(circle at 8% 13%, rgba(255, 255, 255, 0.82) 0 0.7px, transparent 1.4px),
        radial-gradient(circle at 16% 32%, rgba(215, 180, 255, 0.66) 0 0.65px, transparent 1.35px),
        radial-gradient(circle at 27% 18%, rgba(255, 255, 255, 0.74) 0 0.75px, transparent 1.45px),
        radial-gradient(circle at 38% 41%, rgba(130, 205, 255, 0.58) 0 0.65px, transparent 1.35px),
        radial-gradient(circle at 49% 9%, rgba(255, 255, 255, 0.78) 0 0.8px, transparent 1.5px),
        radial-gradient(circle at 57% 36%, rgba(220, 185, 255, 0.58) 0 0.65px, transparent 1.35px),
        radial-gradient(circle at 66% 22%, rgba(255, 255, 255, 0.74) 0 0.7px, transparent 1.4px),
        radial-gradient(circle at 75% 48%, rgba(116, 196, 255, 0.58) 0 0.65px, transparent 1.35px),
        radial-gradient(circle at 83% 15%, rgba(255, 255, 255, 0.72) 0 0.8px, transparent 1.5px),
        radial-gradient(circle at 91% 33%, rgba(217, 178, 255, 0.56) 0 0.65px, transparent 1.35px),
        radial-gradient(circle at 12% 72%, rgba(255, 255, 255, 0.62) 0 0.58px, transparent 1.25px),
        radial-gradient(circle at 24% 84%, rgba(128, 201, 255, 0.5) 0 0.62px, transparent 1.25px),
        radial-gradient(circle at 41% 76%, rgba(255, 255, 255, 0.66) 0 0.62px, transparent 1.3px),
        radial-gradient(circle at 53% 91%, rgba(210, 173, 255, 0.54) 0 0.62px, transparent 1.3px),
        radial-gradient(circle at 71% 81%, rgba(255, 255, 255, 0.66) 0 0.62px, transparent 1.3px),
        radial-gradient(circle at 87% 74%, rgba(120, 197, 255, 0.52) 0 0.62px, transparent 1.3px);
    background-repeat: no-repeat;
}

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

.fcd-interface a {
    color: var(--fci-blue-2);
    text-underline-offset: 0.18em;
}

.fcd-interface img,
.fcd-interface video,
.fcd-interface canvas,
.fcd-interface svg {
    display: block;
    max-width: 100%;
}

.fcd-interface button,
.fcd-interface input,
.fcd-interface select,
.fcd-interface textarea {
    font: inherit;
}

.fcd-interface button {
    color: inherit;
}

.fcd-interface code,
.fcd-interface kbd,
.fcd-interface samp,
.fcd-interface pre {
    font-family: "SFMono-Regular", Consolas, monospace;
}

.fcd-interface :focus-visible {
    outline: 2px solid var(--fci-blue-2);
    outline-offset: 3px;
}

.fcd-interface [hidden] {
    display: none !important;
}

.fci-shell {
    width: min(calc(100% - 36px), 1320px);
    margin-inline: auto;
}

.fci-skip-link {
    position: fixed;
    z-index: 10000;
    top: 8px;
    left: 8px;
    padding: 9px 12px;
    border: 1px solid var(--fci-border-2);
    border-radius: 10px;
    color: var(--fci-text);
    background: #080b13;
    transform: translateY(-160%);
}

.fci-skip-link:focus {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Canonical 72px header and Bridge CMS navigation
   -------------------------------------------------------------------------- */

.fci-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid rgba(120, 145, 180, 0.12);
    background: rgba(3, 6, 12, 0.84);
    backdrop-filter: blur(18px);
}

.fci-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.fci-brand {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--fci-text);
    text-decoration: none;
}

.fci-brand:hover {
    color: var(--fci-text);
}

.fci-logo {
    flex: 0 0 auto;
    color: var(--fci-violet);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 1;
    white-space: nowrap;
}

.fci-brand small {
    display: grid;
    max-width: 220px;
    color: var(--fci-muted);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.fci-brand small strong,
.fci-brand small span {
    overflow: hidden;
    font: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fci-nav {
    overflow: visible;
}

.fci-nav__list,
.fci-dropdown-menu,
.fci-mobile-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fci-nav__list {
    display: flex;
    align-items: center;
    gap: 18px;
}

.fci-nav__item {
    position: relative;
}

.fci-nav__item > a {
    display: flex;
    align-items: center;
    min-height: 42px;
    color: var(--fci-muted);
    font-size: 0.78rem;
    text-decoration: none;
    white-space: nowrap;
}

.fci-nav__item > a:hover,
.fci-nav__item > a:focus-visible,
.fci-nav__item > a[aria-current="page"] {
    color: #fff;
}

.fci-nav__item--parent > a::after {
    margin-left: 5px;
    color: var(--fci-muted-2);
    font-size: 0.62rem;
    content: "▾";
}

.fci-dropdown-menu {
    position: absolute;
    z-index: 1100;
    top: 100%;
    left: -12px;
    visibility: hidden;
    min-width: 210px;
    padding: 6px;
    border: 1px solid rgba(130, 145, 190, 0.22);
    border-radius: 12px;
    opacity: 0;
    background: #080b13;
    box-shadow: var(--fci-shadow);
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 140ms ease, visibility 140ms ease;
}

.fci-dropdown-menu::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 14px;
    content: "";
}

.fci-nav__item:hover > .fci-dropdown-menu,
.fci-nav__item:focus-within > .fci-dropdown-menu,
.fci-nav__item.fci-preview-open > .fci-dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.fci-dropdown-menu .fci-nav__item > a {
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 8px;
}

.fci-dropdown-menu .fci-nav__item > a:hover,
.fci-dropdown-menu .fci-nav__item > a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
}

.fci-dropdown-menu .fci-dropdown-menu {
    top: -6px;
    left: 100%;
    transform: translateX(10px);
}

.fci-dropdown-menu .fci-dropdown-menu::before {
    top: 0;
    right: 100%;
    bottom: 0;
    left: auto;
    width: 14px;
    height: auto;
}

.fci-header__end {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.fci-mobile-nav {
    display: none;
    position: relative;
}

.fci-mobile-nav > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid var(--fci-border);
    border-radius: 10px;
    color: var(--fci-muted);
    background: rgba(10, 14, 23, 0.88);
    font-size: 0.78rem;
    cursor: pointer;
    list-style: none;
}

.fci-mobile-nav > summary::-webkit-details-marker {
    display: none;
}

.fci-mobile-nav__icon,
.fci-mobile-nav__icon::before,
.fci-mobile-nav__icon::after {
    display: block;
    width: 15px;
    height: 1px;
    background: currentColor;
}

.fci-mobile-nav__icon {
    position: relative;
}

.fci-mobile-nav__icon::before,
.fci-mobile-nav__icon::after {
    position: absolute;
    left: 0;
    content: "";
}

.fci-mobile-nav__icon::before {
    top: -5px;
}

.fci-mobile-nav__icon::after {
    top: 5px;
}

.fci-mobile-nav[open] .fci-mobile-nav__icon {
    background: transparent;
}

.fci-mobile-nav[open] .fci-mobile-nav__icon::before {
    top: 0;
    transform: rotate(45deg);
}

.fci-mobile-nav[open] .fci-mobile-nav__icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.fci-mobile-nav__panel {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 8px);
    right: 0;
    overflow: auto;
    width: min(340px, calc(100vw - 24px));
    max-height: calc(100vh - 92px);
    padding: 6px;
    border: 1px solid rgba(130, 145, 190, 0.22);
    border-radius: 12px;
    background: #080b13;
    box-shadow: var(--fci-shadow);
}

.fci-mobile-nav__list {
    display: grid;
    gap: 2px;
}

.fci-mobile-nav__list .fci-nav__item > a {
    min-height: 42px;
    padding: 8px 11px;
    border-radius: 8px;
}

.fci-mobile-nav__list .fci-nav__item > a:hover,
.fci-mobile-nav__list .fci-nav__item > a:focus-visible,
.fci-mobile-nav__list .fci-nav__item > a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.06);
}

.fci-mobile-nav__list--nested {
    margin: 0 0 5px 16px;
    padding-left: 10px;
    border-left: 1px solid var(--fci-border);
}

.fci-mobile-nav__list--nested .fci-nav__item > a {
    min-height: 36px;
    color: var(--fci-muted-2);
    font-size: 0.74rem;
}

/* --------------------------------------------------------------------------
   Canonical hero and section grammar
   -------------------------------------------------------------------------- */

.fci-hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 54px;
}

.fci-hero::after {
    position: absolute;
    z-index: -1;
    top: 10px;
    right: -120px;
    width: 680px;
    height: 290px;
    border-radius: 50%;
    content: "";
    opacity: 0.75;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.7), rgba(188, 120, 255, 0.5) 5%, rgba(85, 55, 190, 0.33) 18%, rgba(36, 140, 255, 0.12) 34%, transparent 66%);
    transform: rotate(-19deg);
}

.fci-kicker {
    color: var(--fci-violet-2);
    font-size: 0.66rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.fci-hero h1,
.fci-section-head h1,
.fci-section-head h2,
.fci-native-content h1,
.fci-native-content h2 {
    color: var(--fci-text);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.fci-hero h1 {
    max-width: 1050px;
    margin: 16px 0 18px;
    font-size: clamp(4rem, 8vw, 7.5rem);
    line-height: 0.9;
}

.fci-hero h1 em {
    color: var(--fci-violet);
    font-style: normal;
}

.fci-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--fci-muted);
    line-height: 1.75;
}

.fci-section {
    padding: 66px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.fci-section--first {
    padding-top: 54px;
}

.fci-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.fci-section-head h1,
.fci-section-head h2 {
    max-width: 17ch;
    margin: 6px 0 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
}

.fci-section-head p {
    max-width: 560px;
    margin: 0;
    color: var(--fci-muted-2);
    line-height: 1.65;
}

.fci-breadcrumbs,
.fcd-interface .breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
    color: var(--fci-muted-2);
    font-size: 0.78rem;
}

.fci-breadcrumbs a,
.fcd-interface .breadcrumbs a {
    color: var(--fci-muted);
}

.fci-breadcrumbs strong,
.fcd-interface .breadcrumbs strong {
    color: #fff;
}

/* --------------------------------------------------------------------------
   UI-library panels, cards, grids, and sparse stellar layer
   -------------------------------------------------------------------------- */

.fci-panel,
.fcd-interface .panel {
    border: 1px solid rgba(120, 145, 180, 0.17);
    border-radius: var(--fci-radius-2);
    background: linear-gradient(180deg, rgba(8, 12, 21, 0.985), rgba(5, 8, 15, 0.99));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.fci-demo,
.fcd-interface .demo {
    padding: 24px;
}

.fci-card,
.fcd-interface .card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 220px;
    padding: 20px;
    border: 1px solid rgba(120, 145, 180, 0.16);
    border-radius: var(--fci-radius);
    background: linear-gradient(180deg, rgba(10, 14, 24, 0.98), rgba(7, 10, 18, 0.985));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.014);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.fci-card:hover,
.fcd-interface .card:hover {
    border-color: rgba(123, 111, 190, 0.26);
    background: linear-gradient(180deg, rgba(12, 17, 29, 0.99), rgba(8, 12, 21, 0.99));
    transform: translateY(-1px);
}

.fci-card h3,
.fcd-interface .card h3 {
    margin: 16px 0 8px;
    color: var(--fci-text);
    font-size: 1.05rem;
}

.fci-card h3 a {
    color: inherit;
    text-decoration: none;
}

.fci-card p,
.fcd-interface .card p {
    margin: 0 0 18px;
    color: var(--fci-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.fci-card > .fci-btn {
    align-self: flex-start;
    margin-top: auto;
}

.fci-grid,
.fcd-interface .grid {
    display: grid;
    gap: 16px;
}

.fci-two,
.fcd-interface .two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fci-three,
.fcd-interface .three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fci-four,
.fcd-interface .four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fci-component-grid {
    margin-top: 16px;
}

.fci-stellar-surface,
.fcd-interface .stellar-surface {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --s1x: 15%;
    --s1y: 20%;
    --s2x: 72%;
    --s2y: 14%;
    --s3x: 84%;
    --s3y: 70%;
    --s4x: 35%;
    --s4y: 82%;
    --s5x: 58%;
    --s5y: 45%;
    --nebula-x: 76%;
    --nebula-y: 24%;
}

.fci-grid > :nth-child(2) {
    --s1x: 76%;
    --s1y: 19%;
    --s2x: 27%;
    --s2y: 78%;
    --s3x: 61%;
    --s3y: 52%;
    --s4x: 12%;
    --s4y: 31%;
    --s5x: 89%;
    --s5y: 84%;
    --nebula-x: 23%;
    --nebula-y: 72%;
}

.fci-grid > :nth-child(3) {
    --s1x: 44%;
    --s1y: 11%;
    --s2x: 86%;
    --s2y: 41%;
    --s3x: 18%;
    --s3y: 72%;
    --s4x: 67%;
    --s4y: 87%;
    --s5x: 31%;
    --s5y: 47%;
    --nebula-x: 79%;
    --nebula-y: 32%;
}

.fci-grid > :nth-child(4n) {
    --s1x: 12%;
    --s1y: 65%;
    --s2x: 57%;
    --s2y: 13%;
    --s3x: 92%;
    --s3y: 74%;
    --s4x: 38%;
    --s4y: 89%;
    --s5x: 73%;
    --s5y: 42%;
    --nebula-x: 31%;
    --nebula-y: 29%;
}

.fci-stellar-surface::before,
.fcd-interface .stellar-surface::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.42;
    background:
        radial-gradient(circle at var(--s1x) var(--s1y), rgba(235, 240, 255, 0.72) 0 0.72px, transparent 1.25px),
        radial-gradient(circle at var(--s2x) var(--s2y), rgba(180, 155, 235, 0.48) 0 0.7px, transparent 1.2px),
        radial-gradient(circle at var(--s3x) var(--s3y), rgba(116, 170, 225, 0.46) 0 0.68px, transparent 1.18px),
        radial-gradient(circle at var(--s4x) var(--s4y), rgba(235, 240, 255, 0.42) 0 0.58px, transparent 1.05px),
        radial-gradient(circle at var(--s5x) var(--s5y), rgba(178, 142, 220, 0.4) 0 0.58px, transparent 1.05px),
        radial-gradient(ellipse at var(--nebula-x) var(--nebula-y), rgba(85, 50, 140, 0.055) 0%, rgba(38, 58, 118, 0.035) 24%, transparent 54%);
}

.fci-stellar-surface::after,
.fcd-interface .stellar-surface::after {
    content: none;
}

.fci-stellar-surface > *,
.fcd-interface .stellar-surface > * {
    position: relative;
    z-index: 1;
    text-shadow: none;
}

.fci-media-frame {
    display: grid;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
    place-items: center;
    border: 1px solid var(--fci-border);
    border-radius: 14px;
    background: radial-gradient(circle at 60% 40%, rgba(180, 100, 255, 0.12), transparent 18%), linear-gradient(135deg, #070a12, #050810);
}

.fci-media-frame img,
.fci-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fci-media-frame span {
    color: var(--fci-muted-2);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fci-featured-media {
    overflow: hidden;
    margin: 0 0 16px;
}

.fci-featured-media img {
    max-height: 720px;
    border-radius: 14px;
}

.fci-featured-media figcaption {
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Buttons, badges, rows, forms, and alerts from the library
   -------------------------------------------------------------------------- */

.fci-row,
.fcd-interface .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.fci-row--between {
    justify-content: space-between;
}

.fci-label,
.fcd-interface .label {
    margin-bottom: 14px;
    color: var(--fci-muted-2);
    font-size: 0.67rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.fci-btn,
.fcd-interface .btn,
.fcd-interface .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid rgba(130, 150, 185, 0.18);
    border-radius: 12px;
    color: var(--fci-text);
    background: rgba(10, 14, 23, 0.88);
    font-size: 0.82rem;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.fci-btn:hover,
.fcd-interface .btn:hover,
.fcd-interface .button:hover {
    border-color: rgba(143, 126, 204, 0.28);
    color: #fff;
    background: rgba(15, 20, 32, 0.96);
    transform: translateY(-1px);
}

.fci-btn--primary,
.fcd-interface .btn.primary,
.fcd-interface .button.primary {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #5d2bd4, #176fe5);
    box-shadow: 0 0 18px rgba(89, 59, 204, 0.18);
}

.fci-btn--secondary,
.fcd-interface .btn.secondary {
    background: rgba(10, 14, 23, 0.88);
}

.fci-btn--danger,
.fcd-interface .btn.danger {
    border-color: rgba(255, 120, 144, 0.32);
    color: #ffc1ce;
    background: rgba(255, 120, 144, 0.08);
}

.fci-btn:disabled,
.fcd-interface .btn:disabled,
.fcd-interface button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.fci-badge,
.fcd-interface .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 5px 8px;
    border: 1px solid var(--fci-border);
    border-radius: 999px;
    color: var(--fci-muted);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.7rem;
    line-height: 1;
}

.fci-badge--good,
.fcd-interface .badge.good {
    border-color: rgba(98, 227, 179, 0.28);
    color: #a6f3d0;
    background: rgba(98, 227, 179, 0.07);
}

.fci-badge--warning,
.fcd-interface .badge.warn {
    border-color: rgba(242, 207, 111, 0.28);
    color: #ffe4a2;
    background: rgba(242, 207, 111, 0.07);
}

.fci-badge--error,
.fcd-interface .badge.bad {
    border-color: rgba(255, 120, 144, 0.28);
    color: #ffbdca;
    background: rgba(255, 120, 144, 0.07);
}

.fci-form,
.fci-field {
    display: grid;
    gap: 14px;
}

.fci-field {
    gap: 7px;
}

.fci-form > .fci-grid {
    gap: 14px;
}

.fci-field label,
.fcd-interface fieldset legend {
    color: var(--fci-muted);
    font-size: 0.78rem;
}

.fci-help,
.fcd-interface .help {
    color: var(--fci-muted-2);
    font-size: 0.7rem;
}

.fcd-interface input,
.fcd-interface select,
.fcd-interface textarea {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid rgba(120, 145, 180, 0.18);
    border-radius: 12px;
    outline: none;
    color: var(--fci-text);
    background: #070a12;
}

.fcd-interface textarea {
    min-height: 120px;
    padding: 13px;
    resize: vertical;
}

.fcd-interface input:focus,
.fcd-interface select:focus,
.fcd-interface textarea:focus {
    border-color: rgba(136, 95, 225, 0.7);
    box-shadow: 0 0 0 2px rgba(112, 72, 185, 0.14);
}

.fcd-interface input[type="checkbox"],
.fcd-interface input[type="radio"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    accent-color: var(--fci-violet);
}

.fcd-interface fieldset {
    padding: 16px;
    border: 1px solid var(--fci-border);
    border-radius: 16px;
}

.fci-honeypot {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.fci-alert,
.fcd-interface .alert {
    padding: 14px 16px;
    border: 1px solid rgba(110, 135, 170, 0.16);
    border-radius: 14px;
    color: var(--fci-muted);
    background: linear-gradient(180deg, rgba(10, 15, 24, 0.98), rgba(7, 11, 19, 0.98));
}

.fci-alert strong,
.fcd-interface .alert strong {
    color: var(--fci-text);
}

.fci-alert p,
.fcd-interface .alert p {
    margin: 5px 0 0;
}

.fci-alert .fci-btn {
    margin-top: 14px;
}

.fci-alert--success,
.fcd-interface .alert.success {
    border-color: rgba(54, 190, 155, 0.18);
    background: linear-gradient(180deg, rgba(8, 24, 24, 0.78), rgba(6, 15, 17, 0.92));
}

.fci-alert--warning,
.fcd-interface .alert.warn {
    border-color: rgba(220, 160, 60, 0.2);
    background: linear-gradient(180deg, rgba(25, 20, 10, 0.76), rgba(16, 12, 7, 0.92));
}

.fci-alert--error,
.fcd-interface .alert.error {
    border-color: rgba(215, 70, 95, 0.2);
    background: linear-gradient(180deg, rgba(27, 12, 19, 0.8), rgba(17, 8, 13, 0.94));
}

.fci-case-meta {
    margin: -6px 0 22px;
}

/* --------------------------------------------------------------------------
   Native semantic content — direct library mapping
   -------------------------------------------------------------------------- */

.fci-native-content {
    color: var(--fci-muted);
    line-height: 1.7;
}

.fci-native-content > :first-child {
    margin-top: 0;
}

.fci-native-content > :last-child {
    margin-bottom: 0;
}

.fci-native-content h1 {
    margin: 0 0 18px;
    font-size: 3rem;
    line-height: 1;
}

.fci-native-content h2 {
    margin: 34px 0 14px;
    font-size: 2.4rem;
    line-height: 1.05;
}

.fci-native-content h3,
.fci-native-content h4,
.fci-native-content h5,
.fci-native-content h6 {
    margin: 28px 0 10px;
    color: var(--fci-text);
}

.fci-native-content p {
    max-width: 760px;
    color: var(--fci-muted);
}

.fci-native-content a {
    color: var(--fci-blue-2);
}

.fci-native-content ul,
.fci-native-content ol {
    color: var(--fci-muted);
    line-height: 1.7;
}

.fci-native-content dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 16px;
    color: var(--fci-muted);
}

.fci-native-content dt {
    color: #fff;
    font-weight: 700;
}

.fci-native-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--fci-violet);
    color: var(--fci-muted);
    background: rgba(181, 109, 255, 0.05);
}

.fci-native-content blockquote p {
    margin: 0;
}

.fci-native-content code {
    color: #c8bbd8;
}

.fci-native-content pre,
.fcd-interface pre {
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--fci-border);
    border-radius: 14px;
    color: #c8bbd8;
    background: #050810;
}

.fci-native-content kbd,
.fcd-interface kbd {
    padding: 2px 6px;
    border: 1px solid var(--fci-border);
    border-bottom-width: 2px;
    border-radius: 6px;
    color: #e6ddf0;
    background: #0a0e18;
}

.fci-native-content mark {
    padding: 1px 4px;
    border-radius: 4px;
    color: #fff;
    background: rgba(181, 109, 255, 0.25);
}

.fci-native-content hr,
.fcd-interface hr {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--fci-border);
}

.fci-native-content details,
.fcd-interface details.fci-disclosure {
    padding: 12px 14px;
    border: 1px solid var(--fci-border);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(10, 14, 24, 0.98), rgba(7, 10, 18, 0.985));
}

.fci-native-content details + details {
    margin-top: 10px;
}

.fci-native-content summary {
    color: var(--fci-text);
    font-weight: 700;
    cursor: pointer;
}

.fci-native-content table,
.fcd-interface .table-wrap {
    overflow-x: auto;
    width: 100%;
    margin: 24px 0;
    border: 1px solid rgba(120, 145, 180, 0.16);
    border-radius: 14px;
    background: #050810;
}

.fci-native-content table {
    display: block;
    border-collapse: collapse;
}

.fci-native-content thead,
.fci-native-content tbody {
    display: table;
    width: 100%;
    min-width: 720px;
    table-layout: fixed;
}

.fci-native-content th,
.fci-native-content td,
.fcd-interface .table-wrap th,
.fcd-interface .table-wrap td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--fci-border);
    text-align: left;
}

.fci-native-content th,
.fcd-interface .table-wrap th {
    color: var(--fci-muted-2);
    background: #0a0e18;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fci-native-content td,
.fcd-interface .table-wrap td {
    color: var(--fci-muted);
    font-size: 0.83rem;
}

.fci-native-content figure {
    margin: 24px 0;
}

.fci-native-content img {
    border: 1px solid var(--fci-border);
    border-radius: 14px;
}

.fci-native-content figcaption,
.fcd-interface figcaption {
    margin-top: 8px;
    color: var(--fci-muted-2);
    font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Additional UI-library components available to plugins/managed HTML
   -------------------------------------------------------------------------- */

.fcd-interface dialog,
.fcd-interface .modal-card,
.fcd-interface .popover,
.fcd-interface .dropdown-menu {
    max-width: 520px;
    width: calc(100% - 32px);
    padding: 0;
    border: 1px solid rgba(130, 145, 190, 0.22);
    border-radius: 20px;
    color: var(--fci-text);
    background: #080b13;
    box-shadow: var(--fci-shadow);
}

.fcd-interface dialog::backdrop {
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(5px);
}

.fcd-interface .dialog-body,
.fcd-interface .modal-card {
    padding: 24px;
}

.fcd-interface .tabs2,
.fcd-interface .segmented {
    display: flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--fci-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.fcd-interface .tabs2 button,
.fcd-interface .segmented button {
    padding: 9px 11px;
    border: 0;
    border-radius: 8px;
    color: var(--fci-muted);
    background: none;
    cursor: pointer;
}

.fcd-interface .tabs2 button.active,
.fcd-interface .segmented button.active {
    color: #fff;
    background: rgba(181, 109, 255, 0.1);
}

.fcd-interface .pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fcd-interface .pagination button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--fci-border);
    border-radius: 10px;
    color: var(--fci-muted);
    background: rgba(255, 255, 255, 0.04);
}

.fcd-interface .pagination button.active {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--fci-plum), var(--fci-blue));
}

.fcd-interface .spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--fci-violet);
    border-radius: 50%;
    animation: fci-spin 0.8s linear infinite;
}

.fcd-interface .skeleton {
    min-height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, #080b13, #111725, #080b13);
    background-size: 200% 100%;
    animation: fci-skeleton 1.4s ease infinite;
}

@keyframes fci-spin {
    to { transform: rotate(360deg); }
}

@keyframes fci-skeleton {
    to { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   Canonical mega-footer
   -------------------------------------------------------------------------- */

.fci-footer {
    padding: 42px 0 28px;
    border-top: 1px solid var(--fci-border);
    color: var(--fci-muted-2);
    font-size: 0.78rem;
}

.fci-mega-footer,
.fcd-interface .mega-footer {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 24px;
}

.fci-mega-footer p {
    max-width: 44ch;
    color: var(--fci-muted);
    line-height: 1.65;
}

.fci-mega-footer a:not(.fci-brand):not(.fci-btn) {
    display: block;
    width: fit-content;
    margin: 8px 0;
    color: var(--fci-muted);
    text-decoration: none;
}

.fci-mega-footer a:hover {
    color: #fff;
}

.fci-footer__meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   Canonical breakpoints
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .fci-nav--desktop,
    .fci-header__badge {
        display: none;
    }

    .fci-mobile-nav {
        display: block;
    }

    .fci-three,
    .fci-four,
    .fcd-interface .three,
    .fcd-interface .four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fci-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .fci-mega-footer,
    .fcd-interface .mega-footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .fcd-interface::before {
        opacity: 0.25;
    }

    .fci-stellar-surface::before,
    .fcd-interface .stellar-surface::before {
        opacity: 0.34;
    }

    .fci-panel,
    .fci-card,
    .fcd-interface .panel,
    .fcd-interface .card {
        box-shadow: none;
    }
}

@media (max-width: 620px) {
    .fci-shell {
        width: min(calc(100% - 24px), 1320px);
    }

    .fci-brand {
        gap: 9px;
    }

    .fci-brand small span {
        display: none;
    }

    .fci-hero {
        padding: 70px 0 48px;
    }

    .fci-hero::after {
        top: 15px;
        right: -330px;
        opacity: 0.46;
    }

    .fci-hero h1 {
        font-size: 3.7rem;
    }

    .fci-section {
        padding: 54px 0;
    }

    .fci-section--first {
        padding-top: 42px;
    }

    .fci-breadcrumbs {
        margin-bottom: 38px;
    }

    .fci-two,
    .fci-three,
    .fci-four,
    .fcd-interface .two,
    .fcd-interface .three,
    .fcd-interface .four,
    .fci-mega-footer,
    .fcd-interface .mega-footer {
        grid-template-columns: 1fr;
    }

    .fci-demo {
        padding: 20px;
    }

    .fci-native-content dl {
        grid-template-columns: 1fr;
    }

    .fci-footer__meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .fci-brand small {
        max-width: 145px;
    }

    .fci-section-head h1,
    .fci-section-head h2 {
        font-size: 2.65rem;
    }
}

@media (max-width: 340px) {
    .fci-brand small {
        max-width: 112px;
    }

    .fci-logo {
        font-size: 1.65rem;
    }

    .fci-mobile-nav > summary {
        padding-inline: 9px;
    }

    .fci-hero h1 {
        font-size: 3.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fcd-interface {
        scroll-behavior: auto;
    }

    .fcd-interface *,
    .fcd-interface *::before,
    .fcd-interface *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .fcd-interface {
        color: #111;
        background: #fff;
    }

    .fcd-interface::before,
    .fci-header,
    .fci-footer,
    .fci-btn {
        display: none !important;
    }

    .fci-panel,
    .fci-card {
        break-inside: avoid;
        border-color: #bbb;
        color: #111;
        background: #fff;
        box-shadow: none;
    }
}
