
:root {
  --sidebar-width: 296px;
  --subnav-width: 256px;
  --content-max-width: 1200px;
  --app-bg: #f7f9fc;
  --card-radius: .5rem;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px rgba(15, 23, 42, 0.045);
  --text-muted-2: #667085;
  --line-soft: #e5eaf1;
  --panel-bg: #ffffff;
  --accent: #2f6fed;
  --accent-soft: #eef5ff;
  --status-ok: #2f6f52;
  --status-ok-bg: #e9f6ef;
  --status-ok-line: #b9dec9;
  --status-warn: #806322;
  --status-warn-bg: #fff6df;
  --status-warn-line: #e8cf89;
  --status-danger: #8b4050;
  --status-danger-bg: #fff0f2;
  --status-danger-line: #e7b3bd;
  --status-muted: #475569;
  --status-muted-bg: #f1f5f9;
  --status-muted-line: #cbd5e1;
}

html, body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background: var(--app-bg);
  color: #0f172a;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  padding: 14px 14px 14px 16px;
}

.content-limit {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--panel-bg);
  color: #334155;
  position: fixed;
  left: 16px;
  top: 14px;
  bottom: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1030;
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
}

.sidebar .brand {
  padding: 1.3rem 1.35rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.sidebar .brand .text-white {
  color: #0f172a !important;
}

.sidebar .brand small {
  color: #64748b;
}

.nav-groups {
  padding: .85rem .7rem 1.2rem;
}

.nav-group + .nav-group {
  margin-top: .25rem;
}

.nav-group-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-radius: var(--card-radius);
  padding: .62rem .62rem .48rem;
  font-weight: 700;
}

.nav-group-toggle:hover,
.nav-group-toggle.active {
  color: #1d4ed8;
  background: var(--accent-soft);
}

.nav-group-arrow {
  transition: transform .2s ease;
}

.nav-group-toggle[aria-expanded="true"] .nav-group-arrow {
  transform: rotate(0deg);
}

.nav-group-toggle[aria-expanded="false"] .nav-group-arrow {
  transform: rotate(-90deg);
}

.sidebar .nav-link {
  color: #334155;
  border-radius: var(--card-radius);
  margin: .15rem .25rem;
  padding: .67rem .88rem;
  font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: var(--accent-soft);
  color: #1d4ed8;
}

.sidebar .nav-link .badge {
  font-size: .68rem;
}

.content-wrap {
  margin-left: calc(var(--sidebar-width) + 24px);
  width: calc(100% - var(--sidebar-width) - 24px);
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  backdrop-filter: blur(8px);
  background: rgba(246, 248, 251, .94);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.topbar-main {
  padding: .95rem 0 .82rem;
}

.topbar-head {
  min-width: 260px;
}

.page-head h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.page-head p {
  margin: .3rem 0 0;
  color: var(--text-muted-2);
}

.topbar-actions .btn {
  border-radius: var(--card-radius);
  padding-inline: .72rem;
}

.quick-actions-bar {
  border-top: 1px solid rgba(15, 23, 42, .06);
  padding: .56rem 0 .65rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.quick-actions-label {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: #475569;
}

.quick-actions-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.quick-action-link {
  display: inline-flex;
  align-items: center;
  border-radius: var(--card-radius);
  border: 1px solid #dbe3f0;
  background: #fff;
  color: #1e293b;
  text-decoration: none;
  font-size: .84rem;
  padding: .35rem .65rem;
  transition: all .16s ease;
}

.quick-action-link:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, var(--subnav-width)) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1rem .8rem;
}

.subnav-panel {
  min-width: 0;
}

.subnav-card {
  position: sticky;
  top: 136px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  padding: .9rem;
}

.subnav-title {
  color: #334155;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 800;
  margin-bottom: .65rem;
}

.subnav-link {
  display: block;
  color: #334155;
  text-decoration: none;
  border-radius: var(--card-radius);
  padding: .52rem .62rem;
  margin-bottom: .2rem;
  font-size: .9rem;
}

.subnav-link:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.subnav-link.active {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
}

.subnav-divider {
  margin: .55rem 0 .6rem;
  border-color: #e2e8f0;
}

.content-main {
  min-width: 0;
}

.content-main > .row,
.content-main > .content-limit > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.table-responsive,
.row,
.card,
.form-control,
.form-select {
  min-width: 0;
}

.card {
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, .98);
}

.card-header,
.modal-header,
.modal-footer {
  border-color: var(--line-soft);
}

.btn,
.form-control,
.form-select,
.alert,
.list-group-item,
.dropdown-menu {
  border-radius: var(--card-radius);
}

.rounded-3,
.rounded-4 {
  border-radius: var(--card-radius) !important;
}

.metric-card .metric-value {
  font-size: 1.8rem;
  font-weight: 750;
  line-height: 1;
  color: #182230;
}

.metric-card .metric-label,
.muted-2 {
  color: var(--text-muted-2);
}

.table thead th {
  color: #64748b;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom-width: 1px;
}

.table td, .table th {
  vertical-align: middle;
}

.status-dot {
  width: .7rem;
  height: .7rem;
  display: inline-block;
  border-radius: 999px;
  margin-right: .45rem;
}

.status-ok {
  background: var(--status-ok-bg);
  border: 1px solid var(--status-ok-line);
}

.status-warn {
  background: var(--status-warn-bg);
  border: 1px solid var(--status-warn-line);
}

.status-danger {
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-line);
}

.status-muted {
  background: var(--status-muted-bg);
  border: 1px solid var(--status-muted-line);
}

.kpi-tile {
  min-height: 150px;
}

.log-console {
  background: #0b1220;
  color: #d2e6ff;
  border-radius: var(--card-radius);
  padding: 1rem 1.1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .83rem;
  line-height: 1.55;
  max-height: 430px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

main pre:not(.log-console),
.card pre:not(.log-console) {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--card-radius);
  padding: .8rem .9rem;
  max-height: 560px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

details > summary {
  cursor: pointer;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-weight: 700;
  background: #e2e8f0;
  color: #0f172a;
}

.step-pill.active {
  background: var(--accent);
  color: #fff;
}

.config-chip {
  padding: .45rem .7rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  display: inline-flex;
  margin: .15rem;
  font-size: .8rem;
}

.secret-mask {
  letter-spacing: .12em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.timeline {
  border-left: 2px solid #e2e8f0;
  padding-left: 1rem;
  margin-left: .5rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 1rem;
}

.timeline-item:before {
  content: "";
  position: absolute;
  left: -1.42rem;
  top: .25rem;
  width: .8rem;
  height: .8rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px #dbeafe;
}

.server-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  border-left: 4px solid #2563eb;
}

.server-hero .text-white-50 {
  color: var(--text-muted-2) !important;
}

.server-hero .btn-light,
.server-hero .btn-outline-light {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.server-hero .btn-light:hover,
.server-hero .btn-outline-light:hover {
  background: var(--accent-soft);
  border-color: #93c5fd;
  color: #1d4ed8;
}

.server-grid-card {
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}

.server-grid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.server-grid-head {
  padding: 1rem 1rem .9rem;
  background: #f8fafc;
  color: #0f172a;
  border-bottom: 1px solid var(--line-soft);
}

.list-soft > * + * {
  border-top: 1px solid #eef2f7;
}

.quick-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.quick-link:hover .card {
  transform: translateY(-1px);
}

.form-text code {
  color: #1d4ed8;
}

.page-footer {
  color: #64748b;
  font-size: .88rem;
}

.settings-tabs .nav-link {
  border-radius: .6rem;
  padding: .42rem .7rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-weight: 600;
}

.settings-tabs .nav-link.active {
  background: var(--accent);
  border-color: var(--accent);
}

.settings-general {
  display: block;
}

.general-cockpit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .28fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1.15rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  box-shadow: var(--shadow-soft);
}

.general-cockpit h3 {
  margin: .15rem 0 .45rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #172033;
}

.general-cockpit p {
  margin: 0;
  max-width: 760px;
  color: #667085;
  line-height: 1.55;
}

.general-current-user {
  display: grid;
  gap: .22rem;
  align-content: center;
  padding: .9rem;
  border: 1px solid #dce6f5;
  border-radius: .85rem;
  background: #fff;
}

.general-current-user span,
.general-current-user small {
  color: #667085;
}

.general-current-user span {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
  font-weight: 800;
}

.general-current-user strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #172033;
  font-size: 1.15rem;
  line-height: 1.15;
}

