/* Futurating professional frontend editor */
.frfp-editor {
    position: relative;
    overflow: visible;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.frfp-editor:focus-within {
    border-color: var(--border);
    box-shadow: none;
}

.frfp-toolbar {
    position: relative;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: 46px;
    padding: 5px 7px;
    overflow-x: auto;
    overflow-y: visible;
    border-bottom: 1px solid var(--border);
    border-radius: 11px 11px 0 0;
    background: var(--secondary);
    scrollbar-width: none;
}

.frfp-toolbar::-webkit-scrollbar {
    display: none;
}

.frfp-btn,
.frfp-heading-toggle,
.frfp-table-toggle {
    flex: 0 0 auto;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: transparent;
    color: var(--foreground);
    font-size: 14px;
    line-height: 1;
    transition: background .18s ease, color .18s ease;
}

.frfp-btn:hover,
.frfp-btn.is-active,
.frfp-heading-toggle:hover,
.frfp-heading-toggle.is-active,
.frfp-heading-dropdown.is-open .frfp-heading-toggle,
.frfp-table-toggle:hover,
.frfp-table-toggle[aria-expanded="true"] {
    background: #fff;
    color: var(--foreground);
}

.frfp-btn:focus-visible,
.frfp-heading-toggle:focus-visible,
.frfp-table-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.frfp-btn:disabled,
.frfp-heading-toggle:disabled,
.frfp-table-toggle:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.frfp-btn .fr-icon,
.frfp-heading-toggle .fr-icon,
.frfp-table-toggle .fr-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.frfp-heading-toggle .fr-icon:last-child,
.frfp-table-toggle .fr-icon:last-child {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
}

.frfp-toolbar-sep {
    flex: 0 0 1px;
    width: 1px;
    height: 26px;
    margin: 0 3px;
    background: var(--border);
}

.frfp-heading-dropdown,
.frfp-table-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.frfp-heading-menu {
    position: fixed;
    left: auto;
    top: auto;
    z-index: 10020;
    display: none;
    width: 156px;
    min-width: 0;
    max-width: calc(100vw - 24px);
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15,23,42,.14);
}

.frfp-heading-dropdown.is-open .frfp-heading-menu,
.frfp-heading-menu.is-open {
    display: block;
}

.frfp-heading-menu button {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--foreground);
    text-align: left;
    font-size: 14px;
    line-height: 1.35;
}

.frfp-heading-menu button:hover,
.frfp-heading-menu button.is-active {
    background: var(--secondary);
}

.frfp-heading-menu button.is-active {
    color: var(--foreground);
}

.frfp-format-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.frfp-editor-area {
    min-height: 360px;
    max-height: min(68vh, 820px);
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    outline: 0;
    border-radius: 0 0 11px 11px;
    background: #fff;
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    cursor: text;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.frfp-editor-area > *:first-child {
    margin-top: 0;
}

.frfp-editor-area > *:last-child {
    margin-bottom: 0;
}

.frfp-editor-area p {
    margin: 0 0 1.1em;
}

.frfp-editor-area h2,
.frfp-editor-area h3 {
    font-family: var(--font-heading);
    color: #1a1a1a;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.01em;
}

.frfp-editor-area h2 {
    margin: 28px 0 12px;
    font-size: 24px;
}

.frfp-editor-area h3 {
    margin: 24px 0 12px;
    font-size: 20px;
}

.frfp-editor-area ul,
.frfp-editor-area ol {
    margin: 16px 0 20px 20px;
    padding-left: 18px;
    color: #3a3a3a;
    line-height: 1.7;
}

.frfp-editor-area li {
    margin: 0;
    padding-left: .2em;
}

.frfp-editor-area li + li {
    margin-top: .45em;
}

.frfp-editor-area blockquote {
    margin: 24px 0;
    padding: 16px 18px;
    border-left: 2px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--secondary);
    color: #3a3a3a;
    font-family: var(--font-heading);
    font-size: clamp(18px,2.4vw,20px);
    line-height: 1.5;
    font-weight: 500;
    font-style: normal;
}

.frfp-editor-area blockquote p {
    margin-bottom: .75em;
}

.frfp-editor-area blockquote p:last-child {
    margin-bottom: 0;
}

.frfp-editor-area blockquote cite {
    display: block;
    margin-top: 12px;
    color: var(--muted-foreground);
    font-family: var(--font-body);
    font-size: 14px;
    font-style: normal;
}

.frfp-editor-area a {
    color: var(--accent);
    text-decoration: none;
}

.frfp-editor-area a:hover {
    text-decoration: underline;
}

.frfp-editor-area::-webkit-scrollbar {
    width: 8px;
}

.frfp-editor-area::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #d6d6d6;
}

.frfp-editor-area::-webkit-scrollbar-track {
    background: transparent;
}

