body {
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

#sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  width: 76px;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.18s ease;
}

body.sb-expanded #sidebar,
body.sb-pinned #sidebar {
  width: 260px;
}

#sidebar .brand {
  height: 86px;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
}

#sidebar .brand img {
  width: 48px;
  height: 48px !important;
  object-fit: contain;
}

#sidebar .label {
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

body.sb-expanded #sidebar .label,
body.sb-pinned #sidebar .label {
  opacity: 1;
}

#sidebar .menu {
  list-style: none;
  margin: 0;
  padding: 0.75rem;
}

#sidebar .menu a,
#sidebar .menu button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  padding: 0.6rem 0.72rem;
  border-radius: 12px;
  text-decoration: none;
}

#sidebar .menu-group-title {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  padding: 0.6rem 0.72rem;
  border: 0;
  border-radius: 12px;
  outline: 0;
  background: transparent;
  color: #627189;
  font-weight: 600;
  text-align: left;
}

#sidebar .menu-group-title:focus,
#sidebar .menu-group-title:focus-visible {
  outline: 0;
  box-shadow: none;
}

#sidebar .report-caret {
  font-size: 0.8rem;
  transition: transform 0.16s ease;
}

#sidebar .menu-group.is-open .report-caret {
  transform: rotate(180deg);
}

#sidebar .menu-sub {
  list-style: none;
  margin: 0.15rem 0 0.35rem;
  padding: 0;
  display: none;
}

#sidebar .menu-group.is-open .menu-sub {
  display: block;
}

body.sb-collapsed:not(.sb-expanded):not(.sb-pinned) #sidebar .menu-group .menu-sub {
  display: none;
}

body.sb-collapsed:not(.sb-expanded):not(.sb-pinned) #sidebar .menu-group-title {
  width: 100%;
  justify-content: center;
  padding: 0.6rem 0.72rem;
  transform: translateX(2px);
}

body.sb-collapsed:not(.sb-expanded):not(.sb-pinned) #sidebar .menu-group-title .label,
body.sb-collapsed:not(.sb-expanded):not(.sb-pinned) #sidebar .menu-group-title .report-caret {
  display: none;
}

#sidebar .menu-sub button {
  min-height: 36px;
  padding: 0.45rem 0.72rem 0.45rem 1.05rem;
  font-size: 0.9rem;
}

#sidebar .menu-sub i {
  font-size: 0.95rem;
}

#sidebar .menu a.is-active {
  color: var(--exs-primary-dark) !important;
  background: linear-gradient(135deg, rgba(15, 143, 114, 0.14), rgba(20, 184, 212, 0.12)) !important;
  box-shadow: inset 3px 0 0 var(--exs-primary);
}

#content {
  min-height: 100vh;
  margin-left: 76px;
  transition: margin-left 0.18s ease;
}

body.sb-pinned #content {
  margin-left: 260px;
}

.page-content {
  padding: 1.5rem 1.5rem 4rem;
}

.account-menu {
  position: relative;
}

#content .account-toggle {
  min-width: 68px;
  height: 42px;
  border: 1px solid rgba(15, 143, 114, 0.22);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.25rem 0.42rem 0.25rem 0.3rem;
  color: #0f7663;
  background: linear-gradient(180deg, #ffffff, #f4fbf9);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

#content .account-toggle:hover,
#content .account-toggle[aria-expanded="true"] {
  border-color: rgba(15, 143, 114, 0.42);
  background: linear-gradient(180deg, #ecfdf7, #ffffff);
  box-shadow: 0 16px 32px rgba(15, 143, 114, 0.16);
}

.account-toggle-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0f8f72, #14b8d4);
  font-size: 0.92rem;
  font-weight: 800;
}

.account-toggle-caret {
  font-size: 0.78rem;
  color: #64748b;
  transition: transform 0.16s ease;
}

.account-toggle[aria-expanded="true"] .account-toggle-caret {
  transform: rotate(180deg);
}

