﻿/* Console base styles. Self-hosted; no @import from a CDN.
 *
 * Console design tokens 使用 --bg / --ink / --line / --accent 等 canonical 命名。
 */
:root {
  color-scheme: light;

  /*, v1.0 design tokens, */
  --bg: oklch(0.985 0.004 85);
  --bg-2: oklch(0.965 0.006 85);
  --bg-3: oklch(0.945 0.008 85);
  --ink: oklch(0.18 0.012 250);
  --ink-2: oklch(0.38 0.012 250);
  --ink-3: oklch(0.58 0.010 250);
  --line: oklch(0.88 0.008 85);
  --line-2: oklch(0.93 0.006 85);
  --accent: oklch(0.68 0.17 50);
  --accent-soft: oklch(0.92 0.06 50);
  --warn: oklch(0.74 0.12 70);
  --warn-soft: oklch(0.93 0.06 70);
  --bad: oklch(0.62 0.16 25);
  --ok: oklch(0.58 0.13 150);
  --ok-soft: oklch(0.92 0.06 150);

  --sans-en: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --sans-zh: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-ui: var(--sans-en);
  --font-ui-size: 14px;
  --font-small: 13px;
  --font-caption: 12.5px;
  --font-control: 13px;
  --font-table: 13px;
  --sidebar-w: 256px;
  --row-h: 42px;
  --disabled: oklch(0.58 0.010 250 / 0.5);

  /* 间距档（设计系统 §3.4）：canonical 间距步长，组件按档引用，从 theme 统一暴露。
   * 不落在档上的细粒度间距按上下文直写 px，逐步向档位收敛。 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 26px;
  --space-10: 40px;

}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
html, body, #root { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: var(--font-ui-size);
  font-weight: 400;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}
html:lang(zh) {
  --font-ui: var(--sans-zh);
}
[data-lang="zh"] body { font-family: var(--sans-zh); }
code, pre, .mono { font-family: var(--mono); font-feature-settings: "zero"; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: var(--font-control); letter-spacing: 0; }

.kicker {
  font-family: inherit; font-size: var(--font-caption); letter-spacing: 0;
  color: var(--ink-3); text-transform: none; font-weight: 500;
}

::selection { background: var(--accent-soft); }

/* 用户台与运维台共用同一套 chrome，页面只关心业务内容。 */
.ww-console-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}
.ww-console-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  z-index: 20;
}
.ww-console-brand {
  height: 98px;
  flex: 0 0 98px;
  padding: 21px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ww-console-brand__button {
  width: 100%;
  height: 56px !important;
  min-height: 56px;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start !important;
  padding: 0 !important;
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  cursor: pointer;
  line-height: 0;
  overflow: hidden;
}
.ww-console-brand__button:hover,
.ww-console-brand__button:focus {
  background: transparent !important;
}
.ww-console-brand__button img {
  max-width: 100%;
  object-fit: contain;
}
.ww-sidebar-divider {
  height: 1px;
  margin: 0 12px;
  background: var(--line-2);
  flex: 0 0 auto;
}
.ww-sidebar-network-title {
  padding: 14px 22px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-2);
  letter-spacing: 0;
}
.ww-console-nav {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 12px 14px;
}
.ww-console-sidebar-footer {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line-2);
}
.ww-console-main {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.ww-console-content {
  width: 100%;
  flex: 1;
  padding: 28px 36px 40px;
}
.ww-console-content--with-top-controls {
  padding-top: 68px;
}
.ww-console-top-controls {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 25;
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.ww-console-footer {
  border-top: 1px solid var(--line);
  padding: 16px 36px;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-3);
}
.ww-console-footer__fixed {
  flex-shrink: 0;
}
.ww-console-separator {
  flex-shrink: 0;
  opacity: 0.5;
}

/* 运维控制台 shell：沿用控制台原有浅色视觉，只统一尺寸与间距。 */
.ww-ops-shell {
  min-height: 100vh;
  background: var(--bg);
}
.ww-ops-sider {
  position: sticky !important;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--bg-2) !important;
  z-index: 20;
}
.ww-ops-sider .ant-layout-sider-children {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.ww-ops-brand {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
}
.ww-ops-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 8px;
}
.ww-ops-nav .ant-menu {
  border-inline-end: 0 !important;
  background: transparent !important;
}
.ww-ops-nav .ant-menu-item {
  width: 100%;
  margin-inline: 0;
}
.ww-ops-sider-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line-2);
}
.ww-ops-main-layout {
  position: relative;
  min-width: 0;
  background: var(--bg);
}
.ww-ops-content {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.ww-ops-content-inner {
  width: 100%;
  flex: 1;
  padding: 32px 36px 40px;
}
.ww-ops-top-controls {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 25;
}
.ww-ops-account-button {
  height: auto !important;
  min-height: 46px;
  padding: 8px !important;
  text-align: left;
}
.ww-ops-account-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}
.ww-ops-account-name {
  max-width: 150px;
  line-height: 18px;
}
.ww-ops-account-role {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
}
.ww-ops-content-inner .ant-card {
  overflow: hidden;
}
.ww-ops-content-inner .ant-card-head {
  min-height: 50px;
}
.ww-ops-table-toolbar {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.ww-ops-table-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
.ww-ops-table-card .ant-table-thead > tr > th,
.ww-ops-table-card .ant-table-tbody > tr > td {
  padding-left: 16px !important;
  padding-right: 16px !important;
}
.ww-ops-content-inner .ant-table-thead > tr > th,
.ww-ops-content-inner .ant-table-tbody > tr > td {
  vertical-align: middle;
}
.ww-ops-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
.ww-ops-upload-matrix {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.ww-ops-upload-matrix__header,
.ww-ops-upload-matrix__row {
  display: grid;
  grid-template-columns: 120px 120px minmax(220px, 1fr) 90px 96px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}
.ww-ops-upload-matrix__header {
  color: var(--ink-3);
  font-size: var(--font-table);
  font-weight: 600;
  background: var(--bg-2);
}
.ww-ops-upload-matrix__row {
  border-top: 1px solid var(--line-2);
}
.ww-ops-upload-matrix__file {
  width: 100%;
  justify-content: flex-start;
  overflow: hidden;
}
.ww-ops-upload-matrix__file > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ww-menu {
  position: relative;
}
.ww-menu-button {
  width: 100%;
  height: auto !important;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px;
  padding: 9px 11px !important;
  border-radius: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 100ms ease;
}
.ww-menu-button:hover,
.ww-menu-button.is-active {
  background: var(--bg-3);
}
.ww-menu-button__body {
  flex: 1;
  min-width: 0;
}
.ww-menu-button__name {
  font-size: 13.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ww-menu-button__meta {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ww-menu-button__more {
  font-size: 13px;
  color: var(--ink-3);
}
.ww-menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
}
.ww-menu-popover {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 -12px 40px -12px color-mix(in oklab, var(--ink) 30%, transparent);
}
.ww-menu-item {
  width: 100%;
  min-height: 34px;
  height: auto;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
.ww-menu-item.ant-btn {
  justify-content: flex-start !important;
  text-align: left;
}
.ww-menu-item > span {
  min-width: 0;
}
.ww-menu-item:hover {
  background: var(--bg-2);
  color: var(--ink);
}
.ww-menu-item--danger {
  color: var(--bad);
}

.ww-icon {
  display: block;
  flex-shrink: 0;
}

.ww-network-switcher {
  position: relative;
  padding: 0 12px 12px;
  margin-bottom: 0;
}
.ww-network-button {
  width: 100%;
  height: auto !important;
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px !important;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.ww-network-button:hover {
  border-color: var(--line-2);
  background: color-mix(in oklab, var(--bg) 62%, var(--bg-2));
}
.ww-network-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ww-network-button:disabled {
  cursor: default;
  color: var(--ink-3);
  background: transparent;
}
.ww-network-button--empty {
  min-height: 44px;
  grid-template-columns: 16px minmax(0, 1fr);
}
.ww-network-button__glyph,
.ww-network-button__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
}
.ww-network-button__body {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.ww-network-button__name,
.ww-network-button__meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ww-network-button__name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.ww-network-button__meta {
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--ink-3);
}
.ww-network-popover {
  position: absolute;
  top: calc(100% - 8px);
  left: 12px;
  right: 12px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 40px -12px color-mix(in oklab, var(--ink) 30%, transparent);
}

.ww-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg-2) 86%, var(--accent-soft)), var(--bg-2));
}
.ww-login-panel {
  width: min(100%, 420px);
}
.ww-login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.ww-dashboard-page-fill {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  height: calc(100dvh - 120px);
  min-height: 0;
  overflow: hidden;
}
.ww-observe-trend-page-fill {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  height: calc(100dvh - 120px);
  min-height: 0;
  overflow: hidden;
}
.ww-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
}
.ww-action-stack {
  display: grid;
  gap: var(--space-2);
}
.ww-route-fallback {
  min-height: 120px;
  display: grid;
  place-items: center;
}
.ww-route-fallback::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: ww-spin 700ms linear infinite;
}
@keyframes ww-spin {
  to { transform: rotate(360deg); }
}
.ww-section-gap {
  height: 16px;
}

