/* ============================================================
   TimeTrack V1 — Editorial / corporate light theme
   Lucenti Group orange accent on charcoal + cream
   ============================================================ */

:root {
  --orange:        #E89A1E;
  --orange-dark:   #B87815;
  --orange-soft:   #FCEFD9;
  --ink:           #1A1A1A;
  --ink-2:         #4A4A4A;
  --ink-3:         #6B6B6B;
  --ink-4:         #999999;
  --bg:            #FAFAF7;
  --panel:         #FFFFFF;
  --line:          #E8E5DE;
  --line-soft:     #F2EFE8;
  --green:         #1F8A3F;
  --green-soft:    rgba(31,138,63,.08);
  --green-line:    rgba(31,138,63,.25);
  --red:           #C8323A;
  --red-soft:      rgba(200,50,58,.06);
  --red-line:      rgba(200,50,58,.25);
  --purple:        #6E48A6;
  --purple-soft:   rgba(110,72,166,.08);
  --purple-line:   rgba(110,72,166,.25);
  --amber-soft:    rgba(232,154,30,.08);
  --amber-line:    rgba(232,154,30,.3);
  --shadow-1:      0 1px 2px rgba(20,20,20,.04), 0 1px 3px rgba(20,20,20,.05);
  --shadow-2:      0 8px 24px rgba(20,20,20,.06), 0 2px 6px rgba(20,20,20,.04);
  --shadow-3:      0 8px 40px rgba(20,20,20,.08), 0 2px 12px rgba(20,20,20,.04);
  --radius:        14px;
  --radius-sm:     8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: 15px;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-2); }
code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
}
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- Nav ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 24px;
  position: sticky; top: 0; z-index: 50;
}
.topbar .brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.topbar .brand svg { height: 36px; width: auto; }
.topbar .nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2px;
  align-items: center;
  flex: 1;
}
.topbar .nav li.sep {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 6px;
}
.topbar .nav li.right { margin-left: auto; }
.topbar .nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: background .12s, color .12s;
}
.topbar .nav a:hover {
  background: var(--line-soft);
  color: var(--ink);
}
.topbar .nav a.active {
  color: var(--ink);
  background: var(--line-soft);
}
.topbar .nav a.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -10px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* ---------- Page container ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px;
}

/* ---------- Flash messages ---------- */
.flash {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 14px;
  border: 1px solid;
}
.flash a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.flash.success { background: var(--green-soft); color: var(--green);  border-color: var(--green-line); }
.flash.error   { background: var(--red-soft);   color: var(--red);    border-color: var(--red-line); }
.flash.info,
.flash.warning { background: var(--amber-soft); color: var(--orange-dark); border-color: var(--amber-line); }

/* ---------- Page header ---------- */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.page-head p {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 14px;
}
.page-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

/* ---------- Live pill (dashboard) ---------- */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-soft);
  color: var(--green);
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--green-line);
}
.live-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: .5; }
}

/* ---------- Stat grid ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-1);
}
.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.stat > div:not(.stat-num) {
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.stat-late .stat-num   { color: var(--red); }

/* ---------- Panels ---------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.panel > h2 { padding: 18px 22px 0; margin: 0; font-size: 16px; font-weight: 600; }
.panel > p,
.panel > form,
.panel > .universal-qr,
.panel > script { padding-left: 22px; padding-right: 22px; }
.panel > p { color: var(--ink-3); }
.panel > form { padding-bottom: 22px; }
.panel > p:last-child,
.panel > form:last-child { padding-bottom: 22px; }
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 600; }

/* ---------- Data table ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  text-align: left;
  padding: 13px 22px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  font-weight: 600;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.data-table td strong { color: var(--ink); font-weight: 600; }
.data-table td code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--ink-2);
  font-weight: 500;
}

/* ---------- Status pills ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid;
}
.status-pill.working    { color: var(--green);     background: var(--green-soft);  border-color: var(--green-line); }
.status-pill.on_break   { color: var(--orange-dark); background: var(--amber-soft); border-color: var(--amber-line); }
.status-pill.on_lunch   { color: var(--purple);    background: var(--purple-soft); border-color: var(--purple-line); }
.status-pill.clocked_out{ color: var(--ink-3);     background: var(--bg);          border-color: var(--line); }
.status-pill.not_in     { color: var(--ink-4);     background: var(--bg);          border-color: var(--line); }
.late-note { color: var(--red); font-size: 13px; font-weight: 500; }

/* ---------- Forms ---------- */
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number],
input[type=search], input[type=time], input:not([type]), select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,154,30,.15);
}
label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
label > input,
label > select,
label > textarea {
  margin-top: 6px;
  font-weight: 400;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 0; }
