/*
 * Tech Behaviour — plugin front-end styles.
 * Standalone (works with any theme). Prefix: tbapp-.
 */

:root {
    --tbapp-bg: #0A0A0F;
    --tbapp-surface: #111118;
    --tbapp-card: #16161F;
    --tbapp-card-hi: #1C1C28;
    --tbapp-border: rgba(255, 255, 255, 0.07);
    --tbapp-border-o: rgba(255, 107, 0, 0.28);
    --tbapp-orange: #FF6B00;
    --tbapp-orange-l: #FF8C33;
    --tbapp-orange-glow: rgba(255, 107, 0, 0.14);
    --tbapp-orange-glow2: rgba(255, 107, 0, 0.07);
    --tbapp-text: #EEEFF5;
    --tbapp-muted: #8A8A9E;
    --tbapp-dim: #3E3E52;
    --tbapp-green: #3DDC84;
    --tbapp-blue: #6B8AFE;
    --tbapp-purple: #9B6BFE;
    --tbapp-red: #FE6B6B;
    --tbapp-yellow: #FEC66B;
    --tbapp-font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tbapp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tbapp,
.tbapp *,
.tbapp *::before,
.tbapp *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.tbapp {
    --tbapp-accent: var(--tbapp-orange);
    background: var(--tbapp-bg);
    color: var(--tbapp-text);
    font-family: var(--tbapp-font-body);
    line-height: 1.6;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--tbapp-border);
    min-height: 60vh;
}

.tbapp button {
    font-family: inherit;
    cursor: pointer;
}

.tbapp input,
.tbapp select,
.tbapp textarea {
    font-family: inherit;
    color: var(--tbapp-text);
    background: var(--tbapp-card);
    border: 1px solid var(--tbapp-border);
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
}

.tbapp input:focus,
.tbapp select:focus,
.tbapp textarea:focus {
    border-color: var(--tbapp-orange);
}

.tbapp-loading {
    padding: 80px 24px;
    text-align: center;
    color: var(--tbapp-muted);
    font-size: 14px;
}

/* ── Shell layout ─────────────────────────────────────────────────────── */
.tbapp-shell {
    display: flex;
    min-height: 60vh;
}

.tbapp-side {
    width: 200px;
    flex-shrink: 0;
    background: var(--tbapp-surface);
    border-right: 1px solid var(--tbapp-border);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tbapp-side-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--tbapp-muted);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    transition: all 0.15s;
    font-family: var(--tbapp-font-display);
}

.tbapp-side-btn:hover {
    background: var(--tbapp-orange-glow2);
    color: var(--tbapp-text);
}

.tbapp-side-btn.active {
    background: var(--tbapp-orange-glow);
    color: var(--tbapp-orange);
}

.tbapp-side-btn .ico {
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.tbapp-main {
    flex: 1;
    min-width: 0;
    padding: 28px 32px;
}

.tbapp-view {
    max-width: 900px;
    margin: 0 auto;
}

.tbapp-view h2 {
    font-family: var(--tbapp-font-display);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.tbapp-view > .sub {
    color: var(--tbapp-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

/* ── Components ───────────────────────────────────────────────────────── */
.tbapp-card {
    background: var(--tbapp-card);
    border: 1px solid var(--tbapp-border);
    border-radius: 16px;
    padding: 24px;
}

.tbapp-card + .tbapp-card {
    margin-top: 16px;
}

.tbapp-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--tbapp-orange-glow2);
    border: 1px solid var(--tbapp-border-o);
    color: var(--tbapp-orange);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-family: var(--tbapp-font-display);
}

.tbapp-chip.blue {
    background: rgba(107, 138, 254, 0.1);
    border-color: rgba(107, 138, 254, 0.3);
    color: var(--tbapp-blue);
}

.tbapp-chip.red {
    background: rgba(254, 107, 107, 0.1);
    border-color: rgba(254, 107, 107, 0.3);
    color: var(--tbapp-red);
}

.tbapp-chip.green {
    background: rgba(61, 220, 132, 0.1);
    border-color: rgba(61, 220, 132, 0.3);
    color: var(--tbapp-green);
}

.tbapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--tbapp-font-display);
    transition: all 0.18s;
    text-decoration: none;
}

