:root {
  --ink: #1b2736;
  --ink-strong: #0f1724;
  --muted: #697789;
  --line: #d9e2ec;
  --brand: #ff6a18;
  --brand-strong: #ed5510;
  --brand-blue: #1268a8;
  --brand-blue-strong: #0b406d;
  --surface: #fff;
  --panel: #f7f9fc;
  --danger: #c84630;
  --danger-bg: #fff1ed;
  --focus: rgba(255, 106, 24, .18);
  --ease-out: cubic-bezier(.22, .8, .18, 1);
  --ease-spring: cubic-bezier(.2, .9, .22, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Outfit", "Satoshi", "Plus Jakarta Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(255, 106, 24, .55);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-strong);
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 5;
  transform: translateY(-180%);
  padding: 10px 14px;
  color: #fff;
  border-radius: 12px;
  background: var(--ink-strong);
  box-shadow: 0 20px 44px rgba(15, 23, 36, .18);
  transition: transform .5s var(--ease-spring);
}

.skip-link:focus {
  transform: translateY(0);
}

.login-page {
  min-height: 100dvh;
  overflow-x: hidden;
  background: #e9f4f9;
}

.login-page::before,
.admin-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .8) 0 1px, transparent 1.4px),
    radial-gradient(circle at 80% 70%, rgba(18, 104, 168, .22) 0 1px, transparent 1.3px);
  background-size: 34px 34px, 46px 46px;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 70px;
  isolation: isolate;
}

.visual-plane {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .34)),
    url("/assets/login-bg.png") center / cover no-repeat,
    #e9f4f9;
}

.visual-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(225, 242, 249, .2)),
    rgba(255, 255, 255, .06);
}

.login-composition {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  gap: clamp(42px, 8vw, 120px);
}

.login-composition.single-card {
  display: flex;
  justify-content: center;
}

.login-card {
  position: relative;
  width: min(400px, 100%);
  min-height: 520px;
  padding: 28px 30px 26px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .9)),
    rgba(255, 255, 255, .92);
  box-shadow:
    0 34px 90px rgba(17, 72, 112, .24),
    0 1px 0 rgba(255, 255, 255, .92) inset,
    0 0 0 8px rgba(255, 255, 255, .18);
  animation: taste-rise .8s var(--ease-spring) both;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  pointer-events: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9);
}

.mfa-card {
  min-height: 420px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: #6d7b8c;
  font-size: 13px;
}

.security-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: var(--brand-blue);
  font-size: 12px;
  border-radius: 999px;
  background: rgba(18, 104, 168, .08);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 42px 0 24px;
  color: var(--ink-strong);
}

.brand-lockup.compact {
  justify-content: flex-start;
  margin: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .22), transparent 40%),
    linear-gradient(135deg, var(--brand), #ff9b46 48%, var(--brand-blue) 100%);
  box-shadow: 0 12px 28px rgba(255, 106, 24, .24);
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  line-height: 1.25;
}

.brand-lockup strong {
  font-size: 15px;
}

.brand-lockup small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

h1 {
  margin: 0 0 18px;
  color: var(--ink-strong);
  text-align: left;
  font-size: 22px;
  font-weight: 700;
}

.context-line,
.alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 10px;
}

.context-line {
  color: #3c5871;
  border: 1px solid rgba(18, 104, 168, .12);
  background: rgba(18, 104, 168, .07);
}

.alert {
  color: var(--danger);
  border: 1px solid rgba(200, 70, 48, .16);
  background: var(--danger-bg);
}

.login-form {
  display: grid;
  gap: 14px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  transition: border-color .32s var(--ease-out), box-shadow .32s var(--ease-out), background-color .32s var(--ease-out), transform .32s var(--ease-out);
}

.field:hover {
  border-color: #bfd0df;
  background: #fff;
}

.field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--focus), 0 10px 26px rgba(255, 106, 24, .08);
  transform: translateY(-1px);
}

.field-icon {
  flex: 0 0 auto;
  width: 44px;
  display: grid;
  place-items: center;
  color: #91a0af;
  font-size: 18px;
}

.field:focus-within .field-icon {
  color: var(--brand);
}

.field input {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.field input::placeholder {
  color: #9aa7b6;
}

.ghost-eye {
  flex: 0 0 auto;
  width: 42px;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  color: #8b99a8;
  background: transparent;
  cursor: pointer;
  transition: color .32s var(--ease-out), transform .32s var(--ease-out);
}

.ghost-eye:hover,
.ghost-eye.is-active {
  color: var(--brand-blue);
  transform: scale(1.04);
}

.primary-btn,
.secondary-btn {
  border: 0;
  cursor: pointer;
}

.primary-btn {
  position: relative;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 42%),
    linear-gradient(135deg, var(--brand) 0%, #ff8b32 54%, #e85f18 100%);
  box-shadow: 0 18px 36px rgba(255, 106, 24, .22);
  transition: transform .36s var(--ease-spring), box-shadow .36s var(--ease-spring), filter .36s var(--ease-spring);
}

.primary-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(255, 106, 24, .28);
}

