/* Linked from public/demo/yudao.css. Tailwind v4 drops this file if it is imported from a component. */
.yudao-shell {
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-primary-active: #1e40af;
  --brand-gradient: linear-gradient(135deg, #3b82f6, #2563eb);
  --app-bg: #f5f7fb;
  --app-surface: #ffffff;
  --app-surface-subtle: #fafbfd;
  --app-surface-overlay: #ffffff;
  --app-input-bg: #ffffff;
  --app-fill: #f5f7fb;
  --app-fill-hover: #eef4ff;
  --app-primary-soft: #eaf1fe;
  --app-primary-soft-border: #c7dbfd;
  --app-border: #e5e7eb;
  --app-border-light: #eef1f6;
  --app-text: #1f2937;
  --app-text-secondary: #6b7280;
  --app-text-muted: #9ca3af;
  --app-success: #16a34a;
  --app-warning: #d97706;
  --app-danger: #dc2626;
  --app-info: #6b7280;
  --tone-blue: #1d4ed8;
  --tone-blue-soft: #eff4ff;
  --tone-green: #15803d;
  --tone-green-soft: #eafaf0;
  --tone-amber: #b45309;
  --tone-amber-soft: #fef6e7;
  --tone-violet: #7c3aed;
  --tone-violet-soft: #f1ecfe;
  --tone-red: #b91c1c;
  --tone-red-soft: #fdeeee;
  --tone-slate: #475569;
  --tone-slate-soft: #f1f5f9;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-popup: 0 12px 32px rgba(16, 24, 40, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --el-color-primary: var(--brand-primary);
  --el-color-primary-light-3: #6692f1;
  --el-color-primary-light-5: #92b1f5;
  --el-color-primary-light-7: #bed0f9;
  --el-color-primary-light-8: #d3e0fb;
  --el-color-primary-light-9: #e9effd;
  --el-color-primary-dark-2: #1e4fbc;
  --el-color-success: var(--app-success);
  --el-color-warning: var(--app-warning);
  --el-color-danger: var(--app-danger);
  --el-color-error: var(--app-danger);
  --el-color-info: var(--app-info);
  --el-color-success-light-3: color-mix(in srgb, var(--app-success) 70%, var(--app-surface));
  --el-color-success-light-5: color-mix(in srgb, var(--app-success) 50%, var(--app-surface));
  --el-color-success-light-7: color-mix(in srgb, var(--app-success) 30%, var(--app-surface));
  --el-color-success-light-8: color-mix(in srgb, var(--app-success) 20%, var(--app-surface));
  --el-color-success-light-9: color-mix(in srgb, var(--app-success) 10%, var(--app-surface));
  --el-color-warning-light-3: color-mix(in srgb, var(--app-warning) 70%, var(--app-surface));
  --el-color-warning-light-5: color-mix(in srgb, var(--app-warning) 50%, var(--app-surface));
  --el-color-warning-light-7: color-mix(in srgb, var(--app-warning) 30%, var(--app-surface));
  --el-color-warning-light-8: color-mix(in srgb, var(--app-warning) 20%, var(--app-surface));
  --el-color-warning-light-9: color-mix(in srgb, var(--app-warning) 10%, var(--app-surface));
  --el-color-danger-light-3: color-mix(in srgb, var(--app-danger) 70%, var(--app-surface));
  --el-color-danger-light-5: color-mix(in srgb, var(--app-danger) 50%, var(--app-surface));
  --el-color-danger-light-7: color-mix(in srgb, var(--app-danger) 30%, var(--app-surface));
  --el-color-danger-light-8: color-mix(in srgb, var(--app-danger) 20%, var(--app-surface));
  --el-color-danger-light-9: color-mix(in srgb, var(--app-danger) 10%, var(--app-surface));
  --el-color-error-light-3: var(--el-color-danger-light-3);
  --el-color-error-light-5: var(--el-color-danger-light-5);
  --el-color-error-light-8: var(--el-color-danger-light-8);
  --el-color-error-light-9: var(--el-color-danger-light-9);
  --el-color-info-light-3: color-mix(in srgb, var(--app-info) 70%, var(--app-surface));
  --el-color-info-light-5: color-mix(in srgb, var(--app-info) 50%, var(--app-surface));
  --el-color-info-light-8: color-mix(in srgb, var(--app-info) 20%, var(--app-surface));
  --el-color-info-light-9: color-mix(in srgb, var(--app-info) 10%, var(--app-surface));
  --el-color-error: var(--app-danger);
  --el-bg-color: var(--app-surface);
  --el-bg-color-overlay: var(--app-surface-overlay);
  --el-bg-color-page: var(--app-bg);
  --el-text-color-primary: var(--app-text);
  --el-text-color-regular: var(--app-text-secondary);
  --el-text-color-secondary: var(--app-text-secondary);
  --el-text-color-placeholder: var(--app-text-muted);
  --el-border-color: var(--app-border);
  --el-border-color-light: var(--app-border-light);
  --el-border-color-lighter: var(--app-border-light);
  --el-fill-color: var(--app-fill);
  --el-fill-color-light: var(--app-fill);
  --el-fill-color-lighter: var(--app-surface-subtle);
  --el-fill-color-blank: var(--app-input-bg);
  --el-border-radius-base: 8px;
  --el-box-shadow-light: var(--shadow-card);
  --left-menu-max-width: 232px;
  --left-menu-min-width: 64px;
  height: 100vh;
  overflow: hidden;
  background: var(--app-bg);
  color: var(--app-text);
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}

html.dark .yudao-shell {
  --brand-primary: #3b82f6;
  --brand-primary-hover: #60a5fa;
  --brand-primary-active: #2563eb;
  --brand-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);
  --app-bg: #0f1420;
  --app-surface: #161b26;
  --app-surface-subtle: #1b212e;
  --app-surface-overlay: #1b2230;
  --app-input-bg: #1b212e;
  --app-fill: #1d2432;
  --app-fill-hover: #232c3d;
  --app-primary-soft: #1a253b;
  --app-primary-soft-border: #2b4776;
  --app-border: #2a3243;
  --app-border-light: #212836;
  --app-text: #e6eaf2;
  --app-text-secondary: #98a2b6;
  --app-text-muted: #6c7789;
  --app-success: #4ade80;
  --app-warning: #fbbf24;
  --app-danger: #f87171;
  --app-info: #909399;
  --tone-blue: #7aa9fa;
  --tone-blue-soft: rgba(96, 165, 250, 0.16);
  --tone-green: #5ed08a;
  --tone-green-soft: rgba(74, 222, 128, 0.14);
  --tone-amber: #f0b354;
  --tone-amber-soft: rgba(251, 191, 36, 0.14);
  --tone-violet: #b095fb;
  --tone-violet-soft: rgba(167, 139, 250, 0.16);
  --tone-red: #f08a8a;
  --tone-red-soft: rgba(248, 113, 113, 0.14);
  --tone-slate: #a9b4c7;
  --tone-slate-soft: rgba(148, 163, 184, 0.14);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-popup: 0 12px 32px rgba(0, 0, 0, 0.5);
  --el-color-primary-light-3: #3063b8;
  --el-color-primary-light-5: #294f8e;
  --el-color-primary-light-7: #213a64;
  --el-color-primary-light-8: #1d3050;
  --el-color-primary-light-9: #1a253b;
  --el-color-primary-dark-2: #629bf8;
  color-scheme: dark;
}