input, select, textarea {
  font-family: inherit; font-size: var(--font-control); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 9px 11px; outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 16%, transparent);
}

.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ， Nav / sidebar (v1.0 carried) ， */
.ww-nav-link {
  position: relative;
  width: 100%;
  height: 36px;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1;
  transition: background 100ms ease, color 100ms ease;
}
.ww-nav-link.ant-btn {
  justify-content: flex-start !important;
}
.ww-nav-link .ant-btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  margin-inline-end: 0 !important;
  color: var(--ink-3);
}
.ww-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}
.ww-nav-link:not(.is-active):hover {
  background: var(--bg-3);
  color: var(--ink);
}
.ww-nav-link.is-active {
  background: color-mix(in oklab, var(--bg) 74%, var(--accent-soft));
  color: var(--ink);
  font-weight: 500;
}
.ww-nav-link.is-active::before {
  background: var(--accent);
}
.ww-nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ww-nav-link__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  color: var(--ink-3);
}
.ww-nav-link.is-active .ww-nav-link__icon {
  color: var(--accent);
}
.ww-nav-link.is-active .ant-btn-icon {
  color: var(--accent);
}
.ww-nav-link__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ww-skip-link {
  position: absolute; top: -48px; left: 12px; z-index: 999;
  padding: 8px 16px; background: var(--ink); color: var(--bg);
  border-radius: 0 0 8px 8px; font-size: 13px; font-weight: 500;
  text-decoration: none; transition: top 120ms ease;
}
.ww-skip-link:focus, .ww-skip-link:focus-visible {
  top: 0; outline: 2px solid var(--bg); outline-offset: 2px;
}

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

