:root {
    --bg: #0d1117;
    --bg-top: #172033;
    --panel: #161b22;
    --panel-soft: #1f2732;
    --surface-subtle: rgba(31, 39, 50, 0.88);
    --text: #e6edf3;
    --muted: #94a3b8;
    --accent: #7dd3fc;
    --accent-strong: #38bdf8;
    --border: rgba(148, 163, 184, 0.18);
    --button-bg: rgba(31, 39, 50, 0.7);
    --button-primary-text: #06131d;
    --input-bg: rgba(13, 17, 23, 0.9);
    --input-bg-focus: rgba(13, 17, 23, 1);
    --ui-subtle-bg: rgba(255, 255, 255, 0.03);
    --ui-subtle-bg-strong: rgba(255, 255, 255, 0.06);
    --ui-subtle-border: rgba(255, 255, 255, 0.1);
    --ui-control-ring: rgba(255, 255, 255, 0.12);
    --surface-elevated: rgba(22, 27, 34, 0.92);
    --surface-overlay: rgba(22, 27, 34, 0.6);
    --surface-hero: rgba(8, 12, 19, 0.74);
    --shadow-strong: 0 18px 48px rgba(0, 0, 0, 0.22);
    --help-hover-bg: rgba(88, 166, 255, 0.08);
}

html {
    font-size: 16px;
}

body {
    background: radial-gradient(circle at top, var(--bg-top) 0%, var(--bg) 55%);
    color: var(--text);
    min-height: 100vh;
    font-family: Inter, "Segoe UI", sans-serif;
    transition: background 0.25s ease, color 0.25s ease;
}

.shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.brand-link,
.main-nav a,
.auth-links a,
.auth-links button {
    color: var(--text);
    text-decoration: none;
}

.brand-link {
    font-weight: 700;
    letter-spacing: 0.08em;
}

.topbar-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-subtle);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.topbar-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar-menu-toggle:hover,
.topbar-menu-toggle:focus-visible {
    border-color: var(--accent);
    background: var(--help-hover-bg);
}

.topbar-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.topbar-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.topbar-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 4px 2px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text) 88%, var(--muted) 12%);
    transition: color 0.18s ease, transform 0.18s ease, text-shadow 0.18s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.1), rgba(45, 212, 191, 0.95), rgba(96, 165, 250, 0.1));
    transform: scaleX(0.35);
    opacity: 0;
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--text);
    transform: translateY(-1px);
    text-shadow: 0 0 14px rgba(45, 212, 191, 0.2);
}

.main-nav a.is-active {
    color: var(--text);
    text-shadow: 0 0 12px rgba(96, 165, 250, 0.18);
}

.main-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.2), rgba(96, 165, 250, 1), rgba(45, 212, 191, 0.85));
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.main-nav a[href="/Admin"] {
    padding-inline: 10px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.09);
}

.main-nav a[href="/Admin"]:hover,
.main-nav a[href="/Admin"]:focus-visible,
.main-nav a[href="/Admin"].is-active {
    background: rgba(96, 165, 250, 0.16);
}

.main-nav,
.topbar-actions,
.auth-links,
.language-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.help-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--muted);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.help-icon-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--help-hover-bg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--button-bg);
    color: var(--text);
    border-radius: 14px;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.lang-button,
.option-button {
    border-radius: 14px;
}

.lang-button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
}

.page-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.scroll-anchor-section {
    scroll-margin-top: 24px;
}

.portal-host-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 4px 16px 0;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-align: center;
}

.portal-host-strip-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.portal-host-strip-separator {
    opacity: 0.65;
}

.portal-host-socials {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.portal-host-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.portal-host-social-link:hover {
    color: var(--text);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

.portal-host-social-link svg {
    width: 13px;
    height: 13px;
    display: block;
}

.footer-bar {
    margin-top: 24px;
    padding: 12px 4px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bar a {
    color: var(--muted);
    text-decoration: none;
}

.footer-bar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-host-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    max-width: min(520px, 100%);
    color: var(--muted);
    font-size: 0.9rem;
    text-align: right;
}

.footer-host-block strong {
    color: var(--text);
    font-size: 0.92rem;
}

.footer-host-socials {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.hero-copy,
.hero-media,
.panel-card,
.pattern-card,
.auth-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-strong);
}

.hero-copy,
.hero-media {
    min-width: 0;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-media {
    display: flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.hero-media-frame {
    position: relative;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.2), transparent 42%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.84), rgba(8, 12, 19, 0.96));
}

.hero-media-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.98) contrast(1.04);
}

.hero-media-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 7, 18, 0.08), rgba(3, 7, 18, 0.48)),
        linear-gradient(90deg, rgba(4, 9, 18, 0.1), rgba(4, 9, 18, 0.16));
    pointer-events: none;
}

.hero-media-overlay {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(calc(100% - 40px), 560px);
    padding: 22px 24px;
    border-radius: 24px;
    background: var(--surface-hero);
    border: 1px solid rgba(125, 211, 252, 0.18);
    text-align: center;
    backdrop-filter: blur(14px);
}

.hero-media-kicker {
    margin: 0;
    color: var(--text);
    text-transform: none;
    letter-spacing: -0.02em;
    line-height: 1.08;
    font-size: clamp(1.5rem, 2.6vw, 2.35rem);
    font-weight: 700;
}

.hero-media-copy {
    margin: 0;
    color: var(--muted);
    max-width: 44ch;
    font-size: 1rem;
    line-height: 1.55;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.02;
    margin: 16px 0;
}

.lead,
.panel-card p,
.pattern-card p,
.auth-card p {
    color: var(--muted);
}

.hero-actions,
.detail-grid,
.feature-grid {
    margin-top: 24px;
}

.hero-actions,
.detail-grid,
.feature-grid,
.pattern-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-grid,
.pattern-grid,
.detail-grid {
    align-items: stretch;
}

.feature-card,
.context-item {
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
}

.feature-card,
.pattern-card,
.context-item,
.trace-item,
.panel-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-card,
.pattern-card,
.detail-grid > *,
.feature-grid > *,
.pattern-grid > * {
    flex: 1 1 280px;
    min-width: 0;
}

.page-header-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.metric-chip,
.feedback-banner,
.welcome-chip {
    background: rgba(56, 189, 248, 0.14);
    color: var(--text);
    border: 1px solid rgba(125, 211, 252, 0.3);
    border-radius: 999px;
    padding: 10px 14px;
}

.metric-chip {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scenario-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.scenario-meta,
.pattern-card-top,
.pattern-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.scenario-trigger {
    color: var(--accent);
}

.scenario-body {
    font-size: 1.08rem;
    line-height: 1.65;
}

.scenario-options,
.context-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.decision-trace-list,
.stacked-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trace-item {
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
}

.trace-item-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.trace-area {
    background: rgba(125, 211, 252, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.28);
    color: var(--accent);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.86rem;
}

.session-console-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.session-console-view-toggle {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--ui-subtle-border);
    background: var(--ui-subtle-bg);
}

.console-view-chip {
    border: 1px solid transparent;
    background: transparent;
    color: color-mix(in srgb, var(--text) 72%, transparent);
    padding: 8px 10px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.console-view-chip.is-active {
    color: var(--text);
    border-color: rgba(125, 211, 252, 0.34);
    background: rgba(125, 211, 252, 0.12);
}

.btn.btn-compact {
    padding: 10px 12px;
    font-size: 0.85rem;
    line-height: 1;
}

.session-console-entries.is-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-console-entry {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(31, 39, 50, 0.42);
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.session-console-entry-main {
    display: flex;
    gap: 14px;
    min-width: 0;
}

.session-console-thumb {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    background:
        radial-gradient(circle at 30% 25%, rgba(125, 211, 252, 0.22), transparent 55%),
        rgba(10, 14, 20, 0.72);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    position: relative;
}

.session-console-thumb-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    pointer-events: none;
    user-select: none;
    display: block;
}

.session-console-thumb-letter {
    font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(230, 237, 243, 0.92);
    text-transform: uppercase;
}

.session-console-entry-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-console-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(230, 237, 243, 0.64);
    font-size: 0.82rem;
}

.session-status-pill {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.66rem;
}

.session-status-pill.is-active {
    border-color: rgba(134, 216, 255, 0.26);
    background: rgba(134, 216, 255, 0.12);
    color: rgba(134, 216, 255, 0.92);
}

.session-status-pill.is-complete {
    border-color: rgba(137, 255, 155, 0.24);
    background: rgba(137, 255, 155, 0.11);
    color: rgba(137, 255, 155, 0.9);
}

.session-console-entry-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.1;
}

.session-console-intent-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.session-console-intent-label {
    color: rgba(230, 237, 243, 0.52);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.session-console-intent-text {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(230, 237, 243, 0.92);
    font-size: 0.86rem;
}

.session-console-entry-summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.session-console-entry-actions {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.session-console-entry-actions form {
    margin: 0;
}

.session-console-entries.is-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 14px;
}

.session-console-entries.is-grid .session-console-entry {
    grid-template-columns: 1fr;
    gap: 14px;
}

.session-console-entries.is-grid .session-console-entry-main {
    flex-direction: column;
    gap: 12px;
}

.session-console-entries.is-grid .session-console-thumb {
    width: 100%;
    height: 168px;
    border-radius: 20px;
}

.session-console-entries.is-grid .session-console-entry-actions {
    justify-content: flex-start;
}

.option-button {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: rgba(31, 39, 50, 0.92);
    color: var(--text);
    border: 1px solid var(--border);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.option-button:hover,
.lang-button:hover,
.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(125, 211, 252, 0.6);
}

.btn-primary {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: var(--button-primary-text);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.25);
    color: var(--muted);
    padding: 10px 14px;
    font-size: 0.85rem;
}

.btn-ghost:hover {
    background: rgba(125, 211, 252, 0.08);
    border-color: rgba(125, 211, 252, 0.45);
    color: var(--text);
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-control,
.form-select {
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
}

.form-control:focus,
.form-select:focus {
    background: var(--input-bg-focus);
    color: var(--text);
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.18);
}

.form-control::placeholder,
.form-select::placeholder {
    color: var(--muted);
    opacity: 1;
}

.compact-check {
    margin-bottom: 16px;
}

.auth-footer {
    margin-bottom: 0;
}

.accent-card {
    border-color: rgba(125, 211, 252, 0.35);
}

.table-shell {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.table-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-table th {
    color: var(--muted);
    font-weight: 600;
}

.admin-stat-grid .pattern-card h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.compact-context-list {
    margin: 16px 0;
}

.support-copy {
    color: var(--muted);
    margin-bottom: 0;
}

.session-stage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.stage-card {
    background: rgba(22, 27, 34, 0.72);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
}

.stage-active {
    border-color: rgba(125, 211, 252, 0.5);
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.2) inset;
}

.stage-complete {
    background: rgba(31, 39, 50, 0.92);
}

.session-layout {
    align-items: stretch;
}

.scenario-image {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.scenario-image-placeholder {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(13, 17, 23, 0.7));
    color: var(--muted);
}

.muted-stage-card {
    background: rgba(22, 27, 34, 0.72);
}

.option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.option-row input {
    margin: 0;
}

.intent-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

.intent-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.intent-card-left {
    width: 100%;
}

.intent-card-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.intent-card:hover {
    border-color: rgba(125, 211, 252, 0.4);
    background: rgba(125, 211, 252, 0.04);
    transform: translateY(-1px);
}

.intent-card-selected {
    border-color: rgba(125, 211, 252, 0.6);
    background: rgba(125, 211, 252, 0.08);
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.2) inset;
}

.intent-card-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.intent-card-header {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text);
    line-height: 1.25;
}

.intent-card-selected .intent-card-header {
    color: var(--accent);
}

.intent-card-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.intent-card-examples {
    color: rgba(148, 163, 184, 0.7);
    font-size: 0.82rem;
    line-height: 1.5;
    font-style: italic;
    padding-top: 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.intent-card-hero {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 1100px) {
    .intent-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .intent-card-grid {
        grid-template-columns: 1fr;
    }
}

.micro-program {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.info-grid > * {
    flex: 1 1 320px;
}

/* ── Help page styles ── */
.help-note {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
    margin-top: 8px;
}

.help-framework {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 3px solid var(--accent, #38bdf8);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
}

.help-framework h3 {
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    color: var(--accent, #38bdf8);
}

.help-framework p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.help-faq-item {
    margin: 8px 0;
    padding: 0;
}

.help-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 8px 0;
    list-style: none;
    border-bottom: 1px solid var(--border, rgba(148, 163, 184, 0.15));
}

.help-faq-item summary::before {
    content: "+ ";
    color: var(--accent, #38bdf8);
    font-weight: 700;
    margin-right: 6px;
}

.help-faq-item[open] summary::before {
    content: "- ";
}

.help-faq-item p {
    padding: 8px 0 8px 16px;
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.85;
}

.brochure-library-card {
    display: grid;
    gap: 18px;
}

.brochure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.brochure-card {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.brochure-card-media {
    position: relative;
    min-height: 188px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.24));
}

.brochure-card-image,
.brochure-card-fallback {
    width: 100%;
    height: 100%;
    min-height: 188px;
}

.brochure-card-image {
    display: block;
    object-fit: cover;
}

.brochure-card-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    font-weight: 700;
    color: var(--text);
}

.brochure-card-body {
    display: grid;
    gap: 10px;
    padding: 18px 18px 8px;
}

.brochure-card-body h3 {
    margin: 0;
    font-size: 1.06rem;
}

.brochure-card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.brochure-card-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-strong);
    font-size: 0.75rem;
    font-weight: 700;
}

.brochure-points {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    line-height: 1.5;
}

.brochure-points li + li {
    margin-top: 6px;
}

.brochure-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 18px 18px;
}

.brochure-card-actions .btn {
    flex: 1 1 180px;
}

.recommend-spotlight {
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.recommend-empty-state {
    border: 1px solid rgba(56, 189, 248, 0.18);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
}

.recommend-empty-state-copy {
    display: grid;
    gap: 12px;
    max-width: 880px;
}

.recommend-empty-state-copy h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.recommend-empty-state-copy p {
    margin: 0;
}

.recommend-spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.recommend-spotlight-copy {
    display: grid;
    gap: 14px;
}

.recommend-spotlight-copy h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2.15rem);
}

.recommend-spotlight-copy p {
    margin: 0;
}

.recommend-spotlight-media {
    min-height: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(15, 23, 42, 0.22));
}

.recommend-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recommend-share-row-card {
    padding: 0 18px 18px;
}

.share-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.32);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.share-pill:hover {
    transform: translateY(-1px);
    color: var(--text);
    border-color: rgba(56, 189, 248, 0.42);
    background: rgba(56, 189, 248, 0.18);
}

.share-pill-generic {
    border-color: rgba(56, 189, 248, 0.34);
    background: rgba(56, 189, 248, 0.16);
}

.share-pill-whatsapp {
    border-color: rgba(34, 197, 94, 0.28);
}

.share-pill-linkedin {
    border-color: rgba(96, 165, 250, 0.3);
}

.share-pill-facebook {
    border-color: rgba(129, 140, 248, 0.3);
}

.share-pill-twitter {
    border-color: rgba(148, 163, 184, 0.3);
}

.share-pill-email {
    border-color: rgba(251, 191, 36, 0.32);
}

.share-pill-copy {
    border-color: rgba(244, 114, 182, 0.3);
}

.recommend-link-block {
    display: block;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.18);
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
}

.recommend-card {
    position: relative;
}

.recommend-card-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.recommend-card-selected {
    border-color: rgba(56, 189, 248, 0.42);
    box-shadow: 0 24px 54px rgba(14, 165, 233, 0.18);
}

.recommend-card-selected::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    pointer-events: none;
}

@media (max-width: 900px) {
    .recommend-spotlight-grid {
        grid-template-columns: 1fr;
    }
}

.focus-banner {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.16), rgba(22, 27, 34, 0.96));
}

.focus-banner-compact {
    padding: 16px 20px;
    gap: 10px;
}

.focus-banner-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.session-stage-inline-wrap {
    padding: 4px 8px;
    gap: 4px;
}

.session-stage-inline,
.session-stage-mini-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.session-control-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
}

.session-phase-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.stage-mini-item {
    color: rgba(230, 238, 255, 0.48);
    font-size: 0.63rem;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0;
    border: 0;
    background: transparent;
    position: relative;
}

/* session-phase-separator removed — phases now in separate nav */

.stage-mini-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: transparent;
    opacity: 0.9;
}

.stage-mini-item:nth-of-type(1)::after {
    background: rgba(137, 255, 155, 0.24);
}

.stage-mini-item:nth-of-type(2)::after {
    background: rgba(134, 216, 255, 0.24);
}

.stage-mini-item:nth-of-type(3)::after {
    background: rgba(255, 196, 107, 0.24);
}

.stage-mini-active {
    color: var(--text);
    font-weight: 700;
}

