/* ========== CSS Variables & Theme ========== */
:root {
  --el-color-primary: #5D87FF;
  --el-color-primary-light-1: #6d93ff;
  --el-color-primary-light-2: #7d9fff;
  --el-color-primary-light-3: #8dabff;
  --el-color-primary-light-4: #9db7ff;
  --el-color-primary-light-5: #aec3ff;
  --el-color-primary-light-6: #becfff;
  --el-color-primary-light-7: #cedbff;
  --el-color-primary-light-8: #dee7ff;
  --el-color-primary-light-9: #eef3ff;
  --custom-radius: 0.75rem;
  --default-bg-color: #f4f6f8;
  --default-box-color: #fff;
  --default-border: #e2e8ee;
  --default-border-dashed: #dbdfe9;
  --art-gray-100: #f9fafb;
  --art-gray-200: #f2f4f5;
  --art-gray-300: #e6eaeb;
  --art-gray-400: #dbdfe1;
  --art-gray-500: #949eb7;
  --art-gray-600: #7987a1;
  --art-gray-700: #4d5875;
  --art-gray-800: #383853;
  --art-gray-900: #323251;
  --art-hover-color: #edeff0;
  --art-active-color: #f2f4f5;
  --art-card-border: #00000014;
  --art-success: #42b883;
  --art-warning: #ff9f1c;
  --art-danger: #ff5c66;
  --art-info: #909399;
  --theme-color: var(--el-color-primary);
  --sidebar-width: 230px;
  --sidebar-collapsed-width: 64px;
  --header-height: 48px;
  --tabs-height: 40px;
  --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --default-font-family: var(--font-sans);
  --default-mono-font-family: var(--font-mono);
  --font-family: var(--font-sans);
}

/* Dark Mode */
html.dark {
  --default-bg-color: #070707;
  --default-box-color: #161618;
  --default-border: #ffffff1a;
  --art-gray-100: #110f0f;
  --art-gray-200: #17171c;
  --art-gray-300: #393946;
  --art-gray-400: #505062;
  --art-gray-500: #73738c;
  --art-gray-600: #8f8fa3;
  --art-gray-700: #ababba;
  --art-gray-800: #c7c7d1;
  --art-gray-900: #e3e3e8;
  --art-hover-color: #252530;
  --art-card-border: #ffffff14;
}

