/* ============================================================
   CHAT SHELL — Path C redesign
   Two-column conversation + evidence-panel layout, scoped to
   the chat screen only so other surfaces keep their styling.
   ============================================================ */

.screen--chat {
  --ink:           #0E0E10;
  --ink-2:         #16161A;
  --ink-3:         #1E1E24;
  --ink-line:      #2A2A32;
  --paper:         #F4F1EA;
  --bone:          #E8E3D7;
  --c-text:        #F4F1EA;
  --c-text-mute:   #8A8A95;
  --c-text-faint:  #54545E;
  --be-yellow:     #FFC217;
  --be-yellow-dim: #B88A10;
  --sec-hospitality: #DA80AB;
  --sec-retail:      #4A8F5E;
  --sec-finance:     #2E51B5;
  --sec-tech:        #E65300;
  --serif:   'Fraunces', Georgia, serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
  --display: 'Archivo Black', sans-serif;
  --c-ease:  cubic-bezier(.2,.7,.2,1);

  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--ink);
  color: var(--c-text);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.screen--chat.active { display: flex; }

/* SVG noise overlay — adds warmth to the dark surface */
.screen--chat::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* ---- shell grid ---- */
.chat-shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 1.25fr;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: grid-template-columns .6s var(--c-ease);
}
.chat-shell.no-panel { grid-template-columns: 1fr 0fr; }

/* ---- conversation column ---- */
.chat-convo {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink-line);
  background: var(--ink);
  overflow: hidden;
  min-width: 0;
}

.chat-convo-header {
  padding: 24px 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.chat-convo-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chat-convo-status .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--be-yellow);
  animation: chat-pulse 2.4s var(--c-ease) infinite;
}
@keyframes chat-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,194,23,.55); }
  50%      { box-shadow: 0 0 0 8px rgba(255,194,23,0); }
}
.chat-convo-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.chat-convo-meta .brief-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chat-convo-meta .brief-pulse__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-text-faint);
  transition: background .3s var(--c-ease);
}
.chat-convo-meta .brief-pulse.is-ready .brief-pulse__dot { background: var(--be-yellow); }
.chat-convo-meta .brief-pulse.is-ready .brief-pulse__text { color: var(--be-yellow); }
.chat-convo-meta .chat-back-btn {
  font: inherit;
  color: var(--c-text-mute);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color .2s var(--c-ease);
}
.chat-convo-meta .chat-back-btn:hover { color: var(--be-yellow); }