.primary-btn:active {
  transform: translateY(0) scale(.985);
}

.primary-btn:disabled {
  cursor: wait;
  opacity: .86;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  display: none;
  border: 2px solid rgba(255, 255, 255, .48);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.primary-btn.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.secondary-btn {
  height: 30px;
  padding: 0 12px;
  color: var(--ink);
  border-radius: 999px;
  background: #eef2f7;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  font-size: 13px;
}

.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #59687a;
  cursor: pointer;
  user-select: none;
}

.check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-box {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd7e2;
  border-radius: 6px;
  background: #fff;
  transition: background-color .28s var(--ease-out), border-color .28s var(--ease-out), box-shadow .28s var(--ease-out), transform .28s var(--ease-out);
}

.check-box::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .18s ease;
}

.check input:checked + .check-box {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 6px 14px rgba(255, 106, 24, .2);
  transform: translateY(-1px);
}

.check input:checked + .check-box::after {
  transform: rotate(-45deg) scale(1);
}

.check input:focus-visible + .check-box {
  outline: 2px solid rgba(255, 106, 24, .55);
  outline-offset: 3px;
}

.forgot {
  color: #667789;
  white-space: nowrap;
  transition: color .18s ease;
}

.forgot:hover {
  color: var(--brand);
}

.page-footer {
  position: fixed;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 22px;
  color: rgba(255, 255, 255, .86);
  text-align: center;
  font-size: 12px;
  text-shadow: 0 8px 24px rgba(8, 31, 52, .28);
}

.forgot-card {
  min-height: 430px;
}

.forgot-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.primary-link-btn,
.secondary-link-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
}

.primary-link-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #ff8b32 48%, var(--brand-blue));
  box-shadow: 0 14px 30px rgba(255, 106, 24, .22);
}

.primary-link-btn:hover {
  color: #fff;
  filter: brightness(1.04);
}

.secondary-link-btn {
  color: var(--brand-blue);
  border: 1px solid rgba(18, 104, 168, .18);
  background: rgba(18, 104, 168, .07);
}

.mfa-secret {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #647284;
  font-size: 13px;
  line-height: 1.55;
}

code {
  padding: 4px 6px;
  color: #a84612;
  border-radius: 6px;
  background: #fff2eb;
  white-space: pre-wrap;
}

.mfa-secret textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #667789;
  padding: 10px;
  background: rgba(255, 255, 255, .8);
}

.admin-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #f7fafc 0%, #eef5f9 100%);
}

.admin-header {
  position: sticky;
  top: 14px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 0 28px;
  width: min(1320px, calc(100% - 32px));
  margin: 14px auto 0;
  border: 1px solid rgba(226, 232, 240, .72);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 52px rgba(20, 63, 96, .08);
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-nav a {
  padding: 8px 10px;
  color: #667789;
  border-radius: 8px;
  font-size: 13px;
  transition: color .18s ease, background-color .18s ease;
}

.admin-nav a:hover {
  color: var(--brand-blue);
  background: rgba(18, 104, 168, .08);
}

.admin-user,
.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px;
}

.admin-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .7fr);
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 24px 32px;
}

.admin-hero {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 156px;
  padding: 28px;
  color: #fff;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15, 38, 62, .95), rgba(18, 104, 168, .78)),
    url("/assets/login-bg.png") center 58% / cover no-repeat;
  box-shadow: 0 28px 70px rgba(11, 64, 109, .18);
  overflow: hidden;
  animation: taste-rise .72s var(--ease-spring) both;
}

.admin-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 32, 52, .76), rgba(13, 32, 52, .22)),
    radial-gradient(circle at 82% 20%, rgba(255, 122, 38, .28), transparent 30%);
}

.admin-hero h1 {
  margin: 6px 0 8px;
  color: #fff;
  font-size: 28px;
}

.admin-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, .78);
}

.admin-hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-action {
  min-width: 118px;
  background: linear-gradient(135deg, var(--brand), #ff964a);
  box-shadow: 0 14px 30px rgba(255, 106, 24, .28);
}

.metric-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid #e3eaf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 36, .04);
  animation: taste-rise .72s var(--ease-spring) both;
}

.metric-card span {
  display: block;
  color: #667789;
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin-top: 16px;
  color: var(--ink-strong);
  font-size: 30px;
  line-height: 1;
}

.panel,
.notice {
  background: #fff;
  border: 1px solid #e2e8f0;
}

.panel {
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(15, 23, 36, .04);
  animation: taste-rise .72s var(--ease-spring) both;
}