.tbapp-btn-primary {
    background: var(--tbapp-orange);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.tbapp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 26px rgba(255, 107, 0, 0.4);
}

.tbapp-btn-primary:disabled {
    opacity: 0.6;
    transform: none;
    cursor: default;
}

.tbapp-btn-ghost {
    background: var(--tbapp-surface);
    border: 1px solid var(--tbapp-border);
    color: var(--tbapp-muted);
}

.tbapp-btn-ghost:hover {
    border-color: var(--tbapp-border-o);
    color: var(--tbapp-text);
}

.tbapp-btn-danger {
    background: rgba(254, 107, 107, 0.12);
    border: 1px solid rgba(254, 107, 107, 0.3);
    color: var(--tbapp-red);
}

.tbapp-btn-sm {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 8px;
}

.tbapp-btn-lg {
    padding: 13px 28px;
    font-size: 14px;
    border-radius: 12px;
}

.tbapp-label {
    display: block;
    color: var(--tbapp-muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.tbapp-row {
    display: flex;
    gap: 14px;
}

.tbapp-row > * {
    flex: 1;
}

.tbapp-grid {
    display: grid;
    gap: 14px;
}

/* ── Builder ───────────────────────────────────────────────────────────── */
.tbapp-builder-form .tbapp-card {
    margin-top: 16px;
}

.tbapp-purpose-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tbapp-purpose {
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid var(--tbapp-border);
    background: transparent;
    color: var(--tbapp-muted);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--tbapp-font-display);
    transition: all 0.15s;
}

.tbapp-purpose.active {
    border-color: var(--tbapp-orange);
    background: var(--tbapp-orange-glow);
    color: var(--tbapp-orange);
}

.tbapp-gen-log {
    background: var(--tbapp-surface);
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid var(--tbapp-border-o);
    margin: 16px 0;
}

.tbapp-gen-log div {
    color: var(--tbapp-muted);
    font-size: 12px;
    margin-bottom: 6px;
    font-family: var(--tbapp-font-display);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tbapp-gen-log div:last-child {
    color: var(--tbapp-orange);
}

.tbapp-q-card {
    background: var(--tbapp-card);
    border: 1px solid var(--tbapp-border);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tbapp-q-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--tbapp-orange-glow);
    border: 1px solid var(--tbapp-border-o);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--tbapp-orange);
    font-size: 12px;
    font-weight: 800;
    font-family: var(--tbapp-font-display);
}

.tbapp-q-body {
    flex: 1;
    min-width: 0;
}

.tbapp-q-text {
    color: var(--tbapp-text);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
}

