:root {
  color-scheme: dark;
  --bg: #080a0d;
  --panel: rgba(18, 23, 31, .88);
  --line: #26313f;
  --text: #f7fbff;
  --muted: #aab6c4;
  --cyan: #37d7ff;
  --green: #55e6a5;
  --amber: #f7c65b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(55, 215, 255, .18), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(85, 230, 165, .14), transparent 28%),
    linear-gradient(135deg, #080a0d, #12151b 52%, #07130f);
  color: var(--text);
}
button, input, select { font: inherit; }
button {
  border: 1px solid var(--line);
  background: #19212c;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 13px;
  cursor: pointer;
}
button.primary {
  color: #05100c;
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 800;
}
input, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c1118;
  color: var(--text);
  border-radius: 8px;
  padding: 10px;
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 0; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1; max-width: 780px; }
p { color: var(--muted); line-height: 1.55; }
.shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 20px 0 42px; }
.top, .hero, .panel {
  border: 1px solid rgba(255,255,255,.08);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 8px;
}
.top { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; }
.top span { color: var(--green); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.eyebrow { color: var(--cyan); text-transform: uppercase; font-weight: 800; font-size: 12px; margin-bottom: 6px; }
.hero { min-height: 290px; display: grid; grid-template-columns: 1fr 220px; gap: 20px; align-items: center; margin: 14px 0; padding: 28px; }
.mark {
  width: 160px; height: 160px; border-radius: 50%;
  display: grid; place-items: center; justify-self: center;
  color: #06100d; font-size: 96px; font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--green), var(--amber));
  box-shadow: 0 0 70px rgba(55, 215, 255, .24);
}
.grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 14px; }
.panel { padding: 16px; margin-bottom: 14px; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.provider {
  display: grid; grid-template-columns: 90px 1fr 140px 1fr; gap: 8px;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 10px; background: #0c1118;
}
.provider .full { grid-column: 1 / -1; }
.provider .enabled { display: flex; align-items: center; gap: 8px; }
.provider .enabled input, .roles input, .confirm input { width: auto; }
.roles { display: grid; gap: 8px; margin-bottom: 12px; }
.role { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #0c1118; }
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.estimate { border: 1px solid var(--line); background: #0c1118; border-radius: 8px; padding: 12px; color: var(--amber); margin: 12px 0; }
.bar { height: 10px; background: #05070a; border-radius: 99px; overflow: hidden; margin: 12px 0; }
.bar span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.job { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; background: #0c1118; }
.small { font-size: 12px; }
.chat {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}
.chat-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #0c1118;
  color: var(--muted);
}
.chat-line strong { color: var(--text); }
.chat-line.warning { border-color: var(--amber); }
.chat-line.error { border-color: #ff6675; color: #ffd3d8; }
@media (max-width: 900px) {
  .grid, .hero, .provider, .row { grid-template-columns: 1fr; }
}
