@font-face { font-family: "Neue Haas Grotesk"; src: url(/fonts/NHG-55Rg.woff2) format("woff2"); font-weight: 100 450; font-display: swap }
@font-face { font-family: "Neue Haas Grotesk"; src: url(/fonts/NHG-65Md.woff2) format("woff2"); font-weight: 451 900; font-display: swap }
:root { --bg:#f4f5f1; --card:#fff; --text:#0d0f10; --muted:#5d6259; --line:#e3e5df; --acc:#c6ff00; --acc-text:#0d0f10; --dark:#0d0f10; --warn:#fff1e5; --warn-t:#7a3a00; --good:#eef7d6; --good-t:#2f4a00; --r:18px }
* { box-sizing: border-box }
html, body { margin: 0 }
body { font: 16px/1.45 "Neue Haas Grotesk", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom) }
.skip { position: absolute; left: -999px } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 9 }
main { flex: 1; padding: 18px 16px 28px; display: flex; flex-direction: column; gap: 12px; outline: none }
h1 { font-size: 30px; line-height: 1.1; margin: 4px 0; font-weight: 700; letter-spacing: -.01em } h1 small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 6px } h2 { font-size: 17px; margin: 0 }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line) } .row:first-of-type { border-top: 0 }
.muted { color: var(--muted); font-size: 14px; margin: 0 }
.big { font-size: 28px; font-weight: 800 }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px } .kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px } .kpi b { display: block; font-size: 20px }
.btn { background: var(--acc); color: var(--acc-text); border: 0; border-radius: 999px; padding: 12px 18px; min-height: 48px; font: inherit; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; display: inline-block }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line) } .btn.sm { min-height: 40px; padding: 8px 14px; font-size: 14px }
.btn:focus-visible, .tabs button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #2b6cff; outline-offset: 2px }
.pills { display: flex; gap: 6px; flex-wrap: wrap } .pills button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; min-height: 40px; font: inherit; font-size: 14px }
.pills button[aria-pressed="true"] { background: var(--acc); color: var(--acc-text); border-color: var(--acc); font-weight: 600 }
.tag { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: #eceee9 } .tag.good { background: var(--good); color: var(--good-t) } .tag.warn { background: var(--warn); color: var(--warn-t) }
.code { font: 600 18px ui-monospace, monospace; letter-spacing: .06em; background: #f0f2ec; border-radius: 10px; padding: 10px 12px; word-break: break-all }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted) }
input, select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; min-height: 44px; background: #fff; color: var(--text) }
.foot { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 14px 96px }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); background: #0d0f10; color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw }
.toast.on { opacity: 1 }
.alert { background: var(--warn); color: var(--warn-t); border-radius: 12px; padding: 10px 12px; font-size: 14px }
@media (prefers-color-scheme: dark) { :root { --bg:#0d0f10; --card:#16191a; --text:#eef0ea; --muted:#9aa095; --line:#262a2b } input, select { background: #101314 } .code { background: #101314 } .tag { background: #262a2b } }

.brandlogo { max-height: 30px; max-width: 150px; object-fit: contain; vertical-align: middle } .brandlogo.chip { background: #fff; border-radius: 8px; padding: 3px 8px }
.demobar { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; align-items: center; background: #fff1e5; color: #5a2c00; font-size: 13px; padding: 8px 14px; border-bottom: 1px solid #f0d9c2 }
.demoviews { display: flex; gap: 6px } .demoviews a { color: inherit; text-decoration: none; border: 1px solid #e3c4a6; border-radius: 999px; padding: 4px 10px; font-weight: 600 } .demoviews a[aria-current="page"] { background: #5a2c00; color: #fff; border-color: #5a2c00 }

.sslogo { height: 15px; width: auto; display: inline-block; vertical-align: middle }

/* header: dark, rounded, greeting and stat tiles on Home */
.top { background: var(--dark); color: var(--on-dark, #fff); border-radius: 0 0 26px 26px; padding: 16px 18px 18px; position: sticky; top: 0; z-index: 5 }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px }
.logo { font-weight: 800; letter-spacing: .08em; font-size: 15px; display: flex; align-items: center; gap: 6px } .logo i { font-style: normal; background: var(--acc); color: var(--acc-text); border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em }
.topact { display: flex; gap: 8px; align-items: center }
.iconbtn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--on-dark-line, rgba(255,255,255,.22)); background: transparent; color: var(--on-dark, #fff); display: flex; align-items: center; justify-content: center; cursor: pointer }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round }
.iconbtn b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--acc); color: var(--acc-text); font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid var(--dark) }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--acc); color: var(--acc-text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer }
.hello:empty { display: none }
.hello .hi { font-size: 34px; margin: 18px 0 2px; color: var(--on-dark, #fff) }
.hello .sub { margin: 10px 0 0; font-size: 14px; color: var(--on-dark-muted, rgba(255,255,255,.78)) } .hello .hi + .sub { margin-top: 0 }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px }
.tile { background: rgba(255,255,255,.07); border: 1px solid var(--on-dark-line, rgba(255,255,255,.12)); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px }
.tile span { font-size: 12px; color: var(--on-dark-muted, rgba(255,255,255,.78)) } .tile b { font-size: 20px; color: var(--acc) }

/* bottom tab bar */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; display: flex; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 6 }
.tabbar button { flex: 1; min-height: 56px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 11px; font-weight: 500; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer }
.tabbar .dot { width: 40px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center }
.tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.tabbar button[aria-current="page"] { color: var(--text); font-weight: 700 } .tabbar button[aria-current="page"] .dot { background: var(--acc); color: var(--acc-text) }
.tabbar button:focus-visible, .iconbtn:focus-visible, .avatar:focus-visible { outline: 3px solid #2b6cff; outline-offset: 2px }

/* content patterns from the wireframes */
.hero { background: var(--acc); color: var(--acc-text); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 4px }
.hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase } .hero b { font-size: 40px; line-height: 1.05; font-weight: 800 } .hero span:last-child { font-size: 14px }
.cardhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px } .cardhead h2 { margin-bottom: 2px }
.titlerow { display: flex; justify-content: space-between; align-items: center; gap: 10px }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap } .btnrow .btn { flex: 1 1 auto }
.prog { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden } .prog i { display: block; height: 6px; background: var(--acc-line, #8fb800); border-radius: 3px }
.slot { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line) } .card > .slot:first-child, .cardhead + .slot { border-top: 0 }
.slot .time { width: 44px; flex: none; font-size: 14px; color: var(--muted) }
.slot .bar { width: 3px; align-self: stretch; border-radius: 2px; background: var(--acc-line, #8fb800); flex: none } .slot .bar.acc { background: var(--text) }
.slot .what { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0 } .slot .what b { font-weight: 600 }
.slot.done .what b { text-decoration: line-through; color: var(--muted) }
.mute { width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none } .mute svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round }
.tick { position: relative; width: 44px; height: 44px; flex: none; cursor: pointer } .tick input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 44px; height: 44px; min-height: 0; cursor: pointer }
.tick span { position: absolute; inset: 0; border: 2px solid var(--line2, #c3c6be); border-radius: 12px; background: var(--card) }
.tick input:checked + span { background: var(--acc); border-color: var(--acc) } .tick input:checked + span::after { content: ""; position: absolute; left: 15px; top: 9px; width: 9px; height: 17px; border: solid var(--acc-text); border-width: 0 3px 3px 0; transform: rotate(45deg) }
.tick input:focus-visible + span { outline: 3px solid #2b6cff; outline-offset: 2px }
.row .nm { font-weight: 600; display: block } .row > span { display: flex; flex-direction: column; gap: 2px }
.person { cursor: pointer; align-items: center } .person .grow { flex: 1; align-items: flex-start } .av { width: 44px; height: 44px; border-radius: 50%; background: var(--card2, #eef0ea); display: flex !important; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.tile2 { background: var(--card2, #eef0ea); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px } .tile2 span { font-size: 13px; color: var(--muted) } .tile2 b { font-size: 26px; font-weight: 700 }
.tile2.acc { background: var(--acc); color: var(--acc-text) } .tile2.acc span { color: inherit; opacity: .8 } .tile2.big b { font-size: 32px }
:root { --card2: #eef0ea; --line2: #c3c6be; --acc-line: #8fb800 }
@media (prefers-color-scheme: dark) { :root { --card2: #1f2427; --line2: #3a3f3b; --acc-line: #c6ff00 } .tile2.acc, .hero { color: #0d0f10 } }
