/* ── Design tokens — Apple Store (C1) ── */
.predict-page {
    color-scheme: light;
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'PingFang SC',
        'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --bg-page: #fbfbfd;
    --surface: #ffffff;
    --surface-2: #f5f5f7;
    --surface-3: #e8e8ed;
    --border: #d2d2d7;
    --border-strong: #c7c7cc;
    --text: #1d1d1f;
    --text-muted: #86868b;
    --text-subtle: #aeaeb2;
    --accent: #0071e3;
    --accent-2: #0077ed;
    --accent-soft: rgba(0, 113, 227, 0.08);
    --danger: #ff3b30;
    --success: #34c759;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --btn-h: 44px;
    --btn-pad: 0 22px;
    --btn-font: 0.9375rem;
    --btn-radius: 980px;
}

/* ── Page shell ── */
.predict-page {
    font-family: var(--font);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 32px;
    position: relative;
    overflow-x: hidden;
}

.predict-page .page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -30%, rgba(0, 113, 227, 0.06), transparent 55%),
        linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
}

.predict-page .container--predict {
    position: relative;
    z-index: 1;
    max-width: 520px;
    width: 100%;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: none;
    padding: 0;
    overflow: hidden;
}

.predict-page .page-header {
    text-align: center;
    padding: 36px 28px 12px;
}

.predict-page .page-badge {
    display: none;
}

.predict-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0 0 6px;
}

.predict-page .subtitle {
    font-size: 1.0625rem;
    line-height: 1.47;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 320px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ── Tabs ── */
.predict-page .tab-buttons {
    display: flex;
    gap: 0;
    margin: 16px 20px 0;
    padding: 0;
    background: transparent;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
}

.predict-page .tab-btn {
    flex: 1;
    min-height: 40px;
    padding: 0 12px;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: var(--text-subtle);
    font-family: inherit;
    font-size: var(--btn-font);
    font-weight: 500;
    border-radius: 0;
    cursor: pointer;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.predict-page .tab-btn:hover:not(.active) {
    color: var(--text-muted);
    background: transparent;
}

.predict-page .tab-btn.active {
    color: var(--accent);
    background: transparent;
    box-shadow: none;
    border-bottom: 2px solid var(--accent);
    font-weight: 600;
}

/* ── Main panel ── */
.predict-page .predict-container {
    position: relative;
    margin: 12px 16px 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.predict-page .tab-content {
    animation: fadeUp 0.35s var(--ease);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.predict-page .panel-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 4px;
}

.predict-page .panel-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin: 0;
}

/* ── Image picker ── */
.predict-page .image-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.predict-page .image-picker-hint {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.predict-page .question-picker-item {
    width: 100%;
    max-width: 400px;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 18px 16px;
    background:
        linear-gradient(180deg, rgba(0, 113, 227, 0.06), rgba(0, 113, 227, 0.02)),
        var(--surface-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.predict-page .question-picker-text {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.72;
    letter-spacing: -0.004em;
    color: var(--text);
    font-weight: 520;
    width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    text-align: left;
}

.predict-page .question-picker-btn {
    align-self: center;
    min-height: 36px;
    min-width: 128px;
    padding: 0 18px;
    border-radius: var(--btn-radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--accent);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 580;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.predict-page .question-picker-btn:hover {
    background: #f8fbff;
    border-color: var(--accent);
    transform: translateY(-1px);
}

.predict-page .question-picker-btn:active {
    transform: translateY(0);
}

/* ── Record area ── */
.predict-page .record-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    border: none;
}

.predict-page .predict-container.has-report .record-area {
    padding: 8px 12px;
    gap: 8px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--border);
}

.predict-page .record-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.predict-page .record-btn,
.predict-page .cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 0.875rem;
    border-radius: var(--btn-radius);
    padding: 0 16px;
    min-height: 38px;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.predict-page .predict-container.has-report .record-btn,
.predict-page .predict-container.has-report .cancel-btn {
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.8125rem;
}

.predict-page .record-btn:disabled {
    background: var(--surface-2);
    color: var(--text-subtle);
    border-color: var(--surface-3);
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
}

.predict-page .btn-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

.predict-page .btn-icon-wrap .mic-icon {
    width: 14px;
    height: 14px;
}

.predict-page .record-btn {
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: none;
}

.predict-page .record-btn:hover:not(:disabled) {
    transform: none;
    background: var(--accent-2);
    border-color: var(--accent-2);
    filter: brightness(1.03);
}

.predict-page .cancel-btn {
    background: var(--surface);
    color: var(--accent);
    border: none;
    border-radius: var(--btn-radius);
    font-weight: 400;
}

.predict-page .recording-timer {
    display: flex;
    justify-content: center;
    padding: 0;
}

.predict-page .recording-status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.predict-page .recorded-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.predict-page .timer-display {
    font-size: 1.125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: var(--text);
    font-family: var(--font);
    line-height: 1.2;
}

.predict-page .recording-text {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.2;
}

.predict-page .recording-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

.predict-page .recording-status-row .recording-dot {
    background: var(--danger);
    border-radius: 50%;
    animation: recording-pulse 1.5s ease-in-out infinite;
}

@keyframes recording-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.15); }
}

.predict-page #audioPreview {
    width: 100%;
    border-radius: var(--radius-sm);
}