.yudao-shell,
.yudao-shell * { box-sizing: border-box; }

.yudao-shell input,
.yudao-shell select,
.yudao-shell textarea,
html.dark .yudao-shell input,
html.dark .yudao-shell select,
html.dark .yudao-shell textarea {
  background-color: var(--app-input-bg);
  color: var(--app-text);
  -webkit-text-fill-color: var(--app-text);
  border-color: var(--app-border);
}

.yudao-app { display: flex; height: 100vh; }

.yudao-side {
  display: flex;
  width: var(--left-menu-max-width);
  flex-direction: column;
  background: var(--app-surface);
  border-right: 1px solid var(--app-border-light);
  transition: width 0.2s;
}

.yudao-side.is-collapse { width: var(--left-menu-min-width); }

.yudao-logo {
  display: flex;
  height: 56px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  overflow: hidden;
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border-light);
  color: var(--app-text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.yudao-mark {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.yudao-side > .el-menu { flex: 1; overflow: auto; padding: 10px; }

.yudao-side .el-menu {
  --el-menu-bg-color: transparent;
  --el-menu-text-color: var(--app-text-secondary);
  --el-menu-hover-text-color: var(--brand-primary);
  --el-menu-active-color: var(--brand-primary);
  --el-menu-hover-bg-color: var(--app-fill-hover);
  --el-menu-border-color: transparent;
  border-right: none;
  background: transparent;
}

.yudao-side .el-menu .el-menu { flex: none; overflow: visible; background: transparent; }

.yudao-side .el-sub-menu:not(.is-opened) > .el-menu { display: none; }

.yudao-side .el-sub-menu.is-opened > .el-sub-menu__title .el-sub-menu__icon-arrow { transform: rotate(180deg); }

.yudao-side .el-menu-item,
.yudao-side .el-sub-menu__title {
  height: 42px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  color: var(--app-text-secondary);
  font-weight: 500;
  line-height: 42px;
}

.yudao-side .el-menu-item:hover,
.yudao-side .el-sub-menu__title:hover,
.yudao-side .el-menu .el-menu .el-menu-item:hover,
.yudao-side .el-menu .el-menu .el-sub-menu__title:hover {
  color: var(--brand-primary) !important;
  background: var(--app-fill-hover) !important;
}

.yudao-side .el-menu-item.is-active,
.yudao-side .el-menu .el-menu .el-menu-item.is-active {
  color: var(--brand-primary) !important;
  background: var(--app-primary-soft) !important;
  font-weight: 600;
}

.yudao-side .el-menu .el-menu .el-menu-item:not(.is-active),
.yudao-side .el-menu .el-menu .el-sub-menu__title { background: transparent !important; }

.yudao-side .el-sub-menu.is-active > .el-sub-menu__title { color: var(--brand-primary) !important; }

.yudao-side .el-icon { width: 18px; height: 18px; margin-right: 8px; color: inherit; }

.yudao-side.is-collapse .el-sub-menu__title span,
.yudao-side.is-collapse .el-menu-item span,
.yudao-side.is-collapse .el-sub-menu__icon-arrow,
.yudao-side.is-collapse .yudao-logo span { display: none; }

.yudao-main { display: flex; min-width: 0; flex: 1; flex-direction: column; background: var(--app-bg); }

.yudao-header {
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 8px;
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border-light);
}

.yudao-header-left,
.yudao-header-right { display: flex; height: 100%; align-items: center; gap: 6px; }

.yudao-tool {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--app-text-secondary);
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
}
.yudao-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
}
.yudao-notices { max-height: 360px; overflow: auto; }
.yudao-notices > b { display: block; margin-bottom: 8px; }
.yudao-notice {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--app-fill);
  color: var(--app-text);
  text-align: left;
  cursor: pointer;
}
.yudao-notice strong { font-size: 13px; }
.yudao-notice span { color: var(--app-text-secondary); font-size: 12px; line-height: 1.4; }
.yudao-notice:hover { background: var(--app-fill-hover); }
.yudao-row-actions { display: inline-flex; gap: 4px; }
.yudao-shot { padding: 10px; border: 1px dashed var(--app-primary-soft-border); border-radius: 8px; background: var(--app-primary-soft); color: var(--app-text-secondary); font-size: 12px; }
.yudao-shot p { margin: 0 0 8px; }
.yudao-shot-actions { display: flex; gap: 8px; align-items: center; }
.yudao-shot b { display: block; margin-top: 8px; color: var(--tone-green); }
.yudao-panel-head p { margin: 4px 0 0; color: var(--app-text-secondary); font-size: 12px; }

