/* Component Styles - Wizard, Cards, Buttons, Forms, Modals */
/* Extracted from intake.html */

.dock .tool-btn {
    justify-content: center;
}
.wizard-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    padding: 16px;
    border-radius: 24px;
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 26px 50px rgba(11, 17, 40, 0.14);
    backdrop-filter: blur(18px) saturate(140%);
}
.wizard-rail {
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.wizard-rail-title {
    font-size: 14px;
    font-weight: 700;
    color: #0b1530;
    margin-top: 12px;
}
.wizard-rail-sub {
    font-size: 12px;
    color: rgba(14, 20, 62, 0.55);
    margin-top: 6px;
}
.wizard-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.wizard-context {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.wizard-context .ctx-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0b1530;
}

.card h2 {
    font-size: 20px;
    margin-bottom: 8px;
}
.wizard-card h2 {
    font-size: 22px;
    letter-spacing: -0.2px;
}

.card .hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="text"], textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 14px rgba(11, 17, 40, 0.06);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 175, 210, 0.15);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.section-title {
    font-size: 11px;
    color: #E8F0FF;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}
.section-title + .chip-row,
.section-title + .tool-toolbar,
.section-title + .helper-card {
    margin-top: 6px;
}
.section-title strong {
    color: #FFFFFF;
    font-weight: 600;
}
.section-subtle {
    font-size: 12px;
    color: #D0DDED;
    line-height: 1.5;
    font-weight: 500;
}
.helper-card {
    margin-top: 12px;
    background: var(--glass-strong);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 10px 22px rgba(14, 20, 62, 0.08);
    backdrop-filter: blur(14px) saturate(140%);
}
.helper-card summary {
    color: #0f172a;
}
.helper-card summary:hover {
    color: #0b1530;
}
.helper-card summary {
    list-style: none;
}
.helper-card summary::-webkit-details-marker {
    display: none;
}
.helper-card summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.helper-card summary span::before {
    content: '▾';
    font-size: 12px;
    color: rgba(14, 20, 62, 0.5);
}
details:not([open]) .helper-card summary span::before {
    content: '▸';
}
.tip-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 2px 4px;
    scroll-snap-type: x mandatory;
}
.tip-carousel::-webkit-scrollbar {
    height: 6px;
}
.tip-carousel::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.12);
    border-radius: 999px;
}
.tip-card {
    min-width: 220px;
    max-width: 240px;
    scroll-snap-align: start;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 12px;
    color: #24304f;
    box-shadow: 0 8px 18px rgba(11, 17, 40, 0.08);
}
.tip-list .tip-card {
    min-width: auto;
    max-width: none;
}

.search-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 16px 30px rgba(11, 17, 40, 0.1);
}
.search-input {
    width: 100%;
    padding: 16px 120px 16px 16px;
    font-size: 17px;
    border: none;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}
.search-helper {
    font-size: 12px;
    color: #8B99B5;
    margin-bottom: 16px;
    line-height: 1.5;
}
.tool-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 24px rgba(11, 17, 40, 0.08);
    backdrop-filter: blur(16px) saturate(140%);
}
.tool-btn {
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    box-shadow: 0 6px 14px rgba(11, 17, 40, 0.08);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tool-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(11, 17, 40, 0.12);
}
.tool-btn[data-tone="green"] { border-color: rgba(34,197,94,0.35); }
.tool-btn[data-tone="blue"] { border-color: rgba(59,130,246,0.35); }
.tool-btn[data-tone="amber"] { border-color: rgba(245,158,11,0.35); }
.tool-btn[data-tone="indigo"] { border-color: rgba(99,102,241,0.35); }
.tool-btn[data-tone="rose"] { border-color: rgba(244,63,94,0.35); }
.chip-icon,
.tool-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.back-link {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #0b1530;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 6px 14px rgba(11, 17, 40, 0.08);
}
.back-link:hover {
    background: rgba(255,255,255,0.98);
    transform: translateY(-1px);
}
.search-input:focus {
    border-color: transparent;
    box-shadow: none;
}
.primary-btn {
    padding: 16px 26px;
    background: linear-gradient(135deg, rgba(0, 175, 210, 0.95), rgba(14, 161, 196, 0.9));
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 175, 210, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.primary-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(0, 175, 210, 0.25);
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.option-card {
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,247,251,0.98));
    box-shadow: 0 8px 16px rgba(11, 17, 40, 0.08);
}

