:root {
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --surface-2: #F1F5FB;
  --text: #0B1220;
  --muted: #5A677A;
  --border: #E3E8F2;
  --primary: #0B3A8F;
  --primary-hover: #114DBA;
  --primary-contrast: #FFFFFF;
  --gold: #D4AF37;
  --gold-strong: #B88900;
  --gold-soft: #FFF3C4;
  --success: #0F7A3B;
  --warning: #B45309;
  --danger: #B42318;
  --shadow: 0 10px 25px rgba(11, 18, 32, 0.08);
}

html[data-theme="dark"] {
  --bg: #070B14;
  --surface: #0D1526;
  --surface-2: #101C33;
  --text: #EAF0FF;
  --muted: #A8B3C7;
  --border: #22314E;
  --primary: #2F6BFF;
  --primary-hover: #4F86FF;
  --primary-contrast: #FFFFFF;
  --gold: #F5C84B;
  --gold-strong: #F0B429;
  --gold-soft: rgba(245, 200, 75, 0.14);
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #FB7185;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #070B14;
    --surface: #0D1526;
    --surface-2: #101C33;
    --text: #EAF0FF;
    --muted: #A8B3C7;
    --border: #22314E;
    --primary: #2F6BFF;
    --primary-hover: #4F86FF;
    --primary-contrast: #FFFFFF;
    --gold: #F5C84B;
    --gold-strong: #F0B429;
    --gold-soft: rgba(245, 200, 75, 0.14);
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #FB7185;
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Avenir", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 16px;
  background: radial-gradient(circle at top, rgba(11, 58, 143, 0.14), transparent 55%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 80px;
}


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

.icon-svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1, h2, h3 {
  margin: 0 0 8px;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
}

.app-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(212, 175, 55, 0.25), rgba(11, 58, 143, 0.2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.page-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--primary);
  font-weight: 600;
}

.crumb-sep {
  color: var(--muted);
}

.page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex: 1;
}

.nav-link {
  padding: 10px 8px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.nav-link.active .nav-icon {
  border-color: var(--primary);
  background: var(--gold-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.nav-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
  fill: none;
}

.user-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  color: var(--muted);
}

.user-name {
  color: var(--text);
  font-weight: 600;
}

.user-role {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  border-color: var(--gold-strong);
  box-shadow: 0 6px 16px rgba(11, 18, 32, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.18);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn .icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.icon-btn .icon-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.auth-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  animation: fade-rise 0.4s ease;
}

.grid {
  display: grid;
  gap: 20px;
}

.two-col {
  grid-template-columns: 1fr;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form .field {
  margin-bottom: 16px;
}

.form {
  display: flex;
  flex-direction: column;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 12px 14px;
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17, 77, 186, 0.2);
}

.input-unit {
  position: relative;
}

.input-unit .unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 600;
}

.input-unit .input {
  padding-right: 40px;
}

.input-icon {
  position: relative;
}

.input-icon .icon-svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--primary);
  opacity: 0.85;
}

.input-icon .input {
  padding-left: 42px;
}

.input-unit.input-icon .input {
  padding-left: 42px;
  padding-right: 40px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: 0 10px 20px rgba(11, 58, 143, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


.calc-box {
  border: 1px solid var(--gold-strong);
  background: var(--gold-soft);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
}

.errorlist {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  color: var(--danger);
  font-size: 12px;
}

.calc-label {
  color: var(--gold-strong);
  font-weight: 600;
  margin-bottom: 4px;
}

.calc-value {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sticky-actions {
  display: flex;
  gap: 12px;
  position: sticky;
  bottom: 0;
  background: var(--surface);
  padding: 12px 0 0;
}

.kpi-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 24px;
}

.kpi-card {
  border-left: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% -30%;
  height: 60%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.18), transparent 65%);
  pointer-events: none;
}

.kpi-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold-strong);
}

.kpi-gain {
  border-left-color: var(--success);
}

.kpi-loss {
  border-left-color: var(--danger);
}

.kpi-neutral {
  border-left-color: var(--primary);
}

.kpi-gain .kpi-icon {
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.4);
}

.kpi-loss .kpi-icon {
  color: var(--danger);
  border-color: rgba(251, 113, 133, 0.4);
}

.kpi-neutral .kpi-icon {
  color: var(--primary);
}

.kpi-label {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.badge--draft { border-color: var(--border); color: var(--muted); }
.badge--in_factory { border-color: var(--warning); color: var(--warning); }
.badge--cleaned { border-color: var(--primary); color: var(--primary); }
.badge--collected { border-color: var(--success); color: var(--success); }
.badge--closed { border-color: var(--danger); color: var(--danger); }

.toast-container {
  position: fixed;
  top: 84px;
  right: 20px;
  display: grid;
  gap: 10px;
  z-index: 60;
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 240px;
  position: relative;
  overflow: hidden;
  transform-origin: top right;
  --toast-scale: 1;
  animation: toast-in 0.4s ease;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.toast-icon .icon-svg {
  width: 16px;
  height: 16px;
}

.toast-body {
  font-size: 14px;
  font-weight: 600;
}

.toast-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}

.toast-close:hover {
  color: var(--text);
}

.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  transform-origin: left;
  animation: toast-progress var(--toast-duration, 3500ms) linear forwards;
}

