/*
 * TradeLead AI administrator workspace — template C.
 *
 * This stylesheet owns only #adminShell.  The ID boundary is deliberate: the
 * application still loads legacy UI layers for other routes, and none of their
 * green focus, button or panel states may leak into the administrator console.
 */

/* --------------------------------------------------------------------------
   Shell boundary and design tokens
   -------------------------------------------------------------------------- */

#adminShell.admin-c-shell {
  --admin-sky: #36b7f4;
  --admin-blue: #0f7feb;
  --admin-blue-dark: #096bc9;
  --admin-deep: #0b2842;
  --admin-ink: #102a43;
  --admin-muted: #657f95;
  --admin-line: #d8e8f3;
  --admin-pale: #edf8ff;
  --admin-soft: #f6fbfe;
  --admin-canvas: #eaf5fb;
  --admin-white: #ffffff;
  --admin-warn: #d8870a;
  --admin-danger: #d9534a;
  --admin-radius: 14px;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--admin-ink);
  background: var(--admin-canvas);
  font: 14px/1.55 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

#adminShell.hidden,
#adminShell .hidden {
  display: none !important;
}

#adminShell,
#adminShell * {
  box-sizing: border-box;
}

#adminShell :where(button, input, select, textarea) {
  margin: 0;
  font: inherit;
}

#adminShell :where(button) {
  box-shadow: none;
  transform: none;
}

#adminShell :where(button, a) {
  -webkit-tap-highlight-color: transparent;
}

#adminShell :where(header) {
  inset: auto;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  position: static;
  z-index: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#adminShell :where(main, section, article, aside, nav, footer) {
  min-width: 0;
}

#adminShell :where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--admin-blue);
  outline-offset: 2px;
}

#adminShell :where(input, select, textarea)::placeholder {
  color: #91a5b4;
}

#adminShell :where(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--admin-blue);
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

#adminShell .admin-c-sidebar {
  grid-column: 1;
  grid-row: 1;
  width: 246px;
  height: 100%;
  min-height: 0;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  inset: auto;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background: var(--admin-deep);
  scrollbar-color: rgba(142, 207, 241, .35) transparent;
  scrollbar-width: thin;
}

#adminShell .admin-c-sidebar::-webkit-scrollbar {
  width: 5px;
}

#adminShell .admin-c-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

#adminShell .admin-c-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(142, 207, 241, .3);
}

#adminShell .admin-c-brand {
  min-height: 53px;
  padding: 0 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

#adminShell .admin-c-brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  position: relative;
  border: 2px solid #fff;
  border-radius: 9px;
}

#adminShell .admin-c-brand-mark::before,
#adminShell .admin-c-brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--admin-sky);
}

#adminShell .admin-c-brand-mark::before {
  width: 7px;
  height: 7px;
  top: 5px;
  left: 5px;
  box-shadow: 9px 9px 0 #fff;
}

#adminShell .admin-c-brand-mark::after {
  width: 12px;
  height: 3px;
  top: 4px;
  right: -5px;
  transform: rotate(-42deg);
}

#adminShell .admin-c-brand strong,
#adminShell .admin-c-brand small {
  display: block;
}

#adminShell .admin-c-brand strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -.03em;
}

#adminShell .admin-c-brand small {
  margin-top: 3px;
  color: #8ecff1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

#adminShell .admin-c-system-state {
  margin: 0 4px 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border: 1px solid rgba(110, 204, 248, .2);
  border-radius: 12px;
  background: rgba(54, 183, 244, .08);
}

#adminShell .admin-c-system-state > i {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #4dd7ff;
  box-shadow: 0 0 0 4px rgba(77, 215, 255, .12);
}

#adminShell .admin-c-system-state small,
#adminShell .admin-c-system-state strong {
  display: block;
}

#adminShell .admin-c-system-state small {
  color: #d9f3ff;
  font-size: 12px;
}

#adminShell .admin-c-system-state strong {
  margin-top: 7px;
  color: #fff;
  font-size: 13px;
}

#adminShell .admin-c-nav {
  display: grid;
  gap: 3px;
}

#adminShell .admin-c-nav-label {
  padding: 12px 11px 6px;
  color: #7598ae;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}

#adminShell .admin-c-nav button {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 9px;
  outline-color: var(--admin-sky);
  color: #b7cfdd;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

