/* —— 心声廊 · 内置主题（未写 hvCustomCss 时随聊天页主题；写了则用 flora-hv-theme-player）—— */

/* ═══ Gallery · 纵向展签廊 ═══ */
.flora-hv-modal.flora-hv-theme-gallery .flora-hv-modal-stage {
    border-radius: 4px;
    background:
        linear-gradient(168deg, #fffcf8 0%, #f8f0e6 42%, #f3e8dc 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23C4A882' stroke-opacity='0.06'/%3E%3C/svg%3E");
}
.flora-hv-modal.flora-hv-theme-gallery .flora-hv-round-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.flora-hv-modal.flora-hv-theme-gallery .flora-hv-plate {
    animation: flora-hv-gallery-rise 0.55s ease backwards;
}
.flora-hv-modal.flora-hv-theme-gallery .flora-hv-plate:nth-child(1) { animation-delay: 0.04s; }
.flora-hv-modal.flora-hv-theme-gallery .flora-hv-plate:nth-child(2) { animation-delay: 0.08s; }
.flora-hv-modal.flora-hv-theme-gallery .flora-hv-plate:nth-child(3) { animation-delay: 0.12s; }
.flora-hv-modal.flora-hv-theme-gallery .flora-hv-plate:nth-child(4) { animation-delay: 0.16s; }
.flora-hv-modal.flora-hv-theme-gallery .flora-hv-plate:nth-child(5) { animation-delay: 0.2s; }
.flora-hv-modal.flora-hv-theme-gallery .flora-hv-plate-gild {
    animation: flora-hv-gild-spin 8s linear infinite;
}
@keyframes flora-hv-gallery-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes flora-hv-gild-spin {
    to { transform: rotate(360deg); }
}

/* ═══ 隐序 · Seoul Editorial Dossier（心声廊 · 灰白档案）═══ */
.flora-hv-modal.flora-hv-theme-ins {
    --hv-ins-ink: #121214;
    --hv-ins-paper: #f4f3f0;
    --hv-ins-fog: rgba(255, 255, 255, 0.72);
    --hv-ins-line: rgba(18, 18, 20, 0.1);
    --hv-ins-accent: #8a8580;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-modal-backdrop {
    background:
        linear-gradient(165deg, rgba(14, 14, 16, 0.92) 0%, rgba(22, 22, 24, 0.88) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 23px,
            rgba(255, 255, 255, 0.025) 23px,
            rgba(255, 255, 255, 0.025) 24px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 23px,
            rgba(255, 255, 255, 0.025) 23px,
            rgba(255, 255, 255, 0.025) 24px
        );
    backdrop-filter: blur(18px) saturate(0.85);
    -webkit-backdrop-filter: blur(18px) saturate(0.85);
    animation: flora-hv-ins-grid-drift 24s linear infinite;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-modal-stage {
    width: min(94vw, 440px);
    max-height: min(88vh, 760px);
    border: none;
    border-radius: 0;
    background: var(--hv-ins-paper);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 40px 100px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(18, 18, 20, 0.08);
    overflow: hidden;
    isolation: isolate;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-modal-stage::before {
    content: 'INNER';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    font-family: 'Montserrat', sans-serif;
    font-size: 7px;
    font-weight: 200;
    letter-spacing: 0.55em;
    color: rgba(18, 18, 20, 0.18);
    pointer-events: none;
    z-index: 2;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-modal-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.35;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 3;
    animation: flora-hv-ins-grain 6s steps(4) infinite;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-modal-corner {
    display: none !important;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-modal-head {
    position: relative;
    z-index: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 20px 14px 28px;
    border-bottom: 1px solid var(--hv-ins-ink);
    background: linear-gradient(180deg, #fafaf8 0%, var(--hv-ins-paper) 100%);
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-modal-head::after {
    content: '';
    position: absolute;
    left: 28px;
    right: 20px;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--hv-ins-ink), transparent 72%);
    animation: flora-hv-ins-rule-grow 0.8s ease forwards;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-modal-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 7px;
    font-weight: 300;
    letter-spacing: 0.42em;
    color: var(--hv-ins-accent);
    margin-bottom: 6px;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-modal-eyebrow::after {
    content: ' · ARCHIVE';
    letter-spacing: 0.28em;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-modal-plate h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 200;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--hv-ins-ink);
    line-height: 1.2;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-modal-sub {
    margin-top: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.45;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: 1px solid var(--hv-ins-line);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-weight: 200;
    transition: background 0.25s ease, color 0.25s ease;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-modal-close:hover {
    background: var(--hv-ins-ink);
    color: #f4f3f0;
    transform: none;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-modal-body {
    position: relative;
    z-index: 4;
    padding: 14px 16px 18px 24px;
    background: transparent;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-round {
    margin-bottom: 0;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-round-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0 0 8px;
    border: none;
    border-bottom: 1px solid var(--hv-ins-line);
    background: transparent;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-round-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--hv-ins-ink);
    padding: 4px 8px;
    border: 1px solid var(--hv-ins-ink);
    background: transparent;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-round.is-current .flora-hv-round-tag {
    background: var(--hv-ins-ink);
    color: #f4f3f0;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-round-time {
    font-family: 'Montserrat', sans-serif;
    font-size: 7px;
    font-weight: 300;
    letter-spacing: 0.14em;
    opacity: 0.5;
    font-variant-numeric: tabular-nums;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-round-thread {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--hv-ins-line), transparent);
}
/* Bento 档案格 · 与画展/花息截然不同的非对称排版 */
.flora-hv-modal.flora-hv-theme-ins .flora-hv-round-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    grid-template-areas:
        'dem dem'
        'act mono'
        'fan dre';
    gap: 8px;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='demeanor'] { grid-area: dem; }
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='action'] { grid-area: act; }
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='monologue'] { grid-area: mono; }
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='fantasy'] { grid-area: fan; }
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='dreams'] { grid-area: dre; }
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate {
    position: relative;
    border: 1px solid var(--hv-ins-line);
    border-radius: 0;
    background: var(--hv-ins-fog);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    animation: flora-hv-ins-panel-in 0.65s cubic-bezier(0.19, 1, 0.22, 1) backwards;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='demeanor'] { animation-delay: 0.05s; }
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='action'] { animation-delay: 0.1s; }
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='monologue'] { animation-delay: 0.15s; }
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='fantasy'] { animation-delay: 0.2s; }
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='dreams'] { animation-delay: 0.25s; }
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--hv-ins-ink);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate:hover::before {
    opacity: 1;
}
/* 神态 · 顶栏简报带 */
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='demeanor'] {
    min-height: 0;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='demeanor'] .flora-hv-plate-head {
    padding: 6px 10px;
    border-bottom: 1px solid var(--hv-ins-line);
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='demeanor'] .flora-hv-plate-body {
    padding: 6px 10px 8px;
    font-size: 10px;
    line-height: 1.45;
}
/* 独白 · 深色主展块 */
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='monologue'] {
    min-height: 140px;
    background: linear-gradient(155deg, #1a1a1c 0%, #2a2a2e 100%);
    border-color: rgba(18, 18, 20, 0.35);
    box-shadow: 0 16px 40px rgba(18, 18, 20, 0.22);
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='monologue']::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
    animation: flora-hv-ins-shimmer 4.5s ease-in-out infinite;
    pointer-events: none;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='monologue'] .flora-hv-plate-head {
    border-bottom-color: rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='monologue'] .flora-hv-plate-no,
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='monologue'] .flora-hv-plate-titles h4,
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='monologue'] .flora-hv-plate-titles p {
    color: rgba(244, 243, 241, 0.92);
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate[data-hv-plate='monologue'] .flora-hv-plate-body {
    color: rgba(244, 243, 241, 0.88);
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: 0.03em;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px 6px;
    border-bottom: 1px dashed var(--hv-ins-line);
    background: rgba(255, 255, 255, 0.35);
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate-no {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--hv-ins-ink);
    opacity: 0.55;
    line-height: 1;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate-titles h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hv-ins-ink);
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate-titles p {
    font-family: 'Montserrat', sans-serif;
    font-size: 6px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate-gild {
    width: 6px;
    height: 6px;
    border: none;
    border-radius: 0;
    margin-left: auto;
    background: var(--hv-ins-ink);
    opacity: 0.25;
    animation: flora-hv-ins-blink 2.8s ease-in-out infinite;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate-body {
    padding: 8px 10px 10px;
    font-family: 'Noto Serif SC', 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.58;
    letter-spacing: 0.03em;
    color: rgba(18, 18, 20, 0.82);
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-plate.is-featured {
    box-shadow: none;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-empty {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 0.12em;
    opacity: 0.35;
    font-style: normal;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-gallery-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--hv-ins-line);
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-past-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--hv-ins-ink);
    opacity: 0.55;
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-past-link:hover {
    opacity: 1;
    border-bottom-color: var(--hv-ins-ink);
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-archive {
    margin-top: 10px;
    border: 1px solid var(--hv-ins-line);
    background: rgba(255, 255, 255, 0.45);
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-archive-head {
    padding: 10px 12px;
    border-bottom: 1px solid var(--hv-ins-line);
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-archive-head h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}
.flora-hv-modal.flora-hv-theme-ins .flora-hv-gallery-empty-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
@keyframes flora-hv-ins-grid-drift {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 0 0, 0 48px, 48px 0; }
}
@keyframes flora-hv-ins-grain {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-1%, 1%); }
    50% { transform: translate(1%, -1%); }
    75% { transform: translate(-1%, -1%); }
}
@keyframes flora-hv-ins-rule-grow {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}
@keyframes flora-hv-ins-panel-in {
    from { opacity: 0; transform: translateY(14px) skewY(1deg); }
    to { opacity: 1; transform: translateY(0) skewY(0); }
}
@keyframes flora-hv-ins-shimmer {
    0%, 100% { transform: translateX(-120%); }
    50% { transform: translateX(120%); }
}
@keyframes flora-hv-ins-blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.85; }
}

/* ═══ Blossom · 花瓣放射展柜 ═══ */
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-modal-backdrop {
    background:
        radial-gradient(ellipse 70% 55% at 50% 35%, rgba(237, 212, 222, 0.35), rgba(42, 36, 36, 0.55)),
        rgba(30, 26, 24, 0.4);
}
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-modal-stage {
    border-radius: 28px;
    border: 1px solid rgba(237, 212, 222, 0.65);
    background: linear-gradient(165deg, #fffafc 0%, #fff0f6 48%, #fceef4 100%);
    overflow: hidden;
}
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-modal-stage::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(237, 212, 222, 0.2),
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    animation: flora-hv-blossom-rotate 18s linear infinite;
    pointer-events: none;
    z-index: 0;
}
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-modal-head,
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-modal-body {
    position: relative;
    z-index: 1;
}
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-round-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        'a a'
        'b c'
        'd e';
    gap: 10px;
}
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-plate[data-hv-plate='demeanor'] {
    grid-area: a;
}
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-plate[data-hv-plate='action'] {
    grid-area: b;
}
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-plate[data-hv-plate='monologue'] {
    grid-area: c;
}
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-plate[data-hv-plate='fantasy'] {
    grid-area: d;
}
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-plate[data-hv-plate='dreams'] {
    grid-area: e;
}
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-plate {
    border-radius: 20px;
    border: 1px solid rgba(237, 212, 222, 0.55);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 24px rgba(212, 184, 196, 0.14);
    animation: flora-hv-blossom-breathe 3.6s ease-in-out infinite;
}
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-plate:nth-child(odd) {
    animation-delay: 0.4s;
}
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-plate.is-featured {
    border-width: 2px;
    box-shadow: 0 12px 32px rgba(212, 184, 196, 0.22);
}
.flora-hv-modal.flora-hv-theme-blossom .flora-hv-plate-body {
    font-size: 11.5px;
    color: #564a50;
}
@keyframes flora-hv-blossom-rotate {
    to { transform: rotate(360deg); }
}
@keyframes flora-hv-blossom-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.012); }
}

/* Custom · 仅叠加玩家 CSS，基底随当前聊天页主题 */
.flora-hv-modal.flora-hv-theme-custom .flora-hv-modal-eyebrow::after {
    content: ' · ATELIER';
    opacity: 0.5;
}

/* ═══ Player · 玩家自定义心声（与聊天页主题脱钩；视觉由玩家 CSS 接管）═══ */
.flora-hv-modal.flora-hv-theme-player .flora-hv-round-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-template-columns: unset;
    grid-template-areas: unset;
}
.flora-hv-modal.flora-hv-theme-player .flora-hv-plate {
    grid-area: unset;
    animation: none;
}
.flora-hv-modal.flora-hv-theme-player .flora-hv-modal-backdrop {
    animation: none;
}