.ww-nav-group { margin-bottom: 8px; }
.ww-nav-group__title {
  margin: 14px 0 5px;
  padding: 0 10px 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-2);
  letter-spacing: 0;
}
.ww-nav-group__title.is-first {
  margin-top: 0;
}
.ww-nav-group__header {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 11px; font-size: var(--font-caption); font-weight: 500;
  color: var(--ink-3); text-transform: none; letter-spacing: 0;
  font-family: inherit; cursor: pointer; border: 0; background: none;
  width: 100%; border-radius: 5px; user-select: none;
}
.ww-nav-group__header:hover { color: var(--ink-2); }
.ww-nav-group__chevron { display: inline-block; transition: transform 120ms ease; font-size: 9px; }
.ww-nav-group__chevron.is-open { transform: rotate(90deg); }
.ww-nav-group__items { padding: 0 0 2px; }
.ww-nav-group__items.is-collapsed { display: none; }

.ww-nav-back {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 7px 11px; font-size: var(--font-caption); color: var(--ink-3);
  border: 0; background: none; cursor: pointer; border-radius: 6px; width: 100%;
}
.ww-nav-back:hover { background: var(--bg-3); color: var(--ink-2); }

.ant-table-wrapper,
.ant-table,
.ant-table-container,
.ant-table-content,
.ant-table-body,
.ant-table-tbody,
.ant-table-tbody > tr,
.ant-table-tbody > tr > td,
.ant-table-tbody > tr.ant-table-row:hover > td,
.ant-table-tbody > tr > td.ant-table-cell-row-hover,
.ant-table-placeholder,
.ant-table-placeholder > td,
.ant-table-expanded-row > td,
.ant-empty,
.ant-empty-normal,
.ant-descriptions-view,
.ant-descriptions-row > th,
.ant-descriptions-row > td,
.ant-descriptions-item-label,
.ant-descriptions-item-content {
  background: transparent !important;
}
.ww-console-table-section {
  min-width: 0;
}
.ww-console-table-section__header {
  min-height: 32px;
  margin-bottom: 8px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ww-console-table-section__title {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.ww-console-table-section__action {
  flex: none;
  display: flex;
  justify-content: flex-end;
}
.ww-console-table-section__body {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.ww-console-table-section .ant-table {
  font-size: var(--font-table);
}
.ww-console-table-section .ant-table-thead > tr > th {
  background: var(--bg-2) !important;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  border-bottom: 1px solid var(--line) !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  padding-top: 17px !important;
  padding-bottom: 17px !important;
}
.ww-console-table-section .ant-table-tbody > tr:not(.ant-table-measure-row) > td {
  padding-left: 18px !important;
  padding-right: 18px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  color: var(--ink);
  line-height: 1.4;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-2) !important;
}
.ww-console-table-section .ant-table-tbody > tr:not(.ant-table-measure-row):hover > td,
.ww-console-table-section .ant-table-tbody > tr:not(.ant-table-measure-row) > td.ant-table-cell-row-hover {
  background: var(--bg-2) !important;
}
.ww-console-table-section .ant-table-tbody > tr.ant-table-measure-row > td {
  height: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  border-bottom: 0 !important;
}
.ww-console-table-section .ant-table-measure-cell-content {
  height: 0 !important;
  overflow: hidden !important;
}
.ww-console-table-section td.ww-console-table-cell--nowrap {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ww-console-table-section .ww-console-table-cell--wrap {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ww-console-table-section td.ww-console-table-cell--numeric {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ww-console-table-section td.ww-console-table-cell--actions {
  white-space: nowrap;
}
.ww-console-table-section td.ww-console-table-cell--primary {
  font-weight: 600;
}
.ww-console-table-section th.ww-console-table-cell--spacer,
.ww-console-table-section td.ww-console-table-cell--spacer {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.ww-console-table-section .ant-empty-image {
  margin-bottom: 8px;
}

.ww-split-pane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-4);
  align-items: start;
}
.ww-split-pane--wide { grid-template-columns: minmax(0, 1fr) 360px; }

/* ， KV row (v1.0 carried; settings page primitive) ， */
.ww-kv-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-3); min-height: 50px;
}
.ww-kv-row + .ww-kv-row {
  border-top: 1px solid var(--line-2);
  padding-top: 12px; margin-top: 12px;
}
.ww-kv-row__label { font-size: 13px; color: var(--ink); }
.ww-kv-row__value { font-size: 14px; color: var(--ink-2); margin-top: 3px; }

/* ， Breadcrumb (v1.0 carried) ， */
.ww-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--font-caption); color: var(--ink-3);
}
.ww-breadcrumb a, .ww-breadcrumb button {
  color: var(--ink-3); background: none; border: 0; padding: 0;
  cursor: pointer; font: inherit; text-decoration: none;
}
.ww-breadcrumb a:hover, .ww-breadcrumb button:hover { color: var(--ink); }
.ww-breadcrumb__sep { color: var(--line); user-select: none; }
.ww-breadcrumb__current { color: var(--ink-2); font-weight: 500; }