.stage-mini-complete {
    color: rgba(230, 238, 255, 0.72);
}

.stage-mini-active:nth-of-type(1) {
    color: #89ff9b;
}

.stage-mini-active:nth-of-type(2) {
    color: #86d8ff;
}

.stage-mini-active:nth-of-type(3) {
    color: #ffc46b;
}

.stage-mini-complete {
    color: var(--accent);
}

.session-toolbar-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.session-stage-inline-wrap > .session-meta-line {
    flex-wrap: wrap;
    overflow: visible;
    justify-content: flex-start;
    margin-top: 4px;
}

.session-stage-inline-wrap > .session-meta-inline-value {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.session-toolbar-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text);
    padding-right: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toolbar-action-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.toolbar-action-chip:hover,
.toolbar-action-chip:focus-visible {
    color: var(--text);
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(125, 211, 252, 0.3);
}

.session-meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    justify-content: flex-end;
}

.session-meta-inline-label {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.session-meta-inline-value {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    font-size: 0.76rem;
}

.session-stage-inline-wrap > .session-meta-line.session-meta-line-compact {
    justify-content: center;
    padding: 4px 0;
}

.intent-detail-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(125, 211, 252, 0.22);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.intent-detail-trigger:hover,
.intent-detail-trigger:focus-visible {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(125, 211, 252, 0.35);
    color: var(--text);
}

.intent-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.intent-detail-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.intent-detail-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.intent-detail-modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: rgba(22, 27, 34, 0.96);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    transform: translateY(8px);
    transition: transform 0.2s ease;
}

.intent-detail-modal.is-open .intent-detail-modal-content {
    transform: translateY(0);
}

.intent-detail-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.intent-detail-modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.intent-detail-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.intent-detail-modal-close:hover,
.intent-detail-modal-close:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.intent-detail-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.intent-detail-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.intent-detail-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.intent-detail-value {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text);
}

.session-theme-controls,
.global-theme-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.global-theme-controls {
    padding: 4px 8px;
    background: var(--surface-overlay);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.theme-chip {
    width: 14px;
    height: 14px;
    padding: 0;
    border: 1px solid var(--ui-subtle-border);
    background: var(--ui-subtle-bg);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-chip[data-theme="phosphor"] {
    background: linear-gradient(180deg, #89ff9b, #2a6b31);
}

.theme-chip[data-theme="ice"] {
    background: linear-gradient(180deg, #86d8ff, #295d86);
}

.theme-chip[data-theme="ember"] {
    background: linear-gradient(180deg, #ffc46b, #8a4f16);
}

.theme-chip[data-theme="light"] {
    background: linear-gradient(180deg, #f8fafc, #94a3b8);
}

.theme-chip:hover,
.theme-chip:focus-visible,
.theme-chip.is-active {
    transform: scale(1.1);
    border-color: color-mix(in srgb, var(--accent-strong) 44%, var(--ui-subtle-border));
    box-shadow: 0 0 0 2px var(--ui-control-ring);
}

.stage-pill {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: var(--ui-subtle-bg);
    font-size: 0.72rem;
}

.stage-pill-active {
    color: var(--text);
    border-color: rgba(125, 211, 252, 0.45);
    background: rgba(56, 189, 248, 0.12);
}

.stage-pill-complete {
    color: var(--accent);
}

.session-workspace,
.dashboard-workspace {
    align-items: flex-start;
}

.scenario-main-card {
    flex: 1 1 620px;
    gap: 20px;
}

.scenario-main-card-linear {
    flex: 1 1 100%;
}

.session-cinematic-stage {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.session-cinematic-stage.theme-phosphor {
    --session-theme-accent: #89ff9b;
    --session-theme-accent-soft: rgba(137, 255, 155, 0.18);
    --session-theme-text: #e7ffe9;
    --session-theme-panel: rgba(1, 20, 6, 0.68);
    --session-theme-panel-strong: rgba(0, 18, 4, 0.84);
    --session-theme-border: rgba(137, 255, 155, 0.28);
}

.session-cinematic-stage.theme-ice {
    --session-theme-accent: #86d8ff;
    --session-theme-accent-soft: rgba(134, 216, 255, 0.16);
    --session-theme-text: #f1f9ff;
    --session-theme-panel: rgba(5, 18, 32, 0.68);
    --session-theme-panel-strong: rgba(6, 18, 34, 0.86);
    --session-theme-border: rgba(134, 216, 255, 0.28);
}

.session-cinematic-stage.theme-ember {
    --session-theme-accent: #ffc46b;
    --session-theme-accent-soft: rgba(255, 196, 107, 0.16);
    --session-theme-text: #fff8ef;
    --session-theme-panel: rgba(33, 16, 3, 0.68);
    --session-theme-panel-strong: rgba(34, 16, 3, 0.86);
    --session-theme-border: rgba(255, 196, 107, 0.28);
}

.session-cinematic-stage.theme-light {
    --session-theme-accent: #2563eb;
    --session-theme-accent-soft: rgba(37, 99, 235, 0.08);
    --session-theme-text: #10213a;
    --session-theme-panel: rgba(255, 255, 255, 0.94);
    --session-theme-panel-strong: rgba(255, 255, 255, 0.98);
    --session-theme-border: rgba(148, 163, 184, 0.24);
}

/* Global body themes (landing page, dashboard, etc.) */
body.theme-phosphor {
    --accent: #89ff9b;
    --accent-strong: #4ade80;
    --border: rgba(137, 255, 155, 0.22);
}

body.theme-ice {
    --accent: #86d8ff;
    --accent-strong: #38bdf8;
    --border: rgba(134, 216, 255, 0.22);
}

body.theme-ember {
    --accent: #ffc46b;
    --accent-strong: #f59e0b;
    --border: rgba(255, 196, 107, 0.22);
}

body.theme-light {
    --bg: #eef4fb;
    --bg-top: #ffffff;
    --panel: #ffffff;
    --panel-soft: #f4f8fc;
    --surface-subtle: rgba(244, 248, 252, 0.96);
    --text: #10213a;
    --muted: #5f738c;
    --accent: #60a5fa;
    --accent-strong: #2563eb;
    --border: rgba(37, 99, 235, 0.16);
    --button-bg: rgba(255, 255, 255, 0.88);
    --button-primary-text: #ffffff;
    --input-bg: rgba(255, 255, 255, 0.98);
    --input-bg-focus: #ffffff;
    --ui-subtle-bg: rgba(37, 99, 235, 0.06);
    --ui-subtle-bg-strong: rgba(37, 99, 235, 0.1);
    --ui-subtle-border: rgba(37, 99, 235, 0.16);
    --ui-control-ring: rgba(37, 99, 235, 0.16);
    --surface-elevated: rgba(255, 255, 255, 0.94);
    --surface-overlay: rgba(255, 255, 255, 0.82);
    --surface-hero: rgba(255, 255, 255, 0.82);
    --shadow-strong: 0 18px 42px rgba(15, 23, 42, 0.10);
    --help-hover-bg: rgba(37, 99, 235, 0.08);
}

body.theme-light .hero-media-frame {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.2), transparent 42%),
        linear-gradient(180deg, #dbeafe, #eff6ff);
}

body.theme-light .hero-media-frame::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(15, 23, 42, 0.12)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(15, 23, 42, 0.06));
}

body.theme-light .dash-confidence-pill,
body.theme-light .dash-insight-tile,
body.theme-light .dash-confidence-bar-wrap,
body.theme-light .validation-card,
body.theme-light .checkin-card,
body.theme-light .action-card {
    background: var(--ui-subtle-bg);
}

body.theme-light .dash-confidence-pill {
    border-color: var(--ui-subtle-border);
}

body.theme-light .session-console-entry,
body.theme-light .option-button,
body.theme-light .stage-card,
body.theme-light .stage-complete,
body.theme-light .muted-stage-card,
body.theme-light .intent-detail-modal-content,
body.theme-light .dash-pattern-card,
body.theme-light .integral-primary-card {
    background: var(--surface-subtle);
    border-color: var(--ui-subtle-border);
}

body.theme-light .session-console-thumb,
body.theme-light .profile-avatar-frame,
body.theme-light .identity-context-avatar-fallback {
    border-color: rgba(37, 99, 235, 0.18);
    background:
        radial-gradient(circle at 30% 25%, rgba(96, 165, 250, 0.24), transparent 55%),
        linear-gradient(180deg, #eff6ff, #dbeafe);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

body.theme-light .session-console-thumb-letter,
body.theme-light .profile-avatar-fallback {
    color: var(--accent-strong);
}

body.theme-light .session-console-topline,
body.theme-light .session-console-intent-label {
    color: var(--muted);
}

body.theme-light .session-status-pill,
body.theme-light .session-console-intent-text,
body.theme-light .toolbar-action-chip,
body.theme-light .inline-context-confidence,
body.theme-light .session-count-badge,
body.theme-light .intent-detail-modal-close,
body.theme-light .identity-context-chip,
body.theme-light .identity-context-chip-compact,
body.theme-light .identity-meta-pill {
    background: var(--ui-subtle-bg);
    border-color: var(--ui-subtle-border);
}

body.theme-light .identity-context-chip-premium {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.14), rgba(255, 255, 255, 0.96));
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

body.theme-light .option-row,
body.theme-light .intent-card,
body.theme-light .intent-card-hero,
body.theme-light .micro-program,
body.theme-light .help-framework,
body.theme-light .brochure-card,
body.theme-light .scenario-prompt-block,
body.theme-light .option-button-rich,
body.theme-light .signal-tile,
body.theme-light .trend-meter-bar,
body.theme-light .details-panel,
body.theme-light .intent-question-set,
body.theme-light .analysis-reading-card,
body.theme-light .validation-card,
body.theme-light .checkin-card,
body.theme-light .action-card,
body.theme-light .pattern-detail-inline,
body.theme-light .inline-stat,
body.theme-light .inline-statement,
body.theme-light .inline-insight-tile,
body.theme-light .inline-guidance,
body.theme-light .inline-context-card {
    background: var(--ui-subtle-bg);
    border-color: var(--ui-subtle-border);
}

body.theme-light .brochure-card {
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

body.theme-light .brochure-card-media {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(255, 255, 255, 0.94));
}

body.theme-light .recommend-spotlight {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

body.theme-light .recommend-empty-state {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

body.theme-light .recommend-spotlight-media {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.14), rgba(255, 255, 255, 0.96));
}

body.theme-light .share-pill {
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
}

body.theme-light .share-pill:hover {
    background: rgba(59, 130, 246, 0.08);
}

body.theme-light .recommend-link-block {
    background: rgba(248, 250, 252, 0.96);
}

.floating-whatsapp-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #128c4a);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 18px 36px rgba(18, 140, 74, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.floating-whatsapp-button:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.floating-whatsapp-button-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.floating-whatsapp-button-mark svg {
    width: 20px;
    height: 20px;
    display: block;
}

.floating-whatsapp-button-text {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.15;
}

@media (max-width: 640px) {
    .floating-whatsapp-button {
        right: 14px;
        bottom: 14px;
        padding: 11px 14px;
    }

    .floating-whatsapp-button-text {
        display: none;
    }
}

body.theme-light .scenario-prompt-block-hero,
body.theme-light .dash-intent-card {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.14), rgba(255, 255, 255, 0.96));
}

body.theme-light .scenario-image-placeholder {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.14), rgba(255, 255, 255, 0.92));
}

body.theme-light .intent-card-examples {
    color: var(--muted);
    border-top-color: var(--ui-subtle-border);
}

body.theme-light .toolbar-action-chip {
    box-shadow: none;
}

body.theme-light .intent-detail-modal-content {
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

body.theme-light .intent-detail-modal-close:hover,
body.theme-light .intent-detail-modal-close:focus-visible {
    background: var(--ui-subtle-bg-strong);
}

body.theme-light .carto-completion-hero,
body.theme-light .carto-round-contribution,
body.theme-light .carto-continue-prompt,
body.theme-light .carto-evolution-card,
body.theme-light .carto-history-card,
body.theme-light .carto-card-section {
    background: var(--surface-elevated);
}

body.theme-light .carto-narrative-card {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(255, 255, 255, 0.96));
    border-left-color: rgba(37, 99, 235, 0.28);
}

body.theme-light .carto-narrative-section + .carto-narrative-section {
    border-top-color: rgba(37, 99, 235, 0.1);
}

body.theme-light .carto-area-bar-track,
body.theme-light .carto-timeline-current {
    background: var(--ui-subtle-bg);
}

body.theme-light .carto-timeline-current {
    border-color: rgba(37, 99, 235, 0.16);
}

body.theme-light .carto-timeline-number {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.22);
}

body.theme-light .carto-timeline-current .carto-timeline-number {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.42);
    color: var(--accent-strong);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.14);
}

body.theme-light .carto-quick-sep {
    color: rgba(37, 99, 235, 0.22);
}

body.theme-light .focus-summary-card {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
}

body.theme-light .session-stage-inline-wrap {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body.theme-light .session-control-strip {
    gap: 14px;
}

body.theme-light .session-toolbar-title {
    color: var(--text);
}

body.theme-light .toolbar-mode-badge.mode-cartography {
    background: rgba(168, 85, 247, 0.10);
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.18);
}

body.theme-light .toolbar-action-chip {
    color: #5f738c;
    background: #f8fbff;
    border-color: rgba(37, 99, 235, 0.12);
}

body.theme-light .toolbar-action-chip:hover,
body.theme-light .toolbar-action-chip:focus-visible {
    color: var(--accent-strong);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
}

body.theme-light .session-phase-nav {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid rgba(37, 99, 235, 0.10);
}

body.theme-light .stage-mini-item {
    padding: 5px 6px;
    border-radius: 999px;
    color: #94a3b8;
}

body.theme-light .stage-mini-item::after {
    display: none;
}

body.theme-light .stage-mini-active {
    font-weight: 700;
}

body.theme-light .stage-mini-active:nth-of-type(1) {
    color: #22c55e;
}

body.theme-light .stage-mini-active:nth-of-type(2) {
    color: var(--accent-strong);
}

body.theme-light .stage-mini-active:nth-of-type(3) {
    color: #f59e0b;
}

body.theme-light .stage-mini-complete {
    color: #7c8da5;
}

body.theme-light .session-cinematic-stage.theme-light .scene-hero-overlay {
    padding: 28px 0;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.88) 0%, rgba(238, 244, 251, 0.96) 100%);
}

body.theme-light .session-cinematic-stage.theme-light .scene-hero-card {
    background:
        radial-gradient(circle at 24% 18%, rgba(96, 165, 250, 0.12), transparent 30%),
        linear-gradient(180deg, #eef4fb 0%, #e8f0f8 100%);
}

body.theme-light .session-cinematic-stage.theme-light .scene-hero-image {
    filter: saturate(1) contrast(1);
    opacity: 1;
    border-color: rgba(37, 99, 235, 0.10);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
}

body.theme-light .session-cinematic-stage.theme-light .scene-hero-placeholder {
    color: var(--muted);
    background: radial-gradient(circle at top, rgba(96, 165, 250, 0.14), rgba(255, 255, 255, 0.98) 58%);
}

body.theme-light .session-cinematic-stage.theme-light .scene-hero-card::after {
    opacity: 0.04;
}

body.theme-light .session-cinematic-stage.theme-light .scene-stage-grid {
    gap: 28px;
    max-width: min(1240px, 94vw);
}

body.theme-light .session-cinematic-stage.theme-light .scene-content-column {
    gap: 16px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(37, 99, 235, 0.10);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

body.theme-light .session-cinematic-stage.theme-light .scene-hud-strip {
    color: #6b7f97;
}

body.theme-light .session-cinematic-stage.theme-light .scene-trigger-lead {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-strong);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-shadow: none;
    box-shadow: none;
}

body.theme-light .session-cinematic-stage.theme-light .scene-hero-body {
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.45;
}

body.theme-light .session-cinematic-stage.theme-light .scene-inline-label {
    color: var(--accent-strong);
    font-weight: 700;
}

body.theme-light .session-cinematic-stage.theme-light .line-highlight,
body.theme-light .session-cinematic-stage.theme-light .line-highlight-title,
body.theme-light .session-cinematic-stage.theme-light .line-highlight-body,
body.theme-light .session-cinematic-stage.theme-light .line-highlight-block {
    text-shadow: none;
    box-shadow: none;
}

body.theme-light .session-cinematic-stage.theme-light .line-highlight-title {
    display: inline-block;
    padding: 0.18rem 0.5rem 0.22rem;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-strong);
}

body.theme-light .session-cinematic-stage.theme-light .line-highlight-block {
    max-width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid rgba(37, 99, 235, 0.10);
    color: var(--text);
}

body.theme-light .session-cinematic-stage.theme-light .scene-signal-inline {
    color: var(--text);
    padding: 0;
}

body.theme-light .session-cinematic-stage.theme-light .scene-signal-inline .signal-label {
    color: #6b7f97;
}

