:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color-scheme: dark;
  --bg: #17191d;
  --surface: #202328;
  --surface-2: #25282e;
  --surface-3: #1b1d22;
  --hover: #2b2f37;
  --text: #e8ebf0;
  --muted: #a1a9b6;
  --dim: #8a939f;
  --line: #353941;
  --blue: #84afff;
  --primary: #356bd9;
  --blue-bg: #223454;
  --green: #64cfa2;
  --green-bg: #1e3c30;
  --amber: #edbd6c;
  --amber-bg: #413523;
  --red: #f08d95;
  --red-bg: #42272e;
  --shadow: 0 14px 60px #0005;
  --nav: var(--surface-3);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #fff;
  --surface-2: #f4f6f9;
  --surface-3: #fff;
  --hover: #edf1f7;
  --text: #222a36;
  --muted: #5f6b7b;
  --dim: #6b7686;
  --line: #e0e4eb;
  --blue: #245fc7;
  --primary: #3066d4;
  --blue-bg: #e9f0ff;
  --green: #167649;
  --green-bg: #e8f6ee;
  --amber: #925e0c;
  --amber-bg: #fff4de;
  --red: #b33447;
  --red-bg: #fdecef;
  --shadow: 0 14px 60px #172d4b20;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button svg,
a svg {
  flex-shrink: 0;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 15px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
small,
.muted {
  color: var(--muted);
  font-size: 12px;
}
.numeric,
time,
td,
progress {
  font-variant-numeric: tabular-nums;
}
.nowrap {
  white-space: nowrap;
}
.full {
  grid-column: 1/-1;
}
.text-danger {
  color: var(--red);
}
[hidden],
.hidden {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
svg {
  vertical-align: middle;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 250px;
  background: var(--surface);
  z-index: 200;
  padding: 10px 20px;
}
.skip-link:focus {
  top: 10px;
}
.shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  display: flex;
  flex-direction: column;
  background: var(--surface-3);
  border-right: 1px solid var(--line);
  z-index: 25;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding: 21px 20px 17px;
}
.brand:hover {
  text-decoration: none;
}
.console-logo {
  height: 33px;
  width: 33px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  border-radius: 9px;
}
.brand-word {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0.5px;
}
.brand-word > span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 4px;
}
.workspace-selector {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 13px 14px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  text-align: left;
}
.workspace-selector > span:nth-child(2) {
  flex: 1;
}
.workspace-selector strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
}
.workspace-selector small {
  display: block;
  font-size: 10px;
  margin-top: 1px;
}
.workspace-avatar {
  display: grid;
  place-items: center;
  background: var(--blue-bg);
  color: var(--blue);
  border-radius: 5px;
  width: 29px;
  height: 29px;
  font-size: 13px;
  font-weight: 700;
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0 13px 8px;
  padding: 8px 9px;
  color: var(--muted);
  font-size: 12px;
}
.nav-search span {
  flex: 1;
  text-align: left;
}
kbd {
  font: 10px inherit;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 4px;
  color: var(--muted);
}
.navigation {
  overflow-y: auto;
  padding: 0 10px 12px;
  flex: 1;
}
.nav-group {
  margin-top: 15px;
}
.nav-label {
  font-size: 11px;
  color: var(--dim);
  padding: 0 11px 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  min-height: 38px;
  margin: 2px 0;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
}
.nav-link:hover {
  background: var(--hover);
  color: var(--text);
  text-decoration: none;
}
.nav-link.active {
  background: var(--blue-bg);
  color: var(--blue);
  font-weight: 550;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  background: var(--hover);
  padding: 0 6px;
  border-radius: 4px;
}
.nav-count.attention {
  color: var(--amber);
  background: var(--amber-bg);
}
.sidebar-bottom {
  border-top: 1px solid var(--line);
  padding: 13px 14px 0;
}
.sidebar-usage {
  font-size: 11px;
  padding: 0 4px 14px;
}
.sidebar-usage a {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  color: var(--muted);
}
.sidebar-usage a strong {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
}
.sidebar-usage > div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  margin: 8px 0 5px;
  gap: 4px;
}
.sidebar-usage b {
  font-weight: 500;
  color: var(--text);
}
progress {
  display: block;
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: var(--hover);
  color: var(--blue);
  border-radius: 3px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: var(--hover);
}
progress::-webkit-progress-value {
  background: var(--blue);
}
progress::-moz-progress-bar {
  background: var(--blue);
}
.sidebar-usage small {
  font-size: 9px;
  display: block;
  text-align: right;
  margin-top: 4px;
}
.sidebar-help {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  font-size: 12px;
  color: var(--muted);
  padding: 9px 3px;
}
.sidebar-help > span {
  flex: 1;
  text-align: left;
}
.profile {
  display: flex;
  gap: 9px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  margin-top: 5px;
}
.profile-avatar,
.topbar-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: 12px;
}
.profile-text {
  flex: 1;
  font-size: 12px;
}
.profile-text small {
  display: block;
  font-size: 10px;
}
.main-shell {
  margin-left: 232px;
  min-width: 0;
}
.topbar {
  height: 54px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: var(--bg);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--dim);
}
.breadcrumbs a {
  color: var(--muted);
}
.breadcrumbs strong {
  font-weight: 500;
  color: var(--text);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 13px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.connection .status-dot {
  color: var(--green);
}
.connection.offline .status-dot {
  color: var(--red);
}
.topbar-avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
}
.workspace {
  padding: 27px 30px 45px;
  min-width: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 700px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 2px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 34px;
  padding: 6px 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.button:hover {
  background: var(--hover);
  text-decoration: none;
}
.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.button.primary:hover {
  filter: brightness(1.1);
}
.button.danger {
  color: var(--red);
  background: var(--red-bg);
  border-color: color-mix(in srgb, var(--red) 35%, transparent);
}
.button.ghost {
  background: none;
  border-color: transparent;
  color: var(--muted);
}
.button.link {
  background: none;
  border-color: transparent;
  color: var(--blue);
  min-height: 24px;
  padding: 3px 4px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  color: var(--muted);
  padding: 3px;
}
.icon-button:hover {
  color: var(--text);
  background: var(--hover);
}
.table-title-button {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 13px;
  padding: 0;
  text-align: left;
  cursor: pointer;
  line-height: 1.6;
}
.table-title-button:hover {
  text-decoration: underline;
}
.text-link {
  color: var(--blue);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.cell-title {
  color: var(--text);
  font-size: 13px;
}
.cell-sub {
  display: block;
  color: var(--dim);
  font-size: 11px;
  margin-top: 3px;
  font-weight: 400;
  word-break: break-word;
}
.cell-stack {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cell-unit {
  font-size: 11px;
  color: var(--dim);
}
.console-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
}
.console-stat {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.console-stat:last-child {
  border-right: 0;
}
.console-stat > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.console-stat > strong {
  /* Text values such as a time zone must wrap inside narrow cards instead of widening the page. */
  overflow-wrap: anywhere;
  display: block;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.console-stat > small {
  display: block;
  font-size: 11px;
  color: var(--dim);
  margin-top: 5px;
}
.console-stats.compact .console-stat {
  padding: 14px 20px;
}
.console-stats.compact .console-stat > strong {
  font-size: 22px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  min-width: 0;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 17px 20px;
}
.panel-header p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.panel-body {
  padding: 4px 20px 20px;
}
.panel-footnote {
  font-size: 10px;
  color: var(--dim);
  padding: 11px 20px;
  border-top: 1px solid var(--line);
}
.section-gap {
  margin-top: 22px;
}
.spacer {
  height: 16px;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
}
.dashboard-primary,
.dashboard-secondary {
  display: grid;
  align-content: start;
  gap: 22px;
  min-width: 0;
}
.activity-panel .panel-body {
  padding-top: 10px;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
}
.chart-grid {
  stroke: var(--line);
  fill: none;
  stroke-dasharray: 3 5;
}
.chart-line {
  stroke: var(--blue);
  stroke-width: 2.3;
  fill: none;
  stroke-linejoin: round;
}
.chart-point {
  fill: var(--surface);
  stroke: var(--blue);
  stroke-width: 2;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 3.7%;
  font-size: 10px;
  color: var(--dim);
  margin-top: 6px;
}
.chart-key {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.chart-key i {
  height: 3px;
  width: 14px;
  background: var(--blue);
}
.quick-actions > a,
.quick-actions > button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  width: 100%;
  padding: 14px 19px;
  text-align: left;
  color: var(--muted);
}
.quick-actions > a:hover,
.quick-actions > button:hover {
  background: var(--hover);
  text-decoration: none;
}
.quick-actions > a > span,
.quick-actions > button > span {
  flex: 1;
}
.quick-actions strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
.quick-actions small {
  display: block;
  font-size: 10px;
  color: var(--dim);
  margin-top: 2px;
}
.supply-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
}
.supply-step > span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
}
.supply-step > div {
  flex: 1;
}
.supply-step strong {
  display: block;
  font-weight: 500;
  font-size: 12px;
}
.supply-step small {
  display: block;
  font-size: 10px;
  color: var(--dim);
}
.supply-step b {
  font-size: 16px;
  font-weight: 500;
}
.supply-panel .panel-footnote {
  margin-top: 12px;
}
.connection-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 20px 19px;
}
.connection-summary span {
  font-size: 10px;
  color: var(--dim);
}
.connection-summary b {
  display: block;
  font-size: 21px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}
.platform-shortcuts {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  gap: 30px;
  align-items: center;
}
.platform-shortcuts p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.platform-shortcut-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}
.platform-shortcut-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}
.platform-shortcut-list a:hover {
  background: var(--hover);
  text-decoration: none;
}
.platform-shortcut-list .platform-icon {
  width: 26px;
  height: 26px;
  border-radius: 4px;
}
.platform-shortcut-list svg {
  width: 18px;
  height: 18px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 17px;
  flex-wrap: wrap;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar input,
.toolbar select {
  font-size: 12px;
}
.list-summary {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 250px;
  border: 1px solid var(--line);
  background: var(--surface-3);
  border-radius: 5px;
  padding: 0 11px;
  color: var(--dim);
  height: 35px;
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 7px 0;
  background: none;
  color: var(--text);
  font-size: 12px;
}
.search-box:focus-within {
  border-color: var(--blue);
}
.search-box.small {
  min-width: 140px;
  width: 150px;
}
.toolbar select,
.catalog-search-row select,
.list-footer select {
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 9px;
  max-width: 225px;
  height: 35px;
  font-size: 12px;
}
.inline-tabs {
  display: flex;
  gap: 17px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.inline-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 9px 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.inline-tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.status-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 21px;
  overflow-x: auto;
}
.status-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 1px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.status-tabs button.active {
  color: var(--blue);
  border-color: var(--blue);
}
.status-tabs button > span {
  background: var(--surface-2);
  border-radius: 4px;
  font-size: 10px;
  padding: 1px 5px;
  color: var(--dim);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  padding: 12px 16px;
  background: var(--surface-2);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: color-mix(in srgb, var(--hover) 45%, transparent);
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.table-wrap > table {
  min-width: 760px;
}
.table-wrap > table.compact-table {
  min-width: 600px;
}
/* User-supplied titles can be any length; keep table rows to two lines and show the rest on hover.
   break-word, unlike anywhere, wraps long tokens without shrinking a column's minimum width. */
.table-wrap td {
  overflow-wrap: break-word;
}
.table-wrap td strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.compact-table td {
  padding: 13px 17px;
}
.entity-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  color: var(--text);
  min-width: 180px;
}
.entity-link:hover {
  text-decoration: none;
}
.entity-link strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
  color: var(--text);
}
.entity-link small {
  font-size: 10px;
  color: var(--dim);
  display: block;
  margin-top: 2px;
}
.entity-link:hover strong {
  color: var(--blue);
}
.entity-link .platform-icon {
  width: 32px;
  height: 32px;
}
.run-state-link:hover {
  text-decoration: none;
}
.row-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.list-footer,
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.data-limit-note {
  font-size: 10px;
  color: var(--dim);
  margin-top: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  background: var(--hover);
  line-height: 1.5;
}
.badge.running,
.badge.ready {
  color: var(--blue);
  background: var(--blue-bg);
}
.badge.succeeded,
.badge.verified {
  color: var(--green);
  background: var(--green-bg);
}
.badge.needs_attention,
.badge.unknown,
.badge.waiting,
.badge.observed_only {
  color: var(--amber);
  background: var(--amber-bg);
}
.badge.cancelled {
  color: var(--red);
  background: var(--red-bg);
}
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  white-space: nowrap;
}
.tag.brand_sentiment {
  color: var(--blue);
  background: var(--blue-bg);
  border-color: transparent;
}
.tag.competitor {
  color: var(--green);
  background: var(--green-bg);
  border-color: transparent;
}
.tag.influencer {
  color: #c8a8ed;
  background: #3e3055;
  border-color: transparent;
}
:root[data-theme="light"] .tag.influencer {
  color: #7243a1;
  background: #f0e9f8;
}
.route-sequence {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 10px;
  color: var(--muted);
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  background: var(--blue-bg);
  border: 1px solid color-mix(in srgb, var(--blue) 15%, transparent);
  border-radius: 5px;
  padding: 12px 15px;
}
.notice svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--blue);
}
#credential-guide { overflow-wrap: anywhere; }
#credential-guide > div { width: 100%; }
#credential-guide pre {
  margin: 5px 0 0;
  padding: 10px 12px;
  background: var(--surface-3);
  border-radius: 4px;
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.6 ui-monospace, SFMono-Regular, monospace;
}
.notice.amber {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: transparent;
}
.notice.amber svg {
  color: inherit;
}
.notice.green {
  color: var(--green);
  background: var(--green-bg);
}
.empty-state {
  text-align: center;
  padding: 45px 24px;
  color: var(--dim);
}
.empty-state > svg {
  color: var(--dim);
  margin-bottom: 15px;
}
.empty-state h3 {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 7px;
}
.empty-state p {
  font-size: 12px;
  max-width: 430px;
  margin: 0 auto 19px;
  line-height: 1.9;
}
.empty-state > .button {
  margin-top: 2px;
}
.platform-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  flex-shrink: 0;
}
.platform-youtube {
  color: #fc5a5e;
  background: #3d2229;
  border-color: #573039;
}
.platform-trustpilot {
  color: #55d4a0;
  background: #20392f;
  border-color: #2d5140;
}
.platform-douyin,
.platform-tiktok {
  background: #111319;
  color: #f0f3f8;
}
.platform-xiaohongshu {
  font-size: 9px;
  background: #e52e4b;
  color: white;
  border-color: #e52e4b;
}
.platform-instagram {
  color: #f192c6;
  background: #3e273b;
  border-color: #60364f;
}
.platform-twitter {
  color: #fff;
  background: #151619;
}
.platform-weibo {
  color: #ffb775;
  background: #4d2c24;
  border-color: #593a2d;
}
.platform-reddit {
  color: #ff9b72;
  background: #462f28;
  border-color: #674333;
}
.platform-facebook {
  background: #2458ab;
  color: #fff;
  border-color: #3765ae;
}
.platform-bilibili {
  color: #6ec9e8;
  background: #1c3843;
}
.platform-wechat,
.platform-wechat_channels {
  color: #67d591;
  background: #233b2b;
}
.platform-zhihu {
  color: #7eb6ff;
  background: #253b5b;
}
.platform-apify {
  color: #ffc069;
  background: #43372c;
}
.platform-tikhub {
  color: #fff;
  background: #2452aa;
}
.platform-brightdata {
  color: #85bdff;
  background: #293b5a;
}
.platform-google_search,
.platform-googleplay,
.platform-google_news,
.platform-google_maps {
  color: #78b2ff;
  background: #283851;
}
.catalog-search-row {
  display: flex;
  gap: 12px;
  margin: 26px 0 25px;
}
.catalog-search-row .search-box {
  flex: 1;
  height: 40px;
  max-width: 740px;
}
.catalog-search-row select {
  height: 40px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 166px minmax(0, 1fr);
  gap: 26px;
}
.catalog-categories h2 {
  font-size: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  padding: 0 10px;
}
.catalog-categories > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: none;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  padding: 8px 10px;
  margin: 3px 0;
}
.catalog-categories > button small {
  font-size: 10px;
  color: var(--dim);
}
.catalog-categories > button:hover {
  background: var(--hover);
}
.catalog-categories > button.active {
  background: var(--blue-bg);
  color: var(--blue);
}
.category-note {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding: 17px 10px;
  color: var(--dim);
  font-size: 10px;
}
.category-note p {
  margin-top: 7px;
  line-height: 1.9;
}
.catalog-results {
  min-width: 0;
}
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.catalog-toolbar .inline-tabs {
  padding: 0;
  border: 0;
  gap: 22px;
}
.catalog-toolbar .inline-tabs button {
  padding-top: 0;
  padding-bottom: 12px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 202px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 17px 17px 0;
  transition: border-color 0.12s;
}
.catalog-card:hover {
  border-color: var(--dim);
}
.catalog-title {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}
.catalog-title:hover {
  text-decoration: none;
}
.catalog-title > div {
  flex: 1;
  min-width: 0;
}
.catalog-title h3 {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-title span:not(.platform-icon) {
  font-size: 10px;
  color: var(--dim);
}
.catalog-title > svg {
  color: var(--dim);
}
.catalog-title .platform-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}
.catalog-card > p {
  font-size: 11px;
  color: var(--muted);
  margin: 14px 0 13px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}
