:root {
  --header-height: 52px;
  --switcher-width: 52px;
  --menu-width: 200px;
  --primary: #3d73ff;
  --switcher-bg: #3a78f3;
  --app-bg: #eef3f8;
  --panel-bg: #f3f7fb;
  --white: #ffffff;
  --border: #dfe6f1;
  --border-soft: #ebf0f6;
  --text-main: #2e3749;
  --text-body: #566277;
  --text-muted: #7f8ca3;
  --text-light: #a6b2c6;
  --tag-bg: #ebf2ff;
  --tag-text: #4c7eff;
  --label-bg: #f3f5f8;
  --success-bg: #e8fbef;
  --success-text: #38b86f;
  --card-shadow: 0 4px 10px rgba(61, 115, 255, 0.08);
  --font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-family);
  color: var(--text-main);
  background: var(--app-bg);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
}

svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-left,
.header-right,
.header-menu,
.user-info {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 30px;
}

.logo img {
  height: 32px;
  display: block;
}

.workspace-pill,
.project-selector {
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: #4c5668;
  background: #fff;
  font-size: 13px;
}

.workspace-pill {
  background: #f6f8fb;
}

.workspace-pill__icon {
  display: inline-flex;
  color: #7f8ca3;
}

.project-selector {
  margin-left: 20px;
}

.project-selector__tag {
  padding: 1px 5px;
  border-radius: 3px;
  background: #edf3ff;
  color: var(--primary);
  font-size: 12px;
}

.project-selector svg,
.user-caret svg {
  width: 14px;
  height: 14px;
  color: #98a5bb;
}

.header-menu {
  margin-right: 16px;
}

.header-menu a {
  position: relative;
  font-size: 12px;
  text-decoration: none;
  color: #444f61;
  margin: 0 12px;
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -11px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4e5d;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.user-avatar {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dfe8f7;
  color: #6781af;
  font-weight: 700;
  font-size: 13px;
}

.user-meta {
  margin-left: 8px;
  line-height: 1.1;
}

.user-name {
  font-size: 12px;
}

.sub-account {
  margin-top: 2px;
  font-size: 10px;
  color: var(--text-light);
}

.user-caret {
  margin-left: 6px;
  color: #a3afc1;
}

.main-container {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
}

.product-switcher {
  width: var(--switcher-width);
  display: flex;
  flex-direction: column;
  background: var(--switcher-bg);
  border-right: 1px solid #3168dd;
}

.switcher-menu {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.switcher-menu li {
  margin-bottom: 0;
}

.switcher-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  padding: 6px 2px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

.switcher-menu a i {
  display: inline-flex;
}

.switcher-menu a i svg {
  width: 18px;
  height: 18px;
}

.switcher-menu a.active {
  background: #2f72da;
  color: #fff;
}

.switcher-collapse {
  margin-top: auto;
  height: 28px;
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.product-menu {
  width: var(--menu-width);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #d8e0e8;
}

.menu-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #d8e0e8;
}

.menu-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.menu-title .star {
  color: #ffd700;
  margin-left: 5px;
  display: inline-flex;
}

.menu-title .star svg {
  width: 14px;
  height: 14px;
}

.menu-section {
  padding-top: 8px;
}

.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list li + li {
  margin-top: 2px;
}

.menu-page-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 9px 16px;
  color: #404b5d;
  font-size: 14px;
  text-align: left;
}

.menu-page-link i {
  width: 20px;
  margin-right: 8px;
  display: inline-flex;
  color: #6f7c91;
}

.menu-page-link i svg {
  width: 16px;
  height: 16px;
}

.menu-page-link.active {
  background: var(--primary);
  color: #fff;
}

.menu-page-link.active i {
  color: #fff;
}

.content {
  flex: 1;
  min-width: 0;
  background: #e1e7ed;
}

.page-panel {
  display: none;
}

.page-panel.is-visible {
  display: block;
}

.content-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #edf1f5;
}

.page-title {
  font-size: 14px;
  font-weight: 500;
  color: #1d2531;
}