body.theme-light .session-cinematic-stage.theme-light .scene-signal-inline strong {
    color: var(--text);
}

body.theme-light .session-cinematic-stage.theme-light .signal-badge {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.16);
}

body.theme-light .scenario-main-card,
body.theme-light .live-read-card,
body.theme-light .primary-read-card,
body.theme-light .scenario-context-card,
body.theme-light .scenario-context-card-inline,
body.theme-light .focus-summary-card,
body.theme-light .intent-step-two,
body.theme-light .carto-identity-card {
    color: var(--text);
}

body.theme-light .intent-card-selected {
    border-color: rgba(37, 99, 235, 0.34);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12) inset;
}

body.theme-light .intent-card-selected .intent-card-header {
    color: var(--accent-strong);
}

body.theme-light .intent-question {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

body.theme-light .carto-identity-card {
    background: linear-gradient(170deg, #eff6ff 0%, #ffffff 42%, #dbeafe 100%);
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.12);
    color: var(--text);
}

body.theme-light .carto-id-card-brand,
body.theme-light .carto-id-card-coherence-value {
    color: var(--accent-strong);
}

body.theme-light .carto-id-card-date,
body.theme-light .carto-id-card-section-label,
body.theme-light .carto-id-card-pattern-pct,
body.theme-light .carto-id-card-footer {
    color: var(--muted);
}

body.theme-light .carto-id-card-pattern-name {
    color: var(--text);
}

body.theme-light .carto-id-card-bar-track {
    background: rgba(37, 99, 235, 0.12);
}

body.theme-light .carto-id-card-coherence,
body.theme-light .carto-id-card-footer {
    border-top-color: rgba(37, 99, 235, 0.1);
}

body.theme-light .session-cinematic-stage.theme-light .scenario-options-overlay {
    gap: 12px;
}

body.theme-light .session-cinematic-stage.theme-light .option-button-rich {
    min-height: 56px;
    border-color: rgba(37, 99, 235, 0.10);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

body.theme-light .session-cinematic-stage.theme-light .option-button-rich:hover,
body.theme-light .session-cinematic-stage.theme-light .option-button-rich:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.10);
    background: #f8fbff;
}

body.theme-light .session-cinematic-stage.theme-light .option-button-cue {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: none;
}

body.theme-light .option-button-rich:hover,
body.theme-light .option-button-rich:focus-visible,
body.theme-light .action-card:hover,
body.theme-light .session-table tbody tr:hover,
body.theme-light .past-analysis-item:hover,
body.theme-light .history-item:hover {
    background: var(--ui-subtle-bg-strong);
}

.scene-hero-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    min-height: 78vh;
    background:
        radial-gradient(circle at 30% 22%, rgba(38, 79, 118, 0.3), transparent 34%),
        linear-gradient(180deg, #0f1720, #08111a);
}

.scene-hero-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: min(68vh, 720px);
    object-fit: cover;
    object-position: center center;
    display: block;
    filter: saturate(1.03) contrast(1) brightness(0.92);
    opacity: 0.94;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.scene-hero-video {
    background: #05080d;
}

.scene-hero-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: min(68vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), rgba(13, 17, 23, 0.92) 58%);
    border-radius: 18px;
}

.scene-hero-overlay {
    position: relative;
    display: block;
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(5, 10, 16, 0.24) 0%, rgba(5, 10, 16, 0.08) 28%, rgba(5, 10, 16, 0.52) 76%, rgba(5, 10, 16, 0.82) 100%);
}

.scene-hero-overlay-cinematic {
    padding: 14px 18px 18px;
}

.scene-stage-grid {
    display: grid;
    grid-template-columns: minmax(300px, 40vw) minmax(320px, 1fr);
    gap: 24px;
    align-items: start;
    max-width: min(1240px, 96vw);
    margin: 0 auto;
}

.scene-media-column,
.scene-content-column {
    min-width: 0;
}

.scene-content-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
}

.scene-hud-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    color: var(--session-theme-text);
    font-size: 0.8rem;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-wrap: wrap;
}

.scene-hud-dot {
    opacity: 0.4;
}

.scene-hud-kicker {
    font-weight: 700;
}

.scene-trigger-lead {
    margin: 4px 0 2px;
    color: var(--session-theme-accent);
    font-size: clamp(0.96rem, 1.05vw, 1.12rem);
    line-height: 1.18;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    max-width: 42rem;
    font-weight: 700;
    text-shadow: 0 0 14px color-mix(in srgb, var(--session-theme-accent) 16%, transparent);
    display: inline-block;
    padding: 0.42rem 0.56rem;
    border-radius: 0.42rem;
    border: 1px solid color-mix(in srgb, var(--session-theme-accent) 42%, rgba(255, 255, 255, 0.12));
    background: color-mix(in srgb, var(--session-theme-panel-strong) 76%, transparent);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.scene-hud-grid {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    max-width: min(1120px, 95vw);
}

.scene-progress-chip {
    min-height: 78px;
    align-self: stretch;
    justify-content: center;
}

.scene-progress-chip-mini {
    min-height: 44px;
    border-radius: 12px;
    padding: 6px 8px;
    gap: 4px;
}

.scene-hud-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.scene-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
        radial-gradient(circle at top, transparent 0%, transparent 45%, rgba(0, 0, 0, 0.18) 100%);
    mix-blend-mode: screen;
    opacity: 0.22;
}

.scene-hero-copy {
    max-width: 720px;
    padding: 18px 18px 14px;
    border-radius: 22px;
    background: rgba(9, 14, 20, 0.52);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.scene-hero-copy-terminal {
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.scene-hero-copy-terminal .eyebrow,
.scene-hero-copy-terminal .signal-label,
.session-cinematic-stage .signal-label,
.session-cinematic-stage .signal-badge,
.session-cinematic-stage .signal-glyph {
    color: var(--session-theme-accent);
}

.scene-hero-copy h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    margin-bottom: 12px;
}

.scene-title-compact {
    margin-bottom: 1px;
}

.typewriter-line,
.scene-hero-copy-terminal .scenario-body {
    font-family: Consolas, "Courier New", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    text-shadow: 0 0 12px color-mix(in srgb, var(--session-theme-accent) 20%, transparent);
}

.line-highlight {
    display: inline;
    padding: 0.04em 0.14em 0.08em;
    background: color-mix(in srgb, var(--session-theme-panel-strong) 88%, transparent);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    border-radius: 0.18rem;
}

.line-highlight-title {
    background: color-mix(in srgb, var(--session-theme-panel-strong) 92%, transparent);
}

.line-highlight-body {
    background: color-mix(in srgb, var(--session-theme-panel) 88%, transparent);
}

.line-highlight-block {
    display: inline-block;
    max-width: min(100%, 42rem);
    padding: 0.42rem 0.56rem;
    border-radius: 0.3rem;
    white-space: normal;
    background: rgba(0, 0, 0, 0.72);
    color: var(--session-theme-text);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.scene-hero-body {
    color: var(--session-theme-text);
    font-size: clamp(0.92rem, 1vw, 1.02rem);
    line-height: 1.34;
    margin-bottom: 0;
    max-width: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.scene-hero-body-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 8px;
}

.scene-hero-body-block {
    margin-top: 6px;
}

.scene-inline-label {
    flex: 0 0 auto;
    margin-right: 2px;
}

.scene-signal-inline-row {
    display: flex;
    align-items: flex-start;
    gap: 14px 18px;
    flex-wrap: wrap;
    margin-top: 2px;
    margin-left: 0;
}

.scene-signal-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--session-theme-text);
    padding: 6px 0;
}

.scene-signal-inline strong {
    font-size: 0.84rem;
    line-height: 1.06;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scene-signal-inline .signal-label {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    gap: 6px;
}

.signal-glyph {
    width: 16px;
    height: 16px;
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
}

.signal-glyph-area {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(137, 255, 155, 0.95), rgba(137, 255, 155, 0.22));
    box-shadow: 0 0 10px rgba(137, 255, 155, 0.25);
}

.signal-glyph-context::before,
.signal-glyph-context::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 3px;
    border: 2px solid rgba(134, 216, 255, 0.95);
    transform: rotate(45deg);
}

.signal-glyph-context::after {
    inset: 3px;
    border-width: 1px;
    opacity: 0.8;
}

.signal-glyph-trigger::before,
.signal-glyph-trigger::after {
    content: "";
    position: absolute;
}

.signal-glyph-trigger::before {
    left: 2px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid rgba(255, 196, 107, 0.95);
    box-shadow: 0 0 10px rgba(255, 196, 107, 0.18);
}

.signal-glyph-trigger::after {
    left: 6px;
    top: 6px;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 196, 107, 1);
}

.scene-signal-grid[data-reveal-after-typing],
.scene-choice-deck[data-reveal-after-typing] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.scene-signal-grid.is-visible,
.scene-choice-deck.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scene-signal-grid {
    max-width: 100%;
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.scene-signal-grid-inline {
    align-content: start;
}

.signal-tile-overlay {
    background: color-mix(in srgb, var(--session-theme-panel) 82%, transparent);
    backdrop-filter: blur(6px);
    border-color: var(--session-theme-border);
    padding: 4px 6px;
    min-width: 0;
    min-height: 34px;
    border-radius: 10px;
}

.signal-tile-overlay strong {
    color: var(--session-theme-text);
    font-size: 0.64rem;
    line-height: 1.06;
}

.signal-tile-overlay .signal-label {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    gap: 5px;
}

.scene-choice-deck {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(560px, 100%);
    width: 100%;
    margin-top: 6px;
    margin-left: 0;
}

.decision-callout-terminal {
    background: color-mix(in srgb, var(--session-theme-panel-strong) 85%, transparent);
    border: 1px solid var(--session-theme-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
    padding: 10px 12px;
}

.decision-callout-terminal strong {
    color: var(--session-theme-text);
    font-size: 0.86rem;
}

.scenario-options-overlay {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.session-side-column,
.dashboard-side-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1 1 320px;
    min-width: 0;
}

.scenario-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.session-progress-chip {
    border-radius: 18px;
    padding: 10px 12px;
}

.scene-progress-chip span {
    font-size: 0.62rem;
}

.scene-progress-chip strong {
    font-size: 0.7rem;
}

.scenario-prompt-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px 18px 8px;
}

.scenario-prompt-block-hero {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.scenario-prompt-block-hero h2 {
    margin-bottom: 12px;
}

.scenario-body-tight {
    font-size: 1.02rem;
    line-height: 1.6;
}

.decision-callout {
    padding: 14px 18px;
}

.option-form {
    width: 100%;
}

.scenario-options-prominent .option-button {
    padding: 11px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.28;
    background: transparent;
}

.option-button-rich {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 46px;
    border-color: var(--session-theme-border);
    background: rgba(255, 255, 255, 0.02);
}

.option-button-rich::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--session-theme-accent) 20%, transparent), transparent);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
}

.option-button-rich:hover,
.option-button-rich:focus-visible {
    transform: translateY(-2px) scale(1.01);
    border-color: color-mix(in srgb, var(--session-theme-accent) 65%, white 10%);
    box-shadow: 0 14px 34px color-mix(in srgb, var(--session-theme-accent) 15%, rgba(0, 0, 0, 0.34));
    background: color-mix(in srgb, var(--session-theme-accent-soft) 32%, rgba(255, 255, 255, 0.02));
}

.option-button-rich:hover::after,
.option-button-rich:focus-visible::after {
    transform: translateX(100%);
}

.option-button-hovering {
    cursor: pointer;
}

.option-button-pressed {
    transform: scale(0.99);
}

.option-button-cue {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid color-mix(in srgb, var(--session-theme-accent) 42%, white 8%);
    color: var(--session-theme-accent);
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 0 14px color-mix(in srgb, var(--session-theme-accent) 12%, transparent);
}

.option-button-label {
    position: relative;
    z-index: 1;
    color: var(--session-theme-text);
    text-align: left;
}

.typewriter-line.is-typing::after,
[data-typewriter].is-typing::after {
    content: "_";
    display: inline-block;
    margin-left: 4px;
    color: var(--session-theme-accent);
    animation: typewriterBlink 0.8s steps(1) infinite;
}

.scenario-context-card,
.live-read-card,
.primary-read-card {
    gap: 18px;
}

.scenario-context-card-inline {
    padding: 18px 20px;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.signal-grid-tight {
    gap: 10px;
}

.signal-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.signal-tile strong {
    line-height: 1.45;
}

.signal-tile-wide {
    grid-column: 1 / -1;
}

.signal-label {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.signal-badge {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(125, 211, 252, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.28);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
}

.scenario-image-compact {
    max-height: 220px;
}

.scenario-image-inline {
    margin-top: 6px;
    max-height: 220px;
}

.live-read-card-inline {
    width: 100%;
}

.trend-meter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trend-meter-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.18);
}

.trend-meter-fill {
    display: block;
    width: 68%;
    height: 100%;
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.55), rgba(56, 189, 248, 0.95));
}

.trend-meter-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
}

.details-panel {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 14px;
}

.details-panel summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
}