.tbapp-q-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tbapp-q-opts {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tbapp-q-opts span {
    background: var(--tbapp-surface);
    border: 1px solid var(--tbapp-border);
    border-radius: 6px;
    padding: 3px 10px;
    color: var(--tbapp-dim);
    font-size: 12px;
}

.tbapp-q-remove {
    background: none;
    border: none;
    color: var(--tbapp-dim);
    font-size: 16px;
    padding: 4px;
    flex-shrink: 0;
}

.tbapp-q-remove:hover {
    color: var(--tbapp-red);
}

.tbapp-add-q {
    margin-top: 14px;
    padding: 16px 20px;
    background: var(--tbapp-surface);
    border-radius: 12px;
    border: 1px dashed var(--tbapp-border);
    text-align: center;
    cursor: pointer;
    color: var(--tbapp-muted);
    font-size: 13px;
    width: 100%;
}

.tbapp-builder-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* ── Surveys list ─────────────────────────────────────────────────────── */
.tbapp-survey-row {
    background: var(--tbapp-card);
    border: 1px solid var(--tbapp-border);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.tbapp-survey-info {
    flex: 1;
    min-width: 200px;
}

.tbapp-survey-info .name {
    color: var(--tbapp-text);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--tbapp-font-display);
}

.tbapp-survey-info .meta {
    color: var(--tbapp-muted);
    font-size: 12px;
    margin-top: 4px;
}

.tbapp-status {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
}

.tbapp-status.publish {
    background: rgba(61, 220, 132, 0.1);
    color: var(--tbapp-green);
    border: 1px solid rgba(61, 220, 132, 0.3);
}

.tbapp-status.draft {
    background: var(--tbapp-orange-glow2);
    color: var(--tbapp-orange);
    border: 1px solid var(--tbapp-border-o);
}

.tbapp-survey-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Analytics ────────────────────────────────────────────────────────── */
.tbapp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.tbapp-kpi {
    background: var(--tbapp-card);
    border: 1px solid var(--tbapp-border);
    border-radius: 14px;
    padding: 20px 22px;
}

.tbapp-kpi .lbl {
    color: var(--tbapp-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--tbapp-font-display);
    margin-bottom: 8px;
}

.tbapp-kpi .val {
    font-size: 30px;
    font-weight: 900;
    font-family: var(--tbapp-font-display);
    line-height: 1;
    color: var(--tbapp-orange);
}

.tbapp-kpi .val small {
    font-size: 14px;
    color: var(--tbapp-muted);
}

.tbapp-kpi .sub {
    color: var(--tbapp-dim);
    font-size: 11px;
    margin-top: 5px;
}

.tbapp-analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.tbapp-card-title {
    color: var(--tbapp-text);
    font-family: var(--tbapp-font-display);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tbapp-card-sub {
    color: var(--tbapp-muted);
    font-size: 12px;
    margin-bottom: 16px;
}

.tbapp-radar-wrap {
    display: flex;
    justify-content: center;
}

.tbapp-minibar {
    margin-bottom: 12px;
}

.tbapp-minibar .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.tbapp-minibar .row span {
    color: var(--tbapp-muted);
    font-size: 12px;
}

.tbapp-minibar .row strong {
    color: var(--tbapp-text);
    font-size: 12px;
    font-weight: 700;
}

.tbapp-minibar .track {
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
}

.tbapp-minibar .fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--tbapp-orange), var(--tbapp-orange-l));
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tbapp-persona-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tbapp-persona-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--tbapp-surface);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    color: var(--tbapp-muted);
}

.tbapp-persona-chip .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tbapp-persona-chip strong {
    color: var(--tbapp-text);
}

.tbapp-empty {
    text-align: center;
    padding: 70px 24px;
}

.tbapp-empty .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.tbapp-empty h3 {
    font-family: var(--tbapp-font-display);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tbapp-empty p {
    color: var(--tbapp-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.tbapp-response-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--tbapp-surface);
    border-radius: 10px;
    border: 1px solid var(--tbapp-border);
}

.tbapp-response-row .tag {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--tbapp-orange-glow);
    border: 1px solid var(--tbapp-border-o);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tbapp-orange);
    font-weight: 800;
    font-size: 12px;
    font-family: var(--tbapp-font-display);
    flex-shrink: 0;
}

.tbapp-response-row .info {
    flex: 1;
    min-width: 0;
}

.tbapp-response-row .info .t {
    color: var(--tbapp-text);
    font-size: 13px;
    font-weight: 600;
}

.tbapp-response-row .info .m {
    color: var(--tbapp-muted);
    font-size: 11px;
    margin-top: 2px;
}

.tbapp-response-row .iq {
    text-align: right;
}

.tbapp-response-row .iq .v {
    color: var(--tbapp-orange);
    font-size: 20px;
    font-weight: 900;
    font-family: var(--tbapp-font-display);
}

