/* =========================================================
   OSIS CONNECT v2.0 — M. Yuuta R.A.M — 13/10/2026
   ========================================================= */
:root {
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bg: #e8eefa;
  --ink: #0b1838;
  --ink-2: #4b5a7c;
  --ink-3: #8290ac;
  --line: rgba(22, 52, 120, 0.1);
  --line-2: rgba(22, 52, 120, 0.16);
  --glass: rgba(255, 255, 255, 0.5);
  --glass-top: rgba(255, 255, 255, 0.82);
  --glass-bot: rgba(255, 255, 255, 0.34);
  --glass-brd: rgba(255, 255, 255, 0.72);
  --glass-solid: rgba(248, 251, 255, 0.9);
  --rim-a: rgba(255, 255, 255, 0.95);
  --rim-b: rgba(255, 255, 255, 0.55);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.25);
  --shadow: 0 1px 2px rgba(16, 40, 100, 0.05), 0 16px 40px -18px rgba(16, 46, 130, 0.28);
  --field: rgba(255, 255, 255, 0.62);
  --field-brd: rgba(22, 52, 120, 0.13);
  --field-f: rgba(255, 255, 255, 0.95);
  --chip: rgba(255, 255, 255, 0.58);
  --chip-h: rgba(255, 255, 255, 0.9);
  --row: rgba(255, 255, 255, 0.46);
  --row-h: rgba(255, 255, 255, 0.78);
  --scrim: rgba(14, 28, 66, 0.26);
  --ring: rgba(47, 102, 246, 0.18);
  --b3: #7aa3ff;
  --b4: #4f86ff;
  --b5: #2f66f6;
  --b6: #1f4fe0;
  --b7: #1a3fb4;
  --b8: #142f86;
  --b9: #0c1f5c;
  --accent: #1f4fe0;
  --grad-btn: linear-gradient(180deg, #4a82ff 0%, #2457ea 55%, #1a45cc 100%);
  --good: #0f9f55;
  --good-bg: rgba(15, 159, 85, 0.12);
  --good-ink: #0b7a41;
  --warn: #e2950a;
  --warn-bg: rgba(231, 154, 12, 0.15);
  --warn-ink: #935700;
  --bad: #d43d3d;
  --bad-bg: rgba(212, 61, 61, 0.11);
  --bad-ink: #a92424;
  --idle: #8090ad;
  --idle-bg: rgba(100, 120, 160, 0.13);
  --idle-ink: #55617d;
  --hatch: rgba(47, 102, 246, 0.2);
  --g-done: #16338c;
  --g-run: #5b8bff;
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;
  --blur: 20px;
  --spring: cubic-bezier(0.34, 1.36, 0.5, 1);
  --spring-d: 0.62s;
  --smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
}
html[data-theme='dark'] {
  --bg: #050a18;
  --ink: #e8eeff;
  --ink-2: #a2b0d2;
  --ink-3: #6f7ea4;
  --line: rgba(150, 180, 255, 0.11);
  --line-2: rgba(150, 180, 255, 0.18);
  --glass: rgba(20, 30, 62, 0.5);
  --glass-top: rgba(40, 56, 106, 0.55);
  --glass-bot: rgba(12, 20, 44, 0.44);
  --glass-brd: rgba(140, 170, 255, 0.14);
  --glass-solid: rgba(15, 24, 50, 0.93);
  --rim-a: rgba(170, 200, 255, 0.32);
  --rim-b: rgba(120, 160, 255, 0.1);
  --inset: inset 0 1px 0 rgba(200, 220, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px -18px rgba(0, 0, 0, 0.72);
  --field: rgba(8, 15, 36, 0.55);
  --field-brd: rgba(140, 170, 255, 0.15);
  --field-f: rgba(10, 20, 48, 0.85);
  --chip: rgba(255, 255, 255, 0.055);
  --chip-h: rgba(255, 255, 255, 0.11);
  --row: rgba(255, 255, 255, 0.035);
  --row-h: rgba(255, 255, 255, 0.075);
  --scrim: rgba(0, 4, 16, 0.52);
  --ring: rgba(90, 140, 255, 0.26);
  --accent: #7aa3ff;
  --good: #2fc77a;
  --good-bg: rgba(47, 199, 122, 0.14);
  --good-ink: #62e3a0;
  --warn: #f5b13a;
  --warn-bg: rgba(245, 177, 58, 0.15);
  --warn-ink: #ffcb6b;
  --bad: #ff6b6b;
  --bad-bg: rgba(255, 107, 107, 0.13);
  --bad-ink: #ff9c9c;
  --idle: #7f8db0;
  --idle-bg: rgba(140, 160, 210, 0.13);
  --idle-ink: #aab6d6;
  --hatch: rgba(110, 155, 255, 0.24);
  --g-done: #a9c3ff;
  --g-run: #3a63e0;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}
html[data-theme='dark'] {
  color-scheme: dark;
}
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.4s;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
svg.i {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg.i.fill {
  fill: currentColor;
  stroke: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
::selection {
  background: rgba(47, 102, 246, 0.22);
}
:focus-visible {
  outline: 2px solid var(--b5);
  outline-offset: 2px;
}
.scroll-y {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

/* ===== background ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(1100px 700px at 0% 0%, #d3e2ff 0%, transparent 60%),
    radial-gradient(900px 650px at 100% 0%, #cbe9ff 0%, transparent 55%),
    radial-gradient(1200px 800px at 60% 110%, #dadfff 0%, transparent 60%), var(--bg);
  transition: background 0.5s;
}
html[data-theme='dark'] .bg {
  background: radial-gradient(1100px 700px at 0% 0%, #0f2258 0%, transparent 60%),
    radial-gradient(900px 650px at 100% 0%, #08305c 0%, transparent 55%),
    radial-gradient(1200px 800px at 60% 110%, #191552 0%, transparent 60%), var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  width: var(--s);
  height: var(--s);
  background: radial-gradient(closest-side, var(--c), transparent);
  will-change: transform;
}
.b1 {
  --s: 70vmax;
  --c: rgba(64, 120, 255, 0.42);
  left: -24vmax;
  top: -30vmax;
  animation: m1 28s var(--smooth) infinite alternate;
}
.b2 {
  --s: 56vmax;
  --c: rgba(56, 189, 248, 0.36);
  right: -18vmax;
  top: -12vmax;
  animation: m2 34s var(--smooth) infinite alternate;
}
.b3 {
  --s: 62vmax;
  --c: rgba(99, 102, 241, 0.3);
  left: 20vmax;
  bottom: -34vmax;
  animation: m3 30s var(--smooth) infinite alternate;
}
.b4 {
  --s: 34vmax;
  --c: rgba(37, 99, 235, 0.3);
  right: 8vmax;
  bottom: 6vmax;
  animation: m4 24s var(--smooth) infinite alternate;
}
html[data-theme='dark'] .blob {
  opacity: 0.7;
}
@keyframes m1 {
  to {
    transform: translate3d(14vmax, 10vmax, 0) rotate(40deg) scale(1.14, 0.84);
  }
}
@keyframes m2 {
  to {
    transform: translate3d(-12vmax, 14vmax, 0) rotate(-30deg) scale(0.88, 1.16);
  }
}
@keyframes m3 {
  to {
    transform: translate3d(-10vmax, -12vmax, 0) rotate(60deg) scale(1.2, 0.88);
  }
}
@keyframes m4 {
  to {
    transform: translate3d(-16vmax, -8vmax, 0) scale(1.3);
  }
}
body.in-app .blob {
  animation-play-state: paused;
}
.bg-img {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  opacity: 0;
  transition: opacity 0.8s;
}
.bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(18, 50, 140, 0.3), rgba(10, 20, 60, 0.12));
}
body.has-bg:not(.in-app) .bg-img {
  opacity: 1;
}

/* ===== liquid glass ===== */
.glass {
  position: relative;
  background: linear-gradient(150deg, var(--glass-top) 0%, var(--glass) 45%, var(--glass-bot) 100%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
  backdrop-filter: blur(var(--blur)) saturate(170%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--inset), var(--shadow);
}
.glass::before,
.glass-solid::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--rim-a), transparent 32%, transparent 68%, var(--rim-b));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass-solid {
  position: relative;
  background: var(--glass-solid);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-brd);
  box-shadow:
    var(--inset),
    0 30px 80px -24px rgba(10, 30, 90, 0.45);
}

/* ===== controls ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition:
    transform var(--spring-d) var(--spring),
    box-shadow 0.3s,
    background 0.3s,
    opacity 0.3s,
    color 0.3s;
  user-select: none;
  -webkit-user-select: none;
  text-decoration: none;
}
.btn:active {
  transform: scale(0.95);
  transition-duration: 0.12s;
}
.btn:disabled,
.btn.busy {
  opacity: 0.5;
  pointer-events: none;
}
.btn .i {
  width: 18px;
  height: 18px;
}
.btn-primary {
  color: #fff;
  background: var(--grad-btn);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 6px rgba(5, 20, 90, 0.3),
    0 10px 24px -10px rgba(31, 79, 224, 0.75);
}
.btn-primary::after,
.btn-danger::after {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  top: 1px;
  height: 50%;
  border-radius: 999px 999px 18px 18px/999px 999px 10px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 6px rgba(5, 20, 90, 0.3),
    0 14px 30px -10px rgba(31, 79, 224, 0.85);
}
.btn-glass {
  color: var(--ink);
  background: var(--chip);
  border: 1px solid var(--line-2);
  box-shadow: var(--inset);
}
.btn-glass:hover {
  background: var(--chip-h);
}
.btn-danger {
  color: #fff;
  background: linear-gradient(180deg, #f26767, #cf3434);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px -12px rgba(207, 52, 52, 0.8);
}
.btn-good {
  color: #fff;
  background: linear-gradient(180deg, #25c072, #0d9450);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px -12px rgba(13, 148, 80, 0.8);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.btn-block {
  width: 100%;
}
.ibtn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--chip);
  border: 1px solid var(--line-2);
  box-shadow: var(--inset);
  transition:
    transform var(--spring-d) var(--spring),
    background 0.25s,
    color 0.25s;
  flex: none;
}
.ibtn:hover {
  background: var(--chip-h);
}
.ibtn:active {
  transform: scale(0.88);
  transition-duration: 0.12s;
}
.ibtn.sm {
  width: 34px;
  height: 34px;
}
.ibtn.sm .i {
  width: 17px;
  height: 17px;
}
.ibtn.ghost {
  background: none;
  border-color: transparent;
  box-shadow: none;
}
.ibtn.ghost:hover {
  background: var(--chip);
}
.ibtn.danger {
  color: var(--bad);
}
.ibtn .dot {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.ibtn .dot:empty {
  min-width: 10px;
  width: 10px;
  height: 10px;
  top: 1px;
  right: 1px;
  padding: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field > span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding-left: 2px;
}
.inp {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 15px;
  background: var(--field);
  border: 1px solid var(--field-brd);
  outline: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
  min-width: 0;
}
.inp::placeholder {
  color: var(--ink-3);
}
.inp:focus {
  border-color: var(--b4);
  box-shadow: 0 0 0 4px var(--ring);
  background: var(--field-f);
}
textarea.inp {
  height: auto;
  min-height: 90px;
  padding: 12px 16px;
  resize: vertical;
  line-height: 1.5;
}
select.inp {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 21px,
    calc(100% - 15px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.inp-sm {
  height: 40px;
  border-radius: 13px;
  font-size: 13px;
}
select.inp-sm {
  background-position:
    calc(100% - 20px) 17px,
    calc(100% - 15px) 17px;
}
.ii {
  position: relative;
  display: block;
}
.ii > .i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
  width: 19px;
  height: 19px;
}
.ii > .inp {
  padding-left: 46px;
}
.ii > .eye {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}
.ii > .inp.has-eye {
  padding-right: 48px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line-2);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform var(--spring-d) var(--spring),
    box-shadow 0.3s;
  box-shadow: var(--inset);
}
.chip:hover {
  background: var(--chip-h);
}
.chip:active {
  transform: scale(0.93);
  transition-duration: 0.1s;
}
.chip .i {
  width: 16px;
  height: 16px;
}
.chip.on {
  color: #fff;
  background: var(--grad-btn);
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 18px -10px rgba(31, 79, 224, 0.8);
}
.chip.add {
  border-style: dashed;
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}
.chip.person {
  padding-left: 4px;
}
.chip.person .av {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.chip-in {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 4px 0 14px;
  border-radius: 999px;
  background: var(--field-f);
  border: 1px solid var(--b4);
  box-shadow: 0 0 0 4px var(--ring);
  overflow: hidden;
}
.chip-in input {
  border: 0;
  outline: 0;
  background: none;
  width: 170px;
  font-weight: 600;
  font-size: 13px;
}
.chip-in .ibtn {
  width: 30px;
  height: 30px;
}
.chip-in .ibtn .i {
  width: 15px;
  height: 15px;
}

.seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 2px rgba(10, 30, 80, 0.06);
  isolation: isolate;
}
.seg > button {
  position: relative;
  z-index: 1;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.3s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.seg > button.on {
  color: var(--ink);
}
.seg > button .i {
  width: 16px;
  height: 16px;
}
.seg-pill {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: var(--glass-solid);
  box-shadow:
    0 3px 12px -2px rgba(20, 40, 110, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  opacity: 0;
  pointer-events: none;
}
html[data-theme='dark'] .seg-pill {
  background: rgba(90, 125, 220, 0.3);
  box-shadow:
    0 3px 12px -2px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(200, 220, 255, 0.18);
}
.seg.blue > button.on {
  color: #fff;
}
.seg.blue .seg-pill {
  background: var(--grad-btn);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 16px -8px rgba(31, 79, 224, 0.9);
}
.seg.red .seg-pill {
  background: linear-gradient(180deg, #f26767, #cf3434);
}

.sw {
  position: relative;
  width: 54px;
  height: 32px;
  flex: none;
  display: inline-block;
}
.sw input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0;
  width: 100%;
  height: 100%;
}
.sw .tr {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--idle-bg);
  border: 1px solid var(--line-2);
  transition: background 0.35s;
}
.sw .kn {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 2px 7px rgba(0, 10, 40, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.06);
  transition:
    transform var(--spring-d) var(--spring),
    width 0.28s var(--smooth);
}
.sw input:checked ~ .tr {
  background: var(--grad-btn);
  border-color: transparent;
}
.sw input:checked ~ .kn {
  transform: translateX(22px);
}
.sw input:active ~ .kn {
  width: 33px;
}
.sw input:checked:active ~ .kn {
  transform: translateX(15px);
}
.sw input:focus-visible ~ .tr {
  outline: 2px solid var(--b5);
  outline-offset: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 10px 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex: none;
}
.badge .i {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}
.b-done {
  color: var(--good-ink);
  background: var(--good-bg);
}
.b-run {
  color: var(--warn-ink);
  background: var(--warn-bg);
}
.b-idle {
  color: var(--idle-ink);
  background: var(--idle-bg);
}
.b-miss {
  color: var(--bad-ink);
  background: var(--bad-bg);
}
.b-blue {
  color: var(--accent);
  background: var(--ring);
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--chip);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.role {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.role.guru {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
}
.role.pic {
  color: var(--accent);
  background: var(--ring);
}
.role.osis {
  color: #0891b2;
  background: rgba(8, 145, 178, 0.12);
}
.role.it {
  color: #c2410c;
  background: rgba(194, 65, 12, 0.12);
}
html[data-theme='dark'] .role.guru {
  color: #b69cff;
}
html[data-theme='dark'] .role.osis {
  color: #5fd4ef;
}
html[data-theme='dark'] .role.it {
  color: #ffa36b;
}

.av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  background: linear-gradient(145deg, var(--a), var(--b));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex: none;
  user-select: none;
}
.av.lg {
  width: 52px;
  height: 52px;
  font-size: 17px;
}
.av.xs {
  width: 28px;
  height: 28px;
  font-size: 10.5px;
}
.avs {
  display: flex;
  align-items: center;
}
.avs .av {
  width: 30px;
  height: 30px;
  font-size: 10.5px;
  box-shadow: 0 0 0 2px var(--glass-solid);
}
.avs .av + .av {
  margin-left: -9px;
}
.avs .more {
  margin-left: -9px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: var(--chip-h);
  color: var(--ink-2);
  box-shadow: 0 0 0 2px var(--glass-solid);
}

/* ===== boot ===== */
.boot {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  transition: opacity 0.45s;
}
.boot img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  animation: pulse 1.4s var(--smooth) infinite;
}
.boot.out {
  opacity: 0;
  pointer-events: none;
}
@keyframes pulse {
  50% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

/* ===== login ===== */
.login {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow-y: auto;
  display: flex;
  padding: 24px 16px;
}
.lwrap {
  margin: auto;
  width: min(424px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lcard {
  width: 100%;
  padding: 34px 28px 26px;
  border-radius: 36px;
  text-align: center;
}
.llogo-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
}
.llogo-wrap .halo {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 118, 255, 0.38), transparent);
  animation: halo 5s var(--smooth) infinite alternate;
}
.llogo {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 18px 40px -14px rgba(25, 60, 170, 0.55),
    0 0 0 6px rgba(255, 255, 255, 0.55);
  animation: float 6s ease-in-out infinite;
}
html[data-theme='dark'] .llogo {
  box-shadow:
    0 18px 40px -14px rgba(0, 0, 0, 0.7),
    0 0 0 6px rgba(255, 255, 255, 0.08);
}
@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}
@keyframes halo {
  to {
    transform: scale(1.18);
    opacity: 0.6;
  }
}
.ltitle {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.lsub {
  color: var(--ink-2);
  font-size: 13.5px;
  margin-top: 6px;
}
.lseg {
  margin: 22px auto 0;
  display: flex;
  width: 100%;
}
.lseg > button {
  flex: 1;
}
.lpanes {
  position: relative;
}
.lform {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  padding-top: 18px;
}
.lrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
}
.lrem {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.lrem .sw {
  width: 44px;
  height: 26px;
}
.lrem .sw .kn {
  width: 20px;
  height: 20px;
}
.lrem .sw input:checked ~ .kn {
  transform: translateX(18px);
}
.lrem .sw input:active ~ .kn {
  width: 25px;
}
.lrem .sw input:checked:active ~ .kn {
  transform: translateX(13px);
}
.lerr {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bad-ink);
  min-height: 0;
  padding-left: 2px;
}
.warn {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: 18px;
  background: var(--bad-bg);
  color: var(--bad-ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
  border: 1px solid rgba(212, 61, 61, 0.18);
}
.warn .i {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}
.warn b {
  display: block;
  font-weight: 800;
  font-size: 13.5px;
}
.warn.info {
  background: var(--ring);
  color: var(--accent);
  border-color: rgba(47, 102, 246, 0.2);
}
.lfoot {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.02em;
}
body.has-bg:not(.in-app) .lfoot {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== app shell ===== */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  min-height: 100vh;
  min-height: 100dvh;
}
.side {
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 14px;
  border-radius: var(--r-xl);
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 16px;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 16px -6px rgba(20, 60, 160, 0.5);
  flex: none;
}
.brand b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.brand small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
}
.nav-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 14px 8px;
}
.nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  isolation: isolate;
}
.nav a,
.nav button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  height: 46px;
  padding: 0 14px;
  border-radius: 15px;
  color: var(--ink-2);
  font-weight: 650;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.35s,
    background 0.25s;
  width: 100%;
  text-align: left;
}
.nav a:hover,
.nav button:hover {
  color: var(--ink);
}
.nav a.on {
  color: #fff;
}
.nav a .cnt {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  background: var(--ring);
  color: var(--accent);
  transition:
    background 0.3s,
    color 0.3s;
}
.nav a.on .cnt {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.nav-pill {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  border-radius: 15px;
  background: var(--grad-btn);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 8px rgba(5, 20, 90, 0.25),
    0 10px 22px -10px rgba(31, 79, 224, 0.85);
  opacity: 0;
  pointer-events: none;
}
.nav-pill::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  top: 1px;
  height: 48%;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}
