/* ==========================================================================
   LiangLab ARP Portal — Google Material Design 3 / Workspace Aesthetic
   ========================================================================== */

:root {
  --m3-bg: #f8fafd;
  --m3-surface: #ffffff;
  --m3-surface-tonal: #f0f4f9;
  --m3-surface-hover: #e9eef6;
  --m3-outline: #e0e3e7;
  --m3-outline-strong: #c4c7c5;

  --m3-on-surface: #1f1f1f;
  --m3-on-variant: #444746;
  --m3-muted: #747775;

  --m3-primary: #0b57d0;
  --m3-primary-hover: #0842a0;
  --m3-primary-container: #d3e3fd;
  --m3-on-primary-container: #041e49;

  --m3-ok: #137333;
  --m3-ok-bg: #e6f4ea;
  --m3-warn: #b06000;
  --m3-warn-bg: #fef7e0;
  --m3-info: #0b57d0;
  --m3-info-bg: #e8f0fe;
  --m3-danger: #b3261e;
  --m3-danger-bg: #fce8e6;
  --m3-neutral: #444746;
  --m3-neutral-bg: #eceff4;

  --m3-ease: cubic-bezier(0.2, 0, 0, 1);
  --m3-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px 1px rgba(0, 0, 0, 0.04);
  --m3-shadow-2: 0 2px 6px 2px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.08);
  --m3-shadow-3: 0 8px 28px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--m3-bg);
  color: var(--m3-on-surface);
  font-family: "Google Sans", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hidden { display: none !important; }
.muted { color: var(--m3-muted); font-size: 13px; margin: 0; }
.ic { width: 17px; height: 17px; flex-shrink: 0; }

.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-md { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }

/* View Entrance Motion (M3 Emphasized Decelerate) */
.view-section {
  animation: m3Enter 220ms var(--m3-ease);
}
@keyframes m3Enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Linear Progress Indicator */
.m3-linear-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--m3-primary-container);
  overflow: hidden;
}
.m3-linear-progress::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: var(--m3-primary);
  border-radius: 3px;
  animation: m3Progress 1.1s var(--m3-ease) infinite;
}
@keyframes m3Progress {
  0% { left: -40%; width: 35%; }
  50% { left: 30%; width: 55%; }
  100% { left: 100%; width: 35%; }
}

/* Google Material 3 Bottom Snackbar */
.snackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #303134;
  color: #f8fafd;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--m3-shadow-3);
  max-width: calc(100vw - 32px);
  animation: snackIn 180ms var(--m3-ease);
}
@keyframes snackIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Material 3 Confirm Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 140ms var(--m3-ease);
}
.modal-surface {
  width: 100%;
  max-width: 380px;
  background: var(--m3-surface);
  border-radius: 28px;
  padding: 24px 24px 20px;
  box-shadow: var(--m3-shadow-3);
  animation: modalPop 180ms var(--m3-ease);
}
.modal-title { margin: 0 0 10px; font-size: 19px; font-weight: 600; color: var(--m3-on-surface); }
.modal-desc { margin: 0 0 22px; font-size: 14.5px; color: var(--m3-on-variant); line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Login Cover (Google Accounts Inspired) */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(600px circle at 20% 10%, rgba(11, 87, 208, 0.06), transparent 60%),
    radial-gradient(500px circle at 85% 90%, rgba(107, 78, 255, 0.06), transparent 60%),
    var(--m3-surface-tonal);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--m3-surface);
  border-radius: 28px;
  padding: 36px 32px 32px;
  box-shadow: var(--m3-shadow-2);
  border: 1px solid rgba(224, 227, 231, 0.7);
  animation: m3Enter 260ms var(--m3-ease);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand-logo-sm { width: 30px; height: 30px; }
.auth-brand-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--m3-on-surface);
}

