:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, .82);
  --panel-solid: #ffffff;
  --panel-soft: rgba(250, 250, 252, .78);
  --line: rgba(60, 60, 67, .18);
  --line-soft: rgba(60, 60, 67, .10);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --primary: #007aff;
  --primary-dark: #0068d9;
  --danger: #b42318;
  --ok-bg: rgba(52, 199, 89, .14);
  --ok: #248a3d;
  --run-bg: rgba(0, 122, 255, .13);
  --run: #006edb;
  --fail-bg: rgba(255, 59, 48, .13);
  --fail: #d70015;
  --queue-bg: rgba(255, 149, 0, .16);
  --queue: #a05a00;
  --shadow: 0 14px 34px rgba(0, 0, 0, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 122, 255, .08), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(52, 199, 89, .06), transparent 26%),
    var(--bg);
  color: var(--text);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset;
}

button:hover {
  background: var(--primary-dark);
}

button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

button.secondary {
  background: rgba(60, 60, 67, .86);
}

button.ghost {
  background: rgba(255, 255, 255, .62);
  color: var(--text);
  border: 1px solid var(--line);
}

.button-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}

.button-link.ghost {
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--line);
}

input,
select,
textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  color: var(--text);
  padding: 7px 9px;
}

textarea {
  resize: vertical;
}

label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(360px, 100%);
  display: grid;
  gap: 8px;
  padding: 24px;
  background: var(--panel);
  backdrop-filter: blur(22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.login-panel h1,
section h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

.login-panel h1 {
  font-size: 22px;
}

.login-mode-toggle {
  min-height: 30px;
  padding: 0;
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  font-size: 13px;
}

.login-mode-toggle:hover {
  background: transparent;
  color: var(--primary-dark);
}

.error {
  margin: 0;
  min-height: 20px;
  color: var(--danger);
  font-size: 12px;
}

.app {
  min-height: 100vh;
  padding-left: 0;
}

.nav-rail {
  position: fixed;
  z-index: 10;
  left: 0;
  top: 50%;
  width: 88px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  backdrop-filter: blur(20px) saturate(180%);
  overflow: hidden;
  transform: translate(-80px, -50%);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.nav-rail:hover,
.nav-rail:focus-within {
  transform: translate(0, -50%);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .15);
}

.nav-btn {
  width: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 8px;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  text-align: left;
  box-shadow: none;
}

.nav-btn:hover,
.nav-btn.active {
  background: rgba(0, 122, 255, .12);
  color: var(--primary);
}

.nav-label {
  white-space: nowrap;
}

.app-main {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.view-panel {
  min-height: calc(100vh - 122px);
}

.monitor-view {
  display: grid;
  gap: 12px;
}

.top-modules {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
  backdrop-filter: blur(18px);
}

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

.identity-module {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  justify-self: start;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.identity-module p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-identity-module {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  justify-content: flex-start;
}

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

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.metric-card {
  min-height: 54px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .48);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
  backdrop-filter: none;
}

.metric-total {
  background: rgba(0, 122, 255, .10);
  border-color: rgba(0, 122, 255, .22);
}

.metric-total strong {
  color: #006edb;
}

.metric-active {
  background: rgba(255, 149, 0, .14);
  border-color: rgba(255, 149, 0, .28);
}

.metric-active strong {
  color: #a05a00;
}

.metric-finished {
  background: rgba(52, 199, 89, .14);
  border-color: rgba(52, 199, 89, .28);
}

.metric-finished strong {
  color: #248a3d;
}

.metric-failed {
  background: rgba(255, 59, 48, .13);
  border-color: rgba(255, 59, 48, .28);
}

.metric-failed strong {
  color: #d70015;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1;
}

.monitor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
  backdrop-filter: blur(18px);
}

.section-head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
}

.section-head h2 {
  font-size: 14px;
}

.section-head span {
  color: var(--muted);
  font-size: 12px;
}

.asset-section-head {
  min-height: 42px;
}

.asset-section-head .table-tools {
  flex-wrap: nowrap;
  min-width: 0;
}