.general-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.general-kpi-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .05rem .7rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 28, 46, .04);
}

.general-kpi-grid .metric-icon {
  grid-row: span 2;
}

.general-kpi-grid strong,
.general-kpi-grid small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.general-kpi-grid strong {
  color: #172033;
  font-size: 1.18rem;
  line-height: 1.1;
  white-space: nowrap;
}

.general-kpi-grid small {
  color: #667085;
  line-height: 1.25;
}

.general-layout {
  display: grid;
  grid-template-columns: minmax(240px, .34fr) minmax(0, 1fr);
  gap: .95rem;
  align-items: start;
}

.general-profile-card,
.general-form-card,
.general-save-bar {
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.general-profile-card {
  display: grid;
  gap: .9rem;
  padding: 1rem;
  position: sticky;
  top: 1rem;
}

.general-security-list {
  display: grid;
  gap: .45rem;
}

.general-security-list span {
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  min-width: 0;
  padding: .55rem .65rem;
  border: 1px solid #e4e9f2;
  border-radius: .75rem;
  background: #f8fafc;
}

.general-security-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #334155;
  font-size: .84rem;
}

.general-security-list em {
  flex: 0 0 auto;
  font-style: normal;
  color: #172033;
  font-weight: 800;
  font-size: .84rem;
}

.general-side-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .55rem;
  align-items: start;
  padding: .7rem;
  border: 1px solid #dbeafe;
  border-radius: .8rem;
  background: #f4f8ff;
  color: #475569;
  font-size: .86rem;
  line-height: 1.4;
}

.general-side-note i {
  color: #1d4ed8;
}

.general-form-stack {
  display: grid;
  gap: .9rem;
  min-width: 0;
}

.general-form-card {
  padding: 1rem;
}

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

.general-field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.general-field-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.general-field-grid label {
  display: grid;
  gap: .28rem;
  min-width: 0;
}

.general-field-grid label span {
  color: #475569;
  font-size: .8rem;
  font-weight: 750;
}

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

.general-toggle-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.general-switch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .6rem;
  align-items: start;
  min-width: 0;
  min-height: 4.1rem;
  padding: .72rem;
  border: 1px solid #e4e9f2;
  border-radius: .85rem;
  background: #f8fafc;
}

.general-switch .form-check-input {
  margin: .15rem 0 0;
}

.general-switch strong,
.general-switch small {
  display: block;
  min-width: 0;
}

.general-switch strong {
  color: #172033;
  line-height: 1.2;
}

.general-switch small {
  color: #667085;
  line-height: 1.35;
}

.general-details {
  padding: 1rem;
}

.general-details summary {
  display: grid;
  gap: .15rem;
  cursor: pointer;
  list-style: none;
  margin-bottom: .85rem;
}

.general-details summary::-webkit-details-marker {
  display: none;
}

.general-details summary span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #172033;
  font-weight: 850;
}

.general-details summary small {
  color: #667085;
}

.general-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  background: #f8fbff;
}

.general-save-bar span {
  color: #667085;
  line-height: 1.4;
}

.general-save-bar .btn {
  flex: 0 0 auto;
}

.settings-users {
  display: block;
}

.users-cockpit {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  box-shadow: var(--shadow-soft);
}

.users-cockpit h3 {
  margin: .15rem 0 .45rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #172033;
}

.users-cockpit p {
  margin: 0;
  max-width: 760px;
  color: #667085;
  line-height: 1.55;
}

.users-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.users-kpi-grid > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .05rem .7rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 28, 46, .04);
}

.users-kpi-grid .metric-icon {
  grid-row: span 2;
}

.users-kpi-grid strong {
  color: #172033;
  font-size: 1.45rem;
  line-height: 1;
}

.users-kpi-grid small {
  color: #667085;
  line-height: 1.25;
}

.settings-users .card {
  border-color: #dce6f5;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.settings-user-list {
  display: grid;
  gap: .75rem;
}

.settings-user-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: .65rem;
  align-items: center;
  padding: .75rem;
  border: 1px solid #e4e9f2;
  border-radius: .9rem;
  background: #fff;
}

.settings-user-main strong,
.settings-user-main small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-user-main small {
  color: #667085;
}

.settings-user-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(110px, .55fr) auto minmax(170px, 1fr) auto;
  gap: .5rem;
  align-items: center;
  padding-top: .65rem;
  border-top: 1px solid #eef2f7;
}

.settings-user-active {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2rem;
  margin: 0;
  color: #475569;
  font-size: .84rem;
}

.settings-roles {
  display: block;
}

.roles-cockpit {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  box-shadow: var(--shadow-soft);
}

.roles-cockpit h3 {
  margin: .15rem 0 .45rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #172033;
}

.roles-cockpit p {
  margin: 0;
  max-width: 760px;
  color: #667085;
  line-height: 1.55;
}

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

.role-card-grid article {
  display: grid;
  gap: .45rem;
  min-height: 12rem;
  padding: .95rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 28, 46, .04);
}

.role-card-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .75rem;
  background: #eef5ff;
  color: #1d4ed8;
}

.role-card-grid strong {
  color: #172033;
  font-size: 1.05rem;
}

.role-card-grid small {
  color: #667085;
  line-height: 1.45;
}

.role-card-grid em {
  align-self: end;
  justify-self: start;
  border: 1px solid #dce6f5;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  padding: .18rem .55rem;
  font-size: .78rem;
  font-style: normal;
  font-weight: 800;
}

.settings-roles .card {
  border-color: #dce6f5;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.role-matrix {
  display: grid;
  gap: .5rem;
}

.role-matrix-head,
.role-matrix-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(110px, .3fr));
  gap: .5rem;
  align-items: center;
}

.role-matrix-head {
  color: #667085;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.role-matrix-row {
  padding: .65rem;
  border: 1px solid #e4e9f2;
  border-radius: .85rem;
  background: #fff;
}

.role-matrix-row strong {
  color: #172033;
  line-height: 1.25;
}

.role-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-height: 2rem;
  border: 1px solid #e4e9f2;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: .82rem;
  font-weight: 800;
}

.role-access.allowed {
  border-color: #bdebd7;
  background: #effbf5;
  color: #047857;
}

.role-access-label {
  display: none;
}

.settings-ai {
  display: block;
}

.ai-cockpit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .28fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1.15rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  box-shadow: var(--shadow-soft);
}

.ai-cockpit h3 {
  margin: .15rem 0 .45rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #172033;
}

.ai-cockpit p {
  margin: 0;
  max-width: 780px;
  color: #667085;
  line-height: 1.55;
}

.ai-cockpit-status {
  display: grid;
  gap: .22rem;
  align-content: center;
  padding: .9rem;
  border: 1px solid #dce6f5;
  border-radius: .85rem;
  background: #fff;
}

.ai-cockpit-status span,
.ai-cockpit-status small {
  color: #667085;
}

.ai-cockpit-status span {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
  font-weight: 800;
}

.ai-cockpit-status strong {
  color: #172033;
  font-size: 1.25rem;
  line-height: 1.15;
}

.ai-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.ai-kpi-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .05rem .7rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 28, 46, .04);
}

.ai-kpi-grid .metric-icon {
  grid-row: span 2;
}

.ai-kpi-grid strong {
  color: #172033;
  font-size: 1.45rem;
  line-height: 1;
}

.ai-kpi-grid small {
  color: #667085;
  line-height: 1.25;
}

.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: .9rem;
  align-items: start;
}

.ai-provider-panel,
.ai-policy-panel,
.ai-runtime-card {
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.ai-provider-grid {
  display: grid;
  gap: .85rem;
}

.ai-provider-card {
  display: grid;
  gap: .85rem;
  padding: .85rem;
  border: 1px solid #e4e9f2;
  border-radius: .9rem;
  background: #f8fafc;
}

.ai-provider-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
}

.ai-provider-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .75rem;
  background: #eef5ff;
  color: #1d4ed8;
}

.ai-provider-top strong,
.ai-provider-top small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-provider-top strong {
  color: #172033;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.ai-provider-top small {
  color: #667085;
}

.ai-provider-form,
.ai-policy-form {
  display: grid;
  gap: .7rem;
}

