:root {
  --ink: #0b1220;
  --ink-2: #1b2740;
  --muted: #6b7890;
  --muted-2: #8e9bb2;
  --line: #e3e8f1;
  --line-2: #eef2f8;
  --bg: #f4f7fb;
  --card: #ffffff;
  --teal: #0fb99d;
  --teal-dark: #078d78;
  --teal-soft: #e6fbf6;
  --blue: #3f6fff;
  --blue-soft: #edf2ff;
  --gold: #b7791f;
  --gold-soft: #fff8e7;
  --red: #d6455d;
  --red-soft: #fff0f3;
  --violet: #7457d6;
  --violet-soft: #f2efff;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 10px 30px rgba(15, 30, 60, 0.06);
  --font: "Inter", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { flex: 0 0 auto; }

.app-shell { min-height: 100vh; }

/* Sidebar */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  background: #0a1220;
  color: #dbe4f5;
  display: flex;
  flex-direction: column;
  z-index: 60;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sidebar-logo { display: flex; align-items: center; gap: 11px; }
.sidebar-logo > span {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2ce6c4, #5b8cff);
  color: #04110e;
  font-weight: 900;
  font-size: 16px;
}
.sidebar-logo strong { display: block; font-size: 15px; letter-spacing: 0.2px; }
.sidebar-logo small { display: block; color: #7d8da8; font-size: 10px; letter-spacing: 0.9px; margin-top: 1px; }
.sidebar-close { display: none; background: none; border: 0; color: #8fa0ba; padding: 6px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 12px 20px; }
.nav-group-title {
  color: #5c6d88;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 16px 10px 7px;
  font-weight: 700;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 9px;
  color: #aab8ce;
  font-size: 13px;
  margin: 2px 0;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(44, 230, 196, 0.14), rgba(91, 140, 255, 0.08)); color: #6ff0d4; }
.nav-icon { width: 22px; display: grid; place-items: center; opacity: 0.95; }
.sidebar-foot { padding: 14px 18px 18px; border-top: 1px solid rgba(255, 255, 255, 0.07); display: grid; gap: 9px; }
.sidebar-foot a { color: #93a4bf; font-size: 11px; display: flex; align-items: center; gap: 6px; }
.sidebar-foot a:hover { color: #6ff0d4; }
.sidebar-version { color: #50617c; font-size: 10px; }
.sidebar-mask { display: none; }

/* Main */
.main-shell { margin-left: 246px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 74px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.breadcrumb { color: var(--muted-2); font-size: 11px; letter-spacing: 0.3px; }
.breadcrumb span { margin: 0 6px; color: #c0c9d8; }
.topbar h1 { font-size: 20px; margin: 1px 0 0; letter-spacing: -0.02em; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-date { color: var(--muted); font-size: 12px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 16px; border-left: 1px solid var(--line); }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e6fbf6, #edf2ff);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 13px;
  border: 1px solid #d7f4ec;
}
.user-meta strong { display: block; font-size: 12px; }
.user-meta small { display: block; color: var(--muted-2); font-size: 10px; }
.logout-form { margin: 0; }
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.menu-btn { display: none; }

.content { flex: 1; padding: 26px 30px 34px; max-width: 1500px; width: 100%; margin: 0 auto; }
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #9aa7bb;
  font-size: 10px;
  padding: 16px 30px;
  border-top: 1px solid var(--line);
  background: #fff;
}

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  border-radius: 11px;
  margin-bottom: 18px;
  font-size: 13px;
  border: 1px solid transparent;
}
.alert-success { background: var(--teal-soft); border-color: #c8f4e9; color: #087c68; }
.alert-error { background: var(--red-soft); border-color: #ffd5dc; color: #a92c40; }
.alert-info { background: var(--blue-soft); border-color: #dbe4ff; color: #2e4fbf; }
.alert-close { background: none; border: 0; color: currentColor; opacity: 0.6; padding: 2px; }
.alert-close:hover { opacity: 1; }

/* Page head */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.page-head h2 { font-size: 22px; margin: 0 0 5px; letter-spacing: -0.02em; }
.page-head p { margin: 0; color: var(--muted); font-size: 12px; }
.page-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 650;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 16px rgba(11, 18, 32, 0.12); }
.btn-primary:hover { background: #16213a; }
.btn-teal { background: linear-gradient(135deg, #18c9a9, #0fb99d); color: #fff; }
.btn-teal:hover { box-shadow: 0 8px 18px rgba(15, 185, 157, 0.22); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: #ffd5dc; }
.btn-danger:hover { background: #ffe4ea; }
.btn-sm { min-height: 31px; padding: 0 10px; font-size: 11px; border-radius: 7px; }
.btn-block { width: 100%; min-height: 44px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Cards and grids */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-main { grid-template-columns: 1.6fr 0.9fr; align-items: start; }
.grid-form { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 20px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
}
.card-head h3 { margin: 0; font-size: 14px; }
.card-head p { margin: 2px 0 0; color: var(--muted-2); font-size: 11px; }
.card-body { padding: 18px 20px; }
.card-body.tight { padding: 0; }

.stat-card {
  padding: 19px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -25px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(15, 185, 157, 0.08);
}
.stat-card.blue::after { background: rgba(63, 111, 255, 0.08); }
.stat-card.gold::after { background: rgba(183, 121, 31, 0.08); }
.stat-card.violet::after { background: rgba(116, 87, 214, 0.08); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.stat-label { color: var(--muted); font-size: 11px; }
.stat-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); }
.stat-card.blue .stat-icon { background: var(--blue-soft); color: var(--blue); }
.stat-card.gold .stat-icon { background: var(--gold-soft); color: var(--gold); }
.stat-card.violet .stat-icon { background: var(--violet-soft); color: var(--violet); }
.stat-value { font-size: 25px; font-weight: 780; letter-spacing: -0.03em; margin: 10px 0 3px; position: relative; z-index: 1; }
.stat-note { color: var(--muted-2); font-size: 10px; position: relative; z-index: 1; }
.stat-note strong { color: var(--teal-dark); font-weight: 650; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 12px; }
table.data th {
  text-align: left;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 11px 14px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fbfcff; }
table.data .strong { font-weight: 650; color: var(--ink); }
table.data .sub { color: var(--muted-2); font-size: 10px; margin-top: 1px; }
.table-actions { display: flex; gap: 5px; align-items: center; }
.table-empty { padding: 42px 20px; text-align: center; color: var(--muted-2); font-size: 12px; }
.table-empty .empty-icon { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 13px; display: grid; place-items: center; background: var(--bg); color: #a9b5c9; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 9px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--teal-soft); color: #087c68; }
.badge-blue { background: var(--blue-soft); color: #2e4fbf; }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-gray { background: #f1f4f9; color: #6b7890; }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.badge-plain { background: #f4f7fb; color: var(--muted); }
.badge-plain::before { display: none; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field > span { color: var(--muted); font-size: 11px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 82px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8fe3d4; box-shadow: 0 0 0 3px rgba(15, 185, 157, 0.1); }
.field .hint { color: var(--muted-2); font-size: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.form-inline { display: flex; gap: 8px; align-items: center; }
.form-inline select { min-height: 31px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 11px; }
.filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { min-height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px 10px; font-size: 11px; }
.search-field { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
.search-field input { border: 0; min-height: 32px; padding: 0; outline: none; font-size: 11px; width: 150px; }
.search-field svg { color: var(--muted-2); }

/* Tabs */
.tabs { display: flex; gap: 4px; padding: 4px; background: #f1f4f9; border-radius: 10px; width: fit-content; }
.tab { padding: 7px 13px; border-radius: 7px; color: var(--muted); font-size: 11px; font-weight: 600; }
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(15, 30, 60, 0.06); }

/* Dashboard */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-action { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 12px; font-weight: 600; transition: border-color 0.18s ease, transform 0.18s ease; }
.quick-action:hover { border-color: #b9e9df; transform: translateY(-1px); }
.quick-action .icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); }
.list { display: grid; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item .icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg); color: var(--muted); flex: 0 0 auto; }
.list-item .main { flex: 1; min-width: 0; }
.list-item .main strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .main small { display: block; color: var(--muted-2); font-size: 10px; }
.list-item .side { color: var(--muted-2); font-size: 10px; text-align: right; }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.amount.income { color: var(--teal-dark); }
.amount.expense { color: var(--red); }

/* Calendar */
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.calendar-title { font-size: 16px; font-weight: 750; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); gap: 1px; }
.calendar-dow { background: #fbfcfe; color: var(--muted-2); font-size: 10px; font-weight: 700; text-align: center; padding: 8px 4px; }
.calendar-cell { background: #fff; min-height: 98px; padding: 7px; position: relative; }
.calendar-cell.blank { background: #fbfcfe; }
.calendar-cell.today { background: #f4fffc; }
.calendar-cell .day { font-size: 11px; color: var(--muted); font-weight: 650; }
.calendar-cell.today .day { color: var(--teal-dark); }
.calendar-event { display: block; margin-top: 4px; padding: 3px 5px; border-radius: 4px; background: var(--blue-soft); color: #2e4fbf; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-event.teal { background: var(--teal-soft); color: #087c68; }
.calendar-event.gold { background: var(--gold-soft); color: var(--gold); }
.calendar-event.red { background: var(--red-soft); color: var(--red); }
.calendar-event.violet { background: var(--violet-soft); color: var(--violet); }
.calendar-more { font-size: 9px; color: var(--muted-2); margin-top: 2px; }
.event-list { display: grid; gap: 9px; }
.event-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.event-row:last-child { border-bottom: 0; }
.event-date { width: 42px; text-align: center; background: var(--bg); border-radius: 8px; padding: 5px 0; flex: 0 0 auto; }
.event-date strong { display: block; font-size: 15px; line-height: 1.1; }
.event-date span { display: block; font-size: 8px; color: var(--muted-2); }
.event-info strong { display: block; font-size: 11px; }
.event-info small { display: block; color: var(--muted-2); font-size: 9px; }

/* Drive */
.dropzone {
  border: 1.5px dashed #cbd6e6;
  border-radius: 12px;
  background: #fbfcfe;
  padding: 24px;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.dropzone.dragover { border-color: var(--teal); background: var(--teal-soft); }
.dropzone .dz-icon { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--teal-dark); border: 1px solid var(--line); }
.dropzone strong { display: block; font-size: 12px; }
.dropzone small { display: block; color: var(--muted-2); font-size: 10px; margin-top: 4px; }
.file-name { margin-top: 9px; color: var(--teal-dark); font-size: 10px; word-break: break-all; }
.file-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.file-icon.image { background: var(--blue-soft); color: var(--blue); }
.file-icon.video { background: var(--violet-soft); color: var(--violet); }
.file-icon.text { background: var(--teal-soft); color: var(--teal-dark); }
.file-icon.archive { background: var(--gold-soft); color: var(--gold); }
.storage-bar { height: 7px; border-radius: 99px; background: #edf1f7; overflow: hidden; margin-top: 9px; }
.storage-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #18c9a9, #3f6fff); }
.storage-meta { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 10px; margin-top: 7px; }

/* Approvals */
.approval-list { display: grid; gap: 10px; }
.approval-card { border: 1px solid var(--line); border-radius: 12px; padding: 15px; background: #fff; }
.approval-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.approval-top strong { font-size: 13px; }
.approval-meta { color: var(--muted-2); font-size: 10px; margin-top: 3px; }
.approval-reason { color: var(--muted); font-size: 11px; margin: 10px 0 0; white-space: pre-wrap; }
.approval-actions { display: flex; gap: 7px; align-items: center; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-2); }
.approval-actions form { display: flex; gap: 7px; align-items: center; }
.approval-actions input { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font-size: 10px; min-width: 160px; }
.decision-note { margin-top: 9px; padding: 8px 10px; border-radius: 7px; background: var(--bg); color: var(--muted); font-size: 10px; }

/* Empty state */
.empty { text-align: center; color: var(--muted-2); padding: 28px 16px; font-size: 11px; }
.empty strong { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }

/* Login */
.login-body {
  min-height: 100vh;
  background:
    radial-gradient(800px 500px at 10% -10%, rgba(44, 230, 196, 0.2), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(91, 140, 255, 0.2), transparent 60%),
    #060b14;
  display: grid;
  place-items: center;
  padding: 22px;
}
.login-wrap { width: min(100%, 980px); min-height: 600px; display: grid; grid-template-columns: 0.95fr 1.05fr; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); }
.login-aside {
  background:
    radial-gradient(500px 400px at 10% 0%, rgba(44, 230, 196, 0.18), transparent 65%),
    linear-gradient(160deg, #0b1524, #070d17);
  padding: 36px;
  display: flex;
  flex-direction: column;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.login-aside::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(44, 230, 196, 0.18); right: -100px; bottom: -80px; box-shadow: 0 0 0 40px rgba(44, 230, 196, 0.04), 0 0 0 80px rgba(44, 230, 196, 0.03); }
.login-brand { position: relative; z-index: 1; }
.login-quote { margin: auto 0; position: relative; z-index: 1; }
.eyebrow { color: #6ff0d4; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 750; margin-bottom: 12px; }
.login-quote h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 16px; }
.login-quote p { color: #93a4bf; font-size: 13px; line-height: 1.7; margin: 0; max-width: 310px; }
.login-points { display: grid; gap: 9px; position: relative; z-index: 1; margin-top: 26px; }
.login-points div { color: #9fb0c9; font-size: 11px; display: flex; align-items: center; gap: 8px; }
.login-points span { width: 5px; height: 5px; border-radius: 50%; background: #2ce6c4; box-shadow: 0 0 10px #2ce6c4; }
.login-foot { color: #556884; font-size: 10px; margin-top: 28px; position: relative; z-index: 1; }
.login-main { background: #fff; display: grid; place-items: center; padding: 38px; }
.login-card { width: min(100%, 360px); }
.login-head { margin-bottom: 24px; }
.login-head .eyebrow { color: var(--teal-dark); }
.login-head h2 { font-size: 25px; letter-spacing: -0.03em; margin: 0 0 7px; color: var(--ink); }
.login-head p { color: var(--muted); font-size: 12px; margin: 0; }
.login-form { display: grid; gap: 14px; }
.login-form .btn { margin-top: 4px; }
.login-note { color: var(--muted-2); font-size: 10px; margin-top: 16px; line-height: 1.6; }

/* Responsive */
@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-main, .grid-form { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.22s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .sidebar-mask.show { display: block; position: fixed; inset: 0; background: rgba(5, 10, 20, 0.45); z-index: 55; }
  .main-shell { margin-left: 0; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 18px; }
  .content { padding: 20px 18px 28px; }
  .topbar-date { display: none; }
  .user-meta { display: none; }
  .login-wrap { grid-template-columns: 1fr; max-width: 440px; }
  .login-aside { display: none; }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .page-head { flex-direction: column; }
  .topbar h1 { font-size: 17px; }
  .breadcrumb { font-size: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .calendar-cell { min-height: 72px; }
  .calendar-event { font-size: 8px; }
  .login-main { padding: 24px; }
}