.asset-title-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.asset-inline-metrics {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.asset-inline-metrics::-webkit-scrollbar {
  display: none;
}

.asset-inline-metrics .metric-card {
  min-height: 26px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: none;
}

.asset-inline-metrics .metric-card span {
  font-size: 10px;
  white-space: nowrap;
}

.asset-inline-metrics .metric-card strong {
  margin-top: 0;
  font-size: 13px;
  line-height: 1;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-module {
  display: grid;
  grid-template-columns: minmax(145px, 1.1fr) minmax(168px, 1.35fr) repeat(4, minmax(0, 1fr)) minmax(96px, auto) auto;
  gap: 8px;
  align-items: end;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.filter-module.asset-filter-module {
  overflow: visible;
}

.filter-module label,
.filter-module .filter-field {
  display: grid;
  gap: 4px;
  margin: 0;
  min-width: 0;
}

.filter-module label span,
.filter-module .filter-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.filter-module input,
.filter-module select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 5px 8px;
}

.filter-module .source-filter {
  min-width: 96px;
}

.filter-module .radio-filter {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.filter-module .radio-filter input {
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 0;
  accent-color: var(--primary);
}

.filter-module .radio-filter > span {
  color: var(--text);
  font-size: 12px;
}

.filter-module .date-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 168px;
  min-height: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.filter-module .date-select-wrap > span {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 9px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, .025);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.filter-module .date-select-wrap input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.filter-module .date-select-wrap input[type="text"]:focus {
  outline: none;
}

.filter-module .date-select-wrap:focus-within {
  border-color: rgba(0, 122, 255, .42);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, .10);
}

.flatpickr-calendar {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  border-color: var(--primary);
  background: var(--primary);
}

.flatpickr-day.today {
  border-color: #ff9500;
}

.date-range-filter {
  position: relative;
  z-index: 150;
}

.date-range-picker {
  position: relative;
  z-index: 150;
}

.date-range-picker.open {
  z-index: 230;
}

.date-range-trigger {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, .78);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

.date-range-trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}

.date-range-picker.open .date-range-trigger::after {
  transform: rotate(225deg) translateY(-1px);
}

.date-range-menu {
  position: absolute;
  z-index: 230;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  width: 268px;
  max-width: calc(100vw - 32px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .14);
  backdrop-filter: blur(18px);
}

.date-range-picker.open .date-range-menu {
  display: grid;
}

.date-range-menu label {
  min-width: 0;
}

.date-range-menu input {
  width: 100%;
}

.assets-top {
  position: relative;
  z-index: 120;
  overflow: visible;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

#assetsView.monitor-view {
  align-content: start;
  grid-auto-rows: max-content;
}

#assetsView .assets-top,
#assetsView .job-board {
  align-self: start;
}

.assets-view .job-board,
#assetsView .job-board {
  position: relative;
  z-index: 1;
}

.asset-filter-module {
  position: relative;
  z-index: 130;
  grid-template-columns: minmax(110px, .9fr) minmax(140px, 1.2fr) minmax(140px, 1.2fr) minmax(115px, 1fr) minmax(175px, 1.3fr) repeat(4, minmax(90px, 1fr)) auto;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, .38);
}

.asset-filter-module > label,
.asset-filter-module > .filter-field {
  display: block;
}

.asset-filter-module > label:not(.date-select-wrap) > span,
.asset-filter-module > .filter-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.asset-filter-module .date-select-wrap {
  min-width: 0;
}

.asset-filter-module input,
.asset-filter-module select,
.asset-filter-module .check-dropdown-trigger,
.asset-filter-module button.compact {
  min-height: 30px;
  height: 30px;
  font-size: 12px;
}

.asset-filter-module .check-dropdown-trigger {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.people-filter {
  position: relative;
  z-index: 140;
}

.check-dropdown {
  position: relative;
  z-index: 140;
}

.check-dropdown.open {
  z-index: 220;
}

.check-dropdown-trigger {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: rgba(255, 255, 255, .78);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  font-weight: 650;
  text-align: left;
}

.check-dropdown-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}

.check-dropdown.open .check-dropdown-trigger::after {
  transform: rotate(225deg) translateY(-1px);
}

.check-dropdown-menu {
  position: absolute;
  z-index: 220;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  min-width: 190px;
  max-width: min(320px, calc(100vw - 24px));
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .14);
  backdrop-filter: blur(18px);
}

