:root {
  --ink: #17202a;
  --muted: #5d6b7a;
  --line: #dde3ea;
  --bg: #f6f8fa;
  --card: #ffffff;
  --brand: #0b6e4f;
  --brand-ink: #ffffff;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --warn: #8a5300;
  --warn-bg: #fff8e6;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: var(--brand); }
.wrap { max-width: 920px; margin: 0 auto; padding: 24px 16px 64px; }
.narrow { max-width: 560px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.logo { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.logo span { color: var(--brand); }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 0 0 12px; }
p.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.hint { font-size: 13px; color: var(--muted); margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
textarea { min-height: 80px; resize: vertical; }
button, .btn {
  font: inherit; font-weight: 600; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink);
  padding: 10px 16px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-block;
}
button.secondary, .btn.secondary { background: #fff; color: var(--brand); }
button.link { background: none; border: none; color: var(--brand); padding: 0; font-weight: 500; }
button:disabled { opacity: 0.55; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { background: none; color: var(--muted); border: none; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 12px; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--brand); }
.hidden { display: none !important; }
.notice { padding: 12px 14px; border-radius: 8px; margin: 12px 0; font-size: 15px; }
.notice.error, .notice.emergency { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecdca; }
.notice.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #fde3a7; }
.notice.ok { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eef2f6; color: var(--muted); }
.pill.urgent { background: var(--danger-bg); color: var(--danger); }
.pill.soon { background: var(--warn-bg); color: var(--warn); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
pre { background: #0f1720; color: #e6edf3; padding: 12px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.lead-card h3 { margin: 0; font-size: 17px; }
.lead-card .meta { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); text-align: center; padding: 32px 0; }

/* Customer request page */
.chat { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; }
.bubble.assistant { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.bubble.customer { background: var(--brand); color: #fff; align-self: flex-end; }
.composer { display: flex; gap: 8px; }
.composer textarea { min-height: 48px; }
.small { font-size: 13px; color: var(--muted); }
body.embed .wrap { padding-top: 12px; }
.trades-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 12px; }
.trades-grid label.check { margin: 4px 0; }
