/* Labara · BVI Desain Spesifik Usaha Tunai Rumahan (Hangat, Angka Besar, Jelas) */
:root {
  --daun: #1F6F4A;
  --daun-d: #17563A;
  --daun-l: #E2EEE6;
  --daun-xl: #F1F7F3;
  --krem: #FFF7E8;
  --krem2: #F8EBD3;
  --kertas: #FFFDF8;
  --amber: #F2A93B;
  --amber-l: #FCE9C6;
  --amber-d: #8A5A0F;
  --coklat: #7B4B19;
  --pasir: #D6C7AE;
  --bata: #C2502E;
  --bata-d: #A23F21;
  --bata-l: #FBE6DE;
  --tinta: #222222;
  --tinta2: #5B544A;
  --garis: #E9DCC4;
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--krem);
  color: var(--tinta);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--krem);
  color: var(--tinta);
  overflow-x: clip;
  min-height: 100dvh;
}

h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  color: var(--tinta);
  text-wrap: balance;
}

.h1 { font-size: 30px; font-weight: 800; }
.h2 { font-size: 22px; font-weight: 800; }
.h3 { font-size: 18px; font-weight: 800; }

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--daun);
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.num {
  font-variant-numeric: tabular-nums;
}

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

.small {
  font-size: 13.5px;
}

/* Splash & Spinner */
.splash {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  color: var(--daun);
  letter-spacing: -0.02em;
}

.env-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--daun);
  position: relative;
  display: inline-block;
  box-shadow: inset 0 -7px 0 var(--amber);
}

.spin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--garis);
  border-top-color: var(--daun);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Layout Kerangka */
.layout {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.side {
  display: none;
}

.stage {
  flex: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px max(16px, env(safe-area-inset-left, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 860px) {
  .layout.has-side {
    display: grid;
    grid-template-columns: 268px 1fr;
    align-items: start;
  }
  .layout.has-side .side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100dvh;
    background: var(--kertas);
    border-right: 1px solid var(--garis);
    padding: 22px 16px;
    gap: 18px;
  }
  .layout.has-side .stage {
    padding-top: 28px;
    padding-bottom: 48px;
    max-width: 560px;
  }
  .nav {
    display: none !important;
  }
}

.side-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 8px;
}

.side-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--tinta2);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.side-lk {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--tinta2);
  font-weight: 700;
  font-size: 15.5px;
  transition: background-color 140ms ease-out, color 140ms ease-out;
}

.side-lk svg {
  width: 21px;
  height: 21px;
  flex: none;
}

.side-lk:hover {
  background: var(--krem);
  color: var(--tinta);
}

.side-lk.on {
  background: var(--daun-l);
  color: var(--daun);
}

.side-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--krem);
  border: 1px solid var(--garis);
  color: var(--tinta);
}

.side-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--daun);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}

.side-u {
  min-width: 0;
  flex: 1;
}

.side-u b {
  display: block;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-u span {
  display: block;
  font-size: 12.5px;
  color: var(--tinta2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header Layar */
.top-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.top-kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta2);
  margin-bottom: 3px;
}

.top-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--amber-l);
  color: var(--amber-d);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.save-ind {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--daun);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--kertas);
  border: 1.5px solid var(--garis);
  color: var(--tinta);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 120ms ease-out, background-color 120ms ease-out;
}

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

.pill-btn:active {
  transform: scale(0.96);
}

.pill-btn svg {
  width: 18px;
  height: 18px;
}

/* Utilitas Baris & Tumpukan */
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.row.between {
  justify-content: space-between;
}

.row.wrap {
  flex-wrap: wrap;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 350px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

/* Kartu Umum */
.card {
  background: var(--kertas);
  border: 1.5px solid var(--garis);
  border-radius: 20px;
  padding: 16px 18px;
}

/* Tombol */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  width: 100%;
  padding: 0 22px;
  border-radius: 16px;
  border: 0;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  text-align: center;
  transition: transform 140ms ease-out, background-color 140ms ease-out, box-shadow 140ms ease-out;
}

.btn svg {
  width: 21px;
  height: 21px;
  flex: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.btn.pri {
  background: var(--daun);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 20px -12px rgba(23, 86, 58, 0.75);
}

.btn.pri:hover {
  background: var(--daun-d);
}

.btn.amber {
  background: var(--amber);
  color: var(--tinta);
  box-shadow: 0 10px 20px -12px rgba(138, 90, 15, 0.65);
}

.btn.ghost {
  background: var(--kertas);
  color: var(--tinta);
  border: 1.5px solid var(--garis);
}

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

.btn.dashed {
  background: transparent;
  color: var(--daun);
  border: 2px dashed #C5D8CC;
  min-height: 52px;
  font-size: 16.5px;
}

.btn.dashed:hover {
  background: var(--daun-xl);
}

.btn.sm {
  min-height: 44px;
  font-size: 15px;
  padding: 0 14px;
  border-radius: 12px;
}

/* Input Tutup Toko + Keypad */
.in-card {
  background: var(--kertas);
  border: 2px solid var(--garis);
  border-radius: 18px;
  padding: 13px 16px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}

.in-card.on {
  border-color: var(--daun);
  box-shadow: 0 0 0 3px rgba(31, 111, 74, 0.14);
}

.in-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tinta2);
}

