:root {
  color-scheme: light;
  --ink: #142b25;
  --muted: #718078;
  --forest: #123f34;
  --forest-2: #1b5748;
  --lime: #d8ff82;
  --lime-2: #bbef60;
  --paper: #ffffff;
  --bg: #f3f7ef;
  --line: #dbe4dc;
  --danger: #b63535;
  --warning: #a6630c;
  --shadow: 0 14px 40px rgba(22, 62, 51, .10);
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 82% 2%, #eaffbd 0, transparent 24rem), var(--bg); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.app-shell { width: min(100%, 760px); min-height: 100dvh; margin: 0 auto; padding-bottom: calc(98px + env(safe-area-inset-bottom)); }
.legal-footer { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 16px; padding:22px 18px 12px; color:var(--muted); font-size:13px; }
.legal-footer a { color:var(--forest-2); font-weight:750; text-decoration-thickness:1px; text-underline-offset:3px; }
.topbar { display: grid; grid-template-columns: 52px 1fr 44px; gap: 12px; align-items: center; padding: calc(18px + env(safe-area-inset-top)) 20px 14px; position: sticky; top: 0; z-index: 10; background: rgba(243,247,239,.9); backdrop-filter: blur(18px); }
.brand-mark { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; overflow:hidden; background: var(--forest); box-shadow:0 8px 22px rgba(18,63,52,.18); }
.brand-mark img { width:100%; height:100%; display:block; }
.eyebrow { margin: 0 0 2px; color: var(--forest-2); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(24px, 6vw, 34px); letter-spacing: -.04em; }
h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
h3 { margin: 0; font-size: 17px; }
p { line-height: 1.45; }
.icon-button { border: 0; background: var(--paper); border-radius: 15px; width: 44px; height: 44px; box-shadow: 0 5px 18px rgba(22,62,51,.08); font-size: 20px; }
main { padding: 6px 18px 26px; }
.stack { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.card { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 26px; padding: 19px; box-shadow: var(--shadow); }
.hero { background: linear-gradient(145deg, var(--forest), #174d40); color: white; border: 0; overflow: hidden; position: relative; }
.hero::after { content:""; position: absolute; width: 190px; height: 190px; border-radius: 50%; right: -70px; top: -90px; background: rgba(216,255,130,.12); }
.hero .muted { color: #bdd1ca; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: #edf4ea; font-size: 13px; font-weight: 800; }
.pill.good { background: #e8f8cb; color: #315112; }
.pill.warn { background: #fff1d6; color: #754800; }
.pill.danger { background: #ffe4e2; color: #7a2020; }
.money { font-size: clamp(31px, 10vw, 48px); font-weight: 850; letter-spacing: -.055em; margin: 8px 0 2px; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 18px; }
.hero-stat { border-left: 1px solid rgba(255,255,255,.18); padding-left: 10px; }
.hero-stat:first-child { border: 0; padding-left: 0; }
.hero-stat strong { display: block; font-size: 17px; }
.hero-stat small { color: #bbccc6; }
.work-context { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:4px 2px; }
.work-context h2 { text-transform:capitalize; }
.live-earnings { padding:24px 20px 20px; }
.live-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.live-money { font-variant-numeric:tabular-nums; white-space:nowrap; }
.gross-total { text-align:right; padding-top:4px; }
.gross-total small { display:block; color:#b8cbc4; font-size:12px; font-weight:900; letter-spacing:.08em; }
.gross-total strong { display:block; margin-top:4px; color:white; font-size:18px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.live-caption { margin:2px 0 20px; }
.live-stats { border-top:1px solid rgba(255,255,255,.17); padding-top:17px; }
.live-accent { color:var(--lime); font-variant-numeric:tabular-nums; }
.counter-state { margin:-2px 0 14px; color:var(--muted); font-size:14px; font-weight:750; }
.clock-panel { text-align: center; }
.clock-time { font-size: clamp(48px, 16vw, 70px); font-weight: 300; letter-spacing: -.06em; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.clock-date { margin: 0 0 20px; color: var(--muted); text-transform: capitalize; }
.punch-button { width: min(270px, 76vw); aspect-ratio: 1; margin: 2px auto 18px; border: 12px solid #e7f2df; border-radius: 50%; background: var(--lime); color: var(--forest); font-size: 24px; font-weight: 900; box-shadow: 0 16px 40px rgba(53,108,77,.18), inset 0 -8px 0 rgba(72,124,52,.08); display: grid; place-items: center; }
.punch-button.pause { background: #ffd98b; }
.punch-button.end { background: #ffb5a9; }
.punch-button span { display: block; font-size: 13px; margin-top: 5px; font-weight: 750; }
.timeline { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.time-chip { padding: 8px 10px; border-radius: 12px; background: #eef4ec; font-size: 13px; }
.time-chip.done { background: var(--forest); color: white; }
.primary, .secondary, .danger-button { border: 0; border-radius: 15px; min-height: 48px; padding: 11px 16px; font-weight: 850; cursor: pointer; }
.primary { background: var(--lime); color: var(--forest); }
.secondary { background: #edf2ed; }
.danger-button { background: #ffe5e3; color: var(--danger); }
.full { width: 100%; }
.text-button { border: 0; background: transparent; color: var(--forest-2); font-weight: 850; padding: 6px; }
.list { display: grid; gap: 10px; }
.list-row { border: 1px solid var(--line); background: #fbfdf9; border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; }
.date-box { width: 48px; height: 48px; border-radius: 14px; background: #eaf2e5; display: grid; place-items: center; text-align: center; font-weight: 900; line-height: 1; }
.date-box small { display:block; font-size: 10px; color: var(--muted); text-transform: uppercase; }
.row-value { text-align: right; font-weight: 900; }
.row-value small { display:block; color:var(--muted); font-weight:600; }
.progress { height: 10px; border-radius: 999px; background: #e6ece5; overflow: hidden; margin: 10px 0 5px; }
.progress > span { height: 100%; display:block; background: linear-gradient(90deg,var(--lime-2),#72b758); border-radius: inherit; }
.summary-tile { border: 1px solid var(--line); border-radius: 19px; padding: 14px; background: #fbfdf9; }
.summary-tile strong { display: block; font-size: 21px; margin-top: 5px; }
.form-grid { display:grid; gap: 13px; }
label { display:grid; gap: 7px; font-size: 14px; font-weight: 800; }
input, select, textarea { width:100%; min-height: 48px; border:1px solid #cad6ce; border-radius: 14px; background:white; padding: 11px 13px; color:var(--ink); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid rgba(126,185,74,.35); outline-offset: 2px; }
.switch-row { display:flex; justify-content:space-between; gap:12px; align-items:center; padding: 12px 0; border-bottom:1px solid var(--line); }
.switch-row:last-child { border-bottom:0; }
.switch { appearance:none; width:52px; height:30px; border:0; border-radius:999px; background:#cbd5ce; position:relative; padding:0; flex: 0 0 auto; }
.switch::after { content:""; position:absolute; width:24px; height:24px; background:white; border-radius:50%; top:3px; left:3px; transition:.18s; box-shadow:0 2px 6px #0002; }
.switch:checked { background:var(--forest); }
.switch:checked::after { transform:translateX(22px); }
.upload { border: 2px dashed #aebeb3; border-radius: 22px; padding: 22px 16px; text-align:center; background:#fafff7; position: relative; }
.upload input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.upload strong { display:block; margin:8px 0 4px; }
.doc-icon { width:46px; height:46px; display:grid; place-items:center; border-radius:14px; background:#eaf5e1; font-weight:900; }
.document-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.document-tab { min-height:92px; border:1px solid var(--line); border-radius:20px; background:var(--paper); display:grid; place-items:center; align-content:center; gap:6px; padding:10px 5px; color:var(--forest-2); box-shadow:0 7px 18px rgba(22,62,51,.06); }
.document-tab span { font-size:23px; font-weight:900; }
.document-tab strong { font-size:13px; text-align:center; }
.document-tab.active { color:var(--lime); background:var(--forest); border-color:var(--forest); }
.letter-editor { min-height:370px; margin-top:2px; line-height:1.45; }
.document-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:12px; }
.document-safety { padding:0 8px; text-align:center; }
.more-card { width:100%; color:var(--ink); text-align:left; display:grid; grid-template-columns:48px 1fr auto; gap:13px; align-items:center; cursor:pointer; }
.more-card strong { display:block; font-size:18px; }
.more-card small { display:block; margin-top:4px; }
.more-arrow { font-size:32px; color:var(--forest-2); }
.alert { padding:13px 14px; border-radius:16px; background:#fff4dc; color:#6b440a; font-size:14px; }
.success { padding:13px 14px; border-radius:16px; background:#ebf8d6; color:#365616; font-size:14px; }
.empty { padding:28px 14px; text-align:center; color:var(--muted); }
.bottom-nav { position:fixed; z-index:20; bottom:10px; left:50%; transform:translateX(-50%); width:min(calc(100% - 20px),720px); min-height:76px; padding:8px; padding-bottom:max(8px, env(safe-area-inset-bottom)); border-radius:25px; background:#18352e; box-shadow:0 12px 35px #0d2b2455; display:grid; grid-template-columns:repeat(6,1fr); gap:3px; }
.nav-item { border:0; background:transparent; color:#96aaa3; border-radius:18px; display:grid; place-items:center; gap:2px; padding:7px 2px; min-width:0; }
.nav-item span { font-size:22px; line-height:1; }
.nav-item small { font-size:9px; font-weight:800; white-space:nowrap; }
.nav-item.active { background:var(--lime); color:var(--forest); }
.modal { width:min(92vw,560px); max-height:88dvh; border:0; border-radius:28px; padding:0; box-shadow:0 26px 70px #06281f55; }
.modal::backdrop { background:#102b246b; backdrop-filter:blur(4px); }
.modal-inner { padding:22px; overflow:auto; max-height:88dvh; }
.modal-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:18px; }
.toast { position:fixed; z-index:50; left:50%; bottom:105px; transform:translate(-50%,20px); background:#102d25; color:white; padding:12px 16px; border-radius:14px; opacity:0; pointer-events:none; transition:.25s; width:max-content; max-width:calc(100% - 34px); text-align:center; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.tabs { display:flex; gap:8px; overflow:auto; scrollbar-width:none; padding-bottom:4px; }
.period-tabs { display:grid; grid-template-columns:repeat(4,1fr); overflow:visible; }
.period-tabs .tab { min-width:0; padding-inline:8px; }
.period-head { display:grid; grid-template-columns:44px 1fr 44px; gap:12px; align-items:center; text-align:center; }
.hours-bar { display:flex; height:15px; overflow:hidden; border-radius:999px; background:#2a574c; margin:18px 0 11px; }
.hours-bar span { min-width:0; transition:width .25s ease; }
.hours-normal { background:var(--lime); }
.hours-25 { background:#ffd374; }
.hours-50 { background:#ff9588; }
.legend { display:flex; flex-wrap:wrap; gap:8px 15px; font-size:12px; color:#d7e4df; }
.legend span { display:flex; align-items:center; gap:6px; }
.legend i { width:9px; height:9px; border-radius:50%; background:var(--lime); }
.legend i.plus25 { background:#ffd374; }
.legend i.plus50 { background:#ff9588; }
.week-grid { display:grid; gap:10px; }
.week-card { padding:14px; border:1px solid var(--line); border-radius:18px; background:#fbfdf9; }
.week-card .section-head { margin-bottom:8px; }
.week-card small { display:block; color:var(--muted); margin-top:3px; }
.mini-bar { height:7px; overflow:hidden; border-radius:999px; background:#ffe5d3; }
.mini-bar span { display:block; height:100%; border-radius:inherit; background:var(--forest-2); }
.week-numbers { display:flex; justify-content:space-between; gap:12px; margin-top:8px; color:var(--muted); font-size:13px; }
.week-numbers .overtime { color:var(--warning); font-weight:850; }
.month-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.month-grid .summary-tile span { display:block; font-size:12px; margin-top:5px; }
.tab { flex:0 0 auto; border:0; border-radius:999px; padding:9px 13px; background:#e8eee8; font-weight:800; }
.tab.active { background:var(--forest); color:white; }
.kpi-line { display:flex; justify-content:space-between; gap:15px; padding:10px 0; border-bottom:1px solid var(--line); }
.kpi-line:last-child { border-bottom:0; }
.kpi-line strong { text-align:right; }
.danger-link { color:var(--danger); }
.guide-list { display:grid; gap:10px; counter-reset:guide; }
.guide-step { display:grid; grid-template-columns:34px 1fr; gap:11px; align-items:start; padding:10px 0; border-bottom:1px solid var(--line); }
.guide-step:last-child { border-bottom:0; }
.guide-step::before { counter-increment:guide; content:counter(guide); width:30px; height:30px; border-radius:10px; display:grid; place-items:center; background:#e8f8cb; color:#315112; font-weight:900; }
.feature-guide { display:grid; gap:0; }
.feature-item { padding:16px 0; border-bottom:1px solid var(--line); }
.feature-item:last-child { border-bottom:0; padding-bottom:0; }
.feature-item h3 { margin-bottom:6px; color:var(--forest); }
.feature-item p { margin:0; color:var(--muted); }
.feature-item strong { display:block; margin-top:7px; color:#4b7423; font-size:14px; }
.help-search { margin-top:14px; }
.faq-list { display:grid; gap:9px; margin-top:14px; }
.faq-item { border:1px solid var(--line); border-radius:17px; background:#fbfdf9; overflow:hidden; }
.faq-item summary { cursor:pointer; list-style:none; padding:14px 46px 14px 15px; font-weight:850; line-height:1.35; position:relative; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:"+"; position:absolute; right:16px; top:50%; transform:translateY(-50%); font-size:24px; color:var(--forest-2); }
.faq-item[open] summary::after { content:"−"; }
.faq-category { display:block; margin-bottom:4px; color:var(--forest-2); font-size:11px; font-weight:900; letter-spacing:.1em; }
.faq-answer { margin:0; padding:0 15px 15px; color:var(--muted); }
.network-hero { position:relative; overflow:hidden; }
.network-hero:after { content:""; position:absolute; width:180px; height:180px; border:1px solid rgba(219,255,135,.18); border-radius:50%; right:-70px; top:-70px; box-shadow:0 0 0 28px rgba(219,255,135,.05),0 0 0 56px rgba(219,255,135,.025); }
.network-shield { display:flex; align-items:center; gap:10px; margin-top:16px; padding:12px 14px; border:1px solid rgba(219,255,135,.28); border-radius:16px; background:rgba(219,255,135,.08); color:var(--lime); }
.network-shield span { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--lime); color:var(--forest); font-weight:900; }
.privacy-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; }
.privacy-grid span { padding:11px; border-radius:13px; background:#eff6f1; color:var(--forest); font-size:13px; font-weight:700; }
.consent-check { display:flex!important; flex-direction:row!important; align-items:flex-start; gap:10px; padding:12px; border-radius:14px; background:#f5f8f6; font-size:13px; line-height:1.4; }
.consent-check input { width:20px; height:20px; flex:0 0 auto; margin-top:1px; }
.network-alerts { display:grid; gap:10px; margin:14px 0; }
.network-alert { display:flex; justify-content:space-between; gap:14px; padding:14px; border:1px solid var(--line); border-radius:16px; background:#fbfdfb; }
.network-alert h3 { margin:8px 0 3px; font-size:16px; }
.network-alert p { margin:0; }
.network-proof { align-self:end; color:var(--muted); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; white-space:nowrap; }
.payload-preview { white-space:pre-wrap; overflow-wrap:anywhere; padding:14px; border-radius:14px; background:#102f29; color:#dfff87; font-size:12px; line-height:1.55; }
@media (max-width: 430px) {
  main { padding-inline: 12px; }
  .topbar { padding-inline: 14px; }
  .card { padding: 16px; border-radius:22px; }
  .hero-stats { grid-template-columns:1fr 1fr; }
  .hero-stat:last-child { grid-column:1/-1; border-left:0; padding-left:0; padding-top:8px; border-top:1px solid rgba(255,255,255,.18); }
  .live-stats { grid-template-columns:repeat(3,1fr); }
  .live-stats .hero-stat:last-child { grid-column:auto; border-left:1px solid rgba(255,255,255,.18); padding-left:10px; padding-top:0; border-top:0; }
  .live-stats .hero-stat strong { font-size:15px; }
  .grid-3 { grid-template-columns:1fr 1fr; }
  .month-grid { grid-template-columns:1fr; }
  .period-tabs .tab { font-size:12px; }
  .list-row { grid-template-columns:44px 1fr; }
  .row-value { grid-column:2; text-align:left; }
  .document-tab { min-height:82px; }
  .document-tab strong { font-size:12px; }
  .document-actions { grid-template-columns:1fr; }
  .privacy-grid { grid-template-columns:1fr; }
  .network-alert { flex-direction:column; }
  .network-proof { align-self:start; }
}
@media (min-width: 820px) {
  body { padding:24px 0; }
  .app-shell { min-height:calc(100dvh - 48px); border-radius:32px; background:rgba(243,247,239,.74); box-shadow:0 22px 70px #173c3220; }
}
