.fv-page {
    padding: 32px 0 60px;
}

.fv-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
}

.fv-heading h1 {
    margin: 6px 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.fv-overview {
    display: grid;
    grid-template-columns: minmax(360px, 1.15fr) 1fr;
    gap: 28px;
    align-items: center;
    margin: 24px 0 32px;
    padding: 22px;
    border: 1px solid #e2e7ee;
    border-radius: 14px;
    background: #f4f7fb;
}

.fv-gallery,
.fv-gallery__viewport,
.fv-gallery__track,
.fv-gallery__slide {
    min-width: 0;
}

.fv-gallery__viewport {
    position: relative;
    height: clamp(330px, 35vw, 455px);
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    touch-action: pan-y;
    outline: none;
}

.fv-gallery__viewport:focus-visible {
    outline: 3px solid #0077ff40;
    outline-offset: 3px;
}

.fv-gallery__track,
.fv-gallery__slide {
    width: 100%;
    height: 100%;
}

.fv-gallery__slide {
    position: relative;
    margin: 0;
    animation: fv-gallery-enter .24s ease both;
}

.fv-gallery__slide[hidden] {
    display: none;
}

.fv-gallery__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    user-select: none;
    -webkit-user-drag: none;
}

.fv-gallery__slide figcaption {
    position: absolute;
    top: 14px;
    left: 14px;
    margin: 0;
    padding: 7px 11px;
    border-radius: 999px;
    color: #243650;
    background: rgba(255, 255, 255, .82);
    font-size: .72rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.fv-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(208, 219, 232, .9);
    border-radius: 50%;
    color: #152a46;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 8px 22px rgba(22, 43, 72, .14);
    place-items: center;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.fv-gallery__arrow--previous { left: 12px; }
.fv-gallery__arrow--next { right: 12px; }

.fv-gallery__navigation {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 28px);
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 999px;
    color: #172a43;
    background: rgba(244, 247, 251, .78);
    box-shadow: 0 8px 26px rgba(21, 42, 67, .13);
    transform: translateX(-50%);
    backdrop-filter: blur(14px);
}

.fv-gallery__dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fv-gallery__dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #afb8c3;
    transition: width .2s ease, background .2s ease;
    cursor: pointer;
}

.fv-gallery__dots button.is-active {
    width: 24px;
    background: #151a20;
}

.fv-gallery__position {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: .69rem;
    font-weight: 800;
}

.fv-overview h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.fv-overview p {
    max-width: 760px;
    margin-bottom: 12px;
    color: #596a7e;
    font-size: .85rem;
}

.fv-total { font-size: .9rem; }

.fv-total strong {
    margin: 0 6px;
    color: var(--color-primary);
    font-size: 1.4rem;
}

.fv-config-heading {
    align-items: center;
    gap: 18px;
}

.fv-config-heading__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

.fv-compact-action,
.fv-icon-close {
    border: 1px solid #cbd7e5;
    color: #17314f;
    background: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.fv-compact-action {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: .74rem;
}

.fv-compact-action--primary {
    border-color: #183554;
    color: #fff;
    background: #183554;
}

.fv-icon-close {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef3f8;
    place-items: center;
    font-size: 1.25rem;
}

.fv-paste-panel {
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid #cfdbe8;
    border-radius: 14px;
    background: #eef3f8;
}

.fv-paste-panel[hidden] { display: none; }

.fv-paste-panel__heading,
.fv-paste-panel__footer,
.fv-size-dialog__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fv-paste-panel h3,
.fv-size-dialog h2 { margin: 0; }

.fv-paste-panel p {
    margin: 4px 0 0;
    color: #596a7e;
    font-size: .78rem;
}

.fv-paste-panel .fv-paste-format {
    margin: 15px 0 10px;
    line-height: 1.65;
}

.fv-paste-reference {
    display: grid;
    margin: 0 0 9px;
    padding: 9px 11px;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    gap: 9px 14px;
    border: 1px solid #d3deea;
    border-radius: 10px;
    color: #50637a;
    background: #f8fbfe;
    font-size: .7rem;
}

.fv-paste-reference strong {
    color: #263950;
    line-height: 1.55;
}

.fv-paste-reference code {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 14px;
    overflow: hidden;
    color: #53657a;
    font: inherit;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    line-height: 1.55;
}

.fv-paste-reference code span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
}

.fv-paste-panel textarea {
    width: 100%;
    min-height: 138px;
    resize: vertical;
    font: 16px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.fv-paste-panel__footer {
    justify-content: flex-start;
    margin-top: 10px;
}

#fv-paste-status:not(:empty) {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 9px;
    line-height: 1.5;
}

