@import "tailwindcss";

/* —— Design tokens (navy shell + blue actions) —— */
:root {
  --brand: #1e3a5f;
  --brand-dark: #0f172a;
  --brand-mid: #2563eb;
  --brand-soft: #dbeafe;
  --brand-glow: rgba(37, 99, 235, 0.28);
  --sidebar: #0f172a;
  --sidebar-mid: #1e293b;
  --sidebar-text: #cbd5e1;
  --sidebar-muted: #94a3b8;
  --ink: #0f172a;
  --muted: #64748b;
  --surface: #f1f5f9;
  --card: #ffffff;
  --ring: rgba(37, 99, 235, 0.28);
  --danger: #b91c1c;
  --success: #15803d;
  --warning: #b45309;
  --info: #1d4ed8;
  --border: rgba(15, 23, 42, 0.09);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 580px at 6% -10%, rgba(191, 219, 254, 0.55) 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(226, 232, 240, 0.7) 0%, transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(219, 234, 254, 0.35) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* —— Shared primitives —— */
.ps-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), border-color 0.2s ease;
}

.ps-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.18);
}

.ps-card-static:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
  transform: none;
}

.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 10px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-spring),
    background 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.15s ease;
}

.ps-btn:hover {
  transform: translateY(-1px);
}

.ps-btn:active {
  transform: translateY(0) scale(0.98);
}

.ps-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.ps-btn-primary {
  background: linear-gradient(135deg, #3b82f6, var(--brand-mid) 45%, #1d4ed8);
  color: white;
  box-shadow: 0 8px 20px var(--brand-glow);
}

.ps-btn-primary:hover {
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.4);
}

.ps-btn-ghost {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border: 1px solid var(--border);
}

.ps-btn-ghost:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: white;
  color: var(--brand-mid);
}

.ps-input,
.ps-select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  background: white;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ps-input:hover,
.ps-select:hover {
  border-color: rgba(37, 99, 235, 0.35);
}

.ps-input:focus,
.ps-select:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px var(--ring);
}

.ps-table {
  width: 100%;
  border-collapse: collapse;
}

.ps-table th,
.ps-table td {
  padding: 0.85rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.95rem;
}

.ps-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 1;
}

.ps-table tbody tr {
  transition: background 0.15s ease;
}

.ps-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.ps-table tbody tr:last-child td {
  border-bottom: 0;
}

/* —— Badges / pills —— */
.ps-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.ps-badge-brand {
  background: var(--brand-soft);
  color: #1e40af;
}

.ps-badge-success {
  background: #dcfce7;
  color: var(--success);
}

.ps-badge-warning {
  background: #ffedd5;
  color: var(--warning);
}

.ps-badge-danger {
  background: #fee2e2;
  color: var(--danger);
}

.ps-badge-muted {
  background: #f1f5f9;
  color: var(--muted);
}

/* —— Page chrome —— */
.ps-page {
  display: grid;
  gap: 1.2rem;
}

.ps-page-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
}

.ps-page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.ps-page-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.ps-chip-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ps-chip {
  border: 1px solid var(--border);
  background: white;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.ps-chip:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--brand-mid);
}

.ps-chip-active {
  background: var(--brand-soft);
  border-color: transparent;
  color: #1e40af;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.14);
}

.ps-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

/* —— Form fields —— */
.ps-field {
  display: grid;
  gap: 0.4rem;
}

.ps-field > span,
.ps-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.02em;
}

.ps-field .req {
  color: var(--danger);
  margin-left: 2px;
}

.ps-phone-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) 1.4fr;
  gap: 0.65rem;
}

.ps-form-section {
  display: grid;
  gap: 0.85rem;
}

.ps-form-section-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(30, 58, 95, 0.12);
}

.ps-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.ps-form-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .ps-form-grid,
  .ps-phone-row {
    grid-template-columns: 1fr;
  }
}

.ps-skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease infinite;
  border-radius: 8px;
}

/* —— Shell / dark navy sidebar —— */
.ps-shell {
  display: grid;
  grid-template-columns: 268px 1fr;
  min-height: 100vh;
}

.ps-sidebar {
  padding: 1.1rem 0.75rem 1.25rem;
  border-right: 0;
  background:
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-mid) 55%, #0b1220 100%);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
  color: var(--sidebar-text);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.18);
}

.ps-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  padding: 0.45rem 0.55rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.ps-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
}

.ps-brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: #f8fafc;
  line-height: 1.15;
}

.ps-brand-tag {
  color: var(--sidebar-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ps-nav-group-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.6rem 0.25rem;
  color: var(--sidebar-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.ps-nav-group-btn:hover {
  color: #e2e8f0;
}

.ps-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--sidebar-text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s var(--ease-out);
}

.ps-nav-link:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #f8fafc;
}

.ps-nav-link-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(29, 78, 216, 0.9));
  color: #fff;
  font-weight: 650;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.ps-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.ps-nav-link-active .ps-nav-icon {
  opacity: 1;
}

.ps-nav-dot {
  display: none;
}

.ps-user-card {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}

.ps-user-card .ps-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
}

.ps-user-card .ps-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(147, 197, 253, 0.4);
  color: #fff;
}

.ps-main {
  padding: 1.4rem 1.6rem 2.5rem;
  min-width: 0;
  animation: fade-in 0.35s var(--ease-out) both;
}

.ps-loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.ps-loading-pulse {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  animation: pulse-scale 1.2s var(--ease-out) infinite;
  margin: 0 auto 1rem;
}