html.dark .menu-left,
html.dark .sidebar-header { background: #161618 !important; }

html.dark .sidebar-title { color: #e3e3e8 !important; }
html.dark .menu-name { color: #ababba !important; }
html.dark .menu-item:hover { background: #252530 !important; }
html.dark .menu-item.active { background: rgba(93,135,255,0.15) !important; }
html.dark .menu-item.active .menu-name { color: #5D87FF !important; }
html.dark .login-left { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important; }
html.dark .login-right { background: #161618 !important; }
html.dark .form-input { background: #252530; border-color: #363843; color: #e3e3e8; }
html.dark .metric-card { background: #161618; }
html.dark .panel { background: #161618; }
html.dark .panel-header h2 { color: #e3e3e8; }
html.dark .app-header { background: #161618; border-color: #ffffff1a; }
html.dark .tab-item { color: #ababba; }
html.dark .tab-item.active,
html.dark .tab-item:hover { color: #5D87FF; background: rgba(93,135,255,0.1); }
html.dark .table th { background: #17171c; color: #ababba; }
html.dark .table td { border-color: #ffffff1a; color: #c7c7d1; }
html.dark .table tr:hover { background: #252530; }
html.dark .metric-label,
html.dark .metric-copy strong { color: #e3e3e8; }
html.dark .agent-status-pill { background: #252530; color: #ababba; }
html.dark .top-action-btn { color: #ababba; }
html.dark .top-action-btn:hover { background: #252530; }
html.dark .search-box { border-color: #363843; }
html.dark .search-box span { color: #73738c; }
html.dark .sidebar-service { border-color: #ffffff1a; }
html.dark .sidebar-service-text small { color: #73738c; }

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: var(--font-family); background: var(--default-bg-color); color: var(--art-gray-800); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: var(--el-color-primary); }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea { outline: none; font-family: inherit; }

/* ========== Login Page ========== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--default-bg-color);
}
.login-container {
  display: flex;
  width: 900px;
  min-height: 580px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  overflow: hidden;
}
.login-left {
  width: 420px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: loginGlow 8s ease-in-out infinite alternate;
}
@keyframes loginGlow {
  0% { transform: translate(-10%, -10%) rotate(0deg); }
  100% { transform: translate(10%, 10%) rotate(5deg); }
}
.login-left-content { position: relative; z-index: 1; width: 100%; }
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}
.login-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,0.15); padding: 4px; }
.login-brand-name { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.login-welcome { margin-bottom: 48px; }
.login-welcome h1 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.login-welcome p { font-size: 14px; color: rgba(255,255,255,0.7); }
.login-illustration { margin-bottom: 48px; display: flex; justify-content: center; }
.login-footer-text { font-size: 12px; color: rgba(255,255,255,0.5); }
.login-footer-text a { color: rgba(255,255,255,0.7); margin-left: 4px; }
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form-container { width: 100%; max-width: 360px; }
.login-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--default-border);
}
.login-tab {
  padding: 8px 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--art-gray-500);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  background: none;
}
.login-tab.active {
  color: var(--el-color-primary);
  border-bottom-color: var(--el-color-primary);
}
.login-form-body { }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--art-gray-800);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--default-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--art-gray-800);
  background: #fff;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--el-color-primary); box-shadow: 0 0 0 3px rgba(93,135,255,0.1); }

/* Slider Captcha */
.slider-captcha {
  height: 44px;
  background: var(--art-gray-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}
.slider-text { font-size: 13px; color: var(--art-gray-600); z-index: 1; }
.slider-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
}
.slider-thumb {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  margin-left: 0;
  transition: margin-left 0.3s;
}
.slider-thumb::after {
  content: '→';
  font-size: 18px;
  color: var(--el-color-primary);
}
.slider-captcha:hover .slider-thumb { margin-left: 100px; }
.slider-captcha:active .slider-thumb { margin-left: calc(100% - 44px); background: var(--art-success); }
.slider-captcha:active .slider-thumb::after { content: '✓'; color: #fff; }

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--art-gray-600);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--el-color-primary);
}
.forgot-link { font-size: 13px; color: var(--el-color-primary); }
.login-btn {
  width: 100%;
  height: 44px;
  background: var(--el-color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(93,135,255,0.3);
}
.login-btn:hover { background: var(--el-color-primary-dark-1); transform: translateY(-1px); }
.login-btn:active { transform: translateY(0); }
.register-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--art-gray-500);
}
.register-link a { color: var(--el-color-primary); font-weight: 500; }
.social-login { margin-top: 28px; text-align: center; }
.social-divider {
  display: block;
  font-size: 12px;
  color: var(--art-gray-400);
  margin-bottom: 16px;
  position: relative;
}
.social-divider::before,
.social-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: var(--art-gray-300);
}
.social-divider::before { left: 0; }
.social-divider::after { right: 0; }
.social-icons { display: flex; justify-content: center; gap: 20px; }
.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--default-border);
}
.social-icon.wechat { color: #07c160; }
.social-icon.qq { color: #12b7f5; }
.social-icon:hover { background: var(--art-gray-200); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* ========== App Layout ========== */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.app-sidebar {
  flex-shrink: 0;
  z-index: 100;
}
.layout-sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  transition: width 0.25s ease;
}
.menu-left {
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--default-border);
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  min-height: 64px;
  border-bottom: 1px solid var(--default-border);
  background: #fff;
}
.sidebar-logo-wrap {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.sidebar-logo { width: 100%; height: 100%; object-fit: contain; }
.sidebar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--art-gray-800);
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-menu-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
}
.sidebar-menu-wrap::-webkit-scrollbar { width: 4px; }
.sidebar-menu-wrap::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.sidebar-menu { padding: 0 8px; }
.menu-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  margin: 2px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--art-gray-700);
  position: relative;
  gap: 0;
}
.menu-item:hover { background: var(--art-gray-200); }
.menu-item.active {
  background: rgba(93,135,255,0.1);
  color: var(--el-color-primary);
}
.menu-item.active .menu-name { color: var(--el-color-primary); font-weight: 600; }
.menu-icon-wrap {
  width: 32px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--art-gray-500);
}
.menu-item.active .menu-icon-wrap { color: var(--el-color-primary); }
.menu-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--art-gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.submenu-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--art-gray-400);
  transition: transform 0.2s;
}
.menu-item.expanded .submenu-arrow { transform: rotate(90deg); }

/* Submenu */
.has-submenu { flex-wrap: wrap; }
.submenu-list {
  width: 100%;
  padding: 4px 0 4px 32px;
  display: none;
}
.menu-item.expanded .submenu-list { display: block; }
.submenu-item {
  padding: 8px 12px;
  margin: 2px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--art-gray-600);
  transition: all 0.15s;
}
.submenu-item:hover { background: var(--art-gray-200); }
.submenu-item.active { color: var(--el-color-primary); font-weight: 500; background: rgba(93,135,255,0.08); }

/* Sidebar Service */
.sidebar-service {
  padding: 14px;
  border-top: 1px solid var(--default-border);
}
.sidebar-service-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--art-gray-600);
}
.sidebar-service-text { display: flex; flex-direction: column; }
.sidebar-service-text strong { font-size: 13px; color: var(--art-gray-800); }
.sidebar-service-text small { font-size: 11px; color: var(--art-gray-500); }
.sidebar-service-btn {
  display: block;
  width: 100%;
  padding: 8px;
  text-align: center;
  background: var(--art-gray-200);
  border-radius: 6px;
  font-size: 12px;
  color: var(--art-gray-700);
  transition: all 0.15s;
}
.sidebar-service-btn:hover { background: var(--el-color-primary); color: #fff; }

/* ========== Main Area ========== */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* Header */
.app-header {
  flex-shrink: 0;
  background: var(--default-box-color);
  border-bottom: 1px solid var(--default-border);
  z-index: 10;
}
.header-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 16px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.hamburger {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  color: var(--art-gray-600);
  transition: background 0.2s;
}
.hamburger:hover { background: var(--art-hover-color); }
.refresh-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  color: var(--art-gray-600);
  transition: background 0.2s;
  margin-left: 6px;
}
.refresh-btn:hover { background: var(--art-hover-color); }
.breadcrumb {
  display: flex;
  align-items: center;
  margin-left: 10px;
}
.breadcrumb-item {
  font-size: 13px;
  color: var(--art-gray-600);
  padding: 4px 8px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--default-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 140px;
  color: var(--art-gray-500);
}
.search-box:hover { border-color: var(--el-color-primary); }
.search-box span { font-size: 12px; color: var(--art-gray-500); }
.search-shortcut {
  font-size: 11px;
  color: var(--art-gray-400);
  border: 1px solid var(--default-border);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: auto;
}
.top-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--art-gray-600);
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}
.top-action-btn:hover { background: var(--art-hover-color); color: var(--art-gray-800); }

.agent-status-list { display: flex; gap: 6px; }
.agent-status-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
  background: var(--art-gray-200);
  color: var(--art-gray-600);
  white-space: nowrap;
}
.agent-status-pill.level { background: linear-gradient(135deg, #f59e0b22, #f9731622); color: #d97706; }
.agent-status-pill.sign.approved { background: rgba(93,135,255,0.1); color: var(--el-color-primary); }

.notice-btn {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  color: var(--art-gray-600);
  transition: background 0.2s;
}
.notice-btn:hover { background: var(--art-hover-color); }
.notice-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: var(--art-danger);
  border-radius: 50%;
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.user-avatar:hover { border-color: var(--el-color-primary); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ========== Header Tabs ========== */
.header-tabs {
  display: flex;
  align-items: center;
  height: var(--tabs-height);
  padding: 0 16px;
  border-top: 1px solid var(--default-border);
}
.tabs-scroll-wrap {
  flex: 1;
  overflow: hidden;
}
.tabs-list {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}
.tab-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--art-gray-600);
  transition: all 0.15s;
  height: 28px;
}
.tab-item:hover { background: var(--art-hover-color); }
.tab-item.active {
  background: rgba(93,135,255,0.1);
  color: var(--el-color-primary);
  font-weight: 500;
}
.tabs-actions {
  flex-shrink: 0;
  margin-left: 8px;
}
.tab-dropdown {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  color: var(--art-gray-600);
  transition: background 0.15s;
}
.tab-dropdown:hover { background: var(--art-hover-color); }

/* ========== Content Area ========== */
.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--default-bg-color);
}
.page-content {
  padding: 20px;
  max-width: 100%;
}

/* ========== Dashboard Styles ========== */
/* Notice Row */
.notice-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.notice-strip {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--default-box-color);
  border-radius: calc(var(--custom-radius) / 1.2);
  border: 1px solid var(--art-card-border);
  overflow: hidden;
  min-height: 44px;
}
.notice-icon { flex-shrink: 0; color: var(--el-color-primary); font-size: 18px; display: flex; }
.notice-label { font-size: 13px; font-weight: 600; color: var(--art-gray-800); flex-shrink: 0; white-space: nowrap; }
.notice-scroll { flex: 1; overflow: hidden; position: relative; height: 22px; }
.notice-scroll-track {
  display: flex;
  flex-direction: column;
  animation: scrollNotice 30s linear infinite;
}
@keyframes scrollNotice {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.notice-scroll-item {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--art-gray-600);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
}
.notice-scroll-item strong { color: var(--art-gray-800); font-weight: 600; }

.dashboard-mode-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--art-gray-200);
  border-radius: 8px;
  flex-shrink: 0;
}
.dashboard-mode-switch button {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s;
  color: var(--art-gray-600);
}
.dashboard-mode-switch button.active {
  background: var(--default-box-color);
  color: var(--el-color-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Metric Grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.metric-card {
  background: var(--default-box-color);
  border-radius: calc(var(--custom-radius) / 1.2);
  border: 1px solid var(--art-card-border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.metric-inner {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.metric-copy { }
.metric-label {
  font-size: 13px;
  color: var(--art-gray-600);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.metric-tip { cursor: help; opacity: 0.5; display: inline-flex; }
.metric-copy strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--art-gray-800);
  line-height: 1.2;
}
.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.metric-card.green .metric-icon { background: rgba(66,184,131,0.12); color: #42b883; }
.metric-card.blue .metric-icon { background: rgba(93,135,255,0.12); color: #5D87FF; }
.metric-card.orange .metric-icon { background: rgba(255,159,28,0.12); color: #ff9f1c; }
.metric-card.red .metric-icon { background: rgba(255,92,102,0.12); color: #ff5c66; }

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

/* Panel */
.panel {
  background: var(--default-box-color);
  border-radius: calc(var(--custom-radius) / 1.2);
  border: 1px solid var(--art-card-border);
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--art-card-border);
}
.panel-header.compact { padding: 12px 16px; }
.panel-header h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--art-gray-800);
}
.range-tabs {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: var(--art-gray-200);
  border-radius: 6px;
}
.range-tabs button {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.15s;
  color: var(--art-gray-600);
}
.range-tabs button.active {
  background: var(--default-box-color);
  color: var(--el-color-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.range-tabs.compact-tabs button { padding: 3px 10px; font-size: 11px; }

/* Sales Panel */
.chart-legend {
  display: flex;
  gap: 20px;
  padding: 12px 20px;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--art-gray-600);
}
.chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.legend-green { background: #42b883; }
.legend-orange { background: #ff9f1c; }
.legend-blue { background: #3478ff; }
.chart-wrap {
  padding: 0 20px 12px;
  height: 232px;
}
.trend-chart {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(93,135,255,0.03), transparent);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  padding: 20px 0 0;
  gap: 8px;
}
.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 3px;
}
.chart-bar {
  width: 24%;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height 0.5s ease;
  position: relative;
}
.chart-bar.green { background: #42b883; }
.chart-bar.orange { background: #ff9f1c; }
.chart-bar.blue { background: #3478ff; }
.chart-bar-label {
  font-size: 10px;
  color: var(--art-gray-500);
  margin-top: 6px;
  white-space: nowrap;
}

.sales-total-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--art-card-border);
}
.sales-total-grid > div {
  padding: 14px;
  text-align: center;
  border-right: 1px solid var(--art-card-border);
}
.sales-total-grid > div:last-child { border-right: none; }
.sales-total-grid span {
  display: block;
  font-size: 11px;
  color: var(--art-gray-500);
  margin-bottom: 4px;
}
.sales-total-grid strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--art-gray-800);
}

/* Activity Grid */
.activity-grid { padding: 12px 16px; }
.activity-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--art-gray-100);
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  text-align: left;
}
.activity-card:hover { background: var(--art-gray-200); }
.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.activity-icon.blue { background: rgba(93,135,255,0.1); color: #5D87FF; }
.activity-info { flex: 1; }
.activity-info strong { display: block; font-size: 13px; font-weight: 500; color: var(--art-gray-800); }
.activity-info small { font-size: 11px; color: var(--art-gray-500); }
.activity-progress {
  width: 40px;
  height: 4px;
  background: var(--art-gray-300);
  border-radius: 2px;
  overflow: hidden;
}
.activity-progress i {
  display: block;
  height: 100%;
  background: var(--el-color-primary);
  border-radius: 2px;
}

/* Announcement List */
.announcement-list { padding: 4px 0; }
.announcement-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.1s;
  font-size: 13px;
}
.announcement-row:hover { background: var(--art-gray-100); }
.announcement-row .latest-tag {
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 500;
  border-radius: 4px;
  background: rgba(93,135,255,0.1);
  color: var(--el-color-primary);
  flex-shrink: 0;
}
.announcement-row time {
  font-size: 11px;
  color: var(--art-gray-500);
  flex-shrink: 0;
}
.announcement-row span { flex: 1; color: var(--art-gray-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announcement-row em {
  font-style: normal;
  padding: 1px 6px;
  font-size: 10px;
  border-radius: 4px;
  flex-shrink: 0;
}
.announcement-row em.important { background: rgba(255,92,102,0.1); color: #ff5c66; }
.link-button {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--art-gray-500);
  transition: color 0.15s;
}
.link-button:hover { color: var(--el-color-primary); }

/* ========== Side Column ========== */
.side-column { min-width: 0; }

/* Order Status Panel */
.order-status-summary { padding: 16px; }
.order-status-top {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}
.order-donut {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.order-donut-center {
  width: 70px;
  height: 70px;
  background: var(--default-box-color);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.order-donut-center strong { font-size: 18px; font-weight: 700; color: var(--art-gray-800); }
.order-donut-center span { font-size: 10px; color: var(--art-gray-500); }
.order-status-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.order-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.order-status-item:hover { background: var(--art-gray-100); }
.order-status-item span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--art-gray-600);
}
.order-status-item span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-color);
}
.order-status-item strong { font-size: 13px; font-weight: 600; color: var(--art-gray-800); }
.order-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.order-status-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: var(--art-gray-100);
  cursor: pointer;
  transition: background 0.1s;
  border: none;
}
.order-status-card:hover { background: var(--art-gray-200); }
.order-status-card span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--art-gray-500);
}
.order-status-card span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-color);
}
.order-status-card strong { font-size: 16px; font-weight: 700; color: var(--art-gray-800); }

/* Account Panel */
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px 16px;
}
.account-card {
  padding: 14px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.account-card span { display: block; font-size: 11px; margin-bottom: 6px; }
.account-card strong { font-size: 17px; font-weight: 700; display: block; }
.account-card i {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 28px;
  opacity: 0.15;
}
.account-card.blue { background: rgba(93,135,255,0.06); }
.account-card.blue span { color: rgba(93,135,255,0.7); }
.account-card.blue strong { color: #5D87FF; }
.account-card.green { background: rgba(66,184,131,0.06); }
.account-card.green span { color: rgba(66,184,131,0.7); }
.account-card.green strong { color: #42b883; }
.account-card.purple { background: rgba(139,92,246,0.06); }
.account-card.purple span { color: rgba(139,92,246,0.7); }
.account-card.purple strong { color: #8b5cf6; }
.account-card.orange { background: rgba(255,159,28,0.06); }
.account-card.orange span { color: rgba(255,159,28,0.7); }
.account-card.orange strong { color: #ff9f1c; }

/* Todo Panel */
.todo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 16px;
  color: var(--art-success);
  font-size: 36px;
}
.todo-empty span { font-size: 13px; color: var(--art-gray-500); }

/* Action Grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px 16px;
}
.action-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}
.action-grid button span { font-size: 22px; }
.action-grid button strong { font-size: 12px; font-weight: 500; }
.action-grid button.blue { background: rgba(93,135,255,0.08); color: #5D87FF; }
.action-grid button.blue:hover { background: rgba(93,135,255,0.15); }
.action-grid button.green { background: rgba(66,184,131,0.08); color: #42b883; }
.action-grid button.green:hover { background: rgba(66,184,131,0.15); }
.action-grid button.orange { background: rgba(255,159,28,0.08); color: #ff9f1c; }
.action-grid button.orange:hover { background: rgba(255,159,28,0.15); }
.action-grid button.purple { background: rgba(139,92,246,0.08); color: #8b5cf6; }
.action-grid button.purple:hover { background: rgba(139,92,246,0.15); }

/* ========== Table ========== */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--art-gray-600);
  background: var(--art-gray-100);
  border-bottom: 1px solid var(--default-border);
  white-space: nowrap;
  font-size: 12px;
}
.table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--art-card-border);
  color: var(--art-gray-700);
}
.table tr:hover { background: var(--art-gray-100); }
.table .status-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 4px;
  font-weight: 500;
}
.table .status-tag.success { background: rgba(66,184,131,0.1); color: #42b883; }
.table .status-tag.danger { background: rgba(255,92,102,0.1); color: #ff5c66; }
.table .status-tag.warning { background: rgba(255,159,28,0.1); color: #ff9f1c; }
.table .status-tag.info { background: rgba(93,135,255,0.1); color: #5D87FF; }
.table .action-link {
  color: var(--el-color-primary);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.1s;
}
.table .action-link:hover { background: rgba(93,135,255,0.1); }
.table .action-link.warning { color: #ff9f1c; }
.table .action-link.warning:hover { background: rgba(255,159,28,0.1); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 13px;
}
.pagination .page-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--default-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.1s;
  color: var(--art-gray-600);
  font-size: 12px;
  background: var(--default-box-color);
}
.pagination .page-btn:hover,
.pagination .page-btn.active { border-color: var(--el-color-primary); color: var(--el-color-primary); }
.pagination .page-info { color: var(--art-gray-500); font-size: 12px; }

/* ========== Search/Filter Bar ========== */
.toolbar-form {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-group label {
  font-size: 12px;
  color: var(--art-gray-600);
  flex-shrink: 0;
  white-space: nowrap;
}
.filter-input {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--default-border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--default-box-color);
  color: var(--art-gray-700);
  min-width: 140px;
}
.filter-input:focus { border-color: var(--el-color-primary); }
.filter-select {
  height: 34px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--default-border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--default-box-color);
  color: var(--art-gray-700);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23949eb7' d='m12 15l-5-5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 120px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}
.btn-primary { background: var(--el-color-primary); color: #fff; }
.btn-primary:hover { background: var(--el-color-primary-dark-1); }
.btn-default { background: var(--default-box-color); color: var(--art-gray-700); border: 1px solid var(--default-border); }
.btn-default:hover { border-color: var(--el-color-primary); color: var(--el-color-primary); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-link { padding: 0 4px; color: var(--el-color-primary); font-size: 12px; background: none; }
.btn-link:hover { text-decoration: underline; }

/* ========== Card ========== */
.main-card {
  background: var(--default-box-color);
  border-radius: calc(var(--custom-radius) / 1.2);
  border: 1px solid var(--art-card-border);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--art-card-border);
}
.card-body { padding: 20px; }

/* ========== Notice Panel (Dropdown) ========== */
.notice-panel {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 360px;
  max-height: 520px;
  background: var(--default-box-color);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--default-border);
  z-index: 1000;
  display: none;
  overflow: hidden;
}
.notice-panel.show { display: block; }
.notice-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--art-gray-800);
}
.mark-read { font-size: 12px; color: var(--art-gray-500); cursor: pointer; font-weight: 400; }
.notice-tabs {
  display: flex;
  padding: 0 16px;
  border-bottom: 1px solid var(--art-card-border);
}
.notice-tab {
  padding: 8px 0 10px;
  margin-right: 20px;
  font-size: 13px;
  color: var(--art-gray-600);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.notice-tab.active { color: var(--el-color-primary); border-bottom-color: var(--el-color-primary); }
.notice-tab-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--art-danger);
}
.notice-list { max-height: 320px; overflow-y: auto; }
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.1s;
}
.notice-item:hover { background: var(--art-gray-100); }
.notice-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notice-icon-box.success { background: rgba(66,184,131,0.1); color: #42b883; }
.notice-icon-box.bell { background: rgba(93,135,255,0.1); color: #5D87FF; }
.notice-item-body { flex: 1; }
.notice-item-body h4 { font-size: 13px; font-weight: 500; color: var(--art-gray-800); margin-bottom: 4px; }
.notice-item-body p { font-size: 11px; color: var(--art-gray-500); }
.notice-footer { padding: 10px 16px; border-top: 1px solid var(--art-card-border); }
.view-all-btn {
  width: 100%;
  padding: 8px;
  font-size: 13px;
  color: var(--art-gray-600);
  border-radius: 6px;
  transition: background 0.1s;
}
.view-all-btn:hover { background: var(--art-gray-100); }

/* ========== User Menu Popup ========== */
.user-menu-popup {
  position: fixed;
  top: 56px;
  right: 16px;
  width: 270px;
  background: var(--default-box-color);
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--default-border);
  z-index: 1000;
  display: none;
  overflow: hidden;
}
.user-menu-popup.show { display: block; }
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  cursor: pointer;
  transition: background 0.1s;
}
.user-profile:hover { background: var(--art-gray-100); }
.user-profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.user-profile div { flex: 1; }
.user-profile strong { display: block; font-size: 13px; font-weight: 600; color: var(--art-gray-800); }
.user-profile small { font-size: 11px; color: var(--art-gray-500); }
.user-profile svg { color: var(--art-gray-400); flex-shrink: 0; }
.user-menu-list { border-top: 1px solid var(--art-card-border); }
.user-menu-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--art-gray-700);
  transition: background 0.1s;
  text-align: left;
}
.user-menu-list button:hover { background: var(--art-gray-100); }
.user-menu-list button svg:first-child { color: var(--art-gray-500); flex-shrink: 0; }
.user-menu-list button span { flex: 1; }
.row-arrow { color: var(--art-gray-400) !important; }
.status-badge {
  font-style: normal;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.status-badge.approved { background: rgba(93,135,255,0.1); color: var(--el-color-primary); }
.user-menu-footer { border-top: 1px solid var(--art-card-border); padding: 8px 14px; }
.logout-btn {
  width: 100%;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--art-gray-500);
  border-radius: 6px;
  transition: all 0.1s;
}
.logout-btn:hover { background: rgba(255,92,102,0.1); color: #ff5c66; }

/* ========== Overlay ========== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: none;
}
.overlay.show { display: block; }

/* ========== API Page Styles ========== */
.agent-api-page { padding: 0; }
.api-section { }
.settings-body { padding: 20px; }
.api-credential-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.credential-row {
  padding: 12px 16px;
  background: var(--art-gray-100);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.credential-row span { font-size: 12px; color: var(--art-gray-500); }
.credential-row code {
  font-size: 13px;
  color: var(--art-gray-800);
  word-break: break-all;
}
.credential-value {
  display: flex;
  align-items: center;
  gap: 8px;
}
.credential-link { font-size: 13px; }
.api-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stats-row { padding: 16px; }
.stat-card {
  padding: 12px;
  background: var(--art-gray-100);
  border-radius: 8px;
  text-align: center;
}
.stat-card span { display: block; font-size: 12px; color: var(--art-gray-500); margin-bottom: 6px; }
.stat-card strong { font-size: 20px; font-weight: 700; color: var(--art-gray-800); }

/* ========== Profile Page ========== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, var(--el-color-primary), var(--el-color-primary-dark-2));
  border-radius: 12px;
  color: #fff;
  margin-bottom: 20px;
}
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.3); object-fit: cover; }
.profile-info h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.profile-info p { font-size: 13px; opacity: 0.8; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--art-gray-100);
  border-radius: 8px;
}
.info-item label { font-size: 12px; color: var(--art-gray-500); }
.info-item span { font-size: 14px; color: var(--art-gray-800); font-weight: 500; }

/* ========== Realname Verification ========== */
.idcard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.idcard-upload {
  padding: 40px;
  border: 2px dashed var(--default-border-dashed);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.idcard-upload:hover { border-color: var(--el-color-primary); background: rgba(93,135,255,0.03); }
.idcard-upload svg { font-size: 48px; color: var(--art-gray-400); margin-bottom: 12px; }
.idcard-upload p { font-size: 13px; color: var(--art-gray-600); }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .login-container { width: 96%; flex-direction: column; min-height: auto; }
  .login-left { width: 100%; padding: 32px; min-height: 200px; }
  .login-right { padding: 32px; }
}
@media (max-width: 640px) {
  .metric-grid { grid-template-columns: 1fr; }
  .page-content { padding: 12px; }
  .header-tabs { display: none; }
  .header-right .search-box,
  .header-right .top-action-btn:not(:first-child) { display: none; }
  .agent-status-list { display: none; }
  .notice-row { flex-direction: column; }
  .dashboard-mode-switch { width: 100%; }
  .dashboard-mode-switch button { flex: 1; text-align: center; }
  .sales-total-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .idcard-grid { grid-template-columns: 1fr; }
  .api-credential-box { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
}

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--default-box-color);
  border-radius: 12px;
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--art-card-border);
}
.modal-header h3 { font-size: 16px; font-weight: 600; color: var(--art-gray-800); }
.modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  color: var(--art-gray-500);
}
.modal-close:hover { background: var(--art-gray-200); }
.modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(85vh - 120px);
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--art-card-border);
}