.catalog-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.catalog-card footer {
  margin-top: 17px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border-top: 1px solid var(--line);
}
.catalog-card footer .text-link {
  font-size: 10px;
}
.catalog-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--dim);
}
.catalog-status .connected {
  color: var(--green);
}
.provider-tag {
  color: var(--amber);
  background: var(--amber-bg);
  border-color: transparent;
}
.catalog-results > .list-footer {
  border: 0;
  padding: 18px 0;
}
.detail-back {
  margin: -7px 0 15px;
}
.detail-back .button {
  padding-left: 0;
}
.entity-heading {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin-bottom: 24px;
}
.entity-heading > .platform-icon {
  height: 58px;
  width: 58px;
  font-size: 23px;
  border-radius: 12px;
}
.entity-heading > .platform-icon > svg {
  height: 34px;
  width: 34px;
}
.entity-heading > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.entity-heading h1 {
  font-size: 24px;
}
.entity-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 11px;
}
.entity-heading .catalog-tags > span:first-child {
  font-size: 11px;
  color: var(--dim);
}
.page-tabs {
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 23px;
  overflow-x: auto;
}
.page-tabs a {
  color: var(--muted);
  padding: 10px 0 12px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  white-space: nowrap;
}
.page-tabs a:hover {
  text-decoration: none;
  color: var(--text);
}
.page-tabs a.active {
  color: var(--blue);
  border-color: var(--blue);
}
.page-tabs a > span {
  background: var(--surface-2);
  color: var(--dim);
  border-radius: 3px;
  font-size: 10px;
  padding: 1px 5px;
  margin-left: 7px;
}
.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  gap: 22px;
}
.prose-panel {
  padding: 2px 22px 22px;
}
.prose-panel p {
  font-size: 12px;
  line-height: 1.9;
  max-width: 75ch;
  color: var(--muted);
}
.prose-panel h3 {
  margin: 20px 0 10px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px 24px;
  margin: 17px 0;
}
.detail-grid dt {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.detail-grid dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  word-break: break-word;
}
.getting-connected {
  align-self: start;
}
.getting-connected ol {
  padding: 0 22px 0 42px;
  font-size: 12px;
  color: var(--blue);
}
.getting-connected li {
  padding: 5px 0 13px;
}
.getting-connected strong {
  color: var(--text);
  font-weight: 500;
}
.getting-connected p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.getting-connected > .button {
  margin: 2px 20px 20px;
}
.schedule-frequency {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 23px;
  color: var(--blue);
}
.schedule-frequency strong {
  font-size: 21px;
  font-weight: 550;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.route-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.route-detail-body {
  padding: 0 18px 17px;
}
.route-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.route-channel > div {
  flex: 1;
  min-width: 0;
}
.route-channel small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.route-channel .table-title-button {
  word-break: break-all;
  font-size: 12px;
}
.route-order {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--muted);
}
.run-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 12px;
  margin-bottom: 18px;
}
.run-banner.needs_attention {
  border-color: color-mix(in srgb, var(--amber) 40%, var(--line));
}
.run-banner > span:nth-child(2) {
  flex: 1;
  color: var(--muted);
}
.run-banner > a {
  font-size: 11px;
  white-space: nowrap;
}
.run-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 19px;
}
.run-facts .console-stat {
  border: 0;
  padding: 7px 20px 7px 0;
  flex: 1;
  min-width: 135px;
}
.run-facts .console-stat strong {
  font-size: 13px;
  letter-spacing: 0;
  margin-top: 7px;
  word-break: break-word;
}
.run-facts .console-stat > span {
  font-size: 10px;
}
.json-view {
  background: var(--surface-3);
  color: var(--text);
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  margin: 0;
  padding: 21px;
  overflow: auto;
  max-height: 650px;
  tab-size: 2;
  text-align: left;
}
.json-view code {
  font: inherit;
}
.wrap-cell {
  min-width: 180px;
  max-width: 260px;
  white-space: normal;
  word-break: break-word;
}
.wrap-cell.excerpt {
  max-width: 300px;
  min-width: 200px;
  line-height: 1.8;
  color: var(--muted);
}
.content-table .excerpt {
  max-width: 280px;
}
/* Long bodies stay a three-line preview; the reading view and detail drawer show the full text. */
.excerpt-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-table .table-title-button {
  font-size: 12px;
}
.event-log {
  max-height: 650px;
  overflow: auto;
  background: var(--surface-3);
}
.event-log-row {
  display: grid;
  grid-template-columns: 145px 78px minmax(0, 1fr);
  gap: 13px;
  font:
    11px/1.8 ui-monospace,
    SFMono-Regular,
    monospace;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}