/* ---- messages ---- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 32px 36px 24px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--ink-line); border-radius: 3px; }

.msg {
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(8px);
  animation: chat-msgIn .5s var(--c-ease) forwards;
  max-width: 100%;
}
@keyframes chat-msgIn {
  to { opacity: 1; transform: translateY(0); }
}

.msg__sender {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: 10px;
}
.msg--visitor .msg__sender,
.msg--user .msg__sender { color: var(--be-yellow); }

.msg__bubble {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--c-text);
  max-width: 56ch;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg--visitor .msg__bubble,
.msg--user .msg__bubble {
  color: var(--c-text);
  font-style: italic;
  font-weight: 300;
}
.msg--visitor .msg__bubble::before,
.msg--user .msg__bubble::before { content: '\201C'; color: var(--be-yellow); margin-right: 4px; }
.msg--visitor .msg__bubble::after,
.msg--user .msg__bubble::after { content: '\201D'; color: var(--be-yellow); margin-left: 2px; }

.msg__body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--c-text);
  max-width: 56ch;
}
.msg__inline-link {
  color: var(--be-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.msg__inline-link:hover { color: var(--be-yellow); opacity: 0.85; }

.msg__bubble strong { font-weight: 600; color: var(--c-text); }
.msg__bubble em { font-style: italic; color: var(--be-yellow); }
.msg__bubble code { font-family: var(--mono); font-size: 0.92em; background: var(--ink-2); padding: 2px 6px; border-radius: 4px; }
.msg__bubble ul { padding-left: 1.2em; margin: 0.4em 0; }
.msg__bubble li { margin-bottom: 0.2em; }

.msg--system .msg__system-line {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  padding: 8px 12px;
  border: 1px dashed var(--ink-line);
  border-radius: 6px;
  display: inline-block;
}

/* Typing dots */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.typing-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-text-mute);
  animation: chat-dot 1.4s var(--c-ease) infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes chat-dot {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* Quick replies (chips) */
.chat-quick-replies {
  padding: 0 36px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-quick-replies:empty { display: none; }
.quick-reply {
  font: inherit;
  background: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--c-text-mute);
  padding: 8px 14px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  transition: all .2s var(--c-ease);
}
.quick-reply:hover {
  border-color: var(--be-yellow);
  color: var(--be-yellow);
  transform: translateY(-1px);
}
.quick-reply--case { color: var(--be-yellow); border-color: var(--be-yellow-dim); }
.quick-reply.is-active {
  color: var(--be-yellow);
  border-color: var(--be-yellow);
  background: rgba(255, 194, 23, 0.08);
}

/* Escalate / handoff card */
.escalate-card {
  margin-top: 8px;
  padding: 18px 20px;
  background: var(--ink-2);
  border: 1px solid var(--be-yellow-dim);
  border-radius: 12px;
  max-width: 56ch;
}
.escalate-card__title {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--be-yellow);
}
.escalate-card__body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-text);
  margin-bottom: 12px;
  font-family: var(--serif);
}
.escalate-card__btn {
  font: inherit;
  cursor: pointer;
  background: var(--be-yellow);
  color: var(--ink);
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform .2s var(--c-ease);
}
.escalate-card__btn:hover { transform: translateY(-1px); }

/* ---- composer ---- */
.chat-input-row {
  border-top: 1px solid var(--ink-line);
  padding: 18px 36px 22px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color .2s var(--c-ease), box-shadow .3s var(--c-ease);
}
.chat-composer:focus-within { border-color: var(--be-yellow); }
.chat-composer.brief-flash {
  animation: chat-briefFlash 1.8s var(--c-ease);
}
@keyframes chat-briefFlash {
  0%   { border-color: var(--ink-line); box-shadow: 0 0 0 0 rgba(255,194,23,0); }
  20%  { border-color: var(--be-yellow); box-shadow: 0 0 0 6px rgba(255,194,23,.18); }
  100% { border-color: var(--ink-line); box-shadow: 0 0 0 0 rgba(255,194,23,0); }
}

.chat-input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--c-text);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  min-height: 22px;
}
.chat-input::placeholder { color: var(--c-text-faint); font-style: italic; }

.chat-send-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--be-yellow);
  color: var(--ink);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s var(--c-ease);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.chat-send-btn:hover { transform: rotate(-12deg) scale(1.05); }
.chat-composer-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--c-text-faint);
  text-transform: uppercase;
}

/* =============================================================
   RIGHT-HAND EVIDENCE PANEL
   ============================================================= */
.chat-panel-col {
  overflow-y: auto;
  background: var(--ink);
  position: relative;
  min-width: 0;
}
.chat-panel-col::-webkit-scrollbar { width: 6px; }
.chat-panel-col::-webkit-scrollbar-track { background: transparent; }
.chat-panel-col::-webkit-scrollbar-thumb { background: var(--ink-line); border-radius: 3px; }

.chat-panel-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  color: var(--c-text-faint);
  padding: 48px;
  text-align: center;
}
.chat-panel-empty__glyph {
  width: 80px; height: 80px;
  opacity: 0.2;
}
.chat-panel-empty__hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  max-width: 28ch;
  line-height: 1.6;
}