.tbapp-response-row .iq .l {
    color: var(--tbapp-muted);
    font-size: 10px;
}

.tbapp-insight {
    background: var(--tbapp-card);
    border: 1px solid var(--tbapp-border);
    border-left: 3px solid var(--tbapp-orange);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: var(--tbapp-text);
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ── AI analyst ───────────────────────────────────────────────────────── */
.tbapp-chat {
    background: var(--tbapp-card);
    border: 1px solid var(--tbapp-border);
    border-radius: 16px;
    padding: 24px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.tbapp-chat-suggest {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.tbapp-chat-suggest p {
    color: var(--tbapp-dim);
    font-size: 13px;
    margin-bottom: 12px;
}

.tbapp-chat-suggest button {
    background: var(--tbapp-surface);
    border: 1px solid var(--tbapp-border);
    border-radius: 10px;
    color: var(--tbapp-muted);
    font-size: 13px;
    padding: 12px 16px;
    text-align: left;
    transition: all 0.18s;
}

.tbapp-chat-suggest button:hover {
    border-color: var(--tbapp-border-o);
    color: var(--tbapp-text);
}

.tbapp-chat-thread {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: auto;
    max-height: 420px;
}

.tbapp-msg {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tbapp-msg.user {
    flex-direction: row-reverse;
}

.tbapp-msg .mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--tbapp-orange), var(--tbapp-orange-l));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
}

.tbapp-msg.user .mark {
    background: var(--tbapp-card-hi);
    border: 1px solid var(--tbapp-border);
    font-size: 10px;
    font-weight: 800;
    font-family: var(--tbapp-font-display);
}

.tbapp-msg .bubble {
    background: var(--tbapp-surface);
    border: 1px solid var(--tbapp-border);
    border-radius: 4px 16px 16px 16px;
    padding: 14px 18px;
    max-width: 78%;
    font-size: 13px;
    line-height: 1.75;
    color: var(--tbapp-text);
    white-space: pre-wrap;
}

.tbapp-msg.user .bubble {
    background: var(--tbapp-orange-glow);
    border-color: var(--tbapp-border-o);
    border-radius: 16px 4px 16px 16px;
}

.tbapp-msg .bubble .label {
    color: var(--tbapp-orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-family: var(--tbapp-font-display);
}

.tbapp-typing {
    display: flex;
    gap: 5px;
    padding: 14px 18px;
    background: var(--tbapp-surface);
    border: 1px solid var(--tbapp-border);
    border-radius: 4px 16px 16px 16px;
    width: fit-content;
}

.tbapp-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tbapp-orange);
    animation: tbapp-bounce 1.2s infinite;
}

.tbapp-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.tbapp-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes tbapp-bounce {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.tbapp-chat-input-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.tbapp-chat-input {
    flex: 1;
}

.tbapp-chat-send {
    background: var(--tbapp-orange);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    padding: 0 22px;
    font-family: var(--tbapp-font-display);
    font-size: 13px;
}

.tbapp-chat-send:disabled {
    opacity: 0.6;
}

.tbapp-ai-note {
    background: var(--tbapp-orange-glow2);
    border: 1px solid var(--tbapp-border-o);
    color: var(--tbapp-orange);
    font-size: 12px;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.tbapp-ai-error {
    background: rgba(254, 107, 107, 0.1);
    border: 1px solid rgba(254, 107, 107, 0.3);
    color: var(--tbapp-red);
    font-size: 12px;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

/* ── Survey taker ─────────────────────────────────────────────────────── */
.tbapp-taker {
    max-width: 640px;
    margin: 0 auto;
}

.tbapp-progress {
    margin-bottom: 28px;
}

.tbapp-progress .top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--tbapp-muted);
    font-size: 12px;
    font-family: var(--tbapp-font-display);
}

.tbapp-progress .top strong {
    color: var(--tbapp-orange);
}

.tbapp-progress .track {
    height: 4px;
    border-radius: 99px;
    background: var(--tbapp-border);
}

.tbapp-progress .fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--tbapp-orange), var(--tbapp-orange-l));
    transition: width 0.4s ease;
}

