html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

:root {
  color-scheme: light;
  --bg: #f6f2ea;
  --bg-soft: #efe9df;
  --surface: #ffffff;
  --surface-2: #f7f4ee;
  --surface-3: #f0ebe3;
  --text: #1e242b;
  --text-dim: #5b6775;
  --accent: #1f6f5b;
  --accent-strong: #145546;
  --accent-2: #d49a3a;
  --danger: #c84d4d;
  --border: rgba(35, 45, 58, 0.12);
  --shadow: rgba(18, 25, 34, 0.08);
  --shadow-strong: rgba(18, 25, 34, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(31, 111, 91, 0.16), transparent 60%),
    radial-gradient(800px 520px at 10% 10%, rgba(212, 154, 58, 0.14), transparent 60%),
    linear-gradient(135deg, #f7f3eb 0%, #f1ebe1 55%, #f8f5ef 100%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.top-shell {
  position: sticky;
  top: 0;
  z-index: 22;
  background: linear-gradient(180deg, rgba(247, 243, 235, 0.98), rgba(246, 242, 234, 0.94));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(35, 45, 58, 0.1);
  box-shadow: 0 10px 24px rgba(18, 25, 34, 0.06);
}

.bg-orbit {
  position: fixed;
  inset: -120px -120px auto auto;
  width: 360px;
  height: 360px;
  border-radius: 42% 58% 52% 48%;
  background:
    radial-gradient(circle at 30% 30%, rgba(31, 111, 91, 0.2), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(212, 154, 58, 0.18), transparent 60%);
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 32px 8vw 18px;
  gap: 24px;
  position: relative;
  z-index: 1;
  background: transparent;
}

.hero-title h1 {
  margin: 8px 0 8px;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  letter-spacing: -0.02em;
  font-family: "Georgia", "Times New Roman", "Songti SC", serif;
  font-weight: 600;
}

.hero-title p {
  margin: 0;
  color: var(--text-dim);
  max-width: 760px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent-strong);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  border: 1px solid var(--border);
}

.nav {
  display: flex;
  gap: 16px;
  padding: 12px 8vw;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  top: auto;
  z-index: 1;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nav button {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.nav button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(31, 111, 91, 0.25);
}

.status {
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px var(--shadow);
  color: var(--text-dim);
  min-width: 220px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.status.ok {
  color: var(--accent);
}

.status.error {
  color: var(--danger);
}

.admin-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
}

.container {
  padding: 16px 8vw 80px;
  position: relative;
  z-index: 1;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: page-in 0.45s ease both;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 40px var(--shadow);
  animation: card-in 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

.card-delay-2 { --i: 2; }
.card-delay-3 { --i: 3; }
.card-delay-4 { --i: 4; }
.card-delay-5 { --i: 5; }
.card-delay-6 { --i: 6; }
.card-delay-7 { --i: 7; }
.card-delay-8 { --i: 8; }

.auth-card {
  margin-bottom: 18px;
}

.auth-card.hidden,
.hidden {
  display: none !important;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head.compact h3 {
  margin-bottom: 0;
}

.page-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(31, 111, 91, 0.05);
}

.page-switch-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-dim);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.page-switch-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.page-switch-btn.active {
  background: linear-gradient(135deg, rgba(31, 111, 91, 0.14), rgba(255, 255, 255, 0.96));
  border-color: rgba(31, 111, 91, 0.18);
  color: var(--accent-strong);
  box-shadow: 0 8px 20px rgba(31, 111, 91, 0.08);
}

.page-switch-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-panel-empty {
  margin-top: 12px;
}

.panel-hidden {
  display: none !important;
}

.section-head h2,
.card h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-family: "Fraunces", "Noto Sans SC", serif;
  font-weight: 600;
}

.section-head h3,
.card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-family: "Fraunces", "Noto Sans SC", serif;
  font-weight: 600;
}

.section-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.workspace-toolbar-card {
  margin-top: 14px;
  padding: 16px 18px;
  border-style: solid;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(31, 111, 91, 0.03));
}

.workspace-toolbar-grid {
  display: grid;
  gap: 12px;
  align-items: end;
}

.workspace-toolbar-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(31, 111, 91, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.toolbar-label {
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.toolbar-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.toolbar-inline > * {
  min-width: 0;
}

.toolbar-inline.compact > * {
  flex: 1 1 0;
}

.toolbar-state {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.toolbar-state strong {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.25;
}

.toolbar-state span {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.35;
}

.toolbar-state.is-active strong {
  color: var(--accent-strong);
}

.users-toolbar-card .workspace-toolbar-grid {
  grid-template-columns: minmax(320px, 1.7fr) minmax(120px, 0.62fr) minmax(150px, 0.8fr) minmax(150px, 0.86fr) minmax(250px, 1.16fr);
}

.users-toolbar-card #userKeyword {
  flex: 1 1 auto;
}

.users-toolbar-card #userStatusFilter {
  min-width: 112px;
}

.users-toolbar-card #userProductFilter,
.users-toolbar-card #userAccessFilter {
  min-width: 140px;
}

.users-toolbar-card #userSortBy {
  min-width: 150px;
}

.users-toolbar-card #userSortOrder {
  min-width: 96px;
}

.users-summary-row {
  margin-top: 0;
}

.users-summary-row .compact-pill {
  margin-top: 0;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.users-selection-inline,
.users-selection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.users-selection-inline {
  flex: 1 1 340px;
  justify-content: flex-end;
}

.users-selection-inline .toolbar-state {
  flex: 1 1 240px;
  text-align: right;
}

.toolbar-search-field .toolbar-inline .btn,
.users-selection-actions .btn {
  white-space: nowrap;
}

.user-access-toolbar-card {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: transparent;
}

.user-access-layout {
  margin-top: 14px;
  align-items: start;
  grid-template-columns: minmax(320px, 0.84fr) minmax(420px, 1.16fr);
}

.user-access-layout > * {
  min-width: 0;
}

.user-access-layout.single-column {
  grid-template-columns: minmax(0, 1fr);
}

.user-access-auth-stack {
  display: grid;
  gap: 12px;
}

.user-access-toolbar-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.user-access-quick-actions {
  margin-top: 8px;
  gap: 6px;
}

.user-access-summary-row {
  margin-top: 8px;
}

.user-access-summary-row.secondary {
  margin-top: 6px;
}

.user-access-summary-row:empty {
  display: none;
}

.user-access-summary-row .compact-pill {
  padding: 6px 10px;
  font-size: 0.8rem;
}

.user-access-editor-grid {
  margin-top: 12px;
  align-items: start;
  grid-template-columns: minmax(260px, 0.92fr) minmax(360px, 1.08fr);
}

.user-access-permission-card {
  height: 100%;
}

#userDetail > .user-detail-head {
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(31, 111, 91, 0.12);
}

#userDetail > .user-detail-head h2 {
  margin-bottom: 6px;
}

#userDetail > .user-detail-head .hint {
  margin-top: 0;
  max-width: 760px;
}

#userDetail > .user-detail-head-actions {
  align-items: center;
}

#userDetail > .user-detail-head-actions #detailUserIdInput {
  width: 112px;
}

#userDetail > .user-detail-topline {
  margin-top: 12px;
  padding-bottom: 0;
  border-bottom: none;
}

#userDetail > .user-detail-topline .compact-pill {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(31, 111, 91, 0.12);
}

#userDetail > .user-detail-switch {
  margin-top: 10px;
  width: fit-content;
  background: rgba(31, 111, 91, 0.06);
}

#userDetail > .user-detail-overview {
  margin-top: 12px;
}

#userDetail .user-product-summary-panel,
#userDetail .user-profile-card {
  border-style: solid;
  border-color: rgba(31, 111, 91, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 240, 233, 0.9));
  box-shadow: none;
}

#userDetail .user-product-summary-panel .summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

#userDetail .user-product-summary-panel .summary-card {
  border-color: rgba(31, 111, 91, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

#userDetail .user-access-layout {
  margin-top: 14px;
  padding: 0;
  gap: 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  grid-template-columns: minmax(0, 1fr);
}

#userDetail .user-access-layout.single-column {
  grid-template-columns: minmax(0, 1fr);
}

#userDetail .user-access-auth-stack {
  gap: 10px;
}

#userDetail .user-access-auth-card,
#userDetail .user-access-role-card,
#userDetail .user-access-permission-card {
  margin-top: 0;
  border: 1px solid rgba(31, 111, 91, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: none;
}

#userDetail .user-access-auth-card {
  position: static;
  top: auto;
}

#userDetail .user-access-auth-card .section-head,
#userDetail .user-access-role-card .section-head,
#userDetail .user-access-permission-card .section-head {
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(31, 111, 91, 0.1);
}

#userDetail .user-access-form-surface {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
  gap: 8px 14px;
  align-items: start;
}

#userDetail .user-access-toolbar-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

#userDetail .user-access-toolbar-grid > label:first-child {
  grid-column: auto;
}

#userDetail .user-access-form-surface > .user-access-toolbar-grid {
  grid-column: 1 / -1;
}

#userDetail .user-access-summary-row {
  margin-top: 0;
}

#userDetail .user-access-summary-row.secondary:not(:empty) {
  padding-top: 0;
  border-top: none;
}

#userDetail .user-access-summary-row .compact-pill {
  padding: 5px 9px;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(31, 111, 91, 0.08);
  box-shadow: none;
}

#userDetail .user-access-role-card {
  padding-top: 12px;
  padding-bottom: 12px;
}

#userDetail .user-access-role-card .role-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

#userDetail #userFeatureBoard.feature-group-board {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-flow: row dense;
  align-items: start;
}

#userDetail #userFeatureBoard .feature-group-section {
  grid-column: span var(--feature-group-span, 2);
  padding: 8px;
  border: 1px solid rgba(31, 111, 91, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

#userDetail #userFeatureBoard .feature-group-section:first-child {
  padding-top: 8px;
  border-top: 1px solid rgba(31, 111, 91, 0.12);
}

#userDetail #userFeatureBoard .feature-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

#userDetail #userFeatureBoard .feature-group-heading {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.1;
}

#userDetail #userFeatureBoard .feature-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(31, 111, 91, 0.08);
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 700;
}

#userDetail #userFeatureBoard .feature-toggle-grid {
  display: grid;
  grid-template-columns: repeat(var(--feature-item-columns, 1), minmax(0, var(--feature-item-width, 156px)));
  justify-content: start;
  gap: 4px 6px;
}

#userDetail #userFeatureBoard .feature-toggle-card {
  width: 100%;
  min-height: 28px;
  padding: 4px 6px;
  border-radius: 10px;
  border-color: rgba(35, 45, 58, 0.08);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: none;
  justify-content: flex-start;
  gap: 5px;
}