.page-title--breadcrumb {
  color: #6a7588;
}

.help-link {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
}

.page-container {
  padding: 10px 12px 12px;
  min-height: calc(100vh - var(--header-height));
  background: transparent;
}

.page-shell {
  min-height: calc(100vh - var(--header-height) - 58px);
  background: #fff;
  border: 1px solid var(--border);
}

.market-toolbar,
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px;
  border-bottom: 1px solid #edf1f5;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
}

.tab-button {
  position: relative;
  height: 44px;
  padding: 0 13px;
  color: #4a5568;
  font-size: 14px;
}

.tab-button.is-active {
  color: var(--primary);
  font-weight: 600;
}

.tab-button.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
}

.toolbar-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field {
  width: 240px;
  height: 28px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
}

.search-field input {
  flex: 1;
  height: 100%;
  padding: 0 10px;
  border: 0;
  outline: 0;
  color: var(--text-body);
}

.search-field input::placeholder {
  color: #b6c0d0;
}

.search-field__icon {
  width: 28px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c2cada;
  border-left: 1px solid #eef2f7;
}

.icon-button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: #7b899f;
  background: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 12px 12px;
}

.market-notice {
  margin: 12px 12px 0;
  padding: 10px 12px;
  border: 1px solid #d9e6ff;
  border-radius: 4px;
  background: #f5f9ff;
  color: #4567b7;
  font-size: 13px;
}

.app-card {
  position: relative;
  min-height: 214px;
  padding: 14px 12px 70px;
  border: 1px solid #dbe4f0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(61, 115, 255, 0.06);
}

.app-card__top {
  display: block;
}

.app-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 13px;
  font-weight: 700;
}

.app-card__name-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.app-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #2a3445;
}

.app-card__name-button,
.name-link--button {
  padding: 0;
  color: inherit;
  font-weight: inherit;
  background: none;
}

.app-card__official {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 8px;
  border-radius: 0 6px 0 6px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
}

.app-card__count {
  position: absolute;
  top: 24px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5f6980;
  font-size: 12px;
}

.app-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag,
.label-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 12px;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
}

.label-tag {
  background: var(--label-bg);
  color: #596477;
}

.app-card__footer-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.app-card__description {
  margin: 12px 0 0;
  color: #596476;
  font-size: 12px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card__actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
}

.app-card:hover .app-card__actions {
  opacity: 1;
  visibility: visible;
}

.card-action-button {
  min-width: 88px;
  height: 34px;
  padding: 0 18px;
  border: 1px solid #d8dfeb;
  border-radius: 4px;
  background: #fff;
  color: #343d50;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(20, 40, 88, 0.08);
}

.card-action-button--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.version-select {
  height: 24px;
  min-width: 76px;
  padding: 0 8px;
  border: 1px solid #d8dfeb;
  border-radius: 4px;
  color: #5a6577;
  background: #fff;
  font-size: 12px;
}

.primary-button {
  height: 28px;
  padding: 0 14px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.table-wrapper {
  padding-top: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  height: 43px;
  padding: 0 12px;
  border-top: 1px solid var(--border-soft);
  text-align: left;
  font-size: 13px;
}

.data-table th {
  position: relative;
  background: #fff;
  color: #748096;
  font-weight: 600;
}

.data-table th + th::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  background: #e8edf3;
  transform: translateY(-50%);
}

.data-table td {
  background: #fff;
  color: #4e586d;
}

.name-link,
.action-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.action-link + .action-link {
  margin-left: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 12px;
  font-weight: 600;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 12px 14px;
  border-top: 1px solid #edf1f5;
  color: #68758d;
  font-size: 13px;
}

.record-count strong {
  color: #365fe7;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-button,
.page-number,
.page-size {
  height: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: #7f8ca2;
  background: #fff;
}

.page-number {
  padding: 0 10px;
}

.page-number.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-button.is-disabled {
  color: #c6cfdb;
}

.page-size {
  gap: 4px;
  padding: 0 10px;
}

.page-shell--list {
  display: flex;
  flex-direction: column;
}

.page-shell--list .table-toolbar {
  min-height: 44px;
}

.page-shell--list .table-wrapper {
  flex: 1;
}

.page-shell--placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  color: var(--text-muted);
}

