@font-face {
    font-family: "Source Sans 3";
    src: url("fonts/SourceSans3-Semibold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

/* Shared by report templates on test and production.
   Legacy SVGs remain available as data sources and emergency fallback. */
.fhd-bodygraph-source,
.hgsvg_composite,
.hgsvg_compos,
.svg_composite_lite {
    display: none !important;
}

.fhd-bodygraph-error {
    margin: 24px;
    padding: 20px;
    color: #702d45;
    background: #fff1f3;
    border: 1px solid #f0cbd4;
    border-radius: 12px;
}

.fhd-pair-feedback {
    margin: 20px 0;
    padding: 24px;
    text-align: center;
    color: #756d79;
    background: #f8f6fa;
    border: 1px solid #e9e2ed;
    border-radius: 18px;
}

.fhd-pair-feedback.is-error {
    color: #702d45;
    background: #fff1f3;
    border-color: #f0cbd4;
}

.fhd-bodygraph-viewer {
    --fhd-bg: #f8f6fa;
    --fhd-surface: #ffffff;
    --fhd-ink: #201923;
    --fhd-muted: #756d79;
    --fhd-border: #e9e2ed;
    --fhd-brand: #61388a;
    --fhd-brand-hover: #71459a;
    --fhd-temporal: #48c875;
    margin: 20px 0 32px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    color: var(--fhd-ink);
    background: var(--fhd-surface);
    border: 1px solid var(--fhd-border);
    border-radius: 28px;
    box-shadow: 0 22px 70px rgba(50, 31, 60, 0.11);
}

.fhd-bodygraph-toolbar {
    display: grid;
    gap: 18px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 22px 24px 20px;
    border-bottom: 1px solid var(--fhd-border);
}

.fhd-bodygraph-heading,
.fhd-bodygraph-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.fhd-bodygraph-heading > div {
    min-width: 0;
}

.fhd-bodygraph-eyebrow {
    margin: 0 0 3px;
    color: var(--fhd-brand);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fhd-bodygraph-heading h2 {
    margin: 0;
    color: var(--fhd-ink);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 750;
    line-height: 1.2;
}

.fhd-bodygraph-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
    color: var(--fhd-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
}

.fhd-bodygraph-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.fhd-bodygraph-legend i {
    width: 10px;
    height: 10px;
    background: #09090a;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(9, 9, 10, 0.08);
}

.fhd-bodygraph-legend .is-design {
    background: #f93e32;
    box-shadow: 0 0 0 3px rgba(249, 62, 50, 0.1);
}

.fhd-bodygraph-legend .is-both {
    background: linear-gradient(135deg, #09090a 0 49.5%, #f93e32 50.5% 100%);
    box-shadow: 0 0 0 3px rgba(74, 52, 77, 0.1);
}

.fhd-bodygraph-legend .is-temporal {
    background: var(--fhd-temporal);
    box-shadow: 0 0 0 3px rgba(72, 200, 117, 0.12);
}

.fhd-bodygraph-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    flex: 1 1 auto;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 4px;
    padding: 4px;
    background: var(--fhd-bg);
    border: 1px solid var(--fhd-border);
    border-radius: 16px;
}

.fhd-bodygraph-tab,
.fhd-temporal-toggle,
.fhd-export-button {
    min-height: 44px;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.fhd-export-button {
    display: grid;
    flex: 0 0 auto;
    align-content: center;
    min-width: 148px;
    padding: 8px 14px;
    color: #ffffff;
    text-align: left;
    background: var(--fhd-brand);
    border: 1px solid var(--fhd-brand);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(75, 31, 104, 0.18);
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 100ms ease;
}

.fhd-export-button:hover {
    background: var(--fhd-brand-hover);
    box-shadow: 0 10px 24px rgba(75, 31, 104, 0.24);
}

.fhd-export-button:active {
    transform: translateY(1px);
}

.fhd-export-button span {
    font-size: 13px;
    font-weight: 740;
}

.fhd-export-button small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 10px;
}

.fhd-bodygraph-tab {
    padding: 9px 13px;
    color: var(--fhd-muted);
    background: transparent;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 680;
    line-height: 1.2;
    transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 100ms ease;
}

.fhd-bodygraph-tab:hover {
    color: var(--fhd-ink);
    background: rgba(75, 31, 104, 0.07);
}

.fhd-bodygraph-tab:active {
    transform: translateY(1px);
}

.fhd-bodygraph-tab.is-active {
    color: #ffffff;
    background: var(--fhd-brand);
    box-shadow: 0 6px 16px rgba(75, 31, 104, 0.2);
}

.fhd-bodygraph-tab.is-active:hover {
    background: var(--fhd-brand-hover);
}

.fhd-bodygraph-tab:disabled {
    opacity: 0.55;
    cursor: progress;
}

.fhd-temporal-toggle {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
    min-width: 260px;
    box-sizing: border-box;
    max-width: 100%;
    padding: 8px 10px 8px 14px;
    color: var(--fhd-ink);
    text-align: left;
    background: var(--fhd-surface);
    border: 1px solid var(--fhd-border);
    border-radius: 16px;
    box-shadow: 0 7px 20px rgba(50, 31, 60, 0.06);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.fhd-temporal-toggle:hover {
    background: var(--fhd-bg);
    border-color: #cfc2d7;
    box-shadow: 0 9px 24px rgba(50, 31, 60, 0.1);
}

.fhd-temporal-copy {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
}

.fhd-temporal-label {
    font-size: 13px;
    font-weight: 720;
    line-height: 1.25;
}

.fhd-temporal-state {
    color: var(--fhd-muted);
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.fhd-switch-track {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 44px;
    height: 26px;
    background: var(--fhd-temporal);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
    transition: background-color 160ms ease;
}

.fhd-switch-track span {
    position: absolute;
    top: 3px;
    left: 21px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(21, 17, 25, 0.25);
    transition: left 160ms ease;
}

.fhd-temporal-toggle[aria-checked="false"] .fhd-switch-track {
    background: #a8a2ad;
}

.fhd-temporal-toggle[aria-checked="false"] .fhd-switch-track span {
    left: 3px;
}

.fhd-bodygraph-tab:focus-visible,
.fhd-temporal-toggle:focus-visible,
.fhd-export-button:focus-visible {
    outline: 3px solid rgba(94, 52, 126, 0.36);
    outline-offset: 2px;
}

.fhd-export-dialog {
    box-sizing: border-box;
    width: min(540px, calc(100vw - 28px));
    padding: 0;
    color: var(--fhd-ink);
    background: var(--fhd-surface);
    border: 1px solid var(--fhd-border);
    border-radius: 24px;
    box-shadow: 0 30px 100px rgba(25, 14, 32, 0.34);
}

.fhd-export-dialog::backdrop {
    background: rgba(24, 17, 28, 0.58);
    backdrop-filter: blur(5px);
}

.fhd-export-dialog form {
    position: relative;
    padding: 26px;
}

.fhd-export-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--fhd-muted);
    background: var(--fhd-bg);
    border: 1px solid var(--fhd-border);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    place-items: center;
}

.fhd-export-kicker {
    margin: 0 0 5px;
    color: var(--fhd-brand);
    font-size: 11px;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fhd-export-dialog h3 {
    margin: 0 48px 8px 0;
    color: var(--fhd-ink);
    font-size: 24px;
}

.fhd-export-dialog h3 + p,
.fhd-export-dialog-status {
    margin: 0;
    color: var(--fhd-muted);
    font-size: 13px;
    line-height: 1.5;
}

.fhd-export-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 14px;
}

.fhd-export-options button {
    display: grid;
    gap: 4px;
    min-height: 92px;
    padding: 16px;
    color: var(--fhd-ink);
    text-align: left;
    background: var(--fhd-bg);
    border: 1px solid var(--fhd-border);
    border-radius: 15px;
    cursor: pointer;
}

.fhd-export-options button:hover,
.fhd-export-options button:focus-visible {
    background: rgba(97, 56, 138, 0.08);
    border-color: #8a65a3;
    box-shadow: 0 0 0 3px rgba(97, 56, 138, 0.1);
    outline: none;
}

.fhd-export-options button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.fhd-export-options strong {
    font-size: 13px;
}

.fhd-export-options span {
    color: var(--fhd-muted);
    font-size: 11px;
    line-height: 1.35;
}

.fhd-bodygraph-stage {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 560px;
    padding: 26px 24px 30px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #fbfafc;
    scrollbar-color: #bba9c7 transparent;
    scrollbar-width: thin;
}

.fhd-bodygraph-stage::-webkit-scrollbar {
    height: 8px;
}

.fhd-bodygraph-stage::-webkit-scrollbar-thumb {
    background: #bba9c7;
    border-radius: 999px;
}

.fhd-bodygraph-fallback-image {
    display: block;
    width: 100%;
    max-width: 820px;
    height: auto;
    margin: 0 auto;
}

.fhd-figma-bodygraph {
    display: block;
    width: 100%;
    min-width: 820px;
    height: auto;
    margin: 0 auto;
    overflow: visible;
}

.fhd-figma-bodygraph text,
.fhd-pair-bodygraph text,
.fhd-mandala-canvas svg text {
    font-family: "Source Sans 3", "Myriad Pro", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
}

.fhd-figma-bodygraph[hidden],
.fhd-mandala-canvas[hidden] {
    display: none;
}

.fhd-mandala-canvas {
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    container-type: inline-size;
}

.fhd-bodygraph-viewer[data-active-mode="mandala"] .fhd-temporal-toggle {
    display: none;
}

.fhd-mandala-controlbar,
.fhd-mandala-layer-panel {
    position: sticky;
    left: 0;
    z-index: 5;
    box-sizing: border-box;
    width: 100%;
    color: var(--fhd-ink);
}

.fhd-mandala-controlbar {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(97, 56, 138, 0.08), rgba(255, 255, 255, 0.96) 42%);
    border: 1px solid var(--fhd-border);
    border-radius: 20px;
}

.fhd-mandala-current-state {
    margin: 0;
    color: var(--fhd-muted);
    font-size: 12px;
    font-weight: 680;
    line-height: 1.35;
}

.fhd-mandala-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--fhd-muted);
    background: transparent;
    font-size: 12px;
    font-weight: 650;
}