#userDetail #userFeatureBoard .feature-toggle-card:hover {
  transform: none;
  border-color: rgba(31, 111, 91, 0.18);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.96);
}

#userDetail #userFeatureBoard .feature-toggle-card.checked {
  border-color: rgba(31, 111, 91, 0.16);
  background: linear-gradient(135deg, rgba(31, 111, 91, 0.1), rgba(255, 255, 255, 0.98));
}

#userDetail #userFeatureBoard .feature-toggle-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.73rem;
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#userDetail #userFeatureBoard .feature-toggle-switch {
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
}

#userDetail #userFeatureBoard .feature-toggle-slider::after {
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
}

#userDetail #userFeatureBoard .feature-toggle-input:checked + .feature-toggle-slider::after {
  transform: translateX(16px);
}

#userDetail .advanced-box {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.selection-banner {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(31, 111, 91, 0.18);
  background: linear-gradient(135deg, rgba(31, 111, 91, 0.1), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 24px rgba(31, 111, 91, 0.08);
  color: var(--accent-strong);
  font-weight: 600;
  line-height: 1.5;
}

.selection-banner-copy {
  flex: 1 1 260px;
}

.selection-banner-copy strong {
  display: block;
  margin-bottom: 2px;
}

.workspace-metrics {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.metric-chip {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff, #f6f3ed);
}

.metric-chip .label {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.metric-chip .value {
  margin-top: 6px;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

#catalogPlanWorkspaceMetrics.map-summary-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(31, 111, 91, 0.22);
}

#catalogPlanWorkspaceMetrics.map-summary-metrics + .catalog-plan-grid {
  margin-top: 14px;
}

.compact-pill-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dim);
  font-size: 0.84rem;
  line-height: 1.2;
}

.compact-pill strong {
  color: var(--text);
  font-weight: 600;
}

.user-access-topline {
  margin-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(31, 111, 91, 0.18);
}

.user-access-topline .compact-pill {
  padding: 6px 10px;
  font-size: 0.8rem;
}

.compact-caption-hidden {
  display: none !important;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.split-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.compact-top-grid {
  margin-top: 18px;
  grid-template-columns: minmax(240px, 0.9fr) minmax(420px, 1.4fr);
  align-items: start;
}

.compact-top-grid > .subcard,
.compact-top-grid > .fold-card {
  margin-top: 0;
}

.compact-top-grid > :only-child {
  grid-column: 1 / -1;
}

.catalog-stage-shell {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(35, 45, 58, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(31, 111, 91, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.catalog-stage-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(35, 45, 58, 0.08);
}

.catalog-stage-head h3 {
  margin: 4px 0 0;
}

.catalog-stage-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(31, 111, 91, 0.08);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.catalog-stage-body > *:first-child {
  margin-top: 14px;
}

.catalog-stage-shell + .catalog-stage-shell {
  margin-top: 14px;
}

.catalog-stage-shell-headless {
  padding-top: 12px;
}

.catalog-stage-shell-headless > .catalog-stage-head {
  display: none;
}

.catalog-stage-shell-headless > .catalog-stage-body > *:first-child {
  margin-top: 0;
}

.catalog-top-grid {
  align-items: start;
}

.catalog-plan-managers {
  margin-bottom: 12px;
}

.catalog-plan-managers .embedded-plan-managers {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.catalog-plan-managers .embedded-plan-managers > .subcard {
  margin-top: 0;
}

.manager-hidden {
  display: none !important;
}

.btn.manager-toggle-active {
  background: rgba(31, 111, 91, 0.1);
  color: var(--primary);
  border-color: rgba(31, 111, 91, 0.2);
}

#catalogModelSection .form-grid {
  grid-template-columns: minmax(220px, 280px);
}

#catalogModelSection .subcard.nested {
  margin-top: 12px;
}

#catalogModelSection .role-grid {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
}

#catalogModelSection .role-chip.compact-role-chip {
  min-height: 40px;
  justify-content: flex-start;
}

.clothes-catalog-panel-section {
  border-style: solid;
  border-color: rgba(31, 111, 91, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(31, 111, 91, 0.04));
}

.clothes-catalog-panel-section > .section-head {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(31, 111, 91, 0.08);
}

.clothes-catalog-overview-grid,
.clothes-catalog-ops-grid {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

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

.clothes-catalog-overview-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clothes-catalog-overview-field,
.clothes-catalog-status-item,
.clothes-catalog-overview-plan-item {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(31, 111, 91, 0.1);
  background: rgba(255, 255, 255, 0.94);
}

.clothes-catalog-overview-field strong,
.clothes-catalog-status-head strong {
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.2;
}

.clothes-catalog-overview-field span,
.clothes-catalog-status-item > span {
  color: var(--text-dim);
  font-size: 0.76rem;
  line-height: 1.45;
}

.clothes-catalog-overview-tags,
.clothes-catalog-overview-plan-list,
.clothes-catalog-status-list {
  display: grid;
  gap: 8px;
}

.clothes-catalog-overview-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
}

.clothes-catalog-overview-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 111, 91, 0.12);
  background: rgba(244, 248, 245, 0.96);
  color: var(--text);
  font-size: 0.74rem;
  line-height: 1.2;
  font-weight: 600;
}

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

.clothes-catalog-ops-wide {
  grid-column: 1 / -1;
}

.clothes-catalog-overview-plan-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.clothes-catalog-overview-plan-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.clothes-catalog-overview-plan-copy strong {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.2;
}

.clothes-catalog-overview-plan-copy span {
  color: var(--text-dim);
  font-size: 0.74rem;
  line-height: 1.35;
}

.clothes-catalog-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.catalog-plan-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(360px, 1.2fr) minmax(320px, 1fr);
  align-items: start;
}

#catalogPlanBindingsPanel {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(31, 111, 91, 0.03));
}

#catalogPlanGrid.map-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(224px, 0.64fr) minmax(248px, 0.74fr) minmax(460px, 1.38fr);
  align-items: start;
}

#catalogPlanGrid.map-layout > .table-wrap {
  display: none !important;
}

#catalogPlanBoard.map-layout {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.map-plan-column-head {
  display: grid;
  gap: 2px;
  padding: 2px 2px 4px;
}

.map-plan-column-title {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.15;
}

.map-plan-column-hint {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.35;
}

#catalogPlanBindingsPanel.map-layout {
  grid-column: auto;
}

#catalogPlanGrid.clothes-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr) minmax(0, 3fr);
  align-items: start;
}

#catalogPlanGrid.clothes-layout > .table-wrap {
  display: none !important;
}

#catalogPlanBoard.clothes-layout {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

#catalogPlanBoard.clothes-layout > * {
  margin-top: 0;
}

.clothes-plan-column-head {
  display: grid;
  gap: 3px;
  padding: 2px 2px 2px;
}

.clothes-plan-column-title {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.15;
}

.clothes-plan-column-hint {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.74rem;
  line-height: 1.3;
}

#catalogPlanEditorPanel.clothes-layout {
  padding: 12px;
}

#catalogPlanEditorPanel.clothes-layout .workspace-metrics {
  display: none !important;
}

#catalogPlanEditorPanel.clothes-layout .catalog-plan-form-grid {
  gap: 10px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#catalogPlanEditorPanel.clothes-layout .section-actions,
#catalogPlanBindingsPanel.clothes-layout .section-actions {
  gap: 6px;
}

#catalogPlanBindingsPanel.clothes-layout {
  grid-column: auto;
  padding: 10px 12px 12px;
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 90px);
  overflow: auto;
}

#catalogPlanBindingsPanel.clothes-layout .table-wrap {
  display: none !important;
}

.clothes-plan-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 11px 12px;
}

.clothes-plan-card-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.clothes-plan-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.clothes-plan-title {
  line-height: 1.18;
}