.placeholder-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.detail-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.create-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-page__titlebar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #dfe6f1;
  background: #fff;
}

.detail-back {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #69758b;
}

.detail-page__title {
  font-size: 15px;
  font-weight: 700;
  color: #232d3f;
}

.detail-section {
  border: 1px solid #dfe6f1;
  background: #fff;
}

.detail-section__header {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #f7f9fc;
  border-bottom: 1px solid #e9eef5;
  font-size: 14px;
  font-weight: 600;
  color: #2a3446;
}

.section-tip {
  font-size: 12px;
  font-weight: 400;
  color: #99a4b7;
}

.detail-section__bar {
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary);
}

.detail-section__body {
  padding: 16px 12px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.form-label {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #5e6880;
  font-size: 13px;
}

.form-required {
  margin-right: 4px;
  color: #ff5c60;
}

.form-field {
  max-width: 860px;
}

.resource-type-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.resource-type-switch__item {
  min-width: 88px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #d9e1ed;
  border-radius: 2px;
  background: #fff;
  color: #4f5a6f;
  font-size: 13px;
  white-space: nowrap;
}

.resource-type-switch__item + .resource-type-switch__item {
  margin-left: -1px;
}

.resource-type-switch__item.is-active {
  border-color: var(--primary);
  background: #edf3ff;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.create-region-select:not([hidden]) {
  display: flex;
}

.selected-app {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #2f3849;
  font-size: 14px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.function-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 18px;
  line-height: 18px;
  vertical-align: middle;
}

.function-toggle__text {
  display: inline-flex;
  align-items: center;
  height: 18px;
  line-height: 18px;
}

.form-input,
.form-select {
  width: 100%;
  max-width: 420px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d9e1ed;
  border-radius: 2px;
  background: #fff;
  color: #394255;
  font-size: 13px;
}

.form-select {
  display: flex;
  align-items: center;
  position: relative;
}

.form-select[hidden] {
  display: none !important;
}

.form-select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #a1acc0;
  border-bottom: 1.5px solid #a1acc0;
  transform: translateY(-70%) rotate(45deg);
}

.form-hint {
  margin-top: 6px;
  color: #a2adbf;
  font-size: 11px;
  line-height: 1.6;
}

.function-intro {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4b5569;
  font-size: 13px;
}

.function-toggle__arrow {
  width: 7px;
  height: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
  transform-origin: center;
  margin-top: -1px;
}

.function-toggle__arrow.is-expanded {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.function-config-row.is-collapsed {
  display: none;
}

.switch-row {
  min-height: 32px;
  display: flex;
  align-items: center;
}

.switch-control {
  width: 32px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #cfd6e0;
  transition: background 0.16s ease;
}

.switch-control::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.2);
  transition: transform 0.16s ease;
}

.switch-control[aria-checked="true"] {
  background: var(--primary);
}

.switch-control[aria-checked="true"]::after {
  transform: translateX(14px);
}

.token-input-wrap {
  position: relative;
  flex: 0 1 420px;
  width: 100%;
  max-width: 420px;
}

.token-input-wrap .form-input {
  max-width: none;
  padding-right: 42px;
}

.token-icon-button {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  color: #adb7c7;
  background: transparent;
}

.token-visibility-icon {
  width: 16px;
  height: 16px;
}

.token-visibility-icon--hide {
  display: none;
}

.token-icon-button[aria-pressed="true"] .token-visibility-icon--show {
  display: none;
}

.token-icon-button[aria-pressed="true"] .token-visibility-icon--hide {
  display: inline-flex;
}

.token-generate-button {
  min-width: 78px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d5deeb;
  border-radius: 2px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  white-space: nowrap;
}

.token-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 520px;
  min-height: 32px;
}

