:root {
  --olive: #ADA74B; --olive-dim: #6f6a2c; --bg: #0d0d0c; --panel: #181816; --line: #2a2a26;
  --text: #f2f2ee; --muted: #9a9a90; --red: #d9534f; --green: #6fbf5f;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Rubik, system-ui, sans-serif; }
body { padding-bottom: 76px; }
button { font: inherit; color: inherit; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.logo { height: 30px; }
.who { font-size: 14px; color: var(--muted); }
.who b { color: var(--olive); }
main { padding: 16px; max-width: 720px; margin: 0 auto; }
h1 { font-size: 24px; font-weight: 800; margin: 4px 0 14px; }
h2 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; color: var(--olive); }
.muted { color: var(--muted); font-size: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.cls { display: flex; gap: 12px; align-items: center; width: 100%; text-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.cls .t { font-weight: 800; font-size: 18px; min-width: 52px; color: var(--olive); }
.cls .n { flex: 1; }
.cls .n div:first-child { font-weight: 700; }
.badge { font-size: 12px; padding: 3px 8px; border-radius: 99px; background: #262622; color: var(--muted); white-space: nowrap; }
.badge.ok { background: #1f3a1b; color: var(--green); }
.badge.low { background: #3d1c1b; color: var(--red); }
.days { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
.days button { flex: 0 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; cursor: pointer; }
.days button.on { background: var(--olive); color: #111; border-color: var(--olive); font-weight: 700; }
.member { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; }
.box { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--olive-dim); display: grid; place-items: center; font-weight: 800; color: #111; }
.member.on .box { background: var(--olive); border-color: var(--olive); }
.row { display: flex; gap: 8px; margin-top: 12px; }
input, select, textarea { font: inherit; color: var(--text); background: #111110; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.btn { background: var(--olive); color: #111; border: 0; border-radius: 10px; padding: 12px 16px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn:focus-visible, .cls:focus-visible, .days button:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat .v { font-size: 22px; font-weight: 800; }
.stat .l { font-size: 13px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: right; }
th { color: var(--muted); font-weight: 500; }
td.num { text-align: left; font-variant-numeric: tabular-nums; }
.task { display: flex; gap: 10px; align-items: flex-start; }
.task.done .txt { text-decoration: line-through; color: var(--muted); }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #121211; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.tabs button { flex: 1; background: none; border: 0; padding: 10px 2px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.tabs button .i { display: block; font-size: 20px; }
.tabs button.on { color: var(--olive); font-weight: 700; }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: var(--olive); color: #111; padding: 10px 18px; border-radius: 99px; font-weight: 700; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.login { text-align: center; padding-top: 40px; }
.login .btn { width: 100%; margin-bottom: 10px; }
iframe.syl { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.lang { background: transparent; border: 1px solid var(--olive); color: var(--olive); border-radius: 8px; padding: 3px 9px; font-weight: 700; cursor: pointer; margin-inline-start: 6px; }
th, td { text-align: start; }
td.num { text-align: end; }
.viewas { width: auto; padding: 5px 8px; font-size: 13px; border-color: var(--olive-dim); color: var(--olive); font-weight: 700; }
.pts .ptsTop { display: flex; justify-content: space-between; align-items: center; }
.pts .v { font-size: 30px; font-weight: 800; color: var(--olive); }
.pts .money { color: var(--green); }
.bar { height: 10px; background: #262622; border-radius: 99px; margin: 10px 0 6px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--olive); border-radius: 99px; }
.board { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.board span { font-size: 13px; background: #262622; padding: 4px 9px; border-radius: 99px; }
.board span.me { background: var(--olive); color: #111; font-weight: 700; }
.act { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.btn.small { padding: 8px 12px; font-size: 14px; }
.idea { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row input, .row select { flex: 1; min-width: 0; }
select { max-width: 100%; }
main { overflow-x: hidden; }