.clothes-plan-note {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clothes-plan-meta-row {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.clothes-plan-feature-board {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.clothes-plan-feature-board.is-module-table {
  grid-template-columns: minmax(0, 1fr);
}

.clothes-plan-feature-board > .catalog-role-permission-summary {
  grid-column: 1 / -1;
}

.clothes-plan-binding-summary {
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(31, 111, 91, 0.1);
  background: linear-gradient(180deg, rgba(249, 252, 250, 0.98), rgba(255, 255, 255, 0.98));
}

.clothes-plan-binding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.clothes-plan-binding-head .catalog-role-permission-copy {
  gap: 2px;
}

.clothes-plan-fixed-capabilities {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.3;
}

.clothes-plan-fixed-capabilities strong {
  color: var(--text);
  font-size: 0.72rem;
}

.clothes-plan-feature-group {
  padding: 10px 12px;
  border: 1px solid rgba(31, 111, 91, 0.1);
  background: linear-gradient(180deg, rgba(248, 251, 249, 0.98), rgba(255, 255, 255, 0.98));
}

.clothes-plan-feature-group.is-wide {
  grid-column: 1 / -1;
}

.clothes-plan-feature-group .feature-group-head {
  align-items: center;
  margin-bottom: 8px;
}

.clothes-plan-feature-group .feature-group-count {
  min-width: 0;
  padding: 2px 7px;
  font-size: 0.7rem;
}

.clothes-plan-feature-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(var(--feature-item-columns, 2), minmax(0, 1fr));
  align-items: stretch;
}

.clothes-plan-module-table-shell {
  width: 100%;
  margin-top: 2px;
  border: 1px solid rgba(31, 111, 91, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}

.clothes-plan-module-table-head,
.clothes-plan-module-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(240px, 1.55fr) minmax(150px, 0.95fr) 92px 56px;
  gap: 0;
}

.clothes-plan-module-table-head {
  background: rgba(245, 248, 246, 0.96);
  border-bottom: 1px solid rgba(31, 111, 91, 0.08);
}

.clothes-plan-module-table-head > div,
.clothes-plan-module-cell {
  padding: 8px 10px;
  min-width: 0;
}

.clothes-plan-module-table-head > div {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.clothes-plan-module-row {
  align-items: center;
  border-bottom: 1px solid rgba(31, 111, 91, 0.08);
}

.clothes-plan-module-table-body > .clothes-plan-module-row:last-child {
  border-bottom: none;
}

.clothes-plan-module-row.bound-row {
  background: rgba(31, 111, 91, 0.035);
}

.clothes-plan-module-row.partial-row {
  background: rgba(184, 122, 0, 0.05);
}

.clothes-plan-module-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.clothes-plan-module-name strong {
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.15;
}

.clothes-plan-module-desc {
  display: grid;
  gap: 4px;
  min-width: 220px;
  color: var(--text);
  font-size: 0.74rem;
  line-height: 1.35;
}

.clothes-plan-module-note {
  color: var(--text-dim);
  font-size: 0.68rem;
  line-height: 1.35;
}

.clothes-plan-module-audience {
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.25;
}

.clothes-plan-module-action {
  width: 56px;
  text-align: center;
}

.clothes-plan-module-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clothes-plan-module-cell {
  display: flex;
  align-items: center;
}

.clothes-plan-module-cell .status-pill {
  margin-top: 0;
}

.clothes-plan-feature-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 12px;
  border: 1px solid rgba(31, 111, 91, 0.1);
  background: rgba(255, 255, 255, 0.96);
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.clothes-plan-feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(31, 111, 91, 0.24);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.clothes-plan-feature-card.active {
  border-color: rgba(31, 111, 91, 0.2);
  background: linear-gradient(180deg, rgba(31, 111, 91, 0.08), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 0 0 1px rgba(31, 111, 91, 0.04);
}

.clothes-plan-feature-card.active::before {
  opacity: 1;
}

.clothes-plan-feature-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.clothes-plan-feature-card.is-toggle .clothes-plan-feature-card-head {
  align-items: center;
}

.clothes-plan-feature-card.is-toggle {
  grid-template-rows: auto;
}

.clothes-plan-feature-card-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.clothes-plan-feature-card-copy strong {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.12;
}

.clothes-plan-feature-card-copy span {
  color: var(--text-dim);
  font-size: 0.67rem;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clothes-plan-feature-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding-left: 6px;
}

.clothes-plan-feature-card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.clothes-plan-feature-card-foot .mini-chip {
  padding: 2px 7px;
  font-size: 0.67rem;
}

.clothes-module-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.clothes-module-chip-row .mini-chip {
  min-width: 0;
  padding: 1px 6px;
  font-size: 0.65rem;
}

.clothes-module-detail-list {
  display: grid;
  gap: 3px;
  width: 100%;
}

.clothes-module-detail-item {
  min-width: 0;
  color: var(--text);
  font-size: 0.69rem;
  line-height: 1.24;
}

.clothes-plan-feature-toggle,
.clothes-plan-feature-input {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 5px;
  border-top: 1px dashed rgba(31, 111, 91, 0.12);
}

.clothes-plan-role-summary {
  gap: 8px;
  padding: 8px 10px;
}

.clothes-plan-role-switch {
  display: grid;
  gap: 4px;
}

.clothes-plan-role-switch-label {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 600;
}

.clothes-plan-role-tab-row {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid rgba(31, 111, 91, 0.12);
  border-radius: 14px;
  background: rgba(244, 248, 245, 0.95);
  scrollbar-width: thin;
}

.clothes-plan-role-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  flex: 0 0 auto;
  min-width: 112px;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
}

.clothes-plan-role-tab.active {
  border-color: rgba(31, 111, 91, 0.18);
  background: rgba(31, 111, 91, 0.14);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 91, 0.04);
}

.clothes-plan-role-tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.clothes-plan-state-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.clothes-plan-state-stack .mini-chip {
  padding: 3px 7px;
  font-size: 0.68rem;
}

.clothes-plan-access-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clothes-plan-access-grid-number {
  grid-template-columns: minmax(0, 1fr) minmax(136px, 0.78fr);
}

.clothes-plan-feature-toggle {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.clothes-plan-feature-input {
  grid-template-columns: auto minmax(92px, 1fr);
  align-items: center;
}

.clothes-plan-feature-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(84px, 96px);
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-top: 6px;
  border-top: 1px dashed rgba(31, 111, 91, 0.12);
}

.clothes-plan-feature-inline-label {
  color: var(--text-dim);
  font-size: 0.66rem;
  line-height: 1.18;
  font-weight: 600;
}

.clothes-plan-feature-toggle > span:first-child,
.clothes-plan-feature-input > span {
  color: var(--text-dim);
  font-size: 0.68rem;
  line-height: 1.25;
  font-weight: 600;
}

.clothes-plan-binding-input {
  min-width: 0;
  width: 100%;
  max-width: 96px;
  padding: 5px 7px;
  justify-self: end;
  text-align: center;
}

.clothes-plan-feature-input .clothes-plan-binding-input {
  width: 100%;
}

.clothes-plan-feature-toggle.is-disabled {
  opacity: 0.58;
}

.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;
}

.clothes-plan-access-shell {
  display: grid;
  gap: 8px;
}

.clothes-plan-access-toolbar {
  margin-bottom: 0;
  padding: 8px 10px;
  gap: 6px;
  background: rgba(255, 255, 255, 0.96);
}

.clothes-plan-access-toolbar-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.clothes-plan-access-toolbar-main strong {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.15;
}

.clothes-plan-access-toolbar-main span {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.25;
}

.clothes-plan-access-role-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
}

.clothes-plan-access-groups {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.clothes-plan-access-group {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.clothes-plan-access-group.is-wide {
  grid-column: 1 / -1;
}

.clothes-plan-access-group-head {
  margin-bottom: 0;
}

.clothes-plan-access-group-copy {
  min-width: 0;
}

.clothes-plan-access-column-head,
.clothes-plan-access-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 48px 60px;
  gap: 6px;
  align-items: center;
}

.clothes-plan-access-column-head {
  padding: 0 6px;
  color: var(--text-dim);
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 700;
}

.clothes-plan-access-column-head span:nth-child(n + 2) {
  text-align: center;
}

.clothes-plan-access-list {
  display: grid;
  gap: 5px;
}

.clothes-plan-access-item {
  min-width: 0;
  padding: 6px 7px;
  border-radius: 12px;
  border: 1px solid rgba(31, 111, 91, 0.1);
  background: rgba(255, 255, 255, 0.94);
}

.clothes-plan-access-item.active {
  border-color: rgba(31, 111, 91, 0.22);
  background: linear-gradient(180deg, rgba(31, 111, 91, 0.08), rgba(255, 255, 255, 0.98));
}

.clothes-plan-access-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.clothes-plan-access-copy strong {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.14;
}

.clothes-plan-access-copy span {
  color: var(--text-dim);
  font-size: 0.68rem;
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clothes-plan-access-control {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.clothes-plan-access-control.is-input {
  justify-content: flex-start;
}

.clothes-plan-access-control.is-disabled {
  opacity: 0.48;
}

#catalogPlanBindingsPanel.clothes-layout .clothes-plan-access-control .feature-toggle-switch {
  width: 34px;
  height: 18px;
}

#catalogPlanBindingsPanel.clothes-layout .clothes-plan-access-control .feature-toggle-slider::after {
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
}

#catalogPlanBindingsPanel.clothes-layout .clothes-plan-access-control .feature-toggle-input:checked + .feature-toggle-slider::after {
  transform: translateX(16px);
}

.clothes-plan-binding-input {
  min-width: 0;
  width: 74px;
  padding: 6px 8px;
  text-align: center;
}

.clothes-plan-package-shell {
  display: grid;
  gap: 10px;
}

.clothes-plan-package-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.clothes-plan-package-header-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.clothes-plan-package-header-copy strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.15;
}

.clothes-plan-package-header-copy span {
  color: var(--text-dim);
  font-size: 0.73rem;
  line-height: 1.3;
}

.clothes-plan-package-header-tags {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.clothes-plan-package-section {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.clothes-plan-package-section-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.clothes-plan-package-section-copy span {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.25;
}

.clothes-plan-package-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clothes-plan-package-grid-quota {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clothes-plan-package-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(31, 111, 91, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.clothes-plan-package-card.active {
  border-color: rgba(31, 111, 91, 0.22);
  background: linear-gradient(180deg, rgba(31, 111, 91, 0.08), rgba(255, 255, 255, 0.98));
}

.clothes-plan-package-card.is-disabled {
  opacity: 0.62;
}

.clothes-plan-package-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.clothes-plan-package-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.clothes-plan-package-copy strong {
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.15;
}

.clothes-plan-package-copy span {
  color: var(--text-dim);
  font-size: 0.69rem;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clothes-plan-package-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.clothes-plan-package-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.clothes-plan-package-card-quota .clothes-plan-binding-input {
  width: 100%;
  max-width: none;
  text-align: left;
}

.clothes-plan-package-input-unit {
  flex: 0 0 auto;
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

#catalogPlanBindingsPanel.clothes-layout .clothes-plan-package-card .feature-toggle-switch {
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
}

#catalogPlanBindingsPanel.clothes-layout .clothes-plan-package-card .feature-toggle-slider::after {
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
}

#catalogPlanBindingsPanel.clothes-layout .clothes-plan-package-card .feature-toggle-input:checked + .feature-toggle-slider::after {
  transform: translateX(16px);
}

@media (max-width: 1280px) {
  .clothes-plan-package-grid-quota {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .clothes-plan-package-header {
    flex-direction: column;
  }

  .clothes-plan-package-header-tags {
    justify-content: flex-start;
  }

  .clothes-plan-package-grid,
  .clothes-plan-package-grid-quota {
    grid-template-columns: minmax(0, 1fr);
  }
}

.clothes-plan-effective-pill {
  justify-content: center;
  min-width: 0;
  padding: 3px 6px;
  font-size: 0.68rem;
}

.clothes-plan-stage {
  border-style: solid;
  border-color: rgba(31, 111, 91, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.clothes-plan-stage > .section-head {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(31, 111, 91, 0.1);
}

.clothes-plan-stage > .section-head .hint {
  display: none !important;
}

.clothes-plan-stage .summary-card,
.clothes-plan-stage .detail-panel,
.clothes-plan-stage .catalog-role-permission-summary,
.clothes-plan-stage .feature-group-section {
  border-style: solid;
  border-color: rgba(31, 111, 91, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

#catalogPlanEditorPanel.clothes-layout,
#catalogPlanBindingsPanel.clothes-layout {
  border-style: solid;
}

#catalogPlanEditorPanel.clothes-layout .section-head {
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(31, 111, 91, 0.08);
}

#catalogPlanEditorPanel.clothes-layout .section-head .hint {
  display: none !important;
}

#catalogPlanEditorPanel.clothes-layout .section-head .section-actions {
  gap: 5px;
}

#catalogPlanEditorPanel.clothes-layout .catalog-plan-form-grid > label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: stretch;
  font-size: 0.74rem;
  color: var(--text-dim);
}

#catalogPlanEditorPanel.clothes-layout .catalog-plan-form-grid > label::before {
  display: none;
}

#catalogPlanEditorPanel.clothes-layout .catalog-plan-form-grid > label > input,
#catalogPlanEditorPanel.clothes-layout .catalog-plan-form-grid > label > select {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
}

#catalogPlanBindingsPanel.clothes-layout .section-head {
  align-items: center;
  padding-bottom: 6px;
  border-bottom: none;
}

