.clashub-luna-widget {
    --luna-blue: #0021a5;
    --luna-orange: #fa4616;
    --luna-ink: #17213a;
    position: fixed;
    right: 22px;
    top: 50%;
    bottom: auto;
    margin-top: -30px;
    z-index: 10000;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.clashub-ai-full-page {
    height: auto;
    min-height: 100vh;
    padding-bottom: 0;
    background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 58%);
}

.clashub-ai-full-header {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 2px 0 0;
}

.clashub-ai-full-header img {
    display: block;
    max-width: 600px;
    max-height: none;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.clashub-ai-full-main {
    width: 100%;
    flex: 1 0 auto;
}

.clashub-ai-full-page > footer {
    flex-shrink: 0;
    margin-top: 0;
}

.clashub-luna-full-root {
    --luna-blue: #0021a5;
    --luna-orange: #fa4616;
    --luna-ink: #17213a;
    width: min(1120px, calc(100% - 40px));
    margin: 4px auto 44px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.clashub-luna-launcher {
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #173dc4, var(--luna-blue));
    color: #fff;
    box-shadow: 0 14px 34px rgba(0, 33, 165, 0.28);
    cursor: grab;
    touch-action: none;
    display: grid;
    place-items: center;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.clashub-luna-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 40px rgba(0, 33, 165, 0.34);
}

.clashub-luna-launcher:active,
.clashub-luna-widget--dragging .clashub-luna-launcher {
    cursor: grabbing;
    transform: scale(1.05);
    box-shadow: 0 20px 44px rgba(0, 33, 165, 0.42);
}

.clashub-luna-widget--dragging {
    user-select: none;
    -webkit-user-select: none;
}

.clashub-luna-launcher:focus-visible,
.clashub-luna-panel button:focus-visible,
.clashub-luna-panel a:focus-visible {
    outline: 3px solid rgba(250, 70, 22, 0.36);
    outline-offset: 3px;
}

.clashub-luna-launcher svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.clashub-luna-launcher::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 2px;
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--luna-orange);
}

.clashub-luna-invite {
    position: absolute;
    right: 72px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: max-content;
    max-width: min(260px, calc(100vw - 120px));
    padding: 11px 36px 11px 14px;
    border: 1px solid #dfe5f4;
    border-radius: 15px 15px 4px 15px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 28px rgba(24, 38, 75, 0.13);
    color: var(--luna-ink);
    font-size: 13px;
    line-height: 1.35;
}

.clashub-luna-invite-close {
    position: absolute;
    right: 8px;
    top: 6px;
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #7a8398;
    cursor: pointer;
    font-size: 18px;
}

.clashub-luna-panel {
    position: fixed;
    right: 74px;
    top: 50%;
    bottom: auto;
    width: min(390px, calc(100vw - 30px));
    max-height: calc(100vh - 30px);
    height: min(620px, calc(100vh - 30px));
    border: 1px solid rgba(0, 33, 165, 0.14);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 68px rgba(15, 28, 68, 0.24);
    display: grid;
    grid-template-rows: auto 1fr auto;
    transform: translateY(-50%);
    transform-origin: center right;
    transition: width 180ms ease, height 180ms ease, top 120ms ease;
    margin-top: -30px;
}

.clashub-luna-panel--full-page {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    display: block;
    height: auto;
    max-height: none;
    min-height: 560px;
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 24px 70px rgba(15, 28, 68, 0.16);
    transition: none;
}

.clashub-luna-panel--full-page .clashub-luna-message {
    max-width: min(760px, 88%);
    font-size: 15px;
    line-height: 1.62;
}

.clara-answer-feedback {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    padding-top: 9px;
    border-top: 1px solid rgba(23, 33, 58, 0.08);
    color: #667085;
    font-size: 12px;
}

.clara-answer-feedback-label {
    margin-right: 2px;
    font-size: 11.5px;
    font-weight: 500;
    color: #667085;
    user-select: none;
}

.clara-answer-feedback-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.clara-feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid rgba(0, 33, 165, 0.14);
    border-radius: 5px;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.clara-feedback-btn svg {
    display: block;
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
}

.clara-feedback-btn:hover:not(:disabled),
.clara-feedback-btn:focus-visible {
    border-color: rgba(0, 33, 165, 0.35);
    background: #f0f4ff;
    color: #0021A5;
    outline: none;
}