.frfp-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 12px;
    line-height: 16px;
}

.frfp-editor-embed {
    position: relative;
}

.frfp-editor-embed__controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8;
    display: flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(26,26,26,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 24px rgba(15,23,42,.12);
}

.frfp-editor-embed__button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--foreground);
    transition: background-color .16s ease, color .16s ease;
}

.frfp-editor-embed__button:hover,
.frfp-editor-embed__button:focus-visible {
    background: var(--secondary);
    color: var(--foreground);
    outline: none;
}

.frfp-editor-embed__button--remove {
    color: #dc2626;
}

.frfp-editor-embed__button--remove:hover,
.frfp-editor-embed__button--remove:focus-visible {
    background: #fff0f0;
    color: #b91c1c;
}

.frfp-editor-embed__button .fr-icon {
    width: 16px;
    height: 16px;
}

.frfp-editor-area figure.frfp-media-block,
.frfp-editor-area .frfp-gallery {
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
}

.frfp-editor-area .frfp-gallery {
    user-select: none;
}

.frfp-editor-area .frfp-gallery__viewport {
    aspect-ratio: 16 / 9;
}

.frfp-editor-area .frfp-gallery__track,
.frfp-editor-area .frfp-gallery__slide {
    height: 100%;
}

.frfp-editor-area .frfp-gallery figcaption {
    user-select: text;
}

.frfp-editor-area .frfp-media-frame {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: var(--secondary);
}

.frfp-editor-area figure.frfp-media-block img,
.frfp-editor-area figure.frfp-media-block video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    transform: none;
    filter: none;
    cursor: default;
}

.frfp-editor-area figure.frfp-media-block figcaption,
.frfp-editor-area .frfp-gallery figcaption {
    min-height: 20px;
    margin: 8px 8px 0;
    outline: 0;
    color: var(--muted-foreground);
    font-size: 14px;
    line-height: 1.45;
    font-style: normal;
    text-align: center;
}

.frfp-editor-area figcaption:empty::before {
    content: attr(data-placeholder);
    color: #aaa;
}

.frfp-editor-area .frfp-gallery__arrow,
.frfp-editor-area .frfp-gallery__dots button {
    pointer-events: auto;
}

.frfp-poll-editor-meta {
    display: block;
    margin-top: 12px;
    color: var(--muted-foreground);
    font-size: 12px;
    line-height: 16px;
}

.upload-placeholder {
    margin: 20px 0;
    padding: 18px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: var(--secondary);
    color: var(--muted-foreground);
    font-size: 14px;
}

.progress-container {
    height: 6px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border);
}

.progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width .15s linear;
}

/* Floating selection toolbar */
.frfp-selection-toolbar {
    position: fixed;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    overflow: visible;
    border: 1px solid rgba(26,26,26,.1);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15,23,42,.18);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .12s ease, transform .12s ease;
}

.frfp-selection-toolbar[hidden] {
    display: none;
}

.frfp-selection-toolbar.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.frfp-selection-format {
    position: relative;
    flex: 0 0 auto;
}

.frfp-selection-format__toggle {
    width: auto;
    min-width: 42px;
    padding-inline: 7px 5px;
    gap: 1px;
}

.frfp-selection-format__toggle .fr-icon:last-child {
    width: 11px;
    height: 11px;
}

.frfp-selection-format__menu {
    position: absolute;
    left: 0;
    top: calc(100% + 7px);
    z-index: 2;
    width: 190px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15,23,42,.16);
}

.frfp-selection-format__menu[hidden] {
    display: none;
}

.frfp-selection-toolbar.is-menu-above .frfp-selection-format__menu {
    top: auto;
    bottom: calc(100% + 7px);
}

.frfp-selection-format__menu button {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--foreground);
    text-align: left;
    font-size: 14px;
    line-height: 1.35;
}

.frfp-selection-format__menu button:hover,
.frfp-selection-format__menu button.is-active {
    background: var(--secondary);
}

.frfp-selection-format__menu button.is-active {
    color: var(--foreground);
}

.frfp-pro-icon-button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--foreground);
}

.frfp-pro-icon-button:hover {
    background: var(--secondary);
    color: var(--foreground);
}

.frfp-pro-icon-button.is-active {
    background: var(--secondary);
    color: var(--foreground);
}

.frfp-pro-icon-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.frfp-pro-icon-button .fr-icon {
    width: 16px;
    height: 16px;
}