.ai-provider-form label,
.ai-policy-form label {
  display: grid;
  gap: .28rem;
  min-width: 0;
}

.ai-provider-form label span,
.ai-policy-form label span {
  color: #475569;
  font-size: .8rem;
  font-weight: 750;
}

.ai-provider-fields,
.ai-policy-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.ai-policy-group.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-policy-group.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-empty-state {
  display: grid;
  place-items: center;
  gap: .3rem;
  min-height: 10rem;
  padding: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: .9rem;
  background: #f8fafc;
  color: #667085;
  text-align: center;
}

.ai-empty-state i {
  font-size: 1.5rem;
  color: #94a3b8;
}

.ai-runtime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.ai-runtime-card {
  display: grid;
  gap: .8rem;
  min-height: 12rem;
}

.ai-runtime-card > small {
  color: #667085;
  line-height: 1.4;
}

.ai-route {
  display: grid;
  gap: .45rem;
}

.ai-route span,
.ai-provider-stats span,
.ai-call-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-width: 0;
  padding: .55rem .65rem;
  border: 1px solid #e4e9f2;
  border-radius: .75rem;
  background: #f8fafc;
  color: #334155;
}

.ai-provider-stats,
.ai-call-list {
  display: grid;
  gap: .45rem;
}

.ai-provider-stats span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ai-provider-stats small {
  grid-column: 1 / -1;
  color: #667085;
}

.ai-provider-stats strong,
.ai-call-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #172033;
}

.ai-provider-stats em,
.ai-call-list em {
  flex: 0 0 auto;
  font-style: normal;
  color: #667085;
  font-size: .82rem;
}

.ai-provider-stats .muted,
.ai-call-list .muted {
  justify-content: flex-start;
  color: #667085;
}

.settings-billing {
  display: block;
}

.billing-cockpit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .36fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1.15rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  box-shadow: var(--shadow-soft);
}

.billing-cockpit h3 {
  margin: .15rem 0 .45rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #172033;
}

.billing-cockpit p {
  margin: 0;
  max-width: 760px;
  color: #667085;
  line-height: 1.55;
}

.billing-tenant-chip {
  display: grid;
  gap: .25rem;
  align-content: center;
  padding: .9rem;
  border: 1px solid #dce6f5;
  border-radius: .85rem;
  background: #fff;
}

.billing-tenant-chip span,
.billing-tenant-chip small {
  color: #667085;
}

.billing-tenant-chip span {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
  font-weight: 800;
}

.billing-tenant-chip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #172033;
  font-size: 1.25rem;
}

.billing-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.billing-kpi-grid > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .05rem .7rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 28, 46, .04);
}

.billing-kpi-grid .metric-icon {
  grid-row: span 2;
}

.billing-kpi-grid strong {
  color: #172033;
  font-size: 1.45rem;
  line-height: 1;
}

.billing-kpi-grid small {
  color: #667085;
  line-height: 1.25;
}

.billing-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  padding: .75rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.billing-flow div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .05rem .65rem;
  align-items: center;
  padding: .65rem;
  border-radius: .85rem;
  background: #f8fafc;
}

.billing-flow span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
}

.billing-flow strong {
  color: #172033;
  line-height: 1.15;
}

.billing-flow small {
  color: #667085;
  line-height: 1.3;
}

.settings-billing .card {
  border-color: #dce6f5;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.settings-billing .card h6 {
  color: #172033;
  font-weight: 800;
}

.billing-entitlements {
  display: grid;
  gap: .85rem;
}

.billing-entitlements > div {
  padding: .8rem;
  border: 1px solid #e4e9f2;
  border-radius: .85rem;
  background: #f8fafc;
}

.billing-entitlements h6 {
  margin: 0 0 .55rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #475569;
}

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

.billing-entitlement-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-width: 0;
  padding: .45rem .55rem;
  border: 1px solid #dce6f5;
  border-radius: .65rem;
  background: #fff;
  color: #334155;
}

.billing-entitlement-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
}

.billing-entitlement-list em {
  flex: 0 0 auto;
  font-style: normal;
  color: #172033;
  font-weight: 800;
  font-size: .82rem;
}

.billing-entitlement-list .muted {
  grid-column: 1 / -1;
  justify-content: flex-start;
  color: #667085;
  font-size: .86rem;
}

.settings-billing .table {
  margin-bottom: 0;
}

.badge {
  border: 1px solid transparent;
  font-weight: 650;
}

.badge.text-bg-primary,
.text-bg-primary {
  background: #e8f1ff !important;
  border-color: #bdd5ff !important;
  color: #2557b8 !important;
}

.badge.text-bg-success,
.text-bg-success,
.badge.text-bg-success-subtle,
.text-bg-success-subtle {
  background: var(--status-ok-bg) !important;
  border-color: var(--status-ok-line) !important;
  color: var(--status-ok) !important;
}

.badge.text-bg-warning,
.text-bg-warning,
.badge.text-bg-warning-subtle,
.text-bg-warning-subtle {
  background: var(--status-warn-bg) !important;
  border-color: var(--status-warn-line) !important;
  color: var(--status-warn) !important;
}

.badge.text-bg-danger,
.text-bg-danger,
.badge.text-bg-danger-subtle,
.text-bg-danger-subtle {
  background: var(--status-danger-bg) !important;
  border-color: var(--status-danger-line) !important;
  color: var(--status-danger) !important;
}

.badge.text-bg-info,
.text-bg-info,
.badge.text-bg-info-subtle,
.text-bg-info-subtle {
  background: #e9f8fb !important;
  border-color: #b9e4ec !important;
  color: #236778 !important;
}

.badge.text-bg-secondary,
.text-bg-secondary,
.badge.text-bg-light,
.text-bg-light {
  background: var(--status-muted-bg) !important;
  border-color: var(--status-muted-line) !important;
  color: var(--status-muted) !important;
}

.text-success,
.metric-card .text-success {
  color: var(--status-ok) !important;
}

.text-warning,
.metric-card .text-warning {
  color: var(--status-warn) !important;
}

.text-danger,
.metric-card .text-danger {
  color: var(--status-danger) !important;
}

.alert-success {
  background: var(--status-ok-bg);
  border-color: var(--status-ok-line);
  color: var(--status-ok);
}

.alert-warning {
  background: var(--status-warn-bg);
  border-color: var(--status-warn-line);
  color: var(--status-warn);
}

.alert-danger {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-line);
  color: var(--status-danger);
}

.alert-info {
  background: #eef7ff;
  border-color: #c7dcf4;
  color: #285d8f;
}

.btn-success {
  background: var(--status-ok);
  border-color: var(--status-ok);
}

.btn-warning {
  background: var(--status-warn-bg);
  border-color: var(--status-warn-line);
  color: var(--status-warn);
}

.btn-danger {
  background: var(--status-danger);
  border-color: var(--status-danger);
}

.modal-dialog {
  margin: 2rem auto;
}

.modal-content {
  border-radius: var(--card-radius);
  border: 1px solid var(--line-soft);
  box-shadow: 0 24px 48px rgba(15, 23, 42, .22);
}

.modal-body {
  max-height: calc(100vh - 200px);
  overflow: auto;
}

.text-modal-console {
  background: #0b1220;
  color: #d2e6ff;
  min-height: 180px;
  max-height: 68vh;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.wizard-step {
  border: 1px solid var(--line-soft);
  background: #fff;
  border-radius: var(--card-radius);
  padding: .8rem .9rem;
}

.wizard-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-weight: 800;
  margin-right: .45rem;
}

.form-section-title {
  color: #334155;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .65rem;
}

.form-label {
  color: #334155;
  font-weight: 550;
}

.monitoring-slo-form .btn {
  min-height: 2.35rem;
  white-space: normal;
}

.helper-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted-2);
}

.helper-list li + li {
  margin-top: .25rem;
}

.surface-muted {
  border: 1px solid var(--line-soft);
  background: #f8fafc;
  border-radius: var(--card-radius);
}

@media (max-width: 1300px) {
  .workbench {
    grid-template-columns: minmax(0, 232px) minmax(0, 1fr);
  }
}