.yudao-tool:hover { color: var(--brand-primary); background: var(--app-fill-hover); }

.yudao-user {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--app-text);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}

.yudao-user:hover { background: var(--app-fill-hover); }

.yudao-theme {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--app-text-secondary);
  cursor: pointer;
  font-size: 16px;
}

.yudao-theme:hover { color: var(--brand-primary); background: var(--app-fill-hover); }

.yudao-pop {
  position: absolute;
  z-index: 20;
  padding: 12px;
  background: var(--app-surface-overlay);
  border: 1px solid var(--app-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popup);
  color: var(--app-text);
}

.yudao-tags {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border-light);
}

.yudao-tag {
  display: inline-flex;
  height: 28px;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--app-fill);
  color: var(--app-text-secondary);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 28px;
  cursor: pointer;
}

.yudao-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-text-muted);
}

.yudao-tag:hover { color: var(--brand-primary); background: var(--app-fill-hover); }

.yudao-tag.is-active {
  border-color: var(--app-primary-soft-border);
  background: var(--app-primary-soft);
  color: var(--brand-primary);
  font-weight: 600;
}

.yudao-tag.is-active::before { background: var(--brand-primary); }

.yudao-tag i:hover {
  color: #fff;
  background: var(--brand-primary);
  border-radius: 50%;
}