.predict-page .upload-recorded-btn {
    flex: none;
    width: auto;
    max-width: 100%;
    min-height: 38px;
    padding: 0 16px;
    font-size: 0.875rem;
    border-radius: var(--btn-radius);
    font-family: inherit;
    color: #fff;
    font-weight: 500;
    background: var(--accent);
    border: none;
    box-shadow: none;
    transform: none;
}

.predict-page .upload-recorded-btn .upload-icon-small {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.predict-page .upload-recorded-btn:hover:not(:disabled) {
    background: var(--accent-2);
    transform: none;
    box-shadow: none;
}

/* ── File drop ── */
.predict-page .file-drop-area {
    min-height: 160px;
    padding: 28px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.predict-page .file-drop-area:hover,
.predict-page .file-drop-area.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.predict-page .drop-icon-ring {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: none;
}

.predict-page .upload-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
    margin: 0;
}

.predict-page .drop-text {
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.01em;
}

.predict-page .file-types {
    font-size: 0.75rem;
    color: var(--text-subtle);
    letter-spacing: 0.02em;
}

.predict-page .selected-file {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
}

.predict-page .submit-btn {
    font-family: inherit;
    width: 100%;
    min-height: var(--btn-h);
    padding: var(--btn-pad);
    border-radius: var(--btn-radius);
    font-size: var(--btn-font);
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    box-shadow: none;
    margin-top: 8px;
    transition: background 0.2s var(--ease);
}

.predict-page .submit-btn:hover:not(:disabled) {
    background: var(--accent-2);
    filter: brightness(1.03);
}

.predict-page .submit-btn:disabled {
    background: var(--surface-3);
    color: var(--text-subtle);
    box-shadow: none;
    opacity: 0.6;
}

/* ── Overlay ── */
.predict-page .predict-overlay {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.predict-page .predict-overlay-spinner {
    width: 40px;
    height: 40px;
    border-width: 2px;
    border-color: var(--surface-3);
    border-top-color: var(--accent);
    box-shadow: none;
}

.predict-page .predict-overlay-text {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ── Results & report ── */
.predict-page .predict-result {
    margin: 8px 16px 0;
    padding: 0;
}

.predict-page .predict-result.success {
    background: transparent;
    border: none;
    padding: 0;
}

.predict-page .predict-result.error {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 16px;
}

.predict-page .mbti-report-card {
    background: transparent;
    border-radius: 0;
    border: none;
    overflow: hidden;
    box-shadow: none;
}

.predict-page .report-hero {
    position: relative;
    text-align: left;
    padding: 10px 14px;
    background: var(--surface-2);
    border-bottom: none;
    scroll-margin-top: 16px;
}

.predict-page .report-hero::before {
    display: none;
}

.predict-page .report-hero-ident {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.predict-page .report-hero-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.predict-page .report-hero .mbti-type {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.predict-page .mbti-nickname {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 113, 227, 0.2);
    box-shadow: none;
}

.predict-page .report-summary-inline {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-muted);
    font-weight: 400;
}

.predict-page .report-summary-inline--muted {
    color: var(--text-subtle);
}

.predict-page .report-hero-ident .report-functions {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-subtle);
    background: transparent;
    padding: 0;
    margin: 0;
}

.predict-page .report-toggle-btn {
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 28px;
    padding: 0 12px;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.predict-page .report-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.predict-page .report-details {
    display: none;
    padding: 0 16px 20px;
}

.predict-page .report-details.is-open {
    display: block;
    animation: fadeUp 0.35s var(--ease);
}

.predict-page .page-disclaimer {
    font-family: var(--font);
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ── Report body (single page) ── */
.predict-page .report-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.predict-page .report-block {
    margin-bottom: 12px;
    padding: 18px 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: inset 0 0 0 1px var(--border);
}

.predict-page .report-block--compact {
    padding-bottom: 12px;
}

.predict-page .report-block--accent {
    background: var(--surface-2);
    border-color: var(--border);
    box-shadow: none;
}

.predict-page .report-block--social {
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.15);
}

.predict-page .report-block-title,
.predict-page .chart-block .report-block-title {
    font-family: var(--font);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--text);
    margin: 0 0 12px;
    line-height: 1.4;
}

.predict-page .report-empty {
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--text-subtle);
    margin: 0;
}

.predict-page .report-prose {
    font-family: var(--font);
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.predict-page .report-prose p {
    margin: 0 0 0.75em;
}

.predict-page .report-prose p:last-child {
    margin-bottom: 0;
}

.predict-page .report-block--accent .report-prose {
    color: var(--text);
}

.predict-page .report-list {
    margin: 0;
    padding-left: 1.15rem;
    font-family: var(--font);
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.predict-page .report-list li {
    margin-bottom: 8px;
}

.predict-page .report-list li:last-child {
    margin-bottom: 0;
}

.predict-page .confidence-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.predict-page .sw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.predict-page .insight-card {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
}

.predict-page .insight-card--pro {
    background: var(--surface-2);
    border-color: var(--border);
}

.predict-page .insight-card--con {
    background: var(--surface-2);
    border-color: var(--border);
}

.predict-page .insight-card-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    color: var(--text-muted);
}

.predict-page .insight-card--pro .insight-card-title {
    color: var(--text);
}

.predict-page .insight-card--con .insight-card-title {
    color: var(--text-subtle);
}

.predict-page .insight-card .report-list {
    font-size: 0.8125rem;
}

.predict-page .bigfive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.predict-page .bf-card {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--surface-3);
    background: var(--surface);
}

.predict-page .bf-card.bf-high {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.predict-page .bf-card.bf-low {
    border-color: #fde68a;
    background: #fffbeb;
}

.predict-page .bf-card.bf-mid {
    background: var(--surface);
}

.predict-page .bf-card-head {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.predict-page .bf-card-dim {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--accent);
}

.predict-page .bf-card-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.predict-page .bf-card-dir {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    color: var(--text-subtle);
}

.predict-page .bf-card-text {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-muted);
}

@media (min-width: 480px) {
    .predict-page .bigfive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 520px) {
    .predict-page .sw-grid {
        grid-template-columns: 1fr;
    }

    .predict-page .bigfive-grid {
        grid-template-columns: 1fr;
    }
}

.predict-page .mbti-dimension {
    margin-bottom: 18px;
}

.predict-page .mbti-dimension:last-child {
    margin-bottom: 0;
}

.predict-page .dimension-labels {
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.predict-page .dim-left,
.predict-page .dim-right {
    color: var(--text-muted);
    font-weight: 600;
}

.predict-page .dim-picked {
    color: var(--accent);
}

.predict-page .dim-percent {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-subtle);
}

.predict-page .bar-bg {
    height: 8px;
    background: var(--surface-3);
    border-radius: 999px;
    overflow: hidden;
}

.predict-page .bar-fill {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), rgba(0, 113, 227, 0.35));
}

