:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #202833;
  background: #f5f6f8;
  font-synthesis: none;
  color-scheme: light;
  --muted: #687384;
  --line: #e1e5eb;
  --primary: #2563eb;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button, input { transition: border-color .12s, background-color .12s; }
button:focus-visible, a:focus-visible, .table-wrap:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p, h1, h2, dl, dd { margin: 0; }
.muted { color: var(--muted); font-size: 13px; }

.site-header {
  position: relative;
  height: 56px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #263548;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}
.brand-name { font-size: 15px; font-weight: 650; }
.brand-divider { color: #b8c0cc; font-weight: 300; }
.brand-subtitle { color: #5e6979; font-size: 13px; }
.header-nav { display: flex; align-items: center; justify-self: end; gap: 20px; align-self: stretch; font-size: 12px; white-space: nowrap; }
.header-nav a { display: flex; align-items: center; border-bottom: 2px solid transparent; color: var(--muted); }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--primary); }
.header-nav a[aria-current="page"] { border-bottom-color: var(--primary); }
.header-session { display: flex; align-items: center; gap: 12px; min-width: 0; justify-self: end; }
.current-account { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.current-account strong { display: block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; color: #344054; font-weight: 500; }
.header-login { display: inline-flex; align-items: center; justify-content: center; justify-self: end; }
.header-session-message { position: absolute; top: calc(100% + 8px); right: 24px; z-index: 5; max-width: min(360px, calc(100vw - 32px)); padding: 9px 12px; border: 1px solid #fecaca; border-radius: 4px; background: #fef2f2; color: #b42318; font-size: 12px; }
.environment-badge {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--muted);
  background: #fafbfc;
  font-size: 11px;
  white-space: nowrap;
}
main { flex: 1; width: 100%; }
.boot { padding: 80px 24px; text-align: center; color: var(--muted); font-size: 13px; }

.auth-layout { width: min(400px, calc(100% - 40px)); margin: 76px auto 48px; }
.auth-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.auth-heading h1 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 24px 0; }
.tab {
  flex: 1;
  margin-bottom: -1px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
form label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 500; }
form input, .search-input {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #cfd5df;
  border-radius: 4px;
  outline: none;
  background: #fff;
  color: #202833;
  font-size: 13px;
}
form input:hover, .search-input:hover { border-color: #9aa7b8; }
form input:focus, .search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px #2563eb14; }
input::placeholder { color: #929ba8; }
.password-label { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--primary); font-size: 12px; }
.text-button:hover { text-decoration: underline; }
.field-hint { margin-top: 6px; color: var(--muted); font-size: 12px; }
#confirm-group { margin-top: 18px; }
.primary-button {
  width: 100%;
  min-height: 36px;
  margin-top: 24px;
  padding: 7px 14px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.primary-button:hover:not(:disabled) { background: #1d4ed8; border-color: #1d4ed8; }
.auth-footer { margin-top: 20px; text-align: center; color: var(--muted); font-size: 12px; }
.auth-footer .text-button { margin-left: 6px; }
.auth-note { margin-top: 16px; text-align: center; color: #8791a0; font-size: 12px; }
.message { margin-top: 16px; padding: 9px 12px; border: 1px solid #fecaca; border-radius: 4px; background: #fef2f2; color: #b42318; font-size: 12px; overflow-wrap: anywhere; }
.message.success { border-color: #bbdfcd; background: #f0f9f4; color: #23734a; }

.dashboard { width: 100%; max-width: 1344px; margin: 0 auto; padding: 28px 32px 40px; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dashboard-heading h1 { margin-bottom: 5px; font-size: 22px; font-weight: 600; }
.outline-button {
  flex-shrink: 0;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid #cfd5df;
  border-radius: 4px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  white-space: nowrap;
}
.outline-button:hover:not(:disabled) { border-color: #9aa7b8; background: #f8f9fb; }
.summary-bar { display: grid; grid-template-columns: 1fr 1fr 1.6fr; margin: 22px 0; padding: 18px 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.summary-item { padding: 0 24px; }
.summary-item + .summary-item { border-left: 1px solid var(--line); }
.summary-item dt { margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.summary-item dd { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.summary-login dd { font-family: var(--mono); font-size: 14px; font-weight: 400; line-height: 28.6px; white-space: nowrap; }
.directory-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; }
.directory-toolbar h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.count-badge { padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; background: #f7f8fa; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 19px; font-variant-numeric: tabular-nums; }
.directory-actions { display: flex; gap: 8px; }
.search-input { width: 230px; min-height: 32px; font-size: 12px; }
.directory-message { margin: 0 20px 16px; }
.table-wrap { overflow-x: auto; }
.directory-card table { width: 100%; min-width: 860px; border-collapse: collapse; text-align: left; white-space: nowrap; }
.directory-card thead { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8f9fb; }
.directory-card th { padding: 10px 20px; color: #5e6979; font-size: 12px; font-weight: 500; }
.directory-card th:first-child { width: 25%; }
.directory-card th:nth-child(2) { width: 25%; }
.sort-indicator { color: #8a95a4; margin-left: 3px; }
.directory-card td { height: 54px; padding: 12px 20px; border-bottom: 1px solid #edf0f4; color: #344054; font-size: 13px; }
.directory-card tbody tr:last-child td { border-bottom: 0; }
.directory-card tbody tr:hover { background: #fafbfc; }
.user-name { font-weight: 500; white-space: normal; overflow-wrap: anywhere; }
.self-badge { margin-left: 9px; padding: 1px 5px; border-radius: 3px; background: #eff4ff; color: #4b6caa; font-size: 10px; font-weight: 400; white-space: nowrap; }
.user-id { font-family: var(--mono); color: #6b7585; font-size: 12px; }
.time-value { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.never-login { color: #8a95a4; font-size: 12px; }
.directory-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.empty-state { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.table-notes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 20px; padding-top: 12px; color: #7d8796; font-size: 11px; line-height: 1.8; }
.site-footer { padding: 16px 24px; text-align: center; color: #929ba8; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript { padding: 24px; text-align: center; color: #b42318; }

@media (max-width: 1060px) {
  .brand-subtitle, .brand-divider { display: none; }
}

@media (max-width: 900px) {
  .site-header { height: auto; min-height: 56px; padding: 12px 20px 0; gap: 0 16px; }
  .header-session, .header-login { grid-column: 3; grid-row: 1; }
  .header-nav { grid-column: 1 / -1; grid-row: 2; height: 40px; justify-self: stretch; gap: 24px; }
}

@media (max-width: 760px) {
  .dashboard { padding: 24px 20px; }
  .dashboard-heading { align-items: flex-start; }
  .summary-item { padding: 0 16px; }
  .summary-login dd { font-size: 12px; }
  .summary-login #my-login-date { display: block; line-height: 18px; }
  .summary-login #my-login { display: block; line-height: 18px; }
}

@media (max-width: 480px) {
  .site-header { padding: 10px 16px 0; gap: 0 12px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 14px; }
  .brand-subtitle { font-size: 12px; }
  .brand-subtitle, .brand-divider { display: none; }
  .header-nav { height: 38px; justify-content: space-between; gap: 14px; font-size: 11px; }
  .header-session { gap: 10px; }
  .current-account { flex-direction: column; align-items: flex-end; gap: 1px; font-size: 10px; line-height: 1.4; }
  .current-account strong { max-width: 80px; font-size: 11px; }
  .header-session .outline-button { min-height: 30px; padding: 4px 9px; font-size: 11px; }
  .environment-badge { font-size: 10px; padding: 2px 5px; }
  .auth-layout { margin-top: 40px; }
  .auth-card { padding: 24px; }
  .dashboard { padding: 20px 16px; }
  .dashboard-heading { gap: 16px; }
  .dashboard-heading h1 { font-size: 20px; }
  .dashboard-heading .muted { max-width: 190px; font-size: 12px; }
  .summary-bar { grid-template-columns: 1fr 1fr; margin: 18px 0; padding: 14px 0 0; }
  .summary-item { padding: 0 16px 14px; }
  .summary-item dd { font-size: 20px; }
  .summary-login { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; gap: 10px; padding: 12px 16px; }
  .summary-item.summary-login { border-left: 0; border-top: 1px solid var(--line); }
  .summary-login dt { margin: 0; font-size: 11px; }
  .summary-login dd { font-size: 11px; line-height: 1.5; }
  .summary-login #my-login-date, .summary-login #my-login { display: inline; line-height: inherit; }
  .directory-toolbar { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .directory-actions { width: 100%; }
  .search-input { flex: 1; min-width: 0; width: auto; }
  .directory-bottom { padding: 11px 16px; font-size: 11px; }
  .directory-message { margin: 0 16px 16px; }
  .directory-card th, .directory-card td { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 360px) {
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  button, input { transition: none; }
}