/* Editor dialogs */
.frfp-pro-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    box-sizing: border-box;
    display: flex;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: auto;
    overscroll-behavior: contain;
    background: rgba(15,23,42,.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

.frfp-pro-overlay[hidden] {
    display: none;
}

.frfp-pro-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.frfp-pro-dialog {
    box-sizing: border-box;
    width: min(100%, 620px);
    max-width: 100%;
    max-height: calc(100vh - 48px);
    max-height: min(760px, calc(100dvh - 48px));
    margin: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    color: var(--foreground);
    box-shadow: 0 24px 80px rgba(15,23,42,.2);
}

.frfp-link-dialog {
    width: min(100%, 520px);
}

.frfp-gallery-dialog {
    width: min(100%, 720px);
}

.frfp-media-upload-dialog {
    width: min(100%, 720px);
}

.frfp-image-upload-dialog .frfp-file {
    margin: 0;
    box-sizing: border-box;
}

.frfp-image-upload-dialog.frfp-pro-dialog:focus {
    outline: none;
}

.frfp-image-upload-dialog .frfp-file__icons {
    margin-bottom: 10px;
}

.frfp-image-upload-dialog .frfp-file__icons .fr-icon,
.frfp-image-upload-dialog .frfp-file__icons svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
}

.frfp-media-upload-tip {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 11px;
    background: #f7faff;
    color: var(--muted-foreground);
    font-size: 12px;
    line-height: 18px;
}

.frfp-media-upload-tip--neutral {
    background: var(--secondary);
}

.frfp-media-upload-tip .fr-icon,
.frfp-media-upload-tip svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 1px;
    stroke: currentColor;
}

.frfp-media-upload-single {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.frfp-media-upload-single__icon {
    width: 48px;
    height: 48px;
}

.frfp-media-upload-single p {
    margin: 4px 0 0;
    color: var(--muted-foreground);
    font-size: 13px;
    line-height: 19px;
}

.frfp-media-upload-dialog .frfp-pro-actions {
    margin-top: 18px;
}

.frfp-media-upload-dialog .frfp-pro-primary {
    gap: 7px;
}

.frfp-media-upload-dialog .frfp-pro-primary .fr-icon,
.frfp-media-upload-dialog .frfp-pro-primary svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
}

.frfp-template-dialog,
.frfp-related-dialog {
    width: min(100%, 672px);
}

.frfp-pro-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
    padding: 0;
}

.frfp-pro-dialog__header h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.frfp-pro-dialog__close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--muted-foreground);
    line-height: 1;
}

.frfp-pro-dialog__close:hover {
    background: var(--secondary);
    color: var(--foreground);
}

.frfp-pro-dialog__close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.frfp-pro-dialog__close .fr-icon,
.frfp-pro-dialog__close svg {
    width: 20px;
    height: 20px;
}

.frfp-pro-dialog__body {
    min-height: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.frfp-pro-field {
    margin-bottom: 18px;
}

.frfp-pro-field > label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: var(--foreground);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.frfp-pro-field input,
.frfp-pro-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--foreground);
    outline: 0;
    font-size: 14px;
}

.frfp-pro-field input:focus,
.frfp-pro-field select:focus,
.frfp-pro-field textarea:focus {
    border-color: var(--border);
    box-shadow: none;
    outline: 0;
}

.frfp-pro-field small,
.frfp-field-count {
    color: var(--muted-foreground);
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
}

.frfp-pro-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--foreground);
    font-size: 14px;
    line-height: 20px;
}

.frfp-pro-check input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--accent);
}

.frfp-pro-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

/* Editorial recommendations reuse the editor's dialog and button system. */
.ftr-core-editorial-dialog .ftr-core-editorial-intro {
    margin: 0 0 18px;
    color: var(--muted-foreground);
    font-size: 14px;
    line-height: 1.5;
}

.ftr-core-editorial-dialog .ftr-core-editorial-section + .ftr-core-editorial-section {
    margin-top: 22px;
}

.ftr-core-editorial-dialog .ftr-core-editorial-section > h4 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
}

.ftr-core-editorial-dialog .ftr-core-editorial-section > p {
    margin: 0 0 12px;
    color: var(--muted-foreground);
    font-size: 13px;
    line-height: 1.5;
}

.ftr-core-editorial-dialog .ftr-core-editorial-list {
    display: grid;
    gap: 10px;
}

.ftr-core-editorial-dialog .ftr-core-editorial-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-wrap: anywhere;
}

.ftr-core-editorial-dialog .ftr-core-editorial-type {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-radius: 7px;
    background: var(--accent-light);
    color: var(--accent-hover);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}

.ftr-core-editorial-dialog .ftr-core-editorial-card strong {
    display: block;
    line-height: 1.45;
}

.ftr-core-editorial-dialog .ftr-core-editorial-card p,
.ftr-core-editorial-dialog .ftr-core-editorial-card dl {
    margin: 8px 0 0;
    line-height: 1.5;
    font-size: 13px;
}

.ftr-core-editorial-dialog .ftr-core-editorial-card dt {
    color: var(--muted-foreground);
    font-size: 12px;
}

.ftr-core-editorial-dialog .ftr-core-editorial-card dd {
    margin: 2px 0 0;
}

