:root {
  --bg: #f6f1e9;
  --card: #fffaf5;
  --ink: #4b4d52;
  --muted: #777a81;
  --accent: #d88400;
  --accent-strong: #b86d00;
  --accent-soft: #f2d6a1;
  --border: #ddd2c2;
  --panel: #f7efe4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(216, 132, 0, 0.16) 0, transparent 24%),
    radial-gradient(circle at 86% 8%, rgba(133, 135, 141, 0.08) 0, transparent 20%),
    linear-gradient(135deg, #f6f1e9 0%, #ece3d8 100%);
}

.shell {
  width: min(1180px, 95%);
  margin: 1rem auto 1.5rem;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1.15fr) minmax(340px, 0.82fr);
  gap: 1rem;
  align-items: start;
}

.workspace-grid.text-only {
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
}

.workspace-primary {
  min-height: calc(100vh - 11rem);
}

.workspace-side {
  display: grid;
  gap: 0.9rem;
}

.workspace-side.hidden {
  display: none;
}

.shell-hidden {
  display: none;
}

.recent-conversations-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  margin-bottom: 0;
}

.recent-conversations-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.75rem;
}

.recent-conversations-header h2 {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
}

.recent-conversations-list {
  display: grid;
  gap: 0.6rem;
  overflow: auto;
  min-height: 6rem;
}

.recent-conversations-list.empty {
  color: var(--muted);
}

.recent-conversation-item {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #e1d2bf;
  background: #fffdf9;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.recent-conversation-item:hover,
.recent-conversation-item:focus-within {
  border-color: #c98d2c;
  box-shadow: 0 6px 18px rgba(93, 64, 20, 0.08);
  transform: translateY(-1px);
}

.recent-conversation-item.active {
  border-color: var(--accent-strong);
  background: #fff7ec;
}

.recent-conversation-title {
  display: block;
  margin-bottom: 0.28rem;
  font-weight: 700;
  color: #50535a;
}

.recent-conversation-item-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
}