.check-dropdown.open .check-dropdown-menu {
  display: grid;
  gap: 2px;
}

.check-option {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  min-height: 32px;
  padding: 5px 7px;
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
}

.check-option:hover {
  background: rgba(0, 122, 255, .09);
}

.check-option input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--primary);
}

.check-option span,
.check-empty {
  font-size: 12px;
}

.check-empty {
  padding: 8px;
  color: var(--muted);
}

button.compact {
  min-height: 32px;
  padding: 0 12px;
}

.table-wrap {
  max-height: calc(100vh - 308px);
  overflow: auto;
}

.config-view {
  display: grid;
  gap: 12px;
}

.config-panel {
  min-height: calc(100vh - 32px);
}

.config-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.config-tabs {
  display: flex;
  gap: 6px;
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
}

.config-tab {
  min-height: 32px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  box-shadow: none;
}

.config-tab:hover,
.config-tab.active {
  background: rgba(0, 122, 255, .10);
  color: var(--primary-dark);
  border-color: rgba(0, 122, 255, .18);
}

.mapping-config {
  display: grid;
  gap: 12px;
  padding: 8px;
}

.admin-config {
  display: grid;
  gap: 12px;
  padding: 8px;
}

.admin-form {
  display: grid;
  grid-template-columns: minmax(180px, 280px) auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.admin-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.config-action {
  width: 48px;
  min-width: 48px;
  min-height: 32px;
  padding: 0;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  box-shadow: none;
}

.config-action:hover {
  background: #3a3a3c;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 7px 10px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
}

.admin-row strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.admin-remove {
  min-height: 30px;
  padding: 0 10px;
}

.mapping-form {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(140px, 200px) auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

#chatForm {
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.2fr) 96px;
}

#chatForm .config-action {
  width: 96px;
  min-width: 96px;
  padding: 0 12px;
}

#mappingForm {
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) minmax(200px, 1fr) 72px;
}

#mappingForm .config-action {
  width: 72px;
  min-width: 72px;
  padding: 0 10px;
}

.pricing-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
}

.pricing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.pricing-search-label {
  display: grid;
  gap: 5px;
  width: min(100%, 360px);
  color: var(--muted);
  font-size: 12px;
}

.pricing-search-label input,
.pricing-value input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-solid);
  color: var(--text);
}

.pricing-search-label input { width: 100%; padding: 0 10px; }
.pricing-toolbar .config-action { width: auto; min-width: 112px; padding: 0 14px; }
.pricing-workspace { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 14px; align-items: start; }
.pricing-model-list { display: grid; max-height: calc(100vh - 250px); overflow: auto; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--panel-solid); }
.pricing-model-choice { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; min-height: 60px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.pricing-model-choice:last-child { border-bottom: 0; }
.pricing-model-choice:hover { background: var(--panel-soft); }
.pricing-model-choice.active { background: color-mix(in srgb, var(--primary) 9%, var(--panel-solid)); box-shadow: inset 3px 0 var(--primary); }
.pricing-model-choice-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.pricing-model-choice-copy strong { min-width: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 620; }
.pricing-model-choice-copy small { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.pricing-model-choice-summary { color: var(--muted); font-size: 11px; }
.pricing-editor { min-width: 0; min-height: 250px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--panel-solid); }
.pricing-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line-soft); }
.pricing-eyebrow { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.pricing-editor-header h3 { margin: 3px 0 2px; font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.pricing-editor-header p { margin: 0; color: var(--muted); font-size: 12px; }
.pricing-formula-tag { flex: 0 0 auto; padding: 5px 8px; border-radius: 4px; background: var(--panel-soft); color: var(--muted); font-size: 11px; }
.pricing-rule-card { padding: 18px 20px; }
.pricing-rule-fields { display: grid; gap: 8px; min-width: 0; }
.pricing-equation { display: grid; gap: 6px; min-width: 0; }
.pricing-equation > strong { color: var(--muted); font-size: 11px; font-weight: 550; }
.pricing-rate-list,
.pricing-rate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pricing-value { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; color: var(--muted); white-space: nowrap; font-size: 11px; }
.pricing-value input { width: 104px; padding: 0 8px; }
.pricing-extra > summary { color: var(--primary); cursor: pointer; font-size: 11px; }
.pricing-extra .pricing-rate-list { padding: 6px 0; }
.pricing-value input { text-align: right; }
.pricing-functions { margin: 0 20px 18px; border-top: 1px solid var(--line-soft); }
.pricing-functions > summary { display: flex; align-items: center; justify-content: space-between; min-height: 38px; color: var(--text); cursor: pointer; font-size: 12px; }
.pricing-functions > summary span { color: var(--muted); font-size: 11px; }
.pricing-function-list { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; }
.pricing-function-list span { padding: 4px 7px; border: 1px solid var(--line-soft); border-radius: 4px; color: var(--muted); font-size: 11px; }
.pricing-empty { padding: 24px; color: var(--muted); text-align: center; }

.mapping-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.mapping-form input {
  min-height: 36px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-solid);
  color: var(--text);
}

.mapping-form select {
  min-height: 36px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-solid);
  color: var(--text);
}

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

