/* Employee app — calm, professional, big touch targets. Phone first; ≥900px = menu · list · task pane. */
body { font-size: 16px; background: #f4f5f2; }
.shell { min-height: 100vh; }
.main { padding: 18px 16px 110px; max-width: 760px; margin: 0 auto; }
.pane { display: none; }

/* ---- navigation: bottom bar on phones ---- */
.nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; background: #fff;
  border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.nav .brand, .nav .nav-foot { display: none; }
.nav a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: #6b7280;
  text-decoration: none; font-size: 12px; font-weight: 600; border-radius: 12px; }
.nav a.on { color: var(--brand); }
.nav a.on svg { stroke-width: 2.4; }
.badge-n { position: absolute; top: 2px; left: 54%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand);
  color: #fff; font: 700 11px/18px Inter, system-ui, sans-serif; font-style: normal; text-align: center; }
.badge-n.warn { background: var(--red); }

/* ---- greeting + today ---- */
.hello { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.hello h1 { font-size: 24px; }
.hello p { margin: 2px 0 0; }
.today { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.today-top b { font-size: 20px; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: #e8ebe6; overflow: hidden; margin-top: 8px; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .4s; }
.bar.thin { height: 5px; margin-top: 6px; }

/* ---- notice (turn on notifications) ---- */
.notice { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: #eef6f1; border: 1px solid #cfe6d9;
  border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.notice b { display: block; } .notice span { font-size: 14px; color: #3f4a45; }

/* ---- now working ---- */
.now { background: #0f3d2e; color: #fff; border-radius: 18px; padding: 16px; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(15,61,46,.25); cursor: pointer; }
.now .row-client { color: #a7d7c0; }
.now-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a7d7c0; display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74,222,128,.05); } }
.now-title { font-size: 18px; font-weight: 650; margin: 2px 0 8px; }
.now-clock { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.now-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.now .btn.big { margin: 0; border: 0; } .now .btn:not(.primary) { background: rgba(255,255,255,.12); color: #fff; }
.now .btn.primary { background: #fff; color: #0f3d2e; }

/* ---- blocks & rows ---- */
.block { margin: 18px 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 10px; }
.block-head.page { margin: 4px 0 12px; } .block-head.page h1 { font-size: 24px; }
.block h2, .fold summary h2 { font-size: 17px; display: inline; }
.count { font-size: 13px; font-weight: 700; color: #5b6472; background: #e8ebe6; border-radius: 99px; padding: 1px 8px; margin-left: 4px; vertical-align: 2px; }
.fold { background: #fff; border-radius: 16px; padding: 4px 12px; box-shadow: var(--shadow); }
.fold summary { cursor: pointer; padding: 10px 2px; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: 'Show'; position: absolute; right: 28px; font-size: 13px; color: var(--brand); font-weight: 600; }
.fold { position: relative; } .fold[open] summary::after { content: 'Hide'; }
.fold .list { padding-bottom: 10px; }
.list { display: grid; gap: 8px; }
.row { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); cursor: pointer; border: 1.5px solid transparent; }
.fold .row { box-shadow: none; border-color: var(--line); }
.row:hover, .row:focus-visible { border-color: #b8d8c8; outline: none; }
.row-main { flex: 1; min-width: 0; }
.row-client { font-size: 13px; font-weight: 650; color: #5b6472; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title { font-weight: 650; line-height: 1.3; margin: 2px 0 6px; }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: #5b6472; }
.row-note { font-size: 13px; margin: -2px 0 6px; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.due { font-weight: 650; } .due.late, .late { color: var(--red); } .due.soon { color: var(--amber); }
.btn.start { flex: 0 0 auto; width: auto; padding: 0 18px; background: var(--brand); color: #fff; border: 0; min-width: 98px; min-height: 46px; border-radius: 12px; font-size: 15px; }
.btn.start:hover { background: var(--brand-2); }
.btn.soft { background: var(--blue-soft); color: var(--blue); border: 0; min-height: 46px; border-radius: 12px; }
.btn.add { width: 100%; border-style: dashed; color: #5b6472; min-height: 52px; background: transparent; margin-top: 8px; }
.btn.icon-only { padding: 8px; border-radius: 10px; flex: 0 0 auto; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.p-gray { background: var(--gray-soft); color: #4b5563; } .p-blue { background: var(--blue-soft); color: var(--blue); } .p-green { background: var(--brand-soft); color: var(--brand); }
.p-amber { background: var(--amber-soft); color: var(--amber); } .p-purple { background: var(--purple-soft); color: var(--purple); } .p-teal { background: var(--teal-soft); color: var(--teal); }
.lvl { font-size: 12px; font-weight: 700; color: var(--purple); background: var(--purple-soft); border-radius: 8px; padding: 2px 8px; }
.empty { display: flex; flex-direction: column; gap: 4px; text-align: center; padding: 36px 20px; color: #5b6472; background: #fff; border-radius: 16px; }
.empty b { color: var(--ink); font-size: 17px; }

/* ---- alerts ---- */
.group { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #5b6472; margin: 16px 0 8px; }
.alert { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); cursor: pointer; }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; flex: 0 0 auto; background: transparent; }
.alert.unread .alert-dot { background: var(--brand); } .alert.unread .row-title { font-weight: 750; }
.alert:not(.unread) { opacity: .78; }
.alert-kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #5b6472; }
.k-sent_back .alert-kind { color: var(--red); } .k-review .alert-kind { color: var(--purple); } .k-kudos .alert-kind, .k-milestone .alert-kind { color: var(--brand); }

/* ---- progress ---- */
.card { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card h2 { font-size: 17px; margin-bottom: 10px; }
.score { display: flex; gap: 16px; align-items: center; }
.ring { width: 118px; flex: 0 0 auto; }
.ring-bg { fill: none; stroke: #e8ebe6; stroke-width: 11; } .ring-fg { fill: none; stroke: var(--brand); stroke-width: 11; stroke-linecap: round; }
.ring-num { font: 750 32px Inter, system-ui, sans-serif; fill: var(--ink); } .ring-sub { font: 600 11px Inter, system-ui, sans-serif; fill: #6b7280; }
.tier { font-size: 22px; font-weight: 750; color: var(--brand); }
.score-text p { margin: 4px 0 8px; font-size: 14px; }
.streak { font-size: 14px; background: var(--brand-soft); color: #0b5940; border-radius: 10px; padding: 6px 10px; display: inline-block; }
.comp { margin: 12px 0; } .comp-top { display: flex; justify-content: space-between; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis div { background: #f7f8f6; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; }
.kpis b { font-size: 22px; font-variant-numeric: tabular-nums; } .kpis span { font-size: 13px; color: #5b6472; }
.up { color: var(--brand); font-weight: 700; } .down { color: var(--amber); font-weight: 700; }
.ms { display: grid; gap: 10px; }
.m { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.m-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #6b7280; background: #f1f3ef; }
.m.earned { border-color: #cfe6d9; background: #f6fbf8; } .m.earned .m-mark { background: var(--brand); color: #fff; font-size: 20px; }
.earned-on { color: var(--brand); font-weight: 600; margin-top: 2px; }
.team { margin: 0; padding-left: 22px; } .team li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.team li span { display: inline-block; width: calc(100% - 40px); } .team li.me { font-weight: 700; color: var(--brand); }
.actions.left { justify-content: flex-start; margin-top: 4px; }
.steps { padding-left: 20px; } .steps li { margin: 6px 0; }

/* ---- task sheet ---- */
.sheet-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.sheet-head h3 { font-size: 19px; margin: 2px 0 6px; }
.info { background: var(--purple-soft); color: #4c1d95; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.primary-actions { margin: 10px 0 4px; } .primary-actions .btn.big { margin-top: 8px; min-height: 52px; }
.two { display: flex; gap: 10px; } .two > * { flex: 1; }
.check { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 15px; margin: 10px 0; }
.check input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--brand); }
.modal section, .pane section { margin-top: 18px; }
.modal h4, .pane h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #5b6472; }
.msg { background: #f7f8f6; border-radius: 12px; padding: 10px; margin-bottom: 8px; } .msg-body { white-space: pre-wrap; font-size: 14px; margin-top: 4px; }
.events { margin-top: 10px; } .ev { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pick { display: grid; gap: 6px; margin-top: 6px; }
.pick-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #f7f8f6; border: 0; font: inherit; text-align: left; cursor: pointer; }
.ob-step { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.ob-dots { display: flex; gap: 6px; margin-top: 10px; } .ob-dots span { width: 8px; height: 8px; border-radius: 50%; background: #d7dbd4; } .ob-dots span.on { background: var(--brand); width: 22px; border-radius: 4px; }

/* ---- desktop: menu · list · task pane ---- */
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 220px minmax(380px, 1fr) minmax(380px, 460px); height: 100vh; }
  .nav { position: static; flex-direction: column; justify-content: flex-start; gap: 4px; border: 0; border-right: 1px solid var(--line); padding: 18px 12px; }
  .nav .brand { display: flex; gap: 10px; align-items: center; font-weight: 750; padding: 0 10px 18px; font-size: 16px; color: var(--ink); }
  .nav .brand .logo { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }
  .nav a { flex: 0 0 auto; flex-direction: row; gap: 12px; padding: 11px 12px; font-size: 15px; }
  .nav a.on { background: var(--brand-soft); }
  .badge-n { position: static; margin-left: auto; }
  .nav .nav-foot { display: block; margin-top: auto; padding: 0 12px; }
  .main { max-width: none; width: 100%; padding: 26px 28px 40px; overflow-y: auto; }
  .hello { flex-direction: row; justify-content: space-between; align-items: center; }
  .today { min-width: 260px; }
  .pane { display: block; background: #fff; border-left: 1px solid var(--line); overflow-y: auto; }
  .pane-inner { padding: 22px 22px 40px; }
  .pane-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #6b7280; padding: 40px; text-align: center; }
  .pane-empty b { color: var(--ink); }
  .row.is-open { border-color: var(--brand); }
}

.ms-more summary { cursor: pointer; color: var(--brand); font-weight: 650; padding: 8px 0; list-style: none; }
/* Points & leaderboard */
.pts-chip { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 13px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); align-self: flex-start; }
.pts-chip svg { color: var(--brand); } .pts-chip[hidden] { display: none; }
.points-hero { background: linear-gradient(135deg, #0f3d2e, #14573f); color: #fff; }
.ph-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ph-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #a7d7c0; font-weight: 650; }
.ph-num { font-size: 44px; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; } .ph-num span { font-size: 16px; font-weight: 600; color: #cfe9dd; }
.ph-rank { text-align: center; background: rgba(255,255,255,.12); border-radius: 14px; padding: 8px 14px; } .ph-rank b { display: block; font-size: 24px; } .ph-rank span { font-size: 12px; color: #cfe9dd; }
.ph-next { margin: 6px 0 0; color: #e3f3eb; font-size: 14px; } .ph-next:empty { display: none; }
.ph-break { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; } .ph-break span { background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.seg { display: inline-flex; background: #f0f2ef; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; color: #5b6472; cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.board { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.board li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; }
.board li.me { background: var(--brand-soft, #e7f4ee); font-weight: 650; } .board li.gap { justify-content: center; color: #9aa3ad; padding: 0; }
.board .b-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .board b { font-variant-numeric: tabular-nums; }
.medal, .rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 750; font-size: 13px; flex: 0 0 auto; }
.rank { color: #6b7280; background: #f3f4f2; }
.medal.m1 { background: #f4e3b5; color: #7a5a00; } .medal.m2 { background: #e5e7eb; color: #374151; } .medal.m3 { background: #f1d9c7; color: #7c3f12; }
.how { margin-top: 10px; } .how summary { cursor: pointer; color: var(--brand); font-weight: 650; font-size: 14px; }
.how ul { list-style: none; padding: 0; margin: 8px 0; } .how li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f2ef; font-size: 14px; } .how li b { color: var(--brand); }
.kudo { padding: 10px 0; border-bottom: 1px solid #f0f2ef; } .kudo:last-of-type { border-bottom: 0; }
/* Several timers: the first is big, the rest compact */
.now.compact { padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; }
.now.compact .now-label { display: none; } .now.compact .now-title { font-size: 15px; grid-column: 1; }
.now.compact .row-client { grid-column: 1; }
.now.compact .now-clock { font-size: 22px; grid-column: 2; grid-row: 1 / span 2; }
.now.compact .now-actions { grid-column: 1 / -1; margin-top: 8px; } .now.compact .btn.big { min-height: 40px; font-size: 14px; }
#board .block-head { flex-wrap: wrap; gap: 8px; } .seg button { white-space: nowrap; }
