/* BUSY AI High-Fidelity Design System */
:root {
    --bai-primary: #2563eb;
    --bai-primary-soft: #eff6ff;
    --bai-bg: #f8fafc;
    --bai-card: #ffffff;
    --bai-border: #eef0f3;
    --bai-text: #1e293b;
    --bai-text-muted: #64748b;
    --bai-success: #10b981;
}

.bai-header-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bai-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bai-header-bg {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}
.bai-header-content { position: relative; z-index: 1; }
.bai-mascot { width: 180px; height: auto; position: relative; z-index: 1; }

.bai-task-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.bai-task-tab {
    background: #fff;
    border: 1px solid var(--bai-border);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--bai-text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: all 0.2s;
}
.bai-task-tab:hover { background: #f1f5f9; color: var(--bai-text); }
.bai-task-tab.active { background: var(--bai-primary); color: #fff; border-color: var(--bai-primary); box-shadow: 0 4px 12px rgba(37,99,235,0.2); }

.bai-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    margin-bottom: 32px;
}
@media (max-width: 1200px) { .bai-grid { grid-template-columns: 1fr; } }

/* Chat Container */
.bai-chat-box {
    background: #fff;
    border: 1px solid var(--bai-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
}
.bai-chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--bai-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bai-chat-history {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-width: thin;
}
.bai-msg { display: flex; gap: 16px; max-width: 85%; }
.bai-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.bai-msg-avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--bai-primary-soft); color: var(--bai-primary); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.bai-msg.user .bai-msg-avatar { background: #f1f5f9; color: #64748b; }
.bai-msg-bubble { background: #f1f5f9; padding: 16px; border-radius: 16px; border-top-left-radius: 4px; color: var(--bai-text); font-size: 0.9rem; line-height: 1.5; }
.bai-msg.user .bai-msg-bubble { background: var(--bai-primary-soft); color: var(--bai-text); border-radius: 16px; border-top-right-radius: 4px; }
.bai-msg-time { font-size: 0.65rem; color: #94a3b8; margin-top: 4px; display: block; text-align: right; }

.bai-input-area { padding: 20px; border-top: 1px solid var(--bai-border); }
.bai-quick-tags { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 4px; }
.bai-quick-tag { background: #f1f5f9; color: #64748b; padding: 4px 12px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; white-space: nowrap; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; }
.bai-quick-tag:hover { background: #e2e8f0; border-color: var(--bai-primary); }

.bai-input-wrap { background: #f8fafc; border: 1px solid var(--bai-border); border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.bai-input { border: none; background: transparent; outline: none; flex-grow: 1; font-size: 0.9rem; color: var(--bai-text); }
.bai-input::placeholder { color: #94a3b8; }
.bai-send-btn { width: 40px; height: 40px; border-radius: 10px; background: var(--bai-primary); color: #fff; border: none; display: grid; place-items: center; cursor: pointer; transition: all 0.2s; }
.bai-send-btn:hover { background: #1d4ed8; transform: translateY(-1px); }

/* Output Panel */
.bai-panel { background: #fff; border: 1px solid var(--bai-border); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; max-height: 600px; }
.bai-panel-title { font-size: 1rem; font-weight: 800; color: var(--bai-text); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.bai-panel-title i { color: var(--bai-primary); }

.bai-output-block { margin-bottom: 12px; }
.bai-output-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.bai-output-title { font-size: 0.85rem; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--bai-text); }

.bai-supplier-scroller { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.bai-supplier-card { min-width: 180px; background: #fff; border: 1px solid var(--bai-border); border-radius: 16px; padding: 12px; transition: all 0.2s; }
.bai-supplier-card:hover { border-color: var(--bai-primary); transform: translateY(-2px); }
.bai-supplier-logo { width: 40px; height: 40px; border-radius: 8px; margin-bottom: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; }
.bai-supplier-name { font-size: 0.8rem; font-weight: 800; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bai-supplier-meta { font-size: 0.65rem; color: #94a3b8; line-height: 1.4; }

.bai-email-preview { background: var(--bai-bg); border-radius: 16px; padding: 16px; border: 1px solid var(--bai-border); }
.bai-email-body { font-size: 0.75rem; color: var(--bai-text-muted); line-height: 1.5; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.bai-trip-widget { background: #eff6ff; border-radius: 16px; padding: 16px; border: 1px solid #dbeafe; }
.bai-trip-cost { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(37,99,235,0.1); display: flex; justify-content: space-between; align-items: center; }

/* Utilities */
.bai-feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.bai-feature-card { background: #fff; border: 1px solid var(--bai-border); border-radius: 20px; padding: 20px; display: flex; gap: 16px; align-items: center; }
.bai-feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bai-primary-soft); color: var(--bai-primary); display: grid; place-items: center; font-size: 1.25rem; }

.bai-utility-grid { display: grid; grid-template-columns: 1fr 200px 1fr; gap: 24px; }
.bai-upload-box { background: #fff; border: 1px solid var(--bai-border); border-radius: 24px; padding: 24px; text-align: center; }
.bai-upload-zone { border: 2px dashed #e2e8f0; border-radius: 16px; padding: 32px; margin-top: 12px; cursor: pointer; transition: all 0.2s; }
.bai-upload-zone:hover { border-color: var(--bai-primary); background: var(--bai-primary-soft); }

.bai-lang-box { background: #fff; border: 1px solid var(--bai-border); border-radius: 24px; padding: 24px; text-align: center; }
.bai-lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.bai-lang-btn { padding: 10px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font-weight: 700; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
.bai-lang-btn.active { background: var(--bai-primary); color: #fff; border-color: var(--bai-primary); }

.bai-history-box { background: #fff; border: 1px solid var(--bai-border); border-radius: 24px; padding: 24px; }
.bai-history-list { list-style: none; padding: 0; margin: 16px 0 0; }
.bai-history-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.8rem; color: var(--bai-text); }
.bai-history-item:last-child { border-bottom: none; }

/* Email Tab Redesign */
.eml-grid { display: grid; grid-template-columns: 320px 1fr 300px; gap: 24px; align-items: start; margin-top: 24px; padding-bottom: 80px; }
@media (max-width: 1400px) { .eml-grid { grid-template-columns: 280px 1fr 280px; } }
@media (max-width: 1200px) { .eml-grid { grid-template-columns: 1fr; } }

.eml-editor-card { background: #fff; border: 1px solid var(--bai-border); border-radius: 24px; padding: 24px; }
.eml-field { display: flex; gap: 16px; align-items: center; border-bottom: 1px solid #f1f5f9; padding: 12px 0; }
.eml-field-lbl { width: 60px; font-size: 0.75rem; color: #94a3b8; font-weight: 700; }
.eml-input { border: none; outline: none; flex-grow: 1; font-size: 0.85rem; color: var(--bai-text); }

.eml-toolbar { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; margin-bottom: 20px; }
.eml-tool-btn { font-size: 1rem; color: #64748b; cursor: pointer; transition: all 0.2s; }
.eml-tool-btn:hover { color: var(--bai-primary); }

.eml-lang-tabs { display: flex; border-bottom: 1px solid #f1f5f9; margin-bottom: 20px; }
.eml-lang-tab { padding: 10px 20px; font-size: 0.7rem; font-weight: 800; color: #94a3b8; border-bottom: 2px solid transparent; cursor: pointer; text-transform: uppercase; }
.eml-lang-tab.active { color: var(--bai-primary); border-bottom-color: var(--bai-primary); }

.eml-content-area { font-size: 0.85rem; line-height: 1.7; color: var(--bai-text); min-height: 300px; }

.eml-checklist { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.eml-check-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: #64748b; padding: 4px 0; }
.eml-check-item i { color: #10b981; }

.eml-score-circle { width: 80px; height: 80px; margin: 0 auto 16px; position: relative; }
.eml-score-val { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1.25rem; font-weight: 800; color: #10b981; }

.eml-attach-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #f8fafc; border-radius: 8px; margin-bottom: 8px; font-size: 0.7rem; }
.eml-attach-info { display: flex; align-items: center; gap: 8px; color: var(--bai-text); }
.eml-attach-size { color: #94a3b8; font-size: 0.65rem; }

.eml-suggest-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.75rem; color: #64748b; cursor: pointer; transition: all 0.2s; }
.eml-suggest-item:hover { color: var(--bai-primary); padding-left: 4px; }
.eml-suggest-item:last-child { border-bottom: none; }

/* Scoring Analytics */
.circular-chart { display: block; margin: 10px auto; max-width: 100%; max-height: 250px; }
.circular-chart path { transition: stroke-dasharray 0.6s ease 0s; }

/* Pitch Deck Builder Redesign */
.pd-grid { display: grid; grid-template-columns: 320px 180px 1fr 300px; gap: 24px; align-items: start; margin-top: 24px; padding-bottom: 80px; }
@media (max-width: 1400px) { .pd-grid { grid-template-columns: 280px 140px 1fr 280px; } }
@media (max-width: 1200px) { .pd-grid { grid-template-columns: 1fr; } }

.pd-nav-list { display: flex; flex-direction: column; gap: 16px; }
.pd-nav-item { background: #fff; border: 1px solid var(--bai-border); border-radius: 12px; padding: 8px; cursor: pointer; transition: all 0.2s; position: relative; }
.pd-nav-item:hover { border-color: var(--bai-primary); transform: translateX(4px); }
.pd-nav-item:focus-visible { outline: 3px solid rgba(37,99,235,0.2); outline-offset: 3px; border-color: var(--bai-primary); }
.pd-nav-item.active { border-color: var(--bai-primary); box-shadow: 0 4px 12px rgba(37,99,235,0.1); }
.pd-nav-num { position: absolute; left: -10px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; background: #fff; border: 1px solid var(--bai-border); border-radius: 50%; display: grid; place-items: center; font-size: 0.65rem; font-weight: 800; color: #94a3b8; }
.pd-nav-item.active .pd-nav-num { background: var(--bai-primary); color: #fff; border-color: var(--bai-primary); }

.pd-nav-thumb { width: 100%; aspect-ratio: 16/9; background: #f8fafc; border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.pd-nav-label { font-size: 0.65rem; font-weight: 700; color: #64748b; }

.pd-main-card { background: #fff; border: 1px solid var(--bai-border); border-radius: 24px; padding: 24px; }
.pd-preview { width: 100%; aspect-ratio: 16/9; min-height: 260px; background: #fff; border: 1px solid #f1f5f9; border-radius: 16px; margin-bottom: 24px; position: relative; padding: clamp(20px, 4vw, 40px); box-shadow: 0 10px 30px rgba(0,0,0,0.02); overflow: hidden; }
.pd-preview-cover { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(140px, 0.92fr); align-items: center; gap: clamp(16px, 4vw, 36px); }
.pd-preview-copy { min-width: 0; }
.pd-preview-brand { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(16px, 3vw, 28px); }
.pd-preview-logo { width: 40px; height: 40px; background: #10b981; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; flex: 0 0 auto; }
.pd-preview-brand h2 { font-size: clamp(1.35rem, 3.2vw, 2rem); line-height: 1; font-weight: 800; color: var(--bai-text); margin: 0; overflow-wrap: anywhere; }
.pd-preview-copy h1 { font-size: clamp(1.55rem, 4.4vw, 2.7rem); line-height: 1.12; font-weight: 800; color: var(--bai-text); margin: 0 0 18px; max-width: 11em; overflow-wrap: anywhere; }
.pd-preview-copy h1 span { color: #059669; display: block; }
.pd-preview-copy p { color: #64748b; font-size: clamp(0.78rem, 1.8vw, 0.95rem); line-height: 1.55; margin: 0; max-width: 16rem; }
.pd-preview-visual { justify-self: center; width: min(100%, 220px); aspect-ratio: 1; border-radius: 22px; background: #f8fafc; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(15,23,42,0.04); }
.pd-preview-visual i { color: var(--bai-primary); font-size: clamp(3.2rem, 8vw, 5rem); }
.pd-preview-watermark { position: absolute; right: 8%; bottom: 13%; color: var(--bai-primary); font-size: clamp(7rem, 18vw, 10rem); opacity: 0.08; pointer-events: none; }
@media (max-width: 576px) {
    .pd-main-card { padding: 16px; border-radius: 20px; }
    .pd-preview { aspect-ratio: auto; min-height: 420px; padding: 22px; }
    .pd-preview-cover { grid-template-columns: 1fr; align-content: start; gap: 20px; }
    .pd-preview-copy h1 { max-width: 100%; }
    .pd-preview-visual { width: 150px; justify-self: end; }
    .pd-preview-watermark { right: -16px; bottom: 74px; font-size: 8rem; opacity: 0.06; }
}

.pd-field-group { display: flex; flex-direction: column; gap: 12px; }
.pd-field { background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.pd-field-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--bai-primary); color: #fff; display: grid; place-items: center; font-size: 0.8rem; flex-shrink: 0; }
.pd-field-wrap { flex-grow: 1; }
.pd-field-lbl { font-size: 0.65rem; color: #94a3b8; font-weight: 700; margin-bottom: 2px; }
.pd-field-input { border: none; background: transparent; outline: none; width: 100%; font-size: 0.85rem; color: var(--bai-text); }

.pd-struct-list { display: flex; flex-direction: column; gap: 8px; }
.pd-struct-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #fff; border: 1px solid var(--bai-border); border-radius: 12px; font-size: 0.75rem; color: var(--bai-text); }
.pd-struct-item i { color: #10b981; }

.pd-readiness-box { text-align: center; }
.pd-bar-wrap { height: 8px; background: #f1f5f9; border-radius: 100px; overflow: hidden; margin: 16px 0; }
.pd-bar-fill { height: 100%; background: var(--bai-primary); border-radius: 100px; transition: width 0.5s; }

/* Travel Suggestion Redesign */
.tr-grid { display: grid; grid-template-columns: 320px 1fr 300px; gap: 24px; align-items: start; margin-top: 24px; padding-bottom: 80px; }
@media (max-width: 1400px) { .tr-grid { grid-template-columns: 280px 1fr 280px; } }
@media (max-width: 1200px) { .tr-grid { grid-template-columns: 1fr; } }

.tr-itinerary { display: flex; flex-direction: column; gap: 16px; }
.tr-day-card { background: #fff; border: 1px solid var(--bai-border); border-radius: 20px; padding: 20px; display: flex; gap: 24px; }
.tr-day-meta { width: 60px; text-align: center; border-right: 1px solid #f1f5f9; padding-right: 20px; flex-shrink: 0; }
.tr-day-num { font-size: 0.65rem; font-weight: 800; color: #94a3b8; margin-bottom: 4px; text-transform: uppercase; }
.tr-day-val { font-size: 1.5rem; font-weight: 800; color: var(--bai-text); line-height: 1; }
.tr-day-date { font-size: 0.75rem; color: #64748b; margin-top: 4px; }

.tr-day-content { flex-grow: 1; }
.tr-event { position: relative; padding-left: 20px; margin-bottom: 16px; }
.tr-event:last-child { margin-bottom: 0; }
.tr-event::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; }
.tr-event.active::before { background: var(--bai-primary); box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
.tr-event-time { font-size: 0.75rem; font-weight: 800; color: var(--bai-text); margin-bottom: 2px; }
.tr-event-title { font-size: 0.85rem; color: #64748b; margin-bottom: 8px; }
.tr-event-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-tag { font-size: 0.6rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: #f1f5f9; color: #64748b; }
.tr-tag.blue { background: #eff6ff; color: #3b82f6; }
.tr-tag.green { background: #f0fdf4; color: #22c55e; }

.tr-map-card { background: #fff; border: 1px solid var(--bai-border); border-radius: 20px; padding: 20px; margin-top: 24px; }
.tr-map-box { background: #f8fafc; border-radius: 16px; aspect-ratio: 2/1; position: relative; overflow: hidden; border: 1px solid #f1f5f9; }

.tr-budget-list { display: flex; flex-direction: column; gap: 12px; }
.tr-budget-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.tr-budget-lbl { color: #64748b; }
.tr-budget-val { font-weight: 700; color: var(--bai-text); }

.tr-meeting-list { display: flex; flex-direction: column; gap: 8px; }
.tr-meeting-item { display: grid; grid-template-columns: 80px 1fr 80px; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid #f1f5f9; transition: all 0.2s; }
.tr-meeting-item:hover { border-color: var(--bai-primary); background: #f8fafc; }
.tr-meeting-time { font-size: 0.65rem; color: #94a3b8; font-weight: 700; }
.tr-meeting-name { font-size: 0.75rem; font-weight: 700; color: var(--bai-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tr-checklist { display: flex; flex-direction: column; gap: 10px; }
.tr-check-item { display: flex; align-items: center; gap: 12px; font-size: 0.75rem; color: #64748b; }
.tr-check-item.done { color: var(--bai-text); text-decoration: line-through; opacity: 0.6; }
.tr-check-item i { font-size: 0.85rem; color: #cbd5e1; }
.tr-check-item.done i { color: #10b981; }

/* Translation Redesign */
.ts-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; margin-top: 24px; padding-bottom: 80px; }
@media (max-width: 1200px) { .ts-grid { grid-template-columns: 1fr; } }

.ts-workspace { background: #fff; border: 1px solid var(--bai-border); border-radius: 24px; padding: 32px; }
.ts-sub-tabs { display: flex; gap: 32px; border-bottom: 1px solid #f1f5f9; margin-bottom: 24px; }
.ts-sub-tab { padding-bottom: 12px; font-size: 0.85rem; font-weight: 700; color: #94a3b8; cursor: pointer; border-bottom: 2px solid transparent; }
.ts-sub-tab.active { color: var(--bai-primary); border-bottom-color: var(--bai-primary); }

.ts-pane-container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
@media (max-width: 992px) { .ts-pane-container { grid-template-columns: 1fr; } }

.ts-pane { background: #fff; border: 1px solid #f1f5f9; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; height: 100%; transition: all 0.2s; }
.ts-pane:focus-within { border-color: var(--bai-primary); box-shadow: 0 4px 12px rgba(37,99,235,0.05); }

.ts-pane-header { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; background: #fcfdfe; }
.ts-lang-select { display: flex; gap: 8px; }
.ts-lang-opt { padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 800; color: #94a3b8; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; }
.ts-lang-opt.active { background: #fff; color: var(--bai-primary); border-color: #e2e8f0; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }

.ts-text-area { padding: 20px; font-size: 0.9rem; line-height: 1.6; color: var(--bai-text); border: none; outline: none; resize: none; width: 100%; min-height: 250px; background: transparent; }
.ts-pane-footer { padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1f5f9; }
.ts-char-count { font-size: 0.65rem; color: #cbd5e1; }
.ts-pane-tools { display: flex; gap: 16px; color: #94a3b8; font-size: 0.9rem; }
.ts-pane-tools i { cursor: pointer; transition: color 0.2s; }
.ts-pane-tools i:hover { color: var(--bai-primary); }

.ts-glossary { display: flex; flex-direction: column; gap: 8px; }
.ts-glossary-item { display: grid; grid-template-columns: 1fr 1.2fr 80px; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 8px; border: 1px solid #f1f5f9; font-size: 0.75rem; }
.ts-glossary-mn { font-weight: 700; color: var(--bai-text); }
.ts-glossary-en { color: #64748b; }
.ts-glossary-cat { font-size: 0.65rem; text-align: right; color: #94a3b8; }

.ts-quality-box { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.ts-q-item { text-align: center; }
.ts-q-circle { width: 48px; height: 48px; margin: 0 auto 8px; border-radius: 50%; border: 2px solid #f1f5f9; display: grid; place-items: center; color: var(--bai-success); font-size: 1rem; }
.ts-q-label { font-size: 0.6rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; }

.ts-score-bar { height: 6px; background: #f1f5f9; border-radius: 100px; overflow: hidden; margin-top: 12px; }
.ts-score-fill { height: 100%; background: var(--bai-success); border-radius: 100px; }