.password-form .config-action {
  width: auto;
  min-width: 68px;
  padding: 0 14px;
}

.mapping-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 8px;
}

.member-points-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  min-height: 20px;
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.member-points-summary strong {
  margin-left: 3px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.member-points-available strong { color: var(--ok); }
.member-points-used strong { color: var(--primary); }
.member-points-unavailable { color: var(--muted); }

.mapping-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(90px, .55fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 7px 10px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
}

.mapping-row strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.mapping-row span {
  color: var(--muted);
}

.mapping-row i {
  color: var(--muted);
  font-style: normal;
}

.mapping-remove {
  min-height: 30px;
  padding: 0 10px;
}

.organization-select-label { display: grid; gap: 5px; max-width: 340px; color: var(--muted); font-size: 12px; }
#organizationList { grid-template-columns: minmax(0, 1fr); }
.organization-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line-soft); background: var(--panel); }
.org-title-stack { display: grid; gap: 3px; min-width: 0; }
.org-used-points { color: var(--muted); font-size: 11px; }
.org-points-form { display: grid; grid-template-columns: minmax(160px, 240px) auto minmax(120px, 1fr); align-items: end; gap: 8px; }
.org-points-form label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.org-points-form input { min-height: 34px; width: 100%; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-solid); color: var(--text); }
.org-points-form .config-action { width: auto; min-width: 92px; padding: 0 10px; }
.org-points-status { color: var(--muted); font-size: 11px; }
.org-chat-list { display: grid; gap: 5px; }
.org-chat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 4px 8px; border: 1px solid var(--line-soft); }
.org-chat-row a { min-width: 0; color: var(--primary); overflow-wrap: anywhere; }
.organization-config-heading { align-items: center; margin: 0; }
.organization-toolbar-action { width: auto; min-width: 104px; padding: 0 12px; }
.organization-card .organization-row { align-items: start; }
.organization-card .row-actions { flex-wrap: wrap; }
.organization-card .org-name-link { display: inline-flex; align-items: center; gap: 4px; width: fit-content; color: var(--primary-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.organization-card .org-name-link:hover { color: var(--primary); }
.organization-card .org-name-link span { font-size: 11px; text-decoration: none; }
.org-chat-row .row-actions { flex: 0 0 auto; }
.organization-chat-dialog { width: min(460px, calc(100% - 32px)); max-width: none; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-solid); color: var(--text); box-shadow: 0 18px 60px rgba(0, 0, 0, .28); }
.organization-edit-dialog { width: min(520px, calc(100% - 32px)); }
.organization-chat-dialog::backdrop { background: rgba(0, 0, 0, .42); backdrop-filter: blur(3px); }
.organization-chat-dialog-form { display: grid; gap: 14px; padding: 18px; }
.organization-chat-dialog-form .config-section-heading { margin: 0; }
.organization-chat-dialog-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.organization-chat-dialog-form input,
.organization-chat-dialog-form select { min-height: 38px; width: 100%; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); }
.organization-chat-dialog-form .modal-actions { justify-content: flex-end; }
.mapping-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.org-name-link { color: inherit; text-decoration: none; }
.org-name-link:hover { color: var(--primary); text-decoration: underline; }
.row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.row-actions select { min-height: 30px; width: auto; min-width: 100px; }
.organization-row, .member-row { grid-template-columns: minmax(0, 1fr) auto; }
.danger-action { color: var(--danger) !important; }
.admin-config-link { width: auto; padding: 0 12px; }