.token-status {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
}

.token-status.is-success {
  color: #27894b;
}

.token-status.is-error {
  color: #d95b61;
}

.token-remember {
  margin-top: 8px;
  color: #68758d;
  font-size: 12px;
  line-height: 1.6;
}

.radio-row {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.radio-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4d586c;
  font-size: 13px;
}

.radio-dot {
  width: 14px;
  height: 14px;
  border: 1px solid #b7c2d2;
  border-radius: 50%;
  position: relative;
}

.radio-item.is-active .radio-dot {
  border-color: var(--primary);
}

.radio-item.is-active .radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}

.create-actions-wrap {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 12px;
  background: transparent;
}

.create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid #dfe6f1;
  background: #fff;
}

.create-action-button {
  min-width: 92px;
  height: 34px;
  padding: 0 18px;
  border: 1px solid #d5deeb;
  border-radius: 4px;
  background: #fff;
  color: #4d586c;
  font-size: 14px;
}

.create-action-button--primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.detail-info-item__label {
  font-size: 12px;
  color: #7c879a;
}

.detail-info-item__label--spaced {
  margin-top: 14px;
}

.detail-info-item__value {
  margin-top: 6px;
  color: #313a4c;
  font-size: 14px;
  line-height: 1.7;
  word-break: break-all;
}

.detail-link {
  color: var(--primary);
  text-decoration: none;
}

.deploy-history-list {
  min-height: 108px;
}

.history-card {
  width: 270px;
  min-height: 116px;
  padding: 16px 16px 14px;
  border-radius: 8px;
  background: #f3f7ff;
}

.history-card__id {
  font-size: 14px;
  font-weight: 700;
  color: #374155;
}

.history-card__time {
  margin-top: 18px;
  font-size: 14px;
  color: #5f6980;
}

.history-card__actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.history-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3aa43f;
  font-size: 14px;
  font-weight: 600;
}

.history-card__status-dot {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #56c33d;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.history-card__action {
  padding: 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.history-card__action.is-disabled {
  color: #c3c9d5;
}

.resource-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: start;
}

.resource-menu {
  min-height: 236px;
  padding: 14px 12px;
  border-radius: 8px;
  background: #edf4ff;
}

.resource-menu__item {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  color: #354156;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.resource-menu__item + .resource-menu__item {
  margin-top: 8px;
}

.resource-menu__item.is-active {
  background: #fff;
  color: var(--primary);
}

.resource-content__title {
  margin: 6px 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: #2a3446;
}

.resource-panel {
  border: 1px solid #e7edf6;
  border-radius: 8px;
  background: #fff;
}

.resource-panel__header {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid #edf1f5;
  font-size: 14px;
  font-weight: 600;
  color: #2b3447;
}

.resource-panel__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 42px;
  padding: 18px;
}

.resource-field__label {
  font-size: 12px;
  color: #8b96aa;
}

.resource-field__value {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #4e586d;
  word-break: break-word;
}

.floating-actions {
  position: fixed;
  right: 12px;
  bottom: 14px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-action {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #dce4f1;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 16px rgba(61, 115, 255, 0.12);
}

.floating-action--primary {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 1380px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .header {
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .main-container {
    margin-top: 92px;
  }

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

@media (max-width: 920px) {
  .main-container {
    flex-direction: column;
  }

  .product-switcher {
    width: 100%;
    overflow-x: auto;
  }

  .switcher-menu {
    display: flex;
    padding: 0;
  }

  .switcher-menu li {
    margin: 0;
  }

  .switcher-collapse {
    display: none;
  }

  .product-menu {
    width: 100%;
  }

  .menu-section {
    padding: 6px;
  }

  .menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .menu-page-link {
    width: auto;
    padding: 0 12px;
    border-radius: 4px;
  }

  .market-toolbar,
  .table-toolbar,
  .table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-search,
  .search-field {
    width: 100%;
  }

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

  .table-wrapper {
    overflow-x: auto;
  }

  .data-table {
    min-width: 760px;
  }
}