.details-body {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-lead {
    font-size: 1.02rem;
    line-height: 1.65;
}

.focus-summary-card {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(125, 211, 252, 0.1);
    border: 1px solid rgba(125, 211, 252, 0.25);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intent-text-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intent-question-set {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    animation: intentReveal 0.3s ease;
}

.intent-question {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.intent-question-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.intent-question-optional {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    font-style: italic;
}

.intent-required-mark {
    color: var(--accent-strong);
}

.intent-text-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.intent-char-counter {
    flex: 0 0 auto;
    font-size: 0.8rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.intent-char-counter.is-near-limit {
    color: #ffc46b;
}

.intent-char-counter.is-at-limit {
    color: #ff6b6b;
}

.intent-step-two {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.intent-step-two.is-visible {
    display: flex;
    animation: intentReveal 0.3s ease;
}

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

.compact-pattern-card p {
    margin-bottom: 0;
}

/* ── Area color system ── */
.area-rel  { --area-color: #7dd3fc; --area-bg: rgba(125, 211, 252, 0.12); --area-border: rgba(125, 211, 252, 0.3); }
.area-work { --area-color: #fbbf24; --area-bg: rgba(251, 191, 36, 0.12); --area-border: rgba(251, 191, 36, 0.3); }
.area-energy { --area-color: #4ade80; --area-bg: rgba(74, 222, 128, 0.12); --area-border: rgba(74, 222, 128, 0.3); }
.area-id   { --area-color: #c084fc; --area-bg: rgba(192, 132, 252, 0.12); --area-border: rgba(192, 132, 252, 0.3); }
.area-health { --area-color: #f87171; --area-bg: rgba(248, 113, 113, 0.12); --area-border: rgba(248, 113, 113, 0.3); }
.area-finances { --area-color: #f59e0b; --area-bg: rgba(245, 158, 11, 0.12); --area-border: rgba(245, 158, 11, 0.3); }
.area-growth { --area-color: #2dd4bf; --area-bg: rgba(45, 212, 191, 0.12); --area-border: rgba(45, 212, 191, 0.3); }

/* ── Dashboard stats row ── */
.dash-stats-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dash-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 22px;
    border-radius: 18px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    flex: 1 1 120px;
    min-width: 0;
}

.dash-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.dash-stat-label {
    font-size: 0.76rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
}

/* ── Hero pattern card ── */
.dash-hero {
    background: var(--surface-elevated);
    border: 1px solid var(--area-border);
    border-radius: 24px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.dash-hero-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dash-area-tag {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--area-bg);
    color: var(--area-color);
    border: 1px solid var(--area-border);
}

.dash-confidence-pill {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-hero-title {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    margin: 0;
    line-height: 1.15;
}

.dash-hero-statement {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
}

/* ── Confidence bar ── */
.dash-confidence-bar-wrap {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.dash-confidence-bar {
    height: 100%;
    border-radius: 999px;
    background: var(--area-color);
    transition: width 0.4s ease;
}

.dash-confidence-bar-sm {
    height: 4px;
}

/* ── Insight tiles (2x2) ── */
.dash-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dash-insight-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.dash-insight-icon {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1;
}

.dash-insight-positive .dash-insight-icon { color: #4ade80; }
.dash-insight-negative .dash-insight-icon { color: #f87171; }

.dash-insight-label {
    font-size: 0.68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dash-insight-value {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.4;
}

/* ── Alternative CTA ── */
.dash-alternative {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.dash-alternative-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4ade80;
}

.dash-alternative-text {
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.45;
}

/* ── Intent card ── */
.dash-intent-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.1), rgba(22, 27, 34, 0.95));
    border: 1px solid rgba(125, 211, 252, 0.2);
}

.dash-intent-text {
    color: var(--text);
    font-size: 0.92rem;
    margin: 0;
}

.dash-intent-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.dash-validation-chip {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dash-validation-chip.is-accepted {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.dash-validation-chip.is-rejected {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* ── Section title ── */
.dash-section-title {
    font-size: 1.1rem;
    margin-bottom: 14px;
}

/* ── Secondary pattern grid ── */
.dash-pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.dash-pattern-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(22, 27, 34, 0.88);
    border: 1px solid var(--area-border);
}

.dash-pattern-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.dash-pattern-card-title {
    font-size: 0.98rem;
    line-height: 1.25;
}

.dash-pattern-card-text {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash-pattern-card-evidence {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Strengths ── */
.dash-strength-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dash-strength-chip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.2);
    flex: 1 1 260px;
    min-width: 0;
}

.dash-strength-chip div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dash-strength-chip strong {
    font-size: 0.9rem;
    line-height: 1.25;
}

.dash-strength-chip span {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}

.dash-strength-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    font-size: 0.85rem;
    font-weight: 800;
}

/* ── Timeline ── */
.dash-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 14px;
    border-left: 2px solid rgba(255, 255, 255, 0.06);
}

.dash-timeline-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    position: relative;
}

.dash-timeline-item + .dash-timeline-item {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-timeline-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--area-color);
    margin-top: 5px;
    margin-left: -20px;
    box-shadow: 0 0 8px var(--area-color);
}

.dash-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dash-timeline-top {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.dash-timeline-pattern {
    font-size: 0.74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-timeline-content strong {
    font-size: 0.92rem;
    line-height: 1.3;
}

.dash-timeline-choice {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.35;
}

/* ── Page shell gap for dashboard ── */
.page-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 900px) {
    .topbar {
        align-items: center;
        justify-content: space-between;
    }

    .brand-link {
        margin-right: auto;
    }

    .topbar-menu-toggle {
        display: inline-flex;
    }

    .main-nav,
    .topbar-actions {
        width: 100%;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: var(--surface-subtle);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        justify-content: center;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
    }

    .main-nav a::after {
        left: 12px;
        right: 12px;
        bottom: 6px;
    }

    .topbar-actions {
        justify-content: space-between;
    }

    .feature-grid > *,
    .pattern-grid > *,
    .detail-grid > *,
    .session-stage-grid {
        flex-basis: 100%;
    }

    .hero-shell {
        grid-template-columns: 1fr;
    }

    .hero-media-image {
        min-height: 300px;
    }

    .hero-media-overlay {
        bottom: 16px;
        padding: 16px;
        width: min(calc(100% - 32px), 560px);
    }

    .hero-media-kicker {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }

    .hero-media-copy {
        font-size: 0.95rem;
    }

    .session-stage-grid {
        grid-template-columns: 1fr;
    }

    .signal-grid {
        grid-template-columns: 1fr;
    }

    .focus-banner-line,
    .trend-meter-labels,
    .scenario-topline,
    .session-stage-inline {
        align-items: flex-start;
    }

    .session-control-strip {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .session-meta-line {
        justify-content: flex-start;
        width: 100%;
    }

    .scene-hero-card,
    .scene-hero-image {
        min-height: 84vh;
    }

    .scene-hero-overlay {
        padding: 16px;
    }

    .scene-stage-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .scene-hero-image,
    .scene-hero-placeholder {
        max-height: none;
    }

    .scene-hero-copy {
        max-width: none;
    }

    .scene-hud-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .scene-hud-main,
    .scene-progress-chip {
        min-height: 0;
    }

    .scene-signal-grid {
        grid-template-columns: 1fr;
    }

    .scene-choice-deck {
        margin-left: 0;
    }

    .scenario-options-overlay {
        grid-template-columns: 1fr;
    }
}

@keyframes typewriterBlink {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* --- On-demand AI Rewrite UI --- */
.rewrite-trigger {
    margin: 0.75rem 0 0.5rem;
}

.rewrite-trigger button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-text-muted, #6c757d);
    background: transparent;
    border: 1px dashed var(--color-border, #dee2e6);
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rewrite-trigger button:hover {
    color: var(--color-primary, #0d6efd);
    border-color: var(--color-primary, #0d6efd);
    background: rgba(13, 110, 253, 0.04);
}

.rewrite-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.5rem;
    border: 1px solid var(--color-border, #dee2e6);
}

.rewrite-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rewrite-column p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text, #212529);
}

.rewrite-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted, #6c757d);
}

.rewrite-new p {
    color: var(--color-primary, #0d6efd);
    font-weight: 500;
}

.rewrite-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .rewrite-comparison {
        grid-template-columns: 1fr;
    }
}

/* --- Session Completion Structured Layout --- */
.session-completion-card {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.session-completion-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.session-completion-header h2 {
    margin: 8px 0 4px;
}

.session-intent-label {
    font-size: 1.05rem;
    color: var(--accent-strong);
    font-weight: 600;
    margin: 0;
}

.analysis-reading-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.analysis-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0 0 16px;
}

.analysis-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    white-space: pre-wrap;
}

.pattern-snapshot-card {
    background: rgba(125, 211, 252, 0.04);
    border: 1px solid rgba(125, 211, 252, 0.15);
    border-radius: 16px;
    padding: 24px;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.snapshot-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.snapshot-item-wide {
    grid-column: 1 / -1;
}

.snapshot-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.snapshot-value {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.45;
}

.micro-program-compact {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    align-items: baseline;
}

.micro-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.micro-value {
    font-size: 0.92rem;
    color: var(--text);
}

.validation-card,
.checkin-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.validation-status,
.checkin-status {
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0;
}

.next-actions {
    padding-top: 8px;
}

.next-actions-title {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 16px;
}

.next-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.action-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.action-card strong {
    color: var(--text);
    font-size: 0.95rem;
}

.action-card span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.action-card-primary {
    background: rgba(125, 211, 252, 0.08);
    border-color: rgba(125, 211, 252, 0.3);
}

.action-card-primary:hover {
    background: rgba(125, 211, 252, 0.12);
    border-color: var(--accent-strong);
}

@media (max-width: 640px) {
    .snapshot-grid {
        grid-template-columns: 1fr;
    }
    .next-actions-grid {
        grid-template-columns: 1fr;
    }
    .micro-program-compact {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }
}

/* --- Inline Pattern Detail on Session Completion --- */
.pattern-detail-inline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.pattern-detail-summary {
    padding: 18px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.pattern-detail-summary::-webkit-details-marker {
    display: none;
}

.pattern-detail-summary::before {
    content: "▸ ";
    display: inline-block;
    transition: transform 0.2s;
}

.pattern-detail-inline[open] .pattern-detail-summary::before {
    transform: rotate(90deg);
}

.pattern-detail-body {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inline-stats-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.inline-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    min-width: 90px;
}

.inline-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.inline-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.inline-statement {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}

.inline-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.inline-insight-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.inline-insight-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.inline-insight-value {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
}

.inline-alternative {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(125, 211, 252, 0.05);
    border: 1px solid rgba(125, 211, 252, 0.15);
    border-radius: 12px;
}

.inline-alternative-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.inline-alternative-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
}

.inline-guidance {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.inline-guidance-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0 0 12px;
}

.inline-guidance p {
    margin: 0 0 8px;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.5;
}

.inline-guidance p:last-child {
    margin-bottom: 0;
}

.inline-contexts-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0 0 12px;
}

.inline-context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.inline-context-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inline-context-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.inline-context-area {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.inline-context-confidence {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 8px;
    border-radius: 6px;
}

.inline-context-card strong {
    font-size: 0.95rem;
    color: var(--text);
}

.inline-context-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.45;
}

.inline-context-evidence {
    font-size: 0.78rem;
    color: var(--muted);
}

@media (max-width: 640px) {
    .inline-insight-grid {
        grid-template-columns: 1fr;
    }
    .inline-context-grid {
        grid-template-columns: 1fr;
    }
    .inline-stats-row {
        justify-content: center;
    }
}

/* --- Dashboard Session History & Integral Analysis --- */
.session-history-section {
    padding: 24px;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.session-count-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 12px;
    border-radius: 20px;
}

.session-table-wrap {
    overflow-x: auto;
}

.session-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.session-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.session-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    vertical-align: top;
}

.session-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.session-date {
    display: block;
    font-weight: 600;
    color: var(--text);
}

.session-date-completed {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
}

.session-intent {
    color: var(--text);
    line-height: 1.4;
}

.session-pattern-link {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent-strong);
    background: rgba(125, 211, 252, 0.08);
    border: 1px solid rgba(125, 211, 252, 0.15);
}

.session-pattern-link:hover {
    background: rgba(125, 211, 252, 0.15);
}

.session-pattern-none {
    color: var(--muted);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-completed {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.warning-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: help;
}

.warning-badge.carelessness {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.warning-badge.inconsistency {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.quality-warnings {
    margin-top: 4px;
}

/* --- Session Quality Panel --- */
.quality-panel-card {
    border-left: 3px solid var(--accent, #6366f1);
}

.quality-metrics-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.quality-metric {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.quality-metric-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #94a3b8);
}

.quality-metric-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
}

.quality-bar-wrap {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}

.quality-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.quality-bar-ok {
    background: #34d399;
}

.quality-bar-warning {
    background: #f87171;
}

.quality-ok-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
    width: fit-content;
}

.quality-explanation {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(248, 113, 113, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, 0.1);
}

.quality-detail-warning {
    color: var(--text-muted, #94a3b8);
    font-size: 0.82rem;
    margin: 0.25rem 0;
}

.session-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.session-progress {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.actions-col {
    text-align: right;
    white-space: nowrap;
}

.integral-analysis-section {
    padding: 24px;
}

.integral-analysis-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin: -8px 0 20px;
}

.integral-primary-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.integral-primary-header {
    margin-bottom: 16px;
}

.integral-primary-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 12px 0 8px;
    color: var(--text);
}

.integral-primary-statement {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 16px;
}

.integral-secondary-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 24px 0 16px;
}

@media (max-width: 640px) {
    .session-table thead {
        display: none;
    }
    .session-table tbody td {
        display: block;
        padding: 8px 0;
        border-bottom: none;
    }
    .session-table tbody tr {
        display: block;
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }
    .actions-col {
        text-align: left;
    }
}

/* --- View mode controls --- */
.view-mode-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-mode-btn {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-mode-btn:hover {
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.35);
}

.view-mode-btn.active {
    background: rgba(125, 211, 252, 0.12);
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Session grid / thumbnail view --- */
.session-grid-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.session-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    position: relative;
    overflow: hidden;
}

.session-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0.5;
}

.session-card.area-rel::before { background: #7dd3fc; }
.session-card.area-work::before { background: #fbbf24; }
.session-card.area-energy::before { background: #4ade80; }
.session-card.area-id::before { background: #c084fc; }
.session-card.area-health::before { background: #f87171; }
.session-card.area-finances::before { background: #f59e0b; }
.session-card.area-growth::before { background: #2dd4bf; }

.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    border-color: rgba(148, 163, 184, 0.3);
}

.session-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.session-card-date {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

.session-card-intent {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.session-card-pattern-row {
    min-height: 22px;
}

.session-card-progress {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    height: 22px;
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.session-card-progress-bar {
    background: linear-gradient(90deg, rgba(125,211,252,0.35), rgba(125,211,252,0.55));
    height: 100%;
    border-radius: 8px;
    transition: width 0.4s ease;
}

.session-card-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.session-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .session-grid-wrap {
        grid-template-columns: 1fr;
    }
    .view-mode-controls {
        flex-wrap: wrap;
    }
}

/* --- Methodology --- */
.methodology-card {
    border-left: 3px solid #a78bfa;
}

.methodology-details {
    width: 100%;
}

.methodology-details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.methodology-details summary::-webkit-details-marker {
    display: none;
}

.methodology-summary-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.methodology-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e6edf3;
}

.methodology-meta {
    font-size: 0.8rem;
    color: #94a3b8;
}

.methodology-body {
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid #30363d;
}

.methodology-stats-row {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.methodology-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.methodology-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #38bdf8;
}

.methodology-stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.methodology-explanation-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e6edf3;
}

.session-card-methodology {
    margin: 8px 0;
    padding: 8px 10px;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.methodology-mini-badge {
    font-size: 0.6rem;
    font-weight: 700;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.methodology-mini-text {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* --- Situational Analysis --- */
.analysis-result-card {
    padding: 24px;
}

.analysis-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.analysis-date {
    font-size: 0.8rem;
    color: var(--muted);
}

.analysis-situation-box {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.analysis-situation-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.analysis-situation-text {
    margin: 0;
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
}

.analysis-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.help-bullet-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--text);
}

.help-bullet-list li + li {
    margin-top: 6px;
}

.analysis-section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.analysis-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin: 0 0 10px;
}

.analysis-section p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text);
}

.analysis-section-guidance {
    border-color: rgba(125, 211, 252, 0.25);
}

.analysis-section-alternatives {
    border-color: rgba(52, 211, 153, 0.25);
}

.past-analyses-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.past-analysis-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.past-analysis-item:hover {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.past-analysis-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.past-analysis-pattern {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-strong);
}

.past-analysis-date {
    font-size: 0.75rem;
    color: var(--muted);
}

.past-analysis-preview {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
}

.form-select {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
    width: 100%;
    margin-bottom: 16px;
}

.form-textarea {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 12px;
    font-size: 0.95rem;
    width: 100%;
    resize: vertical;
    font-family: inherit;
}

.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
}

@media (max-width: 640px) {
    .analysis-sections {
        grid-template-columns: 1fr;
    }
    .analysis-result-header {
        flex-direction: column;
    }
}

/* Mode Selector */
.mode-selector-card {
    padding-bottom: 8px;
}

.mode-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.mode-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 20px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-surface);
    min-width: 140px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.mode-option:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mode-option.mode-active {
    border-color: var(--color-primary);
    background: rgba(59,130,246,0.08);
    font-weight: 600;
}

.mode-icon {
    font-size: 24px;
    line-height: 1;
}

.mode-label {
    font-size: 14px;
    font-weight: 600;
}

.mode-desc {
    font-size: 11px;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 160px;
}

/* Structured Form */
.structured-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field label {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text);
}

.field-hint {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.past-analysis-mode {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--color-surface-raised);
    padding: 2px 6px;
    border-radius: 4px;
}

.past-analyses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.past-analyses-header h2 {
    margin: 0;
}

.past-analysis-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.past-analysis-content {
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.past-analysis-content:hover .past-analysis-pattern {
    text-decoration: underline;
}

.btn-reapply {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    color: var(--accent-strong);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-reapply:hover {
    background: rgba(125, 211, 252, 0.1);
    border-color: var(--accent);
}

/* History Page */
.history-search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.history-search-bar input {
    flex: 1;
    min-width: 200px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.history-item:hover {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.history-item-checkbox {
    margin-top: 2px;
}

.history-item-body {
    flex: 1;
    min-width: 0;
}

.history-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.history-item-actions .btn {
    font-size: 12px;
    padding: 6px 12px;
}

.history-batch-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--panel-soft);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}

/* Identity Cartography Dashboard Styles */
.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(125, 211, 252, 0.15);
    color: var(--accent);
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.3);
}

.identity-profile-card {
    margin-bottom: 20px;
}

.identity-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.identity-profile-header h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.identity-profile-progress {
    font-size: 0.85rem;
    color: var(--muted);
}

.identity-progress-bar-wrap {
    height: 8px;
    background: var(--panel-soft);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.identity-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    border-radius: 999px;
    transition: width 0.6s ease;
}

.identity-completion-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 10px;
    color: #4ade80;
    font-size: 0.9rem;
}

.completion-icon {
    font-size: 1.1rem;
}

.identity-profile-hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Session Mode Badge */
.toolbar-mode-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.toolbar-mode-badge.mode-cartography {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Identity Map Page */
.identity-overview-card {
    margin-bottom: 20px;
}

.identity-executive-card,
.identity-detail-card {
    margin-top: 20px;
}

.identity-executive-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
    gap: 16px;
    align-items: start;
}

.identity-executive-main,
.identity-executive-side,
.identity-executive-panel,
.identity-area-deep-card,
.identity-guidance-panel,
.identity-application-compact-card {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.identity-executive-main,
.identity-executive-side {
    display: grid;
    gap: 14px;
}

.identity-executive-headline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.identity-executive-text,
.identity-area-deep-text {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

.identity-executive-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.identity-executive-metric {
    display: grid;
    gap: 4px;
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.identity-executive-metric strong {
    font-size: 1.2rem;
    color: var(--text);
}

.identity-executive-metric span:last-child {
    color: var(--muted);
    font-size: 0.82rem;
}

.identity-executive-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.identity-executive-panel h3,
.identity-guidance-panel h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.identity-executive-list,
.identity-executive-notes,
.identity-guidance-compact-list,
.identity-application-mini-list,
.identity-area-guidance-list {
    display: grid;
    gap: 10px;
}

.identity-executive-list-item,
.identity-executive-note,
.identity-guidance-compact-card,
.identity-application-mini-item,
.identity-area-guidance-item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.identity-executive-list-item strong,
.identity-executive-note strong,
.identity-guidance-compact-card strong,
.identity-application-mini-item strong,
.identity-area-guidance-item strong {
    color: var(--text);
    font-size: 0.9rem;
}

.identity-executive-list-item span:last-child,
.identity-executive-note p,
.identity-guidance-compact-card p,
.identity-guidance-compact-card span,
.identity-application-mini-item span,
.identity-area-guidance-item span {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.identity-detail-anchor-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.identity-detail-anchor-row a,
.identity-area-context-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    background: rgba(125, 211, 252, 0.08);
    color: var(--text);
    text-decoration: none;
    font-size: 0.82rem;
}

.identity-detail-sections {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.identity-detail-section {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel-soft);
    overflow: hidden;
}

.structured-fold-section {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel-soft);
    overflow: hidden;
}

.identity-detail-section summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
}

.structured-fold-section summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
}

.identity-detail-section summary::-webkit-details-marker {
    display: none;
}

.structured-fold-section summary::-webkit-details-marker {
    display: none;
}

.identity-detail-section[open] summary {
    border-bottom: 1px solid var(--border);
}

.structured-fold-section[open] summary {
    border-bottom: 1px solid var(--border);
}

.identity-detail-section summary span:last-child {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.structured-fold-section summary span:last-child {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.identity-detail-section summary::after,
.structured-fold-section summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.identity-detail-section[open] summary::after,
.structured-fold-section[open] summary::after {
    content: "-";
}

.identity-detail-body {
    padding: 16px 18px 18px;
}

.structured-fold-body {
    padding: 16px 18px 18px;
}

.identity-area-deep-grid,
.identity-guidance-grid,
.identity-application-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.identity-guidance-grid {
    align-items: start;
}

.identity-application-snapshot {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    margin: 12px 0;
}

.identity-application-score {
    min-width: 74px;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.identity-application-snapshot p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.identity-overview-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.identity-overview-coherence {
    min-width: 120px;
    text-align: center;
}

.coherence-score-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid rgba(125, 211, 252, 0.35);
    margin: 0 auto;
    position: relative;
    cursor: help;
}

.coherence-info-icon {
    font-size: 0.7rem;
    color: var(--muted, #94a3b8);
    opacity: 0.6;
    cursor: help;
}

.coherence-score-ring .coherence-info-icon {
    position: absolute;
    bottom: 6px;
    font-size: 0.65rem;
}

.coherence-score-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.coherence-score-label {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.coherence-score-empty {
    border-color: rgba(148, 163, 184, 0.2);
}

.coherence-score-empty .coherence-score-value {
    color: var(--muted);
}

.identity-empty-state {
    text-align: center;
    padding: 48px 24px;
}

.identity-empty-icon {
    font-size: 3rem;
    color: var(--muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.identity-empty-state h2 {
    margin-bottom: 8px;
}

.identity-empty-state p {
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 20px;
}

.pattern-measurement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.pattern-measurement-card {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pattern-measurement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.pattern-measurement-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pattern-measurement-name {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text);
}

.pattern-measurement-confidence {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pattern-measurement-confidence-text {
    font-size: 0.78rem;
    color: var(--muted);
}

.coherence-analysis-card {
    margin-top: 20px;
}

.coherence-narrative {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 20px;
    padding: 14px;
    background: var(--panel-soft);
    border-radius: 10px;
    border-left: 3px solid var(--accent);
}

.coherence-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--text);
}

.tension-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tension-card {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
}

.tension-patterns {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tension-pattern {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-strong);
}

.tension-vs {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
}

.tension-severity-bar-wrap {
    height: 6px;
    background: var(--panel);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tension-severity-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.tension-description {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.cluster-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cluster-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(125, 211, 252, 0.1);
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--accent);
}

.identity-synthesis-card {
    margin-top: 20px;
}

.identity-synthesis-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: 16px;
    align-items: start;
}

.identity-synthesis-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.identity-synthesis-main,
.identity-synthesis-side,
.identity-area-profile-card {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.identity-synthesis-side {
    display: grid;
    gap: 12px;
}

.identity-synthesis-block {
    display: grid;
    gap: 8px;
}

.identity-synthesis-pattern-head,
.identity-area-primary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.identity-synthesis-pattern-name,
.identity-area-primary-name {
    display: block;
    font-size: 1rem;
    color: var(--text);
}

.identity-synthesis-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 4px;
}

.identity-synthesis-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.identity-synthesis-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(192, 132, 252, 0.08);
    border: 1px solid rgba(192, 132, 252, 0.18);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text);
}

.identity-synthesis-text,
.identity-synthesis-help {
    margin: 0;
}

.identity-area-profiles-card {
    margin-top: 20px;
}

.identity-area-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.identity-area-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.identity-area-secondary {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.identity-area-inline {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.application-synthesis-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.blindspot-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blindspot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--panel-soft);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--muted);
}

.blindspot-icon {
    color: var(--accent);
    font-size: 0.8rem;
}

.mentor-messages-card {
    margin-top: 20px;
}

.mentor-message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

/* Layout is enforced via inline styles on HTML elements for maximum specificity */
.mentor-message {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    display: block;
    overflow: visible;
    min-height: auto;
    max-height: none;
    box-sizing: border-box;
}

.mentor-message.discovery {
    border-left: 3px solid #38bdf8;
}

.mentor-message.progress {
    border-left: 3px solid #4ade80;
}

.mentor-message.tension {
    border-left: 3px solid #f59e0b;
}

.mentor-message.completion {
    border-left: 3px solid #a78bfa;
}

.mentor-message.coaching {
    border-left: 3px solid #22d3ee;
    background: rgba(34, 211, 238, 0.05);
}

.mentor-message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.mentor-message-header strong {
    font-size: 0.9rem;
    color: var(--text);
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.mentor-message-time {
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.mentor-message-body {
    font-size: 0.88rem;
    color: var(--muted);
    display: flow-root;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.55;
}

.mentor-message-body > :first-child {
    margin-top: 0;
}

.mentor-message-body > :last-child {
    margin-bottom: 0;
}

.mentor-message-body p,
.mentor-message-body ul,
.mentor-message-body ol {
    margin: 0 0 10px;
}

.mentor-message-body li + li {
    margin-top: 6px;
}

.prescribed-habits-card {
    margin-top: 20px;
}

.habit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.habit-card {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
}

.habit-active {
    border-left: 3px solid #4ade80;
}

.habit-inactive {
    border-left: 3px solid var(--border);
    opacity: 0.7;
}

.habit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.habit-description {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0 0 8px;
}

.habit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.habit-effect {
    font-size: 0.85rem;
    color: var(--text);
    margin: 0;
    padding: 8px 10px;
    background: var(--panel);
    border-radius: 6px;
}

/* Applications */
.applications-card {
    margin-top: 20px;
}

.application-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.application-card {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.application-header strong {
    font-size: 1rem;
    color: var(--text);
}

.application-key {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--panel);
    padding: 2px 8px;
    border-radius: 4px;
}

.application-description {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 14px;
}

.identity-application-compact-card .application-description {
    margin-bottom: 0;
}

.career-report {
    margin-top: 10px;
}

.career-score-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 12px;
    background: var(--panel);
    border-radius: 10px;
}

.career-score-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid rgba(56, 189, 248, 0.35);
    flex-shrink: 0;
}

.career-score-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.career-score-label {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.career-summary {
    font-size: 0.9rem;
    color: var(--text);
    margin: 0;
    line-height: 1.5;
}

.career-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 14px 0 8px;
    color: var(--text);
}

.career-env-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.career-env-item {
    background: var(--panel);
    border-radius: 8px;
    padding: 10px 12px;
}

.career-env-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.career-env-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.career-env-score {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.career-env-bar-wrap {
    height: 6px;
    background: var(--panel-soft);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}

.career-env-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    border-radius: 999px;
    transition: width 0.4s ease;
}

.career-env-rationale {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0;
}

.career-strength-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.career-strength-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 8px;
}

.career-strength-pattern {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.career-strength-text {
    font-size: 0.88rem;
    color: var(--text);
}

.career-strength-app {
    font-size: 0.78rem;
    color: var(--muted);
}

.career-watchout-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.career-watchout-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 8px;
}

.career-watchout-pattern {
    font-size: 0.78rem;
    font-weight: 600;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.career-watchout-risk {
    font-size: 0.88rem;
    color: var(--text);
}

.career-watchout-mitigation {
    font-size: 0.78rem;
    color: var(--muted);
}

.career-role-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.career-role-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.career-role-chip.recommended {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.career-role-chip.avoid {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Dashboard Chooser */
.dashboard-chooser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.dashboard-chooser-card {
    display: flex;
    flex-direction: column;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-chooser-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.dashboard-chooser-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.12), rgba(59, 130, 246, 0.08));
}

.dashboard-chooser-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-chooser-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--accent);
    background: radial-gradient(circle at top, rgba(94, 234, 212, 0.18), rgba(15, 23, 42, 0.2));
}

.home-feature-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.12), rgba(59, 130, 246, 0.08));
}

.home-feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-feature-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    background: radial-gradient(circle at top, rgba(94, 234, 212, 0.18), rgba(15, 23, 42, 0.2));
}

.life-area-showcase {
    gap: 24px;
}

.life-area-showcase-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.life-area-showcase-head h2 {
    margin-bottom: 10px;
}

.life-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.life-area-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.life-area-card:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.36);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.life-area-visual {
    margin-bottom: 0;
}

.life-area-kicker {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(8, 12, 19, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.life-area-fallback {
    font-size: 1.35rem;
    background:
        radial-gradient(circle at top, rgba(96, 165, 250, 0.28), transparent 44%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.92));
}

.life-area-card-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.life-area-card-copy h3 {
    margin: 0;
    font-size: 1.05rem;
}

.life-area-card-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    flex: 1 1 auto;
}

.life-area-actions {
    margin-top: 0;
}

.admin-ai-inline-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--ui-subtle-bg);
    border: 1px solid var(--ui-subtle-border);
}

.admin-ai-inline-result p {
    margin: 0;
}

.admin-ai-shortcuts {
    position: sticky;
    top: 12px;
    z-index: 40;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(8, 12, 19, 0.88);
    border: 1px solid rgba(125, 211, 252, 0.16);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.admin-ai-shortcut-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-ai-shortcuts .toolbar-action-chip {
    text-decoration: none;
}

body.theme-light .life-area-card {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(37, 99, 235, 0.14);
}

body.theme-light .life-area-card:hover {
    border-color: rgba(37, 99, 235, 0.26);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.10);
}

body.theme-light .life-area-kicker {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(37, 99, 235, 0.16);
    color: var(--accent-strong);
}

body.theme-light .life-area-fallback {
    color: var(--accent-strong);
    background:
        radial-gradient(circle at top, rgba(96, 165, 250, 0.22), transparent 44%),
        linear-gradient(180deg, #eff6ff, #dbeafe);
}

body.theme-light .admin-ai-inline-result {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.16);
}

body.theme-light .admin-ai-shortcuts {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(37, 99, 235, 0.14);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.12);
}

@media (max-width: 768px) {
    .admin-ai-shortcuts {
        top: 8px;
        padding: 12px;
    }

    .admin-ai-shortcut-row {
        gap: 8px;
    }
}

.dashboard-chooser-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.dashboard-chooser-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
}

.dashboard-chooser-card .chooser-action {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-strong);
}

.self-knowledge-panel {
    gap: 18px;
}

.identity-visual-stage-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(460px, 1.22fr);
    gap: 24px;
    align-items: stretch;
}

.identity-summary-panel .identity-visual-summary,
.identity-visual-stage-panel .identity-visual-stage,
.identity-color-panel .identity-color-chart-card {
    width: 100%;
}

.identity-visual-stat-card-primary {
    margin-bottom: 18px;
}

.identity-visual-stage-panel .identity-visual-stage {
    min-height: 760px;
}

.identity-visual-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.identity-visual-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.identity-visual-stat-card {
    background:
        linear-gradient(160deg, rgba(94, 234, 212, 0.10), rgba(59, 130, 246, 0.08)),
        var(--surface-subtle);
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
}

.identity-visual-stat-card h3,
.identity-core-card strong,
.identity-orbit-card strong {
    margin: 0;
    font-size: 1.15rem;
}

.identity-visual-kpi {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-strong);
    margin-bottom: 8px;
}

