:root {
    --bg-color: #0d1117;
    --panel-bg: #161b22;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent: #58a6ff;
    --success: #3fb950;
    --border: #30363d;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
}

.mission-status {
    background: var(--panel-bg);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.15);
    min-width: 350px;
}

.mission-status h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.arrow {
    color: var(--accent);
}

progress {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    appearance: none;
}

progress::-webkit-progress-bar {
    background-color: var(--bg-color);
    border-radius: 4px;
}

progress::-webkit-progress-value {
    background-color: var(--success);
    border-radius: 4px;
}

#balance-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}

.log-panel {
    background: var(--panel-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    height: 600px;
    display: flex;
    flex-direction: column;
}

.log-panel h2 {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
}

.logs-container {
    padding: 1rem;
    overflow-y: auto;
    flex-grow: 1;
}

.log-entry {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.log-time {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 0.85rem;
}

.log-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.log-badge.episodic {
    background: rgba(88, 166, 255, 0.15);
    color: var(--accent);
}

.log-badge.procedural {
    background: rgba(63, 185, 80, 0.15);
    color: var(--success);
}

.log-summary {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.log-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.log-tags {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* Decision Highlighting */
.decision-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-right: 0.5rem;
    border: 2px solid transparent;
}

.decision-buy {
    background: rgba(63, 185, 80, 0.2);
    color: #4ade80;
    border-color: #3fb950;
}

.decision-skip {
    background: rgba(139, 148, 158, 0.2);
    color: #8b949e;
    border-color: #484f58;
}

.decision-sell {
    background: rgba(248, 81, 73, 0.2);
    color: #ff7b72;
    border-color: #f85149;
}

.log-summary-text {
    vertical-align: middle;
}