.clara-feedback-btn--thumb-down:hover:not(:disabled),
.clara-feedback-btn--thumb-down:focus-visible {
    border-color: rgba(250, 70, 22, 0.45);
    background: #fff6f3;
    color: #FA4616;
}

.clara-feedback-btn.is-active.clara-feedback-btn--thumb-up {
    border-color: #0021A5;
    background: #eef2ff;
    color: #0021A5;
}

.clara-feedback-btn.is-active.clara-feedback-btn--thumb-down {
    border-color: #FA4616;
    background: #fff4f0;
    color: #FA4616;
}

.clara-feedback-btn.is-copied {
    border-color: #12b76a;
    background: #ecfdf3;
    color: #027a48;
}

.clara-feedback-btn:disabled {
    cursor: default;
    opacity: 0.55;
}

.clara-answer-feedback-note {
    font-size: 11px;
    color: #475467;
    margin-left: 3px;
}

.clashub-luna-panel[hidden] {
    display: none;
}

.clashub-luna-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 18px;
    background: linear-gradient(135deg, #092aa8, #173dc4);
    color: #fff;
}

.clashub-luna-identity {
    display: flex;
    align-items: center;
}

.clashub-luna-title {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
}

.clashub-luna-subtitle {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
}

.clashub-luna-header-actions {
    display: flex;
    gap: 4px;
}

.clashub-luna-header-actions button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 0;
}

.clashub-luna-header-actions button:hover {
    background: rgba(255, 255, 255, 0.13);
}

.clashub-luna-icon {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.clashub-luna-messages {
    overflow-y: auto;
    padding: 18px 16px;
    background: linear-gradient(#f8faff, #fff 36%);
    scroll-behavior: smooth;
}

.clashub-luna-message {
    max-width: 88%;
    margin: 0 0 12px;
    padding: 11px 13px;
    border-radius: 15px;
    color: var(--luna-ink);
    font-size: 13px;
    line-height: 1.52;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.clashub-luna-message--assistant {
    border: 1px solid #e2e7f3;
    border-bottom-left-radius: 5px;
    background: #fff;
    box-shadow: 0 4px 13px rgba(21, 38, 82, 0.05);
}

.clashub-luna-message--choice-card {
    width: min(760px, 92%);
    max-width: min(760px, 92%);
    white-space: normal;
}

.clashub-luna-inline-choice-section {
    margin-top: 14px;
}

.clashub-luna-inline-choice-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 1px 7px;
}

.clashub-luna-inline-choice-heading strong {
    color: #455371;
    font-size: 10px;
    font-weight: 780;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.clashub-luna-inline-choice-heading span {
    color: #7a859c;
    font-size: 10px;
}

.clashub-luna-species-choice-list {
    overflow: hidden;
    border: 1px solid #dfe5f2;
    border-radius: 11px;
    background: #fbfcff;
}

.clashub-luna-species-choice {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(118px, 0.34fr) minmax(0, 1fr) 16px;
    gap: 12px;
    align-items: center;
    min-height: 54px;
    padding: 10px 13px 10px 15px;
    border: 0;
    border-top: 1px solid #e5e9f3;
    outline: 0;
    background: transparent;
    color: #17233d;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.clashub-luna-species-choice:first-child {
    border-top: 0;
}

.clashub-luna-species-choice::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #315dcc;
    content: '';
    opacity: 0;
    transition: opacity 0.16s ease;
}

.clashub-luna-species-choice:hover,
.clashub-luna-species-choice:focus-visible {
    background: #f3f6ff;
    box-shadow: inset 0 0 0 1px rgba(49, 93, 204, 0.08);
}

.clashub-luna-species-choice:hover::before,
.clashub-luna-species-choice:focus-visible::before {
    opacity: 1;
}

.clashub-luna-species-choice-identity {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 7px;
}

.clashub-luna-species-choice-identity strong {
    overflow: hidden;
    color: #17388e;
    font-size: 12px;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clashub-luna-species-choice-identity small {
    color: #7d89a3;
    font-size: 10px;
    font-weight: 650;
}

.clashub-luna-species-choice-members {
    overflow: hidden;
    color: #53617c;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clashub-luna-species-choice-arrow {
    color: #6d7fae;
    font-size: 20px;
    line-height: 1;
    text-align: right;
}

.clashub-luna-message--user {
    margin-left: auto;
    border-bottom-right-radius: 5px;
    background: #e9efff;
    color: #102b7d;
}

.clashub-luna-message--loading {
    color: #68728a;
    white-space: normal;
}

.clashub-luna-message--correction {
    border-color: #f0c36a;
    background: #fff8e8;
    color: #714500;
    box-shadow: none;
}

.clashub-luna-progress-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.clashub-luna-progress-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #dfe6f5;
    border-top-color: #2755d8;
    border-radius: 50%;
    animation: clashub-luna-progress-spin 1s linear infinite;
}

.clashub-luna-progress-copy {
    min-width: 0;
}

.clashub-luna-progress-copy strong,
.clashub-luna-progress-copy span {
    display: block;
}

.clashub-luna-progress-copy .clashub-clara-live-answer {
    color: var(--luna-ink);
    font-size: inherit;
    line-height: inherit;
    white-space: normal;
}

.clashub-luna-progress-copy strong {
    color: var(--luna-ink);
    font-weight: 600;
}

.clashub-luna-progress-copy span {
    margin-top: 2px;
    color: #68728a;
    font-size: 12px;
}

.clashub-luna-progress-step {
    padding: 4px 7px;
    border-radius: 999px;
    background: #edf2ff;
    color: #1b42b4;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.clashub-luna-progress-meter {
    height: 6px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf7;
}

.clashub-luna-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2755d8, #2f9df4);
    transition: width 220ms ease;
}

@keyframes clashub-luna-progress-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .clashub-luna-progress-spinner { animation: none; }
    .clashub-luna-progress-fill { transition: none; }
}

