:root {
  --bg-0: #f6f2e9;
  --bg-1: #fdfaf4;
  --bg-2: #f4efe3;
  --ink-0: #192126;
  --ink-1: #3c4953;
  --ink-2: #70808c;
  --line-soft: rgba(19, 35, 45, 0.08);
  --line-strong: rgba(19, 35, 45, 0.14);
  --panel: rgba(255, 252, 247, 0.86);
  --panel-strong: rgba(255, 253, 249, 0.94);
  --panel-dark: rgba(26, 39, 49, 0.92);
  --accent: #1d6a6f;
  --accent-2: #d88742;
  --accent-3: #5a7f55;
  --danger: #c14f40;
  --warning: #cb8a29;
  --success: #2d7b63;
  --shadow-xl: 0 28px 80px rgba(43, 45, 38, 0.12);
  --shadow-lg: 0 20px 48px rgba(46, 52, 49, 0.1);
  --shadow-sm: 0 10px 24px rgba(46, 52, 49, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --sidebar-width: 294px;
  --transition-fast: 180ms ease;
  --transition-slow: 280ms ease;
  --font-sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Baskerville", "Songti SC", "STSong", serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--ink-0);
  background:
    radial-gradient(circle at top left, rgba(29, 106, 111, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(216, 135, 66, 0.2), transparent 28%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 36%, var(--bg-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

code,
pre {
  font-family: "SFMono-Regular", "Fira Code", "JetBrains Mono", monospace;
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px 24px;
  border-right: 1px solid rgba(25, 33, 38, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 249, 241, 0.9)),
    radial-gradient(circle at top, rgba(29, 106, 111, 0.12), transparent 36%);
  backdrop-filter: blur(18px);
}

.brand-card {
  padding: 18px 18px 16px;
  border-radius: 24px;
  color: #f6f3ed;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #152a35, #234857 52%, #1d6a6f);
  box-shadow: var(--shadow-lg);
}

.brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  margin: 10px 0 0;
  color: rgba(246, 243, 237, 0.72);
  line-height: 1.6;
  font-size: 0.92rem;
}

.sidebar-search {
  margin-top: 18px;
}

.sidebar-search input {
  width: 100%;
}

.nav-groups {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding-bottom: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 248px);
}

.nav-group-label {
  margin: 0 0 10px;
  padding-left: 10px;
  color: var(--ink-2);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--ink-1);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.nav-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(29, 106, 111, 0.12);
  color: var(--ink-0);
}

.nav-item.is-active {
  background:
    linear-gradient(135deg, rgba(29, 106, 111, 0.14), rgba(216, 135, 66, 0.14)),
    rgba(255, 255, 255, 0.8);
  border-color: rgba(29, 106, 111, 0.18);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.nav-item i {
  width: 18px;
  text-align: center;
}

.nav-item-text {
  display: grid;
  gap: 2px;
  text-align: left;
}

.nav-item-label {
  font-size: 0.96rem;
  font-weight: 600;
}

.nav-item-hint {
  color: var(--ink-2);
  font-size: 0.78rem;
}

.sidebar-footer {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-2);
  line-height: 1.6;
  font-size: 0.86rem;
}

.workspace {
  min-width: 0;
  padding: 28px 28px 36px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.topbar-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.eyebrow {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(29, 106, 111, 0.1);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.page-subtitle {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 1rem;
}

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

.shell-auth {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-auth {
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: 36px;
}

.content-stack-auth {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.auth-showcase {
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  color: #f8f4ed;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(216, 135, 66, 0.2), transparent 30%),
    linear-gradient(145deg, #152734, #234857 50%, #1d6a6f);
  box-shadow: var(--shadow-xl);
}

.auth-showcase-head {
  display: grid;
  gap: 14px;
}

.auth-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.06;
}

.auth-copy {
  margin: 0;
  color: rgba(248, 244, 237, 0.78);
  line-height: 1.85;
}

.auth-feature-list {
  display: grid;
  gap: 14px;
}

.auth-feature-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.auth-feature-card strong {
  font-size: 1rem;
}

.auth-feature-card span {
  color: rgba(248, 244, 237, 0.72);
  line-height: 1.7;
}

.auth-showcase-footer {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(248, 244, 237, 0.78);
}

.lockscreen-showcase {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(90, 127, 85, 0.22), transparent 30%),
    linear-gradient(145deg, #18242d, #203947 48%, #315a67);
}

.lockscreen-user-card {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(29, 106, 111, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.auth-panel {
  align-self: center;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: end;
}

.auth-captcha {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 12px;
  border: 1px solid rgba(25, 33, 38, 0.1);
  border-radius: 16px;
  background: rgba(248, 244, 237, 0.72);
  color: var(--ink-2);
}

.auth-captcha img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}

.auth-actions {
  margin-top: 8px;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.hero-panel,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.hero-panel {
  padding: 24px 26px;
  background:
    radial-gradient(circle at top right, rgba(216, 135, 66, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 252, 247, 0.94), rgba(247, 241, 231, 0.88));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.hero-copy h2 {
  margin: 0;
  font-size: 1.52rem;
  line-height: 1.3;
}

.hero-copy p {
  margin: 12px 0 0;
  color: var(--ink-2);
  line-height: 1.8;
}

.hero-meta {
  display: grid;
  gap: 12px;
}

.stat-tile {
  padding: 16px 18px;
  border: 1px solid rgba(29, 106, 111, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.stat-label {
  color: var(--ink-2);
  font-size: 0.84rem;
}

.stat-value {
  margin-top: 6px;
  color: var(--ink-0);
  font-size: 1.35rem;
  font-weight: 700;
}

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

.summary-card,
.dashboard-card {
  padding: 18px 18px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-sm);
}

.summary-card-label,
.dashboard-card-kicker {
  color: var(--ink-2);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-card-value,
.dashboard-card-title {
  margin-top: 10px;
  font-size: 1.3rem;
  font-weight: 700;
}

.dashboard-card-title {
  font-size: 1.1rem;
}

.dashboard-card-copy {
  margin: 10px 0 0;
  color: var(--ink-2);
  line-height: 1.7;
}

.dashboard-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px 0;
}

.panel-title {
  margin: 0;
  font-size: 1.08rem;
}

.panel-caption {
  margin: 7px 0 0;
  color: var(--ink-2);
  line-height: 1.7;
}

.panel-body {
  padding: 20px 24px 24px;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  gap: 18px;
}

.note-list {
  display: grid;
  gap: 12px;
}

.note-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(29, 106, 111, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.note-card i {
  margin-top: 3px;
  color: var(--accent);
}

.note-card.is-success i {
  color: var(--success);
}

.note-card.is-success {
  border-color: rgba(45, 123, 99, 0.2);
  background: rgba(45, 123, 99, 0.08);
}

.note-card.is-danger i {
  color: var(--danger);
}

.note-card.is-danger {
  border-color: rgba(193, 79, 64, 0.22);
  background: rgba(193, 79, 64, 0.08);
}

.monitor-grid,
.catalog-grid,
.api-groups,
.disk-grid,
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.index-overview-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.index-status-stack,
.profile-main-stack {
  display: grid;
  gap: 16px;
}

.index-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.index-menu-card,
.profile-sidebar-card,
.profile-section-card,
.gen-column-card,
.gen-preview-card {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.profile-sidebar-card,
.profile-section-card,
.gen-preview-card {
  display: grid;
  gap: 0;
}

.dict-sidebar-card {
  background:
    linear-gradient(155deg, rgba(29, 106, 111, 0.1), rgba(216, 135, 66, 0.08)),
    rgba(255, 255, 255, 0.84);
}

.dict-type-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.dict-type-pill {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 18px;
  background: rgba(248, 244, 237, 0.78);
  color: var(--ink-1);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.dict-type-pill strong {
  font-size: 0.98rem;
}

.dict-type-pill span {
  color: var(--ink-2);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dict-type-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.dict-type-pill.is-active {
  border-color: rgba(29, 106, 111, 0.26);
  background:
    linear-gradient(145deg, rgba(29, 106, 111, 0.12), rgba(216, 135, 66, 0.08)),
    rgba(255, 255, 255, 0.88);
  color: var(--accent);
}

.dict-style-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.config-icon-preview {
  margin: 0 auto 18px;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 1.6rem;
}

.notice-hero {
  background:
    radial-gradient(circle at top right, rgba(59, 114, 164, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(216, 135, 66, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 252, 247, 0.96), rgba(245, 239, 230, 0.9));
}

.notice-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.notice-title {
  margin: 8px 0 0;
  font-size: 1.5rem;
  line-height: 1.32;
}

.notice-copy {
  margin: 12px 0 0;
  max-width: 68ch;
  color: var(--ink-2);
  line-height: 1.8;
}

.notice-article-card {
  min-height: 100%;
}

.notice-html {
  line-height: 1.9;
}

.notice-html > :first-child {
  margin-top: 0;
}

.notice-html img {
  max-width: 100%;
  border-radius: 18px;
}

.notice-html blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 4px solid rgba(29, 106, 111, 0.28);
  border-radius: 0 16px 16px 0;
  background: rgba(248, 244, 237, 0.82);
}

.index-menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.builder-shell,
.swagger-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.datasource-shell,
.datasource-info-grid,
.demo-icon-main,
.demo-icon-sidebar,
.demo-icon-shell,
.demo-modal-main,
.demo-modal-sidebar,
.demo-modal-shell {
  display: grid;
  gap: 16px;
}

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

.demo-modal-shell {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: start;
}

.demo-icon-shell {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: start;
}

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

.datasource-stat-card,
.datasource-stack-card,
.datasource-table-card,
.demo-icon-card,
.demo-modal-card {
  min-height: 100%;
}

.datasource-stat-copy,
.datasource-table-copy {
  margin: 8px 0 0;
  color: var(--ink-2);
  line-height: 1.6;
  font-size: 0.84rem;
}

.datasource-detail-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
}

.datasource-detail-list .detail-item:first-child,
.datasource-info-grid .metric-row:first-child {
  padding-top: 0;
}

.datasource-table-name {
  font-weight: 600;
  color: var(--ink-0);
}

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

.demo-icon-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.demo-icon-chip {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 16px;
  background: rgba(248, 244, 237, 0.72);
  color: var(--ink-1);
  text-align: left;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.demo-icon-chip:hover,
.demo-icon-tile:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.demo-icon-chip.is-active,
.demo-icon-tile.is-active {
  border-color: rgba(29, 106, 111, 0.28);
  background: rgba(29, 106, 111, 0.12);
  color: var(--accent);
}

.demo-icon-chip strong,
.demo-icon-tile strong {
  font-size: 0.92rem;
}

.demo-icon-chip-mark,
.demo-icon-tile-mark,
.demo-icon-preview-mark {
  display: grid;
  place-items: center;
}

.demo-icon-chip-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
}

.demo-icon-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 320px);
  gap: 16px;
  margin-top: 18px;
}

.demo-icon-preview-stage {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(249, 246, 241, 0.96), rgba(236, 246, 245, 0.88));
}

.demo-icon-preview-mark {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), #2f8a8e);
  color: #fff;
  font-size: 3rem;
  box-shadow: 0 16px 30px rgba(29, 106, 111, 0.24);
}

.demo-icon-preview-mark .glyphicon {
  top: 0;
  font-size: 2.5rem;
}

.demo-icon-preview-copy {
  padding: 20px 22px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
}

.demo-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.demo-icon-tile {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px 14px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-1);
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.demo-icon-tile-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(25, 33, 38, 0.06);
  font-size: 1.45rem;
}

.demo-icon-tile-mark .glyphicon {
  top: 0;
  font-size: 1.35rem;
}

.demo-icon-tile code {
  max-width: 100%;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-icon-empty {
  margin-top: 18px;
  padding: 28px 24px;
  border: 1px dashed rgba(29, 106, 111, 0.24);
  border-radius: 18px;
  background: rgba(248, 244, 237, 0.78);
  color: var(--ink-2);
  text-align: center;
}

.builder-sidebar,
.builder-main,
.swagger-main,
.swagger-group-stack,
.builder-group-stack {
  display: grid;
  gap: 16px;
}

.builder-card,
.swagger-sidebar-card,
.swagger-group-card {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.builder-toolbar-card {
  background:
    radial-gradient(circle at top right, rgba(29, 106, 111, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 252, 247, 0.96), rgba(246, 239, 231, 0.92));
}

.builder-starter-list,
.swagger-endpoint-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.builder-starter-card,
.builder-palette-card,
.swagger-endpoint-item {
  width: 100%;
  border: 1px solid rgba(25, 33, 38, 0.1);
  border-radius: 18px;
  background: rgba(248, 244, 237, 0.72);
  color: var(--ink-1);
  text-align: left;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.builder-starter-card,
.swagger-endpoint-item {
  padding: 14px 16px;
}

.builder-starter-card strong,
.builder-palette-card strong,
.swagger-endpoint-copy strong {
  display: block;
  font-size: 0.96rem;
}

.builder-starter-card span,
.builder-palette-card span,
.swagger-endpoint-copy code {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
  line-height: 1.6;
}

.builder-starter-card:hover,
.builder-palette-card:hover,
.swagger-endpoint-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.builder-starter-card.is-active,
.swagger-endpoint-item.is-active {
  border-color: rgba(29, 106, 111, 0.3);
  background:
    linear-gradient(145deg, rgba(29, 106, 111, 0.12), rgba(216, 135, 66, 0.08)),
    rgba(255, 255, 255, 0.92);
}

.builder-group {
  display: grid;
  gap: 12px;
}

.builder-group-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

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

.builder-palette-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.builder-canvas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.builder-canvas.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.builder-node {
  padding: 18px;
  border: 1px solid rgba(25, 33, 38, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.builder-node:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.builder-node.is-active {
  border-color: rgba(29, 106, 111, 0.34);
  box-shadow: 0 18px 38px rgba(29, 106, 111, 0.12);
}

.builder-node-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.builder-node-type {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

.builder-node-caption {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.builder-node-body {
  margin-top: 16px;
}

.builder-workspace-grid,
.builder-output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.swagger-endpoint-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.swagger-endpoint-copy {
  min-width: 0;
}

.swagger-endpoint-copy code {
  overflow-wrap: anywhere;
}

.swagger-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swagger-method.is-get {
  background: rgba(45, 123, 99, 0.14);
  color: var(--success);
}

.swagger-method.is-post {
  background: rgba(29, 106, 111, 0.14);
  color: var(--accent);
}

.swagger-method.is-put {
  background: rgba(216, 135, 66, 0.16);
  color: var(--warning);
}

.swagger-method.is-delete {
  background: rgba(193, 79, 64, 0.14);
  color: var(--danger);
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-button {
  padding: 10px 16px;
  border: 1px solid rgba(25, 33, 38, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-1);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.segmented-button:hover {
  transform: translateY(-1px);
}

.segmented-button.is-active {
  border-color: rgba(29, 106, 111, 0.28);
  background: rgba(29, 106, 111, 0.12);
  color: var(--accent);
}

.index-style-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.index-style-option {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 18px;
  background: rgba(248, 244, 237, 0.72);
  color: var(--ink-1);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.index-style-option strong {
  font-size: 0.96rem;
}

.index-style-option span {
  color: var(--ink-2);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.index-style-option:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.index-style-option.is-active {
  border-color: rgba(29, 106, 111, 0.22);
  background:
    linear-gradient(145deg, rgba(29, 106, 111, 0.12), rgba(216, 135, 66, 0.08)),
    rgba(255, 255, 255, 0.88);
  color: var(--accent);
}

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

.skin-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-1);
}

.skin-swatch.is-active {
  border-color: rgba(29, 106, 111, 0.2);
  background: rgba(29, 106, 111, 0.08);
  color: var(--accent);
}

.skin-swatch-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.44);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-avatar-wrap {
  display: flex;
  justify-content: center;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 34px rgba(29, 106, 111, 0.16);
}

.profile-avatar-large {
  width: 144px;
  height: 144px;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(29, 106, 111, 0.14), rgba(216, 135, 66, 0.2)),
    rgba(255, 255, 255, 0.86);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
}

.profile-name {
  margin: 18px 0 6px;
  text-align: center;
  font-size: 1.32rem;
}

.profile-subtitle {
  margin: 0;
  text-align: center;
  color: var(--ink-2);
}

.avatar-upload-box {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.gen-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(248, 244, 237, 0.82);
}

.gen-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  font-weight: 700;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.gen-tab.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.gen-panel {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.gen-column-stack {
  display: grid;
  gap: 16px;
}

.gen-column-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.gen-column-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.gen-subsection {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(248, 244, 237, 0.72);
}

.gen-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.gen-preview-card-full {
  grid-column: 1 / -1;
}

.gen-sql-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.gen-sql-editor {
  min-height: 420px;
  font-family: "SFMono-Regular", "Fira Code", "JetBrains Mono", monospace;
  line-height: 1.7;
}

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

.monitor-card,
.catalog-card,
.api-group-card,
.report-card,
.collection-card {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.cache-card.is-active {
  border-color: rgba(29, 106, 111, 0.26);
  background:
    linear-gradient(145deg, rgba(29, 106, 111, 0.08), rgba(216, 135, 66, 0.06)),
    rgba(255, 255, 255, 0.84);
}

.monitor-card-header,
.api-path-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.monitor-card-kicker {
  color: var(--ink-2);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.monitor-card-title,
.catalog-title,
.collection-title {
  margin: 6px 0 0;
  font-size: 1.08rem;
}

.monitor-card-copy,
.catalog-copy {
  margin: 10px 0 0;
  color: var(--ink-2);
  line-height: 1.7;
}

.meter {
  width: 100%;
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(25, 33, 38, 0.08);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: inherit;
}

.metric-list {
  display: grid;
  gap: 10px;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(25, 33, 38, 0.08);
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row span {
  color: var(--ink-2);
}

.metric-row strong {
  text-align: right;
}

.catalog-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(29, 106, 111, 0.1);
  color: var(--accent);
  font-size: 1.3rem;
}

.api-path-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.api-path-item {
  padding: 14px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 16px;
  background: rgba(248, 244, 236, 0.78);
}

.api-path-header code {
  color: var(--accent);
  word-break: break-all;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex: 0 0 auto;
}

.timeline-body {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.report-collection,
.report-rows {
  display: grid;
  gap: 14px;
}

.report-row {
  padding: 14px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 16px;
  background: rgba(248, 244, 236, 0.7);
}

.report-label {
  margin-bottom: 12px;
  font-weight: 700;
}

.report-series-list {
  display: grid;
  gap: 10px;
}

.report-series-item {
  display: grid;
  gap: 7px;
}

.report-series-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.report-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(25, 33, 38, 0.08);
  overflow: hidden;
}

.report-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.form-grid,
.search-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-span-2 {
  grid-column: span 2;
}

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

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-1);
  font-size: 0.92rem;
  font-weight: 600;
}

.required-dot {
  color: var(--danger);
}

.input,
.textarea,
.select,
.picker-button {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(25, 33, 38, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-0);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

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

.input:focus,
.textarea:focus,
.select:focus,
.picker-button:focus {
  outline: none;
  border-color: rgba(29, 106, 111, 0.36);
  box-shadow: 0 0 0 4px rgba(29, 106, 111, 0.12);
}

.picker-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.field-readonly {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 14px;
  background: rgba(245, 240, 232, 0.7);
  color: var(--ink-1);
}

.choice-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(25, 33, 38, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-1);
}

.choice-pill input {
  margin: 0;
}

.switch-field {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.switch {
  position: relative;
  width: 52px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(25, 33, 38, 0.18);
  transition: background var(--transition-fast);
}

.switch-slider::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(22, 27, 30, 0.18);
  transition: transform var(--transition-fast);
}

.switch input:checked + .switch-slider {
  background: linear-gradient(135deg, var(--accent), #2b8b8f);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(22px);
}

.button-row,
.toolbar,
.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(25, 33, 38, 0.06);
  color: var(--ink-0);
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2f8a8e);
  color: #fff;
  box-shadow: 0 14px 28px rgba(29, 106, 111, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(25, 33, 38, 0.1);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(25, 33, 38, 0.12);
}

.btn-danger {
  background: linear-gradient(135deg, #b44f42, #cc6c5d);
  color: #fff;
}

.toolbar {
  margin-bottom: 16px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(244, 238, 227, 0.92);
  color: var(--ink-1);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.data-table tbody td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(25, 33, 38, 0.06);
  vertical-align: top;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.66);
}

.tree-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tree-indent {
  display: inline-block;
}

.cell-muted {
  color: var(--ink-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-default {
  background: rgba(25, 33, 38, 0.1);
  color: var(--ink-1);
}

.badge-primary {
  background: rgba(29, 106, 111, 0.14);
  color: var(--accent);
}

.badge-success {
  background: rgba(45, 123, 99, 0.14);
  color: var(--success);
}

.badge-info {
  background: rgba(59, 114, 164, 0.14);
  color: #3b72a4;
}

.badge-warning {
  background: rgba(203, 138, 41, 0.16);
  color: var(--warning);
}

.badge-danger {
  background: rgba(193, 79, 64, 0.14);
  color: var(--danger);
}

.detail-list {
  display: grid;
  gap: 14px;
}

.detail-payload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-section {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.detail-section h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.detail-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(25, 33, 38, 0.08);
}

.detail-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-item-label {
  color: var(--ink-2);
}

.detail-code-stack {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.detail-section-nested {
  padding: 0;
  border: 0;
  background: transparent;
}

.detail-html {
  line-height: 1.9;
}

.payload-box,
.raw-json {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(19, 35, 45, 0.94);
  color: #ecf3f7;
  overflow: auto;
}

.meta-list {
  display: grid;
  gap: 12px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(25, 33, 38, 0.05);
  color: var(--ink-1);
}

.child-section {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.child-row {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 16px;
  background: rgba(248, 244, 237, 0.86);
}

.tree-card,
.selector-card {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tree-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tree-list {
  display: grid;
  gap: 8px;
}

.tree-node {
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.tree-node-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.tree-node-title {
  min-width: 0;
  line-height: 1.6;
}

.tree-node-children {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px 26px;
}

.tree-toggle {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 10px;
}

.tree-search {
  margin-bottom: 12px;
}

.empty-state,
.error-state,
.loading-state {
  padding: 32px 24px;
  text-align: center;
  color: var(--ink-2);
}

.loading-orbit {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border: 3px solid rgba(29, 106, 111, 0.14);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 920ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pagination-info {
  color: var(--ink-2);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 24, 28, 0.42);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(252, 249, 243, 0.98);
  box-shadow: var(--shadow-xl);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.modal-footer {
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
}

.modal-title {
  margin: 0;
  font-size: 1.1rem;
}

.modal-body {
  max-height: calc(90vh - 150px);
  overflow: auto;
  padding: 20px 22px 24px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.import-modal {
  display: grid;
  gap: 0;
}

.icon-card {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px 10px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-1);
}

.icon-card i {
  font-size: 1.6rem;
}

.icon-card.is-active {
  border-color: rgba(29, 106, 111, 0.28);
  color: var(--accent);
  background: rgba(29, 106, 111, 0.1);
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 280px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #f7f4ed;
  background: var(--panel-dark);
  box-shadow: var(--shadow-lg);
}

.toast.is-success {
  background: linear-gradient(135deg, #1f5f55, #2d7b63);
}

.toast.is-error {
  background: linear-gradient(135deg, #8e3a30, #b55040);
}

.toast.is-warning {
  background: linear-gradient(135deg, #8a6320, #cb8a29);
}

.list-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.muted {
  color: var(--ink-2);
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

details.model-dump {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

details.model-dump summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
}

details.model-dump .raw-json {
  margin: 0 20px 20px;
}

.editor-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(140deg, rgba(22, 38, 49, 0.96), rgba(29, 106, 111, 0.92) 52%, rgba(216, 135, 66, 0.86));
  color: #f6f3ed;
}

.editor-hero .notice-copy,
.editor-hero .monitor-card-kicker {
  color: rgba(246, 243, 237, 0.76);
}

.editor-hero .badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff8ef;
  border-color: rgba(255, 255, 255, 0.18);
}

.notice-editor-hero {
  position: relative;
  overflow: hidden;
}

.notice-editor-hero::after {
  content: "";
  position: absolute;
  right: -64px;
  top: -52px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.job-editor-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(140deg, rgba(19, 32, 43, 0.96), rgba(33, 72, 87, 0.94) 48%, rgba(90, 127, 85, 0.92));
}

.editor-dual-pane {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
}

.editor-pane {
  min-width: 0;
}

.editor-textarea {
  min-height: 360px;
  resize: vertical;
}

.preview-surface {
  min-height: 360px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 238, 0.88)),
    radial-gradient(circle at top, rgba(29, 106, 111, 0.08), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: auto;
}

.notice-preview-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 247, 239, 0.9)),
    radial-gradient(circle at top right, rgba(216, 135, 66, 0.09), transparent 30%);
}

.notice-preview-body {
  color: var(--ink-1);
  line-height: 1.78;
}

.notice-preview-body h1,
.notice-preview-body h2,
.notice-preview-body h3,
.notice-preview-body h4 {
  margin: 0 0 14px;
  color: var(--ink-0);
  font-family: var(--font-display);
}

.notice-preview-body p {
  margin: 0 0 12px;
}

.notice-preview-body ul,
.notice-preview-body ol {
  padding-left: 22px;
}

.notice-preview-body img {
  display: block;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

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

.snippet-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 244, 236, 0.82)),
    radial-gradient(circle at top right, rgba(29, 106, 111, 0.08), transparent 28%);
  box-shadow: var(--shadow-sm);
}

.hint-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.82rem;
  line-height: 1.55;
}

.cron-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

@media (max-width: 1200px) {
  .panel-grid,
  .hero-grid,
  .auth-layout,
  .index-overview-grid,
  .profile-layout,
  .detail-payload-grid,
  .gen-column-grid,
  .gen-sql-grid,
  .editor-dual-pane {
    grid-template-columns: 1fr;
  }
}

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

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(25, 33, 38, 0.08);
  }

  .nav-groups {
    max-height: none;
  }

  .workspace {
    padding: 18px 16px 28px;
  }

  .workspace-auth {
    padding: 20px 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .search-grid,
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .cron-editor-row {
    grid-template-columns: 1fr;
  }

  .index-style-switch {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: span 1;
  }

  .auth-captcha-row {
    grid-template-columns: 1fr;
  }

  .gen-tabs {
    display: grid;
  }

  .notice-detail-head {
    flex-direction: column;
  }

  .panel-header,
  .panel-body,
  .hero-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .modal-backdrop {
    padding: 12px;
  }

  .toast-stack {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast {
    min-width: auto;
    width: 100%;
  }
}

/* Legacy RuoYi skin overrides */
:root {
  --ruoyi-sidebar: #2f4050;
  --ruoyi-sidebar-dark: #293846;
  --ruoyi-sidebar-text: #a7b1c2;
  --ruoyi-sidebar-muted: #8095a8;
  --ruoyi-sidebar-active: #19aa8d;
  --ruoyi-bg: #f3f3f4;
  --ruoyi-border: #e7eaec;
  --ruoyi-border-soft: #f3f3f4;
  --ruoyi-panel: #ffffff;
  --ruoyi-panel-head: #f5f5f6;
  --ruoyi-text: #676a6c;
  --ruoyi-muted: #999c9e;
  --ruoyi-primary: #1ab394;
  --ruoyi-primary-dark: #18a689;
  --ruoyi-info: #23c6c8;
  --ruoyi-warning: #f8ac59;
  --ruoyi-danger: #ed5565;
  --ruoyi-link: #337ab7;
  --sidebar-width: 220px;
}

html,
body {
  min-height: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ruoyi-text);
  background: var(--ruoyi-bg);
}

body.massive-go-app,
body.massive-go-app.gray-bg {
  background: var(--ruoyi-bg) !important;
  color: var(--ruoyi-text);
}

body.massive-go-app::before,
body.massive-go-app::after {
  display: none;
}

body.massive-go-app.signin,
body.signin {
  background:
    linear-gradient(135deg, rgba(6, 18, 32, 0.88), rgba(18, 52, 78, 0.7)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='sky' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23041222'/%3E%3Cstop offset='52%25' stop-color='%23153d61'/%3E%3Cstop offset='100%25' stop-color='%23c7773a'/%3E%3C/linearGradient%3E%3CradialGradient id='glow' cx='76%25' cy='22%25' r='34%25'%3E%3Cstop offset='0%25' stop-color='%23ffd8a6' stop-opacity='.96'/%3E%3Cstop offset='58%25' stop-color='%23ffb36a' stop-opacity='.34'/%3E%3Cstop offset='100%25' stop-color='%23ffb36a' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23sky)'/%3E%3Crect width='1600' height='900' fill='url(%23glow)'/%3E%3Cg fill='%23ffffff' fill-opacity='.06'%3E%3Ccircle cx='230' cy='120' r='165'/%3E%3Ccircle cx='520' cy='760' r='220'/%3E%3Ccircle cx='1270' cy='152' r='132'/%3E%3C/g%3E%3Cpath d='M0 646C118 615 230 559 352 566C498 574 554 704 682 707C798 710 861 590 1008 576C1173 560 1286 680 1442 699C1500 706 1554 704 1600 695V900H0Z' fill='%230f2234' fill-opacity='.88'/%3E%3Cpath d='M0 726C114 695 198 637 314 641C454 646 529 758 658 761C798 765 875 652 1016 637C1155 622 1281 714 1419 747C1487 764 1548 771 1600 768V900H0Z' fill='%23192f46' fill-opacity='.9'/%3E%3Cpath d='M0 790C139 748 271 720 397 730C545 742 616 824 760 829C896 834 1001 748 1148 742C1318 736 1457 814 1600 836V900H0Z' fill='%23254d71' fill-opacity='.92'/%3E%3C/svg%3E") center center / cover fixed no-repeat !important;
  background-size: cover !important;
}

#app {
  min-height: 100vh;
}

a {
  color: var(--ruoyi-link);
}

a:hover {
  color: #23527c;
  text-decoration: none;
}

code {
  padding: 2px 4px;
  border-radius: 2px;
  background: #f9f2f4;
  color: #c7254e;
  font-size: 90%;
}

.shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  background: var(--ruoyi-bg);
}

.shell-auth {
  display: block;
  min-height: 100vh;
  background: transparent;
}

.sidebar {
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  position: relative;
  top: auto;
  height: auto;
  min-height: 100vh;
  padding: 0;
  border-right: 0;
  background: var(--ruoyi-sidebar);
  box-shadow: none;
  backdrop-filter: none;
}

.sidebar-brand-link {
  display: block;
  color: #fff;
}

.sidebar-brand-link:hover {
  color: #fff;
}

.sidebar-logo {
  height: 50px;
  line-height: 50px;
  padding: 0 20px;
  background: #367fa9;
  text-align: center;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.sidebar-logo-subtitle {
  display: none;
}

.sidebar-user-panel {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--ruoyi-sidebar-dark);
}

.sidebar-user-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.sidebar-avatar-image,
.sidebar-avatar-fallback {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--ruoyi-sidebar);
  font-weight: 700;
  object-fit: cover;
}

.sidebar-user-meta {
  min-width: 0;
}

.sidebar-user-name {
  margin: 2px 0 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

.sidebar-user-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sidebar-user-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dfe4ed;
  font-size: 12px;
}

.sidebar-user-link:hover {
  color: #fff;
}

.sidebar-search {
  margin: 0;
  padding: 16px 20px 12px;
}

.sidebar-search .input {
  height: 34px;
  padding: 6px 12px;
  border: 1px solid #1f2d3d;
  border-radius: 1px;
  background: #22313f;
  color: #fff;
}

.sidebar-search .input::placeholder {
  color: #8fa1b3;
}

.sidebar-search .input:focus {
  border-color: var(--ruoyi-sidebar-active);
}

.nav-groups {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0;
  padding: 4px 0 16px;
  max-height: none;
}

.nav-tree-node {
  display: block;
}

.nav-tree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 11px 20px 11px calc(18px + var(--nav-depth, 0) * 16px);
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ruoyi-sidebar-text);
  font-size: 13px;
  text-align: left;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.nav-tree-row.is-root {
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav-tree-row.is-branch {
  font-weight: 600;
}

.nav-tree-row:hover {
  background: var(--ruoyi-sidebar-dark);
  color: #fff;
}

.nav-tree-row.is-active,
.nav-tree-row.has-active-child {
  background: rgba(41, 56, 70, 0.72);
  color: #fff;
}

.nav-tree-row.is-active {
  border-left-color: var(--ruoyi-sidebar-active);
}

.nav-tree-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.nav-tree-arrow {
  width: 12px;
  flex: 0 0 12px;
  text-align: center;
  color: var(--ruoyi-sidebar-muted);
}

.nav-tree-arrow-leaf {
  font-size: 8px;
}

.nav-tree-row:hover .nav-tree-arrow,
.nav-tree-row.is-active .nav-tree-arrow,
.nav-tree-row.has-active-child .nav-tree-arrow {
  color: #dfe4ed;
}

.nav-tree-icon {
  width: 16px;
  flex: 0 0 16px;
  text-align: center;
}

.nav-tree-labels {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.nav-tree-labels .nav-item-label,
.nav-tree-labels .nav-item-hint {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-tree-row .nav-item-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.nav-tree-row .nav-item-hint {
  display: block;
  margin-top: 2px;
  color: var(--ruoyi-sidebar-muted);
  font-size: 12px;
}

.nav-tree-row:hover .nav-item-hint,
.nav-tree-row.is-active .nav-item-hint,
.nav-tree-row.has-active-child .nav-item-hint {
  color: #cfdae6;
}

.nav-tree-children {
  display: block;
}

.nav-tree-row.is-root.has-active-child,
.nav-tree-row.is-root.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.sidebar-footer {
  margin: 12px 20px 20px;
  padding: 12px 14px;
  border: 1px solid #22313f;
  border-radius: 3px;
  background: #22313f;
  color: #c1cad5;
  font-size: 12px;
  line-height: 1.7;
}

.workspace {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  background: var(--ruoyi-bg);
}

.workspace-auth {
  display: block;
  min-height: 100vh;
  padding: 0 20px;
  background: transparent;
}

.topbar {
  margin: 0;
  min-height: 50px;
  padding: 0 20px;
  border-bottom: 1px solid var(--ruoyi-border);
  background: #fff;
  box-shadow: none;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

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

.topbar-title {
  gap: 10px;
}

.topbar-toggle {
  min-height: 34px;
  padding: 6px 12px;
}

.eyebrow {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ruoyi-muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.page-title {
  font-family: inherit;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--ruoyi-text);
}

.page-subtitle {
  margin: 4px 0 0;
  color: var(--ruoyi-muted);
  font-size: 12px;
}

.topbar-actions {
  gap: 8px;
}

.content-stack {
  gap: 20px;
  padding: 20px;
}

.content-stack-auth {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 8vh 0 40px;
}

.auth-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  align-items: start;
}

.auth-showcase {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

.auth-showcase-head {
  gap: 14px;
}

.auth-title {
  font-family: inherit;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.4;
  color: #fff;
}

.auth-title strong {
  font-weight: 600;
}

.auth-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.85;
}

.auth-bullet-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.auth-bullet-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
}

.auth-bullet-list i {
  color: #fff;
}

.auth-feature-list {
  gap: 12px;
}

.auth-feature-card {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: none;
}

.auth-feature-card span {
  color: rgba(255, 255, 255, 0.82);
}

.auth-showcase-footer {
  margin: 24px 0 0;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
}

.auth-panel {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 3px 0 rgba(12, 12, 12, 0.03);
}

.auth-panel .panel-header {
  padding: 30px 30px 0;
  border-bottom: 0;
}

.auth-panel .panel-body {
  padding: 15px 30px 30px;
}

.auth-panel .panel-title {
  font-size: 24px;
  font-weight: 300;
  color: #fff;
}

.auth-panel .panel-caption {
  color: rgba(255, 255, 255, 0.78);
}

.auth-form {
  gap: 15px;
}

.auth-form .field {
  gap: 0;
}

.auth-form .field-label {
  display: none;
}

.auth-form .input {
  height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1px;
  background-color: #fff;
  color: #333;
}

.auth-form .field:first-child .input {
  padding-right: 40px;
  background: #fff url("/app/vendor/ruoyi/img/user.png") no-repeat 95% center;
}

.auth-form input[type="password"] {
  padding-right: 40px;
  background: #fff url("/app/vendor/ruoyi/img/locked.png") no-repeat 95% center;
}

.auth-captcha-row {
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 15px;
  align-items: start;
}

.auth-captcha-row .input {
  background: #fff;
  padding-right: 12px;
}

.auth-captcha {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}

.auth-captcha img {
  height: 42px;
  border-radius: 1px;
  object-fit: fill;
}

.auth-captcha span {
  font-size: 12px;
}

.auth-check {
  gap: 8px;
  color: #fff;
  font-size: 13px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.auth-actions .btn {
  width: 100%;
}

.auth-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.auth-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero-panel,
.panel,
.summary-card,
.dashboard-card,
.index-menu-card,
.profile-sidebar-card,
.profile-section-card,
.gen-column-card,
.gen-preview-card,
.monitor-card,
.catalog-card,
.api-group-card,
.report-card,
.collection-card,
.tree-card,
.selector-card,
.child-section,
.child-row,
.detail-section,
.snippet-card,
.preview-surface,
.notice-preview-surface,
.lockscreen-user-card {
  border: 1px solid var(--ruoyi-border);
  border-radius: 3px;
  background: var(--ruoyi-panel);
  box-shadow: none;
  backdrop-filter: none;
}

.hero-panel {
  padding: 18px 20px;
}

.panel {
  overflow: visible;
}

.panel-header {
  align-items: center;
  padding: 15px 20px 10px;
  border-bottom: 1px solid var(--ruoyi-border);
}

.panel-body {
  padding: 20px;
}

.panel-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ruoyi-text);
}

.panel-caption {
  margin: 4px 0 0;
  color: var(--ruoyi-muted);
  font-size: 12px;
  line-height: 1.6;
}

.hero-copy h2 {
  font-size: 24px;
  font-weight: 300;
  color: var(--ruoyi-text);
}

.hero-copy p,
.dashboard-card-copy,
.monitor-card-copy,
.catalog-copy,
.notice-copy,
.notice-html,
.detail-html,
.notice-preview-body {
  color: var(--ruoyi-text);
  line-height: 1.8;
}

.summary-card,
.dashboard-card,
.index-menu-card,
.profile-sidebar-card,
.profile-section-card,
.gen-column-card,
.gen-preview-card,
.monitor-card,
.catalog-card,
.api-group-card,
.report-card,
.collection-card,
.snippet-card {
  padding: 18px 20px;
}

.summary-card-label,
.dashboard-card-kicker,
.monitor-card-kicker,
.stat-label {
  color: var(--ruoyi-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.summary-card-value,
.dashboard-card-title,
.stat-value,
.monitor-card-title,
.catalog-title,
.collection-title,
.notice-title {
  color: var(--ruoyi-text);
}

.summary-card-value,
.stat-value {
  font-size: 24px;
  font-weight: 600;
}

.dashboard-card-title,
.monitor-card-title,
.catalog-title,
.collection-title {
  font-size: 16px;
  font-weight: 600;
}

.stat-tile,
.dict-type-pill,
.index-style-option,
.skin-swatch,
.api-path-item,
.report-row,
.field-readonly,
.choice-pill,
.note-card,
.meta-chip,
.icon-card {
  border: 1px solid var(--ruoyi-border);
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
}

.dict-type-pill.is-active,
.index-style-option.is-active,
.skin-swatch.is-active,
.cache-card.is-active,
.gen-tab.is-active,
.icon-card.is-active {
  border-color: var(--ruoyi-primary);
  background: #f3fbf9;
  color: var(--ruoyi-primary-dark);
}

.field-label {
  color: var(--ruoyi-text);
  font-size: 13px;
  font-weight: 600;
}

.input,
.textarea,
.select,
.picker-button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 1px;
  background: #fff;
  color: #555;
  box-shadow: none;
  transition: border-color 120ms ease;
}

.textarea,
.editor-textarea,
.gen-sql-editor {
  min-height: 110px;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.input:focus,
.textarea:focus,
.select:focus,
.picker-button:focus {
  border-color: var(--ruoyi-primary);
  box-shadow: none;
  outline: none;
}

.choice-pill {
  padding: 6px 12px;
}

.switch-slider {
  background: #dcdfe6;
}

.switch input:checked + .switch-slider {
  background: var(--ruoyi-primary);
}

.btn {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
}

.btn:hover {
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--ruoyi-primary);
  border-color: var(--ruoyi-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ruoyi-primary-dark);
  border-color: var(--ruoyi-primary-dark);
  color: #fff;
}

.btn-secondary,
.btn-ghost {
  background: #fff;
  border-color: #ccc;
  color: #333;
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: #e6e6e6;
  border-color: #adadad;
  color: #333;
}

.btn-danger {
  background: var(--ruoyi-danger);
  border-color: var(--ruoyi-danger);
  color: #fff;
}

.btn-danger:hover {
  background: #e64253;
  border-color: #e64253;
  color: #fff;
}

.table-wrap {
  border: 1px solid var(--ruoyi-border);
  border-radius: 3px;
  background: #fff;
}

.data-table thead th {
  position: static;
  padding: 12px;
  border-bottom: 1px solid var(--ruoyi-border);
  background: var(--ruoyi-panel-head);
  color: var(--ruoyi-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.data-table tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--ruoyi-border-soft);
  color: var(--ruoyi-text);
}

.data-table tbody tr:hover {
  background: #f9f9f9;
}

.badge {
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.badge-default {
  background: #ededed;
  color: var(--ruoyi-text);
}

.badge-primary {
  background: #1c84c6;
  color: #fff;
}

.badge-success {
  background: var(--ruoyi-primary);
  color: #fff;
}

.badge-info {
  background: var(--ruoyi-info);
  color: #fff;
}

.badge-warning {
  background: var(--ruoyi-warning);
  color: #fff;
}

.badge-danger {
  background: var(--ruoyi-danger);
  color: #fff;
}

.note-card {
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  line-height: 1.7;
}

.note-card.is-success {
  border-left: 3px solid var(--ruoyi-primary);
  background: #f3fbf9;
}

.note-card.is-danger {
  border-left: 3px solid var(--ruoyi-danger);
  background: #fff6f7;
}

.metric-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--ruoyi-border-soft);
}

.meta-list,
.metric-list,
.note-list {
  gap: 10px;
}

.meter,
.report-bar {
  height: 8px;
  background: #e7eaec;
}

.catalog-icon,
.config-icon-preview {
  border-radius: 3px;
  background: #f3f3f4;
  color: #1c84c6;
}

.profile-avatar {
  border: 3px solid #fff;
  box-shadow: none;
}

.profile-avatar-fallback {
  background: var(--ruoyi-primary);
  color: #fff;
}

.profile-name {
  font-size: 20px;
  font-weight: 300;
  color: var(--ruoyi-text);
}

.profile-subtitle,
.muted,
.pagination-info,
.cell-muted {
  color: var(--ruoyi-muted);
}

.dict-type-pill span,
.index-style-option span,
.skin-swatch span,
.timeline-body,
.report-series-header,
.metric-row span,
.detail-item-label {
  color: var(--ruoyi-muted);
}

.detail-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--ruoyi-border-soft);
}

.payload-box,
.raw-json {
  padding: 14px 16px;
  border-radius: 3px;
  background: #1f2d3d;
  color: #f7f7f7;
}

details.model-dump {
  border-radius: 3px;
  background: #fff;
}

details.model-dump summary {
  padding: 15px 20px;
}

.tree-node {
  border: 1px solid var(--ruoyi-border);
  border-radius: 3px;
  background: #fff;
}

.tree-node-header {
  padding: 10px 12px;
}

.pagination {
  padding-top: 16px;
  border-top: 1px solid var(--ruoyi-border);
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: none;
}

.modal {
  border: 0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
}

.modal-header,
.modal-footer {
  padding: 15px 20px;
  border-color: #e5e5e5;
}

.modal-body {
  padding: 20px;
}

.modal-title {
  font-size: 18px;
  font-weight: 400;
  color: var(--ruoyi-text);
}

.empty-state,
.error-state,
.loading-state {
  padding: 40px 20px;
  color: var(--ruoyi-muted);
}

.loading-orbit {
  border-width: 3px;
  border-color: rgba(26, 179, 148, 0.18);
  border-top-color: var(--ruoyi-primary);
}

.toast {
  border-radius: 3px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.editor-hero,
.job-editor-hero,
.notice-hero {
  background: #fff;
  color: var(--ruoyi-text);
}

.editor-hero .notice-copy,
.editor-hero .monitor-card-kicker,
.job-editor-hero .notice-copy,
.notice-hero .notice-copy {
  color: var(--ruoyi-muted);
}

.gen-tabs {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.gen-tab {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-weight: 400;
}

.index-style-switch {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.notice-html blockquote {
  padding: 12px 16px;
  border-left: 4px solid var(--ruoyi-primary);
  border-radius: 0;
  background: #f5f5f5;
}

.timeline-dot {
  background: var(--ruoyi-primary);
}

.checkout-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.checkout-kpi-card {
  padding: 22px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 239, 0.8)),
    radial-gradient(circle at top right, rgba(29, 106, 111, 0.12), transparent 38%);
  box-shadow: var(--shadow-sm);
}

.checkout-kpi-card.tone-income {
  background:
    linear-gradient(180deg, rgba(244, 255, 249, 0.94), rgba(231, 249, 239, 0.86)),
    radial-gradient(circle at top right, rgba(45, 123, 99, 0.18), transparent 42%);
}

.checkout-kpi-card.tone-expense {
  background:
    linear-gradient(180deg, rgba(255, 248, 245, 0.94), rgba(255, 238, 232, 0.86)),
    radial-gradient(circle at top right, rgba(193, 79, 64, 0.16), transparent 42%);
}

.checkout-kpi-card.tone-warning {
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.94), rgba(252, 241, 223, 0.88)),
    radial-gradient(circle at top right, rgba(203, 138, 41, 0.18), transparent 42%);
}

.checkout-kpi-value {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1;
}

.checkout-kpi-caption {
  margin: 12px 0 0;
  color: var(--ink-2);
  line-height: 1.6;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.checkout-main,
.checkout-sidebar {
  display: grid;
  gap: 20px;
}

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

.checkout-table tbody tr {
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.checkout-table tbody tr:hover {
  background: rgba(29, 106, 111, 0.06);
}

.checkout-table tbody tr.is-active {
  background:
    linear-gradient(90deg, rgba(29, 106, 111, 0.1), rgba(216, 135, 66, 0.08)),
    rgba(255, 255, 255, 0.72);
}

.checkout-split-cell {
  display: grid;
  gap: 4px;
}

.checkout-split-cell strong {
  font-weight: 700;
  color: var(--ink-0);
}

.checkout-split-cell span {
  color: var(--ink-2);
  font-size: 0.82rem;
}

.checkout-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.checkout-amount.is-income {
  color: var(--success);
}

.checkout-amount.is-expense {
  color: var(--danger);
}

.checkout-amount.is-neutral {
  color: var(--ink-1);
}

.checkout-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.checkout-pill.is-income {
  background: rgba(45, 123, 99, 0.12);
  color: var(--success);
}

.checkout-pill.is-expense {
  background: rgba(193, 79, 64, 0.12);
  color: var(--danger);
}

.checkout-pill.is-warning {
  background: rgba(203, 138, 41, 0.14);
  color: var(--warning);
}

.checkout-pill.is-neutral {
  background: rgba(60, 73, 83, 0.1);
  color: var(--ink-1);
}

.checkout-preview-card {
  position: sticky;
  top: 24px;
}

.checkout-detail-amount {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.checkout-detail-amount.is-income {
  color: var(--success);
}

.checkout-detail-amount.is-expense {
  color: var(--danger);
}

.checkout-detail-amount.is-neutral {
  color: var(--ink-1);
}

.checkout-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-breakdown-card {
  overflow: hidden;
}

.checkout-breakdown-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.checkout-breakdown-item {
  padding: 14px 16px;
  border: 1px solid rgba(25, 33, 38, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.checkout-breakdown-head,
.checkout-breakdown-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checkout-breakdown-head {
  align-items: baseline;
}

.checkout-breakdown-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-breakdown-head span {
  font-weight: 700;
  color: var(--ink-0);
}

.checkout-breakdown-meta {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.82rem;
}

.checkout-breakdown-bar {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(25, 33, 38, 0.08);
  overflow: hidden;
}

.checkout-breakdown-fill {
  height: 100%;
  border-radius: inherit;
}

@media (max-width: 1200px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .datasource-info-grid,
  .checkout-shell,
  .checkout-detail-grid,
  .demo-icon-shell,
  .demo-icon-preview,
  .demo-modal-shell,
  .builder-shell,
  .swagger-shell,
  .builder-workspace-grid,
  .builder-output-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-icon-preview-stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

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

  .checkout-kpi-grid,
  .checkout-report-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-preview-card {
    position: static;
  }

  .sidebar {
    flex-basis: 208px;
    width: 208px;
    min-height: 100vh;
  }

  .topbar {
    align-items: flex-start;
    padding: 10px 16px;
  }

  .content-stack {
    padding: 16px;
  }

  .content-stack-auth {
    padding-top: 40px;
  }

  .auth-panel {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .shell {
    display: block;
  }

  .datasource-card-grid,
  .datasource-info-grid,
  .checkout-kpi-grid,
  .checkout-shell,
  .checkout-detail-grid,
  .demo-preview-actions,
  .builder-canvas,
  .builder-palette-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-report-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .swagger-endpoint-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    width: auto;
    min-height: auto;
  }

  .workspace-auth {
    padding: 0 16px;
  }

  .auth-panel .panel-header,
  .auth-panel .panel-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .auth-captcha-row {
    grid-template-columns: 1fr;
  }

  .topbar-left {
    width: 100%;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar-actions .btn {
    flex: 1 1 140px;
  }
}

.sidebar-backdrop {
  display: none;
}

.topbar-toggle {
  display: none;
}

@media (max-width: 980px) {
  body.sidebar-open {
    overflow: hidden;
  }

  .shell {
    position: relative;
    min-height: 100vh;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 1038;
  }

  .shell-sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(82vw, 286px);
    min-height: 100vh;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 220ms ease, box-shadow 220ms ease;
    z-index: 1039;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.24);
  }

  .shell-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .workspace {
    width: 100%;
    min-width: 0;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 1010;
  }

  .topbar-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
  }

  .topbar-toggle.is-active {
    background: #f0f4f7;
    border-color: #c7d2de;
    color: #1c84c6;
  }

  .content-stack {
    padding: 14px;
    gap: 16px;
  }

  .panel,
  .hero-panel {
    overflow: hidden;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .topbar-actions {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .sidebar {
    width: min(88vw, 320px);
  }

  .workspace-auth {
    padding: 0 12px;
  }

  .content-stack {
    padding: 12px;
    gap: 12px;
  }

  .content-stack-auth {
    padding: 24px 0 32px;
  }

  .topbar {
    padding: 10px 12px;
  }

  .topbar-left {
    gap: 12px;
  }

  .topbar-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .page-title {
    font-size: 20px;
  }

  .page-subtitle {
    line-height: 1.6;
  }

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

  .topbar-actions .btn {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .button-row,
  .toolbar,
  .inline-actions {
    width: 100%;
  }

  .button-row .btn,
  .toolbar .btn,
  .inline-actions .btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  .panel-header {
    padding: 14px 16px 10px;
  }

  .panel-body {
    padding: 16px;
  }

  .auth-layout {
    gap: 18px;
  }

  .auth-showcase {
    order: 2;
  }

  .auth-panel {
    order: 1;
    max-width: none;
  }

  .auth-title {
    font-size: 24px;
    line-height: 1.35;
  }

  .auth-copy,
  .auth-bullet-list li {
    font-size: 14px;
    line-height: 1.7;
  }
}

@media (max-width: 560px) {
  .topbar-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .button-row .btn,
  .toolbar .btn,
  .inline-actions .btn {
    flex-basis: 100%;
  }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 1010;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.topbar.is-scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.content-stack {
  padding-bottom: 88px;
}

.sidebar-search-shell {
  position: relative;
}

.sidebar-search .input {
  padding-right: 34px;
}

.sidebar-search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8fa1b3;
  transform: translateY(-50%);
  transition: color 180ms ease, background 180ms ease;
}

.sidebar-search-clear:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.loading-state-rich,
.error-state-rich {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.loading-headline {
  color: var(--ruoyi-text);
  font-size: 16px;
  font-weight: 600;
}

.loading-copy {
  max-width: 520px;
  line-height: 1.7;
}

.loading-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(860px, 100%);
  margin-top: 6px;
}

.loading-skeleton-card {
  padding: 16px;
  border: 1px solid var(--ruoyi-border-soft);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.78));
}

.loading-skeleton-line {
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(203, 213, 225, 0.44), rgba(226, 232, 240, 0.88), rgba(203, 213, 225, 0.44));
  background-size: 220% 100%;
  animation: loading-shimmer 1.2s ease-in-out infinite;
}

.loading-skeleton-line:first-child {
  margin-top: 0;
}

.loading-skeleton-line.is-wide {
  width: 88%;
}

.loading-skeleton-line.is-medium {
  width: 72%;
}

.loading-skeleton-line.is-short {
  width: 46%;
}

.error-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(237, 85, 101, 0.12);
  color: var(--ruoyi-danger);
  font-size: 26px;
}

.floating-action {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ruoyi-primary);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.floating-action:hover {
  background: #fff;
}

@keyframes loading-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (max-width: 980px) {
  .table-wrap {
    position: relative;
  }

  .table-wrap::after {
    content: "左右滑动查看更多";
    position: absolute;
    right: 10px;
    bottom: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(47, 64, 80, 0.8);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    pointer-events: none;
    opacity: 0.76;
  }

  .loading-skeleton-grid {
    grid-template-columns: 1fr;
  }

  .floating-action {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 720px) {
  .topbar {
    backdrop-filter: blur(12px);
  }

  .content-stack {
    padding-bottom: 92px;
  }

  .loading-state-rich,
  .error-state-rich {
    gap: 12px;
  }

  .loading-copy {
    font-size: 12px;
  }

  .table-wrap::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .floating-action {
    min-height: 42px;
    padding: 0 12px;
  }

  .floating-action span {
    display: none;
  }
}