.yudao-tag i { margin-left: 6px; font-style: normal; }

.yudao-content { flex: 1; overflow: auto; padding: 16px 16px 76px; background: var(--app-bg); }

.yudao-rolebar {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--brand-primary) 32%, transparent);
  border-radius: 0;
  background: color-mix(in srgb, var(--brand-primary) 16%, transparent);
  box-shadow: 0 -8px 24px color-mix(in srgb, var(--brand-primary) 12%, transparent);
  backdrop-filter: blur(16px);
  color: var(--app-text);
}
.yudao-rolebar-copy { display: flex; min-width: 0; flex: 1; align-items: center; gap: 10px; }
.yudao-rolebar-copy b { flex: none; font-size: 13px; font-weight: 600; }
.yudao-rolebar-copy span {
  min-width: 0;
  overflow: hidden;
  color: var(--app-text-secondary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yudao-rolebar-copy em {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tone-blue-soft);
  color: var(--tone-blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}
.yudao-rolebar-pick { display: flex; flex: none; align-items: center; gap: 8px; }
.yudao-rolebar-pick > span { color: var(--app-text-muted); font-size: 12px; }
.yudao-rolebar-pick select {
  width: 188px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-surface);
  color: var(--app-text);
  font: inherit;
  font-size: 13px;
}
@media (max-width: 1100px) {
  .yudao-rolebar-copy span { display: none; }
}
@media (max-width: 760px) {
  .yudao-rolebar { padding: 0 12px; }
  .yudao-rolebar-copy em { display: none; }
}

.yudao-login { position: relative; display: flex; height: 100vh; background: var(--app-surface); }

.yudao-login-theme {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border: 1px solid var(--app-border);
  border-radius: 50%;
  background: var(--app-surface);
}

.yudao-login-left {
  position: relative;
  display: none;
  flex: 1.05;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(140deg, #1e3a8a 0%, #2563eb 52%, #3b82f6 100%);
}

@media (min-width: 900px) { .yudao-login-left { display: flex; } }

.yudao-login-left::before,
.yudao-login-left::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.yudao-login-left::before { top: -70px; right: -60px; width: 280px; height: 280px; background: rgba(96, 165, 250, 0.45); }
.yudao-login-left::after { bottom: -80px; left: -60px; width: 320px; height: 320px; background: rgba(59, 130, 246, 0.35); }

.yudao-login-left > * { position: relative; z-index: 1; }

.yudao-login-hero { max-width: 420px; }

.yudao-login-hero h1 { margin: 18px 0 0; font-size: 30px; font-weight: 700; }

.yudao-login-right {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.yudao-login-form { width: 100%; max-width: 380px; }
.yudao-login-form h2 { margin: 0 0 8px; text-align: left; font-size: 22px; font-weight: 700; color: var(--app-text); }

.yudao-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.yudao-welcome { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.yudao-stat { padding: 0 8px; text-align: right; color: var(--app-text-secondary); }
.yudao-stat b { display: block; margin-top: 8px; color: var(--app-text); font-size: 20px; }
.yudao-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.yudao-project {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--app-border-light);
  border-radius: var(--radius-md);
  background: var(--app-surface);
  color: var(--app-text);
  cursor: pointer;
  text-align: left;
}
.yudao-project:hover { border-color: var(--app-primary-soft-border); background: var(--app-fill-hover); }
.yudao-bars { display: flex; height: 180px; align-items: flex-end; gap: 10px; }
.yudao-bars i { display: block; width: 100%; border-radius: 2px 2px 0 0; background: var(--brand-primary); }
.yudao-bars div { flex: 1; }
.yudao-bars em { display: block; margin-top: 6px; color: var(--app-text-secondary); font-size: 12px; font-style: normal; text-align: center; }

.yudao-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.yudao-period { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.yudao-seg { display: inline-flex; }
.yudao-seg button {
  height: 32px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  color: var(--app-text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 30px;
}
.yudao-seg button + button { margin-left: -1px; }
.yudao-seg button:first-child { border-radius: 8px 0 0 8px; }
.yudao-seg button:last-child { border-radius: 0 8px 8px 0; }
.yudao-seg button.is-active { position: relative; z-index: 1; border-color: var(--brand-primary); background: var(--app-primary-soft); color: var(--brand-primary); }
.yudao-period input[type="date"] { height: 32px; padding: 0 8px; border: 1px solid var(--app-border); border-radius: 8px; background: var(--app-input-bg); color: var(--app-text); font: inherit; }
.yudao-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.yudao-chart { min-width: 0; padding: 12px 12px 8px; border: 1px solid var(--app-border-light); border-radius: var(--radius-md); background: var(--app-surface); box-shadow: var(--shadow-card); }
.yudao-chart h4 { margin: 0; font-size: 14px; font-weight: 600; }
.yudao-chart p { margin: 4px 0 8px; color: var(--app-text-secondary); font-size: 12px; }
.yudao-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 6px; color: var(--app-text-secondary); font-size: 12px; }
.yudao-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 2px; vertical-align: middle; }
.yudao-chart svg.yudao-plot { display: block; width: 100%; height: 168px; }
.yudao-chart svg.yudao-donut { width: 120px; height: 120px; flex: none; }

.yudao-shell .el-card,
.yudao-shell .el-dialog,
.yudao-shell .el-message {
  background: var(--app-surface);
  border-color: var(--app-border-light);
  color: var(--app-text);
  box-shadow: var(--shadow-card);
}
.yudao-shell .el-card,
.yudao-shell .el-dialog { border-radius: var(--radius-md); }
.yudao-shell .el-button {
  height: 32px;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 500;
}

.yudao-shell .el-button:not(.el-button--primary):not(.el-button--success):not(.el-button--warning):not(.el-button--danger):not(.el-button--info):not(.is-link) {
  --el-button-text-color: var(--app-text);
  --el-button-bg-color: var(--app-surface);
  --el-button-border-color: var(--app-border);
  --el-button-hover-text-color: var(--brand-primary);
  --el-button-hover-bg-color: var(--app-primary-soft);
  --el-button-hover-border-color: var(--brand-primary);
  --el-button-active-text-color: var(--brand-primary-active);
  --el-button-active-bg-color: var(--app-primary-soft);
  --el-button-active-border-color: var(--brand-primary-active);
}

.yudao-shell .el-button--primary:not(.is-link):not(.is-text) {
  --el-button-bg-color: var(--brand-primary);
  --el-button-border-color: var(--brand-primary);
  --el-button-hover-bg-color: var(--brand-primary-hover);
  --el-button-hover-border-color: var(--brand-primary-hover);
  --el-button-active-bg-color: var(--brand-primary-active);
  --el-button-active-border-color: var(--brand-primary-active);
  --el-button-text-color: #fff;
  --el-button-hover-text-color: #fff;
}

.yudao-shell .el-button--success:not(.is-link):not(.is-plain) {
  --el-button-bg-color: var(--app-success);
  --el-button-border-color: var(--app-success);
  --el-button-text-color: #fff;
}

.yudao-shell .el-button--warning:not(.is-link):not(.is-plain) {
  --el-button-bg-color: var(--app-warning);
  --el-button-border-color: var(--app-warning);
  --el-button-text-color: #fff;
}

.yudao-shell .el-button--primary.is-plain {
  --el-button-bg-color: var(--el-color-primary-light-9);
  --el-button-text-color: var(--brand-primary);
  --el-button-border-color: var(--app-primary-soft-border);
}

.yudao-shell .el-button--success.is-plain {
  --el-button-bg-color: var(--el-color-success-light-9);
  --el-button-text-color: var(--app-success);
  --el-button-border-color: var(--el-color-success-light-8);
}

.yudao-shell .el-button.is-link {
  height: auto;
  padding: 2px 4px;
  background: transparent !important;
  border-color: transparent !important;
  color: var(--brand-primary);
  font-weight: 500;
}

.yudao-shell .el-button.is-link:hover { color: var(--brand-primary-hover); }

.yudao-shell .el-tag {
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
}
.yudao-shell .el-tag,
.yudao-shell .el-tag.el-tag--primary {
  --el-tag-text-color: var(--tone-blue);
  --el-tag-bg-color: var(--tone-blue-soft);
  --el-tag-border-color: color-mix(in srgb, var(--tone-blue) 22%, var(--app-surface));
}
.yudao-shell .el-tag.el-tag--success {
  --el-tag-text-color: var(--tone-green);
  --el-tag-bg-color: var(--tone-green-soft);
  --el-tag-border-color: color-mix(in srgb, var(--tone-green) 22%, var(--app-surface));
}
.yudao-shell .el-tag.el-tag--warning {
  --el-tag-text-color: var(--tone-amber);
  --el-tag-bg-color: var(--tone-amber-soft);
  --el-tag-border-color: color-mix(in srgb, var(--tone-amber) 22%, var(--app-surface));
}
.yudao-shell .el-tag.el-tag--danger,
.yudao-shell .el-tag.el-tag--error {
  --el-tag-text-color: var(--tone-red);
  --el-tag-bg-color: var(--tone-red-soft);
  --el-tag-border-color: color-mix(in srgb, var(--tone-red) 22%, var(--app-surface));
}
.yudao-shell .el-tag.el-tag--info {
  --el-tag-text-color: var(--tone-slate);
  --el-tag-bg-color: var(--tone-slate-soft);
  --el-tag-border-color: color-mix(in srgb, var(--tone-slate) 22%, var(--app-surface));
}

.yudao-crumb { display: flex; align-items: center; font-size: 13px; color: var(--app-text-muted); font-weight: 400; }
.yudao-crumb .is-current { color: var(--app-text); font-weight: 600; }

.yudao-kpis .el-card__body { display: flex; flex-direction: column; gap: 4px; }
.yudao-kpis .yudao-kpi-label { font-size: 12.5px; font-weight: 400; color: var(--app-text-secondary); }
.yudao-kpis strong { font-size: 22px; font-weight: 700; color: var(--tone-blue); }
.yudao-kpis .tone-green strong { color: var(--tone-green); }
.yudao-kpis .tone-amber strong { color: var(--tone-amber); }
.yudao-kpis .tone-violet strong { color: var(--tone-violet); }
.yudao-kpis .tone-red strong { color: var(--tone-red); }

.yudao-content .el-card p,
.yudao-content .yudao-chart p { color: var(--app-text-secondary); }
.yudao-content h4,
.yudao-panel-head b { color: var(--app-text); font-weight: 600; }
.yudao-shell .el-input__wrapper { background: var(--app-input-bg); box-shadow: 0 0 0 1px var(--app-border) inset; }
.yudao-shell .el-input__inner { color: var(--app-text); }
.yudao-shell .el-table,
.yudao-shell .el-table tr,
.yudao-shell .el-table th.el-table__cell,
.yudao-shell .el-table td.el-table__cell {
  background: var(--app-surface);
  color: var(--app-text);
  border-color: var(--app-border-light);
}
.yudao-shell .el-table th.el-table__cell { background: var(--app-surface-subtle); color: var(--app-text-secondary); }
.yudao-shell .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell { background: var(--app-surface-subtle); }
.yudao-shell .el-table__body tr:hover > td.el-table__cell { background: var(--app-fill-hover) !important; }

@media (max-width: 900px) {
  .yudao-panel-head { flex-direction: column; }
  .yudao-period { margin-left: 0; justify-content: flex-start; }
  .yudao-chart-grid { grid-template-columns: 1fr; }
}

.yudao-tabs { display: flex; gap: 24px; margin-bottom: 12px; border-bottom: 1px solid var(--app-border-light); }
.yudao-tabs button { height: 40px; padding: 0; border: 0; background: transparent; color: var(--app-text); cursor: pointer; font: inherit; }
.yudao-tabs button.is-active { color: var(--brand-primary); box-shadow: inset 0 -2px 0 var(--brand-primary); }

.yudao-desc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.yudao-desc span { display: block; margin-bottom: 6px; color: var(--app-text-secondary); }
.yudao-side .el-sub-menu__icon-arrow { display: inline-flex; width: 12px; height: 12px; color: inherit; }

.yudao-scroll-table {
  width: 100%;
  max-height: calc(100vh - 248px);
  overflow: auto;
  border: 1px solid var(--app-border-light);
  border-radius: 10px;
  scrollbar-color: color-mix(in srgb, var(--app-text-muted) 70%, transparent) transparent;
}
.yudao-scroll-table::-webkit-scrollbar { width: 10px; height: 10px; }
.yudao-scroll-table::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--app-text-muted) 65%, transparent); border-radius: 99px; }
.yudao-scroll-table::-webkit-scrollbar-track { background: transparent; }
.yudao-scroll-table table { border-collapse: separate; border-spacing: 0; }
.yudao-scroll-table th,
.yudao-scroll-table td {
  border-bottom: 1px solid var(--app-border-light);
  background: var(--app-surface);
  color: var(--app-text);
  font-size: 13px;
  font-weight: 400;
}
.yudao-scroll-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--app-surface-subtle);
  color: var(--app-text-secondary);
  font-weight: 600;
}
.yudao-scroll-table .cell { padding: 10px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yudao-scroll-table tbody tr:nth-child(even) td { background: var(--app-surface-subtle); }
.yudao-scroll-table tbody tr:hover td { background: var(--app-fill-hover); }
.yudao-scroll-table .is-pin-left,
.yudao-scroll-table .is-pin-right { position: sticky; z-index: 3; }
.yudao-scroll-table thead .is-pin-left,
.yudao-scroll-table thead .is-pin-right { z-index: 4; }
.yudao-scroll-table .is-pin-left { box-shadow: 8px 0 8px -8px rgba(15, 20, 32, 0.28); }
.yudao-scroll-table .is-pin-right { box-shadow: -8px 0 8px -8px rgba(15, 20, 32, 0.28); }
.yudao-follow-cell { display: flex; max-width: 168px; flex-direction: column; align-items: flex-start; gap: 2px; white-space: normal; }
.yudao-follow-cell b { font-weight: 500; }
.yudao-follow-cell small { color: var(--app-text-muted); font-size: 11px; }

.yudao-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: color-mix(in srgb, #0f1420 46%, transparent);
  backdrop-filter: blur(2px);
}
.yudao-overlay-center { display: flex; height: 100%; align-items: center; justify-content: center; padding: 24px; }
.yudao-shell .el-overlay .el-dialog {
  width: min(var(--dialog-w, 560px), calc(100vw - 48px)) !important;
  max-width: calc(100vw - 48px);
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--app-surface);
  border: 1px solid var(--app-border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-popup);
  color: var(--app-text);
}
.yudao-shell .el-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px 16px 16px 20px;
  border-bottom: 1px solid var(--app-border-light);
}
.yudao-shell .el-dialog__title { color: var(--app-text); font-size: 16px; font-weight: 600; line-height: 24px; }
.yudao-shell .el-dialog__headerbtn { display: none; }
.yudao-dialog-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--app-text-secondary);
  font-size: 20px;
  line-height: 32px;
  cursor: pointer;
}
.yudao-dialog-close:hover { background: var(--app-fill-hover); color: var(--app-text); }
.yudao-shell .el-dialog__body {
  max-height: min(62vh, 640px);
  padding: 18px 20px 6px;
  overflow: auto;
  color: var(--app-text);
  font-size: 13px;
}
.yudao-shell .el-dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--app-border-light);
}
.yudao-shell .el-dialog__footer .el-button { margin: 0; }
.yudao-shell .yudao-form-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-bottom: 14px;
}
.yudao-shell .yudao-form-row > .el-form-item__label {
  display: flex;
  justify-content: flex-end;
  width: auto !important;
  height: auto;
  padding: 6px 0 0;
  float: none;
  color: var(--app-text-secondary);
  font-size: 13px;
  line-height: 20px;
}
.yudao-shell .yudao-form-row > .el-form-item__content,
.yudao-shell .yudao-form-row > div { min-width: 0; }
.yudao-form-hint { margin: 0 0 8px; color: var(--app-text-secondary); font-size: 12px; line-height: 1.6; }
.yudao-shell .el-input__wrapper input.el-input__inner,
.yudao-shell .el-input__wrapper select.el-input__inner {
  width: 100%;
  height: 30px;
  padding: 0 2px;
  border: 0;
  outline: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--app-text);
  -webkit-text-fill-color: var(--app-text);
}
.yudao-shell .el-input__wrapper select.el-input__inner { cursor: pointer; }
.yudao-shell textarea.el-textarea__inner {
  width: 100%;
  min-height: 80px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--app-border) inset;
  background-color: var(--app-input-bg);
  color: var(--app-text);
  -webkit-text-fill-color: var(--app-text);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}