.fhd-mandala-filters button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--fhd-ink);
    background: #fff;
    border: 1px solid #ded6e3;
    border-radius: 11px;
    font: inherit;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.fhd-mandala-filters button:hover,
.fhd-mandala-filters button:focus-visible {
    border-color: #8a65a3;
    box-shadow: 0 0 0 3px rgba(97, 56, 138, 0.12);
    outline: none;
}

.fhd-mandala-filters button[aria-pressed="false"] {
    opacity: 0.46;
}

.fhd-mandala-filters button i {
    width: 9px;
    height: 9px;
    background: #09090a;
    border-radius: 50%;
}

.fhd-mandala-filters button[data-mandala-side="design"] i {
    background: #f93e32;
}

.fhd-mandala-filter-hint {
    padding: 0 6px;
    white-space: nowrap;
}

.fhd-mandala-layer-panel {
    margin: 0 0 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--fhd-border);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(50, 31, 60, 0.07);
}

.fhd-mandala-layer-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    cursor: pointer;
    list-style: none;
}

.fhd-mandala-layer-heading::-webkit-details-marker {
    display: none;
}

.fhd-mandala-layer-panel[open] > .fhd-mandala-layer-heading {
    margin-bottom: 14px;
}

.fhd-mandala-layer-disclosure {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 34px;
    padding: 6px 11px;
    color: var(--fhd-brand);
    background: #fbf8fd;
    border: 1px solid #d9cde1;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 740;
}