#adminShell .admin-c-nav button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke-width: 1.9;
}

#adminShell .admin-c-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .065);
}

#adminShell .admin-c-nav button.active {
  color: #fff;
  background: var(--admin-blue);
  box-shadow: 0 8px 22px rgba(6, 86, 157, .3);
}

#adminShell .admin-c-sidebar-foot {
  margin-top: auto;
  padding: 10px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

#adminShell .admin-c-sidebar-foot > button {
  width: 100%;
  min-height: 40px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  color: #9fbdce;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#adminShell .admin-c-sidebar-foot > button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

#adminShell .admin-c-sidebar-foot > button svg {
  width: 16px;
  height: 16px;
}

#adminShell .admin-c-profile {
  margin-top: 5px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .045);
}

#adminShell .admin-c-profile > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--admin-deep);
  background: var(--admin-sky);
  font-size: 11px;
  font-weight: 900;
}

#adminShell .admin-c-profile strong,
#adminShell .admin-c-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminShell .admin-c-profile strong {
  color: #fff;
  font-size: 12px;
}

#adminShell .admin-c-profile small {
  margin-top: 2px;
  color: #83a5b9;
  font-size: 10px;
}

#adminShell .admin-c-profile > button {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: #8eb5ca;
  background: transparent;
  cursor: pointer;
}

#adminShell .admin-c-profile > button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

#adminShell .admin-c-profile > button svg {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Main frame and top bar
   -------------------------------------------------------------------------- */

#adminShell > .admin-c-area {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#adminShell .admin-c-topbar {
  width: 100%;
  height: 70px;
  min-height: 70px;
  padding: 0 30px;
  flex: 0 0 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
  z-index: 8;
  border-bottom: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(10px);
}

#adminShell .admin-c-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 12px;
  white-space: nowrap;
}

#adminShell .admin-c-breadcrumb span,
#adminShell .admin-c-breadcrumb strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

#adminShell .admin-c-breadcrumb strong {
  color: var(--admin-deep);
  font-size: 13px;
}

#adminShell .admin-c-breadcrumb b {
  color: #a2b4c0;
  font-weight: 500;
}

#adminShell .admin-c-top-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

#adminShell label.admin-c-search {
  width: 275px;
  height: 38px;
  min-height: 38px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  color: #7f9caf;
  background: #f9fcfe;
}

#adminShell .admin-c-search svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

#adminShell .admin-c-search input {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--admin-ink);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}

#adminShell .admin-c-icon-button {
  width: 39px;
  min-width: 39px;
  height: 39px;
  min-height: 39px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--admin-line);
  border-radius: 9px;
  color: #36556d;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

#adminShell .admin-c-icon-button:hover {
  color: var(--admin-blue);
  border-color: #9fd2ee;
  background: var(--admin-pale);
}

#adminShell .admin-c-icon-button svg {
  width: 17px;
  height: 17px;
}

#adminShell .admin-c-alert {
  position: relative;
}

#adminShell .admin-c-alert::after {
  content: "7";
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  position: absolute;
  top: -6px;
  right: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--admin-danger);
  font-size: 10px;
  font-weight: 900;
}

#adminShell #adminStageHost {
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  padding: 30px 30px 54px;
  display: block;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

#adminShell #adminPanel {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Page heading and controls
   -------------------------------------------------------------------------- */

#adminShell .admin-c-view {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#adminShell .admin-c-view > .admin-c-page-head {
  min-height: 145px;
  padding: 4px 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  border: 0;
  background: transparent;
}

#adminShell .admin-c-page-head .page-title {
  min-width: 0;
  max-width: 760px;
  display: block;
}

#adminShell .admin-c-page-head .admin-c-eyebrow {
  margin: 0 0 10px;
  color: var(--admin-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
}

#adminShell .admin-c-page-head .page-title h2 {
  margin: 0;
  color: var(--admin-deep);
  font-size: clamp(34px, 3vw, 40px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -.055em;
}

#adminShell .admin-c-page-head .page-title > span {
  display: block;
  margin-top: 7px;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.65;
}

#adminShell .admin-c-page-actions {
  flex: 0 0 auto;
  padding-bottom: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#adminShell .admin-c-primary,
#adminShell .admin-c-secondary {
  min-height: 39px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--admin-line);
  border-radius: 9px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

