
    :root{font-family:"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;color:#182638;background:#f3f6fa;--navy:#12263f;--blue:#1479d1;--line:#dce4ed;--muted:#68788b;--purple:#7041a6;--red:#a72e3b}
    *{box-sizing:border-box}body{margin:0;min-height:100vh;padding:20px}.shell{width:min(1040px,100%);margin:0 auto}header{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 4px 20px}.brand{font-weight:850;letter-spacing:.12em;color:var(--navy)}.brand small{display:block;font-size:.75rem;letter-spacing:.04em;opacity:.65}.profile{color:var(--muted);text-align:right;font-size:.88rem}.profile strong{display:block;color:#182638;font-size:1rem}.tag{display:inline-block;padding:5px 10px;border-radius:999px;background:#eaf5fd;color:#1169aa;font-size:.78rem;font-weight:700}
    nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 4px 18px}.navbtn{border:1px solid var(--line);border-radius:11px;padding:9px 13px;background:#fff;color:#34465b;font-weight:700}.navbtn.active{background:#193753;color:#fff;border-color:#193753}.view.hidden,.hidden{display:none!important}.intro{margin:6px 4px 18px}.intro small{color:var(--muted)}h1{font-size:clamp(1.7rem,4vw,2.35rem);margin:3px 0}h2{font-size:1.2rem;margin:0 0 8px}.muted{color:var(--muted)}
    .card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:clamp(18px,3vw,30px);box-shadow:0 12px 36px #152a430b;margin-bottom:16px}.punch{color:#fff;background:linear-gradient(130deg,#123452,#0f7183);border:0;min-height:330px;display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center}.clock-label{color:#c2d9e5}.clock{font-size:clamp(3rem,9vw,5rem);line-height:1.15;letter-spacing:-.05em;margin:8px 0}.date{color:#c2d9e5}.locations{display:flex;flex-wrap:wrap;gap:9px;margin:25px 0 12px}.location{border:1px solid #ffffff60;background:#ffffff15;color:#fff;border-radius:11px;padding:10px 14px;font-weight:700}.location.active{background:#fff;color:#12445d}.other{width:min(420px,100%);padding:11px 13px;border:1px solid #ffffff75;border-radius:10px;background:#ffffff12;color:#fff}.other::placeholder{color:#d0e0e8}.last{color:#d3e5ec;font-size:.9rem;min-height:24px}.actions{text-align:center;min-width:165px}.state{display:inline-block;margin-bottom:15px;padding:8px 12px;border-radius:999px;background:#ffffff25;color:#fff;font-weight:700;white-space:nowrap}.punch-btn{border:0;border-radius:16px;background:#fff;color:#104662;min-width:148px;min-height:72px;padding:15px;font-weight:850;font-size:1.1rem;box-shadow:0 12px 30px #001c2b33}.punch-btn:disabled{opacity:.55;cursor:not-allowed}.note{max-width:200px;margin:12px auto 0;color:#d4e5eb;font-size:.82rem;line-height:1.5}.help{color:var(--muted);font-size:.84rem;margin:14px 4px}.error{color:var(--red);background:#fff0f1;padding:12px 15px;border-radius:11px;margin:12px 0}.error.hidden{display:none}.success{color:#136443;background:#e8f7f1;padding:12px 15px;border-radius:11px;margin:12px 0}.success.hidden{display:none}
    .formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-weight:750;font-size:.9rem;color:#34465b}.input,.select,.textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px 12px;min-height:44px;color:#182638;font:inherit}.textarea{min-height:90px;resize:vertical}.agents{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px;padding:12px;border:1px solid var(--line);border-radius:12px}.agent{display:flex;align-items:center;gap:8px;color:#34465b}.agent input{accent-color:var(--blue)}.formactions{display:flex;justify-content:flex-end;gap:10px;grid-column:1/-1}.btn{border:0;border-radius:10px;padding:11px 17px;font:inherit;font-weight:750;cursor:pointer}.primary{background:var(--blue);color:#fff}.secondary{border:1px solid var(--line);background:#fff;color:#34465b}.btn:disabled{opacity:.6;cursor:wait}
    .list{display:grid;gap:10px}.item{border:1px solid var(--line);border-radius:13px;padding:15px}.itemtop{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.item strong{color:#1b3045}.status{font-size:.78rem;font-weight:750;padding:4px 9px;border-radius:999px;background:#fff3df;color:#98600f;white-space:nowrap}.status.ok{background:#e8f7f1;color:#136443}.status.no{background:#fff0f1;color:#a72e3b}.meta{font-size:.84rem;color:var(--muted);margin:6px 0}.detail{white-space:pre-wrap;line-height:1.6;font-size:.9rem}.decision{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}.delegated{border-color:#e1d5ef;background:#fbf8ff}.small{font-size:.8rem;color:var(--muted)}
    @media(max-width:620px){body{padding:12px}.punch{grid-template-columns:1fr;min-height:0}.actions{text-align:left}.note{max-width:none;margin:10px 0 0}.punch-btn{min-height:60px}.profile{font-size:.78rem}.formgrid{grid-template-columns:1fr}.field.full,.formactions{grid-column:auto}.itemtop{align-items:flex-start}}
  
button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #35a7d9;outline-offset:3px}header{flex-wrap:wrap}.session-actions{display:flex;gap:8px}.session-actions .btn{font-size:.8rem;padding:8px 10px}.profile{margin-left:auto}.login-card{max-width:480px;margin:9vh auto 0}.login-card .field{margin:20px 0}.login-card>.primary{width:100%;margin-top:8px}.login-card h1{font-size:1.9rem;margin-top:16px}.mvp-banner{font-size:.8rem;color:#57718a;padding:12px 4px;border-bottom:1px solid var(--line)}dialog{border:1px solid var(--line);border-radius:18px;padding:24px;width:min(480px,92vw)}dialog::backdrop{background:#12263f88}#historyList{margin-top:18px}#pendingList:empty{display:none}
.login-links{display:flex;justify-content:space-between;margin-top:18px}.link-button{border:0;background:transparent;padding:7px 0;color:#1479d1;font:inherit;font-size:.9rem;font-weight:700;text-decoration:underline;text-underline-offset:3px}.login-card>.primary{min-height:48px}
.password-wrap{position:relative}.password-wrap .input{padding-right:52px}.password-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:40px;height:38px;border:0;border-radius:8px;background:transparent;color:#40566d;font-size:1.15rem;line-height:1}.password-toggle:hover,.password-toggle[data-visible=true]{background:#eaf5fd;color:#1169aa}
