/**
 * Prometheus - Full Page Chat Interface
 * Theme matching emergencemachine.com
 */

/* Google Fonts - Poppins, Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Caveat - font-display:block prevents FOUT (flash of wrong font before Caveat loads) */
@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url(https://fonts.gstatic.com/s/caveat/v23/Wnz6HAc5bAfYB2Q7ZjYY.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url(https://fonts.gstatic.com/s/caveat/v23/Wnz6HAc5bAfYB2Q7ZjYY.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors matching emergencemachine.com */
    --prometheus-bg: #111111;
    --prometheus-surface: #1a1a1a;
    --prometheus-surface-light: #242424;
    --prometheus-text: #F0F0F0;
    --prometheus-text-dim: #CBCBCB;
    --prometheus-accent: #ffffff;
    --prometheus-accent-hover: #e0e0e0;
    --prometheus-accent-teal: #32858f;
    --prometheus-border: #353535;
    --prometheus-user-bg: #2a2a2a;
    --prometheus-shadow: rgba(0, 0, 0, 0.4);
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Prevent zoom on input focus (iOS) */
    -webkit-text-size-adjust: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--prometheus-bg);
    color: var(--prometheus-text);
    line-height: 1.6;
    /* Smooth scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Main Container */
.prometheus-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for better browser support */
    width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
}

/* WordPress admin bar compensation (logged-in users) */
.admin-bar .prometheus-container {
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .prometheus-container {
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
        max-height: calc(100vh - 46px);
        max-height: calc(100dvh - 46px);
    }
}

/* Header */
.prometheus-header {
    background: var(--prometheus-surface);
    border-bottom: 1px solid var(--prometheus-border);
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prometheus-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.header-left > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.prometheus-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--prometheus-text);
    letter-spacing: -0.02em;
    font-family: 'Caveat', 'Segoe UI', sans-serif;
}

.prometheus-subtitle {
    font-size: 14px;
    color: var(--prometheus-text-dim);
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--prometheus-surface-light);
    border: 1px solid var(--prometheus-border);
    border-radius: 8px;
    color: var(--prometheus-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--prometheus-accent-teal);
    border-color: var(--prometheus-accent-teal);
    color: white;
}

.back-link svg {
    width: 20px;
    height: 20px;
}

/* Hamburger Menu */
.prometheus-menu-toggle {
    background: none;
    border: none;
    color: var(--prometheus-text);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.prometheus-menu-toggle:hover {
    opacity: 1;
}

.prometheus-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.prometheus-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.prometheus-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--prometheus-surface);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.prometheus-menu-overlay.open .prometheus-menu-panel {
    transform: translateX(0);
}

.prometheus-menu-close {
    background: none;
    border: none;
    color: var(--prometheus-text);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.prometheus-menu-close:hover {
    opacity: 1;
}

.prometheus-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prometheus-menu-nav a {
    color: var(--prometheus-text-dim);
    text-decoration: none;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.prometheus-menu-nav a:hover {
    background: var(--prometheus-surface-light);
    color: var(--prometheus-text);
}

.prometheus-menu-nav a.active {
    color: var(--prometheus-accent);
    font-weight: 500;
}

/* Main Chat Area */
.prometheus-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 0; /* Important for flex children with overflow */
}

/* Messages Container */
.prometheus-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 0; /* Important for flex children with overflow */
}

/* When empty, center the welcome content */
.prometheus-messages:empty {
    justify-content: center;
    align-items: center;
}

/* Individual Message */
.prometheus-message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: messageSlideIn 0.3s ease-out;
}

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

.prometheus-message.user {
    align-self: flex-end;
}

.prometheus-message.bot {
    align-self: flex-start;
}

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.prometheus-message.user .message-avatar {
    background: var(--prometheus-user-bg);
    color: white;
}

.prometheus-message.bot .message-avatar {
    background: var(--prometheus-accent);
    color: var(--prometheus-bg);
}

.message-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--prometheus-text);
}

.prometheus-message.bot .message-name {
    font-family: 'Caveat', 'Segoe UI', sans-serif;
    font-size: 18px;
}

