:root {
  --brand: #ef5000;
  --brand-dark: #c94300;
  --brand-light: rgba(239, 80, 0, .08);
  --canvas: #f3f1ee;
  --ink: #14161a;
  --muted: rgba(20, 22, 26, .55);
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .78);
  --line: rgba(20, 22, 26, .08);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --rise: .55s var(--ease-out);
}

html { color-scheme: light; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(1200px 480px at 110% -10%, rgba(239, 80, 0, .18), transparent 55%),
    radial-gradient(800px 360px at -10% 10%, rgba(255, 180, 120, .22), transparent 50%),
    var(--canvas);
  color: var(--ink);
  letter-spacing: -.015em;
}

#app { min-height: 100dvh; }

.login-page {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(239, 80, 0, .55), transparent 50%),
    linear-gradient(165deg, #1a1410 0%, #3b1d10 48%, #ef5000 140%);
}
.login-card {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
  animation: uiRise .7s var(--ease-out) both;
}

.app-layout { background: transparent; }
.main-area { background: transparent; }

.topbar {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.topbar-title { letter-spacing: -.04em; }
.topbar-subtitle { opacity: .62; }

.sidebar {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(28px) saturate(1.35);
  border-right-color: var(--line);
}
.nav-item {
  transition: background .22s var(--ease-out), color .22s var(--ease-out), transform .22s var(--ease-out);
}
.nav-item:hover { transform: translateX(2px); }
.nav-item.active {
  background: rgba(239, 80, 0, .1);
  color: var(--brand-dark);
}

.card, .stat-card, .rpt-card, .rpt-builder, .pm-kpi, .pm-panel {
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 10px 30px rgba(24, 31, 45, .05);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s ease, opacity .28s ease;
}
.card:hover, .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(24, 31, 45, .08);
  border-color: rgba(239, 80, 0, .18);
}

.content { animation: none; }
.content > * {
  animation: uiRise var(--rise) both;
}
.content > *:nth-child(1) { animation-delay: .02s; }
.content > *:nth-child(2) { animation-delay: .07s; }
.content > *:nth-child(3) { animation-delay: .12s; }
.content > *:nth-child(4) { animation-delay: .17s; }
.content > *:nth-child(5) { animation-delay: .22s; }
.content > *:nth-child(n+6) { animation-delay: .26s; }

.btn {
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s ease, opacity .18s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #ff6a1a, var(--brand));
  box-shadow: 0 8px 20px rgba(239, 80, 0, .28);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px);
}

.input, .select, .textarea {
  background: rgba(255, 255, 255, .7);
  border-color: rgba(20, 22, 26, .1);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input:focus, .select:focus, .textarea:focus {
  background: rgba(255, 255, 255, .92);
}

.modal-overlay { background: rgba(15, 12, 10, .42); backdrop-filter: blur(8px); }
.modal {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(24px);
}

.role-field .field-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + var(--safe-bottom));
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 18px 50px rgba(20, 22, 26, .14);
  backdrop-filter: blur(24px) saturate(1.45);
  animation: uiRise .55s var(--ease-out) both;
}
.role-field .field-dock-item {
  border-radius: 16px;
  color: rgba(20, 22, 26, .48);
  transition: color .2s ease, background .2s ease, transform .2s var(--ease-out);
}
.role-field .field-dock-item.active {
  color: var(--brand-dark);
  background: rgba(239, 80, 0, .1);
}
.role-field .field-dock-item:active { transform: scale(.94); }
.role-field .content { padding: 12px 12px 108px; }
.role-field .toast { bottom: calc(96px + var(--safe-bottom)); }

.role-field .table tr {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 8px 24px rgba(24, 31, 45, .04);
  animation: uiRise .45s var(--ease-out) both;
}
.role-field .table tbody tr:nth-child(1) { animation-delay: .04s; }
.role-field .table tbody tr:nth-child(2) { animation-delay: .08s; }
.role-field .table tbody tr:nth-child(3) { animation-delay: .12s; }
.role-field .table tbody tr:nth-child(4) { animation-delay: .16s; }
.role-field .table tbody tr:nth-child(n+5) { animation-delay: .2s; }