.side-card {
  margin-top: auto;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 18px 16px 16px;
  color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #3d73ff 0%, transparent 55%),
    linear-gradient(160deg, #1b3a9e, #0c1c55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 14px 30px -14px rgba(12, 28, 85, 0.8);
}
.side-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 110% -10%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 16px);
  pointer-events: none;
}
.side-card .sc-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 12px;
}
.side-card .sc-ico .i {
  width: 18px;
  height: 18px;
}
.side-card b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.side-card p {
  font-size: 11.5px;
  opacity: 0.78;
  margin-top: 3px;
  line-height: 1.45;
}
.side-card .ver {
  display: inline-flex;
  margin-top: 12px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 800;
  align-items: center;
  letter-spacing: 0.04em;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.top {
  position: sticky;
  top: 16px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 66px;
  padding: 0 12px 0 14px;
  border-radius: var(--r-xl);
}
.top-brand {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.top-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.search {
  flex: 1;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 6px 0 15px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--field-brd);
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
  cursor: text;
}
.search:focus-within {
  border-color: var(--b4);
  box-shadow: 0 0 0 4px var(--ring);
  background: var(--field-f);
}
.search .i {
  color: var(--ink-3);
  width: 19px;
  height: 19px;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  height: 100%;
}
.search input::placeholder {
  color: var(--ink-3);
}
.search kbd {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.top-r {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  transition: background 0.25s;
  text-align: left;
}
.me:hover {
  background: var(--chip);
}
.me b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
}

.page {
  min-width: 0;
  padding: 4px 4px 40px;
}
.ph {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  margin: 8px 4px 20px;
  flex-wrap: wrap;
}
.ph h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.ph p {
  color: var(--ink-2);
  margin-top: 6px;
  font-weight: 500;
}
.ph-act {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 4px 16px;
}
.toolbar .grow {
  flex: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.c3 {
  grid-column: span 3;
}
.c4 {
  grid-column: span 4;
}
.c5 {
  grid-column: span 5;
}
.c6 {
  grid-column: span 6;
}
.c7 {
  grid-column: span 7;
}
.c8 {
  grid-column: span 8;
}
.c12 {
  grid-column: 1/-1;
}
.card {
  position: relative;
  padding: 20px;
  border-radius: var(--r-lg);
  min-width: 0;
}
.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  min-height: 34px;
}
.card-h h3 {
  font-size: 16px;
  font-weight: 750;
  font-weight: 700;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-h .sub {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}
.muted {
  color: var(--ink-3);
}
.mt {
  margin-top: 14px;
}
.card-h > div > .sub {
  display: block;
  margin-top: 2px;
}
.btn[aria-disabled='true'] {
  opacity: 0.6;
}
.sheet .nitem b {
  -webkit-line-clamp: 3;
}
.sheet .nitem:hover {
  background: var(--row);
}
.mrow b .tag {
  vertical-align: 1px;
  margin-left: 4px;
}
.lb .prow .tx {
  display: flex;
  flex-direction: column;
}

/* page entrance */
.rise {
  animation: rise var(--spring-d) var(--spring) both;
  animation-delay: calc(var(--i, 0) * 42ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.975);
  }
}
.pop {
  animation: pop 0.5s var(--spring) both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

/* ===== dashboard ===== */
.stat {
  display: flex;
  flex-direction: column;
  min-height: 158px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: transform var(--spring-d) var(--spring);
}
.stat:active {
  transform: scale(0.975);
}
.stat .lbl {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding-right: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat .lbl .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7cffb2;
  box-shadow: 0 0 0 0 rgba(124, 255, 178, 0.7);
  animation: live 2s infinite;
}
@keyframes live {
  70% {
    box-shadow: 0 0 0 9px rgba(124, 255, 178, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(124, 255, 178, 0);
  }
}
.stat .num {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: auto;
  padding-top: 18px;
}
.stat .foot {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-top: 10px;
}
.stat .foot .fi {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
}
.stat .foot .fi .i {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}
.stat .go {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transition:
    transform var(--spring-d) var(--spring),
    background 0.3s;
}
.stat .go .i {
  width: 17px;
  height: 17px;
}
.stat:hover .go {
  transform: rotate(45deg);
  background: var(--chip-h);
}
.stat.hero {
  color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, #5b8eff 0%, transparent 50%),
    linear-gradient(150deg, #3270ff 0%, #1d4ed8 52%, #132f8f 100%);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 20px 40px -18px rgba(29, 78, 216, 0.75);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: hidden;
}
.stat.hero::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7),
    transparent 35%,
    transparent 70%,
    rgba(255, 255, 255, 0.25)
  );
}
.stat.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.18) 45%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 1.1s var(--smooth);
}
.stat.hero:hover::after {
  transform: translateX(100%);
}
.stat.hero .foot {
  color: rgba(255, 255, 255, 0.82);
}
.stat.hero .foot .fi,
.stat.hero .go {
  border-color: rgba(255, 255, 255, 0.35);
}
.stat.hero .go {
  background: rgba(255, 255, 255, 0.12);
}
.stat.hero:hover .go {
  background: rgba(255, 255, 255, 0.24);
}

.wk-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.wk-nav span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  min-width: 96px;
  text-align: center;
}
.bars {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  height: 206px;
  padding-top: 30px;
}
.bcol {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  position: relative;
  outline: none;
}
.btrack {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 48px;
  border-radius: 999px;
  background: repeating-linear-gradient(135deg, var(--hatch) 0 1.6px, transparent 1.6px 7px);
  box-shadow: inset 0 0 0 1.5px var(--hatch);
  display: flex;
  align-items: flex-end;
}
.bfill {
  position: relative;
  width: 100%;
  height: var(--h);
  min-height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #6d9bff, #2f66f6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 18px -10px rgba(47, 102, 246, 0.9);
  transform-origin: bottom;
  animation: grow calc(var(--spring-d) + 0.25s) var(--spring) both;
  animation-delay: calc(var(--i, 0) * 60ms + 120ms);
}
.bfill::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  top: 5px;
  height: min(38%, 26px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
}
.bcol.today .bfill {
  background: linear-gradient(180deg, #2549c9, #0c1f5c);
}
html[data-theme='dark'] .bcol.today .bfill {
  background: linear-gradient(180deg, #9dbbff, #4f86ff);
}
.bcol.zero .btrack {
  opacity: 0.55;
}
@keyframes grow {
  from {
    transform: scaleY(0);
  }
}
.blbl {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 700;
}
.bcol.today .blbl {
  color: var(--ink);
}
.btip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 6px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--glass-solid);
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 20px -8px rgba(10, 30, 90, 0.35);
  transition:
    opacity 0.25s,
    transform 0.45s var(--spring);
  z-index: 3;
}
.btip small {
  display: block;
  font-weight: 600;
  color: var(--ink-3);
  font-size: 10.5px;
}
.bcol:hover .btip,
.bcol:focus .btip,
.bcol.today .btip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.bars:hover .bcol.today:not(:hover) .btip {
  opacity: 0;
}
.btip {
  bottom: calc(var(--th, 100%) + 8px);
}
.wk-sum {
  display: flex;
  gap: 18px;
  margin-top: 4px;
}
.wk-sum div {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}
.wk-sum b {
  display: block;
  font-size: 18px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.next .kg {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 10px;
}
.next .mi {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}
.next .mi .i {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
}
.next .btn {
  margin-top: 18px;
}
.next-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-3);
  font-weight: 600;
}

.nlist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nitem {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 8px;
  border-radius: 14px;
  transition: background 0.25s;
  text-align: left;
  width: 100%;
}
.nitem:hover {
  background: var(--row-h);
}
.nico {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  background: linear-gradient(145deg, #5b8bff, #2346d6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.nico .i {
  width: 17px;
  height: 17px;
}
.nitem b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.nitem small {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
}
.nitem p {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 3px;
  white-space: pre-wrap;
  word-break: break-word;
}
.nitem.unread b::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  margin-left: 7px;
  vertical-align: middle;
}

