:root {
    --tc-bg: #f3f6fb;
    --tc-card: #ffffff;
    --tc-text: #15213b;
    --tc-muted: #66718a;
    --tc-line: #dfe6f2;
    --tc-primary: #3157d5;
    --tc-primary-dark: #2444ad;
    --tc-primary-soft: #edf2ff;
    --tc-success: #16845b;
    --tc-success-soft: #eaf8f2;
    --tc-danger: #c33b50;
    --tc-danger-soft: #fff0f2;
    --tc-warning: #af7108;
    --tc-warning-soft: #fff7df;
    --tc-shadow: 0 18px 46px rgba(33, 54, 96, .10);
    --tc-radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tc-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 4%, rgba(49, 87, 213, .09), transparent 28rem),
        radial-gradient(circle at 90% 10%, rgba(235, 194, 36, .10), transparent 24rem),
        var(--tc-bg);
    color: var(--tc-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.tc-topbar {
    min-height: 72px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 28px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--tc-line);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
}
.tc-brand { display: inline-flex; align-items: center; text-decoration: none; font-weight: 900; letter-spacing: -.04em; font-size: 1.28rem; white-space: nowrap; }
.tc-brand-de { color: #161d2d; }
.tc-brand-talk { color: #fff; background: var(--tc-primary); border-radius: 10px 10px 10px 2px; padding: 3px 8px 4px; margin-left: 5px; position: relative; }
.tc-brand-talk::after { content: ""; position: absolute; left: 2px; bottom: -5px; border: 6px solid transparent; border-top-color: var(--tc-primary); transform: rotate(18deg); }
.tc-nav { display: flex; align-items: stretch; align-self: stretch; gap: 5px; margin-left: auto; }
.tc-nav a { display: flex; align-items: center; padding: 0 13px; text-decoration: none; color: var(--tc-muted); font-weight: 750; border-bottom: 3px solid transparent; }
.tc-nav a:hover, .tc-nav a.is-active { color: var(--tc-primary); border-bottom-color: var(--tc-primary); }
.tc-user-chip { border: 1px solid var(--tc-line); background: #fff; padding: 8px 13px; border-radius: 999px; font-weight: 800; color: var(--tc-text); }
.tc-freedom-note { background: linear-gradient(90deg, #2444ad, #3157d5); color: #fff; text-align: center; padding: 9px 20px; font-size: .9rem; font-weight: 650; }

.tc-shell { width: min(1220px, calc(100% - 36px)); margin: 34px auto 70px; }
.tc-card { background: var(--tc-card); border: 1px solid rgba(202, 213, 232, .86); border-radius: var(--tc-radius); box-shadow: var(--tc-shadow); }
.tc-muted { color: var(--tc-muted); }
.tc-state-card { text-align: center; padding: 56px 26px; max-width: 760px; margin: 80px auto; }
.tc-state-card h1 { margin: 14px 0 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.tc-state-icon { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: var(--tc-primary-soft); color: var(--tc-primary); font-size: 2rem; font-weight: 900; }
.tc-primary-link { display: inline-flex; text-decoration: none; background: var(--tc-primary); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 850; margin-top: 16px; }
.tc-spinner { width: 52px; height: 52px; border: 5px solid #dfe6fb; border-top-color: var(--tc-primary); border-radius: 50%; margin: 0 auto; animation: tc-spin .8s linear infinite; }
@keyframes tc-spin { to { transform: rotate(360deg); } }

.tc-demo-banner { padding: 14px 17px; border: 1px solid #f0cc6b; background: #fff8df; color: #714d00; border-radius: 17px; margin-bottom: 18px; }
.tc-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .7fr); overflow: hidden; min-height: 470px; }
.tc-hero-copy { padding: clamp(30px, 6vw, 68px); align-self: center; }
.tc-eyebrow { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 900; color: var(--tc-primary); margin-bottom: 9px; }
.tc-hero h1, .tc-result-heading h1 { font-size: clamp(2.25rem, 5vw, 4.15rem); letter-spacing: -.055em; line-height: 1.02; margin: 0 0 16px; }
.tc-hero-subtitle { font-size: 1.25rem; font-weight: 800; margin: 0 0 8px; color: #34415d; }
.tc-meta-row { display: flex; gap: 9px; flex-wrap: wrap; margin: 24px 0; }
.tc-meta-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 11px; border-radius: 999px; background: #f4f7fc; border: 1px solid var(--tc-line); font-size: .87rem; font-weight: 750; color: #4f5b74; }
.tc-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tc-button { border: 0; border-radius: 14px; padding: 12px 17px; font-weight: 850; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.tc-button:hover { transform: translateY(-1px); }
.tc-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.tc-button-primary { background: linear-gradient(135deg, var(--tc-primary), #496ee7); color: #fff; box-shadow: 0 9px 20px rgba(49,87,213,.25); }
.tc-button-primary:hover { box-shadow: 0 12px 26px rgba(49,87,213,.32); }
.tc-button-secondary { background: var(--tc-primary-soft); color: var(--tc-primary-dark); border: 1px solid #cdd8fb; }
.tc-button-ghost { background: #fff; color: #34415d; border: 1px solid var(--tc-line); }

.tc-hero-visual { position: relative; min-height: 360px; background: linear-gradient(145deg, #19389a 0%, #3157d5 55%, #6c88ec 100%); overflow: hidden; display: grid; place-items: center; }
.tc-hero-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, #000, transparent); }
.tc-compass { position: relative; z-index: 2; width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; text-align: center; color: #fff; font-size: 1.35rem; font-weight: 900; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.36); box-shadow: inset 0 0 0 16px rgba(255,255,255,.05), 0 20px 60px rgba(11,30,91,.45); backdrop-filter: blur(12px); }
.tc-orbit { position: absolute; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; }
.tc-orbit-a { width: 280px; height: 280px; }
.tc-orbit-b { width: 390px; height: 390px; }
.tc-answer-dot { position: absolute; z-index: 3; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-weight: 950; font-size: 1.5rem; box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.tc-dot-agree { left: 14%; top: 18%; background: #fff; color: var(--tc-success); transform: rotate(-8deg); }
.tc-dot-neutral { right: 12%; top: 24%; background: #fff8d8; color: #946100; transform: rotate(8deg); }
.tc-dot-disagree { right: 20%; bottom: 14%; background: #fff; color: var(--tc-danger); transform: rotate(-5deg); }

.tc-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.tc-feature-card { padding: 25px; }
.tc-feature-card h2 { margin: 8px 0 7px; font-size: 1.18rem; }
.tc-feature-card p { color: var(--tc-muted); margin: 0; }
.tc-feature-number { font-size: .76rem; letter-spacing: .12em; font-weight: 950; color: var(--tc-primary); }

.tc-quiz-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.tc-quiz-sidebar { padding: 25px; position: sticky; top: 128px; text-align: center; }
.tc-progress-ring { --progress: 0deg; width: 150px; height: 150px; border-radius: 50%; margin: 18px auto; display: grid; place-items: center; background: conic-gradient(var(--tc-primary) var(--progress), #e7ecf6 0); position: relative; }
.tc-progress-ring::after { content: ""; position: absolute; inset: 12px; background: #fff; border-radius: 50%; }
.tc-progress-ring strong { position: relative; z-index: 2; font-size: 1.65rem; }
.tc-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.tc-mini-stats div { padding: 11px 7px; background: #f5f7fb; border: 1px solid var(--tc-line); border-radius: 14px; }
.tc-mini-stats strong, .tc-mini-stats span { display: block; }
.tc-mini-stats strong { font-size: 1.3rem; }
.tc-mini-stats span { font-size: .75rem; color: var(--tc-muted); }
.tc-privacy-small { font-size: .84rem; color: var(--tc-muted); margin: 20px 0 0; }
.tc-question-card { padding: clamp(24px, 5vw, 48px); min-height: 620px; display: flex; flex-direction: column; }
.tc-question-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.tc-topic-pill { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: var(--tc-primary-soft); color: var(--tc-primary-dark); font-size: .84rem; font-weight: 850; }
.tc-question-number { color: var(--tc-muted); font-weight: 800; font-size: .9rem; }
.tc-question-card h1 { margin: 28px 0 12px; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.18; letter-spacing: -.03em; }
.tc-question-explanation { color: var(--tc-muted); font-size: 1rem; min-height: 28px; margin: 0 0 10px; }
.tc-source-link { color: var(--tc-primary); font-weight: 800; text-decoration: none; font-size: .9rem; }
.tc-answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 34px; }
.tc-answer { text-align: left; min-height: 124px; border: 1px solid var(--tc-line); background: #fff; border-radius: 18px; padding: 18px; cursor: pointer; position: relative; transition: border-color .17s, box-shadow .17s, transform .17s, background .17s; }
.tc-answer:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(35,55,95,.10); }
.tc-answer.is-selected { border-width: 2px; box-shadow: 0 0 0 4px rgba(49,87,213,.09); }
.tc-answer strong, .tc-answer small { display: block; padding-left: 44px; }
.tc-answer strong { font-size: 1rem; margin-bottom: 4px; }
.tc-answer small { color: var(--tc-muted); line-height: 1.4; }
.tc-answer-icon { position: absolute; left: 16px; top: 18px; width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; font-weight: 950; }
.tc-answer-agree .tc-answer-icon { background: var(--tc-success-soft); color: var(--tc-success); }
.tc-answer-neutral .tc-answer-icon { background: var(--tc-warning-soft); color: var(--tc-warning); }
.tc-answer-disagree .tc-answer-icon { background: var(--tc-danger-soft); color: var(--tc-danger); }
.tc-answer-skip .tc-answer-icon { background: #eef1f6; color: #59657d; }
.tc-answer-agree.is-selected { border-color: var(--tc-success); background: #fbfffd; }
.tc-answer-neutral.is-selected { border-color: var(--tc-warning); background: #fffdf7; }
.tc-answer-disagree.is-selected { border-color: var(--tc-danger); background: #fffafb; }
.tc-answer-skip.is-selected { border-color: #78849b; background: #fafbfc; }
.tc-question-footer { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 10px; }
.tc-question-footer #tcFinishButton { margin-left: auto; }

.tc-result-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.tc-result-heading h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 5px; }
.tc-orientation-note { border-radius: 20px; padding: 18px 21px; background: linear-gradient(135deg, #fff8dc, #fffdf5); border: 1px solid #ecd27d; margin-bottom: 20px; }
.tc-orientation-note strong { color: #765000; font-size: 1.04rem; }
.tc-orientation-note p { margin: 5px 0 0; color: #6b5b2d; }
.tc-result-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.tc-result-card { padding: 25px; }
.tc-party-card { grid-row: span 2; }
.tc-section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.tc-section-title h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.tc-party-results { display: grid; gap: 16px; }
.tc-party-row { display: grid; gap: 7px; }
.tc-party-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tc-party-name { display: flex; align-items: center; gap: 10px; font-weight: 850; }
.tc-party-swatch { width: 14px; height: 14px; border-radius: 5px; background: var(--party-color, var(--tc-primary)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.tc-score { font-weight: 950; font-variant-numeric: tabular-nums; }
.tc-bar { height: 12px; border-radius: 999px; background: #e9edf5; overflow: hidden; }
.tc-bar > span { display: block; height: 100%; width: var(--bar-width, 0%); background: var(--bar-color, var(--tc-primary)); border-radius: inherit; transition: width .5s ease; }
.tc-party-meta { color: var(--tc-muted); font-size: .78rem; }
.tc-method-note { color: var(--tc-muted); font-size: .82rem; margin: 20px 0 0; }
.tc-community-score { display: grid; grid-template-columns: 120px 1fr; gap: 17px; align-items: center; }
.tc-community-number { width: 120px; height: 120px; border-radius: 34px; background: var(--tc-primary-soft); color: var(--tc-primary); display: grid; place-items: center; font-size: 2rem; font-weight: 950; }
.tc-community-copy h3 { margin: 0 0 5px; }
.tc-community-copy p { margin: 0; color: var(--tc-muted); }
.tc-empty-result { padding: 18px; border-radius: 16px; background: #f5f7fb; color: var(--tc-muted); border: 1px dashed #cfd7e5; }
.tc-topic-results { display: grid; gap: 15px; }
.tc-topic-row-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.tc-topic-row-head strong { font-size: .94rem; }
.tc-topic-row-head span { font-size: .78rem; color: var(--tc-muted); }
.tc-topic-scale { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #f5bbc3 0%, #eef1f6 50%, #aee0cc 100%); }
.tc-topic-marker { position: absolute; top: 50%; left: var(--topic-position, 50%); width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; border: 4px solid #24395f; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.tc-topic-clarity { margin-top: 5px; font-size: .75rem; color: var(--tc-muted); }
.tc-change-summary { padding: 16px; border-radius: 16px; background: #f5f7fb; border: 1px solid var(--tc-line); margin-bottom: 14px; }
.tc-delta-list { display: grid; gap: 8px; }
.tc-delta-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf0f5; }
.tc-delta-item:last-child { border-bottom: 0; }
.tc-delta { font-weight: 900; font-variant-numeric: tabular-nums; }
.tc-delta.is-positive { color: var(--tc-success); }
.tc-delta.is-negative { color: var(--tc-danger); }
.tc-history-card { padding: 25px; margin-top: 18px; }
.tc-history-list { display: grid; gap: 10px; }
.tc-history-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--tc-line); border-radius: 16px; }
.tc-history-date strong, .tc-history-date span { display: block; }
.tc-history-date span { color: var(--tc-muted); font-size: .78rem; }
.tc-history-badge { padding: 6px 9px; border-radius: 999px; background: #f3f6fb; font-size: .8rem; font-weight: 800; }
.tc-history-actions { display: flex; gap: 7px; }
.tc-icon-button { border: 1px solid var(--tc-line); background: #fff; border-radius: 11px; padding: 8px 10px; cursor: pointer; font-weight: 800; }
.tc-icon-button.is-danger { color: var(--tc-danger); }
.tc-method-card { margin-top: 18px; padding: 20px 24px; }
.tc-method-card summary { cursor: pointer; font-weight: 900; }
.tc-method-card p { color: var(--tc-muted); }

.tc-dialog { border: 0; border-radius: 24px; padding: 0; width: min(650px, calc(100% - 28px)); box-shadow: 0 34px 100px rgba(15,30,67,.35); }
.tc-dialog::backdrop { background: rgba(14,24,47,.6); backdrop-filter: blur(5px); }
.tc-dialog form { padding: 30px; position: relative; }
.tc-dialog h2 { margin: 5px 0 10px; font-size: 1.65rem; }
.tc-dialog-close { position: absolute; top: 14px; right: 14px; border: 0; background: #eef1f6; width: 36px; height: 36px; border-radius: 12px; cursor: pointer; font-size: 1.3rem; }
.tc-check-row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 15px; border: 1px solid var(--tc-line); border-radius: 16px; margin-top: 12px; cursor: pointer; }
.tc-check-row input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--tc-primary); }
.tc-check-optional { background: #f7f9fc; }
.tc-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.tc-toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: min(430px, calc(100% - 36px)); padding: 14px 17px; border-radius: 15px; background: #17233e; color: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.28); font-weight: 750; }
.tc-toast.is-error { background: #9f2638; }

@media (max-width: 980px) {
    .tc-nav { display: none; }
    .tc-topbar { padding: 0 18px; }
    .tc-user-chip { margin-left: auto; }
    .tc-hero { grid-template-columns: 1fr; }
    .tc-hero-visual { min-height: 310px; }
    .tc-feature-grid { grid-template-columns: 1fr; }
    .tc-quiz-layout { grid-template-columns: 1fr; }
    .tc-quiz-sidebar { position: static; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; text-align: left; }
    .tc-quiz-sidebar .tc-eyebrow, .tc-privacy-small { display: none; }
    .tc-progress-ring { width: 94px; height: 94px; margin: 0; }
    .tc-progress-ring::after { inset: 8px; }
    .tc-mini-stats { margin: 0; min-width: 200px; }
    .tc-result-grid { grid-template-columns: 1fr; }
    .tc-party-card { grid-row: auto; }
}

@media (max-width: 680px) {
    .tc-freedom-note { font-size: .78rem; }
    .tc-shell { width: min(100% - 20px, 1220px); margin-top: 18px; }
    .tc-topbar { min-height: 62px; }
    .tc-brand { font-size: 1.05rem; }
    .tc-user-chip { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
    .tc-hero-copy { padding: 28px 22px; }
    .tc-hero-visual { min-height: 250px; }
    .tc-compass { width: 140px; height: 140px; }
    .tc-orbit-a { width: 220px; height: 220px; }
    .tc-orbit-b { width: 310px; height: 310px; }
    .tc-actions-row .tc-button { width: 100%; }
    .tc-quiz-sidebar { grid-template-columns: 75px 1fr; padding: 17px; }
    .tc-progress-ring { width: 75px; height: 75px; }
    .tc-progress-ring strong { font-size: 1.15rem; }
    .tc-mini-stats { display: none; }
    .tc-question-card { padding: 22px 17px; min-height: 670px; }
    .tc-question-card h1 { margin-top: 22px; }
    .tc-answer-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 23px; }
    .tc-answer { min-height: 96px; padding: 14px; }
    .tc-answer-icon { top: 14px; left: 13px; }
    .tc-answer strong, .tc-answer small { padding-left: 40px; }
    .tc-question-footer { display: grid; grid-template-columns: 1fr 1fr; }
    .tc-question-footer #tcFinishButton { grid-column: 1 / -1; margin-left: 0; }
    .tc-result-heading { align-items: stretch; flex-direction: column; }
    .tc-result-card, .tc-history-card { padding: 20px 16px; }
    .tc-community-score { grid-template-columns: 1fr; }
    .tc-community-number { width: 100%; height: 90px; }
    .tc-history-row { grid-template-columns: 1fr auto; }
    .tc-history-row > .tc-history-badge:nth-of-type(2) { display: none; }
    .tc-history-actions { grid-column: 1 / -1; }
    .tc-history-actions button { flex: 1; }
    .tc-dialog form { padding: 26px 18px 20px; }
    .tc-dialog-actions { flex-direction: column-reverse; }
    .tc-dialog-actions .tc-button { width: 100%; }
}
