:root {
    --bg: #f3efe8;
    --bg-deep: #e8dfd1;
    --paper: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 241, 233, 0.9));
    --paper-strong: #fffdfa;
    --panel-border: rgba(20, 39, 61, 0.08);
    --ink: #13283e;
    --muted: #6f7f95;
    --navy: #10283f;
    --navy-soft: #173a57;
    --teal: #146f67;
    --teal-soft: #7fc0ba;
    --copper: #df744a;
    --copper-deep: #b45631;
    --gold: #d9a441;
    --green: #2d8866;
    --red: #be5b59;
    --shadow: 0 28px 64px rgba(19, 34, 53, 0.08);
    --shadow-strong: 0 32px 80px rgba(19, 34, 53, 0.16);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --font-display: "Iowan Old Style", "Palatino Linotype", "Times New Roman", "PingFang SC", serif;
    --font-body: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 0% 8%, rgba(223, 116, 74, 0.16), transparent 30%),
        radial-gradient(circle at 100% 0%, rgba(20, 111, 103, 0.14), transparent 26%),
        linear-gradient(180deg, #faf7f1 0%, #f3efe8 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(19, 40, 62, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 40, 62, 0.028) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 32%, transparent 84%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.ambient {
    position: fixed;
    border-radius: 999px;
    filter: blur(92px);
    opacity: 0.46;
    pointer-events: none;
    z-index: 0;
}

.ambient-a {
    width: 320px;
    height: 320px;
    background: rgba(223, 116, 74, 0.2);
    top: 24px;
    left: -10px;
}

.ambient-b {
    width: 340px;
    height: 340px;
    background: rgba(20, 111, 103, 0.18);
    right: -40px;
    top: 100px;
}

.app-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 286px 1fr;
    gap: 28px;
    max-width: 1680px;
    margin: 0 auto;
    padding: 28px;
}

.sidebar {
    position: sticky;
    top: 28px;
    align-self: start;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(247, 244, 239, 0.28) transparent;
    background:
        radial-gradient(circle at 18% 14%, rgba(223, 116, 74, 0.22), transparent 24%),
        radial-gradient(circle at 100% 0%, rgba(127, 192, 186, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(15, 33, 52, 0.96), rgba(18, 44, 67, 0.96));
    color: #f7f4ef;
    border-radius: var(--radius-xl);
    padding: 24px 22px;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(247, 244, 239, 0.24);
    border-radius: 999px;
}

.brand-card {
    position: relative;
    padding: 0 0 20px;
    border-bottom: 1px solid rgba(247, 244, 239, 0.12);
}

.brand-seal {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 16px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.18), transparent),
        linear-gradient(135deg, #ef9464, #126f67);
    box-shadow: 0 16px 28px rgba(12, 30, 49, 0.24);
    color: #fff9f1;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand-card h1 {
    margin: 6px 0 8px;
    font-size: 40px;
    letter-spacing: 0.02em;
    font-family: var(--font-display);
    font-weight: 700;
}

.brand-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(247, 244, 239, 0.72);
}

.brand-kicker,
.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: rgba(247, 244, 239, 0.56);
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    color: rgba(19, 40, 62, 0.48);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(223, 116, 74, 0.1);
    border: 1px solid rgba(223, 116, 74, 0.14);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: var(--copper-deep);
}

.side-nav {
    display: grid;
    gap: 8px;
    margin: 22px 0 24px;
}

.nav-link {
    position: relative;
    padding: 13px 14px 13px 16px;
    border-radius: 16px;
    color: rgba(247, 244, 239, 0.78);
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.nav-link::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(247, 244, 239, 0.26);
    transform: translateY(-50%);
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(247, 244, 239, 0.12);
    border-color: rgba(247, 244, 239, 0.14);
    color: #fff;
    transform: translateX(2px);
}

.nav-link.is-active::before,
.nav-link:hover::before {
    background: #ffd3a2;
    box-shadow: 0 0 0 6px rgba(255, 211, 162, 0.12);
}

.side-section {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid rgba(247, 244, 239, 0.12);
}

.progress-list,
.side-links {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(247, 244, 239, 0.82);
    font-size: 14px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(247, 244, 239, 0.24);
}

.progress-dot.done {
    background: #53c58c;
    box-shadow: 0 0 0 6px rgba(83, 197, 140, 0.15);
}

.side-links a {
    color: rgba(247, 244, 239, 0.82);
    font-size: 14px;
}

.tool-links a,
.next-step-card {
    border: 1px solid rgba(247, 244, 239, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.tool-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
}

.tool-links a.is-active {
    color: var(--blue);
    font-weight: 700;
    border-color: rgba(66, 103, 232, 0.24);
    background: linear-gradient(180deg, #eef5ff, #f6fbff);
    box-shadow: 0 10px 24px rgba(66, 103, 232, 0.08);
}

.next-step-card {
    display: grid;
    gap: 8px;
    padding: 14px 12px;
}

.next-step-card strong {
    color: #f8fbff;
    font-size: 15px;
}

.next-step-card p {
    margin: 0;
    color: rgba(247, 244, 239, 0.72);
    line-height: 1.65;
    font-size: 13px;
}

.next-step-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 2px;
    color: #ffffff;
    font-size: 13px;
}

.report-editor summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    list-style: none;
}

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

.main-shell {
    min-width: 0;
    display: grid;
    gap: 22px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px 2px;
    color: rgba(19, 40, 62, 0.42);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.site-footer-brand {
    font-weight: 600;
    color: rgba(19, 40, 62, 0.5);
}

.site-footer-divider {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: rgba(19, 40, 62, 0.24);
}

.site-footer-icp {
    color: rgba(19, 40, 62, 0.46);
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-footer-icp:hover {
    color: var(--teal);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: rgba(255, 252, 247, 0.72);
    border: 1px solid rgba(19, 40, 62, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 28px;
    z-index: 12;
}

.topbar-title {
    margin-top: 4px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.topbar-actions {
    display: flex;
    gap: 10px;
}

.pill-link {
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(19, 40, 62, 0.05);
    color: var(--ink);
    font-size: 13px;
    border: 1px solid rgba(19, 40, 62, 0.06);
}

.page {
    display: grid;
    gap: 24px;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 34%),
        radial-gradient(circle at 14% 18%, rgba(255, 206, 160, 0.2), transparent 30%),
        radial-gradient(circle at 86% 0%, rgba(127, 192, 186, 0.2), transparent 30%),
        linear-gradient(135deg, #10283f 0%, #15344f 42%, #126f67 100%);
    color: #fff8ef;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 420px);
    gap: 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: grid;
    align-content: start;
}

.hero-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.hero-side-card {
    border-radius: 22px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
        rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
}

.hero-side-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 248, 239, 0.64);
}

.hero-side-big {
    margin-top: 8px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    color: #fffaf4;
}

.hero-side-text {
    margin-top: 8px;
    color: rgba(255,248,239,0.78);
    line-height: 1.7;
    font-size: 14px;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.hero-stat {
    padding: 14px;
    border-radius: 16px;
    background: rgba(11, 23, 36, 0.16);
    border: 1px solid rgba(255,255,255,0.08);
}

.hero-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fffaf3;
}

.hero-stat-label {
    margin-top: 6px;
    color: rgba(255,248,239,0.66);
    font-size: 12px;
}

.hero-signal-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.hero-signal {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.hero-signal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,248,239,0.92);
    font-size: 13px;
    font-weight: 600;
}

.hero-signal-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
}

.hero-signal-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffd39b, #ef9464, #7fc0ba);
}

.hero-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-list li {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.hero-list strong {
    font-size: 14px;
    color: #fff8f1;
}

.hero-list span {
    font-size: 13px;
    color: rgba(255,248,239,0.66);
    line-height: 1.6;
}

.hero::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -46px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.36), transparent 82%);
    pointer-events: none;
}

