:root {
  --bg: #0b111b; --card: #141c28; --line: #273240; --line2: #1d2634; --tile: #1a2432; --tileline: #313d4d;
  --text: #eef2f8; --muted: #8994a4; --dim: #69747f; --soft: #a6b3c2;
  --cyan: #22d3ee; --purple: #a78bfa; --amber: #fbbf24; --red: #ef4444; --green: #34d399; --pools: #06b6d4;
  --font-ui: "Geist", -apple-system, system-ui, sans-serif; --font-mono: "Geist Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

@keyframes wl-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wl-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes wl-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes wl-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── The page ── */
.wl-page { position: fixed; inset: 0; overflow-y: auto; background: var(--bg); }
.wl-wrap { min-height: 100%; display: flex; justify-content: center; padding: 68px 24px 28px; }
.wl-col { width: 100%; max-width: 1160px; display: flex; flex-direction: column; margin: auto 0; }
@media (max-width: 760px), (max-height: 760px) { .wl-wrap { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); } }

.wl-clocks { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; animation: wl-fade .45s ease both; }
.wl-clock { display: flex; flex-direction: column; align-items: center; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 20px; }
.wl-clock.hot { border-color: rgba(34,211,238,.6); padding: 12px 22px; box-shadow: 0 0 18px rgba(34,211,238,.28), 0 0 44px rgba(34,211,238,.12); }
.wl-clock-label { font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.wl-clock-time { font-size: 24px; font-weight: 700; font-family: var(--font-mono); letter-spacing: .02em; color: var(--text); }
.wl-clock.hot .wl-clock-time { text-shadow: 0 0 12px rgba(34,211,238,.45); }

.wl-head { text-align: center; margin-bottom: 28px; animation: wl-rise .45s ease both; }
.wl-greet { font-size: 46px; font-weight: 800; letter-spacing: -.02em; }
.wl-sub { font-size: 15px; color: var(--muted); margin-top: 9px; }
.wl-jump { font-size: 12px; color: var(--dim); margin-top: 12px; }
.wl-kbd { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--soft); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; cursor: pointer; }

