:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #34d399;
  --accent: #06b6d4;
  --amber: #d97706;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --border: rgba(148, 163, 184, .18);
  --border-strong: rgba(148, 163, 184, .32);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .04), 0 4px 14px rgba(15, 23, 42, .04);
  --shadow-md: 0 2px 4px rgba(15, 23, 42, .03), 0 12px 32px rgba(15, 23, 42, .07);
  --shadow-lg: 0 4px 8px rgba(15, 23, 42, .04), 0 24px 54px rgba(15, 23, 42, .12);
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
[v-cloak] { display: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.muted-text { color: var(--faint); font-size: 12px; }

/* ── Topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 247, 251, .88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-divider { width: 1px; height: 26px; background: var(--border); }
.page-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.page-sub { font-size: 11px; color: var(--faint); margin-top: 2px; }
.tabs {
  display: flex; gap: 4px; padding: 4px; border-radius: 12px;
  background: #eaeff5; border: 1px solid rgba(148, 163, 184, .14);
}
.tab-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px;
  border: 0; border-radius: 9px; background: transparent; color: var(--muted);
  font-size: 12.5px; font-weight: 700; transition: .16s ease; white-space: nowrap;
}
.tab-btn .mdi { font-size: 16px; }
.tab-btn:hover { color: var(--text-2); background: rgba(255, 255, 255, .55); }
.tab-btn.active { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.topbar-spacer { flex: 1; }
.topbar-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  color: var(--muted); font-size: 12.5px; font-weight: 700; transition: .16s ease; white-space: nowrap;
}
.topbar-link .mdi { font-size: 16px; }
.topbar-link:hover { color: var(--primary-dark); background: #fff; box-shadow: var(--shadow-sm); }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 9px 5px 5px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .72); cursor: pointer;
  position: relative; transition: .18s ease;
}
.user-chip:hover { background: #fff; box-shadow: var(--shadow-sm); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 13px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 12px rgba(5, 150, 105, .2);
}
.user-name { font-size: 13px; font-weight: 700; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { color: var(--faint); font-size: 15px; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 190px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 6px; overflow: hidden;
}
.menu-item { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 9px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.menu-item:hover { background: #f8fafc; color: var(--text); }
.menu-item .mdi { font-size: 17px; }
.menu-item.danger { color: #dc2626; }
.menu-divider { height: 1px; background: var(--border); margin: 4px 6px; }

.content { max-width: 1280px; margin: 0 auto; padding: 22px 24px 64px; }

/* ── Stats ── */
.stats-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.stat-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 13px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 12.5px; color: var(--muted); font-weight: 600;
}
.stat-pill b { font-size: 18px; color: var(--text); font-weight: 800; letter-spacing: -.02em; }
.stat-pill .mdi { font-size: 18px; color: var(--primary); }
.stat-pill.blue .mdi { color: #2563eb; }
.stat-pill.cyan .mdi { color: #0891b2; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 0 15px; border-radius: 11px; border: 1px solid transparent;
  font-size: 13px; font-weight: 700; transition: .18s ease; white-space: nowrap;
}
.btn .mdi { font-size: 17px; }
.btn-primary { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; box-shadow: 0 6px 16px rgba(5, 150, 105, .2); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(5, 150, 105, .26); }
.btn-ghost { background: #fff; border-color: var(--border-strong); color: var(--text-2); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.btn-ghost:hover { border-color: rgba(5, 150, 105, .45); color: var(--primary-dark); background: #f8fdfb; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(5, 150, 105, .14); }
.btn-ghost:active { transform: translateY(0); box-shadow: 0 2px 5px rgba(5, 150, 105, .1); }
.btn-danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.btn-danger:hover { background: #fee2e2; }
.btn-sm { min-height: 33px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn:focus-visible, .icon-btn:focus-visible, .tab-btn:focus-visible { outline: 2px solid rgba(5, 150, 105, .5); outline-offset: 2px; }

/* ── Cards / sections ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.section-gap { margin-top: 18px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-title .mdi { color: var(--primary); font-size: 19px; }
.section-desc { font-size: 12px; color: var(--faint); margin-top: 4px; line-height: 1.7; }
.panel-head { padding: 15px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-title { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.panel-title .mdi { color: var(--faint); font-size: 17px; }
.panel-sub { font-size: 12px; color: var(--faint); }

/* ── Toolbar / filters ── */
.toolbar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; padding: 15px 16px; margin-bottom: 16px; }
.search-wrap { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.search-wrap .mdi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 17px; }
.input, .textarea {
  width: 100%; border: 1.5px solid rgba(148, 163, 184, .2); background: #fff; color: var(--text);
  border-radius: 11px; font-size: 13px; outline: none; transition: .18s ease;
}
.input { height: 40px; padding: 0 13px; }
.search-wrap .input { padding-left: 37px; }
.input:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(5, 150, 105, .09); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.textarea { min-height: 84px; padding: 11px 13px; resize: vertical; line-height: 1.7; }

/* ── Custom select ── */
.select-wrap { position: relative; min-width: 136px; }
.select-btn {
  width: 100%; height: 40px; padding: 0 32px 0 13px; border-radius: 11px; border: 1.5px solid rgba(148, 163, 184, .2);
  background: #fff; color: var(--text-2); font-size: 12.5px; font-weight: 700; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.select-btn > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-btn:hover { border-color: rgba(5, 150, 105, .35); }
.select-btn .chevron { color: var(--faint); font-size: 16px; transition: .18s ease; }
.select-btn.open .chevron { transform: rotate(180deg); }
.select-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 5px; max-height: 280px; overflow-y: auto;
}
.select-option { padding: 9px 11px; border-radius: 8px; font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.select-option > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-option:hover { background: #f8fafc; color: var(--text); }
.select-option.active { background: #ecfdf5; color: #047857; font-weight: 800; }

/* ── Chips ── */
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text-2);
  font-size: 12px; font-weight: 700; transition: .15s ease; user-select: none;
}
.chip:hover { border-color: rgba(5, 150, 105, .35); color: var(--primary-dark); }
.chip.active { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.chip .mdi { font-size: 14px; }
.chip.chip-main { box-shadow: inset 0 0 0 1px rgba(5, 150, 105, .35); }
.chip.dept-pick-chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; line-height: 1.5; padding: 5px 12px; }

/* ── Table / employee rows ── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .04em; color: var(--faint); font-weight: 800; padding: 11px 14px; background: #f8fafc; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid rgba(226, 232, 240, .75); color: var(--text-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfdff; }
.emp-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar-sm {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 13px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.emp-name { font-size: 13px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 6px; }
.emp-id { font-size: 10.5px; color: var(--faint); margin-top: 2px; }
.src-dot {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 5px;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font-size: 9.5px; font-weight: 800;
}
.dept-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.dept-tag {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  background: #f1f5f9; border: 1px solid #e2e8f0; color: #475569; font-size: 10.5px; font-weight: 700;
}
.dept-tag.primary { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.contact-line { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.contact-line.sub { color: var(--faint); }
.row-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--muted); display: inline-grid; place-items: center; font-size: 15px; transition: .15s ease; }
.icon-btn:hover { color: var(--primary-dark); border-color: rgba(5, 150, 105, .3); background: #f8fdfb; }
.icon-btn.danger:hover { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.badge-green { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-amber { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-blue { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-gray { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.badge-rose { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

/* ── Mobile employee cards ── */
.mobile-emp-list { display: none; padding: 10px; gap: 9px; flex-direction: column; }
.mobile-emp { border: 1px solid var(--border); border-radius: 13px; padding: 13px 14px; background: #fff; }
.mobile-emp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mobile-emp-top .emp-cell { min-width: 0; }
.mobile-emp-meta { margin-top: 9px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.mobile-emp .dept-tags { margin-top: 9px; }
.mobile-emp-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 10px; }
.mobile-emp-top .emp-cell > div:last-child { min-width: 0; }
.mobile-emp .emp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-emp-meta span { overflow-wrap: anywhere; }
.mobile-log-list { display: none; padding: 4px 14px 8px; flex-direction: column; }
.mobile-log { padding: 12px 0; border-bottom: 1px solid rgba(226, 232, 240, .7); }
.mobile-log:last-child { border-bottom: 0; }
.mobile-log-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mobile-log-time { font-size: 12px; font-weight: 700; color: var(--text-2); }
.mobile-log-meta { display: flex; flex-direction: column; gap: 3px; margin-top: 7px; font-size: 11.5px; color: var(--faint); line-height: 1.7; overflow-wrap: anywhere; }

/* ── Departments ── */
.dept-tree { display: flex; flex-direction: column; overflow-x: auto; }
.dept-row {
  display: flex; align-items: center; gap: 9px; padding-top: 10px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, .7); min-width: 0;
}
.dept-row:last-child { border-bottom: 0; }
.dept-row > .mdi { color: var(--faint); font-size: 17px; flex: 0 0 auto; }
.dept-name { font-size: 13px; font-weight: 700; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dept-source { font-size: 9.5px; font-weight: 800; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 999px; padding: 1px 6px; flex: 0 0 auto; }
.dept-count { margin-left: auto; font-size: 11.5px; color: var(--faint); white-space: nowrap; flex: 0 0 auto; }
.dept-actions { display: flex; gap: 5px; flex: 0 0 auto; }

/* ── Import ── */
.import-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.import-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; color: #07c160; background: rgba(7, 193, 96, .1); flex: 0 0 auto;
}
.import-head > div:nth-child(2) { flex: 1; min-width: 200px; }
.import-actions { display: flex; gap: 8px; align-items: center; }
.alert { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 11px 13px; border-radius: 11px; font-size: 12.5px; line-height: 1.7; }
.alert .mdi { font-size: 17px; flex: 0 0 auto; margin-top: 1px; }
.alert.warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.preview-panel { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 18px; }
.count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.count-card { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; }
.count-label { font-size: 11px; color: var(--faint); font-weight: 700; }
.count-value { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 5px; }
.count-value.green { color: var(--primary-dark); }
.count-value.blue { color: #1d4ed8; }
.count-value.amber { color: #b45309; }
.count-value.rose { color: #be123c; }
.preview-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.preview-col { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; min-height: 90px; }
.preview-col-title { font-size: 12px; font-weight: 800; color: var(--text-2); margin-bottom: 8px; }
.preview-list { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.preview-list .more { color: var(--faint); font-size: 11.5px; }
.preview-foot { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }

/* ── Pager / empty / loading ── */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 0 8px; }
.pager-info { font-size: 12px; color: var(--faint); min-width: 90px; text-align: center; }
.empty { padding: 46px 20px; text-align: center; color: var(--faint); font-size: 13px; }
.empty .mdi { display: block; font-size: 42px; color: #cbd5e1; margin-bottom: 10px; }
.loading { padding: 56px 20px; text-align: center; color: var(--faint); font-size: 13px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid #d1fae5; border-top-color: var(--primary); animation: spin .7s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal / form ── */
.overlay { position: fixed; inset: 0; background: rgba(10, 15, 30, .48); backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: 100%; max-width: 760px; max-height: calc(100vh - 40px); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.modal.narrow { max-width: 440px; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-title { font-size: 16px; font-weight: 800; }
.modal-sub { font-size: 11.5px; color: var(--faint); margin-top: 3px; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 9px; background: #fbfdff; }
.icon-btn.modal-close { border: 0; background: transparent; font-size: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field { margin-bottom: 15px; }
.field.full { grid-column: 1 / -1; }
.field-label { display: block; font-size: 12px; font-weight: 800; color: var(--text-2); margin-bottom: 7px; }
.field-label .req { color: #dc2626; }
.field-hint { font-size: 11px; color: var(--faint); margin-top: 5px; line-height: 1.6; }
.form-section { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 16px; margin-bottom: 15px; }
.form-section-title { font-size: 12.5px; font-weight: 800; color: var(--text-2); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.form-section-title .mdi { color: var(--faint); font-size: 16px; }
.account-picked {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px;
  background: #ecfdf5; border: 1px solid #a7f3d0;
}
.account-picked .avatar-sm { width: 30px; height: 30px; font-size: 12px; }
.account-picked-info { flex: 1; min-width: 0; }
.account-picked-name { font-size: 12.5px; font-weight: 800; color: #065f46; }
.account-picked-meta { font-size: 11px; color: #047857; margin-top: 2px; }
.account-results { margin-top: 8px; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; max-height: 180px; overflow-y: auto; }
.account-result { display: flex; align-items: center; gap: 9px; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid rgba(226, 232, 240, .7); }
.account-result:last-child { border-bottom: 0; }
.account-result:hover { background: #f8fdfb; }
.account-result-main { flex: 1; min-width: 0; }
.account-result-name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.account-result-meta { font-size: 11px; color: var(--faint); margin-top: 2px; }
.account-empty { padding: 10px 12px; font-size: 12px; color: var(--faint); }

/* ── Logs ── */
.log-status { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; }
.log-status.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.log-status.partial { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.log-status.failed { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

/* ── Gate ── */
.gate-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse 70% 50% at 15% 0%, rgba(5, 150, 105, .08), transparent 55%), var(--bg); }
.gate-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 38px 32px; text-align: center; box-shadow: var(--shadow-md); }
.gate-card img { height: 52px; width: auto; margin: 0 auto 18px; display: block; }
.gate-card .gate-icon { font-size: 48px; color: var(--primary); margin-bottom: 8px; }
.gate-title { font-size: 21px; font-weight: 800; }
.gate-sub { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 10px 0 22px; }
.gate-actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }

/* ── Toast ── */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 11px 18px; border-radius: 11px; font-size: 13px; z-index: 200; box-shadow: var(--shadow-md); max-width: calc(100vw - 32px); text-align: center; }
.toast.error { background: #991b1b; }
.fade-enter-active, .fade-leave-active { transition: opacity .18s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .tabs { order: 3; width: 100%; }
  .tab-btn { flex: 1; justify-content: center; }
  .count-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-columns { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar-inner { padding: 10px 14px; }
  .brand-logo { height: 30px; }
  .brand-divider, .page-sub { display: none; }
  .topbar-link { display: none; }
  .content { padding: 16px 14px 56px; }
  .search-wrap { max-width: none; flex: 0 0 100%; }
  .toolbar .select-wrap { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .toolbar .btn-primary { flex: 1 1 100%; }
  .employee-table-wrap, .log-table-wrap { display: none; }
  .mobile-emp-list { display: flex; }
  .mobile-log-list { display: flex; }
  .stats-row { gap: 8px; }
  .stat-pill { padding: 8px 12px; font-size: 11.5px; flex: 1 1 auto; justify-content: center; }
  .stat-pill b { font-size: 16px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-head > .btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .modal { max-height: calc(100vh - 20px); border-radius: 16px; }
  .overlay { padding: 10px; }
  .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .count-grid { gap: 8px; }
  .import-head { gap: 10px; }
  .import-actions { width: 100%; }
  .import-actions .btn { width: 100%; }
  .preview-foot .btn { flex: 1; }
}
@media (max-width: 420px) {
  .stat-pill .mdi { display: none; }
  .user-name { display: none; }
}