.config-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .admin-form,
  .mapping-form,
  .mapping-row {
    grid-template-columns: 1fr;
  }
  .pricing-toolbar { align-items: stretch; flex-direction: column; }
  .pricing-search-label { width: 100%; }
  .pricing-actions { align-self: flex-start; }
  .pricing-workspace { grid-template-columns: minmax(0, 1fr); }
  .pricing-model-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 230px; }
  .pricing-model-choice { border-right: 1px solid var(--line-soft); }
  .pricing-editor-header { padding: 14px; }
  .pricing-rule-card { padding: 14px; }
  .pricing-functions { margin-right: 14px; margin-left: 14px; }
  .pricing-value { justify-content: flex-start; }
  .organization-config-heading { align-items: center; }
  .organization-card .organization-row { grid-template-columns: minmax(0, 1fr); }
  .organization-card .row-actions { justify-content: flex-start; }
  .org-chat-row { align-items: flex-start; flex-direction: column; }
  .org-points-form { grid-template-columns: minmax(0, 1fr) auto; }
  .org-points-status { grid-column: 1 / -1; }

  .admin-remove,
  .mapping-remove,
  .admin-remove {
    grid-row: auto;
    grid-column: auto;
  }
}

.preference-gallery {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  align-content: start;
  max-height: calc(100vh - 94px);
  overflow: auto;
  padding: 8px;
}

.model-supplier-card {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 10px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.model-supplier-card.is-configurable {
  border-color: rgba(0, 122, 255, .22);
}

.model-supplier-card.is-saving {
  border-color: var(--queue);
  box-shadow: 0 10px 24px rgba(255, 149, 0, .10);
}

.model-supplier-card.has-error {
  border-color: var(--fail);
  background: rgba(255, 59, 48, .06);
}

.model-supplier-main {
  display: grid;
  gap: 8px;
}

.model-supplier-title {
  display: flex;
  align-items: center;
  min-height: 24px;
}

.model-supplier-title strong {
  font-size: 15px;
  line-height: 1.2;
}

.supplier-segments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 5px;
}

.supplier-segment {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, .78);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.supplier-segment.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.supplier-segment:disabled {
  opacity: .72;
  cursor: default;
}

.preference-model-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, .48);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: none;
  backdrop-filter: none;
}

.preference-model-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preference-model-head strong {
  font-size: 14px;
}

.preference-model-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.preference-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 7px;
}

.preference-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line-soft);
  border-left: 3px solid rgba(52, 199, 89, .72);
  border-radius: 8px;
}

.preference-card.needs-config,
.preference-card.has-error {
  border-left-color: var(--fail);
  background: rgba(255, 59, 48, .06);
}

.preference-card.is-saving {
  border-left-color: var(--queue);
}

.preference-card-main {
  min-width: 0;
}

.preference-card-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preference-card-main strong {
  font-size: 13px;
  line-height: 1.2;
}

.preference-card select {
  min-height: 31px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 700;
}

.jobs-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  padding: 12px;
}

.gallery-card {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 10px;
  min-height: 260px;
  padding: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .68);
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: none;
  text-align: left;
}

.gallery-card:hover {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(0, 122, 255, .32);
  box-shadow: 0 12px 24px rgba(0, 122, 255, .10);
}

.gallery-card.feishu-glass {
  position: relative;
  border-color: rgba(93, 170, 255, .52);
  background: rgba(255, 255, 255, .42);
  box-shadow:
    0 8px 24px rgba(31, 111, 235, .10),
    0 1px 0 rgba(255, 255, 255, .82) inset,
    0 0 0 1px rgba(255, 255, 255, .32) inset;
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
}

