:root {
  --bg: #06140e;
  --panel: #17281f;
  --panel-2: #22372c;
  --text: #f5f8f2;
  --muted: #aab8ae;
  --accent: #9b5cff;
  --accent-2: #f1a5ff;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.11);
  --glass-strong: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app {
  min-height: 100vh;
  padding: 18px 16px 88px;
  background:
    radial-gradient(circle at 80% 0%, rgba(155, 92, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #07150f 0%, #06140e 100%);
}

.topbar,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow,
.label,
small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1;
}

h2 {
  margin: 24px 0 12px;
  font-size: 22px;
}

button,
select,
textarea {
  font: inherit;
}

.icon-button,
.ghost-button,
.bottom-nav button,
.chip {
  border: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 22px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.glass-card,
.agent-card,
.task-card,
.task-form,
.output,
.detail-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(91, 100, 96, 0.62) 0%, rgba(39, 47, 43, 0.92) 48%, rgba(19, 28, 23, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 18px 38px rgba(0, 0, 0, 0.34),
    0 4px 10px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card {
  min-height: 104px;
  padding: 16px;
}

.glass-card strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 30px;
  font-weight: 500;
}

.agents-list,
.tasks-list {
  display: grid;
  gap: 12px;
}

.agent-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.puppy {
  width: 72px;
  height: 72px;
}

.agent-avatar-wrap {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(9, 17, 13, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 32px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.agent-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.agent-copy {
  min-width: 0;
}

.agent-card h3 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
  color: #fffdf8;
  text-shadow: 0 12px 32px rgba(155, 92, 255, 0.28);
}

.agent-card p,
.task-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.agent-card p {
  margin-top: 9px;
  max-width: 28ch;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0;
  color: rgba(232, 238, 232, 0.72);
}

.quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    rgba(155, 92, 255, 0.28);
  padding: 8px 10px;
  font-size: 12px;
}

.task-card {
  padding: 14px;
}

.task-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.status {
  color: var(--accent-2);
}

.select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(34, 42, 38, 0.86);
  padding: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.task-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.task-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

.primary-button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  color: white;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.05)),
    linear-gradient(135deg, rgba(155, 92, 255, 0.82), rgba(241, 165, 255, 0.68));
  padding: 14px 16px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 16px 36px rgba(91, 50, 180, 0.34),
    0 8px 18px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.ghost-button {
  border-radius: 999px;
  padding: 10px 12px;
}

.output,
.detail-card {
  margin-top: 14px;
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 8px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(24, 32, 28, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 44px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.bottom-nav button {
  height: 48px;
  border-radius: 18px;
  font-size: 20px;
}

.bottom-nav button.active {
  color: white;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    var(--accent);
}