.tbapp-likert {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tbapp-likert button {
    flex: 1;
    min-width: 52px;
    padding: 12px 8px;
    border-radius: 10px;
    border: 1px solid var(--tbapp-border);
    background: var(--tbapp-surface);
    color: var(--tbapp-muted);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--tbapp-font-display);
    transition: all 0.15s;
}

.tbapp-likert button:hover {
    border-color: var(--tbapp-border-o);
}

.tbapp-likert button.active {
    background: var(--tbapp-orange-glow);
    border-color: var(--tbapp-orange);
    color: var(--tbapp-orange);
}

.tbapp-mcq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tbapp-mcq button {
    padding: 13px 18px;
    border-radius: 10px;
    text-align: left;
    border: 1px solid var(--tbapp-border);
    background: var(--tbapp-surface);
    color: var(--tbapp-text);
    font-size: 14px;
    transition: all 0.16s;
}

.tbapp-mcq button:hover {
    border-color: var(--tbapp-border-o);
}

.tbapp-mcq button.active {
    background: var(--tbapp-orange-glow);
    border-color: var(--tbapp-orange);
    color: var(--tbapp-orange);
}

.tbapp-slider input[type="range"] {
    width: 100%;
    accent-color: var(--tbapp-orange);
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    border: none;
}

.tbapp-slider .labels {
    display: flex;
    justify-content: space-between;
    color: var(--tbapp-muted);
    font-size: 12px;
}

.tbapp-slider .labels strong {
    color: var(--tbapp-orange);
    font-size: 16px;
}

.tbapp-taker-next {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.tbapp-report-hero {
    text-align: center;
    padding: 60px 24px 30px;
}

.tbapp-report-hero .icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.tbapp-report-hero h2 {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--tbapp-font-display);
    margin-bottom: 8px;
}

.tbapp-report-hero p {
    color: var(--tbapp-muted);
    font-size: 14px;
}

.tbapp-report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 24px 30px;
}

.tbapp-persona-result {
    background: var(--tbapp-card);
    border: 1px solid var(--tbapp-border);
    border-radius: 14px;
    padding: 18px;
    margin: 0 24px 20px;
}

.tbapp-persona-result .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tbapp-persona-result .top .icon {
    font-size: 34px;
}

.tbapp-persona-result h4 {
    font-family: var(--tbapp-font-display);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.tbapp-persona-result p {
    color: var(--tbapp-muted);
    font-size: 12px;
    line-height: 1.6;
}

.tbapp-match {
    background: var(--tbapp-orange-glow);
    border: 1px solid var(--tbapp-border-o);
    border-radius: 99px;
    padding: 4px 12px;
    color: var(--tbapp-orange);
    font-size: 12px;
    font-weight: 800;
    font-family: var(--tbapp-font-display);
    white-space: nowrap;
}

/* ── Toast ────────────────────────────────────────────────────────────── */
.tbapp-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tbapp-card-hi);
    border: 1px solid var(--tbapp-border-o);
    color: var(--tbapp-text);
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 13px;
    z-index: 99999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
    max-width: 90vw;
}

.tbapp-toast.show {
    opacity: 1;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 800px) {
    .tbapp-shell {
        flex-direction: column;
    }

    .tbapp-side {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--tbapp-border);
        padding: 8px;
    }

    .tbapp-side-btn {
        width: auto;
        white-space: nowrap;
        padding: 9px 12px;
    }

    .tbapp-main {
        padding: 20px 16px;
    }

    .tbapp-analytics-grid {
        grid-template-columns: 1fr;
    }

    .tbapp-report-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 24px;
    }

    .tbapp-row {
        flex-direction: column;
    }
}