.identity-visual-stat-card p,
.identity-core-card p,
.identity-orbit-card p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.identity-visual-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.identity-visual-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--text);
    font-size: 0.9rem;
}

.identity-visual-stage {
    position: relative;
    --chip-orbit-radius-x: 336px;
    --chip-orbit-radius-y: 228px;
    perspective: 1200px;
    min-height: 700px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.18);
    background:
        radial-gradient(circle at top, rgba(94, 234, 212, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.20), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 28px 90px rgba(0,0,0,0.28);
}

.identity-visual-glow,
.identity-visual-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.identity-visual-glow-a {
    width: 420px;
    height: 420px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(94, 234, 212, 0.22), transparent 68%);
}

.identity-visual-glow-b {
    width: 580px;
    height: 580px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(96, 165, 250, 0.14), transparent 72%);
}

.identity-visual-ring-a {
    width: 360px;
    height: 360px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.identity-visual-ring-b {
    width: 520px;
    height: 520px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(94, 234, 212, 0.16);
}

.identity-svg-stage {
    position: absolute;
    inset: 8px;
    pointer-events: none;
}

.identity-map-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.identity-map-orbit {
    fill: none;
    stroke: rgba(148, 163, 184, 0.16);
    stroke-width: 1.5;
}

.identity-map-orbit-soft {
    stroke: rgba(94, 234, 212, 0.14);
}

.identity-map-head {
    fill: url(#identityBodyGradient);
    stroke: rgba(125, 211, 252, 0.18);
    stroke-width: 1.2;
}

.identity-map-body,
.identity-map-arm {
    fill: url(#identityBodyGradient);
    stroke: rgba(125, 211, 252, 0.10);
    stroke-width: 1.2;
}

.identity-map-core-glow {
    fill: rgba(94, 234, 212, 0.16);
    filter: url(#identitySoftGlow);
}

.identity-map-core {
    fill: url(#identityCoreGradient);
    filter: url(#identitySoftGlow);
}

.identity-map-zone {
    transform-box: fill-box;
    transform-origin: center;
}

.identity-map-zone-ring {
    fill: rgba(94, 234, 212, 0.06);
    stroke: rgba(125, 211, 252, 0.22);
    stroke-width: 1.4;
    transition: transform 0.25s ease, stroke 0.25s ease, fill 0.25s ease;
}

.identity-map-zone-core {
    fill: rgba(255,255,255,0.94);
    filter: url(#identitySoftGlow);
    transition: transform 0.25s ease;
}

.identity-map-zone.svg-zone-a { transform: translate(260px, 128px); }
.identity-map-zone.svg-zone-b { transform: translate(156px, 230px); }
.identity-map-zone.svg-zone-c { transform: translate(364px, 230px); }
.identity-map-zone.svg-zone-d { transform: translate(206px, 318px); }
.identity-map-zone.svg-zone-e { transform: translate(314px, 318px); }

.identity-map-zone.svg-zone-a .identity-map-zone-ring,
.identity-svg-chip.svg-zone-a {
    border-color: rgba(94, 234, 212, 0.28);
}

.identity-map-zone.svg-zone-b .identity-map-zone-ring,
.identity-svg-chip.svg-zone-b {
    border-color: rgba(96, 165, 250, 0.28);
}

.identity-map-zone.svg-zone-c .identity-map-zone-ring,
.identity-svg-chip.svg-zone-c {
    border-color: rgba(192, 132, 252, 0.28);
}

.identity-map-zone.svg-zone-d .identity-map-zone-ring,
.identity-svg-chip.svg-zone-d {
    border-color: rgba(251, 191, 36, 0.28);
}

.identity-map-zone.svg-zone-e .identity-map-zone-ring,
.identity-svg-chip.svg-zone-e {
    border-color: rgba(248, 113, 113, 0.28);
}

.identity-svg-chip-orbit {
    position: absolute;
    inset: 0;
}

.identity-svg-chip-slot {
    position: absolute;
    width: 0;
    height: 0;
    left: 0;
    top: 0;
    offset-path: ellipse(var(--chip-orbit-radius-x) var(--chip-orbit-radius-y) at 50% 50%);
    offset-distance: var(--orbit-distance);
    offset-rotate: 0deg;
    animation: identity-orbit-distance 44s linear infinite;
    animation-delay: var(--orbit-delay, 0s);
}

.identity-svg-chip {
    position: relative;
    appearance: none;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 224px;
    min-width: 170px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(12px);
    box-shadow: 0 calc(12px + var(--orbit-depth-shadow, 0px)) calc(28px + var(--orbit-depth-shadow, 0px)) rgba(0, 0, 0, 0.24);
    transform: translate(-50%, -50%) translateY(var(--orbit-depth-lift, 0px)) scale(calc(var(--chip-scale, 1) * var(--orbit-depth-scale, 1)));
    transform-origin: center;
    opacity: var(--orbit-depth-opacity, 1);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
    z-index: 2;
}

.identity-svg-chip strong,
.identity-svg-chip span,
.identity-svg-chip em {
    display: block;
    line-height: 1.2;
}

.identity-svg-chip-media {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 50px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.76);
}

.identity-svg-chip-media img,
.identity-svg-chip-media-fallback {
    width: 100%;
    height: 100%;
}

.identity-svg-chip-media img {
    object-fit: cover;
    display: block;
}

.identity-svg-chip-media-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.36), rgba(59, 130, 246, 0.30));
}

.identity-svg-chip-body {
    min-width: 0;
    flex: 1 1 auto;
}

.identity-svg-chip strong {
    font-size: 1.04rem;
    color: #f8fafc;
    line-height: 1.15;
    font-weight: 800;
}

.identity-svg-chip-body > span {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.25;
}

.identity-svg-chip em {
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    color: var(--accent-strong);
    margin-top: 6px;
}

.identity-svg-chip-slot.is-front .identity-svg-chip {
    backdrop-filter: blur(16px);
}

.identity-svg-chip-slot.is-back .identity-svg-chip {
    filter: saturate(0.92);
}

.identity-map-zone:hover .identity-map-zone-ring {
    fill: rgba(94, 234, 212, 0.12);
    stroke: rgba(125, 211, 252, 0.42);
}

.identity-map-zone:hover .identity-map-zone-core {
    transform: scale(1.12);
}

.identity-silhouette {
    position: absolute;
    inset: 22px;
    pointer-events: none;
}

.identity-silhouette-head,
.identity-silhouette-torso,
.identity-silhouette-arm,
.identity-silhouette-core-glow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.identity-silhouette-head {
    top: 86px;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.18), rgba(94, 234, 212, 0.14));
    border: 1px solid rgba(125, 211, 252, 0.12);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.03);
}

