:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #1d2433;
  --muted: #667085;
  --line: #d8dee9;
  --accent: #1663d8;
  --accent-soft: #e8f1ff;
  --danger: #b42318;
  --warn: #b54708;
  --ok: #067647;
  --edit: #fff7d6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 24px 28px 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 700;
}

.topbar p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 14px;
}

.title-area {
  min-width: 0;
}

.report-tabs {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f7fb;
}

.report-tabs a {
  padding: 7px 14px;
  border-radius: 6px;
  color: #475467;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.report-tabs a:hover {
  color: var(--accent);
  background: #fff;
}

.report-tabs a.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.16);
}

main {
  padding: 18px 28px 28px;
}

.filters,
.summary,
.table-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) minmax(220px, 1.4fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 13px;
}

button,
.button-link {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

button:hover,
.button-link:hover {
  filter: brightness(0.96);
}

.user-box {
  width: 180px;
  display: grid;
  gap: 8px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
}

.summary div {
  padding: 14px;
  background: #fff;
}

.summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}

.summary strong {
  font-size: 20px;
}

.table-shell {
  margin-top: 14px;
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 310px);
}

table {
  width: 100%;
  min-width: 1720px;
  border-collapse: collapse;
  font-size: 13px;
}

.bot-table { min-width:980px; }
.bot-filters { grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) minmax(260px,2fr) auto; margin-top:14px; }
.bot-summary { grid-template-columns:repeat(4,minmax(120px,1fr)); margin-top:0; }
.bot-status-active { color:var(--ok); font-weight:700; }

.tasks-main { padding:18px 28px 28px; }
.tasks-layout { display:grid; grid-template-columns:260px minmax(0,1fr); gap:16px; align-items:start; }
.task-table-panel,
.task-record-panel {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  min-width:0;
}
.task-panel-head,
.task-record-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
}
.task-record-head h2 { font-size:18px; }
.task-record-head p { margin-top:4px; color:var(--muted); font-size:13px; }
.task-record-head > div:first-child { min-width:180px; }
.task-sheet-actions { justify-content:flex-end; flex-wrap:wrap; }
.task-sheet-actions button { padding:7px 10px; }
.danger-button {
  border-color:#f1b7b2;
  background:#fff;
  color:var(--danger);
}
.task-panel-actions { display:flex; gap:6px; }
.task-panel-actions button { padding:7px 9px; }
.task-table-search { padding:10px 10px 0; }
.task-table-search input { width:100%; min-width:0; }
.live-search-wrap { position:relative; display:block; }
.live-search-menu {
  position:absolute;
  z-index:40;
  top:calc(100% + 5px);
  left:0;
  right:0;
  max-height:320px;
  overflow:auto;
  padding:5px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:0 12px 28px rgba(20,55,82,.16);
}
.live-search-option {
  display:grid;
  gap:3px;
  width:100%;
  padding:9px 10px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--text);
  text-align:left;
}
.live-search-option:hover,
.live-search-option.active { background:var(--accent-soft); color:var(--text); }
.live-search-option strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.live-search-option span { overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.live-search-empty { padding:12px 10px; color:var(--muted); font-size:13px; text-align:center; }
.task-sheet-actions button:disabled {
  opacity:.45;
  cursor:not-allowed;
  filter:none;
}
.task-table-shell .table-toolbar > div { display:flex; align-items:center; gap:12px; min-width:0; flex-wrap:wrap; }
.sheet-shortcut-help {
  flex:0 0 auto;
  padding:5px 9px;
  border:1px solid #d9e1eb;
  border-radius:6px;
  background:#fff;
  color:#526171;
  font-size:12px;
}
.sheet-shortcut-help:hover { background:#f3f7fb; color:#174f82; filter:none; }
.task-sheet-actions button.active {
  border-color:var(--accent);
  background:var(--accent-soft);
  color:#0b4aa2;
}
.business-table-list { display:grid; gap:6px; padding:10px; }
.business-table-item {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:4px;
  align-items:stretch;
}
.business-table-select {
  display:grid;
  gap:4px;
  width:100%;
  text-align:left;
  border-color:transparent;
  background:#fff;
  color:var(--text);
}
.business-table-select:hover,
.business-table-select.active {
  border-color:var(--accent);
  background:var(--accent-soft);
}
.business-table-select span { color:var(--muted); font-size:12px; }
.business-table-delete {
  width:34px;
  padding:0;
  border-color:transparent;
  background:transparent;
  color:var(--muted);
  font-size:18px;
}
.business-table-delete:hover {
  border-color:#f1b7b2;
  background:#fff1f0;
  color:var(--danger);
  filter:none;
}
.task-filters {
  grid-template-columns:minmax(220px,1.5fr) minmax(160px,1fr) minmax(180px,1fr) auto auto;
  margin:14px;
}
.task-table-shell { margin:14px; }
.business-grid { min-width:0; table-layout:fixed; }
.tasks-page .business-grid th,
.tasks-page .business-grid td {
  position:static;
  left:auto;
  z-index:auto;
}
.business-grid th,
.business-grid td { min-width:0; padding:0; }
.tasks-page .business-grid th { position:relative; }
.tasks-page .business-grid td.task-row-number { position:relative; }
.business-grid .task-row-number {
  min-width:54px;
  width:54px;
  text-align:center;
  color:var(--muted);
  background:#f6f8fb;
  font-size:12px;
  padding:8px 4px;
  cursor:pointer;
  user-select:none;
}
.business-grid td:nth-child(1),
.business-grid td:nth-child(4),
.business-grid td:nth-child(5),
.business-grid td:nth-child(6),
.business-grid th:nth-child(1),
.business-grid th:nth-child(4),
.business-grid th:nth-child(5),
.business-grid th:nth-child(6) {
  position:static;
  left:auto;
}
.business-grid th.sheet-new-column { background:#f8fafc; }
.business-grid th.dirty-column { background:#fff7df; }
.business-grid th.column-filtered { background:#e8f3ff; }
.business-grid th.sheet-simple-header { height:32px; background:#f6f8fb; }
.sheet-column-selector {
  display:block;
  width:100%;
  min-width:0;
  height:32px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#6b7787;
  font-size:11px;
  font-weight:700;
  line-height:32px;
}
.sheet-column-selector:hover { background:#e9eef6; color:#174f82; filter:none; }
.column-resize-handle {
  position:absolute;
  z-index:5;
  top:0;
  right:-3px;
  width:7px;
  height:100%;
  cursor:col-resize;
  touch-action:none;
}
.column-resize-handle::after {
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:3px;
  width:1px;
  background:transparent;
}
.column-resize-handle:hover::after { background:var(--accent); }
.row-resize-handle {
  position:absolute;
  z-index:5;
  right:0;
  bottom:-3px;
  left:0;
  height:7px;
  cursor:row-resize;
  touch-action:none;
}
.row-resize-handle::after {
  content:"";
  position:absolute;
  right:0;
  bottom:3px;
  left:0;
  height:1px;
  background:transparent;
}
.row-resize-handle:hover::after { background:var(--accent); }
.sheet-resizing-column,
.sheet-resizing-column * { cursor:col-resize!important; user-select:none!important; }
.sheet-resizing-row,
.sheet-resizing-row * { cursor:row-resize!important; user-select:none!important; }
.sheet-resize-guide {
  position:fixed;
  z-index:1000;
  pointer-events:none;
  background:var(--accent);
  box-shadow:0 0 0 1px rgba(22,99,216,.12);
}
.sheet-resize-guide.is-column { width:2px; transform:translateX(-1px); }
.sheet-resize-guide.is-row { height:2px; transform:translateY(-1px); }
.sheet-resize-guide span {
  position:absolute;
  padding:3px 6px;
  border-radius:4px;
  background:#0b4aa2;
  color:#fff;
  font-size:11px;
  line-height:16px;
  white-space:nowrap;
  box-shadow:0 2px 6px rgba(16,24,40,.22);
}
.sheet-resize-guide.is-column span { top:4px; left:6px; }
.sheet-resize-guide.is-row span { top:6px; left:6px; }
.sheet-size-probe {
  position:fixed;
  top:-1000px;
  left:-1000px;
  visibility:hidden;
  white-space:pre;
  pointer-events:none;
}
.sheet-column-selector.sheet-selected,
.business-grid .task-row-number.sheet-selected {
  background:#d7e7ff;
  color:#0b4aa2;
  font-weight:700;
}
.business-grid td.sheet-selected {
  background:var(--accent-soft)!important;
  box-shadow:inset 0 0 0 1px #7aaaf0;
}
.business-grid td.sheet-selected .sheet-cell-editor:focus {
  box-shadow:inset 0 0 0 2px var(--accent);
}
.sheet-cell-editor {
  min-height:34px;
  outline:none;
  padding:7px 8px;
  white-space:pre-wrap;
  word-break:break-word;
  cursor:text;
  overflow:hidden;
}
.sheet-cell-editor:focus {
  background:#fff;
  box-shadow:inset 0 0 0 2px var(--accent);
}
.business-grid input,
.business-grid select,
.business-grid textarea {
  width:100%;
  min-height:32px;
  border:1px solid transparent;
  background:transparent;
  padding:5px 6px;
  border-radius:4px;
  font:inherit;
}
.business-grid input:focus,
.business-grid select:focus,
.business-grid textarea:focus {
  outline:none;
  border-color:var(--accent);
  background:#fff;
  box-shadow:0 0 0 2px var(--accent-soft);
}
.business-grid textarea { resize:vertical; }
.business-grid .sheet-cell-control { box-sizing:border-box; border-radius:0; }
.business-grid td.sheet-cell-invalid {
  background:#fff1f0!important;
  box-shadow:inset 0 0 0 1px #ef7b73;
}
.sheet-select-all {
  color:#6b7787!important;
  font-size:15px!important;
  font-weight:700;
}
.business-grid td.sheet-cell-invalid .sheet-cell-control { color:#a8201a; }
.business-grid tr.dirty-row td { background:#fffdf4; }
.task-row-actions { display:flex; gap:8px; align-items:center; }
.task-draft-label { color:var(--muted); font-size:12px; }
#dirtyCount,
#selectionState,
#taskState { margin-left:12px; color:var(--muted); }
#taskState.error { color:var(--danger); }
#saveAllButton:not(:disabled) { background:var(--accent); color:#fff; }
.secondary-button {
  border-color:var(--line);
  background:#fff;
  color:var(--text);
}
.task-dialog-form { display:grid; gap:16px; min-width:min(480px,80vw); }
.task-dialog-form label { display:grid; gap:7px; color:#526273; font-size:13px; }
.task-dialog-form input,
.task-dialog-form select,
.task-dialog-form textarea { width:100%; box-sizing:border-box; }
.inline-check { display:flex; grid-template-columns:auto 1fr; align-items:center; gap:8px; }
.inline-check input { width:auto; }
.column-dialog-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.column-dialog-actions button { padding:8px 10px; }
.shortcut-dialog { width:min(780px,calc(100vw - 32px)); padding:0; }
.shortcut-dialog .dialog-head p { margin:5px 0 0; color:var(--muted); font-size:12px; }
.shortcut-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:20px 24px 24px; }
.shortcut-groups section { padding:14px; border:1px solid var(--line); border-radius:10px; background:#fbfcfe; }
.shortcut-groups h3 { margin:0 0 10px; font-size:14px; }
.shortcut-groups dl { display:grid; gap:8px; margin:0; }
.shortcut-groups dl > div { display:grid; grid-template-columns:minmax(150px,.9fr) minmax(0,1fr); align-items:center; gap:12px; }
.shortcut-groups dt,.shortcut-groups dd { margin:0; }
.shortcut-groups dd { color:#526171; font-size:12px; }
.shortcut-groups kbd { display:inline-block; min-width:20px; padding:2px 5px; border:1px solid #ccd5e1; border-bottom-width:2px; border-radius:5px; background:#fff; color:#243447; font:600 11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace; text-align:center; }
@media (max-width:720px) { .shortcut-groups { grid-template-columns:1fr; padding:16px; } }
.task-table-shell.is-frozen .business-grid thead th {
  position:sticky;
  top:0;
  z-index:12;
  background:#f6f8fb;
}
.task-table-shell.is-frozen .business-grid th:first-child,
.task-table-shell.is-frozen .business-grid td:first-child {
  position:sticky;
  left:0;
  z-index:10;
  background:#f6f8fb;
}
.task-table-shell.is-frozen .business-grid thead th:first-child { z-index:14; }
.task-api-dialog pre {
  max-width:min(760px,82vw);
  white-space:pre-wrap;
  background:#f5f7fb;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  font-size:13px;
}
.tasks-page .settings-dialog,
.design-center-page .settings-dialog {
  max-height:calc(100vh - 40px);
  overflow:auto;
  border:0;
  border-radius:14px;
  box-shadow:0 24px 80px rgba(15,35,48,.28);
}
.tasks-page .settings-dialog::backdrop,
.design-center-page .settings-dialog::backdrop { background:rgba(15,35,48,.5); backdrop-filter:blur(2px); }
.tasks-page .settings-dialog > .dialog-head,
.design-center-page .settings-dialog > .dialog-head {
  position:sticky;
  top:0;
  z-index:5;
  padding:20px 24px;
  background:#f8fafc;
}
.tasks-page .settings-dialog > .task-dialog-form,
.design-center-page .settings-dialog > .design-form,
.design-center-page .settings-dialog > .design-rules-form { padding:20px 24px 0; }
.tasks-page .settings-dialog > form > .dialog-actions,
.design-center-page .settings-dialog > form > .dialog-actions {
  margin:8px -24px 0;
  padding:16px 24px;
  background:#f8fafc;
}
.task-api-dialog > pre { margin:20px 24px 24px; }
.task-empty { color:var(--muted); padding:12px; font-size:13px; }

th,
td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 8px;
  vertical-align: top;
  background: #fff;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef3f8;
  text-align: left;
  color: #344054;
  font-weight: 700;
}

td:nth-child(1),
td:nth-child(4),
td:nth-child(5),
td:nth-child(6),
th:nth-child(1),
th:nth-child(4),
th:nth-child(5),
th:nth-child(6) {
  position: sticky;
  z-index: 1;
}

td:nth-child(1),
th:nth-child(1) {
  left: 0;
  min-width: 92px;
}

td:nth-child(4),
th:nth-child(4) {
  left: 92px;
  min-width: 160px;
}

td:nth-child(5),
th:nth-child(5) {
  left: 252px;
  min-width: 90px;
}

td:nth-child(6),
th:nth-child(6) {
  left: 342px;
  min-width: 110px;
}

th:nth-child(1),
th:nth-child(4),
th:nth-child(5),
th:nth-child(6) {
  z-index: 3;
}

tbody tr:hover td {
  background: #f8fbff;
}

.daily-page table {
  width: max-content;
  min-width: 100%;
}

.daily-page .filters {
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto auto;
}

.daily-page .summary {
  grid-template-columns: repeat(7, minmax(110px, 1fr));
}

.daily-detail-page .summary {
  grid-template-columns: repeat(8, minmax(118px, 1fr));
  background: #fff;
}

.daily-detail-page .summary div {
  min-width: 0;
  padding: 14px 15px;
}

.daily-detail-page .summary span {
  overflow: hidden;
  color: #334b68;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-detail-page .summary strong {
  display: block;
  overflow: hidden;
  color: #071a32;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-detail-page .summary [hidden] {
  display: none;
}

.daily-detail-page.community-daily-mode .summary {
  grid-template-columns: repeat(6, minmax(118px, 1fr));
}

.daily-detail-page .filters {
  grid-template-columns: repeat(5, minmax(130px, 1fr)) auto auto;
}

.daily-detail-page #dailyTable th,
.daily-detail-page #dailyTable td {
  text-align: center;
  vertical-align: middle;
}
.daily-detail-page #dailyTable th { white-space: nowrap; }
.daily-detail-page #dailyTable th > span:first-child { vertical-align: middle; }
.daily-metric-formula-view { margin-left: 5px; padding: 1px 6px; font-size: 10px; }
.daily-detail-page.community-daily-mode #dailyColumnSettingsButton { display:none!important; }

.daily-detail-page .daily-editable-cell { padding:4px; background:#fffdf3; }
.daily-detail-page .daily-edit-input { width:118px; min-width:86px; padding:7px 8px; border:1px solid #9db7c5; border-radius:6px; background:#fff; color:var(--text); text-align:right; box-sizing:border-box; }
.daily-detail-page .daily-edit-input:focus { outline:2px solid rgba(8,127,176,.2); border-color:#087fb0; }
.daily-detail-page td.daily-edit-changed { background:#fff2bd; }
.daily-detail-page td.daily-import-updated { background:#e3f5e1; box-shadow:inset 0 0 0 2px #6bbf59; }
.daily-detail-page td.daily-import-updated .daily-edit-input { border-color:#6bbf59; }
.daily-detail-page td.daily-edit-invalid { background:#fee4e2; }
.daily-detail-page td.daily-edit-invalid .daily-edit-input { border-color:#d92d20; }
.daily-paste-dialog textarea { display:block; width:calc(100% - 32px); margin:12px 16px; padding:10px; border:1px solid var(--line); border-radius:7px; box-sizing:border-box; resize:vertical; font:13px/1.5 Consolas,"Microsoft YaHei",monospace; }
.daily-paste-fields,.daily-paste-summary { margin:10px 16px 0; color:#315064; font-size:13px; }
.daily-paste-fields { max-height:70px; overflow:auto; }
.daily-paste-summary { font-weight:700; }
.daily-paste-preview-wrap { max-height:260px; margin:10px 16px; overflow:auto; border:1px solid var(--line); }
.daily-paste-preview-wrap table { width:100%; min-width:620px; border-collapse:collapse; }
.daily-paste-preview-wrap th,.daily-paste-preview-wrap td { position:static!important; min-width:80px!important; padding:7px 9px; border:1px solid var(--line); text-align:left!important; }
.daily-paste-preview-wrap .daily-paste-error td { color:#b42318; background:#fff1f0; }

.daily-page table {
  min-width: 1320px;
}

.daily-page:not(.daily-detail-page) table {
  width: 100%;
  min-width: 1080px;
}

.daily-page:not(.daily-detail-page) th,
.daily-page:not(.daily-detail-page) td {
  min-width: 60px;
  padding-left: 6px;
  padding-right: 6px;
}

.daily-page .store-cell {
  min-width: 120px;
  font-weight: 700;
  vertical-align: middle;
  background: #f8fafc;
}

.daily-page .store-name-cell {
  min-width: 210px;
  vertical-align: middle;
  background: #f8fafc;
  white-space: normal;
}

.daily-page .daily-current-row td {
  border-top: 2px solid #98a2b3;
}

.daily-page .daily-comparison-row td {
  color: #667085;
  background: #fafafa;
}

.daily-page td.positive {
  color: #067647;
}

.daily-page td.negative {
  color: #b42318;
}

.daily-top-scroll {
  position: fixed;
  left: 28px;
  right: 28px;
  bottom: 0;
  z-index: 20;
  height: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -2px 8px rgba(16, 24, 40, 0.12);
}

.daily-top-scroll > div {
  height: 1px;
}

.daily-page {
  padding-bottom: 20px;
}

.daily-page .table-wrap {
  overflow-x: hidden;
  overflow-y: auto;
}

.daily-page .table-wrap::-webkit-scrollbar:horizontal {
  height: 0;
}

.daily-page th,
.daily-page td {
  min-width: 110px;
  max-width: none;
  white-space: nowrap;
}

.daily-page th {
  position: sticky;
}

.column-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
  z-index: 8;
}

.column-resizer:hover,
.column-resizer:active {
  background: rgba(22, 99, 216, 0.35);
}

.monthly-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(2, minmax(105px, 0.8fr)) minmax(150px, 1.1fr) minmax(105px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.month-picker {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.monthly-filter-label {
  color: var(--muted);
  font-size: 12px;
}

.month-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
}

.month-picker-trigger:hover,
.month-picker-trigger.is-open {
  border-color: #84adf2;
  color: var(--text);
  background: #f8fbff;
  filter: none;
}

#monthPickerTriggerText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.month-picker-trigger-icon {
  flex: 0 0 auto;
  color: #667085;
  transition: transform 0.15s ease;
}

.month-picker-trigger.is-open .month-picker-trigger-icon {
  transform: rotate(180deg);
}

.month-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: min(430px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 35, 48, 0.18);
}

.month-picker-panel[hidden] {
  display: none;
}

.month-picker-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.month-picker-toolbar select {
  width: auto;
  min-width: 104px;
  padding: 6px 8px;
}

.month-picker-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.month-picker-actions button,
.selected-month-pill {
  border-color: var(--line);
  background: #fff;
  color: #344054;
  padding: 6px 8px;
  font-size: 12px;
}

.month-picker-actions button:hover,
.selected-month-pill:hover {
  border-color: #9db7e8;
  background: #f5f9ff;
  color: #1849a9;
  filter: none;
}

.selected-month-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: 26px;
  margin-bottom: 8px;
}

.selected-month-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.selected-month-empty {
  color: #98a2b3;
  font-size: 12px;
}

.selected-month-pill {
  border-radius: 999px;
}

.month-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
  max-height: 164px;
  overflow-y: auto;
  padding-right: 2px;
}

.month-chip {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 7px;
  border: 1px solid #e1e7f0;
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
}

.month-chip:hover {
  border-color: #9db7e8;
  background: #f5f9ff;
}

.month-chip.is-selected {
  border-color: #84adf2;
  background: var(--accent-soft);
  color: #1849a9;
  font-weight: 700;
}

.month-chip input {
  width: auto;
  margin: 0;
}

.month-picker-empty {
  grid-column: 1 / -1;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.monthly-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.monthly-filter-actions button {
  white-space: nowrap;
}

.monthly-filter-actions #resetFilters {
  border-color: #b9c9de;
  color: #315477;
  background: #fff;
}

.monthly-filter-actions #resetFilters:hover {
  color: #1849a9;
  background: #f5f9ff;
  filter: none;
}

.monthly-edit-hint {
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid #b2ccff;
  border-radius: 6px;
  color: #1849a9;
  background: #eff8ff;
  font-size: 13px;
}

.monthly-title-area {
  width: 100%;
}

.monthly-title-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.monthly-title-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
}

.monthly-edit-close-badge {
  padding: 5px 9px;
  border-radius: 999px;
  color: #175cd3;
  background: #eff8ff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.monthly-edit-close-dialog {
  width: min(680px, calc(100vw - 32px));
}

.monthly-edit-close-dialog::backdrop {
  background: rgba(16, 24, 40, 0.48);
  backdrop-filter: blur(2px);
}

.monthly-edit-close-options {
  display: grid;
  gap: 8px;
  max-height: 48vh;
  overflow: auto;
  padding: 14px 16px;
}

.monthly-edit-close-option {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}

.monthly-edit-close-option:has(input:checked) {
  border-color: #84adff;
  background: #eff8ff;
}

.monthly-edit-close-option.is-unavailable {
  cursor: not-allowed;
  opacity: 0.66;
}

.monthly-edit-close-option input {
  width: auto;
  margin: 0;
}

.monthly-edit-close-option strong {
  font-size: 14px;
}

.monthly-edit-close-option small {
  grid-column: 2 / -1;
  color: var(--muted);
  line-height: 1.45;
}

.monthly-close-status {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.monthly-close-status.editable { color: var(--ok); background: #ecfdf3; }
.monthly-close-status.manual_closed { color: var(--danger); background: #fff1f3; }
.monthly-close-status.automatic_closed { color: var(--muted); background: #f2f4f7; }

.monthly-edit-close-selection {
  margin: 0 16px 12px;
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--warn);
  background: #fffaeb;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .monthly-title-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .monthly-title-actions {
    justify-content: space-between;
  }

  .monthly-edit-close-option {
    grid-template-columns: auto 1fr;
  }

  .monthly-close-status {
    grid-column: 2;
    width: fit-content;
  }
}

.monthly-summary {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.monthly-table-shell {
  margin-top: 14px;
}

.monthly-page {
  padding-bottom: 20px;
}

.monthly-page .table-wrap {
  overflow-x: hidden;
  overflow-y: auto;
}

.monthly-page table {
  width: max-content;
  table-layout: fixed;
}

.monthly-page th,
.monthly-page td {
  min-width: 104px;
  max-width: 150px;
  white-space: nowrap;
}

.monthly-page thead tr:first-child th {
  top: 0;
  height: 36px;
  z-index: 6;
}

.monthly-page thead tr:nth-child(2) th {
  top: 36px;
  z-index: 5;
}

/* The weekly table pins columns 1, 4, 5 and 6 globally.  Monthly reports
   only pin their two descriptor columns; month values must scroll together. */
.monthly-page tbody td:nth-child(4),
.monthly-page tbody td:nth-child(5),
.monthly-page tbody td:nth-child(6) {
  position: static;
  left: auto;
}

.monthly-page thead th:nth-child(4),
.monthly-page thead th:nth-child(5),
.monthly-page thead th:nth-child(6) {
  left: auto;
}

.monthly-page tbody td:nth-child(1),
.monthly-page thead tr:first-child th:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 4;
  min-width: 110px;
  background: #f8fafc;
}

.monthly-page tbody td:nth-child(2),
.monthly-page thead tr:first-child th:nth-child(2) {
  position: sticky;
  left: 110px;
  z-index: 4;
  min-width: 130px;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.monthly-page thead tr:first-child th:nth-child(1),
.monthly-page thead tr:first-child th:nth-child(2) {
  z-index: 8;
  background: #eef3f8;
}

.month-group {
  text-align: center;
  color: #1849a9;
  background: #e8f1ff;
}

.monthly-category {
  font-weight: 700;
}

.monthly-metric {
  font-weight: 600;
}

.forecast-cell,
.monthly-page .target-cell {
  background: var(--edit);
}

.forecast-input {
  min-width: 90px;
  padding: 5px 6px;
  text-align: right;
  background: #fffdf2;
}

.forecast-input.saved {
  border-color: var(--ok);
  background: #ecfdf3;
}

.sales-review-section {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #fff;
}
.overall-ai-section { margin-top:18px; padding:18px; border:1px solid #bfdbfe; border-radius:14px; background:linear-gradient(135deg,#f8fbff 0%,#eef6ff 100%); box-shadow:0 8px 24px rgba(37,99,235,.08); }
.overall-ai-header { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.overall-ai-header h2 { margin:0; color:#173b72; }
.overall-ai-header p { margin:6px 0 0; color:#64748b; }
.overall-ai-actions { display:flex; gap:10px; flex-shrink:0; }
.overall-ai-actions #generateOverallAi { background:linear-gradient(135deg,#2563eb,#4f46e5); color:#fff; box-shadow:0 5px 14px rgba(37,99,235,.22); }
.overall-ai-actions button:disabled { opacity:.6; cursor:not-allowed; box-shadow:none; }
.overall-ai-state { margin-top:14px; padding:10px 12px; border-radius:8px; background:rgba(255,255,255,.72); color:#475569; }
.overall-ai-result { width:100%; min-width:0; }
.overall-ai-details { width:100%; margin-top:12px; }
.overall-ai-details summary { cursor:pointer; padding:11px 13px; border-radius:9px; background:#dbeafe; color:#1d4ed8; font-weight:700; user-select:none; }
.overall-ai-details .ai-suggestion-body { max-height:none; overflow:visible; padding:14px; }
.sales-review-header,.sales-review-toolbar,.sales-review-card-head,.sales-review-ai-title { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.sales-review-header h2,.sales-review-card h3 { margin:0; }
.sales-review-header p { margin:5px 0 0; color:#64748b; }
.sales-review-tabs { display:flex; gap:8px; overflow-x:auto; padding:14px 0 10px; }
.sales-review-tabs button { white-space:nowrap; background:#f1f5f9; color:#334155; }
.sales-review-tabs button.active { background:#1d4ed8; color:#fff; }
.sales-review-toolbar { padding:8px 0 14px; border-bottom:1px solid #e2e8f0; }
.sales-review-cards { display:grid; gap:14px; padding-top:14px; }
.sales-review-card { border:1px solid #dbe4ee; border-radius:12px; padding:14px; background:#fbfdff; }
.sales-review-card-head > div { display:flex; align-items:center; gap:10px; }
.sales-review-guidance { max-width:64%; margin:0; color:#475569; font-size:13px; line-height:1.55; text-align:right; }
.sales-review-card-head details { max-width:56%; color:#475569; }
.sales-review-card-head details p { white-space:pre-wrap; margin:8px 0 0; }
.review-status { font-size:12px; padding:3px 8px; border-radius:999px; background:#e2e8f0; }
.review-status.submitted { background:#dcfce7; color:#166534; }
.review-status.returned { background:#fee2e2; color:#991b1b; }
.sales-review-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; margin-top:12px; }
.sales-review-grid > * { min-width:0; }
.sales-review-grid label { display:flex; flex-direction:column; min-width:0; gap:6px; font-weight:600; }
.sales-review-grid textarea { width:100%; min-height:190px; resize:vertical; padding:10px; border:1px solid #cbd5e1; border-radius:8px; font:inherit; font-weight:400; line-height:1.55; }
.sales-review-grid textarea:disabled { color:#334155; background:#f8fafc; }
.sales-review-grid textarea::placeholder { color:#94a3b8; opacity:1; font-weight:400; }
.sales-review-ai { display:flex; flex-direction:column; width:100%; min-width:0; min-height:190px; padding:12px; background:#f0f7ff; border:1px solid #bfdbfe; border-radius:10px; box-sizing:border-box; }
.sales-review-ai-meta { margin-top:6px; padding:6px 8px; border-radius:6px; background:#e0f2fe; color:#0c4a6e; font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.sales-review-ai-meta.legacy { background:#fff7ed; color:#9a3412; border:1px solid #fdba74; }
.sales-review-ai-attempt.failed { margin-top:7px; padding:8px 10px; border:1px solid #fca5a5; border-radius:7px; background:#fef2f2; color:#991b1b; font-size:12px; line-height:1.5; font-weight:600; }
.supervisor-summary-card { display:grid; gap:12px; margin-top:16px; padding:18px; border:1px solid #c7d7ee; border-radius:14px; background:linear-gradient(135deg,#f8fbff,#f4f7ff); box-shadow:0 8px 22px rgba(40,75,125,.06); }
.supervisor-summary-head,.supervisor-summary-footer { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.supervisor-summary-head h3 { margin:0; color:#243b64; font-size:17px; }
.supervisor-summary-head p { margin:5px 0 0; color:#64748b; font-size:13px; }
.supervisor-summary-head > span { color:#64748b; font-size:12px; text-align:right; }
.supervisor-summary-card textarea { width:100%; min-height:150px; box-sizing:border-box; padding:12px 14px; border:1px solid #b9c9df; border-radius:10px; color:#243247; background:#fff; font:inherit; line-height:1.65; resize:vertical; }
.supervisor-summary-card textarea:disabled { color:#334155; background:rgba(255,255,255,.72); }
.supervisor-summary-footer { align-items:center; color:#64748b; font-size:13px; }
.supervisor-summary-footer .toolbar-actions { flex:0 0 auto; }
.ai-suggestion-details { align-self:stretch; width:auto; min-width:0; margin:8px 0; box-sizing:border-box; }
.ai-suggestion-details summary { width:100%; cursor:pointer; color:#1d4ed8; font-weight:600; user-select:none; padding:9px 11px; background:#dbeafe; border-radius:7px; box-sizing:border-box; }
.ai-suggestion-body { width:100%; max-height:520px; overflow:auto; margin-top:10px; padding:10px; background:#fff; border:1px solid #dbeafe; border-radius:9px; box-sizing:border-box; color:#1e3a5f; }
.sales-review-v2-body { display:grid; gap:8px; }
.sales-review-v2-field { display:grid; grid-template-columns:minmax(84px, 112px) minmax(0, 1fr); gap:10px; align-items:start; padding:10px 12px; border:1px solid #dbeafe; border-radius:8px; background:#f8fbff; }
.sales-review-v2-field h4 { margin:0; color:#1d4ed8; font-size:13px; line-height:1.55; }
.sales-review-v2-value { color:#1e293b; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.sales-review-v2-field.data-missing { border-color:#fed7aa; background:#fff7ed; }
.sales-review-v2-field.data-missing h4 { color:#c2410c; }
.sales-review-v2-field.weekly-summary { display:block; border-left:4px solid #2563eb; background:#eff6ff; }
.sales-review-v2-field.weekly-summary h4 { margin-bottom:6px; }
.ai-suggestion-details:not([open]) .ai-suggestion-body { display:none; }
.ai-suggestion-details.empty summary { cursor:default; color:#64748b; font-weight:400; }
.ai-suggestion-block { margin:0 0 12px; padding:10px 12px; border-radius:8px; background:#f8fafc; border-left:4px solid #60a5fa; }
.ai-suggestion-block:last-child { margin-bottom:0; }
.ai-suggestion-block h4 { margin:0 0 7px; font-size:14px; color:#0f172a; }
.ai-suggestion-block p { margin:0; line-height:1.65; }
.ai-suggestion-block ul { margin:0; padding-left:20px; }
.ai-suggestion-block li { margin:5px 0; line-height:1.55; }
.ai-summary-content { line-height:1.65; min-width:0; max-width:100%; }
.ai-html-reply { width:100%; max-width:100%; min-width:0; white-space:normal; overflow-x:auto; overflow-y:hidden; box-sizing:border-box; }
.ai-html-reply table { width:100% !important; max-width:100% !important; min-width:0 !important; table-layout:fixed !important; border-collapse:collapse; margin:8px 0; background:#fff; box-sizing:border-box; }
.ai-html-reply th,
.ai-html-reply td { position:static !important; left:auto !important; top:auto !important; z-index:auto !important; min-width:0 !important; max-width:0 !important; border:1px solid var(--line); padding:8px 10px; text-align:left; vertical-align:top; white-space:normal !important; overflow-wrap:anywhere; word-break:break-all; line-break:anywhere; box-sizing:border-box; }
.ai-html-reply th { background:#eef3f8; font-weight:700; color:#0f172a; }
.ai-html-reply td:last-child,
.ai-html-reply th:last-child { max-width:0; overflow-wrap:anywhere; word-break:break-all; }
.ai-html-reply p { margin:6px 0; overflow-wrap:anywhere; word-break:break-all; }
.ai-html-reply div,
.ai-html-reply span,
.ai-html-reply strong,
.ai-html-reply b,
.ai-html-reply em,
.ai-html-reply i { max-width:100%; overflow-wrap:anywhere; word-break:break-all; }
.ai-html-reply ul,
.ai-html-reply ol { margin:6px 0; padding-left:20px; }
.ai-html-reply li { overflow-wrap:anywhere; word-break:break-all; }
.ai-summary { background:#eff6ff; border-left-color:#2563eb; }
.ai-problems { background:#fff7ed; border-left-color:#f97316; }
.ai-actions { background:#f0fdf4; border-left-color:#22c55e; }
.ai-missing { background:#f8fafc; border-left-color:#94a3b8; }
.ai-action-list { display:grid; gap:8px; }
.ai-action-item { display:grid; grid-template-columns:26px 1fr; gap:8px; align-items:start; padding:9px; background:#fff; border:1px solid #dcfce7; border-radius:7px; }
.ai-action-item > strong { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#22c55e; color:#fff; font-size:12px; }
.ai-action-item p { margin:0 0 4px; }
.ai-action-item small { color:#64748b; line-height:1.5; }
.review-card-actions { display:flex; gap:8px; flex-wrap:wrap; }
.sales-review-empty { padding:36px; text-align:center; color:#64748b; }
@media (max-width: 1100px) { .sales-review-grid { grid-template-columns:1fr; } }
@media (max-width: 720px) { .overall-ai-header,.sales-review-card-head { align-items:flex-start; flex-direction:column; } .sales-review-guidance { max-width:none; text-align:left; } .overall-ai-actions { width:100%; } .overall-ai-actions button { flex:1; } }
@media (max-width: 700px) { .supervisor-summary-head,.supervisor-summary-footer { align-items:stretch; flex-direction:column; } .supervisor-summary-head > span { text-align:left; } }

.daily-page thead {
  position: sticky;
  top: 0;
  z-index: 5;
}

.daily-page thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #eef3f8;
  box-shadow: 0 1px 0 var(--line);
}

.daily-page td:nth-child(1),
.daily-page td:nth-child(4),
.daily-page td:nth-child(5),
.daily-page td:nth-child(6) {
  position: static;
  left: auto;
}

.daily-page th:nth-child(1),
.daily-page th:nth-child(4),
.daily-page th:nth-child(5),
.daily-page th:nth-child(6) {
  left: auto;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.editable {
  background: var(--edit);
}

.dirty {
  outline: 2px solid #fdb022;
}

.status {
  font-weight: 700;
}

.status-ok {
  color: var(--ok);
}

.status-warn {
  color: var(--warn);
}

.status-danger {
  color: var(--danger);
}

.log-button {
  background: #fff;
  color: var(--accent);
}

dialog {
  width: min(760px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 22px 70px rgba(16, 24, 40, 0.22);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  font-size: 18px;
}

.dialog-head button {
  width: 32px;
  height: 32px;
  padding: 0;
}

.log-content {
  max-height: 440px;
  overflow: auto;
  padding: 12px 16px 16px;
}

.log-item {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.log-item:last-child {
  border-bottom: 0;
}

.log-meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.weekly-matrix-page {
  padding-bottom: 20px;
}

.weekly-filters {
  display: grid;
  grid-template-columns: minmax(320px, 1.8fr) repeat(4, minmax(125px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.selected-store-info {
  margin: -8px 0 14px;
  padding: 9px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  color: #344054;
  background: #eff8ff;
  font-size: 13px;
}

.weekly-filters label,
.admin-metric-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.week-picker {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.week-picker legend {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.week-picker-button {
  width: 100%;
  min-height: 40px;
  overflow: hidden;
  color: var(--text);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff;
  border-color: var(--line);
}

.week-picker-button::after {
  content: "▾";
  float: right;
  color: var(--muted);
}

.week-picker-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: min(560px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.18);
}

.week-picker-panel[hidden] {
  display: none;
}

.week-picker-actions,
.week-picker-footer {
  display: flex;
  gap: 8px;
  align-items: center;
}

.week-picker-actions button {
  padding: 6px 9px;
  color: var(--accent);
  background: #eff8ff;
}

.week-search {
  width: 100%;
}

.week-search-empty {
  padding: 20px 12px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #f9fafb;
}

.week-search-empty[hidden] {
  display: none;
}

.week-picker .month-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 310px;
  overflow: auto;
}

.week-picker .month-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.week-picker .month-option[hidden] {
  display: none;
}

.week-picker .month-option:hover {
  border-color: #84adff;
  background: #f5f8ff;
}

.week-picker .month-option input {
  width: auto;
}

.week-picker-footer {
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.weekly-summary {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.weekly-matrix-shell {
  margin-top: 14px;
}

.weekly-matrix-page .table-wrap {
  height: min(76vh, 860px);
  min-height: 480px;
  overflow-x: hidden;
  overflow-y: auto;
}

.weekly-matrix-page table {
  width: max-content;
  table-layout: fixed;
}

.weekly-matrix-page th,
.weekly-matrix-page td {
  min-width: 108px;
  max-width: 180px;
  white-space: nowrap;
}

.weekly-matrix-page thead {
  position: sticky;
  top: 0;
  z-index: 12;
}

.weekly-matrix-page thead tr:first-child th {
  top: 0;
  height: 38px;
  z-index: 6;
}

.weekly-matrix-page thead tr:nth-child(2) th {
  top: 38px;
  left: auto;
  z-index: 5;
  resize: horizontal;
  overflow: hidden;
}

.weekly-matrix-page tbody td:nth-child(4),
.weekly-matrix-page tbody td:nth-child(5),
.weekly-matrix-page tbody td:nth-child(6) {
  position: static;
  left: auto;
}

.weekly-matrix-page thead tr:first-child th:nth-child(4),
.weekly-matrix-page thead tr:first-child th:nth-child(5),
.weekly-matrix-page thead tr:first-child th:nth-child(6) {
  left: auto;
}

.weekly-matrix-page tbody td:nth-child(1),
.weekly-matrix-page tbody td:nth-child(2) {
  position: sticky;
  z-index: 4;
}

.weekly-matrix-page tbody td:nth-child(1) {
  left: 0;
  min-width: 120px;
  background: #f8fafc;
}

.weekly-matrix-page tbody td:nth-child(2) {
  left: 120px;
  min-width: 150px;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.weekly-matrix-page thead tr:first-child th:nth-child(1),
.weekly-matrix-page thead tr:first-child th:nth-child(2) {
  position: sticky;
  top: 0;
  z-index: 16;
  background: #eef3f8;
  box-shadow: 1px 1px 0 var(--line);
}

.weekly-matrix-page thead tr:first-child th:nth-child(1) {
  left: 0;
  min-width: 120px;
}

.weekly-matrix-page thead tr:first-child th:nth-child(2) {
  left: 120px;
  min-width: 150px;
}

.week-group {
  text-align: center;
  color: #1849a9;
  background: #e8f1ff;
}

.weekly-category { font-weight: 700; }
.weekly-metric { font-weight: 600; }
.weekly-matrix-page th.weekly-actual {
  background: #fce7ef;
  color: #8f294f;
}
.weekly-matrix-page td.weekly-actual {
  background: #fff1f5;
}
.dewu-top-products-section {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #c8d8ec;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fbff 0%, #f4f8fc 100%);
  box-shadow: 0 10px 30px rgba(31, 63, 94, .08);
}
.dewu-top-products-header,
.dewu-top-product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.dewu-top-products-header { margin-bottom: 16px; }
.dewu-top-products-header h2,
.dewu-top-product-card-header h3 { margin: 3px 0 5px; color: #163653; }
.dewu-top-products-header p,
.dewu-top-product-card-header p { margin: 0; color: #60758a; font-size: 13px; }
.dewu-top-products-kicker { color: #236c91; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.dewu-top-products-state { color: #526b82; font-size: 13px; font-weight: 700; text-align: right; }
.dewu-top-products-groups { display: grid; gap: 18px; }
.dewu-top-product-card { min-width: 0; overflow: hidden; border: 1px solid #dbe6f1; border-radius: 13px; background: #fff; }
.dewu-top-product-card-header { padding: 15px 17px; border-bottom: 1px solid #e5edf5; background: #fbfdff; }
.dewu-top-product-card-header h3 { font-size: 16px; }
.dewu-uv-coverage { flex: none; padding: 6px 10px; border-radius: 999px; color: #17603a; background: #dcfae6; font-size: 12px; font-weight: 800; }
.dewu-uv-coverage.incomplete { color: #934b10; background: #fff1d6; }
.dewu-top-product-table-wrap { overflow-x: auto; }
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table { width: 100%; min-width: 920px; table-layout: auto; border-collapse: collapse; }
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table thead { position: static; }
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table th,
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table td { min-width: 108px; max-width: none; padding: 11px 12px; border-bottom: 1px solid #edf1f5; white-space: nowrap; }
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table th { color: #3d5870; background: #f2f6fa; font-size: 12px; text-align: right; }
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table th:first-child,
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table th:nth-child(2),
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table td:first-child,
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table td:nth-child(2) { text-align: left; }
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table thead tr:first-child th,
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table thead tr:first-child th:nth-child(1),
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table thead tr:first-child th:nth-child(2),
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table tbody td:nth-child(1),
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table tbody td:nth-child(2) { position: static; top: auto; left: auto; min-width: 108px; height: auto; z-index: auto; box-shadow: none; }
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table tbody td:nth-child(1) { width: 126px; background: #fff; }
:is(.weekly-matrix-page, .monthly-page) .dewu-top-product-table tbody td:nth-child(2) { min-width: 150px; background: #fff; }
.dewu-product-image-box { display: grid; grid-template-columns: 72px auto; align-items: center; gap: 7px; min-width: 110px; }
.dewu-product-image-box img,
.dewu-product-image-box > span { grid-row: 1 / span 2; width: 72px; height: 72px; border-radius: 9px; object-fit: cover; }
.dewu-product-image-box > span { display: grid; place-items: center; color: #8b9caf; background: #f2f5f8; font-size: 11px; text-align: center; white-space: normal; }
.dewu-image-upload-button { align-self: end; padding: 5px 8px; color: #245d84; border: 1px solid #bcd2e5; border-radius: 7px; background: #f5faff; font-size: 11px; }
.dewu-top-products-header-actions { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.dewu-batch-image-button { min-height:36px; padding:8px 14px; color:#fff; border-color:#176892; background:#176892; font-size:13px; font-weight:800; }
.dewu-batch-image-button:hover { color:#fff; background:#0f577d; }
.dewu-batch-image-dialog { width:min(980px,calc(100vw - 28px)); max-height:calc(100vh - 30px); padding:0; overflow:hidden; border:0; border-radius:18px; color:#172033; box-shadow:0 28px 90px rgba(15,35,48,.3); }
.dewu-batch-image-dialog::backdrop { background:rgba(15,23,42,.54); backdrop-filter:blur(2px); }
.dewu-batch-image-head { display:flex; justify-content:space-between; gap:24px; padding:22px 26px 18px; border-bottom:1px solid #e5eaf2; background:linear-gradient(135deg,#f5fbff,#fff); }
.dewu-batch-image-head h2 { margin:4px 0 6px; font-size:22px; }
.dewu-batch-image-head p { margin:0; color:#64748b; font-size:13px; line-height:1.6; }
.dewu-batch-image-head > button { flex:0 0 auto; width:36px; height:36px; padding:0; font-size:24px; }
.dewu-batch-image-body { max-height:calc(100vh - 220px); overflow:auto; padding:20px 26px; }
.dewu-batch-image-rules { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.dewu-batch-image-rules span { padding:7px 10px; border-radius:999px; color:#52657d; background:#eef5fb; font-size:12px; }
.dewu-batch-image-summary { min-height:22px; margin:8px 2px 12px; color:#33566f; font-size:13px; font-weight:700; }
.dewu-batch-image-summary.error-text { color:#a03737; }
.dewu-batch-image-preview { max-height:420px; overflow:auto; border:1px solid #dbe5ef; border-radius:12px; }
.dewu-batch-image-preview table { min-width:760px; margin:0; }
.dewu-batch-image-preview th { position:sticky; top:0; z-index:1; background:#eef6fb; }
.dewu-batch-image-preview td { vertical-align:top; white-space:normal; }
.dewu-batch-file-name { font-weight:800; word-break:break-all; }
.dewu-batch-targets { display:grid; gap:4px; }
.dewu-batch-targets span { line-height:1.45; }
.dewu-batch-status { font-weight:800; }
.dewu-batch-status.ready,.dewu-batch-status.success { color:#16733c; }
.dewu-batch-status.warning { color:#9a6700; }
.dewu-batch-status.error { color:#b42318; }
.dewu-batch-image-actions { display:grid; grid-template-columns:auto 1fr auto auto; gap:10px; padding:15px 26px 18px; border-top:1px solid #e5eaf2; background:#fff; }
.dewu-product-rank { display: inline-grid; place-items: center; min-width: 28px; margin-right: 8px; padding: 3px 5px; border-radius: 6px; color: #1e5c86; background: #e8f3fb; font-size: 11px; font-weight: 800; }
.dewu-top-product-empty { padding: 34px !important; color: #7b8da0; text-align: center !important; }
.dewu-top-product-load-error { padding: 28px; border: 1px dashed #e6a7a7; border-radius: 10px; color: #a03737; background: #fff8f8; text-align: center; }
@media (max-width: 720px) {
  .dewu-top-products-section { padding: 14px; }
  .dewu-top-products-header,
  .dewu-top-product-card-header { flex-direction: column; gap: 9px; }
  .dewu-top-products-header-actions { align-items:flex-start; }
  .dewu-top-products-state { text-align: left; }
  .dewu-batch-image-head,.dewu-batch-image-body { padding-left:16px; padding-right:16px; }
  .dewu-batch-image-actions { grid-template-columns:1fr 1fr; padding:14px 16px; }
  .dewu-batch-image-actions span { display:none; }
}
.monthly-page th.monthly-actual {
  color: #8f294f;
  background: #fce7ef;
}
.monthly-page td.monthly-actual {
  background: #fff1f5;
}
.trend-cell.up { color: #067647; }
.trend-cell.down { color: #b42318; }
.error-text { color: #b42318; }
.password-dialog { width:min(460px,calc(100vw - 32px)); padding:22px; border:0; border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,.25); }
.password-dialog::backdrop { background:rgba(15,35,48,.45); }
.password-dialog form,.password-dialog label { display:grid; gap:10px; }
.password-dialog form { gap:16px; }
.password-dialog-header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.password-dialog-header h2 { margin:0 0 5px; }
.password-dialog-header p,.password-rule { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
.password-field { display:flex; align-items:stretch; gap:7px; width:100%; }
.password-field input { min-width:0; flex:1; width:auto!important; }
.password-field button { flex:none; padding-inline:11px; }
.password-dialog-actions { display:flex; align-items:center; gap:12px; }
.sidebar-user #changePasswordButton { width:100%; margin-bottom:8px; }
.weekly-import-dialog { width:min(1100px,calc(100vw - 32px)); max-height:calc(100vh - 40px); padding:0; overflow:hidden; border:0; border-radius:14px; box-shadow:0 22px 70px rgba(15,35,48,.28); }
.weekly-import-dialog::backdrop { background:rgba(15,35,48,.5); }
.weekly-import-header { margin:0; padding:22px 24px; color:#fff; background:linear-gradient(120deg,#075f87,#0c8db8); }
.weekly-import-header h2 { margin:4px 0 5px; }
.weekly-import-header p { margin:0; color:#dff5ff; }
.weekly-import-kicker { font-size:12px; letter-spacing:.12em; opacity:.85; }
.weekly-import-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:20px 22px 12px; background:#f6fafc; }
.weekly-import-steps section { display:flex; align-items:flex-start; gap:12px; min-height:150px; padding:16px; border:1px solid #d9e9f0; border-radius:10px; background:#fff; }
.weekly-import-steps section>span { display:grid; place-items:center; flex:none; width:28px; height:28px; border-radius:50%; color:#fff; background:#087fb0; font-weight:700; }
.weekly-import-steps section>div { display:grid; align-content:start; gap:9px; min-width:0; flex:1; }
.weekly-import-steps p { margin:0; min-height:42px; color:var(--muted); font-size:13px; line-height:1.55; }
.weekly-import-file { display:grid; gap:5px; min-width:0; }
.weekly-import-file input { width:100%; min-width:0; box-sizing:border-box; }
.weekly-import-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.weekly-import-state { margin:0 22px 14px; padding:10px 12px; border-radius:7px; color:#315064; background:#eaf6fb; }
.weekly-import-preview { max-height:420px; margin:12px 16px 18px; overflow:auto; border:1px solid var(--line); border-radius:8px; }
.weekly-import-preview table { width:100%; min-width:900px; border-collapse:collapse; }
.weekly-import-preview th,.weekly-import-preview td { padding:8px 10px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
.weekly-import-preview th { position:sticky; top:0; color:#fff; background:#087fb0; }
@media(max-width:900px){.weekly-import-steps{grid-template-columns:1fr}.weekly-import-steps section{min-height:0}.weekly-import-steps p{min-height:0}}

.content-weekly-page { overflow-x:hidden; }
.content-weekly-page main { display:grid; gap:16px; min-width:0; }
.content-upload-panel,
.content-preview-panel,
.content-report-meta,
.content-data-section { padding:16px; border:1px solid var(--line); border-radius:10px; background:#fff; min-width:0; max-width:100%; overflow:hidden; }
.content-filter-grid { display:grid; grid-template-columns:160px minmax(230px,260px) minmax(230px,260px) minmax(360px,1fr); gap:12px; align-items:end; }
.content-monthly-filter-grid { grid-template-columns:180px 220px minmax(360px,1fr); }
.content-filter-grid label { display:grid; gap:6px; min-width:0; font-weight:600; }
.content-upload-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:14px; }
.button-link { display:inline-flex; align-items:center; justify-content:center; padding:8px 12px; border-radius:7px; color:#fff; background:var(--accent); text-decoration:none; font-weight:600; }
.button-link.disabled-link { opacity:.45; cursor:not-allowed; pointer-events:auto; }
.content-report-meta { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.content-report-meta span { color:var(--muted); font-size:13px; }
.content-file-control { display:flex; align-items:center; gap:8px; min-width:0; }
.content-file-control input { width:100%; min-width:0; max-width:100%; flex:1; overflow:hidden; }
.content-file-control button { flex:none; white-space:nowrap; }
.content-data-section .table-wrap { width:100%; max-width:100%; max-height:420px; overflow-x:auto; overflow-y:auto; overscroll-behavior:contain; }
.content-table { min-width:100%; table-layout:fixed; border-collapse:separate; border-spacing:0; }
.product-content-table { width:2420px; }
.product-content-table { width:3100px; }
.bluev-content-table { width:1680px; }
.heating-content-table { width:1500px; }
.traffic-demand-table { width:640px; max-width:100%; }
.history-content-table { width:1680px; }
.content-inline-text { min-width:180px; }
.content-table th, .content-table td { box-sizing:border-box; width:108px; min-width:108px; max-width:108px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.content-table tbody td { position:static; left:auto; z-index:auto; }
.content-table thead th { position:sticky; top:0; left:auto; z-index:2; color:#fff; background:#087fb0; }
.content-table th:nth-child(2), .content-table th:nth-child(3), .content-table td:nth-child(2), .content-table td:nth-child(3) { width:150px; min-width:150px; max-width:150px; }
.content-table tfoot td { position:sticky; bottom:0; left:auto; z-index:1; color:#0b4663; background:#e7f5fb; border-top:2px solid #80c7df; font-weight:700; }
.content-table th:last-child,.content-table td:last-child { width:160px; min-width:160px; max-width:160px; }
.table-action-button { padding:6px 9px; margin:0 4px 0 0; font-size:12px; white-space:nowrap; }
.content-inline-input { width:calc(100% - 8px); min-width:72px; padding:6px 5px; border:1px solid #57a8c8; border-radius:5px; background:#fffdf2; text-align:right; box-sizing:border-box; }
.content-inline-input:focus { outline:2px solid rgba(8,127,176,.2); border-color:#087fb0; }
.content-editing-row td { background:#f8fcfe; }
.content-history-row > td { padding:0!important; max-width:none!important; width:auto!important; overflow:visible!important; background:#f8fbfd; }
.content-history-panel { padding:14px 16px; overflow-x:auto; }
.content-history-panel > strong { display:block; margin-bottom:9px; color:#0b4663; }
.content-history-table { min-width:1500px; width:100%; border-collapse:collapse; }
.content-history-table th,.content-history-table td { position:static!important; width:auto!important; min-width:105px!important; max-width:none!important; padding:7px 9px; border:1px solid #cfe2ec; background:#fff; text-align:right; }
.content-history-table th:first-child,.content-history-table td:first-child { min-width:190px!important; text-align:left; }
.content-history-table th { color:#0b4663; background:#dff2f9; }
.content-history-table td.history-changed { color:#a61b36; background:#fde7ed; font-weight:700; }
.content-product-dialog { width:min(980px,calc(100vw - 40px)); max-height:calc(100vh - 60px); padding:20px; border:0; border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,.25); }
.content-product-dialog::backdrop { background:rgba(15,35,48,.45); }
.content-product-form { display:grid; grid-template-columns:repeat(4,minmax(150px,1fr)); gap:12px; max-height:55vh; overflow-y:auto; padding:4px 2px 12px; }
.content-product-form label { display:grid; gap:6px; color:#315064; font-size:13px; }
.content-product-form input,.content-product-form select { width:100%; box-sizing:border-box; }
@media (max-width:1350px){.content-filter-grid{grid-template-columns:repeat(2,minmax(260px,1fr));}}
@media (max-width:900px){.content-product-form{grid-template-columns:repeat(2,minmax(140px,1fr));}}
@media (max-width:900px) { .content-filter-grid { grid-template-columns:1fr; } .content-report-meta { align-items:flex-start; flex-direction:column; } }

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.settings-dialog {
  width: min(860px, calc(100vw - 32px));
}

.daily-metric-config-dialog { width:min(1120px,calc(100vw - 32px)); height:min(760px,calc(100vh - 32px)); height:min(760px,calc(100dvh - 32px)); max-height:calc(100vh - 32px); padding:0; overflow:hidden; border:0; border-radius:16px; background:#f8fafc; box-shadow:0 28px 90px rgba(15,35,48,.3); }
.daily-metric-config-dialog[open] { display:grid; grid-template-rows:auto minmax(0,1fr); }
.daily-metric-config-dialog::backdrop { background:rgba(15,23,42,.54); backdrop-filter:blur(2px); }
.daily-metric-config-dialog > .dialog-head { padding:18px 22px; background:linear-gradient(135deg,#f4fbff,#fff); }
.daily-metric-config-dialog > .dialog-head h2 { margin:0; color:#123e56; font-size:21px; }
.daily-metric-config-dialog > .dialog-head p { margin:5px 0 0; color:#64748b; font-size:13px; }
.daily-config-tabs { display:flex; gap:8px; padding:11px 18px; border-top:0; border-bottom:1px solid #dce5eb; background:#fff; }
.daily-config-tabs button { min-width:120px; padding:8px 14px; color:#315064; background:#eef5f8; border-color:#dce5eb; }
.daily-config-tabs button.active { color:#fff; border-color:#176892; background:#176892; box-shadow:0 4px 12px rgba(23,104,146,.18); }
.daily-config-tabs button:disabled { cursor:not-allowed; opacity:.45; }
.daily-config-content { min-height:0; overflow:hidden; }
.daily-config-panel { height:100%; min-height:0; box-sizing:border-box; }
.daily-config-panel[hidden] { display:none; }
.daily-column-config-panel { display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; padding:18px 20px 0; }
.daily-formula-config-panel { display:grid; grid-template-rows:auto minmax(0,1fr) auto; padding:18px 20px 0; }
.daily-config-context { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; align-items:start; padding:11px 13px; border:1px solid #cfe2eb; border-radius:10px; color:#526273; background:#f4fbff; }
.daily-config-context > span { padding:3px 7px; border-radius:999px; color:#176892; background:#dff3fb; font-size:11px; font-weight:800; white-space:nowrap; }
.daily-config-context p { margin:1px 0 0; font-size:12px; line-height:1.6; }
.daily-column-tools { display:grid; grid-template-columns:minmax(260px,1fr) minmax(150px,190px) auto; gap:10px; align-items:end; margin-top:13px; padding-bottom:13px; border-bottom:1px solid #e4e9ed; }
.daily-column-tools label { display:grid; gap:6px; color:#526273; font-size:12px; }
.daily-column-tools input,.daily-column-tools select { width:100%; min-width:0; min-height:40px; box-sizing:border-box; }
.daily-column-counts { display:grid; justify-items:end; gap:3px; min-width:120px; padding-bottom:3px; }
.daily-column-counts strong { color:#153f56; font-size:13px; }
.daily-column-counts span { color:#64748b; font-size:11px; }
.daily-column-preference-list { display:grid; align-content:start; gap:8px; min-height:0; margin:0 -4px; padding:13px 4px; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; -webkit-overflow-scrolling:touch; }
.daily-column-preference-list[hidden],.daily-column-preference-item[hidden],.daily-formula-option[hidden] { display:none; }
.daily-column-preference-item { display:grid; grid-template-columns:auto auto minmax(0,1fr) auto; gap:12px; align-items:center; padding:11px 12px; border:1px solid #dce5eb; border-radius:10px; background:#fff; cursor:grab; transition:border-color .15s,background .15s,box-shadow .15s,opacity .15s; }
.daily-column-preference-item:hover { border-color:#79abc2; background:#f8fcfe; }
.daily-column-preference-item.is-visible { border-color:#b9d6e3; background:#f7fcfe; }
.daily-column-preference-item > input { width:17px; height:17px; margin:0; accent-color:#176892; }
.daily-column-preference-main { display:grid; gap:5px; min-width:0; }
.daily-column-preference-heading { display:flex; align-items:center; gap:8px; min-width:0; }
.daily-column-preference-heading strong { overflow:hidden; color:#153f56; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.daily-column-visibility { flex:none; padding:3px 7px; border-radius:999px; font-size:11px; font-weight:700; }
.daily-column-visibility.visible { color:#067647; background:#dcfae6; }
.daily-column-visibility.hidden { color:#667085; background:#eef1f4; }
.daily-column-order { color:#7a8994; font-size:11px; }
.daily-column-order-actions { display:flex; gap:6px; }
.daily-column-order-actions button { width:34px; height:32px; padding:0; color:#315f76; border-color:#cddde5; background:#fff; }
.daily-column-order-actions button:hover { color:#fff; border-color:#176892; background:#176892; }
.daily-config-actions { position:sticky; bottom:0; z-index:3; display:flex; justify-content:flex-end; gap:10px; margin:0 -20px; padding:13px 20px; border-top:1px solid #dce5eb; background:rgba(248,250,252,.96); backdrop-filter:blur(6px); }
.daily-config-actions button { min-width:118px; }
.daily-formula-workspace { display:grid; grid-template-columns:minmax(230px,270px) minmax(0,1fr); gap:14px; min-height:0; margin-top:13px; }
.daily-formula-catalog { display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-height:0; overflow:hidden; border:1px solid #dce5eb; border-radius:12px; background:#fff; }
.daily-formula-catalog-head { display:grid; gap:11px; padding:13px; border-bottom:1px solid #e4e9ed; background:#f8fbfc; }
.daily-formula-catalog-head > div { display:flex; justify-content:space-between; align-items:center; gap:8px; color:#153f56; }
.daily-formula-catalog-head > div span { color:#64748b; font-size:11px; }
.daily-formula-catalog-head > button { width:100%; color:#176892; border-color:#bdd6e1; background:#e8f3ff; }
.daily-formula-catalog-head label { display:grid; gap:5px; color:#526273; font-size:11px; }
.daily-formula-catalog-head input { width:100%; min-width:0; box-sizing:border-box; }
.daily-formula-list { display:grid; align-content:start; gap:7px; min-height:0; max-height:none; padding:10px; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; -webkit-overflow-scrolling:touch; }
.daily-formula-option { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; width:100%; padding:11px; color:#315064; border-color:transparent; background:#f6f9fa; text-align:left; }
.daily-formula-option:hover { border-color:#8db9ca; background:#f2faff; }
.daily-formula-option.active { color:#0b4663; border-color:#54a0bf; background:#e7f6fc; box-shadow:inset 3px 0 #176892; }
.daily-formula-option > span { display:grid; gap:4px; min-width:0; }
.daily-formula-option strong,.daily-formula-option small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.daily-formula-option strong { font-size:13px; }
.daily-formula-option small { color:#70818d; font-size:11px; font-weight:400; }
.daily-formula-option em { padding:3px 6px; border-radius:999px; color:#526273; background:#e8eef1; font-size:10px; font-style:normal; white-space:nowrap; }
.daily-formula-option.active em { color:#176892; background:#fff; }
.daily-formula-catalog .admin-metric-empty { margin:0 10px 10px; padding:18px 10px; font-size:12px; }
.daily-formula-editor { min-height:0; padding:17px 18px 18px; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; border:1px solid #dce5eb; border-radius:12px; background:#fff; }
.daily-formula-editor-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.daily-formula-editor-head > div > span { color:#70818d; font-size:11px; }
.daily-formula-editor-head h3 { margin:3px 0 4px; color:#123e56; font-size:19px; }
.daily-formula-editor-head p { margin:0; color:#64748b; font-size:12px; }
.daily-formula-source { flex:none; padding:5px 8px; border-radius:999px; color:#315064; background:#eef3f5; font-size:11px; font-weight:700; }
.daily-formula-source.store { color:#067647; background:#dcfae6; }
.daily-formula-steps { display:flex; gap:7px; margin:14px 0; padding:9px 11px; border-radius:8px; background:#f5f8fa; color:#526273; font-size:11px; }
.daily-formula-steps span { display:flex; flex:1; align-items:center; gap:6px; }
.daily-formula-steps b { display:grid; place-items:center; width:19px; height:19px; border-radius:50%; color:#fff; background:#4d829b; font-size:10px; }
.daily-formula-name { display:grid; gap:7px; margin-bottom:11px; color:#315064; font-size:12px; font-weight:700; }
.daily-formula-name input:disabled { color:#526273; background:#f2f5f7; }
.daily-formula-expression { display:grid; gap:7px; color:#315064; font-size:12px; font-weight:700; }
.daily-formula-expression textarea { width:100%; box-sizing:border-box; padding:12px; border:1px solid #77a8bd; border-radius:9px; color:#183b4c; background:#fbfdfe; resize:vertical; font:14px/1.6 Consolas,"Microsoft YaHei",monospace; }
.daily-formula-expression textarea:focus { outline:3px solid rgba(23,104,146,.12); border-color:#176892; }
.daily-formula-meaning { margin-top:7px; padding:8px 10px; border-left:3px solid #64a9c5; color:#315064; background:#f1f9fc; font-size:12px; line-height:1.55; }
.daily-formula-fields { margin-top:12px; padding:10px 12px; border:1px solid #dce5eb; border-radius:9px; background:#f9fbfc; color:#315064; font-size:12px; }
.daily-formula-fields > strong { display:block; margin-bottom:3px; }
.daily-formula-fields > p { margin:0 0 8px; color:#7a8994; font-size:11px; }
.daily-formula-fields > div { display:flex; flex-wrap:wrap; gap:6px; }
.daily-formula-fields button { padding:5px 8px; color:#174f82; border-color:#bdd6e1; background:#e8f3ff; font:12px Consolas,"Microsoft YaHei",monospace; }
.daily-formula-fields button:hover { color:#fff; border-color:#176892; background:#176892; }
.daily-formula-controls { display:grid; grid-template-columns:repeat(2,minmax(180px,1fr)); gap:12px; margin-top:12px; }
.daily-formula-controls label { display:grid; gap:6px; padding:11px; color:#315064; border:1px solid #dce5eb; border-radius:9px; background:#fff; font-size:12px; font-weight:700; }
.daily-formula-controls select,.daily-formula-controls input { width:100%; min-width:0; box-sizing:border-box; }
.daily-formula-controls small { color:#7a8994; font-size:10px; font-weight:400; line-height:1.45; }
.daily-formula-sample { margin-top:12px; padding:11px 12px; border:1px solid #d5e3e9; border-radius:9px; background:#f8fbfc; }
.daily-formula-sample > div:first-child { display:flex; justify-content:space-between; align-items:center; gap:10px; color:#315064; font-size:12px; }
.daily-formula-sample > div:first-child span { color:#7a8994; font-size:10px; }
.daily-formula-sample-values { display:flex; flex-wrap:wrap; gap:7px; margin-top:9px; }
.daily-formula-sample-values > div { display:grid; gap:2px; min-width:105px; padding:7px 9px; border-radius:7px; background:#fff; }
.daily-formula-sample-values span { color:#7a8994; font-size:10px; }
.daily-formula-sample-values strong { color:#153f56; font-size:12px; }
.daily-formula-sample-values p { margin:0; color:#7a8994; font-size:11px; }
.daily-formula-preview-result { margin-top:9px; padding-top:9px; border-top:1px dashed #cbd9df; color:#0b627f; font-size:13px; font-weight:800; }
.daily-formula-actions { display:flex; align-items:center; gap:8px; margin-top:13px; flex-wrap:wrap; }
.daily-formula-action-spacer { flex:1; }
.daily-formula-actions button { min-width:104px; }
.daily-formula-actions button:first-child { color:#174f82; background:#eef6fa; }
.daily-formula-actions #dailyFormulaDelete { color:#b42318; border-color:#f1b7b2; background:#fff1f0; }
.daily-formula-card-state { min-height:18px; margin-top:8px; color:#315064; font-size:11px; }
.daily-formula-global-state { min-height:18px; margin:0 -20px; padding:10px 20px; border-top:1px solid #dce5eb; color:#315064; background:rgba(248,250,252,.96); font-size:12px; }
.admin-formula-expression { grid-column:1 / -1; }
.admin-formula-expression textarea { width:100%; box-sizing:border-box; padding:9px 10px; border:1px solid #9db7c5; border-radius:7px; resize:vertical; font:13px/1.5 Consolas,"Microsoft YaHei",monospace; }
.report-formula-fields { grid-column:1 / -1; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:#f7fafc; }
.report-formula-fields strong { display:block; margin-bottom:7px; color:#526273; font-size:13px; }
.report-formula-fields > div { display:flex; flex-wrap:wrap; gap:6px; }
.report-formula-fields button { padding:5px 8px; color:#174f82; background:#e8f3ff; font:12px Consolas,"Microsoft YaHei",monospace; }
@media (max-width:760px) {
  .daily-metric-config-dialog { width:calc(100vw - 18px); height:calc(100vh - 18px); height:calc(100dvh - 18px); max-height:calc(100vh - 18px); }
  .daily-metric-config-dialog > .dialog-head { padding:14px; }
  .daily-metric-config-dialog > .dialog-head p { display:none; }
  .daily-config-tabs { padding:9px 12px; overflow-x:auto; }
  .daily-config-tabs button { min-width:110px; }
  .daily-config-content { overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
  .daily-config-panel { height:auto; min-height:100%; overflow:visible; }
  .daily-column-config-panel,.daily-formula-config-panel { display:block; padding:13px 13px 0; }
  .daily-column-tools { grid-template-columns:1fr; }
  .daily-column-counts { grid-template-columns:auto auto; justify-content:space-between; justify-items:start; min-width:0; }
  .daily-column-preference-list { max-height:45vh; }
  .daily-column-preference-item { grid-template-columns:auto auto minmax(0,1fr); }
  .daily-column-order-actions { grid-column:3; justify-content:flex-end; }
  .daily-config-actions { bottom:0; margin:0 -13px; padding:11px 13px; }
  .daily-formula-workspace { display:block; }
  .daily-formula-catalog { max-height:250px; margin-bottom:12px; }
  .daily-formula-list { min-height:120px; max-height:160px; }
  .daily-formula-editor { overflow:visible; padding:14px; }
  .daily-formula-steps { overflow-x:auto; }
  .daily-formula-steps span { min-width:104px; }
  .daily-formula-controls { grid-template-columns:1fr; }
  .daily-formula-actions { justify-content:flex-start; }
  .daily-formula-action-spacer { display:none; }
  .daily-formula-global-state { position:sticky; bottom:0; margin:0 -13px; padding:10px 13px; }
}

.dialog-help {
  margin: 12px 16px 0;
  color: var(--muted);
}

.metric-preference-list,
.admin-metric-list {
  max-height: 52vh;
  overflow: auto;
  padding: 12px 16px;
}

.metric-preference-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  cursor: grab;
  transition: background .15s, box-shadow .15s, opacity .15s;
}

.metric-preference-item button {
  width: 34px;
  padding: 5px;
}

.preference-drag-handle,
.metric-preference-item .preference-drag-handle,
.daily-column-preference-item .preference-drag-handle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  color: #607987;
  border: 1px solid transparent;
  background: transparent;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  font-size: 20px;
  line-height: 1;
}

.preference-drag-handle:hover,
.preference-drag-handle:focus-visible {
  color: #176892;
  border-color: #a8c9d8;
  background: #eef8fc;
}

.preference-drag-handle.is-dragging { cursor: grabbing; }
.metric-preference-list.is-sorting,
.daily-column-preference-list.is-sorting { user-select: none; }
.metric-preference-item.is-dragging,
.daily-column-preference-item.is-dragging {
  z-index: 2;
  opacity: .58;
  background: #eaf7fc;
  box-shadow: 0 8px 22px rgba(15, 61, 82, .18);
}
.metric-preference-item.preference-drop-before,
.daily-column-preference-item.preference-drop-before { box-shadow: inset 0 3px #1882ad; }
.metric-preference-item.preference-drop-after,
.daily-column-preference-item.preference-drop-after { box-shadow: inset 0 -3px #1882ad; }

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}

.metric-formula-view {
  margin-left: 7px;
  padding: 2px 7px;
  border-color: #b8dce9;
  border-radius: 999px;
  color: #176892;
  background: #eef9fc;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
}
.metric-formula-view:hover { border-color: #1882ad; background: #dff3fb; }
.metric-formula-dialog { width: min(680px, calc(100vw - 32px)); }
.metric-formula-dialog .dialog-head { align-items: flex-start; }
.metric-formula-dialog .dialog-head h2 { margin: 0; }
.metric-formula-dialog .dialog-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.metric-formula-dialog pre { margin: 20px 20px 12px; padding: 16px; overflow: auto; border: 1px solid #cfe2eb; border-radius: 10px; color: #123e56; background: #f4fbff; white-space: pre-wrap; word-break: break-word; }
.metric-formula-dialog > .dialog-help { margin: 0; padding: 0 20px 20px; line-height: 1.7; }

.admin-metric-dialog {
  width: min(1180px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 32px));
  height: min(760px, calc(100dvh - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: 0 28px 90px rgba(15, 35, 48, .3);
}

.admin-metric-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.admin-metric-dialog::backdrop { background: rgba(15, 23, 42, .54); backdrop-filter: blur(2px); }
.admin-metric-dialog > .dialog-head { padding: 18px 22px; background: linear-gradient(135deg, #f4fbff, #fff); }
.admin-metric-dialog > .dialog-head h2 { margin: 0; color: #123e56; font-size: 21px; }
.admin-metric-dialog > .dialog-head p { margin: 5px 0 0; color: #64748b; font-size: 13px; }
.admin-metric-layout { display: grid; grid-template-columns: minmax(310px, .8fr) minmax(520px, 1.45fr); min-height: 0; overflow: hidden; }
.admin-metric-catalog { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); min-width: 0; min-height: 0; padding: 18px; overflow: hidden; border-right: 1px solid #dce5eb; background: #fff; }
.admin-metric-catalog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-metric-catalog-head > div { display: grid; gap: 3px; }
.admin-metric-catalog-head strong { color: #153f56; font-size: 16px; }
.admin-metric-catalog-head span { color: #64748b; font-size: 12px; }
.admin-metric-catalog-head button { padding: 7px 10px; color: #fff; border-color: #176892; background: #176892; font-size: 13px; white-space: nowrap; }
.admin-metric-search { display: grid; gap: 6px; margin-top: 16px; color: #526273; font-size: 12px; }
.admin-metric-search input { width: 100%; min-height: 40px; box-sizing: border-box; padding-left: 12px; border-color: #9db7c5; background: #fbfdff; }
.admin-metric-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.admin-metric-filters label { display: grid; gap: 5px; color: #64748b; font-size: 12px; }
.admin-metric-filters select { width: 100%; min-width: 0; box-sizing: border-box; }
.admin-metric-list { min-height: 0; max-height: none; margin: 12px -4px 0; padding: 0 4px 8px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.admin-metric-empty { align-self: start; margin-top: 18px; padding: 22px 14px; border: 1px dashed #b8c8d2; border-radius: 10px; color: #64748b; background: #f8fafc; font-size: 13px; line-height: 1.6; text-align: center; }
.admin-metric-item { display: grid; gap: 5px; width: 100%; margin-bottom: 8px; padding: 11px 12px; text-align: left; color: var(--text); background: #fff; border-color: #dce5eb; border-radius: 10px; }
.admin-metric-item:hover { border-color: #79abc2; background: #f6fbfe; }
.admin-metric-item.is-selected { border-color: #14789f; background: #eef9fd; box-shadow: 0 0 0 2px rgba(20, 120, 159, .12); }
.admin-metric-item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.admin-metric-item-head strong { overflow: hidden; color: #153f56; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.admin-metric-status { flex: none; padding: 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.admin-metric-status.enabled { color: #067647; background: #dcfae6; }
.admin-metric-status.disabled { color: #667085; background: #eef1f4; }
.admin-metric-item-category { color: #315f76; font-size: 12px; font-weight: 700; }
.admin-metric-item-source { overflow: hidden; color: #526273; font: 12px/1.45 Consolas, "Microsoft YaHei", monospace; text-overflow: ellipsis; white-space: nowrap; }
.admin-metric-item-meta { color: #7a8994; font-size: 11px; }

.admin-metric-form { display: block; min-width: 0; min-height: 0; padding: 20px 22px 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; background: #f8fafc; }
.admin-metric-form-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.admin-metric-form-head span { display: inline-block; margin-bottom: 3px; color: #14789f; font-size: 12px; font-weight: 800; }
.admin-metric-form-head h3 { margin: 0; color: #153f56; font-size: 19px; }
.admin-metric-form-head > small { color: #7a8994; font-size: 11px; }
.admin-metric-form-section { margin-bottom: 14px; padding: 16px; border: 1px solid #dce5eb; border-radius: 12px; background: #fff; }
.admin-metric-form-section h4 { margin: 0 0 13px; color: #315f76; font-size: 14px; }
.admin-metric-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.admin-metric-form label { align-content: start; }
.admin-metric-form label > small { color: #87949d; font-size: 11px; }
.admin-metric-form input:not([type="checkbox"]), .admin-metric-form select, .admin-metric-form textarea { width: 100%; box-sizing: border-box; }
.admin-metric-form .admin-formula-expression { margin-top: 14px; }
.admin-formula-expression > small { display: block; margin-top: -3px; }
.admin-metric-form .report-formula-fields { margin-top: 12px; }
.report-formula-fields p { margin: -2px 0 8px; color: #7a8994; font-size: 11px; }
.admin-metric-status-section .check-label { display: flex; align-items: flex-start; gap: 10px; color: #153f56; }
.admin-metric-status-section .check-label input { flex: none; margin-top: 3px; }
.admin-metric-status-section .check-label span { display: grid; gap: 3px; }
.admin-metric-status-section .check-label small { color: #7a8994; font-size: 11px; font-weight: 400; }
.admin-metric-form-actions { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 0 -22px; padding: 14px 22px; border-top: 1px solid #dce5eb; background: rgba(248, 250, 252, .96); backdrop-filter: blur(6px); }
.admin-metric-form-actions [role="status"] { min-width: 0; margin-right: auto; color: #526273; font-size: 12px; line-height: 1.45; }
.admin-metric-form-actions [role="status"].success-text { color: #067647; font-weight: 700; }
.admin-metric-form-actions button { min-width: 120px; }

@media (max-width: 920px) {
  .admin-metric-dialog { width: calc(100vw - 18px); height: calc(100vh - 18px); height: calc(100dvh - 18px); max-height: calc(100vh - 18px); }
  .admin-metric-layout { display: block; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .admin-metric-catalog { display: block; min-height: 0; padding: 15px; overflow: visible; border-right: 0; border-bottom: 1px solid #dce5eb; }
  .admin-metric-list { max-height: 300px; }
  .admin-metric-form { overflow: visible; }
}

@media (max-width: 560px) {
  .admin-metric-dialog > .dialog-head { padding: 14px; }
  .admin-metric-dialog > .dialog-head p { display: none; }
  .admin-metric-filters, .admin-metric-field-grid { grid-template-columns: 1fr; }
  .admin-metric-form { padding: 15px 14px 0; }
  .admin-metric-form-section { padding: 13px; }
  .admin-metric-form-actions { bottom: 0; margin: 0 -14px; padding: 12px 14px; }
}

.report-fullscreen .topbar,
.report-fullscreen main > :not(.weekly-matrix-shell):not(.fullscreen-table-shell) {
  display: none;
}

.report-fullscreen .weekly-matrix-shell,
.report-fullscreen .fullscreen-table-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
  margin: 0;
  border-radius: 0;
  background: #fff;
}

.top-products-page.report-fullscreen {
  overflow: hidden;
}

.taobao-top50-summary { grid-template-columns: repeat(7, minmax(110px, 1fr)); }
.taobao-top50-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.taobao-top50-filters label { display: grid; gap: 5px; font-weight: 700; color: #526b82; }
.taobao-top50-filters input { min-width: 180px; }
.taobao-top50-table-wrap { max-height: calc(100vh - 330px); overflow: auto; position: relative; border: 1px solid #d8e2ec; border-radius: 12px; background: #f8fbfd; scrollbar-color: #91a8bc #edf3f7; }
.taobao-top50-table-wrap table { width: max-content; min-width: 1760px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.taobao-top50-table-wrap th, .taobao-top50-table-wrap td { box-sizing: border-box; padding: 10px 12px; border-bottom: 1px solid #e6edf3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.taobao-top50-table-wrap thead th { position: sticky; top: 0; z-index: 3; height: 44px; background: linear-gradient(180deg, #2e6b95, #245d84); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 2px 5px rgba(34, 73, 103, .18); }
.taobao-top50-table-wrap tbody td { height: 43px; color: #29435b; font-size: 13px; }
.taobao-top50-table-wrap tbody tr:nth-child(even) td { background: #f4f8fb; }
.taobao-top50-table-wrap tbody tr:hover td { background: #e9f3fb; }
.taobao-top50-table-wrap th:nth-child(1), .taobao-top50-table-wrap td:nth-child(1) { position: sticky; left: 0; z-index: 2; background: #fff; }
.taobao-top50-table-wrap tbody tr:nth-child(even) td:nth-child(1) { background: #f4f8fb; }
.taobao-top50-table-wrap tbody tr:hover td:nth-child(1) { background: #e9f3fb; }
.taobao-top50-table-wrap thead th:nth-child(1) { z-index: 4; background: #245d84; }
.taobao-top50-table-wrap th:nth-child(1), .taobao-top50-table-wrap td:nth-child(1) { box-shadow: 4px 0 8px -7px rgba(21, 53, 79, .75); }
.taobao-top50-table-wrap .taobao-col-rank { width: 64px; text-align: center; }
.taobao-top50-table-wrap .taobao-col-date { width: 112px; text-align: center; }
.taobao-top50-table-wrap .taobao-col-id { width: 150px; text-align: left; }
.taobao-top50-table-wrap .taobao-col-name { width: 250px; text-align: left; }
.taobao-top50-table-wrap .taobao-col-count { width: 94px; text-align: right; }
.taobao-top50-table-wrap .taobao-col-money { width: 116px; text-align: right; }
.taobao-top50-table-wrap .taobao-col-rate { width: 104px; text-align: right; }
.taobao-top50-table-wrap .taobao-col-roi { width: 102px; text-align: right; }
.taobao-top50-table-wrap .taobao-col-status { width: 190px; text-align: left; color: #526b82; }
.taobao-top50-table-wrap .taobao-col-name { overflow: hidden; text-overflow: ellipsis; }
.taobao-top50-table-wrap .taobao-col-rate, .taobao-top50-table-wrap .taobao-col-roi { font-variant-numeric: tabular-nums; }
.taobao-top50-table-wrap .taobao-cell.negative-value { color: #b42318; font-weight: 800; }
.taobao-top50-table-wrap::-webkit-scrollbar { width: 12px; height: 12px; }
.taobao-top50-table-wrap::-webkit-scrollbar-track { background: #edf3f7; border-radius: 999px; }
.taobao-top50-table-wrap::-webkit-scrollbar-thumb { background: #91a8bc; border: 3px solid #edf3f7; border-radius: 999px; }
.taobao-top50-table-wrap::-webkit-scrollbar-thumb:hover { background: #6f8ca5; }
.taobao-top50-quality { margin: 12px 0; padding: 10px 14px; border: 1px solid #f0c36d; background: #fff8e6; color: #8a5a00; border-radius: 8px; }
.taobao-top50-quality strong { display: block; margin-bottom: 6px; color: #744700; }
.taobao-top50-quality ul { margin: 0; padding-left: 20px; }
.taobao-top50-quality li + li { margin-top: 4px; }
.negative-value { color: #b42318; font-weight: 800; }
@media (max-width: 1000px) { .taobao-top50-summary { grid-template-columns: repeat(3, minmax(110px, 1fr)); } .taobao-top50-table-wrap th, .taobao-top50-table-wrap td { padding-left: 9px; padding-right: 9px; } .taobao-top50-table-wrap .taobao-col-name { width: 210px; } .taobao-top50-table-wrap .taobao-col-status { width: 170px; } }

.report-fullscreen .weekly-matrix-page,
.report-fullscreen main {
  padding: 0;
  margin: 0;
}

.report-fullscreen .weekly-matrix-page .table-wrap,
.report-fullscreen .table-wrap {
  height: calc(100vh - 58px);
  max-height: none;
}

/* Keep the final row above the fixed 20px horizontal scrollbar in fullscreen. */
.report-fullscreen #weeklyTableWrap {
  height: calc(100vh - 82px);
  scroll-padding-bottom: 24px;
}

.accounts-main {
  display: grid;
  grid-template-columns: minmax(520px, 1.05fr) minmax(520px, 1fr);
  gap: 18px;
  align-items: start;
}

.account-readonly-notice {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid #b7d8c2;
  border-radius: 12px;
  color: #185b36;
  background: #edf8f1;
}

.account-readonly-notice[hidden] {
  display: none;
}

.account-editor button:disabled,
.store-visibility-section button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}

.admin-side-entry {
  position: fixed;
  left: 0;
  top: 42%;
  z-index: 25;
  display: grid;
  gap: 3px;
  justify-items: center;
  width: 72px;
  padding: 10px 7px;
  border: 1px solid #b2ccff;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: #1849a9;
  background: #eff8ff;
  box-shadow: 2px 4px 12px rgba(16, 24, 40, 0.12);
  font-size: 12px;
  text-decoration: none;
}

.admin-side-entry[hidden] {
  display: none !important;
}

.admin-side-entry span {
  font-size: 19px;
  line-height: 1;
}

.admin-side-entry:hover,
.admin-side-entry.active {
  color: #fff;
  background: var(--accent);
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 200px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #d0d5dd;
  background: #101828;
  box-shadow: 2px 0 10px rgba(16, 24, 40, 0.14);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  height: 76px;
  padding: 0 20px;
  border-bottom: 1px solid #344054;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-nav {
  display: grid;
  align-content: start;
  flex: 1;
  gap: 4px;
  padding: 14px 10px 24px;
  visibility: hidden;
}

.sidebar-nav.permissions-ready { visibility: visible; }

body:not(.permissions-ready):not(.login-page):not(.error-page) a[href^="/"] { visibility: hidden; }

.sidebar-nav a[hidden],
body.permissions-ready a[hidden] { display: none !important; }

.sidebar-menu-empty {
  margin: 12px 10px;
  color: #98a2b3;
  font-size: 13px;
  line-height: 1.6;
}

.sidebar-group-title {
  padding: 14px 10px 6px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* 侧边栏子项：父项小标题 + 缩进的平台级页面链接（分析表按平台拆分） */
.sidebar-subgroup-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 11px 4px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sidebar-nav a.sidebar-sub-link {
  padding-left: 34px;
  font-size: 13px;
  font-weight: 500;
}

/* 子分组标题会同时带上 .sidebar-collapsible-title（其 padding:0 生效），这里用双类名覆盖回缩进与间距 */
.sidebar-subgroup-title.sidebar-collapsible-title {
  display: block;
  padding: 8px 11px 2px;
  margin-top: 4px;
}

.sidebar-nav a.sidebar-sub-link > span {
  width: 20px;
  height: 20px;
  font-size: 11px;
}
.sidebar-nav a.sidebar-sub-sub-link { padding-left: 48px; font-size: 12px; }

.sidebar-collapsible-title {
  padding: 0;
}

.sidebar-group-toggle {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.sidebar-group-toggle:hover {
  background: #eef4ff;
  color: #285fca;
}

.sidebar-toggle-icon {
  font-size: 16px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.sidebar-collapsible-title.is-collapsed .sidebar-toggle-icon {
  transform: rotate(-90deg);
}

.sidebar-nav a.report-menu-collapsed,
.sidebar-nav a.sidebar-menu-collapsed {
  display: none;
}

/* 分组（如「专项中心」）收起时，带子项的入口小标题要跟着一起隐藏；
   否则平台子项虽被隐藏，父小标题仍留在侧边栏上，看起来像没收起 */
.sidebar-nav a.sidebar-group-collapsed,
.sidebar-nav .sidebar-subgroup-title.sidebar-group-collapsed {
  display: none;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 7px;
  color: #d0d5dd;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.sidebar-nav a > span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: #b2ccff;
  background: #1d2939;
  font-size: 12px;
}

.sidebar-nav a:hover {
  color: #fff;
  background: #1d2939;
}

.sidebar-nav a.active {
  color: #fff;
  background: #175cd3;
}

.sidebar-nav a.active > span {
  color: #175cd3;
  background: #fff;
}

/* Script center */
.script-center-main { padding:24px; display:grid; gap:18px; min-width:0; }
.script-center-main.script-permission-pending > :not(#scriptCenterPermissionState),
.script-center-main.script-permission-denied > :not(#scriptCenterPermissionState),
.script-center-main.script-permission-error > :not(#scriptCenterPermissionState) { display:none !important; }
.script-center-permission-state { display:flex; align-items:flex-start; gap:14px; max-width:720px; margin:clamp(56px,12vh,140px) auto; padding:22px 24px; border:1px solid #d6e2f0; border-radius:16px; background:linear-gradient(135deg,#f8fbff,#fff); box-shadow:0 12px 30px rgb(30 65 105 / 7%); }
.script-center-permission-state[hidden] { display:none !important; }
.script-center-permission-icon { display:grid; flex:0 0 38px; width:38px; height:38px; place-items:center; border-radius:12px; color:#175cd3; background:#e8f1ff; font-weight:800; }
.script-center-permission-state strong { display:block; color:#1d2939; font-size:17px; }
.script-center-permission-state p { margin:6px 0 0; color:#667085; line-height:1.6; }
.script-center-permission-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.script-center-main.script-permission-denied .script-center-permission-icon { color:#b42318; background:#fff0ee; }
.script-center-main.script-permission-error .script-center-permission-icon { color:#875b00; background:#fff6dd; }
.script-center-top-actions,.dialog-actions { display:flex; gap:8px; align-items:center; }
.script-summary { grid-template-columns:repeat(6,minmax(0,1fr)); }
.script-view-tabs { display:flex; align-items:center; gap:8px; padding:6px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.script-view-tabs button { background:transparent; color:#526171; }
.script-view-tabs button.active { background:var(--accent-soft); color:#0b4aa2; }
.script-view-tabs #loadState { margin-left:auto; padding-right:10px; color:var(--muted); font-size:12px; }
.script-view-panel { min-width:0; }
.script-view-panel[hidden] { display:none !important; }
.script-filters { display:grid; grid-template-columns:minmax(220px,1.5fr) minmax(125px,.7fr) minmax(150px,.9fr) minmax(150px,.9fr) minmax(135px,.75fr) auto; align-items:end; }
.script-global-filters { padding:16px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.script-filter-set { display:contents; }
.script-filter-set[hidden] { display:none; }
.script-global-filters[data-active-view="requests"] { grid-template-columns:minmax(240px,1.5fr) repeat(2,minmax(150px,.8fr)) auto; }
.script-global-filters[data-active-view="scripts"] { grid-template-columns:minmax(200px,1.25fr) repeat(5,minmax(122px,.7fr)) auto; }
.script-global-filters[data-active-view="agents"] { grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(150px,.8fr)) auto; }
.script-global-filters[data-active-view="runs"] { grid-template-columns:minmax(230px,1.35fr) repeat(4,minmax(135px,.75fr)) auto; }
.script-filter-actions { display:flex; gap:8px; align-items:center; }
.script-dashboard-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:14px; }
.script-dashboard-head h2,.script-chart-head h3 { margin:0; color:#1d2939; }.script-dashboard-head h2 { font-size:19px; }.script-chart-head h3 { font-size:15px; }
.script-dashboard-head p,.script-chart-head p { margin:5px 0 0; color:var(--muted); font-size:12px; }.script-dashboard-head > strong { color:#174f82; font-size:18px; }
.script-chart-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.script-chart-panel { min-width:0; padding:18px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 5px 16px rgb(30 45 60 / 5%); }
.script-chart-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }.script-chart-head > strong { color:#1d2939; font-size:24px; }.script-chart-head > small { color:var(--muted); font-size:11px; }
.script-donut-layout { display:grid; grid-template-columns:160px minmax(150px,1fr); align-items:center; gap:24px; min-height:190px; padding-top:10px; }
.script-donut { --slice-1:0deg; --slice-2:0deg; position:relative; display:grid; place-items:center; width:154px; aspect-ratio:1; border-radius:50%; }
.script-donut::after { position:absolute; inset:29px; content:""; border-radius:50%; background:#fff; box-shadow:inset 0 0 0 1px rgb(15 62 105 / 7%); }
.script-donut > span { position:relative; z-index:1; text-align:center; }.script-donut > span strong,.script-donut > span small { display:block; }.script-donut > span strong { color:#1d2939; font-size:28px; }.script-donut > span small { margin-top:2px; color:var(--muted); font-size:11px; }
.kind-donut { background:conic-gradient(#3378ce 0 var(--slice-1),#12a879 var(--slice-1) var(--slice-2),#7a5af8 var(--slice-2) 360deg); }
.kind-donut.rpa-scope { background:conic-gradient(#7a5af8 0 var(--slice-1),#3378ce var(--slice-1) 360deg); }
.status-donut { background:conic-gradient(#12a879 0 var(--slice-1),#f0a429 var(--slice-1) var(--slice-2),#98a2b3 var(--slice-2) 360deg); }
.frequency-donut { background:conic-gradient(#3378ce 0 var(--slice-1),#12a879 var(--slice-1) var(--slice-2),#f0a429 var(--slice-2) var(--slice-3),#98a2b3 var(--slice-3) 360deg); }
.script-chart-legend { display:grid; gap:12px; }.script-legend-row { display:flex; justify-content:space-between; align-items:center; gap:14px; padding-bottom:9px; border-bottom:1px solid #edf1f5; }.script-legend-row:last-child { border-bottom:0; }
.script-legend-row > span { display:flex; align-items:center; gap:8px; color:#526171; font-size:12px; }.script-legend-row > strong { color:#1d2939; font-size:14px; }.chart-swatch { width:10px; height:10px; border-radius:3px; }.swatch-manual { background:#3378ce; }.swatch-powershell,.swatch-ready { background:#12a879; }.swatch-other { background:#7a5af8; }.swatch-pending { background:#f0a429; }.swatch-disabled { background:#98a2b3; }
.swatch-frequency-1 { background:#3378ce; }.swatch-frequency-2 { background:#12a879; }.swatch-frequency-3 { background:#f0a429; }.swatch-frequency-4 { background:#98a2b3; }
.script-plan-head { align-items:center; padding-bottom:16px; border-bottom:1px solid #e6edf5; }
.script-plan-panel { grid-column:1/-1; }
.script-plan-primary { display:grid; justify-items:end; min-width:150px; }.script-plan-primary > small { color:#667085; font-size:11px; }.script-plan-primary > strong { color:#123f6d; font-size:20px; line-height:1.15; }.script-plan-primary > strong b { font-size:34px; }.script-plan-primary > span { margin-top:3px; color:#667085; font-size:11px; }
.script-plan-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:16px; }
.script-plan-overview > span { display:grid; gap:4px; padding:11px 13px; border:1px solid #dce5ee; border-radius:9px; background:#f8fafc; }
.script-plan-overview small { color:#667085; font-size:11px; }.script-plan-overview strong { color:#1d2939; font-size:24px; }.script-plan-overview em { overflow:hidden; color:#98a2b3; font-size:10px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.script-plan-context { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }.script-plan-context > span { padding:6px 10px; border-radius:999px; color:#526171; background:#eef2f6; font-size:11px; }.script-plan-context > span b { margin-left:4px; color:#1d2939; }.script-plan-context > span.warning { color:#875b00; background:#fff3d6; }.script-plan-context > span.warning b { color:#875b00; }
.script-plan-status-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-top:12px; }
.script-plan-status { display:grid; gap:5px; min-width:0; padding:10px; border-left:3px solid #98a2b3; border-radius:8px; background:#f7f9fb; }
.script-plan-status small { overflow:hidden; color:#526171; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }.script-plan-status strong { color:#1d2939; font-size:18px; }
.script-plan-status.plan-completed { border-left-color:#12a879; background:#eef9f2; }.script-plan-status.plan-pending { border-left-color:#f0a429; background:#fff9e8; }.script-plan-status.plan-failed,.script-plan-status.plan-overdue { border-left-color:#d04438; background:#fff5f4; }.script-plan-status.plan-running { border-left-color:#3378ce; background:#eef5ff; }
.script-plan-note { margin:12px 0 0; color:#667085; font-size:11px; line-height:1.6; }
.plan-status { margin-top:7px!important; }.plan-status.plan-completed { color:#176c3a; background:#e5f7ec; }.plan-status.plan-pending { color:#875b00; background:#fff3d6; }.plan-status.plan-failed,.plan-status.plan-overdue { color:#a8201a; background:#fee9e7; }.plan-status.plan-running { color:#185ea8; background:#e8f2ff; }.plan-status.plan-unconfigured,.plan-status.plan-not_due,.plan-status.plan-on_demand,.plan-status.plan-disabled { color:#526171; background:#edf1f5; }
.script-bar-chart { display:grid; gap:11px; margin-top:20px; }.script-bar-row { display:grid; grid-template-columns:minmax(82px,120px) minmax(120px,1fr) 34px; align-items:center; gap:10px; min-width:0; }.script-bar-label { overflow:hidden; color:#526171; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.script-bar-track { height:10px; overflow:hidden; border-radius:999px; background:#edf2f7; }.script-bar-fill { height:100%; border-radius:999px; transition:width .2s ease; }.script-bar-fill.primary { background:#3378ce; }.script-bar-fill.secondary { background:#12a879; }.script-bar-fill.usage { background:#7a5af8; }.script-bar-row > strong { color:#1d2939; font-size:12px; text-align:right; }
.script-scroll-chart { max-height:286px; overflow-y:auto; overscroll-behavior:contain; padding:2px 8px 2px 0; scrollbar-gutter:stable; }
.script-scroll-chart:focus-visible { outline:2px solid #72a7e8; outline-offset:4px; }
.script-scroll-chart::-webkit-scrollbar { width:9px; }.script-scroll-chart::-webkit-scrollbar-track { border-radius:999px; background:#edf2f7; }.script-scroll-chart::-webkit-scrollbar-thumb { border:2px solid #edf2f7; border-radius:999px; background:#8ca5bd; }.script-scroll-chart::-webkit-scrollbar-thumb:hover { background:#6888a7; }
.script-daily-chart { display:grid; grid-template-columns:repeat(14,minmax(24px,1fr)); gap:8px; align-items:end; min-height:210px; margin-top:18px; padding:12px 4px 0; border-bottom:1px solid #d8e0e8; }
.script-daily-item { display:grid; grid-template-rows:20px 150px 20px; align-items:end; min-width:0; text-align:center; }.script-daily-item strong { color:#526171; font-size:11px; }.script-daily-item span { padding-top:5px; color:var(--muted); font-size:10px; white-space:nowrap; }.script-daily-track { position:relative; height:100%; background:linear-gradient(to top,transparent 49%,#edf1f5 50%,transparent 51%); }.script-daily-fill { position:absolute; right:20%; bottom:0; left:20%; min-width:6px; border-radius:5px 5px 0 0; background:#3378ce; transition:height .2s ease; }
.script-list-head { display:flex; justify-content:space-between; gap:18px; align-items:end; margin-top:16px; padding:0 2px; }
.script-list-head h2 { margin:0; color:#1d2939; font-size:18px; }.script-list-head p { margin:5px 0 0; color:var(--muted); font-size:12px; }
.script-list-head label { min-width:110px; color:var(--muted); font-size:12px; }.script-list-head select { width:100%; margin-top:5px; padding:8px 30px 8px 10px; }
.script-agent-tools { display:flex; align-items:end; gap:10px; }
.script-global-agent-card { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:14px; padding:16px 18px; border:1px solid #b8d3f3; border-radius:12px; background:linear-gradient(110deg,#edf6ff,#f8fbff); box-shadow:0 5px 16px rgb(30 80 140 / 7%); }
.script-global-agent-card > div:first-child { display:flex; align-items:center; gap:12px; min-width:0; }.script-global-agent-card strong { color:#153e67; }.script-global-agent-card p { margin:4px 0 0; color:#60758a; font-size:12px; }
.script-global-agent-icon { display:grid; flex:0 0 40px; place-items:center; width:40px; height:40px; border-radius:12px; color:#fff; background:#1769c2; font-weight:800; }
.script-global-channel-status { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }.script-global-channel-status span { padding:6px 9px; border-radius:999px; font-size:11px; font-weight:700; }.script-global-channel-status .ready { color:#176c3a; background:#dff4e8; }.script-global-channel-status .warning { color:#875b00; background:#fff0c5; }
.script-agent-cards { display:block; width:100%; min-width:0; }
.script-agent-cards > #agentCards,
.script-agent-cards > #agentEmpty,
.script-agent-cards > #agentPager { width:100%; min-width:0; }
.script-agent-cards[hidden], .script-agent-cards .script-global-agent-card[hidden] { display:none!important; }
.script-agent-cards .script-global-agent-card { margin-top:14px; }
.script-agent-cards > .script-global-agent-card { display:none!important; }
.agent-offline-toolbar-button { border-color:#e2c98b; color:#6b4a00; background:#fffaf0; }
.agent-offline-toolbar-button:hover,.agent-offline-toolbar-button:focus-visible { border-color:#c9a44f; background:#fff4d6; }
.agent-offline-toolbar-button.warning { border-color:#e2c98b; color:#875b00; background:#fff3d6; }
.agent-offline-toolbar-button.ready { border-color:#b7dfc7; color:#176c3a; background:#eef9f2; }
.script-offline-agent-card { cursor:pointer; border-color:#e2c98b; background:linear-gradient(110deg,#fffaf0,#fffdf8); }
.script-offline-agent-card:hover,.script-offline-agent-card:focus-visible { border-color:#c9a44f; box-shadow:0 6px 18px rgb(150 110 20 / 12%); outline:none; }
.script-offline-agent-card strong { color:#6b4a00; }
.script-offline-icon { background:#b7791f; }
.script-offline-subhead { margin-top:18px; padding-top:14px; border-top:1px solid #e6ecf3; }
.script-offline-subhead h3 { margin:0; font-size:14px; color:#153e67; }
.script-offline-subhead p { margin:4px 0 0; color:#60758a; font-size:12px; }
.script-offline-robot-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.script-offline-robot-actions span { font-size:12px; color:#60758a; }
@media (max-width:720px) { .script-agent-grid { grid-template-columns:1fr; } }
.script-table-shell { overflow-x:auto; overflow-y:hidden; overscroll-behavior-inline:contain; scrollbar-gutter:stable; }
.script-table-shell:focus-visible { outline:2px solid #72a7e8; outline-offset:2px; }
.script-table-shell::-webkit-scrollbar { height:11px; }
.script-table-shell::-webkit-scrollbar-track { border-radius:999px; background:#edf2f7; }
.script-table-shell::-webkit-scrollbar-thumb { border:2px solid #edf2f7; border-radius:999px; background:#8ca5bd; }
.script-table-shell::-webkit-scrollbar-thumb:hover { background:#6888a7; }
.script-pager { position:sticky; left:0; display:flex; justify-content:flex-end; align-items:center; gap:10px; padding:12px; border-top:1px solid var(--line); background:#fff; color:var(--muted); font-size:12px; }
.script-table { width:100%; min-width:1120px; table-layout:auto; }
.run-list-table { --run-table-scale:1; min-width:1360px; zoom:var(--run-table-scale); }
.run-list-table th:nth-child(1),.run-list-table td:nth-child(1) { width:13.5%; }
.run-list-table th:nth-child(2),.run-list-table td:nth-child(2) { width:16.5%; }
.run-list-table th:nth-child(3),.run-list-table td:nth-child(3) { width:15%; }
.run-list-table th:nth-child(4),.run-list-table td:nth-child(4) { width:8.5%; min-width:0; }
.run-list-table th:nth-child(5),.run-list-table td:nth-child(5) { width:7%; }
.run-list-table th:nth-child(6),.run-list-table td:nth-child(6) { width:16%; }
.run-list-table th:nth-child(7),.run-list-table td:nth-child(7) { width:14%; }
.script-table th,.script-table td { position:static; left:auto; }
.script-table th { position:sticky; top:0; z-index:2; }
.script-table th:last-child,.script-table td:last-child { position:sticky; right:0; width:148px; min-width:148px; max-width:148px; box-sizing:border-box; }
.run-list-table th:last-child,.run-list-table td:last-child { width:128px; min-width:128px; max-width:128px; }
.script-table th:last-child { z-index:4; background:#eef3f8; box-shadow:-7px 0 10px -10px rgb(30 50 70 / 70%); }
.script-table td:last-child { z-index:2; background:#fff; box-shadow:-7px 0 10px -10px rgb(30 50 70 / 55%); }
.script-table tbody tr:hover td:last-child { background:#f8fbff; }
.script-table td { vertical-align:top; }
.script-table td small,.script-table td strong,.script-table td span { display:block; }
.script-table td small { margin-top:4px; color:var(--muted); font-size:12px; }
.script-computer-cell { min-width:170px; }
.script-computer-summary { display:flex; align-items:center; gap:8px; }
.script-computer-summary strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.script-computer-summary .agent-dot { display:inline-block; flex:0 0 auto; }
.script-store-scope { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.run-store-cell { min-width:190px; max-width:260px; }
.run-store-cell .script-store-scope { color:#344054; font-weight:700; }
.run-store-cell .run-store-unrecorded { color:var(--muted); font-weight:500; }
.run-script-cell { min-width:0; max-width:0; overflow:hidden; }
.run-script-name { width:100%; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.script-name-button { padding:0; border:0; background:transparent; color:#174f82; font-weight:700; text-align:left; }
.script-name-button:hover { background:transparent; text-decoration:underline; filter:none; }
.script-row-actions { min-width:148px; white-space:nowrap; text-align:right; }
.run-list-table .script-row-actions { min-width:128px; }
.script-row-actions button { flex:0 0 auto; white-space:nowrap; padding:7px 10px; }
.script-row-actions button + button { margin-left:8px; }
.script-status { display:inline-block!important; width:max-content; padding:3px 8px; border-radius:999px; background:#edf1f5; color:#526171; font-size:12px; font-weight:700; }
.script-status.status-running,.script-status.status-queued { background:#fff3d6; color:#875b00; }
.script-status.status-succeeded { background:#e5f7ec; color:#176c3a; }
.script-status.status-failed { background:#fee9e7; color:#a8201a; }
.script-requests-view { display:grid; gap:16px; }
.script-request-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.script-request-mode { display:inline-flex; gap:5px; padding:5px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.script-request-mode button { min-height:36px; color:#526171; background:transparent; }
.script-request-mode button.active { color:#0b4aa2; background:var(--accent-soft); }
.script-request-port-title { display:grid; flex:1; gap:2px; min-width:0; }
.script-request-port-title strong { color:#183b56; font-size:16px; }
.script-request-port-title span { color:var(--muted); font-size:12px; }
.script-person-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.script-account-combobox { position:relative; display:block; }
.script-account-combobox::after { position:absolute; right:12px; top:50%; color:#667085; content:"⌄"; font-size:16px; pointer-events:none; transform:translateY(-55%); transition:transform .15s ease; }
.script-account-combobox[data-open]::after { transform:translateY(-45%) rotate(180deg); }
.script-account-combobox input[type="search"] { min-height:42px; padding:8px 34px 8px 10px; background:#fff; cursor:text; }
.script-account-combobox input[type="search"]::-webkit-search-cancel-button { display:none; }
.script-account-combobox input[type="search"].unmatched { border-color:#e2a39a; color:#a83226; background:#fff7f5; }
.script-account-native-select { display:none!important; }
.script-account-menu { position:fixed; inset:auto; z-index:1000; display:none; align-content:start; gap:4px; min-width:260px; max-height:300px; margin:0; padding:7px; overflow:auto; border:1px solid #9dbce2; border-radius:10px; background:#fff; box-shadow:0 18px 48px rgba(30,64,110,.24); scrollbar-gutter:stable; }
.script-account-menu:popover-open { display:grid; }
.script-account-option { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:9px 10px; border:1px solid transparent; border-radius:8px; color:#344054; background:#fff; text-align:left; }
.script-account-option:hover,.script-account-option:focus-visible { border-color:#c8d9ee; background:#f5f9ff; }
.script-account-option.selected { border-color:#8bb5eb; color:#164f91; background:#edf6ff; }
.script-account-option>span:first-child { display:grid; gap:2px; min-width:0; }
.script-account-option strong,.script-account-option small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.script-account-option small { color:#667085; font-weight:400; }
.script-account-option-mark { display:grid; place-items:center; width:20px; height:20px; flex:0 0 20px; border-radius:50%; color:#fff; background:#1677ff; font-size:12px; font-weight:800; }
.script-account-option-mark:empty { background:transparent; }
.script-account-option-clear { color:#667085; }
.script-account-empty { padding:18px 10px; color:#667085; font-size:12px; text-align:center; }
.script-request-port-panel { display:grid; gap:12px; padding:16px; border:1px solid var(--line); border-radius:12px; background:#f9fbfd; }
.script-request-worker-panels { display:grid; grid-template-columns:1fr; align-items:start; gap:16px; }
.script-request-port-panel[hidden],.script-request-worker-panels[hidden] { display:none !important; }
.script-request-worker-panels > .script-request-port-panel { min-width:0; }
.script-request-summary-stack { display:grid; gap:12px; }
.script-request-summary-group { display:grid; gap:10px; padding:14px; border:1px solid #d8e4f0; border-radius:14px; background:linear-gradient(135deg,#f8fbff,#fff); }
.script-request-summary-group.script-request-summary-personal { order:-1; border-color:#d9eadf; background:linear-gradient(135deg,#f8fffb,#fff); }
.script-request-summary-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.script-request-summary-head > div { display:grid; gap:3px; min-width:0; }
.script-request-summary-head strong { color:#183b56; font-size:15px; }
.script-request-summary-head span:not(.script-request-summary-badge) { color:var(--muted); font-size:12px; }
.script-request-summary-badge { padding:4px 9px; border-radius:999px; color:#175cd3; background:#eaf2ff; font-size:11px; font-weight:700; white-space:nowrap; }
.script-request-summary-badge.personal { color:#176c3a; background:#e5f7ec; }
.script-request-summary { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
.script-request-summary > div { display:grid; gap:6px; padding:15px 16px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.script-request-summary span { color:var(--muted); font-size:12px; }
.script-request-summary strong { color:#183b56; font-size:22px; font-variant-numeric:tabular-nums; }
.script-request-list { display:grid; gap:12px; }
.script-request-virtual-list { max-height:min(62vh,680px); overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding:2px 7px 2px 2px; scroll-behavior:smooth; }
.script-request-virtual-list[hidden] { display:none; }
.script-request-virtual-list:focus-visible { outline:2px solid rgba(47,128,237,.38); outline-offset:3px; }
.script-request-virtual-list .script-request-card { content-visibility:auto; contain-intrinsic-block-size:76px; }
.script-request-card { display:block; overflow:hidden; border:1px solid #d8e2ec; border-radius:9px; background:#fff; box-shadow:0 3px 10px rgba(15,23,42,.035); }
.script-request-card:hover { border-color:#9fc2dc; box-shadow:0 4px 12px rgba(20,55,82,.07); }
.script-request-row { display:grid; grid-template-columns:minmax(260px,1.25fr) minmax(280px,1.35fr) auto minmax(0,auto); align-items:center; gap:12px; min-height:72px; padding:9px 12px; box-sizing:border-box; }
.script-request-row-main { display:flex; align-items:center; gap:10px; min-width:0; }
.script-request-detail-trigger { display:inline-flex; flex:0 0 auto; align-items:center; min-height:34px; padding:7px 10px; white-space:nowrap; }
.script-request-row-title { display:grid; gap:3px; min-width:0; }
.script-request-row-title-line { display:flex; align-items:center; gap:6px; min-width:0; }
.script-request-row-title-line strong { min-width:0; }
.script-request-row-title-line .script-request-change-kind { flex:none; overflow:visible; padding:2px 6px; border-radius:999px; color:#175cd3; background:#eaf2ff; font-size:10px; font-weight:700; line-height:1.4; }
.script-request-row-title strong { overflow:hidden; color:#183b56; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.script-request-row-title span { overflow:hidden; color:var(--muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.script-request-row-meta { display:flex; flex-wrap:wrap; gap:4px 12px; min-width:0; color:#435466; font-size:12px; line-height:1.45; }
.script-request-row-meta span { max-width:210px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.script-request-row-status { display:flex; align-items:center; justify-content:flex-end; gap:6px; min-width:max-content; }
.script-request-scope-tag { padding:4px 8px; border-radius:999px; color:#526273; background:#f4f7fa; font-size:11px; font-weight:700; white-space:nowrap; }
.script-request-scope-tag.mine { color:#176c3a; background:#e5f7ec; }
.script-request-priority { padding:4px 8px; border-radius:999px; color:#526273; background:#f4f7fa; font-size:12px; white-space:nowrap; }
.script-request-priority.priority-urgent { color:#b42318; background:#feeceb; font-weight:700; }
.script-request-row-actions { display:flex; justify-content:flex-end; gap:8px; min-width:0; }
.script-request-row-actions button + button { margin-left:0; }
.script-request-card.recently-claimed { border-color:#2f80ed; background:#f2f7ff; box-shadow:0 0 0 3px rgba(47,128,237,.14),0 8px 24px rgba(47,128,237,.12); }
.script-request-status { flex:0 0 auto; padding:4px 9px; border-radius:999px; color:#526171; background:#edf1f5; font-size:12px; font-weight:700; }
.script-request-status.request-waiting { color:#875b00; background:#fff3d6; }
.script-request-status.request-developing,.script-request-status.request-revision { color:#175cd3; background:#eaf2ff; }
.script-request-status.request-review { color:#873ca4; background:#f6eafa; }
.script-request-status.request-completed { color:#176c3a; background:#e5f7ec; }
.script-request-detail-dialog { width:min(920px,calc(100vw - 30px)); height:min(760px,calc(100vh - 32px)); height:min(760px,calc(100dvh - 32px)); max-height:calc(100vh - 32px); padding:0; overflow:hidden; border:0; border-radius:14px; background:#f8fafc; box-shadow:0 24px 80px rgba(15,35,48,.28); }
.script-request-detail-dialog[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.script-request-detail-dialog::backdrop { background:rgba(15,35,48,.5); backdrop-filter:blur(2px); }
.script-request-detail-dialog > .dialog-head { padding:18px 22px; background:linear-gradient(135deg,#f4fbff,#fff); }
.script-request-detail-dialog > .dialog-head h2 { margin:0; color:#123e56; font-size:20px; }
.script-request-detail-dialog > .dialog-head p { margin:5px 0 0; color:var(--muted); font-size:12px; }
.script-request-detail-body { display:grid; align-content:start; gap:18px; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:20px 24px; }
.script-request-detail-dialog > .dialog-actions { flex-wrap:wrap; margin:0; padding:14px 22px; border-top:1px solid var(--line); background:#fff; }
.script-request-no-actions { color:var(--muted); font-size:12px; }
.script-request-files,.script-request-timeline { display:grid; gap:9px; padding-top:15px; border-top:1px solid var(--line); }
.script-request-files h3,.script-request-timeline h3 { margin:0 0 3px; color:#183b56; font-size:15px; }
.script-request-timeline > div { display:grid; grid-template-columns:10px minmax(100px,150px) minmax(0,1fr); align-items:start; gap:9px; color:#526273; font-size:12px; }
.script-request-timeline i { width:8px; height:8px; margin-top:5px; border-radius:50%; background:#2f80ed; }
.script-request-timeline strong { color:#344054; }
.script-request-dialog { width:min(760px,calc(100vw - 30px)); }
.compact-script-request-dialog { width:min(620px,calc(100vw - 30px)); }
@media (max-width:1200px) {
  .script-request-row { grid-template-columns:minmax(0,1fr) auto; gap:7px 12px; }
  .script-request-row-main { grid-column:1; grid-row:1; }
  .script-request-row-meta { grid-column:1; grid-row:2; }
  .script-request-row-status { grid-column:2; grid-row:1; }
  .script-request-row-actions { grid-column:2; grid-row:2; }
}
@media (max-width:720px) {
  .script-request-row { grid-template-columns:1fr; align-items:stretch; gap:8px; padding:11px; }
  .script-request-row-main,.script-request-row-meta,.script-request-row-status,.script-request-row-actions { grid-column:1; grid-row:auto; }
  .script-request-row-main { align-items:flex-start; }
  .script-request-row-title { flex:1 1 auto; }
  .script-request-row-meta span { max-width:calc(50% - 8px); }
  .script-request-row-status,.script-request-row-actions { justify-content:flex-start; }
  .script-request-detail-dialog { width:calc(100vw - 18px); height:calc(100vh - 18px); height:calc(100dvh - 18px); max-height:calc(100vh - 18px); }
  .script-request-detail-dialog > .dialog-head { padding:15px 14px; }
  .script-request-detail-body { padding:16px 14px; }
  .script-request-detail-dialog > .dialog-actions { padding:12px 14px; }
}
.script-agent-grid { display:grid; width:100%; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:16px; margin-top:16px; align-items:stretch; }
.script-agent-grid ~ .agent-pager { position:relative; z-index:3; justify-content:center; margin-top:16px; border:1px solid #dce5ee; border-radius:12px; background:#fff; box-shadow:0 4px 14px rgb(30 45 60 / 5%); }
.agent-pager span { min-width:92px; color:#526171; font-weight:600; text-align:center; }
.script-agent-card { display:flex; flex-direction:column; min-width:0; min-height:420px; padding:20px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 6px 18px rgb(30 45 60 / 6%); }
.script-agent-card.agent-offline { background:#fafbfc; }
.script-agent-head { display:flex; justify-content:space-between; gap:12px; }
.script-agent-head-main { display:flex; align-items:flex-start; flex-wrap:wrap; gap:5px 9px; min-width:0; }
.script-agent-head-main strong { min-width:0; color:#1d2939; font-size:16px; line-height:1.35; overflow-wrap:anywhere; }
.agent-owner { overflow:hidden; color:#667085; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.agent-dot { padding:3px 8px; border-radius:999px; font-size:12px; }
.agent-dot.online { background:#e5f7ec; color:#176c3a; }.agent-dot.offline { background:#edf1f5; color:#657382; }
.agent-dot.archived { background:#f3ecff; color:#6b4fa8; }
.script-agent-card.agent-archived { border-color:#e4dcf5; background:#fbfaff; }
.agent-archive-note { color:#6b4fa8; }
.agent-meter-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:16px 0; }
.agent-meter-grid div { padding:10px 6px; border-radius:8px; background:#f5f8fb; text-align:center; }
.agent-meter-grid span,.agent-meter-grid strong { display:block; }.agent-meter-grid span { color:var(--muted); font-size:11px; }.agent-meter-grid strong { margin-top:3px; font-size:18px; }
.agent-meta,.agent-error { margin:6px 0 0; color:var(--muted); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }.agent-error { display:-webkit-box; max-height:3.2em; overflow:hidden; color:#a8201a; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.agent-resolver { color:#315d89; }
.agent-channel-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:12px 0 4px; }.agent-channel { display:grid; gap:4px; min-width:0; min-height:54px; box-sizing:border-box; padding:10px; border:1px solid #dce5ee; border-radius:9px; background:#f7f9fb; }.agent-channel strong { font-size:11px; line-height:1.35; }.agent-channel small { overflow:hidden; color:#667085; font-size:10px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }.agent-channel.ready { border-color:#b7dfc7; background:#eef9f2; color:#176c3a; }.agent-channel.error { border-color:#efc8c3; background:#fff5f4; color:#a8201a; }.agent-channel.checking { border-color:#ecd59c; background:#fff9e8; color:#875b00; }
.agent-activity,.agent-last-run { margin:10px 0 0; padding:9px 10px; border-radius:8px; background:#eef5ff; color:#185ea8; font-size:12px; font-weight:700; }
.agent-last-run.status-text-succeeded { background:#e5f7ec; color:#176c3a; }
.agent-last-run.status-text-failed { background:#fee9e7; color:#a8201a; }
.agent-last-run.status-text-cancelled { background:#edf1f5; color:#526171; }
.agent-card-actions { display:flex; flex-wrap:nowrap; justify-content:flex-end; gap:8px; margin-top:auto; padding-top:14px; border-top:1px solid #edf1f5; }
.agent-card-actions button { min-width:0; padding:7px 10px; white-space:nowrap; }
/* 删除电脑放在“修改设置”弹窗左下角：卡片操作行保持原有四个按钮，永不换行。 */
.script-agent-dialog .dialog-actions #deleteAgentButton { margin-right:auto; }
.script-detail-dialog,.script-edit-dialog,.script-agent-dialog { width:min(900px,calc(100vw - 32px)); }
.script-dingtalk-dialog { width:min(1120px,calc(100vw - 32px)); height:min(820px,calc(100vh - 32px)); height:min(820px,calc(100dvh - 32px)); max-height:calc(100vh - 32px); padding:0; overflow:hidden; border:0; border-radius:14px; background:#fff; box-shadow:0 24px 80px rgba(15,35,48,.28); }
.script-dingtalk-dialog[open] { display:grid; }
.script-dingtalk-dialog > form { display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; min-height:0; overflow:hidden; }
.script-dingtalk-dialog .dialog-head { align-items:flex-start; padding:20px 24px; background:linear-gradient(135deg,#f4f9ff,#fff); }
.script-dingtalk-dialog .dialog-head h2 { margin:0; color:#173f6b; font-size:20px; }
.script-dingtalk-dialog .dialog-head p { margin:6px 0 0; color:#667085; font-size:12px; line-height:1.6; }
.script-dingtalk-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:12px 24px; overflow-x:auto; border-bottom:1px solid #dce5ef; background:#fff; }
.script-dingtalk-tabs button { display:grid; align-content:center; gap:3px; min-width:0; min-height:58px; padding:9px 12px; border:1px solid #dce5ef; border-radius:9px; color:#3d536a; background:#f5f8fb; text-align:left; }
.script-dingtalk-tabs button:hover { border-color:#9bbce2; background:#f1f7ff; }
.script-dingtalk-tabs button strong { font-size:13px; }
.script-dingtalk-tabs button small { overflow:hidden; color:#7a8999; font-size:11px; font-weight:400; text-overflow:ellipsis; white-space:nowrap; }
.script-dingtalk-tabs button.active { border-color:#3b82d0; color:#fff; background:#246fca; box-shadow:0 5px 14px rgba(36,111,202,.2); }
.script-dingtalk-tabs button.active small { color:#dfeeff; }
.script-dingtalk-tabs button:focus-visible { outline:3px solid rgba(59,130,208,.25); outline-offset:2px; }
/* 只有两个 Tab 的弹窗（电脑离线通知：私发 / 群发）；通用的三列布局留给「脚本中心钉钉通知」。 */
.script-dingtalk-tabs-two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.script-dingtalk-tabs-two button { min-height:64px; }
/* 机器人凭据折叠区：默认收起，展开后才出现新增/修改表单。 */
.script-dingtalk-credentials { margin:0 24px 20px; border:1px solid #dce5ef; border-radius:10px; background:#f8fbfe; }
.script-dingtalk-credentials > summary { display:flex; align-items:center; gap:8px; padding:12px 16px; color:#2c5f9e; font-size:13px; font-weight:600; cursor:pointer; list-style:none; border-radius:10px; }
.script-dingtalk-credentials > summary::-webkit-details-marker { display:none; }
.script-dingtalk-credentials > summary::before { content:"＋"; flex:none; width:18px; height:18px; border-radius:5px; color:#fff; background:#5b93d6; font-size:13px; font-weight:700; line-height:18px; text-align:center; }
.script-dingtalk-credentials[open] > summary { border-bottom:1px solid #dce5ef; border-radius:10px 10px 0 0; }
.script-dingtalk-credentials[open] > summary::before { content:"－"; }
.script-dingtalk-credentials > summary:hover { background:#eef6ff; }
.script-dingtalk-credentials > summary:focus-visible { outline:3px solid rgba(59,130,208,.25); outline-offset:-2px; }
.script-dingtalk-credentials .script-form-grid { padding:16px; }
.script-dingtalk-panel { min-height:0; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; background:#fff; }
.script-dingtalk-panel[hidden] { display:none!important; }
.script-dingtalk-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:20px 24px 0; }
.script-dingtalk-panel-head > div { min-width:0; }
.script-dingtalk-panel-head strong { color:#253858; font-size:16px; }
.script-dingtalk-panel-head p { margin:5px 0 0; color:#667085; font-size:12px; line-height:1.55; }
.script-dingtalk-status-badge { flex:none; padding:5px 9px; border-radius:999px; color:#526171; background:#edf1f5; font-size:11px; font-weight:700; white-space:nowrap; }
.script-dingtalk-status-badge.ready { color:#176c3a; background:#e5f7ec; }
.script-dingtalk-status-badge.warning { color:#875b00; background:#fff3d6; }
.script-dingtalk-panel > .script-form-grid { max-height:none; overflow:visible; }
.script-dingtalk-inline-actions { display:flex; justify-content:flex-start; }
.script-dingtalk-flow-grid { align-items:stretch; }
.script-form-grid .script-dingtalk-notice-card { align-self:stretch; min-height:86px; box-sizing:border-box; padding:14px 16px; border:1px solid #dce5ef; border-radius:10px; background:#fbfcfe; }
.script-dingtalk-notice-card:hover { border-color:#a9c5e6; background:#f6faff; }
.script-dingtalk-notice-card:has(input:checked) { border-color:#78a9e3; background:#edf5ff; }
#agentOfflineDialog { width:min(960px,calc(100vw - 32px)); }
#agentOfflineDialog [hidden] { display:none!important; }
#agentOfflineDialog .script-dingtalk-panel { padding-bottom:20px; }
.script-offline-channel-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:20px 24px 0; padding:16px; border:1px solid #dce5ef; border-radius:10px; background:#f8fafc; }
.script-offline-channel-head:has(input:checked) { border-color:#a9c5e6; background:#f2f7ff; }
.script-offline-channel-toggle { gap:12px; cursor:pointer; min-width:0; }
.script-offline-channel-toggle input { flex:none; width:19px; height:19px; margin:0; accent-color:#246fca; }
.script-offline-channel-toggle span { display:grid; gap:5px; }
.script-offline-channel-toggle strong { font-size:14px; color:#253858; }
.script-offline-channel-toggle small { color:#667085; font-size:12px; font-weight:400; line-height:1.6; }
.script-offline-disabled { margin:18px 24px; padding:28px 20px; border:1px dashed #dce5ef; border-radius:10px; text-align:center; color:#667085; }
.script-offline-disabled strong { color:#344054; font-size:14px; }
.script-offline-disabled p { margin:10px 0 0; font-size:12px; line-height:1.8; }
.script-offline-explanation { margin:0; padding:10px 12px; border-radius:8px; background:#f2f6fb; color:#526171; font-size:12px; font-weight:400; line-height:1.7; }
.script-offline-explanation.warning { color:#875b00; background:#fff6df; }
#agentOfflineDialog .script-dingtalk-credentials { margin-top:16px; }
#agentOfflineDialog .script-offline-robot-actions { gap:8px 12px; }
#agentOfflineDialog .script-offline-robot-actions span { overflow-wrap:anywhere; }
#agentOfflineDialog .script-dingtalk-robot-counts { grid-template-columns:repeat(4,minmax(0,1fr)); }
#agentOfflineRecipients > .script-offline-explanation, #agentOfflineRecipients > .script-offline-robot-actions { margin-top:12px; }
#agentOfflineDialog .script-offline-recipients { margin-top:14px; max-height:280px; overflow:auto; }
#agentOfflineDialog .script-offline-recipients table { min-width:580px; }
#agentOfflineDialog .script-form-grid label:has(#agentOfflinePersonalRecovery),
#agentOfflineDialog .script-form-grid label:has(#agentOfflineGroupRecovery) { align-self:start; margin-top:15px; }
#agentOfflineFormState { margin-right:auto; font-size:12px; color:#667085; }
#agentOfflineFormState.error-text { color:#b42318; }
@media (max-width:640px) {
  #agentOfflineDialog .script-offline-channel-head { margin:14px 14px 0; padding:12px; gap:8px; align-items:flex-start; }
  #agentOfflineDialog .script-offline-disabled { margin:14px; }
  #agentOfflineDialog .script-dingtalk-robot-counts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #agentOfflineDialog .script-form-grid { grid-template-columns:minmax(0,1fr); }
  #agentOfflineDialog .script-form-grid label:has(#agentOfflinePersonalRecovery),
  #agentOfflineDialog .script-form-grid label:has(#agentOfflineGroupRecovery) { margin-top:0; }
  #agentOfflineDialog .script-dingtalk-footer { flex-wrap:wrap; }
  #agentOfflineFormState { flex:1 0 100%; }
}
.script-dingtalk-notice-card span { display:grid; gap:5px; min-width:0; }
.script-dingtalk-notice-card strong { color:#253858; font-size:13px; }
.script-dingtalk-notice-card small { color:#667085; font-size:11px; font-weight:400; line-height:1.5; }
.script-dingtalk-group-panel { padding-bottom:20px; }
.script-dingtalk-dialog .script-dingtalk-group-section { display:block; margin:16px 24px 0; padding:18px; }
.script-dingtalk-group-section > div:first-child { display:grid; grid-template-columns:32px minmax(0,1fr); column-gap:10px; align-items:center; }
.script-dingtalk-group-section > div:first-child strong { color:#253858; font-size:14px; }
.script-dingtalk-group-section > div:first-child p { grid-column:2; margin:3px 0 0; }
.script-dingtalk-step { display:grid; grid-row:1 / span 2; place-items:center; width:30px; height:30px; border-radius:50%; color:#fff; background:#2573cf; font-size:13px; }
.script-dingtalk-group-section > .script-form-grid { max-height:none; padding:16px 0 0; overflow:visible; }
.script-dingtalk-group-section > .script-output-list { margin-top:14px; }
.script-dingtalk-dialog .script-dingtalk-group-section .dialog-actions { padding:4px 0 0; border-top:0; }
.script-dingtalk-dialog.script-agent-dialog .script-dingtalk-footer { justify-content:flex-end; margin:0; padding:14px 24px; border-top:1px solid #dce5ef; background:#f8fafc; }
.script-dingtalk-footer #dingTalkSettingsState { margin-right:auto; color:#667085; font-size:12px; }
.script-dingtalk-footer #dingTalkSettingsState.error-text { color:#b42318; }
.script-detail-body { padding:20px 24px; max-height:65vh; overflow:auto; }
.script-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:0; }
.script-detail-grid > div { padding:12px; border:1px solid var(--line); border-radius:8px; }.script-detail-grid .wide { grid-column:1/-1; }
.script-detail-grid dt { color:var(--muted); font-size:12px; }.script-detail-grid dd { margin:5px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.script-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:20px 24px; max-height:68vh; overflow:auto; }
.script-form-grid > [hidden] { display:none!important; }
.script-form-grid .wide { grid-column:1/-1; }.script-form-grid input,.script-form-grid select,.script-form-grid textarea { width:100%; box-sizing:border-box; }
.script-form-grid label > small { color:var(--muted); font-size:12px; font-weight:400; line-height:1.5; }
.ssh-diagnostics { display:grid; gap:8px; padding:11px; border:1px solid #d9e3ed; border-radius:9px; background:#f8fafc; }
.ssh-diagnostics > div:first-child { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.ssh-diagnostics > div:first-child strong { color:#344054; font-size:12px; }.ssh-diagnostics > div:first-child small { color:#667085; font-size:10px; }
.ssh-diagnostic-virtual-list { display:grid; align-content:start; gap:6px; max-height:190px; overflow:auto; overscroll-behavior:contain; padding-right:3px; }
.ssh-diagnostic-row { display:grid; grid-template-columns:86px minmax(0,1fr) 132px; gap:9px; align-items:start; padding:8px 9px; border-left:3px solid #98a2b3; border-radius:7px; background:#fff; }
.ssh-diagnostic-row strong { color:#475467; font-size:11px; }.ssh-diagnostic-row p { min-width:0; margin:0; overflow-wrap:anywhere; color:#475467; font-size:11px; line-height:1.55; }.ssh-diagnostic-row time { color:#98a2b3; font-size:10px; text-align:right; }
.ssh-diagnostic-row.status-succeeded { border-left-color:#28a164; }.ssh-diagnostic-row.status-running,.ssh-diagnostic-row.status-queued { border-left-color:#d8a10d; }.ssh-diagnostic-row.status-failed { border-left-color:#d04438; background:#fff8f7; }.ssh-diagnostic-row.status-failed p { color:#a8201a; }
.script-store-picker-field { display:grid; gap:7px; }
.script-field-label { color:#344054; font-size:13px; font-weight:700; }
.script-store-picker-field > small { color:var(--muted); font-size:12px; line-height:1.5; }
.script-store-toggle { display:flex; align-items:center; justify-content:space-between; min-height:42px; width:100%; padding:8px 12px; border:1px solid #cfd8e3; border-radius:8px; color:#344054; background:#fff; font-weight:500; text-align:left; }
.script-store-toggle:hover,.script-store-toggle[aria-expanded="true"] { border-color:#77a9e8; background:#f8fbff; }
.script-store-toggle b { color:#667085; font-size:16px; transition:transform .15s ease; }.script-store-toggle[aria-expanded="true"] b { transform:rotate(180deg); }
.script-store-menu { padding:12px; border:1px solid #c8d9ee; border-radius:10px; background:#f8fbff; box-shadow:0 8px 24px rgba(30,64,110,.1); }
.script-store-tools { display:grid; grid-template-columns:minmax(180px,1fr) auto auto; gap:8px; margin-bottom:10px; }
.script-store-tools input { min-height:38px; background:#fff; }
.script-store-tools button { min-height:38px; white-space:nowrap; }
.script-store-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; max-height:250px; overflow:auto; padding-right:3px; }
.script-store-option { display:grid; grid-template-columns:18px minmax(0,1fr); gap:9px; align-items:start; min-height:52px; padding:9px 10px; border:1px solid #dde6f0; border-radius:8px; background:#fff; cursor:pointer; }
.script-store-option:hover { border-color:#9bbce2; }.script-store-option:has(input:checked) { border-color:#70a4e3; background:#edf5ff; }
.script-store-option input { width:17px; height:17px; margin:2px 0 0; }
.script-store-option span { display:grid; gap:3px; min-width:0; }.script-store-option strong { overflow:hidden; color:#253858; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }.script-store-option small { overflow:hidden; color:#667085; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.script-store-option.deleted { border-color:#efc8c3; background:#fff8f7; }.script-store-option.deleted small { color:#b54708; }
.script-store-empty { grid-column:1/-1; padding:22px; color:#667085; text-align:center; }
.script-store-chips { display:flex; flex-wrap:wrap; gap:6px; min-height:0; }
.script-store-chips:empty { display:none; }.script-store-chip { min-height:28px; padding:4px 9px; border:1px solid #bfd5ef; border-radius:999px; color:#175b9c; background:#edf6ff; font-size:12px; font-weight:600; }.script-store-chip.deleted { color:#b54708; border-color:#efc8c3; background:#fff6f4; }
.script-form-grid .inline-check { display:flex; align-items:center; justify-content:flex-start; align-self:end; gap:9px; min-height:42px; padding:0 2px; color:#344054; cursor:pointer; }
.script-form-grid .inline-check input[type="checkbox"] { flex:0 0 18px; width:18px; height:18px; margin:0; }
.script-form-help { margin:0; padding:10px 12px; border-radius:8px; color:#526171; background:#f5f8fb; font-size:12px; line-height:1.6; }
.script-ssh-settings { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); align-items:end; gap:12px; padding:16px; border:1px solid #d5e2ef; border-radius:10px; background:#f8fbfe; }
.script-ssh-settings label:not(.inline-check) { display:grid; align-content:end; gap:6px; min-width:0; }.script-ssh-settings label:not(.inline-check) input,.script-ssh-settings label:not(.inline-check) select { min-height:42px; }
.ssh-settings-head,.ssh-enable,.ssh-full { grid-column:1/-1; }.ssh-settings-head { display:grid; gap:4px; padding-bottom:2px; border-bottom:1px solid #e2eaf2; }.ssh-settings-head strong { color:#244b70; font-size:13px; }.ssh-settings-head small { padding-bottom:10px; color:#667085; font-size:11px; line-height:1.5; }
.ssh-enable { align-self:center!important; min-height:34px!important; }.ssh-host,.ssh-user { grid-column:span 9; }.ssh-port,.ssh-os { grid-column:span 3; }.ssh-strict { align-self:center!important; }
.ssh-bootstrap-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }.ssh-bootstrap-actions small { color:#667085; line-height:1.5; }.ssh-bootstrap-actions button { flex:0 0 auto; }
.script-operations-status.ready { color:#176c3a; background:#e5f7ec; }
.script-operations-status.warning { color:#875b00; background:#fff3d6; }
.script-operations-status.disabled { color:#657382; background:#edf1f5; }
.script-edit-dialog .dialog-actions,.script-detail-dialog .dialog-actions,.script-run-dialog .dialog-actions,.script-agent-dialog .dialog-actions,.script-access-dialog .dialog-actions { justify-content:flex-end; padding:0 24px 20px; }
.script-detail-dialog #detailArchiveButton { margin-right:auto; }
.script-run-dialog { width:min(640px,calc(100vw - 32px)); overflow:visible; }.script-run-dialog form > label { display:block; padding:20px 24px 10px; }.script-run-dialog textarea { width:100%; box-sizing:border-box; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.script-run-input-selector { display:grid; gap:10px; margin:16px 24px 0; padding:14px; border:1px solid #dce5ef; border-radius:10px; background:#f8fafc; }
.script-run-input-selector > div:first-child { display:grid; gap:3px; }.script-run-input-selector > div:first-child strong { color:#253858; font-size:14px; }.script-run-input-selector p { margin:0; color:#667085; font-size:12px; line-height:1.5; }
.script-run-input-selector > div:last-child { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.script-run-input-selector label { display:grid; grid-template-columns:18px minmax(0,1fr); align-items:start; gap:8px; padding:10px; border:1px solid #dce5ef; border-radius:8px; background:#fff; cursor:pointer; }
.script-run-input-selector input { width:18px; height:18px; margin:2px 0 0; }.script-run-input-selector span { display:grid; gap:2px; }.script-run-input-selector strong { color:#344054; font-size:13px; }.script-run-input-selector small { color:#667085; font-size:11px; font-weight:400; line-height:1.45; }
.script-run-no-input { display:grid; gap:3px; margin:18px 24px 14px; padding:14px; border:1px solid #bde2ca; border-radius:9px; background:#effaf3; }
.script-run-no-input strong { color:#176c3a; font-size:14px; }.script-run-no-input span { color:#587064; font-size:12px; }
.script-run-execution-input { display:grid; gap:14px; padding:18px 24px 14px; }
.script-run-no-input[hidden],.script-run-execution-input[hidden] { display:none; }
.script-run-execution-input > label { display:grid; gap:7px; color:#344054; font-size:13px; font-weight:700; }
.script-run-execution-input > label[hidden] { display:none; }
.script-run-execution-input textarea,.script-run-execution-input input[type="file"] { width:100%; box-sizing:border-box; }
.script-run-execution-input input[type="file"] { padding:10px; border:1px dashed #9db2c9; border-radius:8px; background:#f8fafc; }
.script-run-execution-input small { color:#667085; font-size:11px; font-weight:400; line-height:1.5; }
.script-run-attachment-list { display:grid; gap:7px; }
.script-run-attachment-empty { padding:9px 11px; border-radius:7px; background:#f2f5f8; color:#667085; font-size:12px; }
.script-run-attachment-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 10px; border:1px solid #e1e7ef; border-radius:8px; background:#fff; }
.script-run-attachment-item > span { display:grid; min-width:0; gap:2px; }.script-run-attachment-item strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }.script-run-attachment-item small { color:#667085; font-size:11px; }.script-run-attachment-item button { flex:none; min-height:30px; padding:5px 9px; }
.script-run-store-picker { position:relative; display:grid; gap:10px; padding:18px 24px 0; }.script-run-store-picker > div:first-child { display:grid; gap:4px; }.script-run-store-picker > div:first-child strong { color:#344054; font-size:14px; }.script-run-store-picker p { margin:0; color:#667085; font-size:12px; line-height:1.5; }.script-run-store-picker > div:first-child small { color:#176c3a; font-size:12px; font-weight:700; }.script-run-store-picker > .script-store-menu { position:absolute; z-index:40; top:100%; right:24px; left:24px; max-height:min(460px,60vh); overflow:hidden; background:#fff; box-shadow:0 16px 40px rgba(30,64,110,.22); }.script-run-store-options { grid-template-columns:1fr; max-height:min(300px,38vh); padding-right:4px; }.script-run-store-options .script-store-option { min-height:48px; }.script-run-store-options .script-store-option strong,.script-run-store-options .script-store-option small { white-space:normal; }.script-run-store-pager { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; padding-top:10px; border-top:1px solid #e4eaf1; }.script-run-store-pager span { color:#667085; font-size:12px; }.script-run-store-pager button { min-height:34px; padding:6px 11px; }
.script-access-dialog { width:min(1060px,calc(100vw - 32px)); }
.script-access-body { display:grid; gap:14px; max-height:72vh; overflow:auto; padding:20px 24px; }
.script-access-statuses { display:flex; flex-wrap:wrap; gap:8px; }
.script-access-status { padding:5px 9px; border-radius:999px; color:#526171; background:#edf1f5; font-size:12px; font-weight:700; }
.script-access-status.ready { color:#176c3a; background:#e5f7ec; }.script-access-status.warning { color:#875b00; background:#fff3d6; }
.script-access-block { display:grid; grid-template-columns:1fr auto; gap:12px; padding:16px; border:1px solid var(--line); border-radius:10px; background:#fbfcfe; }
.script-access-block > div:first-child { grid-column:1/-1; }.script-access-block p { margin:5px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }
.script-endpoint-list { display:grid; grid-column:1/-1; gap:7px; }.script-endpoint-list span { display:grid; grid-template-columns:130px 1fr; gap:10px; padding:8px 10px; border-radius:7px; background:#fff; font-size:12px; }.script-endpoint-list b { color:#526171; }.script-endpoint-list code { overflow-wrap:anywhere; color:#174f82; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.script-code-block { grid-column:1/-1; max-height:220px; margin:0; padding:14px; overflow:auto; border-radius:8px; color:#dce8f3; background:#101820; font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.script-copy-button { grid-column:2; justify-self:end; }
.script-access-note { padding:12px 14px; border-radius:8px; color:#174f82; background:#edf6ff; font-size:12px; line-height:1.6; }
.script-access-note code { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.script-access-guide { padding:16px; border:1px solid #cfe0f5; border-radius:12px; background:linear-gradient(135deg,#f7fbff,#eef6ff); }
.script-access-guide-head strong { color:#173f6b; font-size:15px; }.script-access-guide-head p { margin:5px 0 0; color:#60758c; font-size:12px; line-height:1.6; }
.script-access-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:14px 0 0; padding:0; list-style:none; }
.script-access-steps li { display:grid; grid-template-columns:32px minmax(0,1fr); gap:9px; align-items:start; padding:12px; border:1px solid #d9e8f7; border-radius:9px; background:rgba(255,255,255,.88); }.script-access-steps li > b { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; color:#fff; background:#2573cf; }.script-access-steps span { display:grid; gap:4px; }.script-access-steps strong { color:#23405e; font-size:13px; }.script-access-steps small { color:#66798b; font-size:11px; line-height:1.55; }
.script-access-details { overflow:hidden; border:1px solid var(--line); border-radius:10px; background:#fff; }.script-access-details > summary { cursor:pointer; padding:13px 15px; color:#284a6b; background:#f5f8fb; font-size:13px; font-weight:800; user-select:none; }.script-access-details[open] > summary { border-bottom:1px solid var(--line); }.script-access-detail-body { display:grid; gap:12px; padding:15px; }.script-access-help { margin:0; color:#5f7184; font-size:12px; line-height:1.65; }
.script-access-field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.script-access-field-grid > div { display:grid; grid-template-columns:auto minmax(0,1fr); gap:5px 10px; padding:11px 12px; border:1px solid #e2e8f0; border-radius:8px; background:#fbfcfe; }.script-access-field-grid > div > code { align-self:start; padding:2px 6px; border-radius:5px; color:#155da8; background:#e7f1fd; font-size:11px; }.script-access-field-grid strong { color:#344b61; font-size:12px; }.script-access-field-grid p { grid-column:1/-1; margin:0; color:#6b7b8b; font-size:11px; line-height:1.55; }.script-access-field-grid p code { color:#155da8; }
.script-access-callout { display:flex; gap:7px; flex-wrap:wrap; padding:10px 12px; border-radius:8px; color:#765500; background:#fff7de; font-size:12px; line-height:1.6; }.script-agent-brief { max-height:340px; }.script-access-detail-body > .script-copy-button { grid-column:auto; justify-self:end; }
.script-paired-backfill-block { border-color:#b9dfca; background:#f7fcf9; }.script-paired-backfill-block > div:first-child strong { color:#176c3a; }
.script-access-rules { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }.script-access-rules > div { display:grid; grid-template-columns:12px minmax(0,1fr); gap:6px 8px; padding:11px; border:1px solid #e2e8f0; border-radius:8px; }.script-access-rules p { grid-column:2; margin:0; color:#66788a; font-size:11px; line-height:1.55; }.script-status-dot { width:10px; height:10px; margin-top:4px; border-radius:50%; background:#94a3b8; }.script-status-dot.succeeded { background:#1fa66a; }.script-status-dot.failed { background:#d64545; }.script-status-dot.cancelled { background:#7b8794; }.script-access-rule-list { margin:0; padding-left:20px; color:#526579; font-size:12px; line-height:1.7; }.script-access-rule-list li + li { margin-top:5px; }
.script-access-result-list { grid-template-columns:repeat(2,minmax(0,1fr)); }.script-access-result-list > div { display:grid; gap:4px; padding:11px 12px; border-radius:8px; background:#f7f9fc; }.script-access-result-list strong { color:#2b4b69; font-size:12px; }.script-access-result-list span { color:#68798a; font-size:11px; line-height:1.55; }
.script-pairing-result { display:grid; gap:10px; margin:18px 0; padding:18px; border:1px solid #bad7ff; border-radius:14px; background:#f3f8ff; }
.script-pairing-result > strong { font-size:34px; letter-spacing:.16em; color:#0f5fc5; }
.script-pairing-result > small { color:#62748b; }
.script-run-warning { margin:0 24px 18px; padding:12px; border-radius:8px; background:#fff7df; color:#715000; font-size:13px; }
.script-result { margin:0; padding:16px; border-radius:8px; background:#101820; color:#dce8f3; white-space:pre-wrap; overflow-wrap:anywhere; }
.script-output-section { display:grid; gap:10px; margin-bottom:16px; padding:14px; border:1px solid #dfe7ef; border-radius:10px; background:#f8fafc; }
.script-change-request-dialog { width:min(680px,calc(100vw - 32px)); }
.script-change-request-dialog .dialog-head p { color:#667085; }
.script-change-notification-fieldset { min-width:0; margin:0; padding:14px; border:1px solid #d7e2ed; border-radius:10px; background:#f8fbfe; }
.script-change-notification-fieldset legend { padding:0 5px; color:#344054; font-size:13px; font-weight:750; }
.script-change-notification-fieldset > .script-form-help { margin:0 0 10px; }
.script-change-notification-modes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.script-change-notification-mode { display:grid; grid-template-columns:18px minmax(0,1fr); align-items:start; gap:8px; min-width:0; min-height:67px; box-sizing:border-box; padding:10px; border:1px solid #dce5ef; border-radius:8px; background:#fff; cursor:pointer; }
.script-change-notification-mode:hover { border-color:#9bbce2; background:#f7fbff; }
.script-change-notification-mode:has(input:checked) { border-color:#78a9e3; background:#edf5ff; box-shadow:0 0 0 1px rgba(36,111,202,.08); }
.script-change-notification-mode.disabled { opacity:.58; cursor:not-allowed; }
.script-change-notification-mode input { width:17px; height:17px; margin:2px 0 0; accent-color:#1677ff; }
.script-change-notification-mode span { display:grid; gap:3px; min-width:0; }
.script-change-notification-mode strong { color:#253858; font-size:12px; line-height:1.35; }
.script-change-notification-mode small { color:#667085; font-size:11px; font-weight:400; line-height:1.45; }
.script-change-notification-original { margin-top:9px!important; color:#526171; background:#fff; }
.script-change-notification-picker { position:relative; display:grid; gap:8px; margin-top:10px; }
.script-change-notification-picker[hidden] { display:none!important; }
.script-change-notification-toggle { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:42px; padding:8px 12px; border:1px solid #cfd8e3; border-radius:8px; color:#344054; background:#fff; font-weight:500; text-align:left; }
.script-change-notification-toggle:hover,.script-change-notification-toggle[aria-expanded="true"] { border-color:#77a9e8; background:#f8fbff; }
.script-change-notification-toggle:disabled { color:#98a2b3; background:#f2f4f7; cursor:not-allowed; }
.script-change-notification-toggle span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.script-change-notification-toggle b { color:#667085; font-size:16px; transition:transform .15s ease; }
.script-change-notification-toggle[aria-expanded="true"] b { transform:rotate(180deg); }
.script-change-notification-menu { position:fixed; inset:auto; z-index:1000; display:none; grid-template-rows:auto minmax(0,1fr); min-width:280px; max-height:326px; margin:0; padding:12px; overflow:hidden; border:1px solid #9dbce2; border-radius:10px; background:#fff; box-shadow:0 18px 48px rgba(30,64,110,.24); }
.script-change-notification-menu:popover-open { display:grid; }
.script-change-notification-search { display:grid; gap:5px; margin-bottom:9px; color:#475467; font-size:12px; font-weight:700; }
.script-change-notification-search input { width:100%; min-height:40px; box-sizing:border-box; }
.script-change-notification-options { display:grid; gap:4px; min-height:0; max-height:220px; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.script-change-notification-option { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:9px 10px; border:1px solid transparent; border-radius:8px; color:#344054; background:#fff; text-align:left; }
.script-change-notification-option:hover,.script-change-notification-option:focus-visible { border-color:#c8d9ee; background:#f5f9ff; }
.script-change-notification-option.selected { border-color:#8bb5eb; color:#164f91; background:#edf6ff; }
.script-change-notification-option > span:first-child { display:grid; gap:2px; min-width:0; }
.script-change-notification-option strong,.script-change-notification-option small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.script-change-notification-option small { color:#667085; font-weight:400; }
.script-change-notification-option-mark { display:grid; place-items:center; width:23px; height:23px; flex:0 0 23px; border-radius:50%; color:#667085; background:#eef2f6; font-size:14px; font-weight:800; }
.script-change-notification-option.selected .script-change-notification-option-mark { color:#fff; background:#1677ff; }
.script-change-notification-selected { display:flex; flex-wrap:wrap; gap:7px; min-height:29px; }
.script-change-notification-chip { display:inline-flex; align-items:center; gap:5px; max-width:100%; padding:5px 7px 5px 10px; border:1px solid #bed5f1; border-radius:999px; color:#164f91; background:#edf6ff; font-size:12px; }
.script-change-notification-chip.invalid { border-color:#f0c5bd; color:#a83226; background:#fff4f2; }
.script-change-notification-chip button { display:grid; place-items:center; width:20px; height:20px; padding:0; border:0; border-radius:50%; color:inherit; background:transparent; font-size:16px; }
.script-change-notification-chip button:hover { background:rgba(22,79,145,.1); }
.script-change-notification-empty,.script-change-notification-empty-selection { padding:11px; color:#667085; font-size:12px; text-align:center; }
.script-change-notification-empty-selection { padding:3px 0; text-align:left; }
.script-change-notification-state { margin-top:9px!important; }
.script-request-change-status { display:inline-flex; align-items:center; padding:3px 7px; border-radius:999px; color:#175cd3; background:#eaf2ff; font-size:10px; font-weight:700; white-space:nowrap; }
.script-request-change-history { display:grid; gap:10px; padding-top:15px; border-top:1px solid var(--line); }
.script-request-change-history h3 { margin:0 0 2px; color:#183b56; font-size:15px; }
.script-request-change-item { display:grid; gap:5px; padding:11px 13px; border:1px solid var(--line); border-radius:10px; background:#fbfdff; }
.script-request-change-item-head { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#344054; }
.script-request-change-item p { margin:0; color:#526273; font-size:12px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.script-request-change-item-events { display:flex; flex-wrap:wrap; gap:6px 12px; padding-top:4px; color:#667085; font-size:11px; }
@media(max-width:760px){
  .script-change-notification-modes { grid-template-columns:1fr; }
  .script-change-notification-menu { min-width:0; width:calc(100vw - 24px)!important; }
}
.script-output-section h3 { margin:0; font-size:15px; color:#1d2939; }
.script-output-store-group { display:grid; gap:7px; }
.script-output-store-group h4 { margin:2px 0 0; color:#344054; font-size:13px; }
.script-output-list { display:grid; gap:8px; }
.script-output-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border:1px solid #d8e2ec; border-radius:8px; background:#fff; }
.script-output-item > span { display:grid; min-width:0; gap:3px; }
.script-output-item strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.script-output-item small,.script-output-empty { color:#667085; font-size:12px; }
.script-output-item .secondary-button { flex:none; padding:7px 12px; text-decoration:none; }
.script-dingtalk-robot-overview { display:grid; gap:12px; margin-top:16px; padding:14px; border:1px solid #dce5ef; border-radius:10px; background:#f7faff; }
.script-dingtalk-robot-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.script-dingtalk-robot-counts span { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:9px 11px; border:1px solid #e0e8f1; border-radius:8px; color:#667085; background:#fff; font-size:11px; }
.script-dingtalk-robot-counts strong { color:#183b56; font-size:19px; font-variant-numeric:tabular-nums; }
.script-dingtalk-robot-tools { display:grid; grid-template-columns:minmax(220px,1fr) 120px auto; align-items:end; gap:10px; }
.script-dingtalk-robot-tools label { display:grid; gap:5px; color:#526171; font-size:11px; font-weight:700; }
.script-dingtalk-robot-tools input,.script-dingtalk-robot-tools select { width:100%; min-height:38px; box-sizing:border-box; background:#fff; }
.script-dingtalk-robot-tools button { min-height:38px; white-space:nowrap; }
.script-dingtalk-group-section > .script-dingtalk-robot-list { align-content:start; height:334px; margin-top:12px; padding:2px 4px 2px 0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.script-dingtalk-group-section > .script-dingtalk-robot-list:has(> .script-dingtalk-robot-empty) { height:116px; }
.script-dingtalk-robot-row { display:grid; grid-template-columns:minmax(190px,1fr) auto auto; min-height:58px; box-sizing:border-box; }
.script-dingtalk-robot-row.disabled { background:#f8fafc; }
.script-dingtalk-robot-identity { align-self:center; }
.script-dingtalk-robot-meta { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.script-dingtalk-robot-meta span { padding:4px 7px; border-radius:999px; color:#526171; background:#edf1f5; font-size:10px; font-weight:700; white-space:nowrap; }
.script-dingtalk-robot-meta span.ready { color:#176c3a; background:#e5f7ec; }
.script-dingtalk-robot-meta span.linked { color:#175cd3; background:#eaf2ff; }
.script-dingtalk-robot-meta span.warning { color:#875b00; background:#fff3d6; }
.script-dingtalk-robot-empty { display:grid; place-items:center; height:100%; min-height:0; box-sizing:border-box; margin:0; padding:18px; border:1px dashed #cad7e5; border-radius:9px; color:#667085; background:#fbfcfe; font-size:12px; text-align:center; }
.script-dingtalk-robot-pager { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:12px; padding-top:12px; border-top:1px solid #e4eaf1; }
.script-dingtalk-robot-pager span { min-width:150px; color:#667085; font-size:11px; font-weight:700; text-align:center; }
.script-dingtalk-robot-pager button { min-height:34px; padding:6px 11px; }
.script-dingtalk-robot-dialog { width:min(760px,calc(100vw - 32px)); max-height:calc(100vh - 32px); padding:0; overflow:hidden; border:0; border-radius:14px; background:#fff; box-shadow:0 28px 90px rgba(15,35,48,.38); }
.script-dingtalk-robot-dialog::backdrop { background:rgba(15,23,42,.28); backdrop-filter:blur(1px); }
.script-dingtalk-robot-dialog > form { display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-height:0; max-height:calc(100vh - 32px); }
.script-dingtalk-robot-dialog .dialog-head { align-items:flex-start; padding:19px 22px; background:linear-gradient(135deg,#f4f9ff,#fff); }
.script-dingtalk-robot-dialog .dialog-head h2 { margin:0; color:#173f6b; }
.script-dingtalk-robot-dialog .dialog-head p { margin:5px 0 0; color:#667085; font-size:12px; }
.script-dingtalk-robot-dialog > form > .script-form-grid { max-height:none; min-height:0; overflow:auto; }
.script-dingtalk-robot-dialog.script-agent-dialog .dialog-actions { margin:0; padding:14px 22px; border-top:1px solid #dce5ef; background:#f8fafc; }
.script-dingtalk-robot-dialog .dialog-actions > span { margin-right:auto; color:#667085; font-size:12px; }
.script-dingtalk-robot-dialog .dialog-actions > span.error-text { color:#b42318; }
.script-dingtalk-route-overview { display:grid; gap:12px; margin-top:16px; padding:14px; border:1px solid #dce5ef; border-radius:10px; background:#f7faff; }
.script-dingtalk-route-counts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.script-dingtalk-route-counts span { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:9px 11px; border:1px solid #e0e8f1; border-radius:8px; color:#667085; background:#fff; font-size:11px; }
.script-dingtalk-route-counts strong { color:#183b56; font-size:19px; font-variant-numeric:tabular-nums; }
.script-dingtalk-route-tools { display:grid; grid-template-columns:minmax(230px,1fr) minmax(130px,.55fr) 105px 105px auto; align-items:end; gap:9px; }
.script-dingtalk-route-tools label { display:grid; gap:5px; min-width:0; color:#526171; font-size:11px; font-weight:700; }
.script-dingtalk-route-tools input,.script-dingtalk-route-tools select { width:100%; min-height:38px; box-sizing:border-box; background:#fff; }
.script-dingtalk-route-tools button { min-height:38px; white-space:nowrap; }
.script-dingtalk-group-section > .script-dingtalk-route-list { align-content:start; height:388px; margin-top:12px; padding:2px 4px 2px 0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.script-dingtalk-group-section > .script-dingtalk-route-list:has(> .script-dingtalk-route-empty) { height:116px; }
.script-dingtalk-route-row { display:grid; grid-template-columns:minmax(210px,1.1fr) minmax(180px,.9fr) auto; align-items:center; min-height:72px; box-sizing:border-box; }
.script-dingtalk-route-row.disabled { background:#f8fafc; }
.script-dingtalk-route-identity { grid-column:1; min-width:0; }
.script-dingtalk-route-identity small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.script-dingtalk-route-meta { display:flex; grid-column:2; align-items:center; justify-content:flex-start; gap:6px; flex-wrap:wrap; }
.script-dingtalk-route-meta span,.script-dingtalk-route-events span { padding:4px 7px; border-radius:999px; color:#526171; background:#edf1f5; font-size:10px; font-weight:700; white-space:nowrap; }
.script-dingtalk-route-meta span.ready { color:#176c3a; background:#e5f7ec; }
.script-dingtalk-route-meta span.robot { color:#175cd3; background:#eaf2ff; }
.script-dingtalk-route-meta span.primary { color:#155da8; background:#e8f3ff; }
.script-dingtalk-route-meta span.backup { color:#873ca4; background:#f6eafa; }
.script-dingtalk-route-events { display:flex; grid-column:1/3; gap:5px; flex-wrap:wrap; padding-top:5px; }
.script-dingtalk-route-events span.enabled { color:#176c3a; background:#e5f7ec; }
.script-dingtalk-route-events span.disabled { color:#7a8999; background:#f0f2f5; }
.script-dingtalk-route-actions { display:flex; grid-column:3; grid-row:1/span 2; align-items:center; justify-content:flex-end; gap:6px; }
.script-dingtalk-route-actions button { min-height:32px; padding:5px 9px; }
.script-dingtalk-route-empty { display:grid; place-items:center; height:100%; min-height:0; box-sizing:border-box; margin:0; padding:18px; border:1px dashed #cad7e5; border-radius:9px; color:#667085; background:#fbfcfe; font-size:12px; text-align:center; }
.script-dingtalk-route-pager { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:12px; padding-top:12px; border-top:1px solid #e4eaf1; }
.script-dingtalk-route-pager span { min-width:150px; color:#667085; font-size:11px; font-weight:700; text-align:center; }
.script-dingtalk-route-pager button { min-height:34px; padding:6px 11px; }
.script-dingtalk-route-dialog { width:min(760px,calc(100vw - 32px)); max-height:calc(100vh - 32px); padding:0; overflow:hidden; border:0; border-radius:14px; background:#fff; box-shadow:0 28px 90px rgba(15,35,48,.38); }
.script-dingtalk-route-dialog::backdrop { background:rgba(15,23,42,.28); backdrop-filter:blur(1px); }
.script-dingtalk-route-dialog > form { display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-height:0; max-height:calc(100vh - 32px); }
.script-dingtalk-route-dialog .dialog-head { align-items:flex-start; padding:19px 22px; background:linear-gradient(135deg,#f4f9ff,#fff); }
.script-dingtalk-route-dialog .dialog-head h2 { margin:0; color:#173f6b; }
.script-dingtalk-route-dialog .dialog-head p { margin:5px 0 0; color:#667085; font-size:12px; }
.script-dingtalk-route-dialog > form > .script-form-grid { max-height:none; min-height:0; overflow:auto; }
.script-dingtalk-route-events-fieldset { margin:0; padding:13px 14px 14px; border:1px solid #dce5ef; border-radius:9px; background:#f8fafc; }
.script-dingtalk-route-events-fieldset legend { padding:0 5px; color:#344054; font-size:12px; font-weight:700; }
.script-dingtalk-route-events-fieldset > div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.script-dingtalk-route-events-fieldset .inline-check { align-self:center; min-height:34px; padding:7px 9px; border-radius:7px; background:#fff; }
.script-dingtalk-route-dialog.script-agent-dialog .dialog-actions { margin:0; padding:14px 22px; border-top:1px solid #dce5ef; background:#f8fafc; }
.script-dingtalk-route-dialog .dialog-actions > span { margin-right:auto; color:#667085; font-size:12px; }
.script-dingtalk-route-dialog .dialog-actions > span.error-text { color:#b42318; }
.script-dingtalk-route-dialog .dialog-actions > span.warning-text { color:#875b00; }
.run-id-cell { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:12px; }
@media (max-width:1100px) { .script-summary,.script-request-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }.script-filters,.script-global-filters[data-active-view="requests"],.script-global-filters[data-active-view="scripts"],.script-global-filters[data-active-view="agents"],.script-global-filters[data-active-view="runs"] { grid-template-columns:repeat(2,minmax(0,1fr)); }.script-filter-actions { grid-column:1/-1; } }
@media (max-width:1100px) { .script-plan-status-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:820px) { .script-chart-grid { grid-template-columns:1fr; }.script-plan-head { align-items:flex-start; }.script-plan-primary { justify-items:start; }.script-plan-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }.script-plan-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) { .script-center-main { padding:14px; }.script-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }.script-filters,.script-global-filters[data-active-view="requests"],.script-global-filters[data-active-view="scripts"],.script-global-filters[data-active-view="agents"],.script-global-filters[data-active-view="runs"],.script-form-grid,.script-detail-grid,.script-ssh-settings,.script-execution-input-config > div,.script-person-fields { grid-template-columns:1fr; }.script-filter-actions { grid-column:auto; }.script-form-grid .wide,.script-detail-grid .wide,.script-ssh-settings > * { grid-column:auto; }.script-store-tools,.script-store-options { grid-template-columns:1fr; }.script-view-tabs { overflow:auto; }.script-view-tabs #loadState { display:none; }.script-list-head,.script-dashboard-head,.script-request-toolbar,.script-request-card-head,.script-request-card-foot { align-items:stretch; flex-direction:column; }.script-request-mode { width:100%; }.script-request-mode button { flex:1; }.script-request-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }.script-request-virtual-list { max-height:min(58vh,520px); }.script-request-card.compact { grid-template-columns:1fr; }.script-request-card.compact .script-request-description,.script-request-card.compact .script-request-card-foot { grid-column:1; }.script-request-card-foot .script-row-actions { width:100%; }.script-agent-tools { width:100%; align-items:stretch; flex-direction:column; }.script-global-agent-card { align-items:flex-start; flex-direction:column; }.script-global-channel-status { justify-content:flex-start; }.script-list-head p { max-width:42ch; }.script-list-head label { min-width:96px; }.script-donut-layout { grid-template-columns:130px minmax(130px,1fr); gap:14px; min-height:160px; }.script-donut { width:126px; }.script-donut::after { inset:24px; }.script-bar-row { grid-template-columns:minmax(72px,92px) minmax(100px,1fr) 28px; }.ssh-diagnostics > div:first-child { align-items:flex-start; flex-direction:column; gap:3px; }.ssh-diagnostic-row { grid-template-columns:74px minmax(0,1fr); }.ssh-diagnostic-row time { grid-column:2; text-align:left; } }
@media (max-width:720px) { .script-access-steps,.script-access-field-grid,.script-access-rules,.script-access-result-list { grid-template-columns:1fr; } }
@media (max-width:720px) {
  .script-dingtalk-dialog { width:calc(100vw - 18px); height:calc(100vh - 18px); height:calc(100dvh - 18px); max-height:calc(100vh - 18px); }
  .script-dingtalk-dialog .dialog-head { padding:15px 14px; }
  .script-dingtalk-dialog .dialog-head p { display:none; }
  .script-dingtalk-tabs { grid-template-columns:repeat(3,minmax(138px,1fr)); padding:9px 14px; }
  .script-dingtalk-tabs.script-dingtalk-tabs-two { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .script-dingtalk-tabs button { min-height:50px; padding:8px 10px; }
  .script-dingtalk-tabs-two button { min-height:56px; }
  .script-dingtalk-credentials { margin:0 14px 16px; }
  .script-dingtalk-credentials .script-form-grid { padding:13px; }
  .script-dingtalk-panel-head { gap:10px; padding:16px 14px 0; }
  .script-dingtalk-panel > .script-form-grid { padding:16px 14px; }
  .script-dingtalk-dialog .script-dingtalk-group-section { margin:12px 14px 0; padding:14px; }
  .script-dingtalk-group-section > .script-form-grid { padding:14px 0 0; }
  .script-dingtalk-dialog.script-agent-dialog .script-dingtalk-footer { flex-wrap:wrap; padding:11px 14px; }
  .script-dingtalk-footer #dingTalkSettingsState { flex:1 0 100%; }
  .script-dingtalk-robot-counts { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .script-dingtalk-robot-counts span { display:grid; justify-content:stretch; gap:3px; }
  .script-dingtalk-robot-tools { grid-template-columns:minmax(0,1fr) 104px; }
  .script-dingtalk-robot-tools button { grid-column:1/-1; }
  .script-dingtalk-group-section > .script-dingtalk-robot-list { height:300px; }
  .script-dingtalk-robot-row { grid-template-columns:minmax(0,1fr) auto; align-items:start; }
  .script-dingtalk-robot-meta { grid-column:1/-1; justify-content:flex-start; }
  .script-dingtalk-robot-dialog { width:calc(100vw - 18px); max-height:calc(100vh - 18px); }
  .script-dingtalk-robot-dialog .dialog-head { padding:15px 14px; }
  .script-dingtalk-robot-dialog .dialog-head p { display:none; }
  .script-dingtalk-robot-dialog > form > .script-form-grid { padding:16px 14px; }
  .script-dingtalk-robot-dialog.script-agent-dialog .dialog-actions { flex-wrap:wrap; padding:12px 14px; }
  .script-dingtalk-robot-dialog .dialog-actions > span { flex:1 0 100%; }
  .script-dingtalk-route-counts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .script-dingtalk-route-counts span { display:grid; justify-content:stretch; gap:3px; }
  .script-dingtalk-route-tools { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .script-dingtalk-route-tools label:first-child,.script-dingtalk-route-tools button { grid-column:1/-1; }
  .script-dingtalk-group-section > .script-dingtalk-route-list { height:340px; }
  .script-dingtalk-route-row { grid-template-columns:minmax(0,1fr); align-items:start; }
  .script-dingtalk-route-identity,.script-dingtalk-route-meta,.script-dingtalk-route-events,.script-dingtalk-route-actions { grid-column:1; grid-row:auto; }
  .script-dingtalk-route-meta,.script-dingtalk-route-actions { justify-content:flex-start; }
  .script-dingtalk-route-actions { padding-top:4px; }
  .script-dingtalk-route-dialog { width:calc(100vw - 18px); max-height:calc(100vh - 18px); }
  .script-dingtalk-route-dialog .dialog-head { padding:15px 14px; }
  .script-dingtalk-route-dialog .dialog-head p { display:none; }
  .script-dingtalk-route-dialog > form > .script-form-grid { padding:16px 14px; }
  .script-dingtalk-route-events-fieldset > div { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .script-dingtalk-route-dialog.script-agent-dialog .dialog-actions { flex-wrap:wrap; padding:12px 14px; }
  .script-dingtalk-route-dialog .dialog-actions > span { flex:1 0 100%; }
}

.sidebar-admin-section[hidden] {
  display: none !important;
}

.sidebar-user {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 14px 12px 16px;
  border-top: 1px solid #344054;
  background: #0c1423;
}

.sidebar-user-label {
  color: #98a2b3;
  font-size: 11px;
}

.sidebar-user input {
  width: 100%;
  padding: 8px 9px;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  background: #1d2939;
  border-color: #344054;
}

.app-version {
  color: #98a2b3;
  font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

.app-version-floating {
  position: fixed;
  right: 14px;
  bottom: 10px;
  z-index: 20;
  max-width: calc(100vw - 28px);
  padding: 5px 8px;
  color: #667085;
  background: rgb(255 255 255 / 88%);
  border: 1px solid #eaecf0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgb(16 24 40 / 8%);
  backdrop-filter: blur(4px);
}

.sidebar-user button {
  width: 100%;
  padding: 8px 10px;
  color: #d0d5dd;
  background: transparent;
  border-color: #475467;
}

.sidebar-user button:hover {
  color: #fff;
  background: #344054;
}

.with-sidebar > .topbar,
.with-sidebar > main {
  margin-left: 200px;
}

.with-sidebar .daily-top-scroll {
  left: 224px;
}

.report-fullscreen .app-sidebar {
  display: none;
}

.report-fullscreen.with-sidebar > main {
  margin-left: 0;
}

.report-fullscreen.with-sidebar .daily-top-scroll {
  left: 12px;
  right: 12px;
}

.account-editor,
.account-list-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-list-scroll-section {
  display: flex;
  flex-direction: column;
  height: min(737px, calc(100vh - 128px));
  max-height: 737px;
  min-height: 420px;
  overflow: hidden;
  position: static;
  align-self: start;
}

.account-list-scroll-section .section-title {
  flex: 0 0 auto;
}

.account-list-scroll-section .section-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.store-visibility-section {
  grid-column: 1 / -1;
}

.store-visibility-section .section-title p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: 18px;
}

.account-basic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-basic-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.account-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 16px 0 12px;
  padding: 12px;
  border-radius: 6px;
  background: #f8fafc;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}

.check-label input {
  width: auto;
}

.store-permission-panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.store-permission-panel.disabled-panel {
  opacity: 0.55;
}

.store-permission-tools {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.store-permission-tools button {
  padding: 7px 9px;
}

.store-permission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
}

.store-permission-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px;
  border-radius: 5px;
  font-size: 13px;
}

.store-permission-item:hover {
  background: #f5f8ff;
}

.store-permission-item input {
  width: auto;
}

.store-permission-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f4f7fb;
}

.error-card {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 34px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 40, .09);
}

.error-card > span { color: #175cd3; font-size: 34px; font-weight: 800; }
.error-card p { color: var(--muted); line-height: 1.7; }

.account-capability-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.account-capability-panel .store-permission-tools {
  grid-template-columns: 1fr auto;
}

.account-capability-panel .store-permission-tools > div {
  display: grid;
  gap: 3px;
}

.account-capability-panel small {
  color: var(--muted);
  font-weight: 400;
}

.permission-matrix {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  background: #fbfcfe;
}

.permission-group {
  overflow: hidden;
  border: 1px solid #dbe4ee;
  border-radius: 7px;
  background: #fff;
}

.permission-group-head,
.permission-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 11px;
}

.permission-group-head {
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid #dbe4ee;
  background: #eef4ff;
}

.permission-group-head button {
  padding: 5px 8px;
  font-size: 12px;
}

.permission-row + .permission-row {
  border-top: 1px solid #edf1f5;
}

.permission-page-name {
  font-size: 13px;
  font-weight: 700;
}

.permission-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 3px 14px 3px 0;
  font-size: 13px;
}

.permission-option input {
  width: auto;
}

.account-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.account-list {
  display: grid;
  gap: 8px;
}

.account-list-scroll-section .account-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 7px;
  scrollbar-gutter: stable;
}

.account-list-scroll-section .account-list::-webkit-scrollbar {
  width: 9px;
}

.account-list-scroll-section .account-list::-webkit-scrollbar-thumb {
  border: 2px solid #fff;
  border-radius: 999px;
  background: #b8c5d6;
}

.account-list-scroll-section .account-list::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.account-card {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) 90px 100px 140px 70px auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.account-card > div:first-child {
  display: grid;
  gap: 3px;
}

.account-username {
  color: var(--muted);
  font-size: 12px;
}

.account-state {
  color: #067647;
}

.disabled-account {
  opacity: 0.6;
}

.disabled-account .account-state {
  color: #b42318;
}

@media (max-width: 1350px) {
  .accounts-main {
    grid-template-columns: 1fr;
  }

  .account-list-scroll-section {
    height: min(620px, calc(100vh - 110px));
    max-height: 620px;
    min-height: 360px;
  }
}

@media (max-width: 1100px) {
  .daily-top-scroll {
    left: 12px;
    right: 12px;
  }

  .with-sidebar .daily-top-scroll {
    left: 194px;
  }

  .app-sidebar {
    width: 182px;
  }

  .with-sidebar > .topbar,
  .with-sidebar > main {
    margin-left: 182px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-page .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-detail-page .summary,
  .daily-detail-page.community-daily-mode .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monthly-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .weekly-filters,
  .admin-metric-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounts-main {
    grid-template-columns: 1fr;
  }

  .account-list-scroll-section {
    height: min(620px, calc(100vh - 110px));
    max-height: 620px;
    min-height: 360px;
  }

  .account-card {
    grid-template-columns: minmax(150px, 1fr) repeat(2, auto);
  }

  .monthly-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-box {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .monthly-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .month-picker-panel {
    position: static;
    width: auto;
    margin-top: 2px;
    box-shadow: 0 8px 22px rgba(15, 35, 48, 0.12);
  }

  .month-picker-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .month-picker-toolbar select {
    width: 100%;
  }

  .month-picker-actions,
  .monthly-filter-actions {
    justify-content: flex-start;
  }

  .monthly-filter-actions button {
    flex: 1;
  }
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
}

.login-panel {
  display: grid;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.login-panel p,
#loginMessage {
  color: var(--muted);
  font-size: 14px;
}

/* 智能体网页对话：整屏自适应对话布局
   布局与度量对齐 DeepSeek Harness 对话窗口（取自其真实前端 bundle 的度量）：
   - 消息列 max-width 748px 居中（--dsh-chat-content-width）
   - 用户气泡 radius 22px / padding 10px 16px / 14px-22px，最大宽度 min(748×0.702, 82%)
   - 助手回复无气泡无头像，纯文本 14px/24px
   - 输入卡片为浮层白卡 radius 22px、max-width 748+32=780px、软阴影
   - 发送键 34px 圆形（radius 999px），模型名放在输入卡片脚注行
   配色沿用本站后台口径（--accent / --line / --muted），不引入新色系。 */
:root { --bot-chat-viewport-height: 100vh; }
@supports (height: 100dvh) { :root { --bot-chat-viewport-height: 100dvh; } }

.bot-chat-page {
  --bot-chat-column: 748px;
  --bot-chat-card-max-width: 780px;
  /* DSH: 用户气泡最大宽度 = 内容列 × 0.702，且不超过 82% */
  --bot-chat-bubble-max: min(calc(748px * 0.702), 82%);
  --bot-chat-gutter: 32px;
  --bot-chat-card-line: #eaecf0;
  --bot-chat-user-bg: #edf3fe;
  --bot-chat-caption: #98a2b3;
  --bot-chat-shadow-soft: 0 2px 12px rgb(16 24 40 / 8%);
  --bot-chat-shadow-float: 0 4px 14px rgb(16 24 40 / 14%);
  display: flex;
  flex-direction: column;
  height: var(--bot-chat-viewport-height);
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.bot-chat-page > .bot-chat-topbar { flex: 0 0 auto; }
.bot-chat-page > .bot-chat-main { flex: 1 1 auto; min-height: 0; display: flex; padding: 0; }

/* ---------------------------------------------------------------- 顶部会话头 */

.bot-chat-topbar {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--bot-chat-gutter);
}
.bot-chat-topbar-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bot-chat-topbar .title-area { min-width: 0; }
.bot-chat-topbar h1 { overflow: hidden; font-size: 17px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.bot-chat-topbar p { margin-top: 3px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.bot-chat-topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.bot-chat-back { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bot-chat-back:hover { text-decoration: underline; }
.bot-chat-ghost-button { display: inline-flex; align-items: center; gap: 6px; }
.bot-chat-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.bot-chat-sidebar-toggle:hover { color: var(--accent); border-color: #84adff; background: #f5f9ff; }

.bot-chat-state {
  padding: 5px 9px;
  color: #475467;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.bot-chat-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid #d1e9ff;
  border-radius: 999px;
  background: #eff8ff;
  color: #175cd3;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.bot-chat-avatar-xl { width: 46px; height: 46px; font-size: 20px; }

/* ------------------------------------------------------------------ 对话壳体 */

.bot-chat-shell {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  background: #fff;
}

.bot-chat-scroll {
  grid-area: 1 / 1;
  position: relative;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
/* 748px 居中阅读列（DSH EvIC1a_column） */
.bot-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: var(--bot-chat-column);
  margin-inline: auto;
  padding: 20px 16px 8px;
}

/* ------------------------------------------------------------------ 空状态 */

.bot-chat-empty {
  grid-area: 1 / 1;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
  background: #fff;
}
.bot-chat-empty[hidden] { display: none; }
.bot-chat-empty-card {
  display: grid;
  width: 100%;
  max-width: var(--bot-chat-column);
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.bot-chat-empty-card h2 { font-size: 18px; font-weight: 600; }
.bot-chat-empty-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.bot-chat-suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(560px, 100%); margin-top: 8px; }
.bot-chat-suggestion {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  cursor: pointer;
}
.bot-chat-suggestion:hover { color: var(--accent); border-color: #84adff; background: #f5f9ff; }

.bot-chat-day { align-self: center; color: var(--bot-chat-caption); font-size: 11.5px; }

/* -------------------------------------------------------------------- 消息 */

.bot-chat-message { display: flex; flex-direction: column; min-width: 0; }
/* 用户：右对齐气泡（DSH Sixlwa_userRow / bubble） */
.bot-chat-message.user { align-items: flex-end; }
.bot-chat-message-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; width: 100%; }
.bot-chat-message.user .bot-chat-message-main { align-items: flex-end; max-width: var(--bot-chat-bubble-max); }

.bot-chat-message.user .bot-chat-message-body {
  padding: 10px 16px;
  border: 0;
  border-radius: 22px;
  background: var(--bot-chat-user-bg);
  color: var(--text);
  font-size: 14px;
  line-height: 22px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* 助手：无气泡、无头像，纯文本（DSH 助手消息形态） */
.bot-chat-message.bot .bot-chat-message-body {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.bot-chat-message-body p { margin: 0 0 10px; }
.bot-chat-message-body p:last-child { margin-bottom: 0; }
.bot-chat-message-body h3 { margin: 14px 0 6px; font-size: 15.5px; line-height: 1.45; }
.bot-chat-message-body h4 { margin: 12px 0 5px; font-size: 14.5px; line-height: 1.45; }
.bot-chat-message-body h3:first-child,
.bot-chat-message-body h4:first-child { margin-top: 0; }
.bot-chat-message-body ul,
.bot-chat-message-body ol { display: grid; gap: 4px; margin: 6px 0; padding-left: 20px; }
.bot-chat-message-body strong { color: #111827; font-weight: 700; }
.bot-chat-message-body code {
  padding: 1px 5px;
  border: 1px solid var(--bot-chat-card-line);
  border-radius: 4px;
  background: #f8fafc;
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px;
}
.bot-chat-message-body pre { margin: 10px 0; padding: 12px 14px; border: 1px solid var(--bot-chat-card-line); border-radius: 12px; background: #f8fafc; overflow-x: auto; }
.bot-chat-message-body pre code { padding: 0; border: 0; background: transparent; color: #344054; font-size: 12.5px; line-height: 1.7; }

/* 助手消息下方的用量行（DSH「本轮用量」） */
.bot-chat-message-usage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--bot-chat-caption);
  font-size: 12px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.bot-chat-message-usage.is-muted { color: #b3bac6; }
.bot-chat-usage-item { white-space: nowrap; }
.bot-chat-usage-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--bot-chat-caption);
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-color: #d0d5dd;
  text-underline-offset: 3px;
  cursor: pointer;
}
.bot-chat-usage-toggle:hover { color: var(--accent); text-decoration-color: currentColor; }
.bot-chat-usage-detail {
  flex-basis: 100%;
  display: grid;
  gap: 3px 16px;
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid var(--bot-chat-card-line);
  border-radius: 12px;
  background: #f8fafc;
  color: #475467;
}
.bot-chat-usage-detail[hidden] { display: none; }
.bot-chat-usage-detail div { display: flex; justify-content: space-between; gap: 16px; }
.bot-chat-usage-detail span:first-child { color: var(--bot-chat-caption); }

.bot-chat-message-meta { display: flex; align-items: center; gap: 8px; color: var(--bot-chat-caption); font-size: 12px; }
.bot-chat-message.user .bot-chat-message-meta { flex-direction: row-reverse; }
.bot-chat-message-name { color: #475467; font-weight: 600; }
.bot-chat-message-model { color: #175cd3; }
.bot-chat-message-time { font-variant-numeric: tabular-nums; }

.bot-chat-message-actions { display: flex; gap: 12px; opacity: 0; transition: opacity 120ms ease; }
.bot-chat-message:hover .bot-chat-message-actions,
.bot-chat-message:focus-within .bot-chat-message-actions { opacity: 1; }
@media (hover: none) { .bot-chat-message-actions { opacity: 1; } }
.bot-chat-action {
  padding: 0;
  border: 0;
  background: none;
  color: var(--bot-chat-caption);
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}
.bot-chat-action:hover { color: var(--accent); }
.bot-chat-action.is-done { color: var(--ok); }
.bot-chat-action-retry { color: #b42318; }

.bot-chat-message.is-failed .bot-chat-message-body { color: #912018; }

/* 思考中：DSH 的流光文字 */
.bot-chat-thinking-body { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 24px; }
.bot-chat-dots { display: inline-flex; gap: 4px; }
.bot-chat-dots i { width: 5px; height: 5px; border-radius: 50%; background: #84adff; animation: bot-chat-dot 1.1s infinite ease-in-out; }
.bot-chat-dots i:nth-child(2) { animation-delay: 0.15s; }
.bot-chat-dots i:nth-child(3) { animation-delay: 0.3s; }
.bot-chat-thinking-text {
  background: linear-gradient(90deg, #4176e6 0%, #4176e6 40%, #b7c8fe 50%, #4176e6 60%, #4176e6 100%);
  background-position: 100% 0;
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: bot-chat-shimmer 1.8s linear infinite;
}
@keyframes bot-chat-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}
@keyframes bot-chat-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bot-chat-dots i { animation: none; }
  .bot-chat-thinking-text { animation: none; background: none; color: #4176e6; -webkit-text-fill-color: #4176e6; }
  .bot-chat-message-actions { transition: none; }
}

/* 回到底部：DSH 的 34px 圆形浮层按钮 */
.bot-chat-jump-row {
  grid-area: 1 / 1;
  z-index: 3;
  align-self: end;
  justify-self: center;
  width: 100%;
  max-width: var(--bot-chat-column);
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
  padding: 0 16px;
  pointer-events: none;
}
.bot-chat-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--bot-chat-card-line);
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: 15px;
  box-shadow: var(--bot-chat-shadow-float);
  cursor: pointer;
  pointer-events: auto;
}
.bot-chat-jump[hidden] { display: none; }
.bot-chat-jump #scrollToBottomLabel { display: none; }
.bot-chat-jump:hover { color: var(--accent); border-color: #84adff; }

/* ------------------------------------------------------------------ 输入区 */

.bot-chat-form {
  grid-area: 2 / 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0 var(--bot-chat-gutter) calc(10px + env(safe-area-inset-bottom));
  background: #fff;
}
.bot-chat-form[hidden] { display: none; }
/* 浮层输入卡片（DSH uV2eYG_card） */
.bot-chat-composer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: var(--bot-chat-card-max-width);
  padding: 10px 8px 6px;
  border: 1px solid var(--bot-chat-card-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--bot-chat-shadow-soft);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.bot-chat-composer:focus-within { border-color: #c7d7f5; box-shadow: 0 2px 14px rgb(16 24 40 / 12%); }
.bot-chat-composer-input { min-width: 0; }
.bot-chat-composer textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  max-height: 336px;
  padding: 4px 8px 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  line-height: 24px;
  resize: none;
  overflow-y: auto;
}
.bot-chat-composer textarea:focus { outline: none; }
.bot-chat-composer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-width: 0; padding: 0 8px; }
.bot-chat-composer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; color: var(--bot-chat-caption); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.bot-chat-usage-foot[hidden] { display: none; }
.bot-chat-counter[hidden] { display: none; }
.bot-chat-counter.is-warning { color: var(--warn); font-weight: 700; }
.bot-chat-composer-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.bot-chat-model-pill {
  max-width: 220px;
  overflow: hidden;
  color: #667085;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bot-chat-model-pill[hidden] { display: none; }
.bot-chat-model-pill .bot-chat-model-pill-provider { color: var(--bot-chat-caption); }
/* 34px 圆形发送键（DSH uV2eYG_primary） */
.bot-chat-send {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #4176e6;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.bot-chat-send:hover:not(:disabled) { background: #3462c9; }
.bot-chat-send:disabled { opacity: 0.45; cursor: not-allowed; }
.bot-chat-hint { color: var(--bot-chat-caption); font-size: 11.5px; line-height: 1.6; }

.bot-chat-scrim { position: fixed; inset: 0; z-index: 25; background: rgb(15 23 42 / 45%); }
.bot-chat-scrim[hidden] { display: none; }

/* --------------------------------------------- 助手 HTML 回复（表格等） */

.bot-chat-message-body.bot-html-reply { white-space: normal; }

.bot-chat-message-body.bot-html-reply table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: collapse;
  margin: 10px 0;
  background: #fff;
  box-sizing: border-box;
}

.bot-chat-message-body.bot-html-reply th,
.bot-chat-message-body.bot-html-reply td {
  position: static !important;
  left: auto !important;
  top: auto !important;
  z-index: auto !important;
  min-width: 0 !important;
  max-width: 0 !important;
  border: 1px solid var(--bot-chat-card-line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-break: anywhere;
  box-sizing: border-box;
}

.bot-chat-message-body.bot-html-reply th { background: #f9fafb; color: #344054; font-weight: 700; }

.bot-chat-message-body.bot-html-reply p,
.bot-chat-message-body.bot-html-reply div,
.bot-chat-message-body.bot-html-reply span,
.bot-chat-message-body.bot-html-reply li { margin-top: 6px; margin-bottom: 6px; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }

.bot-chat-message-body.bot-html-reply > :first-child { margin-top: 0; }
.bot-chat-message-body.bot-html-reply > :last-child { margin-bottom: 0; }

.bot-chat-page button:focus-visible,
.bot-chat-page a:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* ------------------------------------------------------------------ 响应式 */

@media (max-width: 1100px) {
  .bot-chat-page { --bot-chat-gutter: 24px; }
}

@media (max-width: 900px) {
  .bot-chat-page { --bot-chat-gutter: 16px; }
  .bot-chat-thread { padding: 16px 12px 8px; }
}

@media (max-width: 760px) {
  .bot-chat-page { --bot-chat-gutter: 10px; }
  .bot-chat-page > .bot-chat-topbar,
  .bot-chat-page > .bot-chat-main { margin-left: 0; }
  .bot-chat-page .app-sidebar { transform: translateX(-100%); transition: transform 200ms ease; }
  .bot-chat-page.bot-chat-sidebar-open .app-sidebar { transform: none; }
  .bot-chat-sidebar-toggle { display: inline-flex; }
  .bot-chat-topbar { flex-wrap: nowrap; gap: 8px; padding: 10px var(--bot-chat-gutter); }
  .bot-chat-topbar-main { gap: 8px; }
  .bot-chat-topbar h1 { font-size: 15px; }
  .bot-chat-topbar p { font-size: 11.5px; }
  .bot-chat-subtitle-profile { display: none; }
  .bot-chat-back-label { display: none; }
  .bot-chat-button-label { display: none; }
  .bot-chat-ghost-button { padding: 8px 10px; }
  .bot-chat-avatar-xl { width: 40px; height: 40px; font-size: 17px; }
  .bot-chat-message-actions { opacity: 1; }
  .bot-chat-suggestions { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .bot-chat-suggestion { padding: 7px 12px; font-size: 12.5px; }
  .bot-chat-message.user .bot-chat-message-main { max-width: 88%; }
  .bot-chat-composer { padding: 8px 6px 4px; }
  .bot-chat-composer textarea { min-height: 46px; padding: 4px 6px 0 12px; font-size: 16px; }
  .bot-chat-composer-row { padding: 0 6px; }
  .bot-chat-hint { display: none; }
  .bot-chat-jump-row { padding: 0 12px; }
}

@media (max-width: 420px) {
  .bot-chat-state { display: none; }
  .bot-chat-model-pill { max-width: 140px; }
  .bot-chat-message.user .bot-chat-message-body { font-size: 13.5px; }
}
.agent-center-main { display: grid; gap: 16px; }
.agent-center-main .filters { align-items: end; }
.agent-center-main .filters label:has(textarea) { min-width: min(520px, 100%); flex: 1 1 420px; }
.agent-center-main textarea { width: 100%; resize: vertical; }
.agent-result { margin: 0; padding: 20px; min-height: 220px; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: #f8fafc; color: #263445; }
.top-product-filters { display:grid; grid-template-columns:minmax(240px,1fr) minmax(280px,1.2fr) auto auto; }
.top-product-summary { margin-bottom: 14px; }
.top-product-updated-card { min-width:210px; }
.top-product-updated-card strong { font-size:16px !important; white-space:nowrap; }
.top-product-page-state { min-height:20px; margin:-4px 2px 8px; color:#52657d; font-size:13px; font-weight:600; }
.top-product-table-wrap { max-height:calc(100vh - 370px); min-height:360px; }
.top-product-table-wrap table { min-width:1260px; }
.top-product-table-wrap th { position:sticky; top:0; z-index:2; }
.product-id-cell { font-family:Consolas,"SFMono-Regular",monospace; font-weight:700; color:#1d4ed8; }
.product-id-button { appearance:none; border:0; background:transparent; color:#1d4ed8; font:inherit; font-weight:700; padding:4px 2px; cursor:pointer; text-decoration:underline; text-decoration-color:#bfdbfe; text-underline-offset:3px; }
.product-id-button:hover { color:#1e40af; text-decoration-color:#1e40af; }
.product-diagnosis-cell { min-width:300px; max-width:420px; white-space:normal; vertical-align:top; line-height:1.55; }
.product-diagnosis-cell>strong { display:block; margin-bottom:4px; color:#9a3412; font-size:13px; }
.product-diagnosis-cell>p { margin:6px 0 0; color:#7c2d12; font-size:12px; }
.product-diagnosis-basis { display:block; margin-bottom:7px; color:#94a3b8; font-size:11px; }
.product-diagnosis-checks { display:flex; flex-wrap:wrap; gap:4px; }
.product-diagnosis-checks span { padding:2px 7px; border-radius:999px; background:#ffedd5; color:#9a3412; font-size:11px; font-weight:700; }
.product-diagnosis-cell.is-pending,.product-diagnosis-cell.is-loading,.product-diagnosis-cell.is-empty { color:#94a3b8; font-size:12px; }
.product-diagnosis-cell.is-clear { color:#16803a; font-size:12px; font-weight:700; }
.product-diagnosis-cell.is-error { color:#b42318; font-size:12px; }
.product-diagnosis-cell.is-error button { margin-left:8px; padding:3px 7px; border-radius:6px; color:#b42318; background:#fff; border:1px solid #fecaca; font-size:11px; }
.top-product-detail-dialog { width:min(1080px,calc(100vw - 32px)); max-height:calc(100vh - 32px); padding:0; border:0; border-radius:18px; box-shadow:0 24px 80px rgba(15,23,42,.24); overflow:hidden; }
.top-product-detail-dialog::backdrop { background:rgba(15,23,42,.55); backdrop-filter:blur(2px); }
.product-detail-body { padding:20px 24px 26px; max-height:calc(100vh - 150px); overflow:auto; background:#f8fafc; }
.product-realtime-section,.product-trend-section { background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:18px; }
.product-trend-section,.product-diagnosis-section { margin-top:16px; }
.product-diagnosis-section { padding:18px; border:1px solid #fed7aa; border-radius:14px; background:linear-gradient(135deg,#fff7ed,#fff); }
.product-diagnosis-section h4 { margin:0 0 12px; color:#9a3412; font-size:16px; }
.product-diagnosis-section>p { margin:12px 0 0; color:#7c2d12; line-height:1.7; }
.diagnosis-checks { display:flex; flex-wrap:wrap; gap:8px; }
.diagnosis-checks span { padding:6px 10px; border-radius:999px; background:#ffedd5; color:#9a3412; font-size:13px; font-weight:700; }
.product-detail-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px; }
.product-detail-section-head h3 { margin:0; font-size:17px; color:#0f172a; }
.product-detail-section-head p { margin:5px 0 0; color:#64748b; font-size:13px; }
.product-detail-section-head label { display:flex; align-items:center; gap:8px; color:#475569; font-size:13px; white-space:nowrap; }
.product-detail-section-head select { min-width:170px; padding:8px 30px 8px 10px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; }
.product-realtime-snapshots { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.product-realtime-snapshot { min-width:0; padding:14px; border:1px solid #dbe3ee; border-radius:12px; background:#fbfdff; }
.product-realtime-snapshot h4 { margin:0 0 12px; color:#334155; font-size:14px; }
.product-realtime-grid { display:grid; grid-template-columns:repeat(4,minmax(130px,1fr)); gap:10px; }
.product-realtime-snapshot .product-realtime-grid { grid-template-columns:repeat(2,minmax(120px,1fr)); }
.product-realtime-grid>div:not(.product-detail-empty) { padding:13px 14px; border:1px solid #e2e8f0; border-radius:10px; background:linear-gradient(145deg,#fff,#f8fafc); }
.product-realtime-grid span { display:block; color:#64748b; font-size:12px; margin-bottom:7px; }
.product-realtime-grid strong { color:#0f172a; font-size:18px; }
.product-detail-empty { grid-column:1/-1; padding:24px; text-align:center; color:#94a3b8; border:1px dashed #cbd5e1; border-radius:10px; }
.product-trend-range { display:flex; flex-wrap:wrap; gap:8px; margin:-4px 0 14px; }
.product-trend-range button { padding:7px 13px; border:1px solid #cbd5e1; border-radius:999px; color:#475569; background:#fff; font-size:12px; font-weight:700; }
.product-trend-range button.active { border-color:#2563eb; color:#fff; background:#2563eb; box-shadow:0 4px 12px rgba(37,99,235,.18); }
.product-trend-chart { position:relative; width:100%; min-height:330px; overflow-x:auto; }
.product-trend-chart canvas { display:block; }
.product-trend-tooltip { position:absolute; z-index:2; padding:8px 10px; border-radius:7px; background:rgba(15,23,42,.92); color:#fff; font-size:12px; white-space:nowrap; pointer-events:none; box-shadow:0 6px 18px rgba(15,23,42,.18); }
@media (max-width:760px) { .product-realtime-snapshots{grid-template-columns:1fr}.product-realtime-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}.product-detail-section-head{align-items:flex-start;flex-direction:column}.product-detail-body{padding:14px}.top-product-detail-dialog{width:calc(100vw - 16px)} }
/* Unified account and permission workspace. */
.accounts-page { background:#f4f7fb; }
.accounts-page [hidden] { display:none !important; }
.accounts-topbar { align-items:center; padding-bottom:16px; }
.accounts-topbar .title-area p { margin-top:5px; color:var(--muted); }
.accounts-main { display:block; }
.account-workspace { overflow:hidden; border:1px solid #dbe4ee; border-radius:14px; background:#fff; box-shadow:0 8px 28px rgba(16,24,40,.06); }
.account-workspace-tabs { display:flex; gap:4px; padding:10px 14px 0; border-bottom:1px solid #dbe4ee; background:#f8fafc; }
.account-workspace-tabs button { position:relative; padding:11px 17px 13px; border:0; border-radius:8px 8px 0 0; color:#667085; background:transparent; font-weight:700; }
.account-workspace-tabs button.active { color:#175cd3; background:#fff; }
.account-workspace-tabs button.active::after { content:""; position:absolute; left:14px; right:14px; bottom:-1px; height:2px; background:#2563eb; }
.account-workspace-panel { min-width:0; }
.account-list-toolbar { display:grid; grid-template-columns:minmax(260px,1fr) 170px 150px auto; gap:12px; align-items:end; padding:14px 16px; border-bottom:1px solid #e5eaf0; }
.account-list-toolbar label { display:grid; gap:5px; color:#667085; font-size:12px; }
.account-list-toolbar input,.account-list-toolbar select { height:38px; }
.account-count { align-self:center; color:#667085; font-size:13px; white-space:nowrap; }
.account-master-detail { display:grid; grid-template-columns:minmax(430px,.88fr) minmax(560px,1.12fr); min-height:650px; }
.account-directory { min-width:0; border-right:1px solid #dbe4ee; background:#fbfcfe; }
.account-list-heading,.account-list-row { display:grid; grid-template-columns:minmax(150px,1.25fr) 96px minmax(125px,1fr) 72px; gap:10px; align-items:center; }
.account-list-heading { padding:9px 14px; border-bottom:1px solid #e5eaf0; color:#98a2b3; font-size:11px; font-weight:700; letter-spacing:.02em; }
.account-list { display:block; max-height:calc(100vh - 260px); min-height:560px; overflow:auto; padding:7px; }
.account-list-row { width:100%; margin:0 0 5px; padding:11px 9px; border:1px solid transparent; border-radius:9px; color:#344054; background:transparent; text-align:left; }
.account-list-row:hover { border-color:#d6e4ff; background:#f2f6ff; }
.account-list-row.selected { border-color:#9ec5ff; background:#eaf2ff; box-shadow:inset 3px 0 #2563eb; }
.account-person,.account-scope-cell { display:grid; gap:3px; min-width:0; }
.account-person strong,.account-person small,.account-scope-cell strong,.account-scope-cell small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-person strong { color:#172033; font-size:13px; }
.account-department-tag { display:inline-block; margin-left:6px; padding:2px 5px; border-radius:999px; color:#175cd3; background:#dbeafe; font-size:9px; font-style:normal; font-weight:750; vertical-align:middle; }
.account-person small,.account-scope-cell small { color:#7b8798; font-size:11px; }
.account-scope-cell strong { font-size:12px; font-weight:650; }
.account-role-tag,.account-state-tag { justify-self:start; padding:4px 7px; border-radius:999px; font-size:11px; font-weight:700; white-space:nowrap; }
.account-role-tag { color:#344054; background:#eef2f6; }
.account-role-tag.role-admin { color:#7f56d9; background:#f4ebff; }
.account-role-tag.role-manager { color:#175cd3; background:#eaf2ff; }
.account-role-tag.role-editor { color:#027a48; background:#ecfdf3; }
.account-state-tag.enabled { color:#067647; background:#ecfdf3; }
.account-state-tag.disabled { color:#b42318; background:#fef3f2; }
.account-list-row.disabled-account { opacity:1; }
.account-list-empty { padding:54px 20px; color:#98a2b3; text-align:center; }
.account-detail { min-width:0; background:#fff; }
.account-detail-empty { display:grid; min-height:650px; place-content:center; justify-items:center; padding:40px; color:#667085; text-align:center; }
.account-detail-empty > span { display:grid; width:58px; height:58px; place-items:center; margin-bottom:16px; border-radius:16px; color:#2563eb; background:#eaf2ff; font-size:25px; font-weight:800; }
.account-detail-empty h2 { margin-bottom:8px; color:#344054; font-size:19px; }
.account-detail-empty p { max-width:330px; line-height:1.6; }
#accountForm { display:flex; flex-direction:column; height:min(760px,calc(100vh - 180px)); min-height:650px; }
.account-detail-head { display:flex; flex:0 0 auto; justify-content:space-between; gap:16px; align-items:start; padding:17px 20px 13px; }
.account-detail-head > div > span { color:#2563eb; font-size:11px; font-weight:800; letter-spacing:.06em; }
.account-detail-head h2 { margin:3px 0 4px; color:#172033; font-size:20px; }
.account-detail-head p { color:#667085; font-size:12px; }
#closeAccountEditor { width:34px; height:34px; padding:0; border:0; color:#667085; background:transparent; font-size:25px; }
.account-detail-tabs { display:flex; flex:0 0 auto; gap:5px; padding:0 20px; border-bottom:1px solid #dbe4ee; }
.account-detail-tabs button { padding:9px 12px 11px; border:0; border-radius:7px 7px 0 0; color:#667085; background:transparent; font-weight:700; }
.account-detail-tabs button.active { color:#175cd3; background:#eef4ff; }
.account-detail-tabs button span:not(:empty) { margin-left:4px; padding:1px 6px; border-radius:999px; color:#175cd3; background:#dbeafe; font-size:10px; }
.account-detail-body { flex:1 1 auto; min-height:0; overflow-y:auto; padding:18px 20px 24px; background:#fbfcfe; }
.account-tab-panel { min-width:0; }
.account-basic-grid { gap:15px; }
.account-basic-grid label { color:#475467; font-weight:650; }
.account-basic-grid small { color:#98a2b3; font-weight:400; line-height:1.45; }
.account-status-field { align-content:start; }
.account-ai-department-field { align-content:start; padding:10px 12px; border:1px solid #d8e5f4; border-radius:9px; background:#f7fbff; }
.account-ai-department-field small { display:block; }
.account-ai-department-effective { color:#175cd3!important; }
.account-department-picker { position:relative; }
.account-department-trigger { display:flex; width:100%; height:40px; justify-content:space-between; align-items:center; padding:0 11px; border:1px solid #cfd9e6; border-radius:8px; color:#344054; background:#fff; text-align:left; }
.account-department-trigger:disabled { color:#667085; background:#f2f4f7; cursor:not-allowed; }
.account-department-menu { position:absolute; z-index:20; top:44px; left:0; right:0; padding:8px; border:1px solid #cfd9e6; border-radius:9px; background:#fff; box-shadow:0 12px 28px rgba(16,24,40,.14); }
.account-department-menu > input { width:100%; margin-bottom:6px; }
.account-department-option { display:block; width:100%; padding:8px 10px; border:0; border-radius:6px; color:#344054; background:#fff; text-align:left; }
.account-department-option:hover,.account-department-option[aria-selected="true"] { color:#175cd3; background:#eef4ff; }
.account-department-empty { padding:9px 10px; color:#98a2b3; font-size:12px; }
.account-switch-row { display:flex; align-items:center; gap:8px; height:40px; color:#344054; }
.account-switch-row input { width:auto; }
.account-password-card { display:grid; grid-template-columns:1fr auto; gap:10px 14px; align-items:center; margin-top:18px; padding:15px; border:1px solid #dbe4ee; border-radius:10px; background:#fff; }
.account-password-card > div:first-child { display:grid; gap:4px; }
.account-password-card small { color:#667085; font-size:12px; }
.account-password-editor { display:grid; grid-column:1/-1; grid-template-columns:minmax(200px,1fr) auto auto auto; gap:8px; }
.account-scope-explain,.permission-toolbar { display:flex; justify-content:space-between; gap:14px; align-items:center; margin-bottom:14px; padding:13px 14px; border:1px solid #cfe0ff; border-radius:10px; background:#f3f7ff; }
.account-scope-explain p,.permission-toolbar p { margin-top:4px; color:#667085; font-size:12px; line-height:1.5; }
#scopeSummaryBadge,.permission-mode-badge { flex:0 0 auto; padding:5px 9px; border-radius:999px; color:#175cd3; background:#dbeafe; font-size:11px; font-weight:750; }
.permission-mode-badge.custom { color:#b54708; background:#fffaeb; }
.account-scope-switches { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-bottom:14px; }
.account-scope-switches > label { display:flex; gap:9px; align-items:flex-start; padding:12px; border:1px solid #dbe4ee; border-radius:9px; background:#fff; }
.account-scope-switches input { width:auto; margin-top:2px; }
.account-scope-switches span { display:grid; gap:4px; }
.account-scope-switches strong { color:#344054; font-size:12px; }
.account-scope-switches small { color:#7b8798; font-size:11px; line-height:1.45; }
.account-store-picker .store-permission-list { grid-template-columns:repeat(2,minmax(0,1fr)); max-height:350px; }
.permission-toolbar { display:grid; grid-template-columns:1fr auto auto; }
.permission-readonly-hint { margin-bottom:10px; padding:10px 12px; border-radius:8px; color:#b54708; background:#fffaeb; font-size:12px; }
.permission-filterbar { display:grid; grid-template-columns:minmax(180px,1fr) auto auto auto; gap:8px; align-items:center; margin-bottom:10px; }
.permission-filterbar label { display:flex; align-items:center; gap:6px; color:#475467; font-size:12px; white-space:nowrap; }
.permission-filterbar label input { width:auto; }
.permission-matrix { max-height:none; overflow:visible; padding:0; background:transparent; }
.computer-permission-section { min-width:0; }
.computer-permission-heading { grid-template-columns:1fr auto; }
.account-computer-picker .store-permission-list { grid-template-columns:repeat(2,minmax(0,1fr)); max-height:420px; }
.computer-permission-item span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.computer-permission-empty { margin:12px 0 0; color:#667085; font-size:13px; text-align:center; }
.script-store-permission-section { min-width:0; }
.script-store-permission-heading { grid-template-columns:1fr auto; }
.script-scope-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-bottom:12px; }
.script-scope-option { display:flex; align-items:flex-start; gap:9px; min-height:76px; padding:12px; border:1px solid #dbe4ee; border-radius:9px; background:#fff; cursor:pointer; }
.script-scope-option:has(input:checked) { border-color:#82afe7; background:#f1f7ff; box-shadow:0 0 0 2px rgb(59 130 208 / 8%); }
.script-scope-option input { flex:none; width:auto; margin-top:3px; accent-color:#246fca; }
.script-scope-option span { display:grid; gap:4px; }
.script-scope-option strong { color:#344054; font-size:12px; }
.script-scope-option small { color:#7b8798; font-size:11px; line-height:1.5; }
.script-store-effective-hint { margin:0 0 12px; padding:10px 12px; border-radius:8px; color:#526171; background:#f5f8fb; font-size:12px; line-height:1.6; }
.script-store-permission-section .store-permission-list { grid-template-columns:repeat(2,minmax(0,1fr)); max-height:350px; }
.permission-group { border-radius:9px; }
.permission-group-head { display:grid; grid-template-columns:1fr auto; gap:8px; padding:0; background:#f7f9fc; }
.permission-group-toggle { display:flex; width:100%; justify-content:space-between; align-items:center; padding:10px 12px; border:0; color:#344054; background:transparent; text-align:left; }
.permission-group-toggle span { display:flex; align-items:center; gap:9px; }
.permission-group-toggle small { color:#7b8798; font-size:11px; font-weight:500; }
.permission-group-toggle b { color:#175cd3; font-size:11px; }
.permission-group-actions { display:flex; gap:5px; align-items:center; padding-right:8px; }
.permission-group-actions button { padding:5px 7px; border-color:#d0d9e5; font-size:11px; }
.permission-group-body { border-top:1px solid #e5eaf0; }
.permission-group-collapsed .permission-group-body { display:none; }
.permission-group.permission-search-expanded .permission-group-body { display:block; }
.permission-row { grid-template-columns:130px 1fr; padding:9px 11px; }
.permission-options { display:flex; flex-wrap:wrap; align-items:center; }
.permission-option { margin:2px 12px 2px 0; padding:3px 7px; border-radius:5px; }
.permission-option:has(input:checked) { color:#175cd3; background:#eef4ff; }
.permission-action-view { font-weight:700; }
.account-form-actions { flex:0 0 auto; min-height:62px; margin:0; padding:11px 20px; border-top:1px solid #dbe4ee; background:#fff; }
.account-form-actions > span { flex:1 1 auto; color:#667085; font-size:12px; }
.global-visibility-head { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:22px; border-bottom:1px solid #e5eaf0; background:linear-gradient(135deg,#fff9f4,#fff); }
.global-visibility-head > div:first-child > span { color:#b54708; font-size:11px; font-weight:800; letter-spacing:.06em; }
.global-visibility-head h2 { margin:3px 0 6px; font-size:20px; }
.global-visibility-head p { max-width:720px; color:#667085; font-size:13px; line-height:1.6; }
.global-visibility-warning { padding:7px 11px; border:1px solid #fedf89; border-radius:999px; color:#b54708; background:#fffaeb; font-size:12px; font-weight:750; white-space:nowrap; }
.global-visibility-tools { display:flex; justify-content:space-between; gap:14px; align-items:center; padding:14px 20px; border-bottom:1px solid #e5eaf0; }
.global-visibility-tools input { max-width:400px; }
.global-visibility-tools span { color:#667085; font-size:12px; }
.global-visibility-list { grid-template-columns:repeat(4,minmax(0,1fr)); max-height:calc(100vh - 330px); min-height:360px; padding:18px 20px; }
.global-visibility-footer { display:flex; justify-content:flex-end; gap:16px; align-items:center; padding:13px 20px; border-top:1px solid #dbe4ee; background:#fff; }
.global-visibility-footer span { flex:1 1 auto; color:#667085; font-size:12px; }

@media (max-width:1250px) {
  .account-master-detail { grid-template-columns:minmax(360px,.8fr) minmax(500px,1.2fr); }
  .account-list-heading,.account-list-row { grid-template-columns:minmax(140px,1.2fr) 86px minmax(110px,1fr); }
  .account-list-heading span:last-child,.account-list-row .account-state-tag { display:none; }
}
@media (max-width:1020px) {
  .account-list-toolbar { grid-template-columns:1fr 150px 140px; }
  .account-count { grid-column:1/-1; }
  .account-master-detail { grid-template-columns:1fr; }
  .account-directory { border-right:0; border-bottom:1px solid #dbe4ee; }
  .account-list { min-height:0; max-height:340px; }
  #accountForm { height:auto; min-height:650px; }
  .account-detail-body { max-height:620px; }
}
@media (max-width:720px) {
  .accounts-topbar { align-items:stretch; }
  .account-list-toolbar { grid-template-columns:1fr; }
  .account-count { grid-column:auto; }
  .account-list-heading { display:none; }
  .account-list-row { grid-template-columns:1fr auto; }
  .account-scope-cell { grid-column:1/-1; }
  .account-list-row .account-state-tag { display:inline-flex; grid-column:2; grid-row:1; }
  .account-basic-grid,.account-scope-switches,.script-scope-options { grid-template-columns:1fr; }
  .account-password-editor,.permission-filterbar { grid-template-columns:1fr; }
  .permission-toolbar { grid-template-columns:1fr; align-items:start; }
  .permission-row { grid-template-columns:1fr; gap:7px; }
  .account-computer-picker .store-permission-list { grid-template-columns:1fr; }
  .script-store-permission-section .store-permission-list { grid-template-columns:1fr; }
  .global-visibility-head { align-items:flex-start; flex-direction:column; }
  .global-visibility-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.duplicate-tag { color:#b42318; font-weight:700; }
.top-product-upload-dialog { width:min(760px,calc(100vw - 28px)); max-height:calc(100vh - 32px); padding:0; overflow:hidden; border:0; border-radius:18px; color:#172033; box-shadow:0 28px 90px rgba(15,35,48,.3); }
.top-product-upload-dialog::backdrop { background:rgba(15,23,42,.54); backdrop-filter:blur(2px); }
.top-product-dialog-head { display:flex; justify-content:space-between; gap:24px; padding:24px 26px 20px; border-bottom:1px solid #e5eaf2; background:linear-gradient(135deg,#f8fbff,#fff); }
.top-product-dialog-head h2 { margin:4px 0 6px; font-size:22px; }
.top-product-dialog-head p { margin:0; color:#64748b; font-size:13px; line-height:1.6; }
.dialog-eyebrow { color:#2563eb; font-size:12px; font-weight:800; letter-spacing:.08em; }
.dialog-close { flex:0 0 auto; width:36px; height:36px; padding:0; border-radius:10px; font-size:24px; line-height:1; color:#64748b; background:#fff; }
.top-product-upload-body { max-height:calc(100vh - 220px); overflow-y:auto; padding:22px 26px; }
.upload-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin:0 0 20px; padding:0; list-style:none; }
.upload-steps li { position:relative; display:flex; align-items:center; justify-content:center; gap:7px; color:#94a3b8; font-size:13px; font-weight:700; }
.upload-steps li:not(:last-child)::after { content:""; position:absolute; left:calc(50% + 48px); right:calc(-50% + 48px); height:1px; background:#dbe3ee; }
.upload-steps b { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; color:#64748b; background:#eef2f7; }
.upload-steps li.active { color:#1d4ed8; }
.upload-steps li.active b { color:#fff; background:#2563eb; box-shadow:0 0 0 4px #dbeafe; }
.version-notice { display:grid; gap:3px; margin-bottom:16px; padding:12px 14px; border-left:4px solid #3b82f6; border-radius:8px; background:#eff6ff; }
.version-notice strong { color:#1e3a8a; font-size:14px; }
.version-notice span { color:#52657d; font-size:12px; }
.top-product-file-drop { display:grid; justify-items:center; gap:7px; padding:25px 18px; border:2px dashed #a9bdd8; border-radius:14px; text-align:center; cursor:pointer; background:#fbfdff; transition:.18s ease; }
.top-product-file-drop:hover { border-color:#3b82f6; background:#f4f8ff; transform:translateY(-1px); }
.top-product-file-drop input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; }
.file-drop-icon { display:grid; place-items:center; width:54px; height:42px; border-radius:10px; color:#166534; background:#dcfce7; font-size:12px; font-weight:900; letter-spacing:.04em; }
.top-product-file-drop strong { color:#1d4ed8; }
.top-product-file-drop #uploadFileName { max-width:100%; overflow:hidden; color:#64748b; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.upload-rules { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.upload-rules div { display:grid; gap:3px; padding:10px 12px; border:1px solid #e5eaf2; border-radius:9px; background:#fff; }
.upload-rules span { color:#94a3b8; font-size:11px; }
.upload-rules strong { color:#334155; font-size:13px; }
.upload-state { min-height:20px; margin-top:12px; color:#52657d; font-size:13px; font-weight:600; }
.top-product-preview { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:6px; padding:14px; border:1px solid #cbdcf5; border-radius:12px; background:#f8fbff; }
.top-product-preview > strong { grid-column:1/-1; overflow:hidden; color:#172033; text-overflow:ellipsis; white-space:nowrap; }
.preview-stat { display:grid; gap:3px; padding:10px; border-radius:9px; background:#fff; box-shadow:inset 0 0 0 1px #e5eaf2; }
.preview-stat span { color:#64748b; font-size:11px; }
.preview-stat b { font-size:20px; }
.preview-warning { grid-column:1/-1; padding:9px 11px; border-radius:8px; color:#9a3412; background:#fff7ed; font-size:12px; }
.preview-store-scope { color:#1e3a8a; background:#eff6ff; }
.top-product-dialog-actions { display:grid; grid-template-columns:auto 1fr auto auto; gap:10px; padding:16px 26px; border-top:1px solid #e5eaf2; background:#fff; }
@media (max-width:600px) { .top-product-dialog-head,.top-product-upload-body { padding-left:18px; padding-right:18px; } .upload-steps li span { display:none; } .upload-rules { grid-template-columns:1fr; } .top-product-preview { grid-template-columns:1fr 1fr; } .top-product-dialog-actions { grid-template-columns:1fr 1fr; padding:14px 18px; } .top-product-dialog-actions span { display:none; } .top-product-dialog-actions button { width:100%; } }
@media (max-width: 1050px) { .top-product-filters { grid-template-columns:1fr 1fr; } }

/* 大牌券充值与使用 */
.brand-coupon-page main { display:grid; gap:16px; }
.brand-coupon-filters { grid-template-columns:minmax(220px,1.4fr) minmax(160px,1fr) minmax(160px,1fr) auto auto auto; }
.brand-coupon-summary { grid-template-columns:repeat(8,minmax(145px,1fr)); }
.brand-coupon-summary > div { min-height:92px; }
.brand-coupon-summary strong { font-size:21px; }
.brand-coupon-notice { padding:13px 16px; border:1px solid #f6d58a; border-left:4px solid #d99614; border-radius:10px; color:#7a4d05; background:#fffbeb; font-size:13px; line-height:1.65; }
.brand-coupon-notice.warning { border-color:#fecaca; border-left-color:#dc2626; color:#991b1b; background:#fff1f2; }
.brand-coupon-state { min-height:20px; color:#52657d; font-size:13px; font-weight:600; }
.brand-coupon-state.error { color:#b42318; }
.brand-coupon-summary-shell .table-wrap { max-height:390px; }
.brand-coupon-detail-shell .table-wrap { max-height:520px; }
.brand-coupon-summary-shell table { min-width:1320px; }
.brand-coupon-detail-shell table { min-width:1420px; }
.brand-coupon-summary-shell th,.brand-coupon-detail-shell th { position:sticky; top:0; z-index:2; }
.brand-coupon-summary-shell .number,.brand-coupon-detail-shell .number { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.brand-coupon-summary-shell .pending-value { color:#9a6700; font-weight:700; white-space:nowrap; }
.brand-coupon-summary-shell .negative-value { color:#b42318; font-weight:800; text-align:right; white-space:nowrap; }
.brand-coupon-summary-shell .status-pending,.brand-coupon-summary-shell .status-ready { font-weight:800; white-space:nowrap; }
.brand-coupon-summary-shell .status-pending { color:#9a6700; }
.brand-coupon-summary-shell .status-ready { color:#16803a; }
.brand-coupon-detail-shell .updated-cell { white-space:pre-line; color:#64748b; font-size:12px; line-height:1.5; }
.brand-coupon-actions { display:flex; gap:7px; white-space:nowrap; }
.brand-coupon-actions button { padding:6px 10px; border-radius:7px; font-size:12px; }
.brand-coupon-actions button.danger { border-color:#fecaca; color:#b42318; background:#fff; }
.brand-coupon-actions button.danger:hover { background:#fff1f2; }
.brand-coupon-summary-shell .empty-cell,.brand-coupon-detail-shell .empty-cell { padding:34px; color:#94a3b8; text-align:center; }
.brand-coupon-summary-shell .table-toolbar > div,.brand-coupon-detail-shell .table-toolbar > div { display:flex; align-items:center; gap:12px; }
.brand-coupon-summary-shell .table-toolbar span,.brand-coupon-detail-shell .table-toolbar span { color:#64748b; font-size:12px; }
.brand-coupon-dialog { width:min(720px,calc(100vw - 28px)); padding:0; border:0; border-radius:18px; color:#172033; box-shadow:0 28px 90px rgba(15,35,48,.3); }
.brand-coupon-dialog::backdrop { background:rgba(15,23,42,.54); backdrop-filter:blur(2px); }
.brand-coupon-dialog form { margin:0; }
.brand-coupon-dialog .dialog-head { display:flex; justify-content:space-between; gap:22px; padding:22px 24px 18px; border-bottom:1px solid #e5eaf2; background:linear-gradient(135deg,#f8fbff,#fff); }
.brand-coupon-dialog .dialog-head h2 { margin:4px 0 6px; }
.brand-coupon-dialog .dialog-head p { margin:0; color:#64748b; font-size:13px; }
.brand-coupon-dialog .dialog-head > button { flex:0 0 auto; width:36px; height:36px; padding:0; font-size:24px; }
.brand-coupon-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; padding:22px 24px 10px; }
.brand-coupon-form-grid label { display:grid; gap:7px; color:#475569; font-size:12px; font-weight:700; }
.brand-coupon-form-grid input,.brand-coupon-form-grid select,.brand-coupon-form-grid textarea { width:100%; border:1px solid #cbd5e1; border-radius:9px; background:#fff; color:#172033; }
.brand-coupon-form-grid input,.brand-coupon-form-grid select { min-height:40px; padding:8px 10px; }
.brand-coupon-form-grid textarea { padding:10px; resize:vertical; }
.brand-coupon-form-grid input[readonly] { color:#64748b; background:#f8fafc; }
.brand-coupon-preview { display:grid; gap:6px; padding:12px 14px; border:1px solid #dbe6f3; border-radius:10px; background:#f8fbff; }
.brand-coupon-preview span { color:#64748b; font-size:12px; }
.brand-coupon-preview strong { color:#0f4c81; font-size:18px; }
.brand-coupon-note { grid-column:1/-1; }
.brand-coupon-dialog .brand-coupon-state { margin:0 24px; }
.brand-coupon-dialog .dialog-actions { display:flex; justify-content:flex-end; gap:10px; padding:16px 24px 20px; }
.brand-coupon-rule-filters { grid-template-columns:minmax(220px,1.3fr) minmax(170px,1fr) minmax(160px,1fr) auto auto auto; }
.brand-coupon-rule-shell .table-wrap { max-height:calc(100vh - 320px); min-height:360px; }
.brand-coupon-rule-shell table { min-width:1180px; }
.brand-coupon-rule-shell th { position:sticky; top:0; z-index:2; }
.brand-coupon-rule-shell .number { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.brand-coupon-rule-shell .updated-cell { white-space:pre-line; color:#64748b; font-size:12px; line-height:1.5; }
.brand-coupon-rule-shell .empty-cell { padding:34px; color:#94a3b8; text-align:center; }
.brand-coupon-rule-shell .table-toolbar > div { display:flex; align-items:center; gap:12px; }
.brand-coupon-rule-shell .table-toolbar span { color:#64748b; font-size:12px; }
.brand-coupon-rule-shell .table-toolbar code { color:#475569; font-size:12px; }
.brand-coupon-rule-shell .status-manual { color:#9a3412; font-weight:800; }
.brand-coupon-rule-shell .status-source { color:#166534; font-weight:700; }
@media (max-width:1200px) { .brand-coupon-summary { grid-template-columns:repeat(3,minmax(150px,1fr)); } .brand-coupon-filters { grid-template-columns:repeat(3,minmax(160px,1fr)); } }
@media (max-width:720px) { .brand-coupon-summary,.brand-coupon-filters,.brand-coupon-rule-filters,.brand-coupon-form-grid { grid-template-columns:1fr; } .brand-coupon-note { grid-column:auto; } .brand-coupon-dialog .dialog-head,.brand-coupon-form-grid { padding-left:17px; padding-right:17px; } }

/* Design center */
.design-center-page { background:#f4f7fb; }
.design-topbar { align-items:center; }
.design-topbar > * { min-width:0; }
.design-access-actions { display:flex; align-items:center; gap:10px; }
.design-account-type { padding:6px 10px; border:1px solid #c7daf2; border-radius:999px; color:#0b4aa2; background:#edf5ff; font-size:12px; font-weight:700; white-space:nowrap; }
.design-main { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; min-width:0; padding:18px 28px 32px; }
.design-state { min-height:0; color:var(--muted); }
.design-state:empty { display:none; }
.design-state.error { padding:10px 12px; border:1px solid #f2b8b5; border-radius:8px; color:#b42318; background:#fff1f0; }
.design-mode-tabs { display:flex; gap:6px; padding:4px; border:1px solid var(--line); border-radius:10px; background:#eef3f8; }
.design-mode-tabs button { min-width:100px; border-color:transparent; color:var(--muted); background:transparent; }
.design-mode-tabs button.active { border-color:#b9d5ff; color:#0b4aa2; background:#fff; box-shadow:0 1px 4px rgba(23,43,77,.1); }
.design-pricing-panel,
.design-view { display:grid; gap:14px; min-width:0; }
.design-pricing-panel > *,
.design-view > *,
.design-panel > * { min-width:0; }
.design-view[hidden],
.design-panel[hidden] { display:none; }
.design-section-head,
.design-panel-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.design-section-head > div:first-child,
.design-panel-head > div:first-child { min-width:0; }
.design-section-head h2 { font-size:20px; }
.design-section-head p,
.design-panel-head span { margin-top:4px; color:var(--muted); font-size:13px; }
.design-section-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; min-width:0; flex-wrap:wrap; }
.design-section-actions > span { min-width:0; color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
.design-tier-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.design-tier-card { display:grid; gap:10px; padding:16px; border:1px solid #c9d8e6; border-top:4px solid #287ca3; border-radius:10px; background:#fff; box-shadow:0 2px 8px rgba(16,42,67,.05); }
.design-tier-card > div:first-child { display:grid; gap:4px; }
.design-tier-card strong { color:#183b56; font-size:16px; }
.design-tier-card span,
.design-tier-card p,
.design-tier-card small { color:var(--muted); font-size:13px; }
.design-tier-price { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:10px; border-radius:8px; background:#fff7d6; }
.design-tier-price b { color:#9a6700; font-size:17px; }
.design-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.design-summary-card { display:grid; gap:6px; min-width:0; min-height:102px; overflow:hidden; padding:15px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.design-summary-card span { color:var(--muted); font-size:13px; }
.design-summary-card strong { color:#173c59; font-size:26px; }
.design-summary-card small { min-height:16px; color:var(--muted); }
.design-panel { display:grid; gap:12px; padding:16px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.design-panel-head h3 { font-size:17px; }
.design-order-panel-title { display:flex; align-items:center; gap:9px; }
.design-panel-head .design-order-count { margin:0; padding:4px 9px; border-radius:999px; color:#075985; background:#e5f5fc; font-size:12px; font-weight:700; white-space:nowrap; }
.design-order-list-hint { color:var(--muted); font-size:11px; font-weight:400; white-space:nowrap; }
.design-filter { display:flex; align-items:end; gap:10px; }
.design-filter label,
.design-panel-head label { display:grid; gap:5px; color:var(--muted); font-size:12px; }
.design-search-field { display:grid; gap:5px; min-width:230px; color:var(--muted); font-size:12px; }
.design-filter input { min-width:230px; }
.design-balance-controls { display:flex; align-items:end; gap:14px; }
.design-balance-controls label,
.design-balance-controls .design-search-field { min-width:240px; }
.design-balance-controls input[type="search"] { min-width:220px; }
#storeBalanceList { grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; max-width:none; gap:16px; }
.store-balance-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.store-balance-list article { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; align-items:center; padding:12px; border:1px solid #dae3ec; border-radius:8px; background:#fbfcfe; }
.store-balance-list article > div:first-child { display:grid; gap:4px; }
.store-balance-list article > div:first-child span { color:var(--muted); font-size:12px; }
.store-balance-list .design-progress { grid-column:1 / -1; }
.store-balance-list .points-account-card { --account-color:#1d6f9f; --account-soft:#edf7fd; display:grid; grid-template-columns:1fr; align-content:start; gap:14px; min-height:154px; padding:16px; border-color:#c9dfec; border-top:3px solid var(--account-color); background:linear-gradient(145deg,#fff 0%,var(--account-soft) 100%); box-shadow:0 4px 14px rgba(30,64,90,.06); }
.store-balance-list .store-refund-card { --account-color:#218451; --account-soft:#effaf3; border-color:#c6e4d1; }
.points-account-card header { display:flex; align-items:center; gap:11px; min-width:0; }
.points-account-card header > div { display:grid; gap:3px; min-width:0; }
.points-account-card header strong { color:#173c59; font-size:16px; }
.store-refund-card header strong { color:#175f3a; }
.points-account-card header span:not(.points-account-icon) { overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.points-account-icon { display:grid; flex:0 0 38px; width:38px; height:38px; place-items:center; border-radius:11px; color:#fff; background:var(--account-color); font-size:15px; font-weight:800; box-shadow:0 3px 8px color-mix(in srgb,var(--account-color) 25%,transparent); }
.points-account-card dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; width:100%; margin:0; }
.points-account-card dl > div { display:grid; gap:5px; min-width:0; padding:10px 11px; border:1px solid color-mix(in srgb,var(--account-color) 14%,#e5eaf0); border-radius:8px; background:rgba(255,255,255,.82); }
.points-account-card dt { color:#6b7885; font-size:11px; }
.points-account-card dd { overflow:hidden; margin:0; color:#27455c; font-size:16px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.points-account-card .points-account-balance { border-color:color-mix(in srgb,var(--account-color) 28%,#e5eaf0); background:#fff; }
.points-account-card .points-account-balance dd { color:var(--account-color); font-size:18px; }
.design-progress { height:10px; overflow:hidden; border-radius:999px; background:#e6edf4; }
.design-progress > span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#2f89b1,#42b8a7); transition:width .2s ease; }
.design-order-list { display:grid; gap:10px; }
.design-order-scroll {
  min-height:0;
  max-height:min(68vh,760px);
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding-right:5px;
  scrollbar-gutter:stable;
}
.design-order-pager { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:10px 14px; margin-top:10px; padding:10px 12px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.design-order-pager[hidden] { display:none !important; }
.design-order-pager label { display:inline-flex; flex:0 0 auto; width:max-content; align-items:center; gap:6px; white-space:nowrap; }
.design-order-pager select { display:inline-block; flex:0 0 auto; width:auto !important; min-width:80px; max-width:120px; min-height:30px; box-sizing:border-box; padding:4px 26px 4px 8px; }
.design-order-pager span { min-width:150px; text-align:center; white-space:nowrap; font-variant-numeric:tabular-nums; }
.design-order-pager button { min-height:30px; padding:5px 10px; }
.design-order-card { display:block; min-height:70px; box-sizing:border-box; overflow:hidden; border:1px solid #d8e2ec; border-radius:9px; background:#fff; }
.design-order-card:hover { border-color:#9fc2dc; box-shadow:0 3px 10px rgba(20,55,82,.06); }
.design-order-summary { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1.55fr) auto minmax(0,auto); align-items:center; gap:12px; min-height:70px; padding:10px 12px; }
.design-order-summary-main { display:flex; align-items:center; gap:10px; min-width:0; }
.design-order-detail-trigger { display:inline-flex; flex:0 0 auto; align-items:center; min-height:34px; padding:7px 10px; white-space:nowrap; }
.design-order-summary-title { display:grid; gap:3px; min-width:0; }
.design-order-summary-title strong { overflow:hidden; color:#183b56; text-overflow:ellipsis; white-space:nowrap; }
.design-order-summary-title span { overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.design-order-summary-meta { display:flex; flex-wrap:wrap; gap:4px 12px; min-width:0; color:#435466; font-size:12px; line-height:1.45; }
.design-order-summary-meta span { max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.design-order-summary-status { display:flex; align-items:center; justify-content:flex-end; gap:6px; min-width:max-content; }
.design-order-summary .design-order-actions { margin-left:0; }
.design-order-summary > .design-order-actions { max-width:100%; }
.design-order-head,
.design-order-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.design-order-head > div:first-child { display:grid; gap:4px; min-width:0; }
.design-order-head > div:first-child span { color:var(--muted); font-size:12px; }
.design-order-head > div:last-child { display:flex; gap:7px; align-items:center; }
.design-order-meta,
.design-order-finance { display:flex; flex-wrap:wrap; gap:7px 16px; color:#435466; font-size:13px; }
.design-order-finance { padding:9px 10px; border-radius:7px; background:#f3f7fb; }
.design-order-finance .design-price-explanation { flex-basis:100%; color:#64748b; line-height:1.45; }
.design-order-production { display:flex; flex-wrap:wrap; gap:7px 16px; padding:9px 10px; border:1px solid #d7e8f4; border-radius:7px; color:#37556b; background:#f4faff; font-size:13px; }
.design-order-production strong { color:#183b56; }
.design-quote-issue { display:flex; flex-wrap:wrap; gap:7px 14px; padding:9px 10px; border:1px solid #f4c98c; border-radius:7px; color:#7a4b08; background:#fff9ed; font-size:13px; }
.design-quote-issue strong { color:#9a5a00; }
.design-usage-review { display:flex; flex-wrap:wrap; gap:8px 16px; padding:10px; border:1px solid #d8eadc; border-radius:8px; color:#345949; background:#f3fbf5; font-size:13px; }
.design-usage-review > div { display:flex; align-items:baseline; gap:8px; width:100%; }
.design-usage-review small { color:#678073; }
.design-usage-review p { width:100%; margin:0; color:#526a5e; }
.design-usage-review .design-review-refund { width:100%; padding-top:7px; border-top:1px solid #d8eadc; color:#196b3b; font-weight:700; }
.design-usage-review .design-review-refund.pending { color:#8a6415; }
.design-usage-review.pending { color:#6b7280; border-color:#e1e5ea; background:#f8f9fb; }
.design-dingtalk-status { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:9px 10px; border:1px solid #d8e5f0; border-radius:8px; color:#36546b; background:#f5f9fc; font-size:13px; }
.design-dingtalk-status strong { color:#183b56; }
.design-dingtalk-status .sent { color:#067647; }
.design-dingtalk-status .retrying,
.design-dingtalk-status .sending,
.design-dingtalk-status .pending { color:#9a6700; }
.design-dingtalk-status .failed { color:#b42318; }
.design-dingtalk-status button { margin-left:auto; }
.design-order-foot > div:first-child { display:flex; flex:1 1 auto; flex-wrap:wrap; gap:14px; min-width:0; }
.design-order-actions { display:flex; flex:0 1 auto; flex-wrap:wrap; gap:8px; justify-content:flex-end; min-width:0; margin-left:auto; }
.design-order-foot a { color:#1663a6; font-size:13px; }
.design-file-path { max-width:min(520px,100%); overflow:hidden; color:#526273; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.design-urgent { padding:3px 7px; border-radius:999px; color:#b42318; background:#fff0ee; font-size:12px; font-weight:700; }
.design-status { display:inline-flex; padding:4px 8px; border-radius:999px; color:#405268; background:#edf1f5; font-size:12px; font-weight:700; }
.design-status-waiting { color:#9a6700; background:#fff4cc; }
.design-status-active { color:#075985; background:#e0f2fe; }
.design-status-review { color:#6b3fa0; background:#f0e8ff; }
.design-status-warning { color:#b54708; background:#ffead5; }
.design-status-done { color:#067647; background:#dcfae6; }
.design-status-failed { color:#b42318; background:#fee4e2; }
.design-over-budget { color:#b42318; font-weight:700; }
.designer-leaderboard { display:grid; gap:9px; }
.designer-leaderboard article { display:grid; grid-template-columns:26px minmax(90px,160px) minmax(150px,1fr) auto; align-items:center; gap:10px; }
.designer-leaderboard article > span { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; color:#fff; background:#2f7ea2; font-size:12px; }
.design-data-sheet { --data-ink:#102a43; --data-muted:#61758a; --data-line:#dbe6ef; gap:0; overflow:hidden; border:1px solid rgba(148,163,184,.3); border-radius:18px; background:linear-gradient(145deg,#f8fbfe 0%,#f2f7fb 48%,#f7f9fc 100%); box-shadow:0 18px 48px rgba(15,47,72,.11); }
.design-sheet-titlebar { position:relative; display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:70px; overflow:hidden; padding:13px 22px; background:linear-gradient(120deg,#102f4c 0%,#145b72 58%,#11849a 100%); }
.design-sheet-titlebar::after { position:absolute; top:-76px; right:20%; width:210px; height:210px; border:1px solid rgba(255,255,255,.16); border-radius:50%; box-shadow:0 0 0 34px rgba(255,255,255,.035),0 0 0 68px rgba(255,255,255,.025); content:""; pointer-events:none; }
.design-sheet-titlebar h2 { position:relative; z-index:1; display:flex; align-items:center; gap:10px; margin:0; color:#fff; font-size:19px; font-weight:750; letter-spacing:.02em; }
.design-sheet-titlebar h2::before { width:9px; height:28px; border-radius:999px; background:linear-gradient(180deg,#67e8f9,#f0fdfa); box-shadow:0 0 16px rgba(103,232,249,.6); content:""; }
.design-sheet-titlebar .design-filter { color:#fff; }
.design-sheet-titlebar .design-filter label { position:relative; z-index:1; gap:5px; color:rgba(255,255,255,.78); font-size:11px; }
.design-sheet-titlebar .design-filter select { min-width:118px; border:1px solid rgba(255,255,255,.28); border-radius:9px; color:#173c59; background:rgba(255,255,255,.94); box-shadow:0 5px 18px rgba(4,30,48,.15); }
.design-sheet-kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; padding:18px 18px 14px; }
.design-sheet-kpi { --kpi-accent:#0ea5e9; position:relative; min-width:0; overflow:hidden; border:1px solid rgba(203,213,225,.8); border-radius:14px; background:rgba(255,255,255,.92); box-shadow:0 8px 22px rgba(30,64,92,.065); text-align:left; transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.design-sheet-kpi::before { position:absolute; inset:0 auto 0 0; width:4px; background:linear-gradient(180deg,var(--kpi-accent),color-mix(in srgb,var(--kpi-accent) 35%,white)); content:""; }
.design-sheet-kpi:nth-child(2),.design-sheet-kpi:nth-child(6) { --kpi-accent:#f59e0b; }
.design-sheet-kpi:nth-child(3),.design-sheet-kpi:nth-child(7) { --kpi-accent:#10b981; }
.design-sheet-kpi:nth-child(4),.design-sheet-kpi:nth-child(8) { --kpi-accent:#8b5cf6; }
.design-sheet-kpi:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--kpi-accent) 32%,#cbd5e1); box-shadow:0 13px 28px rgba(30,64,92,.11); }
.design-sheet-kpi h3 { position:relative; z-index:1; margin:0; padding:15px 17px 5px; color:var(--data-muted); background:transparent; font-size:12px; font-weight:650; line-height:1.3; }
.design-sheet-kpi strong { position:relative; z-index:1; display:block; min-height:0; padding:0 17px 16px; color:var(--data-ink); font-size:27px; font-weight:760; line-height:1.2; font-variant-numeric:tabular-nums; }
.design-sheet-table-grid { display:grid; grid-template-columns:minmax(520px,1.65fr) minmax(250px,.8fr); align-items:stretch; gap:16px; padding:0 18px 14px; }
.design-sheet-table-grid .design-sheet-block,
.design-sheet-table-grid .design-data-table-wrap,
.design-sheet-table-grid .design-data-table { height:100%; }
.design-sheet-table-grid .design-sheet-block { overflow:hidden; border:1px solid rgba(203,213,225,.82); border-radius:14px; box-shadow:0 8px 22px rgba(30,64,92,.055); }
.design-sheet-table-grid .design-data-table td { text-align:center; vertical-align:middle; }
.design-sheet-table-grid .design-data-table tbody tr { height:calc((100% - 32px) / 5); }
.design-sheet-table-grid .design-sheet-block:first-child .design-data-table tbody tr { height:calc((100% - 32px) / 3); }
.design-sheet-block { min-width:0; background:rgba(255,255,255,.94); }
.design-sheet-block > h3 { display:flex; align-items:center; gap:8px; margin:0; padding:16px 18px 9px; color:var(--data-ink); background:transparent; font-size:15px; font-weight:740; text-align:left; }
.design-sheet-block > h3::before { width:5px; height:18px; border-radius:999px; background:linear-gradient(180deg,#22d3ee,#2563eb); content:""; }
.design-sheet-chart-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:0 18px 16px; }
.design-sheet-chart-block { min-height:360px; overflow:hidden; border:1px solid rgba(203,213,225,.82); border-radius:16px; box-shadow:0 10px 26px rgba(30,64,92,.065); }
.design-review-analytics-block { overflow:hidden; margin:0 18px 16px; border:1px solid rgba(203,213,225,.82); border-radius:16px; box-shadow:0 10px 26px rgba(30,64,92,.065); }
.design-review-analytics-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:17px 18px 12px; border-bottom:1px solid #e6eef4; background:linear-gradient(120deg,#f8fdff,#f2fbf8); }
.design-review-analytics-head h3 { display:flex; align-items:center; gap:8px; margin:0; color:var(--data-ink); font-size:16px; }
.design-review-analytics-head h3::before { width:5px; height:20px; border-radius:999px; background:linear-gradient(180deg,#10b981,#0ea5e9); content:""; }
.design-review-analytics-head p { margin:5px 0 0 13px; color:var(--data-muted); font-size:12px; line-height:1.55; }
.design-review-analytics-head > span { flex:0 0 auto; padding:6px 10px; border:1px solid #bfe5d8; border-radius:999px; color:#08785f; background:#eefbf6; font-size:12px; font-weight:700; }
.design-review-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; padding:14px 16px; background:#f8fbfd; }
.design-review-summary article { display:grid; gap:4px; min-width:0; padding:12px 14px; border:1px solid #dfe9f0; border-radius:12px; background:#fff; box-shadow:0 5px 15px rgba(30,64,92,.045); }
.design-review-summary span { overflow:hidden; color:#6b7f91; font-size:11px; white-space:nowrap; text-overflow:ellipsis; }
.design-review-summary strong { color:#16324f; font-size:20px; font-variant-numeric:tabular-nums; }
.design-review-chart-grid { display:grid; grid-template-columns:minmax(360px,1.2fr) minmax(260px,.78fr) minmax(420px,1.35fr); gap:12px; padding:0 16px 16px; background:#f8fbfd; }
.design-review-chart-card,
.design-review-list-card { min-width:0; overflow:hidden; border:1px solid #dfe9f0; border-radius:13px; background:#fff; }
.design-review-chart-card > header,
.design-review-list-card > header { display:flex; align-items:flex-start; justify-content:space-between; height:58px; min-height:58px; box-sizing:border-box; padding:7px 14px; border-bottom:1px solid #e7eef3; background:linear-gradient(180deg,#fff,#fbfdff); }
.design-review-chart-card h4,
.design-review-list-card h4,
.design-review-detail-head h4 { margin:0; color:#183b56; font-size:14px; }
.design-review-chart-card small,
.design-review-list-card small { display:block; margin-top:3px; color:#789; font-size:11px; }
.design-review-chart-scope { flex:0 0 auto; max-width:150px; overflow:hidden; padding:5px 9px; border:1px solid #bfe5d8; border-radius:999px; color:#08785f; background:#effbf6; font-size:10px; font-weight:700; white-space:nowrap; text-overflow:ellipsis; }
.design-review-store-chart { height:270px; overflow:auto; padding:8px; scrollbar-width:thin; }
.design-review-store-row { display:grid; grid-template-columns:25px minmax(120px,1.1fr) minmax(90px,1fr) 58px; align-items:center; gap:9px; width:100%; min-height:58px; padding:7px 9px; border:1px solid transparent; border-radius:10px; color:#334e63; background:transparent; text-align:left; cursor:pointer; }
.design-review-store-row:hover { border-color:#cce3ec; background:#f2fafc; }
.design-review-store-row.active { border-color:#8ed2c5; background:linear-gradient(110deg,#effbf7,#f1f9fd); box-shadow:inset 3px 0 #10a37f; }
.design-review-rank { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; color:#fff; background:#7893a6; font-size:11px; font-weight:700; }
.design-review-store-row:nth-child(-n+3) .design-review-rank { background:linear-gradient(145deg,#0ea5a0,#197a9b); }
.design-review-store-name { display:grid; min-width:0; gap:2px; }
.design-review-store-name strong,
.design-review-store-name small { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.design-review-store-name strong { color:#183b56; font-size:12px; }
.design-review-store-name small { color:#718499; font-size:10px; }
.design-review-store-bar { height:9px; overflow:hidden; border-radius:999px; background:#e8f0f4; }
.design-review-store-bar i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#22c55e,#0ea5e9); }
.design-review-store-row > b { color:#08785f; font-size:12px; text-align:right; font-variant-numeric:tabular-nums; }
.design-review-pie-layout { display:grid; grid-template-columns:minmax(130px,.8fr) minmax(130px,1fr); align-items:center; gap:8px; min-height:270px; padding:10px; }
.design-review-pie svg { display:block; width:100%; max-height:210px; filter:drop-shadow(0 9px 15px rgba(30,64,92,.1)); }
.design-review-pie-legend { display:grid; gap:7px; }
.design-review-pie-legend > div { display:grid; grid-template-columns:1fr auto; gap:3px 7px; padding:7px 8px; border:1px solid #e4ebf1; border-radius:9px; background:#fbfdff; font-size:11px; }
.design-review-pie-legend span { display:flex; grid-column:1 / -1; align-items:center; gap:6px; color:#3b5268; font-weight:700; }
.design-review-pie-legend i { width:8px; height:8px; border-radius:50%; background:var(--review-color); }
.design-review-pie-legend b { color:#183b56; }
.design-review-pie-legend small { color:#789; text-align:right; }
.design-review-trend { display:grid; place-items:center; min-height:270px; padding:8px 10px; }
.design-review-trend svg { display:block; width:100%; height:auto; max-height:252px; }
.design-review-trend .grid line { stroke:#e5edf3; stroke-width:1; }
.design-review-trend text { fill:#8091a2; font-size:10px; }
.design-review-trend .line { fill:none; stroke:#0f9f91; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 4px 5px rgba(15,159,145,.22)); }
.design-review-trend .marks circle { fill:#fff; stroke:#0f9f91; stroke-width:3; }
.design-review-trend .marks .value { fill:#08785f; font-size:10px; font-weight:700; }
.design-review-detail-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:13px 16px 10px; border-top:1px solid #e6eef4; background:#fff; }
.design-review-detail-head p { margin:3px 0 0; color:#718499; font-size:11px; }
.design-review-detail-head > span { color:#789; font-size:11px; }
.design-review-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:0 16px 16px; background:#fff; }
.design-review-virtual-list { position:relative; height:328px; overflow:auto; background:#fbfdff; outline:none; scrollbar-width:thin; contain:strict; }
.design-review-virtual-list:focus-visible { box-shadow:inset 0 0 0 2px #4bb9c8; }
.design-review-virtual-space { position:relative; width:100%; }
.design-review-virtual-window { position:absolute; inset:0 0 auto; }
.design-review-detail-row { display:grid; grid-template-columns:30px minmax(0,1fr) 66px 92px; align-items:center; gap:8px; box-sizing:border-box; padding:9px 12px; border-bottom:1px solid #e7eef3; color:#52697e; font-size:11px; }
.design-review-detail-row:hover { background:#f0f9fa; }
.design-review-detail-row > div { display:grid; min-width:0; gap:4px; }
.design-review-detail-row strong,
.design-review-detail-row small { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.design-review-detail-row strong { color:#183b56; font-size:12px; }
.design-review-detail-row small { color:#718499; }
.design-review-detail-row > b { color:#08785f; text-align:right; font-size:13px; font-variant-numeric:tabular-nums; }
.design-review-detail-row > span:last-child { text-align:right; }
.design-review-detail-rank { display:grid; place-items:center; width:24px; height:24px; border-radius:7px; color:#176079; background:#e5f5f8; font-weight:700; }
.design-review-order-row { grid-template-columns:minmax(0,1fr) 58px minmax(150px,.85fr); }
.design-sheet-designer-block { overflow:hidden; margin:0 18px 18px; border:1px solid rgba(203,213,225,.82); border-radius:16px; box-shadow:0 10px 26px rgba(30,64,92,.065); }
.design-sheet-block-head { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:64px; padding:10px 18px; border-bottom:1px solid #e6eef4; background:linear-gradient(180deg,#fff,#f9fcfe); }
.design-sheet-block-head > div { display:grid; gap:3px; }
.design-sheet-block-head h3 { display:flex; align-items:center; gap:8px; margin:0; color:var(--data-ink); font-size:15px; font-weight:740; }
.design-sheet-block-head h3::before { width:5px; height:18px; border-radius:999px; background:linear-gradient(180deg,#22d3ee,#2563eb); content:""; }
.design-sheet-block-head small { margin-left:13px; color:#718499; font-size:11px; }
.design-sheet-block-head label { display:grid; gap:4px; color:#61758a; font-size:11px; }
.design-sheet-block-head select { min-width:132px; height:34px; border:1px solid #d5e1e9; border-radius:8px; color:#294860; background:#fff; }
.design-column-chart { display:flex; align-items:stretch; justify-content:center; gap:32px; min-height:292px; margin:0 16px 16px; padding:10px 24px 0; border:1px solid #edf2f7; border-radius:12px; background:repeating-linear-gradient(to top,transparent 0,transparent 57px,rgba(148,163,184,.17) 58px),linear-gradient(180deg,#fbfdff,#f7fafc); }
.design-column-item { display:grid; grid-template-rows:24px minmax(190px,1fr) 38px; align-items:end; width:min(120px,28%); text-align:center; }
.design-column-item > b { align-self:center; color:var(--data-ink); font-size:16px; font-weight:760; font-variant-numeric:tabular-nums; }
.design-column-item > div { display:flex; align-items:flex-end; justify-content:center; height:100%; }
.design-column-item > div span { display:block; width:min(62px,72%); min-height:4px; border-radius:9px 9px 3px 3px; background:linear-gradient(180deg,#38bdf8 0%,#2563eb 100%); box-shadow:0 8px 18px rgba(37,99,235,.2); transition:height .25s ease,filter .18s ease; }
.design-column-item:nth-child(2) > div span { background:linear-gradient(180deg,#2dd4bf 0%,#0f9f91 100%); box-shadow:0 8px 18px rgba(15,159,145,.2); }
.design-column-item:nth-child(3) > div span { background:linear-gradient(180deg,#a78bfa 0%,#7c3aed 100%); box-shadow:0 8px 18px rgba(124,58,237,.18); }
.design-column-item:hover > div span { filter:saturate(1.14) brightness(1.03); }
.design-column-item small { align-self:start; overflow:hidden; color:var(--data-muted); font-size:12px; font-weight:600; line-height:1.35; text-overflow:ellipsis; }
.design-pie-layout { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; min-height:292px; padding:0 16px 16px; }
.design-pie-chart { display:grid; place-items:center; }
.design-pie-chart svg { width:min(230px,100%); height:auto; filter:drop-shadow(0 12px 16px rgba(30,64,92,.14)); }
.design-pie-legend { display:grid; grid-template-columns:repeat(auto-fit,minmax(92px,1fr)); gap:8px; width:100%; }
.design-pie-legend > div { display:grid; grid-template-columns:1fr auto; gap:5px 8px; min-width:0; padding:9px 10px 8px; border:1px solid #e1e9f0; border-radius:10px; color:#334e63; background:#f8fafc; font-size:12px; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.design-pie-legend > div.is-empty { opacity:.54; background:rgba(255,255,255,.72); }
.design-pie-legend > div.is-active { transform:translateY(-2px); border-color:color-mix(in srgb,var(--legend-color) 38%,#d7e0e8); background:#fff; box-shadow:0 7px 16px rgba(30,64,92,.1); }
.design-pie-legend span { display:flex; grid-column:1 / -1; align-items:center; gap:7px; overflow:hidden; font-weight:700; white-space:nowrap; }
.design-pie-legend i { flex:0 0 auto; width:9px; height:9px; border-radius:50%; background:var(--legend-color); box-shadow:0 0 0 3px color-mix(in srgb,var(--legend-color) 15%,transparent); }
.design-pie-legend b,
.design-pie-legend small { font-variant-numeric:tabular-nums; }
.design-pie-legend b { color:#16324f; }
.design-pie-legend small { color:#64748b; text-align:right; }
.design-data-table-wrap { overflow-x:auto; border:0; }
.design-data-table { width:100%; min-width:680px; border-collapse:collapse; }
.design-data-table th,
.design-data-table td { height:36px; padding:7px 11px; border:0; border-bottom:1px solid #e8eef3; text-align:right; white-space:nowrap; }
.design-data-table th { height:38px; padding:7px 11px; border:0; text-align:center; white-space:nowrap; }
.design-data-table th:first-child,
.design-data-table td:first-child { text-align:center; }
.design-data-table thead tr { background:linear-gradient(105deg,#153c5a 0%,#12556d 48%,#0d7a88 100%); }
.design-data-table thead th { color:#eefbff; background:transparent; font-size:12px; font-weight:680; letter-spacing:.01em; }
.design-data-table thead th + th { border-left:1px solid rgba(255,255,255,.1); }
.design-data-table tbody td { color:#334e63; background:rgba(255,255,255,.96); font-size:12px; font-variant-numeric:tabular-nums; transition:background .16s ease,color .16s ease; }
.design-data-table tbody td + td { border-left:1px solid #e2eaf0; }
.design-data-table tbody tr:last-child td { border-bottom:0; }
.design-data-table tbody tr:nth-child(even) td { background:#f8fbfd; }
.design-data-table tbody tr:hover td { color:#102a43; background:#eef8fb; }
.design-status-table { min-width:260px; }
.design-performance-table { min-width:980px; }
.design-performance-table tbody td:not(:first-child) { text-align:center; vertical-align:middle; }
.design-performance-table tbody td:first-child { text-align:center; vertical-align:middle; }
.design-data-empty { padding:30px !important; color:var(--muted) !important; text-align:center !important; }
.design-data-bars { display:grid; gap:12px; }
.design-data-bar { display:grid; grid-template-columns:82px minmax(120px,1fr) 44px; align-items:center; gap:10px; color:#435466; font-size:13px; }
.design-data-bar > div { height:12px; overflow:hidden; border-radius:999px; background:#e8eef4; }
.design-data-bar > div span { display:block; height:100%; min-width:2px; border-radius:inherit; background:linear-gradient(90deg,#2f7ea2,#45b69c); }
.design-data-bar b { text-align:right; font-variant-numeric:tabular-nums; }
.design-dialog { width:min(820px,calc(100vw - 30px)); max-height:calc(100vh - 40px); overflow:auto; }
.compact-design-dialog { width:min(620px,calc(100vw - 30px)); }
.design-center-page .order-detail-dialog { width:min(920px,calc(100vw - 30px)); height:min(86vh,calc(100vh - 32px)); height:min(86dvh,calc(100dvh - 32px)); max-height:calc(100vh - 32px); padding:0; overflow:hidden; border:0; border-radius:16px; background:#f8fafc; }
.design-center-page .order-detail-dialog[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.design-center-page .order-detail-dialog > .dialog-head { position:static; padding:18px 22px; background:linear-gradient(135deg,#f4fbff,#fff); }
.design-center-page .order-detail-dialog > .dialog-head h2 { color:#123e56; font-size:20px; }
.order-detail-content { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:18px 22px 22px; scrollbar-gutter:stable; }
.design-order-detail-section { display:grid; gap:10px; margin:0 0 14px; padding:14px; border:1px solid #dce7ef; border-radius:11px; background:#fff; }
.design-order-detail-section:last-child { margin-bottom:0; }
.design-order-detail-section > h3 { margin:0; color:#183b56; font-size:15px; }
.design-order-detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0; }
.design-order-detail-field { min-width:0; padding:9px 10px; border-radius:7px; background:#f7fafc; }
.design-order-detail-field.wide { grid-column:1 / -1; }
.design-order-detail-field dt { margin-bottom:4px; color:#718096; font-size:11px; }
.design-order-detail-field dd { min-width:0; margin:0; overflow-wrap:anywhere; color:#2f485b; font-size:13px; line-height:1.5; }
.design-order-detail-field dd a { color:#1663a6; }
.design-order-detail-field.is-note dd { white-space:pre-wrap; }
.design-order-detail-field.design-over-budget dd { color:#b42318; font-weight:700; }
.design-order-detail-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.design-order-detail-links > div { display:grid; gap:6px; min-width:0; padding:10px; border:1px dashed #cbdce7; border-radius:8px; background:#f8fbfd; }
.design-order-detail-links strong { color:#526273; font-size:12px; }
.design-order-detail-links a,
.design-order-detail-links span { max-width:100%; overflow-wrap:anywhere; color:#1663a6; font-size:12px; line-height:1.45; }
.design-order-detail-links .design-file-path { max-width:none; white-space:normal; }
.design-order-price-explanation { margin:0; padding:9px 10px; border-radius:7px; color:#526273; background:#f3f7fb; font-size:12px; line-height:1.55; }
.design-order-detail-empty { margin:0; color:var(--muted); font-size:13px; }
.order-detail-dialog-actions { display:flex; align-items:center; gap:10px; min-width:0; padding:12px 22px; border-top:1px solid #dce5eb; background:#fff; }
.order-detail-dialog-actions > span { flex:1 1 auto; min-width:0; color:#718096; font-size:12px; line-height:1.4; }
.order-detail-actions { display:flex; flex:0 1 auto; justify-content:flex-end; min-width:0; }
.order-detail-actions > .design-order-actions { margin:0; }
.design-order-no-actions { color:#718096; font-size:12px; }
.dialog-head p { margin-top:5px; color:var(--muted); font-size:13px; }
.design-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.claim-design-form { align-items:start; }
.design-form > label { display:grid; align-content:start; align-self:start; gap:6px; color:#526273; font-size:13px; }
.design-form > label small { color:var(--muted); font-size:12px; }
.design-form input,
.design-form select,
.design-form textarea { width:100%; box-sizing:border-box; }
.design-form .check-label { display:flex; align-items:center; align-self:end; min-height:38px; }
.design-form .check-label input { width:auto; }
.design-form-wide { grid-column:1 / -1; }
.design-form textarea { resize:vertical; }
.design-form-preview { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid #f0d98a; border-radius:8px; background:#fff8dc; }
.design-form-preview > span { display:grid; gap:4px; }
.design-form-preview > span small { max-width:560px; color:#765f2b; font-size:12px; line-height:1.45; }
.design-form-preview strong { color:#8a5a00; font-size:19px; }
.design-order-existing-files { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:8px; padding:9px 11px; border:1px solid #d7e5ef; border-radius:8px; color:#52697e; background:#f7fbfe; font-size:12px; line-height:1.45; }
.design-order-existing-files strong { color:#234b66; }
.design-order-existing-files a { color:#1663a6; }
.design-form input:disabled,
.design-form select:disabled { color:#667085; background:#f2f4f7; cursor:not-allowed; }
.usage-review-validation-form { gap:14px; }
.usage-validity-options { min-width:0; margin:0; padding:0; border:0; }
.usage-validity-options legend { margin-bottom:10px; color:#334e63; font-size:13px; font-weight:700; }
.usage-validity-options > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.usage-validity-options label { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:8px; min-width:0; min-height:104px; box-sizing:border-box; padding:13px 12px 11px; border:1px solid #d7e2ea; border-radius:12px; color:#52697e; background:#fff; cursor:pointer; transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease; }
.usage-validity-options label:hover { transform:translateY(-1px); border-color:#8bc8d5; box-shadow:0 7px 16px rgba(30,64,92,.08); }
.usage-validity-options label:has(input:checked) { border-color:#1aa785; background:linear-gradient(145deg,#f0fcf7,#f4fbff); box-shadow:0 0 0 2px rgba(26,167,133,.12); }
.usage-validity-options input { width:16px; height:16px; margin:2px 0 0; accent-color:#109475; }
.usage-validity-options label > span { display:grid; min-width:0; gap:5px; }
.usage-validity-options b { color:#183b56; font-size:14px; }
.usage-validity-options small { color:#718499; font-size:11px; line-height:1.45; }
.usage-validity-options em { grid-column:2; justify-self:start; padding:3px 7px; border-radius:999px; color:#08785f; background:#e9f9f3; font-size:10px; font-style:normal; font-weight:700; }
.usage-review-refund-result { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 14px; padding:14px 15px; border:1px solid #dbe7ee; border-radius:12px; background:linear-gradient(135deg,#f8fbfd,#f3f8fb); }
.usage-review-refund-result.selected { border-color:#a8dbc9; background:linear-gradient(135deg,#f0fcf7,#f4faff); }
.usage-review-refund-result > div:first-child { display:contents; }
.usage-review-refund-result > div:first-child span { align-self:end; color:#61778c; font-size:12px; }
.usage-review-refund-result strong { grid-column:2; grid-row:1 / span 2; align-self:center; color:#0a7b61; font-size:24px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.usage-review-refund-result > p { margin:0; color:#52697e; font-size:12px; line-height:1.5; }
.usage-review-account-tags { display:flex; grid-column:1 / -1; flex-wrap:wrap; gap:6px; margin-top:6px; padding-top:10px; border-top:1px solid #dce8ed; }
.usage-review-account-tags span { padding:4px 7px; border-radius:7px; color:#52697e; background:#fff; font-size:10px; font-weight:650; }
.usage-review-account-tags span:first-child { color:#08785f; background:#e7f8f1; }
.claim-quote-preview { display:grid; grid-template-columns:minmax(0,1fr) max-content; align-items:start; column-gap:20px; row-gap:6px; }
.claim-quote-preview > span { display:contents; }
.claim-quote-preview > span b { grid-column:1; grid-row:1; min-width:0; white-space:nowrap; }
.claim-quote-preview > strong { grid-column:2; grid-row:1; align-self:start; white-space:nowrap; text-align:right; }
.claim-quote-preview > span small { grid-column:1 / -1; grid-row:2; max-width:none; }
.design-requirement-sheet { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 18px; align-items:center; padding:14px; border:1px solid #c7dceb; border-radius:10px; background:#f4faff; }
.design-requirement-sheet > div:first-child { display:grid; gap:4px; }
.design-requirement-sheet strong { color:#174f70; }
.design-requirement-sheet p { margin:0; color:#526b7d; font-size:12px; line-height:1.5; }
.design-requirement-sheet-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.design-requirement-sheet-actions label { cursor:pointer; }
.design-requirement-sheet-actions input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; }
.design-requirement-sheet > small { grid-column:1 / -1; color:#64748b; font-size:12px; }
.design-requirement-sheet > small.valid { color:#067647; font-weight:700; }
.design-requirement-sheet > small.error { color:#b42318; font-weight:700; }
.rules-design-dialog { width:min(980px,calc(100vw - 30px)); }
.dingtalk-settings-dialog { width:min(1040px,calc(100vw - 30px)); }
.dingtalk-settings-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(260px,.75fr); gap:0; }
.dingtalk-settings-form { align-content:start; padding:20px 24px 0; }
.dingtalk-settings-form > label:not(.check-label) { align-content:start; align-self:start; }
.dingtalk-settings-form [hidden] { display:none !important; }
.dingtalk-settings-form > .dialog-actions { margin:8px -24px 0; padding:16px 24px; background:#f8fafc; }
.dingtalk-help { padding:22px; border-left:1px solid var(--line); color:#435466; background:#f8fafc; }
.dingtalk-help h3 { margin:0 0 12px; color:#183b56; font-size:16px; }
.dingtalk-help ol { display:grid; gap:10px; margin:0; padding-left:20px; font-size:13px; line-height:1.55; }
.dingtalk-permission-note { margin-top:18px; padding:12px; border:1px solid #f2d49a; border-radius:8px; background:#fffaf0; }
.dingtalk-permission-note strong { color:#8a5a00; font-size:13px; }
.dingtalk-permission-note ul { display:grid; gap:7px; margin:9px 0 0; padding-left:18px; color:#526273; font-size:12px; line-height:1.55; }
.dingtalk-permission-note code { padding:1px 4px; border-radius:4px; color:#854d0e; background:#ffefc2; font-size:11px; overflow-wrap:anywhere; }
.dingtalk-security-note { margin-top:18px; padding:12px; border:1px solid #d7e8f4; border-radius:8px; background:#fff; }
.dingtalk-security-note strong { color:#075985; font-size:13px; }
.dingtalk-security-note p { margin:6px 0 0; color:#526273; font-size:12px; line-height:1.55; }
.dingtalk-account-preview { padding:10px 12px; border:1px solid #d8e2ec; border-radius:8px; color:#435466; background:#f8fafc; font-size:13px; }
.dingtalk-account-preview strong { color:#183b56; }
.dingtalk-test-state { min-height:20px; color:#526273; font-size:13px; }
.dingtalk-test-state.error { color:#b42318; }
.design-rules-form { display:grid; gap:20px; }
.design-rules-section { display:grid; gap:12px; }
.design-rules-section + .design-rules-section { padding-top:20px; border-top:1px solid var(--line); }
.design-rules-section-head h3 { color:#183b56; font-size:16px; }
.design-rules-section-head p { margin-top:4px; color:var(--muted); font-size:13px; }
.design-rules-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:10px; }
.design-rules-table { width:100%; min-width:720px; border-collapse:separate; border-spacing:0; }
.design-rules-table th,
.design-rules-table td { padding:10px; vertical-align:middle; }
.design-rules-table thead th { position:static; color:#526273; background:#f3f7fb; font-size:12px; }
.design-rules-table tbody th { position:static; min-width:140px; color:#183b56; background:#fff; font-size:13px; }
.design-rules-table input { width:100%; min-width:105px; box-sizing:border-box; }
.design-rules-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.design-rules-grid label { display:grid; gap:7px; color:#526273; font-size:13px; }
.design-rules-grid input { width:100%; box-sizing:border-box; }
.design-rules-note { margin-right:auto; align-self:center; color:var(--muted); font-size:12px; }

@media (max-width:1450px) {
  .design-review-chart-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .design-review-trend-card { grid-column:1 / -1; }
}

@media (max-width:1250px) {
  .design-tier-cards { grid-template-columns:1fr; }
  .design-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .store-balance-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .design-sheet-table-grid,
  .design-sheet-chart-grid { grid-template-columns:1fr; }
}

@media (max-width:1100px) {
  .design-section-head { align-items:flex-start; flex-direction:column; }
  .design-section-actions { justify-content:flex-start; width:100%; }
  .design-panel-head { align-items:flex-start; flex-direction:column; }
  .design-balance-controls { width:100%; flex-wrap:wrap; }
  .design-balance-controls .design-search-field { flex:1 1 220px; min-width:180px; }
  .design-balance-controls > label { flex:1 1 180px; min-width:160px; }
  .design-balance-controls > span { flex:1 1 160px; }
}

@media (max-width:760px) {
  .design-main { padding:14px; }
  .design-access-actions,
  .design-mode-tabs { max-width:100%; min-width:0; overflow:hidden; }
  .design-section-head,
  .design-panel-head,
  .design-order-head,
  .design-order-foot { align-items:stretch; flex-direction:column; }
  .design-order-panel-title { align-items:flex-start; flex-wrap:wrap; }
  .design-order-list-hint { white-space:normal; }
  .design-order-summary { grid-template-columns:1fr; align-items:stretch; gap:8px; padding:11px; }
  .design-order-summary-main { align-items:flex-start; }
  .design-order-summary-title { flex:1 1 auto; }
  .design-order-summary-meta { padding-left:0; }
  .design-order-summary-meta span { max-width:calc(50% - 8px); }
  .design-order-summary-status { justify-content:flex-start; }
  .design-order-summary > .design-order-actions { width:100%; justify-content:flex-start; margin-left:0; }
  .design-order-foot > div:first-child,
  .design-order-actions { width:100%; }
  .design-order-actions { margin-left:0; justify-content:flex-end; }
  .design-mode-tabs { width:100%; }
  .design-access-actions { width:100%; align-items:stretch; flex-direction:column; }
  .design-account-type { align-self:flex-start; max-width:100%; box-sizing:border-box; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .design-mode-tabs button { flex:1; min-width:0; }
  .design-section-actions { align-items:stretch; flex-direction:column; }
  .design-requirement-sheet { grid-template-columns:1fr; }
  .design-requirement-sheet-actions { justify-content:stretch; }
  .design-requirement-sheet-actions .button-link { flex:1; text-align:center; }
  .design-summary-grid,
  .store-balance-list,
  .design-form { grid-template-columns:1fr; }
  .points-account-card dl { grid-template-columns:1fr; }
  .points-account-card dl > div { min-width:0; }
  .design-sheet-titlebar { align-items:stretch; flex-direction:column; }
  .design-sheet-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; }
  .design-sheet-table-grid,
  .design-sheet-chart-grid { gap:14px; padding:0 12px 14px; }
  .design-review-analytics-block { margin:0 12px 14px; }
  .design-review-analytics-head,
  .design-review-detail-head { align-items:flex-start; flex-direction:column; }
  .design-review-summary { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; }
  .design-review-chart-grid,
  .design-review-detail-grid { grid-template-columns:1fr; padding-right:12px; padding-left:12px; }
  .design-review-trend-card { grid-column:auto; }
  .design-sheet-designer-block { margin:0 12px 12px; }
  .design-sheet-block-head { align-items:stretch; flex-direction:column; }
  .design-sheet-block-head select { width:100%; }
  .design-pie-legend { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .design-column-chart { gap:14px; padding-right:8px; padding-left:8px; }
  .design-form-wide,
  .design-form-preview { grid-column:auto; }
  .usage-validity-options > div { grid-template-columns:1fr; }
  .usage-validity-options label { min-height:0; }
  .design-review-chart-card > header,
  .design-review-list-card > header { height:auto; min-height:58px; }
  .design-filter { align-items:stretch; flex-direction:column; }
  .design-filter input { min-width:0; }
  .design-center-page .order-detail-dialog { width:calc(100vw - 20px); height:min(88dvh,calc(100dvh - 20px)); max-height:calc(100dvh - 20px); }
  .design-center-page .order-detail-dialog > .dialog-head { padding:16px; }
  .order-detail-content { padding:14px; }
  .design-order-detail-grid,
  .design-order-detail-links { grid-template-columns:1fr; }
  .design-order-detail-field.wide { grid-column:auto; }
  .order-detail-dialog-actions { align-items:stretch; flex-wrap:wrap; padding:12px 14px; }
  .order-detail-dialog-actions > span { flex-basis:100%; }
  .order-detail-actions { flex:1 1 100%; justify-content:flex-start; }
  .order-detail-dialog-actions > button:last-child { flex:1 1 auto; }
  .design-balance-controls { width:100%; align-items:stretch; flex-direction:column; }
  .design-balance-controls label,
  .design-balance-controls .design-search-field,
  .design-search-field { width:100%; min-width:0; }
  .design-balance-controls .design-search-field,
  .design-balance-controls label { min-width:0; flex:0 1 auto; }
  .design-balance-controls input[type="search"],
  .design-balance-controls select { width:100%; min-width:0; max-width:100%; box-sizing:border-box; }
  .design-balance-controls > span { width:100%; }
  .design-rules-grid { grid-template-columns:1fr; }
  .dingtalk-settings-layout { grid-template-columns:1fr; }
  .dingtalk-help { border-top:1px solid var(--line); border-left:0; }
  .tasks-page .settings-dialog,
  .design-center-page .settings-dialog { width:calc(100vw - 20px); max-height:calc(100vh - 20px); }
  .tasks-page .settings-dialog > .dialog-head,
  .design-center-page .settings-dialog > .dialog-head { padding:16px; }
  .tasks-page .settings-dialog > .task-dialog-form,
  .design-center-page .settings-dialog > .design-form,
  .design-center-page .settings-dialog > .design-rules-form { padding:16px 16px 0; }
  .tasks-page .settings-dialog > form > .dialog-actions,
  .design-center-page .settings-dialog > form > .dialog-actions { margin:8px -16px 0; padding:14px 16px; flex-wrap:wrap; }
  .task-api-dialog > pre { margin:16px; max-width:none; }
  #storeBalanceList { grid-template-columns:minmax(0,1fr); }
  .designer-leaderboard article { grid-template-columns:26px minmax(80px,1fr) auto; }
  .designer-leaderboard .design-progress { grid-column:2 / -1; }
}

/* daily-detail-community-20260826 */
.daily-detail-page .daily-period-shortcuts {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}
.daily-detail-page .daily-period-shortcuts > span {
  margin-right: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.daily-detail-page .daily-period-shortcuts button {
  min-width: 48px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #475467;
}
.daily-detail-page .daily-period-shortcuts button:hover,
.daily-detail-page .daily-period-shortcuts button.active {
  border-color: var(--accent);
  background: #eef8fc;
  color: var(--accent);
}
.daily-detail-page .daily-period-shortcuts small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 760px) {
  .daily-detail-page .daily-period-shortcuts {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .daily-detail-page .daily-period-shortcuts small {
    flex-basis: 100%;
    margin-left: 0;
  }
}
/* daily-detail-community-filter-v2 */
.daily-detail-page .filters[hidden] {
  display: none !important;
}
.daily-detail-page .community-daily-filters {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto auto;
}
/* 巴拉孩子王 Top 款号 */
.top-product-page-actions { display:flex; align-items:center; gap:10px; }
.top-product-page-entry { display:inline-flex; align-items:center; min-height:40px; padding:9px 16px; border:1px solid #175cd3; border-radius:8px; color:#fff; background:#175cd3; font-size:14px; font-weight:700; text-decoration:none; }
.top-product-page-entry.secondary { color:#344054; border-color:#d0d5dd; background:#fff; }
.page-eyebrow { color:#175cd3; font-size:12px; font-weight:800; letter-spacing:.12em; }
.haiziwang-top-page main { display:grid; gap:16px; }
.haiziwang-top-filters { display:grid; grid-template-columns:minmax(280px,1.2fr) minmax(370px,1fr) auto auto; align-items:end; }
.date-range-field { position:relative; }
.date-range-button { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:42px; color:#1d2939; background:#fff; text-align:left; }
.date-quick-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; min-height:42px; }
.date-quick-actions button { min-height:36px; padding:7px 11px; color:#475467; background:#f9fafb; }
.haiziwang-top-summary { grid-template-columns:1.25fr 1fr 1fr 1.25fr; margin:0; }
.haiziwang-top-summary strong { font-size:20px !important; }
.haiziwang-top-table-wrap { min-height:420px; max-height:calc(100vh - 410px); }
.haiziwang-top-table-wrap table { min-width:720px; }
.haiziwang-top-table-wrap th { position:sticky; top:0; z-index:2; }
.haiziwang-top-table-wrap th:nth-child(n+3),.haiziwang-top-table-wrap td:nth-child(n+3) { text-align:right; }
.top-style-rank { width:90px; color:#667085; font-weight:800; text-align:center; }
.top-style-rank.top-three { color:#b54708; }
.top-style-code { color:#1d4ed8; font-family:Consolas,"SFMono-Regular",monospace; font-weight:800; }
.number-cell { font-variant-numeric:tabular-nums; font-weight:700; }
.top-style-empty { padding:70px 20px !important; color:#667085; text-align:center !important; }
.page-size-field { display:flex; align-items:center; gap:8px; color:#667085; font-size:13px; }
.page-size-field select { min-height:34px; padding:5px 30px 5px 9px; }
.pagination-bar { display:flex; justify-content:center; align-items:center; gap:14px; padding:14px; border-top:1px solid #eaecf0; }
.pagination-bar span { min-width:110px; color:#475467; font-size:13px; font-weight:700; text-align:center; }
.date-range-dialog { width:min(440px,calc(100vw - 28px)); padding:0; overflow:hidden; border:0; border-radius:16px; box-shadow:0 24px 70px rgba(16,24,40,.28); }
.date-range-dialog::backdrop { background:rgba(16,24,40,.46); backdrop-filter:blur(2px); }
.date-range-dialog-head { display:flex; justify-content:space-between; gap:16px; padding:22px 24px 15px; border-bottom:1px solid #eaecf0; }
.date-range-dialog-head h2 { margin:3px 0 4px; font-size:20px; }
.date-range-dialog-head p { margin:0; color:#667085; font-size:13px; }
.date-range-calendar-head { display:grid; grid-template-columns:42px 1fr 42px; align-items:center; gap:8px; padding:16px 20px 10px; text-align:center; }
.date-range-calendar-head button { min-height:38px; padding:5px; font-size:24px; }
.calendar-weekdays,.calendar-days { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; padding:0 20px; }
.calendar-weekdays span { padding:6px 0; color:#98a2b3; font-size:12px; font-weight:700; text-align:center; }
.calendar-days { min-height:270px; align-content:start; padding-bottom:16px; }
.calendar-days>span,.calendar-days button { min-height:36px; border:0; border-radius:8px; }
.calendar-days button { padding:5px; color:#344054; background:#fff; }
.calendar-days button:hover { color:#175cd3; background:#eff8ff; }
.calendar-days button.today { box-shadow:inset 0 0 0 1px #84adff; }
.calendar-days button.in-range { border-radius:3px; background:#eff8ff; }
.calendar-days button.selected { color:#fff; background:#175cd3; font-weight:800; }
.date-range-dialog-actions { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:14px 20px; border-top:1px solid #eaecf0; background:#f9fafb; }
.date-range-dialog-actions span { color:#475467; font-size:12px; text-align:center; }
@media (max-width:1050px) { .haiziwang-top-filters { grid-template-columns:1fr 1fr; } .haiziwang-top-summary { grid-template-columns:1fr 1fr; } }
@media (max-width:640px) { .topbar { align-items:flex-start; } .top-product-page-actions { margin-top:10px; } .haiziwang-top-filters,.haiziwang-top-summary { grid-template-columns:1fr; } .date-quick-actions { min-width:0; } }
/* Script-center frequency reminders */
.frequency-alert-button{display:inline-flex;align-items:center;gap:6px}
.frequency-alert-button span{min-width:20px;padding:1px 6px;border-radius:999px;background:#c93434;color:#fff;font-size:12px;text-align:center}
.script-frequency-dialog{width:calc(100vw - 32px);max-width:1120px;min-width:0;box-sizing:border-box;height:calc(100vh - 32px);max-height:860px;padding:0;overflow:hidden;border:0;border-radius:16px;background:#f8fafc;box-shadow:0 28px 90px rgba(15,35,48,.3)}
.script-frequency-dialog form{width:100%;min-width:0;box-sizing:border-box}
.script-frequency-dialog[open]{display:grid}
.script-frequency-dialog>form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;gap:0;overflow:hidden}
.script-frequency-dialog>form>.dialog-head{align-items:flex-start;padding:20px 24px;background:linear-gradient(135deg,#f4f9ff,#fff)}
.script-frequency-dialog>form>.dialog-head h2{margin:0;color:#173f6b;font-size:20px}
.script-frequency-dialog>form>.dialog-head p{margin:6px 0 0;color:#667085;font-size:12px;line-height:1.6}
.script-frequency-dialog>form>.dialog-actions{min-width:0;box-sizing:border-box;flex-wrap:wrap;padding:12px 24px 16px;background:#f8fafc}
.script-frequency-dialog>form>.dialog-actions>span{min-width:0;overflow-wrap:anywhere}
.frequency-dialog-body{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;align-content:start;gap:18px;width:100%;min-width:0;box-sizing:border-box;min-height:0;padding:18px 0 20px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.frequency-dialog-body>.script-access-note,.frequency-channel-section,.frequency-summary,.frequency-preview-section,.frequency-record-section{width:calc(100% - 48px);max-width:1040px;min-width:0;margin-inline:auto;box-sizing:border-box}
.frequency-channel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.frequency-channel-heading>div{min-width:0}.frequency-channel-heading strong{color:#253858}.frequency-channel-heading p{margin:5px 0 0}
.frequency-channel-section>.script-form-grid{grid-column:1/-1;max-height:none;padding:4px 0 0;overflow:visible}
.frequency-recipient-fieldset{margin:0;padding:14px;border:1px solid var(--line,#d9dee8);border-radius:10px}
.frequency-recipient-fieldset>small{display:block;margin-top:9px;color:#64748b;line-height:1.55}
.frequency-recipient-picker{display:grid;gap:9px}
.frequency-recipient-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:9px 12px;border:1px solid #cfd8e3;border-radius:8px;background:#fff;color:#344054;font-weight:500;text-align:left}
.frequency-recipient-toggle:hover,.frequency-recipient-toggle[aria-expanded="true"]{border-color:#77a9e8;background:#f8fbff}
.frequency-recipient-toggle span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.frequency-recipient-toggle b{color:#667085;font-size:16px;transition:transform .15s ease}.frequency-recipient-toggle[aria-expanded="true"] b{transform:rotate(180deg)}
.frequency-recipient-menu{position:fixed;inset:auto;z-index:1000;display:none;grid-template-rows:auto minmax(0,1fr);min-width:280px;max-height:326px;margin:0;padding:12px;overflow:hidden;border:1px solid #9dbce2;border-radius:10px;background:#fff;box-shadow:0 18px 48px rgba(30,64,110,.24)}
.frequency-recipient-menu:popover-open{display:grid}
.frequency-recipient-search{display:grid;gap:5px;margin-bottom:9px;color:#475467;font-size:12px;font-weight:700}
.frequency-recipient-search input{width:100%;min-height:40px}
.frequency-recipient-options{display:grid;gap:4px;min-height:0;max-height:220px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.frequency-recipient-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:9px 10px;border:1px solid transparent;border-radius:8px;background:#fff;color:#344054;text-align:left}
.frequency-recipient-option:hover{border-color:#c8d9ee;background:#f5f9ff}
.frequency-recipient-option.selected{border-color:#8bb5eb;background:#edf6ff;color:#164f91}
.frequency-recipient-option>span:first-child{display:grid;gap:2px;min-width:0}.frequency-recipient-option strong,.frequency-recipient-option small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.frequency-recipient-option small{color:#667085;font-weight:400}
.frequency-recipient-option-mark{display:grid;place-items:center;width:23px;height:23px;flex:0 0 23px;border-radius:50%;background:#eef2f6;color:#667085;font-size:14px;font-weight:800}.frequency-recipient-option.selected .frequency-recipient-option-mark{background:#1677ff;color:#fff}
.frequency-recipient-selected{display:flex;flex-wrap:wrap;gap:7px;min-height:29px}
.frequency-recipient-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:5px 7px 5px 10px;border:1px solid #bed5f1;border-radius:999px;background:#edf6ff;color:#164f91;font-size:12px}
.frequency-recipient-chip.invalid{border-color:#f0c5bd;background:#fff4f2;color:#a83226}
.frequency-recipient-chip button{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font-size:16px}.frequency-recipient-chip button:hover{background:rgba(22,79,145,.1)}
.frequency-recipient-empty,.frequency-recipient-empty-selection{padding:11px;color:#667085;font-size:12px;text-align:center}.frequency-recipient-empty-selection{padding:3px 0;text-align:left}
.frequency-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));justify-content:stretch;gap:12px}
.frequency-summary>div{padding:14px;border:1px solid var(--line,#d9dee8);border-radius:10px;background:#f8fafc}
.frequency-summary span{display:block;color:#64748b;font-size:13px}
.frequency-summary strong{display:block;margin-top:4px;font-size:24px}
.frequency-preview-section,.frequency-record-section{display:block}
.frequency-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
.frequency-section-head>div:first-child{min-width:0;flex:1 1 auto}
.frequency-section-head>button{flex:0 0 auto}
.frequency-section-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto}
.frequency-section-tools>select{flex:0 0 180px;width:180px;min-height:38px}
.frequency-record-meta{color:#667085;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.frequency-section-head p{margin:4px 0 0;color:#64748b;font-size:13px}
.frequency-table-shell{margin-top:12px;overflow:auto;max-height:340px}
.frequency-table-shell table{width:100%;border-collapse:collapse;white-space:nowrap}
.frequency-table-shell th,.frequency-table-shell td{padding:9px 10px;border-bottom:1px solid var(--line,#e2e8f0);text-align:left;font-size:13px}
.frequency-table-shell td:first-child{white-space:normal;min-width:180px}
.frequency-alert-records{display:grid;align-content:start;gap:8px;height:min(38vh,360px);min-height:180px;margin-top:12px;padding:2px 8px 4px 2px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;contain:strict}
.frequency-alert-records:focus-visible{outline:2px solid #72a7e8;outline-offset:3px}
.frequency-alert-records::-webkit-scrollbar{width:9px}.frequency-alert-records::-webkit-scrollbar-track{border-radius:999px;background:#edf2f7}.frequency-alert-records::-webkit-scrollbar-thumb{border:2px solid #edf2f7;border-radius:999px;background:#8ca5bd}.frequency-alert-records::-webkit-scrollbar-thumb:hover{background:#6888a7}
.frequency-alert-record{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;min-width:0;padding:12px 14px;border:1px solid #d8e2ec;border-left:3px solid #9dbce2;border-radius:10px;background:#fff;box-shadow:0 2px 8px rgb(30 45 60 / 4%);transition:border-color .15s,box-shadow .15s}
.frequency-alert-record:hover{border-color:#a8c5e6;box-shadow:0 5px 14px rgb(30 70 110 / 8%)}
.frequency-alert-record-main{display:grid;gap:5px;min-width:0}
.frequency-alert-record-title{display:flex;align-items:center;flex-wrap:wrap;gap:7px 9px;min-width:0}
.frequency-alert-record-title>strong{min-width:0;color:#1d2939;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.frequency-alert-status{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;color:#526171;background:#edf1f5;font-size:10px;font-weight:800;white-space:nowrap}
.frequency-alert-status.status-open{color:#175cd3;background:#eaf2ff}.frequency-alert-status.status-configuration_missing{color:#875b00;background:#fff3d6}.frequency-alert-status.status-escalated{color:#873ca4;background:#f6eafa}.frequency-alert-status.status-resolved{color:#176c3a;background:#e5f7ec}.frequency-alert-status.status-dismissed{color:#667085;background:#edf1f5}
.frequency-alert-record-meta{margin:0;color:#64748b;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.frequency-alert-record-error{margin:0;padding:6px 8px;border-radius:6px;color:#a8201a;background:#fff5f4;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.frequency-alert-record-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0}.frequency-alert-record-actions button{min-height:32px;padding:6px 10px;white-space:nowrap}
.frequency-alert-empty{display:grid;place-items:center;min-height:150px;margin:0;padding:20px;border:1px dashed #cad7e5;border-radius:10px;color:#667085;background:#fbfcfe;font-size:12px}
.frequency-pager{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #e4eaf1}.frequency-pager-nav{display:flex;grid-column:2;align-items:center;justify-content:center;gap:10px}.frequency-page-size{display:flex;grid-column:3;align-items:center;justify-self:end;gap:7px;color:#667085;font-size:12px;white-space:nowrap}.frequency-page-size select{min-height:34px;padding:5px 28px 5px 9px;border:1px solid #d8e2ec;border-radius:7px;background:#fff;color:#344054;font:inherit}
@media(max-width:960px){.frequency-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.script-frequency-dialog{width:calc(100vw - 18px);max-width:none;height:calc(100vh - 18px);max-height:calc(100vh - 18px)}.script-frequency-dialog>form>.dialog-head{padding:15px 14px}.script-frequency-dialog>form>.dialog-head p{display:none}.frequency-dialog-body{gap:14px;padding:14px 0}.frequency-dialog-body>.script-access-note,.frequency-channel-section,.frequency-summary,.frequency-preview-section,.frequency-record-section{width:calc(100% - 32px);max-width:none}.frequency-section-head{align-items:stretch;flex-direction:column;gap:10px}.frequency-section-tools{justify-content:space-between}.frequency-section-tools>select{flex:1 1 auto;width:auto}.frequency-alert-record{grid-template-columns:1fr;align-items:start}.frequency-alert-record-actions{justify-content:flex-end}.frequency-pager{grid-template-columns:1fr;justify-items:center}.frequency-pager-nav{grid-column:1}.frequency-page-size{grid-column:1;justify-self:center}.script-frequency-dialog>form>.dialog-actions{padding:12px 14px}.script-frequency-dialog>form>.dialog-actions>span{flex:1 0 100%}}
@media(max-width:460px){.frequency-summary{grid-template-columns:1fr}}
/* task-center-20260904 */
.task-center-page { --task-blue:#175cd3; --task-navy:#102a43; --task-surface:#f8fafc; }
.task-center-page button,.task-center-page input,.task-center-page textarea { font:inherit; }
/* 共享侧栏与修改密码弹窗不受任务中心页面字号影响，保持与其它模块一致的 13px */
.task-center-page .app-sidebar button,.task-center-page .app-sidebar input { font-size:13px; }
.task-center-page .password-dialog button,.task-center-page .password-dialog input { font-size:13px; }
.task-center-creation-ai-hint { margin:0 24px 10px; color:#b54708; font-size:12px; }
.task-center-creation-option-blocked { opacity:.55; cursor:not-allowed; }
.task-center-topbar { gap:20px; }
.task-center-page-links { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; }
.task-center-page-links [role="status"] { max-width:360px; color:var(--muted); font-size:12px; }
.task-center-page-links [role="status"].error { color:var(--danger); }
.task-center-creation-feedback { display:flex; align-items:center; flex-wrap:wrap; gap:8px; max-width:460px; padding:8px 10px; border:1px solid #a8dbc9; border-radius:8px; color:#067647; background:#ecfdf3; font-size:12px; line-height:1.4; }
.task-center-creation-feedback strong { font-size:12px; }
.task-center-creation-feedback button { min-height:28px; padding:4px 8px; border-color:#a8dbc9; color:#075e45; background:#fff; font-size:11px; }
.task-center-page .button-link { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:38px; padding:8px 14px; border:1px solid var(--task-blue); border-radius:7px; color:#fff; background:var(--task-blue); font-size:13px; font-weight:700; line-height:1.2; text-decoration:none; }
.task-center-page .button-link.secondary { color:#344054; border-color:#d0d5dd; background:#fff; }
.task-center-main { display:grid; grid-template-columns:1fr; align-items:start; gap:16px; padding:18px; }
.task-center-primary-nav { display:inline-flex; flex:none; gap:2px; padding:2px; border:1px solid #c7d8ec; border-radius:7px; background:#eaf1fb; }
.task-center-primary-nav button { min-height:28px; padding:4px 10px; border:0; border-radius:5px; color:#526273; background:transparent; font-size:12px; font-weight:500; line-height:1.2; white-space:nowrap; }
.task-center-primary-nav button:hover { color:#175cd3; background:rgba(255,255,255,.7); }
.task-center-primary-nav button.active { color:#123a63; background:#fff; box-shadow:0 1px 3px rgba(16,42,67,.12); font-weight:700; }
.task-center-primary-panel { display:grid; gap:16px; min-width:0; }
.task-center-primary-panel[hidden] { display:none!important; }
.task-center-team-primary-panel { min-height:680px; overflow:hidden; border:1px solid #dce4ec; border-radius:14px; background:#fff; box-shadow:0 5px 20px rgba(16,42,67,.06); }
.task-center-safety { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; padding:13px 16px; border:1px solid #cfe0f5; border-radius:12px; background:linear-gradient(100deg,#f4f8ff,#fbfdff); box-shadow:0 2px 8px rgba(16,42,67,.04); }
.task-center-safety-copy { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; min-width:0; }
.task-center-safety span { color:#526273; font-size:12px; line-height:1.45; }
.task-center-integration-badges { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.task-center-mode-badge { display:inline-flex; align-items:center; min-height:26px; box-sizing:border-box; padding:4px 9px; border-radius:999px; color:#475467!important; background:#eaecf0; font-weight:700; white-space:nowrap; }
.task-center-mode-badge.ready { color:#067647!important; background:#dcfae6; }
.task-center-mode-badge.preview { color:#8a5a00!important; background:#fff2c6; }
.task-center-mode-badge.disabled { color:#667085!important; background:#eaecf0; }
.task-center-settings-button { min-height:26px; padding:4px 10px; font-size:12px; }
.task-center-ai-settings-dialog { width:min(520px,calc(100vw - 30px)); }
.task-center-ai-settings-dialog .dialog-head p { margin:4px 0 0; color:#667085; font-size:12px; line-height:1.5; }
.task-center-ai-settings-form { display:grid; gap:14px; padding:18px 22px 0; }
.task-center-ai-settings-form > label { display:grid; gap:6px; color:#526273; font-size:12px; font-weight:700; }
.task-center-ai-settings-form select,.task-center-ai-settings-form input { width:100%; box-sizing:border-box; }
.task-center-ai-settings-status { min-height:20px; padding:9px 10px; border:1px solid #d9e5ef; border-radius:8px; color:#526273; background:#f8fafc; font-size:12px; line-height:1.5; }
.task-center-ai-settings-form .dialog-actions { margin:0 -22px; padding:14px 22px; }
.task-center-create-dialog { width:min(700px,calc(100vw - 30px)); }
.task-center-creation-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:20px 22px 24px; }
.task-center-creation-option { display:grid; gap:7px; min-height:122px; padding:16px; border:1px solid #d6e1ed; border-radius:10px; color:#344054; background:#fbfcfe; text-align:left; }
.task-center-creation-option:hover,.task-center-creation-option:focus-visible { border-color:#6d9fe0; background:#f1f7ff; box-shadow:0 4px 12px rgba(23,92,211,.1); }
.task-center-create-dialog { width:min(760px,calc(100vw - 30px)); }
.task-center-create-dialog .dialog-head { border-bottom:1px solid #e4e9ef; }
.task-center-creation-options { grid-template-columns:repeat(4,minmax(0,1fr)); }
.task-center-creation-option { min-height:145px; align-content:center; }
.task-center-creation-option strong { color:#183b56; font-size:14px; }
.task-center-creation-option span { color:#667085; font-size:11px; line-height:1.55; }
.task-center-creation-option strong { color:#183b56; font-size:15px; }
.task-center-creation-option span { color:#667085; font-size:12px; line-height:1.6; }
.task-center-creation-option { min-width:0; min-height:132px; align-content:start; }
.task-center-creation-option,.task-center-creation-option strong,.task-center-creation-option span { min-width:0; white-space:normal; overflow-wrap:anywhere; word-break:break-word; }
.task-center-creation-option strong { font-size:14px; line-height:1.35; }
.task-center-creation-option span { font-size:11px; line-height:1.5; }
.task-center-page .primary { min-height:34px; padding:7px 13px; border-radius:7px; color:#fff; background:#175cd3; font-weight:800; }
.task-center-page .primary:hover { background:#124aa8; }
@media (max-width:760px) {
  .task-center-creation-options { grid-template-columns:1fr; }
}
.task-center-queue-grid { display:grid; grid-template-columns:repeat(7,minmax(120px,1fr)); gap:10px; }
.task-center-queue { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 10px; min-width:0; min-height:82px; padding:13px 14px; border:1px solid #dbe4ee; border-radius:12px; color:#344054; background:#fff; text-align:left; box-shadow:0 2px 8px rgba(16,42,67,.035); transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.task-center-queue:hover { transform:translateY(-1px); border-color:#98b9e4; box-shadow:0 7px 18px rgba(16,42,67,.08); }
.task-center-queue.active { border-color:#528bda; background:linear-gradient(145deg,#f3f7ff,#fff); box-shadow:0 0 0 2px rgba(23,92,211,.09); }
.task-center-queue span { overflow:hidden; align-self:center; font-size:13px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.task-center-queue strong { grid-row:1 / span 2; grid-column:2; align-self:center; color:#123a63; font-size:25px; font-variant-numeric:tabular-nums; }
.task-center-queue small { color:#7a8997; font-size:11px; }
.task-center-workspace { display:grid; grid-template-columns:minmax(280px,350px) minmax(560px,1fr); min-height:680px; overflow:hidden; border:1px solid #dce4ec; border-radius:14px; background:#fff; box-shadow:0 5px 20px rgba(16,42,67,.06); }
.task-center-list-panel { display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; min-width:0; background:#f8fafc; border-right:1px solid #dce4ec; }
.task-center-panel-head { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; padding:18px 16px 12px; }
.task-center-panel-head h2,.task-center-intake-head h2,.task-center-detail-head h2 { margin:3px 0 0; color:var(--task-navy); }
.task-center-panel-head h2 { font-size:19px; }
.task-center-panel-head > span { color:var(--muted); font-size:12px; }
.task-center-eyebrow { color:#175cd3; font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.task-center-filter { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:0 14px 12px; }
.task-center-filter label,.task-center-filter input { width:100%; box-sizing:border-box; }
.task-center-task-list { min-height:0; padding:0 8px 12px; overflow:auto; }
.task-center-task-card { display:grid; gap:9px; width:100%; margin:0 0 7px; padding:12px; border:1px solid transparent; border-radius:10px; color:#344054; background:transparent; text-align:left; }
.task-center-task-card:hover { border-color:#d1deec; background:#fff; }
.task-center-task-card.active { border-color:#9ebde8; background:#fff; box-shadow:0 4px 12px rgba(16,42,67,.07); }
.task-center-task-card-head,.task-center-task-card-meta,.task-center-task-card-foot { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; min-width:0; }
.task-center-task-card-head b { display:-webkit-box; overflow:hidden; color:#183b56; font-size:13px; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.task-center-task-card-meta { flex-wrap:wrap; color:#617386; font-size:11px; }
.task-center-task-card-foot > span { display:flex; flex-wrap:wrap; gap:5px; }
.task-center-task-card-foot small { color:#7a8997; white-space:nowrap; }
.task-center-flag { padding:2px 6px; border-radius:999px; font-size:10px; font-weight:700; }
.task-center-flag.danger { color:#b42318; background:#fee4e2; }
.task-center-flag.warning { color:#b54708; background:#ffead5; }
.task-center-pagination { display:flex; align-items:center; justify-content:center; gap:10px; padding:10px; border-top:1px solid #e4e9ef; }
.task-center-pagination button { min-height:30px; padding:5px 9px; }
.task-center-pagination span { min-width:78px; color:#667085; font-size:11px; text-align:center; }
.task-center-main-panel { min-width:0; background:#fff; }
.task-center-tabs { display:flex; gap:2px; padding:8px 12px 0; overflow:auto; border-bottom:1px solid #e4e9ef; }
.task-center-tabs button { flex:none; padding:11px 13px; border:0; border-bottom:3px solid transparent; border-radius:7px 7px 0 0; color:#5c6d7e; background:transparent; font-size:13px; }
.task-center-tabs button:hover { color:#175cd3; background:#f5f8fd; }
.task-center-tabs button.active { color:#175cd3; border-bottom-color:#175cd3; background:#f5f8fd; font-weight:800; }
.task-center-tabs button span { display:inline-flex; justify-content:center; min-width:19px; padding:1px 5px; border-radius:999px; color:#475467; background:#e8edf3; font-size:10px; }
.task-center-tab-panel { min-height:630px; }
.task-center-tab-panel[hidden] { display:none!important; }
.task-center-detail { min-height:630px; }
.task-center-empty { margin:0; padding:18px; color:#667085; font-size:13px; text-align:center; }
.task-center-empty.error { color:#b42318; }
.task-center-empty-large { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:7px; min-height:180px; }
.task-center-empty-large strong { color:#344054; font-size:15px; }
.task-center-empty-large span { max-width:410px; line-height:1.55; }
.task-center-detail-card { padding:22px 24px 30px; }
.task-center-detail-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.task-center-detail-head h2 { max-width:780px; font-size:22px; line-height:1.35; }
.task-center-status { display:inline-flex; flex:none; align-items:center; padding:5px 9px; border-radius:999px; color:#475467; background:#edf1f5; font-size:11px; font-style:normal; font-weight:800; white-space:nowrap; }
.task-center-status.status-awaiting_receive { color:#9a6700; background:#fff4cc; }
.task-center-status.status-in_progress { color:#075985; background:#e0f2fe; }
.task-center-status.status-blocked { color:#b54708; background:#ffead5; }
.task-center-status.status-awaiting_acceptance,.task-center-status.status-outcome_review { color:#6b3fa0; background:#f0e8ff; }
.task-center-status.status-accepted,.task-center-status.status-closed { color:#067647; background:#dcfae6; }
.task-center-status.status-cancelled { color:#667085; background:#eaecf0; }
.task-center-purpose { margin:13px 0 18px; padding:11px 13px; border-left:3px solid #84adff; color:#425466; background:#f5f8ff; font-size:13px; line-height:1.6; }
.task-center-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; overflow:hidden; margin:0; border:1px solid #e1e7ee; border-radius:10px; }
.task-center-detail-grid > div { display:grid; grid-template-columns:82px minmax(0,1fr); gap:10px; padding:10px 12px; border-bottom:1px solid #e8edf2; }
.task-center-detail-grid > div:nth-child(odd):not(.wide) { border-right:1px solid #e8edf2; }
.task-center-detail-grid > div:last-child { border-bottom:0; }
.task-center-detail-grid .wide { grid-column:1 / -1; }
.task-center-detail-grid dt { color:#7a8997; font-size:11px; font-weight:700; }
.task-center-detail-grid dd { margin:0; color:#344054; font-size:12px; line-height:1.55; white-space:pre-wrap; }
.task-center-person { display:inline-flex; margin:0 5px 4px 0; padding:2px 6px; border-radius:999px; color:#36546b; background:#eaf1f7; }
.task-center-muted { color:#98a2b3; font-size:12px; }
.task-center-detail-section { margin-top:22px; padding-top:18px; border-top:1px solid #e5eaf0; }
.task-center-detail-section h3 { margin:0 0 12px; color:#183b56; font-size:15px; }
.task-center-dimension-list { display:grid; gap:12px; padding:18px 24px 28px; }
.task-center-dimension-card { display:grid; gap:12px; padding:14px; border:1px solid #dce4ec; border-radius:10px; background:#fff; box-shadow:0 2px 10px rgba(16,42,67,.04); }
.task-center-dimension-card header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.task-center-dimension-card header > div { display:grid; gap:3px; min-width:0; }
.task-center-dimension-card strong { color:#183b56; font-size:14px; line-height:1.4; }
.task-center-dimension-card small { color:#7a8997; font-size:11px; }
.task-center-dimension-card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 14px; margin:0; }
.task-center-dimension-card dl > div { display:grid; gap:3px; min-width:0; }
.task-center-dimension-card dt { color:#7a8997; font-size:11px; font-weight:800; }
.task-center-dimension-card dd { margin:0; color:#3e596f; font-size:12px; line-height:1.5; }
.task-center-person-card header > span { flex:none; color:#175cd3; font-size:18px; font-weight:800; }
.task-center-person-tasks { display:flex; flex-wrap:wrap; gap:8px; }
.task-center-person-tasks button { display:inline-flex; align-items:center; gap:7px; max-width:100%; min-height:30px; padding:6px 9px; overflow:hidden; text-overflow:ellipsis; }
.task-center-person-tasks span { color:#667085; font-size:10px; }
.task-center-section-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.task-center-section-title small { color:#7a8997; }
.task-center-milestones { display:grid; gap:10px; }
.task-center-milestones > div { display:grid; grid-template-columns:12px minmax(0,1fr); gap:9px; align-items:start; }
.task-center-milestones > div > div { display:grid; gap:2px; }
.task-center-milestones strong { color:#344054; font-size:12px; }
.task-center-milestones small { color:#7a8997; font-size:11px; }
.task-center-milestone-dot,.task-center-timeline-dot { width:9px; height:9px; margin-top:4px; border:2px solid #84adff; border-radius:50%; background:#fff; }
.task-center-milestone-dot.done { border-color:#17a673; background:#17a673; }
.task-center-actions { display:flex; flex-wrap:wrap; gap:8px; }
.task-center-actions button { min-height:34px; padding:7px 11px; }
.task-center-extension-decision { display:flex; align-items:center; flex-wrap:wrap; gap:7px; padding:7px; border:1px solid #eadba6; border-radius:8px; background:#fffbeb; }
.task-center-extension-decision small { color:#7a5c13; font-weight:700; }
.task-center-timeline { display:grid; }
.task-center-timeline article { position:relative; display:grid; grid-template-columns:13px minmax(0,1fr); gap:10px; min-height:54px; }
.task-center-timeline article:not(:last-child)::before { position:absolute; top:15px; bottom:0; left:5px; width:1px; background:#d9e2ec; content:""; }
.task-center-timeline article > div { display:grid; gap:3px; padding-bottom:14px; }
.task-center-timeline strong { color:#344054; font-size:12px; }
.task-center-timeline p { margin:0; color:#526273; font-size:12px; line-height:1.55; white-space:pre-wrap; }
.task-center-timeline small { color:#8a97a5; font-size:10px; }
.task-center-notifications article { display:grid; gap:5px; margin-top:8px; padding:10px; border:1px solid #d9e5ef; border-radius:8px; background:#f6fafc; }
.task-center-notifications article > div { display:flex; justify-content:space-between; gap:10px; color:#3e596f; font-size:11px; }
.task-center-notifications p { margin:0; color:#617386; font-size:11px; line-height:1.5; }
.task-center-intake-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:24px 24px 0; }
.task-center-intake-head h2 { font-size:21px; }
.task-center-header-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.task-center-help { margin:11px 24px 18px; color:#667085; font-size:13px; line-height:1.6; }
.task-center-intake-form { display:grid; gap:10px; padding:0 24px 24px; }
.task-center-intake-form > label { color:#425466; font-size:12px; font-weight:800; }
.task-center-intake-form textarea { width:100%; box-sizing:border-box; resize:vertical; line-height:1.55; }
.task-center-intake-form > div:last-child { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.task-center-intake-form [role="status"] { color:#667085; font-size:12px; }
.task-center-intake-outcome { display:grid; gap:8px; margin:0 24px 16px; padding:11px 12px; border:1px solid #d9e5ef; border-radius:10px; color:#3e596f; background:#f6fafc; font-size:12px; line-height:1.55; }
.task-center-intake-outcome:empty { display:none; }
.task-center-intake-outcome strong { color:#183b56; font-size:13px; }
.task-center-intake-outcome > div { display:flex; flex-wrap:wrap; gap:8px; }
.task-center-intake-outcome.error { color:#b42318; border-color:#f5b7b1; background:#fff1f0; }
.task-center-messages { display:grid; gap:9px; max-height:330px; margin:0 24px 16px; padding:13px; overflow:auto; border:1px solid #e1e7ee; border-radius:10px; background:#f8fafc; }
.task-center-message { display:grid; justify-self:start; max-width:85%; gap:4px; padding:9px 11px; border-radius:4px 11px 11px; background:#fff; box-shadow:0 1px 4px rgba(16,42,67,.06); }
.task-center-message.user { justify-self:end; border-radius:11px 4px 11px 11px; background:#eaf2ff; }
.task-center-message strong { color:#36546b; font-size:10px; }
.task-center-message p { margin:0; color:#344054; font-size:12px; line-height:1.55; white-space:pre-wrap; }
.task-center-message small { color:#8a97a5; font-size:9px; }
.task-center-file-row { display:flex!important; align-items:center!important; justify-content:flex-start!important; flex-wrap:wrap; gap:9px!important; }
.task-center-file-row input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; }
.task-center-file-row span { color:#667085; font-size:11px; }
#candidateBatchState { min-height:18px; margin:0 24px 5px; color:#526273; font-size:12px; }
#candidateBatchState.error,.task-center-inline-error { color:#b42318; }
.task-center-flow-steps { display:flex; gap:8px; margin:0 24px 4px; padding:0; list-style:none; color:#667085; font-size:12px; }
.task-center-flow-steps span { padding:5px 9px; border:1px solid #dce4ec; border-radius:999px; background:#f8fafc; }
.task-center-flow-steps .done { color:#067647; border-color:#a8dbc9; background:#ecfdf3; }
.task-center-flow-steps .active { color:#175cd3; border-color:#a8c7fa; background:#eff6ff; font-weight:800; }
.task-center-required-mark { color:#b42318; font-weight:900; }
.task-center-inline-error { display:block; min-height:16px; margin-top:5px; font-size:11px; line-height:1.4; }
.task-center-candidate-foot > div:first-child { min-width:0; }
.task-center-candidate-list { display:grid; gap:14px; padding:0 24px 28px; }
.task-center-candidate { overflow:hidden; border:1px solid #dce4ec; border-radius:12px; background:#fff; box-shadow:0 3px 12px rgba(16,42,67,.04); }
.task-center-candidate > header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 14px; border-bottom:1px solid #e4e9ef; background:#f8fafc; }
.task-center-candidate-select { display:flex; align-items:center; gap:8px; color:#183b56; font-size:13px; font-weight:800; }
.task-center-candidate-select input { width:16px; height:16px; margin:0; accent-color:#175cd3; }
.task-center-candidate-state { padding:3px 7px; border-radius:999px; color:#9a6700; background:#fff4cc; font-size:10px; font-weight:800; }
.task-center-candidate-state.ready { color:#067647; background:#dcfae6; }
.task-center-candidate blockquote { margin:13px 14px 0; padding:9px 11px; border-left:3px solid #84adff; color:#526273; background:#f5f8fd; }
.task-center-candidate blockquote strong { color:#526273; font-size:10px; }
.task-center-candidate blockquote p { margin:3px 0 0; font-size:11px; line-height:1.5; white-space:pre-wrap; }
.task-center-candidate-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; padding:14px; }
.task-center-candidate-form > label { display:grid; align-content:start; gap:5px; color:#526273; font-size:11px; font-weight:700; }
.task-center-category-evidence { padding:7px 8px; border:1px solid #f1d28b; border-radius:7px; color:#71510b; background:#fff9e8; font-size:10px; font-weight:500; line-height:1.45; }
.task-center-category-evidence strong { color:#8a5a00; }
.task-center-candidate-form input,.task-center-candidate-form select,.task-center-candidate-form textarea { width:100%; box-sizing:border-box; resize:vertical; }
.task-center-candidate-form .wide { grid-column:1 / -1; }
.task-center-candidate-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:4px; }
.task-center-candidate-foot > div:last-child { display:flex; gap:8px; }
.task-center-candidate-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.task-center-candidate-actions button { min-width:104px; min-height:34px; padding:7px 10px; white-space:normal; overflow-wrap:anywhere; word-break:break-word; font-size:12px; line-height:1.3; }
.task-center-dashboard-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin:0 24px 18px; }
.task-center-dashboard-metric { display:grid; gap:4px; min-height:82px; padding:13px 14px; border:1px solid #dce4ec; border-radius:10px; background:#fff; }
.task-center-dashboard-metric span { color:#667085; font-size:11px; font-weight:700; }
.task-center-dashboard-metric strong { color:#123a63; font-size:25px; line-height:1; }
.task-center-dashboard-metric small { color:#8a97a5; font-size:10px; }
.task-center-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); gap:12px; margin:0 24px 20px; }
.task-center-dashboard-block { min-width:0; padding:14px; border:1px solid #dce4ec; border-radius:10px; background:#f8fafc; }
.task-center-dashboard-block > header { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:11px; }
.task-center-dashboard-block h3 { margin:0; color:#183b56; font-size:14px; }
.task-center-dashboard-block header span { color:#8a97a5; font-size:10px; }
.task-center-bar-chart { display:grid; gap:12px; min-height:42px; }
.task-center-bar-row { display:grid; grid-template-columns:minmax(72px,104px) minmax(0,1fr) 32px; align-items:center; gap:9px; color:#526273; font-size:11px; }
.task-center-bar-row > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.task-center-bar-row > strong { color:#123a63; text-align:right; }
.task-center-bar-track { height:16px; overflow:hidden; border:1px solid #d2deea; border-radius:6px; background:#e9f0f7; box-shadow:inset 0 1px 2px rgba(16,42,67,.06); }
.task-center-bar-track i { display:block; height:100%; min-width:10px; border-radius:5px; background:linear-gradient(90deg,#2f6fbd,#62a2e8); box-shadow:0 1px 2px rgba(36,91,153,.25); }
.task-center-trend-block { margin:0 24px 20px; }
.task-center-line-chart { min-height:210px; }
.task-center-line-legend { display:flex; gap:16px; margin-bottom:4px; color:#667085; font-size:11px; }
.task-center-line-legend span { display:inline-flex; align-items:center; gap:5px; }
.task-center-line-legend i { width:9px; height:9px; border-radius:50%; background:#4b83d1; }
.task-center-line-legend i.completed { background:#e07a3f; }
.task-center-line-svg { display:block; width:100%; height:190px; overflow:visible; }
.task-center-line-svg line { stroke:#dce4ec; stroke-width:1; }
.task-center-line-svg polyline { fill:none; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.task-center-line-svg polyline.created { stroke:#4b83d1; }
.task-center-line-svg polyline.completed { stroke:#e07a3f; }
.task-center-line-svg text { fill:#8a97a5; font-size:10px; }
.task-center-exception-list { display:grid; gap:7px; }
.task-center-exception-item { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; min-width:0; padding:8px 9px; border:1px solid #e1e7ee; border-radius:7px; color:#344054; background:#fff; text-align:left; }
.task-center-exception-item:hover { border-color:#84adff; background:#eff5ff; }
.task-center-exception-item span { display:grid; min-width:0; gap:3px; }
.task-center-exception-item b { overflow:hidden; color:#344054; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.task-center-exception-item small { overflow:hidden; color:#8a97a5; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.task-center-exception-item em { flex:none; color:#b54708; font-size:10px; font-style:normal; font-weight:800; }
.task-center-missing { color:#b54708; font-size:11px; }
.task-center-ready { color:#067647; font-size:11px; font-weight:700; }
.task-center-action-dialog { width:min(590px,calc(100vw - 30px)); }
.task-center-action-dialog .dialog-head p { margin:4px 0 0; color:#667085; font-size:12px; }
.task-center-action-form { display:grid; gap:13px; padding:18px 22px 0; }
.task-center-edit-fields { display:grid; gap:12px; }
.task-center-edit-fields > label { display:grid; gap:6px; color:#526273; font-size:12px; font-weight:700; }
.task-center-edit-fields select { width:100%; box-sizing:border-box; }
.task-center-action-form > label { display:grid; gap:6px; color:#526273; font-size:12px; font-weight:700; }
.task-center-action-form input,.task-center-action-form textarea { width:100%; box-sizing:border-box; resize:vertical; }
.task-center-action-form > .dialog-actions { margin:4px -22px 0; padding:14px 22px; }
.task-center-action-form [role="status"] { margin-right:auto; color:#b42318; font-size:11px; }
.task-center-toast { position:fixed; z-index:90; right:22px; bottom:22px; max-width:min(420px,calc(100vw - 44px)); padding:11px 14px; border:1px solid #a8dbc9; border-radius:9px; color:#067647; background:#ecfdf3; box-shadow:0 12px 32px rgba(16,42,67,.18); font-size:12px; font-weight:700; }
.task-center-toast.error { color:#b42318; border-color:#f5b7b1; background:#fff1f0; }
.task-center-page button:focus-visible,.task-center-page a:focus-visible,.task-center-page input:focus-visible,.task-center-page select:focus-visible,.task-center-page textarea:focus-visible,.task-center-page summary:focus-visible,.task-center-meeting-evidence pre:focus-visible { outline:3px solid rgba(23,92,211,.28); outline-offset:2px; }
.task-center-board-meta { max-width:460px; color:#526273; font-size:12px; line-height:1.5; text-align:right; }
.task-center-category-section { display:grid; gap:10px; margin:0 24px 16px; }
.task-center-category-section > header { display:flex; align-items:end; justify-content:space-between; gap:12px; }
.task-center-category-section h3 { margin:2px 0 0; color:#183b56; font-size:15px; }
.task-center-category-section > header > span { color:#526273; font-size:11px; }
.task-center-category-dashboard { display:grid; grid-template-columns:repeat(5,minmax(130px,1fr)); gap:9px; }
.task-center-category-card { display:grid; gap:9px; min-width:0; padding:12px; border:1px solid #dce4ec; border-radius:10px; background:#f8fafc; }
.task-center-category-card > header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.task-center-category-card h4 { margin:0; color:#36546b; font-size:12px; }
.task-center-category-card > header > strong,.task-center-category-card > header > button { min-height:28px; padding:2px 7px; color:#123a63; border-color:#d7e1ec; background:#fff; font-size:20px; }
.task-center-category-card > div { display:flex; flex-wrap:wrap; gap:5px; }
.task-center-category-card span,.task-center-category-card > div > button { min-height:25px; padding:3px 6px; border-color:#d7e1ec; border-radius:999px; color:#526273; background:#fff; font-size:10px; }
.task-center-category-card span strong,.task-center-category-card > div > button strong { color:#123a63; }
.task-center-metric-help { margin:0 24px 16px; padding:10px 12px; border:1px solid #d9e5ef; border-radius:9px; color:#526273; background:#f8fafc; font-size:12px; }
.task-center-metric-help summary { color:#36546b; font-weight:800; cursor:pointer; }
.task-center-metric-help p { margin:8px 0 0; line-height:1.55; }
.task-center-team-dashboard { display:grid; gap:14px; padding:0 24px 28px; }
.task-center-team-card { display:grid; gap:13px; padding:15px; border:1px solid #dce4ec; border-radius:12px; background:#fff; box-shadow:0 3px 12px rgba(16,42,67,.04); }
.task-center-team-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.task-center-team-card h3 { margin:0; color:#183b56; font-size:15px; }
.task-center-team-card header span { display:block; margin-top:3px; color:#7a8997; font-size:11px; }
.task-center-team-card header > strong { color:#175cd3; font-size:13px; white-space:nowrap; }
.task-center-team-metrics { display:grid; grid-template-columns:repeat(8,minmax(72px,1fr)); gap:7px; }
.task-center-team-metrics button { display:grid; gap:3px; min-width:0; padding:8px 6px; border-color:#d7e1ec; color:#526273; background:#f8fafc; text-align:center; white-space:normal; }
.task-center-team-metrics button:hover { border-color:#84adff; background:#eff5ff; }
.task-center-team-metrics button span { font-size:10px; }
.task-center-team-metrics button strong { color:#123a63; font-size:17px; }
.task-center-person-status-chart { display:grid; grid-template-columns:repeat(8,minmax(64px,1fr)); gap:8px; }
.task-center-person-status { position:relative; display:grid!important; grid-template-columns:auto 1fr auto; align-items:center; gap:6px!important; min-height:32px; padding:6px 7px!important; overflow:hidden; text-align:left!important; }
.task-center-person-status i { display:block; grid-column:1 / -1; height:6px; min-width:3px; border-radius:99px; background:#5b8fd8; }
.task-center-person-status strong { font-size:14px!important; }
.task-center-team-card dl { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0; }
.task-center-team-card dl > div { padding:9px 10px; border-radius:8px; background:#f8fafc; }
.task-center-team-card dt { color:#7a8997; font-size:10px; font-weight:800; }
.task-center-team-card dd { margin:4px 0 0; color:#3e596f; font-size:12px; line-height:1.5; }
.task-center-team-drilldown { display:flex; align-items:center; flex-wrap:wrap; gap:7px; min-height:18px; color:#667085; font-size:11px; }
.task-center-team-drilldown > strong { color:#425466; }
.task-center-team-drilldown button { min-height:29px; padding:5px 8px; }
.task-center-range-controls { display:flex; flex:1 1 650px; align-items:center; flex-wrap:wrap; gap:7px; padding:7px 9px; border:1px solid #d9e5ef; border-radius:9px; color:#425466; background:#f8fafc; font-size:11px; }
.task-center-range-controls > strong { color:#183b56; white-space:nowrap; }
.task-center-range-controls label { display:inline-flex; }
.task-center-range-controls input[type="date"] { width:132px; min-height:31px; box-sizing:border-box; padding:5px 7px; font-size:11px; }
.task-center-range-controls > button { min-height:31px; padding:5px 10px; }
.task-center-range-shortcuts { display:flex; flex-wrap:wrap; gap:4px; }
.task-center-range-shortcuts button { min-height:29px; padding:4px 8px; font-size:10px; }
.task-center-range-controls output { flex:1 1 220px; color:#526273; line-height:1.4; text-align:right; }
.task-center-supervisor-breakdowns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 24px 16px; }
.task-center-supervisor-breakdowns > section { min-width:0; padding:13px; border:1px solid #dce4ec; border-radius:10px; background:#f8fafc; }
.task-center-supervisor-breakdowns h3 { margin:0 0 9px; color:#183b56; font-size:13px; }
.task-center-breakdown-list { display:grid; gap:6px; }
.task-center-breakdown-list button { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:34px; padding:6px 9px; color:#425466; border-color:#d7e1ec; background:#fff; font-size:11px; text-align:left; }
.task-center-breakdown-list button strong { color:#175cd3; font-size:15px; }
.task-center-supervisor-drilldown { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-height:52px; margin:0 24px 28px; padding:12px; border:1px solid #d9e5ef; border-radius:9px; color:#667085; background:#fff; font-size:11px; }
.task-center-access-search { max-width:520px; margin:0 24px 14px; }
.task-center-access-layout { display:grid; grid-template-columns:minmax(260px,360px) minmax(0,1fr); gap:16px; padding:0 24px 28px; }
.task-center-access-layout > aside,.task-center-access-form { min-width:0; padding:14px; border:1px solid #dce4ec; border-radius:10px; background:#f8fafc; }
.task-center-access-layout h3 { margin:0 0 8px; color:#183b56; font-size:13px; }
.task-center-access-layout h3:not(:first-child) { margin-top:18px; }
.task-center-access-user-list { display:grid; gap:5px; max-height:340px; overflow:auto; }
.task-center-access-user-list button { display:grid; gap:2px; min-height:42px; padding:7px 9px; color:#425466; border-color:#d7e1ec; background:#fff; text-align:left; }
.task-center-access-user-list button.active { color:#175cd3; border-color:#84adff; background:#eff5ff; }
.task-center-access-user-list strong { font-size:12px; }
.task-center-access-user-list span { overflow:hidden; color:#7a8997; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.task-center-access-org-list { display:grid; gap:6px; max-height:230px; overflow:auto; }
.task-center-access-org-list p { display:grid; gap:2px; margin:0; padding:7px 8px; border-radius:7px; color:#526273; background:#fff; font-size:10px; }
.task-center-access-org-list strong { color:#36546b; }
.task-center-access-form { display:grid; align-content:start; gap:12px; }
.task-center-access-form > label { display:flex; align-items:center; gap:7px; color:#425466; font-size:12px; font-weight:700; }
.task-center-access-form > label:has(select) { display:grid; }
.task-center-access-form select { width:100%; box-sizing:border-box; }
.task-center-access-identity { display:grid; gap:3px; padding:10px; border-radius:8px; color:#526273; background:#fff; font-size:11px; }
.task-center-access-identity strong { color:#183b56; font-size:14px; }
.task-center-access-identity small { color:#b54708; line-height:1.5; }
.task-center-access-form fieldset { display:grid; gap:8px; margin:0; padding:11px; border:1px solid #d9e5ef; border-radius:8px; }
.task-center-access-form legend { padding:0 5px; color:#36546b; font-size:11px; font-weight:800; }
.task-center-access-permissions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.task-center-access-permissions label { display:flex; align-items:center; gap:6px; color:#526273; font-size:11px; }
.task-center-audio-panel { display:grid; gap:14px; margin:0 24px 22px; padding:16px; border:1px solid #cfe0f5; border-radius:12px; background:#f7faff; }
.task-center-audio-panel h3 { margin:0; color:#183b56; font-size:15px; }
.task-center-audio-panel p { margin:5px 0 0; color:#617386; font-size:12px; line-height:1.55; }
.task-center-audio-form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; }
.task-center-audio-form > label { grid-column:1 / -1; color:#425466; font-size:12px; font-weight:800; }
.task-center-audio-form input[type="file"] { box-sizing:border-box; padding:7px; background:#fff; }
.task-center-audio-actions { display:flex; flex-wrap:wrap; gap:7px; }
.task-center-audio-status { display:grid; grid-template-columns:auto minmax(160px,1fr); align-items:center; gap:8px 12px; }
.task-center-audio-status label { color:#526273; font-size:11px; font-weight:800; }
.task-center-audio-status progress { width:100%; height:12px; accent-color:#175cd3; }
.task-center-audio-status [role="status"] { grid-column:1 / -1; color:#526273; font-size:11px; line-height:1.5; }
.task-center-meeting-records { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:0 24px 28px; }
.task-center-meeting-records > article { min-width:0; overflow:hidden; border:1px solid #dce4ec; border-radius:12px; background:#fff; }
.task-center-meeting-records > article > header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 13px; border-bottom:1px solid #e4e9ef; background:#f8fafc; }
.task-center-meeting-records h3 { margin:0; color:#183b56; font-size:13px; }
.task-center-meeting-records header span { color:#7a8997; font-size:10px; }
.task-center-meeting-evidence pre { max-height:520px; margin:0; padding:14px; overflow:auto; color:#344054; background:#fff; font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.task-center-polished-text { padding:14px; color:#344054; font-size:12px; line-height:1.7; white-space:pre-wrap; }
.task-center-meeting-claims { display:grid; gap:9px; padding:0 12px 13px; }
.task-center-meeting-claims article { padding:10px; border:1px solid #d9e5ef; border-radius:9px; background:#f8fafc; }
.task-center-meeting-claims article.suggestion { border-color:#eadba6; background:#fffbeb; }
.task-center-meeting-claims header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.task-center-meeting-claims header strong { color:#36546b; font-size:11px; }
.task-center-meeting-claims header span { padding:2px 6px; border-radius:999px; color:#526273; background:#e8edf3; font-size:9px; font-weight:800; }
.task-center-meeting-claims .suggestion header span { color:#8a5a00; background:#fff2c6; }
.task-center-meeting-claims p { margin:7px 0; color:#344054; font-size:12px; line-height:1.55; }
.task-center-meeting-claims blockquote { margin:0; padding:7px 9px; border-left:3px solid #84adff; color:#617386; background:#fff; font-size:10px; line-height:1.5; }
.task-center-people-field { position:relative; display:grid; gap:5px; min-width:0; }
.task-center-field-label { color:#526273; font-size:11px; font-weight:700; }
.task-center-people-field > small { color:#667085; font-size:10px; line-height:1.45; }
.task-center-people-control { display:flex; align-items:center; flex-wrap:wrap; gap:5px; min-height:40px; box-sizing:border-box; padding:5px 7px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.task-center-people-control:focus-within { border-color:#528bda; box-shadow:0 0 0 3px rgba(23,92,211,.1); }
.task-center-people-control input[role="combobox"] { flex:1 1 170px; min-width:120px; width:auto; padding:4px; border:0; outline:0; box-shadow:none; }
.task-center-people-chips { display:flex; flex-wrap:wrap; gap:5px; }
.task-center-people-chip { display:inline-flex; align-items:center; gap:4px; max-width:220px; padding:3px 4px 3px 7px; border-radius:999px; color:#244d6d; background:#e8f1fb; font-size:11px; }
.task-center-people-chip.unresolved { color:#8a5a00; background:#fff2c6; }
.task-center-people-chip button { min-width:22px; min-height:22px; padding:0; border:0; border-radius:50%; color:inherit; background:transparent; line-height:1; }
.task-center-people-chip button:hover { background:rgba(16,42,67,.1); }
.task-center-people-popover { position:absolute; z-index:20; top:100%; right:0; left:0; margin-top:4px; overflow:hidden; border:1px solid #cbd7e4; border-radius:8px; background:#fff; box-shadow:0 12px 28px rgba(16,42,67,.16); }
.task-center-people-options { max-height:230px; overflow:auto; }
.task-center-people-options [role="option"] { display:flex; justify-content:space-between; gap:10px; padding:9px 10px; color:#344054; cursor:pointer; }
.task-center-people-options [role="option"].active,.task-center-people-options [role="option"]:hover { background:#eff5ff; }
.task-center-people-options strong { font-size:12px; }
.task-center-people-options span { overflow:hidden; color:#7a8997; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.task-center-people-empty { padding:12px 10px; color:#7a8997; font-size:11px; text-align:center; }
.task-center-people-actions { display:flex; justify-content:flex-end; padding:8px 10px; border-top:1px solid #e4e9ef; background:#f8fafc; }
.task-center-people-actions button { min-height:30px; padding:5px 12px; color:#fff; border-color:#175cd3; background:#175cd3; font-size:11px; font-weight:800; }
.task-center-recurrence { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:2px 0; padding:12px; border:1px solid #d9e5ef; border-radius:9px; background:#f8fafc; }
.task-center-recurrence legend { padding:0 5px; color:#36546b; font-size:11px; font-weight:800; }
.task-center-recurrence label { display:grid; gap:5px; color:#526273; font-size:11px; font-weight:700; }
.task-center-recurrence select,.task-center-recurrence input { box-sizing:border-box; }
.task-center-recurrence small { color:#7a8997; font-size:9px; font-weight:400; line-height:1.4; }
.task-center-page [hidden] { display:none!important; }

/* task-center-simple-20260916 */
.task-center-simple { gap:12px; padding-top:12px; }
.task-center-section-nav { position:sticky; z-index:12; top:0; display:flex; width:100%; box-sizing:border-box; padding:4px; border-color:#d0d5dd; background:#fff; box-shadow:0 1px 3px rgba(16,24,40,.06); }
.task-center-section-nav button { flex:0 0 auto; min-height:38px; padding:8px 18px; font-size:13px; }
.task-center-section-nav button span { display:inline-flex; min-width:18px; margin-left:4px; padding:1px 5px; border-radius:999px; background:#eaecf0; font-size:10px; justify-content:center; }
.task-center-summary-grid { grid-template-columns:repeat(4,minmax(150px,1fr)); gap:8px; }
.task-center-summary-grid .task-center-queue { min-height:72px; border-radius:7px; box-shadow:none; }
.task-center-summary-grid .task-center-queue:hover { transform:none; box-shadow:0 1px 4px rgba(16,24,40,.08); }
.task-center-ledger-table { display:grid; grid-template-columns:1fr; min-height:520px; overflow:visible; border-radius:7px; box-shadow:none; }
.task-center-ledger-table .task-center-panel-head { padding:15px 18px 10px; }
.task-center-filter-bar { display:flex; align-items:center; gap:8px; padding:0 18px 10px; }
.task-center-filter-bar > label { flex:1 1 300px; max-width:520px; }
.task-center-more-queues { display:flex; flex-wrap:wrap; gap:5px; }
.task-center-more-queues button { display:inline-flex; align-items:center; gap:5px; min-height:34px; padding:6px 9px; font-size:11px; }
.task-center-more-queues button strong { color:#175cd3; }
.task-center-date-filter { margin:0 18px 10px; border-top:1px solid #eaecf0; }
.task-center-date-filter summary { width:max-content; padding:9px 0 4px; color:#526273; font-size:11px; font-weight:700; cursor:pointer; }
.task-center-date-filter .task-center-range-controls { margin-top:5px; border:0; padding:0; background:transparent; }
.task-center-list-heading,.task-center-task-row { display:grid; grid-template-columns:minmax(260px,2fr) minmax(100px,.7fr) minmax(145px,.9fr) 92px minmax(160px,1fr); align-items:center; gap:12px; }
.task-center-list-heading { padding:9px 18px; color:#667085; background:#f8fafc; border-top:1px solid #eaecf0; border-bottom:1px solid #eaecf0; font-size:11px; font-weight:700; }
.task-center-ledger-table .task-center-task-list { padding:0; overflow:visible; }
.task-center-task-card.task-center-task-row { margin:0; min-height:58px; padding:9px 18px; border:0; border-bottom:1px solid #eaecf0; border-radius:0; background:#fff; box-shadow:none; }
.task-center-task-card.task-center-task-row:hover,.task-center-task-card.task-center-task-row.active { background:#f5f8fc; box-shadow:none; }
.task-center-task-row > span { min-width:0; color:#475467; font-size:12px; line-height:1.45; }
.task-center-task-row > span > small { display:block; margin-top:2px; color:#98a2b3; font-size:10px; }
.task-center-task-title b { display:block; overflow:hidden; color:#183b56; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.task-center-task-title small { display:flex!important; flex-wrap:wrap; gap:4px; }
.task-center-next-step { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.task-center-view-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 22px; border-bottom:1px solid #eaecf0; }
.task-center-view-head h2 { margin:0; color:#102a43; font-size:19px; }
.task-center-view-head p { margin:4px 0 0; color:#667085; font-size:12px; }
.task-center-view-head > div:last-child { display:flex; gap:7px; }
.task-center-review-panel,.task-center-simple .task-center-team-primary-panel { overflow:hidden; border:1px solid #dce4ec; border-radius:7px; background:#fff; box-shadow:none; }
.task-center-system-status { padding:8px 12px; color:#667085; border:1px solid #eaecf0; border-radius:7px; background:#fff; font-size:11px; }
.task-center-system-status summary { width:max-content; color:#475467; font-weight:700; cursor:pointer; }
.task-center-system-status .task-center-integration-badges { justify-content:flex-start; margin-top:10px; }
.task-center-system-status p { margin:8px 0 0; }
.task-center-detail-dialog { width:min(760px,calc(100vw - 24px)); max-width:none; height:100dvh; max-height:100dvh; margin:0 0 0 auto; padding:0; overflow:hidden; border:0; border-left:1px solid #d0d5dd; border-radius:0; background:#fff; box-shadow:-12px 0 30px rgba(16,24,40,.16); }
.task-center-detail-dialog::backdrop { background:rgba(16,24,40,.28); }
.task-center-detail-dialog > .dialog-head { position:sticky; z-index:2; top:0; padding:14px 18px; background:#fff; }
.task-center-detail-dialog > section { height:calc(100dvh - 65px); overflow:auto; }
.task-center-detail-dialog .task-center-detail { min-height:0; }
.task-center-detail-dialog .task-center-detail-card { padding:18px 20px 30px; }
.task-center-detail-dialog .task-center-detail-head h2 { font-size:19px; }
.task-center-status.status-outcome_review { color:#067647; background:#dcfae6; }
.task-center-supervisor-analytics { overflow:hidden; border:1px solid #dce4ec; border-radius:7px; background:#fff; }
.task-center-review-panel .task-center-tabs,.task-center-team-primary-panel > .task-center-tabs { padding-left:16px; }
.task-center-review-panel .task-center-tab-panel,.task-center-team-primary-panel .task-center-tab-panel { min-height:520px; }

@media (max-width:1280px) {
  .task-center-category-dashboard { grid-template-columns:repeat(3,minmax(130px,1fr)); }
  .task-center-queue-grid { grid-template-columns:repeat(3,minmax(150px,1fr)); }
  .task-center-workspace { grid-template-columns:minmax(270px,320px) minmax(500px,1fr); }
  .task-center-summary-grid { grid-template-columns:repeat(4,minmax(140px,1fr)); }
  .task-center-ledger-table { grid-template-columns:1fr; }
}
@media (max-width:1050px) {
  .task-center-list-heading,.task-center-task-row { grid-template-columns:minmax(220px,2fr) minmax(90px,.7fr) minmax(130px,.9fr) 86px; }
  .task-center-list-heading span:last-child,.task-center-task-row .task-center-next-step { display:none; }
  .task-center-filter-bar { align-items:stretch; flex-wrap:wrap; }
}
@media (max-width:900px) {
  .task-center-workspace { grid-template-columns:1fr; }
  .task-center-supervisor-breakdowns { grid-template-columns:1fr; }
  .task-center-access-layout { grid-template-columns:1fr; }
  .task-center-list-panel { min-height:480px; border-right:0; border-bottom:1px solid #dce4ec; }
  .task-center-task-list { max-height:390px; }
}
@media (max-width:760px) {
  .task-center-main { padding:12px; }
  .task-center-topbar,.task-center-safety,.task-center-page-links,.task-center-intake-head,.task-center-detail-head,.task-center-candidate-foot { align-items:stretch; flex-direction:column; }
  .task-center-page-links,.task-center-integration-badges { justify-content:flex-start; }
  .task-center-range-controls { align-items:stretch; }
  .task-center-range-controls output { flex-basis:100%; text-align:left; }
  .task-center-category-section { margin-right:15px; margin-left:15px; }
  .task-center-category-dashboard { grid-template-columns:1fr; }
  .task-center-queue-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .task-center-section-nav { position:static; overflow:auto; }
  .task-center-section-nav button { padding-inline:12px; }
  .task-center-list-heading { display:none; }
  .task-center-task-card.task-center-task-row { grid-template-columns:minmax(0,1fr) auto; gap:5px 10px; padding:11px 14px; }
  .task-center-task-row > span:nth-child(2) { grid-column:1; }
  .task-center-task-row > span:nth-child(3) { grid-column:1; }
  .task-center-task-row > .task-center-status { grid-column:2; grid-row:1; }
  .task-center-task-row .task-center-next-step { display:none; }
  .task-center-view-head { align-items:flex-start; flex-direction:column; }
  .task-center-detail-dialog { width:100vw; }
  .task-center-workspace { min-height:0; }
  .task-center-tabs { padding-left:6px; }
  .task-center-tab-panel,.task-center-detail { min-height:480px; }
  .task-center-detail-card,.task-center-intake-head { padding-right:15px; padding-left:15px; }
  .task-center-help,.task-center-messages,.task-center-intake-outcome { margin-right:15px; margin-left:15px; }
  .task-center-intake-form,.task-center-candidate-list { padding-right:15px; padding-left:15px; }
  .task-center-detail-grid,.task-center-candidate-form,.task-center-dimension-card dl,.task-center-meeting-records,.task-center-team-card dl,.task-center-recurrence { grid-template-columns:1fr; }
  .task-center-detail-grid > div,.task-center-detail-grid > div:nth-child(odd):not(.wide) { grid-column:auto; border-right:0; }
  .task-center-candidate-form .wide { grid-column:auto; }
  .task-center-candidate-foot > div:last-child { align-items:stretch; flex-direction:column; }
  .task-center-team-metrics { grid-template-columns:repeat(4,minmax(64px,1fr)); }
  .task-center-dashboard-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .task-center-dashboard-grid { grid-template-columns:1fr; }
  .task-center-board-meta { text-align:left; }
  .task-center-audio-form,.task-center-audio-status { grid-template-columns:1fr; }
  .task-center-audio-status [role="status"] { grid-column:auto; }
}

/* task-center-layout-fix-20260916 */
.task-center-page { overflow-x:hidden; }
.task-center-page .task-center-simple,
.task-center-page .task-center-simple *,
.task-center-page .task-center-simple *::before,
.task-center-page .task-center-simple *::after { box-sizing:border-box; }
.task-center-page .task-center-topbar { min-width:0; align-items:center; }
.task-center-page .task-center-topbar .title-area { min-width:0; }
.task-center-page .task-center-topbar .title-area h1,
.task-center-page .task-center-topbar .title-area p { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.task-center-page .task-center-page-links { min-width:0; }
.task-center-page .task-center-simple { width:auto; min-width:0; }
.task-center-page .task-center-primary-panel { width:auto; min-width:0; }
.task-center-page .task-center-summary-grid { width:100%; min-width:0; grid-template-columns:repeat(4,minmax(0,1fr)); }
.task-center-page .task-center-ledger-table { width:100%; min-width:0; min-height:0; }
.task-center-page .task-center-filter-bar { min-width:0; }
.task-center-page .task-center-filter-bar > label { min-width:180px; }
.task-center-page .task-center-more-queues { min-width:0; }
.task-center-page .task-center-date-filter { min-width:0; }
.task-center-page .task-center-date-filter .task-center-range-controls { display:flex; align-items:center; flex-wrap:wrap; gap:7px; min-width:0; }
.task-center-page .task-center-date-filter .task-center-range-controls output { flex:1 1 180px; min-width:0; }
.task-center-page .task-center-list-heading,
.task-center-page .task-center-task-row { grid-template-columns:minmax(0,2fr) minmax(90px,.8fr) minmax(130px,1fr) auto minmax(120px,1fr); }
.task-center-page .task-center-task-row > * { min-width:0; }
.task-center-page .task-center-task-row > span,
.task-center-page .task-center-task-row .task-center-next-step { overflow:hidden; text-overflow:ellipsis; }
.task-center-page .task-center-task-row > span:not(.task-center-task-title) { white-space:nowrap; }
.task-center-page .task-center-task-row .task-center-status { justify-self:start; }
.task-center-page .task-center-task-title { overflow:hidden; }
.task-center-page .task-center-task-title small { overflow:hidden; min-height:14px; }
.task-center-page .task-center-review-panel,
.task-center-page .task-center-team-primary-panel,
.task-center-page .task-center-supervisor-analytics { min-width:0; min-height:0; }
.task-center-page .task-center-review-panel .task-center-tab-panel { min-height:0; }
.task-center-page .task-center-review-panel .task-center-intake-form,
.task-center-page .task-center-review-panel .task-center-candidate-list { min-width:0; }
.task-center-page .task-center-team-primary-panel { overflow:auto; }
.task-center-page .task-center-team-primary-panel > * { min-width:0; }
.task-center-page .task-center-detail-dialog { inset-block:0; }
.task-center-page .task-center-detail-dialog > section { min-width:0; overscroll-behavior:contain; }

@media (max-width:1100px) {
  .task-center-page .task-center-topbar { align-items:flex-start; }
  .task-center-page .task-center-page-links { flex:0 1 auto; }
  .task-center-page .task-center-list-heading,
  .task-center-page .task-center-task-row { grid-template-columns:minmax(0,2fr) minmax(90px,.8fr) minmax(125px,1fr) auto; }
  .task-center-page .task-center-list-heading span:last-child,
  .task-center-page .task-center-task-row .task-center-next-step { display:none; }
  .task-center-page .task-center-filter-bar { align-items:stretch; flex-wrap:wrap; }
  .task-center-page .task-center-filter-bar > label { flex:1 1 260px; max-width:none; }
}

@media (max-width:760px) {
  .task-center-page .app-sidebar { position:relative; inset:auto; width:100%; height:auto; max-height:none; display:grid; grid-template-columns:1fr; overflow:visible; box-shadow:none; }
  .task-center-page .app-sidebar .sidebar-brand { height:46px; padding:0 14px; }
  .task-center-page .app-sidebar .sidebar-nav { display:flex; flex:0 0 auto; gap:4px; overflow-x:auto; padding:6px 8px; visibility:visible; }
  .task-center-page .app-sidebar .sidebar-group-title { display:none; }
  .task-center-page .app-sidebar .sidebar-nav a { flex:0 0 auto; min-height:32px; padding:7px 10px; white-space:nowrap; }
  .task-center-page .app-sidebar .sidebar-user { display:flex; align-items:center; gap:7px; margin-top:0; padding:7px 10px; border-top:1px solid #344054; }
  .task-center-page .app-sidebar .sidebar-user-label { flex:none; }
  .task-center-page .app-sidebar .sidebar-user input { flex:1 1 auto; min-width:0; }
  .task-center-page .app-sidebar .sidebar-user button { flex:0 0 auto; width:auto; min-width:70px; }
  .task-center-page.with-sidebar > .topbar,
  .task-center-page.with-sidebar > main { margin-left:0; }
  .task-center-page .task-center-topbar { gap:8px; }
  .task-center-page .task-center-topbar .title-area h1,
  .task-center-page .task-center-topbar .title-area p { white-space:normal; }
  .task-center-page .task-center-page-links { width:100%; justify-content:flex-start; }
  .task-center-page .task-center-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .task-center-page .task-center-filter-bar { display:grid; grid-template-columns:minmax(0,1fr) auto; }
  .task-center-page .task-center-filter-bar > label { grid-column:1 / -1; min-width:0; }
  .task-center-page .task-center-more-queues { grid-column:1 / -1; overflow:auto; flex-wrap:nowrap; padding-bottom:2px; }
  .task-center-page .task-center-more-queues button { flex:none; }
  .task-center-page .task-center-date-filter { margin-inline:14px; }
  .task-center-page .task-center-list-heading { display:none; }
  .task-center-page .task-center-task-card.task-center-task-row { grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:5px 10px; min-height:0; padding:12px 14px; }
  .task-center-page .task-center-task-row > span:nth-child(2) { grid-column:1; grid-row:2; }
  .task-center-page .task-center-task-row > span:nth-child(3) { grid-column:1; grid-row:3; }
  .task-center-page .task-center-task-row > .task-center-status { grid-column:2; grid-row:1; }
  .task-center-page .task-center-task-row > span:not(.task-center-task-title) { white-space:normal; }
  .task-center-page .task-center-review-panel .task-center-view-head > div:last-child { width:100%; flex-wrap:wrap; }
  .task-center-page .task-center-detail-dialog { width:100vw; max-width:100vw; }
}

/* data-source-viewer-20260905 · workspace-20260915 */
.data-sources-page main { display:grid; gap:14px; }
.data-source-filters { grid-template-columns:1fr; gap:12px; padding:14px; }
.data-source-filter-row { display:grid; gap:12px; align-items:end; }
.data-source-filter-catalog { grid-template-columns:minmax(220px,1.4fr) minmax(150px,.7fr) minmax(180px,.9fr) auto auto; }
.data-source-filter-rows { grid-template-columns:auto minmax(150px,.7fr) minmax(150px,.7fr) minmax(210px,1fr) auto; padding-top:12px; border-top:1px dashed var(--line); }
.data-source-filter-hint { align-self:end; padding-bottom:9px; color:var(--muted); font-size:12px; white-space:nowrap; }
.data-source-layout { display:grid; grid-template-columns:minmax(300px,380px) minmax(0,1fr); gap:14px; align-items:start; min-width:0; }
.data-source-list-shell,
.data-source-preview-shell { min-width:0; margin:0; }
.data-source-list-shell .table-toolbar,
.data-source-preview-shell .table-toolbar { min-height:58px; }
.data-source-list-shell .table-toolbar > div:first-child { display:flex; align-items:baseline; gap:8px; min-width:0; }
.data-source-preview-shell .table-toolbar > div:first-child { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; }
.data-source-list-shell .table-toolbar strong,
.data-source-preview-shell .table-toolbar strong { color:#183b56; font-size:16px; }
.data-source-list-shell .table-toolbar span,
.data-source-preview-shell .table-toolbar span { color:var(--muted); font-size:12px; }
.data-source-list-wrap { max-height:calc(100vh - 272px); min-height:240px; }
.data-source-preview-wrap { max-height:min(560px, calc(100vh - 360px)); }
.data-sources-page table { table-layout:auto; }
.data-sources-page th,
.data-sources-page td { white-space:nowrap; }
.data-source-list-shell table { table-layout:fixed; min-width:0; }
.data-source-list-shell th:nth-child(1) { width:48%; }
.data-source-list-shell th:nth-child(2) { width:27%; }
.data-source-list-shell th:nth-child(3) { width:25%; }
.data-source-list-shell th,
.data-source-list-shell td { padding:7px 10px; }
.data-source-preview-shell table { min-width:920px; }
.data-source-row { cursor:pointer; }
.data-source-row:hover td { background:#f5fafd; }
.data-source-row.active td { background:#eef8fc; }
.data-source-row.active td:first-child { box-shadow:inset 3px 0 0 #1570ef; }
.data-source-row .data-source-name { display:block; max-width:100%; padding:0; border:0; color:#175cd3; background:transparent; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:left; font-size:13px; font-weight:700; cursor:pointer; }
.data-source-row .data-source-name:hover { text-decoration:underline; }
.data-source-tag { margin-left:6px; padding:1px 5px; border:1px solid #b2ccff; border-radius:6px; color:#175cd3; background:#eff8ff; font-size:10px; font-weight:700; }
.data-source-row-state { min-height:36px; padding:10px 14px; border-top:1px solid var(--line); color:#526273; background:#f8fafc; font-size:13px; }
.data-source-column-dialog { width:min(620px, calc(100vw - 32px)); max-height:80vh; padding:0; border:1px solid var(--line); border-radius:12px; color:var(--ink); }
.data-source-column-dialog::backdrop { background:rgba(15,23,42,.35); }
.data-source-column-dialog form { margin:0; padding:16px; }
.data-source-column-hint { margin:8px 0 12px; color:var(--muted); font-size:13px; }
.data-source-column-list { display:grid; gap:6px; max-height:52vh; overflow:auto; padding:4px; }
.data-source-column-item { display:flex; align-items:center; gap:8px; padding:7px 8px; border:1px solid #e3ebf2; border-radius:7px; background:#fbfdff; }
.data-source-column-item label { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.data-source-column-item button { padding:3px 7px; font-size:12px; }
.data-source-column-actions { display:flex; align-items:center; gap:8px; margin-top:14px; }
.data-source-column-actions span { color:var(--muted); font-size:12px; }
.data-source-profile-dialog { width:min(560px, calc(100vw - 32px)); padding:0; border:1px solid var(--line); border-radius:12px; color:var(--ink); }
.data-source-profile-dialog::backdrop { background:rgba(15,23,42,.35); }
.data-source-profile-dialog form { margin:0; padding:16px; }
.data-source-profile-form { display:grid; gap:12px; margin-top:4px; }
.data-source-profile-form label { display:grid; gap:6px; color:#344054; font-size:13px; font-weight:700; }
.data-source-profile-form input,
.data-source-profile-form select { width:100%; padding:8px 10px; border:1px solid #d0d5dd; border-radius:8px; color:var(--ink); background:#fff; font-size:13px; }
.data-source-profile-hint { margin:12px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }
.data-source-profile-actions { display:flex; align-items:center; gap:8px; margin-top:14px; }
.data-source-profile-actions span { color:var(--muted); font-size:12px; }
@media (max-width:1180px) {
  .data-source-layout { grid-template-columns:1fr; }
  .data-source-list-wrap { max-height:320px; }
  .data-source-preview-wrap { max-height:520px; }
}
@media (max-width:760px) {
  .data-source-filter-row { grid-template-columns:1fr; }
  .data-source-filter-hint { padding-bottom:0; }
  .data-source-list-shell .table-toolbar,
  .data-source-preview-shell .table-toolbar { align-items:stretch; flex-direction:column; }
  .data-source-list-shell .table-toolbar > div:first-child,
  .data-source-preview-shell .table-toolbar > div:first-child { flex-wrap:wrap; }
}

/* knowledge-center-v1 */
.knowledge-center-topbar { align-items:center; }
.knowledge-center-main { display:grid; gap:16px; padding:18px 28px 32px; }
.knowledge-state { min-height:0; padding:10px 12px; color:#175cd3; border:1px solid #b2ccff; border-radius:8px; background:#eff8ff; }
.knowledge-state:empty { display:none; }
.knowledge-state.error { color:var(--danger); border-color:#fecdca; background:#fef3f2; }
.knowledge-notice { display:block; padding:13px 15px; color:#475467; border:1px solid #fedf89; border-radius:8px; background:#fffaeb; font-size:13px; line-height:1.6; }
.knowledge-notice strong { color:#93370d; }
.knowledge-editor-panel,
.knowledge-list-panel { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 1px 2px rgb(16 24 40 / 5%); }
.knowledge-section-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:15px 17px; border-bottom:1px solid var(--line); }
.knowledge-section-head h2 { font-size:18px; }
.knowledge-section-head p { margin-top:5px; color:var(--muted); font-size:12px; }
#knowledgeForm { display:grid; gap:15px; padding:17px; }
#knowledgeForm fieldset { min-width:0; margin:0; padding:14px; border:1px solid #dbe4ee; border-radius:8px; }
#knowledgeForm legend { padding:0 7px; color:#344054; font-size:13px; font-weight:700; }
.knowledge-source-grid { display:grid; grid-template-columns:1.5fr 1fr 1.5fr minmax(160px,.8fr); gap:12px; }
.knowledge-wide-field { margin-top:12px; }
.knowledge-wide-field textarea,
.knowledge-editor-grid textarea { resize:vertical; line-height:1.65; }
.knowledge-editor-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:12px; margin-top:12px; }
.knowledge-ai-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:12px 14px; border:1px solid #b2ccff; border-radius:8px; background:#eff8ff; }
.knowledge-ai-toolbar > div { display:grid; gap:4px; }
.knowledge-ai-toolbar span,
.knowledge-ai-metadata,
.knowledge-form-actions span { color:var(--muted); font-size:12px; line-height:1.5; }
.knowledge-ai-metadata { margin-top:10px; }
.knowledge-form-actions { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.knowledge-list-labels { display:flex; justify-content:space-between; gap:16px; padding:9px 17px; color:#667085; background:#f8fafc; border-bottom:1px solid #eaecf0; font-size:11px; }
.knowledge-record-list { display:grid; gap:13px; padding:15px; }
.knowledge-record-card { min-width:0; overflow:hidden; border:1px solid #dbe4ee; border-radius:9px; background:#fff; }
.knowledge-record-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; padding:14px 15px; background:#f8fafc; border-bottom:1px solid #eaecf0; }
.knowledge-record-head > div { min-width:0; }
.knowledge-record-id { display:block; margin-bottom:5px; color:#667085; font-size:11px; }
.knowledge-record-head h3 { overflow-wrap:anywhere; font-size:16px; }
.knowledge-status { flex:0 0 auto; padding:5px 9px; color:#344054; border:1px solid #d0d5dd; border-radius:999px; background:#fff; font-size:11px; font-weight:700; }
.knowledge-status-draft { color:#175cd3; border-color:#b2ccff; background:#eff8ff; }
.knowledge-status-pending_approval { color:#b54708; border-color:#fedf89; background:#fffaeb; }
.knowledge-status-blocked { color:#b42318; border-color:#fecdca; background:#fef3f2; }
.knowledge-status-imported { color:#067647; border-color:#abefc6; background:#ecfdf3; }
.knowledge-record-source { padding:13px 15px 4px; }
.knowledge-record-source h4,
.knowledge-content-section h4 { margin:0 0 8px; color:#475467; font-size:12px; }
.knowledge-record-meta,
.knowledge-workflow-meta { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:0; }
.knowledge-record-meta > div,
.knowledge-workflow-meta > div { min-width:0; padding:9px 10px; border-radius:6px; background:#f8fafc; }
.knowledge-record-meta dt,
.knowledge-workflow-meta dt { margin-bottom:4px; color:#667085; font-size:10px; }
.knowledge-record-meta dd,
.knowledge-workflow-meta dd { margin:0; overflow-wrap:anywhere; color:#344054; font-size:12px; line-height:1.5; }
.knowledge-record-meta a { color:#175cd3; }
.knowledge-record-content-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:10px 15px; }
.knowledge-content-section { min-width:0; padding:11px; border:1px solid #eaecf0; border-radius:7px; }
.knowledge-content-section pre { max-height:220px; margin:0; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; color:#344054; font:12px/1.65 "Microsoft YaHei","Segoe UI",sans-serif; }
.knowledge-workflow-meta { padding:4px 15px 14px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.knowledge-workflow-meta .knowledge-blocked-reason { color:#b42318; background:#fef3f2; }
.knowledge-record-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; padding:12px 15px; border-top:1px solid #eaecf0; }
.knowledge-record-actions .danger-button { color:#fff; background:var(--danger); border-color:var(--danger); }
.knowledge-empty { padding:28px; color:var(--muted); text-align:center; }
.knowledge-pagination { display:flex; justify-content:center; align-items:center; gap:14px; padding:13px 15px; color:#667085; border-top:1px solid var(--line); font-size:12px; }
.knowledge-center-page button:disabled { opacity:.5; cursor:not-allowed; }

@media (max-width: 1100px) {
  .knowledge-source-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .knowledge-record-meta,
  .knowledge-workflow-meta { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .knowledge-record-content-grid { grid-template-columns:1fr; }
}

@media (max-width: 760px) {
  .knowledge-center-main { padding:14px; }
  .knowledge-center-topbar,
  .knowledge-section-head,
  .knowledge-ai-toolbar,
  .knowledge-form-actions { align-items:stretch; flex-direction:column; }
  .knowledge-source-grid,
  .knowledge-editor-grid,
  .knowledge-record-meta,
  .knowledge-workflow-meta { grid-template-columns:1fr; }
  .knowledge-list-labels { display:none; }
  .knowledge-record-head { align-items:flex-start; flex-direction:column; }
  .knowledge-pagination { flex-wrap:wrap; }
}

/* 知识库中心：定时任务监控内容 */
.knowledge-monitor-panel {
  min-width: 0;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid #2563eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(16 24 40 / 5%);
}

.knowledge-section-actions { display:flex; flex:0 0 auto; gap:8px; align-items:center; }

/* Hermes 正式知识库面板（只读浏览与关键词检索） */
.knowledge-kb-panel {
  min-width: 0;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid #0f766e;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(16 24 40 / 5%);
}

.knowledge-kb-body[hidden] { display:none; }

.knowledge-kb-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f8fafc;
}

.knowledge-kb-toolbar select { min-width: 280px; max-width: 100%; }
.knowledge-kb-hint { margin: 6px 0 10px; color: #475569; font-size: 12px; word-break: break-all; }
.knowledge-kb-count { color: #475569; font-size: 13px; }

.knowledge-kb-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-top: 6px;
  font-size: 13px;
}

.knowledge-kb-table th,
.knowledge-kb-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #eef0f3;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.knowledge-kb-table thead th:nth-child(1) { width: auto; }
.knowledge-kb-table thead th:nth-child(2) { width: 19%; }
.knowledge-kb-table thead th:nth-child(3) { width: 12%; }
.knowledge-kb-table thead th:nth-child(4) { width: 7%; }
.knowledge-kb-table thead th:nth-child(5) { width: 8%; }
.knowledge-kb-table thead th:nth-child(6) { width: 10%; }

.knowledge-kb-title { display:flex; flex-direction:column; gap:2px; }
.knowledge-kb-status .knowledge-content-chip { white-space: nowrap; }
.knowledge-kb-chars { white-space: nowrap; color:#475569; }

.knowledge-kb-pager {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}


.knowledge-monitor-body[hidden] { display:none; }

.knowledge-monitor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 8px 0;
}

.knowledge-monitor-toolbar select {
  min-width: 260px;
}

.knowledge-monitor-summary {
  color: #475569;
  font-size: 13px;
  word-break: break-all;
}

.knowledge-monitor-filters,
.knowledge-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f8fafc;
}

.knowledge-filter-field { display:grid; gap:4px; color:#475467; font-size:12px; }
.knowledge-filter-field select,
.knowledge-filter-field input { min-width: 150px; }
.knowledge-filter-search { flex:1 1 220px; }
.knowledge-filter-search input { width:100%; }

.knowledge-monitor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

.knowledge-monitor-selectall {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
}

.knowledge-monitor-scope { color:#667085; font-weight:400; }

.knowledge-monitor-count {
  color: #64748b;
  font-size: 13px;
}

.knowledge-monitor-items {
  min-width: 0;
  max-height: 460px;
  overflow: auto;
  margin-top: 8px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
}

.knowledge-monitor-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}

/* 列宽写在表头单元格上：固定布局按“可见单元格顺序”取宽，
   这样收起列时列映射不会错位（colgroup 在隐藏单元格时会错位）。 */
.knowledge-monitor-table thead th:nth-child(1) { width: 4%; }
.knowledge-monitor-table thead th:nth-child(2) { width: 13%; }
.knowledge-monitor-table thead th:nth-child(3) { width: 7%; }
.knowledge-monitor-table thead th:nth-child(4) { width: auto; }
.knowledge-monitor-table thead th:nth-child(5) { width: 12%; }
.knowledge-monitor-table thead th:nth-child(6) { width: 9%; }
.knowledge-monitor-table thead th:nth-child(7) { width: 8%; }
.knowledge-monitor-table thead th:nth-child(8) { width: 6%; }

.knowledge-monitor-table th,
.knowledge-monitor-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.knowledge-monitor-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
}

.knowledge-monitor-title { max-width: none; }
.knowledge-monitor-title-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.knowledge-monitor-secondary { display:none; color:#667085; font-size:11px; }
.knowledge-monitor-media,
.knowledge-monitor-time { white-space: nowrap; color:#475467; }
.knowledge-monitor-link { white-space: nowrap; }

.knowledge-monitor-content { white-space: normal; }
.knowledge-content-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}
.knowledge-content-chip-filled { color:#067647; border-color:#abefc6; background:#ecfdf3; }
.knowledge-content-chip-metadata { color:#b54708; border-color:#fedf89; background:#fffaeb; }
.knowledge-content-chip-none { color:#b42318; border-color:#fecdca; background:#fef3f2; }
.knowledge-content-chip-empty { color:#475467; border-color:#d0d5dd; background:#f2f4f7; }
/* AI 筛选结论：有价值 / 判为不值得 / 尚未筛选 */
.knowledge-content-chip-valuable { color:#067647; border-color:#75e0a7; background:#ecfdf3; }
.knowledge-content-chip-rejected { color:#b42318; border-color:#fecdca; background:#fef3f2; }
.knowledge-content-chip-unscreened { color:#475467; border-color:#d0d5dd; background:#f9fafb; }

/* 整行可点：给出鼠标指针与悬停反馈，让「点条目就弹窗」这件事看得出来 */
.knowledge-monitor-table tbody tr.knowledge-monitor-row-clickable { cursor: pointer; }
.knowledge-monitor-table tbody tr.knowledge-monitor-row-clickable:hover { background: #f9fafb; }
.knowledge-monitor-table tbody tr.knowledge-monitor-row-clickable:hover .knowledge-monitor-title-text {
  color: #175cd3;
  text-decoration: underline;
}
.knowledge-monitor-table tbody tr.knowledge-monitor-row-clickable td { transition: background .12s ease; }

.knowledge-monitor-screen { min-width: 96px; }
.knowledge-monitor-actions-cell { white-space: nowrap; }

/* 条目弹窗：AI 整理 → 保存草稿 → 提交候选 → 批准入库 */
.knowledge-item-dialog {
  width: min(1000px, 94vw);
  max-height: 92vh;
  padding: 18px 20px 20px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  overflow: auto;
  box-shadow: 0 24px 48px rgba(16,24,40,.18);
}
.knowledge-item-dialog::backdrop { background: rgba(16,24,40,.45); }
.knowledge-item-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.knowledge-item-dialog-head h2 { margin:0 0 4px; font-size:16px; }
.knowledge-item-dialog-meta { margin:0; color:#475467; font-size:12px; }
.knowledge-item-dialog-screen { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:8px 0 12px; font-size:12px; }
.knowledge-item-dialog-screen-text { color:#475467; }
.knowledge-item-dialog-draft { margin:10px 0; padding:8px 10px; border:1px dashed #d0d5dd; border-radius:8px; background:#fcfcfd; }
.knowledge-item-dialog-draft-text { margin:0; color:#344054; font-size:12px; }
.knowledge-item-dialog-actions { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 6px; }
.knowledge-item-dialog-hint { margin:0 0 10px; color:#475467; font-size:12px; line-height:1.6; }
/* hidden 属性会被 display:grid/flex 覆盖，这里显式让它在弹窗内生效 */
.knowledge-item-dialog [hidden] { display: none !important; }
/* 手工模式下的来源信息：与旧编辑面板一致的网格布局 */
.knowledge-item-dialog-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 14px;
  margin: 4px 0 10px;
}
.knowledge-item-dialog-source-grid label { display:flex; flex-direction:column; gap:4px; font-size:12px; color:#344054; }
.knowledge-item-dialog-source-grid input { padding:6px 8px; border:1px solid #d0d5dd; border-radius:6px; font-size:13px; }
.knowledge-item-dialog-source-grid .knowledge-source-fetch { display:flex; flex-direction:column; gap:4px; justify-content:flex-end; }
.knowledge-item-dialog-candidate { margin-top:10px; }

.knowledge-monitor-preview { display:block; margin: 2px 0 0; }

.knowledge-monitor-detail > td { padding: 0 8px 10px; background:#fcfcfd; }
.knowledge-monitor-detail pre {
  max-height: 320px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color:#344054;
  font:12px/1.65 "Microsoft YaHei","Segoe UI",sans-serif;
}

@media (max-width: 1100px) {
  /* 收起时长/播放与发布时间列（第 7、8 列），隐藏列宽归零后重新分配，避免标题列被压缩。 */
  .knowledge-monitor-table th:nth-child(7),
  .knowledge-monitor-table td:nth-child(7),
  .knowledge-monitor-table th:nth-child(8),
  .knowledge-monitor-table td:nth-child(8) { display: none; }
  .knowledge-monitor-secondary { display: block; margin-top: 2px; }
  .knowledge-monitor-table thead th:nth-child(1) { width: 5%; }
  .knowledge-monitor-table thead th:nth-child(2) { width: 18%; }
  .knowledge-monitor-table thead th:nth-child(3) { width: 9%; }
  .knowledge-monitor-table thead th:nth-child(5) { width: 16%; }
}

@media (max-width: 900px) {
  /* 窄屏再收起类型与链接列（类型已并入标题下方次要信息）。 */
  .knowledge-monitor-table th:nth-child(3),
  .knowledge-monitor-table td:nth-child(3),
  .knowledge-monitor-table th:nth-child(8),
  .knowledge-monitor-table td:nth-child(8) { display: none; }
  .knowledge-monitor-table thead th:nth-child(1) { width: 8%; }
  .knowledge-monitor-table thead th:nth-child(2) { width: 30%; }
  .knowledge-monitor-table thead th:nth-child(4) { width: auto; }
  .knowledge-monitor-table thead th:nth-child(5) { width: 30%; }
}

@media (max-width: 760px) {
  .knowledge-monitor-toolbar { flex-direction: column; align-items: stretch; }
  .knowledge-monitor-toolbar select { min-width: 0; width: 100%; }
  .knowledge-monitor-title { max-width: none; }
  .knowledge-monitor-filters,
  .knowledge-list-toolbar { align-items: stretch; }
  .knowledge-filter-field select,
  .knowledge-filter-field input { width: 100%; }
}

.knowledge-monitor-hint {
  color: #475569;
  font-size: 13px;
  margin: 6px 0 10px;
}

/* 知识库中心：可读性、折叠与焦点 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.link-button {
  padding: 0;
  color: #175cd3;
  border: 0;
  background: none;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.link-button:disabled { color:#98a2b3; text-decoration:none; }

.knowledge-content-head { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.knowledge-content-count { color:#667085; font-size:11px; }
.knowledge-preview-toggle { margin-top: 6px; }

.knowledge-notice > summary {
  display:flex;
  flex-wrap:wrap;
  gap:6px 14px;
  align-items:baseline;
  cursor:pointer;
  list-style:none;
}
.knowledge-notice > summary::-webkit-details-marker { display:none; }
.knowledge-notice-summary { color:#475467; }
.knowledge-disclosure { color:#93370d; font-size:12px; text-decoration:underline; }
.knowledge-notice[open] .knowledge-disclosure { visibility:hidden; }
.knowledge-notice-body { display:grid; gap:6px; margin-top:8px; }

.knowledge-center-page button:focus-visible,
.knowledge-center-page a:focus-visible,
.knowledge-center-page input:focus-visible,
.knowledge-center-page select:focus-visible,
.knowledge-center-page textarea:focus-visible,
.knowledge-center-page summary:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* 口径提示：非阻断告警，与错误样式区分，避免被误读为生成失败 */
.ai-caliber-warnings { align-self:stretch; width:auto; min-width:0; margin:8px 0; padding:9px 11px; box-sizing:border-box; border:1px solid #f2d08a; border-left:4px solid #e0a325; border-radius:7px; background:#fffaf0; }
.ai-caliber-warnings-head { font-weight:600; color:#8a5b00; margin-bottom:4px; }
.ai-caliber-warning { margin-top:6px; }
.ai-caliber-warning-title { color:#8a5b00; font-weight:600; }
.ai-caliber-warning-hint { color:#6b5a34; }
.ai-caliber-warning-evidence { color:#7c7364; font-size:0.92em; word-break:break-word; }