@media (max-width: 1099.98px) {
  :root {
    --subnav-width: 220px;
  }

  .app-shell {
    padding: .75rem;
  }

  .sidebar {
    left: .75rem;
    top: .75rem;
    bottom: .75rem;
  }

  .content-wrap {
    margin-left: calc(var(--sidebar-width) + 16px);
    width: calc(100% - var(--sidebar-width) - 16px);
  }
}

@media (max-width: 991.98px) {
  .app-shell {
    display: block;
    padding: .65rem;
  }

  .sidebar {
    position: static;
    width: 100%;
    max-height: none;
    margin-bottom: .75rem;
  }

  .content-wrap {
    margin-left: 0;
    width: 100%;
  }

  .workbench {
    display: block;
    padding-inline: .1rem;
  }

  .subnav-panel {
    margin-bottom: .75rem;
  }

  .subnav-card {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .wizard-steps {
    grid-template-columns: 1fr;
  }
}

/* Admin Pack application shell: compact dashboard layout inspired by modern SaaS control panels. */
:root {
  --sidebar-width: 280px;
  --content-max-width: 1360px;
  --app-bg: #f4f7fb;
  --card-radius: .85rem;
  --shadow-soft: 0 1px 2px rgba(20, 28, 46, .04), 0 12px 30px rgba(20, 28, 46, .055);
  --accent: #2164e8;
  --accent-strong: #1554d1;
  --accent-soft: #edf4ff;
  --line-soft: #e4e9f2;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% -10%, rgba(33, 100, 232, .08), transparent 30rem),
    var(--app-bg);
}

.app-shell {
  padding: 0;
}

.sidebar {
  left: 0;
  top: 0;
  bottom: 0;
  border-width: 0 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.sidebar .brand {
  min-height: 76px;
  padding: 1.15rem 1.35rem;
}

.brand-mark,
.metric-icon,
.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: .8rem;
  background: linear-gradient(135deg, var(--accent) 0%, #58a6ff 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(33, 100, 232, .22);
}

.brand-tools {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2rem;
  padding: .35rem .62rem;
  border: 1px solid #d5dfef;
  border-radius: .7rem;
  background: #fff;
  color: #344054;
  font-weight: 700;
  font-size: .82rem;
}

.mobile-nav-toggle:hover {
  border-color: #bdd0f7;
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.nav-groups {
  padding: .9rem .95rem 1.4rem;
}

.nav-group + .nav-group {
  margin-top: .45rem;
}

.nav-group-toggle {
  padding: .62rem .72rem;
  color: #667085;
}

.nav-group-toggle > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.nav-group-icon {
  width: 1rem;
  font-size: 1rem;
  color: #94a3b8;
}

.nav-group-toggle:hover,
.nav-group-toggle.active {
  background: #f4f8ff;
  color: #26344d;
}

.nav-group-toggle.active .nav-group-icon,
.nav-group-toggle:hover .nav-group-icon {
  color: var(--accent);
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  min-height: 2.35rem;
  margin: .1rem 0;
  padding: .56rem .72rem .56rem 2.15rem;
  color: #344054;
}

.sidebar .nav-link > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.nav-link-icon {
  color: #8a97aa;
  font-size: .95rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.sidebar .nav-link.active .nav-link-icon,
.sidebar .nav-link:hover .nav-link-icon {
  color: var(--accent);
}

.content-wrap {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
}

.topbar {
  top: 0;
  background: rgba(244, 247, 251, .88);
  border-bottom: 1px solid rgba(20, 28, 46, .08);
}

.topbar-main {
  padding: 1.15rem 1.5rem .8rem;
}

.topbar-head {
  min-width: 0;
}

.page-head h1 {
  font-size: 1.45rem;
  font-weight: 760;
  letter-spacing: 0;
}

.page-head p {
  color: #667085;
  font-size: .94rem;
}

.topbar-actions {
  align-items: center;
}

.topbar-actions .btn,
.quick-action-link,
.subnav-link {
  min-height: 2.2rem;
}

.quick-actions-bar {
  padding: .7rem 1.5rem .9rem;
}

.quick-actions-list {
  gap: .5rem;
}

.quick-action-link {
  gap: .45rem;
  padding: .45rem .75rem;
  background: rgba(255, 255, 255, .75);
}

.workbench {
  display: block;
  padding: 1.25rem 1.5rem 2rem;
}

.subnav-panel {
  margin-bottom: 1rem;
}

.subnav-card {
  position: static;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.subnav-title {
  margin: 0 .35rem 0 0;
  color: #667085;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: .48rem .78rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .82);
  color: #344054;
  white-space: nowrap;
}

.subnav-link:hover,
.subnav-link.active {
  border-color: #c8d9fb;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.subnav-divider {
  width: 1px;
  height: 1.6rem;
  margin: 0 .25rem;
  border: 0;
  background: var(--line-soft);
}

.content-main > .content-limit {
  padding-top: 0 !important;
}

.card {
  border-color: rgba(210, 218, 230, .9);
}

.card-body {
  padding: 1.15rem;
}

.btn {
  font-weight: 620;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(33, 100, 232, .18);
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.eyebrow {
  color: #667085;
  font-size: .74rem;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ops-hero {
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,245,255,.92)),
    #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.ops-hero-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.45rem;
}

.ops-hero h2 {
  font-size: 1.55rem;
  font-weight: 780;
  letter-spacing: 0;
}

.ops-hero p {
  color: #667085;
}

.ops-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: flex-end;
}

.ops-hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: .85rem 1.45rem;
  border-top: 1px solid #dce6f5;
  background: rgba(255,255,255,.62);
  color: #344054;
  font-size: .9rem;
}

.ops-hero-strip > div {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

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

.metric-card {
  overflow: hidden;
}

.metric-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.metric-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: .75rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.05rem;
}

.metric-card .metric-value {
  font-size: 2rem;
}

.metric-card .metric-label {
  margin-top: .35rem;
  font-size: .9rem;
}

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

.section-heading h5 {
  margin: .1rem 0 0;
  font-weight: 740;
}

.dashboard-table-card .table thead th {
  background: transparent;
}

.empty-state {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem .35rem;
}

.empty-state i {
  color: #98a2b3;
  font-size: 1.6rem;
}

.action-stack {
  display: grid;
  gap: .7rem;
}

.action-item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .88rem;
  border: 1px solid var(--line-soft);
  border-radius: .85rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.action-item:hover {
  border-color: #c8d9fb;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(20, 28, 46, .06);
}

.action-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .75rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.action-item strong {
  display: block;
  color: #182230;
}

.action-item small {
  display: block;
  margin-top: .12rem;
  color: #667085;
}

@media (max-width: 1199.98px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .content-wrap {
    margin-left: 0;
    width: 100%;
  }

  .sidebar {
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    margin: .7rem;
  }

  .topbar-main,
  .quick-actions-bar,
  .workbench {
    padding-left: .8rem;
    padding-right: .8rem;
  }
}

@media (max-width: 767.98px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .ops-hero-main {
    display: block;
  }

  .ops-hero-actions {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading .btn {
    margin-top: .65rem;
  }
}

/* Product-quality UX pass: contours, symmetry, motion, admin cockpit. */
:root {
  --accent-teal: #168c7d;
  --accent-violet: #6d5bd0;
  --accent-amber: #a66b14;
  --accent-rose: #bf3b5f;
  --panel-glass: rgba(255, 255, 255, .78);
}

@keyframes apFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes apSoftPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(33, 100, 232, .18);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(33, 100, 232, 0);
  }
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #667085;
  font-size: .8rem;
  margin-bottom: .3rem;
}

.breadcrumbs a {
  color: #475467;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs strong {
  color: #182230;
  font-weight: 650;
}

.context-help {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .7rem;
}

.context-help span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 1.85rem;
  padding: .28rem .58rem;
  border: 1px solid #dce6f5;
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  color: #475467;
  font-size: .78rem;
  font-weight: 620;
}

.contour-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  padding: .1rem 1.5rem .9rem;
}

.contour-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 3.4rem;
  padding: .7rem .85rem;
  border: 1px solid rgba(211, 219, 232, .92);
  border-radius: 1rem;
  background: var(--panel-glass);
  color: #344054;
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.contour-pill:before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 3px solid transparent;
  pointer-events: none;
}

.contour-pill i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: .7rem;
  background: #f1f6ff;
  color: var(--accent);
}

.contour-pill span,
.contour-pill small {
  display: block;
}

.contour-pill span {
  font-weight: 740;
  line-height: 1.05;
}