.tlist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 8px;
  border-radius: 16px;
  background: var(--row);
  transition: background 0.25s;
}
.trow:hover {
  background: var(--row-h);
}
.trow .tx {
  flex: 1;
  min-width: 0;
}
.trow b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trow small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gauge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gauge svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  overflow: visible;
}
.gauge .seg-arc {
  transition:
    stroke-dasharray 1.2s var(--smooth),
    stroke-dashoffset 1.2s var(--smooth);
}
.gauge .gv {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  text-align: center;
}
.gauge .gv b {
  display: block;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.gauge .gv small {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}
.legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.timer {
  color: #fff;
  overflow: hidden;
  background: radial-gradient(100% 80% at 100% 100%, rgba(77, 128, 255, 0.55), transparent 60%),
    linear-gradient(160deg, #16307f 0%, #0b1a4d 60%, #070f30 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 22px 44px -20px rgba(7, 15, 48, 0.85);
  display: flex;
  flex-direction: column;
}
.timer::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: repeating-radial-gradient(circle at 105% 110%, rgba(140, 180, 255, 0.11) 0 1.2px, transparent 1.2px 15px);
}
.timer .card-h h3 {
  color: #fff;
}
.timer .t-big {
  position: relative;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-top: auto;
}
.timer .t-sub {
  position: relative;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timer .t-act {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.tbtn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #0b1a4d;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  transition: transform var(--spring-d) var(--spring);
}
.tbtn:active {
  transform: scale(0.88);
}
.tbtn.stop {
  background: linear-gradient(180deg, #ff6b6b, #dc2f2f);
  color: #fff;
}
.tbtn .i {
  width: 20px;
  height: 20px;
}
.tbtn .i.fill {
  fill: currentColor;
  stroke: none;
}

/* ===== jadwal ===== */
.jgroup {
  margin: 0 4px 8px;
}
.jgroup-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 2px 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.jgroup-h::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-2);
}
.jgroup-h .tag {
  order: 2;
}
.jlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 14px;
}
.jc {
  border-radius: var(--r-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.jc-time {
  width: 66px;
  padding: 12px 0;
  border-radius: 18px;
  text-align: center;
  background: var(--chip);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.jc-time b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.jc-time span {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 700;
}
.jc-time i {
  display: block;
  width: 2px;
  height: 10px;
  margin: 2px auto;
  border-radius: 2px;
  background: var(--line-2);
}
.jc.is-run .jc-time {
  background: var(--warn-bg);
  border-color: transparent;
}
.jc.is-done .jc-time {
  background: var(--good-bg);
  border-color: transparent;
}
.jc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.jc-top h3 {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding-top: 2px;
}
.jc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
}
.jc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.jc-meta .i {
  width: 15px;
  height: 15px;
  color: var(--ink-3);
}
.jc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.jc-act {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.jc-more {
  grid-column: 1/-1;
  overflow: hidden;
}
.jc-more-in {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px dashed var(--line-2);
  padding-top: 12px;
}
.mrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border-radius: 14px;
  background: var(--row);
}
.mrow .tx {
  flex: 1;
  min-width: 0;
}
.mrow b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mrow small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
}
.mrow .pics {
  display: flex;
  gap: 5px;
}
.mrow .pics img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  cursor: zoom-in;
  background: var(--chip);
}
.chev {
  transition: transform var(--spring-d) var(--spring);
}
.jc.open .chev {
  transform: rotate(90deg);
}
.pic-star {
  color: #f59e0b;
}
.prog {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.prog .pb {
  width: 64px;
  height: 7px;
  border-radius: 999px;
  background: var(--idle-bg);
  overflow: hidden;
}
.prog .pb i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2fc77a, #0f9f55);
  width: var(--p);
}
.m-search {
  display: none;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 16px;
  color: var(--ink-3);
  text-align: center;
  font-weight: 600;
}
.empty .ei {
  width: 68px;
  height: 68px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--chip);
  border: 1px solid var(--line);
  color: var(--b5);
  margin-bottom: 4px;
  box-shadow: var(--inset);
}
.empty .ei .i {
  width: 30px;
  height: 30px;
  stroke-width: 1.6;
}
.empty b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

/* ===== tambah jadwal ===== */
.fsec {
  padding: 18px 0;
  border-bottom: 1px dashed var(--line-2);
}
.fsec:first-child {
  padding-top: 2px;
}
.fsec:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}
.fl {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.fl .fl-i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--ring);
}
.fl .fl-i .i {
  width: 16px;
  height: 16px;
}
.fl .cnt {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 700;
}
.frow3 {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 12px;
}
.ang-box {
  max-height: 260px;
  overflow-y: auto;
  padding: 2px;
  margin: -2px;
}
.prev {
  position: sticky;
  top: 98px;
}
.prev .jc {
  padding: 14px;
  background: var(--row);
  border: 1px solid var(--line);
  box-shadow: none;
  margin-bottom: 16px;
}
.prev .ph-mini {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ghost-txt {
  color: var(--ink-3);
  font-weight: 600;
}
.done-ok {
  display: grid;
  place-items: center;
}

/* ===== riwayat ===== */
.rhead,
.rrow {
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) minmax(150px, 1.4fr) 108px 128px 128px 112px 84px;
  gap: 12px;
  align-items: center;
}
.rhead {
  padding: 0 14px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rlist {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rrow {
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--row);
  transition: background 0.25s;
}
.rrow:hover {
  background: var(--row-h);
}
.rp {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.rp b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rp small,
.rk small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rk {
  min-width: 0;
}
.rk b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rk .note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rk .note .i {
  width: 13px;
  height: 13px;
  flex: none;
}
.rd {
  font-size: 13px;
  font-weight: 700;
}
.rd small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
}
.rt {
  display: flex;
  align-items: center;
  gap: 9px;
}
.rt b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.rt small {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 700;
}
.thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  cursor: zoom-in;
  background: var(--chip);
  border: 1px solid var(--line);
  flex: none;
  transition: transform 0.4s var(--spring);
}
.thumb:hover {
  transform: scale(1.06);
}
.thumb.none {
  display: grid;
  place-items: center;
  color: var(--ink-3);
  cursor: default;
}
.thumb.none .i {
  width: 16px;
  height: 16px;
}
.ract {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.edited {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-3);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 3px;
}
.edited .i {
  width: 11px;
  height: 11px;
}
.late {
  color: var(--bad-ink) !important;
}

/* ===== poin ===== */
.phero {
  color: #fff;
  overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, #5b8eff 0%, transparent 50%),
    linear-gradient(150deg, #3270ff 0%, #1d4ed8 52%, #132f8f 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 22px 44px -18px rgba(29, 78, 216, 0.75);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 26px;
}
.phero .lbl {
  font-weight: 700;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phero .big {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 14px 0 18px;
}
.pmini {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pmini div {
  flex: 1;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.pmini small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
}
.pmini small .i {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}
.pmini b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 4px;
}
.prow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 16px;
  background: var(--row);
  transition: background 0.25s;
}
.prow:hover {
  background: var(--row-h);
}
.prow .tx {
  flex: 1;
  min-width: 0;
}
.prow b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  word-break: break-word;
}
.prow small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}
.pval {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 11px 0 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.pval .i {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}
.pval.plus {
  color: var(--good-ink);
  background: var(--good-bg);
}
.pval.minus {
  color: var(--bad-ink);
  background: var(--bad-bg);
}
.pval.zero {
  color: var(--idle-ink);
  background: var(--idle-bg);
}
.rank {
  width: 28px;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.rank.gold {
  color: #d48a00;
}
.lb {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lb .prow {
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.lb .pm {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  white-space: nowrap;
}
.lb .tot {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 46px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stepper .inp {
  text-align: center;
  font-weight: 800;
  font-size: 18px;
}
.pick {
  max-height: 228px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px;
  margin: 0 -2px;
}
.pick button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 14px;
  text-align: left;
  border: 1px solid transparent;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.pick button:hover {
  background: var(--row-h);
}
.pick button.on {
  background: var(--ring);
  border-color: rgba(47, 102, 246, 0.35);
}
.pick button b {
  flex: 1;
  font-size: 13.5px;
  font-weight: 700;
}
.pick .ck {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-2);
  color: transparent;
  transition: all 0.3s var(--spring);
}
.pick button.on .ck {
  background: var(--grad-btn);
  border-color: transparent;
  color: #fff;
  transform: scale(1.05);
}
.pick .ck .i {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}

/* ===== pengaturan ===== */
.srow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.srow:last-child {
  border-bottom: 0;
}
.srow .s-ico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ring);
  color: var(--accent);
  flex: none;
}
.srow .tx {
  flex: 1;
  min-width: 0;
}
.srow b {
  display: block;
  font-weight: 700;
  font-size: 14px;
}
.srow small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 10px;
  border-radius: 16px;
  background: var(--row);
}
.acc-row .tx {
  flex: 1;
  min-width: 0;
}
.acc-row b {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-row small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  font-family: ui-monospace, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 420px;
  overflow-y: auto;
}
.media-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.media-row:last-child {
  border-bottom: 0;
}
.media-row .pv {
  width: 92px;
  height: 62px;
  border-radius: 14px;
  background: var(--chip) center/cover no-repeat;
  border: 1px solid var(--line-2);
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.media-row .pv.round {
  width: 62px;
  border-radius: 50%;
}
.media-row .pv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-row .tx {
  flex: 1;
  min-width: 0;
}
.media-row b {
  display: block;
  font-weight: 700;
}
.media-row small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}
.media-row .acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.about {
  display: flex;
  align-items: center;
  gap: 16px;
}
.about img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px -10px rgba(20, 60, 160, 0.6);
}
.about b {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  margin-top: 16px;
  font-size: 13.5px;
}
.kv span {
  color: var(--ink-3);
  font-weight: 600;
}
.kv b {
  font-weight: 700;
}