/* Top Navigation Bar (Google Workspace Clean Surface) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(248, 250, 253, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--m3-outline);
}
.topbar-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px 4px 4px;
  border-radius: 12px;
  transition: background 150ms var(--m3-ease);
}
.brand-trigger:hover { background: var(--m3-surface-hover); }
.brand-title {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--m3-on-surface);
}

.nav-rail {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--m3-surface-tonal);
  padding: 4px;
  border-radius: 999px;
}
.nav-pill {
  border: none;
  background: transparent;
  color: var(--m3-on-variant);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 150ms var(--m3-ease), color 150ms var(--m3-ease), transform 120ms var(--m3-ease);
}
.nav-pill:hover { background: rgba(11, 87, 208, 0.08); color: var(--m3-on-surface); }
.nav-pill:active { transform: scale(0.97); }
.nav-pill.active {
  background: var(--m3-primary-container);
  color: var(--m3-on-primary-container);
  font-weight: 600;
}

.nav-user { display: flex; align-items: center; gap: 6px; }
.avatar-chip {
  border: 1px solid var(--m3-outline);
  background: var(--m3-surface);
  color: var(--m3-on-surface);
  padding: 4px 12px 4px 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms var(--m3-ease), border-color 150ms var(--m3-ease);
}
.avatar-chip:hover { background: var(--m3-surface-tonal); border-color: var(--m3-outline-strong); }
.avatar-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--m3-primary-container);
  color: var(--m3-on-primary-container);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--m3-on-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms var(--m3-ease), color 150ms var(--m3-ease), transform 120ms var(--m3-ease);
}
.icon-btn:hover { background: var(--m3-surface-hover); color: var(--m3-on-surface); }
.icon-btn:active { transform: scale(0.93); }

/* Container */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 72px;
}

/* Hero & Surfaces */
.hero-surface {
  background: var(--m3-surface);
  border-radius: 24px;
  padding: 22px 24px;
  border: 1px solid var(--m3-outline);
  box-shadow: var(--m3-shadow-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-copy h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-copy p { margin: 0; font-size: 13.5px; color: var(--m3-on-variant); }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.surface-card {
  background: var(--m3-surface);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--m3-outline);
  box-shadow: var(--m3-shadow-1);
}
.surface-card-highlight {
  border-color: #a8c7fa;
  box-shadow: 0 2px 12px rgba(11, 87, 208, 0.06);
}
.tonal-panel {
  background: var(--m3-surface-tonal);
  border-radius: 16px;
  padding: 16px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.section-heading { margin: 4px 4px 2px; font-size: 14px; font-weight: 600; color: var(--m3-on-variant); }
.page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scope-pill {
  font-size: 13px;
  color: var(--m3-on-primary-container);
  background: var(--m3-surface-tonal);
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.5;
}

/* Filter Chips Row */
.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chip-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  border: 1px solid var(--m3-outline);
  background: var(--m3-surface);
  color: var(--m3-on-variant);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms var(--m3-ease);
}
.filter-chip:hover { background: var(--m3-surface-tonal); }
.filter-chip.active {
  background: var(--m3-primary-container);
  border-color: transparent;
  color: var(--m3-on-primary-container);
  font-weight: 600;
}

/* Banners & Alerts */
.m3-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.m3-banner-warn { background: var(--m3-warn-bg); color: var(--m3-warn); }
.m3-banner-ok { background: var(--m3-ok-bg); color: var(--m3-ok); }
.m3-banner-info { background: var(--m3-info-bg); color: var(--m3-info); }
.inline-alert {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
}
.inline-alert-danger { background: var(--m3-danger-bg); color: var(--m3-danger); }

/* Material 3 Form Fields */
.m3-field { display: flex; flex-direction: column; gap: 8px; }
.m3-label { font-size: 14px; font-weight: 600; color: var(--m3-on-surface); }
.m3-hint { font-size: 12.5px; color: var(--m3-muted); }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.count-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--m3-on-variant);
  background: var(--m3-surface-tonal);
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.count-pill.over { background: var(--m3-danger-bg); color: var(--m3-danger); }