.identity-silhouette-torso {
    top: 150px;
    width: 200px;
    height: 250px;
    border-radius: 120px 120px 72px 72px;
    background:
        linear-gradient(180deg, rgba(148, 163, 184, 0.08), rgba(59, 130, 246, 0.06)),
        rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(125, 211, 252, 0.10);
}

.identity-silhouette-arm {
    top: 176px;
    width: 84px;
    height: 180px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.08), rgba(45, 212, 191, 0.05));
    border: 1px solid rgba(125, 211, 252, 0.07);
}

.identity-silhouette-arm-left {
    margin-left: -132px;
    transform: translateX(-50%) rotate(20deg);
}

.identity-silhouette-arm-right {
    margin-left: 132px;
    transform: translateX(-50%) rotate(-20deg);
}

.identity-silhouette-core-glow {
    top: 188px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.16), transparent 70%);
}

.identity-silhouette-zone {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 180px;
}

.identity-silhouette-zone-dot {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255,255,255,0.92), rgba(94, 234, 212, 0.84) 50%, rgba(96,165,250,0.22) 100%);
    box-shadow:
        0 0 0 8px color-mix(in srgb, rgba(94, 234, 212, 0.14) calc(var(--zone-strength, 60) * 0.8), transparent),
        0 0 24px rgba(94, 234, 212, 0.28);
}

.identity-silhouette-zone-label {
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(10px);
}

.identity-silhouette-zone-label strong,
.identity-silhouette-zone-label span {
    display: block;
    line-height: 1.2;
}

.identity-silhouette-zone-label strong {
    font-size: 0.76rem;
    color: #f8fafc;
}

.identity-silhouette-zone-label span {
    font-size: 0.72rem;
    margin-top: 4px;
    color: var(--muted);
}

.silhouette-zone-1 {
    top: 88px;
    left: calc(50% - 22px);
    transform: translateX(-50%);
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.silhouette-zone-2 {
    top: 182px;
    left: calc(50% - 150px);
}

.silhouette-zone-3 {
    top: 182px;
    right: calc(50% - 150px);
    flex-direction: row-reverse;
    text-align: right;
}

.silhouette-zone-4 {
    top: 292px;
    left: calc(50% - 118px);
}

.silhouette-zone-5 {
    top: 292px;
    right: calc(50% - 118px);
    flex-direction: row-reverse;
    text-align: right;
}

.identity-core-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(300px, calc(100% - 48px));
    padding: 24px;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.88));
    border: 1px solid rgba(94, 234, 212, 0.24);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.identity-core-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 12px auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    background:
        radial-gradient(circle at 30% 30%, rgba(125, 211, 252, 0.95), rgba(45, 212, 191, 0.65) 50%, rgba(15, 23, 42, 0.95));
    box-shadow: 0 0 0 10px rgba(94, 234, 212, 0.08), 0 0 40px rgba(56, 189, 248, 0.24);
    overflow: hidden;
}

.identity-core-avatar img,
.identity-core-avatar span {
    width: 100%;
    height: 100%;
}

.identity-core-avatar img {
    display: block;
    object-fit: cover;
}

.identity-core-avatar span {
    align-items: center;
    justify-content: center;
}

.identity-reading-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(125, 211, 252, 0.12);
    background: rgba(15, 23, 42, 0.42);
}

.identity-reading-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

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

.self-knowledge-explainer-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.42);
}

.self-knowledge-explainer-card h3 {
    margin: 8px 0 8px;
    font-size: 1rem;
}

.self-knowledge-explainer-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.identity-color-chart-card {
    background:
        radial-gradient(circle at top right, rgba(94, 234, 212, 0.12), transparent 30%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.92));
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.identity-color-chart-layout {
    display: grid;
    grid-template-columns: minmax(290px, 1.05fr) minmax(0, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.identity-color-chart-layout-wide {
    grid-template-columns: minmax(320px, 0.9fr) minmax(240px, 0.9fr) minmax(280px, 1fr);
    align-items: center;
}

.identity-donut-shell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.identity-donut-chart-frame {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.identity-donut-svg {
    width: 300px;
    height: 300px;
    overflow: visible;
    filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.22));
}

.identity-donut-track {
    fill: none;
    stroke: rgba(51, 65, 85, 0.84);
    stroke-width: 40;
}

.identity-donut-segment {
    fill: none;
    stroke-width: 40;
    stroke-linecap: butt;
    opacity: 0.92;
    transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
    transform-origin: center;
}

.identity-donut-center {
    position: absolute;
    width: 146px;
    height: 146px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.12);
    padding: 14px;
}

.identity-donut-center strong {
    font-size: 0.9rem;
    color: #f8fafc;
}

.identity-donut-center span {
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.35;
}

.identity-color-legend {
    display: grid;
    gap: 10px;
}

.identity-color-focus-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    padding: 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.94));
    border: 1px solid rgba(125, 211, 252, 0.16);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.identity-color-focus-media {
    position: relative;
    min-height: 160px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.identity-color-focus-media img,
.identity-color-focus-fallback {
    width: 100%;
    height: 100%;
}

.identity-color-focus-media img {
    object-fit: cover;
    display: block;
}

.identity-color-focus-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: 0.08em;
    color: #f8fafc;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.34), rgba(96, 165, 250, 0.26));
}

.identity-color-focus-body h3 {
    margin: 8px 0 4px;
    font-size: 1.35rem;
}

.identity-color-focus-body > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.identity-color-focus-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.identity-color-focus-stats span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 700;
}

.identity-color-focus-secondary {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.identity-color-focus-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.identity-color-focus-help {
    margin-top: 14px !important;
    color: var(--muted);
    line-height: 1.65;
}

.identity-color-chart-card-minimal {
    padding: 28px 24px 18px;
}

.identity-donut-title-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.identity-donut-title {
    margin: 0;
    font-size: clamp(1.1rem, 1rem + 0.8vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #f8fafc;
}

.identity-donut-shell-minimal {
    width: 100%;
}

.identity-donut-chart-frame-minimal {
    width: min(100%, 640px);
    height: auto;
    aspect-ratio: 1;
}

.identity-donut-svg-minimal {
    width: 100%;
    height: 100%;
    filter: none;
}

.identity-donut-track-minimal {
    stroke-width: 72;
    stroke: rgba(15, 23, 42, 0.72);
}

.identity-donut-segment-minimal {
    stroke-width: 72;
    opacity: 1;
    filter: none;
}

.identity-donut-core-minimal {
    fill: rgba(15, 23, 42, 0.96);
    stroke: rgba(125, 211, 252, 0.16);
    stroke-width: 2;
}

.identity-donut-label {
    fill: #f8fafc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
    pointer-events: none;
}

.identity-donut-label tspan {
    paint-order: stroke fill;
    stroke: rgba(2, 6, 23, 0.48);
    stroke-width: 3px;
    stroke-linejoin: round;
}

.identity-donut-label-percent {
    font-size: 13px;
    font-weight: 900;
    fill: #86efac;
}

.identity-cross-matrix-card {
    margin-top: 18px;
}

.identity-cross-matrix-table {
    min-width: 640px;
}

.self-knowledge-epoch-form {
    min-width: min(100%, 320px);
    gap: 8px;
}

.identity-color-legend-item {
    appearance: none;
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    text-align: left;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.42);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.identity-color-legend-item strong,
.identity-color-legend-item span {
    display: block;
}

.identity-color-legend-item strong {
    font-size: 0.86rem;
    color: #f8fafc;
}

.identity-color-legend-item span {
    margin-top: 3px;
    font-size: 0.77rem;
    color: var(--muted);
}

.identity-color-legend-swatch {
    width: 14px;
    height: 14px;
    margin-top: 2px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}

.identity-donut-segment.is-active,
.identity-color-legend-item.is-active,
.identity-map-zone.is-active,
.identity-svg-chip.is-active,
.life-area-identity-card.is-active {
    opacity: 1;
}

.identity-donut-segment.is-active {
    filter: brightness(1.08) drop-shadow(0 0 14px rgba(255,255,255,0.16));
}

.identity-color-legend-item.is-active {
    border-color: rgba(125, 211, 252, 0.34);
    background: rgba(15, 23, 42, 0.72);
    transform: translateY(-1px);
}

.identity-color-legend-item.is-dimmed,
.identity-donut-segment.is-dimmed,
.identity-map-zone.is-dimmed,
.identity-svg-chip.is-dimmed,
.life-area-identity-card.is-dimmed {
    opacity: 0.38;
}

.identity-visual-stage.is-slow-orbit .identity-svg-chip-slot {
    animation-duration: 120s;
}

.identity-visual-stage.is-paused-orbit .identity-svg-chip-slot {
    animation-play-state: paused;
}

.life-area-identity-card {
    transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.life-area-identity-card.is-active {
    border-color: rgba(125, 211, 252, 0.34);
    transform: translateY(-2px);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.24);
}

.life-area-identity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.area-detail-trigger {
    margin-top: 4px;
}

.life-area-identity-meaning {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.self-knowledge-report-meaning {
    margin-top: 12px;
    padding: 14px 14px 8px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.40);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.self-knowledge-report-meaning p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.6;
}

.self-knowledge-report-meaning p:last-child {
    margin-bottom: 0;
}

.identity-area-dialog {
    width: min(560px, calc(100vw - 24px));
    border: none;
    padding: 0;
    background: transparent;
}

.identity-area-dialog::backdrop {
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(5px);
}

.identity-area-dialog-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.identity-area-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.identity-area-dialog-header h3 {
    margin: 6px 0 0;
}

.identity-area-dialog-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.identity-area-dialog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.identity-area-dialog-stat {
    background: rgba(30, 41, 59, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    padding: 14px;
}

.identity-area-dialog-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    color: #f8fafc;
}

.identity-area-dialog-body {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.identity-area-dialog-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.identity-area-dialog-help {
    margin-top: 12px !important;
}

.help-glossary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.help-glossary-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.42);
}

.help-glossary-card h3 {
    margin: 8px 0;
}

.help-glossary-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.help-impact-grid,
.cross-reading-grid,
.self-knowledge-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.help-insight-card,
.cross-reading-card,
.self-knowledge-spotlight-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.42);
}

.help-insight-card h3,
.cross-reading-card h3,
.self-knowledge-spotlight-card h3 {
    margin: 8px 0 10px;
}

.help-insight-card p,
.cross-reading-card p,
.self-knowledge-spotlight-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.self-knowledge-spotlight-card-alt {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 28%),
        rgba(15, 23, 42, 0.42);
}

.choice-guidance-callout {
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: 16px;
    border: 1px solid rgba(94, 234, 212, 0.18);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.10), rgba(59, 130, 246, 0.08));
}

.choice-guidance-callout strong {
    display: block;
    margin-bottom: 6px;
}

.choice-guidance-callout p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.choice-guidance-footer {
    margin-top: 8px !important;
    font-size: 0.92rem;
}

.identity-area-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

@keyframes identity-orbit-distance {
    from {
        offset-distance: var(--orbit-distance);
    }

    to {
        offset-distance: calc(var(--orbit-distance) + 100%);
    }
}

.self-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.self-knowledge-card,
.self-knowledge-report-card,
.self-knowledge-qa-card,
.self-knowledge-mini-item {
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.self-knowledge-card h3,
.self-knowledge-report-card h3,
.self-knowledge-qa-card h3,
.self-knowledge-mini-item strong {
    margin: 0 0 8px;
}

.self-knowledge-card p,
.self-knowledge-report-card p,
.self-knowledge-qa-card p,
.self-knowledge-mini-item p {
    margin: 0;
}

.self-knowledge-report-grid,
.self-knowledge-qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.self-knowledge-library-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.self-knowledge-library-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.self-knowledge-subsection-header h3 {
    margin: 6px 0 8px;
}

.self-knowledge-advanced-reports {
    margin-top: 2px;
}

.self-knowledge-report-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.10), transparent 32%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.self-knowledge-report-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.95), rgba(96, 165, 250, 0.95));
}

.self-knowledge-report-card h3 {
    font-size: 1.15rem;
}

.self-knowledge-report-cover {
    position: relative;
    height: 132px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2px;
    background:
        radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.18), transparent 26%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.self-knowledge-report-cover img,
.self-knowledge-report-cover-fallback {
    width: 100%;
    height: 100%;
}

.self-knowledge-report-cover img {
    display: block;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.02);
}

.self-knowledge-report-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.72));
    pointer-events: none;
}

.self-knowledge-report-cover-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.08em;
    background:
        radial-gradient(circle at 28% 28%, rgba(125, 211, 252, 0.30), transparent 22%),
        linear-gradient(135deg, rgba(45, 212, 191, 0.34), rgba(59, 130, 246, 0.24), rgba(15, 23, 42, 0.92));
}

.self-knowledge-report-cover-fallback.always-visible {
    display: flex;
}

.self-knowledge-report-cover-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 24px);
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.self-knowledge-report-cover-orb {
    position: absolute;
    width: 84px;
    height: 84px;
    top: 12px;
    right: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.34), transparent 70%);
    z-index: 0;
}

.self-knowledge-report-cover-orb.orb-alt {
    width: 52px;
    height: 52px;
    top: 46px;
    right: 64px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.28), transparent 72%);
}

.dual-cover {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.self-knowledge-report-cover-split {
    position: relative;
    min-width: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.78));
}

.self-knowledge-report-cover-split img,
.self-knowledge-report-cover-split .self-knowledge-report-cover-fallback {
    width: 100%;
    height: 100%;
}

.self-knowledge-report-cover-split .self-knowledge-report-cover-fallback {
    font-size: 1.6rem;
}

.self-knowledge-report-cover-split + .self-knowledge-report-cover-split {
    border-left: 1px solid rgba(148, 163, 184, 0.14);
}

.cover-map {
    background:
        radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.22), transparent 24%),
        radial-gradient(circle at 80% 24%, rgba(96, 165, 250, 0.18), transparent 22%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.92));
}

.cover-general {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.96));
}

.cover-patterns {
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.40), rgba(15, 23, 42, 0.92));
}

.cover-tensions {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.34), rgba(15, 23, 42, 0.95));
}

.cover-areas {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.32), rgba(15, 23, 42, 0.95));
}

.cover-mentor {
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.30), rgba(15, 23, 42, 0.95));
}

.cover-applications {
    background: linear-gradient(135deg, rgba(159, 18, 57, 0.30), rgba(15, 23, 42, 0.95));
}

.cover-epoch,
.cover-session,
.cover-analysis {
    background:
        radial-gradient(circle at 78% 26%, rgba(125, 211, 252, 0.18), transparent 18%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(51, 65, 85, 0.94));
}

.self-knowledge-report-card p {
    color: var(--muted);
    line-height: 1.6;
}

.self-knowledge-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.self-knowledge-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.self-knowledge-badges span,
.self-knowledge-badges a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.14);
    text-decoration: none;
}

