
:root {
  --bg: #f4f8fc;
  --bg2: #ffffff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --stroke: rgba(28, 53, 87, 0.10);
  --text: #142033;
  --muted: #64748b;
  --blue: #2f6fff;
  --cyan: #0ea5c6;
  --green: #17a673;
  --amber: #c98a10;
  --red: #d9485f;
  --shadow: 0 20px 60px rgba(28, 53, 87, 0.10);
  --radius: 26px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14,165,198,.10), transparent 28%),
    radial-gradient(circle at top right, rgba(47,111,255,.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  min-height: 100vh;
}
.frame { width: 1600px; min-height: 1000px; margin: 0 auto; padding: 28px; }
.shell { border: 1px solid var(--stroke); background: rgba(255,255,255,.70); backdrop-filter: blur(22px); border-radius: 34px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 270px 1fr; }
.sidebar { padding: 28px 20px; background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,250,255,.90)); border-right: 1px solid var(--stroke); }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; padding: 10px 12px; }
.logo { width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 10px 25px rgba(82,224,255,.25); }
.brand h1 { font-size: 22px; margin: 0; }
.brand p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.nav { display: grid; gap: 10px; }
.nav a { text-decoration: none; }
.nav .item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; color: #22324a; border: 1px solid transparent; font-size: 15px; }
.nav .item.active { background: linear-gradient(135deg, rgba(47,111,255,.12), rgba(14,165,198,.08)); border-color: rgba(47,111,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.bullet { width: 10px; height: 10px; border-radius: 999px; background: rgba(34,50,74,.24); }
.active .bullet { background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.sidebar-footer { margin-top: 26px; padding: 18px; border-radius: 22px; background: rgba(255,255,255,.72); border: 1px solid var(--stroke); }
.tag { display: inline-block; padding: 7px 10px; border-radius: 999px; background: rgba(23,166,115,.10); color: #136c4c; font-size: 12px; border: 1px solid rgba(23,166,115,.16); margin-bottom: 10px; }
.main { padding: 24px; }
.header { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-bottom: 22px; }
.header-title h2 { margin: 0; font-size: 30px; }
.header-title p { margin: 6px 0 0; color: var(--muted); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.chip { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.82); border: 1px solid var(--stroke); font-size: 14px; color: #334155; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.96)); border: 1px solid var(--stroke); border-radius: var(--radius); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); padding: 22px; }
.hero { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.eyebrow { color: var(--cyan); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.hero h3 { font-size: 34px; line-height: 1.05; margin: 12px 0; max-width: 700px; }
.hero p { color: #475569; font-size: 17px; max-width: 760px; margin: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.btn { padding: 12px 16px; border-radius: 16px; border: 1px solid var(--stroke); background: rgba(255,255,255,.78); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn.primary { background: linear-gradient(135deg, rgba(99,167,255,.95), rgba(82,224,255,.75)); color: #091321; border: none; }
.grid2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-bottom: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stack { display: grid; gap: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { padding: 18px; border-radius: 22px; background: rgba(245,249,255,.88); border: 1px solid var(--stroke); }
.stat small { color: var(--muted); display: block; margin-bottom: 8px; }
.stat .value { font-size: 28px; font-weight: 700; }
.stat .hint { margin-top: 6px; color: #64748b; font-size: 13px; }
.blue { color: var(--blue); } .green { color: var(--green); } .amber { color: var(--amber); } .red { color: var(--red); }
.card h4 { margin: 0 0 16px; font-size: 20px; }
.sub { color: var(--muted); font-size: 13px; margin-top: -8px; margin-bottom: 14px; }
.list, .table { display: grid; gap: 12px; }
.item { padding: 14px 16px; border-radius: 18px; background: rgba(248,251,255,.92); border: 1px solid var(--stroke); }
.item strong { display: block; font-size: 15px; }
.item span, .item small { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 10px; font-size: 12px; border: 1px solid var(--stroke); background: rgba(255,255,255,.85); }
.sev-red { color: #7c1d2d; background: rgba(255,107,122,.14); border-color: rgba(255,107,122,.2); }
.sev-amber { color: #7a4f00; background: rgba(255,189,89,.14); border-color: rgba(255,189,89,.2); }
.sev-green { color: #0b6b4a; background: rgba(83,211,159,.14); border-color: rgba(83,211,159,.2); }
.sev-blue { color: #1e4fa8; background: rgba(99,167,255,.14); border-color: rgba(99,167,255,.2); }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kv .item { min-height: 92px; }
.table-row { display: grid; grid-template-columns: 140px 1fr 120px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(20,32,51,.08); }
.table-row:last-child { border-bottom: none; }
.muted { color: var(--muted); }
.footer-note { margin-top: 18px; color: var(--muted); font-size: 13px; }
pre.log, pre.result { margin: 0; white-space: pre-wrap; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #334155; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid.full { grid-template-columns: 1fr; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: #334155; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--stroke); background: rgba(255,255,255,.95); border-radius: 14px; padding: 12px 14px; font: inherit; color: var(--text); }
.field textarea { min-height: 108px; resize: vertical; }
.field.checkbox { display: flex; align-items: center; gap: 8px; padding-top: 28px; }
.field.checkbox input { width: auto; }
.action-card { display: grid; gap: 14px; }
.action-result { border: 1px solid var(--stroke); border-radius: 18px; padding: 16px; background: rgba(245,249,255,.78); }
.action-result.ok { border-color: rgba(23,166,115,.25); background: rgba(23,166,115,.06); }
.action-result.error { border-color: rgba(217,72,95,.25); background: rgba(217,72,95,.06); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid var(--stroke); font-size: 12px; }
.small { font-size: 12px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.chat-shell { display: grid; gap: 18px; }
.chat-history { min-height: 420px; max-height: 620px; overflow: auto; border-radius: 24px; padding: 18px; background: rgba(245,249,255,.75); border: 1px solid var(--stroke); display: grid; gap: 12px; }
.chat-row { display: flex; }
.chat-row.user { justify-content: flex-end; }
.chat-row.assistant { justify-content: flex-start; }
.chat-bubble { max-width: 78%; border-radius: 22px; padding: 14px 16px; border: 1px solid var(--stroke); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.chat-bubble.user { background: linear-gradient(135deg, rgba(99,167,255,.18), rgba(82,224,255,.12)); }
.chat-bubble.assistant { background: rgba(255,255,255,.92); }
.chat-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.chat-text { white-space: pre-wrap; line-height: 1.5; }
.chat-empty { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.9); border: 1px dashed var(--stroke); color: var(--muted); }
.chat-form textarea { min-height: 120px; }