.recent-conversation-open {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.recent-conversation-open:focus-visible,
.recent-conversation-delete:focus-visible {
  outline: 2px solid rgba(184, 109, 0, 0.45);
  outline-offset: 2px;
  border-radius: 8px;
}

.recent-conversation-delete {
  border: 0;
  background: transparent;
  color: #9a6c53;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.2rem;
}

.recent-conversation-delete:hover {
  color: #7a4026;
}

.recent-conversation-preview {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.recent-conversation-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #8a7d6c;
  font-size: 0.78rem;
}

.auth-shell {
  width: min(560px, 92%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  background:
    radial-gradient(circle at top right, rgba(216, 132, 0, 0.18), transparent 28%),
    linear-gradient(135deg, #fffaf5 0%, #f4ede4 100%);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 28px rgba(75, 77, 82, 0.08);
}

.hero-session {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.hero-brand {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 0.35rem;
  font-size: 1.9rem;
  color: #50535a;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-user {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #dfccb3;
  background: rgba(255, 250, 245, 0.9);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 4px 16px rgba(42, 34, 24, 0.06);
}

.card-details {
  padding: 0;
  overflow: hidden;
}

.card-details > summary {
  list-style: none;
  margin: 0;
  padding: 1rem 1rem 0.95rem;
  color: #55585e;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
}

.card-details > summary::-webkit-details-marker {
  display: none;
}

.card-details > summary::after {
  content: "Hide";
  float: right;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-details:not([open]) > summary::after {
  content: "Show";
}

.card-details-body {
  padding: 0 1rem 1rem;
}

.claude-card-summary {
  margin: 0;
  padding: 1.15rem 1.35rem 0.4rem;
  color: #55585e;
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.claude-card {
  background:
    radial-gradient(circle at top right, rgba(216, 132, 0, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(216, 132, 0, 0.08), transparent 28%),
    linear-gradient(145deg, #fffdf9 0%, #f6ecdf 100%);
  border-color: #d3b996;
  box-shadow: 0 14px 34px rgba(68, 49, 24, 0.12);
  position: sticky;
  top: 1rem;
  height: calc(100vh - 2rem);
  margin-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.claude-card .card-details-body {
  padding: 0 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.claude-card-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.claude-card-header h2 {
  margin: 0.15rem 0 0;
  font-size: 1.55rem;
  color: #4c4f55;
}

.claude-kicker {
  display: inline-block;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.claude-card-meta {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
  max-width: 28ch;
}

.active-skill-banner {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid #d8c2a0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8ef 0%, #f8ead6 100%);
  color: #6a4c18;
  font-size: 0.84rem;
  font-weight: 700;
}

.active-skill-banner::before {
  content: "Claude Skill";
  display: inline-block;
  padding: 0.16rem 0.46rem;
  border-radius: 999px;
  background: rgba(216, 132, 0, 0.14);
  color: var(--accent-strong);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.claude-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.claude-actions .status {
  color: var(--accent-strong);
  font-weight: 600;
}

.claude-chat-thread {
  display: grid;
  gap: 0.9rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 0.95rem;
  border: 1px solid #e0cfbb;
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.claude-chat-thread.empty {
  background: rgba(255, 250, 244, 0.94);
  border: 1px dashed #d7c3aa;
  border-radius: 18px;
  padding: 1rem;
  color: var(--muted);
}

.claude-chat-turn {
  max-width: 92%;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid #e0d0bc;
  background: #fff;
  box-shadow: 0 8px 18px rgba(42, 34, 24, 0.06);
}

.claude-chat-turn.user {
  justify-self: end;
  background: linear-gradient(180deg, #f6e6d2 0%, #f3e0c7 100%);
}

.claude-chat-turn.assistant {
  justify-self: start;
  background: linear-gradient(180deg, #fffdf9 0%, #fdf6ee 100%);
}

.claude-chat-label {
  margin-bottom: 0.45rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.claude-chat-body {
  color: var(--ink);
  line-height: 1.65;
  white-space: pre-wrap;
}

.claude-chat-body.formatted p,
.claude-chat-body.formatted ul,
.claude-chat-body.formatted h3 {
  margin-top: 0;
}

.claude-chat-body.formatted p {
  margin-bottom: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.72;
}

.claude-chat-body.formatted ul {
  margin-bottom: 0.9rem;
  padding-left: 1.2rem;
}

.claude-chat-body.formatted li {
  margin-bottom: 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

.claude-chat-body.formatted strong {
  color: #4a4d52;
}

.claude-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.claude-chat-attachment {
  margin-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border: 1px solid #dfccb3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #5c5f65;
  font-size: 0.82rem;
  font-weight: 600;
}

.claude-chat-snippet {
  margin-top: 0.85rem;
  border: 1px solid #dfccb3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.claude-chat-snippet summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #5a5d63;
}

.claude-chat-snippet summary::-webkit-details-marker {
  display: none;
}

.claude-chat-snippet ul {
  margin: 0;
  padding: 0 1rem 0.9rem 1.5rem;
}

.claude-chat-snippet li {
  margin-bottom: 0.4rem;
  line-height: 1.55;
  color: #474b50;
}

.claude-chat-action-button {
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  box-shadow: none;
}

.claude-composer {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #e1ceb5;
  position: sticky;
  bottom: 0;
  flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(246, 236, 223, 0.4) 0%, rgba(246, 236, 223, 0.96) 22%);
  backdrop-filter: blur(4px);
}

.claude-composer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
  padding: 0.85rem;
  border: 1px solid #d7bd99;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(58, 42, 18, 0.05);
}

.claude-attachment-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.claude-attachment-control {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid #dfccb3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.claude-attachment-control input {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.claude-composer-input {
  margin-top: 0;
  min-height: 58px;
  max-height: 180px;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  resize: none;
  overflow-y: auto;
  line-height: 1.5;
}

.claude-composer-input:focus {
  outline: none;
}

.claude-send-button {
  min-width: 98px;
  height: 50px;
  border-radius: 999px;
  padding: 0 1.15rem;
  font-weight: 700;
}

.claude-composer-actions {
  align-items: center;
  margin-top: 0;
}

.load-actions {
  align-items: stretch;
}

.inline-status {
  flex: 1 1 420px;
  margin: 0;
  min-height: 52px;
}

.login-card {
  width: 100%;
  background:
    radial-gradient(circle at top left, rgba(216, 132, 0, 0.17), transparent 34%),
    linear-gradient(135deg, #fffaf5 0%, #f3ebe0 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 18px 44px rgba(75, 77, 82, 0.14);
  text-align: center;
}

.brand-lockup {
  display: block;
  width: 100%;
  height: auto;
}

.hero-lockup {
  max-width: 390px;
}

.login-lockup {
  max-width: 440px;
  margin: 0 auto 1.4rem;
}

.login-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
  color: #50535a;
}

.login-card p {
  color: var(--muted);
}

.card h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 0.75rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.required-indicator {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #f7ede0;
  border: 1px solid #dfccb3;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid #c8bcae;
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  color: #fffaf5;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(216, 132, 0, 0.24);
}

button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  background: #6b6e75;
  box-shadow: 0 8px 18px rgba(107, 110, 117, 0.2);
}

.secondary-button:hover {
  background: #565960;
}

.output {
  background: #222019;
  color: #f2ede2;
  border-radius: 10px;
  padding: 0.75rem;
  overflow: auto;
  min-height: 64px;
  white-space: pre-wrap;
}

.analysis-status {
  margin-top: 0.3rem;
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e4d6c4;
  border-radius: 10px;
  background: #fbf6ef;
  color: var(--ink);
}

.workflow-card {
  background:
    radial-gradient(circle at top right, rgba(216, 132, 0, 0.12), transparent 36%),
    linear-gradient(145deg, #fffbf7 0%, #f8efe4 100%);
}

.workflow-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.8rem;
}

.workflow-card-header h2 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  color: #55585e;
}

.workflow-save-panel {
  margin-top: 0.9rem;
  padding: 0.95rem;
  border: 1px solid #e4d6c4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.saved-workflows-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.saved-workflows-list.empty {
  padding: 0.95rem;
  border: 1px dashed #dccab3;
  border-radius: 12px;
  background: rgba(255, 250, 245, 0.78);
  color: var(--muted);
}

.workflow-item {
  padding: 0.9rem 0.95rem;
  border: 1px solid #e2d3c1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.workflow-item-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}

.workflow-item-title {
  margin: 0;
  color: #4f5258;
  font-size: 0.98rem;
}

.workflow-item-meta {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.workflow-item-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.workflow-item-button {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  box-shadow: none;
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(54, 48, 40, 0.42);
  backdrop-filter: blur(4px);
}

.help-panel {
  width: min(920px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  background: #fffaf5;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 22px 56px rgba(42, 34, 24, 0.24);
}

.help-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.help-panel-header h2 {
  margin: 0.15rem 0 0;
  color: #55585e;
}

.help-content {
  display: grid;
  gap: 0.8rem;
}

.help-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.65rem;
}

.developer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #dfccb3;
  border-radius: 999px;
  background: #fbf6ef;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.developer-toggle input {
  width: auto;
  margin: 0;
}

.help-item {
  border: 1px solid #e4d6c4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.help-item summary {
  margin: 0;
  list-style: none;
  padding: 0.9rem 1rem;
  background: #fbf6ef;
}

.help-item summary::-webkit-details-marker {
  display: none;
}

.help-item-body {
  display: grid;
  gap: 0.65rem;
  padding: 0.95rem 1rem 1rem;
}

.help-item-body p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.help-item-body ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
}

.help-item-body li {
  margin-bottom: 0.35rem;
  line-height: 1.55;
}

.help-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.help-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #dfccb3;
  background: #f7ede0;
  color: #55585e;
  font-size: 0.82rem;
  font-weight: 600;
}

.reconciliation-results {
  display: grid;
  gap: 1rem;
}

.reconciliation-results.empty {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1rem;
  color: var(--muted);
}

.reconciliation-summary-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reconciliation-stat {
  background: #fbf6ef;
  border: 1px solid #ece2d6;
  border-radius: 12px;
  padding: 0.85rem;
}

.reconciliation-stat.exception {
  background: #fff5ea;
  border-color: #e5c79f;
}

.reconciliation-stat-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reconciliation-stat-value {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
}

.reconciliation-section {
  display: grid;
  gap: 0.55rem;
}

.reconciliation-section h3 {
  margin: 0;
  color: #55585e;
  font-size: 1rem;
}

.exception-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reconciliation-empty {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px dashed #e4d6c4;
  border-radius: 10px;
  background: #fbf6ef;
  color: var(--muted);
}

.conversation-thread {
  display: grid;
  gap: 0.85rem;
}

.conversation-thread.empty {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1rem;
  color: var(--muted);
}

.conversation-turn {
  border: 1px solid #e4d6c4;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: #fff;
}

.conversation-turn.user {
  background: #fbf6ef;
}

.conversation-turn.assistant {
  background: #fffaf5;
}

.conversation-role {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conversation-text {
  color: var(--ink);
  line-height: 1.65;
  white-space: pre-wrap;
}

.bc-preview {
  display: grid;
  gap: 0.9rem;
}

.preview-filters {
  margin-bottom: 0.9rem;
  padding: 0.9rem;
  border: 1px solid #ece2d6;
  border-radius: 12px;
  background: #fbf6ef;
}

.bc-preview.empty {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1rem;
  color: var(--muted);
}

.bc-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.bc-chip {
  background: #f7ede0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.bc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.bc-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.bc-table th,
.bc-table td {
  padding: 0.7rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ece2d6;
  vertical-align: top;
}

.bc-table th {
  background: #f8eee2;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bc-table tr:last-child td {
  border-bottom: 0;
}

.bc-actions-cell {
  min-width: 190px;
}

.bc-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bc-action-button {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  box-shadow: none;
}

.bc-action-button:hover {
  transform: translateY(-1px);
}

.bc-record-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bc-field {
  background: #fbf6ef;
  border: 1px solid #ece2d6;
  border-radius: 10px;
  padding: 0.8rem;
}

.bc-field-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bc-field-value {
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}

.bc-raw summary {
  margin-bottom: 0;
}

.bc-raw pre {
  margin: 0.7rem 0 0;
}

.status {
  color: var(--muted);
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.row-hidden {
  display: none !important;
}

.thinking {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 600;
}

.thinking-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 1s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(216, 132, 0, 0.35);
}

.hint {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

details {
  margin-top: 0.6rem;
}

summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(216, 132, 0, 0.35);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(216, 132, 0, 0);
  }

  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(13, 106, 111, 0);
  }
}

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

  .workspace-primary {
    min-height: auto;
  }

  .workspace-side {
    gap: 0.75rem;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .grid.three {
    grid-template-columns: 1fr;
  }

  .bc-record-grid {
    grid-template-columns: 1fr;
  }

  .reconciliation-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .exception-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-brand {
    grid-template-columns: 1fr;
  }

  .hero-session {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .hero-lockup {
    max-width: 300px;
  }

  .claude-card-header {
    flex-direction: column;
    align-items: start;
  }

  .claude-card-meta {
    text-align: left;
  }

  .claude-card {
    position: static;
    height: auto;
  }

  .recent-conversations-card {
    position: static;
    max-height: none;
  }

  .claude-card .card-details-body {
    min-height: auto;
    height: auto;
  }

  .claude-composer {
    position: static;
    background: transparent;
    backdrop-filter: none;
  }

  .help-panel-header {
    flex-direction: column;
  }
}