.gallery-card.feishu-glass:hover {
  border-color: rgba(0, 122, 255, .68);
  background: rgba(255, 255, 255, .58);
  box-shadow:
    0 14px 30px rgba(0, 122, 255, .15),
    0 1px 0 rgba(255, 255, 255, .92) inset,
    0 0 0 1px rgba(255, 255, 255, .42) inset;
}

.gallery-consumption-corner {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 12px;
  color: #16824b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(255, 255, 255, .9);
  pointer-events: none;
}

.gallery-consumption-corner.unbilled { color: #c0392b; }
.gallery-consumption-corner.pending { color: #737b84; }

.gallery-preview {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
}

.preview-group {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
  overflow: hidden;
}

.preview-group > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.preview-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.preview-images img,
.preview-images video,
.video-preview-placeholder,
.audio-preview-placeholder,
.empty-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: rgba(118, 118, 128, .12);
  object-fit: cover;
}

.video-preview-placeholder,
.audio-preview-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.video-preview-placeholder.large,
.audio-preview-placeholder.large {
  border-radius: 0;
  font-size: 13px;
}

.empty-preview {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  place-items: center;
  min-height: 82px;
  overflow: hidden;
  color: var(--muted);
}

.gallery-meta {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 5px;
  align-content: start;
  overflow: hidden;
}

.gallery-title {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gallery-title strong,
.gallery-line,
.gallery-time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-line,
.gallery-time {
  color: var(--muted);
  font-size: 12px;
}

.gallery-empty {
  grid-column: 1 / -1;
}

.page-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  white-space: nowrap;
}

.page-count {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.page-input {
  width: 58px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.page-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.page-size-select {
  height: 30px;
  min-width: 88px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
}

.page-nav {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.tool-divider {
  width: 1px;
  height: 20px;
  flex: 0 0 1px;
  background: var(--line);
}

.job-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.job-table th,
.job-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.job-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 248, 250, .92);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.job-table th:nth-child(1) {
  width: 25%;
}

.job-table th:nth-child(2) {
  width: 96px;
}

.job-table th:nth-child(5) {
  width: 160px;
}

.job-table tr {
  cursor: pointer;
}

.job-table tbody tr:hover,
.job-table tbody tr.active {
  background: rgba(0, 122, 255, .08);
}

.empty-row {
  padding: 28px !important;
  color: var(--muted);
  text-align: center !important;
}

.job-main {
  display: grid;
  gap: 2px;
}

.job-main strong,
.cell-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-main span {
  color: var(--muted);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.pill.finished {
  background: var(--ok-bg);
  color: var(--ok);
}

.pill.running,
.pill.processing,
.pill.pending {
  background: var(--run-bg);
  color: var(--run);
}

.pill.failed {
  background: var(--fail-bg);
  color: var(--fail);
}

.pill.queued {
  background: var(--queue-bg);
  color: var(--queue);
}

.detail-section {
  min-height: calc(100vh - 174px);
}

.modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .22);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.empty {
  padding: 28px;
  color: var(--muted);
}

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

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

.summary-grid div {
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel-soft);
}

.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.asset-columns,
.info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.subhead {
  min-height: 24px;
  display: flex;
  align-items: center;
}

h3 {
  font-size: 13px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  margin-top: 8px;
  max-height: 360px;
  overflow: auto;
}

.asset {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-soft);
}

.asset img,
.asset video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #eef2f6;
}

.asset-preview-btn {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.asset-preview-btn:hover {
  background: transparent;
}

.asset a {
  display: block;
  padding: 8px;
  color: var(--primary);
  font-size: 12px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.image-viewer {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(14px);
}

.image-viewer-panel {
  position: relative;
  z-index: 1;
  width: calc(100vw - 48px);
  height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: rgba(28, 28, 30, .96);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .34);
}

.image-viewer-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
}

.image-viewer-head strong,
.image-viewer-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-viewer-head span {
  margin-top: 2px;
  color: rgba(235, 235, 245, .68);
  font-size: 12px;
}

.image-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.image-viewer-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.image-viewer-stage.is-dragging {
  cursor: grabbing;
}

.image-viewer-stage.is-video,
.image-viewer-stage.is-audio {
  cursor: default;
  touch-action: auto;
}

.image-viewer-stage video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, .04);
  pointer-events: auto;
  user-select: none;
}