.option-card:hover {
    border-color: rgba(0, 175, 210, 0.5);
    box-shadow: 0 12px 22px rgba(0, 175, 210, 0.18);
    transform: translateY(-1px);
}

.option-card.selected {
    border-color: rgba(0, 175, 210, 0.8);
    background: rgba(0, 175, 210, 0.08);
    box-shadow: 0 12px 22px rgba(0, 175, 210, 0.2);
}

.option-card .icon {
    font-size: 26px;
    margin-bottom: 8px;
}

.option-card .label {
    font-weight: 500;
    font-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 16px rgba(11, 17, 40, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 175, 210, 0.98), rgba(36, 197, 236, 0.95));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(0, 175, 210, 0.25);
}

.btn-primary:disabled {
    background: rgba(15, 23, 42, 0.12);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: #334155;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.safety-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.safety-box h3 {
    color: #f57c00;
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.safety-box ul {
    margin-left: 20px;
    font-size: 14px;
}

.safety-box li {
    margin-bottom: 4px;
}
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #f3f5f7;
    border: 1px solid #e3e7ed;
    color: #455a64;
}
.answer-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Confidence badge */
.confidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin: 12px 0 4px;
}
.confidence-high {
    background: rgba(52, 199, 89, 0.12);
    color: #2d8a46;
    border: 1px solid rgba(52, 199, 89, 0.3);
}
.confidence-medium {
    background: rgba(0, 175, 210, 0.10);
    color: #0090a8;
    border: 1px solid rgba(0, 175, 210, 0.25);
}
.confidence-low {
    background: rgba(255, 149, 0, 0.12);
    color: #b36b00;
    border: 1px solid rgba(255, 149, 0, 0.3);
}

/* ============================================================
   PHASE 6: SAFETY-CRITICAL UI ENHANCEMENTS
   Field techs work in explosive atmospheres. These styles ensure
   safety info is impossible to miss, even in bright sunlight.
   ============================================================ */

/* Vendor isolation banner — always shows which vendor's docs are used */
.vendor-isolation-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 12px;
    background: rgba(0, 175, 210, 0.18);
    border: 1px solid rgba(0, 175, 210, 0.5);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}
.vendor-isolation-icon { font-size: 16px; }
.vendor-isolation-text strong {
    color: #00AFD2;
    text-transform: capitalize;
}

/* Safety alert banners — hallucination, contamination, low confidence */
.safety-alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.safety-alert-critical {
    background: rgba(255, 59, 48, 0.12);
    border: 2px solid rgba(255, 59, 48, 0.5);
    color: var(--text-primary);
}
.safety-alert-warning {
    background: rgba(255, 149, 0, 0.12);
    border: 2px solid rgba(255, 149, 0, 0.5);
    color: var(--text-primary);
}
.safety-alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.safety-alert-text strong { font-weight: 700; }

/* Elevated safety banner — red left border + bolder styling */
.safety-banner-elevated {
    border-left: 4px solid #FF3B30;
    background: rgba(255, 59, 48, 0.15);
}
.safety-banner-elevated .safety-banner-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Safety keyword highlighting in answer text */
.safety-keyword {
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}
.safety-keyword-danger {
    background: rgba(255, 59, 48, 0.18);
    color: #cc2d25;
    border-bottom: 2px solid #FF3B30;
}
.safety-keyword-warning {
    background: rgba(255, 149, 0, 0.18);
    color: #b36b00;
    border-bottom: 2px solid #FF9500;
}
.safety-keyword-ppe {
    background: rgba(52, 199, 89, 0.18);
    color: #2d8a46;
    border-bottom: 2px solid #34C759;
}

/* Safety gate cancel/help button */
.safety-gate-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}
.safety-gate-cancel-btn {
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.safety-gate-cancel-btn:hover {
    background: rgba(255, 59, 48, 0.1);
    border-color: #FF3B30;
    color: #FF3B30;
}

/* Safety cancelled notice */
.safety-cancelled-notice {
    text-align: center;
    padding: 20px;
    font-size: 15px;
    line-height: 1.6;
}
.safety-cancelled-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}
.safety-cancelled-notice ul {
    text-align: left;
    display: inline-block;
    margin-top: 8px;
}
.safety-cancelled-notice li {
    padding: 4px 0;
}