.inline-form { display: inline-block; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--bg); border-color: var(--ink-4); color: var(--ink); }
.btn.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn.primary:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn.ghost,
.btn.ghost-inverse {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
}
.btn.ghost:hover,
.btn.ghost-inverse:hover { background: var(--line-soft); color: var(--ink); }
.btn.danger {
  border-color: var(--red);
  color: var(--red);
  background: #fff;
}
.btn.danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn.block { display: flex; width: 100%; }
.btn.small {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}

/* ---------- Login page ---------- */
body.login-page {
  background:
    radial-gradient(ellipse at top right, rgba(232,154,30,.08), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(232,154,30,.04), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
body.login-page .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow-2);
  text-align: center;
}
.login-card .login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.login-card .login-logo svg { max-height: 64px; max-width: 240px; height: auto; }
.login-card h1 {
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.login-card .muted { font-size: 14px; margin: 0 0 28px; }
.login-card form { text-align: left; }
.login-card label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.login-card .btn { width: 100%; margin-top: 8px; padding: 12px 16px; }

/* ---------- Settings — QR poster ---------- */
.universal-qr {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 6px 0 12px;
}
@media (max-width: 700px) {
  .universal-qr { grid-template-columns: 1fr; }
}
.qr-print-area { text-align: center; }
.qr-print-area h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 12px;
}
.qr-img {
  width: 200px; height: 200px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 4px;
}
.qr-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.qr-actions .btn { align-self: stretch; max-width: 220px; }
.qr-actions .muted { font-size: 13px; margin-top: 4px; }

/* ---------- Reports ---------- */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.report-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-1);
}
.report-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.report-card .muted { font-size: 13px; margin-bottom: 16px; }
.report-actions { display: flex; gap: 8px; }

/* ---------- Modals (HTML5 <dialog>) ---------- */
dialog.modal {
  border: none;
  padding: 0;
  background: #fff;
  border-radius: var(--radius);
  max-width: 520px;
  width: calc(100% - 48px);
  box-shadow: var(--shadow-3);
  color: var(--ink);
}
dialog.modal::backdrop {
  background: rgba(20,20,20,.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
dialog.modal > form,
dialog.modal > div {
  padding: 28px;
}
dialog.modal h2,
dialog.modal h3 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 600;
}
dialog.modal label { margin-bottom: 14px; }
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
/* Checkbox-row label: keep label text + checkbox on same line */
dialog.modal label.row,
label.row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
}
dialog.modal label.row input[type=checkbox],
label.row input[type=checkbox] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid transparent;
  line-height: 1.4;
}
.badge.active,
.badge.ok       { color: var(--green); background: var(--green-soft); border-color: var(--green-line); }
.badge.inactive,
.badge.muted    { color: var(--ink-3); background: var(--bg);         border-color: var(--line); }
.badge.danger   { color: var(--red);   background: var(--red-soft);   border-color: var(--red-line); }

/* PIN inline display in employees table */
.pin-display {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .04em;
  border: 1px solid var(--line-soft);
  vertical-align: middle;
  margin-right: 6px;
}

/* ---------- Activity log event-type badges ----------
   Used as `class="badge event-clock_in"` etc. */
.badge[class*="event-"] { background: var(--bg); border-color: var(--line); }
.badge.event-clock_in    { color: var(--green);       background: var(--green-soft);  border-color: var(--green-line); }
.badge.event-clock_out   { color: var(--ink-2);       background: var(--bg);          border-color: var(--line); }
.badge.event-break_start,
.badge.event-break_end   { color: var(--orange-dark); background: var(--amber-soft);  border-color: var(--amber-line); }
.badge.event-lunch_start,
.badge.event-lunch_end   { color: var(--purple);      background: var(--purple-soft); border-color: var(--purple-line); }

/* ============================================================
   Staff clock-in screen (/clock) - phone first
   ============================================================ */
body.clock-page {
  background: linear-gradient(135deg, var(--bg) 0%, #f0ede4 100%);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
.clock-shell {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.clock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
}
.clock-brand { display: flex; align-items: center; }
.clock-brand svg { height: 32px; width: auto; }
.clock-clock {
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
}

.geo-banner {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-align: center;
  font-weight: 500;
  border: 1px solid;
}
.geo-banner.hidden { display: none; }
.geo-banner.ok   { color: var(--green);       background: var(--green-soft);  border-color: var(--green-line); }
.geo-banner.warn { color: var(--orange-dark); background: var(--amber-soft);  border-color: var(--amber-line); }
.geo-banner.err  { color: var(--red);         background: var(--red-soft);    border-color: var(--red-line); }

.clock-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.clock-card.hidden { display: none; }
.clock-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -.01em;
}
.clock-card h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}
.clock-card .muted {
  text-align: center;
  margin: 0 0 22px;
  color: var(--ink-3);
  font-size: 14px;
}