/* Pager (carousel header for multi-id markers) */
.panel-pager {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(14,14,16,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-faint);
}
.panel-pager__btn {
  font: inherit;
  background: none;
  border: 0;
  color: var(--c-text-mute);
  cursor: pointer;
  padding: 4px 8px;
  transition: color .2s var(--c-ease);
}
.panel-pager__btn:hover:not(:disabled) { color: var(--be-yellow); }
.panel-pager__btn:disabled { opacity: 0.3; cursor: default; }
.panel-pager__count { color: var(--c-text); }

.panel-content {
  animation: chat-panelIn .55s var(--c-ease);
}
@keyframes chat-panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- CASE STUDY: typographic ---- */
.case-typo { display: flex; flex-direction: column; }
.case-typo-hero {
  padding: 48px 56px 56px;
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  color: var(--c-text);
}
.case-typo[data-sector="hospitality"] .case-typo-hero,
.case-typo[data-sector="tourism"]    .case-typo-hero { background: var(--sec-hospitality); color: var(--ink); }
.case-typo[data-sector="retail"]     .case-typo-hero,
.case-typo[data-sector="fmcg"]       .case-typo-hero { background: var(--sec-retail); color: var(--paper); }
.case-typo[data-sector="finance"]    .case-typo-hero { background: var(--sec-finance); color: var(--paper); }
.case-typo[data-sector="technology"] .case-typo-hero,
.case-typo[data-sector="tech"]       .case-typo-hero { background: var(--sec-tech); color: var(--paper); }

.case-typo-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.85;
}
.case-typo-client {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.case-typo-headline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  max-width: 28ch;
  margin-bottom: 40px;
  opacity: 0.92;
}
.case-typo-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  border-top: 1px solid currentColor;
  padding-top: 24px;
}
.case-typo-metric .num {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.case-typo-metric .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1.4;
}

.case-typo-body { padding: 40px 56px 56px; background: var(--ink); }
.case-typo-body h3 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: 14px;
}
.case-typo-body p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  margin-bottom: 18px;
  max-width: 60ch;
}
.case-typo-body p:last-child { margin-bottom: 0; }

.case-typo-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Case-rich variant — when DB row has hero media */
.case-rich-hero {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: var(--ink);
}
.case-rich-hero img,
.case-rich-hero video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.case-rich-hero__overlay {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(14,14,16,0) 40%, rgba(14,14,16,.6) 100%);
}
.case-rich-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 12px;
}
.case-rich-title {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--paper);
}

/* ---- INSIGHT panel ---- */
.insight-panel {
  padding: 48px 56px 56px;
  background: var(--ink);
  color: var(--c-text);
}
.insight-panel__meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.insight-panel__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  max-width: 22ch;
}
.insight-panel__deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--c-text-mute);
  margin-bottom: 28px;
  max-width: 48ch;
}
.insight-panel__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.insight-panel__bullets li {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.insight-panel__bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--be-yellow);
}

/* ---- TEAM MEMBER panel ---- */
.team-panel {
  padding: 48px 56px 56px;
  min-height: 100%;
  background: var(--ink);
  color: var(--c-text);
}
.team-panel__meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.team-panel__portrait {
  width: 180px;
  height: 220px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-panel__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.team-panel__portrait .monogram {
  font-family: var(--display);
  font-size: 80px;
  color: var(--be-yellow);
  letter-spacing: -0.04em;
}
.team-panel__portrait[data-no-photo="true"]::after {
  content: 'AWAITING PORTRAIT';
  position: absolute;
  bottom: 10px; left: 12px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--c-text-faint);
}
.team-panel__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.team-panel__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--be-yellow);
  margin-bottom: 28px;
}
.team-panel__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.5;
  color: var(--c-text);
  border-left: 2px solid var(--be-yellow);
  padding-left: 18px;
  margin: 0 0 32px;
  max-width: 48ch;
}
.team-panel__section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
}
.team-panel__section h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: 12px;
}
.team-panel__section p,
.team-panel__section li {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
}
.team-panel__section ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-panel__section li::before { content: '— '; color: var(--c-text-faint); }
.team-panel__actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- ARCHITECTURE panel ---- */
.arch-panel {
  padding: 48px 56px 56px;
  background: var(--ink);
  color: var(--c-text);
}
.arch-panel__meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.arch-panel__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  max-width: 30ch;
}
.arch-panel__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--c-text-mute);
  margin-bottom: 32px;
  max-width: 48ch;
}
.arch-panel__diagram {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  padding: 24px;
  margin-bottom: 32px;
}
.arch-panel__flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.arch-panel__node {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  padding: 14px 18px;
  border: 1px solid var(--ink-line);
  background: var(--ink);
  position: relative;
}
.arch-panel__node.is-active {
  border-color: var(--be-yellow);
  background: var(--ink-3);
}
.arch-panel__node.is-active::before {
  content: '';
  position: absolute;
  left: -1px; top: -1px; bottom: -1px;
  width: 3px;
  background: var(--be-yellow);
}
.arch-panel__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-text-faint);
}
.arch-panel__node-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}
.arch-panel__node-desc {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--c-text-mute);
}
.arch-panel__connector {
  height: 12px;
  margin-left: 32px;
  width: 1px;
  background: var(--ink-line);
}
.arch-panel__notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.arch-panel__notes h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: 10px;
}
.arch-panel__notes p {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text);
}