/* ===== sheet / modal ===== */
body.modal-open {
  overflow: hidden;
}
.layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.sheet::before {
  inset: 0 !important;
}
.sheet {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 860px);
  max-height: min(90dvh, 860px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 32px;
  transform-origin: 50% 50%;
  scrollbar-width: thin;
}
.sheet.wide {
  width: min(760px, 100%);
}
.sheet-in {
  padding: 22px 22px 24px;
}
.sh-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.sh-h .tx {
  flex: 1;
  min-width: 0;
}
.sh-h h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.sh-h p {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-ico {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-btn);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 20px -10px rgba(31, 79, 224, 0.9);
  flex: none;
}
.sh-ico.out {
  background: linear-gradient(180deg, #ff7b7b, #d63535);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 20px -10px rgba(214, 53, 53, 0.9);
}
.sh-ico.warn {
  background: linear-gradient(180deg, #ffbe4d, #e08a00);
}
.sh-ico.good {
  background: linear-gradient(180deg, #3fd38a, #0d9450);
}
.sh-ico .i.fill {
  fill: currentColor;
  stroke: none;
}
.sh-grip {
  display: none;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lockgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.lk {
  position: relative;
  padding: 11px 36px 11px 13px;
  border-radius: 16px;
  background: var(--row);
  border: 1px solid var(--line);
  min-width: 0;
}
.lk span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.lk span .i {
  width: 13px;
  height: 13px;
}
.lk b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.lk .lki {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}
.lk.big b {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.shot {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 22px;
  overflow: hidden;
  background: var(--row);
  border: 1.5px dashed var(--line-2);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.shot.has {
  border-style: solid;
  border-color: transparent;
}
.shot img,
.shot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot .se {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-weight: 700;
  font-size: 13px;
}
.shot .se .ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip);
  border: 1px solid var(--line-2);
  color: var(--b5);
}
.shot .se .ring .i {
  width: 28px;
  height: 28px;
}
.shot .cam-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  z-index: 2;
}
.shutter {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.45),
    0 10px 24px -6px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s var(--spring);
}
.shutter:active {
  transform: scale(0.86);
}
.cam-ui .ibtn {
  background: rgba(10, 20, 50, 0.45);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.shot .retake {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(10, 20, 50, 0.5);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.shot-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.flash {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 3;
  pointer-events: none;
  animation: flash 0.45s ease-out forwards;
}
@keyframes flash {
  from {
    opacity: 0.95;
  }
  to {
    opacity: 0;
  }
}
.lbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
}
.lbox .scrim {
  background: rgba(3, 8, 22, 0.78);
}
.lbox img {
  position: relative;
  max-width: min(92vw, 980px);
  max-height: 80vh;
  border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  object-fit: contain;
  background: #000;
}
.lbox .cap {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 18, 40, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lbox .x {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.bin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px 11px 12px;
  border-radius: 16px;
  background: var(--row);
}
.bin-item .tx {
  flex: 1;
  min-width: 0;
}
.bin-item b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bin-item small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.month-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}
.month-chips .chip {
  justify-content: center;
  height: 46px;
  border-radius: 16px;
}
.xsum {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.xsum div {
  padding: 12px;
  border-radius: 16px;
  background: var(--row);
  text-align: center;
}
.xsum b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.xsum small {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 700;
}

/* ===== island toast ===== */
.island {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 300;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 7px 0 7px;
  border-radius: 999px;
  background: rgba(8, 16, 40, 0.9);
  color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    0 14px 34px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  white-space: nowrap;
  max-width: calc(100vw - 24px);
}
.island .is-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: #22c55e;
}
.island.t-err .is-ico {
  background: #ef4444;
}
.island.t-info .is-ico {
  background: #3b82f6;
}
.island .is-ico .i {
  width: 17px;
  height: 17px;
  stroke-width: 2.6;
}
.island .is-msg {
  font-weight: 700;
  font-size: 13.5px;
  padding-right: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.island .is-act {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  flex: none;
}
.island .is-act:hover {
  background: rgba(255, 255, 255, 0.24);
}

.ghost-logo {
  position: fixed;
  z-index: 310;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  transform-origin: 0 0;
  margin: 0;
}

/* ===== bottom nav (mobile) ===== */
.bnav {
  display: none;
}

/* ===== responsive ===== */
@media (max-width: 1280px) {
  .stat .num {
    font-size: 40px;
  }
}
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .side {
    padding: 18px 10px 12px;
    align-items: stretch;
  }
  .brand {
    justify-content: center;
    padding: 0 0 12px;
  }
  .brand > div,
  .nav-label,
  .side-card,
  .nav a span,
  .nav button span,
  .nav a .cnt {
    display: none;
  }
  .nav a,
  .nav button {
    justify-content: center;
    padding: 0;
  }
  .nav-label {
    display: block;
    height: 1px;
    padding: 0;
    margin: 12px 10px;
    background: var(--line-2);
    font-size: 0;
  }
  .grid > .t6 {
    grid-column: span 6;
  }
  .grid > .t12 {
    grid-column: 1/-1;
  }
  .grid > .stat {
    grid-column: span 6;
  }
  .prev {
    position: static;
  }
}
@media (max-width: 860px) {
  .rhead {
    display: none;
  }
  .rrow {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'p s' 'k k' 'd d' 'i o' 'a a';
    gap: 10px 12px;
    padding: 14px;
  }
  .rrow > .rp {
    grid-area: p;
  }
  .rrow > .rk {
    grid-area: k;
  }
  .rrow > .rd {
    grid-area: d;
    display: flex;
    gap: 8px;
    align-items: baseline;
  }
  .rrow > .rti {
    grid-area: i;
  }
  .rrow > .rto {
    grid-area: o;
  }
  .rrow > .rs {
    grid-area: s;
  }
  .rrow > .ract {
    grid-area: a;
    justify-content: flex-start;
    border-top: 1px dashed var(--line-2);
    padding-top: 10px;
  }
  .rrow > .rd small {
    display: inline;
  }
  .rt {
    padding: 8px;
    border-radius: 14px;
    background: var(--row);
  }
}
@media (max-width: 767px) {
  :root {
    --blur: 16px;
  }
  body {
    font-size: 14px;
  }
  .app {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 10px 10px calc(100px + env(safe-area-inset-bottom));
  }
  .side {
    display: none;
  }
  .top {
    top: 10px;
    height: 60px;
    padding: 0 8px 0 10px;
    border-radius: 24px;
  }
  .top-brand {
    display: flex;
  }
  .search,
  .me > span:last-child,
  .top .theme-t {
    display: none;
  }
  .me {
    padding: 3px;
  }
  .page {
    padding: 0 0 20px;
  }
  .ph {
    margin: 6px 2px 16px;
  }
  .ph h1 {
    font-size: 27px;
  }
  .ph-act .btn span {
    display: none;
  }
  .ph-act .btn {
    width: 46px;
    padding: 0;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .grid > * {
    grid-column: 1/-1 !important;
  }
  .grid > .stat {
    grid-column: span 1 !important;
  }
  .stat {
    min-height: 136px;
    padding: 16px;
  }
  .stat .lbl {
    font-size: 13.5px;
    padding-right: 34px;
  }
  .stat .num {
    font-size: 36px;
  }
  .stat .go {
    width: 30px;
    height: 30px;
    top: 12px;
    right: 12px;
  }
  .stat .foot {
    font-size: 11px;
  }
  .stat .foot .fi {
    display: none;
  }
  .card {
    padding: 16px;
    border-radius: 22px;
  }
  .bars {
    height: 180px;
    gap: 6px;
  }
  .btrack {
    max-width: 36px;
  }
  .jlist {
    grid-template-columns: 1fr;
  }
  .jc {
    padding: 14px;
    gap: 12px;
  }
  .jc-time {
    width: 58px;
  }
  .m-search {
    display: flex;
    margin: 0 2px 12px;
  }
  .m-search .search {
    display: flex;
    max-width: none;
  }
  .toolbar {
    margin: 0 2px 14px;
  }
  .toolbar .seg {
    width: 100%;
  }
  .toolbar .seg > button {
    flex: 1;
    padding: 0 8px;
  }
  .frow3 {
    grid-template-columns: 1fr 1fr;
  }
  .frow3 > :first-child {
    grid-column: 1/-1;
  }
  .phero .big {
    font-size: 54px;
  }
  .layer {
    place-items: end center;
    padding: 0;
  }
  .sheet,
  .sheet.wide {
    width: 100%;
    border-radius: 30px 30px 0 0;
    max-height: 94vh;
    max-height: 94dvh;
    transform-origin: 50% 100%;
  }
  .sheet-in {
    padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  }
  .sh-grip {
    display: block;
    width: 40px;
    height: 5px;
    border-radius: 9px;
    background: var(--line-2);
    margin: 0 auto 12px;
  }
  .lockgrid {
    grid-template-columns: 1fr 1fr;
  }
  .bnav {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 50;
    padding: 6px;
    border-radius: 999px;
    width: min(calc(100% - 20px), 460px);
    justify-content: space-between;
    isolation: isolate;
  }
  .bnav a {
    position: relative;
    z-index: 1;
    flex: 1;
    height: 54px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--ink-2);
    transition: color 0.35s;
  }
  .bnav a.on {
    color: #fff;
  }
  .bnav a .i {
    width: 23px;
    height: 23px;
  }
  .bnav .nav-pill {
    border-radius: 999px;
  }
  .bnav .nav-pill::after {
    border-radius: 999px;
  }
  .bnav a .cnt {
    position: absolute;
    top: 7px;
    right: calc(50% - 20px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    display: grid;
    place-items: center;
  }
  .island {
    top: calc(10px + env(safe-area-inset-top));
  }
  .lcard {
    padding: 28px 20px 22px;
    border-radius: 32px;
  }
  .ltitle {
    font-size: 28px;
  }
  .media-row {
    flex-wrap: wrap;
  }
  .media-row .acts {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 380px) {
  .stat .num {
    font-size: 32px;
  }
  .shot {
    aspect-ratio: 16/11;
  }
}
@media (max-width: 330px) {
  .lockgrid {
    grid-template-columns: 1fr;
  }
}

/* ===== animation off ===== */
html[data-motion='off'] *,
html[data-motion='off'] *::before,
html[data-motion='off'] *::after {
  animation: none !important;
  transition: none !important;
}
@media print {
  .side,
  .top,
  .bnav,
  .bg {
    display: none;
  }
}

/* ===== fitur tambahan & penyesuaian ===== */
svg.i.sm {
  width: 16px;
  height: 16px;
}
svg.i.xs {
  width: 13px;
  height: 13px;
}
.tx {
  flex: 1;
  min-width: 0;
}
.tnum {
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.count-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--chip);
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--accent);
}
.acts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.col16 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.mt16 {
  margin-top: 16px;
}
.card.glass,
.jc.glass {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.ibtn:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.btn-ghost {
  color: var(--ink-2);
}
.btn-ghost:hover {
  background: var(--chip);
}
.btn .spin {
  display: none;
}
.btn.busy > *:not(.spin) {
  opacity: 0;
}
.btn.busy .spin {
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
}
.spin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.err-shake {
  animation: shake 0.44s ease-out;
}
@keyframes shake {
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(7px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(2px);
  }
}
.ring {
  animation: bellRing 0.7s ease-in-out;
}
@keyframes bellRing {
  15% {
    transform: rotate(14deg);
  }
  30% {
    transform: rotate(-12deg);
  }
  45% {
    transform: rotate(9deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  75% {
    transform: rotate(3deg);
  }
}
.sk {
  display: block;
  height: 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--row) 0%, var(--row-h) 50%, var(--row) 100%);
  background-size: 200% 100%;
  animation: sk 1.2s linear infinite;
}
@keyframes sk {
  to {
    background-position: -200% 0;
  }
}
.st {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex: none;
}
.st-selesai {
  color: var(--good-ink);
  background: var(--good-bg);
}
.st-sedang,
.st-telat {
  color: var(--warn-ink);
  background: var(--warn-bg);
}
.st-belum {
  color: var(--idle-ink);
  background: var(--idle-bg);
}
.st-terlewat {
  color: var(--bad-ink);
  background: var(--bad-bg);
}

/* input dengan ikon */
.inp-ic {
  position: relative;
  display: block;
  min-width: 0;
}
.inp-ic > .i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
  width: 19px;
  height: 19px;
  z-index: 1;
}
.inp-ic > .inp {
  padding-left: 46px;
}
.inp-ic > .eye {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-3);
}
.inp-ic > .eye:hover {
  background: var(--chip);
}
.inp[type='date'],
.inp[type='time'] {
  min-width: 0;
}
.field > span small,
.lbl small {
  font-weight: 600;
}
.field > .search {
  flex: none;
}

/* sakelar */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: none;
}
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.switch .sw {
  display: block;
  border-radius: 999px;
  background: var(--idle-bg);
  border: 1px solid var(--line-2);
  transition: background 0.35s;
}
.switch .sw::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 2px 7px rgba(0, 10, 40, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.06);
  transition:
    transform var(--spring-d) var(--spring),
    width 0.28s var(--smooth);
}
.switch input:checked + .sw {
  background: var(--grad-btn);
  border-color: transparent;
}
.switch input:checked + .sw::after {
  transform: translateX(22px);
}
.switch input:focus-visible + .sw {
  outline: 2px solid var(--b5);
  outline-offset: 2px;
}
.switch input:disabled + .sw {
  opacity: 0.4;
}
.lrem .switch .sw {
  width: 44px;
  height: 26px;
}
.lrem .switch .sw::after {
  width: 20px;
  height: 20px;
}
.lrem .switch input:checked + .sw::after {
  transform: translateX(18px);
}

/* seg */
.seg.wide {
  display: flex;
}
.seg.wide > button {
  flex: 1;
  justify-content: center;
}
.seg.red > button.on {
  color: #fff;
}
.seg-ic > button {
  width: 34px;
  height: 30px;
  padding: 0;
  justify-content: center;
}
.seg-ic > button .i {
  width: 15px;
  height: 15px;
}
.chip-inp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 4px 0 14px;
  border-radius: 999px;
  background: var(--field-f);
  border: 1px solid var(--b4);
  box-shadow: 0 0 0 4px var(--ring);
  overflow: hidden;
}
.chip-inp input {
  border: 0;
  outline: 0;
  background: none;
  width: 170px;
  font-weight: 600;
  font-size: 13px;
}
.chip-inp .ibtn {
  width: 30px;
  height: 30px;
}
.chip-inp .ibtn .i {
  width: 15px;
  height: 15px;
}
.chip.sm {
  height: 30px;
  font-size: 12px;
  padding: 0 12px;
}

/* avatar */
.av {
  position: relative;
  width: var(--s, 36px);
  height: var(--s, 36px);
  font-size: calc(var(--s, 36px) * 0.35);
}
.avs .av {
  width: 30px;
  height: 30px;
}
.av[data-st]::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--glass-solid);
  background: var(--idle);
}
.av[data-st='selesai']::after {
  background: var(--good);
}
.av[data-st='sedang']::after {
  background: var(--warn);
}
.av[data-st='terlewat']::after {
  background: var(--bad);
}
.avs .more {
  position: relative;
}
.av > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.av > img:not([src]) {
  opacity: 0;
}

/* menu samping */
.nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  margin: 0 -4px;
  padding: 0 4px;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav a span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav a,
.nav button {
  flex: none;
}
.side-card {
  flex: none;
  margin-top: 12px;
}
.nav a .cnt:not(.on) {
  font-style: normal;
}
.nav a .cnt[data-pending] {
  background: #ef4444;
  color: #fff;
}
.bnav a .cnt {
  font-style: normal;
}
.brand,
.top-brand {
  cursor: pointer;
}
@media (max-height: 885px) {
  .side-card {
    display: none;
  }
}

/* notifikasi kecil (toast) */
.toasts {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 24px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(8, 16, 40, 0.92);
  color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    0 14px 34px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  max-width: 100%;
  pointer-events: auto;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.toast.out {
  opacity: 0;
  transform: translateY(-8px) scale(0.9);
}
.toast .is-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: #22c55e;
}
.toast.t-err .is-ico {
  background: #ef4444;
}
.toast.t-info .is-ico {
  background: #3b82f6;
}
.toast .is-ico .i {
  width: 17px;
  height: 17px;
  stroke-width: 2.6;
}
.toast .is-msg {
  font-weight: 700;
  font-size: 13.5px;
  padding-right: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast .is-act {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  flex: none;
}
.toast .is-act:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* animasi halaman */
.page.enter .anim {
  animation: rise var(--spring-d) var(--spring) both;
  animation-delay: calc(var(--i, 0) * 42ms);
}
.stagger > * {
  animation: rise 0.5s var(--spring) both;
}
.stagger > :nth-child(2) {
  animation-delay: 40ms;
}
.stagger > :nth-child(3) {
  animation-delay: 80ms;
}
.stagger > :nth-child(4) {
  animation-delay: 120ms;
}
.stagger > :nth-child(n + 5) {
  animation-delay: 160ms;
}
.bfill {
  animation: none;
}
.page.enter .bfill {
  animation: grow calc(var(--spring-d) + 0.25s) var(--spring) both;
  animation-delay: calc(var(--i, 0) * 60ms + 120ms);
}
.stagger .bfill {
  animation: grow calc(var(--spring-d) + 0.25s) var(--spring) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

/* dashboard */
.wk-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.wk-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  min-width: 96px;
  text-align: center;
}
.card-h {
  flex-wrap: wrap;
}
.empty.mini {
  padding: 22px 8px;
}
.empty.mini .ei {
  width: 52px;
  height: 52px;
  border-radius: 18px;
}
.empty .btn {
  margin-top: 4px;
}
.rank-row .prog {
  flex: none;
}
.stat .fi .i {
  width: 12px;
  height: 12px;
}
.stat.static {
  cursor: default;
  min-height: 128px;
}
.stat.static:active {
  transform: none;
}
.stat.static .lbl {
  padding-right: 0;
  font-size: 14px;
}
.stat.static .num {
  font-size: 36px;
  padding-top: 12px;
}
.absen-hero {
  display: flex;
  flex-direction: column;
}
.absen-hero .big {
  font-size: 52px;
  margin: 12px 0 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.absen-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: auto;
}
.abs-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.92;
}
.absen-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #1d43c0;
  box-shadow: 0 12px 22px -12px rgba(0, 0, 0, 0.45);
}
.absen-btn .spin {
  color: #1d43c0;
}
.absen-r {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.absen-r b {
  font-weight: 800;
  font-size: 14px;
  display: inline;
}

/* strip 7 hari */
.week {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
}
.week-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.week-h b {
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}
.days {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  isolation: isolate;
}
.day {
  position: relative;
  z-index: 1;
  height: 68px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink-2);
  transition: color 0.3s;
}
.day small {
  font-size: 11px;
  font-weight: 700;
}
.day b {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.day i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}
.day.has i {
  background: var(--b5);
}
.day.today {
  color: var(--accent);
}
.day.on {
  color: #fff;
}
.day.on.has i {
  background: #fff;
}
.days-pill {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  border-radius: 18px;
  background: var(--grad-btn);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 22px -10px rgba(31, 79, 224, 0.85);
  opacity: 0;
  pointer-events: none;
}