.contour-pill small {
  color: #667085;
  font-size: .75rem;
  margin-top: .12rem;
}

.contour-pill:hover,
.contour-pill.active {
  transform: translateY(-1px);
  border-color: #bdd0f7;
  box-shadow: 0 12px 28px rgba(20, 28, 46, .08);
  background: rgba(255,255,255,.94);
}

.contour-pill.active:before {
  border-left-color: var(--accent);
}

.subnav-panel {
  display: flex;
  justify-content: center;
}

.subnav-mini-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.35rem;
  padding: .45rem .75rem;
  border: 1px solid rgba(211, 219, 232, .86);
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: #344054;
  font-weight: 720;
  box-shadow: var(--shadow-soft);
}

.subnav-card {
  width: 100%;
  justify-content: center;
  padding: .45rem;
  border: 1px solid rgba(211, 219, 232, .72);
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  backdrop-filter: blur(10px);
}

.subnav-titlebar {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 1.85rem;
}

.subnav-title {
  flex: 0 0 100%;
  text-align: center;
  margin: .15rem 0 .2rem;
}

.subnav-titlebar .subnav-title {
  flex: 0 1 auto;
  margin: 0;
}

.subnav-toggle {
  position: absolute;
  right: .15rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 1.75rem;
  padding: .25rem .55rem;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #475569;
  font-size: .76rem;
  font-weight: 760;
}

.subnav-toggle:hover,
.subnav-mini-toggle:hover {
  border-color: #bdd0f7;
  background: #fff;
  color: var(--accent-strong);
}

.subnav-link {
  border-radius: 999px;
}

body.subnav-collapsed .subnav-panel {
  justify-content: flex-start;
}

body.subnav-collapsed .subnav-card {
  display: none;
}

body.subnav-collapsed .subnav-mini-toggle {
  display: inline-flex;
}

.ops-hero,
.admin-hero,
.metric-card,
.dashboard-table-card,
.command-card,
.action-item {
  animation: apFadeUp .36s ease both;
}

.metric-card:nth-child(2),
.command-card:nth-child(2) { animation-delay: .04s; }
.metric-card:nth-child(3),
.command-card:nth-child(3) { animation-delay: .08s; }
.metric-card:nth-child(4),
.command-card:nth-child(4) { animation-delay: .12s; }

.status-ok {
  animation: apSoftPulse 2.4s ease-in-out infinite;
}

.metric-card,
.command-card,
.action-item,
.ops-hero,
.admin-hero {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.metric-card:hover,
.command-card:hover,
.action-item:hover {
  transform: translateY(-3px);
  border-color: #c5d6f6;
  box-shadow: 0 18px 38px rgba(20, 28, 46, .09);
}

.admin-workspace-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.admin-workspace-pill {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .05rem .65rem;
  align-items: center;
  min-height: 4.6rem;
  padding: .8rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: #fff;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(20, 28, 46, .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.admin-workspace-pill:hover,
.admin-workspace-pill.active {
  transform: translateY(-2px);
  border-color: #bcd1ff;
  box-shadow: 0 16px 32px rgba(20, 28, 46, .08);
}

.admin-workspace-pill.active {
  background: linear-gradient(135deg, #ffffff, #f0f6ff);
}

.admin-workspace-pill i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: .7rem;
  background: #eef5ff;
  color: #1d4ed8;
}

.admin-workspace-pill span {
  font-weight: 800;
}

.admin-workspace-pill small {
  color: #667085;
  line-height: 1.25;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 1rem;
  align-items: stretch;
  border: 1px solid #dce6f5;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(239, 248, 246, .94));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.admin-hero-copy {
  padding: 1.45rem;
}

.admin-hero h2 {
  margin: .2rem 0 .5rem;
  font-size: 1.7rem;
  font-weight: 790;
}

.admin-hero p {
  max-width: 760px;
  margin: 0;
  color: #667085;
}

.admin-signal-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  padding: 1.2rem;
  background: rgba(255,255,255,.5);
  border-left: 1px solid #dce6f5;
}

.admin-signal-board span {
  display: grid;
  align-content: center;
  gap: .4rem;
  min-height: 5.1rem;
  padding: .85rem;
  border: 1px solid #dce6f5;
  border-radius: .95rem;
  background: rgba(255,255,255,.86);
}

.admin-signal-board i {
  color: var(--accent);
  font-size: 1.25rem;
}

.admin-signal-board strong {
  color: #182230;
  font-size: .9rem;
}

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

.metric-value-text {
  font-size: 1.25rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accent-teal {
  background: #e8f7f4;
  color: var(--accent-teal);
}

.accent-violet {
  background: #f1efff;
  color: var(--accent-violet);
}

.accent-amber {
  background: #fff6df;
  color: var(--accent-amber);
}

.accent-rose {
  background: #fff1f4;
  color: var(--accent-rose);
}

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

.command-card {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  min-height: 8.1rem;
  padding: 1rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.command-primary {
  background: linear-gradient(135deg, #ffffff, #f0f6ff);
}

.command-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .85rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.command-card strong {
  display: block;
  color: #182230;
  font-size: 1rem;
}

.command-card small {
  display: block;
  margin-top: .3rem;
  color: #667085;
  line-height: 1.45;
}

.admin-lifecycle {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  padding: .75rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-lifecycle div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .05rem .65rem;
  align-items: center;
  min-width: 0;
  padding: .65rem;
  border-radius: .85rem;
  background: #f8fafc;
}

.admin-lifecycle span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
}

.admin-lifecycle strong {
  color: #172033;
  line-height: 1.15;
}

.admin-lifecycle small {
  color: #667085;
  line-height: 1.3;
}

.admin-user-list {
  display: grid;
  gap: .65rem;
}

.admin-user-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: .65rem;
  align-items: center;
  min-width: 0;
  padding: .7rem;
  border: 1px solid #e4e9f2;
  border-radius: .85rem;
  background: #fff;
}

.admin-user-avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
}

.admin-user-row strong,
.admin-user-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-row small {
  color: #667085;
}

.admin-role-badge {
  border: 1px solid #dce6f5;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  padding: .16rem .5rem;
  font-size: .75rem;
  font-weight: 800;
}

.admin-state-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 999px;
  background: #cbd5e1;
}

.admin-state-dot.active {
  background: #10b981;
  box-shadow: 0 0 0 .22rem rgba(16, 185, 129, .12);
}

.admin-governance-panel {
  padding: 1rem;
  border: 1px solid #dce6f5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.governance-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.governance-list div {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .75rem;
  border: 1px solid #e4e9f2;
  border-radius: .85rem;
  background: #fff;
}

.governance-list i {
  color: var(--accent-teal);
}

.starter-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: 1rem;
  align-items: stretch;
}

.starter-hero-copy,
.starter-hero-panel,
.starter-tour,
.starter-intake-main,
.starter-result,
.starter-note-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.starter-hero-copy {
  padding: clamp(1.15rem, 2.3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(47, 111, 237, .09), rgba(17, 185, 129, .07)),
    #fff;
}

.starter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #1d4ed8;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .75rem;
}

.starter-hero-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.05;
  margin: 0 0 .85rem;
  font-weight: 800;
  color: #0f172a;
}

.starter-hero-copy p {
  max-width: 780px;
  margin: 0;
  color: #526174;
  font-size: 1rem;
  line-height: 1.62;
}

.starter-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.25rem;
}

.starter-hero-panel {
  padding: .85rem;
  display: grid;
  gap: .7rem;
}

.starter-flow-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  padding: .78rem;
  border: 1px solid #edf1f7;
  border-radius: var(--card-radius);
  background: #f9fbfd;
  transform: translateY(0);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.starter-flow-row.active,
.starter-flow-row:hover {
  border-color: rgba(47, 111, 237, .28);
  background: #f5f9ff;
  transform: translateY(-1px);
}

.starter-flow-row > span {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
}

.starter-flow-row small,
.starter-tour-step span,
.starter-task-card p,
.starter-note-panel p {
  display: block;
  color: #667085;
  line-height: 1.45;
}

.starter-tour {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: .75rem;
  align-items: center;
  padding: .8rem;
}

.starter-tour-step {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  min-width: 0;
}

.starter-tour-step i {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .55rem;
  background: #eef5ff;
  color: #1d4ed8;
  flex: 0 0 auto;
}