/* Shared close button + action chips */
.panel-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity .2s var(--c-ease);
}
.panel-close:hover { opacity: 1; }

.panel-action {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-text);
  padding: 10px 16px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  transition: all .2s var(--c-ease);
}
.panel-action:hover {
  border-color: var(--be-yellow);
  color: var(--be-yellow);
  transform: translateY(-1px);
}
.panel-action.is-primary {
  background: var(--be-yellow);
  color: var(--ink);
  border-color: var(--be-yellow);
}
.panel-action.is-primary:hover { background: transparent; color: var(--be-yellow); }

/* Responsive — stack on smaller screens */
@media (max-width: 980px) {
  .chat-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(50%, 1fr) auto;
  }
  .chat-shell.no-panel { grid-template-rows: 1fr 0fr; }
  .chat-convo { border-right: 0; border-bottom: 1px solid var(--ink-line); }
  .chat-convo-header,
  .chat-messages,
  .chat-input-row { padding-left: 20px; padding-right: 20px; }
  .case-typo-hero,
  .case-typo-body,
  .insight-panel,
  .team-panel,
  .arch-panel { padding: 32px; }
  .arch-panel__notes { grid-template-columns: 1fr; }
}

/* ============================================================
   WORK INDEX PANEL — default content of evidence panel on /work
   ============================================================ */
.work-index-panel {
  padding: 24px 24px 32px;
  height: 100%;
  overflow-y: auto;
  color: var(--text);
  background: var(--ink);
}
.work-index-head { margin-bottom: 20px; }
.work-index-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.work-index-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--text);
}
.work-index-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-line);
}
.work-index-chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 7px 12px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.work-index-chip:hover { color: var(--text); border-color: rgba(255,255,255,0.22); }
.work-index-chip.is-active {
  color: var(--ink);
  background: var(--be-yellow);
  border-color: var(--be-yellow);
}
.work-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.work-index-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ink-line);
  cursor: pointer;
  transition: padding-left .2s var(--ease);
}
.work-index-row:hover { padding-left: 6px; }
.work-index-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
}
.work-index-dot[data-sector="hospitality"] { background: var(--sec-hospitality); }
.work-index-dot[data-sector="retail"]      { background: var(--sec-retail); }
.work-index-dot[data-sector="finance"]     { background: var(--sec-finance); }
.work-index-dot[data-sector="tech"]        { background: var(--sec-tech); }
.work-index-row-client {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}
.work-index-row-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-top: 4px;
}
.work-index-arrow {
  color: var(--text-faint);
  font-family: var(--mono);
  transition: color .2s ease, transform .2s var(--ease);
}
.work-index-row:hover .work-index-arrow {
  color: var(--be-yellow);
  transform: translateX(4px);
}