.ftr-core-editorial-dialog .ftr-core-editorial-card dl > div + div {
    margin-top: 8px;
}

.ftr-core-editorial-dialog .ftr-core-editorial-card > button {
    margin-top: 12px;
}

.ftr-core-editorial-dialog .ftr-core-editorial-card > .frfp-pro-primary {
    gap: 7px;
}

.ftr-core-editorial-dialog .ftr-core-editorial-card > .frfp-pro-primary .fr-icon,
.ftr-core-editorial-dialog .ftr-core-editorial-card > .frfp-pro-primary svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    stroke: currentColor;
}

.ftr-core-editorial-dialog .ftr-core-editorial-card > .frfp-pro-primary.is-added {
    background: var(--accent-light);
    color: var(--accent-hover);
    cursor: default;
}

/* Prepublication links share the manual Core card layout and controls. */
.ftr-core-editorial-dialog .ftr-core-linking-card {
    min-width: 0;
    overflow-wrap: anywhere;
}
.ftr-core-editorial-dialog .ftr-core-linking-card__top > div {
    min-width: 0;
}
.ftr-core-editorial-dialog .ftr-core-linking-card__actions {
    margin-top: 12px;
}
.ftr-core-editorial-dialog .ftr-core-linking-card__actions .ftr-core-linking-insert {
    gap: 7px;
    color: #fff;
}
.ftr-core-editorial-dialog .ftr-core-linking-card__actions .ftr-core-linking-insert .fr-icon,
.ftr-core-editorial-dialog .ftr-core-linking-card__actions .ftr-core-linking-insert svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    color: inherit;
    stroke: currentColor;
}
.ftr-core-editorial-dialog .ftr-core-linking-card__actions .ftr-core-linking-insert svg :where(path, circle, rect, line, polyline, polygon, ellipse) {
    stroke: currentColor;
}
.ftr-core-editorial-dialog .ftr-core-linking-card__actions .ftr-core-linking-insert.is-added,
.ftr-core-editorial-dialog .ftr-core-linking-card__actions .ftr-core-linking-insert.is-added:is(:hover,:focus-visible) {
    border: 0;
    background: #eef9f1;
    color: #247a45;
    opacity: 1;
    box-shadow: none;
    cursor: default;
}
.ftr-core-editorial-dialog .ftr-core-editorial-card > .ftr-core-editorial-project-undo {
    margin-left: 8px;
    gap: 7px;
}
.ftr-core-editorial-dialog .ftr-core-editorial-card > .ftr-core-editorial-project-undo svg,
.ftr-core-editorial-dialog .ftr-core-editorial-card > .ftr-core-editorial-project-undo .fr-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    stroke: currentColor;
}
@media (max-width: 480px) {
    .ftr-core-editorial-dialog .ftr-core-editorial-card > .ftr-core-editorial-project-undo {
        margin-left: 0;
    }
}
.ftr-core-editorial-dialog .ftr-core-linking-card__actions .ftr-core-linking-undo {
    gap: 7px;
}
.ftr-core-editorial-dialog .ftr-core-linking-card__actions .ftr-core-linking-undo .fr-icon,
.ftr-core-editorial-dialog .ftr-core-linking-card__actions .ftr-core-linking-undo svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    stroke: currentColor;
}


