body.agent-new-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  z-index: 1;
}

.anp-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.anp-sidebar {
  flex-shrink: 0;
}

.anp-main {
  flex: 1;
  overflow-y: auto;
  padding: 40px 56px 64px;
}

.anp-content {
  width: 100%;
  max-width: 1320px;
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.anp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
}

.anp-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}

.anp-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.anp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

.anp-back-btn:hover {
  color: var(--accent);
}

.anp-config-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: -8px 0 16px 0;
}

.anp-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-bottom: 20px;
}

.required-asterisk {
  color: var(--danger);
}

@media (max-width: 700px) {
  .anp-main {
    padding: 24px 20px 40px;
  }
}

/* ── Step 2 checkbox rows (Agent Behavior / Initial Tools) ── */
.pg-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pd-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 0;
}

.pd-toggle input {
  display: none;
}

.pd-toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  background: var(--glass-border);
  border-radius: 11px;
  transition: background .25s ease;
}

.pd-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  transition: all .25s ease;
}

.pd-toggle input:checked + .pd-toggle-track {
  background: var(--accent);
}

.pd-toggle input:checked + .pd-toggle-track::after {
  left: 20px;
  background: #fff;
}

.pd-toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.pd-toggle-annotation {
  margin-left: auto;
  padding-left: 16px;
  text-align: right;
  white-space: normal;
}
