:root {
  color-scheme: light;
  --ink: #182d2b;
  --muted: #687a76;
  --accent: #246952;
  --accent-soft: #edf4ef;
  --surface: #fff;
  --line: #e5ebe7;
  --bg: #f6f8f7;
  --nav: #192f2c;
  --lime: #cbef84;
  --radius: 22px;
  --app-width: 480px;
  --shadow: 0 3px 14px #18342b04;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: #e8eeea;
  -webkit-tap-highlight-color: transparent;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button[disabled] { cursor: not-allowed; opacity: .5; }
button, a, input, select, textarea { touch-action: manipulation; }
a { color: var(--accent); text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #559782; outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: 1.28; }
h1 { font-size: 28px; font-weight: 780; letter-spacing: -.05em; }
h2 { font-size: 19px; font-weight: 750; letter-spacing: -.025em; }
h3 { font-size: 16px; font-weight: 730; }
svg { flex: 0 0 auto; vertical-align: middle; }
small, .muted { color: var(--muted); }
.eyebrow { color: #687a76; font-size: 10px; font-weight: 750; letter-spacing: .11em; margin-bottom: 6px; }
.boot { margin: auto; max-width: var(--app-width); padding: 2rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.panel-head, .section-heading, .record-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-head { align-items: flex-start; flex-wrap: wrap; margin-bottom: 13px; }
.panel-head p:not(.eyebrow), .page-heading p:not(.eyebrow) { margin-top: 5px; }
.page-heading { margin: 5px 0 7px; }
.page-heading .muted { font-size: 13px; }
.page-heading .btn { margin-bottom: 16px; }
.grid, .grid.two, .grid.three { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; min-width: 0; }
.stack { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; font-weight: 640; min-width: 0; font-size: 13px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select { border: 1px solid #dce5de; background: #fcfdfc; border-radius: 13px; padding: 12px; min-height: 48px; max-width: 100%; min-width: 0; font-size: 16px; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 19px; height: 19px; }
::placeholder { color: #83918b; font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 10px 14px; font-weight: 700; text-decoration: none; text-align: center; transition: background .15s, transform .15s; }
.btn:hover { background: #f0f5f1; }
.btn:active, .quick-link:active, .tab-item:active, .module-card:active, .home-job:active { transform: scale(.975); }
.btn.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.btn.primary:hover { background: #1b5542; }
.btn.ghost { color: var(--accent); background: #fff; }
.btn.lime { color: #233b24; background: var(--lime); border-color: var(--lime); }
.btn.lime:hover { background: #dbf5ad; }
.icon-button { padding: 0; min-height: 42px; width: 42px; border-color: transparent; background: transparent; }
.badge { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; border-radius: 7px; padding: 4px 8px; background: #eff4ef; color: #476752; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge.success { color: #24694b; background: #e8f5ed; }
.badge.warning { color: #8b5b20; background: #fbf0de; }
.badge.danger { color: #9c3341; background: #fbe9ec; }
.metric { font-weight: 730; font-variant-numeric: tabular-nums; }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); }
th { background: #f4f7f3; font-size: 12px; }
.loading, .empty-state { color: var(--muted); padding: 30px 20px; text-align: center; }
.loading p { margin: 8px 0 16px; }
.shell, .login { max-width: var(--app-width); margin: 0 auto; min-height: 100dvh; background: var(--bg); box-shadow: 0 0 60px #233d3210; }
.work-area { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px 22px; min-height: 68px; background: #f6f8f7ef; backdrop-filter: blur(16px); }
.top-left, .top-actions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.top-title { font-weight: 760; font-size: 17px; }
.brand-button { padding: 0; border: 0; background: transparent; text-align: left; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; flex: none; }
.brand strong { display: block; font-size: 14px; font-weight: 800; letter-spacing: .015em; line-height: 1.25; }
.brand strong span { color: #689c54; }
.brand small { display: block; font-size: 9px; letter-spacing: .045em; color: var(--muted); margin-top: 3px; }
.login-brand .brand img { width: 64px; height: 64px; }
.login-brand .brand strong { font-size: 17px; }
.allowance-entry { border-color: #c9debf; background: #f1f7ed; }
.allowance-entry h2 span { font-size: 13px; font-weight: 500; }
[data-allowance-editor], .allowance-entry { scroll-margin-top: 80px; }
.allowance-roster summary { font-weight: 700; cursor: pointer; }
.allowance-roster[open] summary { margin-bottom: 14px; }
.allowance-person { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px; background: #fff; border: 1px solid #e0e8de; border-radius: 14px; text-align: left; }
.allowance-person.selected { border-color: #759b61; background: #f1f7ed; }
.allowance-person span:last-child { text-align: right; }
.allowance-person small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.view-switch { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 6px 10px; border: 1px solid #dce6df; background: #fff; border-radius: 20px; font-size: 11px; font-weight: 730; color: #4f6b60; }
.top-bell { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 50%; }
#top-unread { position: absolute; top: -1px; right: -3px; background: #da6b50; color: #fff; border: 2px solid var(--bg); border-radius: 20px; font-size: 9px; line-height: 1.3; padding: 1px 4px; }
.back-button { margin-left: -12px; }
.back-button svg { transform: rotate(180deg); }
#page-content { padding: 12px 22px calc(110px + env(safe-area-inset-bottom)); display: grid; gap: 18px; }
.bottom-nav { position: fixed; z-index: 6; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--app-width)); display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 9px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #e5ebe6; border-radius: 24px 24px 0 0; background: #ffffffef; backdrop-filter: blur(18px); box-shadow: 0 -7px 24px #1f3a2b07; }
.tab-item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: #76867d; font-size: 11px; font-weight: 650; min-height: 53px; transition: transform .14s; }
.tab-icon { display: grid; place-items: center; height: 30px; width: 48px; border-radius: 12px; }
.tab-item.active { color: var(--accent); font-weight: 800; }
.tab-item.active .tab-icon { background: #edf5e7; }
.tab-punch .tab-icon { background: var(--nav); color: var(--lime); width: 52px; height: 52px; border-radius: 18px; margin-top: -23px; margin-bottom: 1px; box-shadow: 0 5px 10px #20392d1f; border: 4px solid #fff; }
.tab-punch.active .tab-icon { background: var(--accent); }
.home-page { display: grid; gap: 24px; }
.greeting { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 0 0; }
.greeting .eyebrow { font-size: 11px; letter-spacing: .02em; }
.greeting h1 { font-size: 29px; letter-spacing: -.05em; }
.greeting .muted { margin-top: 7px; font-size: 12px; }
.greeting-dot { color: #7aab4c; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e1e9dc; color: #527142; font-weight: 750; font-size: 13px; flex-shrink: 0; }
.greeting-avatar { width: 51px; height: 51px; background: #ecdfcb; color: #796241; border: 4px solid #fff; }
.today-card { border-radius: 25px; padding: 22px; background: #1d3531; color: #fff; box-shadow: 0 8px 22px #1d353114; }
.today-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 650; font-size: 13px; }
.today-top > span:first-child { display: flex; align-items: center; gap: 7px; color: #e4eae5; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: 10px; border-radius: 20px; color: #d7eeaa; background: #334c3e; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.today-time { display: flex; align-items: baseline; gap: 8px; padding: 15px 0 2px; font-size: 51px; letter-spacing: -.065em; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.2; }
.today-time small { font-size: 11px; color: #b4c5bd; letter-spacing: .05em; }
.today-location { display: flex; align-items: center; gap: 5px; color: #b6c7c0; font-size: 11px; margin-top: 5px; }
.today-cta { margin-top: 19px; width: 100%; justify-content: space-between; border-radius: 14px; min-height: 47px; }
.section-heading { margin-bottom: 13px; }
.section-heading h2, .hub-group > h2 { font-size: 17px; }
.text-button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: #65796c; padding: 5px 0 5px 8px; min-height: 35px; font-weight: 600; font-size: 11px; }
.text-button:hover { color: var(--accent); }
.quick-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.quick-link { display: grid; justify-items: center; gap: 9px; padding: 0; border: 0; background: transparent; font-size: 12px; font-weight: 650; transition: transform .14s; }
.quick-icon { width: 51px; height: 51px; border-radius: 17px; display: grid; place-items: center; }
.quick-icon.purple { color: #8263a0; background: #eee8f4; }
.quick-icon.green { color: #507d5f; background: #e4efe6; }
.quick-icon.orange { color: #b08746; background: #f6eddb; }
.quick-icon.blue { color: #6683a6; background: #e8eef6; }
.subtle-label { color: #748371; font-size: 10px; }
.overview-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 19px; background: #fff; padding: 18px 0; }
.overview-strip button { border: 0; background: transparent; display: grid; justify-items: center; gap: 5px; padding: 0 6px; min-width: 0; }
.overview-strip button + button { border-left: 1px solid var(--line); }
.overview-strip strong { font-size: 25px; font-weight: 750; letter-spacing: -.05em; line-height: 1.1; }
.overview-strip small { color: #74816f; font-size: 9px; font-weight: 500; margin-left: 4px; }
.overview-strip span { font-size: 10px; color: var(--muted); }
.home-jobs { display: grid; gap: 9px; }
.home-job { display: flex; gap: 12px; align-items: center; padding: 15px 13px; border: 1px solid var(--line); border-radius: 17px; background: #fff; width: 100%; text-align: left; transition: transform .14s; }
.job-square { display: grid; place-items: center; width: 40px; height: 43px; border-radius: 12px; background: #f1f4ee; color: #6a8057; flex-shrink: 0; }
.home-job-body { display: grid; gap: 3px; flex: 1; min-width: 0; }
.home-job-body small { font-size: 10px; letter-spacing: .03em; }
.home-job-body strong { font-size: 13px; font-weight: 700; }
.home-job-body .muted { font-size: 10px; }
.home-job > svg { color: #a1afa5; }
.app-footnote { text-align: center; color: #74836f; font-size: 9px; letter-spacing: .07em; }
.login { padding: calc(24px + env(safe-area-inset-top)) 24px calc(30px + env(safe-area-inset-bottom)); }
.login-brand { display: flex; align-items: center; justify-content: space-between; }
.environment { background: #edf1e8; color: #6e7c60; border-radius: 20px; padding: 4px 10px; font-size: 10px; font-weight: 650; }
.login-intro { padding: 42px 0 28px; }
.login-intro .eyebrow { font-size: 9px; color: #788d71; }
.login-intro h1 { font-size: 35px; line-height: 1.4; letter-spacing: -.055em; margin: 10px 0; }
.login-intro > p:last-of-type { font-size: 12px; max-width: 290px; line-height: 1.8; }
.login-pills { display: flex; gap: 9px; margin-top: 20px; flex-wrap: wrap; }
.login-pills span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #61826b; padding: 5px 8px; background: #e9efe7; border-radius: 8px; }
.login-main { padding: 22px; border: 1px solid var(--line); border-radius: 27px; background: #fff; }
.login-form > .muted { font-size: 11px; margin-top: 5px; }
.portal-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #f0f4f0; border-radius: 13px; margin: 20px 0; }
.portal-tabs button { border: 0; border-radius: 10px; background: transparent; color: #7b8980; min-height: 43px; font-size: 12px; font-weight: 700; }
.portal-tabs button.selected { color: #315b42; background: #fff; box-shadow: 0 2px 5px #21372c0d; }
.login-submit { min-height: 49px; justify-content: space-between; margin-top: 3px; }
.form-error { color: #a73342; font-size: 12px; }
.demo-accounts { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 15px; }
.demo-accounts summary { font-size: 12px; color: #5d7465; font-weight: 650; min-height: 25px; }
.demo-accounts p { font-size: 10px; margin: 4px 0 10px; }
.account-grid { display: grid; gap: 6px; }
.account { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px; background: #f7faf6; border: 1px solid #eaf0e7; border-radius: 12px; text-align: left; }
.account:hover { border-color: #a6c5a0; }
.account strong, .account small { display: block; }
.account strong { font-size: 12px; }
.account small { font-size: 10px; }
.account .avatar { width: 32px; height: 32px; font-size: 10px; }
.account-id { margin-left: auto; font-size: 10px; color: #6d7c67; }
#page-content .att-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
#page-content .punch-panel { padding: 21px; }
.punch-panel .panel-head { margin-bottom: 18px; }
.punch-clock { text-align: center; }
.punch-clock strong { font-size: 55px; font-weight: 650; letter-spacing: -.07em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.punch-clock p { font-size: 12px; margin-top: 1px; }
.location-note { display: flex; gap: 10px; align-items: center; padding: 13px 15px; border-radius: 14px; background: #f4f7f1; margin: 21px 0 13px; color: #5c7e4d; }
.location-note strong, .location-note small { display: block; }
.location-note strong { font-size: 12px; }
.location-note small { font-size: 10px; margin-top: 2px; color: #697a60; }
.punch-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 27px 0 8px; }
.punch-orb { width: 186px; height: 186px; display: flex; flex-direction: column; gap: 9px; justify-content: center; align-items: center; background: var(--lime); border: 1px solid #bbdc7c; border-radius: 50%; color: #324e28; box-shadow: 0 0 0 9px #f2f7e9, 0 0 0 10px #e9efdd; transition: transform .15s; }
.punch-orb:hover { background: #d6f79b; }
.punch-orb:active { transform: scale(.97); }
.punch-orb strong { font-size: 23px; font-weight: 750; letter-spacing: -.03em; }
.punch-orb small { font-size: 10px; color: #57733e; }
.punch-secondary { width: 100%; }
#att-progress { margin-top: 16px; font-size: 12px; text-align: center; }
#att-progress:empty { display: none; }
.photo-capture { position: relative; display: flex; align-items: center; gap: 12px; border: 1px dashed #bfcfbb; padding: 14px; border-radius: 14px; color: #66815c; cursor: pointer; }
.photo-capture strong, .photo-capture small { display: block; }
.photo-capture strong { font-size: 12px; }
.photo-capture small { font-size: 10px; margin-top: 3px; }
.photo-capture input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-capture:focus-within { outline: 3px solid #559782; outline-offset: 3px; }
.photo-capture.has-photo { border-style: solid; background: #eff7e8; }
#page-content .att-note { font-size: 12px; color: var(--muted); }
#page-content .att-punch { font-size: 12px; }
#page-content .att-action-link { color: var(--accent); padding: 9px 6px; min-height: 40px; }
#page-content .att-punch small { overflow-wrap: anywhere; }
#page-content .att-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; background: #f4f7f1; border-radius: 14px; padding: 15px 8px; }
.att-kpis .metric { text-align: center; }
.att-kpis .muted { font-size: 10px; font-weight: 500; }
.att-kpis h3 { font-size: 21px; margin-top: 4px; }
.att-kpis .metric + .metric { border-left: 1px solid #e0e8da; }
.attendance-records, .payroll-cards { display: grid; gap: 12px; }
.record-card { border: 1px solid var(--line); border-radius: 16px; padding: 15px; }
.record-heading { font-size: 13px; }
.record-person { font-size: 11px; color: #657668; margin: 5px 0 12px; }
.record-person span { font-size: 9px; color: #72816b; margin-left: 8px; }
.record-hours { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 10px; color: var(--muted); padding: 10px 0; }
.record-hours strong { display: block; font-size: 20px; letter-spacing: -.05em; color: var(--ink); }
.record-hours small { font-size: 10px; font-weight: 450; }
#page-content .att-detail { margin: 10px 0 0; border-top: 1px solid var(--line); padding-top: 9px; }
.att-detail summary { font-size: 11px; font-weight: 600; color: var(--accent); padding: 4px 0; min-height: 32px; }
.att-detail[open] summary { padding-bottom: 12px; }
.payroll-card { border: 1px solid var(--line); border-radius: 17px; padding: 16px; }
.payroll-card .record-heading .muted { font-size: 9px; margin-top: 3px; }
.payroll-amount { display: block; color: var(--accent); font-size: 29px; letter-spacing: -.05em; padding: 15px 0; }
.payroll-hours { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.payroll-hours strong, .payroll-hours small { display: block; }
.payroll-hours strong { font-size: 14px; }
.payroll-hours small { font-size: 9px; }
.payroll-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); }
.workspace-banner { display: flex; gap: 14px; align-items: center; background: #e9f0e3; border-radius: 20px; padding: 20px 17px; color: #48623b; }
.workspace-banner-icon { display: grid; place-items: center; width: 48px; height: 48px; background: #d7e5c9; border-radius: 15px; flex-shrink: 0; }
.workspace-banner strong { font-size: 15px; }
.workspace-banner p { font-size: 11px; margin-top: 4px; color: #617651; }
.hub-group { margin-top: 9px; }
.hub-group > h2 { margin-bottom: 13px; }
.module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.module-card { position: relative; display: flex; flex-direction: column; align-items: center; padding: 17px 5px 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: center; gap: 8px; transition: transform .14s; }
.module-card .quick-icon { width: 44px; height: 44px; border-radius: 14px; }
.module-card strong { font-size: 12px; line-height: 1.4; }
.module-card small { font-size: 9px; line-height: 1.4; margin-top: -5px; }
.module-pending { font-size: 9px; color: #817557; background: #f4f1e9; padding: 2px 6px; border-radius: 4px; }
.profile-intro { margin: 4px 0 7px; }
.profile-identity { display: flex; align-items: center; gap: 15px; padding: 5px 0 10px; }
.profile-avatar { width: 64px; height: 64px; font-size: 21px; background: #e9dcc7; color: #806b4d; border: 4px solid #f7f4ed; }
.profile-identity h2 { font-size: 22px; }
.profile-identity .muted { font-size: 12px; margin-top: 3px; }
.profile-id { font-size: 10px; color: #72816b; }
.profile-card dl.grid { margin: 0; grid-template-columns: 1fr 1fr; padding-top: 14px; border-top: 1px solid var(--line); }
.profile-card dt { font-size: 10px; }
.profile-card dd { margin: 5px 0 0; font-size: 12px; font-weight: 650; }
.profile-links { padding: 3px 17px; }
.profile-links button { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 57px; background: transparent; border: 0; text-align: left; }
.profile-links button + button { border-top: 1px solid #eef1ed; }
.profile-links button > svg:last-child { margin-left: auto; color: #a1ada2; }
.profile-links strong { font-size: 13px; font-weight: 630; }
.profile-link-icon { color: #788d70; }
.account-settings { display: grid; gap: 14px; }
.account-settings strong { font-size: 13px; }
.account-settings p { font-size: 11px; }
.account-settings .btn { color: #9b5e52; }
#page-content .wf-page { gap: 19px; }
#page-content .wf-heading { align-items: center; }
#page-content .wf-heading h2 { font-size: 24px; letter-spacing: -.05em; }
#page-content .wf-heading p { font-size: 11px; }
#page-content .wf-heading .btn { flex-shrink: 0; font-size: 11px; padding: 9px 11px; }
#page-content .wf-overview { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; }
#page-content .wf-overview .panel { display: flex; flex-direction: column; padding: 12px 3px; gap: 7px; border-radius: 15px; text-align: center; }
#page-content .wf-metric-icon { width: 27px; height: 27px; flex-basis: auto; font-size: 14px; border-radius: 8px; }
#page-content .wf-metric-value { font-size: 22px; }
#page-content .wf-metric-label { font-size: 9px; }
#page-content .wf-board-panel { padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
#page-content .wf-board-head { flex-direction: column; align-items: stretch; }
#page-content .wf-board-head > div:first-child { display: none; }
#page-content .wf-board-tools { display: grid; grid-template-columns: minmax(0,1fr); gap: 9px; }
#page-content .wf-board-tools label:last-child { display: none; }
#page-content .wf-board-tools input { width: 100%; min-width: 0; min-height: 47px; border-radius: 14px; border-color: var(--line); padding: 13px 16px; font-size: 14px; }
.department-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.department-tabs::-webkit-scrollbar { display: none; }
.department-tabs button { min-height: 36px; flex-shrink: 0; padding: 7px 12px; font-size: 11px; border: 1px solid #e5eae1; border-radius: 20px; background: #fff; color: #66795b; }
.department-tabs button[aria-pressed=true] { color: #eff5e8; background: #2e513d; border-color: #2e513d; }
#page-content .wf-board { display: grid; grid-auto-flow: row; grid-template-columns: minmax(0,1fr); gap: 19px; overflow: visible; margin-top: 16px; }
#page-content .wf-column { padding: 0; background: transparent; border: 0; border-radius: 0; min-height: 0; gap: 10px; }
#page-content .wf-column-head { align-items: center; padding: 0 1px 2px; }
#page-content .wf-column-head h4 { display: flex; gap: 8px; align-items: baseline; font-size: 11px; letter-spacing: .045em; }
#page-content .wf-column-head h4 small { font-size: 11px; font-weight: 500; }
#page-content .wf-count { background: #e8eee2; color: #6e865b; min-width: 22px; }
#page-content .wf-card { padding: 16px; border-color: var(--line); border-radius: 18px; box-shadow: var(--shadow); }
#page-content .wf-card > strong { font-size: 16px; margin: 10px 0 5px; letter-spacing: -.015em; }
#page-content .wf-card > p { font-size: 11px; }
#page-content .wf-id { color: #63805d; font-size: 10px; }
#page-content .wf-meta { font-size: 10px; margin-top: 14px; padding-top: 10px; border-top: 1px solid #edf1e8; color: #6b7b62; }
#page-content .wf-status { font-size: 9px; border-radius: 6px; }
#page-content .wf-status.active { color: #876124; background: #faf0dc; }
#page-content .wf-status.waiting { color: #697859; background: #f0f3ec; }
#page-content .wf-status.done { color: #497153; background: #e9f4e9; }
#page-content .wf-empty { background: #eff3ec; border-radius: 13px; padding: 18px; font-size: 12px; }
#page-content .wf-notes { padding: 0; }
#page-content .wf-note { border-radius: 18px; padding: 16px; border: 1px solid var(--line); }
#page-content .wf-note.unread { background: #f2f7eb; border-color: #d6e5c9; }
dialog { color: var(--ink); border: 1px solid var(--line); box-shadow: 0 -6px 45px #182d2b2a; background: #fff; }
dialog::backdrop { background: #132c235e; backdrop-filter: blur(3px); }
dialog.wf-dialog, dialog.att-modal { position: fixed; inset: auto 0 0; width: min(100%, var(--app-width)); max-width: 100%; max-height: 91dvh; margin: 0 auto; border-radius: 26px 26px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
#page-content .wf-dialog-content { padding: 21px; }
#page-content .wf-dialog-head { align-items: flex-start; gap: 15px; padding-bottom: 17px; }
#page-content .wf-dialog-head h2 { font-size: 20px; }
#page-content .wf-dialog-head p { font-size: 11px; }
#page-content .wf-dialog-head .btn { flex-shrink: 0; min-height: 38px; padding: 7px 12px; }
#page-content .wf-form-grid { grid-template-columns: minmax(0,1fr); }
#page-content .wf-page :is(input:not([type=checkbox]),select,textarea) { border-radius: 12px; font-size: 16px; min-height: 46px; }
#page-content .wf-check { min-height: 46px; flex-wrap: wrap; }
#page-content .wf-check small { margin-left: 27px; }
#page-content .wf-stage-list > li { padding: 12px; }
#page-content .wf-stage-list .wf-card-top { align-items: flex-start; }
#page-content .wf-stage-list strong { font-size: 12px; }
#page-content .wf-stage-list small { font-size: 10px; }
#page-content .wf-actions .btn { width: 100%; min-height: 48px; }
#page-content .wf-delivery { grid-template-columns: minmax(0,1fr); }
.att-modal h3 { margin: 0 0 18px; }
.att-modal .att-form { gap: 14px; }
dialog[open] { animation: sheet-in .18s ease-out; }
@keyframes sheet-in {
  from { transform: translateY(25px); opacity: .65; }
  to { transform: translateY(0); opacity: 1; }
}
#toast { position: fixed; bottom: calc(92px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%,8px); width: max-content; max-width: min(420px,calc(100vw - 36px)); z-index: 20; opacity: 0; visibility: hidden; color: #fff; background: #284c3c; border-radius: 14px; box-shadow: 0 8px 30px #20342a26; padding: 12px 17px; font-size: 12px; transition: opacity .15s, transform .15s; }
#toast.show { opacity: 1; visibility: visible; transform: translate(-50%,0); }
#toast[data-kind=error] { background: #8a3a40; }
.receipt-upload { padding: 14px; border: 1px dashed #bad0bf; border-radius: 15px; background: #f6f9f4; }
.receipt-upload p, .receipt-links > span { font-size: 11px; }
.receipt-upload input[type=file] { max-width: 100%; min-width: 0; font-size: 12px; padding: 10px 0; border: 0; background: transparent; }
.receipt-upload input::file-selector-button { border: 0; border-radius: 9px; background: #e0eddd; color: #28523e; padding: 10px; margin-right: 8px; cursor: pointer; }
.receipt-previews { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.receipt-previews:empty { display: none; }
.receipt-previews figure { margin: 0; min-width: 0; }
.receipt-previews img { width: 100%; height: 85px; object-fit: contain; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.receipt-previews figcaption { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt-previews .btn { width: 100%; min-height: 44px; padding: 5px; font-size: 11px; }
.receipt-links { display: grid; gap: 7px; }
.receipt-link { justify-content: flex-start; flex-wrap: wrap; text-align: left; }
.receipt-link small { font-size: 10px; overflow-wrap: anywhere; }
.receipt-dialog { padding: 22px; }
.receipt-dialog > img { display: block; width: 100%; max-height: 65dvh; object-fit: contain; margin-top: 15px; }
.wf-finish { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.wf-finish p { font-size: 12px; }
.allowance-filters { gap: 12px; }
.allowance-filters .btn { width: 100%; font-size: 12px; }
.allowance-hero { padding: 22px; border-radius: 24px; background: #203f35; color: #fff; }
.allowance-hero > p { font-size: 12px; color: #c7d8ce; }
.allowance-hero .panel-head { font-size: 11px; align-items: center; }
.allowance-hero .badge { color: #daecc9; background: #ffffff15; border-color: #ffffff26; }
.allowance-total { display: block; font-size: clamp(28px,7vw,38px); letter-spacing: -.04em; margin: 8px 0 20px; overflow-wrap: anywhere; }
.allowance-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; border-top: 1px solid #ffffff26; padding-top: 17px; }
.allowance-stats span, .allowance-stats strong { display: block; }
.allowance-stats span { color: #c7d8ce; font-size: 10px; margin-bottom: 5px; }
.allowance-stats strong { color: #d2f0a1; font-size: 17px; overflow-wrap: anywhere; }
.allowance-hero .allowance-hero-note { margin-top: 16px; font-size: 11px; }
.allowance-help { font-size: 11px; line-height: 1.8; padding-inline: 2px; }
.allowance-comparison { margin: 0; display: grid; gap: 12px; }
.allowance-comparison > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 8px; }
.allowance-comparison dt { color: var(--muted); font-size: 11px; }
.allowance-comparison dd { margin: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.allowance-comparison dd > span { color: var(--muted); }
.allowance-comparison .allowance-net { padding-top: 11px; border-top: 1px solid var(--line); }
.allowance-net dd { color: var(--accent); font-weight: 750; font-size: 17px; }
.allowance-audit { display: grid; gap: 5px; }
.allowance-audit strong { font-size: 12px; }
.allowance-audit p, .allowance-review-note { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.allowance-audit p + strong { margin-top: 9px; }
.allowance-record > .muted { font-size: 10px; }
.allowance-record .panel-head { margin-bottom: 0; }
.allowance-record .panel-head p { font-size: 10px; }
.allowance-review { border-top: 1px solid var(--line); padding-top: 15px; }
.allowance-review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.allowance-review-actions .btn { flex: 1; white-space: nowrap; }
.allowance-preview { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px; border-radius: 12px; background: #edf5e7; }
.allowance-preview span { font-size: 12px; }
.allowance-preview strong { color: var(--accent); font-size: 17px; }
.allowance-history > summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 12px; }
.allowance-history > summary::before { content: '+'; color: var(--accent); }
.allowance-history[open] > summary::before { content: '−'; }
.allowance-history > .panel { margin-top: 8px; }
.payroll-breakdown { display: grid; gap: 7px; margin: 12px 0 8px; }
.payroll-breakdown > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; font-size: 11px; }
.payroll-breakdown dd { margin: 0; font-weight: 650; }
.allowance-pay-note { font-size: 10px; line-height: 1.7; margin-bottom: 15px; }
.interview-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.interview-stats .panel { padding: 13px 4px; text-align: center; border-radius: 15px; }
.interview-stats strong, .interview-stats small { display: block; }
.interview-stats strong { font-size: 23px; }
.interview-stats small { font-size: 10px; margin-top: 4px; }
.interview-share > summary, .interview-action > summary { font-size: 13px; font-weight: 650; min-height: 44px; padding-block: 10px; }
.interview-share > div, .interview-action > form { margin-top: 12px; }
.interview-share p, .interview-connection p { font-size: 11px; }
.interview-share details p { margin: 10px 0; }
.interview-buttons, .wf-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.interview-connection { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.interview-connection p { flex-basis: 100%; }
.interview-filters { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 10px; }
.interview-filters .field span { font-size: 11px; }
.interview-card > summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; }
.interview-person { display: grid; gap: 5px; }
.interview-person-wrap { display: flex; gap: 10px; align-items: center; min-width: 0; max-width: 100%; }
.interview-person-wrap .interview-person { min-width: 0; }
.interview-avatar, .interview-avatar-empty { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; background: #eaf2e5; }
.interview-avatar-empty { display: grid; place-items: center; font-size: 14px; color: #63846b; }
.interview-attachments { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8faf6; }
.interview-attachments p { font-size: 11px; overflow-wrap: anywhere; }
.interview-person small { font-size: 10px; overflow-wrap: anywhere; }
.interview-details { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.external-details { margin: 0; display: grid; gap: 12px; }
.external-details > div { display: grid; gap: 4px; }
.external-details dt { font-size: 11px; color: var(--muted); }
.external-details dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
.interview-action { padding-top: 12px; border-top: 1px solid var(--line); }
.interview-appointment { padding: 15px; border-radius: 14px; background: #edf5e6; display: grid; gap: 7px; }
.interview-appointment p { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.interview-message { padding: 12px; background: #f6f8f5; border-radius: 12px; }
.interview-message > summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; min-height: 40px; }
.interview-message .stack { margin-top: 14px; }
.interview-message-body { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.interview-message p.muted { font-size: 10px; }
.interview-audit { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 15px; }
.interview-audit strong, .interview-audit small { display: block; font-size: 11px; }
.interview-audit p { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wf-share, .wf-pickup { padding: 15px; border-radius: 15px; border: 1px solid #dce7d8; background: #f8faf6; }
.wf-share p, .wf-pickup p, .wf-share a, .wf-pickup a { font-size: 12px; overflow-wrap: anywhere; }
.wf-share summary, .wf-pickup summary { font-size: 12px; min-height: 44px; padding-block: 12px; }
.wf-pickup form { padding-top: 15px; border-top: 1px solid var(--line); }
@media (max-width: 359px) {
  #page-content { padding-inline: 16px; }
  .topbar { padding-inline: 16px; }
  .panel { padding: 16px; }
  .login { padding-inline: 18px; }
  .login-main { padding: 18px; }
  .login-intro h1 { font-size: 30px; }
  .module-grid { gap: 6px; }
  .module-card strong { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}


/* Guided daily work and form feedback */
.overview-strip a{display:grid;text-decoration:none;color:inherit;text-align:center;padding:18px 8px;gap:6px}.overview-strip a strong{font-size:28px}.overview-strip a span{font-size:12px;color:var(--muted,#657083)}
.home-page section[id]{scroll-margin-top:88px}.home-page [hidden]{display:none!important}.home-job-body{min-width:0;overflow-wrap:anywhere}.home-job-body span{white-space:normal}.request-highlight{outline:3px solid #b1d038;outline-offset:4px;scroll-margin-top:85px}.inline-error,.work-blocker{background:#fff1ec;border:1px solid #edaa8e;border-radius:10px;padding:12px;color:#8c271a;line-height:1.6;overflow-wrap:anywhere}.inline-error:focus{outline:2px solid #9f3421;outline-offset:2px}.wf-history summary,details>summary{cursor:pointer;min-height:44px;padding:10px 0}.wf-history[open]{display:grid;gap:14px}.wf-dialog-content>[data-focus-section]:empty{display:none}.wf-share-actions{display:flex;flex-wrap:wrap;gap:8px}.wf-dialog-content select,.wf-dialog-content input,.wf-dialog-content textarea{max-width:100%;box-sizing:border-box}.wf-dialog-content [data-focus-section] .panel{padding:12px}.wf-dialog-content [data-production-checklist]{background:#f3f7eb}.wf-dialog-content [data-checklist-status]{color:#376525}.home-page .today-card{margin-top:12px}
