
/* Additive enterprise polish for session screen (no layout restructure) */
.session-shell { background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); }
.session-bar { background: #fff !important; border-bottom: 1px solid #e2e8f0 !important; box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 4px 16px -8px rgba(15,23,42,0.06); height: 56px; }
.session-bar .brand { font-weight: 600; }
.session-bar .lang-select { border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 10px; background: #fff; font-size: 13px; }

/* Wrap context + body in an enterprise gutter */
.context-bar { max-width: 1280px; margin: 16px auto 0; padding: 0 20px; }
.session-body { max-width: 1280px; margin: 12px auto 0; padding: 0 20px 20px; gap: 14px; }

/* Promote panes to proper cards with chrome */
.transcript-pane, .hint-pane { background: #fff; border: 1px solid #e2e8f0 !important; border-radius: 14px !important; box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 12px 32px -20px rgba(15,23,42,0.12); overflow: hidden; }
.pane-header { padding: 14px 18px; border-bottom: 1px solid #f1f5f9; background: linear-gradient(180deg, #fbfcfd 0%, #fff 100%); }
.pane-header h3 { font-size: 12.5px !important; font-weight: 600 !important; color: #475569 !important; letter-spacing: 0.06em !important; text-transform: uppercase; }
.pane-header h3::before { content: ""; display: inline-block; width: 4px; height: 14px; background: var(--accent); border-radius: 2px; margin-right: 10px; vertical-align: -2px; }
.transcript, .empty-state { padding: 18px 20px; }
.transcript { display: flex; flex-direction: column; gap: 10px; }

/* Transcript bubbles look more like chat */
.t-line { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: 10px; background: #fafbfc; border: 1px solid #f1f5f9; }
.t-line.them { background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%); border-color: #dbeafe; }
.t-line.you { background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%); border-color: #dcfce7; }
.t-tag { font-size: 10.5px !important; font-weight: 700 !important; padding: 2px 8px !important; border-radius: 4px !important; letter-spacing: 0.04em; text-transform: uppercase; }
.t-tag.them { background: #2563eb; color: #fff; }
.t-tag.you { background: #16a34a; color: #fff; }

/* Claude bubble — chat-style card */
.claude-bubble { margin: 14px 16px; padding: 14px 16px; background: linear-gradient(180deg, #fffdfa 0%, #fff 100%); border: 1px solid #f3e8d8; border-radius: 12px; box-shadow: 0 4px 12px -6px rgba(217,119,87,0.18); }
.claude-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.claude-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #d97757 0%, #c2410c 100%); color: #fff; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.claude-name { font-size: 13px; font-weight: 600; color: #0f172a; }
.claude-time { font-size: 11.5px; color: #94a3b8; }
.claude-bubble ol { margin: 0 0 12px 18px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.claude-bubble ol li { font-size: 13.5px; line-height: 1.55; color: #1e293b; padding-left: 4px; cursor: pointer; transition: color 0.12s; }
.claude-bubble ol li:hover { color: #0f172a; }
.claude-bubble ol li::marker { color: #d97757; font-weight: 700; }
.hint-actions { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid #fef3c7; }
.hint-actions .meta { font-size: 11.5px; color: #94a3b8; }
.hint-actions .spacer { flex: 1; }
.icon-btn { font-size: 11.5px; padding: 4px 10px; border-radius: 6px; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; color: #475569; }
.icon-btn:hover { background: #f8fafc; border-color: #cbd5e1; }

.thinking-card { margin: 14px 16px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; background: #fafbfc; border: 1px dashed #cbd5e1; border-radius: 12px; }
.thinking-wave { display: inline-flex; gap: 4px; }
.thinking-wave span { width: 6px; height: 6px; border-radius: 50%; background: #d97757; animation: dotPulse 1s infinite; }
.thinking-wave span:nth-child(2) { animation-delay: 0.18s; }
.thinking-wave span:nth-child(3) { animation-delay: 0.36s; }
.thinking-text { font-size: 13px; color: #64748b; }

/* Context bar — looks like a side card */
.context-summary, .context-expanded { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.context-expanded { padding: 16px 18px; }
.context-types .chip { border-radius: 8px; }

/* Trial banner — pill across the top of work area */
.trial-banner { max-width: 1280px; margin: 14px auto 0 !important; padding: 10px 18px !important; background: linear-gradient(90deg, #fefce8 0%, #fef3c7 100%) !important; border: 1px solid #fde68a !important; border-radius: 10px !important; box-shadow: 0 1px 2px rgba(15,23,42,0.03); }
.trial-banner.warn { background: linear-gradient(90deg, #fef2f2 0%, #fee2e2 100%) !important; border-color: #fecaca !important; }

/* Context as topbar trigger + side drawer */
.ctx-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; font-size: 13px; color: #475569; transition: all 0.12s; }
.ctx-trigger:hover { border-color: var(--accent); background: var(--accent-soft); color: #0f172a; }
.ctx-trigger-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
.ctx-trigger.needs .ctx-trigger-dot { background: #f59e0b; animation: pulse 1.4s infinite; }
.ctx-trigger.needs { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.ctx-trigger-arrow { color: #94a3b8; font-size: 13px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(245, 158, 11, 0); } }

.ctx-drawer-shade { position: fixed; inset: 0; background: rgba(15,23,42,0.35); backdrop-filter: blur(3px); z-index: 8000; animation: fadeIn 0.18s ease; }
.ctx-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 92vw; background: #fff; box-shadow: -16px 0 48px -16px rgba(15,23,42,0.18); display: flex; flex-direction: column; animation: slideIn 0.24s cubic-bezier(.2,.9,.3,1.05); }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.ctx-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 24px 16px; border-bottom: 1px solid #f1f5f9; }
.ctx-drawer-head h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; color: #0f172a; }
.ctx-drawer-head p { margin: 0; font-size: 13px; color: #64748b; line-height: 1.5; }
.ctx-drawer-x { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; font-size: 22px; color: #64748b; flex-shrink: 0; }
.ctx-drawer-x:hover { background: #f1f5f9; color: #0f172a; }
.ctx-drawer-body { flex: 1; padding: 20px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.ctx-field-label { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; display: block; }
.ctx-drawer-body .context-types { display: flex; flex-wrap: wrap; gap: 8px; }
.ctx-drawer-body .context-textarea { width: 100%; min-height: 240px; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 10px; font-family: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
.ctx-drawer-body .context-textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ctx-drawer-foot { display: flex; align-items: center; gap: 10px; padding: 16px 24px; border-top: 1px solid #f1f5f9; background: #fafbfc; }
.ctx-drawer-foot .spacer { flex: 1; }
.ctx-saved-tag { font-size: 13px; color: #10b981; font-weight: 500; transition: opacity 0.18s; }

/* Flow stepper in session top bar */
.flow-stepper { display: flex; align-items: center; gap: 4px; padding: 4px 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.flow-step { display: flex; align-items: center; gap: 8px; padding: 5px 10px; background: transparent; border: 0; border-radius: 7px; cursor: default; font: inherit; text-align: left; color: #94a3b8; }
.flow-step.is-clickable { cursor: pointer; }
.flow-step.is-clickable:hover { background: #fff; }
.flow-step.is-active { background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,0.06); color: #0f172a; }
.flow-step.is-done { color: #0f172a; }
.flow-bullet { width: 22px; height: 22px; border-radius: 50%; background: #e2e8f0; color: #64748b; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.flow-step.is-active .flow-bullet { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.flow-step.is-done .flow-bullet { background: #10b981; color: #fff; }
.flow-meta { display: flex; flex-direction: column; line-height: 1.15; }
.flow-label { font-size: 12.5px; font-weight: 600; }
.flow-sub { font-size: 10.5px; color: #94a3b8; }
.flow-step.is-active .flow-sub { color: var(--accent); }
.flow-step.is-done .flow-sub { color: #10b981; }
.flow-arrow { display: inline-block; width: 14px; height: 1px; background: #cbd5e1; position: relative; flex-shrink: 0; }
.flow-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 5px; height: 5px; border-right: 1px solid #cbd5e1; border-top: 1px solid #cbd5e1; transform: rotate(45deg); }
.flow-arrow.is-done { background: #10b981; }
.flow-arrow.is-done::after { border-color: #10b981; }
