: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; }
