:root {
  --ink: #142138; --ink-2: #44506a; --muted: #6b7489; --line: #e3e7ee; --canvas: #f4f6f9; --card: #fff;
  --brand: #cc4b00; --brand-soft: #fff1e8; --good: #1f7a4d; --good-soft: #e8f5ee; --warn: #9a6200; --warn-soft: #fdf3e1;
  --bad: #b42318; --bad-soft: #fdecea; --blue: #2457a6; --blue-soft: #e9f0fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); font-size: 14px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); } .center { text-align: center; } .pad { padding: 48px 16px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 20px 16px 64px; }

.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -.01em; } .brand span { color: var(--brand); }
.who { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.card h2 { font-size: 17px; margin: 0; } .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

.shares { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.share { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.share .n { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.share .l { color: var(--muted); font-size: 12.5px; } .share.me { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.share.un { background: #fafbfc; border-style: dashed; }
.bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin: -4px 0 18px; background: var(--line); }
.bar i { display: block; } .c-jash { background: var(--ink); } .c-neha { background: #3b7dd8; } .c-bharath { background: var(--brand); } .c-un { background: #d5dae3; }

.btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 14px; min-height: 38px; cursor: pointer; font-weight: 600; }
.btn:hover { border-color: #c8cfdb; } .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; } .btn.small { min-height: 32px; padding: 5px 10px; font-size: 13px; }
.btn.link { border: 0; background: none; padding: 4px; color: var(--ink-2); font-weight: 500; } .btn[disabled] { opacity: .55; cursor: default; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.group { margin-top: 14px; } .group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.feat { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: #fff; }
.feat > summary { list-style: none; cursor: pointer; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.feat > summary::-webkit-details-marker { display: none; }
.feat .t { font-weight: 600; } .feat .meta { color: var(--muted); font-size: 12.5px; grid-column: 1 / -1; }
.feat .body { padding: 0 12px 12px; border-top: 1px solid var(--line); }
.feat .desc { white-space: pre-wrap; margin: 10px 0; color: var(--ink-2); }
.pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.p-open { background: #eef0f4; color: var(--ink-2); } .p-working { background: var(--blue-soft); color: var(--blue); }
.p-done { background: var(--warn-soft); color: var(--warn); } .p-approved, .p-history { background: var(--good-soft); color: var(--good); }
.p-submitted { background: var(--warn-soft); color: var(--warn); } .p-sent_back { background: var(--bad-soft); color: var(--bad); }
.person { font-weight: 600; color: var(--ink-2); }
.note { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 8px 10px; margin: 8px 0; white-space: pre-wrap; }
.okbox { background: var(--good-soft); border-radius: 8px; padding: 8px 10px; margin: 8px 0; white-space: pre-wrap; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

form.stack { display: grid; gap: 10px; } label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
input, select, textarea { border: 1px solid #cfd5df; border-radius: 8px; padding: 8px 10px; min-height: 38px; background: #fff; font-weight: 400; font-size: 14px; }
textarea { min-height: 76px; resize: vertical; } input:focus, select:focus, textarea:focus, .btn:focus-visible, .chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.grid-hours { display: grid; grid-template-columns: 2fr 110px; gap: 10px; }
.hint { color: var(--muted); font-size: 12.5px; font-weight: 400; } .err { color: var(--bad); font-weight: 600; min-height: 1em; }

table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; } td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.week { display: flex; align-items: center; gap: 6px; font-weight: 600; }

.review { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.review .top2 { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.login { max-width: 380px; margin: 10vh auto; } .login h1 { font-size: 24px; margin: 0 0 4px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

dialog { border: 0; border-radius: 12px; padding: 0; width: min(520px, 94vw); box-shadow: 0 20px 60px rgba(20, 33, 56, .25); }
dialog::backdrop { background: rgba(20, 33, 56, .4); } dialog .in { padding: 18px; } dialog h2 { margin: 0 0 12px; font-size: 18px; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; }
#toast.on { opacity: 1; }

@media (max-width: 720px) {
  .shares { grid-template-columns: repeat(2, 1fr); } .grid-hours { grid-template-columns: 1fr 90px; }
  .hide-sm { display: none; }
}

.accent { color: var(--brand); } .lead { margin: 0 0 16px; } .tight { margin: 6px 0 0; } .flush { margin: 0; } .gap { margin-top: 12px; }
.lines { list-style: none; padding: 0; margin: 14px 0 0; }
.lines li { border-top: 1px solid var(--line); padding: 10px 0; }
.line-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.line-h { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-total { display: flex; justify-content: space-between; font-weight: 600; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 12px; overflow-x: auto; }
.tab { border: 0; background: none; padding: 10px 12px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.tab .count { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: #eef0f4; color: var(--ink-2); font-size: 12px; margin-left: 4px; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.search { width: 220px; min-height: 34px; } .empty { padding: 18px 0; text-align: center; }
.more { width: 100%; margin-top: 4px; }
@media (max-width: 720px) { .search { width: 100%; } }

.board { padding: 20px 20px 12px; }
.board-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 10px; }
.board-head h2 { font-size: 20px; }
.tabs.slim { border: 0; margin: 0; }
.ranks { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; }
.rank { display: grid; grid-template-columns: 36px 110px 1fr 110px 90px 90px; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; }
.rank + .rank { border-top: 1px solid var(--line); }
.rank.me { background: var(--brand-soft); }
.pos { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #eef0f4; color: var(--ink-2); }
.pos-1 { background: var(--ink); color: #fff; } .pos-2 { background: #c9d1de; color: var(--ink); } .pos-3 { background: #ead8c8; color: var(--ink); }
.rname { font-weight: 700; font-size: 16px; }
.rbar { height: 10px; background: #eef0f4; border-radius: 99px; overflow: hidden; } .rbar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.stat { display: grid; text-align: right; line-height: 1.2; } .stat b { font-size: 18px; font-variant-numeric: tabular-nums; } .stat small { color: var(--muted); font-size: 11.5px; }
.board .hint { margin: 10px 0 0; }
.bar.big { height: 14px; margin: 0 0 14px; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.legend li.me { background: var(--brand-soft); } .legend b { font-variant-numeric: tabular-nums; font-size: 16px; }
.dot { width: 12px; height: 12px; border-radius: 3px; display: block; }
@media (max-width: 720px) {
  .rank { grid-template-columns: 30px 1fr 84px 70px; gap: 8px; } .rbar { display: none; }
  .legend { grid-template-columns: 1fr; }
}

.earn { display: flex; align-items: center; gap: 20px; border-color: var(--brand); background: linear-gradient(90deg, var(--brand-soft), #fff 60%); }
.earn-n { display: grid; text-align: center; min-width: 110px; } .earn-n span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.earn-n b { font-size: 40px; line-height: 1.1; color: var(--brand); font-variant-numeric: tabular-nums; }
.earn-t p { margin: 2px 0; } .earn-rule { font-size: 15px; font-weight: 600; }
.tags { display: inline-flex; gap: 6px; } .pill.plus { background: var(--brand); color: #fff; }
@media (max-width: 720px) { .earn { gap: 12px; } .earn-n { min-width: 80px; } .earn-n b { font-size: 32px; } }
@media (max-width: 720px) { .stat.hide-sm { display: none; } .rank { grid-template-columns: 30px 1fr 84px 64px; } }