#fv-paste-status.is-error {
    border: 1px solid #e6a09a;
    color: #b42318;
    background: #fff0ef;
    font-weight: 800;
}

#fv-paste-status.is-error::before {
    content: '!';
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    color: #fff;
    background: #c62f24;
    place-items: center;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
}

#fv-paste-status.is-success {
    border: 1px solid #a9d7bf;
    color: #174d38;
    background: #e9f8f0;
    font-weight: 700;
}

.fv-row {
    min-width: 0;
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid #dce4ed;
    border-radius: 12px;
    background: #fff;
}

.fv-row.is-row-added {
    animation: fv-row-added .85s cubic-bezier(.2, .8, .2, 1);
}

.fv-row.is-row-confirmed {
    animation: fv-row-confirmed .75s ease-out;
}

.fv-row.is-row-opened {
    animation: fv-row-opened .7s ease-out;
}

[data-variant-row-count] { display: inline-block; }

[data-variant-row-count].is-changing {
    animation: fv-count-change .7s ease-out;
}

#fv-saved:not(:empty) {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 11px;
    border-radius: 9px;
    color: #174d38;
    background: #e9f8f0;
    font-weight: 700;
}

@keyframes fv-row-added {
    0% { opacity: 0; transform: translateY(24px) scale(.98); border-color: #2f74ff; box-shadow: 0 0 0 6px #2f74ff2e; }
    55% { opacity: 1; transform: translateY(0) scale(1); border-color: #2f74ff; box-shadow: 0 0 0 5px #2f74ff1a; }
    100% { border-color: #dce4ed; box-shadow: none; }
}

@keyframes fv-row-confirmed {
    0%, 55% { border-color: #25a36f; box-shadow: 0 0 0 5px #25a36f22; }
    100% { border-color: #dce4ed; box-shadow: none; }
}

@keyframes fv-row-opened {
    0%, 55% { border-color: #2f74ff; box-shadow: 0 0 0 5px #2f74ff22; }
    100% { border-color: #dce4ed; box-shadow: none; }
}

@keyframes fv-count-change {
    0%, 55% { color: #0d63f3; transform: scale(1.08); }
    100% { transform: scale(1); }
}

.fv-row-toggle {
    display: grid;
    width: 100%;
    min-height: 54px;
    padding: 13px 16px;
    grid-template-columns: max-content minmax(0, 1fr) 24px;
    align-items: center;
    gap: 16px;
    border: 0;
    color: #263950;
    background: #f8fafc;
    text-align: left;
    cursor: pointer;
}

.fv-row.is-expanded .fv-row-toggle {
    border-bottom: 1px solid #e4eaf1;
    background: #fff;
}

.fv-row-toggle__title {
    font-size: .8rem;
    font-weight: 800;
}

.fv-row-toggle__icon {
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 800;
    text-align: center;
}

.fv-row-summary {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(5, minmax(0, auto));
    justify-content: start;
    gap: 5px 16px;
    color: #40556f;
    font-size: .76rem;
}

.fv-row-summary span,
.fv-row-summary strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fv-row-summary strong { color: #17314f; }

.fv-row-summary small {
    grid-column: 1 / -1;
    overflow: hidden;
    white-space: nowrap;
    color: #687a8f;
    text-overflow: ellipsis;
}

.fv-row.is-expanded .fv-row-summary { display: none; }

.fv-row__body { padding: 18px; }
.fv-row__body[hidden] { display: none; }

.fv-row.is-row-collapsing,
.fv-row.is-row-deleting {
    pointer-events: none;
}

.fv-row.is-expanded.is-row-collapsing .fv-row-summary,
.fv-row.is-expanded.is-row-deleting .fv-row-summary {
    display: grid;
    animation: fv-summary-appear .3s ease-out both;
}

.fv-row.is-row-collapsing .fv-row__body,
.fv-row.is-row-deleting .fv-row__body {
    overflow: hidden;
    animation: fv-row-body-close .38s ease-in both;
}

.fv-row.is-row-deleting {
    animation: fv-row-delete-shell .38s ease-in both;
}

.fv-row.is-row-added .fv-row__body,
.fv-row.is-row-confirmed .fv-row__body,
.fv-row.is-row-opened .fv-row__body {
    overflow: hidden;
    animation: fv-row-body-open .7s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes fv-row-body-close {
    from { max-height: 1600px; padding-top: 18px; padding-bottom: 18px; opacity: 1; }
    to { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
}

@keyframes fv-row-body-open {
    from { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
    to { max-height: 1600px; padding-top: 18px; padding-bottom: 18px; opacity: 1; }
}

@keyframes fv-summary-appear {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fv-row-delete-shell {
    0% { border-color: #d36b61; box-shadow: 0 0 0 5px #d36b6126; }
    75% { opacity: 1; transform: scale(1); }
    100% { opacity: .15; transform: scale(.975); border-color: #d36b61; }
}

.fv-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.fo-form .fv-fields label {
    min-width: 0;
    margin: 0;
    align-content: start;
    font-size: .78rem;
}

.fv-fields input,
.fv-fields select { font-size: .85rem; }
.fv-fields [hidden] { display: none !important; }
.fv-notes { grid-column: span 2; }
.fv-legacy { grid-column: 1 / -1; }

.fv-patch-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    grid-column: 1 / -1;
    border: 0;
}

.fv-patch-field legend {
    margin: 0 0 4px;
    color: #263950;
    font-size: .78rem;
    font-weight: 800;
}

.fv-patch-field > p {
    margin: 0 0 10px;
    color: #687a8f;
    font-size: .7rem;
    line-height: 1.45;
}

.fv-patch-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.fo-form .fv-patch-choice {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 132px;
    margin: 0;
    overflow: hidden;
    grid-template-rows: 76px 1fr;
    border: 1px solid #cbd7e5;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fv-patch-choice:hover {
    border-color: #82a8e8;
    transform: translateY(-1px);
}

.fv-patch-choice:has(input:checked) {
    border-color: #2f74ff;
    box-shadow: 0 0 0 3px #2f74ff22;
}

.fv-patch-choice:has(input:focus-visible) {
    outline: 3px solid #0077ff40;
    outline-offset: 2px;
}

.fv-patch-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.fv-patch-choice__media {
    display: grid;
    min-width: 0;
    padding: 6px;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 5px;
    overflow: hidden;
    border-bottom: 1px solid #e3eaf2;
    background: #f4f7fb;
    place-items: center;
}

.fv-patch-choice__media img {
    width: 100%;
    height: 64px;
    object-fit: contain;
    border-radius: 7px;
    background: #fff;
}

.fv-patch-choice__empty {
    display: grid;
    width: 48px;
    height: 48px;
    border: 2px solid #9eabb9;
    border-radius: 50%;
    color: #7b8998;
    background: #fff;
    place-items: center;
    font-size: 1.5rem;
}

.fv-patch-choice__copy {
    display: grid;
    min-width: 0;
    padding: 9px 10px 10px;
    align-content: start;
    gap: 2px;
}

.fv-patch-choice__copy strong {
    padding-right: 20px;
    color: #17314f;
    font-size: .72rem;
    line-height: 1.25;
}

.fv-patch-choice__copy small,
.fv-patch-choice__copy > span {
    color: #687a8f;
    font-size: .62rem;
    line-height: 1.35;
}

.fv-patch-choice__check {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    background: #2f74ff;
    place-items: center;
    font-size: .7rem;
    font-weight: 900;
}

.fv-patch-choice:has(input:checked) .fv-patch-choice__check { display: grid; }

.fv-patch-selection-detail { display: none; }

.fv-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 16px;
}

.fv-row-actions button {
    border: 0;
    color: var(--color-primary);
    background: transparent;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

.fv-row-actions [data-fv-delete] { color: #9e413b; }
.fv-row-actions button:disabled { opacity: .4; cursor: default; }

.fv-footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding: 18px 0;
    border-top: 1px solid #e2e7ee;
    background: rgba(255, 255, 255, .96);
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
}

.fv-page .fo-alert { margin-top: 20px; }

.fv-page input:focus-visible,
.fv-page select:focus-visible,
.fv-page textarea:focus-visible,
.fv-compact-action:focus-visible,
.fv-row-toggle:focus-visible,
.fv-gallery__dots button:focus-visible,
.fv-gallery__arrow:focus-visible,
.fv-icon-close:focus-visible {
    outline: 3px solid #0077ff40;
    outline-offset: 2px;
}

.fv-embedded .container {
    width: 100%;
    max-width: none;
    padding: 0 28px;
}

.fv-embedded { padding: 24px 0 0; }

.fv-modal {
    position: fixed;
    inset: 0;
    width: min(1180px, calc(100vw - 32px));
    height: min(870px, calc(100dvh - 40px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 90px #172a4255;
}

.fv-modal::backdrop { background: #15243888; }

.fv-modal iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.fv-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    z-index: 10000;
    max-width: calc(100vw - 32px);
    padding: 14px 22px;
    border-radius: 12px;
    color: #fff;
    background: #183554;
    box-shadow: 0 8px 30px #15243822;
    transform: translateX(-50%);
    font-size: .9rem;
}

.fv-toast[hidden] { display: none; }
.fv-scroll-lock { overflow: hidden; }
.fv-size-note { margin-top: 12px; color: #627387; font-size: .73rem; }

.fv-size-dialog {
    position: fixed;
    inset: auto 0 0;
    width: min(1120px, calc(100vw - 32px));
    max-width: none;
    max-height: min(72dvh, 620px);
    margin: 0 auto;
    padding: 24px 28px 28px;
    overflow: auto;
    border: 0;
    border-radius: 20px 20px 0 0;
    color: #172a43;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 -18px 55px rgba(21, 42, 67, .22);
    backdrop-filter: blur(18px);
}

.fv-size-dialog[open] { animation: fv-sheet-enter .25s ease both; }
.fv-size-dialog::backdrop { background: rgba(20, 32, 48, .48); }

.fv-size-dialog__heading .eyebrow { margin: 0 0 4px; }

.fv-size-dialog__note {
    margin: 10px 0 18px;
    color: #64758a;
    font-size: .78rem;
}

.fv-size-dialog__table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e7ee;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

.fv-size-dialog table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: .86rem;
}

.fv-size-dialog th,
.fv-size-dialog td {
    min-width: 112px;
    padding: 19px 16px;
    border-bottom: 1px solid #e7ebf0;
    white-space: nowrap;
    text-align: left;
}

.fv-size-dialog thead th {
    position: sticky;
    top: 0;
    background: #f3f5f7;
}

.fv-size-dialog tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
}

@keyframes fv-gallery-enter {
    from { opacity: .3; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fv-sheet-enter {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
    .fv-modal {
        width: calc(100vw - 16px);
        height: calc(100dvh - 16px);
        border-radius: 12px;
    }

    .fv-page { padding-top: 18px; }
    .fv-embedded .container { padding: 0 14px; }
    .fv-heading { gap: 10px; }
    .fv-heading h1 { font-size: 1.65rem; }
    .fv-heading .fo-outline { padding: 7px 12px; font-size: .73rem; }

    .fv-overview {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 18px;
        padding: 0 0 16px;
        overflow: hidden;
    }

    .fv-gallery__viewport {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        border-radius: 12px 12px 0 0;
    }

    .fv-gallery__slide figcaption { top: 12px; left: 12px; }
    .fv-gallery__arrow { width: 38px; height: 38px; }
    .fv-gallery__arrow--previous { left: 8px; }
    .fv-gallery__arrow--next { right: 8px; }
    .fv-gallery__navigation { bottom: 12px; }

    .fv-overview > div:last-child { padding: 0 14px; }
    .fv-overview h2 { font-size: 1rem; }
    .fv-overview p { font-size: .75rem; }

    .fv-config-heading {
        align-items: flex-end;
        margin-bottom: 14px;
    }

    .fv-config-heading > div:first-child { min-width: 0; }
    .fv-page .fo-section-heading h2 { font-size: 1.3rem; }
    .fv-config-heading__tools { max-width: 188px; gap: 7px; }
    .fv-config-heading__tools .fo-muted { width: 100%; text-align: right; font-size: .7rem; }
    .fv-compact-action { min-height: 36px; padding: 7px 10px; font-size: .67rem; }

    .fv-paste-panel { padding: 14px; }
    .fv-paste-panel__heading { align-items: flex-start; }
    .fv-paste-panel__footer { align-items: flex-start; flex-direction: column; }

    .fv-row-toggle {
        min-height: 58px;
        padding: 11px 12px;
        grid-template-columns: max-content minmax(0, 1fr) 18px;
        gap: 9px;
    }

    .fv-row-toggle__title { font-size: .71rem; }

    .fv-row-summary {
        grid-template-columns: repeat(3, minmax(0, auto));
        gap: 3px 8px;
        font-size: .66rem;
    }

    .fv-row-summary small { font-size: .62rem; }
    .fv-row__body { padding: 14px; }
    .fv-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .fv-patch-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .fo-form .fv-patch-choice {
        min-height: 78px;
        grid-template-columns: 1fr;
        grid-template-rows: 46px minmax(30px, auto);
        border-radius: 9px;
    }
    .fv-patch-choice__media {
        min-height: 46px;
        padding: 4px;
        border-right: 0;
        border-bottom: 1px solid #e3eaf2;
    }
    .fv-patch-choice__media img { width: 50%; height: 30px; border-radius: 4px; }
    .fv-patch-choice__empty { width: 28px; height: 28px; border-width: 1px; font-size: 1rem; }
    .fv-patch-choice__copy { padding: 5px 4px 6px; align-content: center; text-align: center; }
    .fv-patch-choice__copy strong {
        display: -webkit-box;
        overflow: hidden;
        padding-right: 0;
        font-size: .62rem;
        line-height: 1.15;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .fv-patch-choice__copy small,
    .fv-patch-choice__copy > span { display: none; }
    .fv-patch-choice__check { right: 3px; bottom: 3px; width: 16px; height: 16px; font-size: .58rem; }
    .fv-patch-selection-detail {
        display: grid;
        margin-top: 8px;
        padding: 8px 10px;
        gap: 2px;
        border: 1px solid #d8e2ee;
        border-radius: 9px;
        color: #687a8f;
        background: #f7f9fc;
        font-size: .66rem;
        line-height: 1.35;
    }
    .fv-patch-selection-detail strong { color: #17314f; font-size: .7rem; }
    .fv-patch-selection-detail small { font-size: .64rem; }
    .fv-row-actions { gap: 14px; }

    .fv-footer { gap: 8px; }
    .fv-footer .button { padding: 13px 18px; font-size: .8rem; }

    .fv-size-dialog {
        width: 100%;
        max-height: 72dvh;
        padding: 18px 14px max(20px, env(safe-area-inset-bottom));
        border-radius: 18px 18px 0 0;
    }

    .fv-size-dialog table { min-width: 820px; }
    .fv-size-dialog th,
    .fv-size-dialog td { min-width: 103px; padding: 17px 12px; }
}

/* Compact, always-available configuration close control. It is fixed inside
   the embedded configuration viewport, so it remains visible while scrolling. */
.fv-configuration-close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 50;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(203, 215, 229, .88);
    border-radius: 50%;
    color: #17314f;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 6px 22px rgba(23, 49, 79, .12);
    place-items: center;
    font: 500 1.45rem/1 inherit;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.fv-configuration-close:hover { background: #eef3f8; }
.fv-configuration-close:focus-visible { outline: 3px solid #0077ff40; outline-offset: 2px; }
html.js #main-content > .fv-configuration-close { opacity: 1; transform: none; transition: none; }
.fv-embedded .fv-heading { width: 100%; padding-right: 56px; box-sizing: border-box; }
.fv-embedded .fv-heading > div { width: 100%; min-width: 0; flex: 1 1 auto; }
.fv-embedded .fv-heading h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.fv-overview__copy { min-width: 0; }
.fv-overview__tip {
    padding-left: 12px;
    border-left: 3px solid #cbd7e5;
}
.fv-overview__tip strong { color: #263950; }
.fv-overview__copy .fv-total { margin-top: 18px; }

.fv-paste-panel .fv-paste-format strong { color: #263950; }
.fv-paste-panel .fv-paste-format span { color: #6a7b8f; }
.fv-paste-panel textarea {
    height: 138px;
    max-height: 138px;
    resize: none;
    tab-size: 7;
}

@media (max-width: 760px) {
    .fv-configuration-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 1.3rem; }
    .fv-embedded .fv-heading { padding-right: 44px; }
    .fv-embedded .fv-heading h1 { width: 100%; max-width: none; font-size: 1.4rem; line-height: 1.1; }
    .fv-paste-reference { grid-template-columns: 1fr; gap: 3px; }
    html.is-mobile-form-focused .fv-footer { position: static; }
}

@media (prefers-reduced-motion: reduce) {
    .fv-gallery__slide,
    .fv-size-dialog[open],
    .fv-row.is-row-added,
    .fv-row.is-row-confirmed,
    .fv-row.is-row-opened,
    .fv-row.is-row-deleting,
    .fv-row.is-row-collapsing .fv-row__body,
    .fv-row.is-row-deleting .fv-row__body,
    .fv-row.is-row-added .fv-row__body,
    .fv-row.is-row-confirmed .fv-row__body,
    .fv-row.is-row-opened .fv-row__body,
    [data-variant-row-count].is-changing { animation: none; }

    .fv-gallery__dots button { transition: none; }
}