.fhd-mandala-layer-disclosure::after {
    content: '+';
    margin-left: 7px;
    font-size: 16px;
    line-height: 1;
}

.fhd-mandala-layer-panel[open] .fhd-mandala-layer-disclosure::after {
    content: '−';
}

.fhd-mandala-layer-heading h3 {
    margin: 0 0 4px;
    color: var(--fhd-ink);
    font-size: 17px;
    font-weight: 760;
    line-height: 1.2;
}

.fhd-mandala-layer-heading p {
    max-width: 680px;
    margin: 0;
    color: var(--fhd-muted);
    font-size: 12px;
    line-height: 1.4;
}

.fhd-mandala-layer-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    margin-bottom: 12px;
}

.fhd-mandala-layer-actions button {
    min-height: 36px;
    padding: 7px 11px;
    color: var(--fhd-brand);
    background: #ffffff;
    border: 1px solid #d9cde1;
    border-radius: 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 720;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.fhd-mandala-layer-actions button:hover,
.fhd-mandala-layer-actions button:focus-visible {
    color: #ffffff;
    background: var(--fhd-brand);
    border-color: var(--fhd-brand);
    box-shadow: 0 0 0 3px rgba(97, 56, 138, 0.13);
    outline: none;
}

.fhd-mandala-layer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.fhd-mandala-layer-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: 66px;
    padding: 10px 11px 10px 13px;
    color: var(--fhd-ink);
    text-align: left;
    background: #ffffff;
    border: 1px solid #e3dbe8;
    border-radius: 13px;
    font: inherit;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 100ms ease;
}

.fhd-mandala-layer-switch:hover,
.fhd-mandala-layer-switch:focus-visible {
    background: #fbf8fd;
    border-color: #9f82b3;
    box-shadow: 0 0 0 3px rgba(97, 56, 138, 0.11);
    outline: none;
}

.fhd-mandala-layer-switch:active:not(:disabled) {
    transform: translateY(1px);
}

.fhd-mandala-layer-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.fhd-mandala-layer-copy strong {
    font-size: 13px;
    font-weight: 740;
    line-height: 1.2;
}

.fhd-mandala-layer-copy small {
    color: var(--fhd-muted);
    font-size: 10px;
    line-height: 1.25;
}

.fhd-mandala-layer-track {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 38px;
    height: 22px;
    background: var(--fhd-brand);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.09);
    transition: background-color 160ms ease;
}

.fhd-mandala-layer-track span {
    position: absolute;
    top: 3px;
    left: 19px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(21, 17, 25, 0.24);
    transition: left 160ms ease;
}

.fhd-mandala-layer-switch[aria-checked="false"] .fhd-mandala-layer-track {
    background: #aaa4ae;
}

.fhd-mandala-layer-switch[aria-checked="false"] .fhd-mandala-layer-track span {
    left: 3px;
}

.fhd-mandala-controlbar > .fhd-mandala-layer-switch.is-temporal {
    width: 100%;
    min-height: 58px;
    background: rgba(72, 200, 117, 0.1);
    border-color: rgba(45, 174, 91, 0.42);
}

.fhd-mandala-controlbar > .fhd-mandala-layer-switch.is-temporal:hover,
.fhd-mandala-controlbar > .fhd-mandala-layer-switch.is-temporal:focus-visible {
    background: rgba(72, 200, 117, 0.16);
    border-color: #2dae5b;
    box-shadow: 0 0 0 3px rgba(45, 174, 91, 0.13);
}

.fhd-mandala-layer-switch.is-temporal .fhd-mandala-layer-track {
    background: #2dae5b;
}

.fhd-mandala-advanced {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--fhd-border);
}

.fhd-mandala-advanced summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: fit-content;
    color: var(--fhd-brand);
    font-size: 13px;
    font-weight: 740;
    cursor: pointer;
    list-style: none;
}

.fhd-mandala-advanced summary::-webkit-details-marker {
    display: none;
}

.fhd-mandala-advanced summary::before {
    content: '+';
    display: inline-grid;
    width: 20px;
    height: 20px;
    border: 1px solid #d8c9e1;
    border-radius: 7px;
    font-size: 15px;
    place-items: center;
}

.fhd-mandala-advanced[open] summary::before {
    content: '−';
}

.fhd-mandala-advanced summary small {
    color: var(--fhd-muted);
    font-size: 10px;
    font-weight: 560;
}

.fhd-mandala-explorer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 9px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--fhd-border);
}