.image-viewer-stage audio {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 48px));
  max-width: calc(100% - 48px);
  min-width: 280px;
  height: 54px;
  border-radius: 8px;
  pointer-events: auto;
}

.image-viewer-stage img {
  position: absolute;
  z-index: 1;
  max-width: none;
  max-height: none;
  object-fit: initial;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  cursor: grab;
  will-change: transform;
}

.image-viewer-stage.is-dragging img {
  cursor: grabbing;
}

.viewer-control-group {
  height: 34px;
  display: inline-grid;
  grid-template-columns: 32px 32px 50px 32px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: rgba(255, 255, 255, .09);
}

.image-viewer-actions .viewer-control {
  appearance: none;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, .92);
  line-height: 0;
  box-shadow: none;
}

.viewer-control-group .viewer-control + .viewer-control,
.viewer-control-group .image-viewer-zoom-label + .viewer-control {
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.image-viewer-actions .viewer-control:hover {
  background: rgba(255, 255, 255, .14);
}

.image-viewer-actions .viewer-control:disabled {
  opacity: .38;
}

.image-viewer-actions .viewer-close {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  margin-left: 2px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: rgba(255, 255, 255, .09);
}

.viewer-icon {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.image-viewer-actions .image-viewer-zoom-label {
  width: 50px;
  min-width: 50px;
  height: 32px;
  display: grid;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border-left: 1px solid rgba(255, 255, 255, .14);
  color: rgba(235, 235, 245, .78);
  font-size: 12px;
  line-height: 1;
  text-align: center;
}

.image-nav {
  appearance: none;
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(28, 28, 30, .64);
  color: #fff;
  transform: translateY(-50%);
  box-shadow: none;
}

.image-nav .viewer-icon {
  width: 22px;
  height: 22px;
}

.image-nav:hover {
  background: rgba(255, 255, 255, .18);
}

.image-nav:disabled {
  opacity: .35;
  cursor: default;
}

.image-nav.prev {
  left: 12px;
}

.image-nav.next {
  right: 12px;
}

pre {
  margin: 8px 0 0;
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #1c1c1e;
  color: #f2f2f7;
  white-space: pre-wrap;
}

@media (max-width: 1600px) {
  .top-modules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .top-modules,
  .monitor-grid,
  .asset-columns,
  .info-columns,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap,
  .asset-grid {
    max-height: none;
  }

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

  .asset-filter-module {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .image-viewer {
    padding: 0;
  }

  .image-viewer-panel {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .image-viewer-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .image-viewer-head > div:first-child {
    min-width: 0;
    flex: 1 1 140px;
  }

  .image-viewer-actions {
    gap: 4px;
  }

  .app {
    padding-left: 0;
  }

  .nav-rail {
    inset: auto 0 0 0;
    left: 0;
    top: auto;
    width: 100%;
    height: 52px;
    flex-direction: row;
    padding: 6px;
    transform: none;
    border-radius: 0;
  }

  .nav-rail:hover,
  .nav-rail:focus-within {
    width: 100%;
  }

  .nav-btn {
    width: auto;
    flex: 1;
    justify-content: center;
  }

  .app-main {
    padding: 12px 12px 64px;
  }

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

  .asset-section-head {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 7px 10px;
  }

  .asset-title-summary {
    width: 100%;
  }

  .asset-section-head .table-tools {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .asset-section-head .table-tools::-webkit-scrollbar {
    display: none;
  }

  .asset-identity-module {
    align-items: center;
  }

  .asset-account-actions {
    justify-content: space-between;
  }

  .filter-module {
    grid-template-columns: 1fr;
  }

  .asset-filter-module {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* Original creative workspace login language, adapted for the local AIGC CLI. */
.login-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px clamp(24px, 5vw, 72px) 20px;
  background:
    radial-gradient(ellipse 42% 62% at 55% 42%, rgba(163, 77, 70, .72), transparent 66%),
    radial-gradient(ellipse 70% 90% at 8% 100%, rgba(42, 35, 27, .9), transparent 62%),
    #141412;
  color: #f6f1e8;
}

.login-shell::before {
  content: "";
  position: absolute;
  width: min(70vw, 820px);
  height: min(70vw, 820px);
  left: 30%;
  top: 18%;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(180, 87, 76, .55), rgba(39, 31, 28, .05) 68%);
  filter: blur(.2px);
  opacity: .75;
  pointer-events: none;
}

.login-topbar,
.login-footer,
.login-layout { position: relative; z-index: 1; }

.login-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-logo {
  color: #f4efe6;
  font: 20px/1 Georgia, "Times New Roman", serif;
  letter-spacing: .08em;
}

.login-logo span { margin: 0 8px; color: rgba(246, 241, 232, .42); }

.login-theme-toggle {
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(246, 241, 232, .3);
  border-radius: 50%;
  background: rgba(20, 20, 18, .2);
  color: #f6f1e8;
  box-shadow: none;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 520px);
  align-items: center;
  gap: clamp(28px, 8vw, 140px);
  width: min(1180px, 100%);
  flex: 1;
  margin: 0 auto;
}

.login-hero { align-self: center; max-width: 620px; background: transparent; border: 0; border-radius: 0; overflow: visible; box-shadow: none; backdrop-filter: none; }
.login-hero p,
.login-card-kicker {
  margin: 0 0 22px;
  color: rgba(246, 241, 232, .66);
  font-size: 11px;
  letter-spacing: .2em;
}

.login-hero p::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin: 0 12px 3px 0;
  background: rgba(246, 241, 232, .68);
}

.login-hero h1 {
  margin: 0;
  color: #f7f1e9;
  font: clamp(48px, 7vw, 88px)/.98 Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
}

.login-hero h1 em { font-style: italic; font-weight: 400; }
.login-hero span { display: block; margin-top: 22px; color: rgba(246, 241, 232, .82); font-size: 15px; letter-spacing: .18em; }

.login-card {
  width: 100%;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(246, 241, 232, .22);
  border-radius: 24px;
  background: rgba(20, 20, 18, .76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.login-card h2 { margin: 0; color: #f6f1e8; font: 32px/1.15 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; font-weight: 650; }
.login-card > p { margin: 10px 0 30px; color: rgba(246, 241, 232, .58); font-size: 13px; }
.login-form { display: grid; gap: 9px; }
.login-form label { margin-top: 8px; color: rgba(246, 241, 232, .78); font-size: 12px; }
.login-form input { min-height: 52px; padding: 0 16px; border: 1px solid rgba(246, 241, 232, .18); border-radius: 11px; background: rgba(20, 20, 18, .3); color: #f6f1e8; }
.login-form input::placeholder { color: rgba(246, 241, 232, .34); }
.login-form input:focus { border-color: rgba(246, 241, 232, .78); outline: none; box-shadow: 0 0 0 3px rgba(246, 241, 232, .08); }
.login-form .password-field { position: relative; }
.login-form .password-field input { padding-right: 48px; }
.password-toggle { position: absolute; right: 8px; top: 8px; min-width: 36px; min-height: 36px; padding: 0; background: transparent; color: rgba(246, 241, 232, .62); box-shadow: none; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; margin-top: 20px; border-radius: 11px; background: #f2ede4; color: #171614; font-weight: 700; box-shadow: none; }
.login-submit:hover { background: #fffaf1; }
.login-submit span { font-size: 20px; font-weight: 400; }
.login-switch { min-height: 32px; margin: 14px auto 0; padding: 0; background: transparent; color: rgba(246, 241, 232, .68); box-shadow: none; font-size: 12px; }
.login-switch:hover { background: transparent; color: #f6f1e8; }
.login-card .error { min-height: 20px; margin: 12px 0 0; color: #e9a49b; text-align: center; }
.login-footer { color: rgba(246, 241, 232, .48); font-size: 11px; letter-spacing: .08em; }
.login-footer span { margin: 0 6px; color: rgba(246, 241, 232, .25); }

@media (max-width: 800px) {
  .login-shell { padding: 24px; }
  .login-layout { grid-template-columns: 1fr; align-content: center; gap: 34px; }
  .login-hero h1 { font-size: clamp(48px, 13vw, 72px); }
  .login-hero span { margin-top: 15px; }
  .login-card { max-width: 520px; }
}