.message-content {
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}

.prometheus-message.user .message-content {
    background: linear-gradient(135deg, var(--prometheus-user-bg) 0%, #383838 100%);
    color: white;
    border-bottom-right-radius: 6px;
}

.prometheus-message.bot .message-content {
    background: var(--prometheus-surface-light);
    color: var(--prometheus-text);
    border-bottom-left-radius: 6px;
    border: 1px solid var(--prometheus-border);
}

.message-content h3,
.message-content h4,
.message-content h5 {
    font-family: 'Caveat', 'Segoe UI', sans-serif;
    font-size: 1.5em;
}

.message-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
    overflow-x: auto;
    display: block;
}

.message-content th,
.message-content td {
    border: 1px solid var(--prometheus-border);
    padding: 8px 12px;
    text-align: left;
}

.message-content th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.message-time {
    font-size: 12px;
    color: var(--prometheus-text-dim);
    margin-top: 6px;
    padding: 0 4px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--prometheus-surface-light);
    border-radius: 16px;
    border: 1px solid var(--prometheus-border);
    width: fit-content;
}

.typing-indicator.thinking .thinking-text {
    color: var(--prometheus-text-dim);
    font-size: 14px;
    font-style: italic;
    animation: thinking-pulse 2s ease-in-out infinite;
}

@keyframes thinking-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}


/* Footer (Input Area) */
.prometheus-footer {
    background: var(--prometheus-surface);
    border-top: 1px solid var(--prometheus-border);
    padding: 12px 40px;
    flex-shrink: 0;
}

.input-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.prometheus-input {
    flex: 1;
    background: var(--prometheus-surface-light);
    border: 2px solid var(--prometheus-accent);
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--prometheus-text);
    font-family: inherit;
    resize: none;
    outline: none;
    min-height: 52px;
    max-height: 200px;
    overflow-y: auto;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.prometheus-input:focus {
    border-color: var(--prometheus-accent-hover);
    background: var(--prometheus-surface-light);
    box-shadow: 0 0 0 4px rgba(209, 191, 149, 0.15);
}

.prometheus-input::placeholder {
    color: var(--prometheus-text-dim);
}

.prometheus-send svg {
    width: 24px;
    height: 24px;
}

.input-hint {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    color: var(--prometheus-text-dim);
    line-height: 1.4;
    opacity: 0.7;
}

.footer-info {
    text-align: center;
    margin-top: 12px;
    font-size: 11px;
    color: var(--prometheus-text-dim);
    line-height: 1.4;
}