#adminShell .admin-c-primary {
  color: #fff !important;
  border-color: var(--admin-blue) !important;
  background: var(--admin-blue) !important;
  box-shadow: 0 6px 14px rgba(15, 127, 235, .16);
}

#adminShell .admin-c-primary:hover:not(:disabled) {
  color: #fff !important;
  border-color: var(--admin-blue-dark) !important;
  background: var(--admin-blue-dark) !important;
}

#adminShell .admin-c-secondary {
  color: #36556d !important;
  border-color: var(--admin-line) !important;
  background: #fff !important;
}

#adminShell .admin-c-secondary:hover:not(:disabled) {
  color: var(--admin-blue) !important;
  border-color: #9fd2ee !important;
  background: var(--admin-pale) !important;
}

#adminShell .admin-c-primary svg,
#adminShell .admin-c-secondary svg {
  width: 16px;
  height: 16px;
}

#adminShell :where(button):disabled {
  opacity: .48;
  cursor: not-allowed;
}

#adminShell .admin-c-view > .content,
#adminShell .admin-c-content-layout,
#adminShell .admin-c-stage {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: block;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#adminShell .admin-c-pane {
  display: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#adminShell .admin-c-pane.active {
  display: block;
}

/* --------------------------------------------------------------------------
   Overview dashboard
   -------------------------------------------------------------------------- */

#adminShell .admin-c-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

#adminShell .admin-c-metric {
  min-height: 128px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(25, 89, 128, .045);
}

#adminShell .admin-c-metric::before {
  content: "";
  width: 4px;
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--admin-sky);
}

#adminShell .admin-c-metric.highlight {
  color: #fff;
  border-color: var(--admin-blue);
  background: var(--admin-blue);
}

#adminShell .admin-c-metric.highlight::before {
  background: #fff;
}

#adminShell .admin-c-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#adminShell .admin-c-metric-top > span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
}

#adminShell .admin-c-metric-top > i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--admin-blue);
  background: var(--admin-pale);
}

#adminShell .admin-c-metric-top > i svg {
  width: 15px;
  height: 15px;
}

#adminShell .admin-c-metric > strong {
  display: block;
  margin-top: 14px;
  overflow: hidden;
  color: var(--admin-deep);
  font-size: 29px;
  line-height: 1;
  letter-spacing: -.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminShell .admin-c-metric > small {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminShell .admin-c-metric.highlight .admin-c-metric-top > span,
#adminShell .admin-c-metric.highlight > small {
  color: #d8efff;
}

#adminShell .admin-c-metric.highlight .admin-c-metric-top > i {
  color: #fff;
  background: rgba(255, 255, 255, .17);
}

#adminShell .admin-c-metric.highlight > strong {
  color: #fff;
}

#adminShell .admin-c-card,
#adminShell .admin-c-section-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(25, 89, 128, .045);
}

#adminShell .admin-c-card > header {
  min-height: 62px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e6f0f5;
  background: #fff;
}

#adminShell .admin-c-card > header h3 {
  margin: 0;
  color: var(--admin-deep);
  font-size: 14px;
}

#adminShell .admin-c-card > header p {
  margin: 4px 0 0;
  color: var(--admin-muted);
  font-size: 12px;
}

#adminShell .admin-c-card > header select {
  width: 110px;
  min-height: 36px;
  flex: 0 0 110px;
  padding: 0 28px 0 11px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: #36556d;
  background: #fff;
  box-shadow: none;
  font-size: 12px;
  outline: 0;
}

#adminShell .admin-c-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
  gap: 16px;
}

#adminShell .admin-c-dashboard-stack {
  display: grid;
  align-content: start;
  gap: 16px;
}

#adminShell .admin-c-chart {
  height: 205px;
  padding: 24px 20px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border-bottom: 1px solid var(--admin-line);
  background: #fbfdff;
}

#adminShell .admin-c-chart > i {
  height: var(--h);
  min-width: 12px;
  flex: 1;
  position: relative;
  border-radius: 5px 5px 1px 1px;
  background: #b7e5fb;
}

#adminShell .admin-c-chart > i.active {
  background: var(--admin-blue);
}

#adminShell .admin-c-chart > i::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  color: var(--admin-muted);
  font-size: 10px;
  font-style: normal;
}