.frfp-pro-primary,
.frfp-pro-secondary {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.frfp-pro-primary {
    background: var(--accent);
    color: #fff;
}

.frfp-pro-primary:hover {
    background: var(--accent-hover);
}

.frfp-pro-secondary {
    background: var(--secondary);
    color: var(--foreground);
}

.frfp-pro-secondary:hover {
    background: var(--border);
}

.frfp-pro-error,
.frfp-pro-note {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 18px;
}

.frfp-pro-error {
    background: #fef2f2;
    color: #b91c1c;
}

.frfp-pro-note {
    background: #fff7ed;
    color: #9a3412;
}

.frfp-pro-help {
    margin: 0 0 16px;
    color: var(--muted-foreground);
    font-size: 14px;
    line-height: 20px;
}

.frfp-gallery-editor-list {
    display: grid;
    gap: 8px;
}

.frfp-gallery-editor-item {
    display: grid;
    grid-template-columns: 20px 88px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.frfp-gallery-editor-item__grip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.frfp-gallery-editor-item__grip:active {
    cursor: grabbing;
}

.frfp-gallery-editor-item__grip .fr-icon,
.frfp-gallery-editor-item__grip svg {
    width: 16px;
    height: 16px;
}

.frfp-gallery-editor-item.is-dragging {
    opacity: .55;
}

.frfp-gallery-editor-item.is-drop-target {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.frfp-gallery-editor-item > img {
    display: block;
    width: 88px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--secondary);
}

.frfp-gallery-editor-item__text {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.frfp-gallery-editor-item__text strong,
.frfp-gallery-editor-item__text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frfp-gallery-editor-item__text strong {
    font-size: 14px;
    line-height: 19px;
}

.frfp-gallery-editor-item__text span {
    color: var(--muted-foreground);
    font-size: 12px;
    line-height: 16px;
}

.frfp-gallery-editor-item__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.frfp-gallery-editor-item__actions button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: var(--foreground);
}

.frfp-gallery-editor-item__actions button:hover:not(:disabled) {
    background: var(--border);
}

.frfp-gallery-editor-item__actions button.is-danger {
    color: #b91c1c;
}

.frfp-gallery-editor-item__actions button:disabled {
    opacity: .35;
    cursor: default;
}

.frfp-gallery-editor-item__actions .fr-icon {
    width: 16px;
    height: 16px;
}

.frfp-gallery-editor-status {
    min-height: 18px;
    margin: 10px 0 0;
    color: var(--muted-foreground);
    font-size: 12px;
    line-height: 18px;
}

.frfp-template-dialog .frfp-templates-list {
    display: grid;
    gap: 8px;
}

.frfp-template-dialog .frfp-template-item {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 12px;
    display: grid;
    gap: 5px;
    background: var(--secondary);
    color: var(--foreground);
    text-align: left;
}

.frfp-template-dialog .frfp-template-item:hover,
.frfp-template-dialog .frfp-template-item:focus-visible {
    background: var(--accent-light);
    outline: none;
}

.frfp-template-dialog .frfp-template-item-title,
.frfp-template-dialog .frfp-template-item-content {
    display: block;
}

.frfp-template-dialog .frfp-template-item-title {
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
}

.frfp-template-dialog .frfp-template-item-content {
    color: var(--muted-foreground);
    font-size: 13px;
    line-height: 18px;
}

.frfp-related-dialog .frfp-related-results {
    max-height: min(460px, 55dvh);
}

/* Table menu */
.frfp-table-menu {
    position: fixed;
    z-index: 10015;
    width: min(340px, calc(100vw - 16px));
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15,23,42,.16);
}

.frfp-table-menu[hidden] {
    display: none;
}

.frfp-table-menu__insert > strong,
.frfp-table-menu__caption {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
}

.frfp-table-menu__sizes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.frfp-table-menu__sizes label {
    color: var(--muted-foreground);
    font-size: 12px;
}

.frfp-table-menu__sizes input {
    width: 100%;
    height: 38px;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: 0;
}

.frfp-table-insert {
    width: 100%;
    margin-top: 12px;
}

.frfp-table-menu__context {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 5px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.frfp-table-menu__context[hidden] {
    display: none;
}

.frfp-table-menu__caption {
    grid-column: 1 / -1;
    margin-bottom: 3px;
}

.frfp-table-menu__context button {
    min-height: 36px;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    background: var(--secondary);
    color: var(--foreground);
    text-align: left;
    font-size: 12px;
    line-height: 16px;
}

.frfp-table-menu__context button:hover {
    background: var(--border);
}

.frfp-table-menu__context button.is-danger {
    color: #b91c1c;
}

.frfp-editor-area .frfp-content-table th:focus,
.frfp-editor-area .frfp-content-table td:focus {
    outline: 0;
}


.frfp-caret-anchor {
    display: inline;
    width: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: transparent;
    line-height: 0;
}

/* Poll editor */
.frfp-pro-poll-options {
    display: grid;
    gap: 8px;
}

.frfp-pro-poll-option {
    display: grid;
    grid-template-columns: 20px minmax(0,1fr) 32px 32px 32px;
    gap: 5px;
    align-items: center;
}

.frfp-pro-poll-option > input {
    min-width: 0;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: 0;
}

.frfp-pro-poll-option > input:focus {
    border-color: var(--border);
    box-shadow: none;
    outline: 0;
}

.frfp-pro-poll-grip {
    color: var(--muted-foreground);
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.frfp-pro-poll-grip:active {
    cursor: grabbing;
}

.frfp-pro-poll-option.is-dragging {
    opacity: .55;
}

.frfp-pro-poll-option.is-drop-target {
    border-radius: 9px;
    box-shadow: 0 0 0 2px var(--accent);
}

.frfp-pro-poll-grip .fr-icon {
    width: 16px;
    height: 16px;
}

.frfp-pro-poll-option button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: var(--muted-foreground);
}

.frfp-pro-poll-option button:hover:not(:disabled) {
    background: var(--border);
    color: var(--foreground);
}

.frfp-pro-poll-option button:disabled {
    opacity: .35;
    cursor: default;
}

.frfp-pro-poll-option button .fr-icon {
    width: 15px;
    height: 15px;
}

.frfp-pro-poll-add {
    margin-top: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.frfp-pro-poll-add:disabled {
    opacity: .45;
    cursor: default;
}

.frfp-pro-poll-settings {
    display: grid;
    grid-template-columns: minmax(160px,.6fr) minmax(0,1fr);
    gap: 18px;
    align-items: end;
}

.frfp-pro-poll-settings .frfp-pro-check {
    min-height: 44px;
    align-items: center;
    padding-bottom: 18px;
}

body.frfp-editor-modal-open,
html.frfp-editor-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .frfp-editor-area {
        min-height: 320px;
        max-height: calc(100dvh - 250px);
        padding: 18px 16px;
        font-size: 16px;
    }


    .frfp-toolbar {
        flex-wrap: nowrap;
        padding-inline: 5px;
    }

    .frfp-toolbar-sep {
        margin-inline: 2px;
    }

    .frfp-selection-toolbar {
        max-width: calc(100vw - 16px);
        overflow-x: auto;
    }

    .frfp-pro-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .frfp-pro-dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);
        padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
        border-radius: 20px 20px 0 0;
    }

    .frfp-pro-dialog__header {
        margin-bottom: 16px;
    }

    .ftr-core-editorial-dialog {
        margin: 0;
        max-height: calc(100dvh - max(24px, env(safe-area-inset-top)));
    }

    .frfp-pro-dialog__body {
        padding: 0;
    }

    .frfp-gallery-editor-item {
        grid-template-columns: 18px 64px minmax(0,1fr);
        gap: 8px;
    }

    .frfp-gallery-editor-item > img {
        width: 64px;
        height: 48px;
    }

    .frfp-gallery-editor-item__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .frfp-pro-poll-settings {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .frfp-pro-poll-settings .frfp-pro-check {
        min-height: 0;
        padding-bottom: 18px;
    }

    .frfp-pro-poll-option {
        grid-template-columns: minmax(0,1fr) 32px 32px 32px;
    }

    .frfp-pro-poll-grip {
        display: none;
    }

    .frfp-pro-actions > * {
        flex: 1 1 auto;
    }
}


@media (prefers-reduced-motion: reduce) {
    .frfp-editor,
    .frfp-btn,
    .frfp-heading-toggle,
    .frfp-table-toggle,
    .frfp-selection-toolbar,
    .frfp-pro-overlay,
    .progress-bar {
        transition: none;
    }
}


/* 4.0.133 — editor publication picker, table controls and neutral media */
.frfp-related-dialog {
    width: min(100%, 640px);
}

.frfp-related-tabs-shell {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 14px;
}

.frfp-related-tabs {
    margin-bottom: 0;
}

@media (max-width: 479px) {
    .frfp-related-tabs-shell { width: 100%; }
}

.frfp-related-search {
    position: relative;
    margin-bottom: 14px;
}

.frfp-related-search__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transform: translateY(-50%);
    pointer-events: none;
}

