/* ===== Absensi Tim — dark + blue, mobile-first ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  color-scheme: dark;
  --bg: #0a0f1e;
  --bg2: #0f1629;
  --card: #141d35;
  --card2: #1a2547;
  --line: #223057;
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, .14);
  --blue-glow: rgba(59, 130, 246, .35);
  --text: #e8edf8;
  --muted: #8b9bbd;
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, .13);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, .12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, .12);
  --radius: 18px;
}

html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overscroll-behavior-y: none;
}
body::before { /* glow background */
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(60% 35% at 50% -5%, rgba(59,130,246,.16), transparent 70%),
    radial-gradient(40% 25% at 90% 100%, rgba(59,130,246,.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
#app { position: relative; z-index: 1; min-height: 100dvh; }

/* ===== boot ===== */
.boot-loader { display: flex; align-items: center; justify-content: center; height: 100dvh; }
.spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--blue);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== views & transitions ===== */
.view { padding: 18px 18px calc(96px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; animation: viewIn .32s cubic-bezier(.22,1,.36,1); }
.view.no-nav { padding-bottom: 40px; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* staggered children */
.stagger > * { animation: viewIn .4s cubic-bezier(.22,1,.36,1) backwards; }
.stagger > *:nth-child(1) { animation-delay: .02s; }
.stagger > *:nth-child(2) { animation-delay: .06s; }
.stagger > *:nth-child(3) { animation-delay: .10s; }
.stagger > *:nth-child(4) { animation-delay: .14s; }
.stagger > *:nth-child(5) { animation-delay: .18s; }
.stagger > *:nth-child(6) { animation-delay: .22s; }
.stagger > *:nth-child(7) { animation-delay: .26s; }
.stagger > *:nth-child(8) { animation-delay: .30s; }

/* ===== header ===== */
.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.header .hi { font-size: 1.05rem; color: var(--muted); }
.header .hi b { color: var(--text); font-size: 1.25rem; display: block; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .2s;
}
.icon-btn:active { transform: scale(.88); background: var(--card2); }

.date-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-soft); color: var(--blue);
  padding: 7px 14px; border-radius: 100px; font-size: .85rem; font-weight: 600;
  margin-bottom: 16px;
}
.date-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.75);} }

