/* DE Support Workspace — Design Tokens */
/* Per DESIGN.md — do not substitute. */

:root {
  /* Color */
  --cream: #faf9f5;
  --cream-deeper: #f0eee6;
  --paper: #f8f8f6;
  --white: #ffffff;

  --ink: #141413;
  --ink-secondary: #3d3d3a;
  --ink-faint: #73726c;

  --accent: #c6613f;
  --accent-tint: #f5e4dc;
  --accent-soft: #faeee7;

  --line: rgba(20, 20, 19, 0.08);
  --line-soft: rgba(20, 20, 19, 0.04);
  --line-ink: rgba(20, 20, 19, 0.16);

  --good: #6b9d5e;
  --good-soft: #e6efe0;
  --question: #c6613f;

  --highlight: #fff4d6;

  /* Type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;

  /* Spacing scale: 8, 16, 24, 32, 48, 64, 96 */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;

  /* Radii */
  --r-1: 8px;
  --r-2: 12px;
  --r-3: 16px;
  --r-4: 24px;
  --r-pill: 9999px;
}

/* Base reset within artboards */
.de {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  text-rendering: optimizeLegibility;
}
.de *, .de *::before, .de *::after { box-sizing: border-box; }
.de p { margin: 0; }
.de h1, .de h2, .de h3, .de h4 { margin: 0; font-weight: 400; }
.de a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--line-ink); }
.de a:hover { text-decoration-color: var(--ink); }
.de button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.de input, .de textarea { font: inherit; color: inherit; }
.de ::selection { background: var(--accent-tint); }

/* Type helpers */
.de .serif { font-family: var(--serif); }
.de .display-44 { font-family: var(--serif); font-size: 44px; line-height: 1.1; font-weight: 300; letter-spacing: -0.01em; }
.de .display-32 { font-family: var(--serif); font-size: 32px; line-height: 1.12; font-weight: 400; letter-spacing: -0.005em; }
.de .head-26 { font-family: var(--serif); font-size: 26px; line-height: 1.15; font-weight: 400; }
.de .head-22 { font-family: var(--serif); font-size: 22px; line-height: 1.2; font-weight: 400; }
.de .ui-18 { font-size: 18px; line-height: 1.45; font-weight: 500; }
.de .ui-17 { font-size: 17px; line-height: 1.55; }
.de .ui-16 { font-size: 16px; line-height: 1.55; }
.de .ui-15 { font-size: 15px; line-height: 1.55; }
.de .ui-14 { font-size: 14px; line-height: 1.5; }
.de .ui-13 { font-size: 13px; line-height: 1.5; }
.de .ui-12 { font-size: 12px; line-height: 1.4; font-weight: 500; }
.de .ui-11 { font-size: 11px; line-height: 1.3; font-weight: 500; }
.de .faint { color: var(--ink-faint); }
.de .secondary { color: var(--ink-secondary); }
.de .accent { color: var(--accent); }
.de .good { color: var(--good); }
.de .w-500 { font-weight: 500; }
.de .w-600 { font-weight: 600; }
.de .w-700 { font-weight: 700; }

/* Surface */
.de .surface {
  background: var(--cream-deeper);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 20px;
}

/* Pulse animation */
@keyframes de-pulse {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
.de .pulse-wrap { position: relative; display: inline-flex; width: 8px; height: 8px; align-items: center; justify-content: center; }
.de .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); position: relative; z-index: 1; }
.de .pulse-ring {
  position: absolute; inset: 0; border-radius: 50%; background: var(--good);
  animation: de-pulse 2s ease-out infinite;
}

/* Streaming caret */
@keyframes de-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.de .caret { display: inline-block; width: 7px; height: 1.05em; background: var(--ink); margin-left: 2px; vertical-align: text-bottom; animation: de-caret 1.1s steps(1, end) infinite; border-radius: 1px; }

/* Change highlight */
.de .change-highlight {
  background: linear-gradient(120deg, transparent, var(--highlight) 8%, var(--highlight) 92%, transparent);
  padding: 1px 3px;
  border-radius: 2px;
}

/* Focus rings */
.de :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* Scrollbar suppression for nested panes */
.de .no-scroll-chrome { scrollbar-width: none; }
.de .no-scroll-chrome::-webkit-scrollbar { display: none; }