.starter-task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}

.starter-task-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .85rem;
  min-height: 220px;
  padding: .95rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.starter-task-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 111, 237, .32);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.starter-task-icon {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: .65rem;
  color: #0f172a;
  background: #f2f5f9;
  font-size: 1.15rem;
}

.starter-task-body h3 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
  font-weight: 750;
}

.starter-task-body span {
  flex: 0 0 auto;
  font-size: .72rem;
  color: #475569;
  border: 1px solid #e4e9f2;
  border-radius: 999px;
  padding: .18rem .45rem;
  background: #f8fafc;
}

.starter-tone-primary .starter-task-icon { background: #eef5ff; color: #1d4ed8; }
.starter-tone-success .starter-task-icon { background: #e9f8f1; color: #047857; }
.starter-tone-info .starter-task-icon { background: #ecfeff; color: #0e7490; }
.starter-tone-warning .starter-task-icon { background: #fff7e6; color: #a16207; }
.starter-tone-secondary .starter-task-icon { background: #f1f5f9; color: #475569; }
.starter-tone-dark .starter-task-icon { background: #eef2f7; color: #111827; }
.starter-tone-danger .starter-task-icon { background: #fff1f2; color: #be123c; }
.starter-tone-purple .starter-task-icon { background: #f5f3ff; color: #6d28d9; }

.starter-intake-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 1rem;
  align-items: start;
}

.starter-intake-main,
.starter-result {
  padding: 1rem;
}

.starter-textarea {
  min-height: 188px;
  resize: vertical;
}

.starter-safe-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid #b9dec9;
  border-radius: 999px;
  background: #e9f8f1;
  color: #176243;
  padding: .35rem .65rem;
  font-size: .8rem;
  font-weight: 700;
}

.starter-result {
  position: sticky;
  top: 170px;
}

.starter-result[hidden] {
  display: none;
}

.starter-result-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: .8rem;
}

.starter-result-head h4 {
  margin: .1rem 0 0;
  font-size: 1.05rem;
}

.starter-result-head > i {
  font-size: 1.8rem;
  color: #16a34a;
}

.starter-result-label {
  color: #1d4ed8;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.starter-alerts {
  display: grid;
  gap: .45rem;
  margin-bottom: .8rem;
}

.starter-inline-alert {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  border-radius: var(--card-radius);
  padding: .58rem .65rem;
  font-size: .84rem;
  line-height: 1.35;
}

.starter-inline-warning {
  background: var(--status-warn-bg);
  color: var(--status-warn);
  border: 1px solid var(--status-warn-line);
}

.starter-inline-info {
  background: #eef5ff;
  color: #1e4ea8;
  border: 1px solid #c9daf9;
}

.starter-inline-success {
  background: var(--status-ok-bg);
  color: var(--status-ok);
  border: 1px solid var(--status-ok-line);
}

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

.starter-fields {
  display: grid;
  gap: .7rem;
}

.starter-advanced-fields {
  border: 1px solid #e5eaf1;
  border-radius: var(--card-radius);
  padding: .65rem;
  background: #f8fafc;
}

.starter-advanced-fields summary {
  cursor: pointer;
  color: #475569;
  font-size: .84rem;
  font-weight: 800;
}

.starter-field {
  display: grid;
  gap: .25rem;
  min-width: 0;
  color: #475569;
  font-size: .76rem;
  font-weight: 700;
}

.starter-field-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: .48rem .55rem;
  border: 1px solid #e5eaf1;
  border-radius: var(--card-radius);
}

.starter-field-check span {
  order: 2;
}

.starter-plan {
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line-soft);
}

.starter-plan h5,
.starter-ai-note strong {
  font-size: .9rem;
  margin-bottom: .45rem;
}

.starter-plan ol {
  margin: 0;
  padding-left: 1.1rem;
  color: #475569;
  font-size: .86rem;
  line-height: 1.5;
}

.starter-ai-note {
  margin-top: .85rem;
  padding: .75rem;
  border-radius: var(--card-radius);
  background: #f8fafc;
  border: 1px solid #e5eaf1;
}

.starter-ai-note p {
  margin: .35rem 0 0;
  color: #526174;
  font-size: .86rem;
  line-height: 1.55;
}

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

.starter-note-panel {
  display: flex;
  gap: .85rem;
  padding: 1rem;
  align-items: flex-start;
}

.starter-note-panel > i {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .65rem;
  background: #eef5ff;
  color: #1d4ed8;
  flex: 0 0 auto;
}

.starter-note-panel h4 {
  font-size: 1rem;
  margin: 0 0 .3rem;
}

.focus-shell .sidebar,
.focus-shell .contour-switcher,
.focus-shell .quick-actions-bar,
.focus-shell .subnav-panel,
.focus-shell .context-help {
  display: none;
}

.focus-shell .content-wrap {
  margin-left: 0;
  width: 100%;
}

.focus-shell .workbench {
  display: block;
  padding: .9rem 1rem 1.2rem;
}

.focus-shell .content-main > .content-limit {
  max-width: 1120px;
}

.focus-shell .topbar {
  position: static;
}

.focus-shell .topbar-actions > a {
  display: none;
}

.focus-shell .topbar-head,
.focus-shell .page-footer {
  display: none;
}

.focus-shell .topbar-main {
  padding: .65rem 0;
  justify-content: flex-end !important;
}

.focus-shell.starter-full-shell .sidebar {
  display: block;
}

.focus-shell.starter-full-shell .content-wrap {
  margin-left: calc(var(--sidebar-width) + 24px);
  width: calc(100% - var(--sidebar-width) - 24px);
}

.focus-shell.starter-full-shell .workbench {
  display: grid;
}

.focus-shell.starter-full-shell .subnav-panel {
  display: block;
}

.starter-focus-page {
  background: #f6f8fb;
}

.starter-simple {
  display: grid;
  gap: 1rem;
}

.starter-focus-bar,
.starter-primary-panel,
.starter-mini-card,
.starter-modal {
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.starter-focus-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem;
  background:
    linear-gradient(135deg, rgba(47, 111, 237, .08), rgba(16, 185, 129, .06)),
    #fff;
}

.starter-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .6rem;
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
}

.starter-breadcrumbs a {
  color: #475569;
  text-decoration: none;
}

.starter-breadcrumbs a:hover {
  color: #1d4ed8;
}

.starter-breadcrumbs i {
  font-size: .7rem;
  color: #94a3b8;
}

.starter-focus-bar h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.08;
  margin: 0 0 .45rem;
  font-weight: 800;
  color: #0f172a;
}

.starter-focus-bar p {
  max-width: 680px;
  margin: 0;
  color: #5b6778;
  line-height: 1.55;
}

.starter-focus-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.starter-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}

.starter-step {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem;
  border: 1px solid #dfe7f2;
  border-radius: var(--card-radius);
  background: #fff;
  color: #64748b;
}

.starter-step > span {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: #edf2f7;
  color: #334155;
  font-weight: 800;
  flex: 0 0 auto;
}

.starter-step strong {
  display: block;
  color: #172033;
  line-height: 1.1;
}

.starter-step small {
  display: block;
  line-height: 1.25;
}

.starter-step.active {
  border-color: #bcd1ff;
  background: #f4f8ff;
  color: #315aa7;
}

.starter-step.active > span,
.starter-step.done > span {
  background: #2f6fed;
  color: #fff;
}

.starter-step.done {
  border-color: #cdebd9;
  background: #f3fbf6;
}

.starter-primary-panel {
  padding: 1rem;
}

.starter-command-panel {
  display: grid;
  gap: .9rem;
}

.starter-scenario-row {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  padding-bottom: .9rem;
  margin-bottom: .95rem;
  border-bottom: 1px solid var(--line-soft);
}

.starter-scenario-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid #dfe7f2;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  padding: .45rem .7rem;
  font-weight: 700;
  font-size: .88rem;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.starter-scenario-pill:hover,
.starter-scenario-pill.active {
  background: #eef5ff;
  border-color: #bcd1ff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.starter-scenario-empty {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  border: 1px dashed #cbd5e1;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  padding: .45rem .75rem;
  font-size: .86rem;
}

.starter-scenario-empty[hidden] {
  display: none;
}

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

.starter-input-full {
  grid-column: 1 / -1;
}