/* ===== cards ===== */
.card {
  background: linear-gradient(160deg, var(--card), var(--bg2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}
.card.tappable { transition: transform .15s, border-color .2s; cursor: pointer; }
.card.tappable:active { transform: scale(.97); border-color: var(--blue); }
.card-title { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 12px; }

/* ===== login ===== */
.login-wrap { display: flex; flex-direction: column; justify-content: center; min-height: 100dvh; padding: 28px; max-width: 420px; margin: 0 auto; }
.login-logo { text-align: center; margin-bottom: 34px; }
.login-logo .emoji {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 26px;
  background: linear-gradient(145deg, var(--blue), #1d4ed8);
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  box-shadow: 0 12px 40px var(--blue-glow);
  animation: float 3.5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-7px);} }
.login-logo h1 { font-size: 1.5rem; }
.login-logo p { color: var(--muted); font-size: .9rem; margin-top: 5px; }

/* ===== inputs ===== */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%; padding: 15px 16px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  color: var(--text); font-size: 1rem; outline: none; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
textarea.input { resize: none; min-height: 88px; }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%238b9bbd' viewBox='0 0 16 16'%3E%3Cpath d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}

/* ===== buttons + ripple ===== */
.btn {
  position: relative; overflow: hidden;
  width: 100%; padding: 16px; border: none; border-radius: 14px;
  background: linear-gradient(145deg, var(--blue), #2563eb);
  color: #fff; font-size: 1.02rem; font-weight: 700; font-family: inherit;
  box-shadow: 0 8px 26px var(--blue-glow);
  transition: transform .15s, box-shadow .2s, opacity .2s;
  cursor: pointer;
}
.btn:active { transform: scale(.96); box-shadow: 0 4px 14px var(--blue-glow); }
.btn:disabled { opacity: .55; }
.btn.secondary { background: var(--card2); box-shadow: none; border: 1px solid var(--line); }
.btn.danger { background: linear-gradient(145deg, #ef4444, #dc2626); box-shadow: 0 8px 26px rgba(239,68,68,.25); }
.btn.ghost { background: transparent; box-shadow: none; border: 1.5px solid var(--line); color: var(--muted); }
.btn.small { padding: 11px 14px; font-size: .88rem; border-radius: 12px; width: auto; }

.ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,.45); animation: ripple .55s ease-out;
  pointer-events: none;
}
.ripple.dark { background: rgba(59,130,246,.3); }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ===== stepper (editor VT) ===== */
.stepper { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 10px 0 6px; }
.step-btn {
  width: 62px; height: 62px; border-radius: 20px; border: 1.5px solid var(--line);
  background: var(--card2); color: var(--blue); font-size: 1.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s, background .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.step-btn:active { transform: scale(.85); border-color: var(--blue); background: var(--blue-soft); }
.step-num {
  width: 132px; text-align: center; font-size: 3.4rem; font-weight: 800;
  font-variant-numeric: tabular-nums; font-family: inherit;
  background: transparent; border: none; outline: none; padding: 0;
  color: #e3ecff; caret-color: var(--blue);
  border-bottom: 2px dashed var(--line); border-radius: 0;
  transition: border-color .2s;
}
.step-num:focus { border-bottom-color: var(--blue); }
.step-num::-webkit-outer-spin-button, .step-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-num[type=number] { -moz-appearance: textfield; appearance: textfield; }
.step-num.bump { animation: bump .25s cubic-bezier(.22,1,.36,1); }
@keyframes bump { 0% { transform: scale(1);} 40% { transform: scale(1.22);} 100% { transform: scale(1);} }
.step-caption { text-align: center; color: var(--muted); font-size: .85rem; margin-bottom: 14px; }

/* ===== check-in button (uploader/sstor) ===== */
.checkin-btn {
  position: relative; overflow: hidden;
  width: 170px; height: 170px; margin: 14px auto; border-radius: 50%;
  border: 2px solid var(--line);
  background: radial-gradient(circle at 35% 30%, var(--card2), var(--bg2));
  color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: transform .15s, border-color .3s, box-shadow .3s;
}
.checkin-btn .big { font-size: 2.6rem; }
.checkin-btn:active { transform: scale(.92); }
.checkin-btn.done {
  border-color: var(--green); color: var(--green);
  box-shadow: 0 0 0 8px var(--green-soft), 0 10px 40px rgba(52,211,153,.2);
  animation: checkPop .45s cubic-bezier(.22,1,.36,1);
}
@keyframes checkPop { 0% { transform: scale(.85);} 55% { transform: scale(1.06);} 100% { transform: scale(1);} }

/* checkmark draw */
.checkmark { width: 56px; height: 56px; }
.checkmark circle {
  stroke: var(--green); stroke-width: 2.5; fill: none;
  stroke-dasharray: 166; stroke-dashoffset: 166;
  animation: drawCircle .5s ease-out forwards;
}
.checkmark path {
  stroke: var(--green); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: drawCheck .35s .35s ease-out forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ===== stats / summary ===== */
.stat-row { display: flex; gap: 11px; margin-bottom: 14px; }
.stat {
  flex: 1; min-width: 0; background: linear-gradient(160deg, var(--card), var(--bg2));
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px; text-align: center;
}
.stat .num { font-size: clamp(1.05rem, 5.5vw, 1.55rem); font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .lbl { font-size: .72rem; color: var(--muted); margin-top: 3px; font-weight: 600; }
.stat .num.blue { color: var(--blue); }
.stat .num.green { color: var(--green); }
.stat .num.amber { color: var(--amber); }

/* ===== history list ===== */
.hist-item {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 4px; border-bottom: 1px solid rgba(34,48,87,.5);
  animation: viewIn .35s cubic-bezier(.22,1,.36,1) backwards;
}
.hist-item:last-child { border-bottom: none; }
.hist-date {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: var(--card2); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hist-date .d { font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
.hist-date .m { font-size: .66rem; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.hist-body { flex: 1; min-width: 0; }
.hist-main { font-size: .94rem; font-weight: 600; }
.hist-note { font-size: .8rem; color: var(--muted); margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.badge {
  display: inline-block; padding: 4px 11px; border-radius: 100px; font-size: .72rem; font-weight: 700;
}
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.blue  { background: var(--blue-soft); color: var(--blue); }
.badge.red   { background: var(--red-soft); color: var(--red); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.gray  { background: rgba(139,155,189,.12); color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 28px 10px; font-size: .9rem; }
.empty .big { font-size: 2.2rem; display: block; margin-bottom: 8px; }

/* ===== kalender absensi ===== */
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head span {
  text-align: center; font-size: .68rem; letter-spacing: .04em;
  color: #5b6478; text-transform: uppercase; font-weight: 700; padding: 6px 0;
}
.cal-head span.wknd { color: rgba(248,113,113,.55); }
.cal-cell {
  min-height: 46px; aspect-ratio: 1 / 1.02; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  position: relative; overflow: hidden;
  background: transparent; border: 1px solid rgba(34,48,87,.55);
  color: var(--text); font-size: .88rem; font-variant-numeric: tabular-nums;
  font-family: inherit; cursor: pointer; padding: 0;
  transition: transform .12s;
}
.cal-cell:active { transform: scale(.9); }
.cal-cell.blank { visibility: hidden; pointer-events: none; }
.cal-cell .st { font-size: .5rem; font-weight: 800; line-height: 1; }
.cal-cell.masuk { background: rgba(52,211,153,.16); border-color: rgba(52,211,153,.45); }
.cal-cell.masuk .st { color: var(--green); }
.cal-cell.libur { background: rgba(96,165,250,.16); border-color: rgba(96,165,250,.45); }
.cal-cell.libur .st { color: #60a5fa; }
.cal-cell.izin { background: rgba(251,191,36,.15); border-color: rgba(251,191,36,.45); }
.cal-cell.izin .st { color: var(--amber); }
.cal-cell.alpa { background: rgba(248,113,113,.16); border-color: rgba(248,113,113,.45); }
.cal-cell.alpa .st { color: var(--red); }
.cal-cell.belum { color: #5b6478; }
.cal-cell.future { color: #38415c; border-style: dashed; }
.cal-cell.today { box-shadow: 0 0 0 2px #fff; }
.cal-cell .vt-mini { font-size: .54rem; font-weight: 800; color: var(--green); line-height: 1; }
.cal-cell.has-note::after {
  content: ''; position: absolute; top: 5px; right: 5px;
  width: 5px; height: 5px; border-radius: 50%; background: #e8ecf5;
}
.cal-legend {
  display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center;
  margin-top: 12px; font-size: .7rem; color: var(--muted); font-weight: 600;
}
.cal-legend i {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px;
  vertical-align: -1px; font-style: normal;
}

/* chip ringkasan status (H/L/I/A) */
.sum-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sum-chips .badge { font-size: .74rem; }

/* segmented status chips di sheet edit */
.st-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 14px; }
.st-chip {
  padding: 13px 8px; border-radius: 13px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--muted);
  font-size: .88rem; font-weight: 700; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .12s, border-color .2s, background .2s, color .2s;
  position: relative; overflow: hidden;
}
.st-chip:active { transform: scale(.94); }
.st-chip.on.masuk { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.st-chip.on.libur { background: rgba(96,165,250,.14); border-color: #60a5fa; color: #60a5fa; }
.st-chip.on.izin { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.st-chip.on.alpa { background: var(--red-soft); border-color: var(--red); color: var(--red); }

/* ===== bottom nav ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-around;
  background: rgba(15, 22, 41, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  max-width: 100%;
}
.nav-item {
  flex: 1; max-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 0; border: none; background: none; color: var(--muted);
  font-size: .68rem; font-weight: 700; font-family: inherit;
  border-radius: 14px; transition: color .2s, transform .15s; cursor: pointer;
  position: relative; overflow: hidden;
}
.nav-item .ico { font-size: 1.35rem; transition: transform .2s; }
.nav-item.active { color: var(--blue); }
.nav-item.active .ico { transform: translateY(-2px) scale(1.12); }
.nav-item:active { transform: scale(.9); }
.nav-item.active::after {
  content: ''; position: absolute; top: 2px; width: 18px; height: 3px; border-radius: 3px;
  background: var(--blue); animation: navDot .3s cubic-bezier(.22,1,.36,1);
}
@keyframes navDot { from { width: 0; opacity: 0; } to { width: 18px; opacity: 1; } }

/* ===== owner: team member row ===== */
.member {
  display: flex; align-items: center; gap: 13px;
  background: linear-gradient(160deg, var(--card), var(--bg2));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; margin-bottom: 11px;
  transition: transform .15s, border-color .2s; cursor: pointer;
  position: relative; overflow: hidden;
}
.member:active { transform: scale(.97); border-color: var(--blue); }
.avatar {
  width: 48px; height: 48px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; color: #fff;
}
.avatar.editor   { background: linear-gradient(145deg, #3b82f6, #1d4ed8); }
.avatar.uploader { background: linear-gradient(145deg, #8b5cf6, #6d28d9); }
.avatar.sstor    { background: linear-gradient(145deg, #06b6d4, #0e7490); }
.member-body { flex: 1; min-width: 0; }
.member-name { font-weight: 700; font-size: .98rem; }
.member-sub { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.member-end { text-align: right; flex-shrink: 0; }
.member-end .money { font-weight: 800; font-size: .95rem; color: var(--green); font-variant-numeric: tabular-nums; }
.member-end .sub { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.member.inactive { opacity: .45; }

/* total gaji banner */
.money-banner {
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(29,78,216,.1));
  border: 1px solid rgba(59,130,246,.35);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.money-banner::after {
  content: ''; position: absolute; top: -40%; right: -10%; width: 140px; height: 140px;
  background: radial-gradient(circle, var(--blue-glow), transparent 70%); pointer-events: none;
}
.money-banner .lbl { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.money-banner .val { font-size: 1.9rem; font-weight: 800; color: #fff; margin-top: 4px; font-variant-numeric: tabular-nums; }
.money-banner .note { font-size: .78rem; color: var(--muted); margin-top: 3px; }

/* month switcher */
.month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.month-nav .label { font-weight: 800; font-size: 1.05rem; }

/* ===== bottom sheet ===== */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(4,8,18,.65); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90;
}
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--bg2); border: 1px solid var(--line); border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  max-width: 520px; margin: 0 auto;
  max-height: 88dvh; overflow-y: auto;
  transform: translateY(100%); transition: transform .32s cubic-bezier(.22,1,.36,1);
}
.sheet.show { transform: translateY(0); }
.sheet .grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 6px auto 16px; cursor: pointer; box-sizing: content-box; padding: 8px 30px; background-clip: content-box; }
.sheet-back {
  position: absolute; left: 12px; top: 8px;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--card2); border: 1px solid var(--line); color: var(--muted);
  font-size: 1.15rem; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s; overflow: hidden;
}
.sheet-back:active { transform: scale(.88); color: var(--blue); border-color: var(--blue); }
.sheet h3 { font-size: 1.12rem; margin-bottom: 16px; }

/* ===== toast ===== */
#toast-wrap { position: fixed; bottom: calc(100px + env(safe-area-inset-bottom)); left: 0; right: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: var(--card2); border: 1px solid var(--line);
  color: var(--text); font-size: .9rem; font-weight: 600;
  padding: 13px 20px; border-radius: 100px;
  box-shadow: 0 10px 35px rgba(0,0,0,.45);
  display: flex; align-items: center; gap: 9px;
  animation: toastIn .35s cubic-bezier(.22,1,.36,1);
  max-width: 86vw;
}
.toast.out { animation: toastOut .3s forwards; }
.toast.ok { border-color: rgba(52,211,153,.4); }
.toast.err { border-color: rgba(248,113,113,.45); }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.92);} to { opacity: 1; transform: translateY(0) scale(1);} }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px) scale(.95);} }

/* ===== misc ===== */
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.divider { height: 1px; background: var(--line); margin: 16px 0; opacity: .6; }
.section-title { font-size: 1.05rem; font-weight: 800; margin: 20px 0 12px; display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; }
.shake { animation: shake .4s; }
@keyframes shake { 0%,100% { transform: translateX(0);} 25% { transform: translateX(-7px);} 75% { transform: translateX(7px);} }

.fab-mini {
  border: none; background: var(--blue-soft); color: var(--blue);
  font-size: .82rem; font-weight: 700; font-family: inherit;
  padding: 12px 16px; min-height: 44px; border-radius: 100px; cursor: pointer;
  transition: transform .15s; position: relative; overflow: hidden;
}
.fab-mini:active { transform: scale(.9); }

/* select: ruang buat panah */
select.input { padding-right: 44px; }

/* feedback elemen tappable & disabled */
.hist-item.tappable:active { background: var(--blue-soft); border-radius: 12px; }
.checkin-btn:disabled { opacity: .6; }

/* loading bar tipis di atas layar saat request jalan */
#loadbar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300;
  background: linear-gradient(90deg, transparent, var(--blue), #93c5fd, var(--blue), transparent);
  background-size: 50% 100%; background-repeat: no-repeat;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
#loadbar.on { opacity: 1; animation: loadslide 1s linear infinite; }
@keyframes loadslide { from { background-position: -60% 0; } to { background-position: 160% 0; } }

/* re-render tanpa animasi masuk (biar gak kedip tiap simpan) */
.view.no-anim, .view.no-anim * { animation: none !important; }

/* hormati setting kurangi animasi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