.predict-page .bar-pointer {
    display: none;
}

.predict-page .career-tags {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    gap: 8px;
    width: 100%;
}

.predict-page .career-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 6px 10px;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    word-break: break-all;
    overflow-wrap: anywhere;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--btn-radius);
    box-sizing: border-box;
}

.predict-page .career-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.predict-page .site-footer {
    position: relative;
    z-index: 1;
    max-width: 520px;
    width: 100%;
    padding: 0 8px;
    margin-top: 16px;
}

.predict-page .site-footer .page-disclaimer {
    color: var(--text-subtle);
    text-align: center;
    margin: 0;
}

/* ── MBTI spectrum & Big Five bars ── */
.predict-page .charts-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.predict-page .chart-block.report-block {
    text-align: left;
}

.predict-page .chart-caption {
    font-family: var(--font);
    font-size: 0.75rem;
    color: var(--text-subtle);
    margin: -6px 0 14px;
    line-height: 1.6;
}

/* MBTI bipolar spectrum */
.predict-page .mbti-spectrum {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.predict-page .spectrum-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.predict-page .spectrum-labels {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
}

.predict-page .spectrum-pole {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text-subtle);
    transition: color 0.2s var(--ease);
}

.predict-page .spectrum-pole--left {
    align-items: flex-start;
}