#adminShell .admin-c-trend > footer {
  min-height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--admin-muted);
  font-size: 12px;
}

#adminShell .admin-c-trend > footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#adminShell .admin-c-trend > footer span > i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #b7e5fb;
}

#adminShell .admin-c-trend > footer span:nth-child(2) > i {
  background: var(--admin-blue);
}

#adminShell .admin-c-trend > footer b {
  margin-left: auto;
  color: #36556d;
}

#adminShell .admin-c-priority > header > button {
  padding: 0;
  border: 0;
  color: var(--admin-blue);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

#adminShell .admin-c-priority > div,
#adminShell .admin-c-activity > div {
  padding: 0 18px;
}

#adminShell .admin-c-priority > div > button {
  width: 100%;
  min-height: 69px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #edf3f7;
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

#adminShell .admin-c-priority > div > button:last-child {
  border-bottom: 0;
}

#adminShell .admin-c-priority > div > button:hover {
  background: #f7fcff;
}

#adminShell .admin-c-priority > div > button > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--admin-blue);
  background: var(--admin-pale);
}

#adminShell .admin-c-priority > div > button > i.warn {
  color: #b86b00;
  background: #fff7e7;
}

#adminShell .admin-c-priority > div > button > i.danger {
  color: #c84c43;
  background: #fff2f1;
}

#adminShell .admin-c-priority > div > button > i svg {
  width: 15px;
  height: 15px;
}

#adminShell .admin-c-priority strong,
#adminShell .admin-c-priority small,
#adminShell .admin-c-activity strong,
#adminShell .admin-c-activity small {
  display: block;
}

#adminShell .admin-c-priority strong,
#adminShell .admin-c-activity strong {
  color: var(--admin-deep);
  font-size: 12px;
}

#adminShell .admin-c-priority small,
#adminShell .admin-c-activity small {
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 12px;
}

#adminShell .admin-c-priority > div > button > b {
  color: var(--admin-blue);
  font-size: 12px;
}

#adminShell .admin-c-activity p {
  min-height: 58px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf3f7;
}

#adminShell .admin-c-activity p:last-child {
  border-bottom: 0;
}

#adminShell .admin-c-activity p > svg {
  width: 17px;
  flex: 0 0 17px;
  color: var(--admin-blue);
}

/* --------------------------------------------------------------------------
   Native admin sections, tables and live data
   -------------------------------------------------------------------------- */

#adminShell .admin-c-section-card {
  margin: 0 0 16px;
}

#adminShell .admin-c-section-card > header {
  min-height: 72px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e3eef4;
  background: #fff;
}

#adminShell .admin-c-section-card > header h3 {
  margin: 2px 0 0;
  color: var(--admin-deep);
  font-size: 17px;
  line-height: 1.25;
}

#adminShell .admin-c-section-card > header span {
  display: block;
  margin-top: 4px;
  color: var(--admin-muted);
  font-size: 12px;
}

#adminShell .admin-c-section-index {
  margin: 0;
  color: var(--admin-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

#adminShell .admin-c-danger-pill,
#adminShell .admin-c-status-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 850;
}

#adminShell .admin-c-danger-pill {
  color: #b74339 !important;
  background: #fff0ee;
}

#adminShell .admin-c-status-pill {
  color: #1770ab !important;
  background: #e7f6ff;
}

#adminShell .admin-c-banner {
  min-height: 76px;
  margin: 16px 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #9fd2ee;
  border-radius: 11px;
  background: var(--admin-pale);
}

#adminShell .admin-c-banner strong,
#adminShell .admin-c-banner span {
  display: block;
}

#adminShell .admin-c-banner strong {
  color: var(--admin-deep);
  font-size: 14px;
}

#adminShell .admin-c-banner div > span {
  margin-top: 4px;
  color: var(--admin-muted);
  font-size: 12px;
}

#adminShell .admin-c-check-grid {
  margin: 0;
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  border: 0;
  background: transparent;
}

#adminShell .admin-c-pane .readiness-check {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  display: block;
  border: 1px solid var(--admin-line);
  border-left-width: 3px;
  border-radius: 12px;
  color: var(--admin-ink);
  background: #fff;
  box-shadow: none;
  text-align: left;
}

#adminShell .admin-c-pane button.readiness-check {
  cursor: pointer;
}