.frfp-related-search__icon .fr-icon,
.frfp-related-search__icon svg {
    width: 18px;
    height: 18px;
}

.frfp-related-search input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px 10px 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--foreground);
    box-shadow: none;
    outline: none;
    font: inherit;
}

.frfp-related-search input:focus {
    border-color: var(--border);
    box-shadow: none;
    outline: none;
}

.frfp-related-results {
    display: grid;
    gap: 8px;
    max-height: min(460px, 55dvh);
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.frfp-related-item {
    display: block;
    margin: 0;
    padding: 14px;
    border: 0;
    border-radius: 12px;
    background: var(--secondary);
    color: var(--foreground);
    cursor: pointer;
}

.frfp-related-item:hover,
.frfp-related-item:focus-visible {
    background: #ececec;
    outline: none;
}

.frfp-related-item-title {
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
}

.frfp-related-item-excerpt {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: var(--muted-foreground);
    font-size: 13px;
    line-height: 18px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.frfp-related-item-meta {
    margin-top: 7px;
    color: var(--muted-foreground);
    font-size: 12px;
    line-height: 16px;
}

.frfp-related-empty {
    padding: 28px 12px;
    color: var(--muted-foreground);
    text-align: center;
}

.frfp-editor-area .frfp-table-wrap.frfp-editor-embed {
    position: relative;
    padding-top: 0;
}

.frfp-editor-area .frfp-table-wrap.frfp-editor-embed > .frfp-editor-embed__controls {
    top: 8px;
    right: 8px;
}

.frfp-editor-area .frfp-related:hover,
.frfp-editor-area .frfp-related:focus-visible {
    background: #fff;
}

@media (max-width: 767px) {
    .frfp-related-dialog {
        width: 100%;
    }

    .frfp-related-results {
        max-height: 48dvh;
    }
}

@media (max-width: 767px) {
    .frfp-image-upload-dialog.frfp-pro-dialog {
        max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    }

    .frfp-image-upload-dialog .frfp-file {
        min-height: 146px;
        padding: 20px 16px;
    }
}

@media (max-width: 430px) {
    .frfp-image-upload-dialog.frfp-pro-dialog {
        padding-right: 16px;
        padding-left: 16px;
    }

    .frfp-image-upload-dialog .frfp-file {
        min-height: 136px;
        padding: 18px 14px;
    }

    .frfp-image-upload-dialog .frfp-file__hint {
        max-width: 310px;
        line-height: 1.45;
    }
}

@media (max-width: 640px) {

    .frfp-media-upload-single {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 11px;
        padding: 13px;
        border-radius: 12px;
    }

    .frfp-media-upload-single__icon {
        width: 42px;
        height: 42px;
    }

    .frfp-media-upload-tip {
        margin-top: 10px;
        padding: 10px;
    }

    .frfp-media-upload-dialog .frfp-pro-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 14px;
    }

    .ftr-core-editorial-dialog .ftr-core-editorial-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .ftr-core-editorial-dialog .ftr-core-editorial-actions > button {
        width: 100%;
    }

    .frfp-media-upload-dialog .frfp-pro-actions > * {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 380px) {
    .frfp-media-upload-single strong {
        font-size: 13px;
    }

    .frfp-media-upload-tip {
        font-size: 11px;
        line-height: 16px;
    }
}


/* Editorial pin controls use the same field rhythm as Advanced settings. */
.frfp-editorial-pin-control{
    display:grid;
    gap:14px;
}
.frfp-editorial-pin-check{
    cursor:pointer;
}
.frfp-editorial-pin-date{
    display:block;
    max-width:320px;
}
.frfp-editorial-pin-date .frfp-label{
    margin-bottom:8px;
}
.frfp-editorial-pin-date.is-disabled{
    opacity:.55;
}




/* /create/: Futuris drafting uses the existing controls and the editor's field rhythm. */
.frfp-futuris-compose { margin: 0 0 14px; }
.frfp-futuris-compose__heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.frfp-futuris-compose__heading > .frfp-label { margin: 0; }
.frfp-futuris-compose__heading .frfp-futuris-compose__switch { margin: 0; }
.frfp-futuris-compose__switch .frfp-horizon-mode-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.frfp-futuris-compose__switch .fr-lucide-icon,
.frfp-futuris-compose__generate .fr-lucide-icon { display: block; width: 16px; height: 16px; flex: 0 0 16px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.frfp-futuris-compose__panel { margin: 0; padding: 0; border: 0; background: transparent; }
.frfp-futuris-compose__panel[hidden],
.frfp-futuris-compose__progress[hidden],
.frfp-futuris-compose__feedback[hidden] { display: none; }
/* main.css sets .frfp-help margins; spacing belongs to the question group, not the help text. */
.frfp-futuris-compose__questions { display: grid; gap: 16px; margin-top: 18px; }
.frfp-futuris-compose__questions[hidden],
.frfp-develop-compose__state[hidden],
.frfp-develop-compose [data-frfp-develop-retry][hidden] { display: none; }
.frfp-futuris-compose__optional { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--muted-foreground); }
.frfp-develop-compose__state { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 16px 0 18px; color: var(--muted-foreground); font-size: 13px; line-height: 1.5; }
.frfp-develop-compose__state .frfp-action-btn { width: auto; min-height: 36px; }
.frfp-develop-compose__state .fr-lucide-icon { width: 16px; height: 16px; stroke-width: 1.5; }
.frfp-futuris-compose__question { min-width: 0; }
.frfp-futuris-compose__question textarea.frfp-input { display: block; box-sizing: border-box; width: 100%; min-height: 88px; padding: 11px 14px; resize: vertical; font-size: 14px; line-height: 1.5; }
.frfp-futuris-compose__actions { margin-top: 16px; }
.frfp-futuris-compose__format { min-width: 0; margin: 0; }
.frfp-futuris-compose__controls { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); align-items: stretch; gap: 12px; }
.frfp-futuris-compose__controls .frfp-project-select-wrap { width: 100%; min-width: 0; height: 48px; }
.frfp-futuris-compose__controls .frfp-project-select { display: block; box-sizing: border-box; height: 48px; min-height: 48px; }
.frfp-futuris-compose__format .frfp-project-select-icon .fr-lucide-icon { display: block; width: 18px; height: 18px; stroke-width: 1.5; }
.frfp-futuris-compose__format .frfp-project-select-chevron .fr-lucide-icon { display: block; width: 14px; height: 14px; stroke-width: 1.5; }
.frfp-futuris-compose__generate { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; width: 100%; height: 48px; min-height: 48px; margin: 0; white-space: nowrap; }
.frfp-futuris-compose__generate:disabled { cursor: wait; opacity: .65; }
.frfp-futuris-compose__note { margin: 12px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted-foreground); }
.frfp-futuris-compose__feedback { margin: 10px 0 0; font-size: 12px; color: var(--accent); }
.frfp-futuris-compose__feedback.is-error { color: var(--destructive, #ad3434); }
.frfp-futuris-compose__progress { margin-top: 14px; padding: 12px 14px; }
.frfp-futuris-compose__progress.is-busy .frfp-futuris-compose__track { overflow: hidden; }
.frfp-futuris-compose__progress.is-busy .frfp-auto-publish-progress__bar,
.frfp-auto-publish-progress.is-submitting .frfp-auto-publish-progress__bar { width: 33%; animation: frfpFuturisIndeterminate 1.8s ease-in-out infinite; }
.frfp-field.is-futuris-ai > .frfp-editor,
.frfp-field.is-futuris-ai > .frfp-text-ai-actions,
.frfp-field.is-futuris-ai > .frfp-help--before-editor { display: none; }
@keyframes frfpFuturisIndeterminate { 0% { transform: translateX(-100%); } 50% { transform: translateX(100%); } 100% { transform: translateX(310%); } }
@media (max-width: 767px) {
    .frfp-futuris-compose__switch .frfp-horizon-mode-btn { padding: 8px 12px; }
}
@media (max-width: 540px) {
    .frfp-futuris-compose__controls { grid-template-columns: minmax(0, 1fr); }
    .frfp-futuris-compose__controls .frfp-project-select-wrap { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .frfp-futuris-compose__progress.is-busy .frfp-auto-publish-progress__bar,
    .frfp-auto-publish-progress.is-submitting .frfp-auto-publish-progress__bar { animation: none; width: 55%; }
    .frfp-auto-publish-progress.is-submitting .frfp-auto-publish-progress__bar::after,
    .frfp-auto-publish-progress.is-submitting .frfp-auto-publish-progress__icon { animation: none; }
}

/* Shared segmented-control styling for the horizon selector and the publication
 * type switcher on /create/. Keep the shared tab markup and selection logic intact. */
.frfp-horizon-mode-switch,
.frfp-post-type-field .fr-section-tabs.frfp-type-buttons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    border-radius: 12px;
    background: var(--secondary);
}
.frfp-post-type-field .fr-section-tabs-shell {
    width: fit-content;
    max-width: 100%;
}
.frfp-post-type-field .fr-section-tabs.frfp-type-buttons {
    width: max-content;
    max-width: 100%;
    margin-bottom: 0;
}
.frfp-post-type-field .fr-section-tabs-shell::after,
.frfp-post-type-field .fr-section-tabs__scroll {
    display: none;
}
.frfp-horizon-mode-btn,
.frfp-post-type-field .fr-section-tabs.frfp-type-buttons .fr-section-tabs__item {
    min-height: 36px;
    border: 0;
    border-radius: 8px;
    padding: 7px 12px;
    background: transparent;
    box-shadow: none;
    color: var(--foreground);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.frfp-horizon-mode-btn:hover,
.frfp-post-type-field .fr-section-tabs.frfp-type-buttons .fr-section-tabs__item:hover {
    background: #fff;
}
.frfp-horizon-mode-btn.is-active,
.frfp-post-type-field .fr-section-tabs.frfp-type-buttons .fr-section-tabs__item.is-active {
    background: #fff;
    color: var(--foreground);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.frfp-horizon-mode-panel[hidden] { display: none; }
.frfp-horizon-exact-input .fr-icon { left: 14px; width: 18px; height: 18px; }
.frfp-horizon-exact-input .frfp-input { padding-left: 44px; }
.frfp-horizon-preview {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--foreground);
    font-size: 12px;
    line-height: 1.45;
}
.frfp-horizon-preview[hidden] { display: none; }
.frfp-horizon-preview .fr-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 1px;
    color: var(--accent);
}
@media (max-width: 767px) {
    /* All /create/ segmented controls remain on one swipeable row. */
    .frfp-horizon-mode-switch {
        box-sizing: border-box;
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
    }
    .frfp-horizon-mode-switch::-webkit-scrollbar { display: none; }
    .frfp-horizon-mode-switch .frfp-horizon-mode-btn {
        flex: 1 0 auto;
        white-space: nowrap;
        scroll-snap-align: start;
    }
    /* Retain the shared section-tabs scroll indicator and active-tab logic. */
    .frfp-post-type-field .fr-section-tabs-shell {
        width: 100%;
        overflow: hidden;
    }
    .frfp-post-type-field .fr-section-tabs.frfp-type-buttons {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }
    .frfp-post-type-field .fr-section-tabs.frfp-type-buttons .fr-section-tabs__item {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .frfp-post-type-field .fr-section-tabs-shell::after { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .frfp-horizon-mode-btn,
    .frfp-post-type-field .fr-section-tabs.frfp-type-buttons .fr-section-tabs__item {
        transition-duration: .01ms;
    }
}
