:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #1a1a1d;
    --bg-elevated: #222225;
    --border: #2a2a2e;
    --border-subtle: #1e1e21;
    --text-primary: #fafafa;
    --text-secondary: #a0a0a5;
    --text-muted: #606065;
    --accent: #22c55e;
    --accent-dim: #16a34a;
    --accent-glow: rgba(34, 197, 94, 0.15);
    --error: #ef4444;
    --warning: #f59e0b;
    --mono: 'DM Mono', monospace;
    --sans: 'Instrument Sans', -apple-system, sans-serif;
}

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

body {
    font-family: var(--sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

/* Logo */
.logo-mark {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-weight: 500;
    font-size: 12px;
    color: var(--bg-primary);
}

/* Section labels */
.section-label, .section-title, .result-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Review styles shared between pages */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
}

.review-rating { font-size: 18px; flex-shrink: 0; }

.review-node {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    flex-shrink: 0;
}

.review-reason { color: var(--text-secondary); flex: 1; }

.review-date {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.review-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.review-form-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.review-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-elevated);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.review-btn:hover { border-color: var(--accent); }
.review-btn.selected { border-color: var(--accent); background: var(--accent-glow); }

.review-input {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s;
}

.review-input::placeholder { color: var(--text-muted); }
.review-input:focus { border-color: var(--accent); }

.review-submit {
    padding: 6px 12px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--bg-primary);
    background: var(--accent);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.review-submit:hover { opacity: 0.85; }
.review-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* Spinner */
.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
