:root {
  --ink: #0a0a0a;
  --ink-2: #171717;
  --ink-3: #282828;
  --paper: #ffffff;
  --paper-2: #f7f7f7;
  --paper-3: #eeeeee;
  --line: #dedede;
  --line-strong: #bdbdbd;
  --muted: #6a6a6a;
  --muted-2: #8a8a8a;
  --danger: #8f1d1d;
  --warning: #765a00;
  --success: #1f5f38;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05), 0 4px 16px rgb(0 0 0 / 0.04);
  --shadow-md: 0 20px 60px rgb(0 0 0 / 0.10);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --sidebar-width: 262px;
  --topbar-height: 74px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper-2);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper-2); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% -10%, rgb(0 0 0 / .035), transparent 28rem),
    var(--paper-2);
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #fff; background: #111; }

.app-shell { min-height: 100vh; }
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  min-height: var(--topbar-height);
  display: grid;
  grid-template-columns: minmax(220px, var(--sidebar-width)) 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / .94);
  backdrop-filter: blur(18px);
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #fff;
  background: #0a0a0a;
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 15px; letter-spacing: -.025em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.topbar-center { display: flex; justify-content: center; min-width: 0; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }

.workspace { min-height: 100vh; padding-top: var(--topbar-height); }
.sidebar {
  position: fixed;
  inset: var(--topbar-height) auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  overflow-y: auto;
  padding: 20px 14px 28px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: #ddd; border: 2px solid #fff; border-radius: 999px; }
.sidebar-group { margin: 0 0 20px; }
.sidebar-label {
  display: block;
  padding: 0 10px 8px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 2px 0;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}
.sidebar-link:hover { color: #000; background: var(--paper-2); }
.sidebar-link:active { transform: translateY(1px); }
.sidebar-link.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.sidebar-link-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  color: var(--muted);
  background: var(--paper-3);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.sidebar-link.active .sidebar-link-icon { color: #111; background: #fff; }
.sidebar-link-count { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 999px; color: #555; background: #eee; font-size: 10px; text-align: center; }
.sidebar-link.active .sidebar-link-count { color: #111; background: #fff; }
.sidebar-divider { height: 1px; margin: 17px 9px; background: var(--line); }
.sidebar-profile {
  margin-top: 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-2);
}
.sidebar-profile strong, .sidebar-profile span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile strong { font-size: 12px; }
.sidebar-profile span { margin-top: 4px; color: var(--muted); font-size: 10px; }

.page {
  min-height: calc(100vh - var(--topbar-height));
  margin-left: var(--sidebar-width);
  padding: 34px clamp(22px, 4vw, 62px) 70px;
  outline: none;
}
.page.login-page { margin-left: 0; padding: 0; }
.page-inner { width: min(1320px, 100%); margin: 0 auto; }

.loading-screen {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}
.loading-screen strong { display: block; color: var(--ink); font-size: 14px; }
.loading-screen p { margin: 4px 0 0; font-size: 12px; }
.loading-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #111;
  font-weight: 850;
  animation: pulse-mark 1.25s ease-in-out infinite alternate;
}
@keyframes pulse-mark { from { opacity: .62; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 26px;
}
.page-header-copy { max-width: 820px; }
.page-header h1, .hero-card h1, .login-panel h1, .bootstrap-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 48px);
  line-height: .98;
  letter-spacing: -.055em;
}
.page-header p:not(.eyebrow), .hero-card p, .bootstrap-panel p {
  max-width: 760px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.header-actions, .button-row, .inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .13s ease, box-shadow .13s ease, border-color .13s ease, background .13s ease;
}
.button:hover { border-color: #8e8e8e; box-shadow: var(--shadow-sm); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.button-dark { color: #fff; border-color: #111; background: #111; }
.button-dark:hover { border-color: #000; background: #000; }
.button-soft { border-color: #e5e5e5; background: #f3f3f3; }
.button-danger { color: var(--danger); border-color: #e4b9b9; background: #fff7f7; }
.button-small { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #333;
  background: #fff;
  cursor: pointer;
}

.search-trigger {
  width: min(520px, 100%);
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: var(--paper-2);
  cursor: pointer;
  text-align: left;
}
.search-trigger:hover { border-color: #bbb; background: #fff; }
.search-trigger span:first-child { font-size: 16px; }
.search-trigger strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 650; }
.search-trigger kbd { margin-left: auto; }
kbd {
  padding: 3px 6px;
  border: 1px solid #d3d3d3;
  border-bottom-width: 2px;
  border-radius: 6px;
  color: #666;
  background: #fff;
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 7px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #fff;
  background: #151515;
  font-size: 10px;
  font-weight: 850;
}
.user-chip-copy { max-width: 180px; display: grid; line-height: 1.1; }
.user-chip-copy strong, .user-chip-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-copy strong { font-size: 11px; }
.user-chip-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 258px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid #1c1c1c;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(125deg, #090909 0%, #141414 60%, #262626 100%);
  box-shadow: 0 18px 50px rgb(0 0 0 / .11);
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgb(255 255 255 / .08);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgb(255 255 255 / .018), 0 0 0 100px rgb(255 255 255 / .01);
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card .eyebrow { color: #a9a9a9; }
.hero-card h1 { color: #fff; }
.hero-card p { color: #bcbcbc; }
.hero-card .button { border-color: #555; color: #fff; background: transparent; }
.hero-card .button-dark { color: #111; border-color: #fff; background: #fff; }
.hero-card .button-dark:hover { background: #f0f0f0; }
.hero-actions { margin-top: 22px; }
.hero-identity {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / .13);
  border-radius: 18px;
  background: rgb(255 255 255 / .045);
  backdrop-filter: blur(14px);
}
.hero-identity span { color: #999; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-identity strong { display: block; margin-top: 7px; font-size: 24px; letter-spacing: -.035em; }
.hero-identity small { display: block; margin-top: 6px; color: #b8b8b8; line-height: 1.5; }
.hero-identity-code { font: 700 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 0 0 22px; }
.stat-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stat-card span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 16px; font-size: 28px; line-height: 1; letter-spacing: -.045em; }
.stat-card small { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.4; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 18px; }
.content-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 18px; }
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-header h2 { margin: 2px 0 0; font-size: 16px; letter-spacing: -.025em; }
.panel-header p { margin: 0; }
.panel-body { padding: 20px; }
.panel-footer { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--paper-2); }

.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-card {
  min-height: 105px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
  transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
.quick-card:hover { transform: translateY(-1px); border-color: #aaa; box-shadow: var(--shadow-sm); }
.quick-card strong { font-size: 12px; }
.quick-card span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.quick-card-arrow { align-self: flex-end; font-size: 14px; }

.list { display: grid; }
.list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #fbfbfb; }
.list-row-copy { min-width: 0; }
.list-row-copy strong, .list-row-copy span, .list-row-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row-copy strong { font-size: 12px; }
.list-row-copy span { margin-top: 4px; color: #555; font-size: 10px; }
.list-row-copy small { margin-top: 3px; color: var(--muted-2); font-size: 9px; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4a4a4a;
  background: #f5f5f5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge.active, .badge.success { color: var(--success); border-color: #bcd8c8; background: #f1faf5; }
.badge.training { color: #5c4b00; border-color: #dbcd95; background: #fffbea; }
.badge.on_leave { color: #4c4c4c; border-color: #ccc; background: #f4f4f4; }
.badge.suspended, .badge.danger { color: var(--danger); border-color: #e0b4b4; background: #fff4f4; }
.badge.former { color: #6d6d6d; background: #f0f0f0; }

.department-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.department-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.department-card:hover { transform: translateY(-2px); border-color: #aaa; box-shadow: 0 14px 35px rgb(0 0 0 / .07); }
.department-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.department-code {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #111;
  font-size: 10px;
  font-weight: 850;
}
.department-card h3 { margin: 24px 0 8px; font-size: 18px; letter-spacing: -.03em; }
.department-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.department-chief { margin-top: auto; padding-top: 20px; color: #444; font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }

.directory-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.input-shell { position: relative; flex: 1; }
.input-shell input { padding-left: 38px; }
.input-icon { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: #777; pointer-events: none; }
.directory-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.directory-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.directory-table th {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper-2);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  text-align: left;
  text-transform: uppercase;
}
.directory-table td { padding: 14px 15px; border-bottom: 1px solid var(--line); font-size: 11px; vertical-align: middle; }
.directory-table tr:last-child td { border-bottom: 0; }
.directory-table tbody tr { cursor: pointer; }
.directory-table tbody tr:hover { background: #fafafa; }
.employee-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.employee-cell-copy { min-width: 0; }
.employee-cell strong, .employee-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-cell strong { font-size: 11px; }
.employee-cell small { margin-top: 4px; color: var(--muted); font-size: 9px; }

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.profile-avatar { width: 76px; height: 76px; border-radius: 21px; font-size: 20px; }
.profile-copy h1 { margin: 0; font-size: 30px; letter-spacing: -.045em; }
.profile-copy p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.profile-meta { min-width: 180px; text-align: right; }
.profile-meta span, .profile-meta strong { display: block; }
.profile-meta span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.profile-meta strong { margin-top: 4px; font: 750 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }

.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.detail { min-height: 82px; padding: 15px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail:nth-child(2n) { border-right: 0; }
.detail:nth-last-child(-n + 2) { border-bottom: 0; }
.detail span, .detail strong { display: block; }
.detail span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.detail strong { margin-top: 8px; font-size: 12px; line-height: 1.45; }

.permission-list { display: flex; flex-wrap: wrap; gap: 7px; }
.permission-chip { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: #444; background: #f7f7f7; font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }

.empty-state {
  padding: 42px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #555;
  background: var(--paper-2);
  font-weight: 850;
}
.empty-state h3 { margin: 0; color: var(--ink); font-size: 14px; }
.empty-state p { max-width: 460px; margin: 8px auto 0; font-size: 11px; line-height: 1.6; }

.form-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.form-stack { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label { display: grid; gap: 7px; color: #444; font-size: 10px; font-weight: 750; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  color: #111;
  background: #fff;
  outline: none;
  transition: border-color .13s ease, box-shadow .13s ease;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #555; box-shadow: 0 0 0 3px rgb(0 0 0 / .055); }
input::placeholder, textarea::placeholder { color: #aaa; }
.checkbox-line { display: flex; align-items: center; grid-template-columns: auto 1fr; gap: 8px; font-weight: 600; }
.checkbox-line input { width: 15px; min-height: 15px; height: 15px; margin: 0; }
.help-text { margin: -3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.notice { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: #444; background: #f7f7f7; font-size: 10px; line-height: 1.55; }
.notice[hidden] { display: none; }
.notice-success { color: var(--success); border-color: #bdd8c8; background: #f3fbf6; }
.notice-error { color: var(--danger); border-color: #e4b9b9; background: #fff5f5; }
.notice-warning { color: var(--warning); border-color: #ded3a7; background: #fffbed; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(430px, .9fr);
  background: #fff;
}
.login-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 68px);
  color: #fff;
  background: linear-gradient(140deg, #050505 0%, #111 65%, #252525 100%);
}
.login-visual::after {
  content: "";
  position: absolute;
  right: -260px;
  bottom: -280px;
  width: 650px;
  height: 650px;
  border: 1px solid rgb(255 255 255 / .08);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgb(255 255 255 / .02), 0 0 0 160px rgb(255 255 255 / .012);
}
.login-visual > * { position: relative; z-index: 1; }
.login-logo { display: flex; align-items: center; gap: 12px; }
.login-logo .brand-mark { background: #fff; color: #111; }
.login-logo strong { display: block; font-size: 14px; }
.login-logo small { display: block; margin-top: 3px; color: #aaa; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.login-message { max-width: 680px; }
.login-message .eyebrow { color: #9d9d9d; }
.login-message h2 { max-width: 640px; margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: .9; letter-spacing: -.065em; }
.login-message p { max-width: 580px; margin: 22px 0 0; color: #aeaeae; font-size: 13px; line-height: 1.75; }
.login-foot { display: flex; align-items: center; gap: 10px; color: #7e7e7e; font-size: 9px; }
.login-panel-wrap { display: grid; place-items: center; padding: 34px; background: #fff; }
.login-panel { width: min(430px, 100%); }
.login-panel h1 { font-size: 40px; }
.login-panel > p:not(.eyebrow) { margin: 11px 0 26px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.login-panel .form-stack { margin-top: 16px; }
.login-security { display: flex; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.5; }

.bootstrap-shell, .access-shell {
  min-height: calc(100vh - var(--topbar-height));
  display: grid;
  place-items: center;
  padding: 30px;
}
.bootstrap-panel, .access-panel {
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.bootstrap-mark, .access-mark { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 15px; color: #fff; background: #111; font-weight: 850; }
.bootstrap-list { display: grid; gap: 10px; margin: 24px 0; }
.bootstrap-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.bootstrap-item:last-child { border-bottom: 0; }
.bootstrap-check { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: #fff; background: #111; font-size: 10px; }
.bootstrap-item strong { display: block; font-size: 11px; }
.bootstrap-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.command-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding: 12vh 18px 18px; }
.command-overlay[hidden] { display: none; }
.command-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgb(0 0 0 / .44); backdrop-filter: blur(4px); cursor: default; }
.command-panel { position: relative; width: min(690px, 100%); overflow: hidden; border: 1px solid #444; border-radius: 18px; background: #fff; box-shadow: 0 28px 90px rgb(0 0 0 / .3); }
.command-input-row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.command-input-row input { min-height: 45px; padding: 0; border: 0; box-shadow: none; font-size: 14px; }
.command-input-row input:focus { box-shadow: none; }
.command-icon { color: #666; font-size: 22px; }
.command-results { max-height: 440px; overflow-y: auto; padding: 8px; }
.command-result { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 11px; border: 0; border-radius: 10px; text-align: left; background: transparent; cursor: pointer; }
.command-result:hover, .command-result:focus { background: #f2f2f2; outline: none; }
.command-result-copy strong, .command-result-copy span { display: block; }
.command-result-copy strong { font-size: 11px; }
.command-result-copy span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.command-result-type { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.command-section-label { padding: 9px 11px 5px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

.toast-region { position: fixed; z-index: 150; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 250px; max-width: 360px; padding: 12px 14px; border: 1px solid #333; border-radius: 11px; color: #fff; background: #111; box-shadow: var(--shadow-md); font-size: 10px; line-height: 1.5; animation: toast-in .18s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.mobile-menu { display: none; }
.noscript { margin: 90px auto; width: min(600px, calc(100% - 40px)); padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }

.skeleton { position: relative; overflow: hidden; min-height: 12px; border-radius: 6px; background: #eee; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / .8), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .department-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-identity { min-height: auto; }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 230px; }
  .topbar { grid-template-columns: minmax(180px, var(--sidebar-width)) 1fr auto; padding: 0 14px; }
  .topbar-center { justify-content: flex-end; }
  .search-trigger { width: 42px; padding: 0; justify-content: center; }
  .search-trigger strong, .search-trigger kbd { display: none; }
  .user-chip-copy { display: none; }
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel-wrap { min-height: 100vh; }
}

@media (max-width: 720px) {
  :root { --topbar-height: 66px; }
  .topbar { grid-template-columns: auto 1fr auto; }
  .brand-copy small { display: none; }
  .sidebar {
    transform: translateX(-105%);
    width: min(320px, calc(100vw - 52px));
    box-shadow: var(--shadow-md);
    transition: transform .2s ease;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open::after { content: ""; position: fixed; inset: var(--topbar-height) 0 0 0; z-index: 20; background: rgb(0 0 0 / .34); }
  .mobile-menu { display: inline-grid; }
  .page, .page.login-page { margin-left: 0; padding: 24px 16px 56px; }
  .page.login-page { padding: 0; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .page-header h1 { font-size: 34px; }
  .stats-grid, .department-grid, .content-grid.equal, .form-row { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 0; padding: 28px 22px; border-radius: 19px; }
  .hero-card h1 { font-size: 36px; }
  .profile-hero { grid-template-columns: auto 1fr; padding: 18px; }
  .profile-meta { grid-column: 1 / -1; text-align: left; padding-top: 14px; border-top: 1px solid var(--line); }
  .details-grid { grid-template-columns: 1fr; }
  .detail { border-right: 0; }
  .detail:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .detail:last-child { border-bottom: 0; }
  .login-panel-wrap { padding: 28px 20px; }
  .toast-region { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