/* jadwal */
.rrow,
.lap-r {
  content-visibility: auto;
  contain-intrinsic-size: auto 76px;
}
.jc {
  cursor: pointer;
}
.prev .jc,
.jc:not([data-act]) {
  cursor: default;
}
.jc-body {
  min-width: 0;
}
.jc-time {
  flex: none;
}
.date-pick {
  width: 158px;
  border-radius: 999px;
}
.ph-wrap {
  position: relative;
  display: block;
  flex: none;
}
.ph-wrap em {
  position: absolute;
  left: 3px;
  bottom: 3px;
  padding: 0 4px;
  border-radius: 5px;
  background: rgba(6, 14, 44, 0.72);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  font-style: normal;
  line-height: 13px;
}
img.ph {
  display: block;
  margin: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  cursor: zoom-in;
  background: var(--chip);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--spring);
}
img.ph:hover {
  transform: scale(1.06);
}
.rt .ph-wrap em {
  display: none;
}
.mrow img.ph {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.mrow .role {
  margin-left: 6px;
}
.mrow {
  margin-bottom: 6px;
}
.jc-more-in .mrow {
  margin-bottom: 0;
}
.thumbs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.dl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}
.dl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--row);
  font-size: 13px;
}
.dl-row .i {
  color: var(--ink-3);
}
.dl-row span {
  color: var(--ink-3);
  font-weight: 600;
  width: 84px;
  flex: none;
}
.dl-row b {
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* tambah jadwal */
.edit-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--ring);
  color: var(--accent);
  font-weight: 700;
  font-size: 13.5px;
}
.edit-banner .btn {
  margin-left: auto;
  color: var(--ink);
}
.fl-link {
  margin-left: auto;
}
.mg-add {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.mg-add .inp {
  flex: 1;
}
.mg-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  margin: 0 2px 10px;
}
.mg-edit .inp {
  flex: 1;
  min-width: 0;
}
.fsec.bad .fl {
  color: var(--bad);
}
.fsec.bad {
  animation: shake 0.44s ease-out;
}
.fsec .inp-ic + .ang-box {
  margin-top: 12px;
}
.frow3 + .chips {
  margin-top: 10px;
}
.prev-wrap {
  position: sticky;
  top: 98px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prev {
  position: static;
}
.prev .jgroup-h {
  margin: 0 0 10px;
}
.mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  border-radius: 14px;
  background: var(--row);
}
.mini .d {
  width: 40px;
  text-align: center;
  flex: none;
}
.mini .d b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}
.mini .d small {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
}
.mini .tx b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini .tx small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.more-row {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

/* riwayat */
.rs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.rs small {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  padding-left: 2px;
}
.rsearch {
  max-width: 300px;
  height: 40px;
}
.tb-btn {
  height: 44px;
}

/* poin */
.lb {
  max-height: 640px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.lb .prow.on {
  background: var(--ring);
  box-shadow: inset 0 0 0 1px rgba(47, 102, 246, 0.35);
}
.lb .prow b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rk-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.92;
  margin-top: 14px;
}
.pick-sel {
  margin-left: 8px;
}
.stepper .inp {
  min-width: 0;
}

/* laporan */
.lap-card {
  min-height: 218px;
}
.lap-ic {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  margin-bottom: 16px;
  color: #fff;
}
.lap-card h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.lap-card p {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.82;
  margin-top: 4px;
  padding-right: 36px;
}
.lap-stat {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.92;
}
.lap-stat b {
  font-size: 22px;
  font-weight: 800;
  margin-right: 2px;
}
.stat.hero.pel {
  background: radial-gradient(100% 80% at 100% 100%, rgba(77, 128, 255, 0.55), transparent 60%),
    linear-gradient(160deg, #16307f 0%, #0b1a4d 60%, #070f30 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 22px 44px -20px rgba(7, 15, 48, 0.85);
}
.lap-h,
.lap-r {
  display: grid;
  grid-template-columns:
    24px minmax(150px, 1.5fr) minmax(90px, 0.8fr) 106px minmax(110px, 1.2fr) 44px minmax(96px, 0.8fr)
    78px;
  gap: 12px;
  align-items: center;
}
.lap-h {
  padding: 0 14px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lap-r {
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--row);
  transition: background 0.25s;
}
.lap-r:hover {
  background: var(--row-h);
}
.ln {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.lw {
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* temuan tanpa walas: kolom dibiarkan kosong supaya tata letak tetap sejajar */
.lw:empty {
  visibility: hidden;
}
.lw small {
  display: none;
}
.lt {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  overflow-wrap: anywhere;
  min-width: 0;
}
.lp {
  min-width: 0;
}
.lp b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.lap-tools .search {
  max-width: none;
}
#lapWeek,
#lapTiles {
  margin-bottom: 16px;
}
.lockbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--row);
  border: 1px solid var(--line);
}
.lockbox .i {
  color: var(--ink-3);
}
.lockbox > div {
  flex: 1;
  min-width: 0;
}
.lockbox small {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.lockbox b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lap-oldfoto {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
/* ikon pengganti foto profil untuk temuan tanpa nama siswa
   (nama class sendiri supaya tidak menimpa .lap-ic di kartu menu Absensi Murid) */
.lap-noname {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ring);
  color: var(--accent);
}
.lap-noname .i {
  width: 18px;
  height: 18px;
}
.shot.short {
  aspect-ratio: 16/8;
  margin-bottom: 0;
}
.shot.short.has {
  aspect-ratio: 4/3;
}
.shot-pick {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
}
.shot-pick .shot-btns {
  margin: 0;
  width: min(320px, 100%);
}
.shot .se small {
  margin-top: -4px;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--ink-3);
  opacity: 0.8;
}
.shot .se .ring {
  width: 56px;
  height: 56px;
  animation: none;
}
.shot.short .se {
  flex-direction: row;
  gap: 10px;
}
.shot.short .se .ring {
  width: 40px;
  height: 40px;
}
.shot.short .se .ring .i {
  width: 20px;
  height: 20px;
}
.shot video {
  transform: none;
}
.shot video.mirror {
  transform: scaleX(-1);
}
.flash {
  animation: none;
  opacity: 0;
}
.flash.go {
  animation: flash 0.45s ease-out;
}
.pick-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 10px;
  scrollbar-width: thin;
}
.pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px 7px 7px;
  border-radius: 14px;
  text-align: left;
  background: var(--row);
  transition: background 0.25s;
}
.pick-row:hover {
  background: var(--row-h);
}
.pick-row.on {
  background: var(--ring);
}
.pick-row b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}
.pick-row small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.pick-row > div {
  min-width: 0;
  flex: 1;
}
.pick-row .i {
  width: 32px;
  flex: none;
  color: var(--accent);
}
.trash-i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 10px 11px 12px;
  border-radius: 16px;
  background: var(--row);
  margin-bottom: 7px;
}
.trash-i:last-child {
  margin-bottom: 0;
}
.trash-i b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trash-i small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.months {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.months .chip {
  justify-content: center;
  height: 46px;
  border-radius: 16px;
}
.bar-prog {
  height: 7px;
  border-radius: 999px;
  background: var(--idle-bg);
  overflow: hidden;
}
.bar-prog i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-btn);
  transition: width 0.3s;
}
.sis-stat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 8px;
}
.sis-stat div {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--row);
  border: 1px solid var(--line);
}
.sis-stat b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sis-stat small {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 700;
}

/* konfirmasi */
.kc {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
}
.kc-m b {
  display: block;
  font-weight: 700;
  font-size: 15px;
}
.kc-m small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}
.kc-t {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.kc-a {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* login */
.lwrap {
  padding: 8px 0;
}
.pop-in {
  animation: pop 0.5s var(--spring) both;
}
.wait-card {
  text-align: center;
  padding: 20px 2px 2px;
}
.wait-card .eic {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.wait-card .eic .i {
  width: 30px;
  height: 30px;
}
.wait-card b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.wait-card p {
  color: var(--ink-2);
  font-size: 13px;
  margin: 6px auto 16px;
  max-width: 300px;
}
#loginMsg .warn {
  margin-top: 14px;
}
.mt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-weight: 800;
  font-size: 12px;
  flex: none;
}
.mt-chip .i {
  width: 16px;
  height: 16px;
}
.mt-sejak {
  display: block;
  margin: -8px 0 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.mt-it {
  display: flex;
  justify-content: center;
  margin: 14px auto 0;
}
.mt-note {
  margin-top: 16px;
}
.demo-hint {
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--warn-ink);
  background: var(--warn-bg);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
}
.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--warn-ink);
  background: var(--warn-bg);
}
.lfoot span + span {
  margin-left: 6px;
}

/* pengaturan */
.acc-row .role {
  flex: none;
}
.acc-row small.acc-tel {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  font-family: inherit;
}
.srow small.wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.srow .btn {
  flex: none;
}
.acc-row .acts {
  flex: none;
}
.acc-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  min-width: 0;
}
.acc-sub small {
  min-width: 0;
  font-family: inherit;
}
.role {
  color: var(--accent);
  background: var(--ring);
}
.role.utama {
  color: #c2410c;
  background: rgba(194, 65, 12, 0.12);
}
.mbox {
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-2);
}
.mbox:first-of-type {
  padding-top: 0;
}
.mbox:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.mbox .lbl {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.mbox .chip {
  height: 32px;
  font-size: 12.5px;
  padding: 0 12px;
}
.izin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.izin-row:last-child {
  border-bottom: 0;
}
.izin-row .switch .sw {
  width: 44px;
  height: 26px;
}
.izin-row .switch .sw::after {
  width: 20px;
  height: 20px;
}
.izin-row .switch input:checked + .sw::after {
  transform: translateX(18px);
}
.db-stat {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.db-stat div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.db-stat small {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}

/* jendela */
#layer {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 100;
}
.scrim {
  position: fixed;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.scrim.in {
  opacity: 1;
}
.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(var(--mw, 520px), calc(100vw - 40px));
  max-height: min(90vh, 860px);
  max-height: min(90dvh, 860px);
  display: flex;
  flex-direction: column;
  border-radius: 32px;
  background: var(--glass-solid);
  border: 1px solid var(--glass-brd);
  box-shadow:
    var(--inset),
    0 30px 80px -24px rgba(10, 30, 90, 0.45);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  overflow: hidden;
}
.grab {
  display: none;
}
.modal .sh-h {
  flex: none;
  padding: 22px 22px 0;
  margin-bottom: 16px;
}
.modal-b {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 22px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.modal-b:empty {
  display: none;
}
.modal-f {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 14px 22px 22px;
  border-top: 1px solid var(--line);
}
.modal-f .btn {
  flex: 1;
  min-width: 0;
}
.confirm-t {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13.5px;
  margin-top: -4px;
}
.morph-ghost {
  position: fixed;
  z-index: 1;
  background: var(--glass-solid);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 20px 50px -20px rgba(10, 30, 90, 0.4);
  pointer-events: none;
}
.scrim:has(+ .lightbox) {
  background: rgba(3, 8, 22, 0.78);
}
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox img {
  max-width: min(92vw, 980px);
  max-height: 80vh;
  max-height: 80dvh;
  border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  object-fit: contain;
  background: #000;
}
.lightbox .cap {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 18, 40, 0.72);
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox .ibtn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* tema */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: var(--smooth);
}
html.vt-theme::view-transition-old(root) {
  animation: none;
}
html.vt-theme::view-transition-new(root) {
  animation: revealCircle 0.65s var(--smooth);
}
@keyframes revealCircle {
  from {
    clip-path: circle(0 at var(--vx, 50%) var(--vy, 50%));
  }
  to {
    clip-path: circle(var(--vr, 150vmax) at var(--vx, 50%) var(--vy, 50%));
  }
}

/* ===== responsif tambahan ===== */
@media (max-width: 1100px) {
  .side-card {
    display: none;
  }
  .nav a .cnt {
    display: none;
  }
  .nav a .cnt[data-pending] {
    display: grid;
    position: absolute;
    top: 2px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    margin: 0;
  }
  .nav {
    margin: 0;
    padding: 0;
  }
  .prev-wrap {
    position: static;
  }
  .grid > .lap-card {
    grid-column: span 6;
  }
  .rhead {
    display: none;
  }
  .rrow {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'p s' 'k k' 'd d' 'i o' 'a a';
    gap: 10px 12px;
    padding: 14px;
  }
  .rrow > .rp {
    grid-area: p;
  }
  .rrow > .rk {
    grid-area: k;
  }
  .rrow > .rd {
    grid-area: d;
    display: flex;
    gap: 8px;
    align-items: baseline;
  }
  .rrow > .rti {
    grid-area: i;
  }
  .rrow > .rto {
    grid-area: o;
  }
  .rrow > .rs {
    grid-area: s;
  }
  .rrow > .ract {
    grid-area: a;
    justify-content: flex-start;
    border-top: 1px dashed var(--line-2);
    padding-top: 10px;
  }
  .rrow > .ract:empty {
    display: none;
  }
  .rrow > .rd small {
    display: inline;
  }
  .rrow,
  .lap-r {
    contain-intrinsic-size: auto 240px;
  }
  .rt {
    padding: 8px;
    border-radius: 14px;
    background: var(--row);
  }
  .lap-h {
    display: none;
  }
  .lap-r {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'p k' 'w f' 't t' 'o a';
    gap: 8px 12px;
    padding: 14px;
  }
  .lap-r > .ln {
    display: none;
  }
  .lap-r > .rp {
    grid-area: p;
  }
  .lap-r > .lk2 {
    grid-area: k;
  }
  .lap-r > .lw {
    grid-area: w;
  }
  .lap-r > .lf {
    grid-area: f;
    justify-self: end;
  }
  .lap-r > .lt {
    grid-area: t;
  }
  .lap-r > .lp {
    grid-area: o;
  }
  .lap-r > .ract {
    grid-area: a;
  }
  .lt:empty {
    display: none;
  }
  .lw small {
    display: inline;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-3);
    margin-right: 6px;
  }
}
@media (max-width: 767px) {
  .search {
    display: flex;
  }
  .top .search {
    display: none;
  }
  .rsearch {
    max-width: none;
    flex: 1 1 100%;
  }
  .top-r {
    gap: 6px;
  }
  .mt-chip span {
    display: none;
  }
  .mt-chip {
    padding: 0 10px;
  }
  .bnav a {
    min-width: 0;
  }
  .bnav.many a .i {
    width: 21px;
    height: 21px;
  }
  .bnav .nav-pill {
    border-radius: 999px;
  }
  .bnav.many {
    padding: 5px;
  }
  .bnav.many a {
    height: 50px;
  }
  .stat.static {
    min-height: 110px;
  }
  .stat.static .num {
    font-size: 30px;
  }
  .grid > .lap-card {
    grid-column: 1/-1 !important;
    min-height: 176px;
  }
  .kc {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 14px;
  }
  .kc-a {
    grid-column: 1/-1;
  }
  .kc-a .btn {
    flex: 1;
  }
  .absen-hero .big {
    font-size: 44px;
  }
  .toolbar .date-pick {
    flex: 1;
  }
  .wk-tools {
    width: 100%;
    justify-content: space-between;
  }
  .card-h.wk {
    flex-direction: column;
    align-items: flex-start;
  }
  .day {
    height: 60px;
  }
  .day b {
    font-size: 16px;
  }
  .modal {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
    border-radius: 30px 30px 0 0;
    max-height: 94vh;
    max-height: 94dvh;
  }
  .grab {
    display: block;
    flex: none;
    width: 40px;
    height: 5px;
    border-radius: 9px;
    background: var(--line-2);
    margin: 10px auto 0;
  }
  .modal .sh-h {
    padding: 12px 18px 0;
  }
  .modal-b {
    padding: 0 18px calc(18px + env(safe-area-inset-bottom));
  }
  .modal-f {
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
  }
  .modal-b:has(+ .modal-f) {
    padding-bottom: 14px;
  }
  .toasts {
    top: calc(10px + env(safe-area-inset-top));
  }
  .lock-hide {
    display: none;
  }
  .acc-row {
    flex-wrap: wrap;
  }
}

