:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang TC","Microsoft JhengHei",system-ui,sans-serif;color:#192442;background:#f4f6fb;font-synthesis:none;--paper:#fff;--muted:#5d6c86;--blue:#2b53dc;--blue-deep:#244ac9;--blue-pale:#eef2ff;--line:#e2e8f2;--red:#a82334;--red-bg:#fff1f2;--radius:20px}
*{box-sizing:border-box}
body{margin:0;min-width:280px;overflow-wrap:anywhere}
button,input,select{font:inherit}
button{cursor:pointer;touch-action:manipulation}
button:disabled{opacity:.55;cursor:default}
a{color:var(--blue-deep)}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #6c89ff;outline-offset:3px}
svg{width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.definitions{display:none}
.shell{width:min(100%,788px);margin-inline:auto;padding-inline:clamp(15px,4.6vw,28px)}
.topbar{background:var(--paper);border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top,0px)}
.topbar-inner{height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px}
.brand-icon{display:grid;place-items:center;width:39px;height:39px;background:#2e54df;border-radius:12px;color:#fff}
.brand-icon svg{width:24px;height:24px}
.brand strong,.brand div>span{display:block}
.brand strong{font-size:20px;line-height:1.2;letter-spacing:.06em}
.brand div>span{font-size:12px;color:var(--muted);margin-top:3px;font-weight:600}
.save-badge{display:inline-flex;align-items:center;gap:5px;color:#346655;background:#edf7f3;border-radius:20px;padding:6px 9px;font-size:12px;white-space:nowrap;font-weight:650}
.save-badge svg{width:15px;height:15px}
.save-badge.failed{background:var(--red-bg);color:var(--red)}
main{padding-top:20px;padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(22px,4.8vw,29px);letter-spacing:.025em;line-height:1.25}
h2{font-size:18px;line-height:1.35}
h3{font-size:16px}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;min-height:40px}
.month-switch{display:flex;align-items:center;background:white;border:1px solid var(--line);border-radius:11px;flex-shrink:0}
.icon-button{display:grid;place-items:center;min-width:38px;height:40px;border:0;border-radius:10px;background:transparent;color:var(--muted);padding:0}
.icon-button:hover{background:var(--blue-pale);color:var(--blue)}
.month-switch svg{width:17px;height:17px}
.month-picker{position:relative;isolation:isolate;display:grid;place-items:center;min-width:92px;font-size:14px;font-weight:700;cursor:pointer}
.month-picker input{position:absolute;inset:0;padding:0;opacity:0;cursor:pointer;height:100%;min-height:0}
.month-picker:focus-within{outline:2px solid #6c89ff}
.summary{position:relative;overflow:hidden;border-radius:24px;background:linear-gradient(118deg,#2141bb 0%,#315be4 66%,#3962e7 100%);padding:21px clamp(15px,4.8vw,29px) 18px;color:#fff;box-shadow:0 8px 21px #2747c12b}
.summary:before,.summary:after{content:"";position:absolute;pointer-events:none;border-radius:50%;width:252px;height:252px;right:-79px;top:-172px;border:1px solid #ffffff38;box-shadow:0 0 0 23px #ffffff0b,0 0 0 48px #ffffff0d}
.summary:after{right:-145px;top:-118px}
.summary-primary{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.summary-label{font-size:14px;font-weight:650;color:#f3f5ff}
.amount{display:flex;align-items:baseline;gap:7px;margin-top:3px;font-variant-numeric:tabular-nums}
.amount span{font-size:18px;font-weight:750;white-space:nowrap}
.amount strong{font-size:clamp(34px,8vw,48px);line-height:1.18;letter-spacing:-.045em}
.summary-icon{background:#ffffff22;border:1px solid #ffffff30;display:grid;place-items:center;width:48px;height:48px;border-radius:14px;margin-left:12px;flex-shrink:0}
.summary-icon svg{width:27px;height:27px}
.summary-grid{position:relative;z-index:1;display:grid;grid-template-columns:.85fr 1.05fr 1.1fr;border-top:1px solid #ffffff45;padding-top:13px}
.summary-grid>div{display:grid;grid-template-columns:auto 1fr;align-items:center;align-content:start;gap:4px 5px;min-width:0;padding-inline:clamp(6px,2.7vw,15px);border-left:1px solid #ffffff3b;color:#f4f6ff}
.summary-grid>div:first-child{border-left:0;padding-left:0}
.summary-grid>div:last-child{padding-right:0}
.summary-grid svg{width:15px;height:15px}
.summary-grid span{font-size:clamp(12px,3.4vw,14px);white-space:nowrap}
.summary-grid strong{grid-column:1/-1;font-size:clamp(15px,3.9vw,20px);line-height:1.3;color:white;font-variant-numeric:tabular-nums}
.times-icon{font-weight:750;line-height:15px}
.dashboard-cards{display:grid;gap:13px;margin-block:15px 13px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:clamp(13px,3.5vw,19px);min-width:0}
.card-heading,.title-with-icon{display:flex;align-items:center;gap:9px}
.card-heading{justify-content:space-between;margin-bottom:11px}
.section-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--blue-pale);color:var(--blue);flex-shrink:0}
.section-icon svg{width:19px;height:19px}
.text-button,.primary,.secondary,.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:42px;padding:8px 12px;border-radius:11px;border:1px solid transparent;font-size:14px;font-weight:700;white-space:nowrap;line-height:1.25}
.text-button{padding-inline:5px;background:transparent;color:var(--blue-deep)}
.text-button:hover,.secondary:hover{background:#e4ebff}
.text-button svg,.primary svg,.secondary svg{width:17px;height:17px}
.primary{background:var(--blue);color:white}
.primary:hover{background:#1f45c7}
.secondary{background:var(--blue-pale);color:var(--blue-deep);border-color:#dfe6fe}
.danger-button{background:var(--red-bg);color:var(--red)}
label{display:block;min-width:0;font-size:14px;font-weight:650}
input:not([type=radio]),select{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:8px 10px;color:#192442;background:#f9faff;font-size:16px}
input::placeholder{color:#69768e}
select{appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6' fill='none' stroke='%235d6c86' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:15px 15px}
label>input,label>select,label>.input-addon{margin-top:5px}
.page-heading label>select{margin:0}
.staff-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.staff-picker{margin-bottom:10px}
.input-addon{position:relative}
.input-addon input{padding-right:64px}
.input-addon span{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:12px;color:var(--muted);pointer-events:none;white-space:nowrap}
.mode-field{padding:0;border:0;margin:11px 0 0;min-width:0}
.mode-field legend{padding:0;margin-bottom:5px;font-size:14px;font-weight:650}
.segmented{display:grid;grid-template-columns:1fr 1fr;border-radius:11px;gap:3px;padding:3px;background:#edf1f8}
.segmented label{position:relative}
.segmented input{position:absolute;opacity:0;inset:0;cursor:pointer;margin:0}
.segmented span{display:grid;place-items:center;border-radius:8px;min-height:38px;color:var(--muted);font-weight:650;text-align:center}
.segmented input:checked+span{background:white;color:var(--blue-deep);box-shadow:0 1px 4px #142d6518}
.segmented input:focus-visible+span{outline:2px solid #6c89ff}
.helper,.context,.privacy-note{color:var(--muted);font-size:14px;line-height:1.55}
.profile .helper{margin-top:7px;min-height:21px}
.photo-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
.photo-shortcuts button{display:grid;place-items:center;align-content:center;min-height:99px;gap:4px;border:1px dashed #aabcf5;border-radius:13px;color:var(--blue-deep);background:#f7f9ff;padding:8px 4px}
.photo-shortcuts button:hover{background:#edf2ff}
.photo-shortcuts small{font-size:12px;color:var(--muted)}
.photo-shortcuts svg{width:21px;height:21px}
.notice{color:#805218;background:#fff6e7;border:1px solid #f0dfc0;border-radius:11px;padding:10px 12px;margin-top:10px;font-size:14px;line-height:1.5}
.notice.error-text{background:var(--red-bg);color:var(--red);border-color:#ffc6cc}
.bottom-nav{position:fixed;z-index:5;bottom:0;inset-inline:0;background:white;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px);box-shadow:0 -4px 22px #243d7d0b}
.nav-inner{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding-block:6px}
.nav-inner button{display:grid;place-items:center;align-content:center;gap:3px;border:0;background:transparent;border-radius:12px;color:var(--muted);min-height:51px;font-size:13px;font-weight:650}
.nav-inner button[aria-current=page]{color:var(--blue-deep);background:var(--blue-pale)}
.nav-inner svg{width:21px;height:21px}
.empty{display:grid;justify-items:center;gap:6px;text-align:center;color:var(--muted);font-size:14px;background:#f8faff;border-radius:12px;padding:18px 8px;margin-top:12px}
.empty strong{color:#344263;font-size:15px}
.empty svg{color:#8198d7}
.shift-row,.holiday-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 0;border-top:1px solid var(--line)}
.shift-row{margin-top:8px}
.shift-row .date{font-weight:700;color:#344263;align-self:start;white-space:nowrap}
.shift-row .shift-data{flex:1;min-width:0;font-variant-numeric:tabular-nums}
.shift-row strong{font-size:15px}
.shift-row small{display:block;color:var(--muted);font-size:13px;line-height:1.45}
.shift-row button{flex-shrink:0}
.tag,.holiday-chip{display:inline-block;background:#f0f3fc;color:#425477;border-radius:8px;padding:4px 7px;font-size:13px;font-weight:650;margin:3px 0}
.tag.double,.holiday-chip{background:#fff0da;color:#85511a}
.holiday-chip{margin-right:4px}
.holiday-month{margin-top:9px}
.rules{font-size:14px;line-height:1.65;color:var(--muted);margin-top:16px;padding-inline:4px}
.rules summary{cursor:pointer;font-weight:650;color:#36486d}
.rules p{margin:7px 0}
dialog{padding:19px;border:1px solid var(--line);border-radius:22px;color:inherit;background:white;width:min(calc(100% - 26px),475px);max-height:calc(100dvh - 24px);box-shadow:0 16px 50px #19244242;overflow:auto}
dialog::backdrop{background:#14223b88}
.dialog-heading,.dialog-actions,.shift-punch-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dialog-heading{margin-bottom:10px}
.dialog-actions{margin-top:14px}
.dialog-actions .primary{margin-left:auto}
#scheduled-label{margin-top:10px}
.shift-punch-heading{margin-top:10px}
.pair{display:grid;grid-template-columns:1fr 1fr 32px;gap:7px;align-items:end;margin-block:6px 10px}
.pair .icon-button{min-width:32px}
.pair input{font-variant-numeric:tabular-nums}
.error-text{color:var(--red);font-size:14px;line-height:1.5}
#shift-result,#shift-error{margin-top:8px}
.photo-actions,.scan-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.scan-sides{display:grid;gap:10px}
.scan-side img{display:block;width:100%;height:165px;object-fit:contain;background:#f4f6fb;border-radius:11px;margin-top:10px}
.scan-side .photo-actions button{flex:1}
.scan-side .card-heading small{color:var(--muted);font-size:13px}
.scan-side .progress{height:6px;width:100%;accent-color:var(--blue);margin-top:12px}
.privacy-note{display:flex;align-items:center;gap:6px;margin:14px 4px}
.privacy-note svg{width:18px;height:18px}
.scan-review{margin-top:13px}
.scan-review h3{margin-bottom:3px}
.review-row{display:grid;grid-template-columns:1fr;gap:5px;padding:10px 8px;margin-top:8px;border:1px solid var(--line);border-radius:11px}
.review-row.flagged{background:var(--red-bg);border-color:#ffc6cc}
.review-row .row-label{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:14px}
.review-row.flagged .row-label{color:var(--red)}
.review-row .row-label small{font-size:13px}
.review-row .review-actions{display:flex;gap:6px;justify-content:flex-end;align-items:center}
.review-row .pair{margin:3px 0}
.review-row .pair:last-child{margin-bottom:0}
.review-row .time-error{border-color:#db6371;background:#fff7f8}
.holiday-guide{line-height:1.55;margin-bottom:13px}
.holiday-guide p{margin:8px 0;color:var(--muted)}
.holiday-guide a,.holiday-source{font-size:14px}
.holiday-section{margin-bottom:13px}
.holiday-section h2{margin-bottom:10px}
.holiday-row span{font-size:14px;text-align:right;flex-shrink:0;color:var(--muted);font-variant-numeric:tabular-nums}
.holiday-row strong{font-size:15px}
.holiday-source{display:inline-block;margin-top:8px}
.toast{position:fixed;z-index:10;inset-inline:10px;bottom:calc(75px + env(safe-area-inset-bottom,0px));margin-inline:auto;width:fit-content;max-width:calc(100% - 20px);color:white;background:#273652;padding:9px 14px;border-radius:10px;font-size:14px;box-shadow:0 3px 12px #243d7d33}
@media(min-width:640px){.dashboard-cards,.scan-sides{grid-template-columns:1.08fr 1fr}.photo-shortcuts button{min-height:125px}.topbar-inner{height:74px}.summary{padding-block:23px}.nav-inner{max-width:520px}}
@media(max-width:355px){.summary-icon{display:none}.month-switch .icon-button{min-width:28px}.month-picker{min-width:82px}.input-addon input{padding-right:10px}.input-addon span{display:none}.save-badge{font-size:11px}}
.scan-range{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.scan-side{overflow:hidden}
#scan-review{scroll-margin-top:12px}
.sync-message{margin:0 0 13px}
.sync-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}
.save-badge{border:0;min-height:35px}
#link-value{font-size:16px}
#link-share label{margin-block:10px 6px}
#link-sign-in{text-decoration:none}
.staff-toolbar{display:flex;gap:8px;margin-bottom:12px;align-items:center}
.staff-switch{position:relative;flex:1}
.staff-switch>svg{position:absolute;left:10px;top:50%;translate:0 -50%;color:var(--blue);pointer-events:none}
.staff-switch select{margin-top:0;background-color:#fff;padding-left:37px;font-weight:700}
.overview-directory{margin-top:15px}
.staff-search{width:min(47%,240px)}
.staff-search input{margin:0}
.overview-person{display:block;width:100%;text-align:left;font:inherit;background:#f8faff;color:inherit;border:1px solid var(--line);border-radius:12px;padding:11px 12px;margin-top:8px}
.overview-person:hover,.overview-person:focus-visible{background:var(--blue-pale)}
.overview-person-heading,.overview-person-hours{display:flex;justify-content:space-between;align-items:baseline;gap:6px 12px;flex-wrap:wrap}
.person-amount{color:var(--blue-deep);font-variant-numeric:tabular-nums}
.overview-person-hours{justify-content:flex-start;font-size:13px;color:var(--muted);margin-top:4px}
.nav-inner button{padding-inline:2px}
@media(max-width:355px){.nav-inner{gap:2px;padding-inline:7px}.nav-inner button{font-size:12px}}

.scan-instructions{margin:0 0 12px}
.paste-card{margin-top:14px}
.paste-card summary{cursor:pointer;font-weight:700}
.paste-card label,.paste-card p,.paste-card button{margin-top:8px}
.paste-card textarea{display:block;width:100%;margin-top:4px;border:1px solid var(--line);border-radius:10px;padding:8px;font:inherit;font-size:16px}