#catalogPlanBindingsPanel.clothes-layout .section-head > div:first-child,
#catalogPlanBindingsPanel.clothes-layout #catalogPlanBindingsFootnote {
  display: none !important;
}

#catalogPlanBindingsPanel.clothes-layout .section-head .section-actions {
  display: none !important;
}

.clothes-plan-access-topbar {
  display: grid;
  gap: 8px;
  padding-bottom: 4px;
}

.clothes-plan-access-focus {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.15;
}

.clothes-plan-access-role-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.clothes-plan-access-column-head.is-global {
  padding: 0 6px 2px;
}

.clothes-plan-access-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.clothes-plan-access-group {
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  padding: 7px;
}

.clothes-plan-access-group.is-wide {
  width: fit-content;
}

.clothes-plan-access-column-head,
.clothes-plan-access-item {
  grid-template-columns: fit-content(248px) 56px 36px 48px;
  gap: 5px;
}

.clothes-plan-access-column-head {
  padding: 0 4px;
  font-size: 0.66rem;
}

.clothes-plan-access-item {
  width: fit-content;
  max-width: 100%;
  padding: 4px 5px;
  border-radius: 10px;
}

.clothes-plan-access-copy {
  max-width: 248px;
}

.clothes-plan-access-copy strong {
  font-size: 0.77rem;
}

.clothes-plan-access-copy span {
  font-size: 0.66rem;
}

.clothes-plan-binding-input {
  width: 56px;
  padding: 4px 6px;
  font-size: 0.74rem;
}

#catalogPlanBindingsPanel.clothes-layout .clothes-plan-access-control .feature-toggle-switch {
  width: 28px;
  height: 16px;
}

#catalogPlanBindingsPanel.clothes-layout .clothes-plan-access-control .feature-toggle-slider::after {
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
}

#catalogPlanBindingsPanel.clothes-layout .clothes-plan-access-control .feature-toggle-input:checked + .feature-toggle-slider::after {
  transform: translateX(12px);
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

input,
select,
textarea {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  line-height: 1.5;
}

.json-editor {
  min-height: 220px;
}

.json-editor.tall {
  min-height: 320px;
}

.btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px var(--shadow);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.primary {
  background: linear-gradient(135deg, #1f6f5b, #38a07f);
  color: #ffffff;
  border: none;
  font-weight: 600;
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.subcard {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(31, 111, 91, 0.28);
  background: rgba(31, 111, 91, 0.04);
}

.subcard.nested {
  margin-top: 14px;
}

.fold-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-strong);
  list-style: none;
}

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

.fold-card summary::after {
  content: "展开";
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 500;
}

.fold-card[open] summary::after {
  content: "收起";
}

.fold-card .fold-body {
  margin-top: 10px;
}

.hint {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.hint.tight {
  margin-top: 4px;
}

.table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.compact-list-table table {
  min-width: 640px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(20, 28, 36, 0.08);
  font-size: 0.92rem;
  vertical-align: top;
}

th {
  background: var(--surface-3);
  color: var(--text-dim);
  font-weight: 600;
}

tbody tr:hover {
  background: rgba(31, 111, 91, 0.06);
}

tbody tr.active-row {
  background: rgba(31, 111, 91, 0.1);
}

.cell-input {
  width: 100%;
  min-width: 110px;
}

.cell-select {
  min-width: 120px;
}

.catalog-compact-cell {
  vertical-align: middle;
}

.catalog-action-cell,
.catalog-usage-cell {
  white-space: nowrap;
  vertical-align: middle;
}

.catalog-usage-cell .status-pill {
  margin-top: 0;
}

.catalog-cell-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.catalog-cell-stack .cell-input {
  min-width: 0;
}

.compact-sub-input {
  padding: 7px 10px;
  font-size: 0.82rem;
  background: rgba(246, 242, 234, 0.9);
}

.catalog-cell-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.35;
}

.catalog-cell-note {
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.45;
}

.catalog-group-cell {
  min-width: 112px;
}

.catalog-compact-metrics {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-compact-metrics .compact-pill {
  margin-top: 0;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.catalog-card-board {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.catalog-edit-card {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
}

.catalog-edit-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.catalog-edit-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.catalog-edit-card-title strong {
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--text);
}

.catalog-edit-card-fields {
  display: grid;
  gap: 8px;
}

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

.catalog-edit-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.catalog-edit-label {
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--text-dim);
  font-weight: 600;
}

.catalog-edit-field-wide {
  grid-column: 1 / -1;
}

.catalog-edit-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.catalog-edit-card .button-row {
  margin-top: 0;
}

.catalog-edit-card .status-pill {
  margin-top: 0;
}

.catalog-edit-card .catalog-cell-note {
  margin-top: -2px;
}

.catalog-edit-card-tip {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(246, 242, 234, 0.9);
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.45;
}

.catalog-empty-card {
  padding: 18px 14px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-dim);
  text-align: center;
  font-size: 0.84rem;
}

.catalog-role-permission-summary {
  margin-bottom: 8px;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(31, 111, 91, 0.12);
  background: linear-gradient(135deg, rgba(31, 111, 91, 0.08), rgba(255, 255, 255, 0.98));
}

.catalog-role-permission-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.catalog-role-permission-copy strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
}

.catalog-role-permission-copy span {
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.45;
}

.catalog-role-permission-grid {
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
}

.catalog-feature-manager-card {
  margin-top: 12px;
  border: 1px solid rgba(31, 111, 91, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.catalog-feature-manager-card summary {
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.catalog-feature-manager-body {
  padding: 0 10px 10px;
}

.active-role-card {
  border-color: rgba(31, 111, 91, 0.22);
  background: linear-gradient(180deg, rgba(31, 111, 91, 0.08), rgba(255, 255, 255, 0.96));
}

.catalog-role-card-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  margin-left: 12px;
}

.catalog-role-card-action {
  color: var(--text-dim);
  font-size: 0.76rem;
  line-height: 1.1;
}

.clothes-catalog-fold-card {
  gap: 0;
}

.clothes-catalog-fold-card summary {
  align-items: flex-start;
}

.clothes-catalog-fold-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.clothes-catalog-fold-body {
  display: grid;
  gap: 10px;
}

.clothes-catalog-fold-card .button-row {
  margin-top: 0;
}

.clothes-catalog-feature-group {
  padding: 10px;
}

.clothes-catalog-group-grid {
  margin-top: 0;
}

.clothes-module-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.clothes-catalog-fold-card.is-used {
  border-color: rgba(31, 111, 91, 0.18);
}

.feature-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.feature-group-head .feature-group-heading {
  margin: 0;
}

.feature-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .catalog-edit-card-fields-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-edit-field-wide {
    grid-column: auto;
  }

  .clothes-catalog-overview-grid,
  .clothes-catalog-ops-grid,
  .clothes-catalog-overview-fields,
  .clothes-catalog-info-grid,
  #catalogPlanGrid.clothes-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #catalogPlanBindingsPanel.clothes-layout {
    position: static;
    top: auto;
    max-height: none;
  }
}

.pager {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  flex-wrap: wrap;
}

.pager-info {
  color: var(--text-dim);
}

.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 12px;
}

.stat-card {
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #f5f2ec);
  border: 1px solid var(--border);
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 600;
  margin-top: 6px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.detail-panel {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px dashed rgba(31, 111, 91, 0.22);
}

.detail-panel h3 {
  margin: 0 0 10px;
}

.detail-section {
  margin-top: 14px;
}

.plan-editor-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(31, 111, 91, 0.03));
}

#catalogPlanEditorPanel.map-layout {
  padding: 12px;
  position: sticky;
  top: 88px;
}

#catalogPlanEditorPanel.map-layout .catalog-plan-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  justify-items: start;
}

#catalogPlanEditorPanel.map-layout .catalog-plan-form-grid > label {
  width: 100%;
  max-width: 168px;
}

#catalogPlanEditorPanel.map-layout .catalog-plan-form-grid > label > input,
#catalogPlanEditorPanel.map-layout .catalog-plan-form-grid > label > select {
  width: 100%;
  min-width: 0;
}

#catalogPlanEditorPanel.map-layout #catalogPlanShowWebField,
#catalogPlanEditorPanel.map-layout #catalogPlanShowClientField {
  max-width: 112px;
}

#catalogPlanEditorPanel.map-layout .workspace-metrics {
  display: none;
}

#catalogPlanEditorPanel.map-layout .section-head,
#catalogPlanBindingsPanel.map-layout .section-head {
  align-items: flex-start;
}

#catalogPlanBindingsPanel.map-layout {
  padding: 12px;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow: auto;
}

#catalogPlanBindingsPanel.map-layout .table-wrap {
  display: none !important;
}

#catalogPlanBindingsPanel.map-layout .feature-group-board {
  margin-top: 8px;
  gap: 8px;
}

#catalogPlanBindingsPanel.map-layout .feature-group-section {
  padding: 8px;
}

#catalogPlanBindingsPanel.map-layout .feature-toggle-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

#catalogPlanBindingsPanel.map-layout .feature-toggle-card {
  min-height: 36px;
  padding: 6px 8px;
}

#catalogPlanBindingsPanel.map-layout .feature-toggle-name {
  font-size: 0.76rem;
  line-height: 1.15;
}

.detail-text {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-word;
}

.detail-text strong {
  color: var(--text);
}

#userProfileSummary {
  margin-top: 2px;
}

.compact-profile-grid {
  margin-top: 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.55fr);
}

