:root{--primary:#1677ff;--primary-dark:#0958d9;--page-bg:#f5f7fa;--card:#fff;--border:#e5e7eb;--text:#172033;--muted:#6b7280;--sidebar-width:244px;--header-height:68px;--shadow:0 4px 18px rgba(31,41,55,.06);--radius:12px}
*{box-sizing:border-box}
body{margin:0;background:var(--page-bg);color:var(--text);font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:14px}
a{color:var(--primary);text-decoration:none}a:hover{color:var(--primary-dark)}
.app-layout{min-height:100vh}.app-sidebar{position:fixed;z-index:1040;top:0;bottom:0;left:0;width:var(--sidebar-width);padding:18px 12px;background:#fff;border-right:1px solid var(--border);transition:width .2s ease,transform .2s ease;overflow-x:hidden}.brand{display:flex;align-items:center;gap:11px;height:54px;margin:0 8px 18px;color:#172033;font-size:18px;font-weight:700;white-space:nowrap}.brand:hover{color:#172033}.brand-mark{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;color:#fff;background:linear-gradient(135deg,#1677ff,#69a7ff);border-radius:9px;font-size:15px}.brand-logo{display:block;flex:0 0 40px;width:40px;height:40px;object-fit:contain}.system-logo{width:50px;height:50px;object-fit:contain;display:block;flex:0 0 50px}.brand-text{overflow:hidden}.sidebar-nav{display:flex;flex-direction:column;gap:4px}.sidebar-link{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:9px;color:#475569;font-weight:600;white-space:nowrap;transition:background .15s ease,color .15s ease}.sidebar-link:hover{color:var(--primary);background:#f3f8ff}.sidebar-link.is-active{color:var(--primary);background:#eaf3ff}.nav-icon{display:inline-grid;place-items:center;flex:0 0 20px;width:20px;font-size:19px;line-height:1}.nav-label{overflow:hidden}.sidebar-divider{height:1px;margin:12px 8px 8px;background:var(--border)}.sidebar-caption{padding:0 12px 5px;color:#9ca3af;font-size:11px;font-weight:700;letter-spacing:.08em}
.app-main{min-height:100vh;margin-left:var(--sidebar-width);transition:margin-left .2s ease}.app-header{position:sticky;z-index:1030;top:0;display:flex;align-items:center;height:var(--header-height);padding:0 28px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--border);backdrop-filter:blur(12px)}.header-spacer{flex:1}.icon-button,.notification-indicator{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:#475569;font-size:20px}.icon-button:hover{background:#f3f4f6}.notification-indicator{margin-right:14px;font-size:22px}.user-menu{display:flex;align-items:center;gap:8px;padding:4px 6px;border:0;border-radius:8px;background:transparent;color:var(--text)}.user-menu:hover{background:#f3f4f6}.user-avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#eaf3ff;color:var(--primary);font-size:13px;font-weight:700}.user-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.user-caret{color:#94a3b8}.user-dropdown{min-width:180px;padding:7px;border-color:var(--border);border-radius:10px;box-shadow:var(--shadow)}.user-dropdown .dropdown-header{color:#94a3b8;font-size:12px}.user-dropdown .dropdown-item{border-radius:6px;font-size:14px}.content-shell{max-width:1780px;margin:0 auto;padding:24px}
.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.page-heading h1{margin:0;color:#172033;font-size:24px;font-weight:700;line-height:1.35}.page-eyebrow{margin:0 0 6px;color:var(--primary);font-size:12px;font-weight:700;letter-spacing:.06em}.page-description{margin:7px 0 0;color:var(--muted);font-size:14px}.page-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.page-actions form{margin:0}.btn{min-height:34px;border-radius:7px;font-size:14px;font-weight:600}.btn-primary{background:var(--primary);border-color:var(--primary)}.btn-primary:hover,.btn-primary:focus{background:var(--primary-dark);border-color:var(--primary-dark)}.btn-outline-secondary{color:#475569;border-color:#d7dce3}.btn-outline-secondary:hover{background:#f7f9fc;color:#334155;border-color:#cbd2dc}.btn-light{background:#f7f9fc;border-color:#edf0f4;color:#475569}.btn-light:hover{background:#eff3f8;color:#334155}.app-alert{border:0;border-radius:10px;box-shadow:var(--shadow)}
.stats-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin-bottom:24px}.summary-stats{grid-template-columns:repeat(3,minmax(0,1fr));max-width:960px}.metric-card{display:flex;align-items:center;gap:14px;min-width:0;min-height:112px;padding:20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow)}.metric-card p{margin:0 0 7px;color:var(--muted);font-size:13px;white-space:nowrap}.metric-card strong{display:block;overflow:hidden;color:var(--text);font-size:22px;font-weight:700;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.metric-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:11px;font-size:21px;font-weight:700}.metric-blue .metric-icon{background:#eaf3ff;color:#1677ff}.metric-green .metric-icon{background:#e8fbf2;color:#12a76a}.metric-purple .metric-icon{background:#f1ebff;color:#7c3aed}
.app-card{margin-bottom:24px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow)}.card-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--border)}.card-toolbar h2{margin:0;color:var(--text);font-size:16px;font-weight:700}.card-toolbar p{margin:5px 0 0;color:var(--muted);font-size:13px}.toolbar-meta{color:var(--muted);font-size:13px;white-space:nowrap}.filter-card{overflow:hidden}.filter-toolbar{border-bottom:0}.filter-form{padding:0 24px 24px}.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 18px}.filter-field label{display:block;margin:0 0 7px;color:#334155;font-size:13px;font-weight:600}.form-control,.form-select{min-height:38px;border-color:#dce1e8;border-radius:7px;color:#334155;font-size:14px}.form-control:focus,.form-select:focus{border-color:#8dbbff;box-shadow:0 0 0 .2rem rgba(22,119,255,.12)}.filter-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.table-card{overflow:hidden}.data-table-wrap{max-height:calc(100vh - 280px);margin:0;overflow:auto}.compact-table-wrap{max-height:440px}.data-table{min-width:1320px;border-collapse:separate;border-spacing:0}.data-table thead th{position:sticky;z-index:3;top:0;padding:0 14px;height:48px;border-bottom:1px solid var(--border);background:#f8fafc;color:#64748b;font-size:12px;font-weight:700;white-space:nowrap}.data-table tbody td{height:56px;padding:6px 14px;border-color:#edf0f3;color:#334155;font-size:13px;vertical-align:middle;white-space:nowrap}.data-table.table-hover>tbody>tr:hover>*{background:#f5f9ff;color:#1e3a5f}.data-table .photo-column{position:sticky;z-index:2;left:0;min-width:86px;width:86px;background:#fff}.data-table thead .photo-column{z-index:5;background:#f8fafc}.data-table.table-hover>tbody>tr:hover>.photo-column{background:#f5f9ff}.data-table .action-column{position:sticky;z-index:2;right:0;min-width:185px;background:#fff;box-shadow:-8px 0 12px -12px rgba(15,23,42,.3)}.data-table thead .action-column{z-index:5;background:#f8fafc}.data-table.table-hover>tbody>tr:hover>.action-column{background:#f5f9ff}.thumb{display:block;width:38px;height:38px;border:1px solid #edf0f3;border-radius:7px;object-fit:cover}.empty-photo{display:grid;place-items:center;width:38px;height:38px;border-radius:7px;background:#f3f4f6;color:#9ca3af}.number-cell{font-variant-numeric:tabular-nums}.date-cell{font-variant-numeric:tabular-nums;color:#475569}.table-link{color:var(--primary)}.table-actions{display:flex;align-items:center;gap:6px}.table-actions form{margin:0}.table-actions .btn{min-height:29px;padding:3px 9px;font-size:12px;white-space:nowrap}.empty-state{padding:42px 24px;color:#9ca3af;text-align:center}.pagination-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid var(--border)}.pagination-summary{color:var(--muted);font-size:13px}.pagination{gap:4px}.pagination .page-link{min-width:32px;border:0;border-radius:6px;color:#475569;text-align:center}.pagination .page-item.active .page-link{background:var(--primary)}.pagination .page-link:hover{background:#eaf3ff;color:var(--primary)}
.login-body{min-height:100vh;background:radial-gradient(circle at top right,#e8f2ff 0,transparent 38%),#f5f7fa}.login-shell{display:grid;min-height:100vh;padding:24px;place-items:center}.login-card{width:100%;max-width:430px;border:1px solid var(--border);border-radius:16px;box-shadow:0 16px 50px rgba(31,41,55,.12)}.login-card .card-body{padding:34px!important}.login-alert{position:fixed;z-index:1060;top:20px;left:50%;width:min(430px,calc(100% - 32px));transform:translateX(-50%)}
.upload-preview{display:block;width:120px;height:120px;margin-top:10px;border:1px solid var(--border);border-radius:10px;object-fit:cover}.detail-image{max-width:100%;max-height:340px;border:1px solid var(--border);border-radius:10px}.detail-list dt{color:var(--muted);font-weight:500}.detail-list dd{color:#334155;font-weight:600}.card{border-color:var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.card-header,.card-footer{border-color:var(--border)}
.form-card{overflow:hidden}.form-section-card{overflow:hidden}.profile-form .form-section-card{margin-bottom:16px}.profile-form input:not([type=checkbox]),.profile-form select,.profile-form textarea{display:block;width:100%;min-height:38px;padding:.375rem .75rem;border:1px solid #dce1e8;border-radius:7px;background:#fff;color:#334155;font-size:14px;line-height:1.5}.profile-form textarea{min-height:88px}.profile-form input[type=file]{padding:.28rem .55rem}.profile-form input:focus,.profile-form select:focus,.profile-form textarea:focus{border-color:#8dbbff;outline:0;box-shadow:0 0 0 .2rem rgba(22,119,255,.12)}.profile-form #baby-age-field.is-disabled{opacity:.58}.profile-form #baby-age-field.is-disabled input{background:#f4f6f8;cursor:not-allowed}.form-meta{margin-top:24px;padding-top:16px;border-top:1px solid var(--border);color:var(--muted);font-size:13px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}.notes-content{min-height:72px;color:#475569;line-height:1.75}.notes-content p:last-child{margin-bottom:0}.detail-notes-label{margin-bottom:8px;color:var(--muted);font-size:13px;font-weight:700}.role-badge,.status-badge{display:inline-flex;align-items:center;min-height:23px;padding:2px 8px;border-radius:20px;background:#f1f5f9;color:#64748b;font-size:12px;font-weight:700}.role-admin{background:#eaf3ff;color:var(--primary)}.status-active{background:#e8fbf2;color:#14845d}.log-details summary{cursor:pointer;color:var(--primary);font-weight:600}.log-details pre{max-width:360px;margin:8px 0 0;padding:8px;border-radius:6px;background:#f8fafc;color:#475569;font-size:11px;white-space:pre-wrap}.filter-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.import-stats{grid-template-columns:repeat(3,minmax(0,1fr));max-width:860px}.page-bottom-actions{justify-content:flex-start;margin-top:0}.page-bottom-actions form{margin:0}.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:28px}.login-brand h1{margin:0;color:#172033;font-size:21px;font-weight:700}.login-brand p{margin:4px 0 0;color:var(--muted);font-size:13px}
.form-card input:not([type=checkbox]),.form-card select,.form-card textarea{display:block;width:100%;min-height:38px;padding:.375rem .75rem;border:1px solid #dce1e8;border-radius:7px;background:#fff;color:#334155;font-size:14px;line-height:1.5}.form-card textarea{min-height:88px}.form-card input[type=file]{padding:.28rem .55rem}.form-card input[type=checkbox]{width:1em;height:1em;margin-top:.28em;vertical-align:top}.form-card input:focus,.form-card select:focus,.form-card textarea:focus{border-color:#8dbbff;outline:0;box-shadow:0 0 0 .2rem rgba(22,119,255,.12)}
body.sidebar-collapsed{--sidebar-width:72px}body.sidebar-collapsed .app-sidebar{padding-right:10px;padding-left:10px}body.sidebar-collapsed .brand{margin-left:10px;margin-right:10px}body.sidebar-collapsed .brand-text,body.sidebar-collapsed .nav-label,body.sidebar-collapsed .sidebar-caption,body.sidebar-collapsed .sidebar-divider{display:none}body.sidebar-collapsed .sidebar-link{justify-content:center;padding:0}body.sidebar-collapsed .sidebar-link .nav-icon{font-size:20px}
@media(max-width:1280px){.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1024px){.content-shell{padding:20px}.app-header{padding:0 20px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:768px){.app-sidebar{width:244px;transform:translateX(-100%);box-shadow:8px 0 32px rgba(15,23,42,.14)}.app-main{margin-left:0}.app-header{height:60px;padding:0 14px}.content-shell{padding:16px}.app-sidebar.mobile-open{transform:translateX(0)}body.sidebar-collapsed{--sidebar-width:244px}body.sidebar-collapsed .app-sidebar{padding:18px 12px}body.sidebar-collapsed .brand{margin:0 8px 22px}body.sidebar-collapsed .brand-text,body.sidebar-collapsed .nav-label,body.sidebar-collapsed .sidebar-caption,body.sidebar-collapsed .sidebar-divider{display:initial}body.sidebar-collapsed .sidebar-link{justify-content:flex-start;padding:0 12px}.page-heading{flex-direction:column;margin-bottom:20px}.page-actions{justify-content:flex-start}.page-heading h1{font-size:22px}.stats-grid{gap:12px;margin-bottom:20px}.metric-card{min-height:98px;padding:16px}.metric-card strong{font-size:19px}.card-toolbar{align-items:flex-start;padding:18px 16px}.toolbar-meta{display:none}.filter-form{padding:0 16px 18px}.filter-grid{gap:14px}.filter-actions{margin-top:18px}.pagination-bar{align-items:flex-start;flex-direction:column;padding:14px 16px}.data-table-wrap{max-height:calc(100vh - 240px)}}@media(max-width:520px){.user-name,.user-caret,.notification-indicator{display:none}.page-actions{width:100%}.page-actions .btn{flex:1}.stats-grid{grid-template-columns:1fr}.filter-grid{grid-template-columns:1fr}.filter-actions .btn{flex:1}.metric-card{min-height:88px}.data-table{min-width:1160px}}

/* Staging enterprise layout refresh: visual rules only; no business or permission logic. */
:root {
  --sidebar-width: 232px;
  --header-height: 60px;
  --radius: 8px;
  --page-bg: #f5f7fa;
  --card: #fff;
  --border: #e5e7eb;
  --shadow: 0 3px 12px rgba(15, 23, 42, .05);
}

body.app-body { min-width: 320px; }
.app-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1050;
  height: var(--header-height);
  padding: 0 24px 0 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .08);
}
.header-brand {
  display: flex;
  align-items: center;
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  height: var(--header-height);
  gap: 8px;
  padding: 5px 22px;
  color: var(--text);
  border-right: 1px solid var(--border);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  transition: width .2s ease, flex-basis .2s ease, padding .2s ease;
}
.header-brand:hover { color: var(--text); }
.system-logo {
  display: block;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.header-brand-text { overflow: hidden; text-overflow: ellipsis; }
.sidebar-toggle { margin-left: 14px; }
.header-spacer { min-width: 12px; }
.notification-indicator { margin-right: 8px; color: #64748b; }
.header-role {
  margin-right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f0f6ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.header-logout { margin: 0 0 0 8px; }
.header-logout .btn { min-height: 32px; padding: 4px 11px; }
.app-sidebar {
  top: var(--header-height);
  z-index: 1040;
  width: var(--sidebar-width);
  padding: 16px 12px;
  background: #fff;
  box-shadow: none;
}
.sidebar-nav { gap: 4px; }
.sidebar-link {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 7px;
  color: #475569;
  font-weight: 600;
}
.sidebar-link.is-active { color: var(--primary); background: #eaf3ff; }
.sidebar-divider { margin: 14px 8px 10px; }
.sidebar-caption { padding-bottom: 7px; color: #94a3b8; }
.app-main {
  margin-left: var(--sidebar-width);
  padding-top: var(--header-height);
  background: var(--page-bg);
}
.content-shell { max-width: 1840px; padding: 24px; }
.page-heading { margin-bottom: 20px; }
.page-heading h1 { font-size: 25px; letter-spacing: -.01em; }
.page-description { max-width: 720px; }
.page-actions { gap: 8px; }
.btn { min-height: 36px; border-radius: 7px; padding: 6px 13px; }
.btn-sm { min-height: 30px; }
.app-card { margin-bottom: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.card-toolbar { padding: 18px 22px; }
.card-toolbar h2 { font-size: 16px; }
.summary-stats,
.dashboard-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
.stats-grid { gap: 16px; margin-bottom: 20px; }
.metric-card { min-height: 112px; padding: 20px; border-radius: var(--radius); }
.metric-card p { margin-bottom: 8px; }
.metric-card strong { font-size: 25px; }
.metric-orange .metric-icon { background: #fff3e6; color: #f08a24; }
.filter-card { margin-bottom: 20px; }
.filter-form { padding: 2px 22px 22px; }
.filter-grid { gap: 16px; }
.filter-field label { margin-bottom: 6px; }
.filter-actions { margin-top: 20px; }
.table-card { border-radius: var(--radius); }
.data-table-wrap { max-height: calc(100vh - 258px); }
.data-table { min-width: 920px; }
.data-table thead th { height: 48px; background: #f8fafc; }
.data-table tbody td { height: 56px; }
.data-table .action-column { min-width: 176px; }
.data-table .photo-column { min-width: 76px; width: 76px; }
.data-table.table-hover > tbody > tr:hover > * { background: #f3f8ff; }
.data-table.table-hover > tbody > tr:hover > .photo-column,
.data-table.table-hover > tbody > tr:hover > .action-column { background: #f3f8ff; }
.thumb { width: 38px; height: 38px; border-radius: 50%; }
.table-actions { gap: 6px; }
.table-actions .btn { min-width: 48px; }
.level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.level-excellent { background: #e8fbf2; color: #14845d; }
.level-good { background: #eaf3ff; color: #1677ff; }
.level-normal { background: #fff7df; color: #b7791f; }
.level-needs_improvement { background: #fff0f0; color: #d14343; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.detail-grid > .app-card { margin-bottom: 0; }
.detail-card-wide { grid-column: 1 / -1; }
.detail-basic-body { display: flex; gap: 26px; align-items: flex-start; }
.detail-avatar-block {
  display: flex;
  flex: 0 0 132px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.detail-avatar {
  display: block;
  width: 112px;
  height: 112px;
  border: 1px solid var(--border);
  border-radius: 10px;
  object-fit: cover;
}
.detail-avatar-empty { display: grid; place-items: center; background: #f8fafc; color: #94a3b8; }
.detail-list-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
}
.detail-list-grid > div,
.detail-list-stacked > div { min-width: 0; }
.detail-list-grid dt,
.detail-list-stacked dt { margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.detail-list-grid dd,
.detail-list-stacked dd { margin: 0; overflow-wrap: anywhere; color: #334155; font-size: 14px; font-weight: 600; }
.detail-list-stacked { display: grid; gap: 18px; }
.detail-list-evaluation { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.media-card .card-body { min-height: 166px; }
.profile-form { padding-bottom: 64px; }
.profile-form .form-section-card { margin-bottom: 16px; }
.form-section-card .card-toolbar { padding: 16px 22px; }
.form-section-card .card-body { padding: 22px !important; }
.form-actions {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -3px 16px rgba(15, 23, 42, .08);
  backdrop-filter: blur(8px);
}
body.sidebar-collapsed .header-brand { flex-basis: var(--sidebar-width); width: var(--sidebar-width); padding: 5px 11px; justify-content: center; }
body.sidebar-collapsed .header-brand-text { display: none; }
body.sidebar-collapsed .app-sidebar { padding-right: 10px; padding-left: 10px; }
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .sidebar-caption,
body.sidebar-collapsed .sidebar-divider { display: none; }
body.sidebar-collapsed .sidebar-link { justify-content: center; padding: 0; }

@media (max-width: 1280px) {
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-list-evaluation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .content-shell { padding: 20px; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .app-header { padding-right: 12px; }
  .header-brand { flex-basis: auto; width: auto; padding: 5px 10px; border-right: 0; }
  .header-brand-text { display: none; }
  .system-logo { flex-basis: 46px; width: 46px; height: 46px; }
  .sidebar-toggle { margin-left: 2px; }
  .app-sidebar { top: var(--header-height); width: 232px; transform: translateX(-100%); box-shadow: 8px 0 32px rgba(15, 23, 42, .14); }
  .app-sidebar.mobile-open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .header-role { display: none; }
  .content-shell { padding: 16px; }
  .page-heading { gap: 14px; }
  .summary-stats,
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; gap: 16px; }
  .detail-card-wide { grid-column: auto; }
  .detail-basic-body { gap: 18px; }
  .detail-list-evaluation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-table-wrap { max-height: none; }
  .data-table { min-width: 920px; }
}
@media (max-width: 520px) {
  .header-logout { display: none; }
  .notification-indicator { display: none; }
  .summary-stats,
  .dashboard-stats,
  .detail-list-grid,
  .detail-list-evaluation,
  .filter-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 92px; }
  .detail-basic-body { flex-direction: column; }
  .form-actions { bottom: 8px; padding: 12px; }
}

/* SaaS design system — Staging only */
:root {
  --saas-navy: #10264d;
  --saas-ink: #15213b;
  --saas-blue: #2e5bff;
  --saas-blue-dark: #2046d8;
  --saas-bg: #f5f7fb;
  --saas-card: #ffffff;
  --saas-line: #e8edf5;
  --saas-muted: #75829a;
  --sidebar-width: 248px;
  --header-height: 68px;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(20, 41, 79, .055);
}

html { scroll-behavior: smooth; }
body { background: var(--saas-bg); color: var(--saas-ink); font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
body.app-body { background: var(--saas-bg); }
body::selection { background: #dbe6ff; color: var(--saas-navy); }
.app-header {
  height: var(--header-height);
  padding: 0 28px 0 0;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(221, 229, 241, .9);
  box-shadow: 0 2px 16px rgba(16, 38, 77, .025);
  backdrop-filter: blur(18px);
}
.header-brand { flex-basis: var(--sidebar-width); width: var(--sidebar-width); height: var(--header-height); gap: 9px; padding: 7px 24px; color: var(--saas-navy); border-right: 1px solid var(--saas-line); font-size: 18px; letter-spacing: -.03em; }
.header-brand:hover { color: var(--saas-navy); }
.system-logo { flex-basis: 50px; width: 50px; height: 50px; object-fit: contain; }
.header-brand-text { font-weight: 750; }
.sidebar-toggle { width: 38px; height: 38px; margin-left: 18px; border: 1px solid transparent; color: #4b5b76; font-size: 20px; }
.sidebar-toggle:hover { border-color: #dbe4f1; background: #f6f8fc; }
.top-page-context { display: flex; flex-direction: column; gap: 1px; min-width: 148px; margin-left: 12px; line-height: 1.2; }
.top-page-context strong { color: var(--saas-ink); font-size: 14px; font-weight: 700; }
.top-page-overline, .card-kicker, .login-kicker { color: #8c9ab0; font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; }
.header-spacer { flex: 1; }
.notification-indicator { width: 34px; height: 34px; margin-right: 8px; color: #8190a8; font-size: 20px; }
.header-role { margin-right: 12px; padding: 5px 10px; background: #edf3ff; color: #345bd4; border: 1px solid #e0eaff; font-size: 11px; font-weight: 750; }
.user-menu { padding: 4px 8px 4px 4px; border: 1px solid transparent; }
.user-menu:hover { background: #f8faff; border-color: #ebf0f7; }
.user-avatar { width: 32px; height: 32px; background: linear-gradient(135deg, #d9e7ff, #eff5ff); color: #3159c8; }
.user-name { color: #27344c; font-weight: 700; }
.header-logout .btn { min-height: 32px; border-color: #e6ebf3; background: #f9fafc; color: #66738a; font-weight: 650; }
.header-logout .btn:hover { border-color: #d8e1ef; background: #f2f5fa; }
.user-dropdown { border-color: #e5ebf4; border-radius: 12px; box-shadow: 0 16px 36px rgba(16, 38, 77, .12); }
.app-sidebar { top: var(--header-height); width: var(--sidebar-width); padding: 25px 14px 78px; border-right: 1px solid var(--saas-line); background: #fff; }
.sidebar-section-label { padding: 0 12px 10px; color: #9aa7ba; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-nav { gap: 6px; }
.sidebar-link { min-height: 44px; gap: 13px; padding: 0 12px; border-radius: 10px; color: #62718a; font-weight: 650; transition: color .18s ease, background .18s ease, transform .18s ease; }
.sidebar-link:hover { color: #315bea; background: #f4f7ff; transform: translateX(2px); }
.sidebar-link.is-active { color: #214bd8; background: linear-gradient(90deg, #eaf0ff, #f4f7ff); box-shadow: inset 3px 0 0 #315cf5; }
.nav-icon { color: inherit; font-size: 18px; }
.sidebar-divider { margin: 20px 8px 11px; background: var(--saas-line); }
.sidebar-caption { padding: 0 12px 8px; color: #9aa7ba; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-footer { position: absolute; right: 18px; bottom: 20px; left: 18px; display: flex; align-items: center; gap: 7px; color: #98a4b6; font-size: 11px; }
.sidebar-footer-dot, .live-dot, .record-status i { width: 7px; height: 7px; border-radius: 50%; background: #36b37e; box-shadow: 0 0 0 4px rgba(54, 179, 126, .11); }
.app-main { margin-left: var(--sidebar-width); padding-top: var(--header-height); background: var(--saas-bg); }
.content-shell { max-width: 1700px; padding: 30px 34px 42px; }

.page-enter { opacity: 0; transform: translateY(8px); transition: opacity .42s ease, transform .42s ease; }
body.ui-ready .page-enter { opacity: 1; transform: translateY(0); }
.page-heading, .directory-header { align-items: center; margin-bottom: 24px; }
.page-eyebrow { margin-bottom: 7px; color: #4771e7; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.page-heading h1, .directory-header h1 { color: var(--saas-ink); font-size: 28px; font-weight: 760; letter-spacing: -.035em; }
.page-description { margin-top: 7px; color: var(--saas-muted); line-height: 1.65; }
.page-actions { gap: 9px; }
.btn { min-height: 38px; border-radius: 9px; padding: 7px 14px; font-size: 13px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { border-color: var(--saas-blue); background: var(--saas-blue); box-shadow: 0 8px 18px rgba(46, 91, 255, .18); }
.btn-primary:hover, .btn-primary:focus { border-color: var(--saas-blue-dark); background: var(--saas-blue-dark); box-shadow: 0 10px 22px rgba(46, 91, 255, .25); }
.btn-quiet, .btn-light, .btn-outline-secondary { border-color: #e3e9f2; background: #fff; color: #53627b; box-shadow: none; }
.btn-quiet:hover, .btn-light:hover, .btn-outline-secondary:hover { border-color: #cad6ea; background: #f8faff; color: #3157ca; }
.btn-create { padding-right: 16px; padding-left: 16px; }
.btn-create span { margin-right: 3px; font-size: 17px; line-height: 0; vertical-align: -1px; }

.app-card { border: 1px solid rgba(229, 235, 244, .96); border-radius: var(--radius); background: var(--saas-card); box-shadow: var(--shadow); }
.app-card:hover { box-shadow: 0 16px 38px rgba(20, 41, 79, .07); }
.card-toolbar { padding: 21px 24px; border-bottom-color: #edf1f6; }
.card-toolbar h2, .crm-table-heading h2, .user-center-intro h2 { color: var(--saas-ink); font-size: 17px; font-weight: 740; letter-spacing: -.02em; }
.card-toolbar p { color: var(--saas-muted); }
.card-kicker { margin: 0 0 5px; }
.text-action { color: #315bea; font-size: 13px; font-weight: 750; }
.text-action span { margin-left: 4px; transition: margin .18s ease; }
.text-action:hover span { margin-left: 8px; }

/* Dashboard */
.welcome-panel { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 198px; margin-bottom: 22px; padding: 32px 34px; overflow: hidden; border-radius: 20px; background: linear-gradient(118deg, #10274f, #183a75 54%, #285bc8); box-shadow: 0 16px 34px rgba(18, 52, 112, .2); color: #fff; }
.welcome-panel::after { position: absolute; right: 0; bottom: 0; width: 48%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .055)); content: ""; }
.welcome-copy { position: relative; z-index: 1; }
.welcome-panel .page-eyebrow { color: #aebfff; }
.welcome-panel h1 { margin: 0; color: #fff; font-size: 30px; font-weight: 760; letter-spacing: -.035em; }
.welcome-system-title { margin-top: 6px !important; color: #b8c9f6 !important; font-size: 12px !important; font-weight: 700; }
.welcome-panel p:not(.page-eyebrow) { max-width: 610px; margin: 9px 0 0; color: #d5e0fc; font-size: 14px; line-height: 1.7; }
.welcome-meta { display: flex; align-items: center; gap: 8px; margin-top: 19px; color: #b9c9ed; font-size: 12px; }
.welcome-meta .live-dot { background: #70ddb1; box-shadow: 0 0 0 4px rgba(112, 221, 177, .15); }
.welcome-divider { color: #8297c6; }
.welcome-actions { position: relative; z-index: 2; display: flex; gap: 9px; }
.welcome-actions form { margin: 0; }
.welcome-actions .btn-quiet { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; }
.welcome-actions .btn-quiet:hover { border-color: rgba(255, 255, 255, .48); background: rgba(255, 255, 255, .16); }
.welcome-actions .btn-primary { background: #fff; border-color: #fff; color: #2549b4; box-shadow: none; }
.welcome-actions .btn-primary:hover { background: #eaf0ff; border-color: #eaf0ff; }
.welcome-orbit { position: absolute; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; }
.orbit-one { right: -42px; bottom: -105px; width: 320px; height: 320px; }
.orbit-two { right: 72px; bottom: -190px; width: 290px; height: 290px; border-color: rgba(255, 255, 255, .08); }
.saas-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.saas-metric-card { min-height: 145px; padding: 21px 21px 18px; border: 1px solid #e7ecf4; border-radius: 16px; background: #fff; box-shadow: 0 7px 18px rgba(20, 41, 79, .035); transition: transform .2s ease, box-shadow .2s ease; }
.saas-metric-card:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(20, 41, 79, .09); }
.metric-card-top { display: flex; align-items: center; justify-content: space-between; color: #77849a; font-size: 12px; font-weight: 700; }
.metric-card-top i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #edf3ff; color: #3560db; font-size: 15px; font-style: normal; }
.saas-metric-card strong { display: block; margin: 15px 0 6px; color: var(--saas-ink); font-size: 30px; font-weight: 770; letter-spacing: -.045em; line-height: 1; }
.saas-metric-card p { margin: 0; color: #99a5b7; font-size: 11px; }
.metric-month .metric-card-top i { background: #edf9f4; color: #22a36f; }.metric-excellent .metric-card-top i { background: #f4efff; color: #7955d5; }.metric-follow .metric-card-top i { background: #fff5e8; color: #d68727; }
.activity-card { overflow: hidden; }.activity-toolbar { padding: 22px 24px; }.activity-table { min-width: 760px; }

/* CRM directory */
.directory-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 155px)) 1fr; align-items: center; gap: 1px; min-height: 88px; margin: -5px 0 20px; overflow: hidden; border: 1px solid #e8edf5; border-radius: 14px; background: #e8edf5; box-shadow: 0 7px 19px rgba(20, 41, 79, .035); }
.directory-summary > div { min-height: 86px; padding: 17px 20px; background: #fff; }.directory-summary span { display: block; color: #8794a8; font-size: 11px; font-weight: 700; }.directory-summary strong { display: block; margin-top: 5px; color: var(--saas-ink); font-size: 23px; font-weight: 760; }.directory-summary p { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin: 0; padding: 0 23px; color: #8b98ac; font-size: 12px; }.directory-summary p i { width: 7px; height: 7px; border-radius: 50%; background: #36b37e; }
.crm-list-card { overflow: hidden; }.crm-command-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid #edf1f6; }.crm-search-form { display: flex; align-items: center; width: min(100%, 410px); min-height: 40px; padding: 0 12px; border: 1px solid #e1e7f0; border-radius: 10px; background: #fafcff; transition: border-color .18s ease, box-shadow .18s ease; }.crm-search-form:focus-within { border-color: #abc1ff; box-shadow: 0 0 0 4px rgba(46, 91, 255, .08); }.crm-search-form span { margin-right: 8px; color: #8d9ab0; font-size: 18px; }.crm-search-form input { width: 100%; border: 0; outline: 0; background: transparent; color: #34435b; font-size: 13px; }.crm-search-form input::placeholder { color: #a6b0bf; }.btn-filter { min-height: 38px; border-color: #e2e8f1; background: #fff; color: #52627c; }.btn-filter:hover { border-color: #bdcbea; background: #f7f9ff; color: #315bea; }
.crm-filter-collapse { border-bottom: 1px solid #edf1f6; background: #fbfcfe; }.crm-filter-form { padding: 19px 22px; }.filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }.filter-field label { color: #66758c; font-size: 11px; font-weight: 760; }.form-control, .form-select { min-height: 39px; border-color: #e0e7f0; border-radius: 9px; color: #40506a; background: #fff; font-size: 13px; }.form-control:focus, .form-select:focus { border-color: #abc1ff; box-shadow: 0 0 0 4px rgba(46, 91, 255, .08); }.filter-actions { margin-top: 17px; }.crm-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 23px 16px; }.crm-table-heading h2 { margin: 0; }.crm-table-heading > span { color: #8996a9; font-size: 12px; }
.data-table-wrap { max-height: calc(100vh - 290px); }.data-table { min-width: 1060px; }.data-table thead th { height: 46px; padding: 0 18px; border-bottom-color: #e8edf5; background: #f9faff; color: #8491a5; font-size: 10px; font-weight: 800; letter-spacing: .06em; }.data-table tbody td { height: 66px; padding: 8px 18px; border-color: #edf1f6; color: #43516a; font-size: 13px; }.data-table.table-hover > tbody > tr:hover > * { background: #f8faff; color: #253a62; }.data-table .photo-column { min-width: 74px; width: 74px; }.data-table .action-column { min-width: 186px; }.data-table .photo-column, .data-table .action-column { background: #fff; }.data-table thead .photo-column, .data-table thead .action-column { background: #f9faff; }.data-table.table-hover > tbody > tr:hover > .photo-column, .data-table.table-hover > tbody > tr:hover > .action-column { background: #f8faff; }.thumb, .empty-photo { width: 38px; height: 38px; border-radius: 50%; }.thumb { border-color: #e5ebf4; }.empty-photo { background: #edf3ff; color: #5674d2; font-size: 13px; font-weight: 750; }.person-cell { display: flex; flex-direction: column; gap: 3px; }.person-cell strong, .user-cell strong { color: #26354f; font-weight: 720; }.person-cell span, .user-cell span { color: #94a0b2; font-size: 11px; }.record-status { display: inline-flex; align-items: center; gap: 7px; color: #25855f; font-size: 12px; font-weight: 700; }.record-status i { width: 6px; height: 6px; box-shadow: none; }.record-status-muted { color: #8995a7; }.record-status-muted i { background: #a9b3c2; }.level-badge { min-height: 24px; padding: 3px 9px; border: 0; font-weight: 750; }.level-excellent { background: #e9f8f0; color: #259264; }.level-good { background: #ebf1ff; color: #4366cf; }.level-normal, .level-ordinary { background: #f4f6f9; color: #68768b; }.level-needs_improvement { background: #fff0ef; color: #d4685d; }.table-actions { gap: 5px; }.table-actions .btn { min-width: auto; min-height: 30px; padding: 4px 8px; border-radius: 7px; font-size: 11px; }.btn-table-view { border-color: #dce6ff; background: #f3f6ff; color: #3d61ca; }.btn-table-view:hover { border-color: #c4d3fb; background: #eaf0ff; color: #294cb0; }.btn-table-edit { border-color: #e2e7ee; background: #fff; color: #596983; }.btn-table-edit:hover { border-color: #cbd7e8; background: #f8faff; color: #3559b8; }.btn-table-delete { border-color: #ffe0df; background: #fff7f6; color: #d65d58; }.btn-table-delete:hover { border-color: #ffc9c5; background: #fff0ef; color: #bf403d; }.pagination-bar { border-top-color: #edf1f6; }.pagination .page-link { color: #6c7a91; }.pagination .page-item.active .page-link { background: var(--saas-blue); }

/* Profile */
.profile-hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-bottom: 22px; padding: 27px 28px; border: 1px solid #e5ebf4; border-radius: 18px; background: linear-gradient(105deg, #fff, #f9fbff); box-shadow: 0 10px 28px rgba(20, 41, 79, .055); }.profile-hero-main { display: flex; align-items: center; gap: 19px; min-width: 0; }.profile-hero-avatar { display: grid; flex: 0 0 84px; width: 84px; height: 84px; overflow: hidden; place-items: center; border: 1px solid #dfe7f4; border-radius: 20px; background: linear-gradient(135deg, #dce9ff, #f2f6ff); color: #3b61ca; font-size: 27px; font-weight: 800; }.profile-hero-avatar a, .profile-hero-avatar img { display: block; width: 100%; height: 100%; }.profile-hero-avatar img { object-fit: cover; }.profile-hero-copy h1 { margin: 0; color: var(--saas-ink); font-size: 28px; font-weight: 760; letter-spacing: -.035em; }.profile-id { margin: 4px 0 11px; color: #8693a7; font-size: 13px; font-weight: 600; }.profile-hero-tags { display: flex; flex-wrap: wrap; gap: 7px; color: #8390a5; font-size: 12px; }.profile-hero-tags > span:not(.level-badge) { padding: 3px 8px; border-radius: 6px; background: #f3f6fa; }.profile-hero-score { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 3px; min-width: 132px; padding: 4px 24px; border-right: 1px solid #e7ecf4; border-left: 1px solid #e7ecf4; text-align: center; }.profile-hero-score span { grid-column: 1 / -1; color: #8c99ac; font-size: 11px; font-weight: 750; }.profile-hero-score strong { color: #284fc0; font-size: 31px; font-weight: 780; letter-spacing: -.05em; }.profile-hero-score small { color: #98a4b5; font-size: 11px; }.profile-hero-actions { display: flex; gap: 8px; }.profile-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }.profile-section-wide { grid-column: 1 / -1; }.profile-content-grid > .app-card { margin-bottom: 0; }.profile-section-card { min-height: 180px; padding: 23px 25px; }.profile-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }.profile-section-heading h2 { margin: 2px 0 0; color: var(--saas-ink); font-size: 16px; font-weight: 740; }.section-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; font-size: 17px; font-weight: 700; }.section-blue { background: #edf3ff; color: #3d64d6; }.section-lilac { background: #f1edff; color: #775fd2; }.section-mint { background: #eaf8f2; color: #2b9d6a; }.section-indigo { background: #edf0ff; color: #5c62d4; }.section-orange { background: #fff4e8; color: #d68427; }.section-slate { background: #f0f3f7; color: #617187; }.section-rose { background: #fff0f2; color: #ce6378; }.profile-data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px 28px; margin: 0; }.profile-data-grid dt, .profile-data-list dt { margin-bottom: 5px; color: #93a0b2; font-size: 11px; font-weight: 700; }.profile-data-grid dd, .profile-data-list dd { margin: 0; overflow-wrap: anywhere; color: #34435a; font-size: 14px; font-weight: 700; }.profile-data-list { display: grid; gap: 17px; margin: 0; }.profile-data-list > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed #e8edf4; }.profile-data-list > div:last-child { padding-bottom: 0; border-bottom: 0; }.profile-data-list dt { margin: 0; }.capability-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }.capability-grid > div { min-height: 86px; padding: 15px; border: 1px solid #e8edf5; border-radius: 12px; background: #fbfcff; }.capability-grid span { display: block; color: #8c99ac; font-size: 11px; font-weight: 700; }.capability-grid strong { display: block; margin-top: 9px; color: #33425a; font-size: 14px; font-weight: 740; }.profile-note-block + .profile-note-block { margin-top: 18px; }.profile-note-block > span { display: block; margin-bottom: 8px; color: #8491a5; font-size: 11px; font-weight: 750; }.profile-note-block > div { min-height: 56px; padding: 13px 15px; border-radius: 10px; background: #fafcff; color: #526179; line-height: 1.7; }.profile-note-block p:last-child { margin-bottom: 0; }.payment-preview { display: grid; min-height: 90px; place-items: center; }.payment-preview .detail-image { max-height: 180px; border-radius: 10px; }.payment-preview .empty-state { padding: 12px; font-size: 12px; }

/* Forms and user center */
.form-progress { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 17px; }.form-progress a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #e2e8f1; border-radius: 999px; background: #fff; color: #718097; font-size: 12px; font-weight: 700; }.form-progress a:hover { border-color: #becdf1; color: #365dcc; }.form-progress span { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #eef3ff; color: #4f70cf; font-size: 9px; }.form-section-card { scroll-margin-top: 92px; }.form-section-card .card-toolbar { padding: 18px 23px; background: linear-gradient(90deg, #fbfcff, #fff); }.form-section-card .card-body { padding: 23px !important; }.profile-form input:not([type=checkbox]), .profile-form select, .profile-form textarea, .form-card input:not([type=checkbox]), .form-card select, .form-card textarea { border-color: #e0e7f0; border-radius: 9px; }.profile-form input:focus, .profile-form select:focus, .profile-form textarea:focus, .form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: #abc1ff; box-shadow: 0 0 0 4px rgba(46, 91, 255, .08); }.form-actions { border-color: #e6ebf3; border-radius: 13px; background: rgba(255, 255, 255, .95); box-shadow: 0 11px 26px rgba(20, 41, 79, .1); }.user-center-card { overflow: hidden; }.user-center-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 23px 24px; border-bottom: 1px solid #edf1f6; }.user-center-intro h2 { margin: 2px 0 5px; }.user-center-intro p { margin: 0; color: var(--saas-muted); font-size: 13px; }.team-count { color: #2b54cf; font-size: 26px; font-weight: 780; letter-spacing: -.04em; }.team-count small { color: #90a0b6; font-size: 11px; font-weight: 700; letter-spacing: 0; }.user-data-table { min-width: 940px; }.user-cell { display: flex; align-items: center; gap: 10px; }.table-user-avatar { display: grid; flex: 0 0 35px; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #dfeaff, #f2f6ff); color: #4668ca; font-size: 13px; font-weight: 800; }.user-cell > div { display: flex; flex-direction: column; gap: 2px; }.role-badge, .status-badge { border: 0; font-weight: 750; }.role-badge { background: #f0f3f8; color: #69778b; }.role-admin { background: #edf2ff; color: #4664c6; }.status-active { background: #eaf8f1; color: #2a9363; }

/* Login */
.login-body { background: radial-gradient(circle at 13% 11%, #e4ecff 0, transparent 31%), radial-gradient(circle at 88% 87%, #d9e7ff 0, transparent 27%), #f5f7fb; }.login-shell { position: relative; overflow: hidden; }.saas-login-card { position: relative; overflow: hidden; max-width: 456px; border: 1px solid rgba(226, 233, 244, .98); border-radius: 20px; box-shadow: 0 24px 65px rgba(17, 42, 86, .13); }.saas-login-card::before { position: absolute; top: 0; right: 0; left: 0; height: 5px; background: linear-gradient(90deg, #214bc8, #4176ff); content: ""; }.saas-login-card .card-body { padding: 37px !important; }.login-brand { gap: 13px; margin-bottom: 20px; }.login-brand .system-logo { flex-basis: 53px; width: 53px; height: 53px; }.login-brand h1 { font-size: 23px; letter-spacing: -.03em; }.login-brand p { color: #8592a5; }.login-kicker { margin: 0 0 3px !important; color: #6c8ae2 !important; }.login-intro { margin: 0 0 23px; padding: 12px 14px; border-left: 3px solid #5d7df1; border-radius: 0 8px 8px 0; background: #f6f8ff; color: #718098; font-size: 12px; line-height: 1.7; }.saas-login-card .form-label { color: #53627a; font-size: 12px; font-weight: 750; }.saas-login-card .form-control { min-height: 43px; }.saas-login-card .btn { min-height: 43px; }.saas-login-card .btn span { margin-left: 7px; font-size: 16px; }

body.sidebar-collapsed { --sidebar-width: 72px; }body.sidebar-collapsed .header-brand { flex-basis: var(--sidebar-width); width: var(--sidebar-width); padding-right: 10px; padding-left: 10px; }body.sidebar-collapsed .header-brand-text, body.sidebar-collapsed .nav-label, body.sidebar-collapsed .sidebar-caption, body.sidebar-collapsed .sidebar-section-label, body.sidebar-collapsed .sidebar-footer { display: none; }body.sidebar-collapsed .sidebar-link { justify-content: center; padding: 0; }body.sidebar-collapsed .sidebar-link:hover { transform: none; }

@media (max-width: 1280px) { .content-shell { padding: 26px; }.saas-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .content-shell { padding: 22px; }.welcome-panel { padding: 28px; }.profile-hero { grid-template-columns: 1fr; }.profile-hero-score { display: flex; justify-content: flex-start; min-width: 0; padding: 0; border: 0; text-align: left; }.profile-hero-score span { width: auto; margin-right: 8px; }.profile-hero-actions { justify-content: flex-start; }.profile-data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .app-header { padding-right: 12px; }.header-brand { flex-basis: auto; width: auto; padding: 7px 11px; border-right: 0; }.header-brand-text, .top-page-context, .header-role, .notification-indicator, .header-logout { display: none; }.system-logo { flex-basis: 48px; width: 48px; height: 48px; }.sidebar-toggle { margin-left: 3px; }.app-sidebar { top: var(--header-height); width: 248px; transform: translateX(-100%); box-shadow: 12px 0 34px rgba(20, 41, 79, .16); }.app-sidebar.mobile-open { transform: translateX(0); }.app-main { margin-left: 0; }.content-shell { padding: 18px 15px 30px; }.page-heading, .directory-header { align-items: flex-start; }.welcome-panel { display: block; min-height: 0; padding: 25px 23px; }.welcome-panel h1 { font-size: 26px; }.welcome-actions { margin-top: 21px; }.saas-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.directory-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }.directory-summary > div { min-height: 78px; padding: 13px; }.directory-summary p { display: none; }.crm-command-bar { padding: 14px; }.crm-filter-form { padding: 16px 14px; }.crm-table-heading { padding: 17px 16px 13px; }.profile-content-grid { grid-template-columns: 1fr; }.profile-section-wide { grid-column: auto; }.capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.profile-data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.profile-section-card { padding: 20px; }.data-table-wrap { max-height: none; } }
@media (max-width: 520px) { .page-heading h1, .directory-header h1 { font-size: 25px; }.page-actions { width: 100%; }.page-actions .btn { flex: 1; }.welcome-meta { flex-wrap: wrap; }.welcome-divider { display: none; }.welcome-actions { flex-wrap: wrap; }.welcome-actions .btn { flex: 1; }.saas-metrics { gap: 11px; }.saas-metric-card { min-height: 126px; padding: 16px; }.saas-metric-card strong { font-size: 27px; }.directory-summary { gap: 1px; }.directory-summary strong { font-size: 19px; }.crm-command-bar { align-items: stretch; flex-direction: column; }.btn-filter { width: 100%; }.filter-grid, .profile-data-grid, .capability-grid { grid-template-columns: 1fr; }.profile-hero { padding: 20px; }.profile-hero-main { align-items: flex-start; }.profile-hero-avatar { flex-basis: 60px; width: 60px; height: 60px; border-radius: 15px; font-size: 20px; }.profile-hero-copy h1 { font-size: 22px; }.profile-hero-tags > span:last-child { display: none; }.profile-hero-actions { width: 100%; }.profile-hero-actions .btn { flex: 1; }.profile-section-card { min-height: 0; }.user-center-intro { padding: 20px; }.team-count { display: none; }.form-progress { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }.form-progress a { flex: 0 0 auto; }.saas-login-card .card-body { padding: 28px 23px !important; } }

/* Login polish: retain the original concise layout. */
.classic-login-card { max-width: 430px; border: 1px solid var(--saas-line); border-radius: 16px; box-shadow: 0 16px 50px rgba(31, 41, 55, .12); }
.classic-login-card .card-body { padding: 34px !important; }
.classic-login-card .login-brand { gap: 12px; margin-bottom: 28px; }
.classic-login-card .login-brand .system-logo { flex-basis: 50px; width: 50px; height: 50px; }
.classic-login-card .login-brand h1 { margin: 1px 0 0; color: #172033; font-size: 21px; font-weight: 700; }
.classic-login-card .login-brand p:not(.login-kicker) { margin: 4px 0 0; color: var(--saas-muted); font-size: 13px; }
.classic-login-card .login-kicker { margin: 0; color: #6c8ae2; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.classic-login-card .form-label { color: #53627a; font-size: 13px; font-weight: 700; }
.classic-login-card .form-control { min-height: 38px; }
.classic-login-card .btn { min-height: 38px; }

/* ui-redesign-test: enterprise workspace refinement */
:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --saas-blue: #1e40af;
  --saas-blue-dark: #1e3a8a;
  --saas-bg: #f8fafc;
  --saas-card: #fff;
  --saas-line: #e5e7eb;
  --saas-ink: #172554;
  --saas-muted: #64748b;
  --sidebar-width: 244px;
  --header-height: 64px;
  --radius: 12px;
}

body { background: #f8fafc; font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
.app-header { height: var(--header-height); padding-right: 28px; background: rgba(255,255,255,.96); border-bottom-color: #e7ebf0; }
.header-brand { gap: 10px; padding: 6px 20px; }
.header-brand-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.header-brand-text { color: #172554; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.header-brand-subtitle { overflow: hidden; color: #94a3b8; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.top-page-context { margin-left: 14px; }
.top-page-overline { color: #94a3b8; font-size: 9px; letter-spacing: .1em; }
.top-page-context strong { color: #334155; font-size: 14px; }
.header-role { background: #eff6ff; color: #1e40af; }
.app-sidebar { padding-top: 20px; background: #fff; }
.sidebar-link { color: #475569; border-radius: 9px; }
.sidebar-link:hover { color: #1e40af; background: #f1f5ff; }
.sidebar-link.is-active { color: #1e40af; background: #eff6ff; box-shadow: inset 3px 0 0 #1e40af; }
.sidebar-caption, .sidebar-section-label { color: #94a3b8; }
.app-main { background: #f8fafc; }
.content-shell { max-width: 1400px; padding: 32px; }
.page-eyebrow { color: #1e40af; }
.page-heading h1, .directory-header h1 { color: #172554; font-size: 24px; }
.page-description { color: #64748b; }
.btn { min-height: 38px; border-radius: 9px; font-weight: 700; }
.btn-primary { border-color: #1e40af; background: #1e40af; box-shadow: 0 8px 18px rgba(30,64,175,.16); }
.btn-primary:hover, .btn-primary:focus { border-color: #1e3a8a; background: #1e3a8a; }
.btn-quiet, .btn-light { border-color: #dce3ed; background: #fff; color: #475569; }
.app-card { border-color: #e5e7eb; border-radius: 12px; box-shadow: 0 4px 14px rgba(15,23,42,.04); transition: transform .2s ease, box-shadow .2s ease; }
.app-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,23,42,.075); }

/* Dashboard */
.dashboard-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding: 28px 30px; overflow: hidden; border: 1px solid #dbeafe; border-radius: 16px; background: linear-gradient(120deg, #eff6ff, #fff 58%, #eef4ff); }
.dashboard-intro h1 { margin: 0; color: #172554; font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.dashboard-intro > div > p:not(.page-eyebrow) { max-width: 620px; margin: 8px 0 0; color: #64748b; font-size: 14px; }
.dashboard-intro-meta { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #64748b; font-size: 12px; }
.dashboard-intro-meta i { width: 1px; height: 13px; background: #cbd5e1; }
.dashboard-intro-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.dashboard-intro-actions form { margin: 0; }
.btn-dashboard-quiet { border-color: #bfdbfe; background: #fff; color: #1e40af; }
.overview-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.overview-card { min-height: 154px; padding: 18px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(15,23,42,.035); transition: transform .2s ease, box-shadow .2s ease; }
.overview-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(15,23,42,.09); }
.overview-card-top { display: flex; align-items: center; justify-content: space-between; }
.overview-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #eff6ff; color: #1e40af; font-size: 16px; font-weight: 800; }
.overview-chip { padding: 3px 7px; border-radius: 999px; background: #f8fafc; color: #94a3b8; font-size: 10px; font-weight: 750; }
.overview-card p { margin: 15px 0 5px; color: #64748b; font-size: 12px; font-weight: 700; }
.overview-card strong { display: block; color: #172554; font-size: 30px; font-weight: 800; letter-spacing: -.05em; line-height: 1.1; }
.overview-card small { display: block; margin-top: 7px; color: #94a3b8; font-size: 11px; }
.overview-card-sky .overview-icon { background: #ecfeff; color: #0f766e; }.overview-card-indigo .overview-icon { background: #eef2ff; color: #4338ca; }.overview-card-amber .overview-icon { background: #fff7ed; color: #c2410c; }.overview-card-green .overview-icon { background: #ecfdf5; color: #047857; }
.recent-records-card { overflow: hidden; }.recent-records-toolbar { padding: 21px 24px; }

/* KOC directory */
.directory-summary-redesign { grid-template-columns: repeat(3, minmax(0, 170px)) 1fr; border-color: #e5e7eb; background: #e5e7eb; }
.directory-summary-redesign > div { background: #fff; }.directory-summary-redesign p { color: #64748b; }.directory-summary-redesign p i { background: #22c55e; }
.redesign-command-bar { padding: 18px 22px; background: #fff; }.filter-grid-redesign { grid-template-columns: repeat(4, minmax(0, 1fr)); }.filter-keyword { display: none; }
.baby-badge { display: inline-flex; min-height: 24px; align-items: center; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 700; }.baby-badge-yes { background: #fff7ed; color: #c2410c; }
.table-actions-icon .btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 31px; padding: 4px 7px; font-size: 13px; }.table-actions-icon .btn span { display: inline-block; width: 0; overflow: hidden; opacity: 0; font-size: 11px; transition: width .18s ease, opacity .18s ease; }.table-actions-icon .btn:hover span, .table-actions-icon .btn:focus span { width: 23px; opacity: 1; }

/* KOC profile centre */
.profile-hero { border-color: #dbe4f0; border-radius: 16px; background: linear-gradient(115deg, #fff, #f8fbff); }.profile-hero-copy .page-eyebrow { color: #1e40af; }.profile-hero-score strong { color: #1e40af; }.profile-section-heading h2 { color: #172554; }.profile-section-card { border-color: #e5e7eb; }.capability-grid > div { border-color: #e5e7eb; background: #f8fafc; }.profile-note-block > div { background: #f8fafc; }

/* Four-step KOC form */
.form-wizard-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }.form-wizard-progress button { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #64748b; font-size: 12px; font-weight: 700; text-align: left; transition: border-color .18s ease, background .18s ease, color .18s ease; }.form-wizard-progress button span { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #f1f5f9; color: #64748b; font-size: 10px; }.form-wizard-progress button.is-active { border-color: #93c5fd; background: #eff6ff; color: #1e40af; }.form-wizard-progress button.is-active span, .form-wizard-progress button.is-complete span { background: #1e40af; color: #fff; }.form-wizard-progress button.is-complete { color: #1e40af; }
.form-step-hidden { display: none; }.form-wizard-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }.form-wizard-controls span { color: #64748b; font-size: 12px; font-weight: 700; }.profile-form .form-actions { display: none; margin-top: 14px; }.profile-form .form-actions.form-submit-ready { display: flex; }.form-section-card .card-toolbar { background: linear-gradient(90deg, #f8fbff, #fff); }

@media (max-width: 1280px) { .content-shell { max-width: 1200px; }.overview-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }.filter-grid-redesign { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .content-shell { padding: 24px; }.overview-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }.filter-grid-redesign { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .header-brand-subtitle, .top-page-context { display: none; }.content-shell { padding: 18px 14px 30px; }.dashboard-intro { display: block; padding: 23px; }.dashboard-intro-actions { margin-top: 20px; }.overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.directory-summary-redesign { grid-template-columns: repeat(3, minmax(0, 1fr)); }.directory-summary-redesign p { display: none; }.form-wizard-progress { display: flex; overflow-x: auto; }.form-wizard-progress button { flex: 0 0 142px; }.form-wizard-controls { position: sticky; bottom: 10px; z-index: 5; box-shadow: 0 10px 25px rgba(15,23,42,.12); } }
@media (max-width: 520px) { .overview-metrics { grid-template-columns: 1fr; }.overview-card { min-height: 120px; }.dashboard-intro h1 { font-size: 25px; }.dashboard-intro-actions .btn { flex: 1; }.filter-grid-redesign { grid-template-columns: 1fr; }.directory-header { gap: 16px; }.table-actions-icon .btn span { width: 23px; opacity: 1; }.form-wizard-controls span { display: none; } }

/* Staging deep-blue application chrome */
.app-header { background: #102a5c; border-bottom-color: rgba(191, 219, 254, .24); box-shadow: 0 2px 12px rgba(8, 29, 68, .2); }
.header-brand { color: #fff; border-right-color: rgba(191, 219, 254, .22); }
.header-brand:hover, .header-brand-text { color: #fff; }
.header-brand-subtitle { color: rgba(219, 234, 254, .78); }
.header-brand .system-logo { padding: 2px; border-radius: 8px; background: #fff; }
.sidebar-toggle, .notification-indicator { color: #dbeafe; }
.sidebar-toggle { border-color: rgba(191, 219, 254, .25); background: rgba(255, 255, 255, .06); }
.sidebar-toggle:hover, .icon-button:hover { border-color: rgba(191, 219, 254, .42); background: rgba(255, 255, 255, .14); color: #fff; }
.top-page-overline { color: #bfdbfe; }
.top-page-context strong { color: #fff; }
.header-role { border-color: rgba(191, 219, 254, .28); background: rgba(255, 255, 255, .12); color: #eff6ff; }
.user-menu { color: #fff; }.user-menu:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.user-avatar { background: #dbeafe; color: #1e40af; }.user-caret { color: #bfdbfe; }
.header-logout .btn { border-color: rgba(191, 219, 254, .32); background: rgba(255, 255, 255, .1); color: #fff; }
.header-logout .btn:hover { border-color: rgba(255, 255, 255, .6); background: #fff; color: #102a5c; }
.app-sidebar { border-right-color: rgba(191, 219, 254, .2); background: #102a5c; box-shadow: 5px 0 18px rgba(8, 29, 68, .09); }
.sidebar-section-label, .sidebar-caption, .sidebar-section-label { color: #a9c4ee; }
.sidebar-divider { background: rgba(191, 219, 254, .2); }
.sidebar-link { color: #dbeafe; }.sidebar-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sidebar-link.is-active { background: #fff; box-shadow: inset 3px 0 0 #60a5fa; color: #102a5c; }
.sidebar-footer { color: #c7daf6; }.sidebar-footer-dot { box-shadow: 0 0 0 4px rgba(74, 222, 128, .14); }
@media (max-width: 768px) { .app-sidebar { background: #102a5c; } }

/* Staging: white workspace header with a deep-blue dashboard welcome panel */
.app-header { background: #fff; border-bottom-color: #e5e7eb; box-shadow: 0 2px 10px rgba(15, 23, 42, .04); }
.header-brand { background: #102a5c; color: #fff; border-right-color: rgba(191, 219, 254, .22); }
.header-brand:hover, .header-brand-text { color: #fff; }.header-brand-subtitle { color: rgba(219, 234, 254, .78); }
.sidebar-toggle, .notification-indicator { color: #4b5b76; }.sidebar-toggle { border-color: #dbe4f1; background: #f8fafc; }
.sidebar-toggle:hover, .icon-button:hover { border-color: #cbd5e1; background: #f1f5f9; color: #1e40af; }
.top-page-overline { color: #94a3b8; }.top-page-context strong { color: #334155; }
.header-role { border-color: #dbeafe; background: #eff6ff; color: #1e40af; }
.user-menu { color: #334155; }.user-menu:hover { background: #f8fafc; color: #172554; }.user-caret { color: #94a3b8; }
.header-logout .btn { border-color: #e2e8f0; background: #f8fafc; color: #64748b; }.header-logout .btn:hover { border-color: #cbd5e1; background: #f1f5f9; color: #334155; }

.dashboard-intro { position: relative; isolation: isolate; overflow: hidden; border-color: transparent; background: linear-gradient(116deg, #102a5c 0%, #173b82 56%, #2e63c7 100%); box-shadow: 0 14px 28px rgba(16, 42, 92, .16); }
.dashboard-intro::before, .dashboard-intro::after { position: absolute; z-index: -1; border: 1px solid rgba(191, 219, 254, .18); border-radius: 50%; content: ""; pointer-events: none; }
.dashboard-intro::before { top: -155px; right: -38px; width: 320px; height: 320px; }.dashboard-intro::after { right: 72px; bottom: -158px; width: 265px; height: 265px; }
.dashboard-intro .page-eyebrow { color: #bfdbfe; }.dashboard-intro h1 { color: #fff; }.dashboard-intro > div > p:not(.page-eyebrow), .dashboard-intro-meta { color: #dbeafe; }
.dashboard-intro-meta i { background: rgba(219, 234, 254, .45); }.dashboard-intro .live-dot { box-shadow: 0 0 0 4px rgba(74, 222, 128, .12); }
.dashboard-intro-actions .btn-dashboard-quiet { border-color: rgba(219, 234, 254, .45); background: rgba(255, 255, 255, .1); color: #fff; }.dashboard-intro-actions .btn-dashboard-quiet:hover { border-color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .18); color: #fff; }
.dashboard-intro-actions .btn-primary { border-color: #fff; background: #fff; color: #1e40af; }.dashboard-intro-actions .btn-primary:hover { border-color: #eff6ff; background: #eff6ff; color: #102a5c; }