.hero h2 {
    position: relative;
    margin: 16px 0 14px;
    max-width: 880px;
    font-size: clamp(40px, 3.8vw, 66px);
    line-height: 0.98;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.hero p {
    position: relative;
    max-width: 780px;
    margin: 0;
    line-height: 1.8;
    color: rgba(255, 248, 239, 0.82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 15px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled,
.button.is-loading {
    cursor: wait;
    opacity: 0.74;
    transform: none;
}

.button.is-loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: spin 0.7s linear infinite;
}

.button-primary {
    background: linear-gradient(135deg, var(--copper), #ef9464);
    color: #fff;
    box-shadow: 0 16px 32px rgba(223, 116, 74, 0.28);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #fff8ef;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.button-ghost {
    background: rgba(247, 244, 239, 0.08);
    color: #f7f4ef;
    border: 1px solid rgba(247, 244, 239, 0.14);
}

.button-block {
    width: 100%;
}

.panel,
.card,
.table-wrap,
.empty-state,
.metric-card,
.timeline-card,
.question-card {
    background: var(--paper);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.panel::before,
.card::before,
.metric-card::before,
.timeline-card::before,
.question-card::before,
.table-wrap::before,
.empty-state::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.52), transparent 22%);
    pointer-events: none;
}

.panel {
    padding: 26px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-head h3,
.section-head h4,
.card h4,
.panel h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-head p,
.muted {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.stats-grid,
.card-grid,
.metric-grid,
.two-col,
.three-col,
.four-col {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.metric-grid,
.four-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.metric-card {
    padding: 22px;
}

.stat-value,
.metric-value {
    margin-top: 12px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-label,
.metric-label {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.stats-grid .panel:nth-child(1) {
    background:
        radial-gradient(circle at 100% 0%, rgba(127, 192, 186, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(255,253,248,0.98), rgba(237,245,244,0.9));
}

.stats-grid .panel:nth-child(2) {
    background:
        radial-gradient(circle at 0% 100%, rgba(223, 116, 74, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255,253,248,0.98), rgba(248,238,231,0.92));
}

.stats-grid .panel:nth-child(3) {
    background:
        radial-gradient(circle at 100% 100%, rgba(217, 164, 65, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255,253,248,0.98), rgba(249,243,231,0.92));
}

.stats-grid .panel:nth-child(4) {
    background:
        radial-gradient(circle at 0% 0%, rgba(76, 109, 167, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255,253,248,0.98), rgba(236,241,248,0.92));
}

.badge-row,
.chip-row,
.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge,
.chip,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid transparent;
}

.badge {
    background: rgba(255, 255, 255, 0.12);
    color: #fff7ec;
    border-color: rgba(255, 255, 255, 0.14);
}

.chip {
    background: rgba(19, 40, 62, 0.05);
    color: var(--ink);
    border-color: rgba(19, 40, 62, 0.08);
    font-weight: 600;
}

.chip.soft {
    background: rgba(34, 107, 104, 0.12);
}

.chip.warn {
    background: rgba(211, 154, 36, 0.12);
}

.chip.good {
    background: rgba(41, 122, 89, 0.12);
}

.chip.risk {
    background: rgba(177, 74, 68, 0.12);
}

.card {
    padding: 22px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(19, 34, 53, 0.11);
    border-color: rgba(20, 111, 103, 0.16);
}

.card p {
    margin: 10px 0 0;
    line-height: 1.75;
    color: var(--muted);
}

.callout {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(19, 40, 62, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.58);
}

.callout.info {
    background: linear-gradient(180deg, rgba(76, 109, 167, 0.1), rgba(76, 109, 167, 0.06));
}

.callout.success {
    background: linear-gradient(180deg, rgba(45, 136, 102, 0.12), rgba(45, 136, 102, 0.07));
}

.callout.warn {
    background: linear-gradient(180deg, rgba(217, 164, 65, 0.16), rgba(223, 116, 74, 0.08));
}

.callout.error {
    background: linear-gradient(180deg, rgba(190, 91, 89, 0.14), rgba(190, 91, 89, 0.08));
}

.form-grid {
    display: grid;
    gap: 18px;
}

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

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(19, 40, 62, 0.82);
    letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 15px;
    border-radius: 15px;
    border: 1px solid rgba(19, 40, 62, 0.1);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font: inherit;
    resize: vertical;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.field textarea {
    min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(20, 111, 103, 0.36);
    box-shadow: 0 0 0 4px rgba(20, 111, 103, 0.1);
}

.option-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-chip {
    position: relative;
}

.option-chip input {
    position: absolute;
    opacity: 0;
}

.option-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(19, 40, 62, 0.08);
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.option-chip span:hover {
    transform: translateY(-1px);
    border-color: rgba(20, 111, 103, 0.18);
}

.option-chip input:checked + span {
    background: rgba(34, 107, 104, 0.12);
    border-color: rgba(34, 107, 104, 0.26);
    color: var(--teal);
}

.question-card {
    padding: 24px;
}

.question-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.question-index {
    font-size: 13px;
    color: var(--copper);
    font-weight: 700;
}

.question-title {
    margin: 0;
    font-size: 18px;
}

.radio-list {
    display: grid;
    gap: 10px;
}

.radio-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(19, 40, 62, 0.08);
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.radio-item:hover {
    transform: translateY(-1px);
    border-color: rgba(20, 111, 103, 0.18);
    background: rgba(255, 255, 255, 0.94);
}

.radio-item input {
    margin-top: 4px;
}

.meter-list {
    display: grid;
    gap: 14px;
}

.meter {
    display: grid;
    gap: 8px;
}

.meter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
}

.meter-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(24, 38, 61, 0.08);
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--navy), var(--teal), var(--copper));
}

.meter-fill.warn {
    background: linear-gradient(90deg, #f0b24c, var(--copper));
}

.meter-fill.good {
    background: linear-gradient(90deg, #2d8c63, #54bd8f);
}

.meter-fill.risk {
    background: linear-gradient(90deg, #d57c77, var(--red));
}

.list-clean {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.list-clean li {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(19, 40, 62, 0.08);
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-card {
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--teal), var(--copper));
}

.timeline-card strong {
    display: block;
    margin-left: 16px;
    font-size: 19px;
}

.timeline-card .timeline-meta,
.timeline-card p {
    margin: 8px 0 0 16px;
}

.timeline-meta {
    color: var(--copper);
    font-size: 13px;
    font-weight: 700;
}

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

.radar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.42), transparent 56%),
        linear-gradient(180deg, rgba(255,255,255,0.68), rgba(246,240,232,0.62));
    border-radius: 22px;
    padding: 14px;
    border: 1px solid rgba(19, 40, 62, 0.06);
}

.radar-svg {
    width: min(100%, 380px);
    height: auto;
}

.radar-grid {
    fill: none;
    stroke: rgba(24, 38, 61, 0.12);
    stroke-width: 1;
}

.radar-axis {
    stroke: rgba(24, 38, 61, 0.16);
    stroke-width: 1;
}

.radar-label {
    fill: var(--muted);
    font-size: 11px;
    text-anchor: middle;
}

.radar-polygon {
    stroke-width: 2.5;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.table-wrap {
    overflow: hidden;
    border-radius: 22px;
}

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

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(19, 40, 62, 0.08);
    vertical-align: top;
}

th {
    font-size: 13px;
    color: var(--muted);
    background: rgba(19, 40, 62, 0.04);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

tbody tr:nth-child(2n) td {
    background: rgba(255, 255, 255, 0.36);
}

.empty-state {
    padding: 36px;
    text-align: center;
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0 auto 18px;
    max-width: 520px;
    color: var(--muted);
    line-height: 1.8;
}

.markdown-body {
    line-height: 1.9;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    margin-top: 0;
}

.markdown-body blockquote {
    margin: 0;
    padding: 14px 18px;
    border-left: 4px solid var(--copper);
    background: rgba(199, 106, 43, 0.08);
    border-radius: 0 14px 14px 0;
}

.markdown-body ul {
    padding-left: 20px;
}

.legal-page {
    gap: 18px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.legal-index {
    position: sticky;
    top: 96px;
}

.legal-index-list {
    display: grid;
    gap: 10px;
}

.legal-index-list a {
    display: grid;
    gap: 6px;
    padding: 14px;
    color: var(--ink);
    background: #f8fbff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 8px;
}

.legal-index-list a.is-active {
    background: #f4fffb;
    border-color: rgba(22, 163, 148, 0.24);
}

.legal-index-list span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.legal-content {
    max-width: 980px;
}

.legal-content .markdown-body {
    color: var(--ink);
    font-size: 15px;
}

.legal-content .markdown-body h1 {
    font-size: 30px;
    line-height: 1.25;
}

.legal-content .markdown-body h2 {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(22, 40, 66, 0.08);
    font-size: 24px;
}

.legal-content .markdown-body h3 {
    margin-top: 24px;
    font-size: 19px;
}

.legal-content .markdown-body p,
.legal-content .markdown-body li {
    color: #2f4255;
}

.legal-content .markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    overflow: hidden;
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 8px;
}

.legal-content .markdown-body th,
.legal-content .markdown-body td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(22, 40, 66, 0.08);
}

.legal-content .markdown-body th {
    background: #f4f8fb;
}

.helper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.flash-target {
    animation: flashIn 1s ease;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(18, 34, 54, 0.42);
    backdrop-filter: blur(12px);
    z-index: 40;
}

.loading-overlay.is-visible {
    display: flex;
}

.loading-panel {
    width: min(520px, 100%);
    padding: 30px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(127, 192, 186, 0.18), transparent 32%),
        radial-gradient(circle at 0% 100%, rgba(223, 116, 74, 0.14), transparent 32%),
        rgba(255, 252, 247, 0.98);
    border: 1px solid rgba(19, 40, 62, 0.08);
    box-shadow: 0 24px 60px rgba(19, 33, 53, 0.18);
}

.loading-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(34, 107, 104, 0.18), rgba(199, 106, 43, 0.24)),
        linear-gradient(135deg, #17314c, #245e60);
    position: relative;
    overflow: hidden;
}

.loading-mark::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.24), transparent);
}

.loading-kicker {
    margin-top: 18px;
    color: var(--copper);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.loading-title {
    margin-top: 10px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
}

.loading-progress {
    margin-top: 20px;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(24, 38, 61, 0.08);
    overflow: hidden;
}

.loading-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--navy), var(--teal), var(--copper));
    transition: width 0.35s ease;
}

.loading-step {
    margin-top: 14px;
    font-size: 14px;
    color: var(--muted);
}

.invite-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        linear-gradient(rgba(247, 250, 252, 0.88), rgba(247, 250, 252, 0.88)),
        linear-gradient(90deg, rgba(77, 124, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(22, 163, 148, 0.08) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
    backdrop-filter: blur(10px);
}

.invite-panel {
    width: min(480px, 100%);
    display: grid;
    gap: 16px;
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(22, 40, 66, 0.1);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(28, 45, 72, 0.18);
}

.invite-mark {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--teal));
}

.invite-icon {
    width: 26px;
    height: 26px;
}

.invite-panel h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.35;
}

.invite-panel p,
.invite-help {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.invite-help {
    font-size: 13px;
}

.legal-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    color: var(--ink);
    background: #f8fbff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.65;
}

.legal-consent input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--teal);
}

.legal-consent a {
    color: var(--teal);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 8px;
    color: #0f5f55;
    background: #e7faf6;
    border: 1px solid rgba(22, 163, 148, 0.2);
    box-shadow: var(--shadow);
}

