:root {
  --primary: #1d4ed8;
  --primary-light: #3b6df0;
  --primary-pale: #eff4ff;
  --success: #16a34a;
  --success-pale: #ecfdf5;
  --warning: #d97706;
  --warning-pale: #fffbeb;
  --danger: #dc2626;
  --danger-pale: #fef2f2;
  --info: #64748b;
  --info-pale: #f1f5f9;
  --text-900: #0f172a;
  --text-800: #1e293b;
  --text-700: #334155;
  --text-600: #475569;
  --text-500: #64748b;
  --text-400: #94a3b8;
  --border: #e2e8f0;
  --border-light: #eef0f4;
  --page: #f6f7fb;
  --card: #fff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .07);
  --shadow-md: 0 5px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .13);
  --radius: 10px;
  --radius-lg: 14px;
  --sidebar: 232px;
  --sidebar-mini: 68px;
  --topbar: 64px;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
body {
  background: var(--page);
  color: var(--text-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: "tnum";
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(59, 109, 240, .32); outline-offset: 2px; }

.login-page {
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--page);
}
.login-hero {
  flex: 1.15;
  position: relative;
  overflow: hidden;
  padding: 56px 64px 40px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-hero::before, .login-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  pointer-events: none;
  animation: float 16s ease-in-out infinite;
}
.login-hero::before { width: 440px; height: 440px; top: -150px; right: -120px; background: #5b7dff; }
.login-hero::after { width: 360px; height: 360px; bottom: -130px; left: -80px; background: #8b5cf6; animation-delay: -8s; }
.login-grid { position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(circle at 45% 45%, #000 20%, transparent 76%); }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(35px,-28px) scale(1.07); } }
.hero-inner { position: relative; z-index: 1; max-width: 560px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 70px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; font-size: 23px; font-weight: 800; background: linear-gradient(135deg, #1d4ed8, #7191ff); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.brand-name { font-size: 18px; font-weight: 750; letter-spacing: .4px; }
.brand-name small { display: block; color: rgba(255,255,255,.56); letter-spacing: .4px; font-size: 11px; font-weight: 500; }
.login-title { margin: 0; max-width: 500px; font-size: clamp(34px, 3.4vw, 52px); line-height: 1.18; letter-spacing: -.045em; }
.gradient-text { background: linear-gradient(90deg, #bfdbfe, #ddd6fe, #fbcfe8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-subtitle { margin: 20px 0 28px; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.9; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: rgba(255,255,255,.86); }
.feature-list li::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 10px; color: #b9ceff; font-size: 13px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; }
.login-metrics { position: relative; z-index: 1; display: flex; gap: 28px; align-items: center; color: rgba(255,255,255,.72); }
.login-metrics div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.22); }
.login-metrics strong { display: block; color: #fff; font-size: 21px; }
.login-metrics span { font-size: 12px; }
.login-panel { width: min(520px, 42vw); background: #fff; display: grid; place-items: center; padding: 42px; }
.login-form-box { width: min(100%, 370px); }
.login-form-box h2 { margin: 0; color: var(--text-900); font-size: 28px; letter-spacing: -.03em; }
.login-form-box > p { margin: 8px 0 30px; color: var(--text-500); }
.login-form-box > p strong { color: var(--primary); }
.demo-role-list { display: grid; gap: 12px; }
.role-card { width: 100%; border: 1px solid var(--border); background: #fff; border-radius: var(--radius); padding: 16px; display: flex; align-items: center; text-align: left; gap: 13px; transition: .2s ease; }
.role-card:hover { transform: translateY(-2px); border-color: var(--primary-light); box-shadow: var(--shadow-md); background: #fbfdff; }
.role-card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; font-weight: 800; font-size: 18px; background: linear-gradient(135deg, #1d4ed8, #6488fb); }
.role-card:nth-child(2) .role-card-icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.role-card:nth-child(3) .role-card-icon { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.role-card-copy { flex: 1; }
.role-card-copy strong { display: block; color: var(--text-800); font-size: 15px; }
.role-card-copy span { display: block; margin-top: 2px; color: var(--text-500); font-size: 12px; }
.role-arrow { color: var(--text-400); font-size: 20px; }
.login-hint { padding-top: 24px; margin-top: 26px; border-top: 1px solid var(--border-light); color: var(--text-500); font-size: 12px; text-align: center; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; left: 0; top: 0; bottom: 0; width: var(--sidebar); overflow: hidden; color: #cbd5e1; background: radial-gradient(circle at 100% 0%, rgba(59,109,240,.13), transparent 42%), linear-gradient(180deg, #0b1220 0%, #0f172a 60%, #1e293b 100%); border-right: 1px solid rgba(255,255,255,.05); display: flex; flex-direction: column; transition: width .25s ease; }
.app-shell.is-collapsed .sidebar { width: var(--sidebar-mini); }
.side-logo { height: var(--topbar); display: flex; align-items: center; gap: 12px; padding: 0 18px; flex: none; color: #fff; border-bottom: 1px solid rgba(255,255,255,.07); white-space: nowrap; }
.side-logo .brand-mark { flex: none; width: 34px; height: 34px; font-size: 18px; border-radius: 9px; }
.side-logo-text { min-width: 0; font-size: 16px; font-weight: 800; letter-spacing: .5px; background: linear-gradient(90deg,#fff,#c7d2fe); color: transparent; background-clip: text; }
.side-logo-text small { display: block; color: rgba(255,255,255,.5); font-size: 10px; font-weight: 500; letter-spacing: .25px; }
.app-shell.is-collapsed .side-logo { justify-content: center; padding: 0; }
.app-shell.is-collapsed .side-logo-text, .app-shell.is-collapsed .nav-label, .app-shell.is-collapsed .nav-group, .app-shell.is-collapsed .service-status-copy { display: none; }
.nav { overflow: auto; padding: 17px 10px; flex: 1; }
.nav-group { margin: 14px 10px 7px; color: rgba(203,213,225,.46); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.nav-group:first-child { margin-top: 2px; }
.nav-item { position: relative; border: 0; width: 100%; padding: 10px 12px; margin: 2px 0; display: flex; align-items: center; gap: 12px; color: #cbd5e1; border-radius: 8px; background: transparent; text-align: left; transition: .18s; white-space: nowrap; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.065); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(37,99,235,.85), rgba(37,99,235,.36)); box-shadow: inset 3px 0 #93c5fd; }
.nav-icon { flex: none; width: 20px; color: #93c5fd; text-align: center; font-size: 15px; font-weight: 700; }
.nav-item.active .nav-icon { color: #fff; }
.app-shell.is-collapsed .nav { padding: 17px 10px; }
.app-shell.is-collapsed .nav-item { justify-content: center; padding: 11px 0; }
.side-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.service-status { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; background: rgba(255,255,255,.05); white-space: nowrap; }
.status-light { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.12); }
.service-status strong { display: block; color: #e2e8f0; font-size: 11px; }
.service-status span { display: block; color: rgba(203,213,225,.5); font-size: 10px; }
.app-shell.is-collapsed .side-footer { padding: 16px 0; display: grid; place-items: center; }
.app-shell.is-collapsed .service-status { padding: 7px; }

.main { width: calc(100% - var(--sidebar)); margin-left: var(--sidebar); min-width: 0; min-height: 100vh; transition: margin .25s ease, width .25s ease; }
.app-shell.is-collapsed .main { width: calc(100% - var(--sidebar-mini)); margin-left: var(--sidebar-mini); }
.topbar { position: sticky; top: 0; z-index: 15; height: var(--topbar); display: flex; align-items: center; gap: 16px; padding: 0 24px; background: rgba(255,255,255,.89); border-bottom: 1px solid rgba(226,232,240,.9); backdrop-filter: blur(14px); }
.icon-button { width: 36px; height: 36px; border: 1px solid transparent; border-radius: 8px; color: var(--text-600); background: transparent; display: grid; place-items: center; font-size: 18px; transition: .18s; }
.icon-button:hover { color: var(--primary); background: var(--primary-pale); border-color: #dbe7ff; }
.breadcrumb { color: var(--text-500); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb strong { color: var(--text-800); font-weight: 650; }
.role-select { height: 34px; min-width: 132px; padding: 0 9px; color: var(--primary); font-size: 13px; font-weight: 650; border: 1px solid #cbdafc; border-radius: 7px; background: #f4f7ff; }
.notification { position: relative; }
.notification-dot { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; background: var(--danger); }
.user-summary { display: flex; align-items: center; gap: 9px; padding-left: 10px; border-left: 1px solid var(--border); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 750; background: linear-gradient(135deg,#1d4ed8,#7191ff); }
.user-summary strong, .user-summary span { display: block; line-height: 1.25; white-space: nowrap; }
.user-summary strong { color: var(--text-700); font-size: 12px; }
.user-summary span { color: var(--text-500); font-size: 10px; }
.notification-panel { position: absolute; z-index: 30; top: 55px; right: 74px; width: min(340px, calc(100vw - 30px)); padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: var(--shadow-lg); }
.notification-panel h4 { margin: 0 0 10px; }
.notice-mini { padding: 10px 2px; border-top: 1px solid var(--border-light); color: var(--text-600); font-size: 12px; }
.notice-mini strong { display: block; color: var(--text-800); margin-bottom: 2px; }

.content { padding: 20px 24px 34px; animation: page-in .3s ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.dashboard-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 34px 32px 38px; margin: -20px -24px 24px; color: #fff; background: linear-gradient(135deg,#0f172a 0%,#1e3a8a 50%,#1d4ed8 100%); border-radius: 0 0 14px 14px; }
.dashboard-hero::before, .dashboard-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(65px); opacity: .38; }
.dashboard-hero::before { width: 320px; height: 320px; top: -150px; right: -60px; background: #4f7aff; }
.dashboard-hero::after { width: 260px; height: 260px; bottom: -160px; left: 10%; background: #a78bfa; }
.dashboard-hero > * { position: relative; z-index: 1; }
.greeting { color: rgba(255,255,255,.7); margin-bottom: 7px; font-size: 14px; }
.dashboard-hero h1 { margin: 0; letter-spacing: -.035em; font-size: 30px; }
.dashboard-hero p { margin: 8px 0 0; color: rgba(255,255,255,.7); }
.hero-meta { display: flex; gap: 12px; }
.hero-meta-card { min-width: 148px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.10); backdrop-filter: blur(8px); }
.hero-meta-card b { display: block; font-size: 13px; }
.hero-meta-card span { display: block; margin-top: 2px; color: rgba(255,255,255,.62); font-size: 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { position: relative; overflow: hidden; padding: 19px 20px 17px; border: 1px solid var(--border-light); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); transition: .2s; text-align: left; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cbdafc; }
.stat-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--card-color, var(--primary)); }
.stat-card-top { display: flex; justify-content: space-between; align-items: center; color: var(--text-500); font-size: 13px; }
.stat-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 17px; background: var(--card-color, var(--primary)); box-shadow: 0 6px 13px color-mix(in srgb, var(--card-color, var(--primary)) 25%, transparent); }
.stat-value { margin-top: 12px; color: var(--text-900); font-size: 28px; line-height: 1; letter-spacing: -.04em; font-weight: 750; }
.stat-note { margin-top: 9px; color: var(--text-500); font-size: 11px; }

.card { padding: 20px 22px; border: 1px solid var(--border-light); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.card-head, .toolbar, .page-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-head { padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--border-light); }
.card-head h3, .toolbar h3 { margin: 0; color: var(--text-800); font-size: 15px; }
.card-head h3::before, .toolbar h3::before { content: ""; display: inline-block; width: 3px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 2px; background: linear-gradient(#1d4ed8,#7092ff); }
.card-subtitle { margin: 4px 0 0; color: var(--text-500); font-size: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 11px; }
.quick-link { min-height: 65px; padding: 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-light); border-radius: 9px; color: var(--text-700); background: #fbfbfd; text-align: left; transition: .18s; }
.quick-link:hover { border-color: #b8cafa; background: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.quick-link-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #fff; background: linear-gradient(135deg,#1d4ed8,#6286f8); font-weight: 750; }
.quick-link b { display: block; font-size: 13px; }
.quick-link span { display: block; margin-top: 1px; color: var(--text-500); font-size: 11px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.info-card { min-height: 248px; padding: 18px 20px; border: 1px solid var(--border-light); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.info-card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.info-card-head strong { color: var(--text-800); font-size: 15px; }
.list-item { width: 100%; padding: 11px 0; display: flex; gap: 8px; align-items: center; color: var(--text-700); border: 0; border-bottom: 1px solid #f0f2f5; background: transparent; text-align: left; }
.list-item:hover { color: var(--primary); }
.list-item-title { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.list-item time { color: var(--text-400); font-size: 11px; }
.empty { padding: 44px 10px; color: var(--text-400); text-align: center; }

.page-header { margin-bottom: 18px; align-items: flex-end; }
.page-header h2 { margin: 0; color: var(--text-900); font-size: 23px; letter-spacing: -.025em; }
.page-header p { margin: 4px 0 0; color: var(--text-500); font-size: 12px; }
.button-row { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.btn { min-height: 34px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-700); background: #fff; font-size: 13px; font-weight: 550; transition: .18s; }
.btn:hover { border-color: #a9bffb; color: var(--primary); background: #f8faff; }
.btn-primary { border-color: var(--primary); color: #fff; background: linear-gradient(135deg,var(--primary),var(--primary-light)); box-shadow: 0 4px 10px rgba(29,78,216,.17); }
.btn-primary:hover { color: #fff; background: linear-gradient(135deg,#1947c2,#2f5ee7); box-shadow: 0 6px 14px rgba(29,78,216,.27); }
.btn-success { border-color: var(--success); color: #fff; background: var(--success); }
.btn-danger { border-color: var(--danger); color: var(--danger); background: #fff; }
.btn-link { min-height: auto; padding: 0; color: var(--primary); border: 0; background: none; font-size: 12px; }
.btn-small { min-height: 28px; padding: 4px 8px; font-size: 12px; }

.filter-bar { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.field, .select { height: 35px; min-width: 150px; padding: 0 10px; color: var(--text-700); border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.field::placeholder { color: var(--text-400); }
.select { min-width: 125px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 650px; border-collapse: collapse; }
th { height: 43px; padding: 0 12px; color: var(--text-600); border-bottom: 1px solid var(--border); background: #fbfbfd; font-size: 12px; font-weight: 650; text-align: left; white-space: nowrap; }
td { padding: 13px 12px; color: var(--text-700); border-bottom: 1px solid #f0f2f5; font-size: 12.5px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8faff; }
.table-name { color: var(--text-800); font-weight: 650; }
.muted { color: var(--text-500); }
.tag { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 4px; color: var(--info); background: var(--info-pale); font-size: 11px; line-height: 1.2; white-space: nowrap; }
.tag.success { color: #15803d; background: var(--success-pale); }
.tag.warning { color: #b45309; background: var(--warning-pale); }
.tag.danger { color: #b91c1c; background: var(--danger-pale); }
.tag.primary { color: #1d4ed8; background: var(--primary-pale); }
.action-links { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.action-links button { padding: 0; border: 0; color: var(--primary); background: none; font-size: 12px; }
.action-links .danger-link { color: var(--danger); }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.profile-hero { display: flex; gap: 16px; align-items: center; padding: 20px; background: linear-gradient(125deg,#f1f5ff,#fafaff); border: 1px solid #dfe8ff; border-radius: 10px; }
.profile-avatar { width: 64px; height: 64px; display: grid; place-items: center; flex: none; color: #fff; border-radius: 50%; background: linear-gradient(135deg,#1d4ed8,#7191ff); font-size: 20px; font-weight: 750; box-shadow: 0 8px 18px rgba(29,78,216,.23); }
.profile-hero h3 { margin: 0; color: var(--text-800); }
.profile-hero p { margin: 4px 0 0; color: var(--text-500); }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin-top: 16px; border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; }
.detail-item { min-height: 70px; padding: 13px 15px; border-bottom: 1px solid var(--border-light); background: #fff; }
.detail-item:nth-child(odd) { border-right: 1px solid var(--border-light); }
.detail-item:nth-last-child(-n+2) { border-bottom: 0; }
.detail-item label { display: block; color: var(--text-500); font-size: 11px; }
.detail-item span { display: block; margin-top: 3px; color: var(--text-700); font-weight: 550; }
.clock-status { padding: 19px; color: var(--text-700); border-radius: 10px; background: #fbfbfd; border: 1px solid var(--border-light); }
.clock-time { margin: 5px 0 14px; color: var(--text-900); font-size: 29px; letter-spacing: -.04em; font-weight: 760; }
.clock-actions { display: flex; gap: 10px; }
.score-ring { width: 125px; height: 125px; margin: 9px auto 18px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--primary) var(--score, 0%), #e7edf9 0); }
.score-ring div { width: 100px; height: 100px; display: grid; place-items: center; color: var(--text-900); border-radius: 50%; background: #fff; font-size: 25px; font-weight: 750; }
.score-ring div small { margin-left: 2px; color: var(--text-400); font-size: 11px; font-weight: 500; }
.metric-row { padding: 11px 0; border-bottom: 1px solid var(--border-light); }
.metric-row:last-child { border-bottom: 0; }
.metric-row-top { display: flex; justify-content: space-between; color: var(--text-600); font-size: 12px; }
.progress { height: 7px; margin-top: 7px; overflow: hidden; border-radius: 9px; background: #e9eef9; }
.progress > span { display: block; height: 100%; width: var(--progress, 0%); border-radius: inherit; background: linear-gradient(90deg,#1d4ed8,#6688f5); }
.task-list { display: grid; gap: 12px; }
.task-card { padding: 16px; border: 1px solid var(--border-light); border-radius: 9px; background: #fff; }
.task-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.task-card h4 { margin: 0; color: var(--text-800); font-size: 14px; }
.task-card p { margin: 5px 0 13px; color: var(--text-500); font-size: 12px; }
.task-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--text-500); font-size: 11px; }

.tabs { display: flex; gap: 20px; margin-bottom: 17px; border-bottom: 1px solid var(--border); }
.tab { padding: 0 0 10px; border: 0; color: var(--text-500); background: transparent; font-weight: 550; }
.tab.active { color: var(--primary); border-bottom: 2px solid var(--primary); }
.summary-list { display: grid; gap: 11px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 7px; background: #fafbfe; color: var(--text-700); }
.summary-row span { color: var(--text-500); font-size: 12px; }

.modal-backdrop { position: fixed; z-index: 60; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(15,23,42,.47); animation: fade .16s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(540px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); animation: modal-in .18s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(9px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--border-light); }
.modal-header h3 { margin: 0; color: var(--text-800); font-size: 17px; }
.modal-close { width: 30px; height: 30px; border: 0; border-radius: 6px; color: var(--text-500); background: transparent; font-size: 20px; }
.modal-close:hover { background: var(--info-pale); color: var(--text-800); }
.modal-body { padding: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--border-light); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: grid; gap: 6px; }
.form-field label { color: var(--text-600); font-size: 12px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 8px 10px; color: var(--text-700); border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.form-field textarea { min-height: 82px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--primary-light); outline: 0; box-shadow: 0 0 0 3px rgba(59,109,240,.12); }
.modal-detail-title { margin: 0 0 7px; color: var(--text-800); font-size: 17px; }
.modal-detail-time { color: var(--text-500); font-size: 12px; }
.timeline { margin: 18px 0 0 3px; padding-left: 18px; border-left: 2px solid #dbe7ff; }
.timeline-item { position: relative; padding: 0 0 18px; color: var(--text-600); font-size: 12px; }
.timeline-item::before { content: ""; position: absolute; width: 8px; height: 8px; top: 4px; left: -23px; border: 2px solid #fff; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px #cbdafc; }
.timeline-item strong { display: block; color: var(--text-800); margin-bottom: 2px; }

.toast { position: fixed; z-index: 100; top: 18px; left: 50%; min-width: 230px; max-width: calc(100vw - 30px); padding: 11px 16px; display: flex; align-items: center; gap: 8px; color: #166534; border: 1px solid #bbf7d0; border-radius: 8px; background: #f0fdf4; box-shadow: var(--shadow-md); transform: translateX(-50%); animation: toast-in .2s ease; }
.toast.error { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
@keyframes toast-in { from { transform: translate(-50%,-10px); opacity: 0; } to { transform: translate(-50%,0); opacity: 1; } }

@media (max-width: 1180px) { .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .info-grid { grid-template-columns: 1fr; } .info-card { min-height: auto; } }
@media (max-width: 860px) { .login-hero { display: none; } .login-panel { width: 100%; min-height: 100vh; } .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); } .app-shell.mobile-open .sidebar { transform: translateX(0); } .main, .app-shell.is-collapsed .main { width: 100%; margin-left: 0; } .app-shell.is-collapsed .sidebar { width: var(--sidebar); } .app-shell.is-collapsed .side-logo { justify-content: flex-start; padding: 0 18px; } .app-shell.is-collapsed .side-logo-text, .app-shell.is-collapsed .nav-label, .app-shell.is-collapsed .nav-group, .app-shell.is-collapsed .service-status-copy { display: block; } .app-shell.is-collapsed .nav-item { justify-content: flex-start; padding: 10px 12px; } .app-shell.is-collapsed .side-footer { padding: 14px; display: block; } .app-shell.is-collapsed .service-status { padding: 10px; } .dashboard-hero { padding: 27px 24px; } .topbar { padding: 0 14px; gap: 8px; } .breadcrumb { display: none; } .role-select { margin-left: auto; min-width: 112px; } .user-summary-copy { display: none; } .content { padding: 16px; } .dashboard-hero { margin: -16px -16px 19px; border-radius: 0 0 12px 12px; } .hero-meta { display: none; } .two-col { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .login-panel { padding: 24px; } .stat-grid { grid-template-columns: 1fr; } .card { padding: 16px; } .dashboard-hero h1 { font-size: 25px; } .page-header h2 { font-size: 20px; } .button-row { width: 100%; } .button-row .btn-primary { margin-left: auto; } .form-grid { grid-template-columns: 1fr; } .form-grid .full { grid-column: auto; } .detail-grid { grid-template-columns: 1fr; } .detail-item:nth-child(odd) { border-right: 0; } .detail-item:nth-last-child(2) { border-bottom: 1px solid var(--border-light); } .tabs { gap: 13px; overflow-x: auto; white-space: nowrap; } }
