/* 思行AI数据中台 · 经营工作台。沿用官网暖色，采用参考图的业务布局。 */
:root {
  --paper: #f6f4ef;
  --surface: #fffefa;
  --ink: #332e26;
  --muted: #887e6e;
  --gold: #946d31;
  --gold-dark: #88652f;
  --gold-soft: #f0e6d2;
  --line: #e7e1d6;
  --sidebar: #302e29;
  font-family: "PingFang SC", "Microsoft YaHei", Inter, system-ui, sans-serif;
}
.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: var(--icon-image) center / contain no-repeat;
  mask: var(--icon-image) center / contain no-repeat;
}
.sidebar {
  width: 224px;
  padding: 30px 16px 20px;
  border: 0;
  color: #eee7da;
  box-shadow: none;
}
.brand { gap: 11px; padding: 0 5px; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: #ab884c; box-shadow: none; flex-shrink: 0; font-size: 25px; }
.brand strong { font-size: 16px; letter-spacing: .2px; line-height: 1.4; color: #f7f1e5; font-weight: 600; }
.brand small { font-size: 8px; letter-spacing: 1.3px; color: #b4a58b; margin-top: 5px; }
.workspace-chip { background: #ffffff04; border-color: #ffffff17; margin: 27px 4px 32px; color: #e4dbc9; font-size: 12px; padding: 12px 10px; }
.workspace-symbol { background: #b3914b24; color: #ceaf75; }
.workspace-chip small { color: #9b9384; font-size: 8px; }
.workspace-dot { background: #9caa8c; }
.nav-label { color: #8e897d; font-size: 10px; padding-left: 13px; letter-spacing: 1px; }
.nav-label span { display: none; }
nav { gap: 7px; }
.nav-item { color: #c7c0b3; height: 48px; padding: 0 15px; border-radius: 7px; font-size: 13px; gap: 12px; }
.nav-item .icon { width: 18px; height: 18px; color: #a49b89; }
.nav-item:hover { color: #fff5df; background: #ffffff07; }
.nav-item.active { background: #a9854435; color: #f0d39b; }
.nav-item.active .icon { color: #dab679; }
.nav-indicator { background: #d1ac69; width: 4px; height: 4px; }
.nav-divider { background: #ffffff0e; margin: 27px 13px; }
.sidebar-bottom { padding: 30px 8px 0; }
.version-note { color: #bcb09a; font-size: 11px; margin-bottom: 24px; }
.version-note small { color: #878277; font-size: 10px; }
.tiny-orbit { display: flex; color: #b79a65; }
.tiny-orbit .icon { width: 24px; height: 24px; }
.about-link { color: #b4aa97; border-color: #ffffff13; font-size: 11px; gap: 9px; }
.about-link:hover { color: #e6c27f; }
.sidebar-version { color: #79766d; font-size: 8px; }
.main-shell { margin-left: 224px; width: calc(100% - 224px); }
.topbar { height: 72px; padding: 0 34px; background: #fffefa; gap: 20px; position: sticky; top: 0; z-index: 15; }
.breadcrumb { font-size: 12px; gap: 14px; color: #9c9180; }
.breadcrumb b { font-weight: 500; }
.top-actions { gap: 12px; }
.header-line { margin: 0 4px; }
.btn { padding: 10px 15px; font-size: 12px; border-radius: 6px; min-height: 38px; }
.btn .icon { width: 16px; height: 16px; }
.header-admin, .fullscreen-btn { padding: 8px 12px; font-size: 11px; background: #fffefa; }
.header-admin { border-color: #dccbad; color: #9c7637; }
.fullscreen-btn { color: #7e7361; border-color: #e8e1d6; }
.local-badge { font-size: 10px; margin-right: 6px; color: #93836b; }
.profile-btn { font-size: 12px; gap: 10px; }
.profile-btn small { font-size: 10px; color: #a1937b; }
.profile-btn > .icon { width: 14px; height: 14px; }
.avatar { background: #f1e6d2; width: 34px; height: 34px; font-size: 13px; }
main { padding: 33px 34px 38px; max-width: 1720px; animation: none; }
.page-heading { margin-bottom: 25px; gap: 24px; }
.eyebrow { font-size: 9px; letter-spacing: 1.7px; color: #ab997b; font-weight: 600; margin-bottom: 8px; }
h1 { font-size: 26px; line-height: 1.35; letter-spacing: .2px; font-weight: 600; }
.page-heading p { font-size: 12px; color: #9b8d76; margin-top: 8px; }
.heading-utilities { display: flex; flex-direction: row; gap: 16px; align-items: center; }
.date-label { margin-top: 0; font-size: 10px; color: #9e917a; gap: 7px; }
.heading-utilities .btn { font-size: 11px; }
.overview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.overview-toolbar > div:first-child { display: flex; align-items: center; gap: 8px; }
.overview-toolbar b { font-size: 12px; font-weight: 500; color: #76674f; }
.section-marker { display: block; width: 3px; height: 11px; border-radius: 3px; background: #b08a49; }
.overview-hint { font-size: 10px; color: #b4a68f; margin-left: 5px; }
.range-selector { display: inline-flex; background: #ece7dc; padding: 3px; border-radius: 6px; gap: 3px; }
.range-selector button { font-size: 10px; padding: 7px 13px; color: #9c8c72; border-radius: 4px; min-width: 50px; }
.range-selector button.selected { color: #8d672b; background: #fffefa; box-shadow: 0 1px 3px #4133160a; font-weight: 600; }
.performance-panel { border: 1px solid #e6ddcc; background: var(--surface); border-radius: 12px; box-shadow: 0 4px 20px #59401503; padding: 25px 27px 0; }
.performance-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; }
.performance-heading h2 { font-size: 19px; line-height: 1.5; font-weight: 600; }
.performance-heading p { font-size: 11px; color: #a89980; margin-top: 6px; }
.middle-dot { margin: 0 5px; }
.performance-controls { display: flex; align-items: center; gap: 10px; }
.pending-badge { font-size: 10px; color: #ac8b51; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #ecdfc6; padding: 7px 10px; border-radius: 5px; background: #faf5e9; white-space: nowrap; }
.pending-badge .icon { width: 13px; height: 13px; }
.panel-collapse { padding: 6px 9px; min-height: 30px; color: #a69370; border-color: #eae1d2; font-size: 10px; gap: 3px; }
.panel-collapse .icon { width: 14px; height: 14px; }
.metrics-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 22px 0 24px; border-top: 1px dashed #e9e0d0; gap: 12px; }
.metric-cell { background: #fbf9f4; border: 1px solid #eee6d9; border-radius: 7px; padding: 15px 15px 13px; min-height: 116px; overflow: hidden; }
.metric-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #918267; gap: 5px; white-space: nowrap; }
.metric-label .icon { width: 14px; height: 14px; color: #c1ae89; }
.metric-cell strong { display: block; margin-top: 11px; color: #746751; font-family: Inter, Arial, sans-serif; font-size: 30px; line-height: 1.2; font-weight: 500; }
.metric-cell strong.text-value { font-family: inherit; font-size: 20px; line-height: 36px; font-weight: 400; color: #ac9774; }
.metric-cell small { display: block; color: #b7a78c; font-size: 9px; margin-top: 10px; line-height: 1.6; }
.performance-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #eee6d7; padding: 18px 0 20px; }
.data-connection-note { display: flex; align-items: center; gap: 12px; }
.connection-symbol { width: 34px; height: 34px; border: 1px solid #e8dfcd; border-radius: 8px; color: #b39b70; display: grid; place-items: center; }
.connection-symbol .icon { width: 17px; height: 17px; }
.data-connection-note b { font-size: 11px; color: #9b865f; font-weight: 500; }
.data-connection-note p { font-size: 10px; color: #b2a38b; margin-top: 4px; }
.performance-bottom .btn { font-size: 11px; padding: 9px 13px; }
.business-workspaces { margin-top: 30px; }
.section-heading { align-items: center; margin-bottom: 18px; }
.section-heading h2 { font-size: 18px; font-weight: 600; letter-spacing: .2px; }
.section-heading h2 > .count-label { font-size: 10px; font-weight: 500; letter-spacing: 0; color: #9b8358; background: #eae0cd; border-radius: 4px; padding: 2px 6px; vertical-align: middle; margin-left: 4px; }
.section-heading p { font-size: 11px; color: #a49376; margin-top: 7px; }
.workspace-tool-actions { display: flex; align-items: center; gap: 20px; }
.text-btn { font-size: 11px; }
.text-btn .icon { width: 14px; height: 14px; }
.search-field { background: #fffefa; padding: 10px 12px; min-width: 195px; }
.search-field input { font-size: 11px; }
.workspace-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.workspace-tool { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; display: flex; flex-direction: column; transition: transform .18s, border-color .18s, box-shadow .18s; }
.workspace-tool:hover { transform: translateY(-3px); border-color: #ccb58b; box-shadow: 0 5px 16px #5d43130a; }
.workspace-tool-top { display: flex; justify-content: space-between; align-items: center; }
.tool-icon { height: 40px; width: 40px; border-radius: 10px; background: #f4eddf; border-color: #e9dcc4; color: #a6854e; }
.tool-icon .icon { height: 21px; width: 21px; }
.tool-kind { font-size: 10px; color: #b09c78; }
.workspace-tool h3 { font-size: 16px; font-weight: 600; margin-top: 17px; }
.workspace-tool > p { font-size: 11px; line-height: 1.9; color: #a29176; margin: 10px 0 20px; min-height: 42px; max-width: 330px; }
.workspace-tool-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #f0eade; margin-top: auto; padding-top: 13px; }
.connection-status { color: #a39377; font-size: 9px; }
.connection-status i { background: #8da082; }
.add-workspace-tool { border: 1px dashed #d9cdb7; background: #f5f1e8; border-radius: 9px; min-height: 233px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9e8660; transition: background .18s, border-color .18s; }
.add-workspace-tool:hover { background: #eee6d7; border-color: #b99b66; }
.add-tool-icon { height: 38px; width: 38px; border: 1px solid #e2d5bc; border-radius: 10px; display: grid; place-items: center; margin-bottom: 17px; }
.add-tool-icon .icon { width: 18px; height: 18px; }
.add-workspace-tool strong { font-size: 14px; font-weight: 500; }
.add-workspace-tool > span:last-child { font-size: 10px; color: #b1a086; margin-top: 10px; }
.workspace-lower-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; margin-top: 31px; }
.workspace-lower-grid > :only-child { grid-column: 1 / -1; }
.recent-section { padding: 2px 0; }
.recent-section .section-heading h2, .workspace-status-panel h2 { font-size: 14px; }
.recent-section .section-heading p { font-size: 10px; }
.recent-empty { font-size: 11px; padding-top: 9px; }
.recent-empty small { font-size: 10px; }
.recent-row { padding: 10px 0; }
.recent-row b { font-size: 11px; }
.recent-row small { font-size: 9px; }
.recent-row time { font-size: 9px; }
.workspace-status-panel { border-left: 1px solid var(--line); padding: 3px 0 0 28px; }
.workspace-status-panel .section-heading { margin-bottom: 14px; }
.workspace-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; margin-top: 12px; color: #a29277; }
.workspace-status-row b { font-weight: 400; color: #7f6d50; }
.workspace-status-panel > .text-btn { margin-top: 14px; font-size: 10px; }
.no-report-access { display: flex; align-items: center; gap: 15px; padding: 25px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.no-report-access > .icon { width: 28px; height: 28px; color: #b49c74; }
.no-report-access h2 { font-size: 15px; font-weight: 500; }
.no-report-access p { font-size: 11px; color: #a6967a; margin-top: 7px; }
.no-report-access .btn { margin-left: auto; }
.page-footer { padding: 19px 34px; font-size: 9px; }
.settings-check { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #887452; margin: 25px 0; }
.settings-check input { accent-color: var(--gold); width: 16px; height: 16px; }
.settings-static-row { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; border-top: 1px solid var(--line); padding: 17px 0; color: #a69476; }
.settings-static-row b { font-weight: 500; }
.form-field { font-size: 12px; }
.form-field input, .form-field select { font-size: 13px; }
.modal-description { font-size: 12px; }
.admin-tab { font-size: 12px; }
.table-heading h2 { font-size: 16px; }
.table-heading p { font-size: 11px; }
th { font-size: 11px; }
td { font-size: 12px; }
.status-chip { font-size: 10px; }
.directory-tool p { font-size: 12px; }
.directory-tool h2 { font-size: 18px; }
.category-tab { font-size: 12px; }
.directory-footnote, .info-note { font-size: 11px; }
.permission-table { min-width: 570px; }
.check-cell { min-height: 24px; }
.check-cell span { font-size: 10px; }
.favorite-btn.is-favorite .icon { color: #b18b48; }
.workspace-focus-mode .sidebar { display: none; }
.workspace-focus-mode .main-shell { margin-left: 0; width: 100%; }
.workspace-focus-mode .fullscreen-btn { background: #eee3cf; border-color: #cdb78c; }
/* Keep the warm palette readable at the actual dashboard text size. */
.breadcrumb, .page-heading p, .section-heading p,
.performance-heading p, .overview-toolbar b,
.metric-label, .workspace-tool > p, .tool-kind,
.data-connection-note b, .data-connection-note p,
.workspace-status-row, .workspace-status-row b,
.workspace-tool-bottom .connection-status,
.date-label, .recent-empty, .recent-empty small {
  color: #81735f;
}
.metric-cell small { color: #887b68; font-size: 10px; }
.metric-label { font-size: 12px; }
.metric-cell strong.text-value { color: #887b68; }
.pending-badge { color: #896a33; }
.overview-hint, .add-workspace-tool > span:last-child { color: #887b68; }
.overview-toolbar { margin-bottom: 12px; }
.performance-panel { padding-top: 23px; }
.performance-heading { padding-bottom: 19px; }
.metrics-grid { padding-top: 19px; padding-bottom: 21px; }
.performance-bottom { padding-top: 16px; padding-bottom: 17px; }
@media (min-width:1600px) {
  .sidebar { width: 240px; padding-top: 34px; }
  .main-shell { margin-left: 240px; width: calc(100% - 240px); }
  main { padding: 40px 44px; }
  .topbar { padding-inline: 44px; }
  .performance-panel { padding: 30px 33px 0; }
  .metrics-grid { gap: 16px; padding-block: 27px; }
  .metric-cell { min-height: 130px; padding: 18px; }
  .metric-label { font-size: 13px; }
  .metric-cell small { font-size: 11px; }
  .performance-heading h2 { font-size: 22px; }
  .workspace-tool { padding: 26px; }
  .workspace-tool > p { font-size: 12px; }
}
@media (max-width:1260px) {
  .sidebar { width: 208px; padding-inline: 13px; }
  .main-shell { margin-left: 208px; width: calc(100% - 208px); }
  .brand { gap: 9px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 7px; letter-spacing: 1px; }
  .brand-mark { width: 34px; height: 34px; font-size: 22px; }
  main { padding: 29px 27px; }
  .topbar { padding-inline: 27px; }
  .performance-panel { padding-inline: 22px; }
  .metrics-grid { gap: 9px; }
  .metric-cell { padding-inline: 11px; }
  .metric-label { font-size: 10px; }
  .metric-label .icon { display: none; }
  .metric-cell small { font-size: 8px; }
  .heading-utilities .date-label { display: none; }
  .workspace-tool { padding: 19px; }
  .workspace-tool-actions { gap: 15px; }
  .local-badge { display: none; }
}
@media (max-width:1020px) {
  .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .metric-cell { padding: 14px; min-height: 109px; }
  .metric-label { font-size: 11px; }
  .metric-label .icon { display: block; }
  .metric-cell small { font-size: 9px; }
  .metric-cell strong { font-size: 27px; }
  .metric-cell strong.text-value { font-size: 20px; line-height: 32px; }
  .workspace-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .add-workspace-tool { min-height: 160px; grid-column: 1 / -1; }
  .workspace-tool-actions .search-field { min-width: 160px; max-width: 190px; }
  .workspace-tool-actions > .text-btn { display: none; }
  .breadcrumb { gap: 10px; }
  .top-actions { gap: 9px; }
  .fullscreen-btn span:not(.icon) { display: none; }
  .fullscreen-btn { padding: 9px; }
  .header-admin { font-size: 10px; }
  .performance-bottom { align-items: center; }
  .data-connection-note p { max-width: 200px; }
  .workspace-lower-grid { grid-template-columns: 1.15fr 1fr; gap: 23px; }
}
@media (max-width:720px) {
  .sidebar { width: 224px; visibility: hidden; }
  .menu-open .sidebar { visibility: visible; }
  .main-shell { margin: 0; width: 100%; }
  .topbar { height: 62px; padding-inline: 18px; gap: 10px; }
  .top-actions { gap: 9px; }
  .breadcrumb > span { display: none; }
  .breadcrumb > .icon { display: none; }
  .header-admin { display: none; }
  .fullscreen-btn { border: 0; background: transparent; padding: 7px; }
  .fullscreen-btn .icon { width: 17px; height: 17px; }
  .avatar { width: 31px; height: 31px; }
  main { padding: 25px 18px 30px; }
  .page-heading { align-items: flex-start; gap: 10px; margin-bottom: 24px; }
  .page-heading p { font-size: 11px; max-width: 250px; }
  .heading-utilities > .btn { padding: 9px; min-height: 35px; font-size: 0; gap: 0; }
  .heading-utilities > .btn .icon { width: 17px; height: 17px; }
  h1 { font-size: 25px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .overview-toolbar { margin-bottom: 12px; }
  .overview-toolbar b { font-size: 11px; }
  .overview-hint { display: none; }
  .range-selector button { font-size: 10px; padding: 7px 9px; min-width: 38px; min-height: 34px; }
  .performance-panel { padding: 21px 17px 0; border-radius: 10px; }
  .performance-heading { align-items: flex-start; padding-bottom: 17px; gap: 10px; }
  .performance-heading h2 { font-size: 17px; }
  .performance-heading p { font-size: 9px; }
  .performance-controls { flex-direction: column; align-items: flex-end; gap: 8px; }
  .pending-badge { font-size: 8px; padding: 5px 6px; gap: 4px; }
  .pending-badge .icon { width: 11px; height: 11px; }
  .panel-collapse { border: 0; min-height: 34px; padding: 3px 0 3px 6px; font-size: 9px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 17px 0; gap: 10px; }
  .metric-cell { padding: 12px; min-height: 104px; }
  .metric-label { font-size: 10px; }
  .metric-label .icon { width: 12px; height: 12px; }
  .metric-cell strong { font-size: 25px; margin-top: 8px; }
  .metric-cell strong.text-value { font-size: 18px; line-height: 30px; }
  .metric-cell small { font-size: 8px; margin-top: 8px; }
  .performance-bottom { align-items: stretch; flex-direction: column; padding-block: 16px; gap: 17px; }
  .data-connection-note { gap: 10px; }
  .data-connection-note p { max-width: none; font-size: 9px; }
  .data-connection-note b { font-size: 10px; }
  .connection-symbol { height: 31px; width: 31px; }
  .performance-bottom .btn { min-height: 38px; }
  .business-workspaces { margin-top: 27px; }
  .business-workspaces > .section-heading { flex-wrap: wrap; gap: 16px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading p { font-size: 10px; }
  .workspace-tool-actions { width: 100%; }
  .workspace-tool-actions .search-field { width: 100%; max-width: none; }
  .workspace-tools-grid { grid-template-columns: 1fr; gap: 13px; }
  .workspace-tool { padding: 20px; }
  .workspace-tool h3 { font-size: 17px; }
  .workspace-tool > p { font-size: 11px; min-height: 0; }
  .workspace-tool-bottom { padding-top: 14px; }
  .workspace-tool-bottom .text-btn { font-size: 11px; min-height: 38px; }
  .add-workspace-tool { min-height: 130px; }
  .add-tool-icon { margin-bottom: 11px; width: 32px; height: 32px; }
  .add-workspace-tool > span:last-child { margin-top: 7px; }
  .workspace-lower-grid { grid-template-columns: 1fr; gap: 24px; }
  .workspace-status-panel { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .page-footer { padding-inline: 18px; font-size: 8px; }
  .no-report-access { flex-wrap: wrap; padding: 22px; gap: 12px; }
  .no-report-access h2 { font-size: 13px; }
  .no-report-access p { font-size: 10px; }
  .no-report-access .btn { margin: 8px 0 0; }
  .admin-tab { font-size: 11px; }
  .check-cell span { display: none; }
  .table-scroll { overscroll-behavior-x: contain; }
}