.compact-profile-grid > label:last-child {
  max-width: 180px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.role-chip {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.role-chip.compact-role-chip {
  padding: 8px 10px;
  border-radius: 12px;
}

.role-chip.compact-role-chip span {
  font-size: 0.84rem;
  line-height: 1.35;
}

.clothes-user-role-card {
  position: relative;
  display: grid;
  min-width: 0;
  cursor: pointer;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(31, 111, 91, 0.12);
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.clothes-user-role-card:hover {
  border-color: rgba(31, 111, 91, 0.2);
  background: rgba(255, 255, 255, 0.96);
}

.clothes-user-role-card.checked {
  border-color: rgba(31, 111, 91, 0.22);
  background: linear-gradient(135deg, rgba(31, 111, 91, 0.1), rgba(255, 255, 255, 0.98));
  box-shadow: 0 8px 18px rgba(31, 111, 91, 0.08);
}

.clothes-user-role-card input {
  position: absolute;
  top: 12px;
  right: 12px;
}

.clothes-user-role-card-copy {
  display: grid;
  gap: 8px;
  padding: 12px 42px 12px 12px;
  min-width: 0;
}

.clothes-user-role-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.clothes-user-role-card-head strong {
  min-width: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.2;
}

.clothes-user-role-card-desc {
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.45;
}

.clothes-user-feature-board {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-flow: row dense;
  align-items: start;
}

.clothes-user-feature-board .clothes-user-feature-group {
  background: rgba(255, 255, 255, 0.78);
}

.clothes-user-feature-group-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.clothes-user-feature-group-note {
  color: var(--text-dim);
  font-size: 0.74rem;
  line-height: 1.35;
}

.clothes-user-feature-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(var(--feature-item-columns, 2), minmax(0, 1fr));
}

.clothes-user-feature-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(31, 111, 91, 0.1);
  background: rgba(255, 255, 255, 0.92);
  min-width: 0;
}

.clothes-user-feature-card.overriding {
  border-color: rgba(31, 111, 91, 0.2);
  background: linear-gradient(180deg, rgba(31, 111, 91, 0.08), rgba(255, 255, 255, 0.96));
}

.clothes-user-feature-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.clothes-user-feature-card-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.clothes-user-feature-card-copy strong {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.18;
}

.clothes-user-feature-card-copy span {
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.35;
}

.clothes-user-feature-values {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clothes-user-feature-value {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(246, 242, 234, 0.85);
}

.clothes-user-feature-value span {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.2;
}

.clothes-user-feature-value strong {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.1;
}

.clothes-user-feature-input {
  display: grid;
  gap: 4px;
}

.clothes-user-feature-input > span {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 600;
}

.clothes-feature-override-input {
  min-width: 0;
  padding: 8px 10px;
}

.empty-box {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  color: var(--text-dim);
  background: var(--surface-2);
}

.order-debug-grid {
  margin-top: 14px;
}

.order-debug-panels {
  margin-top: 12px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

.order-debug-panels .detail-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

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

.order-debug-form .catalog-edit-field-wide {
  grid-column: 1 / -1;
}

.order-debug-actions {
  margin-top: -2px;
}

.order-debug-preview {
  display: grid;
  gap: 12px;
}

.order-debug-detail-fold {
  margin-top: 12px;
}

.order-debug-detail-fold .json-editor.tall {
  min-height: 260px;
}

.order-callback-log-table table {
  min-width: 0;
}

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

.order-log-row-actions {
  justify-content: flex-start;
}

@media (max-width: 1200px) {
  .order-debug-panels {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-debug-form {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.runtime-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.runtime-summary-grid {
  margin-top: 12px;
}

#runtime .selection-banner {
  margin-top: 12px;
  gap: 10px;
  padding: 14px 16px;
}

#runtime .selection-banner-copy {
  flex: 1 1 220px;
}

#runtime .workspace-metrics {
  margin-top: 12px;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

#runtime .metric-chip {
  padding: 12px 14px;
  min-height: 0;
}

#runtime .metric-chip .label {
  font-size: 0.78rem;
}

#runtime .metric-chip .value {
  margin-top: 4px;
  font-size: 0.96rem;
  line-height: 1.35;
}

#runtime .subcard {
  margin-top: 14px;
  padding: 16px;
}

#runtime .table-wrap table {
  min-width: 0;
}

#runtime .summary-card {
  min-height: 0;
}

#runtime .runtime-card-lines {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}

#runtime .runtime-card-lines strong {
  color: var(--text-main);
}

#runtime .runtime-overview-table table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

#runtime .runtime-overview-table th,
#runtime .runtime-overview-table td {
  vertical-align: top;
  padding: 10px 12px;
  word-break: break-word;
}

#runtime .runtime-overview-table th {
  line-height: 1.35;
}

#runtime .runtime-overview-table td {
  line-height: 1.5;
}

#runtime .runtime-service-table th:nth-child(1),
#runtime .runtime-service-table td:nth-child(1) {
  width: 14%;
}

#runtime .runtime-service-table th:nth-child(2),
#runtime .runtime-service-table td:nth-child(2) {
  width: 21%;
}

#runtime .runtime-service-table th:nth-child(3),
#runtime .runtime-service-table td:nth-child(3) {
  width: 22%;
}

#runtime .runtime-service-table th:nth-child(4),
#runtime .runtime-service-table td:nth-child(4) {
  width: 21%;
}

#runtime .runtime-service-table th:nth-child(5),
#runtime .runtime-service-table td:nth-child(5) {
  width: 22%;
}

#runtime .runtime-alert-table th:nth-child(1),
#runtime .runtime-alert-table td:nth-child(1) {
  width: 24%;
}

#runtime .runtime-alert-table th:nth-child(2),
#runtime .runtime-alert-table td:nth-child(2) {
  width: 28%;
}

#runtime .runtime-alert-table th:nth-child(3),
#runtime .runtime-alert-table td:nth-child(3) {
  width: 24%;
}

#runtime .runtime-alert-table th:nth-child(4),
#runtime .runtime-alert-table td:nth-child(4) {
  width: 24%;
}

#runtime .runtime-reported-table th:nth-child(1),
#runtime .runtime-reported-table td:nth-child(1) {
  width: 16%;
}

#runtime .runtime-reported-table th:nth-child(2),
#runtime .runtime-reported-table td:nth-child(2) {
  width: 26%;
}

#runtime .runtime-reported-table th:nth-child(3),
#runtime .runtime-reported-table td:nth-child(3) {
  width: 18%;
}

#runtime .runtime-reported-table th:nth-child(4),
#runtime .runtime-reported-table td:nth-child(4) {
  width: 18%;
}

#runtime .runtime-reported-table th:nth-child(5),
#runtime .runtime-reported-table td:nth-child(5) {
  width: 22%;
}

#runtime .runtime-access-table th:nth-child(1),
#runtime .runtime-access-table td:nth-child(1) {
  width: 12%;
}

#runtime .runtime-access-table th:nth-child(2),
#runtime .runtime-access-table td:nth-child(2) {
  width: 24%;
}

#runtime .runtime-access-table th:nth-child(3),
#runtime .runtime-access-table td:nth-child(3) {
  width: 20%;
}

#runtime .runtime-access-table th:nth-child(4),
#runtime .runtime-access-table td:nth-child(4) {
  width: 21%;
}

#runtime .runtime-access-table th:nth-child(5),
#runtime .runtime-access-table td:nth-child(5) {
  width: 23%;
}

#runtime .runtime-threshold-table th:nth-child(1),
#runtime .runtime-threshold-table td:nth-child(1) {
  width: 18%;
}

#runtime .runtime-threshold-table th:nth-child(2),
#runtime .runtime-threshold-table td:nth-child(2) {
  width: 15%;
}

#runtime .runtime-threshold-table th:nth-child(3),
#runtime .runtime-threshold-table td:nth-child(3) {
  width: 17%;
}

#runtime .runtime-threshold-table th:nth-child(4),
#runtime .runtime-threshold-table td:nth-child(4) {
  width: 10%;
}

#runtime .runtime-threshold-table th:nth-child(5),
#runtime .runtime-threshold-table td:nth-child(5) {
  width: 20%;
}

#runtime .runtime-threshold-table th:nth-child(6),
#runtime .runtime-threshold-table td:nth-child(6) {
  width: 20%;
}

#runtime .runtime-endpoint-table th:nth-child(1),
#runtime .runtime-endpoint-table td:nth-child(1) {
  width: 25%;
}

#runtime .runtime-endpoint-table th:nth-child(2),
#runtime .runtime-endpoint-table td:nth-child(2) {
  width: 17%;
}

#runtime .runtime-endpoint-table th:nth-child(3),
#runtime .runtime-endpoint-table td:nth-child(3) {
  width: 18%;
}

#runtime .runtime-endpoint-table th:nth-child(4),
#runtime .runtime-endpoint-table td:nth-child(4) {
  width: 20%;
}

#runtime .runtime-endpoint-table th:nth-child(5),
#runtime .runtime-endpoint-table td:nth-child(5) {
  width: 20%;
}

#runtime .runtime-recent-table th:nth-child(1),
#runtime .runtime-recent-table td:nth-child(1) {
  width: 10%;
}

#runtime .runtime-recent-table th:nth-child(2),
#runtime .runtime-recent-table td:nth-child(2) {
  width: 22%;
}

#runtime .runtime-recent-table th:nth-child(3),
#runtime .runtime-recent-table td:nth-child(3) {
  width: 17%;
}

#runtime .runtime-recent-table th:nth-child(4),
#runtime .runtime-recent-table td:nth-child(4) {
  width: 14%;
}

#runtime .runtime-recent-table th:nth-child(5),
#runtime .runtime-recent-table td:nth-child(5) {
  width: 13%;
}

#runtime .runtime-recent-table th:nth-child(6),
#runtime .runtime-recent-table td:nth-child(6) {
  width: 12%;
}

#runtime .runtime-recent-table th:nth-child(7),
#runtime .runtime-recent-table td:nth-child(7) {
  width: 12%;
}

#runtime .runtime-cell-stack {
  display: grid;
  gap: 3px;
}

#runtime .runtime-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: flex-start;
}

#runtime .runtime-table-title {
  font-weight: 600;
  color: var(--text);
}

#runtime .runtime-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#runtime .runtime-cell-note {
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.35;
}

#runtime .runtime-product-cell {
  align-content: start;
}

#runtime .runtime-access-stack {
  gap: 8px;
}

#runtime .runtime-access-item {
  display: grid;
  gap: 4px;
}

#runtime .runtime-access-item + .runtime-access-item {
  padding-top: 8px;
  border-top: 1px dashed rgba(31, 111, 91, 0.12);
}

#runtime .runtime-access-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

#runtime .runtime-access-item-head strong {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.25;
}

#runtime .runtime-endpoint-path code {
  font-size: 0.78rem;
}

#runtime .runtime-tech-detail {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

#runtime .runtime-tech-detail summary {
  cursor: pointer;
  color: var(--text-main);
  font-weight: 600;
}

.compact-summary-grid {
  align-content: start;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

#catalogPlanGrid.map-layout .compact-summary-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.summary-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 14px;
}

.summary-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.summary-title {
  font-weight: 600;
}