#adminShell .admin-c-pane button.readiness-check:hover {
  border-color: #9fd2ee;
  background: #f8fcff;
}

#adminShell .admin-c-pane .readiness-check.pass {
  border-left-color: var(--admin-blue);
}

#adminShell .admin-c-pane .readiness-check.warn {
  border-left-color: var(--admin-warn);
}

#adminShell .admin-c-pane .readiness-check.fail {
  border-left-color: var(--admin-danger);
}

#adminShell .admin-c-pane .readiness-check-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#adminShell .admin-c-pane .readiness-check-head strong {
  color: var(--admin-deep);
  font-size: 13px;
  line-height: 1.45;
}

#adminShell .admin-c-pane .readiness-check p {
  margin: 9px 0 0;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.65;
}

#adminShell .admin-c-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  background: #fff;
}

#adminShell .admin-c-table-wrap table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  color: #315066;
  table-layout: auto;
}

#adminShell .admin-c-table-wrap th {
  height: 46px;
  padding: 0 14px;
  position: static;
  border-bottom: 1px solid #dce8ef;
  color: #667f92;
  background: #f7fbfe;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
}

#adminShell .admin-c-table-wrap td {
  padding: 14px;
  border-bottom: 1px solid #e7f0f5;
  color: #315066;
  background: transparent;
  font-size: 13px;
  vertical-align: middle;
}

#adminShell .admin-c-table-wrap tbody tr {
  background: #fff;
}

#adminShell .admin-c-table-wrap tbody tr:hover {
  background: #f7fcff;
}

#adminShell .admin-c-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

#adminShell .admin-c-table-wrap :where(input, select, textarea) {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: var(--admin-ink);
  background: #fff;
  box-shadow: none;
  font-size: 12px;
}

#adminShell .admin-c-table-wrap textarea.feedback-note-input {
  min-width: 180px;
  min-height: 72px;
  resize: vertical;
}

#adminShell .admin-c-table-wrap .toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

#adminShell .admin-c-table-wrap button {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: #36556d;
  background: #fff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

#adminShell .admin-c-table-wrap button:hover {
  color: var(--admin-blue);
  border-color: #9fd2ee;
  background: var(--admin-pale);
}

#adminShell .admin-c-table-wrap button.primary {
  color: #fff;
  border-color: var(--admin-blue);
  background: var(--admin-blue);
}

#adminShell .admin-c-table-wrap button.primary:hover {
  color: #fff;
  border-color: var(--admin-blue-dark);
  background: var(--admin-blue-dark);
}

#adminShell .admin-c-table-wrap button.danger {
  color: #bd493f !important;
  border-color: #f1c8c4 !important;
  background: #fff7f6 !important;
}

#adminShell .admin-c-table-wrap button.icon-button {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

#adminShell .admin-c-table-wrap button svg {
  width: 15px;
  height: 15px;
}

#adminShell .admin-account-name strong,
#adminShell .admin-account-name span,
#adminShell .lead-cell-main,
#adminShell .lead-cell-sub {
  display: block;
}

#adminShell .admin-account-name strong {
  overflow: hidden;
  color: var(--admin-deep);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminShell .admin-account-name span,
#adminShell .lead-cell-sub {
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.45;
}

#adminShell .lead-cell-main {
  margin-top: 5px;
  color: #315066;
  font-size: 12px;
}

#adminShell .history-empty {
  padding: 28px 18px;
  color: var(--admin-muted);
  font-size: 13px;
  text-align: center;
}

#adminShell .badge,
#adminShell .history-status {
  min-height: 24px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #bfd8e7;
  border-radius: 999px;
  color: #526d80;
  background: #eef5f9;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

#adminShell .badge.good,
#adminShell .history-status.done {
  color: #176da8 !important;
  border-color: #9ed3ef !important;
  background: #e2f4ff !important;
}

#adminShell .badge.good::before,
#adminShell .history-status.done::before {
  background: var(--admin-blue) !important;
}

#adminShell .badge.warn,
#adminShell .history-status.warn {
  color: #9d6206 !important;
  border-color: #efd39d !important;
  background: #fff6e5 !important;
}

#adminShell .badge.bad,
#adminShell .history-status.bad {
  color: #b74339 !important;
  border-color: #efc3bf !important;
  background: #fff0ee !important;
}

#adminShell .admin-account-tools {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

