/* HirePath — original styles. No-scroll shell: the page never scrolls;
   only clearly-listed areas (.scroll) scroll internally. */
* { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; box-sizing: border-box; }
input, textarea { -webkit-user-select: text; user-select: text; }
:root{
  --bg:#0f1420; --surface:#171e2e; --surface2:#1f2940; --text:#eef2f8; --muted:#9fb0c7;
  --border:#2b3852; --accent:#3ecf8e; --accent-ink:#06281a; --warn:#ffb454; --radius:14px;
}
@media (prefers-color-scheme: light){
  :root{ --bg:#f4f6fa; --surface:#ffffff; --surface2:#eef2f8; --text:#14202f; --muted:#5b6b82; --border:#d7dfea; --accent:#0da668; --accent-ink:#ffffff; }
}
html,body{ height:100%; margin:0; }
body{ font-family: system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--text); overflow:hidden; }
#app{ height:100dvh; display:flex; flex-direction:column; overflow:hidden; }
.topbar{ flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 14px; border-bottom:1px solid var(--border); background:var(--surface); }
.brand{ display:flex; align-items:center; gap:8px; font-weight:800; font-size:19px; }
.brand-mark{ background:var(--accent); color:var(--accent-ink); width:28px; height:28px; border-radius:8px; display:grid; place-items:center; font-weight:900; }
.chip{ border:1px solid var(--border); background:var(--surface2); color:var(--text); border-radius:999px; padding:6px 11px; font-size:13px; cursor:pointer; }
.chip.soft{ cursor:default; }
.pager{ flex:1 1 auto; min-height:0; display:flex; overflow:hidden; transition:transform .28s ease; width:400%; }
.view{ width:25%; flex:0 0 25%; display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.view-head{ flex:0 0 auto; padding:10px 12px 6px; }
.view-title{ margin:2px 2px 4px; font-size:22px; }
.searchrow{ display:flex; gap:8px; }
.searchrow input{ flex:1; min-width:0; padding:11px 12px; border-radius:12px; border:1px solid var(--border); background:var(--surface); color:var(--text); font-size:16px; }
.source-status{ font-size:12px; color:var(--muted); padding:6px 2px 2px; line-height:1.45; }
.scroll{ flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
.scroll.pad{ padding:6px 16px 16px; }
.view-foot,.sheet-foot{ flex:0 0 auto; display:flex; gap:10px; padding:10px 14px calc(env(safe-area-inset-bottom) + 12px); border-top:1px solid var(--border); background:var(--surface); }
.btn{ border:1px solid var(--border); background:var(--surface2); color:var(--text); border-radius:12px; padding:11px 14px; font-size:15px; font-weight:600; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
.btn.primary{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.btn.small{ padding:7px 11px; font-size:13px; border-radius:10px; }
.btn.block{ width:100%; }
.btn.on{ background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
.bottomnav{ flex:0 0 auto; display:flex; border-top:1px solid var(--border); background:var(--surface); padding:8px 8px calc(env(safe-area-inset-bottom) + 16px); gap:6px; }
.navbtn{ flex:1; position:relative; border:0; background:transparent; color:var(--muted); font-size:13px; font-weight:700; padding:9px 4px; border-radius:12px; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:2px; }
.navbtn.active{ background:var(--surface2); color:var(--text); }
.nav-ico{ font-size:17px; line-height:1; }
.badge{ position:absolute; top:2px; right:calc(50% - 22px); background:var(--accent); color:var(--accent-ink); border-radius:999px; font-size:11px; padding:1px 6px; }
h1{ font-size:23px; margin:10px 0 6px; } h2{ font-size:18px; margin:20px 0 8px; }
.muted{ color:var(--muted); } .small{ font-size:13px; } .spacer{ height:14px; }
.upload-box{ display:block; border:1.5px dashed var(--border); border-radius:var(--radius); padding:16px; margin:12px 0 6px; background:var(--surface); cursor:pointer; }
.upload-title{ display:block; font-weight:700; } .upload-sub{ display:block; color:var(--muted); font-size:13px; margin-top:4px; }
.upload-box input{ margin-top:10px; width:100%; color:var(--text); }
.parse-msg{ font-size:14px; color:var(--accent); min-height:20px; padding:2px 0; }
.fld{ display:block; margin:10px 0; } .fld span{ display:block; font-size:13px; font-weight:700; color:var(--muted); margin-bottom:5px; }
.fld input,.fld textarea{ width:100%; padding:11px 12px; border-radius:12px; border:1px solid var(--border); background:var(--surface); color:var(--text); font-size:16px; font-family:inherit; }
.jobcard{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:13px 14px; margin:8px 12px; cursor:pointer; }
.jobcard h3{ margin:0 0 3px; font-size:16.5px; line-height:1.3; }
.jobcard .meta{ color:var(--muted); font-size:13.5px; line-height:1.45; }
.fitrow{ display:flex; align-items:center; gap:8px; margin-top:8px; flex-wrap:wrap; }
.fitbadge{ font-weight:800; font-size:13px; border-radius:999px; padding:3px 9px; background:var(--surface2); border:1px solid var(--border); }
.fitbadge.hi{ background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
.fitbadge.mid{ color:var(--warn); }
.kw{ font-size:12px; border:1px solid var(--border); border-radius:999px; padding:2px 8px; color:var(--muted); }
.kw.hit{ color:var(--text); border-color:var(--accent); }
.statechip{ font-size:12px; font-weight:800; border-radius:999px; padding:3px 9px; background:var(--accent); color:var(--accent-ink); }
.empty{ text-align:center; color:var(--muted); padding:36px 22px; line-height:1.55; }
.overlay{ position:fixed; inset:0; background:rgba(4,8,14,.55); z-index:30; }
.sheet{ position:absolute; inset:0; background:var(--bg); display:flex; flex-direction:column; height:100dvh; animation:slidein .22s ease; }
@keyframes slidein{ from{ transform:translateX(36px); opacity:.4; } to{ transform:none; opacity:1; } }
.sheet-head{ flex:0 0 auto; display:flex; justify-content:space-between; align-items:center; padding:10px 14px; border-bottom:1px solid var(--border); background:var(--surface); }
.sheet-foot .btn{ flex:1; }
#openAppBtn{ flex:1.35; }
.detail h1{ font-size:21px; line-height:1.3; }
.statebtns{ display:flex; gap:7px; flex-wrap:wrap; margin:12px 0; }
.statebtns .btn{ padding:8px 12px; font-size:13.5px; }
textarea.draft{ width:100%; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--text); padding:11px 12px; font-size:15px; font-family:inherit; line-height:1.5; }
.desc{ white-space:pre-wrap; line-height:1.55; font-size:14.5px; color:var(--text); }
.steps li{ margin:9px 0; line-height:1.55; }
.notice{ border:1px solid var(--warn); border-radius:var(--radius); padding:13px 14px; line-height:1.55; margin:16px 0; background:var(--surface); }
.metrics{ display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.metric{ background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:12px; }
.metric b{ font-size:21px; display:block; } .metric span{ color:var(--muted); font-size:12.5px; }
.group-title{ font-size:14px; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; margin:16px 14px 2px; }
.toast{ position:fixed; left:50%; transform:translateX(-50%); bottom:calc(env(safe-area-inset-bottom) + 104px); background:var(--text); color:var(--bg); font-weight:700; font-size:14.5px; padding:11px 18px; border-radius:999px; z-index:50; max-width:88vw; text-align:center; }