.summary-meta {
  color: var(--text-dim);
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.summary-pill-row {
  margin-top: 10px;
}

.access-panel {
  margin-top: 14px;
  grid-column: 1 / -1;
}

.summary-card.selectable {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.summary-card.selectable:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px var(--shadow);
}

.summary-card.active-card {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(31, 111, 91, 0.08), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 26px rgba(31, 111, 91, 0.12);
}

.summary-card.inactive-card {
  opacity: 0.82;
}

.summary-card .status-pill {
  margin-top: 8px;
}

.product-clone-grid {
  margin-top: 2px;
}

.product-clone-scope-card {
  display: block;
  cursor: pointer;
}

.product-clone-scope-card.is-locked {
  cursor: default;
}

.product-clone-scope-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-clone-scope-input {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.product-clone-scope-input input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--accent-strong);
}

.product-clone-scope-note {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.4;
}

.product-clone-banner {
  margin-top: 10px;
}

.catalog-plan-card {
  padding: 12px;
}

.catalog-plan-card .button-row {
  margin-top: 10px;
}

.map-plan-card {
  display: grid;
  gap: 5px;
  min-height: 0;
  padding: 8px 9px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.map-plan-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px var(--shadow);
}

.map-plan-card-head {
  gap: 6px;
  align-items: flex-start;
}

.map-plan-head-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.map-plan-title {
  font-size: 0.92rem;
  line-height: 1.15;
}

.map-plan-price {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1;
}

.map-plan-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.map-plan-extra-fold {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 10px 12px;
  border-style: solid;
  background: rgba(91, 103, 117, 0.04);
}

.map-plan-extra-grid {
  margin-top: 8px;
}

.map-ops-layout {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.map-ops-card {
  margin-top: 0;
  border-style: solid;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(31, 111, 91, 0.04));
}

.map-ops-card-wide {
  grid-column: 1 / -1;
}

.map-ops-toggle-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.map-ops-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.map-ops-toggle-copy {
  display: grid;
  gap: 4px;
}

.map-ops-toggle-copy strong {
  color: var(--text);
}

.map-ops-toggle-copy small {
  color: var(--text-dim);
  line-height: 1.35;
}

.map-ops-main-grid {
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.map-ops-wide-field {
  grid-column: 1 / -1;
}

.map-ops-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.map-ops-list-item {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.map-ops-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.map-ops-log-grid {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.map-ops-log-title,
.map-ops-log-content {
  grid-column: 1 / -1;
}

.map-ops-log-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(31, 111, 91, 0.04);
}

.map-ops-security-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.map-ops-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.map-ops-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.2;
}

.map-ops-chip-list.readonly .map-ops-chip {
  background: rgba(31, 111, 91, 0.05);
}

.map-ops-chip-remove {
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  font-size: 0.78rem;
}

.map-ops-chip-remove:hover {
  color: var(--danger);
}

.compact-access-grid {
  margin-top: 10px;
  grid-template-columns: minmax(260px, 1.35fr) minmax(220px, 0.95fr);
}

.value-stack {
  display: grid;
  gap: 6px;
}

.value-primary {
  font-weight: 600;
  color: var(--text);
}

.value-secondary {
  color: var(--text-dim);
  font-size: 0.84rem;
}

.users-id-cell {
  white-space: nowrap;
  color: var(--text-dim);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#users th,
#users td {
  vertical-align: middle;
}

#products th,
#products td {
  vertical-align: middle;
}

#products td .cell-input,
#products td .cell-select,
#products td .button-row {
  margin-top: 0;
  margin-bottom: 0;
}

#products td .button-row {
  align-items: center;
}

.user-status-cell .btn {
  min-width: 72px;
}

.status-toggle.is-enabled {
  background: linear-gradient(135deg, #1f6f5b, #38a07f);
  color: #ffffff;
  border: none;
}

.status-toggle.is-disabled {
  background: rgba(200, 77, 77, 0.12);
  color: #9f3030;
  border-color: rgba(200, 77, 77, 0.22);
}

.chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.2;
}

.mini-chip.emphasis {
  background: rgba(31, 111, 91, 0.08);
  border-color: rgba(31, 111, 91, 0.18);
  color: var(--accent-strong);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-pill.ok {
  background: rgba(31, 111, 91, 0.1);
  border-color: rgba(31, 111, 91, 0.18);
  color: var(--accent-strong);
}

.status-pill.muted {
  background: rgba(91, 103, 117, 0.1);
  border-color: rgba(91, 103, 117, 0.16);
  color: var(--text-dim);
}

.status-pill.warn {
  background: rgba(212, 154, 58, 0.12);
  border-color: rgba(212, 154, 58, 0.18);
  color: #8a5f15;
}

.status-pill.danger {
  background: rgba(200, 77, 77, 0.1);
  border-color: rgba(200, 77, 77, 0.16);
  color: var(--danger);
}

.kpi-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 10px;
}

.kpi-item {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 14px;
}

.kpi-label {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.kpi-value {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 600;
}

.compact.table-wrap,
.table-wrap.compact {
  margin-top: 10px;
}

.feature-table {
  min-width: 680px;
}

.feature-table tr.override-row {
  background: rgba(31, 111, 91, 0.06);
}

.feature-table tr.override-row:hover {
  background: rgba(31, 111, 91, 0.1);
}

.feature-table tr.bound-row {
  background: rgba(31, 111, 91, 0.06);
}

.feature-table tr.bound-row:hover {
  background: rgba(31, 111, 91, 0.1);
}

.feature-table tr.following-row {
  background: rgba(212, 154, 58, 0.04);
}

.feature-table tr.unbound-row {
  background: rgba(212, 154, 58, 0.04);
}

.feature-name {
  font-weight: 600;
}

.feature-code {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
}

.feature-note {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.feature-value {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.84rem;
}

.feature-value.empty {
  color: var(--text-dim);
}

.feature-override-input {
  width: 100%;
  min-width: 120px;
}

.feature-group-board {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.feature-group-section {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 237, 0.96));
  padding: 8px 10px;
}

.feature-group-heading {
  margin: 0 0 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.feature-toggle-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.feature-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.feature-toggle-card:hover {
  border-color: rgba(31, 111, 91, 0.24);
  box-shadow: 0 10px 22px rgba(31, 111, 91, 0.08);
  transform: translateY(-1px);
}

.feature-toggle-card.checked {
  border-color: rgba(31, 111, 91, 0.22);
  background: linear-gradient(135deg, rgba(31, 111, 91, 0.08), rgba(255, 255, 255, 0.98));
}

.feature-toggle-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.feature-toggle-switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
}

.feature-toggle-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.feature-toggle-slider {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(91, 103, 117, 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.feature-toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(18, 38, 41, 0.18);
  transition: transform 0.18s ease;
}

.feature-toggle-input:checked + .feature-toggle-slider {
  background: rgba(31, 111, 91, 0.8);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 91, 0.14);
}

.feature-toggle-input:checked + .feature-toggle-slider::after {
  transform: translateX(18px);
}

.feature-toggle-input:focus-visible + .feature-toggle-slider {
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.18);
}

body.compact-mode .bg-orbit {
  width: 280px;
  height: 280px;
  opacity: 0.56;
}

body.compact-mode .hero {
  padding-top: 18px;
  padding-bottom: 10px;
  gap: 16px;
}

body.compact-mode .hero-title h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

body.compact-mode .hero-title p {
  max-width: 900px;
  font-size: 0.92rem;
  line-height: 1.45;
}

body.compact-mode .badge {
  padding: 4px 10px;
  font-size: 0.64rem;
}

body.compact-mode .nav {
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 10px;
}

body.compact-mode .nav-actions,
body.compact-mode .nav-meta,
body.compact-mode .section-actions,
body.compact-mode .button-row,
body.compact-mode .chip-row {
  gap: 8px;
}

body.compact-mode .nav button {
  padding: 6px 12px;
  font-size: 0.88rem;
}

body.compact-mode .status,
body.compact-mode .admin-info {
  padding: 8px 12px;
  border-radius: 12px;
  min-width: 0;
}

body.compact-mode .container {
  padding-top: 10px;
  padding-bottom: 48px;
}

body.compact-mode .card {
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 28px var(--shadow);
}

body.compact-mode .section-head {
  gap: 10px;
}

body.compact-mode .page-switch {
  margin-top: 10px;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
}

body.compact-mode .page-switch-btn {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
}

body.compact-mode .page-panel-empty {
  margin-top: 10px;
}

body.compact-mode .section-head h2,
body.compact-mode .card h2 {
  margin-bottom: 6px;
  font-size: 1.16rem;
}

body.compact-mode .section-head h3,
body.compact-mode .card h3 {
  margin-bottom: 6px;
  font-size: 0.98rem;
}

body.compact-mode .selection-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.35;
  font-size: 0.88rem;
}

body.compact-mode .selection-banner-copy strong {
  margin-bottom: 0;
}

body.compact-mode .workspace-metrics,
body.compact-mode .stats-grid,
body.compact-mode .detail-grid,
body.compact-mode .split-grid,
body.compact-mode .summary-grid,
body.compact-mode .role-grid,
body.compact-mode .kpi-grid {
  gap: 8px;
}

body.compact-mode .catalog-plan-managers {
  margin-bottom: 10px;
}

body.compact-mode .catalog-stage-shell {
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
}

body.compact-mode .catalog-stage-head {
  gap: 10px;
  padding-bottom: 8px;
}

body.compact-mode .catalog-stage-eyebrow {
  padding: 3px 8px;
  font-size: 0.66rem;
}

body.compact-mode .catalog-plan-managers .embedded-plan-managers {
  gap: 8px;
}

body.compact-mode .workspace-metrics {
  margin-top: 10px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

body.compact-mode .metric-chip,
body.compact-mode .stat-card,
body.compact-mode .kpi-item {
  padding: 10px 12px;
  border-radius: 12px;
}

body.compact-mode .metric-chip .label,
body.compact-mode .stat-label,
body.compact-mode .kpi-label {
  font-size: 0.76rem;
}

body.compact-mode .metric-chip .value,
body.compact-mode .kpi-value {
  margin-top: 4px;
  font-size: 0.94rem;
}

body.compact-mode #catalogPlanWorkspaceMetrics.map-summary-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 10px;
  padding-bottom: 10px;
}

body.compact-mode #catalogPlanWorkspaceMetrics.map-summary-metrics + .catalog-plan-grid {
  margin-top: 10px;
}

body.compact-mode .compact-pill-row {
  margin-top: 8px;
  gap: 6px;
}

body.compact-mode .compact-pill {
  padding: 6px 10px;
  font-size: 0.78rem;
}

body.compact-mode .user-access-topline {
  margin-top: 10px;
  padding-bottom: 10px;
}

body.compact-mode .user-access-topline .compact-pill {
  padding: 5px 9px;
  font-size: 0.76rem;
}

body.compact-mode .stat-value {
  margin-top: 4px;
  font-size: 1.18rem;
}

