/* KASKOW Lab — Produktivitas & Keamanan (lab-time.js): waktu, zona waktu, acak, catatan, password. */

/* ================================================== bersama */
.lab-btn.danger, .lab-btn.danger:hover:not(:disabled) { background: #dc2626 !important; border-color: #dc2626 !important; color: #fff !important; }
html.ltm-fs-on, html.ltm-fs-on body { overflow: hidden !important; }
html.ltm-fs-on .kh-root, html.ltm-fs-on .toast, html.ltm-fs-on [class*="cookie"] { visibility: hidden !important; }
.ltm-fs { z-index: 2147483600 !important; }
.ltm-fs { position: fixed !important; inset: 0 !important; z-index: 2147483000 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; margin: 0 !important; border-radius: 0 !important; border: 0 !important; }
.ltm-stage:fullscreen, .lrg-stage:fullscreen { width: 100vw; height: 100vh; border-radius: 0; border: 0; }
.ltm-stage::backdrop, .lrg-stage::backdrop { background: var(--card-solid, #fff); }

/* ================================================== stopwatch, timer, pomodoro */
.ltm-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ltm-grid.solo { grid-template-columns: minmax(0, 1fr); }
.ltm-stage {
  --ring1: var(--lab-acc2); --ring2: var(--lab-acc);
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 14px 18px 24px; border-radius: 24px; border: 1px solid var(--lab-line); overflow: hidden;
  background:
    radial-gradient(32rem 22rem at 50% 42%, color-mix(in srgb, var(--ring1) 13%, transparent), transparent 70%),
    color-mix(in srgb, var(--text) 1.5%, var(--lab-card));
}
.ltm-stage[data-phase="short"] { --ring1: #38bdf8; --ring2: #0284c7; }
.ltm-stage[data-phase="long"] { --ring1: #a78bfa; --ring2: #7c3aed; }
.ltm-stage.done { --ring1: #fb923c; --ring2: #e11d48; }
.ltm-top { align-self: stretch; display: flex; align-items: center; gap: 8px; min-height: 38px; }
.ltm-top .grow { flex: 1; }
.ltm-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 99px; background: color-mix(in srgb, var(--ring2) 12%, transparent); color: var(--ring2); font-size: .78rem; font-weight: 800; }
[data-theme="dark"] .ltm-chip { color: color-mix(in srgb, var(--ring1) 80%, #fff); }
.ltm-face { position: relative; width: min(100%, 410px); aspect-ratio: 1; container-type: inline-size; transition: width .3s; }
.ltm-ring { display: block; width: 100%; height: 100%; overflow: visible; }
.ltm-ring .ticks line { stroke: color-mix(in srgb, var(--text) 16%, transparent); stroke-width: .32; stroke-linecap: round; }
.ltm-ring .ticks line.big { stroke: color-mix(in srgb, var(--text) 34%, transparent); stroke-width: .6; }
.ltm-ring .trk { fill: none; stroke: color-mix(in srgb, var(--text) 7%, transparent); stroke-width: 4.4; }
.ltm-ring .bar { fill: none; stroke: url(#ltmGrad); stroke-width: 4.4; stroke-linecap: round; filter: drop-shadow(0 0 2px color-mix(in srgb, var(--ring2) 50%, transparent)); }
.ltm-ring .s1 { stop-color: var(--ring1); }
.ltm-ring .s2 { stop-color: var(--ring2); }
.ltm-ring .tip { fill: #fff; stroke: var(--ring2); stroke-width: 1.1; }
.ltm-ring .tipglow { fill: color-mix(in srgb, var(--ring2) 28%, transparent); }
.ltm-stage.run .tipglow { animation: ltmGlow 1.6s ease-in-out infinite; }
@keyframes ltmGlow { 50% { opacity: .2; } }
.ltm-read { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2cqw; text-align: center; pointer-events: none; }
.ltm-read small { max-width: 64%; min-height: 1.3em; font-size: max(.74rem, 3.5cqw); font-weight: 700; color: var(--muted); line-height: 1.3; }
.ltm-read small[data-top] { font-size: max(.66rem, 2.9cqw); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ring2); }
[data-theme="dark"] .ltm-read small[data-top] { color: color-mix(in srgb, var(--ring1) 85%, #fff); }
.ltm-dig { display: flex; align-items: baseline; justify-content: center; font-weight: 800; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; color: var(--text); }
.ltm-dig span { font-size: 18.5cqw; }
.ltm-dig.long span { font-size: 14cqw; }
.ltm-dig em { margin-left: .6cqw; font-style: normal; font-size: 7.4cqw; font-weight: 700; letter-spacing: -.01em; color: var(--muted); }
.ltm-dig em:empty { display: none; }
.ltm-stage.done .ltm-dig { color: #e11d48; }
.ltm-stage.done .ltm-face { animation: ltmDone 1s ease-in-out 3; }
@keyframes ltmDone { 50% { transform: scale(1.035); } }
.ltm-stage.flash::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--ring2), inset 0 0 60px color-mix(in srgb, var(--ring2) 25%, transparent); pointer-events: none; animation: ltmFlash 1.6s ease-out forwards; }
@keyframes ltmFlash { to { opacity: 0; } }
.ltm-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.ltm-main { min-width: 180px; height: 60px !important; border-radius: 20px !important; font-size: 1.06rem !important; }
.ltm-main svg { width: 19px; height: 19px; }
.ltm-main.on { background: linear-gradient(135deg, #fbbf24, #ea580c) !important; box-shadow: 0 14px 26px -14px #ea580c !important; }
.ltm-sec { height: 48px !important; padding: 0 17px !important; border-radius: 16px !important; }
.ltm-dots { display: flex; align-items: center; gap: 8px; margin-top: -4px; }
.ltm-dots i { width: 12px; height: 12px; border-radius: 50%; background: color-mix(in srgb, var(--text) 13%, transparent); transition: background .3s, box-shadow .3s; }
.ltm-dots i.fin { background: linear-gradient(135deg, var(--lab-acc2), var(--lab-acc)); }
.ltm-dots i.cur { background: var(--ring2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ring2) 22%, transparent); }
.ltm-dots span { margin-left: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.ltm-date { display: flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 99px; background: color-mix(in srgb, var(--text) 5%, transparent); font-size: .95rem; font-weight: 700; }
.ltm-date svg { color: var(--lab-acc); }
.ltm-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ltm-hms { display: flex; align-items: flex-start; justify-content: center; gap: 8px; }
.ltm-hms > b { padding-top: 12px; font-size: 2rem; font-weight: 800; color: color-mix(in srgb, var(--text) 30%, transparent); }
.ltm-nbox { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.ltm-nbox input { width: 100%; height: 72px; border-radius: 18px; border: 1px solid var(--lab-line); background: color-mix(in srgb, var(--text) 3%, var(--lab-card)); color: var(--text); font-family: inherit; font-size: 2.2rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; outline: 0; -moz-appearance: textfield; appearance: textfield; transition: border-color .15s, box-shadow .15s; }
.ltm-nbox input::-webkit-inner-spin-button, .ltm-nbox input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ltm-nbox input:focus { border-color: var(--lab-acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lab-acc) 15%, transparent); }
.ltm-nbox input:disabled { opacity: .55; }
.ltm-nbox span { font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ltm-presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.ltm-pre { height: 40px; padding: 0 4px; border-radius: 12px; border: 1px solid var(--lab-line); background: var(--lab-card); color: var(--text); font-size: .8rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: border-color .15s, color .15s, background .15s, transform .15s; }
.ltm-pre:hover:not(:disabled) { border-color: var(--lab-acc); background: var(--lab-soft); color: var(--lab-acc); transform: translateY(-1px); }
.ltm-pre:disabled { opacity: .45; cursor: default; }
.ltm-opts { display: flex; flex-direction: column; gap: 13px; }
.ltm-opts h3, .ltm-laps h3 { margin-bottom: 2px !important; }
.ltm-opts .lab-note { margin: 2px 0 0; }
.ltm-unit { position: relative; }
.ltm-unit input { width: 100%; padding-right: 70px; font-size: 1rem; font-weight: 700; }
.ltm-unit span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: .78rem; font-weight: 600; color: var(--muted); pointer-events: none; }
.ltm-laps h3 .lab-chip { margin-left: 2px; }
.ltm-lapwrap { max-height: 430px; overflow: auto; margin: 0 -6px; }
.ltm-laptab td { padding: 9px 8px; }
.ltm-laptab td:first-child { width: 36px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.ltm-laptab td b { margin-right: 8px; font-variant-numeric: tabular-nums; }
.ltm-laptab th.r { text-align: right; }
.ltm-laptab tr.best td b { color: #16a34a; }
.ltm-laptab tr.worst td b { color: #dc2626; }
.ltm-empty { min-height: 200px; }
.ltm-empty span { max-width: 300px; line-height: 1.55; }
.ltm-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .78rem; color: var(--muted); }
.ltm-keys > svg { width: 15px; height: 15px; color: var(--lab-acc); }
.ltm-keys .lab-kbd { margin-right: 3px; }
/* layar penuh */
.ltm-stage:fullscreen, .ltm-stage.ltm-fs { justify-content: center; gap: 3vh; padding: 3vh 4vw; background: radial-gradient(70rem 46rem at 50% 45%, color-mix(in srgb, var(--ring1) 15%, transparent), transparent 70%), var(--lab-card); }
.ltm-stage:fullscreen .ltm-top, .ltm-stage.ltm-fs .ltm-top { position: absolute; top: 16px; left: 20px; right: 20px; }
.ltm-stage:fullscreen .ltm-face, .ltm-stage.ltm-fs .ltm-face { width: min(74vh, 92vw); }

/* ================================================== zona waktu */
.ltz-ctrl { display: flex; flex-direction: column; gap: 16px; }
.ltz-ctrlrow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr) auto; gap: 12px; align-items: end; }
.ltz-ctrlrow .lab-in { width: 100%; }
.ltz-tin { font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ltz-now .lab-btn { height: 40px; }
.ltz-now .lab-btn.live { border-color: rgba(22,163,74,.35); background: rgba(22,163,74,.08); color: #15803d; }
.ltz-now .lab-btn.live svg { animation: ltmGlow 2s ease-in-out infinite; }
[data-theme="dark"] .ltz-now .lab-btn.live { color: #4ade80; }
.ltz-slide { padding: 14px 18px 10px; border-radius: 18px; background: color-mix(in srgb, var(--lab-acc) 6%, transparent); border: 1px solid color-mix(in srgb, var(--lab-acc) 14%, transparent); }
.ltz-slidehead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; font-size: .86rem; }
.ltz-slidehead > b { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ltz-slidehead span b { color: var(--lab-acc); font-variant-numeric: tabular-nums; }
[data-theme="dark"] .ltz-slidehead span b { color: var(--lab-acc2); }
.ltz-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 12px; margin: 0; border-radius: 99px; outline: 0; cursor: pointer; background: linear-gradient(90deg, var(--lab-acc2), var(--lab-acc)) 0 0 / var(--p, 0%) 100% no-repeat, color-mix(in srgb, var(--text) 10%, transparent); }
.ltz-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; border: 4px solid var(--lab-acc); background: #fff; box-shadow: 0 6px 14px -4px rgba(15,23,42,.45); cursor: grab; transition: transform .15s; }
.ltz-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: 4px solid var(--lab-acc); background: #fff; box-shadow: 0 6px 14px -4px rgba(15,23,42,.45); cursor: grab; }
.ltz-range:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
.ltz-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px color-mix(in srgb, var(--lab-acc) 25%, transparent); }
.ltz-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: .7rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ltz-bestbox { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--lab-line); font-size: .87rem; line-height: 1.5; }
.ltz-bestbox svg { margin-top: 1px; color: var(--muted); }
.ltz-bestbox.ok { border-color: rgba(22,163,74,.3); background: rgba(22,163,74,.07); }
.ltz-bestbox.ok svg, .ltz-bestbox.ok b { color: #15803d; }
.ltz-bestbox.warn { border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.08); }
.ltz-bestbox.warn svg { color: #d97706; }
[data-theme="dark"] .ltz-bestbox.ok svg, [data-theme="dark"] .ltz-bestbox.ok b { color: #4ade80; }
.ltz-plan { padding: 8px 8px 12px; }
.ltz-head, .ltz-row { display: grid; grid-template-columns: minmax(0, 220px) 124px minmax(0, 1fr) 72px; gap: 14px; align-items: center; padding: 10px; }
.ltz-head { padding-bottom: 2px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ltz-row { border-radius: 16px; transition: background .15s; }
.ltz-row + .ltz-row { box-shadow: 0 -1px 0 color-mix(in srgb, var(--text) 6%, transparent); }
.ltz-row:hover { background: color-mix(in srgb, var(--text) 2.5%, transparent); }
.ltz-row.base { background: color-mix(in srgb, var(--lab-acc) 7%, transparent); box-shadow: none; }
.ltz-row.base + .ltz-row { box-shadow: none; }
.ltz-city { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ltz-city > div { min-width: 0; }
.ltz-city b { display: flex; align-items: center; gap: 7px; font-size: .93rem; font-weight: 800; white-space: nowrap; overflow: hidden; }
.ltz-city b .lab-chip { padding: 2px 8px; font-size: .64rem; }
.ltz-city small { display: block; margin-top: 2px; font-size: .73rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltz-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; }
.ltz-ico.work { background: rgba(22,163,74,.13); color: #16a34a; }
.ltz-ico.day { background: rgba(245,158,11,.14); color: #d97706; }
.ltz-ico.night { background: rgba(79,70,229,.13); color: #4f46e5; }
[data-theme="dark"] .ltz-ico.night { color: #a5b4fc; }
.ltz-time b { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1.15; letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ltz-time small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 2px; font-size: .73rem; color: var(--muted); white-space: nowrap; }
.ltz-time em { padding: 1px 7px; border-radius: 99px; font-style: normal; font-size: .66rem; font-weight: 800; }
.ltz-time em.up { background: rgba(14,165,233,.13); color: #0284c7; }
.ltz-time em.down { background: rgba(244,63,94,.12); color: #e11d48; }
.ltz-strip { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; }
.ltz-strip i { position: relative; display: grid; place-items: center; height: 36px; border-radius: 6px; font-style: normal; font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; user-select: none; transition: transform .12s, filter .12s; }
.ltz-strip i:hover { filter: brightness(.94); transform: translateY(-1px); }
.ltz-strip i:first-child { border-radius: 10px 6px 6px 10px; }
.ltz-strip i:last-child { border-radius: 6px 10px 10px 6px; }
.ltz-strip i sup { font-size: .5rem; margin-left: 1px; vertical-align: super; }
.ltz-strip i.work { background: color-mix(in srgb, #16a34a 24%, transparent); color: #14532d; }
.ltz-strip i.day { background: color-mix(in srgb, #f59e0b 13%, transparent); color: #78350f; }
.ltz-strip i.night { background: color-mix(in srgb, #312e81 13%, transparent); color: color-mix(in srgb, var(--text) 55%, transparent); }
[data-theme="dark"] .ltz-strip i.work { background: rgba(34,197,94,.26); color: #bbf7d0; }
[data-theme="dark"] .ltz-strip i.day { background: rgba(245,158,11,.16); color: #fde68a; }
[data-theme="dark"] .ltz-strip i.night { background: rgba(2,6,23,.55); color: #94a3b8; }
.ltz-strip i.mid::before { content: ""; position: absolute; left: -2px; top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--text) 55%, transparent); }
.ltz-strip i.sel { z-index: 1; outline: 2.5px solid var(--lab-acc); outline-offset: 1px; transform: scaleY(1.1); filter: none; }
[data-theme="dark"] .ltz-strip i.sel { outline-color: var(--lab-acc2); }
.ltz-hours i { height: 24px; background: none; font-size: .66rem; color: var(--muted); }
.ltz-hours i.ok { background: rgba(22,163,74,.12); color: #15803d; }
.ltz-hours i.sel { outline: 0; transform: none; background: linear-gradient(135deg, var(--lab-acc2), var(--lab-acc)); color: #fff; }
.ltz-act { display: flex; justify-content: flex-end; gap: 2px; }
.ltz-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 14px 10px 2px; border-top: 1px dashed var(--lab-line); }
.ltz-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .75rem; color: var(--muted); }
.ltz-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ltz-legend i.c { width: 14px; height: 14px; border-radius: 4px; }
.ltz-legend i.work { background: color-mix(in srgb, #16a34a 30%, transparent); }
.ltz-legend i.day { background: color-mix(in srgb, #f59e0b 22%, transparent); }
.ltz-legend i.night { background: color-mix(in srgb, #312e81 22%, transparent); }
.ltz-add { display: flex; gap: 8px; }
.ltz-add select { min-width: 250px; }
@media (max-width: 900px) {
  .ltz-ctrlrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ltz-ctrlrow > :first-child { grid-column: 1 / -1; }
  .ltz-now { grid-column: 1 / -1; }
  .ltz-now .lab-btn { width: 100%; }
  .ltz-head { display: none; }
  .ltz-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "city time act" "strip strip strip"; gap: 10px 10px; padding: 12px 8px; }
  .ltz-city { grid-area: city; }
  .ltz-time { grid-area: time; text-align: right; }
  .ltz-time small { justify-content: flex-end; }
  .ltz-strip { grid-area: strip; gap: 1px; }
  .ltz-act { grid-area: act; }
  .ltz-strip i { height: 30px; font-size: .6rem; border-radius: 4px; }
  .ltz-strip i sup { display: none; }
  .ltz-strip i.t:not(.sel) { color: transparent; }
  .ltz-add { width: 100%; }
  .ltz-add select { flex: 1; min-width: 0; }
  .ltz-tools .lab-btn.primary { width: 100%; }
}
@media (max-width: 420px) {
  .ltz-strip i { font-size: .52rem; letter-spacing: -.03em; }
  .ltz-time b { font-size: 1.2rem; }
  .ltz-ico { display: none; }
}

/* ================================================== acak, roda, tim, koin */
.lrg-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 16px; align-items: stretch; }
.lrg-grid.wheel { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); align-items: start; }
.lrg-grid.wheel .lrg-go { margin-top: 4px; }
.lrg-grid.wheel .lrg-names { min-height: 260px; }
.lrg-form { display: flex; flex-direction: column; gap: 15px; }
.lrg-form .lab-field > label { display: flex; align-items: center; gap: 8px; }
.lrg-cnt { margin-left: auto; padding: 2px 9px; border-radius: 99px; background: var(--lab-soft); color: var(--lab-acc); font-size: .68rem; letter-spacing: 0; text-transform: none; }
[data-theme="dark"] .lrg-cnt { color: var(--lab-acc2); }
.lrg-names { min-height: 200px; font-size: .92rem; line-height: 1.6; }
.lrg-n { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lrg-sws { display: flex; flex-direction: column; gap: 11px; }
.lrg-go { width: 100%; margin-top: auto; }
.lrg-err { border-radius: 12px; border: 1px solid rgba(239,68,68,.25); }
.lrg-warn { color: #dc2626; font-weight: 700; }
.lrg-stage { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 400px; border-radius: 22px; border: 1px solid var(--lab-line); overflow: hidden; background: radial-gradient(34rem 22rem at 50% 50%, color-mix(in srgb, var(--lab-acc2) 12%, transparent), transparent 70%), color-mix(in srgb, var(--text) 1.5%, var(--lab-card)); }
.lrg-top { display: flex; align-items: center; gap: 4px; padding: 10px 10px 0 18px; }
.lrg-top > b { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lrg-top .grow { flex: 1; }
.lrg-out { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 0; padding: 16px 22px 28px; }
.lrg-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 320px; text-align: center; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.lrg-empty svg { width: 54px; height: 54px; padding: 13px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, var(--lab-acc2), var(--lab-acc)); box-shadow: 0 16px 30px -16px var(--lab-acc); }
.lrg-big { max-width: 100%; font-size: clamp(4.2rem, 11vw, 8.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; text-align: center; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, var(--lab-acc2), var(--lab-acc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .lrg-big { background: linear-gradient(135deg, #5eead4, var(--lab-acc2)); -webkit-background-clip: text; background-clip: text; }
.lrg-big.roll { opacity: .5; filter: blur(.4px); }
.lrg-out.pop > * { animation: lrgPop .4s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes lrgPop { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
.lrg-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-height: 330px; overflow: auto; padding: 4px; }
.lrg-chips span { min-width: 54px; padding: 9px 13px; border-radius: 13px; border: 1px solid var(--lab-line); background: var(--lab-card); text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 6px 14px -10px rgba(15,23,42,.35); }
.lrg-meta, .lrg-more { margin: 0; font-size: .78rem; font-weight: 600; color: var(--muted); }
.lrg-shuffle { max-width: 100%; font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 800; text-align: center; overflow-wrap: anywhere; color: color-mix(in srgb, var(--text) 55%, transparent); }
.lrg-wins { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 470px; max-height: 360px; overflow: auto; padding: 4px; }
.lrg-win { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--lab-line); background: var(--lab-card); box-shadow: 0 12px 26px -20px rgba(15,23,42,.55); animation: lrgPop .45s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i) * 90ms); }
.lrg-win .rk { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--lab-acc2), var(--lab-acc)); }
.lrg-win b { font-size: 1.15rem; overflow-wrap: anywhere; }
.lrg-wins.one { align-items: center; }
.lrg-wins.one .lrg-win { flex-direction: column; gap: 14px; width: 100%; padding: 28px 22px; text-align: center; }
.lrg-wins.one .rk { width: 66px; height: 66px; border-radius: 22px; background: linear-gradient(135deg, #fde047, #f59e0b); box-shadow: 0 14px 26px -14px #f59e0b; }
.lrg-wins.one b { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15; }
/* roda */
.lrg-wstage { min-height: 0; }
.lrg-wheelbox { display: grid; place-items: center; padding: 18px 22px 20px; }
.lrg-wheel { position: relative; width: min(100%, 480px); aspect-ratio: 1; }
.lrg-wheel canvas { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 28px 56px -32px rgba(15,23,42,.7); }
.lrg-ptr { position: absolute; left: 50%; top: -10px; z-index: 2; width: 36px; height: 46px; transform: translateX(-50%); filter: drop-shadow(0 5px 6px rgba(15,23,42,.35)); }
.lrg-ptr::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #334155, #0f172a); clip-path: polygon(50% 100%, 4% 22%, 18% 4%, 50% 0, 82% 4%, 96% 22%); }
[data-theme="dark"] .lrg-ptr::before { background: linear-gradient(180deg, #ffffff, #cbd5e1); }
.lrg-hub { position: absolute; left: 50%; top: 50%; z-index: 2; width: 23%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 5px solid #fff; background: radial-gradient(circle at 35% 30%, #ffffff, #e2e8f0); color: #0f172a; font-family: inherit; font-size: clamp(.8rem, 1.5vw, 1.08rem); font-weight: 800; letter-spacing: .08em; cursor: pointer; box-shadow: 0 12px 26px -8px rgba(15,23,42,.55), inset 0 -4px 0 rgba(15,23,42,.08); transition: transform .15s, box-shadow .15s; }
.lrg-hub:hover { transform: translate(-50%, -50%) scale(1.06); }
.lrg-hub:active { transform: translate(-50%, -50%) scale(.97); }
.lab[data-spinning] .lrg-hub, .lab[data-spinning] [data-spin2] { pointer-events: none; opacity: .8; }
.lrg-wres { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 18px 24px; animation: lrgPop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.lrg-wname { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.lrg-wname small { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lrg-wname b { max-width: 100%; font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; background: linear-gradient(135deg, var(--lab-acc2), var(--lab-acc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .lrg-wname b { background: linear-gradient(135deg, #5eead4, var(--lab-acc2)); -webkit-background-clip: text; background-clip: text; }
.lrg-wres .lab-row { justify-content: center; }
.lrg-conf { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
/* tim */
.lrg-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 230px)); justify-content: center; align-content: center; gap: 12px; width: 100%; align-self: stretch; max-height: 440px; overflow: auto; padding: 2px; }
.lrg-team { border-radius: 16px; border: 1px solid var(--lab-line); background: var(--lab-card); overflow: hidden; box-shadow: 0 12px 26px -22px rgba(15,23,42,.6); }
.lrg-team .th { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 3px solid var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.lrg-team .th b { font-size: .92rem; color: color-mix(in srgb, var(--c) 70%, var(--text)); }
.lrg-team .th span { font-size: .72rem; font-weight: 700; color: var(--muted); }
.lrg-team ol { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 11px 14px 13px 34px; font-size: .9rem; font-weight: 600; }
.lrg-team li::marker { color: var(--muted); font-size: .8em; }
/* koin & dadu */
.lrg-coinbox { padding: 16px; perspective: 900px; }
.lrg-coin { position: relative; width: 176px; height: 176px; transform-style: preserve-3d; transition: transform 1.2s cubic-bezier(.2, .75, .25, 1); }
.lrg-coin .f { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: radial-gradient(circle at 32% 28%, #fff7d6, #fbbf24 38%, #d97706 80%, #b45309); color: #78350f; box-shadow: inset 0 0 0 7px rgba(255,255,255,.35), inset 0 0 0 10px rgba(180,83,9,.35), 0 20px 36px -18px rgba(120,53,15,.85); }
.lrg-coin .f.t { transform: rotateY(180deg); background: radial-gradient(circle at 32% 28%, #ffffff, #cbd5e1 40%, #94a3b8 80%, #64748b); color: #1e293b; box-shadow: inset 0 0 0 7px rgba(255,255,255,.45), inset 0 0 0 10px rgba(71,85,105,.35), 0 20px 36px -18px rgba(30,41,59,.8); }
.lrg-coin .f span { display: grid; place-items: center; height: 64px; font-size: 3.6rem; font-weight: 800; line-height: 1; }
.lrg-coin .f span svg { width: 54px; height: 54px; fill: currentColor; stroke-width: 1.4; }
.lrg-coin .f b { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lrg-coin.toss { animation: lrgToss 1.2s cubic-bezier(.3, .7, .4, 1); }
@keyframes lrgToss { 0% { translate: 0 0; } 42% { translate: 0 -80px; } 100% { translate: 0 0; } }
.lrg-cres { min-height: 44px; display: grid; place-items: center; text-align: center; }
.lrg-cres b { font-size: clamp(1.8rem, 4.6vw, 2.6rem); font-weight: 800; animation: lrgPop .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.lrg-cres span { font-size: .88rem; color: var(--muted); }
.lrg-tally { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.lrg-tally span { padding: 6px 12px; border-radius: 99px; background: color-mix(in srgb, var(--text) 5%, transparent); font-size: .8rem; font-weight: 600; color: var(--muted); }
.lrg-tally span b { margin-left: 4px; color: var(--text); font-variant-numeric: tabular-nums; }
.lrg-dice { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 440px; padding: 10px; }
.lrg-die { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: 88px; height: 88px; padding: 13px; border-radius: 22px; border: 1px solid rgba(15,23,42,.08); background: linear-gradient(145deg, #ffffff, #e2e8f0); box-shadow: inset 0 -5px 0 rgba(15,23,42,.08), 0 16px 28px -16px rgba(15,23,42,.65); }
.lrg-die i { width: 15px; height: 15px; margin: auto; border-radius: 50%; }
.lrg-die i.on { background: radial-gradient(circle at 35% 35%, #475569, #0f172a); }
.lrg-die[data-v="1"] i.on { width: 22px; height: 22px; background: radial-gradient(circle at 35% 35%, #f87171, #b91c1c); }
.lrg-dice.roll .lrg-die { animation: lrgShake .28s ease-in-out infinite; }
.lrg-dice.roll .lrg-die:nth-child(2n) { animation-direction: reverse; }
@keyframes lrgShake { 25% { transform: rotate(-14deg) translateY(-8px); } 75% { transform: rotate(11deg) translateY(2px); } }
/* riwayat */
.lrg-hist h3 .lab-btn { text-transform: none; letter-spacing: 0; }
.lrg-hlist { list-style: none; margin: 0; padding: 0; max-height: 270px; overflow: auto; }
.lrg-hlist li { display: grid; grid-template-columns: 76px 84px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 4px; border-top: 1px solid color-mix(in srgb, var(--text) 7%, transparent); font-size: .83rem; }
.lrg-hlist li:first-child { border-top: 0; }
.lrg-hlist time { font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lrg-hlist .k { justify-self: start; padding: 2px 9px; border-radius: 99px; background: var(--lab-soft); color: var(--lab-acc); font-size: .7rem; font-weight: 800; white-space: nowrap; }
[data-theme="dark"] .lrg-hlist .k { color: var(--lab-acc2); }
.lrg-hlist .v { font-weight: 600; overflow-wrap: anywhere; }
.lrg-hnone { margin: 0; font-size: .84rem; color: var(--muted); }
/* layar penuh untuk diumumkan */
.lrg-stage:fullscreen, .lrg-stage.ltm-fs { background: radial-gradient(70rem 46rem at 50% 50%, color-mix(in srgb, var(--lab-acc2) 16%, transparent), transparent 70%), var(--lab-card); }
.lrg-stage:fullscreen .lrg-top, .lrg-stage.ltm-fs .lrg-top { padding: 16px 16px 0 26px; }
.lrg-stage:fullscreen .lrg-big, .lrg-stage.ltm-fs .lrg-big { font-size: min(32vmin, 22vw); }
.lrg-stage:fullscreen .lrg-chips, .lrg-stage.ltm-fs .lrg-chips { max-height: 78vh; gap: 14px; }
.lrg-stage:fullscreen .lrg-chips span, .lrg-stage.ltm-fs .lrg-chips span { font-size: 2rem; padding: 14px 22px; border-radius: 18px; }
.lrg-stage:fullscreen .lrg-wins, .lrg-stage.ltm-fs .lrg-wins { max-width: 900px; max-height: 80vh; }
.lrg-stage:fullscreen .lrg-win b, .lrg-stage.ltm-fs .lrg-win b { font-size: 2.2rem; }
.lrg-stage:fullscreen .lrg-wins.one b, .lrg-stage.ltm-fs .lrg-wins.one b { font-size: min(12vmin, 7rem); }
.lrg-stage:fullscreen .lrg-shuffle, .lrg-stage.ltm-fs .lrg-shuffle { font-size: min(12vmin, 7rem); }
.lrg-stage:fullscreen .lrg-teams, .lrg-stage.ltm-fs .lrg-teams { max-height: 82vh; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); padding: 0 24px; }
.lrg-stage:fullscreen .lrg-team ol, .lrg-stage.ltm-fs .lrg-team ol { font-size: 1.25rem; }
.lrg-stage:fullscreen .lrg-coin, .lrg-stage.ltm-fs .lrg-coin { width: min(46vmin, 360px); height: min(46vmin, 360px); }
.lrg-stage:fullscreen .lrg-cres b, .lrg-stage.ltm-fs .lrg-cres b { font-size: min(10vmin, 5rem); }
.lrg-stage:fullscreen .lrg-die, .lrg-stage.ltm-fs .lrg-die { width: min(22vmin, 170px); height: min(22vmin, 170px); padding: 6%; }
.lrg-stage:fullscreen .lrg-die i, .lrg-stage.ltm-fs .lrg-die i { width: 60%; height: 60%; }
.lrg-stage:fullscreen .lrg-dice, .lrg-stage.ltm-fs .lrg-dice { max-width: 90vw; gap: 4vmin; }
.lrg-wstage:fullscreen, .lrg-wstage.ltm-fs { justify-content: center; }
.lrg-wstage:fullscreen .lrg-wheel, .lrg-wstage.ltm-fs .lrg-wheel { width: min(70vh, 88vw); }
.lrg-wstage:fullscreen .lrg-wname b, .lrg-wstage.ltm-fs .lrg-wname b { font-size: min(8vmin, 4rem); }

/* ================================================== catatan */
.lnp-warn { display: flex; align-items: flex-start; gap: 10px; padding: 11px 15px; border-radius: 14px; border: 1px solid rgba(245,158,11,.32); background: rgba(245,158,11,.09); color: #92400e; font-size: .82rem; line-height: 1.5; }
.lnp-warn svg { margin-top: 1px; color: #d97706; }
[data-theme="dark"] .lnp-warn { color: #fcd34d; }
.lnp-grid { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 16px; }
.lnp-side, .lnp-main { margin: 0; padding: 0; }
.lnp-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lnp-new { width: 100%; }
.lnp-search { position: relative; }
.lnp-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.lnp-search input { width: 100%; padding-left: 38px; }
.lnp-list { display: flex; flex: 1; flex-direction: column; gap: 4px; min-height: 120px; max-height: 470px; overflow: auto; margin: 0 -4px; padding: 2px 4px; }
.lnp-item { padding: 11px 13px; border-radius: 14px; border: 1px solid transparent; cursor: pointer; outline: 0; transition: background .15s, border-color .15s; }
.lnp-item:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.lnp-item:focus-visible { border-color: var(--lab-acc); }
.lnp-item.on { border-color: color-mix(in srgb, var(--lab-acc) 32%, transparent); background: var(--lab-soft); box-shadow: 0 8px 20px -18px var(--lab-acc); }
.lnp-item b { display: block; overflow: hidden; font-size: .9rem; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.lnp-item .pin { display: inline-flex; margin-right: 5px; vertical-align: -2px; color: var(--lab-acc); }
.lnp-item .pin svg { fill: currentColor; }
.lnp-item small { display: -webkit-box; margin-top: 3px; overflow: hidden; font-size: .76rem; line-height: 1.45; color: var(--muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.lnp-item small time { margin-right: 6px; font-weight: 700; color: color-mix(in srgb, var(--text) 70%, transparent); }
.lnp-item small i { font-style: normal; opacity: .75; }
.lnp-sidefoot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.lnp-sidefoot .lab-btn { width: 100%; padding: 0 8px; }
.lnp-main { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 20px; border: 1px solid var(--lab-line); background: var(--lab-card); overflow: hidden; box-shadow: 0 18px 44px -36px rgba(15,23,42,.55); transition: border-color .15s, box-shadow .15s; }
.lnp-main:focus-within { border-color: color-mix(in srgb, var(--lab-acc) 45%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lab-acc) 10%, transparent); }
.lnp-main.drag::after { content: attr(data-drop); position: absolute; inset: 8px; z-index: 4; display: grid; place-items: center; border-radius: 14px; border: 2px dashed var(--lab-acc); background: color-mix(in srgb, var(--lab-acc) 10%, color-mix(in srgb, var(--lab-card) 88%, transparent)); color: var(--lab-acc); font-weight: 800; pointer-events: none; }
.lnp-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--lab-line); background: color-mix(in srgb, var(--text) 2%, transparent); }
.lnp-bar .grow { flex: 1; }
.lnp-bar .lab-ib.on { color: var(--lab-acc); background: var(--lab-soft); }
.lnp-bar .lab-ib.on svg { fill: currentColor; }
.lnp-mode button { display: inline-flex; align-items: center; gap: 6px; }
.lnp-mode button svg { width: 14px; height: 14px; }
.lnp-del { color: var(--muted); }
.lnp-del:hover:not(:disabled) { color: #dc2626; }
.lnp-ta { flex: 1; width: 100%; min-height: 460px; padding: 22px 26px; border: 0; outline: 0; resize: vertical; background: transparent; color: var(--text); font-family: inherit; font-size: 1.02rem; line-height: 1.75; }
.lnp-ta::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.lnp-read { flex: 1; min-height: 460px; max-height: 660px; overflow: auto; padding: 30px 32px; font-size: 1.08rem; line-height: 1.85; }
.lnp-rin { max-width: 720px; margin: 0 auto; }
.lnp-read h2 { margin-top: 0; margin-bottom: 16px; font-size: 1.75rem; line-height: 1.25; letter-spacing: -.015em; }
.lnp-read p { margin-top: 0; margin-bottom: 1em; overflow-wrap: anywhere; }
.lnp-read a { color: var(--lab-acc); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .lnp-read a { color: var(--lab-acc2); }
.lnp-read footer { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--lab-line); font-size: .78rem; color: var(--muted); }
.lnp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 16px; border-top: 1px dashed var(--lab-line); font-size: .76rem; color: var(--muted); }
.lnp-foot .grow { flex: 1; }
.lnp-foot b { color: var(--text); font-variant-numeric: tabular-nums; }
.lnp-st { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.lnp-st.ok { color: #16a34a; }
.lnp-st.bad { color: #dc2626; }
.lnp-st.busy { color: #d97706; }
.lnp-st.busy i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: ltmGlow 1s ease-in-out infinite; }
.lnp-none { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 14px; text-align: center; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.lnp-none svg { color: color-mix(in srgb, var(--lab-acc) 60%, transparent); }
.lnp-main > .lab-err { border-top: 1px solid rgba(239,68,68,.25); }

/* ================================================== password */
.lpw-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.lpw-stage { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 18px; border-radius: 22px; border: 1px solid var(--lab-line); background: radial-gradient(32rem 16rem at 50% 0, color-mix(in srgb, var(--lab-acc2) 13%, transparent), transparent 70%), color-mix(in srgb, var(--text) 1.5%, var(--lab-card)); }
.lpw-stage > .lab-seg { align-self: flex-start; }
.lpw-out { display: grid; place-items: center; min-height: 136px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--lab-line); background: var(--lab-card); box-shadow: inset 0 2px 8px rgba(15,23,42,.04); }
.lpw-pw { max-width: 100%; font-family: var(--lab-mono); font-size: clamp(1.25rem, 2.5vw, 1.8rem); font-weight: 700; line-height: 1.45; letter-spacing: .02em; text-align: center; word-break: break-all; color: var(--text); }
.lpw-pw.long { font-size: 1.05rem; }
.lpw-pw.none { color: var(--muted); }
.lpw-pw .d { color: #2563eb; }
.lpw-pw .s { color: #ea580c; }
[data-theme="dark"] .lpw-pw .d, [data-theme="dark"] .lpw-list code .d { color: #7dd3fc; }
[data-theme="dark"] .lpw-pw .s, [data-theme="dark"] .lpw-list code .s { color: #fdba74; }
.lpw-pw.pop { animation: lrgPop .35s cubic-bezier(.2, 1.4, .4, 1); }
.lpw-meter { display: flex; flex-direction: column; gap: 8px; }
.lpw-meter:empty { display: none; }
.lpw-mtxt { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: .82rem; }
.lpw-mtxt span { color: var(--muted); }
.lpw-bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lpw-bars i { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--text) 9%, transparent); transition: background .3s; }
.lpw-bars.s0 i.on { background: #dc2626; }
.lpw-bars.s1 i.on { background: #f97316; }
.lpw-bars.s2 i.on { background: #eab308; }
.lpw-bars.s3 i.on { background: #22c55e; }
.lpw-bars.s4 i.on { background: linear-gradient(90deg, #22c55e, #0ea5e9); }
.lpw-acts .lab-btn { flex: 1; }
.lpw-opts { display: flex; flex-direction: column; gap: 15px; }
.lpw-opts h3 { margin-bottom: 0 !important; }
.lpw-len { display: flex; align-items: center; gap: 12px; }
.lpw-len .lab-range { flex: 1; min-width: 0; }
.lpw-lenin { width: 78px; font-size: 1.05rem; font-weight: 800; text-align: center; }
.lpw-wv { min-width: 32px; padding: 6px 0; border-radius: 10px; background: var(--lab-soft); text-align: center; font-size: 1.05rem; }
.lpw-sets { display: flex; flex-direction: column; gap: 12px; }
.lpw-cnt { width: 110px; }
.lpw-list { border-radius: 16px; border: 1px solid var(--lab-line); background: var(--lab-card); overflow: hidden; }
.lpw-lhead { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--lab-line); font-size: .82rem; }
.lpw-lhead .grow { flex: 1; }
.lpw-list ol { list-style: none; margin: 0; padding: 4px; max-height: 330px; overflow: auto; counter-reset: pw; }
.lpw-list li { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 8px; border-radius: 10px; counter-increment: pw; }
.lpw-list li:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.lpw-list li::before { content: counter(pw); flex: none; width: 22px; text-align: right; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lpw-list code { flex: 1; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text); font-family: var(--lab-mono); font-size: .86rem; word-break: break-all; }
.lpw-pw.ph, .lpw-list code.ph { word-break: normal; overflow-wrap: anywhere; }
.lpw-list code .d { color: #2563eb; }
.lpw-list code .s { color: #ea580c; }
.lpw-check { display: flex; flex-direction: column; gap: 16px; }
.lpw-inbox { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 18px; border-radius: 20px; border: 2px solid var(--lab-line); background: var(--lab-card); transition: border-color .15s, box-shadow .15s; }
.lpw-inbox:focus-within { border-color: var(--lab-acc2); box-shadow: 0 0 0 5px color-mix(in srgb, var(--lab-acc2) 14%, transparent); }
.lpw-inic { display: grid; color: var(--lab-acc2); }
.lpw-in { flex: 1; min-width: 0; height: 54px; border: 0; outline: 0; background: transparent; color: var(--text); font-family: var(--lab-mono); font-size: 1.3rem; letter-spacing: .03em; }
.lpw-in::placeholder { font-family: inherit; font-size: .95rem; letter-spacing: 0; color: color-mix(in srgb, var(--muted) 75%, transparent); }
.lpw-empty { min-height: 220px; border-radius: 18px; border: 1px dashed var(--lab-line); }
.lpw-empty svg { width: 34px; height: 34px; }
.lpw-score { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--sc) 35%, transparent); background: color-mix(in srgb, var(--sc) 8%, var(--lab-card)); animation: lrgPop .3s ease both; }
.lpw-sbig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.lpw-sbig b { font-size: 1.8rem; font-weight: 800; letter-spacing: -.01em; color: var(--sc); }
.lpw-sbig span { font-size: .84rem; color: var(--muted); }
.lpw-score .lpw-bars i { height: 10px; }
.lpw-marked { padding: 12px 16px; border-radius: 14px; border: 1px solid var(--lab-line); font-family: var(--lab-mono); font-size: 1.1rem; line-height: 2.1; word-break: break-all; }
.lpw-marked mark { padding: 2px 1px; border-radius: 5px; color: inherit; background: color-mix(in srgb, var(--mk) 16%, transparent); box-shadow: inset 0 -3px 0 var(--mk); }
.k-common { --mk: #dc2626; }
.k-dict { --mk: #f97316; }
.k-seq { --mk: #8b5cf6; }
.k-rep { --mk: #ec4899; }
.k-kb { --mk: #0ea5e9; }
.k-year, .k-date { --mk: #ca8a04; }
.lpw-found .lab-chip { margin-right: 8px; background: color-mix(in srgb, var(--mk, #dc2626) 13%, transparent); color: var(--mk, #dc2626); }
.lpw-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.lpw-times > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--text) 7%, transparent); }
.lpw-times > div:first-child { border-top: 0; padding-top: 2px; }
.lpw-times span { font-size: .84rem; font-weight: 600; }
.lpw-times small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }
.lpw-times b { font-size: .9rem; font-weight: 800; text-align: right; }
.lpw-found { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: .84rem; line-height: 1.55; }
.lpw-ok { display: flex; align-items: center; gap: 8px; margin: 0; color: #16a34a; font-weight: 700; font-size: .88rem; }
.lpw-tips ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 20px; font-size: .87rem; line-height: 1.55; }
.lpw-tips li::marker { color: var(--lab-acc2); }

/* ================================================== HP & tablet */
@media (max-width: 860px) {
  .ltm-grid, .lrg-grid, .lrg-grid.wheel, .lnp-grid, .lpw-grid, .lpw-cols { grid-template-columns: minmax(0, 1fr); }
  .lrg-stage { min-height: 320px; }
  .lnp-list { max-height: 250px; }
  .lnp-ta, .lnp-read { min-height: 340px; }
}
@media (max-width: 560px) {
  .ltm-stage { padding: 10px 12px 20px; gap: 12px; }
  .ltm-face { width: min(100%, 330px); }
  .ltm-ctl { gap: 8px; }
  .ltm-main { min-width: 0; flex: 1 1 100%; order: -1; }
  .ltm-sec { flex: 1; }
  .ltm-hms { gap: 4px; }
  .ltm-nbox input { height: 62px; font-size: 1.8rem; border-radius: 15px; }
  .ltm-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ltm-keys { display: none; }
  .lrg-out { padding: 12px 14px 22px; }
  .lrg-hlist li { grid-template-columns: 64px minmax(0, 1fr); }
  .lrg-hlist .v { grid-column: 1 / -1; }
  .lrg-coin { width: 150px; height: 150px; }
  .lrg-die { width: 72px; height: 72px; padding: 10px; border-radius: 18px; }
  .lrg-die i { width: 12px; height: 12px; }
  .lnp-ta { padding: 16px 16px; }
  .lnp-read { padding: 20px 18px; }
  .lnp-bar { gap: 2px; padding: 8px 6px; }
  .lnp-bar .lab-ib { width: 32px; }
  .lnp-mode { flex: none; flex-wrap: nowrap; }
  .lnp-mode button { padding: 7px 9px; }
  .lnp-mode button svg { display: none; }
  .lnp-list { min-height: 0; }
  .lnp-del { padding: 0 8px !important; }
  .lnp-del span { display: none; }
  .lpw-stage { padding: 14px; }
  .lpw-out { padding: 16px 12px; min-height: 110px; }
  .lpw-in { font-size: 1.05rem; }
  .lpw-sbig b { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ltm-stage *, .lrg-stage *, .lpw-stage * { animation: none !important; }
  .lrg-coin { transition-duration: .01s; }
}