.account-dropdown {
  width: min(340px, calc(100vw - 24px));
  margin-top: 0.72rem !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(15, 143, 114, 0.14) !important;
  border-radius: 8px !important;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16) !important;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(135deg, rgba(15, 143, 114, 0.14), rgba(20, 184, 212, 0.1), rgba(255, 159, 28, 0.08));
  border-bottom: 1px solid rgba(15, 143, 114, 0.12);
}

.account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0f8f72, #14b8d4);
  font-size: 1.2rem;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), 0 12px 24px rgba(15, 143, 114, 0.2);
}

.account-name {
  font-weight: 800;
  color: #172033;
  line-height: 1.2;
}

.account-role {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f7663;
  background: rgba(15, 143, 114, 0.1);
  text-transform: uppercase;
}

.account-details {
  padding: 0.55rem 0.8rem 0.15rem;
}

.account-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.58rem 0.25rem;
  color: #46576b;
  font-size: 0.9rem;
  word-break: break-word;
}

.account-detail-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #0f8f72;
  background: #eefcf8;
  flex: 0 0 auto;
}

.account-detail strong {
  display: block;
  margin-bottom: 0.05rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding: 0.9rem 1.05rem 1.05rem;
  border-top: 1px solid rgba(100, 116, 139, 0.12);
  background: #fbfdff;
}

.account-action {
  min-height: 38px;
  width: 100%;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 760;
}

.account-action-primary {
  border: 1px solid rgba(15, 143, 114, 0.28);
  color: #0f7663;
  background: #ffffff;
}

.account-action-primary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #0f8f72, #14b8d4);
}

.account-action-danger {
  border: 1px solid rgba(239, 68, 68, 0.24);
  color: #dc2626;
  background: #fffafa;
}

.account-action-danger:hover {
  color: #ffffff;
  background: #dc2626;
}

.sidebar-mobile-close,
.mobile-sidebar-backdrop {
  display: none;
}

.modal {
  z-index: 20000 !important;
}

.modal-backdrop {
  z-index: 19990 !important;
}

.modal-dialog {
  position: relative;
  z-index: 20001;
}

.metric-card {
  min-height: 128px;
}

.dashboard-premium {
  color: #1f3146;
}

.dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(27, 49, 75, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f5fbff);
  box-shadow: 0 18px 40px rgba(25, 48, 72, 0.08);
}

.dash-hero h2 {
  margin: 0.1rem 0;
  font-weight: 750;
}

.dash-hero p,
.dash-panel-head span,
.dash-kicker {
  color: #6a7d91;
}