body.compact-mode .form-grid {
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

body.compact-mode label {
  gap: 4px;
  font-size: 0.82rem;
}

body.compact-mode input,
body.compact-mode select,
body.compact-mode textarea {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.88rem;
}

body.compact-mode .users-summary-row {
  margin-top: 0;
}

body.compact-mode .users-summary-row .compact-pill {
  padding: 5px 9px;
  font-size: 0.76rem;
}

body.compact-mode textarea {
  min-height: 84px;
  line-height: 1.4;
}

body.compact-mode .json-editor {
  min-height: 160px;
}

body.compact-mode .json-editor.tall {
  min-height: 220px;
}

body.compact-mode .order-debug-grid {
  margin-top: 10px;
}

body.compact-mode .order-debug-panels .detail-panel {
  gap: 10px;
}

body.compact-mode .order-debug-preview {
  gap: 10px;
}

body.compact-mode .order-debug-detail-fold .json-editor.tall {
  min-height: 180px;
}

body.compact-mode .btn {
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
}

body.compact-mode .btn.small {
  padding: 5px 9px;
  font-size: 0.8rem;
}

body.compact-mode .workspace-toolbar-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
}

body.compact-mode .workspace-toolbar-grid {
  gap: 10px;
}

body.compact-mode .workspace-toolbar-meta {
  margin-top: 10px;
  padding-top: 10px;
  gap: 10px;
}

body.compact-mode .toolbar-field {
  gap: 4px;
}

body.compact-mode .toolbar-label {
  font-size: 0.7rem;
}

body.compact-mode .toolbar-inline,
body.compact-mode .users-selection-inline,
body.compact-mode .users-selection-actions {
  gap: 8px;
}

body.compact-mode .toolbar-state strong {
  font-size: 0.82rem;
}

body.compact-mode .toolbar-state span {
  font-size: 0.76rem;
}

body.compact-mode .user-access-quick-actions {
  margin-top: 6px;
}

body.compact-mode .user-access-summary-row {
  margin-top: 6px;
}

body.compact-mode .user-access-layout {
  margin-top: 12px;
}

body.compact-mode .user-access-auth-stack {
  gap: 10px;
}

body.compact-mode .user-access-summary-row .compact-pill {
  padding: 5px 9px;
  font-size: 0.76rem;
}

body.compact-mode #userDetail > .user-detail-head {
  padding-bottom: 12px;
}

body.compact-mode #userDetail > .user-detail-switch {
  margin-top: 8px;
}

body.compact-mode #userDetail .user-access-layout {
  padding: 0;
  gap: 8px;
}

body.compact-mode #userDetail .user-access-auth-stack {
  gap: 6px;
}

body.compact-mode #userDetail #userFeatureBoard.feature-group-board {
  gap: 8px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

body.compact-mode #userDetail .user-access-toolbar-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

body.compact-mode #userDetail #userFeatureBoard .feature-toggle-card {
  min-height: 26px;
  padding: 3px 5px;
}

body.compact-mode #userDetail .user-access-quick-actions .btn {
  padding: 5px 8px;
  min-height: 28px;
  font-size: 0.78rem;
}

body.compact-mode #userDetail .user-access-summary-row .compact-pill {
  padding: 4px 8px;
  font-size: 0.72rem;
}

body.compact-mode .subcard {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
}

body.compact-mode .subcard.nested,
body.compact-mode .detail-section {
  margin-top: 10px;
}

body.compact-mode .fold-card .fold-body {
  margin-top: 6px;
}

body.compact-mode .hint {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.35;
}

body.compact-mode .table-wrap {
  margin-top: 8px;
  border-radius: 12px;
}

body.compact-mode .compact-list-table table {
  min-width: 560px;
}

body.compact-mode table {
  min-width: 620px;
}

body.compact-mode th,
body.compact-mode td {
  padding: 8px 10px;
  font-size: 0.84rem;
}

body.compact-mode .value-stack {
  gap: 4px;
}

body.compact-mode .status-pill {
  min-width: auto;
  padding: 4px 8px;
  font-size: 0.74rem;
}

body.compact-mode .pager {
  margin-top: 8px;
  gap: 8px;
}

body.compact-mode .pager-info,
body.compact-mode .value-secondary,
body.compact-mode .summary-meta,
body.compact-mode .feature-code,
body.compact-mode .feature-note {
  font-size: 0.76rem;
}

body.compact-mode .users-id-cell {
  font-size: 0.8rem;
}

body.compact-mode #users th,
body.compact-mode #users td {
  vertical-align: middle;
}

body.compact-mode .user-status-cell .btn {
  min-width: 64px;
}

body.compact-mode .log-detail-fold summary {
  font-size: 0.76rem;
}

body.compact-mode .audit-detail-list {
  gap: 6px;
}

body.compact-mode .audit-detail-row {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 8px;
  border-radius: 10px;
}

body.compact-mode .audit-detail-label,
body.compact-mode .audit-detail-value,
body.compact-mode .audit-raw-fold summary {
  font-size: 0.74rem;
}

body.compact-mode .feature-group-board {
  margin-top: 6px;
  gap: 6px;
}

body.compact-mode .feature-group-section {
  padding: 7px 8px;
  border-radius: 12px;
}

body.compact-mode .feature-group-heading {
  margin-bottom: 6px;
  font-size: 0.8rem;
}

body.compact-mode .clothes-catalog-fold-copy .catalog-cell-note,
body.compact-mode .feature-group-count {
  font-size: 0.72rem;
}

body.compact-mode .catalog-role-permission-summary {
  padding: 8px 10px;
}

body.compact-mode .catalog-role-permission-copy span,
body.compact-mode .catalog-role-card-action {
  font-size: 0.72rem;
}

body.compact-mode .catalog-feature-manager-card summary,
body.compact-mode .catalog-feature-manager-body {
  padding-left: 8px;
  padding-right: 8px;
}

body.compact-mode .clothes-catalog-fold-body {
  gap: 8px;
}

body.compact-mode .feature-toggle-grid {
  gap: 5px;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

body.compact-mode .feature-toggle-card {
  min-height: 36px;
  padding: 5px 7px;
  border-radius: 12px;
}

body.compact-mode .feature-toggle-name {
  font-size: 0.78rem;
}

body.compact-mode .feature-toggle-switch {
  width: 38px;
  height: 22px;
}

body.compact-mode .feature-toggle-slider::after {
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
}

body.compact-mode .feature-toggle-input:checked + .feature-toggle-slider::after {
  transform: translateX(16px);
}

body.compact-mode .detail-grid {
  margin-top: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

body.compact-mode .detail-panel {
  padding: 12px;
  border-radius: 12px;
}

body.compact-mode .detail-text {
  font-size: 0.88rem;
  line-height: 1.45;
}

body.compact-mode .compact-profile-grid {
  margin-top: 10px;
}

body.compact-mode .summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.compact-mode .runtime-summary-grid {
  gap: 8px;
}

body.compact-mode #runtime .summary-card {
  padding: 10px 12px;
}

body.compact-mode #runtime .runtime-overview-table th,
body.compact-mode #runtime .runtime-overview-table td {
  padding: 8px 9px;
}

body.compact-mode #runtime .runtime-cell-note {
  font-size: 0.74rem;
}

body.compact-mode .compact-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
}

body.compact-mode #catalogPlanGrid.map-layout .compact-summary-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

body.compact-mode #catalogPlanGrid.clothes-layout {
  gap: 6px;
  grid-template-columns: minmax(280px, 1.12fr) minmax(330px, 1.06fr) minmax(0, 2.3fr);
}

body.compact-mode #catalogPlanEditorPanel.clothes-layout {
  padding: 10px;
}

body.compact-mode #catalogPlanBindingsPanel.clothes-layout {
  padding: 8px;
  top: 70px;
  max-height: calc(100vh - 78px);
}

body.compact-mode .clothes-plan-note,
body.compact-mode .clothes-plan-feature-card-copy span,
body.compact-mode .clothes-plan-feature-toggle > span:first-child,
body.compact-mode .clothes-plan-feature-input > span {
  font-size: 0.7rem;
}

body.compact-mode .clothes-plan-role-tab {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.74rem;
}

body.compact-mode .clothes-plan-access-grid {
  gap: 5px;
}

body.compact-mode .clothes-plan-feature-board {
  gap: 8px;
}

body.compact-mode .clothes-plan-feature-group {
  padding: 8px 10px;
}

body.compact-mode .clothes-plan-feature-grid {
  gap: 5px;
}

body.compact-mode .clothes-plan-feature-card {
  padding: 6px 7px;
}

body.compact-mode .clothes-plan-feature-card-copy strong {
  font-size: 0.74rem;
}

body.compact-mode .clothes-plan-feature-inline-label,
body.compact-mode .clothes-plan-feature-card-foot .mini-chip {
  font-size: 0.66rem;
}

body.compact-mode .clothes-plan-state-stack .mini-chip {
  padding: 2px 6px;
  font-size: 0.66rem;
}

body.compact-mode .clothes-plan-card {
  padding: 9px 10px;
}

body.compact-mode .clothes-plan-access-groups {
  gap: 6px;
}

body.compact-mode .clothes-plan-access-group {
  padding: 6px;
}

body.compact-mode .clothes-plan-access-column-head,
body.compact-mode .clothes-plan-access-item {
  grid-template-columns: fit-content(228px) 52px 34px 46px;
  gap: 4px;
}

body.compact-mode .clothes-plan-access-column-head {
  padding: 0 4px;
  font-size: 0.66rem;
}

body.compact-mode .clothes-plan-access-item {
  padding: 5px 6px;
}

body.compact-mode .clothes-plan-access-copy strong {
  font-size: 0.76rem;
}

body.compact-mode .clothes-plan-access-copy span {
  font-size: 0.66rem;
}

body.compact-mode .clothes-plan-binding-input {
  width: 52px;
  padding: 4px 6px;
  font-size: 0.74rem;
}

body.compact-mode .clothes-plan-package-shell {
  gap: 8px;
}

body.compact-mode .clothes-plan-package-header,
body.compact-mode .clothes-plan-package-section {
  padding: 8px;
}

body.compact-mode .clothes-plan-package-grid {
  gap: 6px;
}

body.compact-mode .clothes-plan-package-card {
  gap: 6px;
  padding: 7px 8px;
}

body.compact-mode .clothes-plan-package-copy strong {
  font-size: 0.76rem;
}

body.compact-mode .clothes-plan-package-copy span,
body.compact-mode .clothes-plan-package-section-copy span,
body.compact-mode .clothes-plan-package-input-unit {
  font-size: 0.66rem;
}