.yudao-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--app-text); font-size: 13px; }
.yudao-check input { width: 16px; height: 16px; accent-color: var(--brand-primary); }

.yudao-offer-mask {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: color-mix(in srgb, #0f1420 55%, transparent);
  backdrop-filter: blur(4px);
}
.yudao-offer {
  width: min(440px, calc(100vw - 32px));
  padding: 28px 28px 22px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 35%, var(--app-border));
  border-radius: 16px;
  background: var(--app-surface);
  box-shadow: var(--shadow-popup);
  color: var(--app-text);
  text-align: center;
  animation: yudao-offer-in 0.2s ease;
}
@keyframes yudao-offer-in { from { transform: translateY(8px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.yudao-offer-count {
  display: grid;
  width: 132px;
  height: 132px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, var(--app-surface) 68%, transparent 70%),
    conic-gradient(var(--brand-primary) calc(var(--p) * 1turn), var(--app-fill) 0);
}
.yudao-offer-count > div { display: flex; flex-direction: column; align-items: center; }
.yudao-offer-count strong { color: var(--brand-primary); font-size: 42px; font-weight: 700; line-height: 1; }
.yudao-offer-count em { color: var(--app-text-secondary); font-size: 12px; font-style: normal; }
.yudao-offer h3 { margin: 0; font-size: 20px; font-weight: 700; }
.yudao-offer-meta {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--app-surface-subtle);
  color: var(--app-text-secondary);
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}
.yudao-offer-meta b { color: var(--app-text); font-weight: 600; }
.yudao-offer .el-button { width: 100%; height: 40px; font-size: 15px; }
.yudao-offer small { display: block; margin-top: 10px; color: var(--app-text-muted); font-size: 12px; }