.dash-kicker {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dash-date {
  white-space: nowrap;
  border: 1px solid rgba(31, 49, 70, 0.08);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  background: #fff;
  font-weight: 700;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 1rem;
}

.dash-panel,
.dash-metric {
  border: 1px solid rgba(27, 49, 75, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(25, 48, 72, 0.08);
}

.dash-panel {
  padding: 1rem;
}

.dash-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.dash-panel-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 760;
}

.dash-legend {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #516579;
}

.dash-legend i {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.25rem;
}

.dash-bars {
  min-height: 240px;
  display: grid;
  grid-template-columns: repeat(6, minmax(46px, 1fr));
  gap: 1rem;
  align-items: end;
  padding-top: 1rem;
  background-image: linear-gradient(to top, rgba(42, 64, 89, 0.06) 1px, transparent 1px);
  background-size: 100% 48px;
}

.dash-bar-item {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.dash-bar-stack {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 0.22rem;
}

.dash-bar-stack span {
  width: 9px;
  min-height: 5px;
  border-radius: 999px 999px 4px 4px;
  box-shadow: 0 8px 18px rgba(31, 49, 70, 0.12);
}

.dash-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dash-metric {
  padding: 1rem;
}

.dash-metric-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.dash-metric span {
  display: block;
  color: #6a7d91;
  font-size: 0.82rem;
}

.dash-metric strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.8rem;
  line-height: 1;
}

.dash-donuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.dash-donut {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fff 0 54%, transparent 55%), conic-gradient(#18b969 calc(var(--p) * 1%), #e9eef5 0);
}

.dash-donut.alt {
  background: radial-gradient(circle at center, #fff 0 54%, transparent 55%), conic-gradient(#6658f6 calc(var(--p) * 1%), #e9eef5 0);
}

.dash-donut strong,
.dash-donut span {
  grid-area: 1 / 1;
}

.dash-donut strong {
  margin-top: -0.8rem;
  font-size: 1.35rem;
}

.dash-donut span {
  margin-top: 1.4rem;
  color: #6a7d91;
  font-size: 0.74rem;
}

.dash-progress-row {
  margin-top: 0.8rem;
}

.dash-progress-row div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
  font-size: 0.84rem;
}

.dash-progress-row progress {
  width: 100%;
  height: 0.45rem;
  accent-color: #6658f6;
}

.dash-list {
  min-width: 0;
}

.op-form-shell {
  max-width: 1680px;
  margin: 0 auto;
}

.op-sheet {
  border: 1px solid rgba(35, 53, 72, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(24, 54, 86, 0.08);
  padding: 1rem;
}

.op-section {
  border-top: 3px solid #2cb7d7;
  padding-top: 0.9rem;
  margin-top: 1rem;
}

.op-section:first-child {
  border-top: 0;
  margin-top: 0;
}

.op-section h3 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
  font-weight: 750;
}

.op-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.85rem;
}

.op-c2 { grid-column: span 2; }
.op-c3 { grid-column: span 3; }
.op-c4 { grid-column: span 4; }
.op-c6 { grid-column: span 6; }
.op-c12 { grid-column: span 12; }

.op-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: #42596d;
  font-size: 0.78rem;
  font-weight: 700;
}

.op-field .req::before {
  content: "|";
  color: #d91e18;
  margin-right: 5px;
  font-weight: 800;
}

.op-sheet input,
.op-sheet select,
.op-sheet textarea {
  min-height: 38px;
  border-radius: 8px;
}

.op-mini-card {
  border: 1px solid rgba(35, 53, 72, 0.1);
  border-radius: 8px;
  padding: 0.85rem;
  background: #fbfdff;
}

.op-tabbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.op-tabbar .btn.active {
  color: #fff;
  background: #0d6efd;
}

.op-table-wrap {
  overflow-x: auto;
}

.op-table-wrap table {
  min-width: 1120px;
}

.role-page {
  color: #1f3146;
}

.role-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(27, 49, 75, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f6fbff);
  box-shadow: 0 18px 40px rgba(25, 48, 72, 0.08);
}

.role-hero h2 {
  margin: 0.1rem 0;
  font-weight: 760;
}

.role-hero p {
  margin: 0;
  color: #6a7d91;
  max-width: 780px;
}

.role-hero-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.agent-hero-score,
.agent-guide-score {
  min-width: 240px;
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(37, 199, 218, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fbff, #eafff6);
}

.agent-hero-score strong,
.agent-guide-score strong {
  color: #0d6efd;
  font-size: 2.4rem;
  line-height: 1;
}

.agent-hero-score span,
.agent-guide-score span {
  color: #5f7286;
  font-weight: 800;
}

.agent-hero-score-plain {
  width: 190px;
  min-width: 190px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: none;
  align-content: end;
}

.agent-hero-score em,
.agent-guide-score em,
.agent-workbench-cta em {
  position: relative;
  width: 100%;
  height: 0.42rem;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.14);
}

.agent-hero-score em b,
.agent-guide-score em b,
.agent-workbench-cta em b {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6658f6, #25c7da, #18b969, #ffad36);
}

.agent-workbench-cta {
  width: 190px;
  min-width: 190px;
  display: grid;
  align-content: end;
  gap: 0.35rem;
}

.agent-workbench-cta .post-nav-form,
.agent-workbench-cta .post-nav-form button {
  width: 100%;
}

.role-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  gap: 1rem;
}