@keyframes flashIn {
    0% {
        box-shadow: 0 0 0 rgba(199, 106, 43, 0);
        transform: translateY(8px);
    }
    100% {
        box-shadow: 0 18px 42px rgba(199, 106, 43, 0.08);
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.nav-toggle {
    display: none;
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

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

    .sidebar {
        position: relative;
        top: 0;
    }

    .stats-grid,
    .metric-grid,
    .four-col,
    .three-col,
    .two-col,
    .field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .app-shell {
        padding: 14px;
    }

    .sidebar {
        display: none;
    }

    .sidebar.is-open {
        display: block;
        position: fixed;
        inset: 14px 14px auto 14px;
        z-index: 20;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 14px;
        border-radius: 12px;
        border: 1px solid rgba(24, 38, 61, 0.1);
        background: rgba(255, 255, 255, 0.86);
        color: var(--ink);
        cursor: pointer;
    }

    .topbar {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .topbar-actions {
        width: 100%;
    }

    .stats-grid,
    .metric-grid,
    .four-col,
    .three-col,
    .two-col,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 24px;
    }
}

/* ToC refresh: lighter student-facing product language, local IconPark-style SVGs. */
:root {
    --bg: #f7f9fc;
    --bg-deep: #e9f3f0;
    --paper: #ffffff;
    --paper-strong: #ffffff;
    --panel-border: rgba(22, 40, 66, 0.1);
    --ink: #17243a;
    --muted: #64748b;
    --navy: #223a5e;
    --teal: #16a394;
    --teal-soft: #dff7f3;
    --copper: #ff7a59;
    --copper-deep: #d9573c;
    --gold: #f7b733;
    --green: #20a66a;
    --red: #de5b63;
    --blue: #4d7cff;
    --shadow: 0 10px 30px rgba(28, 45, 72, 0.08);
    --shadow-strong: 0 18px 50px rgba(28, 45, 72, 0.14);
    --radius-xl: 8px;
    --radius-lg: 8px;
    --radius-md: 8px;
    --radius-sm: 8px;
    --font-display: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-body: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background:
        linear-gradient(90deg, rgba(77, 124, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(22, 163, 148, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, #fbfdff 0%, #f4f8fb 42%, #fff7f2 100%);
    background-size: 32px 32px, 32px 32px, auto;
}

body::before,
.ambient {
    display: none;
}

.icon,
.nav-icon,
.brand-icon,
.side-link-icon,
.button-icon,
.feature-icon,
.metric-icon,
.journey-icon,
.preview-icon,
.eyebrow-icon {
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
}

.icon path,
.icon circle,
.icon rect,
.nav-icon path,
.nav-icon circle,
.nav-icon rect,
.brand-icon path,
.brand-icon circle,
.brand-icon rect,
.side-link-icon path,
.side-link-icon circle,
.side-link-icon rect,
.button-icon path,
.button-icon circle,
.button-icon rect,
.feature-icon path,
.feature-icon circle,
.feature-icon rect,
.metric-icon path,
.metric-icon circle,
.metric-icon rect,
.journey-icon path,
.journey-icon circle,
.journey-icon rect,
.preview-icon path,
.preview-icon circle,
.preview-icon rect,
.eyebrow-icon path,
.eyebrow-icon circle,
.eyebrow-icon rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 3.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-shell {
    grid-template-columns: 272px 1fr;
    gap: 24px;
}

.sidebar {
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    border: 1px solid rgba(22, 40, 66, 0.1);
    box-shadow: var(--shadow);
}

.brand-card {
    border-bottom-color: rgba(22, 40, 66, 0.08);
}

.brand-seal {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--teal) 55%, var(--gold));
}

.brand-card h1 {
    font-size: 34px;
}

.brand-card p,
.brand-kicker,
.section-kicker,
.progress-item,
.side-links a {
    color: var(--muted);
}

.section-kicker,
.brand-kicker,
.topbar-kicker {
    letter-spacing: 0.08em;
}

.side-nav {
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    color: #40516d;
    border-radius: 8px;
}

.nav-link::before {
    display: none;
}

.nav-link:hover,
.nav-link.is-active {
    background: #eef6ff;
    border-color: rgba(77, 124, 255, 0.18);
    color: var(--blue);
    transform: none;
}

.nav-icon {
    width: 20px;
    height: 20px;
}

.progress-list {
    gap: 8px;
}

.progress-item {
    font-size: 13px;
}

.progress-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #edf2f7;
    color: #7b8ca6;
    font-size: 11px;
    font-weight: 700;
}

.progress-dot.done {
    background: var(--teal);
    color: #fff;
    box-shadow: none;
}

.side-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    background: #f7fafc;
    border: 1px solid rgba(22, 40, 66, 0.06);
}

.side-link-icon {
    color: var(--teal);
}

.sidebar .next-step-card {
    background: #f8fbff;
    border-color: rgba(22, 40, 66, 0.08);
    color: var(--ink);
}

.sidebar .next-step-card strong {
    color: var(--ink);
}

.sidebar .next-step-card p {
    color: #607089;
}

.sidebar .next-step-card a {
    color: var(--teal);
    font-weight: 700;
}

.topbar {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.topbar-title {
    font-size: 18px;
}

.pill-link {
    border-radius: 999px;
    background: #f2f7fb;
}

.hero {
    background:
        linear-gradient(135deg, rgba(77, 124, 255, 0.95), rgba(22, 163, 148, 0.94) 55%, rgba(255, 122, 89, 0.9));
    border-radius: 8px;
    padding: 38px;
}

.hero::before,
.hero::after {
    display: none;
}

.hero h2 {
    max-width: 760px;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.06;
    letter-spacing: 0;
}

.hero p {
    max-width: 700px;
    font-size: 16px;
}

.eyebrow {
    border-radius: 999px;
    background: rgba(255, 122, 89, 0.12);
    color: var(--copper-deep);
    text-transform: none;
    letter-spacing: 0.04em;
}

.hero .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
}

.eyebrow-icon {
    width: 16px;
    height: 16px;
}

.button {
    border-radius: 8px;
}

.button-primary {
    background: #17243a;
    color: #fff;
    box-shadow: 0 12px 28px rgba(23, 36, 58, 0.18);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
}

.button-ghost {
    background: #f6f8fb;
    color: #40516d;
    border-color: rgba(22, 40, 66, 0.08);
}

.button-icon {
    width: 18px;
    height: 18px;
}

.panel,
.card,
.table-wrap,
.empty-state,
.metric-card,
.timeline-card,
.question-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.panel::before,
.card::before,
.metric-card::before,
.timeline-card::before,
.question-card::before,
.table-wrap::before,
.empty-state::before {
    display: none;
}

.card:hover {
    transform: translateY(-2px);
}

.field input,
.field select,
.field textarea,
.option-chip span,
.radio-item,
.list-clean li {
    border-radius: 8px;
}

.home-hero {
    min-height: 540px;
    display: grid;
    align-items: center;
}

.home-badges {
    margin-top: 18px;
}

.phone-preview {
    width: min(100%, 390px);
    justify-self: end;
    display: grid;
    gap: 16px;
    padding: 22px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(17, 35, 58, 0.18);
}

.phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
}

.phone-top strong {
    color: var(--ink);
}

.today-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 8px;
    background: #fff6e8;
    border: 1px solid rgba(247, 183, 51, 0.28);
}

.today-card strong {
    display: block;
    margin-bottom: 5px;
}

.today-card span {
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}

.preview-icon {
    width: 34px;
    height: 34px;
    color: var(--copper);
}

.mini-journey {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.mini-step {
    display: grid;
    gap: 7px;
    justify-items: center;
    padding: 12px 6px;
    border-radius: 8px;
    background: #f5f8fb;
    color: var(--muted);
}

.mini-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #e6edf5;
    color: #59708f;
    font-weight: 800;
    font-size: 12px;
}

.mini-step strong {
    font-size: 12px;
}

.mini-step.is-done {
    background: var(--teal-soft);
    color: #087468;
}

.mini-step.is-done span {
    background: var(--teal);
    color: #fff;
}

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

.preview-metrics div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 8px;
    background: #f7fafc;
    border: 1px solid rgba(22, 40, 66, 0.06);
}

.preview-metrics strong {
    font-size: 20px;
}

.preview-metrics span {
    color: var(--muted);
    font-size: 12px;
}

.journey-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.journey-step {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.journey-step:hover {
    transform: translateY(-2px);
    border-color: rgba(77, 124, 255, 0.22);
}

.journey-icon {
    width: 30px;
    height: 30px;
    color: var(--blue);
}

.journey-step:nth-child(2) .journey-icon {
    color: var(--teal);
}

.journey-step:nth-child(3) .journey-icon {
    color: var(--copper);
}

.journey-step:nth-child(4) .journey-icon {
    color: var(--gold);
}

.journey-step span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.journey-step strong {
    font-size: 16px;
}

.feature-card {
    display: grid;
    align-content: start;
    gap: 12px;
}

.feature-icon,
.metric-icon {
    width: 34px;
    height: 34px;
    color: var(--blue);
}

.feature-card:nth-child(2) .feature-icon,
.stats-grid .panel:nth-child(2) .metric-icon {
    color: var(--teal);
}

.feature-card:nth-child(3) .feature-icon,
.stats-grid .panel:nth-child(3) .metric-icon {
    color: var(--copper);
}

.feature-card:nth-child(4) .feature-icon,
.stats-grid .panel:nth-child(4) .metric-icon {
    color: var(--gold);
}

.job-card .chip-row {
    margin-top: 12px;
}

@media (max-width: 1180px) {
    .phone-preview {
        justify-self: stretch;
        width: 100%;
    }

    .journey-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .home-hero {
        min-height: auto;
    }

    .journey-strip,
    .mini-journey,
    .preview-metrics {
        grid-template-columns: 1fr;
    }
}

/* Mature product pass: replace poster-like heroes with compact task panels. */
.main-shell {
    gap: 20px;
}

.topbar {
    padding: 16px 22px;
}

.hero {
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96)),
        radial-gradient(circle at 95% 10%, rgba(22, 163, 148, 0.08), transparent 28%);
    border: 1px solid rgba(22, 40, 66, 0.08);
    box-shadow: var(--shadow);
    padding: 30px 32px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
    gap: 26px;
    align-items: center;
}

.hero .eyebrow {
    width: fit-content;
    color: var(--blue);
    background: #eef4ff;
    border-color: rgba(77, 124, 255, 0.14);
}

.hero h2 {
    margin: 14px 0 12px;
    max-width: 680px;
    font-size: clamp(28px, 2.4vw, 42px);
    line-height: 1.16;
    font-weight: 760;
    color: var(--ink);
}

.hero p {
    max-width: 680px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.hero-actions {
    margin-top: 22px;
}

.hero .badge {
    color: #41536d;
    background: #f5f8fb;
    border-color: rgba(22, 40, 66, 0.08);
}

.hero-side,
.hero-side-card {
    min-width: 0;
}

.hero-side-card {
    background: #ffffff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    box-shadow: 0 8px 22px rgba(28, 45, 72, 0.06);
}

.hero-side-title {
    color: var(--muted);
}

.hero-side-big {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.28;
}

.hero-side-text {
    color: var(--muted);
}

.hero-list li,
.hero-signal,
.hero-stat {
    background: #f7fafc;
    border-color: rgba(22, 40, 66, 0.06);
}

.hero-list strong,
.hero-signal-top,
.hero-stat-value {
    color: var(--ink);
}

.hero-list span,
.hero-stat-label {
    color: var(--muted);
}

.hero-signal-bar {
    background: #e7edf5;
}

.hero-signal-fill {
    background: linear-gradient(90deg, var(--blue), var(--teal));
}

.button-primary {
    background: var(--blue);
    box-shadow: 0 10px 22px rgba(77, 124, 255, 0.2);
}

.hero .button-secondary {
    color: var(--ink);
    background: #ffffff;
    border-color: rgba(22, 40, 66, 0.12);
}

.home-hero {
    min-height: auto;
}

.home-hero .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 430px);
}