input[type="text"], input[type="password"], input[type="email"], textarea, select {
  width: 100%;
  border: 1px solid var(--m3-outline-strong);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--m3-on-surface);
  background: var(--m3-surface);
  outline: none;
  transition: border-color 150ms var(--m3-ease), box-shadow 150ms var(--m3-ease), background 150ms var(--m3-ease);
}
input:hover, textarea:hover, select:hover { border-color: #747775; }
input:focus, textarea:focus, select:focus {
  border-color: var(--m3-primary);
  box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.14);
}
textarea { resize: vertical; line-height: 1.6; }

/* Material 3 Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms var(--m3-ease), box-shadow 150ms var(--m3-ease), transform 110ms var(--m3-ease), color 150ms var(--m3-ease);
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.52; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 26px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

.btn-primary { background: var(--m3-primary); color: #ffffff; }
.btn-primary:hover:not(:disabled) { background: var(--m3-primary-hover); }
.btn-elevated { box-shadow: 0 1px 3px rgba(11, 87, 208, 0.28), 0 2px 6px rgba(11, 87, 208, 0.14); }
.btn-elevated:hover:not(:disabled) { box-shadow: 0 2px 6px rgba(11, 87, 208, 0.34), 0 4px 12px rgba(11, 87, 208, 0.18); }

.btn-tonal { background: var(--m3-surface-tonal); color: var(--m3-on-surface); }
.btn-tonal:hover:not(:disabled) { background: var(--m3-surface-hover); }

.btn-outlined { background: var(--m3-surface); border-color: var(--m3-outline-strong); color: var(--m3-on-surface); }
.btn-outlined:hover:not(:disabled) { background: var(--m3-surface-tonal); }

.btn-text { background: transparent; color: var(--m3-on-variant); padding-left: 12px; padding-right: 14px; }
.btn-text:hover:not(:disabled) { background: var(--m3-surface-hover); color: var(--m3-on-surface); }

.btn-warn { background: var(--m3-warn-bg); color: var(--m3-warn); }
.btn-warn:hover:not(:disabled) { background: #fcefc7; }
.btn-danger-text { background: transparent; color: var(--m3-danger); }
.btn-danger-text:hover:not(:disabled) { background: var(--m3-danger-bg); }

.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.action-bar-dual {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 12px;
  padding-top: 4px;
}
.form-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* Google Drive-Style Dropzone & File Chips */
.dropzone {
  border: 1.5px dashed #a8c7fa;
  border-radius: 20px;
  padding: 28px 18px;
  text-align: center;
  background: var(--m3-surface-tonal);
  cursor: pointer;
  transition: background 180ms var(--m3-ease), border-color 180ms var(--m3-ease), transform 140ms var(--m3-ease);
}
.dropzone:hover { background: #e8f0fe; border-color: var(--m3-primary); }
.dropzone.dragover { background: var(--m3-primary-container); border-color: var(--m3-primary); transform: scale(1.01); }
.dropzone-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--m3-surface);
  color: var(--m3-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--m3-shadow-1);
}
.dropzone-title { font-weight: 600; font-size: 15px; color: var(--m3-on-surface); }
.dropzone-sub { font-size: 13px; color: var(--m3-on-variant); margin-top: 4px; }

.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--m3-surface-tonal);
  transition: background 140ms var(--m3-ease);
  flex-wrap: wrap;
}
.file-row:hover { background: var(--m3-surface-hover); }
.file-row.added { background: #e8f0fe; }
.file-row.replaced { background: var(--m3-ok-bg); }
.file-row.removed { background: var(--m3-danger-bg); opacity: 0.72; }
.file-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.file-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--m3-surface);
}
.file-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--m3-surface);
  color: var(--m3-primary);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.file-meta { display: flex; flex-direction: column; min-width: 0; }
.file-name { font-weight: 600; font-size: 14px; word-break: break-all; color: var(--m3-on-surface); }
.file-sub { font-size: 12px; color: var(--m3-muted); }
.file-actions { display: flex; align-items: center; gap: 4px; }