.role-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.agent-setup-panel {
  padding: 1rem;
}

.agent-setup-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.agent-setup-summary h3 {
  margin: 0 0 0.2rem;
  font-weight: 760;
}

.agent-setup-summary p {
  margin: 0;
  color: #6a7d91;
}

.agent-setup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(27, 49, 75, 0.08);
}

.agent-setup-head h3 {
  margin: 0.2rem 0;
  font-weight: 760;
}

.agent-setup-head p {
  margin: 0;
  max-width: 760px;
  color: #6a7d91;
}

.agent-setup-score {
  min-width: 220px;
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem;
  border: 1px solid rgba(37, 199, 218, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f6fbff, #ecfff9);
}

.agent-setup-score strong {
  font-size: 2rem;
  line-height: 1;
  color: #0d6efd;
}

.agent-setup-score span {
  color: #5f7286;
  font-weight: 700;
}

.agent-setup-score progress {
  width: 100%;
  height: 0.55rem;
  accent-color: #18b969;
}

.agent-setup-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.agent-setup-step button {
  position: relative;
  width: 100%;
  min-height: 210px;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 0.85rem;
  border: 1px solid rgba(27, 49, 75, 0.1);
  border-radius: 8px;
  background: #fbfdff;
  color: #1f3146;
  text-align: left;
  overflow: hidden;
}

.agent-setup-step.is-complete button {
  border-color: rgba(24, 185, 105, 0.24);
  background: linear-gradient(135deg, rgba(24, 185, 105, 0.08), #fff);
}

.agent-setup-step.is-pending button {
  border-color: rgba(255, 173, 54, 0.28);
}

.agent-setup-step button:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 110, 253, 0.24);
}

.agent-step-index {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: #a2b0bf;
  font-weight: 800;
}

.agent-setup-step i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  font-size: 1.25rem;
}

.agent-setup-step.is-complete i {
  background: rgba(24, 185, 105, 0.14);
  color: #18b969;
}

.agent-step-body {
  display: grid;
  gap: 0.35rem;
}

.agent-step-body strong {
  font-weight: 800;
}

.agent-step-body small {
  color: #6a7d91;
  line-height: 1.35;
}

.agent-step-body em {
  color: #1f3146;
  font-style: normal;
  font-weight: 700;
}

.agent-step-action {
  align-self: end;
  justify-self: start;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #edf5ff;
  color: #0d6efd;
  font-size: 0.82rem;
  font-weight: 800;
}

.agent-setup-step.is-complete .agent-step-action {
  background: #e8f8ef;
  color: #118955;
}

.agent-setup-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.agent-setup-notes div {
  padding: 0.8rem;
  border-radius: 8px;
  background: #f7fbff;
}

.agent-setup-notes strong,
.agent-setup-notes span {
  display: block;
}

.agent-setup-notes span {
  margin-top: 0.25rem;
  color: #6a7d91;
  line-height: 1.35;
}

.agent-guide-page {
  display: grid;
  gap: 1rem;
}

.agent-guide-hero {
  margin-bottom: 0;
}

.agent-guide-score em {
  height: 0.55rem;
}

.agent-guide-intro,
.agent-guide-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.agent-guide-intro h3,
.agent-guide-next h3 {
  margin: 0 0 0.25rem;
  font-weight: 760;
}

.agent-guide-intro p,
.agent-guide-next p {
  margin: 0;
  max-width: 880px;
  color: #6a7d91;
}

.agent-guide-rules {
  min-width: 280px;
  display: grid;
  gap: 0.45rem;
}

.agent-guide-rules span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #1f3146;
  font-weight: 700;
}

.agent-guide-rules i {
  color: #18b969;
}

.agent-guide-steps {
  display: grid;
  gap: 0.85rem;
}