@media (max-width: 480px) {
    .clashub-luna-progress-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .clashub-luna-progress-step {
        grid-column: 2;
        justify-self: start;
    }
}

.clashub-luna-panel--full-page .clashub-luna-messages {
    padding: 28px clamp(22px, 5vw, 64px);
    min-height: 360px;
    height: auto;
    max-height: none;
    overflow: visible;
    scroll-behavior: auto;
}

.clashub-luna-panel--full-page .clashub-luna-composer {
    padding: 18px clamp(22px, 5vw, 64px) 24px;
}

.clashub-luna-panel--full-page .clashub-luna-input-row {
    min-height: 128px;
}

.clashub-luna-panel--full-page .clashub-luna-input {
    min-height: 94px;
    font-size: 15px;
}

.clashub-luna-message--streaming::after {
    display: inline-block;
    width: 5px;
    height: 14px;
    margin-left: 3px;
    border-radius: 2px;
    background: var(--luna-blue);
    content: "";
    vertical-align: -2px;
    animation: luna-stream-cursor 0.9s steps(2, end) infinite;
}

@keyframes luna-stream-cursor {
    50% { opacity: 0.2; }
}

.clashub-luna-answer-text {
    white-space: pre-wrap;
}

.clashub-luna-data-table-block {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e9f3;
}

.clashub-luna-expression-chart {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e9f3;
}

.clashub-luna-expression-row {
    display: grid;
    grid-template-columns: minmax(72px, 0.9fr) minmax(105px, 2fr) auto;
    gap: 7px;
    align-items: center;
    margin-top: 7px;
}

.clashub-luna-expression-label {
    min-width: 0;
    color: #243557;
    font-size: 10px;
    line-height: 1.2;
}

.clashub-luna-expression-label span,
.clashub-luna-expression-label small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clashub-luna-expression-label small {
    margin-top: 2px;
    color: #748099;
    font-size: 9px;
}

.clashub-luna-expression-track {
    position: relative;
    height: 10px;
    border-radius: 3px;
    background: #eef2f8;
}

.clashub-luna-expression-bar {
    height: 100%;
    border-radius: 3px;
    background: rgba(47, 111, 237, 0.78);
}

.clashub-luna-expression-bar--contrast {
    background: rgba(224, 138, 30, 0.82);
}

.clashub-luna-expression-dot {
    position: absolute;
    top: 50%;
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: #273249;
}

.clashub-luna-expression-value {
    color: #3d4960;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.clashub-luna-data-table-title {
    margin-bottom: 4px;
    color: #142c72;
    font-size: 12px;
    font-weight: 750;
}