.starter-task-brief {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .85rem;
  align-items: center;
  padding: .8rem;
  border: 1px solid #dfe7f2;
  border-radius: var(--card-radius);
  background: #f8fafc;
}

.starter-task-brief-icon {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: .75rem;
  background: #0f172a;
  color: #fff;
}

.starter-task-brief-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .2rem;
}

.starter-task-brief-head strong {
  color: #172033;
  font-size: .98rem;
}

.starter-task-brief-head small,
.starter-brief-outcome span {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: .12rem .45rem;
  border: 1px solid #d9e3f0;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: .74rem;
  font-weight: 800;
}

.starter-task-brief p,
.starter-brief-outcome p {
  margin: 0;
  color: #526174;
  line-height: 1.42;
  font-size: .88rem;
}

.starter-brief-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
}

.starter-main-grid {
  display: grid;
  grid-template-columns: minmax(250px, .34fr) minmax(0, 1fr);
  gap: .85rem;
  align-items: stretch;
}

.starter-task-select-card,
.starter-prompt-card {
  display: grid;
  gap: .7rem;
  min-width: 0;
  padding: .85rem;
  border: 1px solid #dfe7f2;
  border-radius: var(--card-radius);
  background: #fff;
}

.starter-task-select-card {
  align-content: start;
}

.starter-optional-panel {
  border: 1px solid #e1e8f2;
  border-radius: .75rem;
  background: #f8fafc;
  padding: .55rem .65rem;
}

.starter-optional-panel summary {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #475569;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 760;
  list-style: none;
}

.starter-optional-panel summary::-webkit-details-marker {
  display: none;
}

.starter-optional-panel summary i {
  color: #1d4ed8;
}

.starter-task-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .55rem;
}

.starter-task-inputs span {
  border: 1px solid #e1e8f2;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: .18rem .5rem;
  font-size: .76rem;
  font-weight: 700;
}

.starter-brief-outcome {
  display: grid;
  gap: .45rem;
  align-content: start;
  padding-left: .85rem;
  border-left: 1px solid #e1e8f2;
}

.starter-form-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .9rem;
}

.starter-textarea {
  min-height: 170px;
}

.starter-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.starter-helper-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.starter-mini-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .1rem .65rem;
  align-items: start;
  padding: .85rem;
  text-align: left;
  text-decoration: none;
  color: #172033;
}

.starter-mini-card i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .55rem;
  background: #eef5ff;
  color: #1d4ed8;
}

.starter-mini-card span {
  font-weight: 800;
}

.starter-mini-card small {
  color: #667085;
  line-height: 1.4;
}

.starter-modal {
  overflow: hidden;
  background: #fff;
}

.starter-focus-page .modal-header,
.starter-focus-page .modal-body,
.starter-focus-page .modal-footer {
  background: #fff;
}

.starter-modal-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

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

.starter-module-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  padding: .8rem;
  border: 1px solid #e1e8f2;
  border-radius: var(--card-radius);
  background: #fff;
  cursor: pointer;
}

.starter-module-item:hover {
  background: #f8fbff;
  border-color: #c9daf9;
}

.starter-module-item strong,
.starter-module-item small {
  display: block;
}

.starter-module-item small {
  color: #667085;
  line-height: 1.35;
}

.starter-catalog-item {
  position: relative;
  display: grid;
  gap: .45rem;
  min-height: 170px;
  padding: .85rem;
  border: 1px solid #e1e8f2;
  border-radius: var(--card-radius);
  background: #fff;
  text-align: left;
  color: #172033;
}

.starter-catalog-item strong {
  line-height: 1.15;
}

.starter-catalog-item small {
  color: #667085;
  line-height: 1.35;
}

.starter-catalog-item em {
  position: absolute;
  top: .8rem;
  right: .8rem;
  font-style: normal;
  font-size: .72rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e4e9f2;
  border-radius: 999px;
  padding: .15rem .45rem;
}

.starter-tour-modal .modal-body {
  display: grid;
  gap: 1rem;
}

.starter-tour-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.starter-tour-flow div {
  display: grid;
  gap: .25rem;
  padding: .8rem;
  border: 1px solid #e1e8f2;
  border-radius: var(--card-radius);
  background: #f8fafc;
}

.starter-tour-flow span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
}

.starter-tour-flow strong {
  color: #172033;
  line-height: 1.2;
}

.starter-tour-flow small,
.starter-tour-choice small {
  color: #667085;
  line-height: 1.4;
}

.starter-tour-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.starter-tour-choice {
  display: grid;
  gap: .45rem;
  min-height: 145px;
  padding: .85rem;
  border: 1px solid #dfe7f2;
  border-radius: var(--card-radius);
  background: #fff;
  color: #172033;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.starter-tour-choice:hover {
  border-color: #bcd1ff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.starter-tour-choice i {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .6rem;
  background: #eef5ff;
  color: #1d4ed8;
}

.starter-tour-choice strong {
  line-height: 1.15;
}

.starter-detail-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  padding: .85rem;
  border: 1px solid #e1e8f2;
  border-radius: var(--card-radius);
  background: #f8fafc;
}

.starter-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .85rem;
  margin-top: .85rem;
}

.starter-detail-grid section {
  min-width: 0;
  padding: .85rem;
  border: 1px solid #e1e8f2;
  border-radius: var(--card-radius);
  background: #fff;
}

.starter-how-list {
  display: grid;
  gap: .75rem;
}

.starter-how-list div {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
}

.starter-how-list span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
}

.starter-how-list p {
  margin: 0;
  color: #526174;
  line-height: 1.5;
}

.starter-result-modal-body[hidden] {
  display: none;
}

.starter-review-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-bottom: .85rem;
}

.starter-review-steps div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .05rem .6rem;
  align-items: center;
  min-width: 0;
  padding: .7rem;
  border: 1px solid #dfe7f2;
  border-radius: var(--card-radius);
  background: #f8fafc;
}

.starter-review-steps span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #2f6fed;
  color: #fff;
  font-weight: 850;
}

.starter-review-steps strong {
  color: #172033;
  line-height: 1.15;
}

.starter-review-steps small {
  color: #667085;
  line-height: 1.25;
}

.starter-result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 1rem;
}

.starter-review-card,
.starter-review-side > *,
.starter-launch-panel {
  border: 1px solid #e1e8f2;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 28, 46, .035);
}

.starter-review-card {
  padding: .9rem;
}

.starter-review-card-main {
  min-width: 0;
}

.starter-review-card-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .75rem;
}

.starter-review-card-head p {
  margin: .2rem 0 0;
  color: #667085;
  line-height: 1.45;
  font-size: .88rem;
}

.starter-review-side {
  display: grid;
  gap: .85rem;
  align-content: start;
  min-width: 0;
}

.starter-plan-review {
  padding: .85rem;
}

.starter-plan-review summary {
  display: grid;
  gap: .15rem;
  cursor: pointer;
  list-style: none;
}

.starter-plan-review summary::-webkit-details-marker {
  display: none;
}

.starter-plan-review summary span {
  color: #172033;
  font-weight: 850;
}

.starter-plan-review summary small {
  color: #667085;
}

.starter-launch-panel {
  display: grid;
  gap: .75rem;
  padding: .85rem;
  background: #f8fbff;
}

.starter-launch-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .65rem;
  align-items: center;
}

.starter-launch-head > span {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: .7rem;
  background: #eef5ff;
  color: #1d4ed8;
}

.starter-launch-head strong,
.starter-launch-head small {
  display: block;
}

.starter-launch-head strong {
  color: #172033;
}

.starter-launch-head small {
  color: #667085;
  line-height: 1.35;
}

.starter-confirm-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .55rem;
  align-items: start;
  margin: 0;
  padding: .65rem;
  border: 1px solid #dfe7f2;
  border-radius: .75rem;
  background: #fff;
}

.starter-confirm-strip .form-check-input {
  margin-left: 0;
}

.starter-modal-section-title {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #475569;
  font-weight: 800;
  margin: 0 0 .65rem;
}

