/* Direction: WhatsLog console — soft mint paper, deep green accent, geometric display */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f3f8f4;
  --surface: #ffffff;
  --surface-2: #e8f1ea;
  --border: #d2e0d5;
  --border-strong: #abb3af;
  --ink: #15241d;
  --muted: #566a60;
  --accent: #0e8a5f;
  --accent-hover: #0c7551;
  --accent-ink: #02110c;
  --accent-text: #0b6e4c;
  --accent-strong: #0a5c40;
  --accent-soft: #d8f0e2;
  --accent-border: #8cc7b1;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #d8eade;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #ebe4d8;
  --warning-strong: #a64c08;
  --danger: #b4231f;
  --danger-ink: #ffffff;
  --danger-soft: #ebdeda;
  --danger-strong: #b4231f;
  --chart-1: #0e8a5f;
  --chart-2: #1e98b9;
  --chart-3: #5451a4;
  --chart-4: #be679f;
  --chart-5: #953c12;
  --chart-6: #9d8f12;

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius-card: 18px;
  --radius-btn: 11px;
  --radius-input: 11px;
  --card-pad: 1.5rem;
  --x-bubble: #dcf8c6;
  --x-bubble-ink: #14321f;
  --x-on-dark: #eafaf0;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #02100b;
  --surface: #1b2823;
  --surface-2: #0f1c17;
  --border: #25312d;
  --border-strong: #4e5854;
  --ink: #f3f8f4;
  --muted: #939b97;
  --accent: #0e8a5f;
  --accent-hover: #329c77;
  --accent-ink: #02110c;
  --accent-text: #43a483;
  --accent-strong: #339c78;
  --accent-soft: #052b1d;
  --accent-border: #074731;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #062916;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #291f0b;
  --warning-strong: #c57a40;
  --danger: #b4231f;
  --danger-ink: #ffffff;
  --danger-soft: #29140f;
  --danger-strong: #ca625e;
  --chart-1: #0e8a5f;
  --chart-2: #069fc4;
  --chart-3: #7574cb;
  --chart-4: #be679f;
  --chart-5: #bf623c;
  --chart-6: #9d8f12;
}

/* WhatsLog — the chat bubble and the ledger's paper grid */

.bubble {
  background: var(--x-bubble);
  color: var(--x-bubble-ink);
  border-radius: 14px 14px 14px 4px;
  padding: 0.7rem 0.9rem;
  line-height: 1.5;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.bubble-out {
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 14px 14px 4px 14px;
}

.paper-grid {
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: -1px -1px;
  opacity: 0.4;
}

.sync-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