#adminShell .admin-account-tools input,
#adminShell .admin-account-tools select {
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: var(--admin-ink);
  background: #fff;
  box-shadow: none;
  font-size: 12px;
  outline: 0;
}

#adminShell .admin-account-tools input {
  min-width: 240px;
  flex: 1 1 300px;
}

#adminShell .admin-account-tools select {
  width: 150px;
  flex: 0 0 150px;
}

#adminShell .admin-account-tools button {
  flex: 0 0 auto;
}

#adminShell .admin-c-tabs {
  margin-bottom: 14px;
  padding: 5px;
  display: inline-flex;
  gap: 5px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #fff;
}

#adminShell .admin-c-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  color: var(--admin-muted);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

#adminShell .admin-c-tabs button:hover {
  color: var(--admin-blue);
  background: var(--admin-pale);
}

#adminShell .admin-c-tabs button.active {
  color: #fff;
  background: var(--admin-blue);
}

/* --------------------------------------------------------------------------
   Cost, forms and incident management
   -------------------------------------------------------------------------- */

#adminShell .admin-c-cost-metrics {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#adminShell .admin-c-cost-metrics .cost-summary-item {
  min-width: 0;
  min-height: 112px;
  padding: 16px 18px;
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(25, 89, 128, .045);
}

#adminShell .admin-c-cost-metrics .cost-summary-item > span,
#adminShell .admin-c-cost-metrics .cost-summary-item > small {
  display: block;
  color: var(--admin-muted);
  font-size: 12px;
}

#adminShell .admin-c-cost-metrics .cost-summary-item > strong {
  display: block;
  margin: 8px 0 4px;
  overflow: hidden;
  color: var(--admin-deep);
  font-size: 24px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminShell .admin-c-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#adminShell .admin-c-form-card > header {
  min-height: 66px;
}

#adminShell .admin-c-card-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

#adminShell .admin-c-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 13px;
}

#adminShell .admin-c-form-card label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #567086;
  font-size: 12px;
  font-weight: 720;
}

#adminShell .admin-c-form-card label small {
  color: #8095a4;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

#adminShell .admin-c-form-card input,
#adminShell .admin-c-form-card select,
#adminShell .admin-c-form-card textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: var(--admin-ink);
  background: #fff;
  box-shadow: none;
  font-size: 13px;
  outline: 0;
}

#adminShell .admin-c-form-card textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

#adminShell .admin-c-form-card input:focus,
#adminShell .admin-c-form-card select:focus,
#adminShell .admin-c-form-card textarea:focus,
#adminShell .admin-account-tools input:focus,
#adminShell .admin-account-tools select:focus,
#adminShell .admin-c-table-wrap input:focus,
#adminShell .admin-c-table-wrap select:focus,
#adminShell .admin-c-table-wrap textarea:focus {
  border-color: #65c4f2;
  box-shadow: 0 0 0 3px rgba(54, 183, 244, .12);
}

#adminShell .admin-c-inline-actions {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#adminShell .admin-c-inline-actions > span {
  color: var(--admin-muted);
  font-size: 12px;
}

#adminShell .admin-c-result {
  margin-top: 0;
  padding: 14px;
  border: 1px solid #a9d4ec;
  border-left: 4px solid var(--admin-blue);
  border-radius: 9px;
  background: #f1f9fe;
}

#adminShell .admin-c-result.good {
  border-left-color: var(--admin-blue);
}

#adminShell .admin-c-result.warn {
  border-left-color: var(--admin-warn);
}

#adminShell .admin-c-result.bad {
  border-left-color: var(--admin-danger);
}

#adminShell .admin-c-result strong,
#adminShell .admin-c-result span {
  display: block;
}

#adminShell .admin-c-result strong {
  color: var(--admin-deep);
  font-size: 14px;
}

#adminShell .admin-c-result span {
  margin-top: 5px;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.6;
}

#adminShell .admin-c-action-grid > button {
  align-self: end;
}

#adminShell .feedback-status {
  min-height: 20px;
  margin-top: 0;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.55;
}

#adminShell .feedback-status[data-tone="success"] {
  color: var(--admin-blue);
}

#adminShell .feedback-status[data-tone="error"] {
  color: var(--admin-danger);
}

#adminShell .admin-c-incidents-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.15fr) minmax(360px, .85fr);
  align-items: start;
  gap: 16px;
}

