:root {
  --cb-blue: #0064c8;
  --cb-orange: #ff6a00;
  --cb-text: #333;
  --cb-muted: #666;
  --cb-border: #e5e8ed;
  --cb-border-strong: #c0c6cc;
  --cb-sidebar: #fff;
  --cb-hover: #f7f9fa;
  --cb-active: #eff3f8;
  --cb-green: #52c41a;
  --cb-red: #d93026;
  --cb-warn: #b86e00;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--cb-text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.28571;
}
ol, ul, li { list-style: none; margin: 0; padding: 0; }
a { color: var(--cb-blue); text-decoration: none; }
button, input, select, textarea { font: inherit; }
.next-btn, button {
  height: 32px;
  min-width: 72px;
  padding: 0 12px;
  border: 1px solid #c0c6cc;
  border-radius: 0;
  background: #fff;
  color: #333;
  cursor: pointer;
}
.next-btn:hover, button:hover { color: var(--cb-blue); border-color: var(--cb-blue); }
.next-btn-primary, button.primary { background: var(--cb-blue); border-color: var(--cb-blue); color: #fff; }
.next-btn-primary:hover, button.primary:hover { background: #0052a3; color: #fff; }
.isOnlyIcon { min-width: 32px; width: 32px; padding: 0; }
input, select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #c0c6cc;
  border-radius: 0;
  background: #fff;
}
textarea {
  width: 100%;
  min-height: 118px;
  padding: 8px 10px;
  border: 1px solid #c0c6cc;
  resize: vertical;
  font: 12px/1.5 Menlo, Monaco, Consolas, monospace;
}
.cb-topbar {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--cb-border);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.cb-menu-trigger {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--cb-border);
  font-size: 16px;
  color: #666;
}
.cb-brand {
  width: 92px;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--cb-orange);
  font-size: 16px;
  font-weight: 500;
}
.cb-brand-mark {
  display: none;
}
.cb-workbench {
  height: 30px;
  display: inline-flex;
  align-items: center;
  margin-right: 16px;
  padding: 0 12px;
  background: #f7f9fa;
  color: #333;
  font-size: 12px;
  text-decoration: none;
}
.cb-search {
  width: 360px;
  max-width: 30vw;
  height: 30px;
  display: flex;
  align-items: center;
  border: 1px solid #d9dee8;
  color: #999;
  font-size: 12px;
}
.cb-search:before { content: "⌕"; width: 34px; text-align: center; color: #999; font-size: 14px; }
.cb-top-nav {
  margin-left: auto;
  height: 50px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.cb-region-select {
  width: 138px;
  height: 28px;
  margin-right: 8px;
  padding: 0 24px 0 8px;
  border-color: #d8dce6;
  color: #333;
  background: #fff;
  font-size: 12px;
}
.cb-top-nav a {
  height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.cb-top-nav a:hover, .cb-workbench:hover { background: #f7f9fa; color: var(--cb-blue); }
.cb-top-nav .icon { font-size: 16px; }
.cb-login {
  width: 72px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--cb-blue);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.console-shell { padding-top: 50px; min-height: 100vh; }
.windcc-app-layout {
  min-height: calc(100vh - 50px);
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
}
.windcc-app-layout.nav-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}
.windcc-app-layout__nav {
  position: relative;
  background: var(--cb-sidebar);
  border-right: 1px solid var(--cb-border-strong);
  box-shadow: 2px 0 4px 0 rgba(0,0,0,.08);
  overflow: visible;
}
.windcc-app-layout.nav-collapsed .windcc-app-layout__nav {
  border-right: 0;
  box-shadow: none;
}
.windcc-app-layout.nav-collapsed .next-menu {
  display: none;
}
.next-menu-header h2 {
  margin: 0;
  padding: 26px 24px 18px;
  color: #333;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.next-menu-content { list-style: none; margin: 0; padding: 0; }
.next-menu-group-title {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: #333;
}
.next-menu-sub-menu { list-style: none; margin: 0; padding: 0; }
.next-menu-item {
  height: 32px;
  display: flex;
  align-items: center;
  padding-left: 40px;
  color: #333;
  cursor: pointer;
}
.next-menu-item:hover { background: var(--cb-hover); }
.next-menu-item.next-selected {
  color: var(--cb-blue);
  background: var(--cb-active);
  border-right: 2px solid var(--cb-blue);
  font-weight: 600;
}
.nav-collapse-trigger {
  position: absolute;
  right: -17px;
  top: calc(50vh - 34px);
  width: 17px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #c0c6cc;
  border-left: 0;
  color: #c1c1c1;
  box-shadow: 2px 0 4px rgba(0,0,0,.08);
  cursor: pointer;
  z-index: 2;
}
.nav-collapse-trigger:hover {
  color: var(--cb-blue);
}
.windcc-app-layout__content {
  min-width: 0;
  background: #fff;
}
.action-bar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 0;
  border-bottom: 1px solid var(--cb-border);
}
.action-bar-left, .action-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-bar-left { padding-left: 0; }
.action-bar .next-btn-primary { height: 32px; border-left: 0; }
.action-bar-right { padding-right: 0; }
.region-select { width: 150px; }
.backend-pill {
  max-width: 280px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #d7e7ff;
  background: #f0f7ff;
  color: #0054b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--cb-border);
}
.filter-bar input { width: 220px; }
.pager {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--cb-border);
  color: #666;
}
.form-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.form-grid .wide { grid-column: 1 / -1; }
.audit-list { display: grid; gap: 8px; }
.audit-item {
  padding: 10px 12px;
  border: 1px solid var(--cb-border);
  background: #fafbfe;
}
.audit-meta { color: #666; margin-top: 4px; font-family: Menlo, Monaco, Consolas, monospace; }
.next-table { width: 100%; overflow-x: auto; background: #fff; }
.next-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.next-table th, .next-table td {
  height: 48px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--cb-border);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.next-table th {
  height: 40px;
  color: #333;
  background: #f5f7fa;
  font-weight: 400;
}
.next-table tr:hover td { background: #fafcff; }
.resource-name { font-size: 13px; color: #333; font-weight: 500; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }
.resource-id { color: var(--cb-blue); cursor: pointer; font-size: 12px; }
.next-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  border: 1px solid #b7eb8f;
  color: #52c41a;
  background: #f6ffed;
}
.next-tag.warn { color: var(--cb-warn); background: #fff7e6; border-color: #ffd591; }
.next-tag.bad { color: var(--cb-red); background: #fff1f0; border-color: #ffa39e; }
.table-link { color: var(--cb-blue); margin-right: 12px; cursor: pointer; }
.empty-space { min-height: calc(100vh - 145px); }
.xconsole-section {
  margin: 16px;
  border: 1px solid var(--cb-border);
  background: #fff;
}
.xconsole-section.compact { margin-bottom: 0; }
.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  border-bottom: 1px solid var(--cb-border);
}
.summary-item {
  min-height: 72px;
  padding: 14px 16px;
  border-right: 1px solid var(--cb-border);
}
.summary-item:last-child { border-right: 0; }
.summary-label { color: #666; margin-bottom: 8px; }
.summary-value { color: #111; font-size: 20px; font-weight: 600; }
.config-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.config-item {
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--cb-border);
  background: #fafbfe;
}
.config-item-title { font-weight: 600; margin-bottom: 8px; }
.config-item-desc { color: #666; line-height: 1.6; margin-bottom: 8px; }
.mini-switch {
  width: 36px;
  height: 18px;
  border-radius: 9px;
  background: var(--cb-blue);
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.mini-switch:after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}
.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.utility-card {
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--cb-border);
  background: #fff;
}
.utility-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.utility-value { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.utility-desc { color: #666; line-height: 1.6; }
.utility-form {
  display: grid;
  grid-template-columns: 140px minmax(0, 520px);
  align-items: center;
  gap: 12px;
}
.utility-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.detail-panel, .api-panel {
  margin: 16px;
  border: 1px solid var(--cb-border);
  background: #fff;
}
.panel-title {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--cb-border);
  font-size: 14px;
  font-weight: 500;
}
.panel-body { padding: 16px; }
.kv-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px 16px;
  max-width: 760px;
}
.kv-grid .key { color: #666; }
.code {
  font-family: Menlo, Monaco, Consolas, monospace;
  color: var(--cb-blue);
}
.api-form {
  display: grid;
  grid-template-columns: 150px minmax(0, 720px);
  gap: 12px;
  align-items: center;
}
.api-form .wide { grid-column: 1 / -1; }
.hint { color: #666; line-height: 1.6; }
.jsonbox {
  max-height: 240px;
  overflow: auto;
  margin: 16px 0 0;
  padding: 12px;
  color: #dbeafe;
  background: #111827;
  font: 12px/1.5 Menlo, Monaco, Consolas, monospace;
}
.drawer {
  position: fixed;
  z-index: 1100;
  top: 50px;
  right: 0;
  width: 520px;
  height: calc(100vh - 50px);
  display: none;
  background: #fff;
  border-left: 1px solid var(--cb-border-strong);
  box-shadow: -2px 0 8px rgba(0,0,0,.16);
}
.drawer.open { display: block; }
.drawer-head {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--cb-border);
  font-size: 16px;
}
.drawer-body { padding: 24px; }
.toast {
  position: fixed;
  z-index: 1200;
  right: 24px;
  bottom: 24px;
  display: none;
  min-width: 260px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--cb-border-strong);
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
}
.toast.show { display: block; }
@media (max-width: 980px) {
  .cb-search { display: none; }
  .cb-workbench { margin-right: 8px; }
  .windcc-app-layout { grid-template-columns: 1fr; }
  .windcc-app-layout__nav { display: none; }
  .drawer { width: 100%; }
  .summary-strip, .config-list, .utility-grid, .search-results { grid-template-columns: 1fr; }
}