.clashub-luna-data-table-note {
    margin-bottom: 8px;
    color: #69748b;
    font-size: 10px;
    line-height: 1.45;
}

.clashub-luna-evidence-catalog-toolbar,
.clashub-luna-evidence-catalog-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
    color: #53627a;
    font-size: 10px;
}

.clashub-luna-evidence-catalog-toolbar label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.clashub-luna-evidence-catalog-search {
    min-width: 145px;
    padding: 5px 8px;
    border: 1px solid #cbd7f6;
    border-radius: 8px;
    background: #fff;
    color: #17213a;
}

.clashub-luna-evidence-download,
.clashub-luna-evidence-catalog-pager button {
    padding: 5px 9px;
    border: 1px solid #adc2f5;
    border-radius: 999px;
    background: #f7f9ff;
    color: #173b8f;
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
}

.clashub-luna-evidence-catalog-pager button:disabled {
    opacity: .45;
    cursor: default;
}

.clashub-luna-evidence-sort {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.clashub-luna-data-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.clashub-luna-data-table {
    width: 100%;
    min-width: 270px;
    border-collapse: collapse;
    background: #fff;
    font-size: 10px;
    white-space: nowrap;
}

.clashub-luna-data-table--candidate-ranking {
    min-width: 1180px;
    table-layout: fixed;
    white-space: normal;
}

.clashub-luna-data-table--candidate-ranking th:nth-child(1),
.clashub-luna-data-table--candidate-ranking td:nth-child(1) { width: 48px; }
.clashub-luna-data-table--candidate-ranking th:nth-child(2),
.clashub-luna-data-table--candidate-ranking td:nth-child(2) { width: 130px; }
.clashub-luna-data-table--candidate-ranking th:nth-child(3),
.clashub-luna-data-table--candidate-ranking td:nth-child(3) { width: 84px; }
.clashub-luna-data-table--candidate-ranking th:nth-child(4),
.clashub-luna-data-table--candidate-ranking td:nth-child(4) { width: 130px; }
.clashub-luna-data-table--candidate-ranking .clashub-luna-pairing-diagram {
    min-width: 320px;
}

.clashub-luna-data-table th,
.clashub-luna-data-table td {
    padding: 6px 7px;
    border: 1px solid #e2e7f3;
    text-align: left;
}

.clashub-luna-data-table th {
    background: #eef3ff;
    color: #183780;
    font-weight: 700;
}

.clashub-luna-mirna-sequence-code {
    display: block;
    color: #243047;
    font-family: Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.65;
    overflow-wrap: anywhere;
    white-space: normal;
}

.clashub-luna-mirna-sequence-arm { border-radius: 3px; padding: 1px 0; }
.clashub-luna-mirna-sequence-5p { background: #dce9ff; color: #003b8f; }
.clashub-luna-mirna-sequence-3p { background: #ffe4cf; color: #9b3c00; }
.clashub-luna-mirna-sequence-loop { color: #69758a; font-weight: 500; }

.clashub-luna-pairing-diagram {
    display: grid;
    grid-template-columns: max-content max-content max-content;
    align-items: center;
    column-gap: 6px;
    width: max-content;
    min-width: 100%;
    font-family: Menlo, Consolas, monospace;
    line-height: 1.45;
}

.clashub-luna-pairing-label { color: #60708b; font-size: 9px; }
.clashub-luna-pairing-sequence,
.clashub-luna-pairing-fallback { white-space: pre; font-family: Menlo, Consolas, monospace; }
.clashub-luna-pairing-pattern { color: #17479e; text-align: center; }
.clashub-luna-table-result-link { color: #17479e; font-weight: 700; text-decoration: none; }
.clashub-luna-table-result-link:hover { text-decoration: underline; }

.clashub-luna-pairing-summary {
    display: grid;
    gap: 7px;
    margin-top: 9px;
    padding: 10px;
    border: 1px solid #dfe6f6;
    border-radius: 10px;
    background: #f8faff;
}

.clashub-luna-pairing-summary-gene { color: #172d63; font-size: 12px; }
.clashub-luna-pairing-summary-source { color: #68758d; font-size: 10px; }
.clashub-luna-pairing-summary-alignment { max-width: 100%; overflow-x: auto; }
.clashub-luna-pairing-summary-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 9px;
    padding: 7px 10px;
    border: 1px solid #a9bff4;
    border-radius: 999px;
    color: #173b8f;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}
.clashub-luna-pairing-summary-link:hover { background: #eef3ff; }

.clashub-luna-scope-selector {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.clashub-luna-scope-group { margin: 0; padding: 0; border: 0; }
.clashub-luna-scope-group legend {
    margin-bottom: 7px;
    color: #243047;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.clashub-luna-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.clashub-luna-scope-grid--arm { grid-template-columns: repeat(2, minmax(88px, 140px)); }
.clashub-luna-scope-choice {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 48px;
    padding: 9px 11px;
    border: 1px solid #d7dff1;
    border-radius: 10px;
    background: #fff;
    color: #17233d;
    text-align: left;
    cursor: pointer;
}
.clashub-luna-scope-choice:hover { border-color: #9eb6ed; background: #f7f9ff; }
.clashub-luna-scope-choice.is-selected {
    border-color: #315fca;
    background: #edf3ff;
    box-shadow: inset 0 0 0 1px #315fca;
}
.clashub-luna-scope-choice:disabled { opacity: .42; cursor: not-allowed; }
.clashub-luna-scope-choice-identity { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.clashub-luna-scope-choice-identity small { color: #647391; font-family: Menlo, Consolas, monospace; }
.clashub-luna-scope-choice-meta { color: #66738b; font-size: 9px; }
.clashub-luna-scope-submit {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #315fca;
    border-radius: 999px;
    background: #17479e;
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}
.clashub-luna-scope-submit:disabled { border-color: #d5dbea; background: #edf0f6; color: #8a94a8; cursor: not-allowed; }

@media (max-width: 520px) {
    .clashub-luna-scope-grid { grid-template-columns: 1fr; }
    .clashub-luna-scope-grid--arm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.clashub-luna-mirna-sequence-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.clashub-luna-mirna-sequence-key {
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
}

.clashub-luna-mirna-sequence-key-5p { background: #dce9ff; color: #003b8f; }
.clashub-luna-mirna-sequence-key-3p { background: #ffe4cf; color: #9b3c00; }

.clashub-luna-references {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e9f3;
}

.clashub-luna-references-summary {
    color: var(--luna-blue);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    list-style-position: inside;
}

.clashub-luna-reference-list {
    margin: 9px 0 0;
    padding-left: 20px;
}

.clashub-luna-reference-item {
    margin-bottom: 8px;
    color: #4c5873;
    font-size: 11px;
    line-height: 1.5;
}

.clashub-luna-inline-citation,
.clashub-luna-reference-doi {
    color: var(--luna-blue);
    font-weight: 650;
}

.clashub-luna-stream-note {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px dashed #d8deed;
    color: #8b5b18;
    font-size: 11px;
}

.clashub-luna-message a {
    color: var(--luna-blue);
    font-weight: 650;
}

.clashub-luna-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: -4px 0 14px;
}

.clashub-luna-options--dropdown {
    margin-top: -4px;
}

.clashub-luna-choice-dropdown {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    padding: 11px 13px 12px;
    border: 1px solid #d7def2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(25, 48, 108, 0.055);
}

.clashub-luna-choice-dropdown-label {
    color: #53617c;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.045em;
    line-height: 1.2;
    text-transform: uppercase;
}

.clashub-luna-choice-dropdown-select {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 40px 0 12px;
    border: 1px solid #bdc9ef;
    border-radius: 9px;
    outline: 0;
    appearance: none;
    background: #fbfcff;
    color: #17233d;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 620;
    text-overflow: ellipsis;
}

.clashub-luna-choice-dropdown-select:hover {
    border-color: #8fa3e5;
    background: #fff;
}

.clashub-luna-choice-dropdown-select:focus-visible {
    border-color: #335cc4;
    box-shadow: 0 0 0 3px rgba(51, 92, 196, 0.12);
}

.clashub-luna-choice-dropdown-arrow {
    position: absolute;
    right: 27px;
    bottom: 24px;
    color: #6174aa;
    font-size: 17px;
    line-height: 1;
    pointer-events: none;
}

.clashub-luna-options--cell-lines {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.clashub-luna-options--cell-lines .clashub-luna-option {
    width: auto;
    padding: 7px 18px;
}

.clashub-luna-options--target-choices {
    gap: 0;
    overflow: hidden;
    border: 1px solid #d7def2;
    border-radius: 12px;
    background: #fff;
}

.clashub-luna-options--target-choices .clashub-luna-option--target-choice {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr) auto;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid #e8ecf7;
    border-radius: 0;
    color: #17233d;
    text-align: left;
}

.clashub-luna-options--target-choices .clashub-luna-option--target-choice:last-child {
    border-bottom: 0;
}

.clashub-luna-options--target-choices .clashub-luna-option--target-choice:hover,
.clashub-luna-options--target-choices .clashub-luna-option--target-choice:focus-visible {
    background: #f7f9ff;
}

.clashub-luna-options--followup-choices {
    gap: 0;
    overflow: hidden;
    border: 1px solid #d7def2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(25, 48, 108, 0.045);
}

.clashub-luna-followup-heading {
    padding: 9px 13px 7px;
    border-bottom: 1px solid #e8ecf7;
    color: #53617c;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.045em;
    line-height: 1.2;
    text-transform: uppercase;
}

.clashub-luna-options--followup-choices .clashub-luna-option--followup-choice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid #e8ecf7;
    border-radius: 0;
    color: #17233d;
    text-align: left;
}

.clashub-luna-options--followup-choices .clashub-luna-option--followup-choice:last-child {
    border-bottom: 0;
}

.clashub-luna-options--followup-choices .clashub-luna-option--followup-choice:hover,
.clashub-luna-options--followup-choices .clashub-luna-option--followup-choice:focus-visible {
    background: #f7f9ff;
}

.clashub-luna-options--followup-choices .clashub-luna-option-name {
    white-space: normal;
}

.clashub-luna-options--followup-choices .clashub-luna-option-meta {
    overflow: visible;
    color: #66728c;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
}

.clashub-luna-option-kind {
    align-self: center;
    width: fit-content;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.1;
    white-space: nowrap;
}

.clashub-luna-option-kind--family {
    background: #fff1e8;
    color: #b33a0b;
}

.clashub-luna-option-kind--exact {
    background: #edf2ff;
    color: #173b9c;
}

.clashub-luna-option-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.clashub-luna-option-name {
    overflow: hidden;
    font-size: 12px;
    font-weight: 720;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clashub-luna-option-meta {
    color: #66728c;
    font-size: 10px;
    font-weight: 550;
    line-height: 1.2;
}

.clashub-luna-option-arrow {
    align-self: center;
    color: #8190b3;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

@media (max-width: 420px) {
    .clashub-luna-message--choice-card {
        width: 94%;
        max-width: 94%;
    }

    .clashub-luna-inline-choice-heading span {
        display: none;
    }

    .clashub-luna-species-choice {
        grid-template-columns: minmax(0, 1fr) 16px;
        gap: 3px 8px;
        padding: 10px 11px 10px 14px;
    }

    .clashub-luna-species-choice-identity {
        grid-column: 1;
    }

    .clashub-luna-species-choice-members {
        grid-column: 1;
        white-space: normal;
    }

    .clashub-luna-species-choice-arrow {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .clashub-luna-options--target-choices .clashub-luna-option--target-choice {
        grid-template-columns: 98px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 10px;
    }
}

.clashub-luna-option.clashub-luna-option--all-cells {
    background: #fa4616;
    border-color: #fa4616;
    color: #fff;
}

.clashub-luna-option.clashub-luna-option--all-cells:hover {
    filter: brightness(1.08);
}

.clashub-luna-context-expired {
    margin: 10px 4px;
    padding: 11px 12px;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    background: #fffbeb;
    color: #78350f;
    font-size: 0.78rem;
    line-height: 1.45;
}

.clashub-luna-context-expired .clashub-luna-option {
    margin: 9px 7px 0 0;
}

.clashub-luna-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bdc9ef;
    border-radius: 999px;
    padding: 7px 10px;
    background: #fff;
    color: #15358f;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
}

.clashub-luna-option-item {
    display: flex;
    min-width: 0;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 8px;
    border: 1px solid rgba(21, 53, 143, 0.12);
    border-radius: 12px;
    background: #fff;
}

.clashub-luna-option-item .clashub-luna-option {
    width: 100%;
}

.clashub-luna-option-description {
    padding: 0 6px;
    color: #52617c;
    font-size: 11px;
    line-height: 1.35;
}

.clashub-luna-option-details {
    padding: 0 6px;
    color: #6b7485;
    font-size: 10px;
}

.clashub-luna-option-details summary {
    cursor: pointer;
}

.clashub-luna-option-details span {
    display: block;
    margin-top: 3px;
}

.clashub-luna-result-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 8px;
    padding: 7px 11px;
    border: 1px solid #bdc9ef;
    border-radius: 999px;
    background: #fff;
    color: #15358f;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
}

.clashub-luna-options .clashub-luna-result-link {
    margin-top: 0;
}

.clashub-luna-option[data-manual-input-active="true"] {
    border-color: #9aabe7;
    background: #eef3ff;
    color: #53638e;
    cursor: default;
    opacity: 1;
}

.clashub-luna-result-link:hover,
.clashub-luna-result-link:focus-visible {
    border-color: #7890df;
    background: #eef3ff;
    text-decoration: none;
}

.clashub-luna-composer {
    display: block;
    width: 100%;
    padding: 14px;
    border-top: 1px solid #e7eaf2;
    box-sizing: border-box;
    background: #fff;
    text-align: left;
}

.clashub-luna-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
    min-height: 104px;
    padding: 12px 10px 10px 14px;
    border: 1px solid #ccd4e8;
    border-radius: 18px;
    background: #fbfcff;
}

.clashub-luna-input-row:focus-within {
    border-color: #7890df;
    box-shadow: 0 0 0 3px rgba(0, 33, 165, 0.08);
}

.clashub-luna-input {
    width: 100%;
    min-height: 76px;
    max-height: 156px;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--luna-ink);
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
}

.clashub-luna-send {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: var(--luna-orange);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}

.clashub-luna-send:disabled {
    cursor: wait;
    opacity: 0.55;
}

@media (max-width: 600px) {
    .clashub-luna-widget {
        right: 14px;
        top: 50%;
        bottom: auto;
        margin-top: -30px;
    }

    .clashub-luna-panel {
        position: fixed;
        inset: 10px;
        width: auto;
        height: auto;
        border-radius: 18px;
        transform: none;
    }

    .clashub-luna-launcher[aria-expanded="true"] {
        display: none;
    }

    .clashub-luna-invite {
        display: none;
    }

    .clashub-luna-composer {
        padding: 12px;
    }

    .clashub-luna-input-row {
        min-height: 116px;
    }

    .clashub-luna-input {
        min-height: 88px;
    }

    .clashub-luna-full-root {
        width: 100%;
        margin: 0;
    }

    .clashub-ai-full-header {
        width: calc(100% - 28px);
        padding: 16px 0 6px;
    }

    .clashub-ai-full-header img {
        max-width: 100%;
        max-height: 44px;
    }

    .clashub-luna-panel--full-page {
        min-height: 520px;
        height: auto;
        border-radius: 0;
        overflow: visible;
    }

    .clashub-luna-panel--full-page .clashub-luna-messages {
        padding: 18px 14px;
        min-height: 360px;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .clashub-luna-panel--full-page .clashub-luna-composer {
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .clashub-luna-launcher,
    .clashub-luna-messages {
        transition: none;
        scroll-behavior: auto;
    }

    .clashub-luna-message--streaming::after {
        animation: none;
    }

    .clashub-luna-panel {
        transition: none;
    }
}

/* Live and final prose share inline formatting; progress labels stay block-level. */
.clashub-luna-progress-copy .clashub-clara-live-answer strong,
.clashub-luna-progress-copy .clashub-clara-live-answer span { display: inline; }
.clashub-luna-progress-copy .clashub-clara-live-answer { white-space: normal; }
.clara-evidence-record { margin: 0.8rem 0; overflow-wrap: anywhere; }
.clara-evidence-record > div { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.clara-evidence-record > div > div { min-width: 0; }

/* Progress-label rules must not recolor or resize answer text. */
.clashub-luna-progress-copy .clashub-clara-live-answer strong { color: inherit; font-weight: 700; }
.clashub-luna-progress-copy .clashub-clara-live-answer span { color: inherit; font-size: inherit; margin-top: 0; }
.clashub-luna-answer-text { color: var(--luna-ink); }