/* ============================================================
   FIELD READABILITY: Minimum 14px for safety-critical text
   ============================================================ */
.confidence-badge { font-size: 14px; }
.source-vendor { font-size: 14px; }
.source-page { font-size: 13px; }
.safety-banner-label { font-size: 14px; }

/* WYH styles consolidated into block below (line ~1777) */

/* Similar solutions (past WO fixes) */
.similar-solutions-section {
    margin-top: 16px;
    padding: 14px;
    background: rgba(14, 20, 62, 0.04);
    border: 1px solid rgba(14, 20, 62, 0.10);
    border-radius: 12px;
}
.similar-solutions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy, #0E143E);
}
.similar-solutions-icon { font-size: 16px; }
.similar-solution-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(14, 20, 62, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
}
.similar-solution-card:last-child { margin-bottom: 0; }
.similar-solution-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.similar-solution-wo {
    font-weight: 700;
    font-size: 12px;
    color: var(--primary, #00AFD2);
}
.similar-solution-site {
    font-size: 11px;
    color: var(--text-tertiary, #8e99a4);
}
.similar-solution-work {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary, #1d3557);
    margin-bottom: 4px;
}
.similar-solution-parts {
    font-size: 11px;
    color: var(--text-secondary, #455a64);
    font-style: italic;
}
.similar-solution-tech {
    font-size: 11px;
    color: var(--text-tertiary, #8e99a4);
    margin-top: 2px;
}

/* Escalation contacts */
.escalation-section {
    margin-top: 16px;
    padding: 14px;
    background: rgba(255, 105, 0, 0.06);
    border: 1px solid rgba(255, 105, 0, 0.15);
    border-radius: 12px;
}
.escalation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.escalation-icon { font-size: 16px; }
.escalation-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--orange, #FF6900);
}
.escalation-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 105, 0, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-left: 3px solid var(--primary, #00AFD2);
}
.escalation-contact:last-child { margin-bottom: 0; }
.escalation-contact-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #1d3557);
    flex: 1;
}
.escalation-phone {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary, #00AFD2);
    text-decoration: none;
}
.escalation-phone:hover { text-decoration: underline; }
.escalation-hours {
    font-size: 11px;
    color: var(--text-tertiary, #8e99a4);
}

/* ===== Error Code Auto-Detection Hint ===== */
.error-code-hint {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid rgba(255, 149, 0, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    z-index: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: chatFadeIn 0.2s ease;
}
.error-code-hint-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.error-code-badge {
    display: inline-flex;
    padding: 3px 10px;
    background: rgba(255, 149, 0, 0.15);
    border: 1px solid rgba(255, 149, 0, 0.3);
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: #FF9500;
}
.error-code-vendor {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary, #00AFD2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.error-code-hint-desc {
    font-size: 13px;
    color: var(--text-secondary, #aaa);
    line-height: 1.4;
}
[data-theme="light"] .error-code-hint {
    background: #fff;
    border-color: rgba(255, 149, 0, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ===== New Chat FAB ===== */
.new-chat-fab {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary, #00AFD2);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 175, 210, 0.4);
    z-index: 900;
    transition: all 0.2s ease;
}
.new-chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 175, 210, 0.5);
}
.new-chat-fab:active {
    transform: scale(0.95);
}
.new-chat-icon {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

/* ===== Search Insights Widget ===== */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.insights-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
}
.insights-item:hover {
    background: rgba(0, 175, 210, 0.08);
}
.insights-rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 175, 210, 0.12);
    color: var(--primary, #00AFD2);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.insights-query {
    flex: 1;
    color: var(--text-primary, #fff);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.insights-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary, #8e99a4);
    background: rgba(0, 175, 210, 0.08);
    padding: 2px 8px;
    border-radius: 999px;
}
.insights-vendor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.insights-vendor-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 105, 0, 0.08);
    border: 1px solid rgba(255, 105, 0, 0.2);
    color: var(--jfp-orange, #FF6900);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.insights-vendor-chip:hover {
    background: rgba(255, 105, 0, 0.18);
    border-color: rgba(255, 105, 0, 0.4);
}
.insights-vendor-count {
    font-size: 10px;
    opacity: 0.7;
}

/* ===== Safety Gate Modal ===== */
.safety-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: safetyFadeIn 0.3s ease;
}
@keyframes safetyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.safety-gate-modal {
    background: var(--bg-card, #1a1a2e);
    border: 2px solid #FF3B30;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 59, 48, 0.3);
}
.safety-gate-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.safety-gate-title {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px;
}
.safety-gate-body {
    text-align: left;
    margin-bottom: 16px;
}
.safety-gate-warning {
    background: rgba(255, 59, 48, 0.12);
    border-left: 4px solid #FF3B30;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    line-height: 1.5;
}
.safety-gate-instruction {
    font-size: 13px;
    color: var(--text-secondary, #aaa);
    margin: 12px 0;
}
.safety-gate-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary, #fff);
    margin: 16px 0;
    text-align: left;
}
.safety-gate-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #FF3B30;
}
.safety-gate-btn {
    flex: 1;
    padding: 14px;
    background: #FF3B30;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.safety-gate-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.safety-gate-btn:not(:disabled):hover {
    background: #d62c24;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
}
[data-theme="light"] .safety-gate-modal {
    background: #fff;
    color: #1d3557;
}

/* ===== Conversation Thread (iMessage-style Chat Bubbles) ===== */
.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
}
.chat-msg {
    display: flex;
    align-items: flex-end;
    max-width: 100%;
    animation: chatSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    gap: 8px;
}
@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-msg-user {
    justify-content: flex-end;
    padding-left: 48px;
}
.chat-msg-bot {
    justify-content: flex-start;
    padding-right: 16px;
}

/* SentryTech Avatar */
.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: contain;
    background: linear-gradient(135deg, #0e143e, #1a2555);
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.chat-msg-user .chat-avatar { display: none; }

/* Chat Bubble Base */
.chat-bubble {
    border-radius: 18px;
    padding: 10px 16px;
    font-size: 15px;
    line-height: 1.65;
    max-width: 85%;
    word-wrap: break-word;
    position: relative;
}

/* User Bubble - iMessage cyan */
.chat-bubble-user {
    background: linear-gradient(135deg, #00AFD2 0%, #0098B8 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 175, 210, 0.3);
}

/* Bot Bubble - glass card */
.chat-bubble-bot {
    background: var(--bg-card, #0d1225);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    color: var(--text-primary, #fff);
    border-bottom-left-radius: 4px;
    max-width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
[data-theme="dark"] .chat-bubble-bot {
    background: linear-gradient(135deg, rgba(13, 18, 37, 0.95), rgba(18, 26, 52, 0.9));
    border-color: rgba(58, 168, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
[data-theme="light"] .chat-bubble-bot {
    background: #f0f2f5;
    border-color: #e0e4eb;
    color: #1d3557;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Timestamp under bubbles */
.chat-timestamp {
    font-size: 11px;
    color: var(--text-tertiary, #8892a8);
    padding: 2px 8px 0;
    opacity: 0.7;
}
.chat-msg-user .chat-timestamp { text-align: right; }
.chat-msg-bot .chat-timestamp { text-align: left; padding-left: 44px; }

/* Bot name label */
.chat-bot-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary, #8892a8);
    padding-left: 44px;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Streaming cursor blink */
.stream-cursor {
    display: inline;
    animation: cursorBlink 0.8s infinite;
    color: var(--primary, #00AFD2);
    font-weight: 300;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.stream-in-progress {
    min-height: 24px;
}

/* Typing indicator - iMessage style */
.chat-typing {
    display: flex;
    gap: 5px;
    padding: 6px 2px;
    align-items: center;
}
.chat-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-tertiary, #8e99a4);
    animation: chatTyping 1.4s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* Delivered/read receipt indicator */
.chat-receipt {
    font-size: 10px;
    color: var(--text-tertiary, #8892a8);
    text-align: right;
    padding: 1px 4px 0;
    letter-spacing: 0.3px;
}
.chat-receipt.delivered::after { content: 'Delivered'; }
.chat-receipt.read::after { content: 'Read'; color: var(--primary, #00AFD2); }

/* Follow-up question chips */
.follow-up-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border, rgba(255,255,255,0.08));
}
.follow-up-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary, #8e99a4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.follow-up-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.follow-up-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(0, 175, 210, 0.08);
    border: 1px solid rgba(0, 175, 210, 0.25);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary, #00AFD2);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    line-height: 1.3;
}
.follow-up-chip:hover {
    background: rgba(0, 175, 210, 0.18);
    border-color: rgba(0, 175, 210, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 175, 210, 0.15);
}
.follow-up-chip:active {
    transform: scale(0.97);
}
[data-theme="dark"] .follow-up-chip {
    background: rgba(0, 175, 210, 0.12);
    border-color: rgba(0, 175, 210, 0.3);
    color: #4dd4ec;
}
[data-theme="dark"] .follow-up-chip:hover {
    background: rgba(0, 175, 210, 0.22);
    border-color: rgba(0, 175, 210, 0.5);
    box-shadow: 0 2px 12px rgba(0, 212, 255, 0.2);
}

.context-summary {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}
.wo-context-banner {
    margin-bottom: 16px;
    padding: 12px;
    background: #f0fbff;
    border: 1px solid #d6eef7;
    border-left: 4px solid #00AFD2;
    border-radius: 10px;
    font-size: 13px;
    color: #1d3557;
}

.context-summary h3 {
    color: var(--success);
    margin-bottom: 12px;
}

.context-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px;
    padding: 4px 0;
    font-size: 14px;
}

.context-item .ctx-label {
    font-weight: 500;
    width: 140px;
    color: var(--text-secondary);
}
.context-item .ctx-value {
    color: #1b5e20;
    font-weight: 500;
    word-break: break-word;
}

.hidden { display: none !important; }

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* ===== ANSWER METADATA BAR ===== */
.answer-meta-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    margin: 12px 0 8px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.answer-meta-item {
    font-size: 11px;
    color: var(--text-tertiary, #999);
    display: flex;
    align-items: center;
    gap: 4px;
}
.answer-meta-vendor {
    padding: 2px 8px;
    background: rgba(0, 175, 210, 0.1);
    border-radius: 10px;
    font-weight: 600;
    color: var(--accent, #00AFD2);
    text-transform: capitalize;
}
.answer-meta-confidence-high { color: #34C759; }
.answer-meta-confidence-medium { color: #FF9500; }
.answer-meta-confidence-low { color: #FF3B30; }

/* ===== PDF EXPORT BUTTON ===== */
.export-pdf-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.export-pdf-btn:hover {
    background: rgba(0, 175, 210, 0.1);
    border-color: var(--accent, #00AFD2);
    color: var(--accent, #00AFD2);
}

/* ===== BOOKMARK BUTTON ===== */
.bookmark-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    color: var(--text-tertiary, #999);
    line-height: 1;
}
.bookmark-btn:hover {
    transform: scale(1.2);
    color: #FF9500;
}
.bookmark-btn.bookmarked {
    color: #FF9500;
    animation: bookmarkPop 0.3s ease;
}
@keyframes bookmarkPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* ===== BOOKMARKS PANEL ===== */
.bookmark-card {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-secondary, #f9f9f9);
}
.bookmark-card:hover {
    border-color: var(--accent, #00AFD2);
    box-shadow: 0 2px 8px rgba(0, 175, 210, 0.15);
    transform: translateY(-1px);
}
.bookmark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.bookmark-query {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}
.bookmark-vendor {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(0, 175, 210, 0.1);
    border-radius: 10px;
    color: var(--accent, #00AFD2);
    font-weight: 600;
    text-transform: capitalize;
}
.bookmark-preview {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bookmark-date {
    font-size: 10px;
    color: var(--text-tertiary, #999);
    margin-top: 6px;
}

/* ===== KEYBOARD SHORTCUTS MODAL ===== */
.shortcut-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.shortcut-row:last-child {
    border-bottom: none;
}
.shortcut-keys {
    background: var(--bg-secondary, #f0f0f0);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border);
    white-space: nowrap;
}
.shortcut-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== OFFLINE INDICATOR ===== */
.offline-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(90deg, #FF9500, #FF6900);
    color: white;
    font-size: 13px;
    font-weight: 600;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    animation: slideDown 0.3s ease;
}
.offline-icon {
    font-size: 16px;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ===== SKELETON LOADING (Progressive content reveal) ===== */
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.8s ease-in-out infinite;
    border-radius: var(--radius, 8px);
    pointer-events: none;
}

.skeleton-title {
    height: 22px;
    width: 55%;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-card {
    height: 180px;
    border-radius: var(--radius-lg, 12px);
    margin-bottom: 16px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* ===== ENHANCED DISABLED STATES ===== */
button:disabled,
button[disabled],
input:disabled,
textarea:disabled,
select:disabled,
.btn-primary:disabled,
.filter-chip:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(60%);
    pointer-events: none;
    box-shadow: none !important;
    transform: none !important;
}

/* ===== SMOOTH EASING ===== */
/* Apple-style spring easing for all interactive elements */
.quick-card,
.filter-chip,
.tool-link,
.diag-tile,
.side-menu-item,
.mode-btn,
.settings-mode-btn,
.category-card,
.category-item,
.hero-issue-btn,
.option-card {
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== IMPROVED TEXT READABILITY FOR FIELD USE ===== */
/* Safety-critical text needs extra line-height for sunlight readability */
.safety-banner-text,
.safety-alert-text,
.safety-gate-warning,
.safety-keyword {
    line-height: 1.7;
    letter-spacing: 0.3px;
}

/* Answer content — field techs read this on phones in bright light */
.answer-content {
    line-height: 1.65;
}

/* ===== MISSING ACTIVE STATES ===== */
/* Buttons/cards that don't have :active yet */
.diag-tile:active {
    transform: scale(0.97);
}

.tool-link:active {
    transform: scale(0.97);
    opacity: 0.8;
}

.side-menu-item:active {
    background: rgba(0, 175, 210, 0.1);
    transform: scale(0.98);
}

.mode-btn:active,
.settings-mode-btn:active {
    transform: scale(0.96);
}

.option-card:active {
    transform: scale(0.97);
}

.wo-action-btn:active {
    transform: scale(0.97);
}

.compliance-filter-btn:active {
    transform: scale(0.97);
}

.qr-category-pill:active {
    transform: scale(0.95);
}

.feedback-btn:active {
    transform: scale(0.93);
}

.builder-btn:active {
    transform: scale(0.97);
}

/* ═══════════════════════════════════════════════════════════════
   FEEDBACK CATEGORY PICKER — shown after thumbs-down
   ═══════════════════════════════════════════════════════════════ */

.feedback-category-picker {
    margin-top: 10px;
    padding: 14px 16px;
    background: rgba(14, 20, 62, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(14, 20, 62, 0.08);
    animation: feedbackSlideIn 0.25s ease-out;
}

@keyframes feedbackSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.feedback-category-label {
    font-size: 13px;
    font-weight: 600;
    color: #0E143E;
    margin-bottom: 10px;
}

.feedback-category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feedback-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 1px solid rgba(14, 20, 62, 0.15);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.feedback-category-btn:hover {
    background: rgba(0, 175, 210, 0.06);
    border-color: #00AFD2;
    color: #00AFD2;
}

.feedback-category-btn.selected {
    background: rgba(0, 175, 210, 0.1);
    border-color: #00AFD2;
    color: #00AFD2;
    font-weight: 600;
}

.feedback-category-icon {
    font-size: 14px;
    line-height: 1;
}

.feedback-comment-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    animation: feedbackSlideIn 0.2s ease-out;
}

.feedback-comment-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid rgba(14, 20, 62, 0.15);
    border-radius: 8px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.15s ease;
}

.feedback-comment-input:focus {
    border-color: #00AFD2;
}

.feedback-submit-btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #00AFD2;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.feedback-submit-btn:hover {
    background: #0098B8;
}

.feedback-category-thanks {
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: #34C759;
    text-align: center;
    animation: feedbackSlideIn 0.2s ease-out;
}

/* ═══════════════════════════════════════════════════════════════
   CLARIFICATION PICKLIST — shown when confidence is low
   ═══════════════════════════════════════════════════════════════ */

.clarification-card {
    border: 2px solid rgba(0, 175, 210, 0.25);
    background: linear-gradient(135deg, rgba(0, 175, 210, 0.03), rgba(14, 20, 62, 0.02));
}

.clarification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.clarification-icon {
    font-size: 22px;
    line-height: 1;
}

.clarification-title {
    font-size: 16px;
    font-weight: 700;
    color: #0E143E;
}

.clarification-question {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.5;
}

.clarification-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.clarification-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #0E143E;
    background: #fff;
    border: 2px solid rgba(0, 175, 210, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 120px;
    justify-content: center;
}

.clarification-btn:hover {
    background: rgba(0, 175, 210, 0.08);
    border-color: #00AFD2;
    color: #00AFD2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 175, 210, 0.15);
}

.clarification-btn:active {
    transform: scale(0.97);
}

.clarification-btn-none {
    color: #888;
    border-color: rgba(14, 20, 62, 0.12);
    font-weight: 500;
    font-size: 13px;
    min-width: auto;
}

.clarification-btn-none:hover {
    color: #FF9500;
    border-color: #FF9500;
    background: rgba(255, 149, 0, 0.05);
    box-shadow: none;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .feedback-category-picker {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.08);
    }
    .feedback-category-label { color: #e0e0e0; }
    .feedback-category-btn {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        color: #ccc;
    }
    .feedback-comment-input {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        color: #e0e0e0;
    }
    .clarification-card {
        border-color: rgba(0, 175, 210, 0.2);
        background: linear-gradient(135deg, rgba(0, 175, 210, 0.05), rgba(14, 20, 62, 0.1));
    }
    .clarification-title { color: #e0e0e0; }
    .clarification-question { color: #aaa; }
    .clarification-btn {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(0, 175, 210, 0.25);
        color: #e0e0e0;
    }
    .clarification-btn-none {
        color: #888;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* ================================================================
   WHILE YOU'RE HERE (WYH) — Proactive Site Recommendations
   ================================================================ */
.wyh-section {
    margin-top: 16px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,175,210,0.06) 0%, rgba(255,105,0,0.04) 100%);
    border: 1px solid rgba(0,175,210,0.15);
    border-left: 4px solid #00AFD2;
}
.wyh-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 14px;
    color: #0E143E;
}
.wyh-header-icon {
    font-size: 16px;
}
.wyh-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wyh-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.06);
    border-left: 3px solid #34C759;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}
.wyh-item-critical {
    border-left-color: #FF3B30;
    background: rgba(255,59,48,0.04);
}
.wyh-item-high {
    border-left-color: #FF3B30;
    background: rgba(255,59,48,0.03);
}
.wyh-item-medium {
    border-left-color: #FF9500;
    background: rgba(255,149,0,0.04);
}
.wyh-item-low {
    border-left-color: #34C759;
}
.wyh-severity-icon {
    flex-shrink: 0;
    font-size: 14px;
    margin-top: 1px;
}
.wyh-item-content {
    flex: 1;
}
.wyh-type-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
}
.wyh-type-active_alert    { background: #FF3B3020; color: #FF3B30; }
.wyh-type-warm_starts     { background: #FF950020; color: #c57600; }
.wyh-type-slow_flow       { background: #FF950020; color: #c57600; }
.wyh-type-work_order      { background: #00AFD220; color: #008ba8; }
.wyh-type-compliance      { background: #AF52DE20; color: #8a3db5; }
.wyh-type-compliance_overdue { background: #FF3B3020; color: #FF3B30; }
.wyh-type-compliance_due_soon { background: #FF950020; color: #c57600; }
.wyh-type-tank_monitor    { background: #5856D620; color: #4644ab; }
.wyh-type-dispenser_uptime{ background: #FF634720; color: #cc4f39; }

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .wyh-section {
        background: linear-gradient(135deg, rgba(0,175,210,0.08) 0%, rgba(255,105,0,0.06) 100%);
        border-color: rgba(0,175,210,0.25);
    }
    .wyh-header { color: #e0e0e0; }
    .wyh-item {
        background: rgba(255,255,255,0.06);
        border-color: rgba(255,255,255,0.08);
        color: #ccc;
    }
    .wyh-item-critical { background: rgba(255,59,48,0.08); }
    .wyh-item-high { background: rgba(255,59,48,0.06); }
    .wyh-item-medium { background: rgba(255,149,0,0.08); }
}