/* —— Login —— */
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.login-brand-panel {
  position: relative;
  overflow: hidden;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(800px 500px at 18% 18%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(600px 400px at 90% 80%, rgba(30, 58, 95, 0.5), transparent 50%),
    linear-gradient(145deg, #0f172a 0%, #1e3a5f 48%, #1e293b 100%);
}

.login-brand-panel::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 40%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: float-orb 12s ease-in-out infinite;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% 10% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  animation: float-orb 9s ease-in-out infinite reverse;
}

.login-form-panel {
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.login-form-card {
  width: min(420px, 100%);
  padding: 2.1rem;
}

.login-feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  opacity: 0.92;
}

.login-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* —— Dashboard —— */
.dash-home {
  gap: 1.25rem;
}

.dash-greeting {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.45rem;
}

.dash-section-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0.75rem;
}

.dash-tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 14px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--tile-accent, var(--brand-mid));
  padding: 1.05rem 0.75rem 0.95rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s var(--ease-spring),
    box-shadow 0.22s ease,
    border-color 0.2s ease;
  animation: rise-in 0.5s var(--ease-out) both;
}

.dash-tile::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tile-accent, var(--brand-mid)) 12%, transparent);
  pointer-events: none;
}

.dash-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--tile-accent, var(--brand-mid)) 35%, var(--border));
}

.dash-tile-soft {
  border-left: 0;
  border-top-width: 3px;
}

.dash-tile-count {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.dash-tile-label {
  position: relative;
  z-index: 1;
  margin-top: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.25;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.95fr;
  gap: 1rem;
  align-items: start;
}

.dash-right-col {
  display: grid;
  gap: 0.9rem;
}

.dash-panel {
  padding: 1.05rem 1.15rem 1.2rem;
  animation: rise-in 0.55s var(--ease-out) both;
}

.dash-panel-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-bottom: 0.55rem;
}

.dash-table th.center,
.dash-table td.center {
  text-align: center;
}

.dash-total-row td {
  font-weight: 700;
  background: rgba(37, 99, 235, 0.04);
}

.dash-person {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dash-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-soft), #93c5fd);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e40af;
  flex-shrink: 0;
}

.dash-export-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  transition: transform 0.15s var(--ease-spring);
}

.dash-export-btn:hover {
  transform: scale(1.08);
}

.dash-more {
  display: block;
  margin: 0.75rem auto 0;
  background: none;
  border: 0;
  color: var(--brand-mid);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.dash-bank-total {
  font-family: var(--font-display);
  font-size: 2.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.dash-bank-today {
  font-size: 0.85rem;
  color: #16a34a;
  font-family: var(--font-body);
  font-weight: 600;
}

.dash-bank-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.dash-bank-btn {
  display: grid;
  place-items: center;
  padding: 0.85rem 0.6rem;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}

.dash-bank-btn:hover {
  transform: translateY(-2px);
}

.dash-bank-btn-blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.dash-bank-btn-green {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.28);
}

.dash-total-badge {
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.dash-total-badge:hover {
  transform: scale(1.04);
}

.dash-type-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.dash-type-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-left: 4px solid var(--type-accent, var(--brand-mid));
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s ease;
}

.dash-type-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* —— Reports hub cards —— */
.ps-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.ps-report-card {
  padding: 1.25rem;
  display: grid;
  gap: 0.5rem;
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.07), rgba(255, 255, 255, 0.98));
  position: relative;
  overflow: hidden;
}

.ps-report-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-mid), var(--brand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.ps-report-card:hover::before {
  transform: scaleX(1);
}

.ps-report-card:hover {
  transform: translateY(-3px);
}

/* —— Allocation —— */
.alloc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 0.9rem;
  align-items: start;
}

.alloc-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
  align-items: center;
}

.alloc-rail {
  padding: 1.1rem;
  position: sticky;
  top: 1rem;
}

.alloc-btn {
  width: 100%;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.28);
}

.alloc-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.alloc-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.alloc-alert-ok {
  background: #dcfce7;
  color: #166534;
}

.alloc-alert-err {
  background: #fee2e2;
  color: #991b1b;
}

/* —— Motion —— */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes pulse-scale {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.92);
    opacity: 0.85;
  }
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-24px, 18px);
  }
}

@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.rise {
  animation: rise-in 0.45s var(--ease-out) both;
}

.rise-stagger > *:nth-child(1) {
  animation-delay: 0.04s;
}
.rise-stagger > *:nth-child(2) {
  animation-delay: 0.08s;
}
.rise-stagger > *:nth-child(3) {
  animation-delay: 0.12s;
}
.rise-stagger > *:nth-child(4) {
  animation-delay: 0.16s;
}
.rise-stagger > *:nth-child(5) {
  animation-delay: 0.2s;
}
.rise-stagger > *:nth-child(6) {
  animation-delay: 0.24s;
}
.rise-stagger > *:nth-child(7) {
  animation-delay: 0.28s;
}
.rise-stagger > *:nth-child(8) {
  animation-delay: 0.32s;
}
.rise-stagger > *:nth-child(9) {
  animation-delay: 0.36s;
}
.rise-stagger > *:nth-child(10) {
  animation-delay: 0.4s;
}

.ps-bar {
  transform-origin: left center;
  animation: bar-grow 0.7s var(--ease-out) both;
}

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

/* —— Responsive —— */
@media (max-width: 1100px) {
  .dash-tiles {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .ps-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .ps-shell {
    grid-template-columns: 1fr;
  }
  .ps-sidebar {
    position: relative;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-brand-panel {
    min-height: 220px;
    padding: 2rem;
  }
  .alloc-layout {
    grid-template-columns: 1fr;
  }
  .alloc-rail {
    position: static;
  }
}

@media (max-width: 640px) {
  .dash-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-tile-count {
    font-size: 1.55rem;
  }
  .ps-report-grid {
    grid-template-columns: 1fr;
  }
  .ps-main {
    padding: 1rem 1rem 2rem;
  }
}
