/* CSS Variables - Claude.ai inspired warm theme */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #F5F0E8;
    --bg-tertiary: #EBE5DC;
    --bg-input: #F7F4F0;
    --text-primary: #1a1a1a;
    --text-secondary: #5D5D5D;
    --text-muted: #9B9B9B;
    --border: #E5E0D8;
    --border-light: #F0EBE4;
    --accent: #D97757;
    --accent-hover: #C4684A;
    --accent-light: #FDF4F0;
    --accent-green: #10a37f;
    --accent-green-light: #e6f7f2;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

[x-cloak] {
    display: none !important;
}

/* ======================== */
/* Landing Page - Claude.ai */
/* ======================== */

.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.chatgpt-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Claude-style greeting */
.claude-greeting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.claude-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.claude-title {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Landing Cards Layout */
.landing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 32px;
}

@media (max-width: 600px) {
    .landing-cards {
        grid-template-columns: 1fr;
    }
}

/* Persona Card - Claude style */
.persona-card {
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

/* Knowledge Base Card */
.knowledge-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.knowledge-card:hover {
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

.knowledge-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.knowledge-header svg:first-child {
    color: var(--accent);
}

.knowledge-title {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.knowledge-arrow {
    color: var(--text-muted);
    transition: transform 0.2s;
}

.knowledge-card:hover .knowledge-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

.knowledge-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-icon {
    font-size: 14px;
}

.stat-divider {
    color: var(--text-muted);
}

.git-sync {
    color: var(--accent-green);
}

.git-sync svg {
    color: var(--accent-green);
}

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

.persona-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.persona-info {
    flex: 1;
}

.persona-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.persona-role {
    font-size: 14px;
    color: var(--accent);
    margin: 0;
}

.persona-details {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.persona-details p {
    margin: 4px 0;
}

.persona-details strong {
    color: var(--text-primary);
}

.skills-link {
    margin-left: auto;
    padding: 8px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.15s;
}

.skills-link:hover {
    background: var(--accent-light);
    color: var(--accent);
}

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

/* Calendar Section - Claude style */
.calendar-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 24px;
}

.calendar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.calendar-header svg {
    color: var(--text-muted);
}

.calendar-source {
    font-weight: 400;
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-event {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-event:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
}

.calendar-event.selected {
    background: var(--accent-light);
    border-color: var(--accent);
}

.event-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    min-width: 70px;
    padding-top: 2px;
}

.event-details {
    flex: 1;
}

.event-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.event-attendee {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.event-role {
    color: var(--text-muted);
}

.event-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.event-tag {
    font-size: 11px;
    padding: 4px 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
}

.event-action {
    color: var(--text-muted);
    padding-top: 4px;
    transition: all 0.2s;
    opacity: 0;
}

.calendar-event:hover .event-action {
    opacity: 1;
    transform: translateX(4px);
    color: var(--accent);
}

/* Section Divider */
.section-divider {
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-divider span {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Claude-style Input */
.chatgpt-input-container {
    width: 100%;
    max-width: 600px;
}

.chatgpt-form {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.chatgpt-form:focus-within {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

.chatgpt-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.5;
    resize: none;
    background: transparent;
    color: var(--text-primary);
    min-height: 24px;
    max-height: 200px;
}

.chatgpt-input::placeholder {
    color: var(--text-muted);
}

.chatgpt-input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
}

/* Input icons */
.input-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.input-icon-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.thinking-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    border: 1px solid var(--border);
}

.thinking-toggle:hover {
    background: var(--bg-secondary);
}

.thinking-toggle svg {
    flex-shrink: 0;
}

/* Submit button - Claude coral style */
.chatgpt-submit {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chatgpt-submit.active {
    background: var(--accent);
    color: white;
    cursor: pointer;
}

.chatgpt-submit.active:hover {
    background: var(--accent-hover);
}

/* Quick action buttons - Claude style */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--text-primary);
}

.quick-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Hint */
.chatgpt-hint {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.chatgpt-hint kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-family: var(--font-sans);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* ======================== */
/* Buttons                  */
/* ======================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

/* Loading Spinner */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner.dark {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent);
}

.loading-spinner.small {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

.loading-spinner.large {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

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

/* ======================== */
/* Modal - Claude style     */
/* ======================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-secondary);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

/* Result Sections in Modal */
.result-section {
    margin-bottom: 20px;
}

.result-section h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.result-section p {
    color: var(--text-primary);
    line-height: 1.6;
}

.result-section.collapsible {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.result-section.collapsible summary {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
}

.result-section.collapsible ol {
    margin-top: 12px;
    padding-left: 20px;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

.topic-name {
    font-weight: 500;
    color: var(--text-primary);
}

.topic-confidence {
    font-size: 12px;
    color: var(--text-muted);
}

.skill-status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.skill-status-item.attached {
    background: var(--accent-light);
    color: var(--accent);
}

.skill-status-item.attached svg {
    color: var(--accent);
}

.skill-status-item.available {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.skill-note {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.skill-circle {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: inline-block;
}

.section-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.skills-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
}

.skill-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 8px;
}

/* Question list */
.question-list {
    padding-left: 20px;
}

.question-list li {
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* ======================== */
/* Session Page             */
/* ======================== */

.session-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

/* Header - Claude style */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.header-persona-avatar {
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.session-name {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Main Layout */
.session-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h2 {
    font-size: 16px;
    font-weight: 600;
}

/* Transcript Panel */
.transcript-panel {
    background: var(--bg-primary);
}

.transcript-header-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.transcript-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.transcript-title svg {
    color: var(--accent);
}

.transcript-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.status-dot.active {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: pulse 1.5s ease-in-out infinite;
}

.status-time {
    font-size: 13px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Transcript Entries */
.transcript-entries {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transcript-entry {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.transcript-entry:hover {
    opacity: 0.85;
}

.entry-speaker-badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.badge-customer {
    background: #E8E4FF;
    color: #6B5CE7;
}

.badge-sigrid {
    background: var(--accent-light);
    color: var(--accent);
}

.entry-bubble {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    max-width: 85%;
}

.speaker-sigrid .entry-bubble {
    background: var(--accent-light);
}

.entry-bubble .entry-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.entry-bubble .entry-time {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Listening state */
.transcript-entry.listening {
    opacity: 0.8;
}

.transcript-entry.listening .entry-bubble {
    background: #FEF9E7;
    border: 1px dashed #F5C842;
}

.listening-text {
    color: var(--text-secondary) !important;
}

.listening-indicator {
    display: flex;
    gap: 3px;
    margin-top: 6px;
}

.listening-indicator .dot {
    width: 4px;
    height: 4px;
    background: #F5C842;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.listening-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.listening-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* Transcript Controls */
.transcript-controls {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-record-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-record-main:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-record-main.recording {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-record-main.unsupported {
    opacity: 0.5;
    cursor: not-allowed;
}

.record-icon svg {
    display: block;
}

.record-pulse {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.manual-input {
    display: flex;
    gap: 10px;
}

.manual-text-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.manual-text-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
}

.manual-text-input::placeholder {
    color: var(--text-muted);
}

.btn-send {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-send:hover:not(:disabled) {
    background: var(--accent-hover);
}

.btn-send:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Copilot Panel */
.copilot-panel {
    background: var(--bg-secondary);
}

.copilot-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.copilot-section {
    margin-bottom: 24px;
}

.copilot-section h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.summary-text {
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--bg-primary);
    padding: 14px 18px;
    border-radius: var(--radius-md);
}

/* Skill Fired */
.skill-fired-item {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid var(--accent);
}

.skill-fired-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.skill-fired-icon {
    font-size: 14px;
}

.skill-fired-domains {
    font-weight: 600;
    color: var(--accent);
}

.skill-fired-confidence {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.skill-fired-reason {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Skills Checklist */
.skills-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.skills-header svg {
    color: var(--text-muted);
}

.skills-header h3 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin: 0;
}

.skills-label-active {
    background: var(--accent-green);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 4px;
    font-size: 10px;
}

.skill-checklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
}

.skill-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-check-item.active .skill-checkbox {
    background: var(--accent-green);
    color: white;
}

.skill-check-item.available .skill-checkbox {
    background: var(--bg-tertiary);
    border: none;
}

.skill-check-item.active .skill-name {
    color: var(--text-primary);
    font-weight: 500;
}

.skill-check-item.available .skill-name {
    color: var(--text-muted);
}

.no-skills {
    color: var(--text-muted);
    font-style: italic;
}

.router-recommendation {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: monospace;
    color: var(--text-secondary);
}

.router-label {
    color: var(--text-muted);
}

.router-suggestion {
    color: var(--accent);
    font-weight: 500;
    margin: 0 4px;
}

/* Answer Card */
.answer-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.answer-text {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.answer-sources,
.answer-caveats {
    margin-bottom: 12px;
}

.answer-sources h4,
.answer-caveats h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.answer-sources ul,
.answer-caveats ul {
    list-style: none;
    padding-left: 16px;
}

.answer-sources li,
.answer-caveats li {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    position: relative;
}

.answer-sources li::before {
    content: "📄";
    position: absolute;
    left: -16px;
    font-size: 11px;
}

.answer-caveats li::before {
    content: "⚠️";
    position: absolute;
    left: -16px;
    font-size: 11px;
}

.source-file {
    font-family: monospace;
    font-size: 12px;
}

.answer-confidence {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.confidence-value {
    font-weight: 600;
    color: var(--accent);
}

/* Ask Form */
.ask-form {
    display: flex;
    gap: 8px;
}

.ask-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--bg-primary);
}

.ask-form input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Claude Processing */
.claude-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    animation: pulse-border 1.5s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: var(--accent); }
    50% { border-color: transparent; }
}

/* ======================== */
/* Summary Page             */
/* ======================== */

.summary-container {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.summary-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Interview Archive Banner */
.archive-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--accent-green-light) 0%, #e8f5f1 100%);
    border: 1px solid var(--accent-green);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
}

.archive-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.archive-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.archive-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-green);
}

.archive-path {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-green);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s;
}

.archive-link:hover {
    background: rgba(16, 163, 127, 0.1);
}

.summary-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.summary-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.summary-section h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.call-summary-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.outcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
}

.outcome-label {
    font-size: 13px;
    color: var(--text-muted);
}

.outcome-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

.topic-list,
.pain-list,
.requirements-list,
.followup-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.topic-list li,
.pain-list li,
.requirements-list li,
.followup-list li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.topic-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.pain-list li::before {
    content: "!";
    position: absolute;
    left: 0;
    width: 14px;
    height: 14px;
    background: #fef3c7;
    color: #d97706;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 3px;
}

.requirements-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.followup-list li::before {
    content: "☐";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* Skills Summary */
.skills-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-group-label {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 80px;
}

.skill-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
}

.skill-tag.skill-used {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.skill-tag.skill-helpful {
    background: var(--accent-light);
    color: var(--accent);
}

/* Proposals */
.section-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.proposals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.proposal-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.2s ease;
}

.proposal-card.approved {
    border-color: var(--accent);
    background: var(--accent-light);
}

.proposal-card.dismissed {
    opacity: 0.5;
}

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

.proposal-skill {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.proposal-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    color: var(--text-muted);
}

.proposal-file {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
    margin-bottom: 12px;
}

.proposal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.proposal-content pre {
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-secondary);
    font-family: monospace;
}

.proposal-rationale {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 12px;
}

.proposal-actions {
    display: flex;
    gap: 8px;
}

.btn-approve {
    padding: 6px 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-approve:hover {
    background: var(--accent-hover);
}

.btn-dismiss {
    padding: 6px 14px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-dismiss:hover {
    background: var(--bg-secondary);
}

.proposal-status {
    padding-top: 8px;
}

.status-approved {
    color: var(--accent);
    font-weight: 500;
    font-size: 13px;
}

.status-dismissed {
    color: var(--text-muted);
    font-size: 13px;
}

/* Loading & Empty States */
.summary-loading,
.summary-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.summary-loading p,
.summary-empty p {
    color: var(--text-muted);
    margin-top: 16px;
}

/* Error Toast */
.error-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--error);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .session-main {
        grid-template-columns: 1fr;
    }

    .transcript-panel {
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 50vh;
    }
}