/* ===== Home hero – 信任 / 数据支撑条 + 三个快捷入口 ===== */
.hero-evidence {
    margin-top: 26px;
    padding: 16px 18px 14px;
    background: linear-gradient(135deg, #f7faff 0%, #f5fbfa 100%);
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 14px;
}

.hero-evidence-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-evidence-kicker {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.hero-evidence-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue, #4d7cff);
    text-decoration: none;
    transition: opacity 140ms ease, transform 140ms ease;
}

.hero-evidence-link:hover {
    opacity: 0.8;
    transform: translateX(2px);
}

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

.evidence-pill {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid rgba(22, 40, 66, 0.06);
    border-radius: 10px;
    min-width: 0;
}

.evidence-pill > div {
    min-width: 0;
}

.evidence-pill strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
}

.evidence-pill p {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.45;
}

.evidence-pill-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.evidence-iconimg {
    width: 18px;
    height: 18px;
}

.evidence-pill-icon.icon-data    { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); }
.evidence-pill-icon.icon-algo    { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); }
.evidence-pill-icon.icon-report  { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); }

@media (max-width: 1180px) {
    .hero-evidence-grid {
        grid-template-columns: 1fr;
    }
    .hero-evidence-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* 三个快捷入口（still inside hero-copy） */
.hero-quick-entries {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.quick-entry {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 14px 14px 14px 12px;
    background: #ffffff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(28, 45, 72, 0.04);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.quick-entry:hover {
    transform: translateY(-2px);
    border-color: rgba(77, 124, 255, 0.35);
    box-shadow: 0 14px 26px rgba(28, 45, 72, 0.08);
}

.quick-entry-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f5ff, #f5f8fb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quick-entry-iconimg {
    width: 22px;
    height: 22px;
}

.quick-entry-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.quick-entry-tag {
    display: inline-block;
    width: fit-content;
    padding: 1px 8px;
    border-radius: 999px;
    background: #f4f8ff;
    color: #3253c8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.quick-entry-body strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.quick-entry-body p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
}


/* 不同入口换不同的图标底色，更有节奏 */
.quick-entry:nth-child(1) .quick-entry-icon { background: linear-gradient(135deg, #ECFDF5, #E1F5EE); }
.quick-entry:nth-child(2) .quick-entry-icon { background: linear-gradient(135deg, #EEF4FF, #E0E9FF); }
.quick-entry:nth-child(3) .quick-entry-icon { background: linear-gradient(135deg, #FFF7ED, #FFEFD5); }

@media (max-width: 1180px) {
    .hero-quick-entries {
        grid-template-columns: 1fr;
    }
}

.phone-preview {
    color: var(--ink);
    background: #ffffff;
    border-color: rgba(22, 40, 66, 0.08);
    box-shadow: 0 14px 34px rgba(28, 45, 72, 0.1);
}

.today-card {
    background: #fffaf0;
}

.journey-strip {
    gap: 16px;
}

.journey-step {
    min-height: 132px;
}

.section-head h3,
.section-head h4,
.card h4,
.panel h3 {
    font-family: var(--font-body);
    letter-spacing: 0;
}

.stat-value,
.metric-value {
    font-size: 32px;
}

@media (max-width: 1180px) {
    .hero-grid,
    .home-hero .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .hero {
        padding: 22px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .topbar-title {
        font-size: 16px;
    }
}

/* Job profile and student profile refinements */
.compact-hero h2 {
    font-size: clamp(26px, 2.2vw, 38px);
    max-width: 760px;
}

.compact-hero p {
    max-width: 720px;
}

.job-library-panel,
.job-detail-panel,
.compare-panel,
.profile-form,
.profile-report {
    border-radius: 8px;
}

.job-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 280px);
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-snap-type: x mandatory;
}

.job-rail::-webkit-scrollbar {
    height: 8px;
}

.job-rail::-webkit-scrollbar-thumb {
    background: #d8e2ee;
    border-radius: 999px;
}

.job-tab {
    display: grid;
    gap: 8px;
    min-height: 92px;
    padding: 16px;
    color: var(--ink);
    text-decoration: none;
    background: #f8fbff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 8px;
    scroll-snap-align: start;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.job-tab:hover,
.job-tab.is-active {
    transform: translateY(-2px);
    border-color: rgba(77, 124, 255, 0.34);
    box-shadow: 0 14px 28px rgba(38, 62, 98, 0.10);
}

.job-tab.is-active {
    background: linear-gradient(180deg, #eef5ff, #f8fffd);
}

.job-tab-title {
    font-size: 17px;
    font-weight: 700;
}

.job-tab-meta,
.helper-text,
.company-row small,
.city-salary-card small,
.module-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.job-summary-grid,
.job-detail-grid,
.job-content-grid,
.compare-grid,
.module-grid {
    display: grid;
    gap: 16px;
}

.job-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.job-detail-grid,
.job-content-grid,
.compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.job-summary-card,
.soft-panel,
.compare-card,
.module-card,
.city-salary-card,
.entry-card {
    background: #ffffff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(28, 45, 72, 0.05);
}

.job-summary-card {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.job-summary-card span,
.compare-card span {
    color: var(--muted);
    font-size: 12px;
}

.job-summary-card strong {
    font-size: 20px;
    color: var(--ink);
}

.soft-panel {
    padding: 20px;
}

.animated-chip-row,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.animated-chip-row .chip,
.tag-cloud .chip,
.animated-options .option-chip {
    animation: tag-pop .32s ease both;
}

.company-list {
    display: grid;
    gap: 10px;
    max-height: 430px;
    overflow: auto;
}

.company-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    color: var(--ink);
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid rgba(22, 40, 66, 0.06);
    border-radius: 8px;
}

.company-row span {
    display: grid;
    gap: 4px;
}

.company-row em {
    flex: 0 0 auto;
    color: var(--teal);
    font-style: normal;
    font-weight: 700;
}

.city-salary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.city-salary-card {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.salary-range {
    color: var(--ink);
    font-size: 24px;
    font-weight: 800;
}

.city-salary-bar {
    height: 8px;
    overflow: hidden;
    background: #e8eef5;
    border-radius: 999px;
}

.city-salary-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    border-radius: inherit;
}

.compare-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.compare-card {
    padding: 18px;
}

.compare-card h4 {
    margin: 8px 0;
    font-size: 22px;
}

.compare-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
}

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

.compare-table th,
.compare-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(22, 40, 66, 0.08);
}

.compare-metric-grid,
.compare-visual-grid,
.compare-skill-columns {
    display: grid;
    gap: 16px;
}

.compare-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.compare-metric-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    background: #f8fbff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 8px;
}

.compare-metric-card span,
.path-node-card span,
.interview-signal-card span {
    color: var(--muted);
    font-size: 12px;
}

.compare-metric-card strong {
    font-size: 28px;
}

.compare-metric-card small {
    color: var(--ink);
    font-weight: 700;
}

.compare-visual-grid,
.compare-skill-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.compare-skill-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.versus-list,
.city-compare-list,
.interview-question-nav {
    display: grid;
    gap: 12px;
}

.versus-row,
.city-compare-row {
    display: grid;
    gap: 10px;
}

.versus-head,
.city-compare-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.versus-head span {
    color: var(--muted);
    font-size: 13px;
}

.versus-bars,
.city-compare-bars {
    display: grid;
    gap: 10px;
}

.versus-bar,
.city-compare-track {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e8eef5;
}

.versus-bar span,
.city-compare-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.versus-bar.left span,
.city-compare-track span {
    background: linear-gradient(90deg, #4d7cff, #7c98ff);
}

.versus-bar.right span,
.city-compare-track.right span {
    background: linear-gradient(90deg, #16a394, #5fcab8);
}

.versus-bar.is-stronger,
.city-compare-row .winner {
    box-shadow: inset 0 0 0 1px rgba(22, 40, 66, 0.08);
}

.city-compare-item {
    display: grid;
    gap: 6px;
}

.city-compare-item small,
.city-compare-item em {
    font-size: 12px;
    color: var(--muted);
    font-style: normal;
}

.profile-workbench {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.profile-workbench[data-profile-mode="resume"] {
    grid-template-columns: minmax(0, 1fr);
}

.profile-workbench[data-profile-mode="resume"] .profile-form,
.form-steps[hidden] + .profile-form {
    grid-column: 1 / -1;
}

.form-steps {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 8px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(28, 45, 72, 0.05);
}

.form-steps a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
}

.form-steps span {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #fff;
    background: #9aa8b7;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.form-steps a.is-active {
    color: var(--ink);
    background: #eef5ff;
}

.form-steps a.is-active span {
    background: var(--blue);
}

.profile-form {
    display: grid;
    gap: 22px;
}

.profile-mode-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-mode-card {
    position: relative;
    display: block;
}

.profile-mode-card input {
    position: absolute;
    opacity: 0;
}

.profile-mode-card span {
    display: grid;
    gap: 8px;
    min-height: 116px;
    padding: 18px;
    cursor: pointer;
    background: #f8fbff;
    border: 1px solid rgba(22, 40, 66, 0.10);
    border-radius: 8px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.profile-mode-card span:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 163, 148, 0.22);
}

.profile-mode-card input:checked + span {
    background: #f4fffb;
    border-color: rgba(22, 163, 148, 0.34);
    box-shadow: 0 12px 26px rgba(22, 80, 74, 0.08);
}

.profile-mode-card strong {
    font-size: 18px;
}

.profile-mode-card small {
    color: var(--muted);
    line-height: 1.7;
}

.profile-mode-panel {
    display: grid;
    gap: 22px;
}

.profile-mode-panel[hidden],
[data-profile-manual-only][hidden] {
    display: none;
}

.profile-mode-actions {
    padding-top: 2px;
}

.form-section {
    display: grid;
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(22, 40, 66, 0.08);
}

.form-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-field-stack,
.dynamic-block,
.dynamic-list {
    display: grid;
    gap: 14px;
}

.field-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field.wide {
    grid-column: 1 / -1;
}

.entry-card {
    position: relative;
    padding: 18px;
    animation: entry-in .24s ease both;
}

.entry-card h5 {
    margin: 0 0 14px;
    font-size: 16px;
}

.icon-button.remove-entry {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--muted);
    cursor: pointer;
}

.button-small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

.profile-form .button-secondary,
.compare-panel .button-secondary,
.job-detail-panel .button-secondary {
    color: var(--ink);
    background: #f6f8fb;
    border-color: rgba(22, 40, 66, 0.10);
}

.profile-submit {
    justify-self: start;
}

.metric-value.small {
    font-size: 22px;
}

.module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.module-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
}

.module-score {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 56%, transparent 57%),
        conic-gradient(var(--teal) var(--score), #e7edf5 0);
}

.module-card h4 {
    margin: 10px 0 6px;
}

.module-card p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.7;
}

.postgraduate-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(180deg, #f7fbff, #fffaf5);
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 8px;
}

.postgraduate-card strong {
    font-size: 28px;
}

.postgraduate-card span {
    color: var(--teal);
    font-weight: 700;
}

.tag-cloud {
    padding: 14px;
    background: #f8fafc;
    border-radius: 8px;
}

.reveal-section {
    animation: section-rise .38s ease both;
}

@keyframes tag-pop {
    from {
        opacity: 0;
        transform: translateY(6px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes section-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .job-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-index {
        position: static;
    }

    .profile-workbench {
        grid-template-columns: 1fr;
    }

    .form-steps {
        position: static;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .job-detail-grid,
    .job-content-grid,
    .compare-grid,
    .compare-metric-grid,
    .compare-visual-grid,
    .compare-skill-columns,
    .module-grid,
    .profile-mode-picker,
    .field-grid.compact,
    .compare-form {
        grid-template-columns: 1fr;
    }

    .form-steps {
        display: flex;
        overflow-x: auto;
    }

    .form-steps a {
        flex: 0 0 auto;
    }

    .job-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Compact global chrome for task pages */
.topbar {
    padding: 12px 18px;
    min-height: 72px;
}

.topbar-title {
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.35;
}

.pill-link {
    min-height: 36px;
    padding: 8px 14px;
}

.compact-hero {
    padding: 24px 28px;
}

/* Career path graph view */
.career-path-page .compact-hero {
    padding-bottom: 26px;
}

.path-graph-wrap {
    padding: 12px;
    background: linear-gradient(180deg, #fcfdff, #f7fbff);
    border: 1px solid rgba(22, 40, 66, 0.06);
    border-radius: 12px;
}

.path-graph-wrap.interactive {
    display: grid;
    gap: 12px;
}

.path-graph-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.path-graph-canvas {
    width: 100%;
    min-height: 520px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 50%, rgba(77, 124, 255, 0.04), transparent 55%),
        linear-gradient(180deg, #fbfdff, #f6faff);
}

.panorama-graph-canvas {
    min-height: 820px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 138, 175, 0.10), transparent 52%),
        radial-gradient(circle at 72% 70%, rgba(24, 198, 184, 0.10), transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6), transparent 60%),
        linear-gradient(180deg, #fbfcff, #f3f7fb);
    box-shadow:
        inset 0 0 0 1px rgba(22, 40, 66, 0.05),
        inset 0 24px 80px rgba(77, 124, 255, 0.04);
}

.panorama-graph-wrap {
    position: relative;
}

.panorama-graph-wrap .path-graph-toolbar {
    padding: 0 4px;
}

.panorama-zoom-controls {
    position: absolute;
    top: 64px;
    right: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 20;
    user-select: none;
}

.panorama-zoom-controls button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(22, 40, 66, 0.10);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #1f2a3d;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(28, 45, 72, 0.08);
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.panorama-zoom-controls button:hover {
    background: #ffffff;
    border-color: rgba(22, 163, 148, 0.45);
    color: #0f766e;
}

.panorama-zoom-controls button:active {
    transform: scale(0.94);
}

.panorama-zoom-controls button[data-zoom="reset"] {
    width: auto;
    min-width: 52px;
    padding: 0 10px;
    font-size: 12px;
    letter-spacing: 0.05em;
}

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

.path-view-tab {
    display: grid;
    gap: 8px;
    padding: 18px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(28, 45, 72, 0.05);
}

.path-view-tab.is-active {
    background: #f4fffb;
    border-color: rgba(22, 163, 148, 0.28);
    box-shadow: 0 14px 30px rgba(22, 80, 74, 0.08);
}

.path-view-tab span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.path-view-tab strong {
    font-size: 18px;
}

.path-single-filter {
    display: grid;
    grid-template-columns: minmax(0, 420px) auto;
    gap: 14px;
    align-items: end;
}

.path-graph {
    width: 100%;
    height: auto;
}

.path-edge {
    stroke: rgba(108, 125, 154, 0.58);
    stroke-width: 2;
}

.path-edge.transition {
    stroke-dasharray: 8 6;
}

.path-edge-label {
    fill: #8b97ab;
    font-size: 12px;
    text-anchor: middle;
}

.path-node circle {
    fill: #ffffff;
    stroke: #ff6d8f;
    stroke-width: 3;
}

.path-node text {
    fill: var(--ink);
    font-size: 15px;
    font-weight: 700;
    text-anchor: middle;
}

.path-node-sub {
    fill: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.path-node.center circle {
    fill: #f6fffd;
    stroke: #18c6b8;
    stroke-width: 4;
}

.path-node.center.transition circle {
    fill: #f7faff;
    stroke: #4d7cff;
}

.path-node-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.path-node-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 8px;
}

.path-node-card strong {
    font-size: 18px;
}

.path-node-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.chart-grid-2 {
    align-items: stretch;
}

.chart-panel {
    display: grid;
    gap: 12px;
}

.chart-surface {
    width: 100%;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,253,0.96)),
        radial-gradient(circle at 100% 0%, rgba(77, 124, 255, 0.05), transparent 32%);
    border: 1px solid rgba(22, 40, 66, 0.06);
}

.chart-surface-radar {
    min-height: 340px;
}

.chart-surface-bar {
    min-height: 320px;
}

/* Interview studio */
.interview-page .compact-hero {
    padding-bottom: 26px;
}

.interview-workbench {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.interview-side-panel {
    position: sticky;
    top: 96px;
}

.interview-nav-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: #f8fbff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 8px;
}

.interview-nav-item strong {
    display: block;
    font-size: 14px;
}

.interview-nav-item small,
.interview-nav-item em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.interview-nav-item.is-done {
    background: #f4fffb;
    border-color: rgba(22, 163, 148, 0.16);
}

.interview-nav-index {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf2ff;
    color: var(--blue);
    font-weight: 800;
    font-size: 12px;
}

.interview-main,
.interview-signal-grid,
.interview-guides {
    display: grid;
    gap: 16px;
}

.interview-signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.interview-signal-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: #f8fbff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 8px;
}

.list-clean.compact li {
    padding: 8px 0;
}

.interview-question-card {
    display: grid;
    gap: 14px;
}

.question-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.question-score-badge.good {
    background: rgba(45, 136, 102, 0.12);
    color: var(--green);
}

.question-score-badge.mid {
    background: rgba(77, 124, 255, 0.12);
    color: var(--blue);
}

.question-score-badge.warn {
    background: rgba(217, 164, 65, 0.14);
    color: #a76d1d;
}

.interview-question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interview-guides {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.interview-guide-item {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid rgba(22, 40, 66, 0.06);
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

/* Action report */
.report-command,
.interview-control-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.report-command-copy,
.interview-control-panel > div {
    display: grid;
    gap: 8px;
    max-width: 760px;
}

.report-command h3,
.interview-control-panel h3,
.compact-heading {
    margin: 0;
}

.report-command p,
.interview-control-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.report-brief-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
}

.action-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
}

.action-list li {
    padding-left: 4px;
    color: var(--ink);
    line-height: 1.7;
}

.report-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.report-main-panel {
    min-width: 0;
}

.report-side-stack {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.compact-score-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.compact-score-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 10px 12px;
    background: #f8fbff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 8px;
}

.compact-score-item span {
    color: var(--muted);
    font-size: 13px;
}

.compact-score-item strong {
    font-size: 18px;
}

.report-score-chart {
    min-height: 260px;
}

/* Interview studio */
.interview-prep-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.interview-rubric {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.interview-rubric span {
    display: grid;
    place-items: center;
    min-height: 44px;
    color: var(--ink);
    font-weight: 700;
    background: #f8fbff;
    border: 1px solid rgba(22, 40, 66, 0.08);
    border-radius: 8px;
}

@media (max-width: 1180px) {
    .interview-workbench,
    .interview-signal-grid,
    .report-result-grid,
    .report-brief-grid,
    .interview-prep-grid {
        grid-template-columns: 1fr;
    }

    .interview-side-panel,
    .report-side-stack {
        position: static;
    }
}

@media (max-width: 860px) {
    .path-graph-wrap,
    .compact-hero {
        padding: 18px;
    }

    .path-graph-canvas {
        min-height: 420px;
    }

    .panorama-graph-canvas {
        min-height: 520px;
    }

    .path-view-switch,
    .path-single-filter {
        grid-template-columns: 1fr;
    }

    .chart-surface-radar,
    .chart-surface-bar {
        min-height: 280px;
    }

    .interview-guides {
        grid-template-columns: 1fr;
    }

    .report-command,
    .interview-control-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .report-command .button,
    .interview-control-panel .button {
        width: 100%;
    }

    .interview-rubric {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar {
        padding: 10px 14px;
    }
}

/* Visual cohesion pass: open-source icon-kit proportions, no new dependencies. */
:root {
    --bg: #f5f7fb;
    --bg-deep: #e9f1f7;
    --paper: #ffffff;
    --paper-strong: #ffffff;
    --panel-border: rgba(35, 47, 74, 0.1);
    --ink: #162033;
    --muted: #637089;
    --navy: #1d2f4d;
    --teal: #0e9f8f;
    --teal-soft: #e6f7f4;
    --copper: #f97352;
    --copper-deep: #cc563d;
    --gold: #f2b844;
    --green: #1f9d66;
    --red: #d9575f;
    --blue: #4267e8;
    --violet: #7862d9;
    --sky: #dcecff;
    --line: rgba(35, 47, 74, 0.08);
    --surface-tint: #f8fafc;
    --shadow: 0 14px 34px rgba(28, 45, 72, 0.08);
    --shadow-strong: 0 22px 58px rgba(28, 45, 72, 0.14);
    --focus-ring: 0 0 0 4px rgba(66, 103, 232, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(90deg, rgba(35, 47, 74, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(35, 47, 74, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, #f8fbff 0%, #f2f6fb 46%, #fff8f2 100%);
    background-size: 36px 36px, 36px 36px, auto;
}

body::selection {
    background: rgba(66, 103, 232, 0.18);
}

.app-shell {
    max-width: 1560px;
}

.sidebar,
.topbar,
.panel,
.card,
.table-wrap,
.empty-state,
.metric-card,
.timeline-card,
.question-card,
.soft-panel,
.compare-card,
.module-card,
.city-salary-card,
.entry-card,
.job-summary-card,
.path-view-tab,
.path-node-card,
.interview-signal-card,
.interview-guide-item,
.compare-metric-card,
.postgraduate-card,
.form-steps {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.94)),
        linear-gradient(135deg, rgba(66, 103, 232, 0.07), rgba(14, 159, 143, 0.06));
}

.brand-card h1 {
    color: var(--navy);
}

.brand-seal,
.invite-mark {
    background: linear-gradient(135deg, var(--blue), var(--teal) 58%, var(--gold));
}

.brand-seal {
    border-radius: 8px;
}

.nav-link,
.side-links a,
.form-steps a,
.path-view-tab,
.journey-step,
.profile-mode-card span,
.company-row,
.interview-nav-item,
.compact-score-item {
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link.is-active,
.form-steps a.is-active,
.path-view-tab.is-active {
    background: linear-gradient(180deg, #eef5ff, #f6fbff);
    border-color: rgba(66, 103, 232, 0.22);
    color: var(--blue);
    box-shadow: 0 10px 24px rgba(66, 103, 232, 0.1);
}

.side-links a:hover,
.journey-step:hover,
.path-view-tab:hover,
.company-row:hover {
    border-color: rgba(14, 159, 143, 0.22);
    box-shadow: 0 16px 34px rgba(28, 45, 72, 0.1);
}

.topbar {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(35, 47, 74, 0.08);
}

.topbar-kicker,
.brand-kicker,
.section-kicker,
.stat-label,
.metric-label,
.hero-side-title,
.path-view-tab span {
    color: #71809a;
    font-weight: 800;
}

.pill-link,
.badge,
.chip,
.tag,
.question-score-badge {
    border-color: rgba(35, 47, 74, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.pill-link:hover {
    color: var(--blue);
    border-color: rgba(66, 103, 232, 0.2);
}

.hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96)),
        linear-gradient(90deg, rgba(66, 103, 232, 0.07), rgba(14, 159, 143, 0.06) 54%, rgba(249, 115, 82, 0.07));
    border-color: rgba(35, 47, 74, 0.08);
}

.hero::before {
    display: block;
    inset: auto 24px 20px auto;
    width: 180px;
    height: 88px;
    opacity: 0.75;
    background:
        linear-gradient(90deg, rgba(66, 103, 232, 0.14) 10px, transparent 10px) 0 0 / 34px 100%,
        linear-gradient(180deg, rgba(14, 159, 143, 0.16) 10px, transparent 10px) 0 0 / 100% 24px;
    mask-image: linear-gradient(90deg, transparent, black 24%, black 76%, transparent);
}

.hero h2,
.section-head h3,
.panel h3,
.card h4 {
    text-wrap: balance;
}

.hero h2 {
    letter-spacing: 0;
}

.hero .eyebrow,
.eyebrow {
    background: #eef4ff;
    color: var(--blue);
    border-color: rgba(66, 103, 232, 0.16);
    font-weight: 800;
}

.hero-side-card,
.hero-list li,
.hero-signal,
.hero-stat,
.today-card,
.preview-metrics div,
.mini-step,
.callout,
.radio-item,
.option-chip span,
.field input,
.field select,
.field textarea,
.chart-surface,
.path-graph-wrap {
    border-color: var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.panel,
.card,
.metric-card,
.question-card,
.soft-panel,
.compare-card,
.module-card,
.entry-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 254, 255, 0.94)),
        var(--paper);
}

.card:hover,
.question-card:hover,
.metric-card:hover {
    border-color: rgba(66, 103, 232, 0.16);
    box-shadow: 0 18px 42px rgba(28, 45, 72, 0.11);
}

.button {
    min-height: 44px;
    letter-spacing: 0;
}

.button:focus-visible,
.pill-link:focus-visible,
.nav-link:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.option-chip input:focus-visible + span,
.radio-item input:focus-visible + span {
    outline: none;
    box-shadow: var(--focus-ring);
}

.button-primary {
    background: linear-gradient(135deg, var(--blue), #5f7df1);
    box-shadow: 0 12px 26px rgba(66, 103, 232, 0.24);
}

.button-primary:hover {
    box-shadow: 0 16px 34px rgba(66, 103, 232, 0.28);
}

.button-secondary {
    color: var(--ink);
    background: #ffffff;
    border: 1px solid rgba(35, 47, 74, 0.11);
}

.button-ghost {
    background: #f6f8fb;
}

.field input,
.field select,
.field textarea {
    background: #fbfdff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(66, 103, 232, 0.32);
    box-shadow: var(--focus-ring);
}

.option-chip input:checked + span,
.radio-item input:checked + span,
.profile-mode-card input:checked + span {
    background: #eef9f7;
    border-color: rgba(14, 159, 143, 0.28);
    color: #08796d;
    box-shadow: 0 10px 22px rgba(14, 159, 143, 0.08);
}

.chart-surface,
.path-graph-canvas {
    background:
        linear-gradient(90deg, rgba(35, 47, 74, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(35, 47, 74, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, #ffffff, #f8fbff);
    background-size: 28px 28px, 28px 28px, auto;
}

.metric-card,
.stat-card {
    overflow: hidden;
}

.metric-card::after,
.stat-card::after {
    content: "";
    position: absolute;
    inset: auto 16px 14px auto;
    width: 62px;
    height: 34px;
    opacity: 0.22;
    background:
        linear-gradient(180deg, transparent 52%, currentColor 53% 58%, transparent 59%),
        linear-gradient(90deg, currentColor 0 10px, transparent 10px 17px, currentColor 17px 29px, transparent 29px 36px, currentColor 36px 48px, transparent 48px);
    color: var(--blue);
    pointer-events: none;
}

.stats-grid .panel:nth-child(2)::after,
.metric-grid .panel:nth-child(2)::after {
    color: var(--teal);
}

.stats-grid .panel:nth-child(3)::after,
.metric-grid .panel:nth-child(3)::after {
    color: var(--copper);
}

.stats-grid .panel:nth-child(4)::after,
.metric-grid .panel:nth-child(4)::after {
    color: var(--gold);
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 220px;
    padding: 38px 26px;
}

.empty-state::after {
    content: "";
    order: -1;
    width: 128px;
    height: 86px;
    margin-bottom: 4px;
    border: 1px solid rgba(66, 103, 232, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent 18px, rgba(66, 103, 232, 0.16) 19px 20px, transparent 21px),
        linear-gradient(180deg, transparent 22px, rgba(14, 159, 143, 0.18) 23px 24px, transparent 25px),
        linear-gradient(135deg, rgba(66, 103, 232, 0.12), rgba(14, 159, 143, 0.1));
    box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.58);
}

.list-clean li {
    background: #fbfdff;
}

.table-wrap table,
.compare-table {
    background: #ffffff;
}

.table-wrap th,
.compare-table th {
    color: #4f5f78;
    background: #f7fafc;
}

.meter-fill,
.city-salary-bar span,
.versus-bar.left span,
.city-compare-track span {
    background: linear-gradient(90deg, var(--blue), #6f8af3);
}

.versus-bar.right span,
.city-compare-track.right span,
.hero-signal-fill,
.loading-progress-bar {
    background: linear-gradient(90deg, var(--teal), #56c7b7);
}

.feature-icon,
.metric-icon,
.journey-icon,
.preview-icon,
.nav-icon,
.side-link-icon,
.button-icon,
.eyebrow-icon,
.brand-icon,
.invite-icon {
    vector-effect: non-scaling-stroke;
}

.feature-icon,
.metric-icon {
    padding: 5px;
    border-radius: 8px;
    background: #eef4ff;
}

.feature-card:nth-child(2) .feature-icon,
.stats-grid .panel:nth-child(2) .metric-icon {
    background: #e9f8f6;
}

.feature-card:nth-child(3) .feature-icon,
.stats-grid .panel:nth-child(3) .metric-icon {
    background: #fff1ec;
}

.feature-card:nth-child(4) .feature-icon,
.stats-grid .panel:nth-child(4) .metric-icon {
    background: #fff7df;
}

.module-score {
    background:
        radial-gradient(circle at center, #fff 56%, transparent 57%),
        conic-gradient(var(--teal) var(--score), #e8eef6 0);
}

.invite-overlay,
.loading-overlay {
    backdrop-filter: blur(12px);
}

.invite-panel,
.loading-panel {
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow: var(--shadow-strong);
}

@media (max-width: 860px) {
    .app-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-shell {
        gap: 16px;
    }

    .main-shell,
    .topbar,
    .page,
    .panel,
    .hero,
    .question-card,
    .empty-state {
        min-width: 0;
        width: 100%;
    }

    .topbar {
        align-items: flex-start;
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .hero::before {
        display: none;
    }

    .button,
    .pill-link {
        min-height: 42px;
    }
}

/* AI generated brand asset integration. */
.brand-logo-lockup {
    display: block;
    width: 100%;
    max-width: 214px;
    height: auto;
    margin: -4px 0 16px;
    border-radius: 8px;
    background: #fffdfa;
    box-shadow: 0 10px 24px rgba(28, 45, 72, 0.08);
}

.brand-card .brand-seal {
    display: none;
}

.brand-card .brand-kicker + h1 {
    display: none;
}

/* AI generated illustration and icon system. */
.ai-brand-icon {
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
}

.nav-icon,
.side-link-icon,
.button-icon,
.eyebrow-icon {
    width: 1.35em;
    height: 1.35em;
}

.nav-icon {
    width: 22px;
    height: 22px;
}

.side-link-icon,
.button-icon {
    width: 20px;
    height: 20px;
}

.journey-icon,
.feature-icon,
.metric-icon,
.preview-icon {
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.journey-icon {
    width: 38px;
    height: 38px;
}

.feature-icon,
.metric-icon {
    width: 44px;
    height: 44px;
}

.preview-icon {
    width: 44px;
    height: 44px;
}

.button-primary .button-icon {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16));
}

.phone-preview {
    overflow: hidden;
}

.hero-brand-illustration {
    width: calc(100% + 28px);
    max-height: 168px;
    margin: -8px -14px 2px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    border: 1px solid rgba(35, 47, 74, 0.06);
}

.empty-state::after {
    width: min(220px, 80%);
    height: 150px;
    border: 0;
    border-radius: 0;
    background: image-set(
        url("/static/brand/ai-empty-state.webp?v=20260518-perf") type("image/webp"),
        url("/static/brand/ai-empty-state.png?v=20260428-8") type("image/png")
    ) center / contain no-repeat;
    box-shadow: none;
}

.hero::before {
    width: 230px;
    height: 130px;
    background: image-set(
        url("/static/brand/ai-empty-state.webp?v=20260518-perf") type("image/webp"),
        url("/static/brand/ai-empty-state.png?v=20260428-8") type("image/png")
    ) center / contain no-repeat;
    opacity: 0.34;
    mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
}

.metric-card::after,
.stat-card::after {
    display: none;
}

@media (max-width: 860px) {
    .hero-brand-illustration {
        max-height: 132px;
    }
}

/* Icon cleanup pass: transparent, centered AI assets with consistent optical boxes. */
.ai-brand-icon {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: center;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.nav-link,
.tool-links a,
.next-step-card a,
.button,
.eyebrow,
.phone-top {
    align-items: center;
}

.nav-link .ai-brand-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
}

.tool-links a .ai-brand-icon,
.next-step-card a .ai-brand-icon,
.button .ai-brand-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
}

.eyebrow .ai-brand-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.journey-step .ai-brand-icon {
    width: 42px;
    height: 42px;
}

.feature-card .ai-brand-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 2px;
}

.stat-card > .ai-brand-icon,
.metric-card > .ai-brand-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
}

.today-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fffdfa;
    border: 1px solid rgba(35, 47, 74, 0.06);
}

.today-icon .ai-brand-icon {
    width: 42px;
    height: 42px;
}

.hero-brand-illustration {
    background: #fffdfa;
}

/* Scroll cleanup pass: remove the sticky header gap and old translucent bleed. */
.topbar {
    top: 0;
    background: #ffffff;
}

/* ─── Skill Tab UI ─────────────────────────────────────────────────── */

/* 已选置顶条 */
.skill-selected-bar {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 36px;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: rgba(34, 107, 104, 0.06);
    border: 1px solid rgba(34, 107, 104, 0.15);
    border-radius: 10px;
    transition: opacity 0.2s;
}
.skill-selected-bar:empty,
.skill-selected-bar[data-empty="true"] {
    display: none;
}
.skill-selected-label {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--teal, #1b7f5b);
    line-height: 26px;
    white-space: nowrap;
}
.skill-selected-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.skill-none-hint {
    font-size: 12px;
    color: rgba(0,0,0,0.35);
    line-height: 26px;
}
.skill-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px 2px 10px;
    border-radius: 999px;
    background: rgba(34, 107, 104, 0.12);
    border: 1px solid rgba(34, 107, 104, 0.28);
    color: var(--teal, #1b7f5b);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
}
.skill-selected-chip:hover {
    background: rgba(34, 107, 104, 0.2);
    transform: scale(0.97);
}
.skill-selected-chip::after {
    content: '×';
    font-size: 13px;
    opacity: 0.6;
}

/* Tab 导航条 */
.skill-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.skill-tab-btn {
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(19, 40, 62, 0.12);
    background: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    color: rgba(19, 40, 62, 0.65);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
    white-space: nowrap;
}
.skill-tab-btn:hover {
    border-color: rgba(34, 107, 104, 0.3);
    color: var(--teal, #1b7f5b);
    transform: translateY(-1px);
}
.skill-tab-btn.is-active {
    background: var(--teal, #1b7f5b);
    border-color: var(--teal, #1b7f5b);
    color: #fff;
    font-weight: 600;
}

/* Tab 面板 */
.skill-tab-panels {
    position: relative;
}
/* 高优先级：确保非激活面板隐藏，激活面板显示 */
.skill-tab-panels > .skill-tab-panel {
    display: none !important;
    animation: skillPanelIn 0.18s ease;
}
.skill-tab-panels > .skill-tab-panel.is-active {
    display: block !important;
}
@keyframes skillPanelIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mobile adaptation layer. Keep this at the end so it can tame older desktop-first rules. */
@media (max-width: 860px) {
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        background: #f7f9fc;
    }

    body::before,
    .ambient {
        display: none;
    }

    .app-shell {
        display: block;
        width: 100%;
        max-width: none;
        padding: 10px;
    }

    .main-shell {
        display: grid;
        gap: 12px;
        width: 100%;
        min-width: 0;
    }

    .sidebar {
        display: none;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 20px);
        padding: 16px;
        border-radius: 8px;
        overflow-y: auto;
    }

    .sidebar.is-open {
        display: block;
        position: fixed;
        inset: 10px;
        z-index: 50;
        box-shadow: 0 24px 80px rgba(15, 23, 42, 0.34);
    }

    .brand-card {
        padding-bottom: 14px;
    }

    .brand-logo-lockup {
        max-width: 160px;
        margin-bottom: 10px;
    }

    .side-section {
        margin-top: 12px;
        padding-top: 12px;
    }

    .nav-link,
    .tool-links a {
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 8px;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    }

    .nav-toggle {
        display: inline-flex;
        min-width: 44px;
        min-height: 44px;
        padding: 0 12px;
        border-radius: 8px;
        white-space: nowrap;
    }

    .topbar-kicker {
        display: none;
    }

    .topbar-title {
        font-size: 15px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .topbar-actions {
        grid-column: 1 / -1;
        display: flex;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .pill-link {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0 12px;
        border-radius: 8px;
    }

    .page,
    .hero,
    .panel,
    .question-card,
    .result-card,
    .empty-state,
    .profile-workbench,
    .profile-form,
    .form-section,
    .compare-form {
        width: 100%;
        min-width: 0;
        border-radius: 8px;
    }

    .hero,
    .panel,
    .question-card,
    .empty-state {
        padding: 16px;
    }

    .hero-grid,
    .home-hero .hero-grid,
    .form-grid,
    .field-grid,
    .stats-grid,
    .metric-grid,
    .four-col,
    .three-col,
    .two-col,
    .feature-grid,
    .quick-grid,
    .hero-evidence-grid,
    .hero-quick-entries,
    .preview-metrics,
    .mini-journey,
    .journey-strip {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .hero-copy h2,
    .hero h2,
    .section-head h2,
    .panel h2 {
        font-size: clamp(22px, 7vw, 30px);
        line-height: 1.16;
        overflow-wrap: anywhere;
    }

    .hero-copy p,
    .panel p,
    .empty-state p {
        font-size: 14px;
        line-height: 1.65;
    }

    .badge-row,
    .hero-actions,
    .actions-row,
    .button-row,
    .form-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }

    .button,
    button,
    input[type="submit"] {
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        justify-content: center;
        white-space: normal;
        text-align: center;
        border-radius: 8px;
    }

    .phone-preview {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        padding: 12px;
        border-radius: 8px;
    }

    .hero-brand-illustration {
        width: 100%;
        max-height: 120px;
        margin: 0 0 8px;
        border-radius: 8px;
    }

    .today-card,
    .evidence-pill,
    .quick-entry,
    .journey-step,
    .metric-card,
    .stat-card,
    .feature-card {
        min-width: 0;
        padding: 12px;
        border-radius: 8px;
    }

    .field,
    label.field {
        width: 100%;
        min-width: 0;
    }

    input,
    select,
    textarea {
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        font-size: 16px;
    }

    textarea {
        min-height: 112px;
    }

    .skill-tab-nav,
    .form-steps,
    .tabs,
    .option-grid,
    .chip-grid,
    .tag-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .skill-tab-btn,
    .form-steps a,
    .tabs a,
    .option-chip,
    .tag-chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .skill-selected-bar {
        display: grid;
        gap: 6px;
        padding: 8px;
    }

    .table-wrap,
    .compare-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        border-radius: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap table,
    .compare-table {
        min-width: 680px;
    }

    .chart-surface,
    [data-chart-source],
    [data-cytoscape-source],
    .path-graph,
    .path-graph-wrap {
        width: 100%;
        min-width: 0;
        min-height: 320px;
        overflow: hidden;
    }

    .invite-panel,
    .loading-panel {
        width: calc(100vw - 20px);
        max-width: none;
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
        padding: 18px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .app-shell {
        padding: 8px;
    }

    .topbar {
        padding: 8px;
    }

    .topbar-title {
        font-size: 14px;
    }

    .hero,
    .panel,
    .question-card,
    .empty-state {
        padding: 12px;
    }

    .hero-copy h2,
    .hero h2,
    .section-head h2,
    .panel h2 {
        font-size: 22px;
    }

    .brand-logo-lockup {
        max-width: 142px;
    }

    .table-wrap table,
    .compare-table {
        min-width: 620px;
    }
}

/* Personal development assessment result */
.assessment-result-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
    gap: 24px;
    align-items: stretch;
}

.result-hero-main h3 {
    margin: 8px 0 10px;
    font-size: 42px;
    line-height: 1.08;
}

.result-hero-main p {
    max-width: 760px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.result-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.result-hero-side {
    display: grid;
    gap: 12px;
}

.mini-stat {
    border: 1px solid rgba(49, 94, 251, 0.14);
    border-radius: 8px;
    padding: 16px;
    background: rgba(49, 94, 251, 0.06);
}

.mini-stat.muted {
    border-color: rgba(255, 138, 52, 0.18);
    background: rgba(255, 138, 52, 0.07);
}

.mini-stat.skill {
    border-color: rgba(27, 127, 91, 0.18);
    background: rgba(27, 127, 91, 0.07);
}

.mini-stat span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.mini-stat strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    line-height: 1.45;
}

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

.route-card {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    padding: 16px;
}

.route-card.is-primary {
    border-color: rgba(27, 127, 91, 0.28);
    background: rgba(27, 127, 91, 0.08);
}

.route-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.route-card-head span {
    color: var(--muted);
    font-size: 12px;
}

.route-card-head h4 {
    margin: 4px 0 0;
    font-size: 18px;
}

.route-card-head strong {
    font-size: 24px;
    color: var(--text);
}

.result-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
    gap: 18px;
}

.result-main-panel,
.result-side-panel {
    min-width: 0;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.evidence-item {
    border: 1px solid rgba(49, 94, 251, 0.12);
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(49, 94, 251, 0.05);
    color: var(--text);
    min-height: 118px;
}

.evidence-item.good {
    border-color: rgba(27, 127, 91, 0.16);
    background: rgba(27, 127, 91, 0.06);
}

.evidence-item span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(49, 94, 251, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.evidence-item strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
}

.evidence-item p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.ability-focus-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(27, 127, 91, 0.18);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(27, 127, 91, 0.07), rgba(49, 94, 251, 0.05));
}

.ability-focus-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.ability-focus-card strong {
    display: block;
    color: var(--text);
    font-size: 20px;
    margin-bottom: 6px;
}

.ability-focus-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.ability-focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    max-width: 340px;
}

.ability-focus-tags span {
    margin: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(27, 127, 91, 0.14);
    color: var(--text);
    font-size: 12px;
}

.result-action-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.result-action-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.result-action-list span {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.result-action-list p {
    margin: 3px 0 0;
    color: var(--text);
    line-height: 1.55;
}

.result-charts {
    align-items: stretch;
}

.xiaotu-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    font-family: var(--font-body);
    --xiaotu-blue: #4267e8;
    --xiaotu-navy: #162033;
    --xiaotu-teal: #0e9f8f;
    --xiaotu-gold: #f2b844;
    --xiaotu-coral: #f97352;
    --xiaotu-paper: #ffffff;
    --xiaotu-soft: #f8fbff;
    --xiaotu-line: rgba(22, 40, 66, 0.1);
}

.xiaotu-fab {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(66, 103, 232, 0.18);
    border-radius: 8px;
    padding: 8px 14px 8px 10px;
    color: var(--xiaotu-navy);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 36px rgba(23, 36, 58, 0.16);
    cursor: pointer;
    backdrop-filter: blur(14px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.xiaotu-fab:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 159, 143, 0.28);
    box-shadow: 0 18px 44px rgba(23, 36, 58, 0.2);
}

.xiaotu-fab-mark {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(66, 103, 232, 0.48), rgba(14, 159, 143, 0.42), rgba(242, 184, 68, 0.36)) border-box;
    border: 1px solid transparent;
}

.xiaotu-fab-mark::after {
    content: "";
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--xiaotu-teal);
}

.xiaotu-fab-mark img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.xiaotu-fab-copy {
    display: grid;
    gap: 1px;
    text-align: left;
}

.xiaotu-fab-copy strong {
    color: var(--xiaotu-navy);
    font-size: 14px;
    line-height: 1.2;
}

.xiaotu-fab-copy small {
    color: #6b7a92;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
}

.xiaotu-widget.is-open .xiaotu-fab {
    width: 58px;
    padding-right: 10px;
    justify-content: center;
}

.xiaotu-widget.is-open .xiaotu-fab-copy {
    display: none;
}

.xiaotu-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: min(408px, calc(100vw - 32px));
    height: min(652px, calc(100vh - 108px));
    display: none;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
    overflow: hidden;
    border: 1px solid var(--xiaotu-line);
    border-radius: 8px;
    background: var(--xiaotu-paper);
    box-shadow: 0 24px 70px rgba(23, 36, 58, 0.18);
}

.xiaotu-widget.is-open .xiaotu-panel {
    display: grid;
}

.xiaotu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 16px 12px;
    color: var(--xiaotu-navy);
    background:
        linear-gradient(90deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.96)),
        linear-gradient(135deg, rgba(66, 103, 232, 0.08), rgba(14, 159, 143, 0.06));
    border-bottom: 1px solid var(--xiaotu-line);
}

.xiaotu-title-group {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.xiaotu-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(66, 103, 232, 0.16);
    box-shadow: 0 8px 18px rgba(66, 103, 232, 0.08);
}

.xiaotu-header h2 {
    margin: 2px 0 0;
    color: var(--xiaotu-navy);
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1.2;
}

.xiaotu-subhead {
    padding: 12px 16px 13px;
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.xiaotu-subhead p {
    margin: 0;
    color: #52647d;
    font-size: 13px;
    line-height: 1.6;
}

.xiaotu-kicker {
    color: var(--xiaotu-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.xiaotu-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7a92;
    font-size: 12px;
    font-weight: 700;
}

.xiaotu-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--xiaotu-teal);
    box-shadow: 0 0 0 4px rgba(14, 159, 143, 0.12);
}

.xiaotu-close {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    margin-left: 4px;
    border: 1px solid rgba(22, 40, 66, 0.1);
    border-radius: 8px;
    color: #64748b;
    background: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.xiaotu-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid rgba(22, 40, 66, 0.06);
    border-bottom: 1px solid rgba(22, 40, 66, 0.08);
    background: #fbfdff;
    color: #64748b;
    font-size: 12px;
}

.xiaotu-web-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: var(--xiaotu-navy);
    font-weight: 700;
    cursor: pointer;
}

.xiaotu-web-toggle input {
    accent-color: var(--teal);
}

.xiaotu-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 16px;
    background:
        linear-gradient(rgba(66, 103, 232, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 159, 143, 0.025) 1px, transparent 1px),
        #ffffff;
    background-size: 28px 28px;
    scrollbar-width: thin;
}

.xiaotu-message {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 8px;
    line-height: 1.62;
    font-size: 14px;
    white-space: pre-wrap;
}

.xiaotu-message.assistant {
    align-self: flex-start;
    color: var(--xiaotu-navy);
    background: #f4fbfa;
    border: 1px solid rgba(14, 159, 143, 0.14);
    white-space: normal;
}

.xiaotu-message.assistant p {
    margin: 0 0 8px;
}

.xiaotu-message.assistant p:last-child,
.xiaotu-message.assistant ul:last-child {
    margin-bottom: 0;
}

.xiaotu-message.assistant ul {
    margin: 6px 0 8px;
    padding-left: 18px;
}

.xiaotu-message.assistant li {
    margin: 3px 0;
}

.xiaotu-message.assistant strong {
    font-weight: 800;
    color: #102a43;
}

.xiaotu-message.assistant code {
    padding: 1px 5px;
    border-radius: 5px;
    background: rgba(66, 103, 232, 0.08);
    color: #2946a3;
    font-size: 0.92em;
}

.xiaotu-message.assistant a {
    color: #2a4fb8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.xiaotu-message.user {
    align-self: flex-end;
    color: #ffffff;
    background: linear-gradient(135deg, var(--xiaotu-blue), var(--xiaotu-teal));
    box-shadow: 0 8px 18px rgba(66, 103, 232, 0.16);
}

.xiaotu-message.pending {
    color: var(--muted);
}

.xiaotu-message.xiaotu-thinking {
    width: min(330px, 88%);
    padding: 10px;
    background: #f8fbff;
    border-color: rgba(66, 103, 232, 0.14);
}

.xiaotu-thinking-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.xiaotu-thinking-badge {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--xiaotu-blue), var(--xiaotu-teal));
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(66, 103, 232, 0.18);
}