/* PIN dots */
.pin-dots {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 8px 0 24px;
}
.pin-dots .dot {
  width: 18px; height: 18px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  transition: background .15s, border-color .15s, transform .1s;
}
.pin-dots .dot.filled {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.1);
}

/* PIN pad */
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 320px;
}
.pin-key {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  font-size: 22px;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: background .1s, transform .05s;
  -webkit-user-select: none;
  user-select: none;
}
.pin-key:hover { background: var(--line-soft); }
.pin-key:active { transform: scale(.96); background: var(--bg); }
.pin-key.empty { visibility: hidden; }
.pin-key.backspace { color: var(--ink-3); font-size: 18px; }
.pin-error {
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
  margin: 14px 0 0;
  min-height: 22px;
  text-align: center;
}

/* Action panel (after PIN) */
.hello { text-align: center; margin-bottom: 18px; }
.hello p.muted { margin: 0 0 4px; color: var(--ink-3); font-size: 14px; }
.hello h1, .hello #hello-name {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -.01em;
}
.state-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  margin: 10px 0 6px;
  border: 1px solid var(--green-line);
}
.state-pill[data-state="on_break"]   { background: var(--amber-soft);  color: var(--orange-dark); border-color: var(--amber-line); }
.state-pill[data-state="on_lunch"]   { background: var(--purple-soft); color: var(--purple);      border-color: var(--purple-line); }
.state-pill[data-state="clocked_out"]{ background: var(--bg);          color: var(--ink-3);       border-color: var(--line); }
.state-pill[data-state="out"]        { background: var(--bg);          color: var(--ink-4);       border-color: var(--line); }

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}
.action-btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 18px 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  transition: transform .05s, opacity .15s, filter .15s;
  -webkit-tap-highlight-color: transparent;
}
.action-btn:active { transform: scale(.97); }
.action-btn:disabled { opacity: .35; cursor: not-allowed; }
.action-btn:not(:disabled):hover { filter: brightness(1.06); }
.action-btn.action-in    { background: var(--green); }
.action-btn.action-out   { background: var(--ink); }
.action-btn.action-break { background: var(--orange); }
.action-btn.action-lunch { background: var(--purple); }
.action-btn.is-loading {
  opacity: .6;
  pointer-events: none;
}

/* Confirmation panel */
.clock-card .confirm-mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 8px auto 14px;
  border: 2px solid var(--green-line);
}
.clock-card h2#confirm-label {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  text-align: center;
}
.confirm-name { margin: 0 0 6px; text-align: center; font-size: 16px; font-weight: 500; }
.confirm-time {
  font-size: 36px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 4px;
  text-align: center;
  letter-spacing: -.01em;
}

.btn.ghost-inverse {
  margin-top: 16px;
}

/* Shake animation when bad PIN */
.shake { animation: shake .35s ease-in-out; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

/* ---------- Misc utility ---------- */
.hidden { display: none !important; }

/* ---------- Print (for QR poster) ---------- */
@media print {
  .topbar, .panel-head, .qr-actions, .flash, .btn { display: none !important; }
  body { background: #fff; }
  .universal-qr { grid-template-columns: 1fr; }
  .qr-print-area { padding: 60px; text-align: center; }
  .qr-print-area .qr-img { width: 80vw; height: auto; max-width: 600px; }
  .qr-print-area h3 { font-size: 28px; color: #000; letter-spacing: 0; text-transform: none; margin-bottom: 30px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .topbar { padding: 0 14px; gap: 10px; height: auto; min-height: 60px; flex-wrap: wrap; padding: 12px 14px; }
  .topbar .nav { gap: 0; flex-wrap: wrap; }
  .topbar .nav a { padding: 6px 10px; font-size: 13px; }
  .topbar .nav li.sep { display: none; }
  .topbar .nav li.right { margin-left: 0; flex-basis: 100%; padding-top: 4px; border-top: 1px solid var(--line-soft); margin-top: 4px; }
  .container { padding: 18px 14px; }
  .page-head h1 { font-size: 22px; }
  .stat { padding: 14px; }
  .stat-num { font-size: 26px; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .login-card { padding: 32px 24px; }
}