.report-card-accent-green::before {
    background: linear-gradient(90deg, #34d399, #2dd4bf);
}

.report-card-accent-violet::before {
    background: linear-gradient(90deg, #a78bfa, #c084fc);
}

.report-card-accent-blue::before {
    background: linear-gradient(90deg, #60a5fa, #38bdf8);
}

.report-card-accent-gold::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.report-card-accent-rose::before {
    background: linear-gradient(90deg, #fb7185, #f87171);
}

.self-knowledge-inline-note {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.self-knowledge-mini-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.life-area-identity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.life-area-identity-card {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.20);
}

.life-area-identity-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.16), rgba(59, 130, 246, 0.18));
}

.life-area-identity-image,
.life-area-identity-fallback {
    width: 100%;
    height: 100%;
}

.life-area-identity-image {
    object-fit: cover;
}

.life-area-identity-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    background: radial-gradient(circle at top, rgba(94, 234, 212, 0.24), rgba(15, 23, 42, 0.55));
}

.life-area-identity-overlay {
    position: absolute;
    inset: auto 14px 14px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.life-area-identity-badge,
.life-area-identity-score,
.life-area-identity-confidence,
.life-area-identity-tension {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.life-area-identity-badge {
    background: rgba(15, 23, 42, 0.76);
    color: #f8fafc;
    backdrop-filter: blur(10px);
}

.life-area-identity-score {
    background: rgba(94, 234, 212, 0.18);
    color: #ecfeff;
    border: 1px solid rgba(94, 234, 212, 0.22);
    backdrop-filter: blur(10px);
}

.life-area-identity-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.life-area-identity-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.life-area-identity-heading h3 {
    margin: 6px 0 0;
}

.life-area-identity-pattern-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.16);
    color: #bfdbfe;
    font-weight: 700;
    border: 1px solid rgba(96, 165, 250, 0.18);
}

.life-area-identity-meter {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.14);
}

.life-area-identity-meter-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2dd4bf, #60a5fa);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.22);
}

.life-area-identity-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--muted);
}

.life-area-identity-secondary {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.life-area-identity-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.life-area-identity-confidence {
    background: rgba(148, 163, 184, 0.14);
    color: var(--text);
}

.life-area-identity-tension {
    background: rgba(248, 113, 113, 0.16);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.22);
}

.cross-matrix-section {
    margin-top: 20px;
}

.cross-matrix-stack {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.cross-matrix-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.34);
}

.cross-matrix-card-header h3 {
    margin: 0;
}

.cross-matrix-card-header p {
    margin: 8px 0 0;
    color: var(--muted);
}

.cross-matrix-table-wrap {
    margin-top: 14px;
    overflow-x: auto;
}

.cross-matrix-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.cross-matrix-table th,
.cross-matrix-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    text-align: left;
    vertical-align: top;
}

.cross-matrix-table th {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cross-matrix-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--muted);
}

.matrix-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    margin: 2px 6px 2px 0;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.matrix-pill.primary {
    background: rgba(45, 212, 191, 0.16);
    border-color: rgba(45, 212, 191, 0.22);
    color: #ccfbf1;
}

.matrix-pill.secondary {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(96, 165, 250, 0.22);
    color: #dbeafe;
}

.matrix-pill.neutral {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.16);
    color: var(--text);
}

.matrix-pill.empty {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.12);
    color: var(--muted);
}

body.theme-light .help-glossary-card,
body.theme-light .help-insight-card,
body.theme-light .cross-reading-card,
body.theme-light .self-knowledge-spotlight-card,
body.theme-light .cross-matrix-card,
body.theme-light .self-knowledge-report-card,
body.theme-light .life-area-identity-card,
body.theme-light .identity-color-chart-card,
body.theme-light .identity-color-focus-card,
body.theme-light .self-knowledge-explainer-card,
body.theme-light .identity-core-card,
body.theme-light .identity-area-dialog-card,
body.theme-light .mentor-message,
body.theme-light .habit-card,
body.theme-light .application-card,
body.theme-light .pattern-measurement-card,
body.theme-light .tension-card,
body.theme-light .blindspot-item,
body.theme-light .dash-stat,
body.theme-light .dash-timeline-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

body.theme-light .help-glossary-card p,
body.theme-light .help-insight-card p,
body.theme-light .cross-reading-card p,
body.theme-light .self-knowledge-spotlight-card p,
body.theme-light .cross-matrix-card-header p,
body.theme-light .self-knowledge-report-card p,
body.theme-light .self-knowledge-report-meaning p,
body.theme-light .life-area-identity-secondary,
body.theme-light .life-area-identity-meaning,
body.theme-light .habit-description,
body.theme-light .habit-meta,
body.theme-light .mentor-message-body,
body.theme-light .application-description,
body.theme-light .coherence-narrative,
body.theme-light .identity-area-dialog-body p,
body.theme-light .identity-color-focus-help,
body.theme-light .cross-matrix-sub {
    color: #475569;
}

body.theme-light .choice-guidance-callout {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(59, 130, 246, 0.08));
    border-color: rgba(45, 212, 191, 0.24);
}

body.theme-light .self-knowledge-report-cover,
body.theme-light .cover-map,
body.theme-light .cover-general,
body.theme-light .cover-patterns,
body.theme-light .cover-tensions,
body.theme-light .cover-areas,
body.theme-light .cover-mentor,
body.theme-light .cover-applications,
body.theme-light .cover-epoch,
body.theme-light .cover-session,
body.theme-light .cover-analysis {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.12), transparent 26%),
        linear-gradient(135deg, rgba(226, 232, 240, 0.82), rgba(248, 250, 252, 0.98));
}

body.theme-light .self-knowledge-report-cover::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.14));
}

body.theme-light .self-knowledge-report-cover-badge,
body.theme-light .life-area-identity-badge {
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.22);
}

body.theme-light .self-knowledge-badges span,
body.theme-light .self-knowledge-badges a,
body.theme-light .life-area-identity-confidence,
body.theme-light .mentor-structure-card,
body.theme-light .habit-effect,
body.theme-light .identity-area-dialog-stat,
body.theme-light .identity-color-focus-stats span,
body.theme-light .matrix-pill.neutral,
body.theme-light .matrix-pill.empty {
    background: rgba(226, 232, 240, 0.72);
    border-color: rgba(148, 163, 184, 0.18);
    color: #0f172a;
}

body.theme-light .identity-area-dialog-body {
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(148, 163, 184, 0.16);
}

body.theme-light .cross-matrix-table th,
body.theme-light .cross-matrix-table td {
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

body.theme-light .cross-matrix-table th {
    color: #475569;
}

body.theme-light .matrix-pill.primary {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.22);
    color: #065f46;
}

body.theme-light .matrix-pill.secondary {
    background: rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
}

body.theme-light .mentor-message.coaching,
body.theme-light .mentor-message.discovery,
body.theme-light .mentor-message.progress,
body.theme-light .mentor-message.tension,
body.theme-light .mentor-message.completion {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.dashboard-chooser-identity-visual {
    position: relative;
    display: block;
    overflow: hidden;
}

.chooser-identity-aura,
.chooser-identity-core,
.chooser-identity-node {
    position: absolute;
}

.chooser-identity-aura {
    border-radius: 50%;
    pointer-events: none;
}

.chooser-identity-aura-a {
    width: 180px;
    height: 180px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(94, 234, 212, 0.24), transparent 70%);
}

.chooser-identity-aura-b {
    width: 110px;
    height: 110px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(125, 211, 252, 0.24);
}

.chooser-identity-core {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    font-size: 1.4rem;
    background: linear-gradient(160deg, rgba(45, 212, 191, 0.95), rgba(96, 165, 250, 0.95));
    box-shadow: 0 0 26px rgba(94, 234, 212, 0.24);
}

.chooser-identity-node {
    min-width: 78px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.chooser-identity-node strong,
.chooser-identity-node span {
    display: block;
    line-height: 1.2;
}

.chooser-identity-node strong {
    font-size: 0.72rem;
    color: #f8fafc;
}

.chooser-identity-node span {
    font-size: 0.78rem;
    margin-top: 4px;
    color: var(--accent-strong);
    font-weight: 700;
}

.chooser-identity-node-a {
    top: 20px;
    right: 18px;
}

.chooser-identity-node-b {
    bottom: 18px;
    left: 18px;
}

.chooser-identity-node-c {
    bottom: 24px;
    right: 28px;
}

@media (max-width: 980px) {
    .identity-visual-stage-layout {
        grid-template-columns: 1fr;
    }

    .identity-visual-stage {
        --chip-orbit-radius-x: 288px;
        --chip-orbit-radius-y: 214px;
        min-height: 620px;
    }

    .identity-svg-chip {
        max-width: 168px;
    }

    .identity-color-chart-layout {
        grid-template-columns: 1fr;
    }

    .identity-color-chart-layout-wide {
        grid-template-columns: 1fr;
    }

    .self-knowledge-explainer-grid,
    .help-glossary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .identity-donut-shell {
        justify-content: flex-start;
    }

    .identity-donut-chart-frame,
    .identity-donut-svg {
        width: 248px;
        height: 248px;
    }

    .identity-donut-center {
        width: 128px;
        height: 128px;
    }

    .identity-color-focus-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }


    .identity-silhouette-zone-label {
        max-width: 120px;
    }
}

@media (max-width: 720px) {
    .identity-visual-stat-grid {
        grid-template-columns: 1fr;
    }

    .identity-visual-stage {
        --chip-orbit-radius-x: 198px;
        --chip-orbit-radius-y: 164px;
        min-height: 540px;
    }

    .identity-visual-stage-panel .identity-visual-stage {
        min-height: 580px;
    }

    .self-knowledge-report-cover {
        height: 116px;
    }

    .self-knowledge-report-cover-badge {
        font-size: 0.72rem;
    }

    .identity-svg-stage {
        inset: 6px;
    }

    .identity-svg-chip-slot {
        animation: none;
    }

    .identity-svg-chip {
        max-width: 166px;
        min-width: 132px;
        padding: 9px 10px;
        gap: 8px;
    }

    .identity-svg-chip-media {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .identity-svg-chip strong {
        font-size: 0.78rem;
    }

    .identity-svg-chip-body > span {
        font-size: 0.7rem;
    }

    .identity-svg-chip em {
        font-size: 0.76rem;
    }

    .identity-color-chart-card {
        padding: 14px;
    }

    .identity-color-chart-card-minimal {
        padding: 18px 12px 12px;
    }

    .identity-donut-track-minimal,
    .identity-donut-segment-minimal {
        stroke-width: 58;
    }

    .identity-donut-label {
        font-size: 9px;
    }

    .identity-donut-label-percent {
        font-size: 11px;
    }

    .identity-donut-chart-frame,
    .identity-donut-svg {
        width: 210px;
        height: 210px;
    }

    .identity-donut-center {
        width: 108px;
        height: 108px;
        padding: 10px;
    }

    .identity-color-focus-card {
        grid-template-columns: 1fr;
    }

    .identity-color-focus-media {
        min-height: 120px;
    }

    .self-knowledge-explainer-grid,
    .help-glossary-grid {
        grid-template-columns: 1fr;
    }

    .identity-area-dialog-grid {
        grid-template-columns: 1fr;
    }

    .identity-silhouette-head {
        top: 66px;
        width: 64px;
        height: 64px;
    }

    .identity-silhouette-torso {
        top: 120px;
        width: 170px;
        height: 220px;
    }

    .identity-silhouette-arm {
        top: 146px;
        width: 66px;
        height: 156px;
    }

    .identity-silhouette-arm-left {
        margin-left: -108px;
    }

    .identity-silhouette-arm-right {
        margin-left: 108px;
    }

    .identity-silhouette-core-glow {
        top: 160px;
        width: 126px;
        height: 126px;
    }

    .identity-core-card {
        width: min(240px, calc(100% - 40px));
        top: auto;
        bottom: 22px;
        transform: translateX(-50%);
    }

    .identity-silhouette-zone {
        max-width: 118px;
        gap: 6px;
    }

    .identity-silhouette-zone-label {
        padding: 6px 8px;
    }

    .identity-silhouette-zone-label strong {
        font-size: 0.68rem;
    }

    .identity-silhouette-zone-label span {
        font-size: 0.64rem;
    }

    .silhouette-zone-1 {
        top: 44px;
    }

    .silhouette-zone-2 {
        top: 148px;
        left: calc(50% - 118px);
    }

    .silhouette-zone-3 {
        top: 148px;
        right: calc(50% - 118px);
    }

    .silhouette-zone-4 {
        top: 244px;
        left: calc(50% - 98px);
    }

    .silhouette-zone-5 {
        top: 244px;
        right: calc(50% - 98px);
    }
}

/* Cartography Landing Page */
.cartography-landing-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.cartography-intro-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 10px;
}

.how-step-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.how-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    background: var(--panel);
    border-radius: 10px;
}

.how-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.how-step strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 2px;
}

.how-step span {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

.what-get-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.what-get-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: var(--panel);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.what-get-icon {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.what-get-item strong {
    font-size: 0.88rem;
    color: var(--text);
}

.what-get-item span {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.45;
}

.cartography-privacy-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 640px) {
    .identity-overview-grid {
        grid-template-columns: 1fr;
    }

    .identity-synthesis-grid {
        grid-template-columns: 1fr;
    }

    .pattern-measurement-grid {
        grid-template-columns: 1fr;
    }

    .career-score-row {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-chooser-grid {
        grid-template-columns: 1fr;
    }

    .what-get-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Cartography Completion
   ============================================================ */

/* --- Hero --- */
.carto-completion-hero {
    border-top: 3px solid rgba(192, 132, 252, 0.5);
}

.carto-completion-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.carto-completion-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.carto-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 8px 0 0;
}

.carto-hero-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0;
}

.carto-completion-ring {
    flex-shrink: 0;
}

/* --- SVG Progress Ring --- */
.carto-progress-ring-track {
    stroke: rgba(148, 163, 184, 0.12);
}

.carto-progress-ring-fill {
    stroke: #c084fc;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.carto-progress-ring-pct {
    fill: var(--text);
    font-size: 22px;
    font-weight: 700;
}

.carto-progress-ring-label {
    fill: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Section Titles --- */
.carto-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text);
}

.carto-subsection-title {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin: 0 0 12px;
}

.carto-subsection {
    margin-top: 14px;
}

.carto-subsection-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 8px;
}

/* --- Round Contribution --- */
.carto-round-contribution {
    border-left: 3px solid rgba(192, 132, 252, 0.4);
}

.carto-round-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.carto-round-stat {
    font-size: 0.88rem;
    color: var(--muted);
}

.carto-confirmed-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.carto-confirmed-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

/* --- Pattern Pills --- */
.carto-pattern-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.carto-pattern-pill-row-sm {
    gap: 6px;
    margin-top: 8px;
}

.carto-pattern-pill {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(192, 132, 252, 0.1);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.25);
}

.carto-pattern-pill-sm {
    padding: 3px 10px;
    font-size: 0.72rem;
}

/* --- Area Distribution --- */
.carto-area-distribution {
    margin-top: 16px;
}

.carto-area-bar-row {
    display: grid;
    grid-template-columns: 140px 1fr 40px;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.carto-area-bar-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--area-color);
    text-transform: capitalize;
    text-align: right;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.carto-area-bar-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.carto-area-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--area-color), var(--area-border, var(--area-color)));
    transition: width 0.6s ease;
}

.carto-area-bar-count {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
}

/* --- Coherence Section --- */
.carto-coherence-section {
    margin-top: 24px;
}

.carto-coherence-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
}

/* --- Area Icons --- */
.carto-area-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    flex-shrink: 0;
}

.carto-area-icon svg {
    width: 16px;
    height: 16px;
}

.carto-area-bar-label .carto-area-icon svg {
    width: 18px;
    height: 18px;
}

/* --- AI Narrative Layer --- */
.carto-narrative-card {
    border-left: 3px solid rgba(192, 132, 252, 0.4);
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.92), rgba(26, 16, 64, 0.15));
}

.carto-narrative-section {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.carto-narrative-section + .carto-narrative-section {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.carto-narrative-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(192, 132, 252, 0.1);
    color: #c084fc;
}

.carto-narrative-icon-round {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.carto-narrative-icon-evolution {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.carto-narrative-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0 0 4px;
}

.carto-narrative-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

/* --- Mentor Insight --- */
.carto-mentor-insight {
    margin-top: 24px;
    flex-shrink: 0;
    overflow: visible;
}

.carto-mentor-insight .mentor-message {
    overflow: visible;
    min-height: auto;
    max-height: none;
}

.carto-mentor-insight .mentor-message-body {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

/* --- Timeline --- */
.carto-history-card {
    overflow: visible;
}

.carto-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 28px;
}

.carto-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(148, 163, 184, 0.15);
}

.carto-timeline-entry {
    position: relative;
    padding: 14px 0 14px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.carto-timeline-entry:last-child {
    border-bottom: none;
}

.carto-timeline-marker {
    position: absolute;
    left: -22px;
    top: 16px;
    z-index: 1;
}

.carto-timeline-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--panel);
    border: 2px solid rgba(148, 163, 184, 0.25);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.carto-timeline-current .carto-timeline-number {
    background: rgba(192, 132, 252, 0.15);
    border-color: rgba(192, 132, 252, 0.5);
    color: #c084fc;
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.25);
}