.xiaotu-thinking-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.xiaotu-thinking-copy strong {
    color: var(--xiaotu-navy);
    font-size: 13px;
    line-height: 1.35;
}

.xiaotu-thinking-copy small {
    color: #65758c;
    font-size: 12px;
    line-height: 1.45;
}

.xiaotu-thinking-dots {
    display: inline-flex;
    gap: 3px;
    padding-right: 2px;
}

.xiaotu-thinking-dots i {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--xiaotu-teal);
    animation: xiaotuDot 1s ease-in-out infinite;
}

.xiaotu-thinking-dots i:nth-child(2) {
    animation-delay: 0.14s;
}

.xiaotu-thinking-dots i:nth-child(3) {
    animation-delay: 0.28s;
}

@keyframes xiaotuDot {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.45;
    }

    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.xiaotu-sources {
    align-self: flex-start;
    max-width: 92%;
    padding: 0 2px;
    color: var(--muted);
    font-size: 12px;
}

.xiaotu-sources summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--xiaotu-teal);
}

.xiaotu-sources a {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.xiaotu-suggestions {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px 12px;
    background: #fff;
}

.xiaotu-suggestion {
    flex: 0 0 auto;
    max-width: 260px;
    border: 1px solid rgba(66, 103, 232, 0.14);
    border-radius: 8px;
    padding: 8px 10px;
    color: #2a4fb8;
    background: #f5f8ff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.xiaotu-suggestion:hover {
    transform: translateY(-1px);
    border-color: rgba(14, 159, 143, 0.22);
    background: #f0fbf8;
}

.xiaotu-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 10px;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(22, 40, 66, 0.08);
    background: #fff;
}