#adminShell .admin-c-incident-list {
  margin: 0;
  padding: 17px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border: 0;
}

/* --------------------------------------------------------------------------
   Responsive behavior
   -------------------------------------------------------------------------- */

@media (max-width: 1440px) {
  #adminShell .admin-c-overview,
  #adminShell .admin-c-cost-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminShell .admin-c-dashboard-grid {
    grid-template-columns: 1fr;
  }

  #adminShell .admin-c-dashboard-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  #adminShell #adminStageHost {
    padding-right: 22px;
    padding-left: 22px;
  }

  #adminShell .admin-c-form-grid,
  #adminShell .admin-c-incidents-grid {
    grid-template-columns: 1fr;
  }

  #adminShell .admin-c-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminShell label.admin-c-search {
    width: 230px;
  }
}

@media (max-width: 980px) {
  #adminShell {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  #adminShell .admin-c-sidebar {
    width: 78px;
    padding-right: 11px;
    padding-left: 11px;
  }

  #adminShell .admin-c-brand {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
  }

  #adminShell .admin-c-brand > span:last-child,
  #adminShell .admin-c-system-state,
  #adminShell .admin-c-nav-label,
  #adminShell .admin-c-nav button span,
  #adminShell .admin-c-sidebar-foot > button span,
  #adminShell .admin-c-profile > span:last-of-type {
    display: none;
  }

  #adminShell .admin-c-nav button,
  #adminShell .admin-c-sidebar-foot > button {
    justify-content: center;
    padding: 0;
  }

  #adminShell .admin-c-profile {
    padding: 8px 0;
    display: flex;
    justify-content: center;
  }

  #adminShell .admin-c-profile > button {
    display: none;
  }

  #adminShell .admin-c-topbar {
    padding-right: 20px;
    padding-left: 20px;
  }

  #adminShell label.admin-c-search {
    width: 210px;
  }
}

@media (max-width: 720px) {
  #adminShell {
    display: flex;
    flex-direction: column;
  }

  #adminShell .admin-c-sidebar {
    width: 100%;
    height: 68px;
    min-height: 68px;
    padding: 8px 10px;
    flex: 0 0 68px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  #adminShell .admin-c-brand {
    min-height: 0;
    padding: 0 12px 0 0;
    flex: 0 0 auto;
  }

  #adminShell .admin-c-brand > span:last-child {
    display: block;
  }

  #adminShell .admin-c-brand small {
    display: none;
  }

  #adminShell .admin-c-system-state,
  #adminShell .admin-c-nav-label,
  #adminShell .admin-c-sidebar-foot {
    display: none;
  }

  #adminShell .admin-c-nav {
    display: flex;
    gap: 5px;
  }

  #adminShell .admin-c-nav button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
  }

  #adminShell > .admin-c-area {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
  }

  #adminShell .admin-c-topbar {
    height: 60px;
    min-height: 60px;
    padding: 0 12px;
    flex-basis: 60px;
  }

  #adminShell .admin-c-breadcrumb span,
  #adminShell .admin-c-breadcrumb b,
  #adminShell label.admin-c-search {
    display: none;
  }

  #adminShell #adminStageHost {
    padding: 18px 12px 36px;
    scrollbar-gutter: auto;
  }

  #adminShell .admin-c-view > .admin-c-page-head {
    min-height: 0;
    padding: 6px 0 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  #adminShell .admin-c-page-head .page-title h2 {
    font-size: 32px;
  }

  #adminShell .admin-c-page-actions {
    width: 100%;
  }

  #adminShell .admin-c-page-actions > button {
    flex: 1;
  }

  #adminShell .admin-c-overview,
  #adminShell .admin-c-cost-metrics,
  #adminShell .admin-c-dashboard-stack,
  #adminShell .admin-c-check-grid,
  #adminShell .admin-c-grid {
    grid-template-columns: 1fr;
  }

  #adminShell .admin-c-section-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  #adminShell .admin-c-section-card > header .admin-account-tools,
  #adminShell .admin-account-tools {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  #adminShell .admin-account-tools input {
    min-width: 0;
    flex-basis: auto;
  }

  #adminShell .admin-account-tools select {
    width: 100%;
    flex-basis: auto;
  }

  #adminShell .admin-c-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}
