:root{
  --nb-dark:#565a5c;
  --nb-dark-2:#474b4d;
  --nb-green:#36782d;
  --nb-green-2:#5f9a55;
  --nb-green-soft:#e9f2e7;
  --nb-purple:#b0a0c7;
  --nb-purple-soft:#f1edf8;
  --nb-bg:#f6f7f5;
  --nb-card:#ffffff;
  --nb-line:#dfe5de;
  --nb-text:#26302b;
  --nb-muted:#6f7a73;
  --nb-shadow:0 10px 30px rgba(50,56,52,.08);
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--nb-text);
  background:
    radial-gradient(circle at top right, rgba(176,160,199,.14), transparent 28%),
    linear-gradient(180deg,#fafbfa 0%, #f4f6f3 100%);
  font-synthesis:none;
  -webkit-tap-highlight-color:transparent
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--nb-bg)}
body{margin:0;min-height:100vh;color:var(--nb-text)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.45}
a{color:var(--nb-green)}
.app-shell{max-width:630px;margin:0 auto;padding:0 16px 110px}
.brand-top{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:16px 0 10px;margin-top:6px
}
.brand-mark{
  background:linear-gradient(180deg,#fff 0%,#f9faf8 100%);
  border:1px solid #e3e7e2;border-radius:18px;width:176px;height:88px;
  display:flex;align-items:center;justify-content:center;overflow:hidden;
  box-shadow:var(--nb-shadow);position:relative
}
.brand-mark::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:4px;
  background:linear-gradient(90deg,var(--nb-purple) 0 26%, transparent 26% 32%, var(--nb-green) 32% 100%);
}
.brand-mark img{display:block;width:162px;height:auto}
.brand-label{text-align:right;display:flex;flex-direction:column;gap:5px;min-width:0}
.brand-label span{font-size:10px;letter-spacing:.2em;font-weight:900;color:var(--nb-muted);text-transform:uppercase}
.brand-label strong{font-size:16px;letter-spacing:-.02em;color:var(--nb-dark);line-height:1.15}
.brand-label small{font-size:12px;color:var(--nb-green);font-weight:800}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-weight:900;color:var(--nb-dark);text-transform:uppercase;
  letter-spacing:.12em;font-size:11px;margin:0 0 10px
}
.eyebrow::before{content:"";width:28px;height:4px;border-radius:999px;background:var(--nb-purple);display:inline-block}
.hero-title{font-size:30px;letter-spacing:-.05em;line-height:1.08;margin:0 0 7px;color:var(--nb-dark)}
.muted{font-size:13px;color:var(--nb-muted);line-height:1.45}
.hero-row{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin:22px 0 18px}
.live-time{
  font-size:23px;font-variant-numeric:tabular-nums;letter-spacing:-.045em;
  font-weight:900;color:var(--nb-green);white-space:nowrap;margin-top:21px;
  background:var(--nb-card);padding:10px 12px;border-radius:14px;border:1px solid #e6ebe5;
  box-shadow:0 4px 16px rgba(49,64,56,.05)
}
.panel{
  background:linear-gradient(180deg,#fff 0%,#fcfcfb 100%);
  border:1px solid var(--nb-line);border-radius:22px;padding:19px;margin:0 0 14px;
  box-shadow:var(--nb-shadow)
}
.panel h2{font-size:16px;letter-spacing:-.02em;margin:0 0 14px;color:var(--nb-dark)}
.field{margin:12px 0}
.field label, .dialog-form label{display:block;font-size:12px;font-weight:900;color:var(--nb-dark);margin:0 0 7px}
.field input,.field select,.field textarea,.dialog-form input,.dialog-form textarea{
  display:block;width:100%;border:1px solid #d5ddd4;border-radius:14px;padding:13px 14px;
  background:#fbfcfb;color:var(--nb-text);outline:none;font-size:16px;min-height:49px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9)
}
.field input:focus,.field select:focus,.field textarea:focus,.dialog-form input:focus,.dialog-form textarea:focus{
  border-color:var(--nb-green);box-shadow:0 0 0 3px rgba(54,120,45,.15)
}
.field textarea,.dialog-form textarea{min-height:94px;resize:vertical;line-height:1.45}
.hint{display:block;color:#7c887f;font-size:12px;margin:7px 0}
.status-box{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  background:linear-gradient(180deg,#f7faf7 0%,#eef5ef 100%);
  border:1px solid #dde7de;padding:13px;border-radius:16px;margin-bottom:12px
}
.status-box .status-text{font-size:13px;font-weight:900;color:var(--nb-dark)}
.status-box .status-detail{font-size:12px;color:#648071;margin-top:4px}
.status-pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:900;white-space:nowrap;background:#eceeed;color:#58615b;border-radius:30px;padding:7px 10px}
.status-pill.on{background:#e7f5e5;color:var(--nb-green)}
.dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:currentColor}
.punch-row{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:16px 0 12px}
.punch-btn{
  padding:18px 9px;min-height:97px;border:0;border-radius:18px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:7px;font-weight:950;letter-spacing:.03em;font-size:18px;
  color:white;box-shadow:0 8px 18px rgba(35,42,37,.18)
}
.punch-btn small{font-weight:600;font-size:11px;letter-spacing:0;opacity:.9}
.punch-btn.start{background:linear-gradient(180deg,var(--nb-green-2) 0%,var(--nb-green) 100%)}
.punch-btn.stop{background:linear-gradient(180deg,#707577 0%,var(--nb-dark) 100%)}
.punch-btn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.punch-btn:disabled{box-shadow:none;background:#e7ebe7;color:#97a199;opacity:1}
.primary-btn,.secondary-btn,.quiet-btn,.danger-btn{
  border:0;border-radius:12px;padding:12px 15px;min-height:43px;font-size:13px;font-weight:900
}
.primary-btn{color:white;background:linear-gradient(180deg,var(--nb-green-2) 0%,var(--nb-green) 100%)}
.secondary-btn{background:var(--nb-purple-soft);color:#5d4c7d}
.quiet-btn{background:transparent;color:var(--nb-green);padding:7px 5px;min-height:33px}
.danger-btn{background:#f7e9e8;color:#9c3b2b}
.text-btn{border:0;background:none;color:var(--nb-green);font-size:12px;font-weight:900;padding:8px 0}
.flex-between{display:flex;justify-content:space-between;align-items:center;gap:12px}
.mini-title{font-size:16px;letter-spacing:-.01em;font-weight:900;margin:0;color:var(--nb-dark)}
.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:10px 0 16px}
.summary-card{
  border-radius:18px;padding:15px 16px;
  background:linear-gradient(180deg,#edf4eb 0%,#e5efe3 100%);
  border:1px solid #dce7da
}
.summary-card.alt{
  background:linear-gradient(180deg,#f5f1fb 0%,#efe9f8 100%);
  border-color:#e6def3
}
.summary-card strong{display:block;font-size:26px;font-weight:900;letter-spacing:-.05em;margin-top:5px;color:var(--nb-dark);font-variant-numeric:tabular-nums}
.summary-card.alt strong{color:#5a4a77}
.summary-card span{color:#667e6e;font-size:12px;font-weight:800}
.record{padding:14px 0;border-top:1px solid #e8eee8}
.record:first-child{border-top:0}
.record-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.record-title{font-weight:900;font-size:14px;color:var(--nb-dark)}
.record-sub{font-size:12px;color:#77897c;margin:5px 0}
.record-hrs{font-size:18px;font-weight:950;color:var(--nb-green);font-variant-numeric:tabular-nums;white-space:nowrap}
.record-note{font-size:13px;white-space:pre-wrap;color:#485c50;margin:8px 0 0;overflow-wrap:anywhere}
.record-actions{display:flex;gap:9px;margin-top:6px}
.record-actions button{font-size:12px}
.empty{text-align:center;padding:21px 7px;color:#7b9181;font-size:13px;line-height:1.6}
.empty-icon{font-size:29px;display:block;margin-bottom:7px}
.section-label{margin:24px 0 12px;font-size:14px;font-weight:900;color:#526b5c;letter-spacing:.02em}
.job-card{background:linear-gradient(180deg,#fbfcfb 0%,#f7f9f7 100%);border:1px solid #e0e8df;padding:15px;border-radius:16px;margin:9px 0}
.job-card strong{display:block;font-size:14px;margin-bottom:5px;color:var(--nb-dark)}
.job-card .meta{font-size:12px;color:#7b8c7f;line-height:1.6}
.job-card .job-actions{display:flex;gap:10px;flex-wrap:wrap}
.pill{font-size:10px;font-weight:900;border-radius:99px;background:var(--nb-purple-soft);color:#655085;padding:5px 8px}
.mini-form{padding-top:3px}
.report-controls{display:flex;align-items:end;gap:10px;margin-bottom:15px}.report-controls .field{flex:1;margin:0}.report-controls input{height:46px}.report-controls button{height:46px}
.site-line{display:flex;gap:10px;justify-content:space-between;padding:11px 0;border-top:1px solid #e9efe9;font-size:13px}.site-line strong{color:var(--nb-green);font-variant-numeric:tabular-nums}
.note-panel{background:#f4f8f4;border-left:4px solid var(--nb-green);border-radius:0 12px 12px 0;padding:12px 15px;color:#587363;font-size:12px;line-height:1.6}
.bottom-nav{
  position:fixed;z-index:10;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:2px;
  padding:9px max(7px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
  background:rgba(255,255,255,.96);border-top:1px solid #dde4dd;
  box-shadow:0 -5px 18px rgba(36,78,42,.06);backdrop-filter:blur(16px)
}
.nav-item{border:0;background:transparent;color:#839388;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:75px;flex:1;max-width:148px;padding:6px 5px;border-radius:13px;font-size:11px;font-weight:900}
.nav-item svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.nav-item.active{color:var(--nb-dark);background:linear-gradient(180deg,#f4f0fb 0%,#ebe4f7 100%)}
.toast{position:fixed;z-index:999;left:50%;bottom:100px;transform:translateX(-50%) translateY(15px);pointer-events:none;min-width:220px;max-width:90vw;opacity:0;background:var(--nb-dark);color:#fff;padding:12px 16px;border-radius:12px;text-align:center;font-size:13px;font-weight:750;transition:opacity .18s,transform .18s;box-shadow:0 8px 28px rgba(28,60,37,.5)}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
dialog{border:0;border-radius:20px;box-shadow:0 25px 90px rgba(5,23,10,.45);width:calc(100% - 24px);max-width:490px;max-height:85vh;overflow:auto;padding:23px;background:#fff}dialog::backdrop{background:rgba(12,30,22,.65)}
.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-size:20px;margin:0 0 15px;color:var(--nb-dark)}
.close-btn{border:0;background:none;font-size:28px;color:#849489}.dialog-form label{margin-top:12px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}
.inline-strong{font-weight:850;color:var(--nb-green)}
.warning{background:#f7f2fd;border:1px solid #e6dcf5;border-radius:14px;padding:13px 14px;color:#6b5d83;font-size:12px;line-height:1.6}
.divider{height:1px;background:#e8eee9;margin:19px 0}
.tiny{font-size:11px;color:#859488;line-height:1.5}
.logo-footer{text-align:center;color:#95a59b;font-size:11px;margin:23px 0 6px}
.badge-small{display:inline-block;border-radius:99px;background:var(--nb-purple-soft);color:#654194;padding:6px 10px;font-size:11px;font-weight:800}
@media(max-width:360px){.app-shell{padding-left:11px;padding-right:11px}.panel{padding:15px}.brand-mark{width:146px}.brand-mark img{width:137px}.hero-title{font-size:27px}.live-time{font-size:19px}.nav-item{min-width:65px;font-size:10px}.brand-label strong{font-size:14px}}