.footer-info a {
    color: var(--prometheus-accent);
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Scrollbar Styles */
.prometheus-messages::-webkit-scrollbar {
    width: 6px;
}

.prometheus-messages::-webkit-scrollbar-track {
    background: transparent;
}

.prometheus-messages::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

.prometheus-messages::-webkit-scrollbar-thumb:hover {
    background: var(--prometheus-border);
}

/* Only show scrollbar when hovering over messages area */
.prometheus-messages:hover::-webkit-scrollbar-thumb {
    background: var(--prometheus-border);
}

.prometheus-messages {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.prometheus-messages:hover {
    scrollbar-color: var(--prometheus-border) transparent;
}

.prometheus-input::-webkit-scrollbar {
    width: 6px;
}

.prometheus-input::-webkit-scrollbar-track {
    background: transparent;
}

.prometheus-input::-webkit-scrollbar-thumb {
    background: var(--prometheus-border);
    border-radius: 3px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Header - Make more compact on mobile */
    .prometheus-header {
        padding: 8px 12px;
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }

    .header-left {
        flex: 1;
    }

    .prometheus-title {
        font-size: 28px;
        margin-bottom: 2px;
    }

    .prometheus-subtitle {
        font-size: 16px;
    }

    .header-right {
        width: auto;
    }

    .back-link {
        padding: 8px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    .back-link svg {
        width: 16px;
        height: 16px;
    }

    /* Main content area */
    .prometheus-main {
        padding: 0 8px;
    }

    /* Messages area */
    .prometheus-messages {
        padding: 12px 0;
    }

    .prometheus-message {
        max-width: 85%;
        font-size: 14px;
    }

    .message-header {
        margin-bottom: 6px;
    }

    .message-avatar {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .message-name {
        font-size: 20px;
    }

    .message-content {
        font-size: 14px;
        padding: 10px 12px;
    }

    .message-content h3,
    .message-content h4,
    .message-content h5 {
        font-size: 22px;
    }

    .message-time {
        font-size: 11px;
        margin-top: 4px;
    }

    /* Footer - Input area */
    .prometheus-footer {
        padding: 8px 12px;
        gap: 8px;
    }

    .prometheus-input-wrapper {
        gap: 8px;
    }

    .prometheus-input {
        font-size: 15px;
        padding: 12px 14px;
        min-height: 44px; /* iOS minimum touch target */
    }

    .prometheus-send {
        width: 44px;
        height: 44px;
        border-radius: 6px;
    }

    .prometheus-send svg {
        width: 18px;
        height: 18px;
    }

    /* Welcome state */
    .prometheus-welcome {
        padding: 10px 16px 10px !important;
        gap: 12px !important;
        justify-content: center !important;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        box-sizing: border-box;
        height: 100% !important;
        flex: 1 1 0 !important;
    }

    .welcome-icon {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .welcome-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .welcome-text {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    /* Quick replies - single column on mobile */
    .prometheus-quick-replies {
        padding: 0 !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .quick-reply-btn {
        font-size: 13px;
        padding: 12px 16px;
        min-width: unset;
        white-space: normal;
        text-align: left;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Typing indicator */
    .typing-indicator {
        padding: 8px 12px;
    }

    /* Limit message */
    .limit-message {
        padding: 16px;
        margin: 12px 0;
        font-size: 14px;
    }

    .limit-message h3 {
        font-size: 16px;
    }

    .limit-message input {
        padding: 10px 12px;
        font-size: 15px;
        min-height: 44px;
    }

    .limit-message button {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .prometheus-header {
        padding: 10px 12px;
    }

    .prometheus-title {
        font-size: 26px;
    }

    .prometheus-subtitle {
        font-size: 15px;
    }

    .back-link {
        padding: 6px 12px;
        font-size: 13px;
    }

    .prometheus-main {
        padding: 0 8px;
    }

    .prometheus-footer {
        padding: 10px 12px;
    }

    .welcome-icon {
        font-size: 50px;
    }

    .welcome-title {
        font-size: 24px;
    }

    .quick-reply-btn {
        font-size: 12px;
        padding: 10px 14px;
        min-width: unset;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .prometheus-welcome {
        padding: 20px 16px;
    }

    .welcome-icon {
        font-size: 40px;
        margin-bottom: 8px;
    }

    .welcome-title {
        font-size: 20px;
    }

    .welcome-text {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .prometheus-quick-replies {
        padding: 12px 0;
        gap: 8px;
    }
}

/* Message Links */
.message-content a {
    color: var(--prometheus-accent-hover);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.message-content a:hover {
    color: white;
}

.prometheus-message.bot .message-content a {
    color: var(--prometheus-accent);
}

.prometheus-message.bot .message-content a:hover {
    color: var(--prometheus-accent-hover);
}

/* Welcome State - Top-aligned Design */
.prometheus-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 20px 20px 8px;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* Important for flex children */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    max-width: 100%;
    box-sizing: border-box;
}

.prometheus-welcome::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.prometheus-welcome.hidden {
    display: none;
}

.welcome-icon {
    font-size: 40px;
    margin-bottom: 0;
    animation: flicker 3s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.welcome-title {
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
    font-family: 'Caveat', 'Segoe UI', sans-serif;
    margin-bottom: 0;
}

.welcome-text {
    font-size: 14px;
    color: var(--prometheus-text-dim);
    max-width: 700px;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Quick Replies - Updated for centered welcome */
.prometheus-quick-replies {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Hide quick replies when empty */
.prometheus-quick-replies:empty {
    display: none;
}

.quick-reply-btn {
    background: transparent;
    border: 1.5px solid var(--prometheus-accent);
    color: var(--prometheus-accent);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: normal;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    max-width: 100%;
    box-sizing: border-box;
}

.quick-reply-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--prometheus-accent-hover);
    color: var(--prometheus-accent-hover);
    transform: translateY(-2px);
}

/* Send button - White accent */
.prometheus-send {
    background: #ffffff;
    color: #111111;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.prometheus-send:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.prometheus-send:active {
    transform: translateY(0);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Better tap targets for touch devices */
    .quick-reply-btn,
    .prometheus-send,
    .back-link,
    .limit-message button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .quick-reply-btn:hover,
    .prometheus-send:hover,
    .back-link:hover {
        transform: none;
    }

    /* Active states instead of hover */
    .quick-reply-btn:active {
        background: rgba(209, 191, 149, 0.2);
        transform: scale(0.98);
    }

    .prometheus-send:active {
        transform: scale(0.95);
    }

    /* Prevent text selection on buttons */
    button, .quick-reply-btn, .back-link {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        user-select: none;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix iOS input zoom */
    input, textarea {
        font-size: 16px !important;
    }

    /* Fix iOS safe area */
    .prometheus-container {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .prometheus-footer {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

/* Android specific fixes */
@supports not (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        /* Android Chrome address bar compensation */
        .prometheus-container {
            height: 100dvh; /* Use dynamic viewport height */
        }
    }
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* FORCE HIDE ALL SCROLLBARS - Override everything */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Only show scrollbar on messages when there's content and hovering */
.prometheus-messages:hover::-webkit-scrollbar {
    display: block !important;
    width: 6px !important;
}

.prometheus-messages:hover {
    scrollbar-width: thin !important;
}

/* Atlas Inline Graph (matches /atlas/concepts/* theme) */
.chat-graph-container { margin: 16px 0; border: 1px solid #2e2e2e; border-radius: 6px; background: #1B1B1B; overflow: hidden; max-width: 100%; align-self: stretch; }
.chat-graph-header { padding: 10px 16px; background: #1B1B1B; border-bottom: 1px solid #2e2e2e; font-family: 'Fira Code', monospace; font-size: 11px; font-weight: 500; color: #9a9a9a; letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px; }
.chat-graph-header svg { width: 14px; height: 14px; opacity: 0.7; color: #9a9a9a; }
.atlas-graph { width: 100%; height: auto; display: block; max-width: 720px; margin: 0 auto; background: #1B1B1B; }
.atlas-graph .node-box { fill: #242424; stroke: #2e2e2e; stroke-width: 1; }
.atlas-graph .node-self .node-box { fill: #242424; stroke: #fcb900; stroke-width: 2; }
.atlas-graph .node-label { fill: #F0F0F0; font-family: 'Ysabeau Office', system-ui, sans-serif; font-size: 13px; font-weight: 400; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.atlas-graph .node-self .node-label { fill: #fcb900; font-weight: 600; }
.atlas-graph .level-label { fill: #9a9a9a; font-family: 'Fira Code', monospace; font-size: 11px; text-anchor: start; dominant-baseline: middle; pointer-events: none; }
.atlas-graph .edge { stroke: #9a9a9a; stroke-width: 1; fill: none; marker-end: url(#arrow); opacity: 0.5; }
.atlas-graph .edge-direct { stroke: #fcb900; stroke-width: 2.5; opacity: 0.9; marker-end: url(#arrow-direct); fill: none; }
.atlas-graph .arrow-head { fill: #9a9a9a; }
.atlas-graph .arrow-head-direct { fill: #fcb900; }
.atlas-graph .node-link { cursor: pointer; }
.atlas-graph .node-link:hover .node-box { stroke: #8ed1fc; }
.atlas-graph .node-link:hover .node-label { fill: #8ed1fc; }
.chat-graph-footer { padding: 8px 16px; background: #1B1B1B; border-top: 1px solid #2e2e2e; font-family: 'Ysabeau Office', system-ui, sans-serif; font-size: 13px; color: #9a9a9a; }
.chat-graph-footer a { color: #8ed1fc; text-decoration: none; }
.chat-graph-footer a:hover { text-decoration: underline; }