.toast-container .toast:nth-child(2) {
  --toast-scale: 0.98;
  opacity: 0.95;
}

.toast-container .toast:nth-child(3) {
  --toast-scale: 0.96;
  opacity: 0.9;
}

.toast-container .toast:nth-child(4) {
  --toast-scale: 0.94;
  opacity: 0.85;
}

.message-success {
  border-color: rgba(34, 197, 94, 0.5);
}

.message-success .toast-icon {
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.4);
}

.message-error {
  border-color: rgba(251, 113, 133, 0.6);
}

.message-error .toast-icon {
  color: var(--danger);
  border-color: rgba(251, 113, 133, 0.4);
}

.message-warning {
  border-color: rgba(245, 158, 11, 0.6);
}

.message-warning .toast-icon {
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.4);
}

.toast-hide {
  animation: toast-out 0.35s ease forwards;
}

.list-cards {
  display: grid;
  gap: 12px;
}

.list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.list-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inline-form {
  margin: 0;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-xs {
  padding: 6px 10px;
  font-size: 12px;
  min-height: 36px;
}

.list-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.list-title {
  font-weight: 600;
}

.list-metric {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.metric-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.metric-gain {
  border-color: rgba(34, 197, 94, 0.5);
  color: var(--success);
}

.metric-loss {
  border-color: rgba(251, 113, 133, 0.5);
  color: var(--danger);
}

.metric-neutral {
  border-color: rgba(47, 107, 255, 0.4);
  color: var(--primary);
}

.job-summary {
  border-left: 4px solid var(--primary);
}

.job-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.job-code {
  font-size: 20px;
  font-weight: 700;
}

.job-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.value {
  font-weight: 700;
}

.missing-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 16px;
}

.summary-item {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px;
}

.stat-gain {
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}

.stat-loss {
  border: 1px solid rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.08);
}

.stat-neutral {
  border: 1px solid rgba(47, 107, 255, 0.3);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.filter-card {
  margin-bottom: 20px;
}

.filter-actions {
  display: flex;
  gap: 12px;
}

.empty {
  padding: 12px;
  color: var(--muted);
}

.login-shell {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  min-height: 75vh;
  align-items: stretch;
}

.login-theme-toggle {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.login-panel {
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(11, 58, 143, 0.18), rgba(212, 175, 55, 0.2));
  border: 1px solid var(--border);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.login-panel::after {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 65%);
}

.login-panel-inner h1 {
  margin: 8px 0 10px;
}

.login-panel-inner p {
  color: var(--muted);
  max-width: 320px;
}

.login-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
}

.login-stats {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.stat-pill {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-pill span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold-strong);
  font-weight: 700;
}

.stat-title {
  font-weight: 700;
}

.stat-muted {
  font-size: 12px;
  color: var(--muted);
}

.login-form-card {
  padding: 22px;
}

.login-form-card {
  animation: sheet-rise 0.5s ease;
}

.login-card-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.login-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
}

.login-fingerprint {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--primary);
}

.login-fingerprint svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
}

.login-actions {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  padding-top: 8px;
}

.login-helper {
  margin-top: 16px;
  font-size: 14px;
}

.section-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-icon .icon-svg {
  width: 22px;
  height: 22px;
}

.checkbox-field label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  z-index: 30;
  box-shadow: 0 -8px 24px rgba(11, 18, 32, 0.12);
}

.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
}

.mobile-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  min-width: 64px;
  position: relative;
}

.mobile-link svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.mobile-link.active {
  color: var(--primary);
  font-weight: 600;
}

.mobile-link.active svg {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.mobile-link.active::after {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(var(--toast-scale));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(var(--toast-scale));
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(var(--toast-scale));
  }
}

@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (min-width: 900px) {
  body {
    padding-bottom: 24px;
  }

  .two-col {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .login-shell {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }

  .mobile-nav {
    display: none;
  }

  .sticky-actions {
    position: static;
    padding-top: 0;
  }
}

@media (max-width: 899px) {
  .nav-inner {
    padding: 10px 16px;
  }

  .brand {
    font-size: 18px;
  }

  .nav-links {
    display: none;
  }

  .user-chip {
    display: none;
  }

  .page-header {
    align-items: flex-start;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions .btn {
    flex: 1 1 140px;
  }

  .card {
    padding: 16px;
  }

  h1 {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .app-shell {
    padding: 16px 16px 96px;
  }

  .sticky-actions {
    flex-direction: column;
  }

  .sticky-actions .btn {
    width: 100%;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    top: 70px;
  }

  .toast {
    min-width: unset;
  }

  .login-shell {
    gap: 16px;
    min-height: 100vh;
  }

  .login-panel {
    padding: 18px;
    min-height: 42vh;
  }

  .login-form-card {
    margin-top: -24px;
    border-radius: 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 -12px 24px rgba(11, 18, 32, 0.12);
    animation: sheet-rise 0.55s ease;
  }

  .login-card-header {
    align-items: flex-start;
  }

  .login-fingerprint {
    margin-bottom: 14px;
  }
}

@keyframes sheet-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
