.wl { --wl-bg: #f2f4f7; --wl-on: #1453ff; }
html[data-theme="dark"] .wl { --wl-bg: #282933; --wl-on: #2663f0; }
.wl-head { display: flex; align-items: center; gap: 20px; height: 64px; padding: 8px 0 28px; box-sizing: content-box; }
.wl-back { display: grid; place-items: center; flex: none; width: 24px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--text); cursor: pointer; }
.wl-back svg { width: 24px; height: 24px; flex-shrink: 0; stroke: none; }
.wl-head h1 { font-size: 18px; line-height: 27.9px; font-weight: 700; }
.wl-col { display: flex; flex-direction: column; width: 100%; }
.wl-tabs { display: flex; gap: 12px; }
.wl-tab { display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--wl-bg); color: var(--text); font: 400 18px/27.9px var(--font); cursor: pointer; transition: filter .18s; }
.wl-tab:hover { filter: brightness(1.06); }
.wl-tab.on { background: var(--wl-on); color: #fff; font-weight: 600; }
.wl-card { display: flex; align-items: center; gap: 16px; height: 76px; margin-top: 32px; padding: 0 20px; border-radius: 8px; background: var(--wl-bg); }
.wl-card img { width: 32px; height: 32px; flex-shrink: 0; }
.wl-bal { display: flex; flex-direction: column; }
.wl-bal span { font-size: 14px; line-height: 24px; color: var(--muted); }
.wl-bal b { font-size: 18px; line-height: 27.9px; font-weight: 700; }
.wl-form { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.wl-field { position: relative; display: block; height: 76px; border-radius: 8px; background: var(--wl-bg); }
.wl-field input { display: block; width: 100%; height: 76px; padding: 35px 20px 13px; border: 0; border-radius: 8px; outline: 0; background: transparent; color: var(--text); font: 700 18px/28px var(--font); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s; }
.wl-field input:hover, .wl-field input:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.wl-field span { position: absolute; top: 0; left: 20px; display: flex; align-items: center; height: 76px; color: var(--muted); font-size: 18px; line-height: 28px; transform-origin: left; transition: transform .2s; pointer-events: none; }
.wl-field input:focus + span, .wl-field input:not(:placeholder-shown) + span { transform: scale(.7778) translateY(-18px); }
.wl-pay { height: 52px; border: 0; border-radius: 8px; background: var(--wl-on); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22); color: #fff; font: 700 18px/27.9px var(--font); cursor: pointer; transition: filter .18s; }
.wl-pay:hover { filter: brightness(1.08); }
.wl-hist { margin-top: 40px; }
.wl-hh { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.wl-hh h2 { font-size: 24px; line-height: 32.4px; font-weight: 700; }
.wl-sort { display: flex; align-items: center; gap: 0; height: 26px; padding: 0; border: 0; background: none; color: var(--blue); font: 400 16px/25.6px var(--font); cursor: pointer; }
.wl-sort svg { flex-shrink: 0; stroke: none; }
.wl-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.wl-chip { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--wl-bg); color: var(--text); font: 400 16px/25.6px var(--font); cursor: pointer; transition: filter .18s; }
.wl-chip:hover { filter: brightness(1.06); }
.wl-chip svg { flex-shrink: 0; stroke: none; }
.wl-empty { display: flex; flex-direction: column; align-items: center; margin-top: 24px; text-align: center; }
.wl-empty img { width: 56px; height: 56px; }
.wl-empty b { margin-top: 16px; font-size: 24px; line-height: 32.4px; font-weight: 700; }
.wl-empty p { margin: 0; font-size: 16px; line-height: 25.6px; color: var(--muted); }
@media (max-width: 767px) {
  .wl-head { height: 56px; padding: 8px 0 20px; }
  .wl-tab { height: 44px; padding: 0 20px; font-size: 16px; line-height: 24px; }
  .wl-card { height: 68px; margin-top: 20px; padding: 0 16px; }
  .wl-field, .wl-field input { height: 60px; }
  .wl-field input { padding: 27px 16px 9px; font-size: 16px; }
  .wl-field span { left: 16px; height: 60px; font-size: 16px; }
  .wl-field input:focus + span, .wl-field input:not(:placeholder-shown) + span { transform: scale(.75) translateY(-14px); }
  .wl-pay { height: 44px; font-size: 16px; }
  .wl-hh h2 { font-size: 20px; line-height: 28px; }
  .wl-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .wl-chips::-webkit-scrollbar { display: none; }
  .wl-chip { flex: none; }
  .wl-empty b { font-size: 20px; line-height: 28px; }
}

.wl-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 16px; }
.wl-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.wl-dlg { --wl-bg: #f2f4f7; --wl-on: #1453ff; position: relative; display: flex; flex-direction: column; gap: 20px; width: min(100%, 396px); padding: 24px 24px 28px; border-radius: 24px; background: var(--bg); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .wl-dlg { --wl-bg: #282933; --wl-on: #2663f0; background: #1e2027; }
.wl-dlg header { position: relative; display: flex; align-items: center; justify-content: center; height: 32px; }
.wl-dlg header b { font-size: 18px; line-height: 28px; font-weight: 700; }
.wl-reset { position: absolute; left: 0; padding: 0; border: 0; background: none; color: var(--blue); font: 400 16px/24px var(--font); cursor: pointer; }
.wl-x { position: absolute; right: -4px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; transition: background-color .18s; }
.wl-x:hover { background: var(--bg-soft-2); }
.wl-x svg { stroke: none; fill: none; }
.wl-range { display: flex; align-items: center; gap: 12px; }
.wl-range > i { flex: none; width: 12px; height: 2px; border-radius: 1px; background: var(--muted); }
.wl-rf { display: flex; flex: 1; flex-direction: column; justify-content: center; min-width: 0; height: 56px; padding: 0 16px; border-radius: 12px; background: var(--wl-bg); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .18s; }
.wl-rf.on { box-shadow: inset 0 0 0 2px var(--blue); }
.wl-rf small { font-size: 12px; line-height: 16px; color: var(--muted); }
.wl-rf span { min-height: 20px; font-size: 16px; line-height: 20px; font-weight: 600; }
.wl-cal-h { display: flex; align-items: center; justify-content: space-between; }
.wl-cal-h b { font-size: 16px; line-height: 24px; font-weight: 700; }
.wl-cal-h button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--wl-bg); color: var(--text); cursor: pointer; transition: color .18s, opacity .18s; }
.wl-cal-h button:hover:not(:disabled) { color: var(--blue); }
.wl-cal-h button:disabled { opacity: .35; cursor: default; }
.wl-cal-h svg { stroke: none; fill: none; }
.wl-cal-w, .wl-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); }
.wl-cal-w { margin-top: 12px; }
.wl-cal-w span { text-align: center; font-size: 12px; line-height: 24px; color: var(--muted); }
.wl-cal-g { row-gap: 2px; margin-top: 4px; }
.wl-day { --band: color-mix(in srgb, var(--blue) 16%, transparent); position: relative; isolation: isolate; height: 40px; padding: 0; border: 0; background: none; color: var(--text); font: 400 15px/40px var(--font); cursor: pointer; }
.wl-day::after { content: ""; position: absolute; z-index: -1; top: 0; left: 50%; width: 40px; height: 40px; aspect-ratio: 1 / 1; margin-left: -20px; border-radius: 50%; background: transparent; transition: background-color .15s; }
.wl-day:disabled { color: var(--muted); opacity: .4; cursor: default; }
.wl-day:hover:not(:disabled):not(.sel)::after { background: var(--wl-bg); }
.wl-day.today { font-weight: 700; color: var(--blue); }
.wl-day.in { background: var(--band); }
.wl-day.sel { color: #fff; font-weight: 700; }
.wl-day.sel::after { background: var(--wl-on); }
.wl-day.sel.r-start { background: linear-gradient(to right, transparent 50%, var(--band) 50%); }
.wl-day.sel.r-end { background: linear-gradient(to left, transparent 50%, var(--band) 50%); }
.wl-day.sel.r-start.r-end { background: none; }
.wl-apply { height: 52px; border: 0; border-radius: 8px; background: var(--wl-on); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22); color: #fff; font: 700 18px/27.9px var(--font); cursor: pointer; transition: filter .18s, opacity .18s; }
.wl-apply:hover:not(:disabled) { filter: brightness(1.08); }
.wl-apply:disabled { opacity: .4; cursor: default; }

.wl-chips { position: relative; flex-wrap: wrap; }
.wl-chip-box { position: relative; display: inline-flex; }
.wl-chip[aria-pressed="true"] { background: var(--blue); color: #fff; }
.wl-pop { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; display: flex; flex-direction: column; min-width: 200px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--wl-modal, var(--card)); box-shadow: var(--shadow-lg); }
.wl-pop button { padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; font: 400 15px/20px var(--font); cursor: pointer; }
.wl-pop button:hover { background: var(--wl-bg); }
.wl-pop button[aria-selected="true"] { color: var(--blue); font-weight: 600; }
.wl-ops { display: flex; flex-direction: column; margin-top: 16px; }
.wl-op { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wl-op div { display: flex; flex-direction: column; }
.wl-op span { color: var(--muted); font-size: 14px; }
.wl-op .pos { color: var(--green); }
.wl-empty .wl-chip { margin-top: 16px; }
@media (max-width: 767px) { .wl-chips { flex-wrap: wrap; overflow: visible; } }
.wl-dlg:focus { outline: 0; }