/* ===== perangkat ringan: tanpa blur, bayangan besar, dan animasi berulang ===== */
html.lite[data-theme='light'] {
  --glass: rgba(255, 255, 255, 0.84);
  --glass-top: rgba(255, 255, 255, 0.94);
  --glass-bot: rgba(255, 255, 255, 0.76);
  --glass-solid: #f7faff;
  --shadow: 0 6px 16px -10px rgba(20, 50, 120, 0.28);
}
html.lite[data-theme='dark'] {
  --glass: rgba(20, 30, 62, 0.92);
  --glass-top: rgba(30, 44, 86, 0.94);
  --glass-bot: rgba(14, 22, 48, 0.92);
  --glass-solid: #0f1832;
  --shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.6);
}
html.lite .glass,
html.lite .glass-solid,
html.lite .modal,
html.lite .toast,
html.lite .scrim {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.lite .glass::before {
  display: none;
}
html.lite .blob {
  animation: none;
  will-change: auto;
}
html.lite .llogo,
html.lite .llogo-wrap .halo,
html.lite .pulse,
html.lite .boot img {
  animation: none;
}
html.lite .stat.hero::after {
  display: none;
}
html.lite .page.enter .anim {
  animation: riseLite 0.22s ease-out both;
  animation-delay: 0s;
}
html.lite .stagger > * {
  animation: riseLite 0.18s ease-out both;
  animation-delay: 0s;
}
@keyframes riseLite {
  from {
    opacity: 0;
  }
}
html.lite .page.enter .bfill,
html.lite .stagger .bfill {
  animation-duration: 0.3s;
  animation-delay: 0s;
  animation-timing-function: ease-out;
}
html.lite .btn-primary,
html.lite .btn-danger,
html.lite .btn-good,
html.lite .chip.on,
html.lite .nav-pill,
html.lite .days-pill {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
html.lite .btn,
html.lite .chip,
html.lite .ibtn,
html.lite .stat,
html.lite .jc,
html.lite img.ph {
  transition: none;
}
html.lite .scrim {
  transition-duration: 0.15s;
}

/* ===== v1.5: temuan, anggota OSIS, jenis notifikasi, juara sekbid, kelola data ===== */
body.in-app .blob {
  will-change: auto;
}
.stat.hero.tem {
  background: radial-gradient(110% 90% at 0% 0%, #8f86ff 0%, transparent 55%),
    linear-gradient(150deg, #5b4dff 0%, #3b2fc4 55%, #241a7d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 22px 44px -20px rgba(36, 26, 125, 0.8);
}
.nico.j-penting {
  background: linear-gradient(145deg, #ffbe55, #e07b00);
}
.nico.j-peringatan {
  background: linear-gradient(145deg, #ff7d7d, #d23434);
}
.nico.j-jadwal {
  background: linear-gradient(145deg, #45d3e6, #0f8fb0);
}
.njenis {
  font-weight: 800;
}
.njenis.penting {
  color: var(--warn-ink);
}
.njenis.peringatan {
  color: var(--bad-ink);
}
.seg.amber .seg-pill {
  background: linear-gradient(180deg, #ffbe55, #e08a00);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 16px -8px rgba(224, 138, 0, 0.9);
}
.seg.blue > button.on,
.seg.red > button.on,
.seg.amber > button.on {
  color: #fff;
}
.seg.scroll {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.seg.scroll::-webkit-scrollbar {
  display: none;
}
.toolbar .search.ag-q {
  max-width: 280px;
  height: 42px;
}
.sek-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
}
.sek-h::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-2);
}
.sek-h .count-pill {
  order: 2;
}
.ag-sec + .ag-sec {
  margin-top: 16px;
}
.ag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 8px;
}
.agc {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px 10px 10px;
  border-radius: 18px;
  text-align: left;
  background: var(--row);
  border: 1px solid transparent;
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.35s var(--spring);
  content-visibility: auto;
  contain-intrinsic-size: auto 64px;
}
.agc:hover {
  background: var(--row-h);
  border-color: var(--line);
}
.agc:active {
  transform: scale(0.97);
}
.agc .tx {
  flex: 1;
  min-width: 0;
}
.agc b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agc small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agc .role {
  height: 20px;
  font-size: 10px;
  padding: 0 8px;
  flex: none;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  line-height: 20px;
}
.agc .wa-ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  flex: none;
}
.pcard {
  text-align: center;
}
.pcard-top {
  position: relative;
  height: 92px;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, #5b8eff 0%, transparent 50%),
    linear-gradient(150deg, #3270ff 0%, #1d4ed8 52%, #132f8f 100%);
}
.pcard-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 105% -10%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 15px);
}
.pcard-top img {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.pcard-top span {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 1;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.pcard .av {
  margin: -44px auto 0;
  box-shadow:
    0 0 0 5px var(--glass-solid),
    0 12px 26px -12px rgba(10, 30, 90, 0.55);
}
.pcard h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.pcard .pc-sub {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 3px;
}
.pcard .pc-tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pcard .pc-desc {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--row);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pcard .pc-desc.none {
  color: var(--ink-3);
  text-align: center;
  font-weight: 600;
}
.pcard .dl {
  margin-top: 12px;
  text-align: left;
}
.btn-wa {
  color: #fff;
  background: linear-gradient(180deg, #30d073, #12a24e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px -12px rgba(18, 162, 78, 0.8);
}
.champ {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 10px;
}
.champ-i {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--row);
  border: 1px solid var(--line);
  min-width: 0;
  text-align: left;
  width: 100%;
  transition: background 0.25s;
}
.champ-i:hover {
  background: var(--row-h);
}
.champ-i .sb {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-right: 26px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.champ-i .cr {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #d48a00;
}
.champ-i .cr .i {
  width: 18px;
  height: 18px;
}
.champ-i .who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.champ-i .who > div {
  min-width: 0;
}
.champ-i .who b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.champ-i .who small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.champ-i .pt {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.champ-i .pt small {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  margin-left: 4px;
  letter-spacing: 0;
}
.champ-i.empty-c {
  justify-content: center;
  color: var(--ink-3);
  font-weight: 600;
  font-size: 12.5px;
  min-height: 104px;
}
.lb .sek-h {
  margin: 10px 2px 6px;
}
.lb .sek-h:first-child {
  margin-top: 0;
}
.dm-row .num {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
  white-space: nowrap;
  text-align: right;
  flex: none;
}
.dm-row .num small {
  display: block;
  font-weight: 600;
  color: var(--ink-3);
  font-size: 11px;
}
.dm-row .btn {
  flex: none;
}
.dm-date {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--line);
}
.dm-date .inp {
  width: auto;
  flex: 1;
  min-width: 150px;
  height: 40px;
}
.dm-date span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.dm-note {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 10px;
  line-height: 1.45;
}
@media (max-width: 1100px) {
  .grid > .lap-card {
    grid-column: span 4;
  }
}
@media (max-width: 767px) {
  .toolbar .search.ag-q {
    max-width: none;
    flex: 1 1 100%;
  }
  .dm-row {
    flex-wrap: wrap;
  }
  .dm-row .tx {
    flex: 1 1 60%;
  }
}
html.lite .agc,
html.lite .champ-i {
  transition: none;
}
.lb div.prow {
  cursor: default;
}

/* ===== v1.6: pengaturan bergrup ===== */
.set-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 28px;
  align-items: start;
}
.set-col {
  min-width: 0;
}
.set-lbl {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 24px 12px 10px;
}
.set-col > .set-lbl:first-child {
  padding-top: 4px;
}
.set-card {
  border-radius: 24px;
  padding: 4px 0;
  overflow: hidden;
}
.set-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 66px;
  padding: 12px 18px;
  text-align: left;
  color: inherit;
  transition: background 0.2s;
}
button.set-row:hover {
  background: var(--row-h);
}
button.set-row:active {
  background: var(--row);
}
.set-card > .set-row:not(:first-child)::before,
#dbStat > .set-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 70px;
  right: 0;
  height: 1px;
  background: var(--line);
}
.set-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  background: var(--grad-btn);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 8px rgba(5, 20, 90, 0.25),
    0 8px 18px -10px rgba(31, 79, 224, 0.85);
}
.set-ic .i {
  width: 19px;
  height: 19px;
}
.set-row .tx {
  flex: 1;
  min-width: 0;
}
.set-row b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.set-row small {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.set-row .switch {
  flex: none;
}
.set-pill {
  flex: none;
  height: 26px;
  min-width: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: var(--ring);
  white-space: nowrap;
}
.set-pill.warn {
  color: var(--warn-ink);
  background: var(--warn-bg);
}
.set-chev {
  display: grid;
  flex: none;
  color: var(--ink-3);
}
.set-chev .i {
  width: 18px;
  height: 18px;
}
.set-row.danger b {
  color: var(--bad);
}
.set-row.me-row {
  min-height: 86px;
}
.set-row.me-row b {
  font-size: 16.5px;
}
.set-bar {
  display: block;
  margin-top: 8px;
  max-width: 260px;
}
.about2 {
  padding: 28px 22px 6px;
  text-align: center;
}
.ab-logo {
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 200deg, #3b6cff, #a9c0ff, #e8505b, #3b6cff);
  box-shadow: 0 14px 30px -16px rgba(31, 79, 224, 0.65);
}
.ab-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--glass-solid);
  background: #fff;
}
.about2 h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.about2 p {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 500;
  margin-top: 4px;
}
.ab-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 8px;
}
.ab-pill {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}
.ab-pill.blue {
  color: var(--accent);
  background: var(--ring);
}
.ab-pill.red {
  color: var(--bad-ink);
  background: var(--bad-bg);
}
.ab-kv {
  margin-top: 12px;
  text-align: left;
}
.ab-kv > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 8px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.ab-kv span {
  color: var(--ink-3);
  font-weight: 500;
}
.ab-kv b {
  font-weight: 800;
  text-align: right;
}
.set-modal .card {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 0;
}
.set-modal .card::before,
.set-modal .card::after {
  display: none;
}
.set-modal .card > .card-h h3 {
  display: none;
}
.set-modal .card > .card-h {
  justify-content: flex-end;
  min-height: 0;
  margin-bottom: 10px;
}
.set-modal .card > .card-h:not(:has(button)) {
  display: none;
}
.set-modal .acc-list {
  max-height: none;
}
@media (max-width: 900px) {
  .set-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .set-col + .set-col > .set-lbl:first-child {
    padding-top: 24px;
  }
}
@media (max-width: 767px) {
  .set-row {
    padding: 12px 14px;
    min-height: 62px;
  }
  .set-card > .set-row:not(:first-child)::before,
  #dbStat > .set-row::before {
    left: 64px;
  }
  .ab-kv > div {
    font-size: 14px;
  }
}