.panel.wide,
.notice {
  grid-column: 1 / -1;
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.notice.success {
  color: #127a47;
  border-color: rgba(18, 122, 71, .16);
  background: #effaf4;
}

.notice.danger {
  color: var(--danger);
  border-color: rgba(200, 70, 48, .16);
  background: var(--danger-bg);
}

.notice.warning {
  border-color: #ffd4bf;
  background: #fff5ef;
}

.panel h1,
.panel h2 {
  margin: 0 0 14px;
  text-align: left;
  font-size: 16px;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 9px 10px;
  background: #fff;
}

.admin-form textarea {
  min-height: 70px;
}

.filter-form,
.compact-form {
  display: grid;
  gap: 10px;
}

.filter-form {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.compact-form {
  grid-template-columns: 1fr;
}

.filter-form input,
.filter-form select,
.compact-form input,
.compact-form select,
.compact-form textarea,
.employee-form input,
.employee-form select,
.employee-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}

.filter-form input,
.filter-form select,
.compact-form input,
.compact-form select,
.employee-form input,
.employee-form select {
  height: 42px;
  padding: 0 12px;
}

.compact-form textarea,
.employee-form textarea {
  min-height: 86px;
  padding: 10px 12px;
  resize: vertical;
}

.filter-form input:focus,
.filter-form select:focus,
.compact-form input:focus,
.compact-form select:focus,
.compact-form textarea:focus,
.employee-form input:focus,
.employee-form select:focus,
.employee-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--focus);
  transform: translateY(-1px);
}

.subtle {
  color: #8190a2;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  vertical-align: top;
}

th {
  color: #6d7988;
  font-weight: 600;
  background: #f8fafc;
}

tbody tr {
  transition: background-color .28s var(--ease-out), transform .28s var(--ease-out);
}

tbody tr:hover {
  background: #fbfdff;
}

td small {
  display: block;
  color: #8994a3;
  margin-top: 2px;
}

.link-btn {
  border: 0;
  padding: 0;
  color: var(--brand);
  background: transparent;
  cursor: pointer;
}

.link-btn:disabled {
  color: #b6c1ce;
  cursor: not-allowed;
}

.danger-link {
  color: var(--danger);
}

.employee-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.employee-cell strong {
  display: block;
  color: var(--ink-strong);
}

.avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-blue));
}

.role-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.role-badge {
  color: #315a7b;
  background: #edf5fb;
}

.status-badge.is-active {
  color: #127a47;
  background: #eaf8f0;
}

.status-badge.is-disabled {
  color: #a0493a;
  background: #fff0eb;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 150px;
}

.row-actions form {
  margin: 0;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 180px;
  color: #7a8797;
  text-align: center;
  border: 1px dashed #d5deea;
  border-radius: 12px;
  background: #fbfdff;
}

.empty-state strong {
  color: var(--ink);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.pagination a {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #617083;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #fff;
}

.pagination a.is-current {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.settings-note {
  color: #718095;
  font-size: 13px;
  line-height: 1.6;
}

.admin-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 56px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 28px 88px rgba(15, 23, 36, .28);
}

.admin-dialog::backdrop {
  background: rgba(12, 26, 44, .46);
  backdrop-filter: blur(3px);
}

.employee-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.employee-form header,
.employee-form footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.employee-form header h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 18px;
}

.dialog-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #687789;
  background: #f1f5f9;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid label,
.employee-form > label {
  display: grid;
  gap: 7px;
  color: #4a596b;
  font-size: 13px;
  font-weight: 700;
}

.span-2 {
  grid-column: span 2;
}

.check.inline {
  justify-content: flex-start;
  color: #59687a;
  font-weight: 400;
}

@keyframes taste-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1040px) {
  .login-shell {
    padding-inline: 28px;
  }

  .login-composition {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .login-composition.single-card {
    justify-content: center;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 840px) {
  .login-shell {
    min-height: 100svh;
    padding: 74px 20px 76px;
  }

  .login-card {
    width: min(420px, 100%);
    min-height: auto;
    padding: 26px 22px 24px;
  }

  .brand-lockup {
    margin-top: 34px;
  }

  .visual-plane::after {
    background: rgba(255, 255, 255, .18);
  }

  .admin-header {
    top: 8px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .admin-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    padding: 16px;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 14px;
  }

  .admin-hero h1 {
    font-size: 24px;
  }

  .metric-grid,
  .filter-form,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  .login-shell {
    align-items: center;
    padding-top: 44px;
  }

  .login-card {
    padding: 24px 18px 22px;
    border-radius: 14px;
  }

  .card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 21px;
  }

  .form-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .page-footer {
    position: static;
    margin-top: 22px;
    color: rgba(255, 255, 255, .82);
  }

  .admin-nav {
    width: 100%;
    overflow-x: auto;
  }

  .admin-user {
    width: 100%;
    justify-content: space-between;
  }

  .employee-table table,
  .employee-table thead,
  .employee-table tbody,
  .employee-table tr,
  .employee-table td {
    display: block;
  }

  .employee-table thead {
    display: none;
  }

  .employee-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #e3eaf3;
    border-radius: 12px;
    background: #fff;
  }

  .employee-table td {
    padding: 8px 0;
    border: 0;
  }

  .row-actions {
    min-width: 0;
  }
}
