/* worklab design template: launcher (index.html) and sign-in (login.html). Light + dark via [data-theme]. */
:root {
  --bg: #f3f4f6; --paper: #ffffff; --ink: #111827; --muted: #6b7280; --line: #e5e7eb;
  --accent: #16a34a; --new: #ef4444; --mark: #a7efcd;
  --font-display: "Figtree", "Space Grotesk", sans-serif;
  --font-body: "DM Sans", "IBM Plex Sans", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141820; --paper: #1c2230; --ink: #eef2f8; --muted: #93a0b5; --line: #2c3548; --accent: #3dd68c;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, .wl-brand strong { font-family: var(--font-display); }

/* Top bar: logo · pill nav · status + theme */
.wl-bar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px); }
.wl-bar-in { max-width: 1280px; margin: 0 auto; padding: .7rem 2.25rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.wl-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.wl-brand img { width: 32px; height: 32px; border-radius: 11px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--mark) 35%, transparent); }
.wl-brand strong { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.wl-pills { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); box-shadow: 0 6px 20px -12px rgba(15,23,42,.25); }
.wl-pills a { padding: .42rem 1rem; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.wl-pills a.on { background: var(--ink); color: var(--paper); }
.wl-rt { justify-self: end; display: flex; align-items: center; gap: .5rem; }
.wl-chip { display: inline-flex; align-items: center; gap: .45rem; height: 34px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font: 500 12.5px var(--font-body); }
.wl-chip b { color: var(--accent); }
.wl-theme { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 15px; }

/* Hero: greeting, counts, search, view pills */
.wl-main { max-width: 1280px; margin: 0 auto; padding: 1.6rem 2.25rem 3rem; }
.wl-hero { text-align: center; margin: 1.4rem 0 1.9rem; }
.wl-hero h1 { margin: 0 0 .35rem; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.wl-sub { margin: 0; color: var(--muted); font-size: 14px; }
.wl-search { position: relative; display: block; max-width: 620px; margin: 1.4rem auto 0; }
.wl-search svg { position: absolute; left: 18px; top: 17px; color: var(--muted); pointer-events: none; }
.wl-search input { width: 100%; height: 54px; padding: 0 150px 0 50px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); font: 400 16px var(--font-body); box-shadow: 0 8px 30px -14px rgba(15,23,42,.22); outline: none; transition: border-color .15s, box-shadow .15s; }
.wl-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent), 0 8px 30px -14px rgba(15,23,42,.22); }
.wl-kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; pointer-events: none; }
.wl-kbd kbd { font: 600 12px var(--font-body); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; background: var(--bg); }
.wl-view { display: inline-flex; gap: .3rem; margin-top: 1.3rem; padding: 1.15rem .45rem .45rem; position: relative; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.wl-view > em { position: absolute; left: .75rem; top: .35rem; font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wl-view button { height: 29px; padding: 0 .65rem; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, var(--paper)); color: var(--muted); font: 600 12.5px var(--font-body); cursor: pointer; }
.wl-view button small { font-size: 10.5px; opacity: .65; margin-left: .3rem; }
.wl-view button.on { background: var(--ink); color: var(--paper); }

/* App grid */
.wl-sec-h { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wl-sec-h i { width: 10px; height: 10px; border-radius: 3px; background: var(--muted); }
.wl-sec-h small { font-size: 12px; font-weight: 600; opacity: .7; }
.wl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 1.3rem .6rem; }
.wl-grid li[hidden] { display: none; }
.wl-tile { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .4rem .15rem; border-radius: 16px; text-align: center; color: var(--ink); text-decoration: none; outline: none; }
.wl-tile:focus-visible, .wl-tile.is-first { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.wl-icon { position: relative; display: block; width: 64px; height: 64px; transition: transform .18s cubic-bezier(.2,.8,.3,1.4); }
.wl-tile:hover .wl-icon { transform: translateY(-3px) scale(1.06); }
.wl-icon img { display: block; width: 64px; height: 64px; border-radius: 18px; object-fit: cover; box-shadow: 0 6px 16px -6px rgba(15,23,42,.38), inset 0 0 0 1px rgba(255,255,255,.12); }
.wl-new { position: absolute; left: -5px; bottom: -5px; padding: 1px 5px; border: 2px solid var(--bg); border-radius: 999px; background: var(--new); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.wl-name { max-width: 100%; padding: 0 .25rem; overflow-wrap: anywhere; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.wl-empty { text-align: center; padding: 2rem 0; color: var(--muted); }
.wl-foot { margin-top: 2.5rem; color: var(--muted); font-size: 13px; }

/* Sign-in page */
.wl-login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; background: radial-gradient(900px 300px at 50% 0, color-mix(in srgb, var(--mark) 22%, transparent), transparent 70%), var(--bg); }
.wl-login .wl-brand { margin-bottom: 1.4rem; }
.wl-login .wl-brand img { width: 44px; height: 44px; border-radius: 14px; }
.wl-login .wl-brand small { display: block; color: var(--muted); font-size: 11.5px; margin-top: -2px; }
.wl-strip { display: flex; gap: 8px; margin-bottom: 1.1rem; }
.wl-strip img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 14px -6px rgba(15,23,42,.35); }
.wl-strip img:nth-child(even) { transform: translateY(-4px); }
.wl-card { width: 100%; max-width: 398px; padding: 1.7rem 1.6rem 1.6rem; border-radius: 22px; background: var(--paper); box-shadow: 0 20px 50px -24px rgba(15,23,42,.25); }
.wl-card-h { display: flex; align-items: center; justify-content: space-between; }
.wl-card h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.wl-tag { padding: 4px 11px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 700; }
.wl-card p { margin: .4rem 0 1.4rem; color: var(--muted); font-size: 14.5px; }
.wl-card label { display: block; margin: 0 0 .45rem 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wl-card input[type=email], .wl-card input[type=password] { width: 100%; height: 46px; margin-bottom: 1.05rem; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: 400 15px var(--font-body); outline: none; }
.wl-card input:focus { border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.wl-remember { display: flex; align-items: center; gap: .55rem; margin: .1rem 0 1.25rem 3px; font-size: 14.5px; }
.wl-remember input { width: 16px; height: 16px; accent-color: var(--accent); }
.wl-btn { width: 100%; height: 46px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 15px var(--font-body); cursor: pointer; }
.wl-btn:hover { opacity: .9; }
.wl-login-foot { margin-top: 1.1rem; color: var(--muted); font-size: 12.5px; }
.wl-error { margin: -0.4rem 0 1rem; color: #dc2626; font-size: 13.5px; }
@media (max-width: 720px) {
  .wl-bar-in { grid-template-columns: auto 1fr; padding: .6rem 1rem; }
  .wl-pills { display: none; }
  .wl-main { padding: 1rem 1rem 2rem; }
  .wl-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 1rem .25rem; }
}
.wl-card label.wl-remember { display: flex; margin: .1rem 0 1.25rem 3px; font-size: 14.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
