/* ===== Panel Operator: split layar modern, satu layar tanpa scroll =====
 * Kiri  : area panggilan (gelap, animasi aurora / grid / "+" melayang / EKG).
 * Kanan : pengelolaan dalam tab (Riwayat, Tampilan, Suara, Sistem).
 * Ponsel/tablet: satu panel tampil bergantian lewat navigasi bawah.
 */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

html:has(.operator-page) { height: 100%; overflow: hidden; }
.operator-page {
  height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none;
  background: #061a33;
  --ink: #0b1f3a;
  --muted: #5b6b82;
  --line: #e3eaf3;
  --a: 45, 212, 191;
  --b: 96, 165, 250;
}
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.loket-a { --c: var(--a); --c-solid: #14b8a6; --c-deep: #0f766e; }
.loket-b { --c: var(--b); --c-solid: #3b82f6; --c-deep: #1d4ed8; }

.rise { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes rise { from { opacity: 0; translate: 0 18px; filter: blur(5px); } to { opacity: 1; translate: 0 0; filter: none; } }

/* ---------- Lapisan animasi latar ---------- */
.fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.fx-aurora span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}
.fx-aurora span:nth-child(1) { width: 55%; aspect-ratio: 1; left: -12%; top: -18%; background: #14b8a6; }
.fx-aurora span:nth-child(2) { width: 50%; aspect-ratio: 1; right: -15%; top: 25%; background: #1d5fa8; animation-duration: 27s; animation-delay: -8s; }
.fx-aurora span:nth-child(3) { width: 40%; aspect-ratio: 1; left: 25%; bottom: -25%; background: #0e7490; animation-duration: 31s; animation-delay: -15s; opacity: .45; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(8%, 10%) scale(1.15); }
  100% { transform: translate(-6%, 4%) scale(.95); }
}
.fx-grid {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%;
  background-image:
    linear-gradient(rgba(94, 234, 212, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, .13) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: grid-move 6s linear infinite;
}
@keyframes grid-move { to { background-position: 0 54px, 0 0; } }
.fx-plus i {
  position: absolute; left: var(--x); bottom: -40px; width: var(--s); height: var(--s);
  opacity: 0; animation: float-up var(--d) linear var(--dl) infinite;
}
.fx-plus i::before, .fx-plus i::after {
  content: ""; position: absolute; inset: 35% 0; border-radius: 3px;
  background: rgba(94, 234, 212, .7); box-shadow: 0 0 12px rgba(45, 212, 191, .8);
}
.fx-plus i::after { inset: 0 35%; }
@keyframes float-up {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .55; }
  85%  { opacity: .4; }
  100% { transform: translateY(-110vh) rotate(220deg); opacity: 0; }
}
.fx-ecg { position: absolute; left: 0; right: 0; bottom: 18%; width: 100%; height: 60px; opacity: .7; }
.fx-ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fx-ecg .ecg-base { stroke: rgba(94, 234, 212, .12); stroke-width: 1.5; }
.fx-ecg .ecg-glow { stroke: #5eead4; stroke-width: 2.2; stroke-dasharray: 120 880; stroke-dashoffset: 1000; filter: drop-shadow(0 0 6px rgba(45, 212, 191, .9)); animation: ecg 4.2s linear infinite; }
@keyframes ecg { to { stroke-dashoffset: 0; } }

.grad {
  background: linear-gradient(100deg, #5eead4 0%, #67e8f9 30%, #fff 50%, #67e8f9 70%, #5eead4 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* =====================================================================
 *  LOGIN (split)
 * ===================================================================== */
.login-split { height: 100%; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); }
.ls-brand {
  position: relative; isolation: isolate; overflow: hidden; color: #e6f1ff;
  background: linear-gradient(150deg, #071d3a 0%, #0b2d57 55%, #0a3b4f 100%);
}
.ls-brand-inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 3vh;
  padding: clamp(18px, 5vh, 48px) clamp(20px, 5vw, 64px);
}
.ls-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; align-self: flex-start; }
.ls-logo img { height: clamp(40px, 6vh, 58px); width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.ls-logo strong { display: block; font-size: clamp(1rem, 2.2vh, 1.25rem); font-weight: 800; }
.ls-logo small { display: block; color: rgba(230, 241, 255, .7); font-weight: 600; font-size: .85rem; }
.ls-copy { display: flex; flex-direction: column; gap: clamp(12px, 2.4vh, 24px); max-width: 560px; }
.ls-eyebrow {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #99f6e4; background: rgba(20, 184, 166, .12); border: 1px solid rgba(45, 212, 191, .3);
}
.ls-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, .7); } 100% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); } }
.ls-copy h1 { margin: 0; font-size: clamp(1.9rem, min(4.4vw, 6.6vh), 3.6rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 800; color: #fff; text-wrap: balance; }
.ls-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, 1.4vh, 14px); }
.ls-feats li {
  display: flex; align-items: center; gap: 14px; padding: clamp(9px, 1.5vh, 14px) 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(12px);
  font-size: clamp(.86rem, 1.7vh, .98rem); color: rgba(230, 241, 255, .8);
}
.ls-feats li b { color: #fff; }
.ls-feats .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; color: #04203a; background: linear-gradient(135deg, #5eead4, #2dd4bf); stroke-width: 2.2; }
.ls-feats li:nth-child(2) .ic { background: linear-gradient(135deg, #93c5fd, #60a5fa); }
.ls-feats li:nth-child(3) .ic { background: linear-gradient(135deg, #fde68a, #fbbf24); }
.ls-addr { margin: 0; font-size: .8rem; color: rgba(230, 241, 255, .5); max-width: 60ch; }

.ls-form-wrap {
  position: relative; display: grid; place-items: center; padding: clamp(14px, 3vh, 32px);
  background: radial-gradient(600px 400px at 80% 0%, rgba(45, 212, 191, .12), transparent 60%), #f4f8fb;
}
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.lc-icon {
  width: clamp(48px, 7vh, 62px); height: clamp(48px, 7vh, 62px); border-radius: 18px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #14b8a6, #0b4f8a); box-shadow: 0 14px 30px -12px rgba(13, 148, 136, .8);
  margin-bottom: clamp(8px, 1.6vh, 16px); animation: bob 3.5s ease-in-out infinite;
}
.lc-icon .ic { width: 46%; height: 46%; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.login-card h2 { margin: 0; font-size: clamp(1.35rem, 3vh, 1.75rem); font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.login-card > p { margin: 4px 0 clamp(10px, 2vh, 20px); color: var(--muted); font-size: .92rem; }
.pin-field { width: 100%; }
.pin-field input {
  width: 100%; padding: clamp(10px, 1.8vh, 15px); font-size: clamp(1.25rem, 2.8vh, 1.6rem); letter-spacing: .45em; text-align: center; font-weight: 800;
  color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pin-field input::placeholder { color: #c4cfdd; letter-spacing: .3em; }
.pin-field input:focus { outline: none; border-color: #14b8a6; box-shadow: 0 0 0 5px rgba(20, 184, 166, .16); }
.login-card.shake { animation: shake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.keypad { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(6px, 1.1vh, 10px); margin: clamp(10px, 1.8vh, 18px) 0; }
.keypad button {
  height: clamp(38px, 6.4vh, 56px); border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer;
  font-size: clamp(1.05rem, 2.4vh, 1.35rem); font-weight: 800; color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 2px 0 #e3eaf3;
  transition: transform .08s ease, background-color .15s ease, border-color .15s ease;
}
.keypad button:hover { border-color: #99f6e4; background: #f0fdfa; }
.keypad button:active, .keypad button.hit { transform: translateY(2px); box-shadow: none; background: #ccfbf1; }
.keypad .kp-fn { font-size: .85rem; color: var(--muted); }
.btn-login {
  position: relative; overflow: hidden; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: clamp(11px, 1.9vh, 16px); border: 0; border-radius: 16px; cursor: pointer;
  font-size: 1.05rem; font-weight: 800; color: #fff;
  background: linear-gradient(110deg, #0d9488, #0b4f8a); box-shadow: 0 16px 34px -14px rgba(11, 79, 138, .8);
}
.btn-login::after, .act::after, .btn-save::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn-login:hover::after, .act:hover::after, .btn-save:hover::after { left: 130%; }
.btn-login:disabled { opacity: .6; cursor: wait; }
.btn-login .ic { transition: transform .25s ease; }
.btn-login:hover .ic { transform: translateX(4px); }
.login-back { margin-top: clamp(8px, 1.6vh, 16px); display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.login-back:hover { color: var(--ink); }

/* ---------- Login petugas: pilihan peran ---------- */
.lg-card { width: min(420px, 100%); }
.role-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; padding: 4px; border-radius: 14px; background: #e8eef5; margin-bottom: clamp(10px, 1.8vh, 16px); }
.role-seg button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: clamp(9px, 1.6vh, 12px) 8px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font-size: .92rem; font-weight: 800; color: var(--muted); transition: color .25s ease;
}
.role-seg button[aria-selected="true"] { color: #0f766e; }
.role-seg button:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 1px; }
.role-ink { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: #fff; box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .35); transition: transform .4s cubic-bezier(.2, .9, .3, 1.1); }
.op-login[data-role="poli"] .role-ink { transform: translateX(100%); }
.lg-pane { display: none; width: 100%; }
.op-login[data-role="operator"] .lg-pane[data-pane="operator"],
.op-login[data-role="poli"] .lg-pane[data-pane="poli"] { display: block; animation: view-in .35s cubic-bezier(.2, .8, .2, 1); }
.lg-field { width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; margin-bottom: clamp(9px, 1.6vh, 13px); }
.lg-field > span:first-child, .lg-label { font-size: .84rem; font-weight: 700; color: var(--ink); text-align: left; display: block; margin-bottom: 6px; }
.lg-field > span:first-child { margin-bottom: 0; }
.lg-field input {
  width: 100%; padding: clamp(10px, 1.7vh, 13px) 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff;
  font-size: 1rem; font-weight: 600; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.lg-field input:focus { outline: none; border-color: #14b8a6; box-shadow: 0 0 0 5px rgba(20, 184, 166, .15); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.pw-eye:hover, .pw-eye.on { color: #0f766e; background: #f0fdfa; }
.poli-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: clamp(9px, 1.6vh, 13px); max-height: 32vh; overflow-y: auto; padding: 2px; }
.poli-pick label { cursor: pointer; min-width: 0; }
.poli-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.poli-pick span { display: flex; align-items: center; gap: 8px; padding: clamp(8px, 1.4vh, 11px) 10px; border: 2px solid var(--line); border-radius: 12px; background: #fff; text-align: left; transition: border-color .2s ease, background-color .2s ease; }
.poli-pick b { flex: none; padding: 3px 7px; border-radius: 8px; font-size: .74rem; font-weight: 800; color: #fff; background: #0d9488; }
.poli-pick em { font-style: normal; font-weight: 700; font-size: .84rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.poli-pick input:checked + span { border-color: #14b8a6; background: #f0fdfa; box-shadow: 0 0 0 3px rgba(20, 184, 166, .15); }
.poli-pick input:focus-visible + span { outline: 3px solid var(--amber-400); }
.lg-alert { width: 100%; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; text-align: left; font-size: .86rem; font-weight: 600; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; animation: shake .45s cubic-bezier(.36, .07, .19, .97); }
.lg-hint { margin: -4px 0 12px !important; width: 100%; text-align: left; font-size: .78rem !important; color: var(--muted); }
.lg-out { margin-top: 12px; }
.lg-out button { border: 0; background: none; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 600; color: var(--muted); }
.lg-out button:hover { color: #dc2626; }

/* =====================================================================
 *  DASHBOARD
 * ===================================================================== */
.op-app {
  --dw: clamp(620px, 48vw, 880px);
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0px;
  transition: grid-template-columns .45s cubic-bezier(.2, .8, .2, 1);
}
.op-dash.dw-open .op-app { grid-template-columns: minmax(0, 1fr) var(--dw); }

/* ---------- Kiri ---------- */
.op-left {
  position: relative; isolation: isolate; overflow: hidden; min-height: 0;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: clamp(8px, 1.6vh, 16px);
  padding: clamp(10px, 2vh, 22px) clamp(12px, 1.8vw, 26px);
  color: #e6f1ff;
  background: linear-gradient(155deg, #071d3a 0%, #0b2d57 55%, #0a3b4f 100%);
}
.op-left > :not(.fx) { position: relative; z-index: 1; }
/* Baris eksplisit: bagian yang disembunyikan tidak menggeser kartu ke baris lain */
.ol-top { grid-row: 1; }
.ol-summary { grid-row: 2; }
.ol-cards { grid-row: 3; }
.ol-foot { grid-row: 4; }
.ol-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.ol-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: #fff; text-decoration: none; }
.ol-brand img { height: clamp(32px, 4.8vh, 46px); width: auto; flex: none; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35)); }
.ol-brand > span { min-width: 0; }
.ol-brand strong { display: block; font-size: clamp(.95rem, 2vh, 1.15rem); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-brand small { display: block; font-size: clamp(.7rem, 1.4vh, .8rem); color: rgba(230, 241, 255, .65); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-top-right { display: flex; align-items: center; gap: 12px; flex: none; }
.ol-clock { text-align: right; line-height: 1.1; }
.ol-clock span { font-size: clamp(1.1rem, 2.7vh, 1.55rem); font-weight: 800; letter-spacing: .02em; }
.ol-clock small { display: block; font-size: clamp(.68rem, 1.35vh, .78rem); color: rgba(230, 241, 255, .65); font-weight: 600; }
.op-left .conn { font-size: .78rem; color: rgba(230, 241, 255, .85); padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; }

.ol-summary {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 16px; overflow: hidden;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(14px);
}
.sum { padding: clamp(7px, 1.3vh, 12px) clamp(10px, 1.2vw, 16px); min-width: 0; }
.sum + .sum { border-left: 1px solid rgba(255, 255, 255, .08); }
.sum span { display: block; font-size: clamp(.64rem, 1.25vh, .74rem); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(230, 241, 255, .58); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum b { display: block; font-size: clamp(1.1rem, 2.8vh, 1.55rem); font-weight: 800; color: #fff; line-height: 1.15; }
.sum b.tick { animation: tick .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes tick { 0% { transform: translateY(40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.sum-last b { color: #5eead4; }

.ol-cards { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }

/* Kartu loket */
.op-card {
  position: relative; isolation: isolate; min-height: 0; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; gap: clamp(6px, 1.2vh, 12px);
  padding: clamp(10px, 1.8vh, 18px) clamp(11px, 1.2vw, 18px);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .025));
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px) saturate(140%);
}
/* Bingkai gradasi berputar (lebih terang saat memanggil) */
.oc-border {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ang), rgba(var(--c), .15), rgba(var(--c), .9), rgba(255, 255, 255, .25), rgba(var(--c), .15) 40%, rgba(var(--c), .15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 7s linear infinite; opacity: .55; transition: opacity .3s ease;
}
@keyframes spin { to { --ang: 360deg; } }
.op-card.calling .oc-border, .op-card.flash .oc-border { opacity: 1; animation-duration: 1.6s; }
.op-card.calling { box-shadow: 0 0 0 1px rgba(var(--c), .4), 0 30px 80px -30px rgba(var(--c), .65); }
.op-card::before { /* cahaya warna loket di pojok */
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -25%; top: -35%; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c), .35), transparent 65%); filter: blur(10px);
  animation: glow-pulse 6s ease-in-out infinite;
}
@keyframes glow-pulse { 50% { transform: scale(1.15); opacity: .7; } }

.oc-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.oc-letter {
  flex: none; width: clamp(34px, 5vh, 46px); height: clamp(34px, 5vh, 46px); border-radius: 14px;
  display: grid; place-items: center; font-size: clamp(1.1rem, 2.6vh, 1.5rem); font-weight: 800; color: #04203a;
  background: linear-gradient(135deg, rgb(var(--c)), rgba(var(--c), .6));
  box-shadow: 0 10px 24px -8px rgba(var(--c), .9), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.oc-title { min-width: 0; flex: 1; }
.oc-title h2 { margin: 0; font-size: clamp(1rem, 2.3vh, 1.25rem); font-weight: 800; color: #fff; }
.oc-title p { margin: 0; font-size: clamp(.72rem, 1.45vh, .84rem); color: rgba(230, 241, 255, .62); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-live {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: rgb(var(--c)); background: rgba(var(--c), .14); border: 1px solid rgba(var(--c), .35);
  opacity: 0; transform: scale(.85); transition: opacity .25s ease, transform .25s ease;
}
.oc-live i { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--c)); animation: ping-c 1.2s ease-out infinite; }
@keyframes ping-c { 0% { box-shadow: 0 0 0 0 rgba(var(--c), .8); } 100% { box-shadow: 0 0 0 9px rgba(var(--c), 0); } }
.op-card.calling .oc-live { opacity: 1; transform: none; }

.oc-now {
  position: relative; flex: 1; min-height: 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: clamp(6px, 1.2vh, 12px) clamp(10px, 1vw, 14px);
  border-radius: 18px; background: rgba(2, 12, 28, .35); border: 1px solid rgba(255, 255, 255, .06);
  container-type: size;
}
.oc-num { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.oc-label { font-size: clamp(.64rem, 1.3vh, .74rem); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(230, 241, 255, .55); white-space: nowrap; }
.op-number {
  display: block; font-weight: 800; line-height: 1; letter-spacing: -.03em; white-space: nowrap; color: #fff;
  font-size: clamp(2rem, min(19cqw, 62cqh), 6.2rem);
  text-shadow: 0 0 30px rgba(var(--c), .45);
}
.op-number.empty { color: rgba(230, 241, 255, .22); text-shadow: none; }
.op-number.flip { animation: flip .65s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes flip {
  0%   { transform: perspective(400px) rotateX(-80deg) translateY(10%); opacity: 0; filter: blur(4px); color: rgb(var(--c)); }
  100% { transform: none; opacity: 1; filter: none; }
}
/* Gelombang di belakang nomor saat memanggil */
.oc-ripples { position: absolute; left: 28%; top: 55%; width: 0; height: 0; z-index: 0; }
.oc-ripples i {
  position: absolute; left: 50%; top: 50%; width: min(70cqw, 140cqh); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(var(--c), .6); transform: translate(-50%, -50%) scale(0); opacity: 0;
}
.op-card.calling .oc-ripples i { animation: ripple 2.4s ease-out infinite; }
.op-card.calling .oc-ripples i:nth-child(2) { animation-delay: .8s; }
.op-card.calling .oc-ripples i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ripple { 0% { transform: translate(-50%, -50%) scale(.1); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* Cincin progres */
.oc-ring { position: relative; z-index: 1; height: min(84cqh, 30cqw, 128px); aspect-ratio: 1; }
.oc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.oc-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring-bg { stroke: rgba(255, 255, 255, .08); }
.ring-fg {
  stroke: rgb(var(--c)); stroke-dasharray: 326.73; stroke-dashoffset: 326.73;
  filter: drop-shadow(0 0 6px rgba(var(--c), .8)); transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1);
}
.ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring-txt b { font-size: clamp(.95rem, 13cqh, 1.6rem); font-weight: 800; color: #fff; }
.ring-txt small { font-size: clamp(.5rem, 6cqh, .66rem); color: rgba(230, 241, 255, .55); font-weight: 700; margin-top: 2px; }
@container (max-height: 90px) { .oc-ring { display: none; } }
@container (max-width: 260px) { .oc-ring { display: none; } }

.oc-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.oc-stats div { min-width: 0; padding: clamp(6px, 1.1vh, 10px) 10px; border-radius: 13px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.oc-stats dt { font-size: clamp(.6rem, 1.2vh, .7rem); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(230, 241, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-stats dd { margin: 1px 0 0; font-size: clamp(1rem, 2.5vh, 1.4rem); font-weight: 800; color: #fff; line-height: 1.15; white-space: nowrap; }

/* Antrean menunggu (titik) */
.oc-queue { display: flex; align-items: center; gap: 5px; min-height: 10px; overflow: hidden; }
.oc-queue i { width: 10px; height: 10px; border-radius: 3px; flex: none; background: rgba(var(--c), .75); box-shadow: 0 0 8px rgba(var(--c), .6); animation: dot-in .4s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--k) * 35ms); }
.oc-queue i:first-child { background: rgb(var(--c)); animation: dot-in .4s cubic-bezier(.2, 1.5, .4, 1) both, dot-pulse 1.6s ease-in-out .4s infinite; }
.oc-queue span { font-size: .72rem; font-weight: 700; color: rgba(230, 241, 255, .6); margin-left: 3px; white-space: nowrap; }
.oc-queue .q-empty { margin: 0; color: rgba(230, 241, 255, .38); }
@keyframes dot-in { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes dot-pulse { 50% { transform: scale(1.3); } }

/* Tombol aksi */
.oc-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.act {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: clamp(8px, 1.5vh, 13px) 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12);
  font-size: clamp(.8rem, 1.6vh, .92rem); font-weight: 800; cursor: pointer; white-space: nowrap; min-width: 0;
  color: #e6f1ff; background: rgba(255, 255, 255, .07);
  transition: transform .1s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.act span { overflow: hidden; text-overflow: ellipsis; }
.act:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }
.act:active { transform: scale(.98); }
.act:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 2px; }
.act:disabled { opacity: .4; cursor: not-allowed; }
.act kbd { background: rgba(255, 255, 255, .16); color: inherit; border-color: rgba(255, 255, 255, .25); font-size: .72em; min-width: 1.6em; }
.act-next {
  grid-column: 1 / -1; padding: clamp(10px, 2vh, 16px) 14px; font-size: clamp(.9rem, 1.9vh, 1.05rem);
  color: #04203a; border: 0;
  background: linear-gradient(110deg, rgb(var(--c)), rgba(var(--c), .7));
  box-shadow: 0 16px 36px -14px rgba(var(--c), .9), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.act-next:hover { background: linear-gradient(110deg, rgb(var(--c)), rgba(var(--c), .85)); border: 0; box-shadow: 0 20px 40px -12px rgba(var(--c), 1); }
.act-next kbd { background: rgba(4, 32, 58, .14); border-color: rgba(4, 32, 58, .3); }
.act-next .ic { width: 1.3em; height: 1.3em; }
.act-reset { color: #fecaca; }
.act-reset:hover { background: rgba(239, 68, 68, .18); border-color: rgba(248, 113, 113, .45); }

.ol-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font-size: .8rem; color: rgba(230, 241, 255, .65); }
.ol-keys { display: flex; gap: 14px; flex-wrap: wrap; }
.ol-keys kbd { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); font-size: .74em; }
.op-sound-note { flex-basis: 100%; text-align: right; font-size: .78rem; font-weight: 600; color: var(--amber-400); }

/* Saklar */
.sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; user-select: none; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-ui { position: relative; width: 40px; height: 23px; flex: none; border-radius: 999px; background: #cbd5e1; transition: background-color .2s ease; }
.sw-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.sw input:checked + .sw-ui { background: #14b8a6; }
.sw input:checked + .sw-ui::after { transform: translateX(17px); }
.sw input:focus-visible + .sw-ui { outline: 3px solid var(--amber-400); outline-offset: 2px; }
.sw-dark .sw-ui { background: rgba(255, 255, 255, .2); }
.sw-dark { color: #e6f1ff; }

/* ---------- Tombol menu di bagian kiri ---------- */
.ol-menu {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: .84rem; font-weight: 800; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  transition: background-color .2s ease, border-color .2s ease;
}
.ol-menu:hover { background: rgba(255, 255, 255, .18); }
.ol-menu:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 2px; }
.ol-menu .ic { width: 18px; height: 18px; }
.ol-menu .ic-x { display: none; }
.dw-open .ol-menu { background: #14b8a6; border-color: #14b8a6; color: #04203a; }
.dw-open .ol-menu .ic-menu { display: none; }
.dw-open .ol-menu .ic-x { display: block; }

/* ---------- Navbar kanan (disembunyikan secara default) ---------- */
.op-drawer {
  position: relative; min-width: 0; min-height: 0; overflow: hidden;
  background: radial-gradient(500px 360px at 100% 0%, rgba(45, 212, 191, .12), transparent 60%),
              radial-gradient(500px 360px at 0% 100%, rgba(96, 165, 250, .1), transparent 60%), #f4f8fb;
  color: var(--ink); box-shadow: -18px 0 40px -30px rgba(0, 0, 0, .6);
}
.dw-inner { width: var(--dw); height: 100%; display: grid; grid-template-columns: 208px minmax(0, 1fr); }
.op-dash:not(.dw-open) .dw-inner { visibility: hidden; transition: visibility 0s .45s; }

.dw-nav { display: flex; flex-direction: column; min-height: 0; padding: 14px 10px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.dw-me { display: flex; align-items: center; gap: 10px; padding: 6px 6px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.dw-me-av { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #14b8a6, #0b4f8a); }
.dw-me b { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-me small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.dw-me > div { min-width: 0; }
.dw-group { margin-top: 10px; }
.dw-group > span { display: block; padding: 0 8px 5px; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.dw-item {
  position: relative; width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px 9px; border: 0; border-radius: 10px;
  background: none; cursor: pointer; text-align: left; font: inherit; font-size: .84rem; font-weight: 700; color: #475569;
  transition: background-color .15s ease, color .15s ease;
}
.dw-item .ic { width: 18px; height: 18px; flex: none; color: #94a3b8; transition: color .15s ease; }
.dw-item:hover { background: #f1f5f9; color: var(--ink); }
.dw-item.active { color: #0f766e; background: #ccfbf1; }
.dw-item.active .ic { color: #0d9488; }
.dw-item.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #0d9488; }
.dw-item:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 1px; }
.dw-item-out { margin-top: auto; color: #b91c1c; }
.dw-item-out .ic { color: #f87171; }
.dw-item-out:hover { background: #fef2f2; color: #b91c1c; }
.dw-spacer { flex: 1; min-height: 12px; }

.dw-main { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.dw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: clamp(10px, 1.8vh, 18px) clamp(14px, 1.6vw, 22px) 0; }
.dw-crumb { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #0d9488; }
.ibtn {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  color: var(--ink); background: #fff; border: 1px solid var(--line); cursor: pointer; text-decoration: none;
  transition: transform .15s ease, border-color .2s ease, color .2s ease;
}
.ibtn:hover { border-color: #99f6e4; color: #0f766e; }
.ibtn:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 2px; }
.or-body {
  position: relative; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(8px, 1.4vh, 14px) clamp(14px, 1.6vw, 22px) clamp(14px, 2vh, 22px);
  display: grid; grid-template-rows: minmax(100%, auto);
}
.dw-backdrop { display: none; }
.view, .view-form { min-height: 0; grid-area: 1 / 1; }
.view { display: none; flex-direction: column; gap: clamp(8px, 1.5vh, 14px); }
.view-form { display: none; flex-direction: column; gap: clamp(8px, 1.5vh, 14px); }
.view.active { display: flex; animation: view-in .4s cubic-bezier(.2, .8, .2, 1); }
.view-form.active { display: flex; }
.view-form .view.active { flex: 1; min-height: 0; }
@keyframes view-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.view-head h3 { margin: 0; font-size: clamp(1.05rem, 2.4vh, 1.3rem); font-weight: 800; letter-spacing: -.01em; }
.view-head p { margin: 2px 0 0; font-size: clamp(.76rem, 1.5vh, .86rem); color: var(--muted); }
.vh-badge { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #0f766e; background: #ccfbf1; }
.vh-badge i { width: 7px; height: 7px; border-radius: 50%; background: #14b8a6; animation: ping 1.8s ease-out infinite; }

/* Riwayat */
.op-history {
  list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: hidden;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: min-content; align-content: start; gap: 8px;
  mask-image: linear-gradient(to bottom, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
}
.op-history li {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: clamp(7px, 1.2vh, 10px) 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 6px 16px -12px rgba(15, 23, 42, .3);
  animation: li-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--k, 0) * 30ms);
}
@keyframes li-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.op-history li.fresh { animation: li-fresh .9s cubic-bezier(.2, 1.3, .4, 1) both; border-color: rgba(var(--c), .7); box-shadow: 0 0 0 3px rgba(var(--c), .2); }
@keyframes li-fresh { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.h-badge { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #04203a; background: linear-gradient(135deg, rgb(var(--c)), rgba(var(--c), .6)); }
.h-num { font-weight: 800; font-size: clamp(1rem, 2.1vh, 1.15rem); color: var(--ink); }
.h-meta { margin-left: auto; text-align: right; font-size: .76rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.h-tag { display: block; color: #b45309; font-weight: 800; }
.op-history li.empty { grid-column: 1 / -1; justify-content: center; color: var(--muted); padding: 30px 12px; border-style: dashed; background: transparent; box-shadow: none; }

/* Field form */
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld-grow { flex: 1; min-height: 0; }
.fld-label { display: flex; align-items: center; gap: 7px; font-size: clamp(.78rem, 1.55vh, .86rem); font-weight: 700; color: var(--ink); white-space: nowrap; }
.fld-label em { font-style: normal; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.fld-label .ic { color: #0d9488; }
.fld small { color: var(--muted); font-size: .74rem; }
.fld input[type="text"], .fld textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-size: .9rem; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.fld textarea { flex: 1; min-height: 48px; resize: none; line-height: 1.45; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: #14b8a6; box-shadow: 0 0 0 4px rgba(20, 184, 166, .14); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dot { width: 9px; height: 9px; border-radius: 3px; }
.dot-a { background: #14b8a6; }
.dot-b { background: #3b82f6; }

.seg { display: flex; padding: 3px; border-radius: 12px; background: #e8eef5; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; text-align: center; padding: clamp(6px, 1.2vh, 9px) 6px; border-radius: 9px; font-weight: 800; font-size: .86rem; color: var(--muted); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.seg input:checked + span { background: #fff; color: #0f766e; box-shadow: 0 3px 10px -4px rgba(15, 23, 42, .3); }
.seg input:focus-visible + span { outline: 2px solid var(--amber-400); }

.rng-list { display: grid; gap: clamp(6px, 1.3vh, 12px); padding: clamp(8px, 1.5vh, 14px); border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.rng { display: flex; flex-direction: column; gap: 6px; }
.rng output { margin-left: auto; font-weight: 800; color: #0f766e; font-variant-numeric: tabular-nums; }
.rng .fld-label em { margin-left: -4px; }
.rng input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, #14b8a6, #0ea5e9) 0 / var(--p) 100% no-repeat, #e2e8f0;
}
.rng input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #14b8a6;
  box-shadow: 0 3px 8px rgba(13, 148, 136, .4); transition: transform .15s ease;
}
.rng input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #14b8a6; }
.rng input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.rng input[type="range"]:focus-visible { outline: 2px solid var(--amber-400); outline-offset: 4px; }
.sw-list { display: grid; gap: clamp(6px, 1.2vh, 10px); font-size: .88rem; color: var(--ink); }

.btn-soft, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start;
  padding: clamp(8px, 1.4vh, 11px) 16px; border-radius: 12px; cursor: pointer; font-weight: 800; font-size: .88rem;
  color: #0f766e; background: #ccfbf1; border: 1px solid #99f6e4; transition: transform .1s ease, background-color .2s ease;
}
.btn-soft:hover { background: #99f6e4; }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-ghost:hover { background: #f1f5f9; }

.save-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: clamp(7px, 1.2vh, 10px) clamp(8px, 1vw, 10px) clamp(7px, 1.2vh, 10px) 14px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35);
}
.save-state { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--muted); min-width: 0; }
.save-state i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; }
.save-state span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-dirty { display: none; }
.form-dirty .ss-clean { display: none; }
.form-dirty .ss-dirty { display: inline; color: #b45309; }
.form-dirty .save-state i { background: #f59e0b; animation: ping-amber 1.4s ease-out infinite; }
@keyframes ping-amber { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .7); } 100% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } }
.btn-save {
  position: relative; overflow: hidden; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: clamp(8px, 1.5vh, 11px) 18px; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
  font-weight: 800; font-size: .9rem; color: #fff;
  background: linear-gradient(110deg, #0d9488, #0b4f8a); box-shadow: 0 10px 24px -12px rgba(11, 79, 138, .9);
  transition: transform .1s ease;
}
.btn-save:active { transform: scale(.98); }
.btn-save:disabled { opacity: .6; cursor: wait; }
.form-dirty .btn-save { animation: save-nudge 2s ease-in-out infinite; }
@keyframes save-nudge { 0%, 100% { box-shadow: 0 10px 24px -12px rgba(11, 79, 138, .9); } 50% { box-shadow: 0 0 0 5px rgba(20, 184, 166, .25), 0 10px 24px -12px rgba(11, 79, 138, .9); } }

/* Sistem */
.sys-card { display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 12px); padding: clamp(10px, 1.8vh, 16px); border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -22px rgba(15, 23, 42, .4); }
.sys-head { display: flex; align-items: center; gap: 12px; }
.sys-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #14b8a6, #0b4f8a); }
.sys-head h4 { margin: 0; font-size: .98rem; font-weight: 800; }
.sys-head p { margin: 1px 0 0; font-size: .8rem; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: clamp(4px, .9vh, 8px); }
.steps li { counter-increment: s; display: flex; gap: 10px; align-items: baseline; font-size: clamp(.78rem, 1.5vh, .86rem); color: #334155; line-height: 1.4; }
.steps li::before { content: counter(s); flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #0f766e; background: #ccfbf1; }
.sys-dl { align-self: flex-start; }
.sys-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sys-links a { padding: 7px 12px; border-radius: 10px; font-size: .82rem; font-weight: 800; color: #0369a1; background: #e0f2fe; text-decoration: none; }
.sys-links a:hover { background: #bae6fd; }
.sys-danger { border-color: #fecaca; background: linear-gradient(160deg, #fff, #fff5f5); }
.sys-danger .sys-ic { background: linear-gradient(135deg, #f87171, #dc2626); }
.btn-danger-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start;
  padding: clamp(8px, 1.5vh, 11px) 18px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 800; font-size: .9rem;
  color: #fff; background: linear-gradient(110deg, #ef4444, #b91c1c); box-shadow: 0 10px 24px -12px rgba(185, 28, 28, .9);
}
.btn-danger-solid:hover { filter: brightness(1.06); }

/* Dialog konfirmasi */
.cf-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(6, 26, 51, .55); backdrop-filter: blur(6px); animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } }
.cf-card { width: min(400px, 100%); padding: 26px; border-radius: 22px; background: #fff; color: var(--ink); text-align: center; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: pop .35s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.cf-ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; color: #dc2626; background: #fee2e2; }
.cf-ic .ic { width: 26px; height: 26px; }
.cf-card h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.cf-card p { margin: 6px 0 20px; color: var(--muted); line-height: 1.5; }
.cf-actions { display: flex; gap: 10px; justify-content: center; }
.cf-actions button { align-self: auto; }

/* ---------- Komponen tampilan manajemen (navbar kanan) ---------- */
.vh-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn-mini {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.btn-mini .ic { width: 15px; height: 15px; }
.btn-mini:hover { border-color: #5eead4; color: #0f766e; }
.btn-mini.primary { color: #fff; border-color: transparent; background: linear-gradient(110deg, #0d9488, #0b4f8a); }
.btn-mini.primary:hover { color: #fff; filter: brightness(1.08); }
.btn-mini.danger:hover { border-color: #fca5a5; color: #dc2626; }
.btn-mini:disabled { opacity: .5; cursor: not-allowed; }

.dt-wrap { border-radius: 14px; border: 1px solid var(--line); background: #fff; overflow: auto; }
.dt { width: 100%; border-collapse: collapse; font-size: .82rem; }
.dt th { position: sticky; top: 0; z-index: 1; padding: 9px 10px; text-align: left; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dt td { padding: 8px 10px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
.dt tr:last-child td { border-bottom: 0; }
.dt tr.off td { opacity: .55; }
.dt b { font-weight: 800; }
.dt small { display: block; color: var(--muted); font-size: .72rem; }
.dt .t-r { text-align: right; white-space: nowrap; }
.dt .t-c { text-align: center; }
.dt-empty { padding: 26px !important; text-align: center; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.tag-teal { color: #0f766e; background: #ccfbf1; }
.tag-blue { color: #1d4ed8; background: #dbeafe; }
.tag-gray { color: #475569; background: #eef2f6; }
.tag-red { color: #b91c1c; background: #fee2e2; }
.tag-amber { color: #92400e; background: #fef3c7; }
.kode { display: inline-block; padding: 3px 7px; border-radius: 8px; font-size: .74rem; font-weight: 800; color: #fff; background: #0d9488; }

.filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-row .seg { flex: none; }
.filter-row .seg span { padding: 6px 12px; font-size: .78rem; }
.search-box { flex: 1; min-width: 160px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 9px 0; background: none; font: inherit; font-size: .86rem; color: var(--ink); }
.search-box:focus-within { border-color: #14b8a6; }

.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; align-content: start; }
.ov-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px -18px rgba(15, 23, 42, .5); }
.ov-card.off { opacity: .6; }
.ov-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ov-top div { min-width: 0; }
.ov-top b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-top small { display: block; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-now { padding: 8px; border-radius: 12px; text-align: center; background: #f0fdfa; }
.ov-now span { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ov-now strong { font-size: 1.6rem; font-weight: 800; color: #0f766e; line-height: 1.1; }
.ov-now strong.empty { color: #cbd5e1; }
.ov-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: .66rem; font-weight: 700; color: var(--muted); }
.ov-stats b { display: block; font-size: 1rem; color: var(--ink); }
.ov-card .btn-mini { justify-content: center; }
.ov-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ov-sum div { padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ov-sum span { display: block; font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ov-sum b { font-size: 1.3rem; font-weight: 800; }

.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.dev-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.dev-card:hover { border-color: #5eead4; transform: translateY(-2px); }
.dev-card .ic { width: 26px; height: 26px; color: #0d9488; }
.dev-card b { font-size: .88rem; }
.dev-card small { font-size: .74rem; color: var(--muted); line-height: 1.4; }
.reset-row { display: flex; gap: 8px; flex-wrap: wrap; }

.acc-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.acc-card .dw-me-av { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 14px; }
.acc-card b { display: block; font-size: 1rem; }
.acc-card small { display: block; font-size: .78rem; color: var(--muted); }
.form-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.form-card h4 { margin: 0; font-size: .95rem; }
.fld input[type="password"], .fld input[type="number"], .fld input[type="time"], .fld select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: .9rem; color: var(--ink);
}
.fld input:focus, .fld select:focus { outline: none; border-color: #14b8a6; box-shadow: 0 0 0 4px rgba(20, 184, 166, .14); }
.fld-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.f-msg { font-size: .8rem; font-weight: 600; color: #b91c1c; min-height: 1em; }

/* Modal formulir */
.fm-overlay { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 16px; background: rgba(6, 26, 51, .55); backdrop-filter: blur(6px); animation: fade .2s ease-out; }
.fm-overlay[hidden] { display: none; }
.fm-card { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: pop .3s cubic-bezier(.2, 1.3, .4, 1); }
.fm-card h3 { margin: 0; font-size: 1.1rem; }
.fm-card > p { margin: -6px 0 0; font-size: .82rem; color: var(--muted); }
.fm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ---------- Layar desktop pendek ---------- */
@media (min-width: 961px) and (max-height: 720px) {
  .oc-queue { display: none; }
}
@media (min-width: 961px) and (max-height: 620px) {
  .ol-summary, .ol-keys { display: none; }
  .oc-stats dt { font-size: .58rem; }
}

/* ---------- Layar sedang: navbar kanan melayang di atas area panggilan ---------- */
@media (max-width: 1180px) {
  .op-app, .op-dash.dw-open .op-app { grid-template-columns: minmax(0, 1fr); }
  .op-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(100vw, 760px);
    transform: translateX(100%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  }
  .dw-open .op-drawer { transform: none; }
  .dw-inner { width: 100%; }
  .dw-backdrop { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(6, 26, 51, .5); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .dw-open .dw-backdrop { opacity: 1; pointer-events: auto; }
}

/* ---------- Tablet & ponsel ---------- */
@media (max-width: 960px) {
  .ol-cards { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .op-card { flex-direction: column; }
  .oc-actions { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; }
  .act-next { grid-column: auto; }
  .ol-foot .ol-keys { display: none; }
  .op-sound-note { text-align: left; }
}
@media (max-width: 700px) {
  .op-drawer { width: 100vw; }
  .dw-inner { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .dw-nav { flex-direction: row; align-items: center; gap: 4px; padding: 8px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); }
  .dw-me, .dw-group > span, .dw-spacer { display: none; }
  .dw-group { display: contents; }
  .dw-item { width: auto; flex: none; padding: 8px 11px; white-space: nowrap; }
  .dw-item.active::before { display: none; }
  .dw-item-out { margin-top: 0; }
  .ov-sum { grid-template-columns: repeat(2, 1fr); }
  .fld-row3 { grid-template-columns: 1fr 1fr; }
  .ol-menu span { display: none; }
}
@media (max-width: 960px) and (max-height: 760px) {
  .ol-summary { display: none; }
}
@media (max-width: 960px) and (max-height: 900px) {
  .oc-queue { display: none; }
}
@media (max-width: 960px) and (max-height: 640px) {
  .oc-stats { display: none; }
}
@media (max-width: 560px) {
  .ol-clock small { display: none; }
  .ol-summary { display: none; }
  .op-card { gap: 7px; padding: 10px 11px; }
  .oc-head { gap: 8px; }
  .oc-live { display: none; }
  .oc-stats { gap: 6px; }
  .oc-stats div { padding: 4px 8px; }
  .oc-actions { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
  .act-recall, .act-reset { padding-left: 13px; padding-right: 13px; }
  .act-recall span, .act-reset span, .act-recall kbd { display: none; }
  .fld-row { grid-template-columns: 1fr; }
  .op-history { grid-template-columns: 1fr; }
  .h-meta { font-size: .72rem; }
}
@media (max-width: 420px) {
  .ol-clock { display: none; }
}
@media (max-width: 560px) and (min-height: 900px) {
  .ol-summary { display: grid; grid-template-columns: repeat(2, 1fr); }
  .sum:nth-child(3) { border-left: 0; }
  .sum:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 860px) {
  .login-split { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .ls-brand-inner { padding: 14px 18px; }
  .ls-copy, .ls-addr { display: none; }
  .ls-brand .fx-grid, .ls-brand .fx-ecg { display: none; }
}
@media (max-width: 860px) and (max-height: 620px) {
  .keypad { display: none; }
}
@media (min-width: 861px) and (max-height: 640px) {
  .ls-addr, .ls-feats li:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fx { display: none; }
  .rise { animation: none; }
}