.agent-guide-step {
  display: grid;
  grid-template-columns: 54px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(27, 49, 75, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(25, 48, 72, 0.07);
}

.agent-guide-step.is-complete {
  border-color: rgba(24, 185, 105, 0.25);
  background: linear-gradient(135deg, rgba(24, 185, 105, 0.08), #fff);
}

.agent-guide-step.is-pending {
  border-color: rgba(255, 173, 54, 0.32);
}

.agent-guide-number {
  color: #a2b0bf;
  font-size: 1.35rem;
  font-weight: 900;
}

.agent-guide-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  font-size: 1.35rem;
}

.agent-guide-step.is-complete .agent-guide-icon {
  background: rgba(24, 185, 105, 0.14);
  color: #18b969;
}

.agent-guide-copy h3 {
  margin: 0 0 0.25rem;
  font-weight: 800;
}

.agent-guide-copy p,
.agent-guide-copy small {
  display: block;
  margin: 0;
  color: #6a7d91;
}

.agent-guide-copy strong {
  display: block;
  margin: 0.35rem 0;
  color: #1f3146;
}

.agent-guide-action {
  display: grid;
  justify-items: end;
  gap: 0.65rem;
}

.agent-guide-action > span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff6de;
  color: #9b6800;
  font-size: 0.82rem;
  font-weight: 800;
}

.agent-guide-step.is-complete .agent-guide-action > span {
  background: #e8f8ef;
  color: #118955;
}

.role-action button {
  width: 100%;
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 0.9rem;
  border: 1px solid rgba(27, 49, 75, 0.08);
  border-radius: 8px;
  background: #fbfdff;
  color: #1f3146;
  text-align: left;
}

.role-action button:hover {
  border-color: rgba(13, 110, 253, 0.22);
  background: #f5f9ff;
}

.role-action i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(102, 88, 246, 0.12);
  color: #6658f6;
  font-size: 1.2rem;
}

.role-action span {
  font-weight: 760;
}

.role-action small {
  color: #6a7d91;
  line-height: 1.35;
}

.role-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.action-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.post-nav-form {
  margin: 0;
}

.post-nav-form button {
  font: inherit;
}

#sidebar .post-nav-form button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  padding: 0.6rem 0.72rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid .span-2 {
  grid-column: span 2;
}

@media (max-width: 768px) {
  #sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  body.mobile-sidebar-open #sidebar {
    transform: translateX(0);
  }

  #content,
  body.sb-pinned #content {
    margin-left: 0;
  }

  .sidebar-mobile-close {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    border: 0;
    background: transparent;
  }

  .mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1025;
    background: rgba(15, 23, 42, 0.42);
  }

  body.mobile-sidebar-open .mobile-sidebar-backdrop {
    display: block;
  }

  #sidebar .label {
    opacity: 1;
  }

  .page-content {
    padding: 1rem 1rem 3rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2 {
    grid-column: auto;
  }

  .dash-hero,
  .dash-panel-head,
  .role-hero,
  .agent-setup-head,
  .agent-setup-summary,
  .agent-guide-intro,
  .agent-guide-next {
    align-items: flex-start;
    flex-direction: column;
  }

  .dash-grid,
  .dash-metrics,
  .dash-bars,
  .dash-donuts,
  .role-grid,
  .role-actions,
  .role-section-grid,
  .agent-setup-steps,
  .agent-setup-notes,
  .op-grid {
    grid-template-columns: 1fr;
  }

  .agent-setup-score {
    width: 100%;
    min-width: 0;
  }

  .role-hero-actions,
  .agent-hero-score,
  .agent-guide-score,
  .agent-guide-rules,
  .agent-workbench-cta {
    width: 100%;
    min-width: 0;
  }

  .role-hero-actions {
    align-items: stretch;
  }

  .agent-guide-step {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
  }

  .agent-guide-icon {
    grid-column: 1;
  }

  .agent-guide-copy,
  .agent-guide-action {
    grid-column: 1 / -1;
  }

  .agent-guide-action {
    justify-items: stretch;
  }

  .op-c2,
  .op-c3,
  .op-c4,
  .op-c6,
  .op-c12 {
    grid-column: span 1;
  }
}