.carto-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.carto-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.carto-timeline-header strong {
    font-size: 0.92rem;
}

.carto-timeline-date {
    font-size: 0.78rem;
    color: var(--muted);
}

.carto-timeline-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--muted);
}

.carto-timeline-current {
    background: rgba(192, 132, 252, 0.04);
    border-radius: 12px;
    padding: 14px 14px 14px 24px;
    border: 1px solid rgba(192, 132, 252, 0.15);
    border-bottom: 1px solid rgba(192, 132, 252, 0.15);
}

/* --- Continue Prompt --- */
.carto-continue-prompt {
    border-top: 3px solid rgba(192, 132, 252, 0.35);
}

.carto-continue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.carto-continue-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.carto-continue-subtitle {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}

.carto-continue-btn {
    white-space: nowrap;
    font-size: 0.88rem;
    padding: 10px 24px;
}

.carto-quick-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.carto-quick-links a {
    color: var(--accent);
    font-size: 0.78rem;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.carto-quick-links a:hover {
    text-decoration: underline;
}

.carto-quick-sep {
    color: rgba(148, 163, 184, 0.3);
    font-size: 0.7rem;
}

body.modal-open {
    overflow: hidden;
}

.carto-continue-modal {
    z-index: 260;
}

.carto-continue-modal .intent-detail-modal-content {
    max-width: 560px;
}

.carto-continue-modal-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.carto-continue-modal-lead {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.carto-continue-modal-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.carto-continue-modal-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.carto-continue-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(192, 132, 252, 0.18);
    background: rgba(15, 23, 42, 0.28);
    text-align: center;
}

.carto-continue-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.carto-continue-stat-label {
    font-size: 0.74rem;
    line-height: 1.35;
    color: var(--muted);
}

.carto-continue-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.carto-continue-modal-actions form {
    flex: 1 1 220px;
}

.carto-continue-modal-actions .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 640px) {
    .intent-detail-modal,
    .carto-continue-modal {
        padding: 14px;
        align-items: flex-end;
    }

    .carto-continue-modal .intent-detail-modal-content {
        max-width: none;
        border-radius: 18px;
        padding: 18px;
    }

    .carto-continue-modal-stats {
        grid-template-columns: 1fr;
    }

    .carto-continue-modal-actions {
        flex-direction: column;
    }

    .carto-continue-modal-actions form,
    .carto-continue-modal-actions .btn,
    .carto-continue-btn {
        width: 100%;
    }

    .carto-continue-header {
        align-items: stretch;
    }

    .carto-continue-header .hero-actions {
        width: 100%;
    }
}

/* --- Identity Card --- */
.carto-card-section {
    text-align: center;
}

.carto-card-subtitle {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0 0 20px;
}

.carto-card-preview-wrap {
    display: flex;
    justify-content: center;
}

.carto-area-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.carto-identity-card {
    width: min(100%, 480px);
    min-height: 540px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 30%),
        radial-gradient(circle at top left, rgba(192, 132, 252, 0.16), transparent 32%),
        linear-gradient(180deg, #0f172a 0%, #111827 54%, #101827 100%);
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(192, 132, 252, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
    color: #e6edf3;
}

.carto-id-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carto-id-card-brand {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c084fc;
}

.carto-id-card-date {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.carto-id-card-ring-wrap {
    display: flex;
    justify-content: center;
}

.carto-id-card-patterns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.carto-id-card-section-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 6px;
    text-align: center;
}

.carto-id-card-section-label-left {
    text-align: left;
    margin-bottom: 0;
}

.carto-id-card-spotlight {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    text-align: left;
}

.carto-id-card-spotlight-thumb {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.carto-id-card-spotlight-image {
    width: 76px;
    height: 76px;
}

.carto-id-card-spotlight-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.carto-id-card-spotlight-name {
    font-size: 1rem;
    line-height: 1.25;
    color: #f8fafc;
    overflow-wrap: anywhere;
}

.carto-id-card-spotlight-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.carto-id-card-spotlight-pct,
.carto-id-card-pattern-pct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    color: #dbeafe;
    font-weight: 700;
}

.carto-id-card-spotlight-caption {
    font-size: 0.72rem;
    color: #93c5fd;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.carto-id-card-pattern-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    grid-template-areas:
        "thumb name pct"
        "thumb bar pct";
    align-items: center;
    gap: 6px 10px;
}

.carto-id-card-pattern-thumb {
    grid-area: thumb;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.carto-id-card-pattern-thumb-image {
    width: 42px;
    height: 42px;
}

.carto-id-card-pattern-name {
    grid-area: name;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e6edf3;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.carto-id-card-bar-track {
    grid-area: bar;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.carto-id-card-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #c084fc, #38bdf8);
}

.carto-id-card-pattern-pct {
    grid-area: pct;
    font-size: 0.72rem;
    text-align: right;
}

.carto-id-card-coherence {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.carto-id-card-coherence-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #38bdf8;
}

.carto-id-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.4);
    letter-spacing: 0.06em;
}

.carto-area-mini-card {
    text-align: left;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.carto-area-mini-name {
    display: block;
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--text);
}

.carto-area-mini-meta,
.carto-area-mini-secondary {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
}

/* --- Evolution Card --- */
.carto-evolution-card {
    /* standard panel-card styling */
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .carto-completion-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .carto-completion-ring {
        order: -1;
        display: flex;
        justify-content: center;
    }

    .carto-coherence-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .carto-coherence-grid .coherence-score-ring {
        margin: 0 auto 16px;
    }

    .carto-area-bar-row {
        grid-template-columns: 70px 1fr 30px;
    }

    .carto-identity-card {
        width: 100%;
        max-width: 480px;
        padding: 24px 20px;
    }

    .carto-id-card-spotlight {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .carto-id-card-spotlight-thumb,
    .carto-id-card-spotlight-image {
        width: 64px;
        height: 64px;
    }

    .inline-stats-row {
        justify-content: center;
    }

    .carto-timeline {
        padding-left: 20px;
    }

    .carto-timeline::before {
        left: 10px;
    }

    .carto-timeline-marker {
        left: -17px;
    }

    .carto-timeline-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}

.license-hero-card {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 34%),
        radial-gradient(circle at bottom left, rgba(20, 184, 166, 0.14), transparent 28%),
        var(--surface-elevated);
}

.license-hero-grid,
.license-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
    gap: 20px;
}

.license-hero-copy,
.license-hero-side,
.license-form-card,
.license-status-card,
.license-request-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.license-hero-copy h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.license-hero-copy p,
.license-section-head p,
.license-summary-card span,
.license-toggle-card small,
.license-data-card span {
    color: var(--muted);
}

.license-mini-metrics,
.license-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.license-mini-metric,
.license-summary-card,
.license-data-card,
.license-toggle-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 16px;
}

.license-mini-metric strong,
.license-summary-card strong,
.license-data-card strong {
    display: block;
    color: var(--text);
}

.license-mini-metric strong,
.license-data-card strong {
    font-size: 1rem;
    line-height: 1.35;
    word-break: break-word;
}

.license-summary-card strong {
    font-size: 1.05rem;
}

.license-summary-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.license-status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.license-status-badge.is-valid {
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
}

.license-status-badge.is-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.license-attention-card {
    border-color: #f59e0b;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), transparent), var(--surface-elevated);
}

.feedback-banner-warning {
    border: 1px solid rgba(245, 158, 11, 0.22);
    background: rgba(245, 158, 11, 0.1);
    color: var(--text);
}

.share-card-list,
.help-module-grid {
    display: grid;
    gap: 16px;
}

.help-module-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.help-module-card,
.share-card {
    display: block;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    text-decoration: none;
}

.help-module-card h3,
.share-card h3 {
    margin-bottom: 8px;
}

.help-module-card p,
.share-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.share-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.share-card-muted {
    opacity: 0.72;
}

.share-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.interaction-pair-card {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 30%),
        var(--surface-elevated);
}

.help-numbered-list {
    list-style: decimal;
    padding-left: 1.25rem;
}

@media (max-width: 640px) {
    .share-card-header {
        flex-direction: column;
    }

    .help-module-grid {
        grid-template-columns: 1fr;
    }
}

.license-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.license-section-head h2 {
    margin-bottom: 4px;
}

.license-toggle-grid,
.license-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.license-toggle-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.license-toggle-card input {
    margin: 0 0 2px;
    align-self: flex-start;
}

.license-toggle-card span {
    color: var(--text);
    font-weight: 700;
}

.license-key-input,
.license-code-box {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.45;
}

.license-gate-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-user-create-card,
.admin-user-credential-card {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 32%),
        radial-gradient(circle at bottom left, rgba(20, 184, 166, 0.1), transparent 30%),
        var(--surface-elevated);
}

.admin-user-checkbox-stack {
    justify-content: center;
}

.credential-preview-card {
    display: grid;
    gap: 10px;
}

.credential-preview-row {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.credential-preview-row span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.credential-preview-row strong {
    color: var(--text);
    word-break: break-word;
}

.credential-preview-link {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.88rem;
}

.license-contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

body.theme-light .license-summary-card,
body.theme-light .license-data-card,
body.theme-light .license-mini-metric,
body.theme-light .license-toggle-card {
    background: rgba(255, 255, 255, 0.72);
}

body.theme-light .topbar-menu-toggle {
    background: rgba(255, 255, 255, 0.74);
}

body.theme-light .main-nav.is-open,
body.theme-light .credential-preview-row {
    background: rgba(255, 255, 255, 0.76);
}

body.theme-light .portal-host-social-link {
    background: rgba(15, 23, 42, 0.06);
}

body.theme-light .portal-host-social-link:hover {
    background: rgba(15, 23, 42, 0.12);
}

body.theme-light .main-nav a {
    color: color-mix(in srgb, var(--text) 82%, #1e3a8a 18%);
}

body.theme-light .main-nav a:hover,
body.theme-light .main-nav a:focus-visible {
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.12);
}

body.theme-light .main-nav a.is-active {
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.1);
}

body.theme-light .main-nav a[href="/Admin"] {
    background: rgba(37, 99, 235, 0.08);
}

body.theme-light .main-nav a[href="/Admin"]:hover,
body.theme-light .main-nav a[href="/Admin"]:focus-visible,
body.theme-light .main-nav a[href="/Admin"].is-active {
    background: rgba(37, 99, 235, 0.14);
}

@media (max-width: 900px) {
    .license-hero-grid,
    .license-admin-grid,
    .license-toggle-grid,
    .license-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   APPLY PAGE — Area Filter Chips
   ============================================= */

.area-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.area-filter-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 4px;
}

.area-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.area-filter-chip:hover {
    border-color: var(--accent);
    color: var(--text);
}

.area-filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.area-filter-chip .carto-area-icon {
    width: 14px;
    height: 14px;
}

.area-filter-chip.area-relationships.active { background: #e74c8b; border-color: #e74c8b; }
.area-filter-chip.area-work.active { background: #4a90d9; border-color: #4a90d9; }
.area-filter-chip.area-energy.active { background: #f5a623; border-color: #f5a623; }
.area-filter-chip.area-identity.active { background: #9b59b6; border-color: #9b59b6; }
.area-filter-chip.area-health.active { background: #27ae60; border-color: #27ae60; }
.area-filter-chip.area-finances.active { background: #16a085; border-color: #16a085; }
.area-filter-chip.area-growth.active { background: #e67e22; border-color: #e67e22; }

/* --- Visual assets for patterns and intents --- */
.asset-inline-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.asset-thumb-frame {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 48%),
        linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}

.asset-thumb {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    padding: 12px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(230, 237, 243, 0.92);
}

.asset-thumb-frame-xs {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.asset-thumb-xs {
    width: 36px;
    height: 36px;
}

.asset-thumb-frame-sm {
    width: 96px;
    height: 96px;
}

.asset-thumb-sm {
    width: 96px;
    height: 96px;
}

.asset-thumb-frame-md {
    width: 128px;
    height: 128px;
}

.asset-thumb-md {
    width: 128px;
    height: 128px;
}

.asset-thumb-frame-card {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 14px;
}

.asset-thumb-card {
    width: 100%;
    height: 100%;
}

.asset-thumb-frame-hero {
    width: min(100%, 360px);
    aspect-ratio: 4 / 3;
    margin-bottom: 18px;
}

.asset-thumb-hero {
    width: 100%;
    height: 100%;
}

.asset-thumb-frame-pattern-detail {
    width: min(100%, 420px);
}

.asset-thumb-frame-analysis {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
}

.asset-thumb-analysis {
    width: 100%;
    height: 100%;
}

.asset-thumb-frame-session {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 4 / 3;
    margin: 10px 0 16px;
}

.asset-thumb-session {
    width: 100%;
    height: 100%;
}

.session-pattern-link,
.tension-pattern {
    min-width: 0;
}

.integral-primary-card .asset-thumb-frame-hero,
.dash-hero .asset-thumb-frame-hero {
    margin-left: auto;
    margin-right: auto;
}

.pattern-visual-summary {
    padding: 18px 20px;
}

.pattern-visual-summary-layout {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.pattern-visual-summary-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.pattern-visual-summary-copy h2 {
    margin: 0;
    font-size: 1.35rem;
}

.pattern-visual-summary-copy p {
    margin: 0;
    color: var(--muted);
}

.apply-active-set-card {
    padding: 18px 20px;
}

.apply-active-set-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(240px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.apply-active-set-primary {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.apply-active-set-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1 1 260px;
}

.apply-active-set-copy h2,
.apply-active-set-copy p {
    margin: 0;
}

.apply-active-set-copy p {
    color: var(--muted);
}

.apply-active-set-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apply-active-set-block {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 900px) {
    .apply-active-set-layout {
        grid-template-columns: 1fr;
    }
}

.analysis-result-card .analysis-result-header {
    margin-bottom: 12px;
}

.past-analysis-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.methodology-body > .asset-thumb-frame-sm {
    margin-bottom: 14px;
}

@media (max-width: 720px) {
    .asset-thumb-frame-hero,
    .asset-thumb-frame-pattern-detail,
    .asset-thumb-frame-analysis,
    .asset-thumb-frame-session {
        max-width: 100%;
    }

    .asset-thumb-frame-sm {
        width: 84px;
        height: 84px;
    }

    .asset-thumb-sm {
        width: 84px;
        height: 84px;
    }
}

.profile-hero-card {
    margin-bottom: 18px;
}

.profile-hero-layout {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-avatar-frame {
    width: 132px;
    height: 132px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-fallback {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(230, 237, 243, 0.92);
}

.profile-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1 1 320px;
}

.profile-hero-copy h2 {
    margin: 0;
    font-size: 1.8rem;
}

.identity-header-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.identity-context-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(125, 211, 252, 0.18);
}

.identity-context-chip-premium {
    padding: 12px 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.1), rgba(255, 255, 255, 0.04));
    border-color: rgba(125, 211, 252, 0.24);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.identity-context-chip-compact {
    padding: 8px 12px;
    gap: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.identity-context-link {
    text-decoration: none;
    color: inherit;
}

.identity-context-link:hover {
    border-color: rgba(125, 211, 252, 0.34);
    background: rgba(125, 211, 252, 0.08);
}

.identity-context-compact {
    margin-bottom: 4px;
}

.identity-context-avatar,
.identity-context-avatar-fallback {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    flex-shrink: 0;
}

.identity-context-avatar {
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.identity-context-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.identity-context-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.identity-context-name {
    font-size: 0.98rem;
    color: var(--text);
    line-height: 1.2;
}

.identity-context-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.identity-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.1;
}

.epoch-toolbar-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.epoch-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.epoch-card-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.epoch-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.epoch-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.epoch-rename-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.epoch-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.identity-context-chip-compact .identity-context-avatar,
.identity-context-chip-compact .identity-context-avatar-fallback {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.identity-context-chip-compact .identity-context-name {
    font-size: 0.92rem;
}

.welcome-chip-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.welcome-chip-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    background: var(--button-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.welcome-chip-logout:hover,
.welcome-chip-logout:focus-visible {
    color: var(--text);
    background: var(--ui-subtle-bg);
    border-color: rgba(37, 99, 235, 0.22);
}

.welcome-chip-avatar,
.welcome-chip-initial {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    flex-shrink: 0;
}

.welcome-chip-avatar {
    object-fit: cover;
}

.welcome-chip-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
}

body.theme-light .welcome-chip-logout {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.14);
    color: #6b7f97;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

body.theme-light .welcome-chip-logout:hover,
body.theme-light .welcome-chip-logout:focus-visible {
    color: var(--accent-strong);
    background: #f8fbff;
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}