/* ， Tab fade (v1.0 #20) ， */
.ww-tab-fade { animation: ww-tab-fade-in 180ms ease; }
@keyframes ww-tab-fade-in { from { opacity: 0; } to { opacity: 1; } }

[disabled], .is-disabled { opacity: 0.5; pointer-events: none; }
.ww-required::after { content: " *"; color: var(--bad); font-weight: 500; }

.ww-page-header__row {
  min-width: 0;
  min-height: 34px;
}
.ww-page-header__title {
  flex: 0 0 auto;
  line-height: 1.25 !important;
  word-break: normal !important;
  overflow-wrap: normal;
}
.ww-page-header__action {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

/* ， Responsive (v1.0 carried) ， */
@media (max-width: 768px) {
  :root { --sidebar-w: 56px; }
  body { font-size: 14px; }
  .ww-console-shell {
    grid-template-columns: 1fr;
  }
  .ww-console-sidebar {
    position: sticky;
    top: 0;
    height: auto;
    max-height: 48vh;
    flex-direction: row;
    align-items: stretch;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
  }
  .ww-console-brand {
    padding: 10px 12px;
    flex: 0 0 auto;
  }
  .ww-console-brand img {
    height: 54px !important;
  }
  .ww-sidebar-divider {
    display: none;
  }
  .ww-sidebar-network-title {
    display: none;
  }
  .ww-network-switcher {
    flex: 0 0 224px;
    padding: 8px 4px;
    margin-bottom: 0;
  }
  .ww-network-button {
    min-height: 36px;
    grid-template-columns: minmax(0, 1fr) 14px;
    gap: 7px;
    padding: 6px 8px;
  }
  .ww-network-button__meta {
    display: none;
  }
  .ww-network-popover {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 58px;
  }
  .ww-console-nav {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
  }
  .ww-console-nav .ww-nav-group {
    display: flex;
    align-items: center;
    margin-bottom: 0;
  }
  .ww-console-nav .ww-nav-group__items {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
  }
  .ww-console-nav .ww-nav-group__items > * {
    min-width: max-content;
  }
  .ww-console-nav .ww-nav-group > div:first-child:not(.ww-nav-group__items) {
    display: none;
  }
  .ww-console-nav .ww-nav-link {
    white-space: nowrap;
    min-height: 36px;
  }
  .ww-console-sidebar-footer {
    flex: 0 0 190px;
    border-top: 0;
    border-left: 1px solid var(--line-2);
    padding: 8px;
  }
  .ww-console-main {
    min-height: calc(100vh - 54px);
  }
  .ww-console-content,
  .ww-console-content--with-top-controls {
    padding: 64px 16px 28px !important;
  }
  .ww-console-top-controls {
    position: absolute;
    top: 16px;
    right: 16px;
  }
  .ww-console-footer {
    padding: 14px 16px;
  }
  .ww-page-header__row {
    align-items: flex-start !important;
    flex-wrap: wrap;
  }
  .ww-page-header__title {
    flex: 1 0 100%;
    line-height: 1.2 !important;
  }
  .ww-page-header__action {
    width: 100%;
    justify-content: flex-start;
  }
  .ww-page-header__action > * {
    flex-wrap: wrap;
    justify-content: flex-start !important;
  }
  .ww-dashboard-page-fill {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .ww-menu-popover {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .ww-ops-shell {
    display: block;
  }
  .ww-ops-sider.ant-layout-sider {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto;
    max-height: 54vh;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ww-ops-brand {
    height: 52px;
    padding: 0 16px;
  }
  .ww-ops-nav {
    padding: 8px;
  }
  .ww-ops-sider-footer {
    padding: 8px;
  }
  .ww-ops-content-inner {
    padding: 24px 16px 28px;
  }
  .ww-ops-top-controls {
    top: 16px;
    right: 16px;
  }
  .ww-ops-form-grid {
    grid-template-columns: 1fr;
  }
  .ww-ops-upload-matrix__header {
    display: none;
  }
  .ww-ops-upload-matrix__row {
    grid-template-columns: 1fr 1fr;
  }
  .ww-ops-upload-matrix__row .ant-upload-wrapper {
    grid-column: 1 / -1;
  }
  .ant-card-head + .ant-card-body .ant-table-thead > tr > th,
  .ant-card-head + .ant-card-body .ant-table-tbody > tr > td {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .ww-split-pane,
  .ww-split-pane--wide {
    grid-template-columns: 1fr;
  }
  button:not([data-tap-small]) { min-height: 44px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  :root { --sidebar-w: 200px; }
  .ww-nav-group__header { font-size: 10px; }
  main > div { padding: 20px 24px 32px 24px !important; }
}

.ww-error { color: var(--bad); padding: 12px; border: 1px solid var(--bad); border-radius: 6px; background: color-mix(in oklab, var(--bad) 5%, var(--bg)); }
