:root {
  --bg: #f4efe7;
  --surface: rgba(255, 250, 242, 0.82);
  --surface-strong: rgba(255, 247, 235, 0.95);
  --border: rgba(83, 58, 37, 0.14);
  --text: #2d241d;
  --muted: #6a594d;
  --accent: #126667;
  --accent-soft: rgba(18, 102, 103, 0.12);
  --warning: #b66d1f;
  --danger: #8b3a2f;
  --danger-label: #b14949;
  --shadow: 0 18px 48px rgba(62, 44, 26, 0.12);
  --list-results-table-min-width: 1860px;
  --list-results-shell-x-padding: 40px;
  --list-mode-expanded-width: calc(var(--list-results-table-min-width) + var(--list-results-shell-x-padding));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(18, 102, 103, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(183, 120, 64, 0.2), transparent 28%),
    linear-gradient(180deg, #f8f1e8 0%, #f4efe7 44%, #efe3d4 100%);
}

code {
  font-family: "Cascadia Code", Consolas, monospace;
  background: rgba(18, 102, 103, 0.08);
  padding: 0.12rem 0.36rem;
  border-radius: 999px;
}

.hidden {
  display: none !important;
}

.page-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 12px 0 56px;
}

html[data-query-view-mode="list"] .page-shell {
  width: min(var(--list-mode-expanded-width), calc(100vw - 32px));
  min-width: min(1200px, calc(100vw - 32px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.page-toolbar {
  position: relative;
  z-index: 360;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 6px;
  padding: 0 12px;
  overflow: visible;
}

.toolbar-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
  overflow: visible;
}

html[data-query-view-mode="list"] .page-toolbar {
  padding-right: 16px;
}

html[data-query-view-mode="list"] .query-form-tools {
  margin-right: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 140ms ease, transform 140ms ease;
}

.brand-lockup:hover {
  opacity: 0.86;
}

.brand-lockup:active {
  transform: translateY(1px);
}

.brand-lockup:focus-visible {
  outline: 2px solid rgba(68, 161, 197, 0.38);
  outline-offset: 4px;
  border-radius: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
  display: flex;
  align-items: center;
}

.brand-cn {
  margin: 0;
  line-height: 1.05;
  color: rgba(45, 36, 29, 0.88);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.card {
  backdrop-filter: blur(16px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.main-layout {
  display: grid;
  gap: 20px;
  overflow: visible;
}

.query-panel {
  position: relative;
  z-index: 30;
  width: 100%;
  overflow: visible;
}

.query-panel:has(.result-switcher-dropdown:not([hidden])) {
  z-index: 220;
}

body.ambassador-progress-open .query-panel {
  z-index: 0;
}

.card {
  border-radius: 24px;
  padding: 22px;
}

.query-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(260px, 0.78fr);
  gap: 18px;
  align-items: stretch;
}

.query-primary {
  display: grid;
  align-content: start;
  min-width: 0;
}

.query-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  position: relative;
  padding-top: 12px;
  margin-bottom: 16px;
}

.query-head-copy {
  min-width: 0;
  width: 100%;
}

.title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.title-text {
  min-width: 0;
}

.title-icon {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  flex: 0 0 auto;
  color: #fffdf7;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(62, 44, 26, 0.1),
    0 2px 6px rgba(62, 44, 26, 0.08);
}

.title-icon::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.34), transparent 38%),
    linear-gradient(145deg, var(--icon-start), var(--icon-end));
  z-index: -2;
}

.title-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: -1;
}

.title-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.08));
}

.icon-tone-teal {
  --icon-start: #2ab1a3;
  --icon-end: #126667;
}

.icon-tone-amber {
  --icon-start: #e5a14a;
  --icon-end: #b66d1f;
}

.icon-tone-blue {
  --icon-start: #5aa2ec;
  --icon-end: #2c6bb4;
}

.icon-tone-rose {
  --icon-start: #e27d91;
  --icon-end: #b64f61;
}

.icon-tone-gold {
  --icon-start: #e5b34a;
  --icon-end: #b8821d;
}

.icon-tone-violet {
  --icon-start: #9a7be3;
  --icon-end: #6951b4;
}

.icon-tone-green {
  --icon-start: #63bb7d;
  --icon-end: #378a52;
}

.icon-tone-coral {
  --icon-start: #df7d62;
  --icon-end: #b25338;
}

.icon-tone-slate {
  --icon-start: #7e90ab;
  --icon-end: #58667d;
}

.query-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-family:
    "Microsoft YaHei UI",
    "PingFang SC",
    "Noto Sans SC",
    "Segoe UI Variable Display",
    "Segoe UI",
    sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.08;
  text-transform: none;
}

.query-kicker .title-with-icon,
.input-label .title-with-icon,
.recent-searches-title .title-with-icon,
.query-insights-kicker .title-with-icon,
.proxy-settings-kicker .title-with-icon,
.query-current-label .title-with-icon,
.query-progress-label .title-with-icon,
.query-list-time-label .title-with-icon,
.result-switcher-title .title-with-icon,
.query-failed-title .title-with-icon,
.metric-label .title-with-icon,
.section-head h2 .title-with-icon,
.overview-kicker .title-with-icon {
  gap: 8px;
}

.query-kicker .title-with-icon {
  align-items: center;
  gap: 10px;
}

.query-kicker .title-text {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  transform: translateY(1px);
}

.query-kicker .title-icon,
.input-label .title-icon,
.recent-searches-title .title-icon,
.query-insights-kicker .title-icon,
.proxy-settings-kicker .title-icon,
.query-current-label .title-icon,
.query-progress-label .title-icon,
.query-list-time-label .title-icon,
.result-switcher-title .title-icon,
.query-failed-title .title-icon,
.metric-label .title-icon,
.section-head h2 .title-icon,
.overview-kicker .title-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
}

.query-kicker .title-icon {
  width: 24px;
  height: 24px;
  border-radius: 9px;
}

.metric-label .title-icon,
.section-head h2 .title-icon,
.overview-kicker .title-icon {
  width: 24px;
  height: 24px;
}

.query-helper {
  margin: 8px 0 0 25px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.proxy-panel {
  position: relative;
  flex: 0 0 auto;
}

.proxy-toggle-button {
  position: relative;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: rgba(45, 36, 29, 0.8);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.proxy-toggle-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(18, 102, 103, 0.12);
  border-radius: 50%;
  background: rgba(226, 242, 236, 0.9);
  color: #0f766e;
}

.proxy-toggle-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proxy-toggle-label {
  flex: 0 0 auto;
}

.proxy-toggle-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 56px;
  max-width: min(340px, 42vw);
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(157, 167, 180, 0.32);
  background: rgba(233, 237, 242, 0.98);
  color: rgba(102, 112, 126, 0.98);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(1px);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.proxy-toggle-meta.is-active {
  border-color: rgba(18, 102, 103, 0.14);
  background: rgba(226, 242, 236, 0.88);
  color: rgba(18, 102, 103, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.proxy-toggle-button:hover {
  border-color: rgba(83, 58, 37, 0.12);
  background: rgba(255, 255, 255, 0.56);
}

.proxy-panel.is-active .proxy-toggle-button {
  border-color: rgba(18, 102, 103, 0.18);
  background: rgba(243, 249, 246, 0.88);
  box-shadow: 0 10px 22px rgba(18, 102, 103, 0.08);
}

.toolbar-dropdown {
  margin: 0 12px 18px;
}

.proxy-settings {
  display: grid;
  gap: 16px;
  width: auto;
  padding: 18px 20px 20px;
  border: 1px solid rgba(18, 102, 103, 0.1);
  border-radius: 20px;
  background: rgba(255, 251, 245, 0.985);
  box-shadow: 0 12px 24px rgba(62, 44, 26, 0.08);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: visible;
}

.proxy-settings::before,
.proxy-settings::after {
  content: "";
  position: absolute;
  left: var(--proxy-pointer-left, 84px);
  transform: translateX(-50%) rotate(45deg);
}

.proxy-settings::before {
  top: -8px;
  width: 16px;
  height: 16px;
  border-top: 1px solid rgba(18, 102, 103, 0.1);
  border-left: 1px solid rgba(18, 102, 103, 0.1);
  background: rgba(255, 251, 245, 0.985);
  z-index: 1;
}

.proxy-settings::after {
  top: -1px;
  width: 18px;
  height: 10px;
  background: rgba(255, 251, 245, 0.985);
  z-index: 2;
}

.proxy-settings-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.proxy-settings-copy {
  min-width: 0;
}

.proxy-settings-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 4px;
  color: rgba(18, 102, 103, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proxy-settings-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.proxy-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.proxy-status-pill.is-active {
  border-color: rgba(18, 102, 103, 0.16);
  background: rgba(227, 243, 237, 0.88);
  color: var(--accent);
}

.proxy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.proxy-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.proxy-field-wide {
  grid-column: 1 / -1;
}

.proxy-label {
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 700;
}

.proxy-raw-wrap {
  position: relative;
}

.proxy-field input,
.proxy-field select,
.proxy-field textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(45, 36, 29, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.proxy-raw-wrap textarea {
  padding-bottom: 52px;
}

.proxy-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.proxy-select {
  position: relative;
}

.proxy-select-trigger {
  width: 100%;
  min-height: 48px;
  padding: 11px 40px 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(45, 36, 29, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.proxy-select.is-open .proxy-select-trigger,
.proxy-select-trigger:focus-visible {
  outline: 2px solid rgba(18, 102, 103, 0.12);
  border-color: rgba(18, 102, 103, 0.34);
}

.proxy-select-value {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proxy-select-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.92;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23756659' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.proxy-select.is-open .proxy-select-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.proxy-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(45, 36, 29, 0.12);
  background: rgba(255, 251, 245, 0.99);
  box-shadow:
    0 18px 36px rgba(62, 44, 26, 0.14),
    0 4px 10px rgba(62, 44, 26, 0.08);
  max-height: 280px;
  overflow: auto;
}

.proxy-select-option {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.proxy-select-option:hover,
.proxy-select-option:focus-visible {
  background: rgba(18, 102, 103, 0.08);
  color: var(--accent);
  outline: none;
}

.proxy-select-option.is-selected {
  background: linear-gradient(135deg, rgba(18, 102, 103, 0.14) 0%, rgba(31, 140, 122, 0.12) 100%);
  color: var(--accent);
}

.proxy-select.is-disabled .proxy-select-trigger {
  opacity: 0.65;
  cursor: not-allowed;
}

.proxy-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23756659' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
}

.proxy-field input:focus,
.proxy-field select:focus,
.proxy-field textarea:focus {
  outline: 2px solid rgba(18, 102, 103, 0.12);
  border-color: rgba(18, 102, 103, 0.34);
}

.proxy-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.proxy-password-wrap input {
  padding-right: 44px;
}

.proxy-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(106, 89, 77, 0.72);
  cursor: pointer;
  transition:
    color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.proxy-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proxy-password-toggle-slash {
  opacity: 1;
  transition: opacity 0.16s ease;
}

.proxy-password-toggle.is-revealed .proxy-password-toggle-slash {
  opacity: 0;
}

.proxy-password-toggle:hover,
.proxy-password-toggle:focus-visible {
  color: var(--accent);
  background: rgba(18, 102, 103, 0.08);
  transform: translateY(-50%) scale(1.03);
  outline: none;
}

.proxy-password-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.proxy-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.proxy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proxy-save-button,
.proxy-secondary-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
}

.proxy-save-button {
  border: 0;
  background: linear-gradient(135deg, #126667 0%, #1f8c7a 100%);
  color: #fffdf7;
}

.proxy-secondary-button {
  border: 1px solid rgba(18, 102, 103, 0.14);
  background: rgba(244, 249, 247, 0.9);
  color: var(--accent);
}

#proxy-disable-button {
  border-color: rgba(121, 106, 92, 0.24);
  background: linear-gradient(180deg, rgba(246, 240, 232, 0.98) 0%, rgba(235, 227, 217, 0.99) 100%);
  color: #5f5349;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 8px 18px rgba(121, 106, 92, 0.08);
}

#proxy-disable-button:hover,
#proxy-disable-button:focus-visible {
  border-color: rgba(121, 106, 92, 0.3);
  background: linear-gradient(180deg, rgba(243, 236, 228, 1) 0%, rgba(229, 220, 209, 1) 100%);
  color: #544940;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 10px 20px rgba(121, 106, 92, 0.1);
}

.proxy-feedback {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.proxy-feedback.is-success {
  color: #1d714b;
}

.proxy-feedback.is-error {
  color: var(--danger);
}

.proxy-feedback.is-muted {
  color: var(--muted);
}

.proxy-feedback.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.proxy-feedback.is-loading::after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid rgba(18, 102, 103, 0.16);
  border-top-color: rgba(18, 102, 103, 0.72);
  animation: proxy-feedback-spin 0.8s linear infinite;
}

@keyframes proxy-feedback-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.proxy-inline-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid rgba(18, 102, 103, 0.14);
  background: rgba(244, 249, 247, 0.9);
  color: var(--accent);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 1;
  cursor: pointer;
}

.query-form {
  display: grid;
  gap: 16px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(45, 36, 29, 0.1);
}

.input-label {
  font-weight: 700;
}

.query-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 0;
}

.query-form-tools {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-right: 12px;
}

.query-view-mode-caption {
  color: rgba(106, 94, 84, 0.7);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei UI", "Segoe UI", sans-serif;
  font-size: 0.79rem;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(1px);
}

.query-form textarea {
  width: 100%;
  min-height: 230px;
  padding: 22px 22px;
  border-radius: 24px;
  border: 1px solid rgba(45, 36, 29, 0.1);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.6;
  resize: vertical;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 2px 6px rgba(62, 44, 26, 0.03);
}

.query-form textarea:focus {
  outline: 2px solid rgba(18, 102, 103, 0.16);
  border-color: rgba(18, 102, 103, 0.4);
}

.query-input-shell {
  position: relative;
}

.query-input-shell textarea {
  display: block;
}

.big-task-trigger {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 96px;
  min-height: 36px;
  padding: 0 16px 0 13px;
  border: 1px solid rgba(18, 102, 103, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(252, 248, 241, 0.76)),
    radial-gradient(circle at 18% 0%, rgba(42, 174, 164, 0.14), transparent 52%);
  color: #0d7374;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 820;
  letter-spacing: 0;
  box-shadow:
    0 10px 22px rgba(62, 44, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.big-task-trigger::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='black' d='M9 1.8a1 1 0 0 1 1 1v6.1l1.95-1.95a1 1 0 1 1 1.42 1.42l-3.66 3.66a1 1 0 0 1-1.42 0L4.63 8.37a1 1 0 1 1 1.42-1.42L8 8.9V2.8a1 1 0 0 1 1-1ZM3.2 12.7a1 1 0 0 1 1 1v1h9.6v-1a1 1 0 1 1 2 0v2a1 1 0 0 1-1 1H3.2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='black' d='M9 1.8a1 1 0 0 1 1 1v6.1l1.95-1.95a1 1 0 1 1 1.42 1.42l-3.66 3.66a1 1 0 0 1-1.42 0L4.63 8.37a1 1 0 1 1 1.42-1.42L8 8.9V2.8a1 1 0 0 1 1-1ZM3.2 12.7a1 1 0 0 1 1 1v1h9.6v-1a1 1 0 1 1 2 0v2a1 1 0 0 1-1 1H3.2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.big-task-trigger.has-file {
  min-width: 148px;
  border-color: rgba(18, 102, 103, 0.26);
  background:
    linear-gradient(180deg, rgba(240, 252, 249, 0.92), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 18% 0%, rgba(42, 174, 164, 0.18), transparent 50%);
  color: #0b6a6b;
}

.big-task-trigger.has-file::before {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
  border-radius: 50%;
  background-color: #0d8b83;
  -webkit-mask: none;
  mask: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.big-task-trigger.has-file::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 13px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.big-task-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 102, 103, 0.3);
  color: #0a5f60;
  box-shadow:
    0 14px 24px rgba(62, 44, 26, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.big-task-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 253, 247, 0.38), transparent 38%),
    rgba(28, 25, 22, 0.42);
  backdrop-filter: blur(12px);
}

.big-task-modal.hidden {
  display: none;
}

.big-task-dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid rgba(18, 102, 103, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 248, 0.92)),
    radial-gradient(circle at 94% 0%, rgba(42, 174, 164, 0.16), transparent 34%);
  box-shadow:
    0 28px 70px rgba(28, 25, 22, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.big-task-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(18, 102, 103, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(58, 50, 43, 0.72);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.big-task-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
}

.big-task-dialog h2 {
  margin: 0;
  color: #14243b;
  font-size: 1.65rem;
  line-height: 1.15;
}

.big-task-desc {
  margin: 10px 0 20px;
  color: rgba(83, 72, 62, 0.72);
  font-size: 0.92rem;
  line-height: 1.7;
}

.big-task-upload {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 14px;
  border: 1px dashed rgba(18, 102, 103, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
}

.big-task-upload[data-state="ready"] {
  border-style: solid;
  border-color: rgba(18, 102, 103, 0.32);
  background:
    linear-gradient(135deg, rgba(240, 252, 249, 0.94), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 94% 8%, rgba(40, 165, 150, 0.16), transparent 36%);
}

.big-task-upload-button,
.big-task-clear,
.big-task-secondary,
.big-task-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    opacity 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.big-task-upload-button,
.big-task-primary {
  border: 0;
  color: #fffdf7;
  background: linear-gradient(135deg, #0d6f72 0%, #139389 100%);
  box-shadow: 0 10px 20px rgba(18, 102, 103, 0.14);
}

.big-task-upload-button {
  padding: 0 15px;
}

.big-task-clear,
.big-task-secondary {
  border: 1px solid rgba(148, 124, 104, 0.18);
  color: rgba(79, 65, 52, 0.78);
  background: rgba(255, 253, 249, 0.72);
}

.big-task-clear {
  padding: 0 13px;
}

.big-task-secondary,
.big-task-primary {
  min-width: 96px;
  padding: 0 18px;
}

.big-task-upload-button:hover,
.big-task-clear:hover,
.big-task-secondary:hover,
.big-task-primary:hover {
  transform: translateY(-1px);
}

.big-task-upload-button:disabled,
.big-task-clear:disabled,
.big-task-primary:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.big-task-upload-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.big-task-upload-meta strong,
.big-task-upload-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-task-upload-meta strong {
  color: #14243b;
  font-size: 0.92rem;
  font-weight: 850;
}

.big-task-upload-meta span {
  color: rgba(83, 72, 62, 0.68);
  font-size: 0.8rem;
  font-weight: 560;
}

.big-task-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.big-task-note-grid span {
  padding: 9px 10px;
  border: 1px solid rgba(18, 102, 103, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(31, 50, 64, 0.76);
  font-size: 0.78rem;
  font-weight: 720;
  text-align: center;
}

.big-task-feedback {
  min-height: 20px;
  margin: 12px 0 0;
  color: rgba(83, 72, 62, 0.72);
  font-size: 0.82rem;
  font-weight: 650;
}

.big-task-feedback[data-type="success"] {
  color: #11746f;
}

.big-task-feedback[data-type="error"] {
  color: var(--danger);
}

.big-task-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.query-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.query-bottom-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding-top: 4px;
}

.query-actions button,
.quick-chip,
.copy-button,
.result-chip {
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

.query-actions button {
  min-width: 156px;
  padding: 15px 22px;
  border: 0;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(135deg, #116567 0%, #177874 56%, #23927f 100%);
  color: #fffdf7;
  font-weight: 700;
  font-size: 1.08rem;
  box-shadow:
    0 12px 24px rgba(18, 102, 103, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -8px 14px rgba(6, 69, 66, 0.12);
}

.query-view-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: 168px;
  padding: 4px;
  border-radius: 13px;
  border: 1px solid rgba(225, 217, 208, 0.78);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(252, 248, 242, 0.96) 100%);
  box-shadow:
    0 3px 8px rgba(62, 44, 26, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.query-view-mode-button {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 31px;
  padding: 5px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(100, 88, 78, 0.86);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei UI", "Segoe UI", sans-serif;
  font-weight: 560;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.query-view-mode-button:hover {
  background: rgba(18, 102, 103, 0.02);
  color: rgba(84, 73, 63, 0.9);
}

.query-view-mode-button.is-active {
  background: linear-gradient(180deg, rgba(231, 242, 238, 0.98) 0%, rgba(220, 236, 230, 0.98) 100%);
  color: #1b7872;
  box-shadow:
    inset 0 1px 0 rgba(247, 252, 250, 0.9),
    0 0 0 1px rgba(214, 229, 223, 0.78);
}

.query-actions button:hover,
.copy-button:hover,
.result-chip:hover {
  transform: translateY(-1px);
}

.query-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.recent-searches {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding-left: 30px;
  transform: translateY(-1px);
}

.recent-searches::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(45, 36, 29, 0.04) 0%, rgba(45, 36, 29, 0.14) 52%, rgba(45, 36, 29, 0.04) 100%);
  transform: translateY(-50%);
}

.recent-searches-title {
  margin: 0;
  flex: 0 0 auto;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.recent-searches-title .title-with-icon {
  gap: 9px;
  align-items: center;
}

.recent-searches-title .title-icon {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dd9426;
  box-shadow: none;
  overflow: visible;
  transform: translateY(1px);
}

.recent-searches-title .title-icon::before,
.recent-searches-title .title-icon::after {
  display: none;
}

.recent-searches-title .title-text {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  transform: translateY(3px);
}

.recent-searches-title .title-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
  filter: none;
  display: block;
}

.quick-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  padding: 4px 0;
  margin: 0;
  transform: translateY(2px);
}

.quick-chip {
  flex: 0 1 auto;
  max-width: 152px;
  min-width: 0;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(18, 102, 103, 0.18);
  background: rgba(245, 246, 241, 0.96);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.quick-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 102, 103, 0.24);
  background: rgba(235, 243, 238, 0.98);
  box-shadow: 0 4px 10px rgba(18, 102, 103, 0.06);
}

.query-insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
  height: auto;
  min-height: 0;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 250, 242, 0.48));
}

.query-insights-idle {
  border-color: rgba(83, 58, 37, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 250, 242, 0.26));
}

.query-insights-head {
  display: grid;
  gap: 4px;
}

.query-insights-kicker {
  margin: 0;
  color: rgba(18, 102, 103, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.query-insights-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.query-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.query-stat-card {
  --stat-color: rgba(106, 89, 77, 0.9);
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 12px 10px;
  border-radius: 18px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  background: rgba(255, 255, 255, 0.52);
}

.query-stat-card::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--stat-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--stat-color) 14%, transparent);
}

.query-stat-card-normal {
  --stat-color: #2f9a63;
}

.query-stat-card-restricted {
  --stat-color: #c44c4c;
}

.query-stat-card-locked {
  --stat-color: #d5a12b;
}

.query-stat-card-unknown {
  --stat-color: #9298a1;
}

.query-insights-idle .query-stat-card,
.query-insights-idle .query-current-card {
  border-color: rgba(83, 58, 37, 0.05);
  background: rgba(255, 255, 255, 0.26);
  box-shadow: none;
}

.query-stat-label {
  color: var(--stat-color);
  font-size: 0.78rem;
  font-weight: 700;
}

.query-stat-value {
  color: color-mix(in srgb, var(--stat-color) 82%, var(--text));
  font-size: 1.48rem;
  font-weight: 900;
  line-height: 1;
}

.query-insights-idle .query-insights-kicker,
.query-insights-idle .query-stat-label,
.query-insights-idle .query-current-label {
  color: rgba(106, 89, 77, 0.72);
}

.query-insights-idle .query-insights-title,
.query-insights-idle .query-current-meta {
  color: rgba(106, 89, 77, 0.76);
}

.query-insights-idle .query-stat-value,
.query-insights-idle .query-current-name {
  color: rgba(45, 36, 29, 0.68);
}

.query-current-card {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 8px;
  min-height: 160px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  background: rgba(255, 255, 255, 0.46);
}

.query-insights-complete .query-current-card {
  margin-top: 20px;
}

.query-list-meta-stack {
  display: none;
  gap: 0;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(83, 58, 37, 0.08);
}

.query-list-meta-card {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.query-list-meta-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.query-list-meta-value {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.query-list-meta-copy {
  color: rgba(106, 89, 77, 0.8);
  font-size: 0.82rem;
  line-height: 1.5;
}

html[data-query-view-mode="list"] .query-current-card {
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 8px;
  min-height: 0;
  padding-top: 16px;
}

html[data-query-view-mode="list"] .query-current-label,
html[data-query-view-mode="list"] .query-current-name,
html[data-query-view-mode="list"] .query-current-meta {
  display: none;
}

html[data-query-view-mode="list"] .query-current-card .query-progress {
  order: 1;
  margin-top: 0;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 10px;
  padding-left: 0;
  border-top: 0;
}

html[data-query-view-mode="list"] .query-list-meta-stack {
  display: grid;
  order: 2;
  padding-top: 14px;
}

.query-current-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.query-current-name {
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.query-current-meta {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.query-progress {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(83, 58, 37, 0.08);
}

.query-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.query-progress-label,
.query-progress-text {
  font-size: 0.78rem;
  font-weight: 700;
}

.query-progress-label {
  color: var(--muted);
}

.query-list-time-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.query-list-time-label .title-text {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.query-progress-text {
  color: rgba(18, 102, 103, 0.82);
}

.query-progress-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 102, 103, 0.12);
}

.query-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #126667 0%, #1f8c7a 100%);
  transition: width 220ms ease;
}

.query-insights-idle .query-progress-track {
  background: rgba(83, 58, 37, 0.07);
}

.query-insights-idle .query-progress-bar {
  opacity: 0.45;
}

.query-failed-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(83, 58, 37, 0.08);
}

.query-failed-title {
  margin: 0;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 700;
}

.query-failed-list {
  display: grid;
  gap: 10px;
}

.query-failed-chip {
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(139, 58, 47, 0.08);
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.query-failed-switcher {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 12px;
  border: 1px solid rgba(139, 58, 47, 0.12);
  border-radius: 22px;
  background: rgba(139, 58, 47, 0.035);
}

.query-failed-switcher-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.query-failed-switcher-meta {
  margin: 0;
  color: rgba(106, 89, 77, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.query-failed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.query-failed-action,
.query-failed-page-button,
.query-failed-row-action {
  border: 1px solid rgba(18, 102, 103, 0.14);
  border-radius: 999px;
  background: rgba(232, 248, 245, 0.68);
  color: var(--accent);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.query-failed-action {
  min-height: 30px;
  padding: 0 10px;
}

.query-failed-action.is-warning {
  border-color: rgba(182, 109, 31, 0.22);
  background: rgba(255, 244, 224, 0.78);
  color: #9a5f18;
}

.query-failed-action:disabled,
.query-failed-page-button:disabled,
.query-failed-row-action:disabled {
  opacity: 0.48;
  cursor: default;
}

.query-failed-search {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(139, 58, 47, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.query-failed-search:focus {
  outline: 2px solid rgba(139, 58, 47, 0.1);
  border-color: rgba(139, 58, 47, 0.24);
}

.query-failed-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.query-failed-page-button {
  min-height: 28px;
  padding: 0 9px;
}

.query-failed-result-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 7px;
  max-height: 188px;
  overflow: auto;
  padding-right: 2px;
}

.query-failed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.46);
}

.query-failed-name {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.query-failed-name:hover {
  color: var(--accent);
}

.query-failed-row span {
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.query-failed-row.is-warning span {
  color: #9a5f18;
}

.query-failed-row:has(.query-failed-row-action) {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.query-failed-row-action {
  min-height: 26px;
  padding: 0 8px;
}

.query-failed-empty {
  padding: 12px 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.result-switcher {
  position: relative;
  z-index: 80;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(83, 58, 37, 0.08);
  overflow: visible;
}

.result-switcher-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.result-switcher-title {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
}

.result-switcher-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.result-switcher-list {
  position: relative;
  z-index: 82;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-switcher-compact .result-switcher-list {
  display: block;
}

.result-switcher-compact-bar {
  position: relative;
  z-index: 82;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(210px, 300px) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(18, 102, 103, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(240, 249, 246, 0.58));
}

.result-switcher-current {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.result-switcher-current-label,
.result-switcher-current-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.result-switcher-current-name {
  min-width: 0;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-switcher-search {
  position: relative;
  z-index: 90;
  min-width: 0;
}

.result-switcher-search-input {
  width: 100%;
  min-height: 42px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(18, 102, 103, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 253, 251, 0.92));
  color: var(--text);
  caret-color: #083f40;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.result-switcher-search-input::placeholder {
  color: rgba(106, 89, 77, 0.62);
  font-weight: 650;
}

.result-switcher-search-input:focus {
  outline: 2px solid rgba(18, 102, 103, 0.12);
  border-color: rgba(18, 102, 103, 0.32);
}

.result-switcher-search::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(18, 102, 103, 0.58);
  border-bottom: 2px solid rgba(18, 102, 103, 0.58);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  transition: transform 0.16s ease;
}

.result-switcher-search.is-open::after {
  transform: translateY(-35%) rotate(225deg);
}

.result-switcher-dropdown {
  position: absolute;
  z-index: 900;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(18, 102, 103, 0.14);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 18px 40px rgba(62, 46, 31, 0.14);
}

.result-switcher-dropdown-head {
  padding: 2px 2px 10px;
  border-bottom: 1px solid rgba(83, 58, 37, 0.08);
}

.result-switcher-dropdown-count {
  color: rgba(98, 86, 75, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.result-switcher-dropdown-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.result-switcher-dropdown-foot {
  display: flex;
  justify-content: center;
  padding: 9px 2px 0;
  border-top: 1px solid rgba(83, 58, 37, 0.08);
}

.result-switcher-page-button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(18, 102, 103, 0.12);
  border-radius: 999px;
  background: rgba(232, 248, 245, 0.68);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.result-switcher-page-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.result-switcher-page-text {
  min-width: 44px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.result-switcher-suggestion-list {
  max-height: 312px;
  overflow: auto;
  padding-top: 8px;
}

.result-switcher-suggestion {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.result-switcher-suggestion:hover {
  background: rgba(232, 248, 245, 0.84);
  color: var(--accent);
}

.result-switcher-suggestion.is-active {
  background: linear-gradient(135deg, rgba(18, 102, 103, 0.94), rgba(31, 140, 122, 0.9));
  color: #fffdf7;
}

.result-switcher-suggestion-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-switcher-suggestion-meta {
  color: inherit;
  font-size: 0.72rem;
  opacity: 0.72;
}

.result-switcher-empty {
  padding: 14px 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.result-switcher-stepper {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(18, 102, 103, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.result-switcher-step {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.result-switcher-step:hover:not(:disabled) {
  background: rgba(232, 248, 245, 0.88);
}

.result-switcher-step:disabled {
  color: rgba(98, 86, 75, 0.42);
  cursor: default;
}

.result-switcher-back {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(18, 102, 103, 0.18);
  border-radius: 999px;
  background: rgba(232, 248, 245, 0.72);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.result-switcher-back:hover,
.result-switcher-search-input:hover {
  border-color: rgba(18, 102, 103, 0.3);
  background: rgba(255, 255, 255, 0.84);
}

.result-chip {
  max-width: 100%;
  min-width: 146px;
  padding: 10px 12px;
  border: 1px solid rgba(18, 102, 103, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  text-align: left;
}

.result-chip-name {
  display: block;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-chip-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.result-chip-active {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(18, 102, 103, 0.96), rgba(31, 140, 122, 0.92));
  box-shadow: 0 10px 24px rgba(18, 102, 103, 0.18);
}

.result-chip-active .result-chip-name,
.result-chip-active .result-chip-meta {
  color: #fffdf7;
}

.field-filter-button,
.field-filter-action {
  border: 1px solid rgba(83, 58, 37, 0.08);
  background: rgba(255, 255, 255, 0.38);
  color: rgba(45, 36, 29, 0.72);
  font: inherit;
}

.field-filter-button {
  position: relative;
  min-height: 34px;
  padding: 0 30px 0 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
}

.field-filter-button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.16s ease;
}

.field-filter-button[aria-expanded="true"]::after {
  transform: translateY(-30%) rotate(-135deg);
}

.field-filter-button:hover,
.field-filter-action:hover {
  border-color: rgba(83, 58, 37, 0.12);
  background: rgba(255, 255, 255, 0.56);
}

.field-filter-panel {
  margin: 4px 0 22px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.48);
  border: 1px solid rgba(83, 58, 37, 0.08);
  box-shadow: none;
}

.field-filter-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.field-filter-panel-copy {
  min-width: 0;
}

.field-filter-panel-kicker {
  margin: 0 0 2px;
  color: rgba(45, 36, 29, 0.44);
  font-size: 0.72rem;
  font-weight: 600;
}

.field-filter-panel-title {
  margin: 0;
  color: rgba(45, 36, 29, 0.64);
  font-size: 0.88rem;
  line-height: 1.4;
}

.field-filter-actions {
  display: flex;
  justify-content: flex-end;
}

.field-filter-action {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}

.field-filter-group + .field-filter-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(45, 36, 29, 0.08);
}

.field-filter-group-title {
  margin: 0 0 8px;
  color: rgba(45, 36, 29, 0.5);
  font-size: 0.78rem;
  font-weight: 700;
}

.field-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(83, 58, 37, 0.06);
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(45, 36, 29, 0.8);
}

.field-filter-option input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.field-filter-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.summary-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.list-results-panel {
  display: none;
}

html[data-query-view-mode="list"] #overview-panel,
html[data-query-view-mode="list"] #headline-metrics,
html[data-query-view-mode="list"] #section-grid,
html[data-query-view-mode="list"] #result-switcher {
  display: none !important;
}

html[data-query-view-mode="list"] #list-results-panel {
  display: block;
}

.list-results-shell {
  padding: 18px 20px 16px;
  border-radius: 26px;
  border: 1px solid rgba(83, 58, 37, 0.065);
  background:
      linear-gradient(180deg, rgba(255, 251, 245, 0.96) 0%, rgba(255, 248, 240, 0.92) 100%);
  box-shadow:
    0 22px 46px rgba(62, 44, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.list-results-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 2px;
}

.list-results-title-group {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.list-results-title {
  margin: 0;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.list-results-copy {
  margin: 0;
  color: rgba(117, 103, 92, 0.84);
  font-size: 0.83rem;
  font-weight: 700;
}

.list-results-toolbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  justify-self: end;
}

.list-results-toolbar:not(.has-selection-bar) .list-results-toolbar-actions {
  grid-column: 3;
}

.list-selection-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-self: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 5px 7px 5px 8px;
  border-radius: 18px;
  border: 1px solid rgba(30, 137, 133, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(226, 247, 243, 0.66), transparent 48%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.94) 0%, rgba(246, 250, 247, 0.82) 100%);
  box-shadow:
    0 10px 20px rgba(62, 44, 26, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

@media (max-width: 1180px) {
  .list-results-toolbar {
    grid-template-columns: 1fr;
  }

  .list-results-toolbar:not(.has-selection-bar) .list-results-toolbar-actions {
    grid-column: auto;
  }

  .list-results-title-group,
  .list-selection-bar,
  .list-results-toolbar-actions {
    justify-self: center;
  }

  .list-results-toolbar-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.list-selection-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(32, 142, 138, 0.12);
  background: rgba(232, 247, 244, 0.78);
  color: rgba(29, 91, 91, 0.84);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.list-selection-divider {
  width: 1px;
  height: 20px;
  margin: 0 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(30, 137, 133, 0.16), transparent);
}

.list-selection-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid rgba(32, 142, 138, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.96) 0%, rgba(239, 249, 246, 0.9) 100%);
  color: #176e71;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    opacity 0.16s ease;
}

.list-selection-button.is-primary {
  border-color: rgba(28, 126, 124, 0.26);
  background:
    linear-gradient(180deg, rgba(231, 251, 247, 0.98) 0%, rgba(207, 242, 235, 0.96) 100%);
  color: #0f7476;
  box-shadow:
    0 6px 14px rgba(24, 130, 126, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.list-selection-button:hover {
  border-color: rgba(28, 126, 124, 0.26);
  background:
    linear-gradient(180deg, rgba(248, 255, 253, 0.98) 0%, rgba(222, 244, 239, 0.94) 100%);
  transform: translateY(-1px);
}

.list-selection-button.is-primary:hover {
  border-color: rgba(18, 116, 113, 0.34);
  background:
    linear-gradient(180deg, rgba(220, 250, 244, 0.98) 0%, rgba(189, 235, 226, 0.96) 100%);
}

.list-selection-button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.list-results-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(83, 58, 37, 0.095);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.98) 0%, rgba(250, 246, 239, 0.94) 100%);
  color: rgba(71, 61, 52, 0.84);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 6px 14px rgba(62, 44, 26, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.list-results-toolbar-button-text {
  line-height: 1;
}

.list-results-toolbar-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.list-results-page-caret {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  position: relative;
  top: -1px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform-origin: 50% 50%;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.82;
  transition: transform 180ms ease, opacity 180ms ease;
}

.list-results-toolbar-button:hover {
  border-color: rgba(83, 58, 37, 0.12);
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.98) 0%, rgba(252, 248, 243, 0.96) 100%);
  transform: translateY(-1px);
}

.list-results-toolbar-button.is-export-current {
  border-color: rgba(143, 196, 197, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.98) 0%, rgba(244, 251, 249, 0.94) 100%);
  color: #2f7778;
}

.list-results-toolbar-button.is-primary {
  border-color: rgba(84, 181, 178, 0.38);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.82), transparent 44%),
    linear-gradient(180deg, rgba(237, 252, 249, 0.99) 0%, rgba(210, 239, 234, 0.96) 100%);
  color: #0f7474;
  box-shadow:
    0 6px 14px rgba(62, 44, 26, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.list-results-toolbar-button.is-export-all .list-results-toolbar-icon {
  stroke-width: 2;
}

.list-results-toolbar-button.is-settings {
  border-color: rgba(108, 88, 68, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.98) 0%, rgba(247, 242, 235, 0.96) 100%);
  color: rgba(86, 73, 61, 0.88);
}

.list-results-toolbar-button.is-warning {
  border-color: rgba(225, 183, 118, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.99) 0%, rgba(250, 240, 223, 0.96) 100%);
  color: #9a6227;
}

.list-results-toolbar-button[aria-expanded="true"] {
  border-color: rgba(147, 187, 190, 0.5);
  background: linear-gradient(180deg, rgba(247, 252, 251, 0.99) 0%, rgba(236, 247, 244, 0.96) 100%);
}

.list-results-toolbar-button:disabled,
.list-results-toolbar-button:disabled:hover {
  border-color: rgba(139, 152, 168, 0.22);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(239, 243, 246, 0.94) 100%);
  color: rgba(107, 120, 138, 0.56);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
  transform: none;
}

.list-results-toolbar-button:disabled .list-results-toolbar-icon,
.list-results-toolbar-button:disabled:hover .list-results-toolbar-icon {
  opacity: 0.62;
}

.list-results-columns {
  position: relative;
}

.list-results-columns-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(520px, calc(100vw - 42px));
  padding: 15px;
  border-radius: 20px;
  border: 1px solid rgba(83, 58, 37, 0.095);
  background:
    radial-gradient(circle at 8% 0%, rgba(205, 231, 226, 0.22), transparent 35%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99) 0%, rgba(255, 249, 242, 0.97) 100%);
  box-shadow:
    0 18px 34px rgba(41, 31, 23, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  z-index: 24;
}

.list-results-columns-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(83, 58, 37, 0.085);
}

.list-results-columns-title {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

.list-results-columns-meta {
  color: rgba(117, 103, 92, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.list-results-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.list-results-columns-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(83, 58, 37, 0.075);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 244, 0.58));
  color: rgba(72, 62, 54, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.list-results-columns-item.is-supplement {
  min-height: 46px;
}

.list-results-columns-item:hover {
  border-color: rgba(33, 126, 128, 0.24);
  background:
    linear-gradient(180deg, rgba(248, 255, 253, 0.88), rgba(239, 250, 247, 0.72));
  color: #116b6e;
}

.list-results-columns-item.is-active {
  border-color: rgba(38, 143, 142, 0.22);
  background:
    linear-gradient(180deg, rgba(232, 247, 244, 0.94), rgba(218, 240, 236, 0.84));
  color: #0f7274;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 7px 14px rgba(18, 102, 103, 0.045);
}

.list-results-columns-item-copy {
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.list-results-columns-item-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-results-columns-item-hint {
  color: rgba(151, 118, 69, 0.82);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.list-results-columns-footnote {
  margin: 11px 2px 0;
  color: rgba(117, 103, 92, 0.72);
  font-size: 0.7rem;
  line-height: 1.5;
}

.list-results-columns-item-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 7px;
  border: 1px solid rgba(83, 58, 37, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
}

.list-results-columns-item.is-active .list-results-columns-item-mark {
  border-color: rgba(20, 112, 113, 0.78);
  background: #176e71;
  color: #fffdf8;
}

.list-results-columns-item.is-active .list-results-columns-item-mark::before {
  content: "✓";
}

.list-results-columns-item input[type="checkbox"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.list-results-empty {
  margin-top: 14px;
  padding: 22px 20px;
  border-radius: 20px;
  border: 1px dashed rgba(83, 58, 37, 0.12);
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.list-results-task-notice {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(197, 88, 56, 0.18);
  background: linear-gradient(135deg, rgba(255, 248, 241, 0.94), rgba(255, 255, 255, 0.82));
  color: #9b3f25;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.55;
}

.list-results-table-wrap {
  margin-top: 16px;
  overflow: auto;
  border: 1px solid rgba(83, 58, 37, 0.1);
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.9);
  box-shadow:
    0 10px 24px rgba(62, 44, 26, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  scrollbar-gutter: stable;
}

.list-results-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.list-results-table-wrap::-webkit-scrollbar-track {
  background: rgba(244, 239, 231, 0.72);
  border-radius: 999px;
}

.list-results-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid rgba(244, 239, 231, 0.72);
  border-radius: 999px;
  background: rgba(113, 107, 100, 0.58);
}

.list-results-table {
  width: 100%;
  min-width: var(--list-results-table-min-width);
  border-collapse: collapse;
}

.list-results-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 13px 14px 12px;
  border-bottom: 1px solid rgba(83, 58, 37, 0.115);
  color: rgba(98, 86, 75, 0.9);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.99) 0%, rgba(252, 248, 242, 0.97) 100%);
  box-shadow: inset 0 -1px 0 rgba(83, 58, 37, 0.05);
}

.list-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.list-sort-icon {
  color: rgba(18, 102, 103, 0.56);
  font-size: 0.72rem;
  line-height: 1;
}

.list-sort-button.is-active .list-sort-icon {
  color: var(--accent);
}

.list-results-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(83, 58, 37, 0.07);
  font-size: 0.87rem;
  line-height: 1.42;
  text-align: center;
  vertical-align: middle;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.list-results-table thead th.list-col-avatar {
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}

.list-results-table tbody td.list-col-avatar {
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}

.list-results-table thead th.list-col-account {
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}

.list-results-table tbody td.list-col-account {
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}

.list-results-table.has-no-avatar-column thead th.list-col-account,
.list-results-table.has-no-avatar-column tbody td.list-col-account {
  padding-left: 34px;
}

.list-results-table tbody tr:last-child td {
  border-bottom: 0;
}

.list-results-table tbody tr {
  cursor: pointer;
  user-select: none;
}

.list-results-table tbody tr:hover {
  background: rgba(18, 102, 103, 0.035);
}

.list-results-table tbody tr:focus-visible td {
  outline: 0;
  box-shadow:
    inset 0 1px 0 rgba(31, 137, 132, 0.32),
    inset 0 -1px 0 rgba(31, 137, 132, 0.32);
}

.list-results-table tbody tr:focus-visible td:first-child {
  box-shadow:
    inset 2px 0 0 rgba(31, 137, 132, 0.58),
    inset 0 1px 0 rgba(31, 137, 132, 0.32),
    inset 0 -1px 0 rgba(31, 137, 132, 0.32);
}

.list-results-table tbody tr:focus-visible td:last-child {
  box-shadow:
    inset -2px 0 0 rgba(31, 137, 132, 0.58),
    inset 0 1px 0 rgba(31, 137, 132, 0.32),
    inset 0 -1px 0 rgba(31, 137, 132, 0.32);
}

.list-results-table tbody tr.is-active {
  background: linear-gradient(180deg, rgba(18, 102, 103, 0.03) 0%, rgba(18, 102, 103, 0.015) 100%);
}

.list-results-table tbody tr.is-active td:first-child {
  box-shadow: inset 3px 0 0 rgba(23, 110, 113, 0.42);
}

.list-results-table tbody tr.is-selected td {
  background: rgba(232, 249, 245, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(33, 142, 137, 0.09),
    inset 0 -1px 0 rgba(33, 142, 137, 0.11);
}

.list-results-table tbody tr.is-selected td:first-child {
  box-shadow:
    inset 4px 0 0 rgba(16, 128, 124, 0.78),
    inset 0 1px 0 rgba(33, 142, 137, 0.09),
    inset 0 -1px 0 rgba(33, 142, 137, 0.11);
}

.list-results-table tbody tr.is-selected:hover td {
  background: rgba(224, 248, 243, 0.58);
}

.list-results-table tbody tr.is-context-target td {
  background: transparent;
  box-shadow:
    inset 0 1px 0 rgba(213, 138, 0, 0.22),
    inset 0 -1px 0 rgba(213, 138, 0, 0.22),
    inset 0 0 18px rgba(213, 138, 0, 0.032);
}

.list-results-table tbody tr.is-context-target,
.list-results-table tbody tr.is-selected.is-context-target {
  background:
    linear-gradient(90deg, rgba(255, 246, 226, 0.26) 0%, rgba(255, 252, 244, 0.18) 52%, rgba(255, 250, 240, 0.14) 100%);
}

.list-results-table tbody tr.is-context-target td:first-child {
  box-shadow:
    inset 4px 0 0 rgba(213, 138, 0, 0.92),
    inset 0 1px 0 rgba(213, 138, 0, 0.22),
    inset 0 -1px 0 rgba(213, 138, 0, 0.22),
    inset 0 0 18px rgba(213, 138, 0, 0.032);
}

.list-results-table tbody tr.is-selected.is-context-target td {
  background: transparent;
}

.list-results-table tbody tr.is-selected.is-context-target td:first-child {
  box-shadow:
    inset 4px 0 0 rgba(213, 138, 0, 0.96),
    inset 0 1px 0 rgba(213, 138, 0, 0.22),
    inset 0 -1px 0 rgba(213, 138, 0, 0.22),
    inset 0 0 18px rgba(213, 138, 0, 0.032);
}

.list-results-table tbody tr.is-failed {
  background:
    linear-gradient(90deg, rgba(199, 79, 79, 0.045) 0%, rgba(199, 79, 79, 0.012) 42%, transparent 100%);
}

.list-results-table tbody tr.is-failed td:first-child {
  box-shadow: inset 3px 0 0 rgba(199, 79, 79, 0.32);
}

.list-results-table tbody tr.is-pending {
  background:
    linear-gradient(90deg, rgba(147, 137, 128, 0.035) 0%, rgba(147, 137, 128, 0.012) 42%, transparent 100%);
}

.list-row-context-menu {
  position: fixed;
  z-index: 900;
  display: grid;
  gap: 8px;
  min-width: 184px;
  padding: 9px;
  border-radius: 16px;
  border: 1px solid rgba(213, 138, 0, 0.48);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 229, 170, 0.76), transparent 46%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.99) 0%, rgba(250, 244, 234, 0.98) 100%);
  box-shadow:
    0 20px 46px rgba(38, 30, 22, 0.22),
    0 0 0 1px rgba(255, 249, 237, 0.88) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.list-row-context-menu-head {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px 11px;
  border: 1px solid rgba(213, 138, 0, 0.38);
  border-radius: 13px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 225, 153, 0.54), transparent 48%),
    linear-gradient(135deg, rgba(255, 242, 211, 0.9), rgba(255, 250, 239, 0.82));
  box-shadow:
    0 9px 20px rgba(151, 96, 0, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.list-row-context-menu-head span {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(151, 96, 0, 0.74);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
}

.list-row-context-menu-head strong {
  min-width: 0;
  max-width: 210px;
  overflow: hidden;
  color: #342b22;
  font-size: 0.89rem;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-row-context-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(61, 53, 46, 0.92);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.list-row-context-menu-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #88725a;
  stroke-width: 2.2;
}

.list-row-context-menu-button:hover {
  border-color: rgba(32, 142, 138, 0.16);
  background: rgba(232, 247, 244, 0.76);
  color: #116b6e;
}

.list-account-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 232px;
}

.list-account-avatar-shell {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(62, 44, 26, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fffdf8;
  font-size: 1rem;
  font-weight: 800;
}

.list-account-avatar-shell.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border-radius: 999px;
  border: 2px solid rgba(18, 102, 103, 0.18);
  border-top-color: rgba(18, 102, 103, 0.82);
  animation: proxy-feedback-spin 0.72s linear infinite;
}

.list-account-avatar-shell.is-error {
  background: linear-gradient(135deg, #8094ac 0%, #5c6c83 100%);
}

.list-account-avatar-shell.is-failed {
  background: linear-gradient(135deg, #d98271 0%, #b65b50 100%);
  color: #fffaf5;
}

.list-account-avatar-shell.is-pending {
  background: linear-gradient(135deg, #b8aea3 0%, #918679 100%);
  color: #fffaf5;
}

.list-account-avatar-shell.is-loaded.is-fallback {
  color: #fffdf8;
}

.list-account-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.list-account-avatar-shell.is-loaded .list-account-avatar {
  opacity: 1;
}

.list-account-copy {
  display: grid;
  gap: 3px;
  justify-items: center;
  min-width: 0;
  max-width: 96px;
  text-align: center;
}

.list-account-name {
  max-width: 100%;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.list-account-projection {
  padding: 2px 7px;
  border: 1px solid rgba(196, 132, 31, 0.24);
  border-radius: 999px;
  color: rgba(139, 88, 20, 0.92);
  background: rgba(255, 246, 220, 0.82);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.list-account-subtitle {
  color: rgba(110, 97, 85, 0.88);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-account-subtitle.is-failure {
  color: rgba(156, 72, 61, 0.9);
  font-weight: 700;
}

.list-account-subtitle.is-pending {
  color: rgba(123, 110, 98, 0.84);
}

.list-mini-link {
  justify-self: start;
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid rgba(177, 209, 213, 0.5);
  border-radius: 999px;
  background: rgba(245, 251, 248, 0.92);
  color: #1d7678;
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.list-pill {
  max-width: 82px;
  min-height: 27px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-pill-green {
  border-color: rgba(86, 182, 126, 0.22);
  background: rgba(232, 250, 239, 0.95);
  color: #25905c;
}

.list-pill-red {
  border-color: rgba(216, 95, 95, 0.2);
  background: rgba(255, 241, 241, 0.95);
  color: #c74f4f;
}

.list-pill.is-wide-label {
  min-width: 78px;
  padding-inline: 10px;
  font-size: 0.72rem;
}

.list-pill-sand {
  border-color: rgba(204, 174, 119, 0.22);
  background: rgba(252, 247, 238, 0.95);
  color: #8f6a41;
}

.list-pill-blue {
  border-color: rgba(111, 156, 226, 0.22);
  background: rgba(237, 244, 255, 0.95);
  color: #3f75c4;
}

.list-pill-gold {
  border-color: rgba(227, 180, 67, 0.24);
  background: rgba(255, 248, 226, 0.95);
  color: #b27c14;
}

.list-pill-teal {
  border-color: rgba(116, 190, 185, 0.24);
  background: rgba(234, 247, 243, 0.95);
  color: #257f7f;
}

.list-pill-violet {
  border-color: rgba(151, 128, 221, 0.2);
  background: rgba(245, 239, 255, 0.96);
  color: #7558b7;
}

.list-pill-neutral {
  border-color: rgba(140, 132, 124, 0.18);
  background: rgba(247, 243, 239, 0.96);
  color: rgba(108, 95, 84, 0.9);
}

.list-number-cell,
.list-cell-muted {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.list-cell-muted {
  color: rgba(123, 110, 98, 0.8);
}

.list-number-value {
  font-variant-numeric: tabular-nums;
}

.list-time-stack {
  display: inline-grid;
  gap: 2px;
  justify-items: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.list-time-stack.is-muted {
  color: rgba(123, 110, 98, 0.8);
}

.list-review-links,
.list-pill[data-tooltip],
.list-account-name[data-tooltip],
.list-active-time-cell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.list-account-name[data-copy-value] {
  cursor: pointer;
}

.list-review-links[data-tooltip]::after,
.list-pill[data-tooltip]::after,
.list-account-name[data-tooltip]::after,
.list-active-time-tooltip {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: max-content;
  max-width: none;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(33, 28, 23, 0.95);
  color: #fffdf8;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 18px 32px rgba(20, 16, 13, 0.18);
  opacity: 0;
  transform: translate(-50%, -4px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  z-index: 25;
}

.list-review-links[data-tooltip]::after {
  min-width: 230px;
  white-space: pre-line;
  text-align: left;
}

.list-review-links[data-tooltip]:hover::after,
.list-pill[data-tooltip]:hover::after,
.list-account-name[data-tooltip]:hover::after,
.list-active-time-cell:hover .list-active-time-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.list-active-time-tooltip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-align: center;
}

.list-active-time-tooltip strong {
  color: #ff7b70;
  font-weight: 800;
}

.list-inline-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #287d7d;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.list-inline-status.is-loading::after {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid rgba(18, 102, 103, 0.18);
  border-top-color: rgba(18, 102, 103, 0.76);
  animation: proxy-feedback-spin 0.72s linear infinite;
}

.list-inline-status.is-muted {
  color: rgba(123, 110, 98, 0.8);
}

.list-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.list-text-action,
.list-mini-action {
  font: inherit;
  cursor: pointer;
}

.list-text-action {
  border: 0;
  background: transparent;
  color: #126667;
  font-size: 0.84rem;
  font-weight: 700;
}

.list-mini-action {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(177, 209, 213, 0.46);
  background: rgba(249, 252, 250, 0.94);
  color: #176e71;
  font-size: 0.76rem;
  font-weight: 700;
}

.list-mini-action.is-retry {
  min-width: 54px;
  border-color: rgba(225, 183, 118, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.98) 0%, rgba(251, 242, 226, 0.96) 100%);
  color: #9a6227;
}

.list-mini-action.is-refresh {
  min-width: 54px;
  border-color: rgba(116, 190, 185, 0.38);
  background:
    linear-gradient(180deg, rgba(249, 253, 251, 0.98) 0%, rgba(235, 249, 246, 0.96) 100%);
  color: #176e71;
}

.list-mini-action.is-refreshing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-color: rgba(32, 151, 148, 0.34);
  background:
    linear-gradient(180deg, rgba(238, 252, 248, 0.98) 0%, rgba(219, 244, 239, 0.96) 100%);
  color: #0d7373;
  opacity: 1;
}

.list-mini-action.is-refreshing::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(18, 102, 103, 0.18);
  border-top-color: rgba(18, 102, 103, 0.78);
  animation: proxy-feedback-spin 0.72s linear infinite;
}

.list-results-table tbody tr.is-refreshing {
  background:
    linear-gradient(90deg, rgba(221, 247, 242, 0.46) 0%, rgba(255, 252, 247, 0.94) 36%, rgba(255, 252, 247, 0.94) 100%);
}

.list-mini-action:disabled {
  opacity: 0.58;
  cursor: default;
}

.list-mini-action.is-refreshing:disabled {
  opacity: 1;
}

.list-results-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
}

.list-results-count {
  color: rgba(98, 86, 75, 0.84);
  font-size: 0.88rem;
  font-weight: 700;
}

.list-results-snapshot-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(31, 137, 132, 0.16);
  border-radius: 999px;
  background: rgba(241, 250, 248, 0.58);
  color: rgba(8, 108, 103, 0.78);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.list-results-snapshot-link:hover {
  border-color: rgba(31, 137, 132, 0.26);
  background: rgba(235, 250, 247, 0.78);
  transform: translateY(-1px);
}

.list-results-pagination {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
  margin-top: 5px;
  margin-bottom: 2px;
}

.list-results-page-size {
  position: relative;
}

.list-results-page-size-button,
.list-results-page-button,
.list-results-page-current,
.list-results-page-input {
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(83, 58, 37, 0.1);
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.98) 0%, rgba(251, 247, 241, 0.94) 100%);
  box-shadow:
    0 7px 16px rgba(62, 44, 26, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.list-results-page-size-button,
.list-results-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px 0 14px;
  color: rgba(88, 76, 66, 0.9);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.list-results-page-size-button[aria-expanded="true"] {
  border-color: rgba(147, 187, 190, 0.5);
}

.list-results-page-size-button[aria-expanded="true"] .list-results-page-caret {
  top: 1px;
  transform: rotate(225deg) translateY(0);
}

.list-results-page-size-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: grid;
  gap: 8px;
  min-width: 142px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(255, 248, 240, 0.96) 100%);
  box-shadow:
    0 16px 28px rgba(41, 31, 23, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  z-index: 24;
}

.list-results-page-size-option {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  background: rgba(255, 253, 249, 0.94);
  color: rgba(78, 67, 58, 0.88);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.list-results-page-size-option.is-active {
  border-color: rgba(177, 209, 213, 0.42);
  background: linear-gradient(180deg, rgba(244, 250, 249, 0.98) 0%, rgba(236, 247, 244, 0.94) 100%);
  color: #176e71;
}

.list-results-page-size-custom {
  display: grid;
  gap: 9px;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid rgba(83, 58, 37, 0.08);
}

.list-results-page-size-custom-label {
  color: rgba(98, 86, 75, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
}

.list-results-page-size-custom-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-results-page-size-custom-input {
  width: 72px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid rgba(83, 58, 37, 0.1);
  background: rgba(255, 253, 249, 0.94);
  color: rgba(78, 67, 58, 0.92);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.list-results-page-size-custom-input:focus {
  border-color: rgba(147, 187, 190, 0.58);
  box-shadow: 0 0 0 3px rgba(196, 230, 227, 0.24);
}

.list-results-page-size-custom-suffix {
  color: rgba(98, 86, 75, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.list-results-page-size-custom-apply {
  min-height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(177, 209, 213, 0.42);
  background: linear-gradient(180deg, rgba(244, 250, 249, 0.98) 0%, rgba(236, 247, 244, 0.94) 100%);
  color: #176e71;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.list-results-page-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.list-results-page-button {
  min-width: 36px;
  padding: 0 10px;
  font-size: 1rem;
  line-height: 1;
}

.list-results-page-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.list-results-page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(38, 151, 145, 0.98) 0%, rgba(21, 128, 123, 0.96) 100%);
  border-color: rgba(27, 129, 124, 0.32);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

.list-results-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 36px;
  color: rgba(98, 86, 75, 0.54);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.list-results-page-jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(98, 86, 75, 0.88);
  font-size: 0.84rem;
  font-weight: 700;
}

.list-results-page-label,
.list-results-page-suffix {
  white-space: nowrap;
}

.list-results-page-input {
  width: 54px;
  padding: 0 9px;
  color: rgba(78, 67, 58, 0.92);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.list-results-page-input:focus {
  border-color: rgba(147, 187, 190, 0.58);
  box-shadow:
    0 8px 16px rgba(62, 44, 26, 0.05),
    0 0 0 3px rgba(196, 230, 227, 0.34);
}

.list-col-avatar {
  min-width: 60px;
  white-space: nowrap;
}

.list-col-account {
  min-width: 112px;
}

.list-col-status,
.list-col-site,
.list-col-text,
.list-col-action {
  white-space: nowrap;
}

.list-col-number,
.list-col-review {
  min-width: 76px;
}

.list-col-money {
  min-width: 104px;
}

.list-col-time {
  min-width: 124px;
}

.list-col-text {
  min-width: 82px;
}

.list-col-action {
  min-width: 96px;
}

.list-col-active-restricted,
.list-col-active-restricted .list-time-stack {
  color: var(--text);
}

.list-colgroup-avatar {
  width: 64px;
}

.list-colgroup-account {
  width: 112px;
}

.list-colgroup-status,
.list-colgroup-site,
.list-colgroup-reg_method,
.list-colgroup-reg_app,
.list-colgroup-email_bounced,
.list-colgroup-identity,
.list-colgroup-kyc_need {
  width: 88px;
}

.list-colgroup-listing_count,
.list-colgroup-review_links,
.list-colgroup-sold_links,
.list-colgroup-seller_completed,
.list-colgroup-buyer_completed,
.list-colgroup-five_star {
  width: 76px;
}

.list-colgroup-buyer_gmv_completed {
  width: 104px;
}

.list-colgroup-created_at,
.list-colgroup-active_at,
.list-colgroup-latest_email {
  width: 124px;
}

.list-colgroup-action {
  width: 96px;
}

.overview-card {
  background:
    linear-gradient(135deg, rgba(18, 102, 103, 0.11), transparent 46%),
    linear-gradient(180deg, var(--surface-strong), rgba(255, 250, 242, 0.92));
}

.result-state-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  align-content: center;
  padding: 2px 4px;
}

.result-state-card-warning {
  color: var(--text);
}

.result-state-kicker {
  margin: 0;
  color: rgba(180, 102, 29, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.result-state-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.result-state-copy {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.overview-header {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.overview-title-main {
  display: block;
}

.overview-headline-stack {
  min-width: 0;
}

.overview-heading-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.overview-avatar-shell {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 102, 103, 0.18);
  box-shadow:
    0 0 0 2px rgba(255, 252, 246, 0.92),
    0 10px 24px rgba(31, 26, 21, 0.06);
  margin-top: 1px;
}

.overview-avatar-shell.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 999px;
  border: 2px solid rgba(18, 102, 103, 0.16);
  border-top-color: rgba(18, 102, 103, 0.76);
  animation: proxy-feedback-spin 0.75s linear infinite;
}

.overview-avatar-shell.is-error::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(18, 102, 103, 0.08) 0 18%, transparent 19% 100%);
}

.overview-avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.overview-avatar-shell.is-loaded .overview-avatar {
  opacity: 1;
}

.overview-heading-content {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 7px;
  padding-top: 1px;
}

.overview-heading-top {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.overview-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.overview-title {
  margin: 0;
  min-width: 0;
  font-size: clamp(1.48rem, 2.65vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.overview-name-divider {
  display: block;
  width: 96px;
  max-width: 100%;
  height: 1px;
  margin-left: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(18, 102, 103, 0.2) 0%,
    rgba(18, 102, 103, 0.08) 38%,
    rgba(18, 102, 103, 0) 100%
  );
}

.overview-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  padding-left: 2px;
  margin-top: -2px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 auto;
  margin-top: 0;
  min-width: 0;
}

.overview-badge-area {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.badge-help-anchor {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
  align-self: center;
  margin-top: 6px;
  margin-right: 8px;
}

.badge-help-button {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(18, 102, 103, 0.1);
  background: rgba(255, 255, 255, 0.5);
  color: rgba(18, 102, 103, 0.72);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(31, 26, 21, 0.025);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.badge-help-button:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 102, 103, 0.16);
  background: rgba(244, 250, 248, 0.8);
  box-shadow: 0 6px 14px rgba(31, 26, 21, 0.04);
}

.badge-help-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(18, 102, 103, 0.12),
    0 6px 14px rgba(31, 26, 21, 0.04);
}

.badge-help-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 140;
}

.badge-help-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 23, 18, 0.18);
  backdrop-filter: blur(4px);
}

.badge-help-popover {
  position: relative;
  width: min(760px, calc(100vw - 40px));
  max-height: min(78vh, 760px);
  overflow: auto;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(18, 102, 103, 0.12);
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 28px 56px rgba(20, 16, 13, 0.18);
  z-index: 1;
}

.badge-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.badge-help-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
}

.badge-help-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(45, 36, 29, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.badge-help-close:hover {
  border-color: rgba(18, 102, 103, 0.18);
  color: var(--accent);
}

.badge-help-body {
  display: grid;
  gap: 12px;
}

.badge-help-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge-help-list li {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(45, 36, 29, 0.06);
}

.badge-help-list span {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
}

.badge-help-list small {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.5;
}

.badge-help-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.overview-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.overview-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  margin-left: 4px;
  transform: translateY(1px);
  border-radius: 999px;
  border: 1px solid rgba(18, 102, 103, 0.12);
  background: rgba(214, 236, 230, 0.42);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.overview-link-button::after {
  content: "↗";
  font-size: 0.92rem;
  line-height: 1;
}

.overview-link-button::after {
  content: "\2197";
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.88;
}

.overview-link-button:hover {
  transform: translateY(0);
  border-color: rgba(18, 102, 103, 0.28);
  background: rgba(227, 245, 240, 0.86);
  box-shadow: 0 4px 12px rgba(18, 102, 103, 0.08);
}

.status-badge {
  --badge-text: var(--text);
  --badge-dot: rgba(45, 36, 29, 0.42);
  --badge-border: rgba(45, 36, 29, 0.09);
  --badge-bg-start: rgba(255, 255, 255, 0.94);
  --badge-bg-end: rgba(249, 243, 234, 0.84);
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px 0 28px;
  border-radius: 999px;
  border: 1px solid var(--badge-border);
  background:
    radial-gradient(
      circle at 14px 50%,
      var(--badge-dot) 0 4px,
      rgba(255, 255, 255, 0.92) 4.4px,
      transparent 5px
    ),
    linear-gradient(180deg, var(--badge-bg-start), var(--badge-bg-end));
  color: var(--badge-text);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(31, 26, 21, 0.04);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.status-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(31, 26, 21, 0.06);
}

.status-badge:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(18, 102, 103, 0.12),
    0 12px 24px rgba(31, 26, 21, 0.06);
}

.status-badge[data-tooltip] {
  cursor: default;
}

.badge-help-button,
.badge-help-button[data-tooltip] {
  cursor: pointer;
}

.status-badge[data-tooltip]::after,
.badge-help-button[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: max-content;
  max-width: none;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(33, 28, 23, 0.95);
  color: #fffdf8;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 18px 36px rgba(20, 16, 13, 0.18);
  opacity: 0;
  transform: translate(-50%, -4px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  z-index: 30;
}

.status-badge[data-tooltip]:hover::after,
.status-badge[data-tooltip]:focus-visible::after,
.badge-help-button[data-tooltip]:hover::after,
.badge-help-button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.status-badge-normal,
.status-badge-muted {
  --badge-text: #6f6658;
  --badge-dot: rgba(129, 119, 104, 0.68);
  --badge-border: rgba(106, 96, 84, 0.12);
  --badge-bg-start: rgba(255, 255, 255, 0.96);
  --badge-bg-end: rgba(243, 238, 229, 0.88);
}

.status-badge-site {
  --badge-text: #6d6559;
  --badge-dot: rgba(152, 140, 126, 0.76);
  --badge-border: rgba(142, 129, 114, 0.12);
  --badge-bg-start: rgba(255, 255, 255, 0.98);
  --badge-bg-end: rgba(245, 240, 233, 0.94);
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(85, 74, 60, 0.03);
}

.status-badge-site-us {
  --badge-text: #355f9a;
  --badge-dot: currentColor;
  --badge-border: rgba(112, 145, 206, 0.28);
  --badge-bg-start: rgba(252, 253, 255, 0.99);
  --badge-bg-end: rgba(222, 234, 250, 0.97);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(72, 108, 170, 0.1);
}

.status-badge-site-ca {
  --badge-text: #8d5757;
  --badge-dot: rgba(198, 112, 112, 0.9);
  --badge-border: rgba(194, 122, 122, 0.24);
  --badge-bg-start: rgba(255, 250, 249, 0.98);
  --badge-bg-end: rgba(246, 233, 231, 0.96);
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(162, 91, 91, 0.07);
}

.status-badge-success {
  --badge-text: #1d714b;
  --badge-dot: rgba(47, 163, 106, 0.88);
  --badge-border: rgba(61, 160, 106, 0.22);
  --badge-bg-start: rgba(245, 254, 248, 0.96);
  --badge-bg-end: rgba(224, 246, 232, 0.9);
}

.status-badge-danger {
  --badge-text: #b14949;
  --badge-dot: rgba(220, 97, 97, 0.88);
  --badge-border: rgba(214, 109, 109, 0.22);
  --badge-bg-start: rgba(255, 248, 248, 0.96);
  --badge-bg-end: rgba(252, 229, 229, 0.9);
}

.status-badge-warning,
.status-badge-vacation {
  --badge-text: #9b6b12;
  --badge-dot: rgba(215, 164, 44, 0.9);
  --badge-border: rgba(202, 158, 57, 0.22);
  --badge-bg-start: rgba(255, 252, 244, 0.96);
  --badge-bg-end: rgba(249, 237, 205, 0.92);
}

.status-badge-dual {
  --badge-text: #0f6e70;
  --badge-dot: rgba(21, 190, 173, 0.95);
  --badge-border: rgba(26, 179, 165, 0.32);
  --badge-bg-start: rgba(240, 255, 252, 0.98);
  --badge-bg-end: rgba(205, 246, 237, 0.95);
  box-shadow: 0 12px 24px rgba(17, 141, 131, 0.12);
}

.status-badge-buy {
  --badge-text: #1658bb;
  --badge-dot: rgba(56, 136, 255, 0.95);
  --badge-border: rgba(71, 132, 231, 0.3);
  --badge-bg-start: rgba(243, 248, 255, 0.98);
  --badge-bg-end: rgba(213, 229, 255, 0.95);
}

.status-badge-sale {
  --badge-text: #167544;
  --badge-dot: rgba(40, 177, 96, 0.94);
  --badge-border: rgba(54, 165, 98, 0.28);
  --badge-bg-start: rgba(244, 255, 247, 0.98);
  --badge-bg-end: rgba(217, 245, 226, 0.95);
}

.status-badge-unqualified {
  --badge-text: #b46a12;
  --badge-dot: rgba(228, 149, 54, 0.95);
  --badge-border: rgba(217, 145, 62, 0.28);
  --badge-bg-start: rgba(255, 250, 244, 0.98);
  --badge-bg-end: rgba(251, 233, 209, 0.95);
}

.status-badge-linked {
  --badge-text: #6e46bb;
  --badge-dot: rgba(144, 98, 227, 0.92);
  --badge-border: rgba(139, 97, 216, 0.28);
  --badge-bg-start: rgba(249, 245, 255, 0.98);
  --badge-bg-end: rgba(233, 223, 249, 0.95);
}

.status-badge-oldwhite {
  --badge-text: #8b642f;
  --badge-dot: rgba(183, 133, 66, 0.92);
  --badge-border: rgba(176, 131, 72, 0.26);
  --badge-bg-start: rgba(255, 251, 245, 0.98);
  --badge-bg-end: rgba(241, 228, 208, 0.95);
}

.status-badge-white {
  --badge-text: #8a7354;
  --badge-dot: rgba(192, 161, 118, 0.9);
  --badge-border: rgba(191, 162, 119, 0.24);
  --badge-bg-start: rgba(255, 252, 248, 0.98);
  --badge-bg-end: rgba(244, 237, 226, 0.95);
}

.status-badge-new {
  --badge-text: #707b8e;
  --badge-dot: rgba(141, 151, 168, 0.92);
  --badge-border: rgba(150, 159, 174, 0.24);
  --badge-bg-start: rgba(249, 250, 252, 0.98);
  --badge-bg-end: rgba(231, 235, 241, 0.95);
}

.status-badge-ambassador {
  --badge-text: #8a1f61;
  --badge-dot: rgba(194, 64, 137, 0.92);
  --badge-border: rgba(194, 88, 148, 0.24);
  --badge-bg-start: rgba(255, 247, 252, 0.98);
  --badge-bg-end: rgba(245, 225, 238, 0.95);
}

.status-badge-ambassador2 {
  --badge-text: #8f6215;
  --badge-dot: rgba(214, 165, 53, 0.95);
  --badge-border: rgba(212, 171, 76, 0.26);
  --badge-bg-start: rgba(255, 251, 242, 0.98);
  --badge-bg-end: rgba(246, 233, 194, 0.95);
}

.status-badge-instant {
  --badge-text: #0f6f79;
  --badge-dot: rgba(35, 186, 206, 0.94);
  --badge-border: rgba(63, 179, 196, 0.24);
  --badge-bg-start: rgba(244, 254, 255, 0.98);
  --badge-bg-end: rgba(214, 245, 249, 0.94);
  box-shadow: 0 10px 22px rgba(42, 165, 182, 0.08);
}

.copy-stack {
  display: grid;
  gap: 12px;
}

.copy-button {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(18, 102, 103, 0.16);
  background: rgba(255, 255, 255, 0.76);
}

.copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.copy-button::after {
  content: attr(data-copy-hint);
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.78rem;
  color: var(--muted);
}

.copy-button.copied {
  border-color: rgba(18, 102, 103, 0.45);
  box-shadow: 0 0 0 4px rgba(18, 102, 103, 0.08);
}

.copy-button.copy-failed {
  border-color: rgba(139, 58, 47, 0.4);
  box-shadow: 0 0 0 4px rgba(139, 58, 47, 0.08);
}

.copy-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.copy-value {
  padding-right: 54px;
  font-weight: 800;
  line-height: 1.45;
  word-break: break-word;
}

.copy-value-singleline {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  word-break: normal;
  text-overflow: ellipsis;
}

.profile-projection-notice {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid rgba(196, 132, 31, 0.26);
  border-radius: 16px;
  color: rgba(91, 61, 22, 0.94);
  background: linear-gradient(135deg, rgba(255, 247, 225, 0.92), rgba(255, 252, 243, 0.82));
  box-shadow: 0 10px 24px rgba(112, 72, 21, 0.06);
}

.profile-projection-notice strong {
  font-size: 0.9rem;
}

.profile-projection-notice span {
  color: rgba(111, 83, 48, 0.86);
  font-size: 0.82rem;
  line-height: 1.55;
}

.overview-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.overview-meta-item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(45, 36, 29, 0.08);
}

.overview-meta-item.has-note {
  padding-right: 44px;
}

.overview-meta-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: max-content;
  max-width: 320px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(33, 28, 23, 0.95);
  color: #fffdf8;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  white-space: pre-line;
  text-align: left;
  box-shadow: 0 18px 36px rgba(20, 16, 13, 0.18);
  opacity: 0;
  transform: translate(-50%, -4px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  z-index: 40;
}

.overview-meta-item[data-tooltip]:hover::after,
.overview-meta-item[data-tooltip]:focus-within::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.overview-meta-note {
  position: absolute;
  right: 14px;
  bottom: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  padding: 0;
  border: 1px solid rgba(18, 102, 103, 0.08);
  border-radius: 999px;
  background: rgba(244, 249, 247, 0.72);
  color: rgba(18, 102, 103, 0.54);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.overview-meta-note:hover,
.overview-meta-note:focus-visible {
  border-color: rgba(18, 102, 103, 0.16);
  background: rgba(236, 245, 241, 0.9);
  color: rgba(18, 102, 103, 0.8);
  transform: translateY(-1px);
  outline: none;
}

.overview-meta-note::after {
  content: attr(data-tooltip);
  position: absolute;
  right: -2px;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 240px;
  padding: 8px 11px;
  border-radius: 12px;
  background: rgba(33, 28, 23, 0.92);
  color: #fffdf8;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
  text-align: left;
  box-shadow: 0 16px 32px rgba(20, 16, 13, 0.16);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  z-index: 45;
}

.overview-meta-note:hover::after,
.overview-meta-note:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

@supports selector(.overview-meta-item:has(.overview-meta-note:hover)) {
  .overview-meta-item.has-note:has(.overview-meta-note:hover)::after,
  .overview-meta-item.has-note:has(.overview-meta-note:focus-visible)::after {
    opacity: 0;
    transform: translate(-50%, -4px);
  }
}

.overview-meta-item.is-danger .overview-meta-key {
  color: var(--danger-label);
  font-weight: 700;
}

.overview-meta-key {
  font-size: 0.82rem;
  color: var(--muted);
}

.overview-meta-value {
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
}

.overview-meta-value.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.overview-meta-value.is-loading::after {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid rgba(18, 102, 103, 0.22);
  border-right-color: rgba(18, 102, 103, 0.22);
  border-top-color: rgba(18, 102, 103, 0.88);
  animation: proxy-feedback-spin 0.72s linear infinite;
}

.overview-meta-value-rich {
  display: block;
  width: 100%;
}

.overview-progress-control {
  display: block;
  width: 100%;
  min-height: 28px;
  padding-right: 70px;
  position: relative;
}

.overview-progress-value {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.5;
  margin-top: 6px;
  word-break: break-word;
}

.overview-progress-button {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(18, 102, 103, 0.16);
  background: rgba(231, 246, 241, 0.78);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.overview-progress-button:hover,
.overview-progress-button:focus-visible {
  border-color: rgba(18, 102, 103, 0.28);
  background: rgba(222, 244, 236, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(18, 102, 103, 0.08);
}

.ambassador-progress-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 320;
  pointer-events: none;
}

.ambassador-progress-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 23, 18, 0.2);
  backdrop-filter: blur(7px) saturate(0.96);
  pointer-events: none;
}

.ambassador-progress-popover {
  position: relative;
  width: min(820px, calc(100vw - 34px));
  max-height: min(90vh, 680px);
  overflow: auto;
  overflow-x: hidden;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(18, 102, 103, 0.1);
  background: #fffaf4;
  box-shadow:
    0 26px 60px rgba(20, 16, 13, 0.12),
    0 6px 16px rgba(20, 16, 13, 0.05);
  z-index: 1;
  isolation: isolate;
  contain: paint;
  pointer-events: auto;
}

.ambassador-progress-popover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.985), rgba(255, 249, 242, 0.985)),
    #fffaf4;
  z-index: -1;
}

.ambassador-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ambassador-progress-title {
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ambassador-progress-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(45, 36, 29, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.ambassador-progress-close:hover,
.ambassador-progress-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(18, 102, 103, 0.2);
  background: rgba(243, 251, 248, 0.96);
}

.ambassador-progress-hero {
  display: grid;
  gap: 8px;
}

.ambassador-progress-summary-card {
  display: grid;
  grid-template-columns: 114px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(18, 102, 103, 0.1);
  background:
    linear-gradient(180deg, rgba(249, 253, 251, 0.98), rgba(244, 250, 247, 0.98)),
    #f7fcfa;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 10px 24px rgba(26, 22, 17, 0.035);
}

.ambassador-progress-chart {
  --progress-angle: 0deg;
  width: 102px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 59%, rgba(255, 255, 255, 0.3) 59.5%, rgba(255, 255, 255, 0) 64%),
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.54), transparent 36%),
    conic-gradient(
      from -90deg,
      #37c68f 0deg,
      #2eaf7e calc(var(--progress-angle) * 0.72),
      #228d65 var(--progress-angle),
      rgba(236, 228, 216, 0.94) var(--progress-angle) 360deg
    );
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 0 0 8px rgba(255, 251, 244, 0.98),
    inset 0 -10px 16px rgba(34, 141, 101, 0.06),
    0 14px 24px rgba(28, 23, 18, 0.08),
    0 0 0 1px rgba(47, 167, 121, 0.14);
}

.ambassador-progress-chart-inner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.92), rgba(255, 252, 246, 0.98) 48%),
    rgba(255, 252, 246, 0.98);
  border: 1px solid rgba(45, 36, 29, 0.055);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -5px 8px rgba(28, 23, 18, 0.035);
}

.ambassador-progress-chart-inner strong {
  display: block;
  font-size: 1.52rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.ambassador-progress-summary-copy {
  display: grid;
  gap: 4px;
  align-content: center;
}

.ambassador-progress-summary-kicker {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ambassador-progress-summary-title {
  font-size: 0.9rem;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.ambassador-progress-summary-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.36;
}

.ambassador-progress-summary-meta {
  margin: 1px 0 0;
  color: rgba(62, 91, 83, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.ambassador-progress-body {
  margin-top: 8px;
}

.ambassador-progress-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.ambassador-progress-row {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 10px 11px 9px;
  border-radius: 16px;
  border: 1px solid rgba(45, 36, 29, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.985), rgba(255, 251, 245, 0.985)),
    #fffdf9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 6px 18px rgba(25, 21, 17, 0.03);
  overflow: visible;
}

.ambassador-progress-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.ambassador-progress-row-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text);
}

.ambassador-progress-row-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ambassador-progress-row-status-met {
  color: #1c7a50;
}

.ambassador-progress-row-status-pending {
  color: #a26c1b;
}

.ambassador-progress-row-status-unknown {
  color: #7b7267;
}

.ambassador-progress-row-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(214, 204, 191, 0.34), rgba(241, 235, 226, 0.94)),
    repeating-linear-gradient(
      90deg,
      rgba(112, 91, 64, 0.06) 0 1px,
      transparent 1px 18px
    );
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -1px 1px rgba(92, 72, 49, 0.045),
    0 1px 0 rgba(255, 255, 255, 0.64);
  overflow: hidden;
}

.ambassador-progress-row-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 8px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 4px 10px rgba(32, 24, 18, 0.08);
}

.ambassador-progress-row-bar::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.ambassador-progress-row-bar::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.26),
    0 0 10px rgba(255, 255, 255, 0.32);
}

.ambassador-progress-row-bar-met {
  background:
    linear-gradient(90deg, #38ca92 0%, #28af7d 62%, #208b65 100%);
}

.ambassador-progress-row-bar-pending {
  background:
    linear-gradient(90deg, #f3c96d 0%, #e6ad42 62%, #c98721 100%);
}

.ambassador-progress-row-bar-unknown {
  background:
    linear-gradient(90deg, #c7bdaf 0%, #a99c8d 62%, #8f8374 100%);
}

.ambassador-progress-row-foot {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 12px;
}

.ambassador-progress-row-value {
  font-size: 0.84rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ambassador-progress-row-met {
  background: linear-gradient(180deg, #f7fdf9, #f1faf4);
  border-color: rgba(61, 160, 106, 0.16);
}

.ambassador-progress-row-pending {
  background: linear-gradient(180deg, #fffdf7, #faf5eb);
  border-color: rgba(202, 158, 57, 0.16);
}

.ambassador-progress-row-unknown {
  background: linear-gradient(180deg, #faf6f1, #f3eee7);
  border-color: rgba(122, 111, 96, 0.12);
}

.ambassador-progress-note-slot {
  display: grid;
  place-content: end end;
  align-self: stretch;
  gap: 0;
  padding: 10px 10px 10px 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  justify-items: end;
}

.ambassador-progress-note-text {
  margin: 0;
  max-width: none;
  color: rgba(94, 82, 71, 0.72);
  font-size: 0.71rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.ambassador-progress-row[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 260px;
  padding: 10px 13px;
  border-radius: 14px;
  background: rgba(33, 28, 23, 0.95);
  color: #fffdf8;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  box-shadow: 0 18px 36px rgba(20, 16, 13, 0.18);
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  z-index: 20;
}

.ambassador-progress-row[data-tooltip]:hover::after,
.ambassador-progress-row[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.ambassador-progress-open .metric-card[data-metric-id="metric.seller_gmv_completed"] .title-icon,
body.ambassador-progress-open .metric-card[data-metric-id="metric.buyer_orders_completed"] .title-icon,
body.ambassador-progress-open .metric-card[data-metric-id="metric.buyer_gmv_completed"] .title-icon {
  opacity: 0 !important;
  visibility: hidden !important;
}

@media (max-width: 720px) {
  .ambassador-progress-popover {
    padding: 16px;
  }

  .ambassador-progress-summary-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ambassador-progress-summary-copy {
    justify-items: center;
  }

  .ambassador-progress-list {
    grid-template-columns: 1fr;
  }

  .ambassador-progress-row-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .ambassador-progress-row-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ambassador-progress-note-slot {
    display: none;
  }
}

.result-sidebar {
  position: fixed;
  top: 50%;
  left: 0;
  width: 232px;
  display: block;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(-50% + 8px));
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
  z-index: 70;
}

.result-sidebar.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%);
}

.floating-account-card {
  position: absolute;
  left: auto;
  right: 0;
  bottom: calc(100% + 22px);
  width: auto;
  padding: 0;
  border-radius: 24px;
  border: 0 solid transparent;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    max-height 0.2s ease,
    transform 0.2s ease,
    margin 0.2s ease;
}

.floating-account-card.is-visible {
  padding: 14px 16px 12px;
  border-width: 1px;
  border-color: rgba(18, 102, 103, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.96), rgba(248, 241, 231, 0.92));
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 42px rgba(45, 36, 29, 0.12);
  opacity: 1;
  max-height: 240px;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-account-inner {
  display: grid;
  gap: 9px;
}

.floating-account-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 8px;
  min-width: 0;
  padding-right: 10px;
}

.floating-account-text {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.floating-account-copy-stack {
  display: grid;
  gap: 10px;
  justify-items: end;
  align-content: start;
  padding-right: 8px;
}

.floating-account-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.floating-account-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.floating-account-subtitle {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}

.floating-copy-inline {
  appearance: none;
  -webkit-appearance: none;
  position: static;
  flex: 0 0 auto;
  min-width: 48px;
  height: 26px;
  padding: 0 11px;
  border: 1px solid rgba(18, 102, 103, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  justify-self: end;
  align-self: center;
}

.floating-copy-inline:hover,
.floating-copy-inline:focus-visible {
  border-color: rgba(18, 102, 103, 0.24);
  background: rgba(242, 250, 247, 0.96);
  color: var(--accent);
  box-shadow: 0 6px 14px rgba(31, 26, 21, 0.05);
  transform: translateY(-1px);
  outline: none;
}

.floating-copy-inline.copied {
  border-color: rgba(18, 102, 103, 0.3);
  background: rgba(232, 247, 243, 0.98);
  color: var(--accent);
}

.floating-copy-inline.copy-failed {
  border-color: rgba(139, 58, 47, 0.18);
  background: rgba(255, 246, 244, 0.94);
  color: var(--danger);
}

.floating-copy-inline:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.floating-account-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  width: fit-content;
  max-width: calc(100% - 14px);
  min-width: 0;
  box-sizing: border-box;
}

.floating-account-badges .status-badge {
  flex: 0 1 auto;
  min-height: 32px;
  padding: 0 12px 0 24px;
  font-size: 0.8rem;
  box-shadow: 0 8px 18px rgba(31, 26, 21, 0.05);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-rail {
  display: grid;
  justify-items: stretch;
}

.result-rail.hidden {
  display: none !important;
}

.result-rail-list {
  display: grid;
  gap: 0;
  max-height: calc(100vh - 250px);
  overflow: auto;
  padding: 4px 2px 4px 0;
}

.result-rail-link {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: block;
  width: 100%;
  padding: 8px 12px 8px 30px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.24);
  color: rgba(45, 36, 29, 0.56);
  font-size: 0.81rem;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0.5;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
  cursor: pointer;
}

.result-rail-link::before {
  content: "◆";
  position: absolute;
  left: 10px;
  top: 50%;
  color: rgba(18, 102, 103, 0.48);
  font-size: 0.66rem;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.result-rail-link::after {
  content: "";
  position: absolute;
  left: 13px;
  top: calc(50% + 10px);
  bottom: -8px;
  width: 1px;
  background:
    linear-gradient(180deg, rgba(18, 102, 103, 0.4), rgba(18, 102, 103, 0.08));
  opacity: 0.8;
}

.result-rail-link:last-child::after {
  display: none;
}

.result-rail-link:hover,
.result-rail-link:focus-visible {
  opacity: 0.96;
  border-color: rgba(18, 102, 103, 0.26);
  background: rgba(242, 250, 247, 0.96);
  color: rgba(18, 102, 103, 0.94);
  box-shadow: 0 8px 16px rgba(31, 26, 21, 0.06);
  transform: translateX(-2px);
  outline: none;
}

.result-rail-link:hover::before,
.result-rail-link:focus-visible::before {
  color: rgba(18, 102, 103, 0.92);
  transform: translateY(-50%) scale(1.08);
}

.result-rail-link.is-active {
  opacity: 1;
  border-color: rgba(18, 102, 103, 0.34);
  background: rgba(232, 247, 243, 0.96);
  color: rgba(18, 102, 103, 0.98);
  box-shadow: 0 8px 18px rgba(18, 102, 103, 0.16);
  transform: translateX(-3px);
}

.result-rail-link.is-active::before {
  color: rgba(18, 102, 103, 1);
  transform: translateY(-50%) scale(1.12);
}

/* Sidebar refresh */
.result-sidebar {
  width: 220px;
  transform: translateY(calc(-50% + 10px));
}

.result-sidebar.has-card {
  overflow: visible;
}

.floating-account-card {
  left: auto;
  right: 0;
  bottom: calc(100% + 24px);
  width: auto;
  min-width: min(100%, 236px);
  max-width: min(100%, 336px);
  transform: translateY(10px) scale(0.985);
}

.floating-account-card.is-visible {
  box-shadow: 0 18px 36px rgba(45, 36, 29, 0.12);
  transform: translateY(0) scale(1);
}

.floating-account-inner {
  gap: 10px;
}

.floating-account-top {
  column-gap: 12px;
  row-gap: 8px;
  padding-right: 10px;
}

.floating-account-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-account-subtitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-copy-inline {
  width: auto;
  min-width: 48px;
  height: 24px;
  padding: 0 10px;
  border-radius: 9px;
  border-color: rgba(18, 102, 103, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(18, 102, 103, 0.78);
  font-size: 0.76rem;
}

.floating-copy-inline:hover,
.floating-copy-inline:focus-visible {
  border-color: rgba(18, 102, 103, 0.22);
  box-shadow: 0 6px 12px rgba(31, 26, 21, 0.05);
  transform: translateY(-1px);
}

.floating-copy-inline.copied {
  border-color: rgba(18, 102, 103, 0.22);
  background:
    linear-gradient(180deg, rgba(231, 246, 241, 0.98), rgba(221, 242, 235, 0.98));
  color: rgba(18, 102, 103, 0.98);
  box-shadow: 0 8px 16px rgba(18, 102, 103, 0.12);
}

.result-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.result-rail-list {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 178px);
  max-height: calc(100vh - 250px);
  overflow: auto;
  padding: 14px 0;
  scrollbar-width: none;
}

.result-rail-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.result-rail-list::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(18, 102, 103, 0.12), rgba(18, 102, 103, 0.34) 26%, rgba(18, 102, 103, 0.14));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.result-rail-link {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1px solid rgba(18, 102, 103, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(250, 244, 236, 0.5));
  color: rgba(45, 36, 29, 0.66);
  font-size: 0.79rem;
  line-height: 1.25;
  opacity: 0.72;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(45, 36, 29, 0.035);
}

.result-rail-link::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(18, 102, 103, 0.96) 0 34%, rgba(18, 102, 103, 0.22) 38% 100%);
  box-shadow:
    0 0 0 4px rgba(242, 250, 247, 0.88),
    0 0 0 1px rgba(18, 102, 103, 0.12);
  transform: translateY(-50%);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.result-rail-link::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: rgba(18, 102, 103, 0.26);
  transform: translateY(-50%);
  transition:
    background 0.18s ease,
    width 0.18s ease;
}

.result-rail-link:last-child::after {
  display: block;
}

.result-rail-link:hover,
.result-rail-link:focus-visible {
  opacity: 0.96;
  border-color: rgba(18, 102, 103, 0.22);
  background: rgba(242, 250, 247, 0.96);
  color: rgba(18, 102, 103, 0.94);
  box-shadow: 0 12px 28px rgba(31, 26, 21, 0.07);
  transform: translateY(-1px);
}

.result-rail-link:hover::before,
.result-rail-link:focus-visible::before {
  box-shadow:
    0 0 0 4px rgba(242, 250, 247, 0.96),
    0 0 0 1px rgba(18, 102, 103, 0.22);
  transform: translateY(-50%) scale(1.08);
}

.result-rail-link:hover::after,
.result-rail-link:focus-visible::after {
  background: rgba(18, 102, 103, 0.46);
  width: 12px;
}

.result-rail-link.is-active {
  opacity: 1;
  border-color: rgba(18, 102, 103, 0.32);
  background: rgba(232, 247, 243, 0.96);
  color: rgba(18, 102, 103, 0.98);
  box-shadow: 0 14px 30px rgba(18, 102, 103, 0.14);
  transform: translateY(-1px);
}

.result-rail-link.is-active::before {
  background:
    radial-gradient(circle at center, rgba(18, 102, 103, 1) 0 36%, rgba(18, 102, 103, 0.28) 40% 100%);
  box-shadow:
    0 0 0 4px rgba(233, 247, 243, 0.98),
    0 0 0 1px rgba(18, 102, 103, 0.26);
  transform: translateY(-50%) scale(1.12);
}

.result-rail-link.is-active::after {
  background: rgba(18, 102, 103, 0.58);
  width: 14px;
}

.headline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  min-height: 132px;
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, var(--surface-strong), rgba(255, 250, 242, 0.76));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.metric-label {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

.metric-value {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.metric-subvalue {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.metric-subvalue.metric-subvalue-split {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.45rem;
}

.metric-subvalue-primary,
.metric-subvalue-secondary,
.metric-subvalue-separator {
  min-width: 0;
}

.metric-subvalue-separator {
  color: rgba(106, 89, 77, 0.72);
  font-weight: 700;
}

.metric-subvalue-secondary {
  white-space: nowrap;
}

.metric-subvalue.metric-subvalue-split.is-wrapped .metric-subvalue-separator {
  flex-basis: 100%;
  width: 100%;
  height: auto;
  margin: 0.1rem 0 0.16rem;
  transform: none;
  color: transparent;
  line-height: 0;
  border-top: none;
}

.metric-subvalue.metric-subvalue-split.is-wrapped .metric-subvalue-separator::before {
  content: "";
  display: block;
  width: var(--separator-width, 160px);
  max-width: 100%;
  border-top: 1px solid rgba(106, 89, 77, 0.38);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.data-section {
  background: linear-gradient(180deg, var(--surface-strong), rgba(255, 250, 242, 0.84));
}

.snapshot-entry-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid rgba(18, 102, 103, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(18, 102, 103, 0.12), rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.94), rgba(255, 247, 236, 0.9));
  box-shadow: 0 18px 42px rgba(62, 44, 26, 0.08);
}

.snapshot-entry-panel.hidden {
  display: none;
}

.snapshot-entry-brand {
  min-width: 0;
}

.snapshot-entry-title {
  margin: 0 0 7px;
  color: #086f69;
  font-size: 1.05rem;
  font-weight: 900;
}

.snapshot-entry-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.snapshot-entry-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.snapshot-entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(31, 137, 132, 0.16);
  border-radius: 999px;
  background: rgba(241, 250, 248, 0.58);
  color: rgba(8, 108, 103, 0.78);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.snapshot-entry-link.is-primary {
  background:
    linear-gradient(135deg, rgba(226, 249, 245, 0.92), rgba(249, 255, 252, 0.92));
  border-color: rgba(15, 116, 110, 0.24);
  color: rgba(8, 108, 103, 0.84);
  box-shadow: 0 8px 18px rgba(18, 102, 103, 0.08);
}

.snapshot-entry-link:hover {
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .snapshot-entry-panel {
    grid-template-columns: 1fr;
  }

  .snapshot-entry-actions {
    justify-content: flex-start;
  }
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.06rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.kv-grid {
  display: grid;
  gap: 12px;
}

.kv-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(45, 36, 29, 0.08);
}

.kv-key {
  font-size: 0.84rem;
  color: var(--muted);
}

.kv-value {
  font-weight: 700;
  line-height: 1.55;
  word-break: break-word;
}

.kv-item-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kv-item-headline .kv-key {
  min-width: 0;
}

.kv-item-expandable-description {
  gap: 8px;
}

.kv-expand-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease;
}

.kv-expand-toggle:hover,
.kv-expand-toggle:focus-visible {
  color: var(--accent);
  outline: none;
}

.kv-expand-toggle.hidden {
  display: none;
}

.kv-expand-value {
  min-width: 0;
  font-weight: 700;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  word-break: normal;
  cursor: default;
}

.kv-item-expandable-description.is-truncated .kv-expand-value {
  cursor: pointer;
}

.kv-item-expandable-description.is-expanded .kv-expand-value {
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  line-height: 1.65;
}

.kv-item-danger .kv-key {
  color: var(--danger-label);
  font-weight: 700;
}

.raw-panel summary {
  cursor: pointer;
  font-weight: 700;
}

.raw-panel pre {
  margin: 16px 0 0;
  padding: 16px;
  overflow: auto;
  border-radius: 18px;
  background: rgba(37, 33, 29, 0.92);
  color: #fef5ea;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
}

.muted {
  color: var(--muted);
}

.danger {
  color: var(--danger);
}

.toast-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.copy-toast {
  position: fixed;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(45, 36, 29, 0.92);
  color: #fffaf2;
  font-size: 0.82rem;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(45, 36, 29, 0.22);
  animation: fade-toast 1.5s ease forwards;
}

.copy-toast-failed {
  background: rgba(139, 58, 47, 0.94);
}

/* Sidebar polish */
.floating-account-card,
.floating-account-card.is-visible {
  overflow: visible;
  z-index: 14;
}

.floating-account-badges {
  position: relative;
  z-index: 3;
}

.status-badge[data-tooltip],
.badge-help-button[data-tooltip] {
  z-index: 1;
}

.status-badge[data-tooltip]:hover,
.status-badge[data-tooltip]:focus-visible,
.badge-help-button[data-tooltip]:hover,
.badge-help-button[data-tooltip]:focus-visible {
  z-index: 12;
}

.status-badge[data-tooltip]::after,
.badge-help-button[data-tooltip]::after {
  top: calc(100% + 8px);
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(37, 31, 26, 0.95);
  box-shadow: 0 10px 22px rgba(20, 16, 13, 0.12);
  z-index: 140;
}

.result-sidebar {
  top: 33vh;
  width: 238px;
  transform: translateY(10px);
}

.result-sidebar.is-visible {
  transform: translateY(0);
}

.result-sidebar.has-card,
.result-sidebar.has-card.is-visible {
  top: 88px;
  transform: none;
}

.floating-copy-inline {
  flex: 0 0 auto;
  width: auto;
  min-width: 46px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border-color: rgba(18, 102, 103, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(18, 102, 103, 0.88);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}

.floating-copy-inline:hover,
.floating-copy-inline:focus-visible {
  border-color: rgba(18, 102, 103, 0.2);
  background: rgba(242, 250, 247, 0.98);
  box-shadow: 0 4px 10px rgba(31, 26, 21, 0.04);
  transform: translateY(-1px);
}

.floating-copy-inline.copied {
  border-color: rgba(18, 102, 103, 0.18);
  background: rgba(233, 247, 243, 0.98);
  color: rgba(18, 102, 103, 0.98);
  box-shadow: 0 4px 10px rgba(18, 102, 103, 0.08);
}

.floating-copy-inline.copy-failed {
  border-color: rgba(139, 58, 47, 0.14);
  background: rgba(255, 246, 244, 0.96);
  color: var(--danger);
  box-shadow: none;
}

.result-rail {
  z-index: 2;
}

.result-rail-list {
  gap: 11px;
  width: min(100%, 182px);
  padding: 14px 0 18px;
}

.result-rail-list::before {
  left: 17px;
  top: 16px;
  bottom: 20px;
  width: 2px;
  background:
    linear-gradient(
      180deg,
      rgba(18, 102, 103, 0.14),
      rgba(18, 102, 103, 0.34) 20%,
      rgba(18, 102, 103, 0.16)
    );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.result-rail-link {
  padding: 10px 16px 10px 38px;
  border-color: rgba(108, 90, 71, 0.08);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.99), rgba(248, 241, 231, 0.98));
  color: rgba(98, 82, 68, 0.9);
  font-size: 0.8rem;
  opacity: 0.95;
  backdrop-filter: none;
  box-shadow: none;
}

.result-rail-link::before {
  left: 12px;
  width: 9px;
  height: 9px;
  background:
    radial-gradient(circle at center, rgba(18, 102, 103, 0.92) 0 40%, rgba(18, 102, 103, 0.22) 44% 100%);
  box-shadow:
    0 0 0 4px rgba(248, 244, 237, 0.98),
    0 0 0 1px rgba(18, 102, 103, 0.12);
}

.result-rail-link::after {
  left: 21px;
  width: 9px;
  background: rgba(18, 102, 103, 0.2);
}

.result-rail-link:hover,
.result-rail-link:focus-visible {
  border-color: rgba(18, 102, 103, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.99), rgba(250, 245, 237, 0.97));
  color: rgba(45, 36, 29, 0.88);
  box-shadow: none;
  transform: translateX(3px);
}

.result-rail-link:hover::before,
.result-rail-link:focus-visible::before {
  box-shadow:
    0 0 0 4px rgba(250, 247, 242, 0.98),
    0 0 0 1px rgba(18, 102, 103, 0.18);
}

.result-rail-link:hover::after,
.result-rail-link:focus-visible::after {
  width: 10px;
  background: rgba(18, 102, 103, 0.3);
}

.result-rail-link.is-active {
  border-color: rgba(18, 102, 103, 0.24);
  background:
    linear-gradient(180deg, rgba(229, 247, 243, 0.98), rgba(239, 250, 247, 0.96));
  color: rgba(18, 102, 103, 0.96);
  box-shadow: none;
  transform: translateX(2px);
}

.result-rail-link.is-active::before {
  box-shadow:
    0 0 0 4px rgba(233, 247, 243, 0.98),
    0 0 0 1px rgba(18, 102, 103, 0.24);
}

.result-rail-link.is-active::after {
  width: 10px;
  background: rgba(18, 102, 103, 0.42);
}

.floating-account-badges {
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
}

.floating-account-badges .status-badge {
  min-width: 0;
  min-height: 32px;
  padding: 0 var(--floating-badge-pad-end, 12px) 0 22px;
  font-size: 0.76rem;
  box-shadow: none;
}

.floating-account-card {
  width: auto;
  min-width: min(100%, 246px);
  max-width: min(100%, 336px);
  top: calc(88px - 33vh);
  bottom: auto;
}

.result-sidebar.has-card .floating-account-card {
  top: 0;
}

.result-sidebar.has-card .result-rail {
  margin-top: 174px;
}

@keyframes fade-toast {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  15% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  75% {
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
}

.auth-toolbar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-toolbar.is-login-entry {
  order: 20;
}

.auth-pill,
.auth-panel-link,
.auth-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: rgba(45, 36, 29, 0.8);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.auth-pill strong {
  color: #0f7f78;
  font-size: 0.78rem;
}

.membership-pill {
  position: relative;
  border-color: rgba(83, 58, 37, 0.1);
  box-shadow:
    0 8px 20px rgba(62, 44, 26, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.membership-pill:hover,
.membership-pill[aria-expanded="true"] {
  border-color: rgba(18, 102, 103, 0.16);
  box-shadow:
    0 12px 26px rgba(62, 44, 26, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.membership-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 260;
  display: grid;
  gap: 9px;
  width: 228px;
  max-width: calc(100vw - 32px);
  padding: 10px;
  border: 1px solid rgba(83, 58, 37, 0.1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 4%, rgba(226, 242, 236, 0.74), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 245, 0.96));
  box-shadow:
    0 18px 42px rgba(62, 44, 26, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

.membership-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 32px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(83, 58, 37, 0.1);
  border-left: 1px solid rgba(83, 58, 37, 0.1);
  background: rgba(255, 255, 255, 0.98);
  transform: rotate(45deg);
}

.membership-popover[hidden] {
  display: none;
}

.membership-popover-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(18, 102, 103, 0.08);
  border-radius: 12px;
  background: rgba(248, 252, 250, 0.82);
}

.membership-popover-head strong,
.membership-popover-head span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membership-popover-head strong {
  color: rgba(45, 36, 29, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
}

.membership-popover-head span {
  margin-top: 3px;
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 800;
}

.membership-popover-head .toolbar-pill-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  margin-top: 0;
  overflow: visible;
  white-space: normal;
}

.membership-popover-grid {
  display: grid;
  gap: 8px;
}

.membership-popover-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(83, 58, 37, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.62);
}

.membership-popover-grid span {
  color: #748298;
  font-size: 0.76rem;
  font-weight: 800;
}

.membership-popover-grid strong {
  color: rgba(45, 36, 29, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.auth-login-pill {
  min-height: 38px;
  padding: 0 16px 0 10px;
  border-color: rgba(18, 102, 103, 0.12);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(239, 249, 246, 0.92));
  box-shadow:
    0 12px 28px rgba(62, 44, 26, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -10px 18px rgba(15, 118, 110, 0.05);
  color: rgba(45, 36, 29, 0.86);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.auth-login-pill:hover {
  border-color: rgba(18, 102, 103, 0.18);
  box-shadow:
    0 16px 32px rgba(62, 44, 26, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -10px 18px rgba(15, 118, 110, 0.07);
  transform: translateY(-1px);
}

.auth-login-pill .toolbar-pill-icon {
  background: rgba(226, 242, 236, 0.96);
}

.toolbar-pill-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 249, 246, 0.9);
  color: #0f766e;
}

.toolbar-pill-icon svg {
  width: 14px;
  height: 14px;
}

.toolbar-pill-icon.is-star {
  background: rgba(255, 247, 214, 0.92);
  color: #b7791f;
}

.toolbar-pill-icon.is-diamond {
  background: rgba(236, 253, 245, 0.92);
  color: #047857;
}

.toolbar-pill-icon.is-briefcase {
  background: rgba(226, 242, 236, 0.92);
  color: #0f766e;
}

.toolbar-pill-icon.is-crown {
  background: rgba(246, 238, 255, 0.92);
  color: #7c3aed;
}

.account-menu-root {
  position: relative;
  flex: 0 0 auto;
}

.account-avatar-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(18, 102, 103, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.58) 36%, rgba(239, 249, 246, 0.88) 100%) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(15, 143, 149, 0.32)) border-box;
  color: #0f766e;
  box-shadow:
    0 8px 18px rgba(15, 118, 110, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -6px 12px rgba(15, 118, 110, 0.04);
  cursor: pointer;
  transition:
    box-shadow 0.16s ease,
    transform 0.16s ease,
    border-color 0.16s ease;
}

.account-avatar-frame {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.9), rgba(226, 242, 236, 0.74) 46%, rgba(15, 118, 110, 0.2)),
    linear-gradient(145deg, #e7f7f3, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -6px 10px rgba(15, 118, 110, 0.06),
    0 4px 10px rgba(15, 118, 110, 0.08);
}

.account-avatar-frame.is-menu-avatar {
  width: 42px;
  height: 42px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -10px 16px rgba(15, 118, 110, 0.12),
    0 12px 24px rgba(15, 118, 110, 0.18);
}

.account-avatar-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar-initials {
  position: relative;
  z-index: 2;
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
}

.account-avatar-frame.has-image .account-avatar-initials {
  opacity: 0;
}

.account-avatar-button:hover,
.account-avatar-button[aria-expanded="true"] {
  border-color: rgba(18, 102, 103, 0.24);
  box-shadow:
    0 10px 22px rgba(15, 118, 110, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -6px 12px rgba(15, 118, 110, 0.06);
  transform: translateY(-1px);
}

.account-avatar-button:focus-visible {
  outline: 3px solid rgba(15, 143, 149, 0.2);
  outline-offset: 3px;
}

.account-menu-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 260;
  display: grid;
  gap: 10px;
  width: 248px;
  max-width: calc(100vw - 32px);
  padding: 12px;
  border: 1px solid rgba(83, 58, 37, 0.1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 85% 8%, rgba(226, 242, 236, 0.78), rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 245, 0.96));
  box-shadow:
    0 22px 56px rgba(62, 44, 26, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.account-menu-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(83, 58, 37, 0.1);
  border-left: 1px solid rgba(83, 58, 37, 0.1);
  background: rgba(255, 255, 255, 0.98);
  transform: rotate(45deg);
}

.account-menu-popover[hidden] {
  display: none;
}

.account-menu-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(18, 102, 103, 0.08);
  border-radius: 12px;
  background: rgba(239, 249, 246, 0.68);
}

.account-menu-identity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.account-menu-identity strong,
.account-menu-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-identity strong {
  color: rgba(45, 36, 29, 0.86);
  font-size: 0.88rem;
  font-weight: 950;
}

.account-menu-identity span {
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 900;
}

.account-menu-actions {
  display: grid;
  gap: 8px;
}

.account-menu-popover a,
.account-menu-popover button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(83, 58, 37, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  color: rgba(45, 36, 29, 0.78);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.account-menu-action-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(239, 249, 246, 0.92);
  color: #0f766e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.account-menu-action-icon svg {
  width: 15px;
  height: 15px;
}

.account-menu-action-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.account-menu-action-copy strong,
.account-menu-action-copy em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-action-copy strong {
  color: rgba(45, 36, 29, 0.82);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 900;
}

.account-menu-action-copy em {
  color: #7b8ba0;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.account-menu-popover a:hover {
  border-color: rgba(18, 102, 103, 0.12);
  background: rgba(239, 249, 246, 0.9);
  color: #0f766e;
  box-shadow:
    0 10px 20px rgba(15, 118, 110, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.account-menu-popover a:hover .account-menu-action-copy strong,
.account-menu-popover a:hover .account-menu-action-copy em {
  color: #0f766e;
}

.account-menu-popover button:hover {
  border-color: rgba(248, 113, 113, 0.18);
  background: rgba(254, 242, 242, 0.92);
  color: #b42318;
  box-shadow:
    0 10px 20px rgba(180, 35, 24, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.account-menu-popover button:hover .account-menu-action-copy strong,
.account-menu-popover button:hover .account-menu-action-copy em {
  color: #b42318;
}

.account-menu-popover button:hover .account-menu-action-icon {
  background: rgba(254, 226, 226, 0.9);
  color: #b42318;
}

.auth-pill-secondary {
  background: rgba(239, 249, 246, 0.88);
  color: #0f6f68;
}

.auth-modal.hidden,
.auth-side-panel.hidden {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 27, 20, 0.32);
  backdrop-filter: blur(8px);
}

.auth-dialog,
.auth-panel-card {
  position: relative;
  width: min(460px, 100%);
  border: 1px solid rgba(83, 58, 37, 0.1);
  border-radius: 20px;
  background: rgba(255, 251, 245, 0.985);
  box-shadow: 0 24px 70px rgba(62, 44, 26, 0.22);
}

.auth-dialog,
.auth-panel-card {
  padding: 24px;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(45, 36, 29, 0.72);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.auth-dialog h2,
.auth-panel-head h2,
.auth-admin-section h3 {
  margin: 0;
  color: rgba(45, 36, 29, 0.92);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.auth-tabs button,
.auth-submit {
  min-height: 38px;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs button {
  border: 1px solid rgba(83, 58, 37, 0.08);
  background: rgba(255, 255, 255, 0.5);
  color: rgba(45, 36, 29, 0.74);
}

.auth-tabs button.is-active,
.auth-submit {
  border: 0;
  background: #0f7f78;
  color: #fff;
}

.auth-form,
.auth-redeem-form,
.auth-admin-section {
  display: grid;
  gap: 12px;
}

.auth-field,
.auth-admin-grid label {
  display: grid;
  gap: 7px;
  color: rgba(45, 36, 29, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-field input,
.auth-admin-grid input,
.auth-admin-grid select,
.auth-table-wrap input,
.auth-table-wrap select,
.auth-generated-codes {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(18, 102, 103, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(45, 36, 29, 0.86);
  font: inherit;
  font-weight: 700;
}

.auth-field input,
.auth-admin-grid input,
.auth-admin-grid select,
.auth-table-wrap input,
.auth-table-wrap select {
  padding: 0 11px;
}

.auth-feedback,
.auth-debug-link,
.auth-panel-note,
.auth-panel-loading {
  margin: 12px 0 0;
  color: rgba(45, 36, 29, 0.68);
  font-weight: 700;
  line-height: 1.6;
}

.auth-feedback.is-error {
  color: #b44738;
}

.auth-debug-link {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 248, 236, 0.92);
  border: 1px solid rgba(221, 170, 90, 0.24);
}

.auth-side-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 990;
  width: min(520px, calc(100vw - 24px));
  overflow: auto;
}

.auth-admin-panel {
  width: min(1120px, calc(100vw - 24px));
}

.auth-panel-card {
  width: 100%;
  min-height: 100%;
}

.auth-panel-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding-right: 46px;
}

.auth-panel-head p,
.auth-task-list p {
  margin: 0;
  color: #0f7f78;
  font-weight: 900;
}

.auth-metric-grid,
.auth-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.auth-metric-grid div {
  padding: 12px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.auth-metric-grid span,
.auth-code-list span,
.auth-task-list span {
  display: block;
  color: rgba(45, 36, 29, 0.6);
  font-size: 0.78rem;
  font-weight: 800;
}

.auth-metric-grid strong,
.auth-code-list strong,
.auth-task-list strong {
  display: block;
  margin-top: 5px;
  color: rgba(45, 36, 29, 0.9);
  font-size: 1rem;
}

.auth-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.auth-task-list ul,
.auth-code-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.auth-task-list li,
.auth-code-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(83, 58, 37, 0.07);
}

.auth-admin-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(83, 58, 37, 0.08);
}

.auth-generated-codes {
  min-height: 78px;
  padding: 10px;
  resize: vertical;
}

.auth-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(83, 58, 37, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
}

.auth-table-wrap table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.auth-table-wrap th,
.auth-table-wrap td {
  padding: 9px;
  border-bottom: 1px solid rgba(83, 58, 37, 0.06);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.auth-table-wrap th {
  color: rgba(45, 36, 29, 0.62);
  font-size: 0.78rem;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.member-body {
  min-height: 100vh;
}

.member-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 46px;
}

.member-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.member-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.member-nav a,
.member-button,
.member-inline-link,
.member-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: #0f6f68;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.member-button {
  border-color: #0f7f78;
  background: #0f7f78;
  color: #fff;
}

.member-button.is-secondary,
.member-inline-link,
.member-mini-button {
  border-color: rgba(18, 102, 103, 0.16);
  background: rgba(239, 249, 246, 0.88);
  color: #0f6f68;
}

.member-page-card,
.member-auth-card,
.member-section,
.member-hero {
  border: 1px solid rgba(83, 58, 37, 0.1);
  border-radius: 20px;
  background: rgba(255, 251, 245, 0.92);
  box-shadow: 0 18px 48px rgba(62, 44, 26, 0.1);
}

.member-page-card {
  display: grid;
  gap: 18px;
  min-height: 420px;
  padding: 22px;
}

.member-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
}

.member-auth-card {
  padding: 26px;
}

.member-kicker {
  margin: 0 0 8px;
  color: #0f7f78;
  font-size: 0.82rem;
  font-weight: 900;
}

.member-copy {
  margin: 10px 0 0;
  color: rgba(45, 36, 29, 0.66);
  font-weight: 700;
  line-height: 1.7;
}

.member-auth-card h1,
.member-hero h1,
.member-section h2 {
  margin: 0;
  color: rgba(45, 36, 29, 0.92);
}

.member-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.member-tabs button,
.member-auth-form button,
.member-inline-form button,
.member-admin-grid button,
.member-section form > .member-button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #0f7f78;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.member-tabs button {
  border: 1px solid rgba(83, 58, 37, 0.08);
  background: rgba(255, 255, 255, 0.62);
  color: rgba(45, 36, 29, 0.72);
}

.member-tabs button.is-active {
  border-color: #0f7f78;
  background: #0f7f78;
  color: #fff;
}

.member-auth-form,
.member-inline-form,
.member-admin-grid {
  display: grid;
  gap: 12px;
}

.member-auth-form label,
.member-admin-grid label {
  display: grid;
  gap: 7px;
  color: rgba(45, 36, 29, 0.68);
  font-size: 0.82rem;
  font-weight: 900;
}

.member-auth-form input,
.member-inline-form input,
.member-admin-grid input,
.member-admin-grid select,
.member-table-wrap input,
.member-table-wrap select,
.member-code-output {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(18, 102, 103, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(45, 36, 29, 0.86);
  font: inherit;
  font-weight: 700;
}

.member-auth-form input,
.member-inline-form input,
.member-admin-grid input,
.member-admin-grid select,
.member-table-wrap input,
.member-table-wrap select {
  padding: 0 11px;
}

.member-feedback {
  min-height: 24px;
  margin: 12px 0 0;
  color: rgba(45, 36, 29, 0.66);
  font-weight: 800;
  line-height: 1.6;
}

.member-feedback.is-error {
  color: #b44738;
}

.member-feedback-popup {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.member-feedback-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.member-feedback-popup-card {
  width: min(430px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 150, 142, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 0%, rgba(208, 252, 243, 0.74), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 253, 251, 0.98));
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.18),
    0 10px 24px rgba(15, 150, 142, 0.13);
  pointer-events: auto;
}

.member-feedback-popup.is-error .member-feedback-popup-card {
  border-color: rgba(190, 74, 62, 0.34);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 230, 221, 0.84), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 247, 0.98));
  box-shadow:
    0 26px 76px rgba(15, 23, 42, 0.2),
    0 10px 26px rgba(190, 74, 62, 0.16);
}

.member-feedback-popup-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #0aa99b, #10848b);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 150, 142, 0.28);
}

.member-feedback-popup.is-error .member-feedback-popup-icon {
  background: linear-gradient(135deg, #ef6b57, #b94738);
  box-shadow: 0 12px 28px rgba(190, 74, 62, 0.26);
}

.member-feedback-popup-icon .member-icon,
.member-feedback-popup-close .member-icon {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.member-feedback-popup-text {
  min-width: 0;
  color: #102033;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.45;
}

.member-feedback-popup-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 150, 142, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: #607384;
  cursor: pointer;
}

.member-feedback-popup-close:hover {
  color: #0f8f87;
  border-color: rgba(15, 150, 142, 0.32);
  background: #fff;
}

.member-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
}

.member-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.member-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.member-metrics > div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.member-metrics span,
.member-list span {
  display: block;
  color: rgba(45, 36, 29, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
}

.member-metrics strong,
.member-list strong {
  display: block;
  margin-top: 8px;
  color: rgba(45, 36, 29, 0.92);
  font-size: 1.15rem;
}

.member-section {
  display: grid;
  gap: 14px;
  padding: 22px;
  box-shadow: none;
}

.member-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.member-inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.member-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-list li {
  padding: 12px 14px;
  border: 1px solid rgba(83, 58, 37, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.member-admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}

.member-code-output {
  min-height: 78px;
  padding: 10px;
  resize: vertical;
}

.member-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(83, 58, 37, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
}

.member-table-wrap table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.member-table-wrap th,
.member-table-wrap td {
  padding: 9px;
  border-bottom: 1px solid rgba(83, 58, 37, 0.06);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.member-table-wrap th {
  color: rgba(45, 36, 29, 0.62);
  font-size: 0.78rem;
}

.member-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .result-sidebar {
    display: none;
  }

  .headline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-header,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .field-filter-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: calc(100vw - 20px);
    max-width: 100%;
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .card,
  .query-panel {
    overflow: hidden;
  }

  .query-panel {
    overflow: visible;
  }

  .query-head {
    display: grid;
    gap: 10px;
    padding-top: 0;
  }

  .query-workspace,
  .query-stat-grid,
  .headline-grid,
  .overview-meta-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .query-actions {
    display: grid;
  }

  .query-bottom-bar {
    display: grid;
    gap: 14px;
  }

  .big-task-upload,
  .big-task-note-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .big-task-upload-button,
  .big-task-clear,
  .big-task-secondary,
  .big-task-primary {
    width: 100%;
  }

  .big-task-actions {
    display: grid;
  }

  .query-form-head {
    display: grid;
    min-height: 0;
    padding-right: 0;
    gap: 10px;
  }

  .query-form-tools {
    position: static;
    transform: none;
    justify-self: end;
  }

  .query-view-mode-switch {
    width: auto;
    max-width: 100%;
  }

  .query-view-mode-button {
    width: auto;
  }

  .proxy-grid {
    grid-template-columns: 1fr;
  }

  .proxy-actions {
    display: grid;
  }

  .proxy-save-button,
  .proxy-secondary-button {
    width: 100%;
  }

  .query-actions button {
    width: 100%;
  }

  .recent-searches {
    gap: 10px;
    padding-left: 0;
    align-items: flex-start;
  }

  .recent-searches::before {
    display: none;
  }

  .quick-list {
    flex-wrap: wrap;
    overflow: visible;
  }

  .page-toolbar {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 2px 8px 0;
  }

  .toolbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-cn {
    font-size: 1rem;
    letter-spacing: 0.05em;
  }

  .field-filter-button {
    width: auto;
    min-width: 126px;
    align-self: center;
  }

  .proxy-settings {
    width: 100%;
  }

  .result-switcher-head {
    flex-direction: column;
    align-items: stretch;
  }

  .result-switcher-compact-bar {
    grid-template-columns: 1fr;
  }

  .result-switcher-dropdown {
    min-width: 0;
  }

  .result-switcher-dropdown-head {
    align-items: stretch;
    flex-direction: column;
  }

  .query-failed-switcher {
    grid-template-columns: 1fr;
  }

  .query-failed-switcher-top {
    align-items: stretch;
    flex-direction: column;
  }

  .query-failed-actions,
  .query-failed-pager {
    justify-content: flex-start;
  }

  .query-failed-actions {
    margin-left: 0;
  }

  .result-switcher-current {
    flex-wrap: wrap;
  }

  .copy-stack {
    grid-template-columns: 1fr;
  }

  .overview-title-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

.overview-action-row {
  margin-top: 0;
  justify-content: flex-start;
}

.auth-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-pill,
.auth-panel-link,
.auth-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: rgba(45, 36, 29, 0.8);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.auth-pill {
  padding: 0 12px;
  white-space: nowrap;
}

.auth-pill strong {
  color: #0f7f78;
  font-size: 0.78rem;
}

.auth-pill-secondary {
  background: rgba(239, 249, 246, 0.88);
  color: #0f6f68;
}

.auth-modal.hidden,
.auth-side-panel.hidden {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 27, 20, 0.32);
  backdrop-filter: blur(8px);
}

.auth-dialog,
.auth-panel-card {
  position: relative;
  width: min(460px, 100%);
  border: 1px solid rgba(83, 58, 37, 0.1);
  border-radius: 20px;
  background: rgba(255, 251, 245, 0.985);
  box-shadow: 0 24px 70px rgba(62, 44, 26, 0.22);
}

.auth-dialog {
  padding: 24px;
}

.auth-dialog h2,
.auth-panel-head h2,
.auth-admin-section h3 {
  margin: 0;
  color: rgba(45, 36, 29, 0.92);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(45, 36, 29, 0.72);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.auth-tabs button {
  min-height: 34px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: rgba(45, 36, 29, 0.74);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: #0f7f78;
  border-color: #0f7f78;
  color: #fff;
}

.auth-form,
.auth-redeem-form,
.auth-admin-section {
  display: grid;
  gap: 12px;
}

.auth-field,
.auth-admin-grid label {
  display: grid;
  gap: 7px;
  color: rgba(45, 36, 29, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-field input,
.auth-admin-grid input,
.auth-admin-grid select,
.auth-table-wrap input,
.auth-table-wrap select,
.auth-generated-codes {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(18, 102, 103, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(45, 36, 29, 0.86);
  font: inherit;
  font-weight: 700;
}

.auth-field input,
.auth-admin-grid input,
.auth-admin-grid select,
.auth-table-wrap input,
.auth-table-wrap select {
  padding: 0 11px;
}

.auth-submit {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: #0f7f78;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.auth-submit:disabled,
.auth-mini-button:disabled {
  opacity: 0.58;
  cursor: default;
}

.auth-feedback,
.auth-debug-link,
.auth-panel-note,
.auth-panel-loading {
  margin: 12px 0 0;
  color: rgba(45, 36, 29, 0.68);
  font-weight: 700;
  line-height: 1.6;
}

.auth-feedback.is-error {
  color: #b44738;
}

.auth-debug-link {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 248, 236, 0.92);
  border: 1px solid rgba(221, 170, 90, 0.24);
}

.auth-debug-link a,
.auth-panel-link {
  color: #0f6f68;
}

.auth-side-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 990;
  width: min(520px, calc(100vw - 24px));
  overflow: auto;
}

.auth-admin-panel {
  width: min(1120px, calc(100vw - 24px));
}

.auth-panel-card {
  width: 100%;
  min-height: 100%;
  padding: 22px;
}

.auth-panel-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding-right: 46px;
}

.auth-panel-head p,
.auth-task-list p {
  margin: 0;
  color: #0f7f78;
  font-weight: 900;
}

.auth-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.auth-metric-grid div {
  padding: 12px;
  border: 1px solid rgba(83, 58, 37, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.auth-metric-grid span,
.auth-code-list span,
.auth-task-list span {
  display: block;
  color: rgba(45, 36, 29, 0.6);
  font-size: 0.78rem;
  font-weight: 800;
}

.auth-metric-grid strong,
.auth-code-list strong,
.auth-task-list strong {
  display: block;
  margin-top: 5px;
  color: rgba(45, 36, 29, 0.9);
  font-size: 1rem;
}

.auth-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.auth-task-list ul,
.auth-code-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.auth-task-list li,
.auth-code-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(83, 58, 37, 0.07);
}

.auth-admin-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(83, 58, 37, 0.08);
}

.auth-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.auth-generated-codes {
  min-height: 78px;
  padding: 10px;
  resize: vertical;
}

.auth-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(83, 58, 37, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
}

.auth-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.auth-table-wrap th,
.auth-table-wrap td {
  padding: 9px;
  border-bottom: 1px solid rgba(83, 58, 37, 0.06);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.auth-table-wrap th {
  color: rgba(45, 36, 29, 0.62);
  font-size: 0.78rem;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}
}

@media (max-width: 420px) {
  .page-shell {
    width: calc(100vw - 16px);
  }

  .page-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-inline: 4px;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .brand-lockup {
    align-self: flex-start;
  }

  .proxy-toggle-button,
  .field-filter-button {
    width: 100%;
    align-self: stretch;
  }

  html[data-query-view-mode="list"] .proxy-panel {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
  }

  .proxy-settings {
    width: 100%;
    padding-inline: 16px;
  }

  .auth-toolbar,
  .auth-pill {
    width: 100%;
  }

  .account-menu-root {
    align-self: flex-end;
  }

  .account-menu-popover {
    right: 0;
  }

  .auth-side-panel {
    inset: 8px;
    width: auto;
  }

  .auth-tabs,
  .auth-metric-grid,
  .auth-admin-grid,
  .member-auth-grid,
  .member-metrics,
  .member-admin-grid,
  .member-inline-form {
    grid-template-columns: 1fr;
  }

  .member-topbar,
  .member-hero,
  .member-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .member-nav,
  .member-hero-actions {
    justify-content: flex-start;
  }
}

/* Polished account and admin workspace */
.member-body {
  min-height: 100vh;
  background: #f5f7fb;
  color: #1f2937;
}

.member-shell {
  width: min(1240px, calc(100% - 48px));
  padding: 32px 0 64px;
}

.member-root {
  display: grid;
  gap: 24px;
}

.member-topbar {
  margin-bottom: 28px;
}

.member-nav a,
.member-button,
.member-inline-link,
.member-mini-button {
  min-height: 40px;
  padding: 0 16px;
  border-color: #d7e0ea;
  border-radius: 10px;
  background: #fff;
  color: #0f766e;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.member-button {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.member-button.is-secondary,
.member-inline-link,
.member-mini-button {
  border-color: #cbdde7;
  background: #f8fbfc;
  color: #0f766e;
}

.member-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 460px);
  gap: 28px;
  align-items: stretch;
  min-height: min(720px, calc(100vh - 150px));
}

.member-login-hero,
.member-login-card,
.member-hero,
.member-section {
  border: 1px solid #dfe7f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.member-login-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px;
}

.member-login-card {
  display: grid;
  align-content: center;
  padding: 36px;
}

.member-login-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.member-login-card-head h2,
.member-login-hero h1,
.member-hero h1 {
  margin: 0;
  color: #102033;
}

.member-login-hero h1,
.member-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
}

.member-login-card-head h2 {
  font-size: 28px;
}

.member-kicker {
  color: #0f766e;
  letter-spacing: 0.08em;
}

.member-copy {
  max-width: 680px;
  color: #607083;
  font-size: 1rem;
}

.member-login-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}

.member-login-summary div,
.member-metrics > div {
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  background: #f9fbfd;
}

.member-login-summary div {
  padding: 18px;
}

.member-login-summary span,
.member-metrics span,
.member-list span {
  color: #64748b;
}

.member-login-summary strong {
  display: block;
  margin-top: 8px;
  color: #172033;
  font-size: 1.05rem;
}

.member-tabs {
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #eef3f7;
}

.member-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
}

.member-tabs button.is-active {
  background: #fff;
  color: #0f766e;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.member-auth-form {
  gap: 16px;
}

.member-auth-form label,
.member-admin-grid label {
  color: #475569;
}

.member-auth-form input,
.member-inline-form input,
.member-admin-grid input,
.member-admin-grid select,
.member-table-wrap input,
.member-table-wrap select,
.member-code-output {
  min-height: 44px;
  border-color: #d7e0ea;
  border-radius: 10px;
  background: #fff;
  color: #172033;
}

.member-auth-form button,
.member-inline-form button,
.member-admin-grid button,
.member-section form > .member-button {
  min-height: 44px;
  border-radius: 10px;
  background: #0f766e;
}

.member-dashboard-hero,
.member-admin-hero {
  padding: 34px 38px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.member-metrics-spacious,
.member-admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.member-admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-metrics > div {
  min-height: 116px;
  padding: 18px;
}

.member-metrics strong {
  margin-top: 10px;
  color: #0f172a;
  font-size: 1.45rem;
}

.member-metrics em {
  display: block;
  margin-top: 8px;
  color: #8a98aa;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.member-content-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: start;
}

.member-section {
  gap: 18px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.member-section h2 {
  color: #102033;
  font-size: 22px;
}

.member-section-head {
  align-items: center;
}

.member-panel-primary {
  background: #f8fcfb;
  border-color: #cfe4df;
}

.member-inline-form {
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
}

.member-list {
  gap: 10px;
}

.member-list li {
  padding: 16px 18px;
  border-color: #e0e7ef;
  border-radius: 10px;
  background: #f9fbfd;
}

.member-list strong {
  color: #172033;
  font-size: 1rem;
}

.member-admin-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) 112px;
  gap: 14px;
}

.member-admin-block {
  overflow: hidden;
}

.member-code-output {
  min-height: 96px;
  padding: 12px;
}

.member-table-wrap {
  border-color: #dfe7f0;
  border-radius: 12px;
  background: #fff;
}

.member-table-wrap table {
  min-width: 900px;
}

.member-table-wrap th {
  padding: 14px 12px;
  background: #f6f8fb;
  color: #64748b;
  font-size: 0.78rem;
}

.member-table-wrap td {
  padding: 13px 12px;
  border-bottom-color: #edf1f5;
}

.member-feedback {
  color: #4b647a;
}

.auth-dialog {
  width: min(480px, 100%);
  padding: 34px;
  border: 1px solid #dfe7f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.auth-modal-backdrop {
  background: rgba(15, 23, 42, 0.46);
}

.auth-dialog h2 {
  color: #102033;
  font-size: 28px;
}

.auth-tabs {
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #eef3f7;
}

.auth-tabs button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
}

.auth-tabs button.is-active {
  background: #fff;
  color: #0f766e;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.auth-field input {
  min-height: 44px;
  border-color: #d7e0ea;
  border-radius: 10px;
}

.auth-submit {
  min-height: 44px;
  border-radius: 10px;
  background: #0f766e;
}

@media (max-width: 980px) {
  .member-shell {
    width: min(100% - 28px, 760px);
  }

  .member-login-layout,
  .member-content-grid {
    grid-template-columns: 1fr;
  }

  .member-metrics-spacious,
  .member-admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .member-shell {
    width: calc(100% - 20px);
    padding-top: 16px;
  }

  .member-topbar,
  .member-hero,
  .member-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .member-login-hero,
  .member-login-card,
  .member-dashboard-hero,
  .member-admin-hero,
  .member-section {
    padding: 22px;
  }

  .member-login-summary,
  .member-metrics-spacious,
  .member-admin-metrics,
  .member-admin-grid,
  .member-inline-form {
    grid-template-columns: 1fr;
  }

  .member-nav,
  .member-hero-actions {
    justify-content: flex-start;
  }
}

/* Commercial account workspace */
.member-body {
  min-height: 100vh;
  margin: 0;
  background: #eef3f8;
  color: #172033;
}

.member-app-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
}

.member-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid rgba(226, 232, 240, 0.16);
  background: #102033;
  color: #d8e3ef;
}

.member-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.member-sidebar-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.member-sidebar-brand strong,
.member-sidebar-brand small {
  display: block;
}

.member-sidebar-brand strong {
  font-size: 1.02rem;
  letter-spacing: 0;
}

.member-sidebar-brand small {
  margin-top: 3px;
  color: #9fb3c9;
  font-size: 0.78rem;
}

.member-sidebar-nav {
  display: grid;
  gap: 6px;
}

.member-sidebar-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #b8c7d8;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.member-sidebar-nav a:hover,
.member-sidebar-nav a.is-active {
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(15, 118, 110, 0.22);
  color: #fff;
}

.member-sidebar-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.member-sidebar-card span,
.member-sidebar-card strong {
  display: block;
}

.member-sidebar-card span {
  color: #8fb5c8;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.member-sidebar-card strong {
  margin-top: 8px;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.5;
}

.member-workspace {
  min-width: 0;
  padding: 28px 34px 56px;
}

.member-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dce5ee;
}

.member-topbar h1 {
  margin: 4px 0 0;
  color: #102033;
  font-size: 1.7rem;
  letter-spacing: 0;
}

.member-topbar-label {
  margin: 0;
  color: #66778d;
  font-size: 0.8rem;
  font-weight: 900;
}

.member-root {
  display: grid;
  gap: 22px;
}

.member-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-nav a,
.member-button,
.member-inline-link,
.member-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  background: #fff;
  color: #0f766e;
  font-weight: 900;
  text-decoration: none;
  box-shadow: none;
}

.member-button,
.member-auth-form button,
.member-inline-form button,
.member-admin-grid button,
.member-section form > .member-button {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.member-button.is-secondary,
.member-inline-link,
.member-mini-button {
  border-color: #cbd8e6;
  background: #f8fbfd;
  color: #0f766e;
}

.member-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 480px);
  gap: 24px;
  align-items: stretch;
  min-height: 680px;
}

.member-login-hero,
.member-login-card,
.member-hero,
.member-section,
.member-metrics > div {
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.member-login-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px;
  background: #102033;
  color: #fff;
}

.member-login-card {
  display: grid;
  align-content: center;
  padding: 42px;
}

.member-login-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.member-login-card-head h2,
.member-login-hero h1,
.member-hero h1,
.member-section h2 {
  margin: 0;
  letter-spacing: 0;
}

.member-login-hero h1,
.member-hero h1 {
  max-width: 760px;
  color: inherit;
  font-size: 42px;
  line-height: 1.12;
}

.member-login-card-head h2 {
  color: #102033;
  font-size: 28px;
}

.member-kicker {
  margin: 0 0 9px;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-login-hero .member-kicker {
  color: #60d6c6;
}

.member-copy {
  max-width: 720px;
  margin: 12px 0 0;
  color: #66778d;
  font-size: 1rem;
  line-height: 1.75;
}

.member-login-hero .member-copy {
  color: #bfd0df;
}

.member-login-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.member-login-summary div {
  padding: 0;
  border: 0;
  background: transparent;
}

.member-login-summary span,
.member-metrics span,
.member-list span {
  display: block;
  color: #66778d;
  font-size: 0.78rem;
  font-weight: 900;
}

.member-login-summary span {
  color: #93a9bd;
}

.member-login-summary strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 1.08rem;
}

.member-login-summary em {
  display: block;
  margin-top: 8px;
  color: #b6c8d7;
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.55;
}

.member-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 8px;
  background: #edf3f7;
}

.member-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #66778d;
  font-weight: 900;
}

.member-tabs button.is-active {
  background: #fff;
  color: #0f766e;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.09);
}

.member-auth-form,
.member-inline-form,
.member-admin-grid {
  display: grid;
  gap: 16px;
}

.member-auth-form label,
.member-admin-grid label {
  display: grid;
  gap: 8px;
  color: #415168;
  font-size: 0.86rem;
  font-weight: 900;
}

.member-auth-form input,
.member-inline-form input,
.member-admin-grid input,
.member-admin-grid select,
.member-table-wrap input,
.member-table-wrap select,
.member-code-output {
  min-height: 44px;
  width: 100%;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.member-auth-form input,
.member-inline-form input,
.member-admin-grid input,
.member-admin-grid select,
.member-table-wrap input,
.member-table-wrap select {
  padding: 0 12px;
}

.member-auth-form button,
.member-inline-form button,
.member-admin-grid button,
.member-section form > .member-button {
  min-height: 44px;
  border: 1px solid #0f766e;
  border-radius: 8px;
  font-weight: 900;
}

.member-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 38px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.member-dashboard-hero {
  border-color: #cfe2e0;
  background: #f8fcfb;
}

.member-admin-hero {
  border-color: #d8e1eb;
  background: #f9fbfd;
}

.member-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.member-metrics-spacious,
.member-admin-metrics {
  display: grid;
  gap: 14px;
}

.member-metrics-spacious {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.member-admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-metrics > div {
  min-height: 118px;
  padding: 18px;
}

.member-metrics strong {
  display: block;
  min-width: 0;
  margin-top: 12px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.member-metrics em {
  display: block;
  margin-top: 8px;
  color: #8391a4;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 900;
}

.member-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
}

.member-tasks-panel {
  grid-row: span 2;
}

.member-page-blocks .member-page-hero,
.member-page-blocks .member-block-display-panel {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.member-block-display-panel {
  gap: 20px;
  padding: 24px;
  border-color: #d9e7ef;
  background:
    radial-gradient(circle at 86% 10%, rgba(15, 143, 149, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.member-block-display-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dfe9f2;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 253, 250, 0.78), rgba(248, 252, 255, 0.92));
}

.member-block-display-count {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.member-block-display-count .member-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #0f8f95;
  background: #e7fbf8;
  box-shadow: inset 0 0 0 1px rgba(15, 143, 149, 0.08);
}

.member-block-display-count span {
  display: block;
  color: #718196;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
}

.member-block-display-count strong {
  display: block;
  margin-top: 4px;
  color: #102033;
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1.1;
}

.member-block-display-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.member-block-display-actions .member-inline-link {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d7e5ef;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.member-block-display-groups {
  display: grid;
  gap: 18px;
}

.member-block-display-group {
  display: grid;
  gap: 10px;
}

.member-block-display-group p {
  margin: 0;
  color: #102033;
  font-size: 0.9rem;
  font-weight: 900;
}

.member-block-display-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 12px;
}

.member-block-display-option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #e0e9f2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #263447;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.member-block-display-option:hover {
  border-color: rgba(15, 143, 149, 0.36);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.member-block-display-option.is-visible {
  border-color: rgba(15, 143, 149, 0.2);
  background: linear-gradient(180deg, #ffffff, #f7fffd);
}

.member-block-display-option input {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  appearance: none;
  border: 2px solid #b8c7d6;
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
}

.member-block-display-option input:checked {
  border-color: #0f8f95;
  background: #0f8f95;
}

.member-block-display-option input:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 5px;
  width: 4px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.member-block-display-option.is-locked {
  border-color: #d8e2ec;
  background: #eef3f7;
  color: #8291a4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.member-block-display-option.is-locked input {
  border-color: #c8d2de;
  background: #c8d2de;
  cursor: not-allowed;
}

.member-block-display-option.is-locked span {
  color: #8291a4;
}

.member-block-display-note {
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 3px solid rgba(15, 143, 149, 0.28);
  color: #66788d;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .member-block-display-summary {
    grid-template-columns: 1fr;
  }

  .member-block-display-actions {
    width: 100%;
  }

  .member-block-display-actions .member-inline-link {
    flex: 1 1 120px;
  }

  .member-block-display-options {
    grid-template-columns: 1fr;
  }
}

.member-section {
  display: grid;
  gap: 18px;
  padding: 26px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.member-section h2 {
  color: #102033;
  font-size: 21px;
  line-height: 1.25;
}

.member-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.member-panel-primary {
  border-color: #b8ded8;
  background: #f3fbf9;
}

.member-inline-form {
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 12px;
}

.member-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-list li {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid #e0e8f1;
  border-radius: 8px;
  background: #f9fbfd;
}

.member-list strong {
  color: #172033;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.member-profile-list li {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
}

.member-admin-duo {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.member-admin-grid {
  grid-template-columns: repeat(4, minmax(132px, 1fr)) 108px;
  gap: 14px;
}

.member-settings-grid {
  grid-template-columns: 1fr;
}

.member-code-grid {
  grid-template-columns: repeat(2, minmax(132px, 1fr));
}

.member-code-grid button {
  grid-column: span 2;
}

.member-admin-block {
  overflow: hidden;
}

.member-code-output {
  min-height: 98px;
  padding: 12px;
  resize: vertical;
}

.member-table-wrap {
  overflow: auto;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #fff;
}

.member-table-wrap table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.member-table-wrap th {
  padding: 14px 12px;
  background: #f6f8fb;
  color: #637083;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: left;
}

.member-table-wrap td {
  padding: 13px 12px;
  border-top: 1px solid #edf1f5;
  color: #253449;
  vertical-align: middle;
}

.member-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.member-feedback {
  min-height: 22px;
  margin: 0;
  color: #416176;
  font-weight: 800;
}

.member-feedback.is-error {
  color: #b42318;
}

.auth-panel-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin: 0;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #fff;
  color: #66778d;
  font-weight: 900;
}

.member-view-auth .member-app-shell {
  display: block;
  min-height: 100vh;
  padding: 36px;
}

.member-view-auth .member-sidebar,
.member-view-auth .member-topbar {
  display: none;
}

.member-view-auth .member-workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0;
}

.auth-dialog {
  width: min(500px, 100%);
  padding: 34px 38px 38px;
  border: 1px solid #dce5ee;
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 0%, rgba(226, 242, 236, 0.72), rgba(255, 255, 255, 0) 36%),
    #fff;
  box-shadow:
    0 28px 80px rgba(15, 23, 42, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-modal-backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
}

.auth-dialog-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-right: 34px;
}

.auth-dialog-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #dce5ee;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff, #f6fafc);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.auth-dialog-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.auth-dialog .auth-close {
  top: 18px;
  right: 18px;
  border-color: #dce5ee;
  background: #fff;
  color: #6f8197;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.auth-dialog .auth-close:hover {
  color: #0d7c88;
  transform: translateY(-1px);
}

.auth-dialog-head p,
.auth-dialog-head h2,
.auth-dialog-head span {
  margin: 0;
}

.auth-dialog-head p {
  color: #0d7c88;
  font-size: 0.72rem;
  font-weight: 950;
}

.auth-dialog h2 {
  color: #102033;
  font-size: 28px;
  letter-spacing: 0;
}

.auth-dialog-head span {
  display: block;
  margin-top: 7px;
  color: #718196;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.5;
}

.auth-dialog .auth-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  border-bottom: 1px solid #e1e7ee;
  border-radius: 0;
  background: transparent;
}

.auth-dialog .auth-tabs button {
  position: relative;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #66778d;
}

.auth-dialog .auth-tabs button.is-active {
  background: transparent;
  color: #0d7c88;
  box-shadow: none;
}

.auth-dialog .auth-tabs button.is-active::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  border-radius: 2px;
  background: #0d8f95;
}

.auth-dialog .auth-form {
  gap: 14px;
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 26px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6f8197;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.auth-remember input {
  width: 15px;
  height: 15px;
  accent-color: #0d8f95;
}

.auth-text-button,
.auth-back-login {
  border: 0;
  background: transparent;
  color: #0d7c88;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.auth-text-button:hover,
.auth-back-login:hover {
  color: #0f766e;
}

.auth-code-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.auth-mini-button {
  min-width: 96px;
  min-height: 44px;
  border: 1px solid rgba(18, 102, 103, 0.16);
  border-radius: 8px;
  background: rgba(239, 249, 246, 0.9);
  color: #0d7c88;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.auth-mini-button:disabled,
.auth-dialog .auth-field input:disabled,
.auth-dialog .auth-submit:disabled {
  border-color: #d8e0ea;
  background: #eef2f6;
  color: #8b98a8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.auth-code-feedback {
  margin: 0;
  color: #52647a;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45;
}

.auth-code-feedback.is-error {
  color: #c24132;
}

.auth-back-login {
  justify-self: center;
  min-height: 34px;
}

.auth-dialog .auth-field {
  gap: 9px;
  color: #415168;
  font-size: 0.86rem;
  font-weight: 900;
}

.auth-dialog .auth-field input {
  min-height: 44px;
  border-color: #cbd8e6;
  border-radius: 8px;
  background: #fff;
  color: #172033;
}

.auth-dialog .auth-submit {
  min-height: 44px;
  border-radius: 8px;
  background: #0f766e;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.18);
  transition:
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.auth-dialog .auth-submit:hover {
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.24);
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .member-app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .member-workspace {
    padding: 24px;
  }

  .member-metrics-spacious {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .member-admin-duo,
  .member-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .member-tasks-panel {
    grid-row: auto;
  }
}

@media (max-width: 860px) {
  .member-app-shell {
    display: block;
  }

  .member-sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  .member-sidebar-card {
    display: none;
  }

  .member-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-topbar,
  .member-hero,
  .member-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .member-topbar {
    gap: 14px;
  }

  .member-metrics-spacious,
  .member-admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-login-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .member-login-hero,
  .member-login-card,
  .member-hero,
  .member-section {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .member-view-auth .member-app-shell {
    padding: 14px;
  }

  .member-workspace {
    padding: 18px 14px 36px;
  }

  .member-sidebar-nav,
  .member-login-summary,
  .member-metrics-spacious,
  .member-admin-metrics,
  .member-admin-grid,
  .member-code-grid,
  .member-inline-form,
  .member-profile-list li {
    grid-template-columns: 1fr;
  }

  .member-code-grid button {
    grid-column: auto;
  }

  .member-login-hero h1,
  .member-hero h1 {
    font-size: 30px;
  }

  .member-tabs {
    grid-template-columns: 1fr;
  }

  .member-nav,
  .member-hero-actions {
    justify-content: flex-start;
  }
}

/* Reference-matched icon and card refinements */
.member-side-icon,
.member-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.member-side-icon {
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #b8d8e6;
}

.member-sidebar-nav a.is-active .member-side-icon,
.member-sidebar-nav a:hover .member-side-icon {
  background: rgba(20, 184, 166, 0.18);
  color: #fff;
}

.member-side-icon svg,
.member-icon svg,
.member-icon-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.member-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e7f7f5;
  color: #0f8f86;
}

.member-icon.is-award {
  background: #fff4cf;
  color: #d89916;
}

.member-icon.is-bag,
.member-icon.is-task {
  background: #e7f0ff;
  color: #2f74d0;
}

.member-icon.is-camera {
  background: #e9fbff;
  color: #0891b2;
}

.member-icon.is-lock,
.member-icon.is-shield {
  background: #ecfdf3;
  color: #16a36a;
}

.member-icon.is-server,
.member-icon.is-users {
  background: #eef2ff;
  color: #5367d5;
}

.member-icon.is-wallet,
.member-icon.is-key {
  background: #f3ecff;
  color: #8158d6;
}

.member-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.member-topbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d7e2ec;
  border-radius: 50%;
  background: #fff;
  color: #506176;
}

.member-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.member-login-summary .member-icon {
  margin-bottom: 16px;
  background: rgba(20, 184, 166, 0.2);
  color: #64ded2;
}

.member-login-hero {
  position: relative;
  overflow: hidden;
}

.member-login-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  opacity: 0.38;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0)),
    linear-gradient(90deg, transparent 0 6%, rgba(148, 213, 225, 0.16) 6% 8%, transparent 8% 16%, rgba(148, 213, 225, 0.14) 16% 19%, transparent 19% 29%, rgba(148, 213, 225, 0.18) 29% 32%, transparent 32% 43%, rgba(148, 213, 225, 0.13) 43% 45%, transparent 45% 58%, rgba(148, 213, 225, 0.17) 58% 61%, transparent 61% 72%, rgba(148, 213, 225, 0.13) 72% 76%, transparent 76% 100%),
    linear-gradient(to top, #03101c 0 32%, transparent 32%);
}

.member-login-hero > * {
  position: relative;
  z-index: 1;
}

.member-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.member-login-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff;
}

.member-login-footer {
  position: relative;
  z-index: 1;
  margin: 26px 0 0;
  color: #8fa4b8;
  font-size: 0.78rem;
  font-weight: 800;
}

.member-metrics-spacious,
.member-admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-metrics > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.member-metrics > div .member-icon {
  margin-bottom: 4px;
}

.member-metrics strong {
  margin-top: 0;
}

.member-dashboard-grid,
.member-bottom-grid,
.member-admin-duo,
.member-admin-table-grid,
.member-admin-insight-grid {
  display: grid;
  gap: 22px;
  align-items: start;
}

.member-dashboard-grid,
.member-bottom-grid {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
}

.member-admin-duo,
.member-admin-table-grid,
.member-admin-insight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-list li {
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
}

.member-list li .member-icon {
  grid-row: span 2;
}

.member-list li > strong,
.member-list li > span {
  grid-column: 2;
}

.member-list li > span:only-child {
  grid-column: 1 / -1;
}

.member-profile-list li {
  grid-template-columns: 38px 110px minmax(0, 1fr);
}

.member-profile-list li > strong,
.member-profile-list li > span {
  grid-column: auto;
}

.member-profile-list li .member-icon {
  grid-row: auto;
}

.member-password-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fbfd;
}

.member-password-form label {
  display: grid;
  gap: 7px;
  color: #52647a;
  font-size: 0.78rem;
  font-weight: 900;
}

.member-password-form input {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #d8e2eb;
  border-radius: 6px;
  background: #fff;
  color: #142235;
  font: inherit;
  font-weight: 800;
}

.member-password-form button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #0d7c88;
  border-radius: 6px;
  background: linear-gradient(135deg, #0f8f95, #0d7c88);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.member-password-feedback {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: #0d7c88;
  font-size: 0.78rem;
  font-weight: 900;
}

.member-password-feedback.is-error {
  color: #c24132;
}

@media (max-width: 900px) {
  .member-password-form {
    grid-template-columns: 1fr;
  }
}

.member-admin-table-grid .member-table-wrap table {
  min-width: 720px;
}

.member-admin-table-grid .member-section form {
  display: grid;
  gap: 16px;
}

.member-line-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(24px, 1fr));
  align-items: end;
  gap: 16px;
  min-height: 210px;
  padding: 22px 18px 16px;
  border: 1px solid #e2e9f1;
  border-radius: 8px;
  background:
    linear-gradient(to top, rgba(15, 118, 110, 0.06), rgba(15, 118, 110, 0)),
    repeating-linear-gradient(to top, transparent 0 41px, #e9eef5 42px);
}

.member-line-chart span {
  display: block;
  height: var(--h);
  min-height: 38px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #17a69b, #9be1da);
}

.member-donut-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid #e2e9f1;
  border-radius: 8px;
  background: #fff;
}

.member-donut {
  width: 154px;
  height: 154px;
  border-radius: 50%;
  background: conic-gradient(#2f74d0 0 40%, #14b8a6 40% 68%, #8b5cf6 68% 82%, #f97316 82% 92%, #94a3b8 92% 100%);
  box-shadow: inset 0 0 0 42px #fff;
}

.member-donut-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: #506176;
  font-size: 0.88rem;
  font-weight: 800;
  list-style: none;
}

.member-donut-panel li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.member-donut-panel i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f74d0;
}

.member-donut-panel li:nth-child(2) i {
  background: #14b8a6;
}

.member-donut-panel li:nth-child(3) i {
  background: #8b5cf6;
}

.member-donut-panel li:nth-child(4) i {
  background: #f97316;
}

@media (max-width: 1180px) {
  .member-dashboard-grid,
  .member-bottom-grid,
  .member-admin-duo,
  .member-admin-table-grid,
  .member-admin-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .member-topbar {
    grid-template-columns: 1fr;
  }

  .member-topbar-tools {
    justify-content: flex-start;
  }

  .member-metrics-spacious,
  .member-admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-donut-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .member-metrics-spacious,
  .member-admin-metrics,
  .member-profile-list li {
    grid-template-columns: 1fr;
  }

  .member-profile-list li > strong,
  .member-profile-list li > span {
    grid-column: 1;
  }
}

/* Precision pass: closer to the approved dashboard mockup */
.member-body {
  background: #f3f6fa;
  color: #1b2a3d;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.member-app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
}

.member-sidebar {
  gap: 24px;
  padding: 28px 14px 22px;
  background: linear-gradient(180deg, #092238 0%, #071827 100%);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.08);
}

.member-sidebar-brand {
  min-height: 46px;
  padding: 0 12px;
}

.member-sidebar-logo {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.member-sidebar-brand strong {
  font-size: 0.95rem;
}

.member-sidebar-brand small {
  color: #96adbf;
  font-size: 0.74rem;
}

.member-sidebar-nav {
  gap: 8px;
}

.member-sidebar-nav a {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 7px;
  color: #c2d1df;
  font-size: 0.9rem;
  font-weight: 800;
}

.member-sidebar-nav a.is-active {
  background: linear-gradient(135deg, #0f8f95, #0d7c88);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 128, 135, 0.22);
}

.member-sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.member-sidebar-nav a.is-active:hover {
  background: linear-gradient(135deg, #0f8f95, #0d7c88);
}

.member-side-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background: rgba(255, 255, 255, 0.09);
}

.member-sidebar-nav a.is-active .member-side-icon {
  background: rgba(255, 255, 255, 0.18);
}

.member-sidebar-card {
  display: none;
}

.member-sidebar-collapse {
  margin-top: auto;
}

.member-workspace {
  padding: 0 0 42px;
}

.member-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 70px;
  margin: 0;
  padding: 0 30px;
  border-bottom: 1px solid #e1e7ee;
  background: #fff;
}

.member-topbar h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.member-topbar-label {
  display: none;
}

.member-topbar-tools {
  gap: 12px;
}

.member-icon-button,
.member-avatar {
  width: 34px;
  height: 34px;
}

.member-icon-button {
  border: 0;
  background: transparent;
  color: #536478;
}

.member-avatar {
  border: 2px solid #e5edf4;
  background: linear-gradient(135deg, #0f766e, #24b2a7);
}

.member-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.member-avatar.has-image {
  overflow: hidden;
  background: #fff;
  color: transparent;
}

.member-root {
  gap: 18px;
  padding: 22px 30px 0;
}

.member-page-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}

.member-page-summary p {
  margin: 0;
  color: #66778a;
  font-size: 0.92rem;
  font-weight: 800;
}

.member-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.member-button,
.member-inline-link,
.member-mini-button,
.member-auth-form button,
.member-inline-form button,
.member-admin-grid button,
.member-section form > .member-button {
  min-height: 38px;
  border-radius: 6px;
}

.member-button,
.member-auth-form button,
.member-inline-form button,
.member-admin-grid button,
.member-section form > .member-button {
  background: linear-gradient(135deg, #0f8f95, #0d7c88);
  border-color: #0d7c88;
  box-shadow: 0 8px 18px rgba(15, 143, 149, 0.18);
}

.member-inline-link,
.member-mini-button,
.member-button.is-secondary {
  background: #f8fbfd;
  border-color: #d8e2eb;
  color: #0d7c88;
  box-shadow: none;
}

.member-metrics-spacious,
.member-admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.member-metrics > div,
.member-section {
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(19, 37, 55, 0.06);
}

.member-metrics > div {
  min-height: 130px;
  padding: 18px 18px 16px;
}

.member-metrics > div .member-icon {
  margin-bottom: 2px;
}

.member-metrics span {
  color: #4d5f73;
  font-size: 0.82rem;
}

.member-metrics strong {
  color: #142235;
  font-size: 1.62rem;
  font-weight: 900;
}

.member-metrics em {
  color: #8393a5;
  font-size: 0.78rem;
  font-weight: 800;
}

.member-metrics-spacious .member-quota-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  overflow: hidden;
  min-height: 142px;
  padding: 22px 26px;
  border: 1px solid rgba(216, 226, 235, 0.92);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.98)),
    #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
  isolation: isolate;
}

.member-metrics-spacious .member-quota-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--quota-a), rgba(255, 255, 255, 0) 58%);
}

.member-metrics-spacious .member-quota-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--quota-soft), rgba(255, 255, 255, 0) 52%);
}

.member-metrics-spacious .member-quota-copy {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.member-metrics-spacious .member-quota-title {
  color: #23354a;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
}

.member-metrics-spacious .member-quota-main {
  display: block;
  align-items: center;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.member-metrics-spacious .member-quota-icon {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--quota-a), var(--quota-b));
  color: #fff;
  box-shadow:
    0 12px 24px var(--quota-shadow),
    inset 0 -8px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.member-metrics-spacious .member-quota-icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
}

.member-metrics-spacious .member-quota-icon svg {
  position: relative;
  z-index: 1;
  width: 25px;
  height: 25px;
}

.member-metrics-spacious .member-quota-main strong {
  margin: 0;
  color: #08182b;
  font-size: 1.58rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.member-quota-main strong small {
  margin-left: 5px;
  color: #5c6f84;
  font-size: 0.78rem;
  font-weight: 900;
}

.member-metrics-spacious .member-quota-note {
  color: #75869a;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
}

.member-quota-card.is-level-free {
  --quota-a: #cbd5e1;
  --quota-b: #64748b;
  --quota-soft: rgba(243, 247, 251, 0.9);
  --quota-shadow: rgba(100, 116, 139, 0.2);
}

.member-quota-card.is-level-starter {
  --quota-a: #67e8f9;
  --quota-b: #0891b2;
  --quota-soft: rgba(236, 254, 255, 0.84);
  --quota-shadow: rgba(8, 145, 178, 0.22);
}

.member-quota-card.is-level-pro {
  --quota-a: #93c5fd;
  --quota-b: #2563eb;
  --quota-soft: rgba(232, 241, 255, 0.86);
  --quota-shadow: rgba(37, 99, 235, 0.24);
}

.member-quota-card.is-level-business,
.member-quota-card.is-gold {
  --quota-a: #fbbf24;
  --quota-b: #d97706;
  --quota-soft: rgba(255, 244, 214, 0.9);
  --quota-shadow: rgba(217, 119, 6, 0.3);
}

.member-quota-card.is-level-flagship {
  --quota-a: #c4b5fd;
  --quota-b: #7c3aed;
  --quota-soft: rgba(245, 243, 255, 0.88);
  --quota-shadow: rgba(124, 58, 237, 0.26);
}

.member-quota-card.is-blue {
  --quota-a: #60a5fa;
  --quota-b: #2563eb;
  --quota-soft: rgba(232, 241, 255, 0.82);
  --quota-shadow: rgba(37, 99, 235, 0.22);
}

.member-quota-card.is-green {
  --quota-a: #86efac;
  --quota-b: #16a34a;
  --quota-soft: rgba(231, 250, 239, 0.82);
  --quota-shadow: rgba(22, 163, 74, 0.22);
}

.member-quota-card.is-purple {
  --quota-a: #a78bfa;
  --quota-b: #7c3aed;
  --quota-soft: rgba(242, 237, 255, 0.82);
  --quota-shadow: rgba(124, 58, 237, 0.22);
}

.member-dashboard-grid {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
}

.member-bottom-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.member-admin-duo,
.member-admin-table-grid,
.member-admin-insight-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.member-section {
  gap: 16px;
  padding: 22px;
}

.member-section-head {
  align-items: flex-start;
}

.member-section-head p:not(.member-kicker) {
  margin: 8px 0 0;
  color: #7b8ba0;
  font-size: 0.84rem;
  font-weight: 700;
}

.member-kicker {
  margin-bottom: 6px;
  color: #506277;
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: none;
}

.member-section h2 {
  color: #142235;
  font-size: 1.12rem;
  font-weight: 900;
}

.member-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.member-list {
  gap: 8px;
}

.member-list li {
  min-height: 54px;
  padding: 10px 12px;
  border-color: #edf2f7;
  border-radius: 7px;
  background: #fbfcfe;
}

.member-list strong {
  color: #233348;
  font-size: 0.9rem;
}

.member-list span {
  color: #7c8ca0;
  font-size: 0.78rem;
}

.member-panel-primary {
  background: linear-gradient(180deg, #f2fbf8 0%, #fff 100%);
}

.member-page-activation .member-page-hero {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.member-page-activation .member-activation-panel {
  width: min(100%, 1180px);
  margin: 26px auto 0;
}

.member-activation-panel {
  position: relative;
  overflow: visible;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.member-activation-panel::before {
  display: none;
}

.member-activation-panel > * {
  position: relative;
  z-index: 1;
}

.member-activation-panel.is-activated {
  background: transparent;
}

.member-activation-head .member-icon {
  background: #e8f8f4;
  color: #0d7c88;
}

.member-activation-logic {
  display: grid;
  width: 100%;
  max-width: none;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(190, 217, 226, 0.72);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 12%, rgba(15, 143, 149, 0.12), transparent 32%),
    linear-gradient(135deg, #effcf8 0%, #ffffff 58%, #f5fbfd 100%);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
}

.member-activation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 18px;
  align-items: stretch;
}

.member-activation-current,
.member-activation-upgrade,
.member-activation-summary-card {
  border: 1px solid #dce8f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.member-activation-current {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  align-content: center;
  min-height: 192px;
  padding: 30px;
  background:
    radial-gradient(circle at 90% 12%, rgba(15, 143, 149, 0.1), transparent 30%),
    linear-gradient(135deg, #f3fbf8, #ffffff 68%);
}

.member-activation-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.member-activation-summary-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 253, 0.88));
}

.member-activation-summary-icon {
  display: grid;
  place-items: center;
}

.member-activation-summary-icon .member-icon,
.member-activation-summary-icon .member-quota-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.member-activation-summary-card span,
.member-activation-summary-card strong,
.member-activation-summary-card em {
  display: block;
}

.member-activation-summary-card span {
  color: #6b7c92;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.member-activation-summary-card strong {
  margin-top: 5px;
  color: #102033;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.25;
}

.member-activation-summary-card em {
  margin-top: 5px;
  color: #718196;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
}

.member-activation-summary-card.is-expiry .member-icon {
  color: #0f8f95;
  background: #e7fbf8;
}

.member-activation-summary-card.is-single .member-quota-icon {
  color: #16a36e;
  background: #e7f8ee;
}

.member-activation-summary-card.is-daily .member-quota-icon {
  color: #7c3aed;
  background: #f1e8ff;
}

.member-activation-summary-card.is-level-free .member-quota-icon,
.member-activation-summary-card.is-level-starter .member-quota-icon {
  color: #0f8f95;
  background: #e7fbf8;
}

.member-activation-summary-card.is-level-pro .member-quota-icon {
  color: #2563eb;
  background: #eaf2ff;
}

.member-activation-summary-card.is-level-business .member-quota-icon {
  color: #d97706;
  background: #fff4d8;
}

.member-activation-summary-card.is-level-flagship .member-quota-icon {
  color: #7c3aed;
  background: #f1e8ff;
}

.member-activation-card-icon {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
}

.member-activation-card-icon .member-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #0f8f95;
  background: #e7fbf8;
  box-shadow:
    inset 0 0 0 1px rgba(15, 143, 149, 0.08),
    0 12px 24px rgba(15, 143, 149, 0.1);
}

.member-activation-card-icon .member-icon svg {
  width: 23px;
  height: 23px;
}

.member-activation-panel.is-pending .member-activation-card-icon .member-icon {
  color: #7c3aed;
  background: #f4eaff;
  box-shadow:
    inset 0 0 0 1px rgba(124, 58, 237, 0.08),
    0 12px 24px rgba(124, 58, 237, 0.1);
}

.member-activation-state {
  min-width: 0;
}

.member-activation-current strong,
.member-activation-current em,
.member-activation-status {
  display: block;
}

.member-activation-status {
  width: max-content;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 900;
}

.member-activation-panel.is-pending .member-activation-status {
  background: #f3e8ff;
  color: #7c3aed;
}

.member-activation-current strong {
  color: #142235;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.35;
}

.member-activation-current em {
  margin-top: 7px;
  color: #718196;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
}

.member-activation-success {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 10px;
  background: linear-gradient(135deg, #f0fdfa, #ffffff 72%);
  box-shadow: 0 14px 30px rgba(13, 124, 136, 0.1);
  overflow: hidden;
  animation: memberActivationSuccessIn 520ms ease both;
}

.member-activation-success-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f9f95, #18b6a3);
  color: #fff;
  box-shadow: 0 12px 26px rgba(13, 124, 136, 0.22);
  animation: memberSuccessPop 620ms cubic-bezier(.2, .9, .2, 1.2) both;
}

.member-activation-success-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.member-activation-success-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
}

.member-activation-success-copy strong {
  color: #102033;
  font-size: 0.95rem;
  font-weight: 900;
}

.member-activation-success-copy em {
  color: #607489;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}

.member-activation-success-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.member-activation-success-burst i {
  position: absolute;
  left: 32px;
  top: 27px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c1ad;
  opacity: 0;
  animation: memberActivationSpark 820ms ease-out both;
}

.member-activation-success-burst i:nth-child(1) {
  --x: -18px;
  --y: -16px;
  background: #0d8f95;
}

.member-activation-success-burst i:nth-child(2) {
  --x: 38px;
  --y: -12px;
  background: #7dd3fc;
}

.member-activation-success-burst i:nth-child(3) {
  --x: -12px;
  --y: 34px;
  background: #a7f3d0;
}

.member-activation-success-burst i:nth-child(4) {
  --x: 42px;
  --y: 30px;
  background: #99f6e4;
}

.member-activation-upgrade {
  display: grid;
  grid-column: 1 / -1;
  gap: 16px;
  padding: 22px;
  background:
    radial-gradient(circle at 92% 10%, rgba(15, 143, 149, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.86);
}

.member-activation-upgrade[hidden] {
  display: none;
}

.member-activation-upgrade-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.member-activation-upgrade-head .member-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #0f8f95;
  background: #e7fbf8;
}

.member-activation-upgrade-head span {
  display: block;
  color: #718196;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.member-activation-upgrade-head strong {
  display: block;
  margin-top: 3px;
  color: #102033;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.2;
}

.member-activation-upgrade-head p {
  margin: 6px 0 0;
  color: #718196;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.member-activation-form {
  grid-template-columns: minmax(240px, 1fr) 122px;
  max-width: none;
  gap: 12px;
}

.member-activation-form input {
  min-height: 46px;
  text-transform: uppercase;
}

.member-activation-form button {
  min-height: 46px;
}

.member-activation-upgrade-button {
  grid-column: 2;
  justify-self: start;
  margin-top: 2px;
  min-width: 98px;
  white-space: nowrap;
}

.member-activation-cancel,
.member-activation-help-button {
  justify-self: start;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0d7c88;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none;
}

.member-activation-help-wrap {
  position: relative;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin: 0;
}

.member-activation-upgrade-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 22px;
  flex-wrap: wrap;
}

.member-activation-help-button {
  gap: 4px;
  letter-spacing: 0;
}

.member-activation-help-button::after {
  content: "?";
  display: inline-grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(13, 124, 136, 0.68);
  border-radius: 50%;
  color: #0d7c88;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(0);
}

.member-activation-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 5;
  width: max-content;
  max-width: 240px;
  padding: 11px 13px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f5fffc);
  color: #31445a;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  visibility: hidden;
}

.member-activation-tooltip::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(15, 118, 110, 0.18);
  border-left: 1px solid rgba(15, 118, 110, 0.18);
  background: #f5fffc;
  transform: rotate(45deg);
}

.member-activation-help-wrap:hover .member-activation-tooltip,
.member-activation-help-wrap:focus-within .member-activation-tooltip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.member-activation-cancel {
  margin: 0;
}

.member-activation-feedback {
  margin: 0;
}

.member-activation-panel > .member-feedback:empty {
  display: none;
}

@media (max-width: 560px) {
  .member-activation-grid,
  .member-activation-current,
  .member-activation-form {
    grid-template-columns: 1fr;
  }

  .member-activation-current {
    justify-items: start;
  }

  .member-activation-card-icon,
  .member-activation-upgrade-button {
    grid-column: auto;
    grid-row: auto;
  }

  .member-activation-summary {
    grid-template-columns: 1fr;
  }

  .member-activation-upgrade-button {
    width: 100%;
  }
}

.member-auth-form input,
.member-inline-form input,
.member-admin-grid input,
.member-admin-grid select,
.member-table-wrap input,
.member-table-wrap select,
.member-code-output {
  min-height: 40px;
  border-color: #dce4ec;
  border-radius: 6px;
  background: #fff;
}

.member-code-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-settings-grid {
  grid-template-columns: 1fr;
}

.member-code-output {
  min-height: 72px;
}

.member-table-wrap {
  border-color: #e2e8f0;
  border-radius: 7px;
}

.member-table-wrap th {
  padding: 12px;
  background: #f7f9fc;
  color: #5e6f82;
}

.member-table-wrap td {
  padding: 11px 12px;
}

.member-line-chart,
.member-donut-panel {
  min-height: 188px;
  border-color: #edf2f7;
  background-color: #fbfdff;
}

.member-donut-panel {
  grid-template-columns: 156px minmax(0, 1fr);
}

.member-donut {
  width: 132px;
  height: 132px;
  box-shadow: inset 0 0 0 36px #fff;
}

.member-view-auth .member-app-shell {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 48px 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(15, 118, 110, 0.12), transparent 30%),
    linear-gradient(135deg, #eaf1f8, #f8fbfd);
}

.member-view-auth .member-workspace {
  width: min(1180px, 100%);
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-view-auth .member-root {
  width: 100%;
  padding: 0;
}

.member-login-layout {
  position: relative;
  width: 100%;
  min-height: 760px;
  overflow: hidden;
  grid-template-columns: 47% 53%;
  gap: 0;
  border: 1px solid #d7e1eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(17, 35, 52, 0.18);
}

.member-login-hero,
.member-login-card {
  border: 0;
  box-shadow: none;
}

.member-login-hero {
  border-radius: 16px 0 0 16px;
}

.member-login-card {
  border-radius: 0 16px 16px 0;
}

.member-login-hero {
  padding: 48px 54px 42px;
  background: linear-gradient(180deg, #092238 0%, #061622 100%);
  justify-content: flex-start;
}

.member-login-brand {
  margin-bottom: 74px;
}

.member-login-hero h1 {
  max-width: 360px;
  font-size: 2.16rem;
}

.member-login-hero .member-copy {
  max-width: 350px;
  font-size: 0.96rem;
}

.member-login-summary {
  grid-template-columns: 1fr;
  width: min(100%, 360px);
  gap: 14px;
  margin-top: 34px;
  padding-top: 0;
  border-top: 0;
}

.member-login-summary div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 66px;
  padding: 9px 12px;
  column-gap: 14px;
  align-items: center;
  justify-items: start;
  border: 1px solid rgba(125, 211, 218, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.member-login-summary .member-icon {
  width: 38px;
  height: 38px;
  grid-row: 1 / span 3;
  grid-column: 1;
  margin-bottom: 0;
}

.member-login-summary span,
.member-login-summary strong,
.member-login-summary em {
  grid-column: 2;
  justify-self: start;
}

.member-login-summary span {
  margin-bottom: 2px;
}

.member-login-summary strong {
  margin-top: 0;
  font-size: 0.96rem;
}

.member-login-summary em {
  margin-top: 2px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.member-login-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-content: center;
  padding: 54px 72px;
}

.member-login-home-link {
  position: absolute;
  top: 24px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6f8197;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.member-login-home-link:hover {
  color: #0d7c88;
}

.member-login-top-panel {
  display: grid;
  width: min(100%, 440px);
  justify-self: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.member-login-status-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border: 1px solid #e2eaf2;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff, #f6fafc);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.member-login-status-card .member-icon {
  width: 34px;
  height: 34px;
}

.member-login-status-card strong,
.member-login-status-card span {
  display: block;
}

.member-login-status-card strong {
  color: #142235;
  font-size: 0.9rem;
  font-weight: 900;
}

.member-login-status-card span {
  margin-top: 4px;
  color: #718196;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.member-login-card-head {
  width: min(100%, 420px);
  justify-self: center;
  margin-bottom: 28px;
  text-align: center;
}

.member-login-card-head h2 {
  font-size: 1.7rem;
}

.member-tabs {
  width: min(100%, 420px);
  justify-self: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
  border-bottom: 1px solid #e1e7ee;
  border-radius: 0;
  background: transparent;
}

.member-tabs.is-single {
  grid-template-columns: 1fr;
}

.member-tabs button {
  position: relative;
  border-radius: 0;
  color: #7b8ba0;
}

.member-tabs button.is-active {
  background: transparent;
  color: #0d7c88;
  box-shadow: none;
}

.member-tabs button.is-active::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: -5px;
  left: 20px;
  height: 2px;
  border-radius: 2px;
  background: #0d8f95;
}

.member-auth-form {
  width: min(100%, 420px);
  justify-self: center;
  gap: 14px;
}

.member-auth-form label {
  gap: 9px;
}

.member-auth-form input {
  min-height: 44px;
}

.member-code-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.member-code-field .member-mini-button {
  min-width: 96px;
  min-height: 44px;
  white-space: nowrap;
}

.member-code-field .member-mini-button:disabled {
  border-color: #d8e0ea;
  background: #eef2f6;
  color: #8b98a8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.member-auth-form input:disabled,
.member-auth-form button:disabled {
  border-color: #d8e0ea;
  background: #eef2f6;
  color: #8b98a8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.member-code-feedback {
  margin: 0;
  color: #52647a;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45;
}

.member-code-feedback.is-error {
  color: #c24132;
}

.member-register-success {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 30px 22px;
  border: 1px solid #d7eee9;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fffd, #effbf8);
  text-align: center;
  overflow: hidden;
}

.member-success-check {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f9f95, #18b6a3);
  color: #fff;
  box-shadow: 0 18px 38px rgba(13, 124, 136, 0.24);
  animation: memberSuccessPop 620ms cubic-bezier(.2, .9, .2, 1.2) both;
}

.member-success-check svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.member-success-burst {
  position: absolute;
  inset: 40px 0 auto;
  z-index: 0;
  display: block;
  height: 120px;
  pointer-events: none;
}

.member-success-burst i {
  position: absolute;
  left: 50%;
  top: 36px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c1ad;
  opacity: 0;
  animation: memberSuccessBurst 820ms ease-out both;
}

.member-success-burst i:nth-child(1) {
  --x: -96px;
  --y: -18px;
  background: #0d8f95;
}

.member-success-burst i:nth-child(2) {
  --x: 96px;
  --y: -20px;
  background: #7dd3fc;
}

.member-success-burst i:nth-child(3) {
  --x: -72px;
  --y: 56px;
  background: #a7f3d0;
}

.member-success-burst i:nth-child(4) {
  --x: 72px;
  --y: 58px;
  background: #99f6e4;
}

.member-register-success strong {
  position: relative;
  z-index: 1;
  color: #102033;
  font-size: 1.1rem;
  font-weight: 900;
}

.member-register-success span:last-child {
  position: relative;
  z-index: 1;
  max-width: 300px;
  color: #66778d;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.7;
}

@keyframes memberSuccessPop {
  0% {
    transform: scale(.72);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes memberSuccessBurst {
  0% {
    transform: translate(-50%, 0) scale(.4);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--x)), var(--y)) scale(1);
    opacity: 0;
  }
}

@keyframes memberActivationSuccessIn {
  0% {
    transform: translateY(-6px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes memberActivationSpark {
  0% {
    transform: translate(0, 0) scale(.4);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(1);
    opacity: 0;
  }
}

.member-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-auth-form .member-text-button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0d7c88;
  box-shadow: none;
}

.member-remember {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 7px !important;
  color: #7b8ba0 !important;
  font-size: 0.82rem !important;
}

.member-remember input {
  width: 14px;
  min-height: 14px;
}

.member-text-button {
  border: 0;
  background: transparent;
  color: #0d7c88;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.member-auth-extra {
  width: min(100%, 420px);
  justify-self: center;
  margin-top: 18px;
}

.member-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
  color: #9aa8b7;
  font-size: 0.78rem;
  font-weight: 800;
}

.member-auth-divider::before,
.member-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e1e7ee;
}

.member-oauth-button {
  width: 100%;
  min-height: 40px;
  border: 1px solid #dce4ec;
  border-radius: 6px;
  background: #fff;
  color: #0d7c88;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .member-app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .member-dashboard-grid,
  .member-bottom-grid,
  .member-admin-duo,
  .member-admin-table-grid,
  .member-admin-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .member-app-shell {
    display: block;
  }

  .member-sidebar {
    position: static;
    height: auto;
  }

  .member-topbar {
    grid-template-columns: 1fr;
    height: auto;
    padding: 18px;
  }

  .member-root {
    padding: 18px;
  }

  .member-metrics-spacious,
  .member-admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-login-layout {
    grid-template-columns: 1fr;
  }

  .member-login-brand {
    margin-bottom: 42px;
  }
}

@media (max-width: 560px) {
  .member-view-auth .member-app-shell {
    padding: 12px;
  }

  .member-login-card,
  .member-login-hero {
    padding: 28px 22px;
  }

  .member-login-top-panel {
    grid-template-columns: 1fr;
  }

  .member-code-field {
    grid-template-columns: 1fr;
  }

  .member-login-summary {
    margin-top: 26px;
  }

  .member-page-summary,
  .member-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .member-metrics-spacious,
  .member-admin-metrics,
  .member-code-grid,
  .member-inline-form {
    grid-template-columns: 1fr;
  }
}

/* Force all account workspace glyphs to sit exactly in their icon wells. */
.member-icon,
.member-side-icon,
.member-icon-button {
  position: relative;
}

.member-icon > svg,
.member-side-icon > svg,
.member-icon-button > svg {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  margin: 0;
  transform: translate(-50%, -50%);
}

.member-icon > svg,
.member-side-icon > svg {
  width: 16px;
  height: 16px;
}

.member-icon-button > svg {
  width: 17px;
  height: 17px;
}

/* Polished account email header and avatar menu */
.member-topbar-label {
  display: block;
  margin: 0 0 5px;
  color: #7b8ba0;
  font-size: 0.76rem;
  font-weight: 900;
}

.member-topbar h1 {
  max-width: min(720px, 62vw);
  overflow: hidden;
  color: #142235;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-account-popover {
  position: relative;
}

.member-topbar-popover {
  position: relative;
}

.member-avatar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 54px;
  height: 48px;
  padding: 4px;
  border: 1px solid #dce5ee;
  border-radius: 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(15, 143, 149, 0.25), rgba(255, 255, 255, 0)) border-box;
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.16);
  cursor: pointer;
}

.member-avatar-button::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 6px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.member-avatar-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(15, 118, 110, 0.22);
}

.member-avatar-button:focus-visible {
  outline: 3px solid rgba(15, 143, 149, 0.22);
  outline-offset: 3px;
}

.member-avatar-button .member-avatar,
.member-account-menu .member-avatar {
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.24);
}

.member-avatar-button .member-avatar {
  width: 38px;
  height: 38px;
  border-color: #fff;
}

.member-account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  width: 260px;
  padding: 12px;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
}

.member-account-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 15px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #dce5ee;
  border-left: 1px solid #dce5ee;
  background: #fff;
  transform: rotate(45deg);
}

.member-account-menu-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 8px 12px;
  border-bottom: 1px solid #edf2f7;
}

.member-account-menu-head strong,
.member-account-menu-head small {
  display: block;
  min-width: 0;
}

.member-account-menu-head strong {
  overflow: hidden;
  color: #142235;
  font-size: 0.92rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-account-menu-head small {
  margin-top: 3px;
  color: #7b8ba0;
  font-size: 0.78rem;
  font-weight: 800;
}

.member-menu-action,
.member-menu-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  background: #fff7f7;
  color: #b42318;
  font-weight: 900;
  cursor: pointer;
}

.member-menu-action {
  border-color: #d8e2eb;
  background: #f8fbfd;
  color: #0d7c88;
}

.member-menu-action:hover {
  background: #eef8f8;
}

.member-menu-logout:hover {
  background: #feecec;
}

.member-icon-button.is-active {
  background: #eef8f8;
  color: #0d7c88;
}

.member-tool-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  z-index: 20;
  width: 320px;
  padding: 14px;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
}

.member-tool-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 18px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #dce5ee;
  border-left: 1px solid #dce5ee;
  background: #fff;
  transform: rotate(45deg);
}

.member-tool-menu-head {
  display: grid;
  gap: 4px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid #edf2f7;
}

.member-tool-menu-head strong {
  color: #142235;
  font-size: 0.98rem;
  font-weight: 900;
}

.member-tool-menu-head small {
  color: #7b8ba0;
  font-size: 0.78rem;
  font-weight: 800;
}

.member-tool-button {
  display: inline-flex;
  position: relative;
  width: auto;
  min-width: 82px;
  height: 38px;
  padding: 0 13px;
  gap: 7px;
  border: 1px solid #dce5ee;
  border-radius: 11px;
  background: #f8fbfd;
  color: #4f6074;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  cursor: pointer;
}

.member-tool-button:hover,
.member-tool-button.is-active {
  border-color: #b9dedc;
  background: #eef9f8;
  color: #0d7c88;
}

.member-tool-button > svg {
  position: static;
  width: 16px;
  height: 16px;
  transform: none;
}

.member-tool-button > span {
  color: inherit;
  font-size: 0.84rem;
  font-weight: 900;
}

.member-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 16px 20px;
  text-align: center;
}

.member-empty-icon {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #eef8f8;
  color: #0d7c88;
}

.member-empty-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  fill: currentColor;
  transform: translate(-50%, -50%);
}

.member-empty-state strong {
  color: #142235;
  font-size: 0.95rem;
  font-weight: 900;
}

.member-empty-state p {
  max-width: 220px;
  margin: 0;
  color: #7b8ba0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.7;
}

.member-help-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.member-help-list li {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #fbfdff;
}

.member-help-list strong {
  color: #142235;
  font-size: 0.86rem;
  font-weight: 900;
}

.member-help-list span {
  color: #718196;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.55;
}

.member-help-admin {
  display: none !important;
}

.member-is-admin .member-help-admin {
  display: grid !important;
}

.member-view-admin .member-sidebar {
  background: linear-gradient(180deg, #101827 0%, #0b1220 100%);
}

.member-view-admin .member-root {
  padding-top: 24px;
}

.admin-console {
  display: grid;
  gap: 20px;
}

.admin-console-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid #dce7f0;
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 16%, rgba(14, 165, 233, 0.13), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: 0 16px 42px rgba(19, 37, 55, 0.07);
}

.admin-console-hero h2 {
  margin: 0;
  color: #102033;
  font-size: 1.45rem;
  font-weight: 900;
}

.admin-console-hero p:not(.member-kicker) {
  max-width: 580px;
  margin: 9px 0 0;
  color: #61738a;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.7;
}

.admin-console-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-metrics-grid > div {
  position: relative;
  min-height: 136px;
  overflow: hidden;
}

.admin-metrics-grid > div::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, var(--admin-soft, rgba(241, 245, 249, 0.72)), transparent 58%);
}

.admin-metrics-grid > div > * {
  position: relative;
  z-index: 1;
}

.admin-metric-card.is-users {
  --admin-soft: rgba(219, 234, 254, 0.7);
}

.admin-metric-card.is-tasks {
  --admin-soft: rgba(204, 251, 241, 0.7);
}

.admin-metric-card.is-codes {
  --admin-soft: rgba(254, 243, 199, 0.7);
}

.admin-metric-card.is-snapshots {
  --admin-soft: rgba(237, 233, 254, 0.72);
}

.admin-section-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}

.admin-section-grid-primary {
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.92fr);
}

.admin-panel {
  gap: 16px;
  border-radius: 10px;
}

.admin-panel .member-section-head {
  align-items: flex-start;
}

.admin-panel .member-section-head p:not(.member-kicker) {
  margin-top: 7px;
  max-width: 560px;
  color: #718196;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.65;
}

.admin-panel-codes {
  background: linear-gradient(180deg, #ffffff 0%, #f8fffd 100%);
}

.admin-subsection-title {
  color: #40556c;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-compact-list {
  gap: 8px;
}

.admin-compact-list li {
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbfdff;
}

.admin-compact-list .member-icon {
  width: 32px;
  height: 32px;
}

.admin-empty-row {
  padding: 14px;
  border: 1px dashed #d5e1ec;
  border-radius: 8px;
  color: #718196;
  font-size: 0.84rem;
  font-weight: 800;
  background: #fbfdff;
}

.admin-runtime-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-runtime-board div {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #e1e9f1;
  border-radius: 9px;
  background: linear-gradient(180deg, #fbfdff, #f6f9fc);
}

.admin-runtime-board span {
  color: #607489;
  font-size: 0.8rem;
  font-weight: 900;
}

.admin-runtime-board strong {
  color: #102033;
  font-size: 1.45rem;
  font-weight: 950;
}

.admin-log-panel {
  margin-bottom: 20px;
}

/* Member workspace page split and charts */
.member-page {
  display: grid;
  gap: 18px;
}

.member-page-tasks,
.member-page-snapshots,
.member-page-security {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.member-page-tasks .member-tasks-panel-head {
  grid-template-columns: 1fr;
}

.member-page-hero {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(15, 143, 149, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7fbfd 100%);
}

.member-page-hero h2 {
  margin: 0;
  font-size: 1.38rem;
  letter-spacing: 0;
}

.member-page-hero p:not(.member-kicker) {
  max-width: 560px;
  margin: 8px 0 0;
  color: #66778a;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.65;
}

.member-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(340px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.member-home-insight-grid,
.member-billing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.member-chart-panel {
  min-height: 360px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(15, 143, 149, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.member-chart-total {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d9e7ef;
  border-radius: 999px;
  background: linear-gradient(180deg, #fbfeff, #f2f8fb);
  color: #0d7c88;
  font-size: 0.9rem;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.member-bar-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--member-chart-days, 14), minmax(0, 1fr));
  gap: 7px;
  align-items: end;
  min-height: 245px;
  margin-top: 16px;
  padding: 42px 14px 10px;
  border: 1px solid #edf3f7;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(247, 251, 253, 0.92), rgba(255, 255, 255, 0.24)),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.09) 0 1px, transparent 1px 46px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -24px 60px rgba(15, 143, 149, 0.035);
}

.member-chart-average-line {
  position: absolute;
  left: 16px;
  right: 16px;
  top: var(--average-top, 42%);
  z-index: 12;
  border-top: 1px dashed rgba(13, 124, 136, 0.32);
  pointer-events: none;
}

.member-chart-average-line em {
  position: absolute;
  right: 0;
  top: -13px;
  padding: 3px 8px;
  border: 1px solid rgba(13, 124, 136, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: #0d7c88;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}

.member-chart-bar-item {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 22px 168px 22px;
  gap: 7px;
  min-width: 0;
  text-align: center;
}

.member-chart-bar-value {
  color: #24425d;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-chart-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 72%;
  justify-self: center;
  min-width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(229, 237, 244, 0.54), rgba(246, 249, 252, 0.74));
  box-shadow:
    inset 0 1px 2px rgba(51, 65, 85, 0.08),
    0 8px 18px rgba(15, 23, 42, 0.025);
  overflow: hidden;
}

.member-chart-bar-track i {
  display: block;
  width: 100%;
  min-height: 6px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 38%),
    linear-gradient(180deg, #48ddd0 0%, #0f9da1 58%, #08717a 100%);
  box-shadow:
    0 10px 18px rgba(15, 143, 149, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.member-chart-bar-item.is-peak .member-chart-bar-track i,
.member-chart-bar-item.is-today .member-chart-bar-track i {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 36%),
    linear-gradient(180deg, #67e8f9 0%, #0f8f95 52%, #065f68 100%);
  box-shadow:
    0 12px 24px rgba(15, 143, 149, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.member-chart-bar-item.is-today .member-chart-bar-track {
  outline: 2px solid rgba(15, 143, 149, 0.1);
  outline-offset: 3px;
}

.member-chart-bar-item > em,
.member-line-chart-labels span {
  color: #8b9aae;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.member-line-chart-card {
  --member-chart-hover-inset-top: 12px;
  --member-chart-hover-inset-right: 12px;
  --member-chart-hover-inset-bottom: 12px;
  --member-chart-hover-inset-left: 12px;
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #e6edf4;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff, #f7fafc);
  overflow: visible;
}

.member-line-chart-card.is-compact {
  --member-chart-hover-inset-top: 10px;
  --member-chart-hover-inset-right: 10px;
  --member-chart-hover-inset-bottom: 8px;
  --member-chart-hover-inset-left: 10px;
  margin-top: 10px;
  padding: 10px 10px 8px;
  border-color: #edf3f7;
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(246, 250, 252, 0.98)),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.08) 0 1px, transparent 1px 34px);
}

.member-line-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.member-line-chart-stage {
  position: relative;
  display: block;
}

.member-line-chart-grid {
  fill: none;
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 1;
}

.member-line-chart-axis {
  stroke: rgba(148, 163, 184, 0.32);
  stroke-width: 1.2;
}

.member-line-chart-y-label,
.member-line-chart-x-label {
  fill: #637b98;
  font-size: 12px;
  font-weight: 850;
}

.member-line-chart-y-label {
  text-anchor: end;
}

.member-line-chart-x-label {
  text-anchor: middle;
}

.member-line-chart-area {
  fill: url(#memberTaskLineFill);
}

.member-line-chart-stroke {
  fill: none;
  stroke: #0f8f95;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
  filter: drop-shadow(0 8px 12px rgba(15, 143, 149, 0.14));
}

.member-line-chart-dot {
  fill: #ffffff;
  stroke: #0f8f95;
  stroke-width: 3;
}

.member-line-chart-dot.is-peak,
.member-line-chart-dot.is-latest {
  fill: #0f8f95;
  stroke: #dff8f7;
  stroke-width: 3.4;
}

.member-line-chart-hovers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.member-line-chart-hit {
  position: absolute;
  z-index: 10;
  width: var(--member-line-hit-size, 18px);
  height: var(--member-line-hit-size, 18px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  outline: none;
}

.member-line-chart-hit:hover,
.member-line-chart-hit:focus-visible {
  z-index: 24;
}

.member-line-chart-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(50% + 6px);
  display: grid;
  gap: 4px;
  min-width: 132px;
  padding: 9px 11px;
  border: 1px solid rgba(208, 226, 234, 0.95);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 12%, rgba(15, 143, 149, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 150ms ease, transform 150ms ease;
  pointer-events: none;
}

.member-line-chart-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(208, 226, 234, 0.95);
  border-bottom: 1px solid rgba(208, 226, 234, 0.95);
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(-50%) rotate(45deg);
}

.member-line-chart-tooltip strong {
  color: #0d8a91;
  font-size: 0.82rem;
  font-weight: 950;
}

.member-line-chart-tooltip span {
  color: #6d7f94;
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
}

.member-line-chart-tooltip em {
  color: #13263a;
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 950;
}

.member-line-chart-hit:hover .member-line-chart-tooltip,
.member-line-chart-hit:focus-visible .member-line-chart-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.member-line-chart-floating-tooltip {
  --member-line-tooltip-shift: 0px;
  --member-line-tooltip-arrow-shift: 0px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4200;
  display: grid;
  gap: 4px;
  min-width: 132px;
  padding: 9px 11px;
  border: 1px solid rgba(208, 226, 234, 0.95);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 12%, rgba(15, 143, 149, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  opacity: 0;
  transform: translate(calc(-50% + var(--member-line-tooltip-shift)), calc(-100% - 14px));
  transition: opacity 150ms ease;
  pointer-events: none;
}

.member-line-chart-floating-tooltip.is-visible {
  opacity: 1;
}

.member-line-chart-floating-tooltip::after {
  content: "";
  position: absolute;
  left: calc(50% + var(--member-line-tooltip-arrow-shift) - 5px);
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(208, 226, 234, 0.95);
  border-bottom: 1px solid rgba(208, 226, 234, 0.95);
  background: rgba(255, 255, 255, 0.98);
  transform: rotate(45deg);
}

.member-line-chart-floating-tooltip strong {
  color: #0d8a91;
  font-size: 0.82rem;
  font-weight: 950;
}

.member-line-chart-floating-tooltip span {
  color: #6d7f94;
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
}

.member-line-chart-floating-tooltip em {
  color: #13263a;
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 950;
}

.member-usage-progress-card {
  align-content: start;
}

.member-quota-focus-card {
  min-height: 360px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  background:
    radial-gradient(circle at 80% 12%, rgba(59, 130, 246, 0.11), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}

.member-quota-focus-body {
  display: grid;
  grid-template-columns: minmax(132px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.member-usage-ring {
  width: 128px;
  aspect-ratio: 1;
  margin: 4px auto 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 55%, transparent 56%),
    conic-gradient(#0f8f95 var(--member-usage-percent), #e7eef4 0);
  box-shadow:
    inset 0 0 0 1px rgba(15, 143, 149, 0.08),
    0 16px 34px rgba(15, 23, 42, 0.08);
}

.member-usage-ring-large {
  width: 158px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 56%, transparent 57%),
    conic-gradient(#0f8f95 var(--member-usage-percent), #e7eef4 0);
}

.member-usage-ring-large strong {
  font-size: 1.55rem;
}

.member-quota-focus-stats {
  display: grid;
  gap: 10px;
}

.member-quota-focus-stats div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e4edf4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.member-quota-focus-stats span {
  color: #718196;
  font-size: 0.76rem;
  font-weight: 900;
}

.member-quota-focus-stats strong {
  color: #102033;
  font-size: 1rem;
  font-weight: 950;
}

.member-usage-ring strong {
  color: #102033;
  font-size: 1.34rem;
  font-weight: 950;
  line-height: 1;
}

.member-usage-ring span {
  margin-top: -34px;
  color: #708196;
  font-size: 0.74rem;
  font-weight: 850;
}

.member-usage-progress-line {
  height: 10px;
  border-radius: 999px;
  background: #e8eef4;
  overflow: hidden;
}

.member-usage-progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38d2c5, #0f8f95);
}

.member-usage-progress-foot {
  margin: 0;
  color: #718196;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.55;
}

.member-status-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.member-task-trend-card,
.member-task-status-card,
.member-data-sink-card {
  min-height: 260px;
  align-content: start;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.member-status-pill {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e4edf4;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff, #f7fafc);
}

.member-status-pill span {
  color: #66778a;
  font-size: 0.78rem;
  font-weight: 900;
}

.member-status-pill strong {
  color: #102033;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
}

.member-status-pill.is-completed {
  border-color: rgba(46, 160, 102, 0.2);
  background: linear-gradient(180deg, #f7fffb, #f0fbf5);
}

.member-status-pill.is-running,
.member-status-pill.is-queued {
  border-color: rgba(15, 143, 149, 0.18);
  background: linear-gradient(180deg, #f7ffff, #effafa);
}

.member-status-pill.is-failed {
  border-color: rgba(194, 88, 88, 0.18);
  background: linear-gradient(180deg, #fffafa, #fff4f4);
}

.member-home-mini-card {
  align-content: space-between;
}

.member-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-data-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.member-data-metrics div {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 13px;
  border: 1px solid #e3edf4;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff, #f7fafc);
}

.member-data-metrics span,
.member-data-metrics em {
  color: #718196;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.member-data-metrics strong {
  color: #102033;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.15;
  word-break: break-word;
}

.member-task-list-large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-tasks-panel {
  gap: 14px;
  padding: 20px 22px;
}

.member-tasks-panel-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(480px, 1.1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
}

.member-tasks-panel .member-task-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
}

.member-tasks-panel .member-task-heading .member-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #2776e6;
  background: #edf6ff;
}

.member-tasks-panel .member-task-heading h2 {
  margin: 0;
  color: #07172a;
  font-size: 1rem;
  line-height: 1.12;
}

.member-tasks-panel .member-task-heading p {
  grid-column: 1 / -1;
  margin: 0;
  color: #6f8198;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.24;
}

.member-tasks-panel .member-status-board {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.member-tasks-panel .member-status-pill {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 10px 12px;
  gap: 3px 9px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 253, 0.96));
}

.member-tasks-panel .member-status-pill .member-icon {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
}

.member-tasks-panel .member-status-pill span,
.member-tasks-panel .member-status-pill em {
  font-size: 0.72rem;
  line-height: 1.1;
}

.member-tasks-panel .member-status-pill strong {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 1.15rem;
}

.member-page-tasks .member-tasks-panel .member-status-board {
  width: min(100%, 1180px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 4px auto 0;
}

.member-page-tasks .member-tasks-panel .member-status-pill {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  min-height: 88px;
  gap: 6px;
  padding: 12px 8px;
  text-align: center;
}

.member-page-tasks .member-tasks-panel .member-status-pill .member-icon {
  grid-row: auto;
  width: 30px;
  height: 30px;
}

.member-page-tasks .member-tasks-panel .member-status-pill span,
.member-page-tasks .member-tasks-panel .member-status-pill em {
  font-size: 0.73rem;
}

.member-page-tasks .member-tasks-panel .member-status-pill strong {
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
  justify-self: center;
  font-size: 1.26rem;
}

.member-page-tasks .member-tasks-panel .member-status-pill em {
  justify-self: center;
}

.member-page-security #member-security {
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 92% 12%, rgba(16, 185, 129, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.member-page-security #member-security .member-section-head {
  align-items: center;
  min-height: 118px;
  padding: 20px;
  border: 1px solid #e0edf3;
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 18%, rgba(15, 143, 149, 0.08), transparent 34%),
    linear-gradient(135deg, #fbfeff 0%, #ffffff 72%);
}

.member-page-security #member-security .member-section-head .member-icon {
  width: 44px;
  height: 44px;
  background: #e8f8f4;
  color: #0d7c88;
}

.member-security-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.member-security-password-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(13, 124, 136, 0.16);
}

.member-page-security .member-password-form[hidden] {
  display: none;
}

.member-page-security .member-password-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border-color: #dfeaf2;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(248, 252, 254, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.member-page-security .member-password-form label {
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.member-page-security .member-password-form input {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 760;
}

.member-password-actions {
  display: inline-flex;
  align-items: end;
  gap: 8px;
}

.member-page-security .member-password-form button[type="submit"],
.member-page-security .member-password-secondary {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
}

.member-page-security .member-password-form button[type="submit"] {
  box-shadow: 0 12px 24px rgba(13, 124, 136, 0.18);
}

.member-page-security .member-password-secondary {
  border: 1px solid #d8e5ee;
  background: #fff;
  color: #607489;
  box-shadow: none;
}

.member-page-security .member-profile-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.member-page-security .member-profile-list li {
  min-height: 98px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: center;
  gap: 7px 12px;
  padding: 16px;
  border-color: #dfeaf2;
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 18%, rgba(15, 143, 149, 0.055), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.member-page-security .member-profile-list li .member-icon {
  width: 38px;
  height: 38px;
  grid-row: 1 / 3;
  background: #e9f7f5;
  color: #0d7c88;
}

.member-page-security .member-profile-list li > strong,
.member-page-security .member-profile-list li > span {
  grid-column: 2;
}

.member-page-security .member-profile-list li > strong {
  margin: 0;
  color: #233348;
  font-size: 0.88rem;
  font-weight: 850;
}

.member-page-security .member-profile-list li > span {
  color: #0d7c88;
  font-size: 1.02rem;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .member-page-security .member-profile-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .member-page-security .member-password-form,
  .member-page-security .member-profile-list {
    grid-template-columns: 1fr;
  }
}

.member-task-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6f8198;
  font-size: 0.78rem;
  font-weight: 850;
}

.member-task-list-toolbar strong {
  color: #0d8a91;
  font-size: 0.78rem;
}

.member-task-bulkbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid rgba(13, 133, 136, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(225, 248, 244, 0.78), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 251, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.member-task-bulk-select,
.member-task-row-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #176e71;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.member-task-bulk-select input,
.member-task-row-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.member-task-bulk-select span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.member-task-bulk-select span::before,
.member-task-row-check span {
  content: "";
  display: inline-flex;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(13, 133, 136, 0.32);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95), rgba(234, 249, 246, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.member-task-bulk-select input:checked + span::before,
.member-task-row-check input:checked + span {
  border-color: rgba(13, 138, 145, 0.42);
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 18%, #0fa6a4 22% 54%, rgba(221, 249, 245, 0.95) 58% 100%);
  box-shadow:
    0 0 0 3px rgba(13, 138, 145, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.member-task-bulk-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(13, 133, 136, 0.13);
  background: rgba(232, 249, 245, 0.78);
  color: #176e71;
  font-size: 0.78rem;
  font-weight: 900;
}

.member-task-bulk-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.member-task-bulk-actions button,
.member-snapshot-delete-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(13, 133, 136, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 252, 0.96), rgba(239, 249, 246, 0.9));
  color: #176e71;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.member-task-bulk-actions button.is-danger,
.member-snapshot-delete-panel button.is-danger {
  border-color: rgba(199, 79, 79, 0.22);
  background: linear-gradient(180deg, rgba(255, 248, 248, 0.96), rgba(255, 241, 241, 0.9));
  color: #a33f3f;
}

.member-task-bulk-actions button:disabled {
  opacity: 0.48;
  cursor: default;
}

.member-tasks-panel .member-task-list-large {
  grid-template-columns: 1fr;
  gap: 8px;
}

.member-tasks-panel .member-task-row {
  position: relative;
  display: grid;
  grid-template-columns: 22px 34px minmax(240px, 1fr) minmax(420px, 0.95fr) auto;
  grid-template-rows: auto 4px;
  gap: 10px 14px;
  align-items: center;
  min-height: 92px;
  padding: 14px 14px 16px;
  overflow: hidden;
  border-color: #e3ebf3;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
}

.member-tasks-panel .member-task-row > .member-icon {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #2776e6;
  background: #edf6ff;
}

.member-tasks-panel .member-task-row-main {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  gap: 4px;
  justify-self: stretch;
  min-width: 0;
}

.member-tasks-panel .member-task-row-main strong {
  display: block;
  margin: 0;
  color: #07172a;
  font-size: 0.88rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.member-tasks-panel .member-task-row-main span {
  display: block;
  margin: 0;
  color: #708196;
  font-size: 0.74rem;
  font-weight: 760;
}

.member-tasks-panel .member-task-row-stats {
  grid-column: 4;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-self: center;
  min-width: 0;
}

.member-tasks-panel .member-task-row-stats > span {
  display: flex;
  min-height: 46px;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 7px 9px;
  border: 1px solid #e7eef5;
  border-radius: 8px;
  background: #fbfdff;
  white-space: nowrap;
}

.member-tasks-panel .member-task-row-stats > span > em {
  display: block;
  color: #7b8ca0;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 760;
}

.member-tasks-panel .member-task-row-stats > span > strong {
  display: block;
  margin: 0;
  color: #07172a;
  font-size: 0.9rem;
  line-height: 1.1;
}

.member-tasks-panel .member-task-row-progress {
  grid-column: 3 / 6;
  grid-row: 2;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3f8;
}

.member-tasks-panel .member-task-row-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #12b7a5, #0d8a91);
}

.member-task-row-action,
.member-snapshot-task-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(13, 133, 136, 0.2);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.96), rgba(255, 255, 255, 0.94));
  color: #087f88;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.member-task-row-action {
  grid-column: 5;
  grid-row: 1;
}

.member-task-row-check {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: center;
}

.member-task-row.is-selected,
.member-view-admin .admin-task-row.is-selected {
  border-color: rgba(13, 133, 136, 0.28);
  background:
    linear-gradient(90deg, rgba(232, 249, 245, 0.72), rgba(255, 255, 255, 0.94));
}

.member-task-row-action:hover,
.member-snapshot-task-action:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 133, 136, 0.34);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.member-tasks-panel .member-task-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: #73849a;
}

@media (max-width: 1320px) {
  .member-tasks-panel-head {
    grid-template-columns: 1fr;
  }

  .member-task-list-toolbar {
    flex-wrap: wrap;
  }

  .member-tasks-panel .member-task-row {
    grid-template-columns: 22px 34px minmax(0, 1fr);
    grid-template-rows: auto auto auto 4px;
  }

  .member-tasks-panel .member-task-row-stats {
    grid-column: 3;
    grid-row: 2;
    margin-top: 2px;
  }

  .member-tasks-panel .member-task-row-progress {
    grid-column: 3;
    grid-row: 4;
  }

  .member-task-row-action {
    grid-column: 3;
    grid-row: 3;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .member-tasks-panel .member-status-board,
  .member-tasks-panel .member-task-row-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-tasks-panel .member-task-row {
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .member-tasks-panel .member-task-row-main,
  .member-tasks-panel .member-task-row-stats,
  .member-task-row-action,
  .member-tasks-panel .member-task-row-progress {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .member-tasks-panel .member-task-row > .member-icon {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
  }

  .member-task-row-check {
    grid-column: 1;
    grid-row: 1;
  }

  .member-task-row-action {
    width: 100%;
  }

  .member-task-bulkbar,
  .member-snapshot-delete-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .member-task-bulk-actions,
  .member-snapshot-delete-panel button {
    width: 100%;
  }

  .member-snapshot-delete-controls {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .member-snapshot-delete-panel label {
    flex: 1 1 160px;
  }

  .member-task-bulk-actions button {
    flex: 1 1 140px;
  }
}

.member-snapshot-panel {
  gap: 18px;
}

.member-snapshot-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(260px, 0.85fr) minmax(220px, 0.55fr);
  gap: 14px;
}

.member-snapshot-delete-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(13, 133, 136, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(225, 248, 244, 0.68), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 251, 0.9));
}

.member-snapshot-delete-copy {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 10px;
  min-width: 0;
  transform: translateY(-1px);
}

.member-snapshot-delete-copy > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 3px;
  min-width: 0;
}

.member-snapshot-delete-copy .member-icon {
  flex: 0 0 auto;
  align-self: center;
  width: 36px;
  height: 36px;
  color: #0d8a91;
  background: rgba(224, 255, 250, 0.92);
}

.member-snapshot-delete-copy span {
  color: #102033;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.15;
}

.member-snapshot-delete-copy em {
  color: #718196;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.35;
}

.member-snapshot-delete-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.member-snapshot-delete-panel label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  min-height: 42px;
  padding: 0 4px 0 12px;
  border: 1px solid rgba(13, 133, 136, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 0%, rgba(225, 248, 244, 0.54), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 250, 0.96));
  color: #718196;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 22px rgba(15, 23, 42, 0.05);
}

.member-snapshot-delete-panel label.member-snapshot-date-field {
  padding: 0 0 0 12px;
  overflow: hidden;
}

.member-snapshot-delete-panel label:focus-within {
  border-color: rgba(13, 138, 145, 0.42);
  box-shadow:
    0 0 0 4px rgba(13, 138, 145, 0.09),
    0 10px 24px rgba(15, 23, 42, 0.06);
}

.member-snapshot-delete-panel label > span {
  flex: 0 0 auto;
  color: #6e7e92;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.member-snapshot-date-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 0 14px 14px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 250, 0.96));
  color: #102033;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  position: relative;
}

.member-snapshot-date-button::after {
  content: none;
}

.member-snapshot-date-button:hover,
.member-snapshot-date-button:focus-visible {
  color: #0d7c88;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(237, 250, 248, 0.98));
}

.member-snapshot-date-button.has-value {
  color: #0f303f;
}

.member-snapshot-delete-panel input {
  width: 116px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #102033;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 40px;
  text-align: left;
  box-shadow: none;
  outline: none;
}

.member-snapshot-delete-panel input:focus {
  box-shadow: none;
}

.member-snapshot-delete-panel input::-webkit-calendar-picker-indicator {
  width: 18px;
  height: 18px;
  border-radius: 8px;
  opacity: 0.78;
  cursor: pointer;
}

.member-snapshot-delete-panel button {
  align-self: center;
  min-height: 42px;
}

.member-snapshot-date-popover {
  position: fixed;
  z-index: 4300;
  width: 292px;
  animation: member-snapshot-date-in 0.16s ease both;
}

.member-snapshot-date-card {
  padding: 12px;
  border: 1px solid rgba(13, 133, 136, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(218, 252, 246, 0.88), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 252, 0.98));
  box-shadow:
    0 22px 58px rgba(15, 23, 42, 0.16),
    0 8px 24px rgba(13, 133, 136, 0.12);
}

.member-snapshot-date-head,
.member-snapshot-date-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.member-snapshot-date-head strong {
  color: #102033;
  font-size: 0.86rem;
  font-weight: 950;
}

.member-snapshot-date-head button,
.member-snapshot-date-foot button {
  min-width: 34px;
  min-height: 32px;
  border: 1px solid rgba(13, 133, 136, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: #176e71;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.member-snapshot-date-head button:hover,
.member-snapshot-date-foot button:hover {
  border-color: rgba(13, 133, 136, 0.28);
  background: rgba(232, 249, 245, 0.92);
}

.member-snapshot-date-week,
.member-snapshot-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.member-snapshot-date-week {
  margin-top: 12px;
  color: #7a8b9f;
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.member-snapshot-date-grid {
  margin-top: 8px;
}

.member-snapshot-date-grid button,
.member-snapshot-date-blank {
  min-height: 30px;
  border-radius: 10px;
}

.member-snapshot-date-grid button {
  border: 1px solid transparent;
  background: transparent;
  color: #34485c;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.member-snapshot-date-grid button:hover {
  border-color: rgba(13, 133, 136, 0.2);
  background: rgba(232, 249, 245, 0.9);
  color: #0d7c88;
}

.member-snapshot-date-grid button.is-today {
  border-color: rgba(13, 133, 136, 0.18);
  color: #0d7c88;
}

.member-snapshot-date-grid button.is-selected {
  border-color: rgba(13, 133, 136, 0.42);
  background: linear-gradient(135deg, #0fa6a4, #0d7c88);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 133, 136, 0.22);
}

.member-snapshot-date-foot {
  margin-top: 12px;
  justify-content: flex-end;
}

@keyframes member-snapshot-date-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.member-snapshot-metric,
.member-snapshot-entry-button {
  min-height: 138px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid #dbe8f0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 18%, rgba(15, 143, 149, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff, #f6fbff);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.member-snapshot-metric.is-primary {
  background:
    radial-gradient(circle at 88% 14%, rgba(15, 143, 149, 0.14), transparent 32%),
    linear-gradient(135deg, #f3fbf8, #ffffff 72%);
}

.member-snapshot-metric .member-icon,
.member-snapshot-entry-button .member-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #0d8a91;
  background: #e7fbf8;
}

.member-snapshot-entry-button {
  color: #0d7c88;
  text-decoration: none;
}

.member-snapshot-entry-button .member-icon {
  grid-row: 1 / 3;
  color: #0d7c88;
  background: #e9fbf8;
}

.member-snapshot-entry-button span,
.member-snapshot-entry-button em {
  display: block;
  grid-column: 2;
}

.member-snapshot-metric span,
.member-snapshot-metric em,
.member-snapshot-entry-button em,
.member-settings-grid span,
.member-billing-summary span {
  color: #65778c;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.member-snapshot-metric span,
.member-snapshot-metric strong,
.member-snapshot-metric em {
  display: block;
}

.member-snapshot-entry-button span {
  display: block;
  color: #102033;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.2;
}

.member-snapshot-metric strong {
  color: #102033;
  font-size: 2.25rem;
  font-weight: 950;
  line-height: 1;
}

.member-snapshot-metric strong small {
  margin-left: 5px;
  color: #65778c;
  font-size: 0.9rem;
  font-weight: 800;
}

.member-snapshot-metric em,
.member-snapshot-entry-button em {
  margin-top: 8px;
}

.member-snapshot-list-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dfe8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.member-snapshot-section-head {
  align-items: center;
  padding-bottom: 4px;
}

.member-snapshot-list-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(13, 124, 136, 0.16);
  border-radius: 999px;
  background: #f3fbf9;
  color: #0d7c88;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.member-snapshot-task-list {
  gap: 10px;
}

.member-snapshot-task-list .member-snapshot-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px auto;
  min-height: 76px;
  padding: 14px 16px;
  align-items: center;
  gap: 16px;
  border-color: #e2ebf3;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
}

.member-snapshot-task-main {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.member-snapshot-task-main .member-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #0d8a91;
  background: #e7fbf8;
}

.member-snapshot-task-copy {
  min-width: 0;
}

.member-snapshot-task-copy strong,
.member-snapshot-task-copy span,
.member-snapshot-task-count strong,
.member-snapshot-task-count span {
  display: block;
}

.member-snapshot-task-copy strong {
  color: #102033;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.member-snapshot-task-copy span,
.member-snapshot-task-count span {
  margin-top: 4px;
  color: #718196;
  font-size: 0.76rem;
  font-weight: 700;
}

.member-snapshot-task-copy .member-snapshot-task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.member-snapshot-task-copy .member-snapshot-task-meta span,
.member-snapshot-task-copy .member-snapshot-task-meta i {
  display: inline;
  margin-top: 0;
  font-style: normal;
}

.member-snapshot-task-copy .member-snapshot-task-meta i {
  color: #4f657d;
  font-weight: 850;
}

.member-snapshot-task-copy .member-snapshot-task-meta i::before {
  content: "·";
  margin-right: 8px;
  color: rgba(13, 133, 136, 0.46);
}

.member-snapshot-task-count {
  display: grid;
  justify-items: center;
  min-width: 96px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(13, 124, 136, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #f5fffc, #ffffff);
  text-align: center;
}

.member-snapshot-task-count strong {
  color: #0d7c88;
  font-size: 1.18rem;
  font-weight: 950;
  line-height: 1;
}

.member-snapshot-task-action {
  align-self: center;
}

.member-snapshot-empty {
  min-height: 72px;
  align-items: center;
}

.member-snapshot-empty span {
  grid-column: 1 / -1;
  color: #718196;
  font-weight: 700;
}

@media (max-width: 980px) {
  .member-snapshot-overview {
    grid-template-columns: 1fr;
  }

  .member-snapshot-task-list .member-snapshot-task-row {
    grid-template-columns: 1fr;
  }

  .member-snapshot-task-count {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }
}

.member-billing-grid {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.member-billing-summary,
.member-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.member-billing-summary div,
.member-settings-grid div {
  display: grid;
  gap: 10px;
  min-height: 120px;
  padding: 18px;
  border: 1px solid #e3ebf2;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff, #f7fafc);
}

.member-billing-summary strong,
.member-settings-grid strong {
  color: #102033;
  font-size: 1.25rem;
  font-weight: 950;
}

.member-help-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-help-card-grid li {
  display: grid;
  gap: 10px;
  min-height: 148px;
  padding: 18px;
  border: 1px solid #e2ebf2;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff, #f7fafc);
}

.member-help-card-grid strong {
  color: #102033;
  font-size: 1rem;
  font-weight: 950;
}

.member-help-card-grid span {
  color: #718196;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.6;
}

.member-empty-state-page {
  min-height: 220px;
  justify-items: center;
  text-align: center;
}

@media (max-width: 1100px) {
  .admin-section-grid-primary,
  .member-view-admin .member-admin-table-grid,
  .member-view-admin .member-admin-insight-grid {
    grid-template-columns: 1fr;
  }

  .member-analytics-grid,
  .member-home-insight-grid,
  .member-billing-grid,
  .member-help-card-grid,
  .member-task-list-large {
    grid-template-columns: 1fr;
  }

  .admin-console-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-console-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .member-view-admin .member-admin-metrics {
    grid-template-columns: 1fr;
  }

  .admin-runtime-board {
    grid-template-columns: 1fr;
  }

  .member-bar-chart {
    gap: 5px;
    overflow-x: auto;
    grid-template-columns: repeat(var(--member-chart-days, 14), 34px);
    padding-bottom: 6px;
  }

  .member-chart-bar-item {
    grid-template-rows: 20px 120px 22px;
  }

  .member-settings-grid,
  .member-billing-summary,
  .member-status-board,
  .member-quota-focus-body,
  .member-data-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .member-topbar h1 {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .member-account-menu {
    right: -8px;
    width: min(260px, calc(100vw - 28px));
  }

  .member-tool-menu {
    right: -56px;
    width: min(320px, calc(100vw - 28px));
  }
}

/* Exact member dashboard mockup alignment */
.member-view-member .member-app-shell,
.member-view-admin .member-app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  background: #f3f6fa;
}

.member-view-member .member-sidebar,
.member-view-admin .member-sidebar {
  padding: 28px 14px 24px;
  background: linear-gradient(180deg, #08233a 0%, #061927 100%);
  color: #d6e2ed;
}

.member-view-member .member-sidebar-brand,
.member-view-admin .member-sidebar-brand {
  gap: 12px;
  padding: 0 12px 18px;
}

.member-sidebar-brand strong {
  color: #fff;
  font-size: 0.96rem;
  font-weight: 950;
}

.member-sidebar-brand small {
  margin-top: 3px;
  color: #a6bacd;
  font-size: 0.78rem;
  font-weight: 850;
}

.member-view-member .member-sidebar-logo,
.member-view-admin .member-sidebar-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
}

.member-view-member .member-sidebar-nav,
.member-view-admin .member-sidebar-nav {
  gap: 8px;
}

.member-view-member .member-sidebar-nav a,
.member-view-admin .member-sidebar-nav a {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 7px;
  color: #c1d3e1;
  font-size: 0.9rem;
  font-weight: 850;
}

.member-view-member .member-sidebar-nav a.is-active,
.member-view-admin .member-sidebar-nav a.is-active {
  background: linear-gradient(135deg, #129aa3 0%, #0d8a91 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 132, 143, 0.24);
}

.member-view-member .member-side-icon,
.member-view-admin .member-side-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: currentColor;
}

.member-view-member .member-sidebar-card,
.member-view-admin .member-sidebar-card {
  display: grid;
  gap: 12px;
  margin: auto 8px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.member-sidebar-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a9bb;
  font-size: 0.76rem;
  font-weight: 850;
}

.member-sidebar-card span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12);
}

.member-sidebar-card strong {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 950;
}

.member-sidebar-card button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #d8f5f2;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.member-view-member .member-topbar,
.member-view-admin .member-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 88px;
  padding: 0 30px;
  border-bottom: 1px solid #dfe7ef;
  background: #fff;
}

.member-view-member .member-topbar > div:first-child,
.member-view-admin .member-topbar > div:first-child,
.member-view-member .member-topbar-popover,
.member-view-admin .member-topbar-popover {
  display: none;
}

.member-view-member .member-topbar-tools,
.member-view-admin .member-topbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.member-topbar-proxy {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  max-width: min(500px, 42vw);
  padding: 0 20px;
  border: 1px solid #cfe4e6;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 252, 0.98)),
    #fff;
  color: #4a423d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 34px rgba(15, 23, 42, 0.07);
  cursor: default;
}

.member-topbar-proxy-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8fbf8;
  color: #0d8a91;
  box-shadow: inset 0 0 0 1px #bfe8e7;
}

.member-topbar-proxy-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.member-topbar-proxy strong {
  flex: 0 0 auto;
  color: #4c4038;
  font-size: 1.12rem;
  font-weight: 950;
}

.member-topbar-proxy em {
  min-width: 0;
  overflow: hidden;
  padding: 7px 14px;
  border: 1px solid #cdebea;
  border-radius: 999px;
  background: #ecfbf9;
  color: #0d7c88;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-topbar-proxy:not(.is-enabled) em {
  border-color: #d8e2eb;
  background: #f1f5f9;
  color: #64748b;
}

.member-view-member .member-avatar-button,
.member-view-admin .member-avatar-button {
  width: 46px;
  height: 46px;
  padding: 3px;
  border: 1px solid #cfe3e5;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #f3fbfb);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.1);
}

.member-view-member .member-avatar-button::after,
.member-view-admin .member-avatar-button::after {
  display: none;
}

.member-view-member .member-avatar-button .member-avatar,
.member-view-admin .member-avatar-button .member-avatar {
  width: 38px;
  height: 38px;
  border: 2px solid #fff;
  box-shadow: 0 5px 12px rgba(15, 118, 110, 0.12);
}

.member-account-menu {
  top: calc(100% + 14px);
  right: -4px;
  width: 300px;
  padding: 14px;
  border: 1px solid #dbe8e8;
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 18%, rgba(15, 143, 149, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
}

.member-account-menu::before {
  top: -8px;
  right: 22px;
  width: 14px;
  height: 14px;
  border-color: #dbe8e8;
  background: #fff;
}

.member-account-menu-head {
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 76px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #d9ecea;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2fffc 0%, #ffffff 100%);
}

.member-account-menu-head .member-avatar {
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.12);
}

.member-account-menu-head strong {
  color: #3f3a36;
  font-size: 1.02rem;
  font-weight: 950;
}

.member-account-menu-head small {
  color: #0d7c88;
  font-size: 0.85rem;
  font-weight: 950;
}

.member-menu-action,
.member-menu-logout {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  justify-content: initial;
  min-height: 62px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid #edf0ec;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #514942;
  text-align: left;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.member-menu-action:hover,
.member-menu-logout:hover {
  border-color: #cfe8e5;
  background: #f8fffd;
}

.member-menu-action-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #ecfbf7;
  color: #0d8a91;
}

.member-menu-action-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.member-menu-action strong,
.member-menu-logout strong {
  font-size: 0.98rem;
  font-weight: 950;
}

.member-view-member .member-root,
.member-view-admin .member-root {
  gap: 18px;
  padding: 24px 30px 42px;
}

.member-page-home {
  gap: 18px;
}

.member-home-quota-row.member-metrics-spacious {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.member-home-quota-row .member-quota-card {
  min-height: 142px;
  padding: 22px 26px;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.member-home-quota-row .member-quota-title {
  color: #102033;
  font-size: 0.82rem;
}

.member-home-quota-row .member-quota-main {
  min-height: 0;
  margin: 0;
}

.member-home-quota-row .member-quota-icon {
  width: 56px;
  height: 56px;
}

.member-home-quota-row .member-quota-main strong {
  color: #07172a;
  font-size: 1.58rem;
  font-weight: 900;
}

.member-home-quota-row .member-quota-note {
  color: #708196;
  font-size: 0.78rem;
}

.member-analytics-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.88fr);
  gap: 18px;
}

.member-home-insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.member-section {
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.member-page-activation .member-activation-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.member-page-activation .member-activation-panel::before {
  display: none;
}

.member-page-activation .member-activation-panel.is-activated {
  background: transparent;
}

.member-chart-panel,
.member-quota-focus-card {
  min-height: 430px;
  padding: 24px;
}

.member-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.member-kicker {
  margin: 0 0 6px;
  color: #334a62;
  font-size: 0.76rem;
  font-weight: 950;
}

.member-section h2 {
  margin: 0;
  color: #07172a;
  font-size: 1.18rem;
  font-weight: 950;
}

.member-section-head p:not(.member-kicker) {
  margin: 7px 0 0;
  color: #718196;
  font-size: 0.86rem;
  font-weight: 820;
}

.member-range-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #d9e7ef;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f4f9fb);
  color: #40566e;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 950;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 22px rgba(15, 23, 42, 0.04);
}

.member-range-picker {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
}

.member-range-caret {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  line-height: 1;
}

.member-range-caret svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.member-range-button.is-active .member-range-caret {
  transform: rotate(180deg);
}

.member-range-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: 322px;
  padding: 16px;
  border: 1px solid rgba(210, 228, 236, 0.92);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 10%, rgba(15, 143, 149, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 252, 0.96));
  box-shadow:
    0 26px 54px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.member-range-menu[hidden] {
  display: none;
}

.member-range-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 42px;
  width: 16px;
  height: 16px;
  border-left: 1px solid rgba(210, 228, 236, 0.92);
  border-top: 1px solid rgba(210, 228, 236, 0.92);
  background: rgba(255, 255, 255, 0.98);
  transform: rotate(45deg);
}

.member-range-menu-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.member-range-menu-head strong {
  color: #17283b;
  font-size: 1rem;
  font-weight: 950;
}

.member-range-menu-head span {
  color: #0d8a91;
  font-size: 0.76rem;
  font-weight: 950;
}

.member-range-presets {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.member-range-presets button,
.member-range-apply {
  min-height: 40px;
  border: 1px solid #dce9f0;
  border-radius: 12px;
  background: #fff;
  color: #40566e;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 950;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.member-range-presets button:hover,
.member-range-apply:hover {
  transform: translateY(-1px);
  border-color: #b8d7db;
  box-shadow: 0 10px 22px rgba(15, 143, 149, 0.1);
}

.member-range-presets button.is-active {
  border-color: #8fd5d6;
  background: linear-gradient(180deg, #e9fbf8, #f7fffd);
  color: #087b82;
  box-shadow: inset 0 0 0 1px rgba(15, 143, 149, 0.08);
}

.member-range-custom {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e1edf3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.member-range-custom > span {
  color: #17283b;
  font-size: 0.86rem;
  font-weight: 950;
}

.member-range-custom label {
  display: grid;
  gap: 6px;
  color: #6d7f94;
  font-size: 0.76rem;
  font-weight: 900;
}

.member-range-custom input {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #d7e7ef;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #f8fcfd);
  color: #17283b;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
}

.member-range-note,
.member-range-feedback {
  position: relative;
  z-index: 1;
  margin: 10px 2px 0;
  color: #73869b;
  font-size: 0.76rem;
  font-weight: 850;
}

.member-range-feedback {
  color: #c2414a;
}

.member-range-apply {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 12px;
  border-color: #0f8f95;
  background: linear-gradient(180deg, #17aaa6, #087b82);
  color: #fff;
  box-shadow: 0 14px 26px rgba(15, 143, 149, 0.18);
}

.member-chart-panel {
  min-height: 456px;
  padding: 32px 38px 30px;
  overflow: visible;
}

.member-time-zoom-chart {
  position: relative;
  z-index: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.member-time-zoom-chart.is-dragging {
  cursor: grabbing;
}

body.member-chart-dragging,
body.member-chart-dragging * {
  cursor: grabbing !important;
}

.member-chart-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 13px;
  align-items: center;
}

.member-chart-heading > div {
  display: contents;
}

.member-chart-heading .member-icon {
  width: 28px;
  height: 28px;
  margin-top: 0;
  border-radius: 8px;
  background: #e8fbf8;
  color: #0d8a91;
}

.member-chart-heading h2 {
  grid-column: 2;
  color: #16263a;
  font-size: 1.36rem;
  font-weight: 950;
  line-height: 1.06;
}

.member-chart-heading p {
  grid-column: 1 / -1;
  margin: 0;
  color: #6f8198;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.24;
}

.member-chart-panel-wide .member-section-head .member-chart-heading p {
  margin: 7px 0 0;
  color: #6f8198;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.24;
}

.member-bar-chart {
  position: relative;
  display: block;
  min-height: 300px;
  margin-top: 24px;
  padding: 0 2px 31px 54px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(245, 250, 252, 0.36) 100%),
    repeating-linear-gradient(0deg, rgba(119, 141, 166, 0.16) 0 1px, transparent 1px 49px);
  box-shadow: none;
}

.member-bar-chart::before {
  content: "";
  position: absolute;
  left: 54px;
  top: 0;
  bottom: 31px;
  width: 1px;
  background: #d7e0e9;
}

.member-bar-chart::after {
  content: "";
  position: absolute;
  left: 54px;
  right: 0;
  bottom: 31px;
  height: 1px;
  background: #d7e0e9;
}

.member-chart-y-axis {
  position: absolute;
  top: -7px;
  bottom: 24px;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #758ba4;
  font-size: 0.82rem;
  font-weight: 900;
}

.member-chart-bars {
  position: relative;
  z-index: auto;
  display: grid;
  grid-template-columns: repeat(var(--member-chart-days, 30), minmax(0, 1fr));
  align-items: end;
  gap: 9px;
  height: 246px;
}

.member-chart-average-line {
  left: 54px;
  right: 0;
  z-index: 12;
  border-top: 2px dotted rgba(13, 124, 136, 0.52);
}

.member-chart-average-line em {
  right: 0;
  top: -22px;
  padding: 2px 6px;
  border: 1px solid rgba(13, 124, 136, 0.12);
  border-radius: 7px;
  background: rgba(248, 253, 253, 0.78);
  color: #0d8a91;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(5px);
}

.member-chart-peak-callout {
  position: absolute;
  --peak-connector-x: 30px;
  --peak-line-top: 26px;
  --peak-connector-height: 100px;
  left: 50%;
  top: -40px;
  z-index: 8;
  display: grid;
  gap: 3px;
  min-width: 102px;
  min-height: 54px;
  padding: 7px 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  background: linear-gradient(180deg, #12a7a4 0%, #07858a 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(8, 123, 130, 0.24);
  transform: translateX(calc(-100% - var(--peak-connector-x)));
  pointer-events: none;
}

.member-chart-peak-callout::after {
  content: "";
  position: absolute;
  left: calc(100% - 1px);
  top: var(--peak-line-top);
  width: var(--peak-connector-x);
  height: var(--peak-connector-height);
  border-top: 2px solid #9bcbd0;
  border-right: 2px solid #9bcbd0;
  border-radius: 0 5px 0 0;
}

.member-chart-peak-callout::before {
  content: "";
  position: absolute;
  left: calc(100% + var(--peak-connector-x) - 7px);
  top: calc(var(--peak-line-top) + var(--peak-connector-height) - 7px);
  z-index: 2;
  width: 8px;
  height: 8px;
  border: 3px solid #d9f7f6;
  border-radius: 50%;
  background: #087b82;
}

.member-chart-peak-callout.is-near-start {
  transform: translateX(var(--peak-connector-x));
}

.member-chart-peak-callout.is-near-start::after {
  right: calc(100% - 1px);
  left: auto;
  border-right: 0;
  border-left: 2px solid #9bcbd0;
  border-radius: 5px 0 0 0;
}

.member-chart-peak-callout.is-near-start::before {
  right: calc(100% + var(--peak-connector-x) - 7px);
  left: auto;
}

.member-chart-peak-callout strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: #dffefe;
  font-size: 0.7rem;
  font-weight: 780;
  line-height: 1.05;
  text-align: center;
}

.member-chart-peak-callout strong small {
  color: rgba(223, 254, 254, 0.92);
  font-size: 0.66rem;
  font-weight: 780;
}

.member-chart-peak-callout em {
  color: #fff;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 860;
  line-height: 1.08;
  text-align: center;
  white-space: nowrap;
}

.member-chart-bar-item {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 246px 25px;
  gap: 8px;
  min-width: 0;
  text-align: center;
  outline: none;
}

.member-chart-bar-item.is-peak {
  z-index: 8;
}

.member-chart-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(18px, 72%);
  height: 100%;
  justify-self: center;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.member-chart-bar-track i {
  display: block;
  width: 100%;
  min-height: 8px;
  border-radius: 999px 999px 2px 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 38%),
    linear-gradient(180deg, #8de9e3 0%, #18aaa9 48%, #08737b 100%);
  box-shadow: 0 8px 18px rgba(15, 143, 149, 0.2);
  transition: transform 160ms ease, filter 160ms ease;
}

.member-chart-bar-item:hover .member-chart-bar-track i,
.member-chart-bar-item:focus-visible .member-chart-bar-track i {
  filter: saturate(1.15) brightness(1.03);
  transform: translateY(-3px);
}

.member-chart-tooltip {
  position: absolute;
  left: 50%;
  bottom: var(--tooltip-bottom, 150px);
  z-index: 30;
  display: grid;
  gap: 4px;
  min-width: 148px;
  padding: 10px 12px;
  border: 1px solid rgba(208, 226, 234, 0.9);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 12%, rgba(15, 143, 149, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 150ms ease, transform 150ms ease;
  pointer-events: none;
}

.member-chart-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(208, 226, 234, 0.9);
  border-bottom: 1px solid rgba(208, 226, 234, 0.9);
  background: rgba(255, 255, 255, 0.96);
  transform: translateX(-50%) rotate(45deg);
}

.member-chart-tooltip strong {
  color: #0d8a91;
  font-size: 0.84rem;
  font-weight: 950;
}

.member-chart-tooltip span,
.member-chart-tooltip small {
  color: #6d7f94;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.member-chart-tooltip em {
  color: #13263a;
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 950;
}

.member-chart-bar-item:hover .member-chart-tooltip,
.member-chart-bar-item:focus-visible .member-chart-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.member-chart-bar-item:hover,
.member-chart-bar-item:focus-visible {
  z-index: 30;
}

.member-chart-bar-item > em,
.member-line-chart-labels span {
  color: #637b98;
  font-size: 0.82rem;
  font-weight: 900;
}

.member-quota-focus-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 88% 16%, rgba(15, 143, 149, 0.08), transparent 30%),
    #fff;
}

.member-quota-focus-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.member-usage-ring-large {
  width: 174px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.member-usage-ring-large strong {
  font-size: 1.68rem;
}

.member-usage-ring span {
  color: #74859a;
  font-weight: 900;
}

.member-quota-summary-card {
  display: grid;
  gap: 8px;
  min-height: 138px;
  align-content: center;
  padding: 20px;
  border: 1px solid #dfeaf1;
  border-radius: 14px;
  background: linear-gradient(135deg, #f9fdff, #ffffff);
}

.member-quota-summary-card span,
.member-quota-summary-card em,
.member-quota-focus-stats span,
.member-quota-focus-stats em {
  color: #718196;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.member-quota-summary-card strong {
  color: #07172a;
  font-size: 1.38rem;
  font-weight: 950;
}

.member-quota-focus-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.member-quota-focus-stats div {
  min-height: 82px;
  padding: 14px;
  border-radius: 12px;
}

.member-quota-focus-stats strong {
  font-size: 1rem;
}

.member-task-trend-card,
.member-task-status-card,
.member-data-sink-card {
  min-height: 300px;
  padding: 24px;
}

.member-task-trend-card {
  overflow: visible;
}

.member-task-heading .member-icon {
  background: transparent;
  color: #0d8a91;
}

.member-task-heading h2 {
  font-size: 1.28rem;
}

.member-task-trend-card .member-section-head {
  align-items: flex-start;
}

.member-range-picker.is-compact .member-range-button {
  min-height: 44px;
  padding: 0 15px;
  border-radius: 9px;
}

.member-range-picker.is-compact .member-range-menu {
  width: 306px;
}

.member-line-chart-card.is-compact {
  --member-chart-hover-inset-top: 8px;
  --member-chart-hover-inset-right: 8px;
  --member-chart-hover-inset-bottom: 4px;
  --member-chart-hover-inset-left: 8px;
  min-height: 218px;
  margin-top: 18px;
  padding: 8px 8px 4px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 253, 0.96)),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.08) 0 1px, transparent 1px 42px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.member-line-chart-stroke {
  stroke-width: 3.2;
}

.member-status-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.member-status-pill {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 74px;
  padding: 14px 16px;
  gap: 8px 12px;
  border-radius: 14px;
}

.member-status-pill .member-icon {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  color: #0d7c88;
  background: #e9fbf8;
}

.member-status-pill span {
  color: #66778a;
  font-size: 0.78rem;
}

.member-status-pill strong {
  font-size: 1.42rem;
}

.member-status-pill em {
  justify-self: end;
  color: #7f91a6;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
}

.member-data-sink-card {
  align-content: start;
  gap: 0;
}

.member-data-metrics {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.member-data-metrics div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 62px;
  padding: 14px 16px;
  border-radius: 14px;
}

.member-data-metrics span,
.member-data-metrics em {
  grid-column: 1;
  font-size: 0.76rem;
}

.member-data-metrics strong {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 1.08rem;
  white-space: nowrap;
}

.member-data-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border: 1px solid #cfe5e4;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fffd, #eefbf8);
  color: #0d7c88;
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
}

.member-home-insight-grid .member-task-status-card,
.member-home-insight-grid .member-data-sink-card {
  min-height: 258px;
  height: 100%;
  padding: 18px 20px 16px;
  border-color: #dfe8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.member-home-insight-grid .member-data-sink-card {
  align-self: stretch;
  min-height: 258px;
  padding: 20px 22px;
}

.member-home-insight-grid .member-task-trend-card {
  min-height: 258px;
  height: auto;
  padding: 18px 22px 16px;
  overflow: hidden;
}

.member-home-insight-grid .member-line-chart-card.is-compact {
  min-height: 0;
  height: 300px;
  margin-top: 8px;
  box-sizing: border-box;
  padding: 0 4px 12px;
  border-radius: 10px;
  overflow: hidden;
}

.member-home-insight-grid .member-line-chart-card.is-compact .member-line-chart-stage {
  height: 100%;
}

.member-home-insight-grid .member-task-trend-card .member-line-chart-card.is-compact .member-line-chart {
  display: block;
  height: 100%;
  max-height: none;
}

.member-home-insight-grid .member-task-heading .member-icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.member-home-insight-grid .member-task-heading .member-icon svg {
  width: 17px;
  height: 17px;
}

.member-home-insight-grid .member-task-heading h2 {
  font-size: 1rem;
  line-height: 1.12;
}

.member-home-insight-grid .member-task-heading p {
  margin-top: 0;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.24;
}

.member-home-insight-grid .member-task-heading.member-chart-heading {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 9px;
}

.member-home-insight-grid .member-range-picker.is-compact .member-range-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.76rem;
}

.member-home-insight-grid .member-range-picker.is-compact .member-range-caret,
.member-home-insight-grid .member-range-picker.is-compact .member-range-caret svg {
  width: 11px;
  height: 11px;
}

.member-range-picker.is-compact.is-task-date .member-range-menu {
  top: calc(100% + 9px);
  width: 248px;
  padding: 11px;
  border-radius: 14px;
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.member-range-picker.is-compact.is-task-date .member-range-menu::before {
  top: -7px;
  right: 34px;
  width: 14px;
  height: 14px;
}

.member-range-picker.is-compact.is-task-date .member-range-menu-head {
  gap: 8px;
  margin-bottom: 9px;
}

.member-range-picker.is-compact.is-task-date .member-range-menu-head strong {
  font-size: 0.86rem;
}

.member-range-picker.is-compact.is-task-date .member-range-menu-head span {
  font-size: 0.66rem;
}

.member-range-picker.is-compact.is-task-date .member-range-presets {
  gap: 6px;
}

.member-range-picker.is-compact.is-task-date .member-range-presets button,
.member-range-picker.is-compact.is-task-date .member-range-apply {
  min-height: 32px;
  border-radius: 9px;
  font-size: 0.74rem;
}

.member-range-picker.is-compact.is-task-date .member-range-custom {
  gap: 7px;
  margin-top: 9px;
  padding: 10px;
  border-radius: 11px;
}

.member-range-picker.is-compact.is-task-date .member-range-custom > span {
  font-size: 0.76rem;
}

.member-range-picker.is-compact.is-task-date .member-range-custom label {
  gap: 5px;
  font-size: 0.66rem;
}

.member-range-picker.is-compact.is-task-date .member-range-custom input {
  min-height: 32px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 0.74rem;
}

.member-range-picker.is-compact.is-task-date .member-range-note,
.member-range-picker.is-compact.is-task-date .member-range-feedback {
  margin-top: 7px;
  font-size: 0.66rem;
}

.member-range-picker.is-compact.is-task-date .member-range-apply {
  margin-top: 8px;
}

.member-panel-heading {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 4px 8px;
}

.member-panel-heading > div {
  display: contents;
}

.member-panel-heading .member-icon {
  width: 18px;
  height: 18px;
  border-radius: 8px;
  background: transparent;
  margin-top: 0;
}

.member-task-status-card .member-panel-heading .member-icon {
  color: #2776e6;
}

.member-task-status-card .member-panel-heading {
  gap: 4px 9px;
}

.member-task-status-card .member-panel-heading p {
  color: #6f8198;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.24;
}

.member-data-sink-card .member-panel-heading .member-icon {
  color: #0d938d;
}

.member-panel-heading .member-icon svg {
  width: 16px;
  height: 16px;
}

.member-panel-heading h2 {
  grid-column: 2;
  margin: 0;
  color: #07172a;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.05;
}

.member-panel-heading p {
  grid-column: 1 / -1;
  margin: 0;
  color: #6f8198;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.24;
}

.member-task-status-card .member-status-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
  align-items: stretch;
}

.member-task-status-card .member-status-pill {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  min-height: 154px;
  padding: 18px 8px;
  gap: 12px;
  text-align: center;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(15, 23, 42, 0.03);
}

.member-task-status-card .member-status-pill.is-completed {
  border-color: rgba(15, 159, 140, 0.2);
  background: linear-gradient(180deg, rgba(238, 253, 249, 0.86), rgba(250, 255, 253, 0.98));
}

.member-task-status-card .member-status-pill.is-running {
  border-color: rgba(39, 118, 230, 0.18);
  background: linear-gradient(180deg, rgba(240, 247, 255, 0.88), rgba(251, 253, 255, 0.98));
}

.member-task-status-card .member-status-pill.is-preparing {
  border-color: rgba(121, 144, 164, 0.18);
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.92), rgba(252, 254, 255, 0.98));
}

.member-task-status-card .member-status-pill.is-paused {
  border-color: rgba(100, 116, 139, 0.18);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.98));
}

.member-task-status-card .member-status-pill.is-queued {
  border-color: rgba(210, 139, 0, 0.18);
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.9), rgba(255, 253, 248, 0.98));
}

.member-task-status-card .member-status-pill.is-failed {
  border-color: rgba(224, 78, 78, 0.2);
  background: linear-gradient(180deg, rgba(255, 244, 246, 0.9), rgba(255, 252, 252, 0.98));
}

.member-task-status-card .member-status-pill .member-icon {
  grid-row: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.member-task-status-card .member-status-pill.is-completed .member-icon {
  color: #ffffff;
  background: #0f9f8c;
}

.member-task-status-card .member-status-pill.is-running .member-icon {
  color: #ffffff;
  background: #2776e6;
}

.member-task-status-card .member-status-pill.is-preparing .member-icon {
  color: #ffffff;
  background: #7d91a2;
}

.member-task-status-card .member-status-pill.is-paused .member-icon {
  color: #ffffff;
  background: #6f8496;
}

.member-task-status-card .member-status-pill.is-queued .member-icon {
  color: #ffffff;
  background: #d28b00;
}

.member-task-status-card .member-status-pill.is-failed .member-icon {
  color: #ffffff;
  background: #e95454;
}

.member-task-status-card .member-status-pill .member-icon svg {
  width: 18px;
  height: 18px;
}

.member-task-status-card .member-status-pill span {
  color: #6c7d93;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.1;
}

.member-task-status-card .member-status-pill strong {
  color: #07172a;
  font-size: 1.36rem;
  font-weight: 900;
  line-height: 1;
}

.member-task-status-card .member-status-pill em {
  justify-self: center;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.member-task-status-card .member-status-pill.is-completed em {
  color: #0f9f8c;
}

.member-task-status-card .member-status-pill.is-running em {
  color: #2776e6;
}

.member-task-status-card .member-status-pill.is-preparing em {
  color: #7d91a2;
}

.member-task-status-card .member-status-pill.is-paused em {
  color: #6f8496;
}

.member-task-status-card .member-status-pill.is-queued em {
  color: #d28b00;
}

.member-task-status-card .member-status-pill.is-failed em {
  color: #e04e4e;
}

.member-data-sink-card .member-section-head {
  margin-bottom: 0;
}

.member-data-sink-card .member-panel-heading {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px 8px;
  align-items: center;
}

.member-data-sink-card .member-panel-heading > div {
  display: contents;
}

.member-data-sink-card .member-panel-heading h2 {
  grid-column: 2;
  font-size: 1rem;
  line-height: 1.1;
}

.member-data-sink-card .member-panel-heading p {
  grid-column: 1 / -1;
  margin: 0;
  color: #6f8198;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.24;
}

.member-data-sink-card .member-data-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  height: 198px;
  margin-top: 24px;
  border: 1px solid #dfe9f0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.member-data-sink-card .member-data-metric {
  display: grid;
  grid-template-columns: 30px minmax(0, max-content);
  justify-content: start;
  align-content: center;
  align-items: center;
  min-height: 108px;
  padding: 14px 18px 13px 28px;
  gap: 10px 10px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 252, 253, 0.88));
  box-shadow: none;
}

.member-data-sink-card .member-data-metric + .member-data-metric {
  border-left: 1px solid #dfe9f0;
}

.member-data-sink-card .member-data-metric .member-icon {
  grid-column: 1;
  grid-row: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #edf6ff;
  color: #2776e6;
}

.member-data-sink-card .member-data-metric .member-icon svg {
  width: 16px;
  height: 16px;
}

.member-data-sink-card .member-data-metric.is-export .member-icon {
  background: #eafbf5;
  color: #12a37c;
}

.member-data-sink-card .member-data-metric.is-update .member-icon {
  background: #f2eaff;
  color: #8558df;
}

.member-data-sink-card .member-data-metric > span:not(.member-icon) {
  grid-column: 2;
  grid-row: 1;
  color: #718196;
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.1;
}

.member-data-sink-card .member-data-metric strong {
  grid-column: 2;
  grid-row: 2;
  color: #07172a;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.member-data-sink-card .member-data-metric strong small {
  font-size: 0.72rem;
  font-weight: 850;
}

.member-data-sink-card .member-data-metric em {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  max-width: 100%;
  color: #718196;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.16;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-data-sink-card .member-data-metric.is-update strong {
  font-size: 1.22rem;
  letter-spacing: 0;
}

.member-data-sink-card .member-data-metric.is-update strong small {
  font-size: 0.76rem;
}

.member-data-sink-card .member-data-action {
  min-height: 70px;
  margin-top: 0;
  border-color: #d9e8ef;
  border-top: 0;
  border-left-width: 1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(250, 253, 254, 0.98), rgba(244, 251, 251, 0.96));
  color: #0d8a91;
  font-size: 0.82rem;
}

.member-data-sink-card .member-data-action .member-icon {
  width: 20px;
  height: 20px;
  margin-left: 6px;
  border-radius: 0;
  background: transparent;
  color: currentColor;
}

.member-data-sink-card .member-data-action .member-icon svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 1320px) {
  .member-home-quota-row.member-metrics-spacious,
  .member-home-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .member-view-member .member-app-shell,
  .member-view-admin .member-app-shell {
    grid-template-columns: 1fr;
  }

  .member-view-member .member-sidebar,
  .member-view-admin .member-sidebar {
    position: static;
  }

  .member-topbar-proxy {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .member-home-quota-row.member-metrics-spacious,
  .member-home-insight-grid,
  .member-quota-focus-body,
  .member-quota-focus-stats,
  .member-status-board {
    grid-template-columns: 1fr;
  }

  .member-view-member .member-topbar,
  .member-view-admin .member-topbar {
    min-height: auto;
    padding: 14px;
  }

  .member-view-member .member-topbar-tools,
  .member-view-admin .member-topbar-tools {
    width: 100%;
  }

  .member-topbar-proxy {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 14px;
  }

  .member-topbar-proxy strong {
    font-size: 0.98rem;
  }

  .member-bar-chart {
    overflow-x: auto;
    padding-left: 46px;
  }

  .member-range-picker,
  .member-range-button {
    width: 100%;
  }

  .member-range-menu {
    right: auto;
    left: 0;
    width: min(322px, calc(100vw - 52px));
  }

  .member-chart-bars {
    grid-template-columns: repeat(var(--member-chart-days, 30), 30px);
    min-width: max-content;
  }

  .member-task-status-card .member-status-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-data-sink-card .member-data-metrics {
    grid-template-columns: 1fr;
  }

  .member-data-sink-card .member-data-metrics {
    height: auto;
  }

  .member-data-sink-card .member-data-metric + .member-data-metric {
    border-top: 1px solid #dfe9f0;
    border-left: 0;
  }
}

/* Restore member topbar to the previous workspace header. */
.member-view-member .member-topbar,
.member-view-admin .member-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: initial;
  min-height: 70px;
  margin: 0;
  padding: 0 30px;
  border-bottom: 1px solid #e1e7ee;
  background: #fff;
}

.member-view-member .member-topbar > div:first-child,
.member-view-admin .member-topbar > div:first-child {
  display: block;
  min-width: 0;
}

.member-return-tool {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 48px;
  padding: 6px 18px 6px 8px;
  border: 1px solid rgba(205, 223, 233, 0.95);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 253, 0.96)),
    #fff;
  color: #102033;
  text-decoration: none;
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.member-return-tool:hover {
  border-color: rgba(130, 205, 207, 0.92);
  box-shadow:
    0 18px 34px rgba(15, 143, 149, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.member-return-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(165, 222, 224, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.96), transparent 42%),
    linear-gradient(135deg, #e8fbf8, #d9f6f4);
  color: #0d8a91;
  box-shadow: inset 0 -5px 12px rgba(15, 143, 149, 0.08);
}

.member-return-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.member-return-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.member-return-copy strong,
.member-return-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-return-copy strong {
  color: #102033;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.08;
}

.member-return-copy em {
  color: #718196;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.1;
}

@media (max-width: 760px) {
  .member-return-tool {
    width: 100%;
    padding-right: 14px;
  }

  .member-return-copy em {
    display: none;
  }
}

.member-view-member .member-topbar-popover,
.member-view-admin .member-topbar-popover {
  display: block;
  position: relative;
}

.member-view-member .member-topbar-tools,
.member-view-admin .member-topbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.member-view-member .member-topbar-label,
.member-view-admin .member-topbar-label {
  display: block;
  margin: 0 0 5px;
  color: #7b8ba0;
  font-size: 0.76rem;
  font-weight: 900;
}

.member-view-member .member-topbar h1,
.member-view-admin .member-topbar h1 {
  max-width: min(720px, 62vw);
  margin: 0;
  overflow: hidden;
  color: #142235;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-view-member .member-tool-button,
.member-view-admin .member-tool-button {
  display: inline-flex;
}

.member-view-member .member-avatar-button,
.member-view-admin .member-avatar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 54px;
  height: 48px;
  padding: 4px;
  border: 1px solid #dce5ee;
  border-radius: 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(15, 143, 149, 0.25), rgba(255, 255, 255, 0)) border-box;
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.16);
}

.member-view-member .member-avatar-button::after,
.member-view-admin .member-avatar-button::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 6px;
  display: block;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.member-view-member .member-avatar-button .member-avatar,
.member-view-admin .member-avatar-button .member-avatar {
  width: 38px;
  height: 38px;
  border-color: #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.24);
}

.member-view-member .member-account-menu,
.member-view-admin .member-account-menu {
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  padding: 12px;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
}

.member-view-member .member-account-menu::before,
.member-view-admin .member-account-menu::before {
  top: -7px;
  right: 15px;
  width: 12px;
  height: 12px;
  border-color: #dce5ee;
  background: #fff;
}

.member-view-member .member-account-menu-head,
.member-view-admin .member-account-menu-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: auto;
  margin-bottom: 0;
  padding: 8px 8px 12px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  border-radius: 0;
  background: transparent;
}

.member-view-member .member-account-menu-head .member-avatar,
.member-view-admin .member-account-menu-head .member-avatar {
  width: 38px;
  height: 38px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.24);
}

.member-view-member .member-account-menu-head strong,
.member-view-admin .member-account-menu-head strong {
  color: #142235;
  font-size: 0.92rem;
}

.member-view-member .member-account-menu-head small,
.member-view-admin .member-account-menu-head small {
  color: #7b8ba0;
  font-size: 0.78rem;
}

.member-view-member .member-menu-action,
.member-view-member .member-menu-logout,
.member-view-admin .member-menu-action,
.member-view-admin .member-menu-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 8px;
  text-align: center;
  box-shadow: none;
}

.member-view-member .member-menu-action,
.member-view-admin .member-menu-action {
  border-color: #d8e2eb;
  background: #f8fbfd;
  color: #0d7c88;
}

.member-view-member .member-menu-logout,
.member-view-admin .member-menu-logout {
  border-color: #fee2e2;
  background: #fff7f7;
  color: #b42318;
}

/* Match the approved left navigation spacing and icon treatment. */
.member-view-member .member-app-shell,
.member-view-admin .member-app-shell {
  grid-template-columns: 268px minmax(0, 1fr);
}

.member-view-member .member-sidebar,
.member-view-admin .member-sidebar {
  padding: 24px 20px 24px 4px;
  background:
    radial-gradient(circle at 20% 5%, rgba(15, 143, 149, 0.13), transparent 28%),
    linear-gradient(180deg, #08233a 0%, #061927 100%);
}

.member-view-member .member-sidebar-brand,
.member-view-admin .member-sidebar-brand {
  margin-left: 16px;
  padding-bottom: 18px;
}

.member-view-member .member-sidebar-nav,
.member-view-admin .member-sidebar-nav {
  display: grid;
  gap: 5px;
  margin: 0;
}

.member-view-member .member-sidebar-nav a,
.member-view-admin .member-sidebar-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 17px;
  border-radius: 8px;
  color: #bccada;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.16);
}

.member-view-member .member-sidebar-nav a.is-active,
.member-view-admin .member-sidebar-nav a.is-active {
  background: linear-gradient(135deg, #0db6ad 0%, #08939b 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 28px rgba(0, 143, 151, 0.26);
}

.member-view-member .member-sidebar-nav a:hover:not(.is-active),
.member-view-admin .member-sidebar-nav a:hover:not(.is-active) {
  background: transparent;
  color: #e0ebf4;
}

.member-view-member .member-side-icon,
.member-view-admin .member-side-icon {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  margin-right: 13px;
  border-radius: 50%;
  background: rgba(139, 169, 195, 0.13);
  color: #b8c8d8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.12);
}

.member-view-member .member-sidebar-nav a.is-active .member-side-icon,
.member-view-admin .member-sidebar-nav a.is-active .member-side-icon {
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.member-view-member .member-side-icon > svg,
.member-view-admin .member-side-icon > svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.member-view-member .member-sidebar-card,
.member-view-admin .member-sidebar-card {
  margin-left: 16px;
}

/* Match the quota usage panel in the dashboard mockup. */
.member-quota-focus-card {
  min-height: 456px;
  padding: 30px 32px 28px;
  gap: 28px;
  grid-template-rows: auto auto auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(15, 143, 149, 0.06), transparent 30%),
    #fff;
}

.member-quota-focus-head {
  display: grid;
  gap: 4px;
}

.member-quota-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.member-quota-title-row .member-icon {
  width: 28px;
  height: 28px;
  margin-top: 0;
  border-radius: 50%;
  background: #e9fbf8;
  color: #0d8a91;
}

.member-quota-title-row h2 {
  margin: 0;
  color: #17263a;
  font-size: 1.32rem;
  font-weight: 950;
  line-height: 1.06;
}

.member-quota-focus-head p {
  margin: 0;
  color: #6f8198;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.24;
}

.member-quota-focus-card .member-quota-focus-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.member-quota-focus-card .member-usage-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 168px;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 52%, transparent 53%),
    conic-gradient(#0f969b var(--member-usage-percent), #edf3f8 0);
  box-shadow:
    inset 0 0 0 1px rgba(15, 143, 149, 0.04),
    0 20px 42px rgba(15, 23, 42, 0.08);
}

.member-quota-focus-card .member-ring-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 0 0 18px;
  color: #07172a;
  line-height: 1;
}

.member-quota-focus-card .member-ring-value strong {
  color: #07172a;
  font-size: 1.85rem;
  font-weight: 950;
  line-height: 1;
}

.member-quota-focus-card .member-ring-value small {
  color: #07172a;
  font-size: 1rem;
  font-weight: 950;
}

.member-quota-focus-card .member-usage-ring em {
  position: absolute;
  top: calc(50% + 28px);
  left: 50%;
  color: #6f8095;
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 900;
  transform: translateX(-50%);
}

.member-quota-focus-card .member-quota-summary-card {
  min-height: 146px;
  padding: 24px 28px;
  border: 1px solid #dde8f1;
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 12%, rgba(15, 143, 149, 0.04), transparent 34%),
    linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.member-quota-focus-card .member-quota-summary-card span,
.member-quota-focus-card .member-quota-summary-card em {
  color: #71839a;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
}

.member-quota-focus-card .member-quota-summary-card strong {
  margin: 8px 0;
  color: #07172a;
  font-size: 1.9rem;
  font-weight: 950;
  line-height: 1;
}

.member-quota-focus-card .member-quota-summary-card strong small {
  margin-left: 4px;
  color: #40566e;
  font-size: 0.9rem;
}

.member-quota-focus-card .member-quota-focus-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-height: 92px;
  overflow: hidden;
  border: 1px solid #e2ebf2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.035);
}

.member-quota-focus-card .member-quota-focus-stats div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 5px 12px;
  align-content: center;
  min-height: 0;
  padding: 18px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.member-quota-focus-card .member-quota-focus-stats div + div {
  border-left: 1px solid #edf2f6;
}

.member-quota-focus-card .member-quota-focus-stats .member-icon {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 50%;
}

.member-quota-focus-card .member-quota-focus-stats .member-quota-stat-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.member-quota-focus-card .member-quota-focus-stats .member-quota-stat-icon .quota-stat-fill {
  fill: currentColor;
  stroke: none;
}

.member-quota-focus-card .member-quota-focus-stats .is-used .member-icon {
  background: #eef6ff;
  color: #2b7be4;
}

.member-quota-focus-card .member-quota-focus-stats .is-remaining .member-icon {
  background: #eafbf4;
  color: #12a56f;
}

.member-quota-focus-card .member-quota-focus-stats .is-percent .member-icon {
  background: #f4edff;
  color: #8b5cf6;
}

.member-quota-focus-card .member-quota-focus-stats span {
  color: #708196;
  font-size: 0.78rem;
  font-weight: 900;
}

.member-quota-focus-card .member-quota-focus-stats strong {
  color: #07172a;
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.2;
}

.member-quota-focus-card .member-quota-focus-stats strong small {
  margin-left: 3px;
  color: #5b6d82;
  font-size: 0.78rem;
}

.member-view-member .member-sidebar-nav .member-nav-disabled {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(188, 202, 218, 0.42);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  cursor: not-allowed;
  user-select: none;
  filter: grayscale(0.35);
}

.member-view-member .member-sidebar-nav .member-nav-disabled .member-side-icon {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  margin-right: 13px;
  border-radius: 50%;
  background: rgba(139, 169, 195, 0.08);
  color: rgba(188, 202, 218, 0.45);
  box-shadow: none;
}

.member-view-member .member-sidebar-nav .member-nav-disabled .member-side-icon > svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.member-sidebar-card button {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.member-sidebar-card button:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.34);
  background: rgba(45, 212, 191, 0.13);
  color: #effffb;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.member-sidebar-card button:disabled {
  cursor: wait;
  opacity: 0.9;
}

.member-sidebar-card button.is-checking {
  position: relative;
  padding-left: 34px;
  border-color: rgba(45, 212, 191, 0.3);
  background: rgba(45, 212, 191, 0.12);
  color: #effffb;
}

.member-sidebar-card button.is-checking::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 17px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid rgba(216, 245, 242, 0.32);
  border-top-color: #d8f5f2;
  border-radius: 50%;
  animation: member-update-spin 0.72s linear infinite;
}

@keyframes member-update-spin {
  to {
    transform: rotate(360deg);
  }
}

.member-update-dialog-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 25, 39, 0.38);
  backdrop-filter: blur(5px);
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.member-update-dialog-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.member-update-dialog {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(420px, calc(100vw - 42px));
  padding: 34px 34px 30px;
  border: 1px solid rgba(205, 224, 231, 0.95);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 18%, rgba(45, 212, 191, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 252, 252, 0.99));
  color: #07172a;
  box-shadow:
    0 34px 70px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.18s ease;
}

.member-update-dialog-backdrop.is-visible .member-update-dialog {
  transform: translateY(0) scale(1);
}

.member-update-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe7ef;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #66788c;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.member-update-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e8fffb, #f4fbff);
  color: #078b8d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 34px rgba(13, 148, 136, 0.14);
}

.member-update-icon .member-icon {
  width: 32px;
  height: 32px;
  margin: 0;
  background: transparent;
  color: inherit;
}

.member-update-dialog p {
  margin: 0 0 7px;
  color: #078b8d;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0;
}

.member-update-dialog h2 {
  margin: 0;
  color: #07172a;
  font-size: 1.55rem;
  line-height: 1.2;
}

.member-update-dialog strong {
  margin-top: 12px;
  padding: 8px 15px;
  border: 1px solid #d6ecee;
  border-radius: 999px;
  background: rgba(237, 253, 250, 0.86);
  color: #078b8d;
  font-size: 0.94rem;
}

.member-update-dialog > span:not(.member-update-icon) {
  margin-top: 14px;
  color: #63758b;
  font-size: 0.94rem;
}

.member-update-confirm {
  min-width: 148px;
  min-height: 42px;
  margin-top: 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f9f9f, #087f87);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(8, 127, 135, 0.22);
}

.member-admin-topbar-link {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px 0 12px;
  border: 1px solid #cfe8ea;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 253, 252, 0.96)),
    #fff;
  color: #0c7f85;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 30px rgba(13, 148, 136, 0.1);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.member-view-member.member-is-admin .member-admin-topbar-link {
  display: inline-flex;
}

.member-admin-topbar-link:hover {
  transform: translateY(-1px);
  border-color: #a9dadc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 36px rgba(13, 148, 136, 0.16);
}

.member-admin-topbar-link span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e7fbf8;
  color: #0c8a8c;
}

.member-admin-topbar-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.member-admin-topbar-link strong {
  color: #11324a;
  font-size: 0.92rem;
  font-weight: 950;
  white-space: nowrap;
}

/* Admin console polish */
.member-view-admin .member-root {
  padding-top: 22px;
}

.member-view-admin .admin-console {
  width: min(100%, 1320px);
  margin-inline: auto;
  gap: 18px;
}

.member-view-admin .admin-console-hero {
  min-height: 118px;
  padding: 24px 28px;
  border-radius: 18px;
  border-color: #d9e7ef;
  background:
    radial-gradient(circle at 88% 28%, rgba(45, 212, 191, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.96));
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.member-view-admin .admin-console-hero h2 {
  font-size: 1.5rem;
  line-height: 1.18;
}

.member-view-admin .admin-console-hero p:not(.member-kicker) {
  margin-top: 8px;
  color: #667991;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.62;
}

.member-view-admin .admin-console-actions .member-button {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(8, 127, 135, 0.16);
}

.member-view-admin .admin-console-actions .member-button.is-secondary {
  border: 1px solid #cfe5ef;
  background: rgba(255, 255, 255, 0.78);
  color: #0a7f86;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.member-view-admin .admin-metrics-grid {
  gap: 14px;
}

.member-view-admin .admin-metrics-grid > div {
  display: grid;
  min-height: 122px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: center;
  justify-items: start;
  column-gap: 14px;
  row-gap: 4px;
  padding: 22px;
  text-align: left;
  border-radius: 16px;
  border-color: #dbe7ef;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.member-view-admin .admin-metrics-grid > div .member-icon {
  grid-row: 1 / span 3;
  width: 44px;
  height: 44px;
  margin: 0;
  align-self: center;
  justify-self: center;
}

.member-view-admin .admin-metrics-grid > div span,
.member-view-admin .admin-metrics-grid > div strong,
.member-view-admin .admin-metrics-grid > div em {
  grid-column: 2;
}

.member-view-admin .admin-metrics-grid > div span {
  color: #596e86;
  font-size: 0.84rem;
  font-weight: 850;
}

.member-view-admin .admin-metrics-grid > div strong {
  color: #07172a;
  font-size: 1.75rem;
  line-height: 1.08;
}

.member-view-admin .admin-metrics-grid > div em {
  color: #72849b;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 750;
}

.member-view-admin .admin-section-grid-primary {
  grid-template-columns: minmax(540px, 1.08fr) minmax(420px, 0.92fr);
  gap: 18px;
}

.member-view-admin .admin-panel {
  padding: 24px;
  border-radius: 18px;
  border-color: #dce8f0;
  background:
    radial-gradient(circle at 92% 12%, rgba(45, 212, 191, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 252, 254, 0.98));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.member-view-admin .admin-panel .member-section-head {
  gap: 14px;
  margin-bottom: 2px;
}

.member-view-admin .admin-panel .member-section-head .member-icon {
  width: 40px;
  height: 40px;
}

.member-view-admin .admin-panel .member-section-head p:not(.member-kicker) {
  margin-top: 8px;
  max-width: 640px;
  color: #6f8096;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.62;
}

.member-view-admin .admin-panel .member-section-head h2 {
  color: #07172a;
  font-size: 1.34rem;
  line-height: 1.22;
}

.member-view-admin .admin-panel .member-kicker {
  margin-bottom: 6px;
  color: #41536a;
  font-size: 0.74rem;
  font-weight: 900;
}

.member-view-admin .admin-code-console {
  gap: 18px;
}

.member-view-admin .admin-code-top {
  display: grid;
  grid-template-columns: minmax(520px, 1.08fr) minmax(380px, 0.92fr);
  gap: 18px;
}

.member-view-admin .admin-code-generator,
.member-view-admin .admin-code-result-panel {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 264px;
  padding: 18px;
  overflow: visible;
  border: 1px solid rgba(199, 221, 232, 0.86);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 253, 253, 0.9)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 36px rgba(15, 23, 42, 0.06);
}

.member-view-admin .admin-load-error {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  max-width: 760px;
  margin: 18px auto 0;
  padding: 26px;
}

.admin-load-error-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #087f86;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(135deg, rgba(221, 252, 248, 0.96), rgba(235, 244, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 26px rgba(14, 116, 144, 0.13);
}

.admin-load-error-mark svg {
  width: 24px;
  height: 24px;
}

.admin-load-error-copy {
  display: grid;
  gap: 7px;
}

.admin-load-error-copy span {
  color: #0f8b94;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-load-error-copy strong {
  color: #07172a;
  font-size: 1.1rem;
  line-height: 1.35;
}

.admin-load-error-copy p {
  margin: 0;
  color: #66778c;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.6;
}

.admin-load-error-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.member-view-admin .admin-code-generator {
  grid-template-rows: auto 1fr auto;
}

.member-view-admin .admin-code-result-panel {
  grid-template-rows: auto 1fr auto;
}

.member-view-admin .admin-code-block-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.member-view-admin .admin-code-block-head .member-icon {
  width: 40px;
  height: 40px;
  color: #087f88;
  background: rgba(224, 255, 250, 0.92);
  box-shadow: none;
}

.member-view-admin .admin-code-block-head strong {
  display: block;
  color: #102033;
  font-size: 1rem;
  font-weight: 950;
}

.member-view-admin .admin-code-block-head span {
  display: block;
  margin-top: 3px;
  color: #718196;
  font-size: 0.78rem;
  font-weight: 760;
}

.member-view-admin .admin-code-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.member-view-admin .admin-code-form-grid label,
.member-view-admin .admin-code-filterbar {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.member-view-admin .admin-code-form-grid label span {
  color: #435870;
  font-size: 0.76rem;
  font-weight: 850;
}

.member-view-admin .admin-code-form-grid input,
.member-view-admin .admin-code-filterbar input,
.member-view-admin .admin-code-form-grid .admin-select-button,
.member-view-admin .admin-code-filterbar .admin-select-button {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(176, 202, 215, 0.78);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 253, 0.94)),
    #ffffff;
  color: #102033;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 820;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(226, 238, 244, 0.66),
    0 10px 20px rgba(15, 23, 42, 0.045);
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.member-view-admin .admin-code-form-grid input::placeholder,
.member-view-admin .admin-code-filterbar input::placeholder,
.member-view-admin .admin-code-result-panel .member-code-output::placeholder {
  color: #8ba0b4;
  font-weight: 760;
}

.member-view-admin .admin-code-form-grid input:focus,
.member-view-admin .admin-code-filterbar input:focus,
.member-view-admin .admin-code-form-grid .admin-select-button:focus-visible,
.member-view-admin .admin-code-filterbar .admin-select-button:focus-visible {
  border-color: rgba(8, 127, 136, 0.52);
  background:
    linear-gradient(180deg, #ffffff, rgba(245, 253, 252, 0.98)),
    #ffffff;
  box-shadow:
    0 0 0 3px rgba(13, 148, 136, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 26px rgba(13, 148, 136, 0.1);
}

.member-view-admin .admin-code-form-grid input[type="number"] {
  -moz-appearance: textfield;
}

.member-view-admin .admin-code-form-grid input[type="number"]::-webkit-outer-spin-button,
.member-view-admin .admin-code-form-grid input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.member-view-admin .admin-code-form-grid .admin-custom-select,
.member-view-admin .admin-code-filterbar .admin-custom-select {
  min-width: 0;
  z-index: 3;
}

.member-view-admin .admin-code-form-grid .admin-custom-select.is-open,
.member-view-admin .admin-code-filterbar .admin-custom-select.is-open {
  z-index: 30;
}

.member-view-admin .admin-code-generator button[type="submit"],
.member-view-admin .admin-code-copy-button,
.member-view-admin .admin-code-filterbar button,
.member-view-admin .admin-code-bulkbar button,
.member-view-admin .admin-code-inline-copy,
.member-view-admin .admin-code-remark-button,
.member-view-admin .admin-code-remark-editor button,
.member-view-admin .admin-code-tabs button,
.member-view-admin .admin-code-pager button {
  border: 1px solid rgba(13, 133, 136, 0.2);
  border-radius: 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.member-view-admin .admin-code-generator button[type="submit"] {
  min-height: 44px;
  background:
    linear-gradient(135deg, #087f88, #12b7a9);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 30px rgba(8, 127, 135, 0.22);
}

.member-view-admin .admin-code-result-panel .member-code-output {
  min-height: 98px;
  padding: 14px;
  border: 1px solid rgba(176, 202, 215, 0.76);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 253, 0.94)),
    #ffffff;
  color: #102033;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1.55;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(226, 238, 244, 0.66),
    0 10px 20px rgba(15, 23, 42, 0.045);
  outline: none;
  resize: none;
}

.member-view-admin .admin-code-result-panel .member-code-output:focus {
  border-color: rgba(8, 127, 136, 0.42);
  box-shadow:
    0 0 0 3px rgba(13, 148, 136, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 26px rgba(13, 148, 136, 0.08);
}

.member-view-admin .admin-code-copy-button,
.member-view-admin .admin-code-filterbar button,
.member-view-admin .admin-code-bulkbar button,
.member-view-admin .admin-code-pager button {
  min-height: 38px;
  padding: 0 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 253, 0.94));
  color: #087f88;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(15, 23, 42, 0.045);
}

.member-view-admin .admin-code-copy-button:disabled,
.member-view-admin .admin-code-inline-copy:disabled,
.member-view-admin .admin-code-pager button:disabled {
  color: #9bb0c3;
  cursor: default;
  opacity: 0.66;
}

.member-view-admin .admin-code-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
  overflow: visible;
}

.member-view-admin .admin-code-stats div {
  --code-stat-accent: #0d8588;
  --code-stat-soft: rgba(13, 148, 136, 0.1);
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(199, 221, 232, 0.86);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 252, 253, 0.92)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 32px rgba(15, 23, 42, 0.055);
}

.member-view-admin .admin-code-stats div:nth-child(2) {
  --code-stat-accent: #0f9f7a;
  --code-stat-soft: rgba(16, 185, 129, 0.12);
}

.member-view-admin .admin-code-stats div:nth-child(3) {
  --code-stat-accent: #2b74e8;
  --code-stat-soft: rgba(59, 130, 246, 0.12);
}

.member-view-admin .admin-code-stats div:nth-child(4) {
  --code-stat-accent: #b7791f;
  --code-stat-soft: rgba(245, 158, 11, 0.13);
}

.member-view-admin .admin-code-stats div::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 18px;
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--code-stat-accent), rgba(255, 255, 255, 0.1));
  box-shadow: 0 8px 16px var(--code-stat-soft);
}

.member-view-admin .admin-code-stats div::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 100%;
  background:
    linear-gradient(110deg, transparent 0 48%, var(--code-stat-soft) 48% 51%, transparent 51% 100%),
    linear-gradient(180deg, var(--code-stat-soft), transparent 72%);
  opacity: 0.9;
  pointer-events: none;
}

.member-view-admin .admin-code-stats div + div {
  border-left-color: rgba(199, 221, 232, 0.86);
}

.member-view-admin .admin-code-stats span,
.member-view-admin .admin-code-history-head span,
.member-view-admin .admin-code-pager span {
  color: #64778f;
  font-size: 0.78rem;
  font-weight: 820;
}

.member-view-admin .admin-code-stats strong {
  position: relative;
  z-index: 1;
  color: #07172a;
  font-size: 1.42rem;
  font-weight: 950;
  line-height: 1.05;
}

.member-view-admin .admin-code-stats span {
  position: relative;
  z-index: 1;
}

.member-view-admin .admin-code-stats em {
  position: relative;
  z-index: 1;
  color: #718196;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 760;
}

.member-view-admin .admin-code-history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
}

.member-view-admin .admin-code-history-head strong {
  display: block;
  color: #102033;
  font-size: 1rem;
  font-weight: 950;
}

.member-view-admin .admin-code-filterbar {
  grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 1fr) auto;
  align-items: center;
  min-width: min(520px, 100%);
}

.member-view-admin .admin-code-bulkbar {
  display: grid;
  grid-template-columns: auto auto minmax(290px, 1fr) minmax(220px, 0.72fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(199, 221, 232, 0.86);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 253, 253, 0.86)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 26px rgba(15, 23, 42, 0.045);
}

.member-view-admin .admin-code-select-page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #26394f;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.member-view-admin .admin-code-selected-count {
  color: #64778f;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.member-view-admin .admin-code-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-view-admin .admin-code-bulkbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  white-space: nowrap;
}

.member-view-admin .admin-code-bulkbar button.is-danger {
  border-color: rgba(220, 38, 38, 0.18);
  color: #dc2626;
}

.member-view-admin .admin-code-bulkbar .member-icon,
.member-view-admin .admin-code-inline-copy .member-icon {
  width: 17px;
  height: 17px;
  margin: 0;
  background: transparent;
  color: currentColor;
  box-shadow: none;
}

.member-view-admin .admin-code-bulk-remark {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.member-view-admin .admin-code-bulk-remark span {
  color: #64778f;
  font-size: 0.72rem;
  font-weight: 850;
}

.member-view-admin .admin-code-bulk-remark input {
  min-height: 38px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(176, 202, 215, 0.78);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 253, 0.94));
  color: #102033;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 820;
  outline: none;
}

.member-view-admin .admin-code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-view-admin .admin-code-tabs button {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.82);
  color: #60748c;
}

.member-view-admin .admin-code-tabs button.is-active {
  border-color: rgba(13, 133, 136, 0.34);
  background: linear-gradient(180deg, rgba(224, 255, 250, 0.98), rgba(255, 255, 255, 0.96));
  color: #087f88;
  box-shadow: 0 10px 22px rgba(13, 133, 136, 0.08);
}

.member-view-admin .admin-code-tabs button strong {
  font-size: 0.78rem;
}

.member-view-admin .admin-code-table-wrap {
  overflow: auto;
  border: 1px solid #dce8f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.member-view-admin .admin-code-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  table-layout: fixed;
}

.member-view-admin .admin-code-table th:nth-child(1),
.member-view-admin .admin-code-table td:nth-child(1) {
  width: 44px;
}

.member-view-admin .admin-code-table th:nth-child(2),
.member-view-admin .admin-code-table td:nth-child(2) {
  width: 25%;
}

.member-view-admin .admin-code-table th:nth-child(3),
.member-view-admin .admin-code-table td:nth-child(3) {
  width: 16%;
}

.member-view-admin .admin-code-table th:nth-child(4),
.member-view-admin .admin-code-table td:nth-child(4) {
  width: 10%;
}

.member-view-admin .admin-code-table th:nth-child(5),
.member-view-admin .admin-code-table td:nth-child(5) {
  width: 10%;
}

.member-view-admin .admin-code-table th:nth-child(6),
.member-view-admin .admin-code-table td:nth-child(6) {
  width: 8%;
}

.member-view-admin .admin-code-table th:nth-child(7),
.member-view-admin .admin-code-table td:nth-child(7) {
  width: 13%;
}

.member-view-admin .admin-code-table th:nth-child(8),
.member-view-admin .admin-code-table td:nth-child(8) {
  width: 86px;
  padding-right: 8px;
  padding-left: 8px;
  text-align: center;
}

.member-view-admin .admin-code-table th,
.member-view-admin .admin-code-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5edf3;
  text-align: left;
  vertical-align: middle;
}

.member-view-admin .admin-code-table th {
  color: #60748c;
  font-size: 0.74rem;
  font-weight: 900;
}

.member-view-admin .admin-code-table td {
  color: #26394f;
  font-size: 0.82rem;
  font-weight: 780;
}

.member-view-admin .admin-code-check-cell {
  padding-right: 6px;
  text-align: center !important;
}

.member-view-admin .admin-code-check-cell input,
.member-view-admin .admin-code-select-page input {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid rgba(141, 171, 188, 0.88);
  border-radius: 6px;
  background:
    linear-gradient(180deg, #ffffff, #f4fbfc);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 16px rgba(15, 23, 42, 0.05);
}

.member-view-admin .admin-code-check-cell input:checked,
.member-view-admin .admin-code-select-page input:checked,
.member-view-admin .admin-code-check-cell input:indeterminate,
.member-view-admin .admin-code-select-page input:indeterminate {
  border-color: #0d8588;
  background: linear-gradient(135deg, #0d8588, #11b9ac);
}

.member-view-admin .admin-code-check-cell input:checked::after,
.member-view-admin .admin-code-select-page input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.member-view-admin .admin-code-check-cell input:indeterminate::after,
.member-view-admin .admin-code-select-page input:indeterminate::after {
  content: "";
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.member-view-admin .admin-code-table tr:last-child td {
  border-bottom: 0;
}

.member-view-admin .admin-code-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.member-view-admin .admin-code-preview {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #102033;
  font-size: 0.9rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-view-admin .admin-code-inline-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 64px;
  min-height: 28px;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(224, 255, 250, 0.86);
  color: #087f88;
  font-size: 0.72rem;
  text-overflow: clip;
  white-space: nowrap;
}

.member-view-admin .admin-code-inline-copy.is-copied {
  border-color: rgba(13, 148, 136, 0.28);
  background: linear-gradient(135deg, #0d8588, #10b8ac);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(13, 148, 136, 0.16);
}

.member-view-admin .admin-code-remark-button {
  max-width: 100%;
  min-height: 32px;
  padding: 0 10px;
  overflow: hidden;
  border-color: rgba(176, 202, 215, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 253, 0.94));
  color: #26394f;
  font-size: 0.78rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-view-admin .admin-code-remark-button.is-empty {
  color: #7b8fa3;
}

.member-view-admin .admin-code-remark-editor {
  display: grid;
  gap: 8px;
}

.member-view-admin .admin-code-remark-editor textarea {
  min-height: 70px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(176, 202, 215, 0.78);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 253, 0.94));
  color: #102033;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.45;
  outline: none;
  resize: vertical;
}

.member-view-admin .admin-code-remark-editor div {
  display: flex;
  gap: 8px;
}

.member-view-admin .admin-code-remark-editor button {
  min-height: 30px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #087f88;
  font-size: 0.76rem;
}

.member-view-admin .admin-code-sub,
.member-view-admin .admin-code-usage + em {
  display: block;
  margin-top: 4px;
  color: #718196;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 740;
}

.member-view-admin .admin-code-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6fb;
  color: #60748c;
  font-size: 0.74rem;
  font-weight: 950;
}

.member-view-admin .admin-code-status.is-available {
  background: rgba(224, 255, 250, 0.96);
  color: #087f88;
}

.member-view-admin .admin-code-status.is-used {
  background: rgba(219, 234, 254, 0.9);
  color: #2b74e8;
}

.member-view-admin .admin-code-status.is-expired {
  background: rgba(254, 243, 199, 0.95);
  color: #a16207;
}

.member-view-admin .admin-code-status.is-disabled {
  background: rgba(254, 226, 226, 0.95);
  color: #dc2626;
}

.member-view-admin .admin-code-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 2px;
}

@media (max-width: 980px) {
  .member-view-admin .admin-code-top,
  .member-view-admin .admin-code-form-grid,
  .member-view-admin .admin-code-stats,
  .member-view-admin .admin-code-bulkbar,
  .member-view-admin .admin-code-filterbar {
    grid-template-columns: 1fr;
  }

  .member-view-admin .admin-code-stats div + div {
    border-left-color: rgba(199, 221, 232, 0.86);
  }

  .member-view-admin .admin-code-history-head {
    align-items: stretch;
    flex-direction: column;
  }
}

.member-view-admin .member-admin-grid {
  gap: 12px;
}

.member-view-admin .member-code-grid,
.member-view-admin .member-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-view-admin .member-code-grid button,
.member-view-admin .member-settings-grid button {
  grid-column: 1 / -1;
  min-height: 44px;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(8, 127, 135, 0.14);
}

.member-view-admin .member-admin-grid input,
.member-view-admin .member-admin-grid select,
.member-view-admin .member-code-output {
  min-height: 44px;
  border-color: #d8e5ee;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  color: #102033;
}

.member-view-admin .member-code-output {
  min-height: 72px;
  padding: 14px;
  resize: vertical;
}

.member-view-admin .admin-subsection-title {
  margin-top: 2px;
  color: #26394f;
  font-size: 0.86rem;
}

.member-view-admin .admin-compact-list {
  gap: 10px;
}

.member-view-admin .admin-compact-list li {
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid #e3edf4;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 253, 0.96));
}

.member-view-admin .admin-compact-list .member-icon {
  width: 34px;
  height: 34px;
}

.member-view-admin .admin-compact-list strong {
  color: #142235;
  font-size: 0.92rem;
}

.member-view-admin .admin-compact-list span {
  color: #6e8096;
  font-size: 0.8rem;
  font-weight: 700;
}

.member-view-admin #admin-settings .admin-compact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-view-admin #admin-settings .admin-compact-list li {
  align-content: start;
  min-height: 112px;
}

.member-view-admin .admin-settings-panel {
  gap: 24px;
}

.member-view-admin .admin-settings-form {
  display: grid;
  gap: 18px;
}

.member-view-admin .admin-settings-lede {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 108px;
  padding: 20px 22px;
  border: 1px solid rgba(187, 213, 226, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(13, 148, 136, 0.1), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 253, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 36px rgba(15, 23, 42, 0.06);
}

.member-view-admin .admin-settings-lede span {
  display: inline-flex;
  width: max-content;
  padding: 5px 10px;
  border: 1px solid rgba(13, 148, 136, 0.16);
  border-radius: 999px;
  background: rgba(236, 254, 255, 0.78);
  color: #0d7c88;
  font-size: 0.74rem;
  font-weight: 900;
}

.member-view-admin .admin-settings-lede strong {
  display: block;
  margin-top: 10px;
  color: #07172a;
  font-size: 1.1rem;
  font-weight: 950;
}

.member-view-admin .admin-settings-lede p {
  margin: 6px 0 0;
  color: #66788e;
  font-size: 0.84rem;
  font-weight: 740;
  line-height: 1.55;
}

.member-view-admin .admin-settings-lede .member-button {
  flex: 0 0 auto;
  min-width: 150px;
  margin: 0;
  box-shadow: 0 16px 30px rgba(8, 127, 135, 0.16);
}

.member-view-admin .admin-settings-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.member-view-admin .admin-setting-card {
  --setting-accent: #0d8588;
  --setting-end: #10b8ac;
  --setting-soft: rgba(13, 148, 136, 0.1);
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 16px;
  min-height: 224px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(187, 213, 226, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(135deg, var(--setting-soft), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 252, 253, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 34px rgba(15, 23, 42, 0.055);
}

.member-view-admin .admin-setting-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--setting-accent), transparent);
}

.member-view-admin .admin-setting-card.is-proxy {
  --setting-accent: #2563eb;
  --setting-end: #60a5fa;
  --setting-soft: rgba(59, 130, 246, 0.11);
}

.member-view-admin .admin-setting-card.is-direct {
  --setting-accent: #d97706;
  --setting-end: #fbbf24;
  --setting-soft: rgba(245, 158, 11, 0.12);
}

.member-view-admin .admin-setting-card.is-security {
  --setting-accent: #0f766e;
  --setting-end: #14b8a6;
  --setting-soft: rgba(20, 184, 166, 0.12);
}

.member-view-admin .admin-setting-icon .member-icon {
  width: 48px;
  height: 48px;
  margin: 0;
  background: linear-gradient(135deg, var(--setting-accent), var(--setting-end));
  color: #ffffff;
  box-shadow:
    0 14px 24px var(--setting-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.member-view-admin .admin-setting-copy {
  display: grid;
  gap: 7px;
}

.member-view-admin .admin-setting-copy strong {
  color: #0e2034;
  font-size: 1rem;
  font-weight: 950;
}

.member-view-admin .admin-setting-copy em {
  color: #6b7f96;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.55;
}

.member-view-admin .admin-setting-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid rgba(176, 202, 215, 0.82);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 253, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(226, 238, 244, 0.66),
    0 10px 20px rgba(15, 23, 42, 0.045);
}

.member-view-admin .admin-setting-control input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #102033;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 900;
  outline: none;
}

.member-view-admin .admin-setting-control i {
  padding: 0 14px;
  color: #6e8096;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.member-view-admin .admin-setting-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 0 8px 0 16px;
  border: 1px solid rgba(176, 202, 215, 0.82);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 253, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(226, 238, 244, 0.66),
    0 10px 20px rgba(15, 23, 42, 0.045);
}

.member-view-admin .admin-setting-toggle input {
  order: 2;
  appearance: none;
  width: 48px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(121, 144, 164, 0.32);
  border-radius: 999px;
  background: linear-gradient(180deg, #edf3f6, #dfe9ee);
  cursor: pointer;
  position: relative;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.member-view-admin .admin-setting-toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
  transition: transform 0.16s ease;
}

.member-view-admin .admin-setting-toggle input:checked {
  border-color: rgba(15, 118, 110, 0.36);
  background: linear-gradient(135deg, #0f9f8c, #14b8a6);
}

.member-view-admin .admin-setting-toggle input:checked::after {
  transform: translateX(20px);
}

.member-view-admin .admin-setting-toggle i {
  color: #52687d;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.member-view-admin .admin-settings-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-view-admin .admin-settings-guide li {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
  border: 1px solid rgba(199, 221, 232, 0.86);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 252, 253, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 28px rgba(15, 23, 42, 0.05);
}

.member-view-admin .admin-settings-guide .member-icon {
  width: 36px;
  height: 36px;
  margin: 0;
}

.member-view-admin .admin-settings-guide strong {
  color: #142235;
  font-size: 0.92rem;
  font-weight: 950;
}

.member-view-admin .admin-settings-guide span {
  color: #6e8096;
  font-size: 0.79rem;
  font-weight: 740;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .member-view-admin .admin-settings-lede {
    align-items: stretch;
    flex-direction: column;
  }

  .member-view-admin .admin-settings-lede .member-button {
    width: 100%;
  }

  .member-view-admin .admin-settings-guide {
    grid-template-columns: 1fr;
  }
}

.member-view-admin .admin-system-panel,
.member-view-admin .admin-log-panel {
  gap: 24px;
}

.member-view-admin .admin-system-status,
.member-view-admin .admin-log-summary {
  display: grid;
  gap: 14px;
}

.member-view-admin .admin-system-status {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-view-admin .admin-log-summary {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(280px, 1.4fr);
}

.member-view-admin .admin-system-status div,
.member-view-admin .admin-log-summary div {
  --status-accent: #0d8588;
  --status-soft: rgba(13, 148, 136, 0.1);
  position: relative;
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 108px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(187, 213, 226, 0.9);
  border-radius: 16px;
  background:
    linear-gradient(90deg, var(--status-soft), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 252, 253, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(226, 238, 244, 0.62),
    0 16px 32px rgba(15, 23, 42, 0.055);
}

.member-view-admin .admin-system-status div:nth-child(2),
.member-view-admin .admin-log-summary div:nth-child(2) {
  --status-accent: #2563eb;
  --status-soft: rgba(59, 130, 246, 0.1);
}

.member-view-admin .admin-system-status div:nth-child(3),
.member-view-admin .admin-log-summary div:nth-child(3) {
  --status-accent: #d97706;
  --status-soft: rgba(245, 158, 11, 0.12);
}

.member-view-admin .admin-system-status div:nth-child(4) {
  --status-accent: #7c3aed;
  --status-soft: rgba(124, 58, 237, 0.1);
}

.member-view-admin .admin-system-status div::before,
.member-view-admin .admin-log-summary div::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 18px;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--status-accent), transparent);
}

.member-view-admin .admin-system-status span,
.member-view-admin .admin-log-summary span {
  padding-top: 12px;
  color: #64778f;
  font-size: 0.76rem;
  font-weight: 850;
}

.member-view-admin .admin-system-status strong,
.member-view-admin .admin-log-summary strong {
  overflow: hidden;
  color: #07172a;
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-view-admin .admin-log-summary strong {
  font-size: 1.08rem;
}

.member-view-admin .admin-system-status em,
.member-view-admin .admin-log-summary em {
  color: #718196;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 760;
}

.member-view-admin .admin-system-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.member-view-admin .admin-system-card {
  --system-accent: #0d8588;
  --system-end: #10b8ac;
  --system-soft: rgba(13, 148, 136, 0.1);
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(187, 213, 226, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(135deg, var(--system-soft), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 252, 253, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 34px rgba(15, 23, 42, 0.055);
}

.member-view-admin .admin-system-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--system-accent), transparent);
}

.member-view-admin .admin-system-card.is-audit {
  --system-accent: #2563eb;
  --system-end: #60a5fa;
  --system-soft: rgba(59, 130, 246, 0.11);
}

.member-view-admin .admin-system-card.is-runtime {
  --system-accent: #d97706;
  --system-end: #fbbf24;
  --system-soft: rgba(245, 158, 11, 0.12);
}

.member-view-admin .admin-system-card .member-icon {
  width: 48px;
  height: 48px;
  margin: 0 0 8px;
  background: linear-gradient(135deg, var(--system-accent), var(--system-end));
  color: #ffffff;
  box-shadow:
    0 14px 24px var(--system-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.member-view-admin .admin-system-card span {
  color: var(--system-accent);
  font-size: 0.76rem;
  font-weight: 900;
}

.member-view-admin .admin-system-card strong {
  color: #0e2034;
  font-size: 1.04rem;
  font-weight: 950;
}

.member-view-admin .admin-system-card p {
  margin: 0;
  color: #6b7f96;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.58;
}

.member-view-admin .admin-log-list {
  display: grid;
  gap: 12px;
}

.member-view-admin .admin-log-row {
  display: grid;
  grid-template-columns: 48px 48px minmax(0, 1fr) minmax(210px, 0.58fr) 168px;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid rgba(199, 221, 232, 0.86);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(13, 148, 136, 0.07), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 253, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 28px rgba(15, 23, 42, 0.05);
}

.member-view-admin .admin-log-index {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(13, 148, 136, 0.16);
  border-radius: 14px;
  background: rgba(236, 254, 255, 0.78);
  color: #0d7c88;
  font-size: 0.8rem;
  font-weight: 950;
}

.member-view-admin .admin-log-icon .member-icon {
  width: 42px;
  height: 42px;
  margin: 0;
}

.member-view-admin .admin-log-main,
.member-view-admin .admin-log-actor {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.member-view-admin .admin-log-main strong,
.member-view-admin .admin-log-actor strong {
  overflow: hidden;
  color: #102033;
  font-size: 0.95rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-view-admin .admin-log-main em,
.member-view-admin .admin-log-actor em {
  overflow: hidden;
  color: #718196;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-view-admin .admin-log-row time {
  justify-self: end;
  color: #53677e;
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}

.member-view-admin .admin-log-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 2px;
}

.member-view-admin .admin-log-pager button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #dce8f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #087f88;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.member-view-admin .admin-log-pager button:disabled {
  color: #9bb0c3;
  cursor: default;
  opacity: 0.66;
}

.member-view-admin .admin-log-pager span {
  color: #60748c;
  font-size: 0.84rem;
  font-weight: 850;
}

@media (max-width: 980px) {
  .member-view-admin .admin-system-status,
  .member-view-admin .admin-log-summary,
  .member-view-admin .admin-system-card-grid {
    grid-template-columns: 1fr;
  }

  .member-view-admin .admin-log-row {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }

  .member-view-admin .admin-log-index {
    display: none;
  }

  .member-view-admin .admin-log-icon {
    grid-row: 1 / span 3;
  }

  .member-view-admin .admin-log-actor,
  .member-view-admin .admin-log-row time {
    grid-column: 2;
  }

  .member-view-admin .admin-log-row time {
    justify-self: start;
  }
}

.member-view-admin .admin-runtime-board {
  gap: 12px;
}

.member-view-admin .admin-runtime-board div {
  min-height: 104px;
  border-radius: 13px;
}

.member-view-admin .admin-task-panel {
  gap: 18px;
}

.member-view-admin .admin-task-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.member-view-admin .admin-task-stat {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
  min-height: 96px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #dce8f0;
  border-radius: 15px;
  background:
    radial-gradient(circle at 86% 12%, var(--task-stat-glow, rgba(45, 212, 191, 0.12)), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 254, 0.96));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.member-view-admin .admin-task-stat.is-blue {
  --task-stat-glow: rgba(59, 130, 246, 0.14);
  --task-stat-color: #2b74e8;
  --task-stat-icon-bg: rgba(219, 234, 254, 0.86);
}

.member-view-admin .admin-task-stat.is-teal {
  --task-stat-glow: rgba(20, 184, 166, 0.15);
  --task-stat-color: #0d8588;
  --task-stat-icon-bg: rgba(224, 255, 250, 0.86);
}

.member-view-admin .admin-task-stat.is-green {
  --task-stat-glow: rgba(34, 197, 94, 0.14);
  --task-stat-color: #0ea47f;
  --task-stat-icon-bg: rgba(220, 252, 231, 0.86);
}

.member-view-admin .admin-task-stat.is-red {
  --task-stat-glow: rgba(248, 113, 113, 0.14);
  --task-stat-color: #ef4444;
  --task-stat-icon-bg: rgba(254, 226, 226, 0.9);
}

.member-view-admin .admin-task-stat .member-icon {
  grid-row: 1 / 4;
  width: 38px;
  height: 38px;
  background: var(--task-stat-icon-bg, rgba(224, 255, 250, 0.82));
  color: var(--task-stat-color, #0d8588);
}

.member-view-admin .admin-task-stat span {
  color: #60748c;
  font-size: 0.78rem;
  font-weight: 850;
}

.member-view-admin .admin-task-stat strong {
  color: var(--task-stat-color, #07172a);
  font-size: 1.55rem;
  line-height: 1.05;
}

.member-view-admin .admin-task-stat em {
  overflow: hidden;
  color: #718196;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-view-admin .admin-task-result-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
}

.member-view-admin .admin-task-result-strip div {
  --task-result-accent: #2563eb;
  --task-result-soft: rgba(59, 130, 246, 0.11);
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(199, 221, 232, 0.86);
  border-radius: 16px;
  background:
    linear-gradient(115deg, transparent 0 64%, var(--task-result-soft) 64% 66%, transparent 66% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 252, 253, 0.92)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 32px rgba(15, 23, 42, 0.055);
}

.member-view-admin .admin-task-result-strip div:nth-child(2) {
  --task-result-accent: #0f9f7a;
  --task-result-soft: rgba(16, 185, 129, 0.12);
}

.member-view-admin .admin-task-result-strip div:nth-child(3) {
  --task-result-accent: #dc2626;
  --task-result-soft: rgba(248, 113, 113, 0.12);
}

.member-view-admin .admin-task-result-strip div::before {
  content: "";
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--task-result-accent), rgba(255, 255, 255, 0.1));
  box-shadow: 0 8px 16px var(--task-result-soft);
}

.member-view-admin .admin-task-result-strip div + div {
  border-left-color: rgba(199, 221, 232, 0.86);
}

.member-view-admin .admin-task-result-strip span {
  position: relative;
  z-index: 1;
  color: #64778f;
  font-size: 0.78rem;
  font-weight: 850;
}

.member-view-admin .admin-task-result-strip strong {
  position: relative;
  z-index: 1;
  color: #07172a;
  font-size: 1.42rem;
  font-weight: 950;
  line-height: 1.05;
}

.member-view-admin .admin-task-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid #e5edf3;
}

.member-view-admin .admin-task-list-head span {
  display: block;
  color: #142235;
  font-size: 1rem;
  font-weight: 950;
}

.member-view-admin .admin-task-list-head em {
  display: block;
  margin-top: 4px;
  color: #718196;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 720;
}

.member-view-admin .admin-task-list-head strong {
  color: #0d8588;
  font-size: 0.84rem;
  font-weight: 900;
}

.member-view-admin .admin-task-list {
  display: grid;
  gap: 10px;
}

.member-view-admin .admin-task-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 2px;
}

.member-view-admin .admin-task-pager button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #dce8f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #087f88;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.member-view-admin .admin-task-pager button:disabled {
  color: #9bb0c3;
  cursor: default;
  opacity: 0.66;
}

.member-view-admin .admin-task-pager span {
  color: #60748c;
  font-size: 0.84rem;
  font-weight: 850;
}

.member-view-admin .admin-task-row {
  display: grid;
  grid-template-columns: 22px minmax(260px, 1.05fr) minmax(360px, 1.35fr) auto;
  gap: 12px 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dfeaf2;
  border-radius: 15px;
  background:
    radial-gradient(circle at 96% 10%, rgba(20, 184, 166, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 254, 0.96));
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.member-view-admin .admin-task-row:hover {
  border-color: rgba(13, 133, 136, 0.28);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.member-view-admin .admin-task-row.is-failed {
  background:
    radial-gradient(circle at 96% 10%, rgba(248, 113, 113, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 250, 0.96));
}

.member-view-admin .admin-task-row.is-running {
  background:
    radial-gradient(circle at 96% 10%, rgba(59, 130, 246, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96));
}

.member-view-admin .admin-task-row.is-queued {
  background:
    radial-gradient(circle at 96% 10%, rgba(245, 158, 11, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 246, 0.96));
}

.member-view-admin .admin-task-row.is-paused {
  background:
    radial-gradient(circle at 96% 10%, rgba(100, 116, 139, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.member-view-admin .admin-task-row-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.member-view-admin .admin-task-row-main .member-icon {
  width: 38px;
  height: 38px;
}

.member-view-admin .admin-task-row-main strong {
  display: block;
  overflow: hidden;
  color: #102033;
  font-size: 0.92rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-view-admin .admin-task-row-main span {
  display: block;
  margin-top: 4px;
  color: #718196;
  font-size: 0.78rem;
  font-weight: 760;
}

.member-view-admin .admin-task-row-main small {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 7px;
  color: #0d8588;
  font-size: 0.74rem;
  font-weight: 850;
}

.member-view-admin .admin-task-row-main small .member-icon {
  width: 19px;
  height: 19px;
  color: #0d8588;
  background: rgba(224, 255, 250, 0.92);
  box-shadow: none;
}

.member-view-admin .admin-task-row-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.member-view-admin .admin-task-row-stats span {
  display: grid;
  gap: 3px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #e3edf4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.member-view-admin .admin-task-row-stats em {
  color: #718196;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.member-view-admin .admin-task-row-stats strong {
  color: #07172a;
  font-size: 0.95rem;
  line-height: 1;
}

.member-view-admin .admin-task-row-action {
  min-width: 96px;
  padding: 11px 14px;
  border: 1px solid rgba(13, 133, 136, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.96), rgba(255, 255, 255, 0.94));
  color: #087f88;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(13, 133, 136, 0.08);
  cursor: pointer;
}

.member-view-admin .admin-task-row-action:hover {
  border-color: rgba(13, 133, 136, 0.34);
  background: linear-gradient(180deg, rgba(224, 255, 250, 0.98), rgba(255, 255, 255, 0.96));
}

.member-view-admin .admin-task-row-progress {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f0f6;
}

.member-view-admin .admin-task-row-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #13c9b4, #087f88);
}

.admin-task-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(10px);
}

.admin-task-modal {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 16px;
  width: min(980px, calc(100vw - 56px));
  max-height: min(760px, calc(100vh - 56px));
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(207, 224, 235, 0.92);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(45, 212, 191, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 254, 0.98));
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.admin-task-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid #dce8f0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #64778f;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.admin-task-modal-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding-right: 50px;
}

.admin-task-modal-head .member-icon {
  width: 46px;
  height: 46px;
}

.admin-task-modal-head span {
  display: block;
  color: #0d8588;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-task-modal-head strong {
  display: block;
  overflow: hidden;
  color: #07172a;
  font-size: 1.28rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-task-modal-head em {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #718196;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-task-modal-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #dce8f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.admin-task-modal-summary span {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
}

.admin-task-modal-summary span + span {
  border-left: 1px solid #dce8f0;
}

.admin-task-modal-summary em {
  color: #718196;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 820;
}

.admin-task-modal-summary strong {
  overflow: hidden;
  color: #07172a;
  font-size: 1.05rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-task-result-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.admin-task-result-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #dfeaf2;
  border-radius: 15px;
  background:
    radial-gradient(circle at 96% 10%, rgba(20, 184, 166, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.82);
}

.admin-task-result-row.is-failed {
  background:
    radial-gradient(circle at 96% 10%, rgba(248, 113, 113, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.82);
}

.admin-task-result-index {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.admin-task-result-index strong {
  color: #0d8588;
  font-size: 1rem;
  font-weight: 950;
}

.admin-task-result-index span {
  color: #718196;
  font-size: 0.72rem;
  font-weight: 850;
}

.admin-task-result-main {
  min-width: 0;
}

.admin-task-result-main strong {
  display: block;
  overflow: hidden;
  color: #102033;
  font-size: 0.92rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-task-result-main span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #718196;
  font-size: 0.78rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-task-snapshot-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 96px;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(13, 133, 136, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.96), rgba(255, 255, 255, 0.94));
  color: #087f88;
  font-size: 0.78rem;
  font-weight: 950;
  text-decoration: none;
}

.admin-task-snapshot-link .member-icon {
  width: 20px;
  height: 20px;
  background: rgba(224, 255, 250, 0.92);
  box-shadow: none;
}

.admin-task-snapshot-link.is-disabled {
  color: #8aa0b5;
  cursor: default;
  opacity: 0.7;
}

.admin-task-modal-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 2px;
}

.admin-task-modal-pager button {
  min-width: 86px;
  padding: 10px 14px;
  border: 1px solid #dce8f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #087f88;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.admin-task-modal-pager button:disabled {
  color: #9bb0c3;
  cursor: default;
  opacity: 0.66;
}

.admin-task-modal-pager span,
.admin-task-modal-loading,
.admin-task-result-empty {
  color: #718196;
  font-size: 0.82rem;
  font-weight: 760;
}

.admin-task-modal-loading,
.admin-task-result-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px solid #dce8f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.member-view-admin .admin-task-row-check {
  grid-column: 1;
  align-self: center;
  justify-self: center;
}

.member-view-admin .admin-task-row-main {
  grid-column: 2;
}

.member-view-admin .admin-task-row-stats {
  grid-column: 3;
}

.member-view-admin .admin-task-row-action {
  grid-column: 4;
}

.member-task-detail-modal {
  width: min(1060px, calc(100vw - 56px));
}

.member-task-detail-row {
  grid-template-columns: 76px minmax(180px, 0.72fr) minmax(260px, 1fr);
}

.member-task-detail-path {
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
}

.member-task-detail-path span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .member-view-admin .admin-task-stat-grid,
  .member-view-admin .admin-task-row-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-view-admin .admin-task-result-strip {
    grid-template-columns: 1fr;
  }

  .member-view-admin .admin-task-row {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .member-view-admin .admin-task-row-check {
    grid-column: 1;
  }

  .member-view-admin .admin-task-row-main {
    grid-column: 2;
  }

  .member-view-admin .admin-task-row-stats,
  .member-view-admin .admin-task-row-action,
  .member-view-admin .admin-task-row-progress {
    grid-column: 1 / 3;
  }

  .member-view-admin .admin-task-row-action {
    width: 100%;
  }

  .admin-task-modal-summary,
  .admin-task-result-row {
    grid-template-columns: 1fr;
  }

  .admin-task-modal-summary span + span {
    border-top: 1px solid #dce8f0;
    border-left: 0;
  }

  .admin-task-result-row {
    align-items: stretch;
  }

  .member-snapshot-task-action {
    width: 100%;
  }
}

.member-view-admin .member-admin-table-grid,
.member-view-admin .member-admin-insight-grid {
  gap: 18px;
}

.member-view-admin .admin-log-panel {
  margin-bottom: 24px;
}

@media (max-width: 1180px) {
  .member-view-admin .admin-section-grid-primary,
  .member-view-admin #admin-settings .admin-compact-list,
  .member-view-admin .admin-settings-cards {
    grid-template-columns: 1fr;
  }

  .member-view-admin .admin-settings-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

.member-view-admin .admin-console-page-codes,
.member-view-admin .admin-console-page-plans,
.member-view-admin .admin-console-page-settings,
.member-view-admin .admin-console-page-tasks,
.member-view-admin .admin-console-page-system,
.member-view-admin .admin-console-page-users,
.member-view-admin .admin-console-page-logs {
  width: min(100%, 1040px);
}

.member-view-admin .admin-console-page-codes {
  width: min(100%, 1220px);
}

.member-view-admin .admin-console-page-plans {
  width: min(100%, 1180px);
}

.member-view-admin .admin-console-page-settings {
  width: min(100%, 1180px);
}

.member-view-admin .admin-console-page-system,
.member-view-admin .admin-console-page-logs {
  width: min(100%, 1180px);
}

.member-view-admin .admin-plans-panel {
  gap: 22px;
}

.member-view-admin .admin-plans-form {
  display: grid;
  gap: 28px;
}

.member-view-admin .admin-plan-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.member-view-admin .admin-plan-summary div {
  --summary-accent: #0d8588;
  --summary-soft: rgba(13, 148, 136, 0.1);
  --summary-line: rgba(13, 148, 136, 0.26);
  position: relative;
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 112px;
  padding: 22px 20px 18px;
  overflow: hidden;
  border: 1px solid rgba(187, 213, 226, 0.9);
  border-radius: 16px;
  background:
    linear-gradient(90deg, var(--summary-soft), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 252, 253, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(226, 238, 244, 0.62),
    0 18px 34px rgba(15, 23, 42, 0.06);
}

.member-view-admin .admin-plan-summary div:nth-child(2) {
  --summary-accent: #0f9f7a;
  --summary-soft: rgba(16, 185, 129, 0.11);
  --summary-line: rgba(16, 185, 129, 0.28);
}

.member-view-admin .admin-plan-summary div:nth-child(3) {
  --summary-accent: #2563eb;
  --summary-soft: rgba(59, 130, 246, 0.11);
  --summary-line: rgba(59, 130, 246, 0.28);
}

.member-view-admin .admin-plan-summary div:nth-child(4) {
  --summary-accent: #d97706;
  --summary-soft: rgba(245, 158, 11, 0.13);
  --summary-line: rgba(245, 158, 11, 0.3);
}

.member-view-admin .admin-plan-summary div:nth-child(5) {
  --summary-accent: #7c3aed;
  --summary-soft: rgba(124, 58, 237, 0.11);
  --summary-line: rgba(124, 58, 237, 0.26);
}

.member-view-admin .admin-plan-summary div::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 18px;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--summary-accent), var(--summary-line));
  box-shadow: 0 8px 16px var(--summary-soft);
}

.member-view-admin .admin-plan-summary div::after {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--summary-line), transparent);
}

.member-view-admin .admin-plan-summary span {
  padding-top: 12px;
  color: #64778f;
  font-size: 0.76rem;
  font-weight: 850;
}

.member-view-admin .admin-plan-summary strong {
  color: #07172a;
  font-size: 1.46rem;
  font-weight: 950;
  line-height: 1.05;
}

.member-view-admin .admin-plan-summary em {
  color: #718196;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 760;
}

.member-view-admin .admin-plan-list {
  display: grid;
  gap: 22px;
}

.member-view-admin .admin-plan-card {
  --plan-accent: #0d8588;
  --plan-soft: rgba(13, 148, 136, 0.1);
  --quota-a: #67e8f9;
  --quota-b: #0891b2;
  --quota-shadow: rgba(8, 145, 178, 0.22);
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.42fr);
  align-items: center;
  gap: 24px;
  min-height: 138px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(199, 221, 232, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(90deg, var(--plan-soft), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 253, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 38px rgba(15, 23, 42, 0.06);
}

.member-view-admin .admin-plan-card.is-level-free {
  --plan-accent: #64748b;
  --plan-soft: rgba(243, 247, 251, 0.9);
  --quota-a: #cbd5e1;
  --quota-b: #64748b;
  --quota-shadow: rgba(100, 116, 139, 0.2);
}

.member-view-admin .admin-plan-card.is-level-starter {
  --plan-accent: #0f9f7a;
  --plan-soft: rgba(16, 185, 129, 0.12);
  --quota-a: #67e8f9;
  --quota-b: #0891b2;
  --quota-shadow: rgba(8, 145, 178, 0.22);
}

.member-view-admin .admin-plan-card.is-level-pro {
  --plan-accent: #2563eb;
  --plan-soft: rgba(59, 130, 246, 0.12);
  --quota-a: #93c5fd;
  --quota-b: #2563eb;
  --quota-shadow: rgba(37, 99, 235, 0.24);
}

.member-view-admin .admin-plan-card.is-level-business {
  --plan-accent: #d97706;
  --plan-soft: rgba(255, 244, 214, 0.88);
  --quota-a: #fbbf24;
  --quota-b: #d97706;
  --quota-shadow: rgba(217, 119, 6, 0.3);
}

.member-view-admin .admin-plan-card.is-level-flagship {
  --plan-accent: #7c3aed;
  --plan-soft: rgba(245, 243, 255, 0.88);
  --quota-a: #c4b5fd;
  --quota-b: #7c3aed;
  --quota-shadow: rgba(124, 58, 237, 0.26);
}

.member-view-admin .admin-plan-card.is-disabled {
  opacity: 0.72;
}

.member-view-admin .admin-plan-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--plan-accent), rgba(255, 255, 255, 0.1));
}

.member-view-admin .admin-plan-card-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.member-view-admin .admin-plan-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--plan-accent);
  background: transparent;
  box-shadow: none;
}

.member-view-admin .admin-plan-mark .member-icon {
  width: 24px;
  height: 24px;
  margin: 0;
  background: transparent;
  color: currentColor;
  box-shadow: none;
}

.member-view-admin .admin-plan-mark .member-quota-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--quota-a), var(--quota-b));
  color: #ffffff;
  box-shadow:
    0 14px 24px var(--quota-shadow),
    inset 0 -8px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.member-view-admin .admin-plan-mark .member-quota-icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
}

.member-view-admin .admin-plan-mark .member-quota-icon svg {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
}

.member-view-admin .admin-plan-card-head strong {
  display: block;
  overflow: hidden;
  color: #102033;
  font-size: 1.02rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-view-admin .admin-plan-card-head em {
  display: block;
  margin-top: 4px;
  color: #718196;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 780;
}

.member-view-admin .admin-plan-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #60748c;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.member-view-admin .admin-plan-switch input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 42px;
  height: 24px;
  margin: 0;
  border: 1px solid rgba(141, 171, 188, 0.78);
  border-radius: 999px;
  background: linear-gradient(180deg, #eef5f8, #ffffff);
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.member-view-admin .admin-plan-switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
  transition: transform 0.16s ease;
}

.member-view-admin .admin-plan-switch input:checked {
  border-color: rgba(13, 148, 136, 0.44);
  background: linear-gradient(135deg, #0d8588, #10b8ac);
}

.member-view-admin .admin-plan-switch input:checked::after {
  transform: translateX(18px);
}

.member-view-admin .admin-plan-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.member-view-admin .admin-plan-fields label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.member-view-admin .admin-plan-fields label > span {
  color: #435870;
  font-size: 0.76rem;
  font-weight: 850;
}

.member-view-admin .admin-plan-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid rgba(176, 202, 215, 0.78);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 253, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(226, 238, 244, 0.66),
    0 10px 20px rgba(15, 23, 42, 0.045);
}

.member-view-admin .admin-plan-input input {
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #102033;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  outline: none;
}

.member-view-admin .admin-plan-input em {
  padding: 0 12px;
  color: #718196;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 850;
}

.member-view-admin .admin-plan-savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(199, 221, 232, 0.86);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 253, 0.92)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 30px rgba(15, 23, 42, 0.05);
}

.member-view-admin .admin-plan-savebar strong {
  display: block;
  color: #102033;
  font-size: 0.9rem;
  font-weight: 950;
}

.member-view-admin .admin-plan-savebar span {
  display: block;
  margin-top: 4px;
  color: #718196;
  font-size: 0.78rem;
  font-weight: 780;
}

.member-view-admin .admin-plan-savebar .member-button {
  min-width: 150px;
  margin: 0;
  box-shadow: 0 14px 28px rgba(8, 127, 135, 0.16);
}

.member-view-admin .admin-plan-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 180px;
  padding: 28px;
  border: 1px dashed rgba(176, 202, 215, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

@media (max-width: 1180px) {
  .member-view-admin .admin-plan-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .member-view-admin .admin-plan-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .member-view-admin .admin-plan-summary,
  .member-view-admin .admin-plan-fields {
    grid-template-columns: 1fr;
  }

  .member-view-admin .admin-plan-savebar {
    align-items: stretch;
    flex-direction: column;
  }
}

.member-view-admin .admin-users-panel {
  gap: 18px;
}

.member-view-admin .admin-user-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #dfeaf2;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 254, 0.94));
  color: #60748c;
  font-size: 0.84rem;
  font-weight: 800;
}

.member-view-admin .admin-user-toolbar span:first-child {
  color: #102033;
  font-size: 0.92rem;
  font-weight: 950;
}

.member-view-admin .admin-user-list {
  display: grid;
  gap: 14px;
}

.member-view-admin .admin-user-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dce8f0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 14%, rgba(45, 212, 191, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 254, 0.96));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.member-view-admin .admin-user-card.is-disabled {
  background:
    radial-gradient(circle at 92% 14%, rgba(248, 113, 113, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 250, 0.96));
}

.member-view-admin .admin-user-profile {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.member-view-admin .admin-user-avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 17px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(145deg, #e9fbf9, #c7f2ec);
  color: #0d8588;
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 24px rgba(13, 148, 136, 0.12);
}

.member-view-admin .admin-user-avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  max-width: 100%;
  padding: 0 3px;
  overflow: hidden;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.member-view-admin .admin-user-avatar img {
  position: absolute;
  z-index: 1;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border-radius: inherit;
  object-fit: cover;
}

.member-view-admin .admin-user-profile strong {
  display: block;
  overflow: hidden;
  color: #102033;
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-view-admin .admin-user-profile > div > span {
  display: block;
  margin-top: 5px;
  color: #72849b;
  font-size: 0.78rem;
  font-weight: 760;
}

.member-view-admin .admin-user-profile .admin-user-avatar-fallback {
  display: grid;
  place-items: center;
  margin: 0;
  color: #0d8588;
  font-size: 0.78rem;
  line-height: 1;
}

.member-view-admin .admin-user-verify {
  justify-self: end;
  min-width: 64px;
  padding: 7px 10px;
  border: 1px solid #dfeaf2;
  border-radius: 999px;
  background: #f6f9fc;
  color: #74859a;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.member-view-admin .admin-user-verify.is-verified {
  border-color: rgba(20, 184, 166, 0.22);
  background: #eafff9;
  color: #0d8588;
}

.member-view-admin .admin-user-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.member-view-admin .admin-user-controls label {
  display: grid;
  gap: 7px;
  color: #60748c;
  font-size: 0.76rem;
  font-weight: 850;
}

.member-view-admin .admin-user-controls input,
.member-view-admin .admin-user-controls select {
  min-height: 40px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid #d8e5ee;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.94);
  color: #102033;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 760;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.member-view-admin .admin-custom-select {
  position: relative;
  min-width: 0;
}

.member-view-admin .admin-custom-select .admin-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.member-view-admin .admin-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid #d8e5ee;
  border-radius: 11px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.92), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 254, 0.95));
  color: #102033;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 820;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(15, 23, 42, 0.04);
}

.member-view-admin .admin-select-button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #34516c;
  border-bottom: 2px solid #34516c;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  transition: transform 0.16s ease;
}

.member-view-admin .admin-custom-select.is-open {
  z-index: 40;
}

.member-view-admin .admin-custom-select.is-open .admin-select-button {
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow:
    0 0 0 3px rgba(20, 184, 166, 0.08),
    0 14px 28px rgba(13, 148, 136, 0.12);
}

.member-view-admin .admin-custom-select.is-open .admin-select-button::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.member-view-admin .admin-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 42;
  display: grid;
  gap: 4px;
  max-height: 232px;
  padding: 7px;
  overflow: auto;
  border: 1px solid rgba(187, 210, 222, 0.9);
  border-radius: 14px;
  background:
    radial-gradient(circle at 24% 0%, rgba(236, 253, 245, 0.9), transparent 38%),
    rgba(255, 255, 255, 0.98);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.member-view-admin .admin-select-menu[hidden] {
  display: none;
}

.member-view-admin .admin-select-option {
  display: flex;
  align-items: center;
  min-height: 34px;
  width: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #263f57;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 780;
  text-align: left;
  cursor: pointer;
}

.member-view-admin .admin-select-option:hover,
.member-view-admin .admin-select-option:focus-visible {
  background: rgba(226, 245, 245, 0.82);
  color: #0d8588;
}

.member-view-admin .admin-select-option.is-selected {
  background: linear-gradient(135deg, #10b8ac, #087b85);
  color: #fff;
  box-shadow: 0 8px 16px rgba(13, 148, 136, 0.18);
}

.member-view-admin .admin-user-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 2px;
}

.member-view-admin .admin-user-footer .member-check {
  margin: 0;
}

.member-view-admin .admin-user-footer .member-mini-button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 11px;
}

@media (max-width: 900px) {
  .member-view-admin .admin-user-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-view-admin .admin-user-profile {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .member-view-admin .admin-user-verify {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.member-view-admin .admin-users-panel .admin-user-toolbar {
  align-items: center;
  padding: 14px;
}

.member-view-admin .admin-users-panel .admin-user-toolbar div {
  display: grid;
  gap: 4px;
}

.member-view-admin .admin-users-panel .admin-user-toolbar em {
  color: #718196;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
}

.member-view-admin .admin-user-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.member-view-admin .admin-user-search input {
  width: 220px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d8e5ee;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.94);
  color: #102033;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 760;
}

.member-view-admin .admin-user-search button,
.member-view-admin .admin-user-pager button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #cfe5ef;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #f4f9fb);
  color: #0a7f86;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.member-view-admin .admin-user-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.member-view-admin .admin-users-panel .admin-user-card {
  grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1.74fr) auto;
  align-items: end;
  gap: 14px;
  min-height: 112px;
  padding: 14px;
}

.member-view-admin .admin-users-panel .admin-user-profile {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-self: center;
}

.member-view-admin .admin-users-panel .admin-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 15px;
}

.member-view-admin .admin-users-panel .admin-user-controls {
  grid-template-columns: minmax(105px, 1.1fr) repeat(3, minmax(78px, 0.85fr)) minmax(82px, 0.78fr) minmax(82px, 0.78fr);
  gap: 10px;
}

.member-view-admin .admin-users-panel .admin-user-controls label {
  gap: 5px;
}

.member-view-admin .admin-users-panel .admin-user-controls input,
.member-view-admin .admin-users-panel .admin-user-controls select {
  min-height: 36px;
  padding-inline: 10px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.member-view-admin .admin-users-panel .admin-select-button {
  min-height: 36px;
  padding-inline: 10px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.member-view-admin .admin-users-panel .admin-select-option {
  min-height: 32px;
  font-size: 0.82rem;
}

.member-view-admin .admin-users-panel .admin-user-footer {
  justify-content: flex-end;
  align-self: end;
  padding-top: 0;
}

.member-view-admin .admin-users-panel .admin-user-footer .member-mini-button {
  min-height: 36px;
  padding: 0 14px;
  white-space: nowrap;
}

.member-view-admin .admin-user-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 2px;
}

.member-view-admin .admin-user-pager span {
  color: #60748c;
  font-size: 0.84rem;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .member-view-admin .admin-users-panel .admin-user-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .member-view-admin .admin-users-panel .admin-user-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-view-admin .admin-users-panel .admin-user-footer {
    justify-content: flex-start;
  }
}

.member-view-admin .admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.member-view-admin .admin-chart-card,
.member-view-admin .admin-table-card {
  min-height: 280px;
}

.member-view-admin .admin-table-card {
  align-content: start;
  grid-auto-rows: max-content;
  row-gap: 16px;
}

.member-view-admin .admin-bar-list {
  display: grid;
  gap: 14px;
}

.member-view-admin .admin-metric-bar {
  display: grid;
  gap: 9px;
}

.member-view-admin .admin-metric-bar div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: #60748c;
  font-size: 0.84rem;
  font-weight: 800;
}

.member-view-admin .admin-metric-bar strong {
  color: #07172a;
  font-size: 1.1rem;
  font-weight: 950;
}

.member-view-admin .admin-metric-bar i {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f8;
}

.member-view-admin .admin-metric-bar i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar-width, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #0b858c, #34d6ca);
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.16);
}

.member-view-admin .admin-metric-bar.is-blue i::before {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.member-view-admin .admin-metric-bar.is-amber i::before {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.member-view-admin .admin-metric-bar.is-red i::before {
  background: linear-gradient(90deg, #ef4444, #fca5a5);
}

.member-view-admin .admin-mini-table {
  margin-top: 0;
}

.member-view-admin .admin-mini-table table {
  min-width: 0;
}

.member-view-admin .admin-mini-table th,
.member-view-admin .admin-mini-table td {
  padding: 11px 12px;
  font-size: 0.84rem;
}

.member-view-admin .admin-single-feature {
  min-height: 0;
}

.member-view-admin .admin-console-page-codes .admin-compact-list,
.member-view-admin .admin-console-page-logs .admin-compact-list {
  display: grid;
  grid-template-columns: 1fr;
}

@media (max-width: 1180px) {
  .member-view-admin .admin-overview-grid {
    grid-template-columns: 1fr;
  }
}

.member-view-admin .admin-metrics-grid .admin-metric-card {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto;
  align-content: center !important;
  align-items: center;
  justify-items: start !important;
  min-height: 146px;
  padding: 26px 28px;
  column-gap: 18px;
  row-gap: 6px;
  text-align: left !important;
}

.member-view-admin .admin-metrics-grid .admin-metric-card .member-icon {
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  justify-self: center !important;
  align-self: center !important;
  width: 58px;
  height: 58px;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(145deg, rgba(226, 242, 255, 0.96), rgba(206, 226, 255, 0.9));
  color: #33607f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 30px rgba(65, 88, 119, 0.14);
}

.member-view-admin .admin-metrics-grid .admin-metric-card .member-icon svg {
  width: 24px;
  height: 24px;
}

.member-view-admin .admin-metrics-grid .admin-metric-card.is-users .member-icon {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.84), transparent 34%),
    linear-gradient(145deg, #edf6ff, #d8e9ff);
  color: #346784;
}

.member-view-admin .admin-metrics-grid .admin-metric-card.is-tasks .member-icon {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.84), transparent 34%),
    linear-gradient(145deg, #eafffb, #c8f4ed);
  color: #0d7f86;
}

.member-view-admin .admin-metrics-grid .admin-metric-card.is-codes .member-icon {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.84), transparent 34%),
    linear-gradient(145deg, #fff8dd, #f3e4ac);
  color: #8a6818;
}

.member-view-admin .admin-metrics-grid .admin-metric-card.is-snapshots .member-icon {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.84), transparent 34%),
    linear-gradient(145deg, #f5efff, #e5dcff);
  color: #6f54b8;
}

.member-view-admin .admin-metrics-grid .admin-metric-card > span,
.member-view-admin .admin-metrics-grid .admin-metric-card > strong,
.member-view-admin .admin-metrics-grid .admin-metric-card > em {
  grid-column: 2 !important;
  justify-self: start !important;
  margin: 0 !important;
  text-align: left !important;
}