.predict-page .spectrum-pole--right {
    align-items: flex-end;
}

.predict-page .spectrum-pole.is-active {
    color: var(--accent);
}

.predict-page .spectrum-pole.is-active .spectrum-letter {
    color: var(--accent);
    font-weight: 700;
}

.predict-page .spectrum-letter {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-muted);
}

.predict-page .spectrum-name {
    font-size: 0.6875rem;
    font-weight: 500;
}

.predict-page .spectrum-track {
    position: relative;
    height: 4px;
    background: var(--surface-3);
    border-radius: 999px;
    overflow: visible;
    box-shadow: none;
}

.predict-page .spectrum-track-mid {
    position: absolute;
    left: 50%;
    top: -4px;
    bottom: -4px;
    width: 1px;
    margin-left: -0.5px;
    background: var(--border-strong);
    border-radius: 0;
    z-index: 1;
}

.predict-page .spectrum-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(90deg, rgba(0, 113, 227, 0.35), rgba(0, 113, 227, 0.06));
    pointer-events: none;
    transition: width 0.5s var(--ease);
}

.predict-page .spectrum-thumb-hit {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: left 0.5s var(--ease);
}

.predict-page .spectrum-thumb {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
    padding: 0;
    margin: 0;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-soft);
    cursor: help;
    transition: transform 0.15s var(--ease);
}

.predict-page .spectrum-thumb:hover,
.predict-page .spectrum-thumb:focus-visible {
    transform: scale(1.12);
    box-shadow: 0 0 0 3px var(--accent-soft), 0 4px 12px rgba(0, 113, 227, 0.2);
    outline: none;
}

.predict-page .spectrum-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 6px 10px;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    color: #fff;
    background: rgba(29, 29, 31, 0.92);
    border: none;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0.15s;
    z-index: 10;
}

.predict-page .spectrum-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: rgba(29, 29, 31, 0.92);
}

.predict-page .spectrum-thumb:hover .spectrum-tooltip,
.predict-page .spectrum-thumb:focus-visible .spectrum-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Big Five text list */
.predict-page .bigfive-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.predict-page .bigfive-item {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--surface-3);
}

.predict-page .bigfive-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.predict-page .bigfive-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.predict-page .bigfive-dim {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    width: 1.25rem;
}

.predict-page .bigfive-name {
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.predict-page .bigfive-text {
    margin: 0;
    font-family: var(--font);
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .predict-page {
        padding: 12px 12px 24px;
        align-items: stretch;
    }

    .predict-page .container--predict {
        border-radius: var(--radius-lg);
    }

    .predict-page .page-header {
        padding: 24px 20px 4px;
    }

    .predict-page h1 {
        font-size: 1.5rem;
    }

    .predict-page .tab-buttons,
    .predict-page .predict-container {
        margin-left: 16px;
        margin-right: 16px;
    }

    .predict-page .report-hero .mbti-type {
        font-size: 1.375rem;
    }

    .predict-page .report-hero {
        padding: 8px 12px;
    }
}

/* ── Global overrides (beat styles.css) ── */
.predict-page .upload-recorded-btn,
.predict-page .submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.predict-page .upload-recorded-btn:disabled,
.predict-page .submit-btn:disabled {
    opacity: 0.4;
}

.predict-page .report-list li::marker {
    color: var(--text-muted);
}

.predict-page .link-style,
.predict-page a {
    color: var(--accent);
}

.predict-page #audioPreview {
    width: 100%;
    border-radius: var(--radius-sm);
}