.fhd-mandala-explorer label {
    display: grid;
    min-width: 0;
    gap: 5px;
    color: var(--fhd-muted);
    font-size: 10px;
    font-weight: 720;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fhd-mandala-explorer select,
.fhd-mandala-explorer button {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    color: var(--fhd-ink);
    background: #ffffff;
    border: 1px solid #ded6e3;
    border-radius: 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 680;
}

.fhd-mandala-explorer button {
    align-self: end;
    width: auto;
    color: var(--fhd-brand);
    cursor: pointer;
}

.fhd-mandala-explorer select:focus-visible,
.fhd-mandala-explorer button:focus-visible {
    border-color: #8a65a3;
    box-shadow: 0 0 0 3px rgba(97, 56, 138, 0.12);
    outline: none;
}

.fhd-mandala-layer-grid.is-advanced {
    margin-top: 11px;
}

.fhd-mandala-layer-switch.is-unavailable {
    min-height: 58px;
    cursor: default;
    opacity: 0.7;
}

.fhd-mandala-layer-switch.is-unavailable:hover {
    background: #ffffff;
    border-color: #e3dbe8;
    box-shadow: none;
}

.fhd-mandala-layer-switch.is-unavailable .fhd-mandala-layer-track {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 58px;
    height: 24px;
    padding: 0 7px;
    color: #6f6873;
    background: #eeeaf0;
    box-shadow: none;
}

.fhd-mandala-layer-switch.is-unavailable .fhd-mandala-layer-track em {
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.fhd-mandala-zoom {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
    padding-left: 8px;
    border-left: 1px solid var(--fhd-border);
}

.fhd-mandala-zoom button {
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 6px 9px;
    font-size: 17px;
    line-height: 1;
}

.fhd-mandala-zoom .fhd-mandala-zoom-value {
    min-width: 58px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.fhd-mandala-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee9f0;
    border-radius: 24px;
    cursor: grab;
    isolation: isolate;
    touch-action: none;
    user-select: none;
}

.fhd-mandala-viewport[data-zoomed="true"] {
    cursor: grab;
}

.fhd-mandala-viewport:active {
    cursor: grabbing;
}

.fhd-mandala-viewport:focus-visible {
    border-color: #8a65a3;
    box-shadow: 0 0 0 4px rgba(97, 56, 138, 0.14);
    outline: none;
}

.fhd-mandala-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.fhd-mandala-base,
.fhd-mandala-static-layer,
.fhd-mandala-overlay {
    position: absolute;
    display: block;
}

.fhd-mandala-base {
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.fhd-mandala-quarters-comb,
.fhd-mandala-hexagram-combs,
.fhd-mandala-line-comb {
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.fhd-mandala-quarters,
.fhd-mandala-quarters-comb,
.fhd-mandala-gods,
.fhd-mandala-gods-residual,
.fhd-mandala-hexagram-combs,
.fhd-mandala-line-comb,
.fhd-mandala-hexagram-frame,
.fhd-mandala-hexagrams {
    transform-origin: 50% 50%;
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fhd-mandala-quarters {
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.fhd-mandala-gods {
    top: 17.8273%;
    left: 17.8273%;
    z-index: 2;
    width: 64.3451%;
    height: 64.3451%;
}

.fhd-mandala-gods-residual,
.fhd-mandala-hexagram-frame {
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.fhd-mandala-static-layer {
    pointer-events: none;
    user-select: none;
}

.fhd-mandala-zodiac {
    top: 26.3179%;
    left: 26.3179%;
    z-index: 2;
    width: 47.3684%;
    height: 47.3684%;
}

.fhd-mandala-hexagrams {
    top: 22.0604%;
    left: 22.0119%;
    z-index: 2;
    width: 55.9787%;
    height: 55.8816%;
}

.fhd-mandala-hexagrams [data-mandala-hexagram-gate] path,
.fhd-mandala-hexagram-frame [data-mandala-gate-number] {
    transition: fill 160ms ease, filter 160ms ease;
}

.fhd-mandala-hexagrams [data-mandala-hexagram-gate].is-incarnation-cross path {
    fill: #b8752a !important;
    filter: drop-shadow(0 0 12px rgba(184, 117, 42, 0.5));
}

.fhd-mandala-hexagram-frame [data-mandala-gate-number].is-incarnation-cross {
    fill: #96551f !important;
    filter: drop-shadow(0 0 10px rgba(184, 117, 42, 0.42));
}

.fhd-mandala-overlay {
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.fhd-mandala-bodygraph {
    position: absolute;
    top: 37.6%;
    left: 40.75%;
    z-index: 4;
    display: block;
    width: 18.5%;
    height: auto;
    overflow: visible;
}

.fhd-mandala-visual-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 290px);
    align-items: start;
    gap: 16px;
}

.fhd-mandala-inspector {
    position: sticky;
    top: 16px;
    box-sizing: border-box;
    min-height: 210px;
    padding: 18px;
    color: var(--fhd-ink);
    background: #ffffff;
    border: 1px solid var(--fhd-border);
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(50, 31, 60, 0.08);
}

.fhd-mandala-inspector-kicker {
    margin: 0 0 5px;
    color: var(--fhd-brand);
    font-size: 10px;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fhd-mandala-inspector h3,
.fhd-mandala-inspector h4 {
    margin: 0 0 10px;
    color: var(--fhd-ink);
}

.fhd-mandala-inspector h4 {
    margin-top: 16px;
    font-size: 12px;
}

.fhd-mandala-inspector > p:not(.fhd-mandala-inspector-kicker) {
    margin: 0;
    color: var(--fhd-muted);
    font-size: 12px;
    line-height: 1.55;
}

.fhd-mandala-inspector dl,
.fhd-mandala-inspector ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fhd-mandala-inspector dl > div,
.fhd-mandala-inspector li {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--fhd-border);
}

.fhd-mandala-inspector dt,
.fhd-mandala-inspector li span {
    color: var(--fhd-muted);
    font-size: 10px;
}

.fhd-mandala-inspector dd,
.fhd-mandala-inspector li strong {
    margin: 0;
    font-size: 11px;
    font-weight: 720;
}

@container (max-width: 900px) {
    .fhd-mandala-visual-layout {
        grid-template-columns: 1fr;
    }

    .fhd-mandala-inspector {
        position: static;
    }
}

.fhd-mandala-sectors path {
    transition: opacity 160ms ease;
}

.fhd-mandala-sector-hit {
    fill: transparent !important;
    stroke: transparent;
    stroke-width: 1.5;
    cursor: pointer;
    outline: none;
    pointer-events: all;
    transition: fill 140ms ease, stroke 140ms ease;
    vector-effect: non-scaling-stroke;
}

.fhd-mandala-sector-hit:hover,
.fhd-mandala-sector-hit:focus-visible,
.fhd-mandala-sector-hit.is-selected {
    fill: rgba(97, 56, 138, 0.16) !important;
    stroke: rgba(97, 56, 138, 0.86);
}

.fhd-mandala-sector-hit.is-related {
    fill: rgba(140, 0, 255, 0.1) !important;
    stroke: rgba(140, 0, 255, 0.64);
    stroke-width: 1.5;
}

.fhd-mandala-sector-cross {
    fill: rgba(214, 151, 67, 0.24) !important;
    stroke: #9b5a22;
    stroke-width: 1.5;
    pointer-events: none;
    vector-effect: non-scaling-stroke;
}

.fhd-mandala-sector-temporal {
    fill: var(--fhd-temporal) !important;
    opacity: 0.58;
}

.fhd-mandala-lines {
    pointer-events: none;
}

.fhd-mandala-lines path {
    transition: fill 160ms ease, stroke 160ms ease, opacity 160ms ease;
}

.fhd-mandala-lines [data-mandala-line].is-related {
    filter: drop-shadow(0 0 18px rgba(140, 0, 255, 0.8));
    opacity: 1;
}

.fhd-mandala-planet {
    cursor: pointer;
    filter: drop-shadow(0 10px 12px rgba(37, 26, 42, 0.12));
    outline: none;
}

.fhd-mandala-planet:hover,
.fhd-mandala-planet:focus-visible {
    filter: drop-shadow(0 0 24px rgba(97, 56, 138, 0.76));
}

.fhd-mandala-planet.is-incarnation-cross {
    filter: drop-shadow(0 0 14px rgba(184, 117, 42, 0.68));
}

.fhd-mandala-planet[data-temporal="true"] {
    filter: drop-shadow(0 8px 14px rgba(30, 129, 77, 0.28));
}

.fhd-mandala-planet-overflow {
    cursor: help;
}

.fhd-mandala-planet[data-temporal="true"]:hover,
.fhd-mandala-planet[data-temporal="true"]:focus-visible {
    filter: drop-shadow(0 0 24px rgba(72, 200, 117, 0.82));
}

.fhd-figma-bodygraph [data-planet-column],
.fhd-figma-bodygraph .fhd-channel-piece,
.fhd-figma-bodygraph .fhd-temporal-overlay,
.fhd-figma-bodygraph [data-gate-circle],
.fhd-figma-bodygraph [data-temporal-gate-circle] {
    transition: opacity 180ms ease;
}

.fhd-figma-bodygraph [data-planet-column].is-dimmed {
    opacity: 0.17;
}

.fhd-figma-bodygraph .fhd-gate-circle-base circle {
    fill: #61388a;
    filter: drop-shadow(0 16px 24px rgba(55, 26, 75, 0.22));
}

.fhd-figma-bodygraph .fhd-gate-circle-temporal circle,
.fhd-mandala-bodygraph .fhd-gate-circle-temporal circle,
.fhd-figma-bodygraph .fhd-temporal-overlay [fill]:not([fill="none"]),
.fhd-mandala-bodygraph .fhd-temporal-overlay [fill]:not([fill="none"]) {
    fill: var(--fhd-temporal) !important;
}

.fhd-figma-bodygraph .fhd-temporal-overlay [stroke]:not([stroke="none"]),
.fhd-mandala-bodygraph .fhd-temporal-overlay [stroke]:not([stroke="none"]) {
    stroke: var(--fhd-temporal) !important;
}

.fhd-figma-bodygraph .fhd-channel-piece.is-forced-design,
.fhd-figma-bodygraph .fhd-channel-piece.is-forced-design [fill]:not([fill="none"]) {
    fill: #f93e32 !important;
}

.fhd-figma-bodygraph .fhd-channel-piece.is-forced-design[stroke]:not([stroke="none"]),
.fhd-figma-bodygraph .fhd-channel-piece.is-forced-design [stroke]:not([stroke="none"]) {
    stroke: #f93e32 !important;
}

.fhd-figma-bodygraph .fhd-channel-piece.is-forced-personality,
.fhd-figma-bodygraph .fhd-channel-piece.is-forced-personality [fill]:not([fill="none"]) {
    fill: #050506 !important;
}

.fhd-figma-bodygraph .fhd-channel-piece.is-forced-personality[stroke]:not([stroke="none"]),
.fhd-figma-bodygraph .fhd-channel-piece.is-forced-personality [stroke]:not([stroke="none"]) {
    stroke: #050506 !important;
}

.fhd-figma-bodygraph .fhd-gate-circle-temporal circle,
.fhd-mandala-bodygraph .fhd-gate-circle-temporal circle {
    filter: drop-shadow(0 16px 24px rgba(30, 129, 77, 0.22));
}

.fhd-figma-bodygraph .fhd-gate-number {
    fill: #0d0b0e;
    transition: fill 160ms ease;
}

.fhd-figma-bodygraph [data-gate-label].is-natal-active .fhd-gate-number,
.fhd-figma-bodygraph [data-gate-label].is-temporal-active .fhd-gate-number,
.fhd-mandala-bodygraph [data-gate-label].is-natal-active .fhd-gate-number,
.fhd-mandala-bodygraph [data-gate-label].is-temporal-active .fhd-gate-number {
    fill: #ffffff;
}

.fhd-figma-bodygraph [role="button"] {
    cursor: pointer;
    outline: none;
}

.fhd-figma-bodygraph [data-gate-label]:hover .fhd-gate-number,
.fhd-figma-bodygraph [data-gate-label]:focus-visible .fhd-gate-number,
.fhd-figma-bodygraph [data-planet-row]:hover text,
.fhd-figma-bodygraph [data-planet-row]:focus-visible text {
    filter: drop-shadow(0 0 18px rgba(97, 56, 138, 0.78));
}

.fhd-figma-bodygraph [data-center-shape]:hover,
.fhd-figma-bodygraph [data-center-shape]:focus-visible {
    filter: brightness(1.04) drop-shadow(0 16px 22px rgba(67, 39, 82, 0.2));
}

.fhd-bodygraph-viewer.is-temporal-hidden .fhd-temporal-overlay,
.fhd-bodygraph-viewer.is-temporal-hidden [data-temporal-gate-circle],
.fhd-bodygraph-viewer.is-temporal-hidden [data-mandala-temporal-gate],
.fhd-bodygraph-viewer.is-temporal-hidden .fhd-mandala-planet[data-temporal="true"] {
    opacity: 0;
    pointer-events: none;
}

.fhd-bodygraph-viewer.is-temporal-hidden [data-gate-label].is-temporal-active:not(.is-natal-active) .fhd-gate-number {
    fill: #0d0b0e;
}

.fhd-bodygraph-loading {
    display: grid;
    min-height: 520px;
    color: var(--fhd-muted);
    font-size: 14px;
    place-items: center;
}

.fhd-bodygraph-pan-hint {
    display: none;
    margin: 0;
    padding: 10px 18px 14px;
    color: var(--fhd-muted);
    background: #fbfafc;
    border-top: 1px solid var(--fhd-border);
    font-size: 12px;
    text-align: center;
}

.fhd-mobile-map-zoom {
    display: none;
}

.fhd-bodygraph-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.uk-light .fhd-bodygraph-viewer {
    --fhd-bg: #19171d;
    --fhd-surface: #242128;
    --fhd-ink: #f7f3fa;
    --fhd-muted: #b9b2bf;
    --fhd-border: #3b3540;
    --fhd-brand: #8a56ad;
    --fhd-brand-hover: #9963ba;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body.uk-light .fhd-bodygraph-stage,
body.uk-light .fhd-bodygraph-pan-hint {
    background: #f8f6fa;
}

body.uk-light .fhd-mandala-filters {
    background: transparent;
}

body.uk-light .fhd-mandala-filters button {
    color: var(--fhd-ink);
    background: #302c35;
    border-color: #4a4350;
}

body.uk-light .fhd-mandala-controlbar {
    background: linear-gradient(135deg, rgba(138, 86, 173, 0.2), rgba(36, 33, 40, 0.96) 42%);
}

body.uk-light .fhd-mandala-layer-panel,
body.uk-light .fhd-mandala-layer-switch,
body.uk-light .fhd-mandala-inspector {
    background: #242128;
}

body.uk-light .fhd-mandala-layer-switch {
    border-color: #453e49;
}

body.uk-light .fhd-mandala-layer-switch:hover,
body.uk-light .fhd-mandala-layer-switch:focus-visible {
    background: #302b34;
    border-color: #9f82b3;
}

body.uk-light .fhd-mandala-layer-actions button {
    color: #eadff0;
    background: #302c35;
    border-color: #4a4350;
}

body.uk-light .fhd-mandala-layer-disclosure {
    color: #eadff0;
    background: #302c35;
    border-color: #4a4350;
}

body.uk-light .fhd-mandala-controlbar > .fhd-mandala-layer-switch.is-temporal {
    background: rgba(45, 174, 91, 0.14);
    border-color: rgba(72, 200, 117, 0.52);
}

body.uk-light .fhd-mandala-explorer select,
body.uk-light .fhd-mandala-explorer button {
    color: var(--fhd-ink);
    background: #302c35;
    border-color: #4a4350;
}

.fhd-mandala-viewport:fullscreen {
    display: grid;
    width: 100vw;
    height: 100vh;
    padding: 0;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    place-items: center;
}

.fhd-mandala-viewport:fullscreen .fhd-mandala-scene {
    position: relative;
    inset: auto;
    width: min(100vw, 100vh);
    height: min(100vw, 100vh);
}

@media (min-width: 1240px) {
    .fhd-figma-bodygraph {
        min-width: 0;
        max-width: 1320px;
    }
}

@media (max-width: 959px) {
    .fhd-bodygraph-heading,
    .fhd-bodygraph-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .fhd-bodygraph-legend {
        justify-content: flex-start;
    }

    .fhd-temporal-toggle {
        width: 100%;
        min-width: 0;
    }

    .fhd-figma-bodygraph {
        min-width: 0;
        max-width: 100%;
    }

    .fhd-export-button {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .fhd-mandala-layer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fhd-mandala-visual-layout {
        grid-template-columns: 1fr;
    }

    .fhd-mandala-inspector {
        position: static;
    }
}

@media (max-width: 639px) {
    .fhd-bodygraph-viewer {
        margin: 14px -8px 24px;
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        border-radius: 20px;
    }

    .fhd-bodygraph-toolbar {
        gap: 14px;
        padding: 18px 14px 16px;
    }

    .fhd-export-dialog form {
        padding: 22px 18px;
    }

    .fhd-export-options {
        grid-template-columns: 1fr;
    }

    .fhd-bodygraph-tabs {
        display: flex;
        padding: 4px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .fhd-bodygraph-tab {
        flex: 0 0 auto;
        min-width: 108px;
        scroll-snap-align: start;
    }

    .fhd-bodygraph-stage {
        min-height: 0;
        padding: 18px 10px 20px;
    }

    .fhd-figma-bodygraph {
        min-width: 0;
        max-width: 100%;
    }

    .fhd-bodygraph-viewer.is-mobile-map-zoomed .fhd-figma-bodygraph {
        width: 780px;
        max-width: none;
        min-width: 780px;
    }

    .fhd-mobile-map-zoom {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 9px 14px;
        color: var(--fhd-brand);
        background: #fff;
        border: 1px solid #cbb7da;
        border-radius: 12px;
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }

    .fhd-mobile-map-zoom:focus-visible {
        outline: 3px solid rgba(97, 56, 138, 0.28);
        outline-offset: 2px;
    }

    .fhd-bodygraph-pan-hint {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 7px 12px;
        padding: 12px;
    }

    .fhd-bodygraph-pan-hint span {
        max-width: 210px;
        text-align: left;
    }

    .fhd-bodygraph-viewer[data-active-mode="mandala"] .fhd-bodygraph-pan-hint {
        display: none;
    }

    .fhd-mandala-canvas {
        min-width: 0;
    }

    .fhd-mandala-filters {
        justify-content: flex-start;
    }

    .fhd-mandala-controlbar,
    .fhd-mandala-layer-panel {
        width: 100%;
        max-width: none;
    }

    .fhd-mandala-layer-heading {
        align-items: center;
        flex-direction: row;
    }

    .fhd-mandala-explorer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fhd-mandala-explorer button {
        width: 100%;
    }

    .fhd-mandala-inspector {
        width: 100%;
        max-width: none;
    }

    .fhd-mandala-layer-actions {
        justify-content: flex-start;
    }

    .fhd-mandala-filter-hint {
        flex-basis: 100%;
        padding: 0 3px;
    }

    .fhd-mandala-zoom {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        flex-basis: 100%;
        width: 100%;
        margin-left: 0;
        padding-top: 7px;
        padding-left: 0;
        border-top: 1px solid var(--fhd-border);
        border-left: 0;
    }

    .fhd-mandala-zoom button,
    .fhd-mandala-zoom .fhd-mandala-zoom-value {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding-right: 5px;
        padding-left: 5px;
        white-space: normal;
    }

    .fhd-mandala-zoom [data-mandala-fullscreen] {
        grid-column: span 2;
    }

    .fhd-mandala-filter-hint {
        white-space: normal;
    }

}

.fhd-pair-viewer {
    --fhd-pair-a: #00be45;
    --fhd-pair-b: #0878dc;
    margin-top: 18px;
}

.fhd-pair-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 24px;
    align-items: center;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--fhd-border);
}

.fhd-pair-title h2 {
    margin: 0;
    color: var(--fhd-ink);
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 780;
    line-height: 1.12;
}

.fhd-pair-detail {
    margin: 5px 0 0;
    color: var(--fhd-muted);
    font-size: 13px;
    font-weight: 650;
}

.fhd-pair-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 15px;
    max-width: 460px;
    color: var(--fhd-muted);
    font-size: 12px;
    font-weight: 700;
}

.fhd-pair-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.fhd-pair-legend i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--fhd-pair-a);
    box-shadow: 0 0 0 4px rgba(0, 190, 69, 0.12);
}

.fhd-pair-legend .is-b i {
    background: var(--fhd-pair-b);
    box-shadow: 0 0 0 4px rgba(8, 120, 220, 0.12);
}

.fhd-pair-tabs {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    background: #f2edf5;
    border: 1px solid var(--fhd-border);
    border-radius: 16px;
}

.fhd-pair-tab {
    min-height: 46px;
    padding: 8px 14px;
    color: #655b69;
    background: transparent;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fhd-pair-tab:hover {
    color: var(--fhd-ink);
    background: rgba(255, 255, 255, 0.68);
}

.fhd-pair-tab:focus-visible {
    outline: 3px solid rgba(97, 56, 138, 0.28);
    outline-offset: 2px;
}

.fhd-pair-tab.is-active {
    color: var(--fhd-brand);
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(60, 37, 74, 0.12);
}

.fhd-pair-layout {
    display: grid;
    grid-template-columns: minmax(238px, 0.76fr) minmax(390px, 1.52fr) minmax(238px, 0.76fr);
    gap: 14px;
    align-items: stretch;
    padding: 18px;
    background:
        radial-gradient(circle at 50% 48%, rgba(97, 56, 138, 0.075), transparent 31%),
        linear-gradient(180deg, #fbf9fc 0%, #f5f1f7 100%);
}

.fhd-pair-planet-rail {
    align-self: center;
    min-width: 0;
    padding: 15px 13px 13px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--fhd-border);
    border-radius: 20px;
    box-shadow: 0 15px 36px rgba(54, 34, 65, 0.08);
    backdrop-filter: blur(10px);
}

.fhd-pair-planet-heading {
    position: relative;
    padding-top: 17px;
}

.fhd-pair-planet-heading::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fhd-pair-a);
    box-shadow: 0 0 0 5px rgba(0, 190, 69, 0.11);
    content: '';
    transform: translateX(-50%);
}

.fhd-pair-planet-rail.is-b .fhd-pair-planet-heading::before {
    background: var(--fhd-pair-b);
    box-shadow: 0 0 0 5px rgba(8, 120, 220, 0.11);
}

.fhd-pair-planet-heading h3 {
    overflow: hidden;
    margin: 2px 0 8px;
    color: var(--fhd-ink);
    font-size: 17px;
    font-weight: 780;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fhd-pair-planet-heading p {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 5px;
    color: #958c98;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.fhd-pair-planet-rows {
    display: grid;
    gap: 2px;
}

.fhd-pair-planet-row {
    display: grid;
    grid-template-columns: minmax(54px, 1fr) 36px minmax(54px, 1fr);
    gap: 5px;
    align-items: center;
    min-height: 38px;
    padding: 2px 0;
    border-top: 1px solid rgba(233, 226, 237, 0.68);
}

.fhd-pair-planet-row:first-child {
    border-top: 0;
}

.fhd-pair-planet-glyph {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #969296;
    background: #f5f3f5;
    border: 1px solid #ece8ed;
    border-radius: 50%;
    font-family: "Times New Roman", "DejaVu Serif", serif;
    font-size: 22px;
    line-height: 1;
}

.fhd-pair-planet-value {
    display: flex;
    gap: 3px;
    align-items: center;
    min-width: 0;
    padding: 5px 2px;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.fhd-pair-planet-value.is-design {
    justify-content: flex-end;
    color: #f34337;
    text-align: right;
}

.fhd-pair-planet-value.is-personality {
    justify-content: flex-start;
    color: #171318;
    text-align: left;
}

.fhd-pair-planet-value:hover:not(:disabled),
.fhd-pair-planet-value:focus-visible:not(:disabled) {
    color: var(--fhd-brand);
}

.fhd-pair-planet-value:focus-visible {
    outline: 2px solid rgba(97, 56, 138, 0.32);
    outline-offset: 1px;
    border-radius: 6px;
}

.fhd-pair-planet-value:disabled {
    color: #cbc5cd;
    cursor: default;
}

.fhd-pair-fixation {
    color: currentColor;
    font-size: 7px;
    line-height: 1;
}

.fhd-pair-fixation.is-fall {
    opacity: 0.78;
}

.fhd-pair-graph {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 690px;
    padding: 4px;
}

.fhd-pair-bodygraph {
    display: block;
    width: 100%;
    height: auto;
    max-height: 760px;
    overflow: visible;
}

.fhd-pair-viewer .fhd-pair-bodygraph .fhd-channel-piece.is-owner-a,
.fhd-pair-viewer .fhd-pair-bodygraph .fhd-channel-piece.is-owner-a [fill]:not([fill="none"]) {
    fill: var(--fhd-pair-a) !important;
}

.fhd-pair-viewer .fhd-pair-bodygraph .fhd-channel-piece.is-owner-a[stroke]:not([stroke="none"]),
.fhd-pair-viewer .fhd-pair-bodygraph .fhd-channel-piece.is-owner-a [stroke]:not([stroke="none"]) {
    stroke: var(--fhd-pair-a) !important;
}

.fhd-pair-viewer .fhd-pair-bodygraph .fhd-channel-piece.is-owner-b,
.fhd-pair-viewer .fhd-pair-bodygraph .fhd-channel-piece.is-owner-b [fill]:not([fill="none"]) {
    fill: var(--fhd-pair-b) !important;
}

.fhd-pair-viewer .fhd-pair-bodygraph .fhd-channel-piece.is-owner-b[stroke]:not([stroke="none"]),
.fhd-pair-viewer .fhd-pair-bodygraph .fhd-channel-piece.is-owner-b [stroke]:not([stroke="none"]) {
    stroke: var(--fhd-pair-b) !important;
}

.fhd-pair-viewer[data-pair-mode="a"] .fhd-pair-planet-rail.is-b,
.fhd-pair-viewer[data-pair-mode="b"] .fhd-pair-planet-rail.is-a {
    display: none;
}

.fhd-pair-viewer[data-pair-mode="a"] .fhd-pair-layout {
    grid-template-columns: minmax(250px, 0.72fr) minmax(420px, 1.55fr);
}

.fhd-pair-viewer[data-pair-mode="b"] .fhd-pair-layout {
    grid-template-columns: minmax(420px, 1.55fr) minmax(250px, 0.72fr);
}

.fhd-pair-legacy-summary {
    width: 100% !important;
    max-width: none !important;
}

body.uk-light .fhd-pair-layout {
    background:
        radial-gradient(circle at 50% 48%, rgba(154, 107, 184, 0.16), transparent 31%),
        linear-gradient(180deg, #211925 0%, #18121b 100%);
}

body.uk-light .fhd-pair-planet-rail {
    background: rgba(45, 35, 49, 0.91);
    border-color: rgba(255, 255, 255, 0.12);
}

body.uk-light .fhd-pair-planet-glyph {
    color: #b8b1ba;
    background: #302733;
    border-color: rgba(255, 255, 255, 0.08);
}

body.uk-light .fhd-pair-planet-value.is-personality {
    color: #ffffff;
}

@media (max-width: 1099px) {
    .fhd-pair-layout {
        grid-template-columns: minmax(210px, 0.8fr) minmax(340px, 1.35fr) minmax(210px, 0.8fr);
        gap: 8px;
        padding: 12px;
    }

    .fhd-pair-planet-rail {
        padding-right: 8px;
        padding-left: 8px;
    }

    .fhd-pair-planet-value {
        font-size: 12px;
    }

    .fhd-pair-graph {
        min-height: 600px;
    }
}

.fhd-pair-summary-switcher {
    margin-top: 18px;
}

.fhd-pair-summary-switcher .fhd-pair-legacy-summary,
.fhd-pair-legacy-summary {
    width: 100% !important;
}

@media (max-width: 899px) {
    .fhd-pair-layout,
    .fhd-pair-viewer[data-pair-mode="a"] .fhd-pair-layout,
    .fhd-pair-viewer[data-pair-mode="b"] .fhd-pair-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fhd-pair-graph {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 0;
    }

    .fhd-pair-viewer .fhd-pair-bodygraph {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: none;
    }

    .fhd-pair-viewer[data-pair-mode="b"] .fhd-pair-planet-rail.is-b {
        grid-column: 1 / -1;
    }

    .fhd-pair-viewer[data-pair-mode="a"] .fhd-pair-planet-rail.is-a {
        grid-column: 1 / -1;
    }
}

@media (max-width: 639px) {
    .fhd-pair-toolbar {
        grid-template-columns: 1fr;
        padding: 18px 14px 14px;
    }

    .fhd-pair-legend {
        justify-content: flex-start;
    }

    .fhd-pair-tabs {
        display: flex;
        grid-column: 1;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x proximity;
    }

    .fhd-pair-zoom-button {
        grid-column: 1;
        justify-self: start;
    }

    .fhd-pair-tabs::-webkit-scrollbar {
        display: none;
    }

    .fhd-pair-tab {
        flex: 0 0 auto;
        min-width: 140px;
        scroll-snap-align: start;
    }

    .fhd-pair-layout,
    .fhd-pair-viewer[data-pair-mode="a"] .fhd-pair-layout,
    .fhd-pair-viewer[data-pair-mode="b"] .fhd-pair-layout {
        grid-template-columns: 1fr;
        padding: 8px;
    }

    .fhd-pair-graph {
        grid-column: 1;
        min-height: 0;
        overflow: hidden;
    }

    .fhd-pair-viewer .fhd-pair-bodygraph {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: none;
    }

    .fhd-pair-viewer.is-mobile-map-zoomed .fhd-pair-graph {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .fhd-pair-viewer.is-mobile-map-zoomed .fhd-pair-bodygraph {
        width: 780px;
        min-width: 780px;
        max-width: none;
    }

    .fhd-pair-planet-rail,
    .fhd-pair-viewer[data-pair-mode="a"] .fhd-pair-planet-rail.is-a,
    .fhd-pair-viewer[data-pair-mode="b"] .fhd-pair-planet-rail.is-b {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fhd-bodygraph-viewer *,
    .fhd-bodygraph-viewer *::before,
    .fhd-bodygraph-viewer *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