.map-container {
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.live-badge {
  opacity: .85;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

@keyframes uiRise {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 900px) {
  .role-field .field-dock { display: none; }
  .role-field .content { padding-bottom: 24px; }
  .role-field .toast { bottom: calc(20px + var(--safe-bottom)); }
  .role-field .table tr {
    background: transparent;
    border: 0;
    box-shadow: none;
    animation: none;
  }
}

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


/* Attendance + Leave P2 operational hardening */
.ops-kpi-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}
.ops-kpi {
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:3px;
  padding:14px;
  border:1px solid var(--gray-200);
  border-radius:14px;
  background:var(--white, #fff);
}
.ops-kpi span {
  color:var(--gray-500);
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
}
.ops-kpi strong {
  color:var(--gray-900);
  font-size:24px;
  line-height:1.1;
}
.ops-kpi small {
  color:var(--gray-400);
  font-size:11px;
  line-height:1.35;
}
.ops-card {
  overflow:visible;
}
.ops-toolbar {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:14px;
}
.ops-toolbar-main,
.ops-toolbar-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.ops-toolbar-main .input,
.ops-toolbar-main .select {
  min-width:0;
  flex:1 1 150px;
}
.ops-toolbar-main .search-input {
  flex-basis:220px;
}
.ops-toolbar-actions {
  justify-content:space-between;
}
.ops-result-count {
  color:var(--gray-500);
  font-size:12px;
  font-weight:700;
}
.ops-row-actions {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.ops-chip {
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:3px 8px;
  border-radius:999px;
  background:var(--gray-100);
  color:var(--gray-600);
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}
.ops-priority-note {
  margin-top:3px;
  color:var(--amber-600, #b45309);
  font-size:11px;
  font-weight:700;
}
.ops-detail-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.ops-detail-grid > div {
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:3px;
  padding:11px;
  border:1px solid var(--gray-100);
  border-radius:10px;
  background:var(--gray-50);
}
.ops-detail-grid span,
.ops-detail-grid small {
  color:var(--gray-500);
  font-size:11px;
}
.ops-detail-grid strong {
  min-width:0;
  overflow-wrap:anywhere;
  color:var(--gray-900);
}
.ops-audit-box,
.ops-decision-summary,
.ops-inline-note {
  margin-top:12px;
  padding:12px;
  border:1px solid var(--gray-200);
  border-radius:12px;
  background:var(--gray-50);
}
.ops-audit-box p,
.ops-decision-summary p {
  margin:6px 0;
  color:var(--gray-700);
  line-height:1.45;
}
.ops-audit-box small,
.ops-decision-summary span,
.ops-inline-note {
  color:var(--gray-500);
  font-size:12px;
  line-height:1.45;
}
.ops-decision-summary {
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:0;
  margin-bottom:14px;
}
.ops-inline-note {
  margin:0 0 12px;
}

@media (min-width: 900px) {
  .ops-kpi-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
  }
  .ops-toolbar {
    gap:12px;
  }
  .ops-toolbar-main .input,
  .ops-toolbar-main .select {
    flex:0 1 180px;
  }
  .ops-toolbar-main .search-input {
    flex:1 1 260px;
  }
  .ops-toolbar-actions {
    justify-content:flex-end;
  }
}

@media (max-width: 899px) {
  .ops-toolbar-main,
  .ops-toolbar-actions {
    align-items:stretch;
  }
  .ops-toolbar-main .input,
  .ops-toolbar-main .select,
  .ops-toolbar-actions .btn {
    width:100%;
    flex-basis:100%;
  }
  .ops-toolbar-actions .ops-result-count {
    width:100%;
  }
  .ops-detail-grid {
    grid-template-columns:1fr;
  }
  .ops-row-actions {
    width:100%;
  }
  .ops-row-actions .btn {
    flex:1 1 auto;
  }
}


/* Attendance + Leave P3 quality polish */
.ops-employee-cell {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.ops-avatar-sm {
  width:28px;
  height:28px;
  font-size:11px;
  flex:0 0 auto;
}
.ops-employee-name {
  min-width:0;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ops-reason-cell {
  max-width:240px;
  color:var(--gray-500);
  font-size:13px;
  overflow-wrap:anywhere;
}
.ops-days-cell {
  text-align:center;
  font-weight:600;
}
.ops-muted-cell {
  color:var(--gray-400);
  font-size:12px;
}
.ops-summary-grid {
  margin-bottom:24px;
}
.ops-card-title-reset {
  margin:0;
}
.ops-table-spaced {
  margin-top:16px;
}
.ops-modal-footer-spaced {
  padding:24px 0 0;
}
.ops-icon-success {
  background:var(--green-50);
  color:var(--green-600);
}
.ops-icon-warning {
  background:var(--amber-50);
  color:var(--amber-500);
}
.ops-icon-danger {
  background:var(--red-50);
  color:var(--red-500);
}
.ops-icon-info {
  background:var(--blue-50);
  color:var(--blue-600);
}
.ops-withdrawn-badge {
  background:var(--gray-100);
  color:var(--gray-600);
}


/* Login desktop revamp + public legal pages — production 2026-09-25 */
.login-page-v2 {
  min-height:100dvh;
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:auto;
  background:
    radial-gradient(900px 520px at 84% -8%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 58%),
    radial-gradient(720px 440px at -5% 105%, rgba(255,255,255,.10), transparent 55%),
    #15120f;
}
.login-shell {
  width:100%;
  max-width:1180px;
  min-height:calc(100dvh - 32px);
  display:grid;
  grid-template-columns:1fr;
  overflow:hidden;
  border-radius:24px;
  background:#fff;
  box-shadow:0 34px 100px rgba(0,0,0,.32);
  border:1px solid rgba(255,255,255,.16);
}
.login-showcase {
  display:none;
  position:relative;
  overflow:hidden;
  color:#fff;
  isolation:isolate;
}
.login-showcase::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035) 25%, transparent 25%) 0 0 / 38px 38px,
    linear-gradient(315deg, rgba(255,255,255,.025) 25%, transparent 25%) 0 0 / 38px 38px,
    linear-gradient(145deg, #171411 0%, #251811 52%, color-mix(in srgb, var(--brand) 68%, #35170a) 150%);
}
.login-showcase::after {
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  right:-220px;
  bottom:-210px;
  z-index:-1;
  border-radius:50%;
  background:radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand) 44%, rgba(255,255,255,.03) 68%, transparent 70%);
  box-shadow:
    -130px -210px 0 -150px rgba(255,255,255,.08),
    -220px -90px 0 -170px rgba(255,255,255,.06);
}
.login-showcase-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  position:relative;
  z-index:2;
}
.login-brand-lockup,
.legal-brand {
  display:flex;
  align-items:center;
  gap:12px;
}
.login-showcase-logo,
.legal-brand-logo {
  width:46px;
  height:46px;
  flex:0 0 46px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:13px;
  background:linear-gradient(135deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand-dark));
  color:#fff;
  font-size:17px;
  font-weight:800;
  letter-spacing:-.04em;
  box-shadow:0 10px 26px rgba(0,0,0,.22);
}
.login-showcase-logo img,
.legal-brand-logo img,
.login-logo img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.login-brand-name {
  font-size:15px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:-.02em;
}
.login-brand-product {
  margin-top:2px;
  font-size:11px;
  color:rgba(255,255,255,.55);
}
.login-environment-badge {
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 11px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(10px);
  color:rgba(255,255,255,.76);
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.login-showcase-copy {
  max-width:560px;
  position:relative;
  z-index:2;
}
.login-eyebrow,
.legal-eyebrow {
  display:inline-block;
  margin-bottom:16px;
  color:color-mix(in srgb, var(--brand) 76%, #fff);
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.16em;
}
.login-showcase h2 {
  margin:0;
  font-size:clamp(38px,4.1vw,58px);
  line-height:1.04;
  letter-spacing:-.055em;
  font-weight:800;
}
.login-showcase h2 span {
  color:color-mix(in srgb, var(--brand) 78%, #fff);
}
.login-showcase-copy > p {
  max-width:530px;
  margin:20px 0 0;
  color:rgba(255,255,255,.66);
  font-size:15px;
  line-height:1.72;
}
.login-capability-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:34px;
}
.login-capability {
  min-width:0;
  min-height:150px;
  padding:16px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(255,255,255,.055);
  backdrop-filter:blur(12px);
}
.login-capability-icon {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  margin-bottom:16px;
  border-radius:10px;
  background:rgba(255,255,255,.09);
  color:color-mix(in srgb, var(--brand) 68%, #fff);
}
.login-capability-icon svg {
  width:18px;
  height:18px;
}
.login-capability strong {
  display:block;
  margin-bottom:6px;
  font-size:12px;
  line-height:1.35;
  color:#fff;
}
.login-capability small {
  display:block;
  color:rgba(255,255,255,.50);
  font-size:10.5px;
  line-height:1.55;
}
.login-showcase-foot {
  display:flex;
  align-items:center;
  gap:9px;
  position:relative;
  z-index:2;
  color:rgba(255,255,255,.48);
  font-size:11px;
}
.login-status-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#34d399;
  box-shadow:0 0 0 4px rgba(52,211,153,.11);
}
.login-auth-panel {
  min-width:0;
  padding:28px 22px 20px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:
    radial-gradient(620px 280px at 110% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 72%),
    #f8f7f5;
}
.login-card-v2 {
  width:100%;
  max-width:410px;
  margin:auto;
  padding:26px 22px;
  border-radius:20px;
  background:#fff;
  border:1px solid rgba(20,22,26,.08);
  box-shadow:0 18px 48px rgba(25,20,16,.08);
  text-align:left;
  backdrop-filter:none;
  animation:uiRise .6s var(--ease-out) both;
}
.login-mobile-brand {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:24px;
}
.login-mobile-brand .login-logo {
  width:48px;
  height:48px;
  margin:0;
  flex:0 0 48px;
  border-radius:13px;
  font-size:18px;
  box-shadow:0 8px 20px color-mix(in srgb, var(--brand) 24%, transparent);
}
.login-mobile-brand-copy {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.login-mobile-brand-copy strong {
  overflow:hidden;
  color:var(--gray-900);
  font-size:15px;
  font-weight:800;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.login-mobile-brand-copy span {
  color:var(--gray-400);
  font-size:11px;
}
.login-form-heading {
  margin-bottom:24px;
}
.login-form-kicker {
  display:block;
  margin-bottom:8px;
  color:var(--brand-dark);
  font-size:10px;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.login-card-v2 .login-form-heading h1 {
  margin:0;
  color:var(--gray-900);
  font-size:25px;
  line-height:1.18;
  letter-spacing:-.04em;
  font-weight:800;
}
.login-form-heading p {
  margin:8px 0 0;
  color:var(--gray-500);
  font-size:12.5px;
  line-height:1.55;
}
.login-form-group {
  margin-bottom:15px;
}
.login-form-group .label {
  margin-bottom:7px;
  color:var(--gray-700);
  font-size:11px;
  font-weight:700;
}
.login-card-v2 .input {
  min-height:47px;
  padding:11px 13px;
  border:1px solid var(--gray-200);
  border-radius:11px;
  background:#fbfbfa;
  font-size:14px;
}
.login-card-v2 .input::placeholder {
  color:var(--gray-400);
}
.login-card-v2 .input:hover {
  border-color:var(--gray-300);
  background:#fff;
}
.login-card-v2 .input:focus {
  border-color:var(--brand);
  background:#fff;
  box-shadow:0 0 0 4px color-mix(in srgb, var(--brand) 10%, transparent);
}
.login-card-v2 .password-toggle {
  right:6px;
  width:36px;
  height:36px;
}
.login-submit {
  width:100%;
  min-height:48px;
  justify-content:space-between;
  margin-top:4px;
  padding:0 15px;
  border-radius:11px;
  box-shadow:0 9px 24px color-mix(in srgb, var(--brand) 24%, transparent);
}
.login-submit-arrow {
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:7px;
  background:rgba(255,255,255,.14);
  font-size:14px;
}
.login-security-note {
  display:flex;
  gap:9px;
  align-items:flex-start;
  margin-top:18px;
  padding:11px 12px;
  border:1px solid var(--gray-100);
  border-radius:11px;
  background:#faf9f7;
  color:var(--gray-500);
  font-size:10.5px;
  line-height:1.5;
}
.login-security-icon {
  width:17px;
  height:17px;
  flex:0 0 17px;
  color:var(--gray-400);
}
.login-security-icon svg {
  width:17px;
  height:17px;
}
.login-legal-links {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:19px;
  color:var(--gray-300);
  font-size:10.5px;
}
.login-legal-links a {
  color:var(--gray-500);
  text-decoration:none;
}
.login-legal-links a:hover,
.login-legal-links a:focus-visible {
  color:var(--brand-dark);
  text-decoration:underline;
  text-underline-offset:3px;
}
.login-auth-footer {
  width:100%;
  max-width:410px;
  margin:15px auto 0;
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:var(--gray-400);
  font-size:9.5px;
}

/* Public Privacy Policy / Terms of Reference */
.legal-page {
  min-height:100dvh;
  padding:16px;
  overflow:auto;
  background:
    radial-gradient(900px 420px at 92% -10%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 68%),
    #f4f2ef;
}
.legal-shell {
  width:100%;
  max-width:1180px;
  margin:0 auto;
}
.legal-topbar {
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:0 4px;
}
.legal-brand {
  color:var(--gray-900);
  text-decoration:none;
}
.legal-brand-logo {
  width:40px;
  height:40px;
  flex-basis:40px;
  border-radius:11px;
  font-size:15px;
}
.legal-brand > span {
  display:flex;
  flex-direction:column;
  gap:2px;
}
.legal-brand strong {
  font-size:13px;
  line-height:1.2;
  font-weight:800;
}
.legal-brand small {
  color:var(--gray-400);
  font-size:9.5px;
}
.legal-back-button {
  min-height:38px;
  font-size:11px;
}
.legal-layout {
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  padding:8px 0 28px;
}
.legal-summary,
.legal-document {
  border:1px solid rgba(20,22,26,.08);
  border-radius:18px;
  background:rgba(255,255,255,.86);
  box-shadow:0 14px 38px rgba(22,18,15,.055);
}
.legal-summary {
  padding:24px 22px;
}
.legal-summary h1 {
  margin:0;
  color:var(--gray-900);
  font-size:31px;
  line-height:1.08;
  letter-spacing:-.045em;
}
.legal-summary > p {
  margin:14px 0 0;
  color:var(--gray-500);
  font-size:13px;
  line-height:1.7;
}
.legal-meta {
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--gray-100);
}
.legal-meta span {
  color:var(--gray-400);
  font-size:9.5px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
}
.legal-meta strong {
  color:var(--gray-700);
  font-size:11.5px;
}
.legal-switch {
  display:grid;
  gap:6px;
  margin-top:20px;
}
.legal-switch a {
  padding:10px 11px;
  border-radius:9px;
  color:var(--gray-500);
  font-size:11px;
  font-weight:700;
  text-decoration:none;
}
.legal-switch a:hover {
  background:var(--gray-50);
  color:var(--gray-800);
}
.legal-switch a.active {
  background:var(--brand-light);
  color:var(--brand-dark);
}
.legal-document {
  padding:24px 22px;
}
.legal-section {
  padding:0 0 20px;
  margin:0 0 20px;
  border-bottom:1px solid var(--gray-100);
}
.legal-section:last-of-type {
  margin-bottom:0;
}
.legal-section h2 {
  margin:0 0 8px;
  color:var(--gray-900);
  font-size:14px;
  line-height:1.4;
  letter-spacing:-.015em;
}
.legal-section p,
.legal-document-footer p {
  margin:0;
  color:var(--gray-600);
  font-size:12.5px;
  line-height:1.78;
}
.legal-document-footer {
  margin-top:22px;
  padding:16px;
  border-radius:12px;
  background:#f8f7f5;
}
.legal-document-footer p {
  font-size:11px;
}
.legal-document-footer a {
  display:inline-block;
  margin-top:12px;
  color:var(--brand-dark);
  font-size:11px;
  font-weight:700;
  text-decoration:none;
}

@media (min-width: 900px) {
  .login-page-v2 {
    padding:24px;
  }
  .login-shell {
    min-height:min(760px, calc(100dvh - 48px));
    grid-template-columns:minmax(0,1.23fr) minmax(380px,.77fr);
    border-radius:28px;
  }
  .login-showcase {
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:38px 42px;
  }
  .login-auth-panel {
    padding:38px 42px 28px;
  }
  .login-card-v2 {
    max-width:400px;
    padding:34px 32px 28px;
    border-radius:18px;
    box-shadow:none;
  }
  .login-mobile-brand {
    margin-bottom:30px;
  }
  .login-mobile-brand .login-logo {
    width:44px;
    height:44px;
    flex-basis:44px;
  }
  .login-card-v2 .login-form-heading h1 {
    font-size:28px;
  }
  .login-auth-footer {
    max-width:400px;
  }

  .legal-page {
    padding:24px;
  }
  .legal-topbar {
    min-height:78px;
  }
  .legal-layout {
    grid-template-columns:310px minmax(0,1fr);
    align-items:start;
    gap:18px;
    padding:12px 0 34px;
  }
  .legal-summary {
    position:sticky;
    top:24px;
    padding:30px 26px;
  }
  .legal-summary h1 {
    font-size:36px;
  }
  .legal-document {
    padding:32px 36px;
  }
  .legal-section {
    padding-bottom:24px;
    margin-bottom:24px;
  }
  .legal-section h2 {
    font-size:15px;
  }
  .legal-section p {
    font-size:13px;
  }
}

@media (min-width: 1180px) {
  .login-showcase {
    padding:46px 52px;
  }
  .login-auth-panel {
    padding-left:48px;
    padding-right:48px;
  }
}

@media (max-width: 899px) {
  .login-page-v2 {
    padding:24px 16px;
    background:
      radial-gradient(760px 420px at 80% 0%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 52%),
      linear-gradient(165deg, #1a1410 0%, #3b1d10 48%, var(--brand) 145%);
  }
  .login-shell {
    display:block;
    min-height:0;
    max-width:380px;
    overflow:visible;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .login-auth-panel {
    padding:0;
    background:transparent;
  }
  .login-card-v2 {
    padding:30px 24px 24px;
    border:1px solid rgba(255,255,255,.48);
    border-radius:16px;
    background:rgba(255,255,255,.92);
    box-shadow:0 24px 70px rgba(0,0,0,.28);
    backdrop-filter:blur(22px) saturate(1.25);
  }
  .login-mobile-brand {
    flex-direction:column;
    text-align:center;
    margin-bottom:21px;
  }
  .login-mobile-brand .login-logo {
    width:56px;
    height:56px;
    flex-basis:56px;
  }
  .login-mobile-brand-copy {
    align-items:center;
  }
  .login-mobile-brand-copy strong {
    max-width:300px;
    font-size:20px;
  }
  .login-mobile-brand-copy span {
    font-size:11px;
  }
  .login-form-heading {
    margin-bottom:20px;
    text-align:center;
  }
  .login-form-kicker {
    display:none;
  }
  .login-card-v2 .login-form-heading h1 {
    font-size:18px;
  }
  .login-form-heading p {
    margin-top:5px;
    font-size:11.5px;
  }
  .login-auth-footer {
    max-width:380px;
    margin-top:12px;
    color:rgba(255,255,255,.55);
  }
}

@media (max-width: 520px) {
  .login-auth-footer {
    justify-content:center;
    flex-wrap:wrap;
  }
  .login-auth-footer span:last-child {
    display:none;
  }
  .legal-page {
    padding:12px;
  }
  .legal-topbar {
    min-height:64px;
  }
  .legal-back-button {
    padding:8px 10px;
  }
  .legal-brand small {
    display:none;
  }
  .legal-summary,
  .legal-document {
    border-radius:14px;
  }
  .legal-summary,
  .legal-document {
    padding:20px 17px;
  }
  .legal-summary h1 {
    font-size:28px;
  }
}