/* ===== v1.6: anggota OSIS + status online ===== */
.ag-tools .ag-onl {
  height: 40px;
  flex: none;
}
.sek-h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 4px 12px;
}
.sek-h2 b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sek-h2 span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.sek-h2 em {
  font-style: normal;
  color: var(--good-ink);
  font-weight: 700;
}
.ag-sec2 + .ag-sec2 {
  margin-top: 26px;
}
.ag-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.agc2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  padding: 20px 12px 14px;
  border-radius: 22px;
  background: var(--glass-solid);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 2px rgba(16, 40, 100, 0.04),
    0 10px 24px -18px rgba(16, 46, 130, 0.35);
  transition:
    transform 0.35s var(--spring),
    border-color 0.3s;
  content-visibility: auto;
  contain-intrinsic-size: auto 210px;
}
.agc2:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
}
.agc2:active {
  transform: scale(0.97);
}
.agc2.is-on {
  border-color: rgba(34, 197, 94, 0.35);
}
.agc2 b {
  max-width: 100%;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agc2 small {
  max-width: 100%;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-foot {
  display: flex;
  margin-top: 12px;
  max-width: 100%;
}
.agc2 .role {
  display: inline-block;
  max-width: 140px;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}
.ag-st.on {
  color: var(--good-ink);
  font-weight: 700;
}
.ag-st i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
}
.ph p .ag-st {
  margin: 0;
  font-size: inherit;
}
.ag-av {
  position: relative;
  display: block;
  flex: none;
  width: var(--s);
  height: var(--s);
}
.ag-av .av {
  margin: 0;
}
.pres {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #a3adc2;
  border: 3px solid var(--glass-solid);
}
.pres.on {
  background: #22c55e;
}
.ag-onl .pres {
  position: static;
  width: 9px;
  height: 9px;
  border: 0;
}
.pcard .ag-av {
  margin: -44px auto 0;
}
.pcard .ag-av .av {
  margin: 0;
  box-shadow:
    0 0 0 5px var(--glass-solid),
    0 12px 26px -12px rgba(10, 30, 90, 0.55);
}
.pcard .ag-av .pres {
  right: 3px;
  bottom: 3px;
  width: 22px;
  height: 22px;
  border-width: 4px;
}
.pc-st .ag-st {
  margin-top: 6px;
}
@media (max-width: 767px) {
  .ag-grid2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .agc2 {
    padding: 16px 10px 12px;
  }
}
html.lite .agc2 {
  transition: none;
}

/* ===== v1.7–1.8: tampilan sekbid, poin, jadwal, profil, menu HP ===== */
.ls-note {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
  margin: 0 2px 14px;
}
.tp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tp-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 10px;
}
.tp-h .set-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.tp-h .set-ic .i {
  width: 16px;
  height: 16px;
}
.tp-h b {
  font-size: 14px;
  font-weight: 800;
}
.tp-h span {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.tp-sec .set-card {
  background: var(--row);
  border: 1px solid var(--line);
  box-shadow: none;
}
.tp-sec .set-row {
  min-height: 54px;
  padding: 10px 14px;
}
.tp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--b4);
  flex: none;
  margin: 0 4px;
}
.tp-sec .set-row:has(input:not(:checked)) .tp-dot {
  background: var(--line-2);
}
.tp-sec .set-row:has(input:not(:checked)) b {
  color: var(--ink-3);
}
.tp-sec .set-card > .set-row:not(:first-child)::before {
  left: 30px;
}
/* ===== Point tertinggi: panggung juara tiap sekbid + total poin sekbid ===== */
.pt-crown {
  color: #d48a00;
}
.p-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
/* panggung: jumlah kolom = jumlah sekbid (maks. 5), diatur lewat --n */
.pd {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-top: 26px;
}
.pd-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: center;
}
button.pd-col {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pd-who {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0 2px 10px;
}
.pd-who .av {
  margin: 0 0 7px;
  box-shadow:
    0 0 0 3px var(--glass-solid),
    0 10px 22px -10px rgba(16, 46, 130, 0.5);
}
.p1 .pd-who::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -14px;
  left: 50%;
  width: 100px;
  height: 100px;
  margin-left: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 60, 0.32), transparent 68%);
  pointer-events: none;
}
.pd-who b {
  max-width: 100%;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-who small {
  max-width: 100%;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-crown {
  position: absolute;
  top: -22px;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  color: #e8a100;
  filter: drop-shadow(0 3px 6px rgba(232, 161, 0, 0.45));
}
.pd-crown .i {
  width: 100%;
  height: 100%;
}
.pd-ghost {
  width: 44px;
  height: 44px;
  margin-bottom: 7px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip);
  border: 1px dashed var(--line-2);
  color: var(--ink-3);
}
.pd-pil {
  position: relative;
  width: 100%;
  height: var(--h);
  padding-top: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(180deg, var(--b4), var(--b6));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 14px 30px -16px rgba(20, 60, 190, 0.6);
  color: #fff;
  overflow: hidden;
  transform-origin: 50% 100%;
  transition: box-shadow 0.2s;
}
/* pita medali di atas podium */
.pd-pil::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--md, rgba(255, 255, 255, 0.5));
}
/* kilau yang lewat sekali di podium juara 1 */
.pd-pil::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%);
  transform: translateX(-120%);
}
.p1 .pd-pil {
  --h: 132px;
  --md: linear-gradient(90deg, #ffd76a, #e8a100);
}
.p2 .pd-pil {
  --h: 110px;
  --md: linear-gradient(90deg, #f1f4fa, #9aa8bf);
  background: linear-gradient(180deg, var(--b3), var(--b5));
}
.p3 .pd-pil {
  --h: 92px;
  --md: linear-gradient(90deg, #f3b98a, #c46f35);
  background: linear-gradient(180deg, #a9c4ff, var(--b4));
}
.p4 .pd-pil {
  --h: 76px;
  background: linear-gradient(180deg, #bccfff, #7aa3ff);
}
.p5 .pd-pil {
  --h: 62px;
  background: linear-gradient(180deg, #cddbff, #93b4ff);
}
.pd-col.on .pd-pil {
  box-shadow:
    0 0 0 3px var(--ring),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 14px 30px -16px rgba(20, 60, 190, 0.6);
}
button.pd-col:hover .pd-pil {
  filter: brightness(1.05);
}
.pd-rank {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.p1 .pd-rank {
  font-size: 38px;
}
.p4 .pd-rank,
.p5 .pd-rank {
  font-size: 22px;
}
.pd-pt {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.92;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pd-col.empty .pd-pil {
  background: var(--row);
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pd-col.empty .pd-pil::before {
  opacity: 0.4;
}
.pd-col.empty .pd-who b {
  color: var(--ink-3);
  font-weight: 700;
}
/* lintasan: total poin tiap sekbid */
.lanes {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ln-cap {
  padding: 0 12px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}
.lane {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 9px 12px 6px;
  border-radius: 16px;
  border: 1px solid transparent;
  text-align: left;
  transition:
    background 0.2s,
    border-color 0.2s;
}
button.lane:hover {
  background: var(--row);
}
.lane.on {
  background: var(--ring);
  border-color: rgba(47, 102, 246, 0.35);
}
.ln-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.ln-h > b {
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ln-h > small {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}
.ln-lead {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.ln-lead b {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ln-lead b.neg {
  color: var(--bad);
}
.ln-rail {
  position: relative;
  height: 8px;
  margin: 8px 7px 6px;
  border-radius: 99px;
  background: var(--chip);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ln-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--b3), var(--b6));
  transform: scaleX(var(--k));
  transform-origin: 0 50%;
}
/* titik di ujung batang: pembawa selebar bagian yang terisi (tidak pernah melewati lintasan,
   jadi halaman di HP tidak ikut melebar/geser ke samping) */
.ln-trk {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--k) * 100%);
  pointer-events: none;
}
.ln-dot {
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--b6);
  box-shadow: 0 3px 8px -2px rgba(16, 46, 130, 0.45);
}
@media (min-width: 1024px) {
  .p-stage {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
    align-items: center;
  }
}
/* animasi masuk (class .play dipasang AFTER.poin saat halaman dibuka).
   --dl = jeda tiap podium: podium terendah naik duluan, juara 1 terakhir */
.p-stage.play .pd-pil {
  animation: pdRise 0.8s var(--spring) both;
  animation-delay: calc(var(--dl, 0) * 1s);
}
.p-stage.play .pd-who {
  animation: pdPop 0.6s var(--spring) both;
  animation-delay: calc(var(--dl, 0) * 1s + 0.35s);
}
html[data-motion='on']:not(.lite) .pd-crown {
  animation: pdBob 3.4s ease-in-out infinite;
}
html[data-motion='on'] .p-stage.play .pd-crown {
  animation:
    pdCrown 0.7s var(--spring) 1.1s both,
    pdBob 3.4s ease-in-out 1.9s infinite;
}
.p-stage.play .p1 .pd-pil::after {
  animation: pdShine 1.2s var(--smooth) 1.3s both;
}
.p-stage.play .ln-fill,
.p-stage.play .ln-trk {
  animation: lnFill 1.1s var(--smooth) both;
  animation-delay: calc(0.3s + var(--d, 0) * 80ms);
}
.p-stage.play .ln-trk {
  animation-name: lnRun;
}
@keyframes pdRise {
  from {
    transform: scaleY(0.04);
  }
}
@keyframes pdPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.86);
  }
}
@keyframes pdCrown {
  from {
    opacity: 0;
    transform: translateY(-18px) rotate(-22deg) scale(0.6);
  }
}
@keyframes pdBob {
  50% {
    transform: translateY(-3px) rotate(-4deg);
  }
}
@keyframes pdShine {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}
@keyframes lnFill {
  from {
    transform: scaleX(0);
  }
}
@keyframes lnRun {
  from {
    width: 0;
  }
}
/* Data point */
.dp-seg {
  margin-bottom: 12px;
}
.dp {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dp-head,
.dp-row {
  display: grid;
  grid-template-columns: 30px 38px minmax(0, 1fr) 92px 52px;
  align-items: center;
  gap: 12px;
}
.dp-head {
  padding: 0 12px 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dp-head > span:nth-child(2) {
  grid-column: 2 / 4;
}
.dp-head > span:last-child,
.dp-head .dp-pm {
  text-align: right;
}
.dp-row {
  padding: 9px 12px;
  border-radius: 16px;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}
/* batang latar: panjang sesuai poin (--w dari rankRows) */
.dp-row {
  position: relative;
  isolation: isolate;
}
.dp-row::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) * var(--w, 0));
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(79, 134, 255, 0.17), rgba(79, 134, 255, 0.04));
  transform-origin: 0 50%;
}
.dp-row.neg::before {
  background: linear-gradient(90deg, rgba(212, 61, 61, 0.15), rgba(212, 61, 61, 0.03));
}
.dp.play .dp-row::before {
  animation: lnFill 0.9s var(--smooth) 0.15s both;
}
button.dp-row:hover {
  background: var(--row-h);
}
.dp-row.on {
  background: var(--ring);
  box-shadow: inset 0 0 0 1px rgba(47, 102, 246, 0.35);
}
.dp-no {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.dp-no.m1 {
  background: linear-gradient(160deg, #ffd76a, #e8a100);
  color: #fff;
}
.dp-no.m2 {
  background: linear-gradient(160deg, #dfe6f2, #9aa8bf);
  color: #fff;
}
.dp-no.m3 {
  background: linear-gradient(160deg, #f3b98a, #c46f35);
  color: #fff;
}
.dp-row .av {
  margin: 0;
}
.dp-tx {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dp-tx b {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-tx small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.dp-pm {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dp-pm i {
  font-style: normal;
  color: var(--ink-3);
}
.dp-pm .p {
  color: var(--good-ink);
}
.dp-pm .m {
  color: var(--bad-ink);
}
.dp-tot {
  text-align: right;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.dp-tot.neg {
  color: var(--bad);
}
@media (min-width: 1024px) {
  #pRankCard #pRank {
    max-height: 640px;
    overflow: auto;
    overscroll-behavior: contain;
    margin-right: -6px;
    padding-right: 6px;
  }
}
/* kartu profil anggota */
.pc3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 2px 0;
}
.pc3-av {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  color: inherit;
}
button.pc3-av {
  cursor: zoom-in;
}
.pc3-av .av {
  box-shadow:
    0 0 0 4px var(--glass-solid),
    0 0 0 5px var(--line-2),
    0 14px 30px -14px rgba(10, 30, 90, 0.5);
}
.pc3-av .pres {
  right: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border-width: 4px;
}
.pc3-av .zoom {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass-solid);
  color: var(--ink-2);
  box-shadow:
    0 0 0 1px var(--line-2),
    0 4px 10px -4px rgba(10, 30, 90, 0.4);
  transition: transform 0.3s var(--spring);
}
.pc3-av .zoom .i {
  width: 14px;
  height: 14px;
}
button.pc3-av:hover .zoom {
  transform: scale(1.12);
}
.pc3 h3 {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pc3-sub {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.pc3 .ag-st {
  margin-top: 8px;
}
.pc3-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.pc3-tags .role {
  line-height: 26px;
}
.pc3-sek {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px 0 4px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.pc3-desc {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.pc3-list {
  width: 100%;
  margin-top: 18px;
  border-radius: 18px;
  background: var(--row);
  border: 1px solid var(--line);
  text-align: left;
}
.pc3-r {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  min-height: 46px;
}
.pc3-r + .pc3-r {
  border-top: 1px solid var(--line);
}
.pc3-r span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  flex: none;
}
.pc3-r b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* jadwal */
.j-week {
  padding: 14px 16px;
  margin-bottom: 16px;
}
.j-week .week-h {
  margin-bottom: 10px;
}
.j-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.j-pick > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.j-pick .date-pick {
  width: auto;
  flex: none;
}
.j-empty {
  border-radius: var(--r-lg);
  padding: 6px;
}
/* menu HP */
.tab-more {
  all: unset;
  box-sizing: border-box;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.more-i {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 16px 6px 14px;
  border-radius: 20px;
  background: var(--row);
  border: 1px solid var(--line);
  text-align: center;
  color: var(--ink);
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.3s var(--spring);
}
.more-i:active {
  transform: scale(0.96);
}
.more-i.on {
  border-color: var(--b4);
  box-shadow: inset 0 0 0 1px var(--b4);
}
.more-i .mi {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--ring);
  color: var(--accent);
}
.more-i .mi .i {
  width: 22px;
  height: 22px;
}
.more-i b {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
}
.more-i .cnt {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  display: grid;
  place-items: center;
}
@media (max-width: 767px) {
  .bnav {
    padding: 5px;
    width: min(calc(100% - 16px), 480px);
  }
  .bnav a,
  .bnav .tab-more {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    height: 56px;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--ink-2);
    cursor: pointer;
    transition: color 0.35s;
    -webkit-tap-highlight-color: transparent;
  }
  .bnav a.on,
  .bnav .tab-more.on {
    color: #fff;
  }
  .bnav a .i,
  .bnav .tab-more .i {
    width: 21px;
    height: 21px;
  }
  .bnav .tm-ic {
    display: grid;
    place-items: center;
    height: 21px;
  }
  .bnav .tl {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    max-width: 100%;
    padding: 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bnav a .cnt {
    top: 4px;
    right: calc(50% - 22px);
  }
  .bnav .cnt.dot {
    position: absolute;
    top: 8px;
    right: calc(50% - 14px);
    width: 9px;
    height: 9px;
    min-width: 0;
    padding: 0;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 2px var(--glass-solid);
    font-size: 0;
  }
  /* Point tertinggi di HP: 5 podium muat di layar 320-430px tanpa geser */
  .pd {
    gap: 4px;
    max-width: none;
    padding-top: 22px;
  }
  .pd-who {
    padding: 0 0 8px;
  }
  .pd-who .av {
    --s: 36px !important;
    font-size: 12px;
    margin-bottom: 5px;
    box-shadow:
      0 0 0 2px var(--glass-solid),
      0 8px 16px -8px rgba(16, 46, 130, 0.5);
  }
  .p1 .pd-who .av {
    --s: 46px !important;
    font-size: 15px;
  }
  .pd-ghost {
    width: 36px;
    height: 36px;
    margin-bottom: 5px;
  }
  .p1 .pd-who::before {
    width: 76px;
    height: 76px;
    margin-left: -38px;
    top: -10px;
  }
  .pd-who b {
    font-size: 11px;
  }
  .pd-who small {
    font-size: 9.5px;
  }
  .pd-crown {
    width: 20px;
    height: 20px;
    margin-left: -10px;
    top: -17px;
  }
  .pd-pil {
    padding-top: 8px;
    border-radius: 12px 12px 5px 5px;
  }
  .pd-pil::before {
    height: 4px;
  }
  .p1 .pd-pil {
    --h: 96px;
  }
  .p2 .pd-pil {
    --h: 80px;
  }
  .p3 .pd-pil {
    --h: 66px;
  }
  .p4 .pd-pil {
    --h: 54px;
  }
  .p5 .pd-pil {
    --h: 46px;
  }
  .pd-rank,
  .p4 .pd-rank,
  .p5 .pd-rank {
    font-size: 19px;
  }
  .p1 .pd-rank {
    font-size: 26px;
  }
  .pd-pt {
    margin-top: 2px;
    font-size: 10px;
  }
  .lane {
    padding: 8px 8px 4px;
  }
  .ln-cap {
    padding: 0 8px 2px;
  }
  /* filter sekbid di HP: semua terlihat tanpa digeser */
  .dp-seg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
    padding: 4px;
    border-radius: 18px;
    overflow: visible;
  }
  .dp-seg > button {
    height: 32px;
    min-width: 0;
    padding: 0 4px;
    font-size: 12px;
    border-radius: 14px;
    overflow: hidden;
  }
  .dp-seg .seg-pill {
    border-radius: 14px;
  }
  .dp-head {
    display: none;
  }
  .dp-head,
  .dp-row {
    grid-template-columns: 26px 36px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .dp-row {
    padding: 9px 8px;
  }
  .dp-row .dp-pm {
    display: none;
  }
  .dp-tot {
    font-size: 17px;
    min-width: 36px;
  }
  .j-week {
    padding: 12px;
  }
  .j-pick > span {
    font-size: 12.5px;
  }
  .more-grid {
    gap: 8px;
  }
  .card-h h3 {
    font-size: 16px;
  }
  .tp-grid {
    grid-template-columns: 1fr;
  }
  .set-row .tx small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
    line-height: 1.35;
  }
}
@media (max-width: 360px) {
  .bnav .tl {
    font-size: 9.5px;
  }
  .more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
html.lite .lane,
html.lite .more-i,
html.lite .dp-row {
  transition: none;
}
.n-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.n-bar span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.n-acts {
  display: flex;
  gap: 6px;
}
.n-bar .btn {
  height: 32px;
  padding: 0 11px;
  font-size: 12.5px;
}
.nitem.n-old {
  opacity: 0.72;
}
.n-tag {
  font-weight: 700;
  color: var(--ink-3);
}
@media (max-width: 767px) {
  .toolbar [data-seg='rFilter'] > button {
    padding: 0 2px;
    font-size: 12px;
  }
}
.n-riwayat {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}
.n-riwayat span {
  flex: 1;
  text-align: left;
}
.gate-note {
  align-items: center;
}
.gate-note .link {
  margin-left: auto;
  flex: none;
}
.n-bar .btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}
/* ===== v1.9: akun saya ===== */
.acc-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.acc-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 22px 22px;
}
.acc-av {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.35s var(--spring);
}
.acc-av:hover {
  transform: scale(1.03);
}
.acc-av:disabled {
  cursor: default;
  transform: none;
}
.acc-av .av {
  margin: 0;
  box-shadow:
    0 0 0 4px var(--glass-solid),
    0 0 0 5px var(--line-2),
    0 16px 34px -16px rgba(10, 30, 90, 0.5);
}
.acc-av .cam {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 0 0 3px var(--glass-solid);
}
.acc-av .cam .i {
  width: 16px;
  height: 16px;
}
.acc-hero h2 {
  margin-top: 16px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.acc-hero > p {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.acc-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.acc-hero > .btn {
  width: 100%;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .acc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* ===== v1.9: potong foto profil ===== */
.crop {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.crop-stage {
  position: relative;
  width: var(--cs);
  height: var(--cs);
  border-radius: 24px;
  overflow: hidden;
  background: #0b1530;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.crop-stage:active {
  cursor: grabbing;
}
.crop-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.crop-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(6, 14, 36, 0.58);
  outline: 2px solid rgba(255, 255, 255, 0.92);
  pointer-events: none;
}
.crop-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  width: var(--cs);
  color: var(--ink-3);
}
.crop-zoom input {
  flex: 1;
  accent-color: var(--b5);
}
.crop-hint {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.shot.round.has {
  aspect-ratio: auto;
  height: 200px;
  display: grid;
  place-items: center;
}
.shot.round.has > img {
  position: static;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px var(--glass-solid),
    0 14px 30px -14px rgba(10, 30, 90, 0.5);
}

/* ===== v1.9: atur status riwayat ===== */
.badge.b-late {
  color: #b4530a;
  background: rgba(234, 88, 12, 0.13);
  margin-left: 4px;
}
html[data-theme='dark'] .badge.b-late {
  color: #fdba74;
}
.ra-seg > button {
  flex: 1;
}
.ra-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}
/* foto bukti di "Atur status tugas" (Tim IT) */
.ra-fotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ra-ph {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ra-ph .pv {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--chip);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-3);
}
.ra-ph.new .pv {
  border-color: var(--b4);
  box-shadow: 0 0 0 3px var(--ring);
}
.ra-ph .pv img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: 0;
}
.ra-ph .pv img.ph {
  cursor: zoom-in;
}
.ra-ph .pv em {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  font: 700 10px/1.4 var(--font);
  font-style: normal;
  color: #fff;
  background: rgba(8, 20, 60, 0.55);
}
.ra-ph .pv .ibtn {
  position: absolute;
  top: 6px;
  right: 6px;
}
.ra-ph .btn {
  justify-content: center;
}
/* panel Sistem & Keamanan (IT Utama) */
.sis-stat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.sis-n {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--row);
  border: 1px solid var(--line);
}
.sis-n b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.sis-n small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.sis-n.warn b {
  color: var(--warn-ink);
}
.sis-n.bad b {
  color: var(--bad);
}
.sis-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.sis-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 6px;
}
.sis-h b {
  font-size: 13.5px;
  font-weight: 800;
}
.sis-list {
  display: flex;
  flex-direction: column;
  max-height: 340px;
  overflow: auto;
  overscroll-behavior: contain;
}
.sis-row {
  gap: 10px;
}
.sis-row .av {
  margin: 0;
  flex: none;
}
.sis-me {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: 4px;
  border-radius: 99px;
  background: var(--ring);
  color: var(--accent);
}
.sis-log {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
}
.sis-log .dot {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--good-bg);
  color: var(--good-ink);
}
.sis-log.bad .dot {
  background: var(--bad-bg);
  color: var(--bad-ink);
}
.sis-log .dot .i {
  width: 12px;
  height: 12px;
}
.sis-log .tx {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sis-log b {
  font-size: 13px;
  font-weight: 700;
}
.sis-log small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.sis-empty {
  padding: 10px 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}
/* panel Keamanan Login (Tim IT) */
.aman-list {
  display: flex;
  flex-direction: column;
}
.aman-f {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}
.aman-f .tx {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.aman-f b {
  font-size: 13.5px;
  font-weight: 700;
}
.aman-f small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.aman-f .stepper {
  flex: none;
  gap: 6px;
}
.aman-f .stepper .inp {
  width: 68px;
  height: 38px;
  padding: 0 4px;
  font-size: 16px;
}
.aman-f .stepper .ibtn {
  width: 34px;
  height: 34px;
}
.aman-acts {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
@media (max-width: 767px) {
  .sis-stat {
    gap: 6px;
  }
  .sis-n {
    padding: 10px;
  }
  .sis-n b {
    font-size: 19px;
  }
  .sis-n small {
    font-size: 10.5px;
  }
  .ra-fotos {
    gap: 8px;
  }
  .ra-ph .btn span {
    font-size: 12px;
  }
}

/* ===== ekspor/impor poin, buat akun, menu per peran ===== */
.px-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-3);
}
.px-note > .i {
  flex: none;
  margin-top: 2px;
}
.modal-b .px-tab + .px-note,
.modal-b .px-new + .px-note,
.px-note + .months {
  margin-top: 12px;
}
.px-sum {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.px-sum > div {
  padding: 12px 8px;
  border-radius: 16px;
  text-align: center;
  background: var(--row);
  border: 1px solid var(--line);
}
.px-sum b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.px-sum span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.px-tab {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.px-tab > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}
.px-tab > div + div {
  border-top: 1px solid var(--line);
}
.px-tab small {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}
.px-new,
.an-row {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--ring);
}
.px-new b,
.an-row b {
  display: block;
  font-size: 13.5px;
}
.px-new small,
.an-row small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.rf-note {
  margin: 2px 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

html[lang='ja'] {
  --font: 'Plus Jakarta Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP',
    sans-serif;
}
.lang-seg {
  flex: none;
  padding: 3px;
}
.lang-seg > button {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
@media (max-width: 767px) {
  .lang-seg > button {
    padding: 0 8px;
    font-size: 11.5px;
  }
}

/* ===== v2.0: konfirmasi sebelum check in ===== */
.ckc-q {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.ckc {
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--row);
  border: 1px solid var(--line);
}
.ckc > b {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.ckc-m {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.ckc-m span,
.ckc-t {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ckc-t {
  margin-top: 12px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--ring);
}
.ckc-t.ok {
  color: var(--good-ink);
  background: var(--good-bg);
}
.ckc-t.late {
  color: var(--warn-ink);
  background: var(--warn-bg);
}
.ckc-hint {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ===== v2.0: pengaduan ===== */
.adu {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--r-lg);
  color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #3d73ff 0%, transparent 55%),
    linear-gradient(160deg, #1f4fe0, #0c1c55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 16px 34px -18px rgba(12, 28, 85, 0.8);
}
.adu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 110% -10%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16px);
  pointer-events: none;
}
.adu-h {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.adu-ic {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
}
.adu-h b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.adu-h p {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0.8;
}
.adu-acts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.adu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition:
    background 0.2s,
    transform 0.3s var(--spring);
}
.adu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.adu-btn:active {
  transform: scale(0.97);
}
.adu-btn > span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.adu-btn b {
  font-size: 13.5px;
  font-weight: 700;
}
.adu-btn small {
  font-size: 11.5px;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adu-btn > .i:last-child {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}
@media (max-width: 440px) {
  .adu-acts {
    grid-template-columns: 1fr;
  }
}

/* ===== v2.0: filter sekbid Anggota OSIS di HP tanpa digeser ===== */
@media (max-width: 767px) {
  .ag-tools .seg[data-seg='agSek'] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
    padding: 4px;
    border-radius: 18px;
    overflow: visible;
  }
  .ag-tools .seg[data-seg='agSek'] > button {
    height: 32px;
    min-width: 0;
    padding: 0 4px;
    font-size: 12px;
    border-radius: 14px;
    overflow: hidden;
  }
  .ag-tools .seg[data-seg='agSek'] .seg-pill {
    border-radius: 14px;
  }
}