.starter-result-layout .starter-plan {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.starter-result-layout .starter-plan.starter-plan-review {
  padding: .85rem;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1199.98px) {
  .contour-switcher,
  .admin-metrics,
  .admin-workspace-tabs,
  .admin-lifecycle,
  .governance-list,
  .general-kpi-grid,
  .users-kpi-grid,
  .ai-kpi-grid,
  .ai-runtime-grid,
  .billing-kpi-grid,
  .billing-flow,
  .admin-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .starter-task-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .starter-mini-grid,
  .starter-helper-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-card-grid {
    grid-template-columns: 1fr;
  }

  .role-matrix {
    overflow-x: auto;
    padding-bottom: .15rem;
  }

  .role-matrix-head,
  .role-matrix-row {
    min-width: 720px;
  }

  .ai-cockpit,
  .ai-layout,
  .general-cockpit,
  .general-layout {
    grid-template-columns: 1fr;
  }

  .general-profile-card {
    position: static;
  }

  .general-field-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-cockpit {
    grid-template-columns: 1fr;
  }

  .settings-user-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .starter-modal-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body {
    background: var(--app-bg);
  }

  .app-shell {
    padding: .55rem;
  }

  .sidebar {
    position: sticky;
    top: .55rem;
    z-index: 1040;
    width: 100%;
    margin: 0 0 .65rem;
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    background: rgba(255,255,255,.96);
  }

  .sidebar .brand {
    min-height: 0;
    padding: .72rem .78rem;
    border-bottom: 0;
  }

  .sidebar .brand .d-flex {
    gap: .7rem;
  }

  .sidebar .brand .fw-bold {
    font-size: .98rem !important;
    line-height: 1.15;
  }

  .sidebar .brand small {
    font-size: .72rem;
  }

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: .7rem;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .sidebar:not(.mobile-open) .nav-groups {
    display: none;
  }

  .sidebar.mobile-open .brand {
    border-bottom: 1px solid var(--line-soft);
  }

  .sidebar.mobile-open .nav-groups {
    display: block;
    max-height: min(68vh, 520px);
    overflow: auto;
    padding: .65rem;
  }

  .sidebar .nav-link {
    padding-left: .8rem;
  }

  .contour-switcher {
    padding-left: .8rem;
    padding-right: .8rem;
  }

  .topbar {
    position: relative;
  }

  .topbar-main {
    padding-top: .8rem;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .quick-actions-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .1rem;
    scrollbar-width: thin;
  }

  .quick-action-link {
    flex: 0 0 auto;
  }

  .admin-hero {
    grid-template-columns: 1fr;
  }

  .admin-signal-board {
    border-left: 0;
    border-top: 1px solid #dce6f5;
  }

  .starter-hero,
  .starter-intake-shell,
  .starter-bottom-grid,
  .starter-result-layout,
  .starter-mini-grid {
    grid-template-columns: 1fr;
  }

  .starter-tour {
    grid-template-columns: 1fr;
  }

  .starter-result {
    position: static;
  }

  .starter-focus-bar {
    display: grid;
  }

  .starter-focus-actions {
    justify-content: flex-start;
  }

  .starter-task-brief {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .starter-brief-outcome {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: .75rem;
    border-left: 0;
    border-top: 1px solid #e1e8f2;
  }

  .focus-shell.starter-full-shell .content-wrap {
    margin-left: 0;
    width: 100%;
  }

  .focus-shell.starter-full-shell .workbench {
    display: block;
  }

  .starter-modal-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .starter-tour-flow,
  .starter-tour-options {
    grid-template-columns: 1fr;
  }

  .starter-module-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .contour-switcher,
  .admin-metrics,
  .admin-workspace-tabs,
  .admin-lifecycle,
  .governance-list,
  .general-kpi-grid,
  .users-kpi-grid,
  .ai-kpi-grid,
  .ai-runtime-grid,
  .billing-kpi-grid,
  .billing-flow,
  .admin-command-grid {
    grid-template-columns: 1fr;
  }

  .starter-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contour-pill {
    min-height: 3rem;
  }

  .subnav-panel {
    justify-content: stretch;
  }

  .subnav-card {
    justify-content: flex-start;
    border-radius: 1rem;
    overflow-x: auto;
  }

  .subnav-title {
    text-align: left;
    padding-left: .35rem;
  }

  .admin-signal-board {
    grid-template-columns: 1fr;
  }

  .starter-field-grid {
    grid-template-columns: 1fr;
  }

  .users-cockpit {
    display: grid;
  }

  .roles-cockpit {
    display: grid;
  }

  .ai-cockpit {
    display: grid;
  }

  .general-cockpit {
    display: grid;
  }

  .general-field-grid,
  .general-field-grid.three,
  .general-field-grid.four,
  .general-toggle-grid,
  .general-toggle-grid.compact {
    grid-template-columns: 1fr;
  }

  .general-save-bar {
    display: grid;
  }

  .general-save-bar .btn {
    width: 100%;
  }

  .ai-provider-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ai-provider-top .badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .ai-provider-fields,
  .ai-policy-group,
  .ai-policy-group.two,
  .ai-policy-group.three {
    grid-template-columns: 1fr;
  }

  .role-matrix {
    overflow: visible;
  }

  .role-matrix-head {
    display: none;
  }

  .role-matrix-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .role-access {
    justify-content: space-between;
    border-radius: .65rem;
    padding: 0 .65rem;
  }

  .role-access-label {
    display: inline-flex;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .72rem;
  }

  .settings-user-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

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

  .starter-stepper,
  .starter-form-grid,
  .starter-main-grid,
  .starter-review-steps,
  .starter-detail-grid {
    grid-template-columns: 1fr;
  }

  .starter-task-brief {
    grid-template-columns: 1fr;
  }

  .starter-brief-actions {
    justify-content: flex-start;
  }

  .starter-task-brief-icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .starter-scenario-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .starter-scenario-pill {
    justify-content: center;
    border-radius: var(--card-radius);
  }
}

@media (max-width: 575.98px) {
  .topbar-main,
  .quick-actions-bar,
  .workbench,
  .contour-switcher {
    padding-left: .35rem;
    padding-right: .35rem;
  }

  .page-head h1 {
    font-size: 1.25rem;
  }

  .page-head p {
    font-size: .86rem;
  }

  .context-help span {
    font-size: .72rem;
    min-height: 1.65rem;
  }

  .topbar-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .topbar-actions > .btn.disabled {
    grid-column: 1 / -1;
  }

  .topbar-actions > .btn-primary {
    grid-column: 1 / -1;
  }

  .topbar-actions form {
    display: block !important;
  }

  .topbar-actions .btn,
  .topbar-actions form .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .billing-entitlement-list {
    grid-template-columns: 1fr;
  }

  .quick-actions-label {
    width: 100%;
  }

  .quick-actions-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
  }

  .quick-action-link {
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .ops-hero-main,
  .admin-hero-copy {
    padding: 1rem;
  }

  .ops-hero-strip {
    padding: .75rem 1rem;
  }

  .admin-signal-board {
    padding: .85rem;
  }

  .admin-user-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .admin-user-row .admin-state-dot {
    grid-column: 1;
  }

  .admin-role-badge {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .starter-task-grid {
    grid-template-columns: 1fr;
  }

  .starter-modal-catalog-grid,
  .starter-launch-actions,
  .starter-helper-dock,
  .starter-scenario-row {
    grid-template-columns: 1fr;
  }

  .starter-tour-modal .modal-body {
    gap: .7rem;
    padding: .85rem;
  }

  .starter-tour-flow,
  .starter-tour-options {
    gap: .55rem;
  }

  .starter-tour-flow div,
  .starter-tour-choice {
    min-height: 0;
    padding: .7rem;
  }

  .starter-tour-flow div,
  .starter-tour-choice {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .2rem .65rem;
  }

  .starter-tour-flow span,
  .starter-tour-choice i {
    grid-row: span 2;
  }

  .starter-tour-flow small,
  .starter-tour-choice small {
    font-size: .84rem;
  }

  .starter-focus-page .modal-dialog {
    margin: 0;
    max-width: none;
    min-height: 100%;
  }

  .starter-focus-page .modal-content {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .starter-focus-page .modal-dialog-scrollable .modal-content {
    max-height: 100vh;
  }

  .starter-module-item {
    grid-template-columns: auto auto minmax(0, 1fr);
    padding: .7rem;
  }

  .starter-hero-copy,
  .starter-hero-panel,
  .starter-tour,
  .starter-intake-main,
  .starter-result,
  .starter-note-panel {
    padding: .85rem;
  }
}