.event-log-row time {
  color: var(--dim);
  font-size: 10px;
}
.event-kind {
  color: var(--blue);
}
.event-kind.checkpoint {
  color: var(--green);
}
.event-kind.gap {
  color: var(--amber);
}
.event-log-row strong {
  display: block;
  font:
    12px -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    sans-serif;
  margin: 2px 0 5px;
}
.event-log-row code {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.coverage-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.forecast-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 0 19px 18px;
}
.forecast-strip > a {
  border-left: 2px solid var(--blue);
  background: var(--surface-2);
  padding: 10px 12px;
  margin: 5px;
  color: var(--text);
  min-width: 0;
}
.forecast-strip > a:hover {
  text-decoration: none;
  background: var(--hover);
}
.forecast-strip time {
  font-size: 17px;
  font-weight: 550;
  color: var(--blue);
}
.forecast-strip strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 4px 0;
}
.forecast-strip small {
  display: block;
  font-size: 10px;
  color: var(--dim);
}
.forecast-empty {
  grid-column: 1/-1;
  padding: 10px 0;
  font-size: 12px;
  color: var(--muted);
}
.schedule-outlook {
  margin-bottom: 24px;
}
.schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.data-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 14px;
}
.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-3);
  gap: 2px;
  max-width: 100%;
  overflow: auto;
}
.segmented button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  border: 0;
  background: none;
  padding: 5px 11px;
  border-radius: 3px;
  white-space: nowrap;
}
.segmented button.active {
  background: var(--hover);
  color: var(--text);
}
.content-list {
  display: grid;
  gap: 0;
}
.content-item {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.content-item:last-child {
  border-bottom: 0;
}
.content-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.content-item h3 {
  margin: 10px 0 8px;
  font-size: 16px;
  font-weight: 550;
}
.content-preview {
  max-width: 80ch;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.content-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 11px;
  color: var(--dim);
}
.storage-layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}
.storage-layers > div {
  border-left: 2px solid var(--line);
  padding-left: 15px;
  display: grid;
  grid-template-columns: 26px auto;
  gap: 2px 8px;
}
.storage-layers svg {
  grid-row: 1/3;
  color: var(--muted);
  margin-top: 4px;
}
.storage-layers strong {
  font-size: 12px;
  font-weight: 500;
}
.storage-layers span {
  font-size: 11px;
  color: var(--dim);
}
.budget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.budget-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.budget-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.budget-top strong {
  font-weight: 550;
  word-break: break-word;
}
.budget-amount {
  font-size: 27px;
  margin: 20px 0;
}
.budget-amount span {
  font-size: 11px;
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.budget-rows {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.budget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.budget-row strong {
  font-weight: 500;
  color: var(--text);
}
.attention-item {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.attention-item:last-child {
  border: 0;
}
.attention-item > svg {
  color: var(--amber);
  margin-top: 3px;
}
.attention-item strong {
  font-size: 12px;
  font-weight: 500;
}
.attention-item p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 23px;
}
.metric {
  padding: 19px 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.metric-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.metric-icon {
  color: var(--blue);
}
.metric-value {
  font-size: 27px;
  font-weight: 600;
  margin: 7px 0;
}
.metric-footer {
  font-size: 11px;
  color: var(--dim);
}
.metric-footer strong {
  font-weight: 500;
  color: var(--text);
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0;
}
dialog::backdrop {
  background: #080b13a8;
  backdrop-filter: blur(2px);
}
.modal {
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  border-radius: 9px;
}
.modal.wide {
  width: 760px;
}
.modal.with-examples {
  width: 1180px;
}
.example-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
}
.example-sidebar {
  position: sticky;
  top: 0;
  max-height: calc(90vh - 190px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  color: var(--muted);
  background: var(--blue-bg);
  border-left: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.example-sidebar h3 { color: var(--text); font-size: 15px; }
.example-sidebar strong { color: var(--text); }
.example-sidebar pre {
  margin: 5px 0 0;
  padding: 10px 12px;
  max-height: 180px;
  overflow: auto;
  background: var(--surface-3);
  border-radius: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.6 ui-monospace, SFMono-Regular, monospace;
}
@media (max-width: 900px) {
  .example-layout { grid-template-columns: minmax(0, 1fr); }
  .example-sidebar { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--line); }
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
}
.dialog-header p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.form-body {
  padding: 23px 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.form-field label,
.route-fieldset legend {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.form-field label em,
.route-fieldset legend em {
  font-style: normal;
  color: var(--red);
  margin-left: 4px;
}
.form-field small {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  display: block;
  max-width: 75ch;
}
.form-field input:not([type="checkbox"]),
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 10px;
  background: var(--surface-3);
  color: var(--text);
  min-height: 37px;
  font-size: 12px;
  line-height: 1.7;
}
.form-field input::placeholder,
.search-box input::placeholder {
  color: var(--dim);
}
.form-field textarea {
  resize: vertical;
  min-height: 115px;
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--blue);
  outline: 1px solid var(--blue);
  outline-offset: 0;
}
.form-field input[type="file"] {
  font-size: 11px;
  padding: 7px;
}
.form-field input::file-selector-button {
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 4px;
  margin-right: 10px;
}
.form-error {
  font-size: 12px;
  color: var(--red);
  grid-column: 1/-1;
}
.form-error:empty {
  display: none;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-3);
}
.form-divider {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 2px;
}
.form-divider h3 {
  font-size: 13px;
}
.form-divider p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 400 !important;
  line-height: 1.8;
  font-size: 12px !important;
}
.check-label input {
  margin-top: 5px;
}
.route-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.route-fieldset legend {
  margin-bottom: 10px;
}
.route-options {
  display: grid;
  gap: 8px;
}
/* Scope URLs in the authorization status line are long unbroken tokens. */
#auth-provider-status {
  overflow-wrap: anywhere;
}
/* Authorization grants: identity on the left, one aligned action on the right. */
.grant-list {
  display: grid;
  gap: 10px;
}
.grant-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-3);
}
.grant-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 5px;
}
.grant-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.grant-asset {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.grant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--muted);
}
.grant-scope {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.grant-error {
  font-size: 12px;
  color: var(--red);
  overflow-wrap: anywhere;
}
.grant-revoke {
  flex: none;
}
@media (max-width: 640px) {
  .grant-row {
    flex-direction: column;
    align-items: stretch;
  }
}
.route-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface-3);
  padding: 10px;
  border-radius: 4px;
}
.route-option > span {
  font-size: 11px;
  flex: 1;
  word-break: break-all;
}
.route-option > small {
  font-size: 10px;
}
.route-option.readiness-route {
  display: grid;
  align-items: start;
  gap: 8px;
  overflow-wrap: anywhere;
}
.route-option.readiness-route > span {
  font-size: 12px;
  word-break: normal;
}
.route-option.readiness-route > small {
  padding-left: 0;
}
.advanced {
  grid-column: 1/-1;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-3);
}
.advanced summary {
  font-size: 12px;
  color: var(--blue);
  padding: 12px;
  cursor: pointer;
}
.advanced > .form-grid {
  padding: 10px 14px 18px;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  width: 650px;
  max-width: 100vw;
  border-radius: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
}
.drawer-body {
  padding: 23px 25px;
}
.drawer-body > h3 {
  margin-top: 18px;
}
.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
}
.detail-section h3 {
  margin-bottom: 14px;
  font-size: 13px;
}
.detail-section pre {
  background: var(--surface-3);
  font:
    11px/1.8 ui-monospace,
    SFMono-Regular,
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 14px;
  border-radius: 4px;
  max-height: 400px;
  overflow: auto;
}
.detail-section p {
  font-size: 12px;
  color: var(--muted);
}
.operation {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.operation-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.operation p {
  font-size: 10px;
  color: var(--dim);
  margin: 6px 0;
  word-break: break-word;
}
.confirm-copy {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.danger-copy {
  color: var(--red);
}
.metric-series {
  display: grid;
  gap: 8px;
}
.metric-series > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 12px;
  color: var(--muted);
}
.metric-series strong {
  font-weight: 500;
  color: var(--text);
}
.toasts {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: grid;
  gap: 9px;
  width: max-content;
  max-width: 90vw;
}
.toast {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  padding: 13px 18px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.toast svg {
  flex-shrink: 0;
  color: var(--green);
  margin-top: 2px;
}
.toast.error svg {
  color: var(--red);
}
.loading-page {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 90px 25px;
  color: var(--muted);
  font-size: 13px;
}
.column-choices {
  display: grid;
  gap: 13px;
}
.column-choices > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.command-search > label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
}
.command-search input {
  border: 0;
  outline: none;
  font-size: 15px;
  color: var(--text);
  background: none;
  flex: 1;
  min-width: 0;
}
.command-results {
  max-height: 420px;
  overflow: auto;
  padding: 10px;
}
.command-results section {
  margin-bottom: 8px;
}
.command-results h3 {
  font-size: 10px;
  color: var(--dim);
  font-weight: 500;
  padding: 8px 11px;
}
.command-result {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  border-radius: 5px;
  color: var(--muted);
}
.command-result:hover,
.command-result:focus-visible {
  background: var(--hover);
  color: var(--blue);
}
.command-result > span {
  flex: 1;
  min-width: 0;
}
.command-result strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.command-result small {
  color: var(--dim);
  font-size: 10px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.command-search > footer {
  border-top: 1px solid var(--line);
  padding: 12px 22px;
  color: var(--dim);
  font-size: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.empty-command {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 35px;
}
.guide-steps h3 {
  margin-bottom: 8px;
}
.guide-steps p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 23px;
  max-width: 70ch;
}
.guide-steps p:last-child {
  margin: 0;
}
.login-shell {
  display: grid;
  grid-template-columns: minmax(350px, 1fr) minmax(400px, 1fr);
  min-height: 100vh;
  background: var(--bg);
}
.login-identity {
  padding: 11vh 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #151e30;
  border-right: 1px solid #2c3b51;
  color: #e7eef9;
  position: relative;
  overflow: hidden;
}
.login-identity:after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -200px;
  width: 500px;
  height: 500px;
  border: 1px solid #344d744d;
  border-radius: 50%;
  box-shadow:
    0 0 0 55px #344d7415,
    0 0 0 110px #344d7410;
  pointer-events: none;
}
.login-identity .brand {
  padding: 0;
  margin-bottom: 60px;
  color: white;
  position: relative;
  z-index: 1;
}
.brand-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #356bd9;
}
.brand-mark i {
  width: 4px;
  height: 16px;
  background: white;
  border-radius: 2px;
}
.brand-mark i:nth-child(2) {
  height: 24px;
}
.brand-mark i:nth-child(3) {
  height: 11px;
}
.brand-name {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 1px;
}
.brand-caption {
  font-size: 10px;
  color: #92aacb;
}
.login-identity h1 {
  font-size: 33px;
  line-height: 1.85;
  letter-spacing: 0.5px;
  color: #e7eef9;
  position: relative;
  z-index: 1;
}
.login-identity > p {
  font-size: 13px;
  line-height: 2;
  color: #97abc7;
  max-width: 360px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.login-flow {
  display: grid;
  gap: 17px;
  font-size: 12px;
  color: #adbeda;
  margin-top: 45px;
  position: relative;
  z-index: 1;
}
.login-flow > span {
  display: flex;
  gap: 12px;
  align-items: center;
}
.login-flow b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #506687;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 500;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.login-form {
  width: 360px;
  max-width: 100%;
}
.login-form h2 {
  font-size: 25px;
  margin-bottom: 8px;
}
.login-form > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 30px;
}
.login-form > .button {
  width: 100%;
  min-height: 40px;
  margin-top: 21px;
}
.login-form > .notice {
  margin-top: 24px;
  font-size: 11px;
}
.login-footer {
  font-size: 10px;
  color: var(--dim);
  margin-top: 20px;
  line-height: 1.9;
}
.login-error {
  margin-top: 12px;
}
.reader-note {
  font-size: 12px;
  color: var(--muted);
}
.sidebar-close,
.mobile-menu {
  display: none;
}
@media (min-width: 1700px) {
  .dashboard-columns {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .forecast-strip {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 210px;
  }
  .main-shell {
    margin-left: 210px;
  }
  .brand {
    padding: 20px 15px;
  }
  .brand-word {
    font-size: 18px;
  }
  .brand-word > span {
    font-size: 10px;
  }
  .workspace {
    padding: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-layout {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
  }
  .dashboard-columns {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
  }
  .dashboard-primary,
  .dashboard-secondary {
    gap: 18px;
  }
  .console-stat {
    padding: 17px;
  }
  .console-stat > strong {
    font-size: 25px;
  }
  .forecast-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .platform-shortcuts {
    align-items: flex-start;
  }
  .platform-shortcut-list {
    gap: 8px;
  }
  .platform-shortcut-list a {
    padding: 7px 9px;
    font-size: 11px;
  }
  .panel-header {
    padding: 16px 17px;
  }
  .quick-actions > a,
  .quick-actions > button {
    padding: 13px 16px;
  }
  .budget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1050px) {
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .dashboard-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }
  .dashboard-secondary .panel {
    align-self: start;
  }
  .quick-actions > a,
  .quick-actions > button {
    gap: 8px;
    padding: 12px;
  }
  .quick-actions small {
    font-size: 9px;
  }
  .quick-actions > a > svg:last-child,
  .quick-actions > button > svg:last-child {
    display: none;
  }
  .connection-summary {
    padding: 5px 15px 17px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .connection-summary span {
    font-size: 9px;
  }
  .supply-step {
    padding: 10px 15px;
  }
  .catalog-layout {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
  }
  .catalog-grid {
    gap: 12px;
  }
  .catalog-card {
    padding: 14px 13px 0;
  }
  .platform-shortcuts {
    display: block;
  }
  .platform-shortcut-list {
    margin-top: 16px;
    justify-content: flex-start;
  }
  .detail-columns {
    grid-template-columns: 1fr;
  }
  .route-detail-grid {
    grid-template-columns: 1fr;
  }
  .run-facts .console-stat {
    min-width: 145px;
    flex: unset;
    width: 33.33%;
  }
  .entity-heading .heading-actions {
    max-width: 240px;
  }
  .catalog-title h3 {
    font-size: 13px;
  }
  .catalog-title .platform-icon {
    width: 32px;
    height: 32px;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
    width: 232px;
  }
  .sidebar.open {
    display: flex;
    box-shadow: 20px 0 70px #0008;
  }
  .sidebar-close {
    display: inline-flex;
    position: absolute;
    right: 5px;
    top: 7px;
    z-index: 1;
    width: 22px;
    height: 22px;
  }
  .sidebar-close svg {
    width: 15px;
  }
  .main-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .workspace {
    padding: 21px 16px 35px;
  }
  .topbar {
    height: 52px;
    padding: 0 14px;
  }
  .breadcrumbs {
    font-size: 10px;
    gap: 6px;
  }
  .breadcrumbs > a:first-of-type {
    display: none;
  }
  .breadcrumbs > a:first-of-type + svg {
    display: none;
  }
  .topbar-right {
    gap: 7px;
  }
  .topbar-avatar {
    display: none;
  }
  .connection {
    font-size: 9px;
  }
  .connection .status-dot {
    width: 5px;
    height: 5px;
  }
  .page-heading {
    display: block;
    margin-bottom: 21px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 11px;
    line-height: 1.9;
  }
  .heading-actions {
    justify-content: flex-start;
    margin-top: 14px;
    gap: 8px;
  }
  .button {
    font-size: 11px;
    min-height: 33px;
    padding: 6px 11px;
  }
  .console-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
  }
  .console-stat {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  .console-stat:nth-child(2) {
    border-right: 0;
  }
  .console-stat:nth-child(n + 3) {
    border-bottom: 0;
  }
  .console-stat > span {
    font-size: 11px;
  }
  .console-stat > strong {
    font-size: 25px;
  }
  .console-stat > small {
    font-size: 10px;
  }
  .console-stats.compact .console-stat {
    padding: 13px 15px;
  }
  .console-stats.compact .console-stat > strong {
    font-size: 19px;
    overflow-wrap: anywhere;
  }
  .dashboard-primary,
  .dashboard-secondary {
    gap: 17px;
  }
  .dashboard-secondary {
    grid-template-columns: 1fr;
  }
  .quick-actions > a,
  .quick-actions > button {
    padding: 14px 18px;
    gap: 12px;
  }
  .quick-actions small {
    font-size: 10px;
  }
  .quick-actions > a > svg:last-child,
  .quick-actions > button > svg:last-child {
    display: block;
  }
  .connection-summary {
    padding: 4px 20px 18px;
  }
  .connection-summary span {
    font-size: 11px;
  }
  .connection-summary b {
    font-size: 23px;
  }
  .panel-header {
    padding: 16px;
  }
  .panel-header h2 {
    font-size: 14px;
  }
  .panel-header p {
    font-size: 10px;
  }
  .panel-body {
    padding: 5px 16px 19px;
  }
  .chart-key {
    font-size: 9px;
    white-space: nowrap;
  }
  .chart-labels {
    font-size: 9px;
  }
  .platform-shortcuts h2 {
    font-size: 14px;
  }
  .platform-shortcut-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .platform-shortcut-list a {
    font-size: 12px;
    padding: 9px 12px;
  }
  .catalog-search-row {
    flex-wrap: wrap;
    margin: 22px 0;
  }
  .catalog-search-row .search-box {
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }
  .catalog-search-row select {
    width: 100%;
    max-width: none;
  }
  .catalog-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .catalog-categories {
    display: flex;
    gap: 7px;
    overflow: auto;
    padding-bottom: 5px;
  }
  .catalog-categories > h2,
  .category-note {
    display: none;
  }
  .catalog-categories > button {
    width: auto;
    flex-shrink: 0;
    gap: 10px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    font-size: 11px;
  }
  .catalog-categories > button.active {
    border-color: var(--blue);
  }
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .catalog-card {
    padding: 17px 18px 0;
    min-height: 180px;
  }
  .catalog-title h3 {
    font-size: 15px;
  }
  .catalog-title .platform-icon {
    width: 38px;
    height: 38px;
  }
  .catalog-card > p {
    min-height: auto;
    margin: 15px 0 12px;
  }
  .catalog-card footer {
    margin-top: 18px;
  }
  .catalog-toolbar .inline-tabs {
    gap: 20px;
  }
  .catalog-toolbar .list-summary {
    font-size: 10px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar-group {
    width: 100%;
    gap: 8px;
  }
  .toolbar .search-box {
    min-width: 0;
    flex: 1 1 100%;
  }
  .toolbar .search-box.small {
    flex: 1 1 100%;
  }
  .toolbar select {
    flex: 1;
    max-width: 100%;
  }
  .status-tabs {
    gap: 18px;
    margin-bottom: 18px;
  }
  .status-tabs button {
    font-size: 11px;
  }
  .list-footer {
    padding: 12px;
    font-size: 10px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .list-footer .row-actions {
    gap: 5px;
  }
  .list-footer .button {
    font-size: 10px;
    padding: 5px 8px;
  }
  .entity-heading {
    gap: 13px;
    flex-wrap: wrap;
  }
  .entity-heading > .platform-icon {
    width: 48px;
    height: 48px;
  }
  .entity-heading > div:nth-child(2) {
    min-width: 230px;
  }
  .entity-heading h1 {
    font-size: 22px;
  }
  .entity-heading .heading-actions {
    margin-top: 2px;
    max-width: none;
    width: 100%;
  }
  .page-tabs {
    gap: 23px;
    margin-bottom: 19px;
  }
  .page-tabs a {
    font-size: 12px;
  }
  .detail-back {
    margin-top: -3px;
    margin-bottom: 13px;
  }
  .detail-grid {
    gap: 20px 15px;
  }
  .detail-grid dd {
    font-size: 12px;
  }
  .detail-columns {
    gap: 17px;
  }
  .prose-panel {
    padding: 4px 17px 18px;
  }
  .run-banner {
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px;
    font-size: 11px;
  }
  .run-banner > span:nth-child(2) {
    min-width: 180px;
  }
  .run-banner > a {
    width: 100%;
    margin-top: 4px;
  }
  .run-facts .console-stat {
    width: 50%;
    min-width: 0;
    padding: 8px 12px 8px 0;
  }
  .run-facts .console-stat strong {
    font-size: 12px;
  }
  .event-log-row {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 5px 12px;
    padding: 13px;
  }
  .event-log-row > div {
    grid-column: 1/-1;
  }
  .event-log-row time {
    font-size: 9px;
  }
  .event-kind {
    font-size: 10px;
  }
  .json-view {
    font-size: 11px;
    padding: 16px;
  }
  .forecast-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 9px 12px;
  }
  .forecast-strip > a:nth-child(n + 7) {
    display: none;
  }
  .forecast-strip time {
    font-size: 17px;
  }
  .data-view-toolbar {
    gap: 6px;
  }
  .data-view-toolbar .list-summary {
    display: none;
  }
  .segmented button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .data-view-toolbar .button {
    font-size: 10px;
  }
  .storage-layers {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .budget-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .budget-card {
    padding: 19px;
  }
  .metrics-strip {
    gap: 12px;
  }
  .metric {
    padding: 16px;
  }
  .metric-top {
    font-size: 11px;
  }
  .metric-value {
    font-size: 25px;
  }
  .metric-footer {
    font-size: 10px;
  }
  .notice {
    font-size: 11px;
    padding: 12px;
    gap: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-body {
    padding: 20px;
  }
  .dialog-header {
    padding: 20px;
  }
  .dialog-header h2 {
    font-size: 17px;
  }
  .form-footer {
    padding: 15px 20px;
  }
  .drawer-body {
    padding: 20px;
  }
  .route-option {
    flex-wrap: wrap;
  }
  .route-option small {
    flex-basis: 100%;
    padding-left: 22px;
    font-size: 10px;
  }
  .command-search > label {
    padding: 17px;
  }
  .command-search input {
    font-size: 13px;
  }
  .command-search > footer {
    gap: 5px;
    padding: 12px 15px;
    font-size: 9px;
  }
  .content-item {
    padding: 20px 16px;
  }
  .content-item h3 {
    font-size: 15px;
  }
  .content-preview {
    font-size: 12px;
  }
  .content-item-footer {
    font-size: 10px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-identity {
    padding: 27px;
    border-right: 0;
    border-bottom: 1px solid #2c3b51;
  }
  .login-identity .brand {
    margin: 0;
  }
  .login-identity h1,
  .login-identity > p,
  .login-flow,
  .login-identity:after {
    display: none;
  }
  .login-panel {
    padding: 43px 26px;
    align-items: flex-start;
  }
  .login-form {
    width: 100%;
  }
  .login-form h2 {
    font-size: 25px;
  }
  .skip-link {
    left: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