/* Semantic M3 Status Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-info { background: var(--m3-info-bg); color: var(--m3-info); }
.badge-warn { background: var(--m3-warn-bg); color: var(--m3-warn); }
.badge-ok { background: var(--m3-ok-bg); color: var(--m3-ok); }
.badge-done { background: var(--m3-primary-container); color: var(--m3-on-primary-container); }
.badge-danger { background: var(--m3-danger-bg); color: var(--m3-danger); }
.badge-muted { background: var(--m3-neutral-bg); color: var(--m3-neutral); }

/* Case & Feedback Cards */
.case-list { display: flex; flex-direction: column; gap: 10px; }
.case-item {
  background: var(--m3-surface);
  border: 1px solid var(--m3-outline);
  border-radius: 20px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 150ms var(--m3-ease), box-shadow 180ms var(--m3-ease), border-color 150ms var(--m3-ease), transform 120ms var(--m3-ease);
}
.case-item:hover {
  border-color: #a8c7fa;
  box-shadow: var(--m3-shadow-2);
  transform: translateY(-1px);
}
.case-item:active { transform: scale(0.992); }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.case-title { font-weight: 600; font-size: 16px; color: var(--m3-on-surface); letter-spacing: -0.01em; }
.case-meta {
  font-size: 13px;
  color: var(--m3-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-sep { opacity: 0.45; }
.case-preview {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--m3-surface-tonal);
  font-size: 13.5px;
  color: var(--m3-on-variant);
  white-space: pre-wrap;
  line-height: 1.55;
}

/* Connected Google Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}
.step-node {
  flex: 1;
  min-width: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--m3-surface-tonal);
  color: var(--m3-muted);
  font-size: 13px;
  font-weight: 500;
}
.step-node.done { background: var(--m3-ok-bg); color: var(--m3-ok); font-weight: 600; }
.step-node.current { background: var(--m3-primary-container); color: var(--m3-on-primary-container); font-weight: 600; }
.step-arrow { color: var(--m3-outline-strong); font-size: 13px; flex-shrink: 0; }

/* PI Feedback Callout */
.reply-callout {
  border-radius: 18px;
  padding: 16px 18px;
  background: var(--m3-warn-bg);
}
.reply-callout.tone-ok { background: var(--m3-ok-bg); }
.reply-callout.tone-danger { background: var(--m3-danger-bg); }
.reply-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 6px;
  color: var(--m3-on-surface);
}
.reply-body { white-space: pre-wrap; font-size: 14.5px; line-height: 1.65; color: var(--m3-on-surface); }

/* Accordions & Timeline */
details { padding: 0; }
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--m3-on-surface);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "展开";
  font-size: 12.5px;
  font-weight: 500;
  color: var(--m3-primary);
}
details[open] summary::after { content: "收起"; }

.timeline { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding-left: 6px; }
.tl-item {
  border-left: 2px solid var(--m3-outline);
  padding: 0 0 2px 14px;
  font-size: 13.5px;
}
.tl-item.pi { border-left-color: var(--m3-primary); }
.tl-time { font-size: 12px; color: var(--m3-muted); }
.tl-msg { white-space: pre-wrap; margin-top: 2px; color: var(--m3-on-surface); }

/* Skeleton Shimmer */
.skeleton-card {
  height: 92px;
  border-radius: 20px;
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafd 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Empty State */
.empty-state {
  background: var(--m3-surface);
  border: 1px dashed var(--m3-outline-strong);
  border-radius: 24px;
  text-align: center;
  padding: 44px 20px;
  color: var(--m3-on-variant);
  font-size: 14.5px;
}

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--m3-outline); }
th { color: var(--m3-muted); font-weight: 600; font-size: 12.5px; }

/* Responsive Polish */
@media (max-width: 640px) {
  .topbar-inner { padding: 8px 12px; gap: 8px; }
  .brand-title { display: none; }
  .nav-pill { padding: 6px 11px; font-size: 13px; }
  .nav-pill .ic { display: none; }
  .avatar-name { display: none; }
  .avatar-chip { padding: 3px; }
  .container { padding: 16px 12px 56px; }
  .hero-surface, .surface-card { padding: 18px 16px; border-radius: 20px; }
  .auth-card { padding: 28px 22px; }
}