.wl-quick { display: grid; gap: 20px; margin-bottom: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); animation: wl-rise .45s ease .04s both; }
.wl-tile { position: relative; background: var(--tile); border: 1px solid var(--tileline); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.25); display: flex; align-items: center; gap: 13px; padding: 14px 16px; cursor: pointer; text-align: left; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.wl-tile:hover { transform: translateY(-2px); border-color: #3a4756; }
.wl-tile-icon { width: 46px; height: 46px; border-radius: 11px; background: rgba(34,211,238,.10); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wl-tile-text { line-height: 1.3; min-width: 0; }
.wl-tile-name { font-size: 14px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.wl-badge { font-size: 11px; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: 1px 7px; }
.wl-tile-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

.wl-label { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; animation: wl-rise .45s ease .08s both; }
.wl-label.views { color: #98a4b5; animation-delay: .16s; }
.wl-label.mobile { margin-top: 22px; }
.wl-biz { display: grid; gap: 20px; margin-bottom: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); animation: wl-rise .45s ease .12s both; }
.wl-card { display: block; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; cursor: pointer; color: var(--text); transition: transform .18s ease, border-color .18s ease; }
.wl-card:hover { transform: translateY(-3px); border-color: #3a4756; }
.wl-card.off { cursor: default; }
.wl-card.off:hover { transform: none; border-color: var(--line); }
.wl-logo { width: 128px; height: 104px; margin: 0 auto 16px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.wl-stat { font-size: 12.5px; color: var(--soft); margin-bottom: 14px; min-height: 16px; }
.wl-open { font-size: 14px; font-weight: 600; color: var(--cyan); }
.wl-card.off .wl-open { opacity: .4; }

.wl-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; animation: wl-rise .45s ease .18s both; }
.wl-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--cyan); transition: border-color .15s ease, background .15s ease; }
.wl-pill:hover { border-color: var(--cyan); background: rgba(34,211,238,.07); }
.wl-pill.purple { color: var(--purple); }
.wl-pill.purple:hover { border-color: var(--purple); background: rgba(167,139,250,.07); }
.wl-pill.off { opacity: .45; cursor: default; }
.wl-pill.off:hover { border-color: var(--line); background: transparent; }

.wl-fab { position: fixed; z-index: 60; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.4); transition: border-color .15s ease, color .15s ease, transform .15s ease; }
.wl-fab:hover { border-color: #3a4756; color: var(--text); }
.wl-fab.gear { left: 20px; bottom: 20px; }
.wl-fab.phone { right: 20px; bottom: 20px; border-color: var(--green); color: var(--green); }
.wl-fab.phone:hover { transform: scale(1.06); border-color: var(--green); color: var(--green); }
.wl-fab .wl-badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid var(--bg); }

/* ── The ticker across the top ── */
.wl-ticker { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: stretch; background: rgba(11,17,27,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line2); height: 40px; overflow: hidden; }
.wl-ticker-tag { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-right: 1px solid var(--line2); background: var(--bg); }
.wl-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--cyan); animation: wl-blink 1.6s ease-in-out infinite; }
.wl-ticker-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--soft); text-transform: uppercase; white-space: nowrap; }
.wl-ticker-run { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; overflow: hidden; }
.wl-ticker-track { display: flex; align-items: center; width: max-content; animation: wl-ticker var(--dur, 60s) linear infinite; }
.wl-ticker-item { flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px; padding: 0 26px; font-size: 12.5px; white-space: nowrap; color: #c7d1de; }
.wl-tag { flex-shrink: 0; font-size: 9px; font-weight: 700; letter-spacing: .08em; border: 1px solid; border-radius: 5px; padding: 2px 6px; }
.wl-diamond { color: #3a4756; margin-left: 8px; }

/* ── Panels ── */
.wl-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(4,8,14,.62); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: wl-fade .18s ease both; }
.wl-overlay.top { align-items: flex-start; padding-top: 110px; }
.wl-modal { width: 100%; max-width: 860px; max-height: calc(100vh - 60px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 34px 38px; box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: wl-pop .22s cubic-bezier(.2,.7,.3,1) both; }
.wl-modal.wide { max-width: 1040px; }
.wl-modal.slim { max-width: 520px; }
@media (max-width: 640px) { .wl-overlay { padding: 12px; } .wl-modal { padding: 24px 18px; max-height: calc(100vh - 24px); } }
.wl-mhead { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.wl-micon { width: 52px; height: 52px; border-radius: 14px; background: rgba(34,211,238,.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wl-mtitle { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.wl-msub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.wl-mfoot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.wl-btn { background: rgba(34,211,238,.12); border: 1px solid var(--cyan); border-radius: 11px; padding: 12px 28px; font-size: 15px; font-weight: 600; color: var(--cyan); cursor: pointer; }
.wl-btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.wl-btn.ghost:hover { border-color: #3a4756; color: var(--text); }
.wl-lbl { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 9px; }
.wl-input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; color: var(--text); font-size: 15px; font-family: inherit; outline: none; }
.wl-input:focus { border-color: #3a4756; }
.wl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line2); }
.wl-row-name { font-size: 15px; font-weight: 600; }
.wl-row-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.wl-empty { padding: 30px 0 10px; text-align: center; font-size: 14px; color: var(--dim); }

.wl-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; }
.wl-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-tab { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.wl-tab.on { background: rgba(34,211,238,.12); border-color: var(--cyan); color: var(--cyan); }
.wl-sep { width: 1px; height: 24px; background: var(--line); }
.wl-search { flex: 1; min-width: 180px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; color: var(--text); font-size: 13.5px; font-family: inherit; outline: none; }
.wl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 18px; }
.wl-stattile { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; min-width: 0; }
.wl-stattile b { display: block; font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-stattile span { font-size: 11px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.wl-scroll { overflow-x: auto; }
.wl-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.wl-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
.wl-table td { padding: 11px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; white-space: nowrap; }
.wl-table td.wrap { white-space: normal; min-width: 180px; }
.wl-sub2 { font-size: 12px; color: var(--dim); margin-top: 2px; }
.wl-live { color: var(--green); font-weight: 600; }
.wl-mono { font-family: var(--font-mono); font-size: 12.5px; }
.wl-h { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 24px 0 8px; }
.wl-bynum { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 20px; }
.wl-bynum-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2); font-size: 13px; }
.wl-bynum-row b { font-weight: 700; color: var(--text); }
.wl-bynum-row span { color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── The jump palette ── */
.wl-modal.palette { max-width: 560px; padding: 0; border-radius: 16px; overflow: hidden; }
.wl-pal-head { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.wl-pal-input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-size: 15px; font-family: inherit; }
.wl-pal-esc { font-family: ui-monospace, monospace; font-size: 10px; color: var(--dim); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; }
.wl-pal-list { max-height: 340px; overflow-y: auto; padding: 8px; }
.wl-pal-row { width: 100%; display: flex; align-items: center; gap: 11px; background: transparent; border: none; border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--text); transition: background .12s ease; }
.wl-pal-row:hover, .wl-pal-row.sel { background: rgba(255,255,255,.04); }
.wl-pal-row .wl-tag { min-width: 42px; text-align: center; }
.wl-pal-title { flex: 1; min-width: 0; text-align: left; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-pal-hint { font-size: 11.5px; color: var(--muted); flex-shrink: 0; }

/* ── Sign in ── */
.wl-signin { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; }
.wl-signin-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 34px; animation: wl-pop .3s ease both; }
.wl-signin-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.wl-signin-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.wl-err { color: #f87171; font-size: 13px; margin-top: 10px; min-height: 18px; }
.wl-note { font-size: 13px; color: var(--amber); line-height: 1.5; }