.in-label svg {
  width: 18px;
  height: 18px;
  color: var(--tinta2);
}

.in-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.in-rp {
  font-size: 20px;
  font-weight: 700;
  color: var(--tinta2);
}

.in-num {
  font-family: var(--display);
  font-size: clamp(28px, 7.5vw, 35px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tinta);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.caret {
  display: inline-block;
  width: 2.5px;
  height: 28px;
  background: var(--daun);
  margin-left: 2px;
  vertical-align: -3px;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.kbtn {
  min-height: 54px;
  border-radius: 14px;
  background: var(--kertas);
  border: 1.5px solid var(--garis);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  color: var(--tinta);
  cursor: pointer;
  display: grid;
  place-items: center;
  user-select: none;
  font-variant-numeric: tabular-nums;
  transition: transform 100ms ease-out, background-color 100ms ease-out;
}

.kbtn:hover {
  background: var(--krem2);
}

.kbtn:active {
  transform: scale(0.95);
  background: var(--amber-l);
}

.kbtn svg {
  width: 24px;
  height: 24px;
}

/* Kartu 3 Amplop (Detail khas lidah segitiga) */
.amp-card {
  position: relative;
  border-radius: 22px;
  padding: 16px 18px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.amp-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 46px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: -1;
}

.amp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.amp-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
}

.amp-title svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.amp-badge {
  width: 42px;
  height: 42px;
  flex: none;
  margin-top: -2px;
}

.amp-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.amp-big {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  font-variant-numeric: tabular-nums;
}

.amp-sub {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.amp-card.aman {
  background: var(--amber);
  color: var(--tinta);
}

.amp-card.aman::before {
  background: rgba(255, 255, 255, 0.28);
}

.amp-card.aman .amp-big {
  font-size: clamp(34px, 9.2vw, 44px);
}

.amp-card.aman .amp-sub {
  color: #3D2A07;
}

.amp-card.aman.nol {
  background: var(--bata-l);
  border: 1.5px solid #EDB9A6;
}

.amp-card.aman.nol::before {
  background: rgba(194, 80, 46, 0.09);
}

.amp-card.aman.nol .amp-big {
  color: var(--bata-d);
}

.amp-card.aman.nol .amp-sub {
  color: #5C2918;
}

.amp-card.modal {
  background: var(--daun);
  color: #fff;
}

.amp-card.modal::before {
  background: rgba(255, 255, 255, 0.09);
}

.amp-card.modal .amp-big {
  font-size: clamp(26px, 7vw, 31px);
}

.amp-card.modal .amp-sub {
  color: #CFE5D8;
}

.amp-card.target {
  background: var(--kertas);
  border: 1.5px solid #E2C48F;
  color: var(--tinta);
}

.amp-card.target::before {
  background: var(--amber-l);
}

.amp-card.target .amp-big {
  font-size: clamp(26px, 7vw, 31px);
}

.amp-splits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tinta2);
}

.amp-splits b {
  color: var(--tinta);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Peringatan Hari Sepi */
.awas-box {
  background: var(--bata-l);
  border: 1.5px solid #EDB9A6;
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.awas-box svg {
  width: 22px;
  height: 22px;
  color: var(--bata-d);
  margin-top: 1px;
}

.awas-box b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--bata-d);
  margin-bottom: 2px;
}

.awas-box p {
  font-size: 14px;
  font-weight: 600;
  color: #5C2918;
  line-height: 1.4;
}

.untung-line {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--tinta2);
  padding: 2px 0;
}

.untung-line b {
  color: var(--tinta);
  font-weight: 800;
}

/* Amplop Target */
.tcard {
  background: var(--kertas);
  border: 1.5px solid var(--garis);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.badge-amber {
  display: inline-flex;
  align-items: center;
  background: var(--amber-l);
  color: var(--amber-d);
  font-size: 13px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pbar {
  width: 100%;
  height: 10px;
  background: var(--amber-l);
  border-radius: 999px;
  overflow: hidden;
}

.pbar > i {
  display: block;
  height: 100%;
  background: var(--amber-d);
  border-radius: 999px;
  transition: width 220ms ease-out;
}

/* Rekap Bulanan */
.sbar {
  display: flex;
  height: 22px;
  border-radius: 8px;
  overflow: hidden;
  gap: 3px;
  margin: 10px 0 8px;
  background: var(--krem2);
}

.sbar > i {
  display: block;
  height: 100%;
  min-width: 6px;
}

.leg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.leg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.leg-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -1px;
}

/* Grafik 7 Hari */
.wchart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 148px;
  padding-top: 22px;
  margin-top: 8px;
}

.wcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}

.wval {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--tinta);
  font-variant-numeric: tabular-nums;
  min-height: 16px;
}

.wbar {
  width: 100%;
  max-width: 34px;
  border-radius: 8px 8px 4px 4px;
  background: #A9CBB7;
  min-height: 18px;
  transition: height 220ms ease-out;
}

.wbar.peak {
  background: var(--daun);
}

.wbar.off {
  background: transparent;
  border: 1.5px dashed #C7B99E;
}

.wday {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tinta2);
}

.wcol.peak .wday {
  color: var(--tinta);
  font-weight: 800;
}

/* Buku Kasbon */
.kcard {
  background: var(--kertas);
  border: 1.5px solid var(--garis);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--daun-l);
  color: var(--daun);
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex: none;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--daun-l);
  color: var(--daun);
  border: 0;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  margin-top: 5px;
  transition: background-color 140ms ease-out, transform 140ms ease-out;
}

.wa-btn:hover {
  background: #CEE3D5;
}

.wa-btn:active {
  transform: scale(0.96);
}

.wa-btn svg {
  width: 16px;
  height: 16px;
}

/* Riwayat & Backup */
.backup-card {
  background: var(--daun);
  color: #fff;
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.backup-card h3 {
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.backup-card h3 svg {
  width: 20px;
  height: 20px;
}

.backup-card p {
  font-size: 14px;
  color: #D7EBE0;
  line-height: 1.45;
}

.btn-white {
  background: #fff;
  color: var(--tinta);
  border: 0;
  min-height: 46px;
  border-radius: 13px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  min-height: 46px;
  border-radius: 13px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.riw-list {
  display: flex;
  flex-direction: column;
  background: var(--kertas);
  border: 1.5px solid var(--garis);
  border-radius: 20px;
  overflow: hidden;
}

.riw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--garis);
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease-out;
}

.riw-row:last-child {
  border-bottom: 0;
}

.riw-row:hover {
  background: var(--krem);
}

.libur-pill {
  display: inline-block;
  background: var(--krem2);
  color: var(--tinta2);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Form & Chip */
.fld {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fld label {
  font-weight: 700;
  font-size: 15px;
  color: var(--tinta);
}

.inp {
  min-height: 50px;
  border: 1.5px solid var(--garis);
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--tinta);
  width: 100%;
}

.inp:focus {
  border-color: var(--daun);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(31, 111, 74, 0.14);
}

textarea.inp {
  padding: 12px 14px;
  min-height: 96px;
  resize: vertical;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--kertas);
  border: 1.5px solid var(--garis);
  font-size: 14px;
  font-weight: 700;
  color: var(--tinta);
  cursor: pointer;
}

.chip.on, .chip.grn {
  background: var(--daun-l);
  border-color: #B7D5C4;
  color: var(--daun);
}

.chip.red {
  background: var(--bata-l);
  border-color: #EDB9A6;
  color: var(--bata-d);
}

/* Bottom Navigation (5 Tab) */
.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--garis);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.nv {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 62px;
  color: var(--tinta2);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 120ms ease-out;
}

.nv svg {
  width: 22px;
  height: 22px;
}

.nv.on {
  color: var(--daun);
  font-weight: 800;
}

/* Modal & Sheet */
div.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(34, 34, 34, 0.52);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn 160ms ease-out;
}

div.modal.out {
  opacity: 0;
  transition: opacity 150ms ease-out;
}

.sheet {
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--krem);
  border-radius: 24px 24px 0 0;
  padding: 22px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.22);
  animation: slideUp 180ms ease-out;
}

@media (min-width: 640px) {
  div.modal {
    align-items: center;
    padding: 20px;
  }
  .sheet {
    border-radius: 24px;
    padding: 24px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0.7; }
  to { transform: none; opacity: 1; }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 16px);
  z-index: 80;
  background: var(--tinta);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease-out, transform 160ms ease-out;
  max-width: calc(100vw - 32px);
}

.toast svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
  flex: none;
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Halaman Masuk */
.login-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 18px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-hero {
  background: var(--daun);
  color: #fff;
  border-radius: 24px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.login-hero .row.between {
  flex-wrap: wrap;
  gap: 8px;
}

.login-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 54px;
  background: rgba(242, 169, 59, 0.16);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: -1;
}

.login-hero h1 {
  color: #fff;
  font-size: 25px;
}

.login-hero p {
  color: #D7EBE0;
  font-size: 15px;
}

.err-msg {
  color: var(--bata-d);
  font-size: 14px;
  font-weight: 700;
}

.err-msg:empty {
  display: none;
}

.disclaimer-foot {
  font-size: 12.5px;
  color: var(--tinta2);
  text-align: center;
  line-height: 1.45;
  padding-top: 8px;
}

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