.xiaotu-form textarea {
    min-height: 42px;
    max-height: 108px;
    resize: none;
    border: 1px solid rgba(22, 40, 66, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--xiaotu-navy);
    background: var(--xiaotu-soft);
    font: inherit;
    line-height: 1.45;
}

.xiaotu-form textarea:focus {
    outline: none;
    border-color: rgba(66, 103, 232, 0.34);
    box-shadow: 0 0 0 3px rgba(66, 103, 232, 0.1);
    background: #fff;
}

.xiaotu-form button {
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--xiaotu-navy);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(22, 32, 51, 0.14);
}

.xiaotu-form button:disabled,
.xiaotu-form textarea:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

@media (max-width: 1100px) {
    .assessment-result-hero,
    .result-layout {
        grid-template-columns: 1fr;
    }

    .route-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .evidence-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .xiaotu-widget {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .xiaotu-fab {
        margin-left: auto;
    }

    .xiaotu-panel {
        right: 0;
        left: 0;
        width: 100%;
        height: min(620px, calc(100vh - 92px));
    }

    .xiaotu-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .result-hero-main h3 {
        font-size: 34px;
    }

    .route-card-grid,
    .evidence-grid {
        grid-template-columns: 1fr;
    }

    .ability-focus-card {
        display: block;
    }

    .ability-focus-tags {
        justify-content: flex-start;
        max-width: none;
        margin-top: 12px;
    }
}