body.compact-mode .clothes-plan-effective-pill {
  padding: 2px 5px;
  font-size: 0.66rem;
}

body.compact-mode .clothes-plan-stage {
  padding: 14px;
}

body.compact-mode #catalogPlanEditorPanel.clothes-layout .catalog-plan-form-grid > label {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

body.compact-mode #catalogPlanEditorPanel.clothes-layout .catalog-plan-form-grid > label::before {
  display: none;
}

body.compact-mode #catalogPlanEditorPanel.clothes-layout .catalog-plan-form-grid > label > input,
body.compact-mode #catalogPlanEditorPanel.clothes-layout .catalog-plan-form-grid > label > select {
  padding: 7px 9px;
}

body.compact-mode .clothes-plan-access-topbar {
  gap: 6px;
}

body.compact-mode .clothes-plan-access-focus {
  font-size: 0.86rem;
}

body.compact-mode .clothes-plan-access-role-row {
  gap: 6px;
}

body.compact-mode .clothes-plan-role-tab-row {
  gap: 4px;
}

body.compact-mode .clothes-plan-access-role-row {
  gap: 6px;
}

body.compact-mode .clothes-plan-role-tab-row {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  padding: 3px;
}

body.compact-mode .summary-card {
  padding: 10px 12px;
  border-radius: 12px;
}

body.compact-mode .summary-card-head {
  gap: 8px;
}

body.compact-mode .product-clone-scope-input {
  gap: 6px;
  font-size: 0.84rem;
}

body.compact-mode .product-clone-scope-note {
  margin-top: 4px;
  font-size: 0.72rem;
}

body.compact-mode .product-clone-banner {
  margin-top: 8px;
}

body.compact-mode .summary-pill-row {
  margin-top: 8px;
}

body.compact-mode .summary-count {
  min-width: 24px;
  padding: 2px 6px;
  font-size: 0.72rem;
}

body.compact-mode .role-chip.compact-role-chip {
  padding: 6px 8px;
  border-radius: 10px;
}

body.compact-mode .role-chip.compact-role-chip span {
  font-size: 0.78rem;
}

body.compact-mode .clothes-user-role-card-copy {
  gap: 6px;
  padding: 10px 38px 10px 10px;
}

body.compact-mode .clothes-user-role-card-head strong {
  font-size: 0.82rem;
}

body.compact-mode .clothes-user-role-card-desc {
  font-size: 0.74rem;
}

body.compact-mode .clothes-user-feature-board {
  gap: 8px;
}

body.compact-mode .clothes-user-feature-grid {
  gap: 6px;
}

body.compact-mode .clothes-user-feature-card {
  gap: 6px;
  padding: 8px;
}

body.compact-mode .clothes-user-feature-card-copy strong,
body.compact-mode .clothes-user-feature-value strong {
  font-size: 0.8rem;
}

body.compact-mode .clothes-user-feature-card-copy span,
body.compact-mode .clothes-user-feature-group-note,
body.compact-mode .clothes-user-feature-value span,
body.compact-mode .clothes-user-feature-input > span {
  font-size: 0.7rem;
}

body.compact-mode .clothes-feature-override-input {
  padding: 6px 8px;
  font-size: 0.78rem;
}

body.compact-mode .mini-chip,
body.compact-mode .status-pill,
body.compact-mode .feature-value {
  font-size: 0.74rem;
}

body.compact-mode .catalog-plan-grid {
  gap: 12px;
  grid-template-columns: minmax(320px, 1.12fr) minmax(300px, 1fr);
}

body.compact-mode #catalogPlanGrid.map-layout {
  gap: 10px;
  grid-template-columns: minmax(208px, 0.62fr) minmax(228px, 0.72fr) minmax(420px, 1.34fr);
}

body.compact-mode .map-plan-card {
  gap: 5px;
  padding: 7px 8px;
}

body.compact-mode .map-plan-title {
  font-size: 0.84rem;
}

body.compact-mode .map-plan-price {
  font-size: 0.86rem;
}

body.compact-mode .map-plan-head-meta {
  gap: 3px;
}

body.compact-mode #catalogPlanEditorPanel.map-layout {
  padding: 9px;
  top: 76px;
}

body.compact-mode #catalogPlanBindingsPanel.map-layout {
  padding: 9px;
  top: 76px;
  max-height: calc(100vh - 96px);
}

body.compact-mode #catalogPlanEditorPanel.map-layout .catalog-plan-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
}

body.compact-mode #catalogPlanEditorPanel.map-layout .catalog-plan-form-grid > label {
  max-width: 156px;
}

body.compact-mode #catalogPlanEditorPanel.map-layout #catalogPlanShowWebField,
body.compact-mode #catalogPlanEditorPanel.map-layout #catalogPlanShowClientField {
  max-width: 100px;
}

body.compact-mode #catalogPlanBoard.map-layout {
  gap: 6px;
  grid-template-columns: minmax(0, 1fr);
}

body.compact-mode .map-plan-column-head {
  gap: 1px;
  padding: 0 1px 3px;
}

body.compact-mode .map-plan-column-title {
  font-size: 0.88rem;
}

body.compact-mode .map-plan-column-hint {
  font-size: 0.72rem;
}

body.compact-mode #catalogPlanBindingsPanel.map-layout .feature-toggle-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

body.compact-mode #catalogPlanBindingsPanel.map-layout .feature-toggle-card {
  min-height: 32px;
  padding: 5px 6px;
}

body.compact-mode #catalogPlanBindingsPanel.map-layout .feature-toggle-name {
  font-size: 0.72rem;
  line-height: 1.1;
}

body.compact-mode .map-plan-extra-fold {
  padding: 8px 10px;
}

body.compact-mode .map-ops-layout,
body.compact-mode .map-ops-list,
body.compact-mode .map-ops-security-grid,
body.compact-mode .map-ops-toggle-grid {
  gap: 8px;
}

body.compact-mode .map-ops-toggle-card,
body.compact-mode .map-ops-list-item {
  padding: 10px;
  border-radius: 12px;
}

body.compact-mode .map-ops-main-grid,
body.compact-mode .map-ops-log-grid {
  gap: 8px;
}

body.compact-mode .map-ops-main-grid {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

body.compact-mode .map-ops-log-grid {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
}

body.compact-mode .map-ops-log-toggle {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
}

body.compact-mode .map-ops-chip-list {
  gap: 6px;
  margin-top: 8px;
}

body.compact-mode .map-ops-chip {
  gap: 6px;
  padding: 6px 8px;
  font-size: 0.76rem;
}

.advanced-box {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: var(--surface);
  padding: 12px 14px;
}

.advanced-box summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-strong);
}

.runtime-fold {
  margin-top: 10px;
}

.runtime-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
}

.advanced-box textarea {
  margin-top: 12px;
}

pre.log-detail {
  margin: 8px 0 0;
  max-width: 100%;
  max-height: 140px;
  overflow: auto;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.82rem;
  line-height: 1.45;
}

.log-detail-fold {
  min-width: 240px;
}

.audit-detail-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.audit-detail-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(35, 45, 58, 0.08);
}

.audit-detail-label {
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 700;
}

.audit-detail-value {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.audit-raw-fold {
  margin-top: 8px;
}

.audit-raw-fold summary {
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
}

.log-detail-fold summary {
  display: block;
  cursor: pointer;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-detail-fold[open] summary {
  margin-bottom: 8px;
  white-space: normal;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .container,
  .nav,
  .hero {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .catalog-plan-grid {
    grid-template-columns: 1fr;
  }

  .audit-detail-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  #catalogPlanGrid.map-layout {
    grid-template-columns: 1fr;
  }

  #catalogPlanEditorPanel.map-layout,
  #catalogPlanBindingsPanel.map-layout {
    position: static;
    top: auto;
    max-height: none;
  }

  #catalogPlanBindingsPanel.map-layout .feature-toggle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-ops-toggle-grid,
  .map-ops-security-grid,
  .map-ops-main-grid,
  .map-ops-log-grid {
    grid-template-columns: 1fr;
  }

  .user-access-toolbar-grid,
  .user-access-editor-grid,
  .user-access-layout {
    grid-template-columns: 1fr;
  }

  #userDetail .user-access-form-surface {
    grid-template-columns: minmax(0, 1fr);
  }

  #userDetail .user-access-toolbar-grid,
  body.compact-mode #userDetail .user-access-toolbar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #userDetail #userFeatureBoard.feature-group-board,
  body.compact-mode #userDetail #userFeatureBoard.feature-group-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .users-toolbar-card .toolbar-search-field,
  .users-toolbar-card .toolbar-field:last-child {
    grid-column: 1 / -1;
  }

  .users-selection-inline {
    justify-content: flex-start;
  }

  .users-selection-inline .toolbar-state {
    text-align: left;
  }

  .compact-access-grid {
    grid-template-columns: 1fr;
  }

  .compact-top-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  #userDetail .user-access-toolbar-grid,
  body.compact-mode #userDetail .user-access-toolbar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #userDetail #userFeatureBoard.feature-group-board,
  body.compact-mode #userDetail #userFeatureBoard.feature-group-board {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #userDetail .user-access-form-surface {
    grid-template-columns: minmax(0, 1fr);
  }

  #catalogPlanGrid.map-layout {
    grid-template-columns: minmax(260px, 0.96fr) minmax(300px, 1.04fr);
  }

  #catalogPlanBoard.map-layout {
    grid-column: 1 / -1;
  }

  #catalogPlanEditorPanel.map-layout,
  #catalogPlanBindingsPanel.map-layout {
    position: static;
    top: auto;
    max-height: none;
  }

  #catalogPlanBindingsPanel.map-layout .feature-toggle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-ops-security-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #userDetail .user-access-toolbar-grid,
  body.compact-mode #userDetail .user-access-toolbar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #userDetail .user-access-toolbar-grid > label:first-child {
    grid-column: 1 / -1;
  }

  #userDetail #userFeatureBoard.feature-group-board,
  body.compact-mode #userDetail #userFeatureBoard.feature-group-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #userDetail .user-access-form-surface {
    grid-template-columns: minmax(0, 1fr);
  }

  .compact-profile-grid {
    grid-template-columns: 1fr;
  }

  .compact-profile-grid > label:last-child {
    max-width: none;
  }

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

  .users-toolbar-card .toolbar-inline {
    flex-wrap: wrap;
  }

  .users-toolbar-card .toolbar-inline.compact > * {
    flex: 1 1 132px;
  }

  .users-selection-inline,
  .users-selection-actions {
    width: 100%;
  }

  .status {
    min-width: 0;
    width: 100%;
  }

  table {
    min-width: 560px;
  }
}
