:root {
  --bg: #f6f8fc;
  --panel: #ffffff;
  --panel-soft: #f8fafd;
  --text: #172033;
  --muted: #64748b;
  --line: #e5eaf2;
  --blue: #2563eb;
  --blue-soft: #e8f0fe;
  --green: #138a5b;
  --amber: #b7791f;
  --red: #d93025;
  --purple: #7357ff;
  --shadow: 0 18px 44px rgba(16, 24, 40, .08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
input, select, textarea { border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--text); padding: 10px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #9bb8ff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
textarea { min-height: 140px; resize: vertical; }
a { color: var(--blue); }
[hidden] { display: none !important; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 16px; background: #eef2f8; color: #1f2937; font-weight: 700; }
.button.primary { background: var(--blue); color: white; }
.button.ghost { background: white; border: 1px solid var(--line); }
.mini-button { width: 100%; border-radius: 12px; padding: 9px 10px; background: #edf2f7; color: #1e293b; font-weight: 700; margin-top: 8px; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: transparent; font-size: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-head span, .section-title span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title h3 { margin: 0; font-size: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: #edf2f7; color: #475569; font-size: 12px; font-weight: 800; }
.chip.green { background: #dcfce7; color: #166534; }
.chip.red { background: #fee2e2; color: #991b1b; }
.chip.amber { background: #fef3c7; color: #92400e; }
.chip.purple { background: #ede9fe; color: #5b21b6; }
.form-error { min-height: 20px; color: var(--red); font-weight: 700; }
#toast { position: fixed; right: 24px; bottom: 24px; background: #0f172a; color: white; padding: 12px 16px; border-radius: 14px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; z-index: 20; }
#toast.show { opacity: 1; transform: translateY(0); }
