:root{--bg:#f4f5f7;--card:#fff;--text:#17191d;--muted:#6f7680;--line:#e5e7eb;--accent:#17191d;--soft:#f7f8fa;--danger:#b42318;--radius:18px}
*{box-sizing:border-box} html{-webkit-text-size-adjust:100%} body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)} button,input,textarea{font:inherit}.app-shell{width:min(1180px,calc(100% - 28px));margin:30px auto 70px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.topbar h1{font-size:clamp(30px,4vw,46px);letter-spacing:-.04em;margin:4px 0 0}.eyebrow{font-size:14px;color:var(--muted);font-weight:600}.icon-btn{border:1px solid var(--line);background:var(--card);width:44px;height:44px;border-radius:12px;font-size:22px;cursor:pointer;touch-action:manipulation}.week-card{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;background:var(--accent);color:#fff;padding:22px;border-radius:var(--radius);margin-bottom:16px}.week-nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.nav-btn{border:0;background:rgba(255,255,255,.12);color:#fff;width:44px;height:44px;border-radius:12px;font-size:28px;cursor:pointer;touch-action:manipulation}.today-btn{border:1px solid rgba(255,255,255,.22);background:transparent;color:#fff;border-radius:10px;padding:11px 13px;cursor:pointer;font-weight:700;min-height:44px}.week-label{font-weight:700;font-size:18px}.week-range{font-size:14px;color:#c9cdd3;margin-top:4px}.week-total{text-align:right}.week-total span{display:block;font-size:13px;color:#c9cdd3}.week-total strong{font-size:30px;letter-spacing:-.03em}.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-top:16px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:18px}.panel h2{font-size:20px;margin:0;letter-spacing:-.02em}.panel-head p{margin:5px 0 0;color:var(--muted);font-size:14px}.link-btn{border:0;background:transparent;color:#555d68;font-weight:700;cursor:pointer;white-space:nowrap;min-height:44px}.mobile-hint{display:none;font-size:12px;color:var(--muted);margin:0 0 8px}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:14px;scrollbar-width:thin}.timesheet{border-collapse:separate;border-spacing:0;width:100%;min-width:930px}.timesheet th,.timesheet td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:0;text-align:center}.timesheet tr>*:last-child{border-right:0}.timesheet tfoot tr>*{border-bottom:0}.timesheet thead th{background:#f8f9fb;padding:12px 8px;font-size:13px;color:#4e5662;position:sticky;top:0;z-index:2}.timesheet .customer-col{min-width:190px;text-align:left;padding-left:16px;left:0;z-index:4}.timesheet .total-col{min-width:92px}.day-name{display:block;text-transform:capitalize;font-weight:800;color:#2e333b}.day-date{display:block;margin-top:3px;font-size:11px;color:#8a9099;font-weight:600}.customer-name{text-align:left!important;padding:0 16px!important;background:#fff;white-space:nowrap;font-size:14px;position:sticky;left:0;z-index:3;box-shadow:1px 0 0 var(--line)}.timesheet tbody td{height:66px;background:#fff;min-width:92px}.entry-cell{position:relative;height:66px}.hours-input{width:100%;height:66px;border:0;outline:0;background:transparent;text-align:center;font-weight:700;font-size:16px;padding:7px 26px 7px 8px;border-radius:0}.hours-input::placeholder{color:#c8ccd2;font-weight:500}.hours-input:focus{background:#f4f7ff;box-shadow:inset 0 0 0 2px #9ca3af}.hours-input.invalid{background:#fff1f0;box-shadow:inset 0 0 0 2px #d92d20}.comment-btn{position:absolute;right:5px;bottom:5px;width:24px;height:24px;border:0;background:transparent;color:#b7bcc4;font-size:18px;line-height:1;cursor:pointer;padding:0;border-radius:50%;touch-action:manipulation}.comment-btn.has-comment{color:#1f2937}.comment-btn:focus-visible{outline:2px solid #6b7280;outline-offset:1px}.row-total{background:#fafafa!important;font-weight:800;font-size:14px;padding:0 10px!important}.timesheet tfoot th,.timesheet tfoot td{background:#f3f4f6;padding:12px 8px;font-size:13px;font-weight:800}.timesheet tfoot th{text-align:left;padding-left:16px;position:sticky;left:0;z-index:3;box-shadow:1px 0 0 var(--line)}.grand-total{background:#e8eaed!important;font-size:14px!important}.add-customer-row{display:flex;gap:10px;margin-top:16px;max-width:410px}.add-customer-row input,.add-customer-row select,.dialog-card input,.dialog-card textarea{width:100%;padding:12px 13px;border:1px solid #d8dbe1;background:#fff;border-radius:11px;outline:none;font-size:16px}.dialog-card textarea{resize:vertical;min-height:120px}.add-customer-row input:focus,.add-customer-row select:focus,.dialog-card input:focus,.dialog-card textarea:focus{border-color:#858b95;box-shadow:0 0 0 3px #eef0f3}.primary,.secondary,.inline-add button{border:0;border-radius:11px;padding:11px 15px;font-weight:800;cursor:pointer;min-height:44px;touch-action:manipulation}.primary{background:var(--accent);color:#fff}.secondary,.inline-add button{background:#eef0f3;color:#333;white-space:nowrap}dialog{border:0;padding:0;border-radius:20px;box-shadow:0 24px 80px rgba(0,0,0,.25);width:min(560px,calc(100% - 28px));max-height:calc(100dvh - 28px)}dialog::backdrop{background:rgba(10,12,16,.35)}.dialog-card{padding:22px;overflow:auto}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px;gap:14px}.dialog-head h2{margin:0}.dialog-subtitle{font-size:13px;color:var(--muted);margin-top:5px}.dialog-card label{display:flex;flex-direction:column;gap:7px}.dialog-card label span,.subhead{font-size:13px;color:#555d68;font-weight:700}.management-block{margin-top:22px}.inline-add{display:flex;gap:7px;margin-top:8px}.tag-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.tag{display:flex;align-items:center;gap:6px;background:#f0f1f3;border-radius:999px;padding:7px 10px;font-size:13px}.tag button{border:0;background:transparent;color:#888;cursor:pointer;padding:0;font-size:16px}.dialog-actions{display:flex;justify-content:flex-end;margin-top:24px;gap:12px}.split-actions{justify-content:space-between;align-items:center}.danger-link{border:0;background:transparent;color:var(--danger);font-weight:700;cursor:pointer;min-height:44px}
@media(max-width:760px){.app-shell{width:calc(100% - 18px);margin-top:14px}.week-card{grid-template-columns:1fr;padding:18px}.week-total{text-align:left;border-top:1px solid rgba(255,255,255,.15);padding-top:16px}.panel{padding:14px}.panel-head{align-items:flex-start}.mobile-hint{display:block}.timesheet{min-width:850px}.timesheet .customer-col{min-width:135px}.customer-name{max-width:135px;overflow:hidden;text-overflow:ellipsis;padding:0 10px!important}.timesheet tbody td{min-width:86px}.add-customer-row{max-width:none}}
@media(max-width:480px){.topbar h1{font-size:32px}.week-nav{gap:8px}.today-btn{width:100%;margin-top:4px}.panel-head{display:block}.link-btn{margin-top:8px;padding:0}.add-customer-row{flex-direction:column}.dialog-card{padding:18px}.split-actions{align-items:stretch;flex-direction:column-reverse}.split-actions .primary,.split-actions .danger-link{width:100%}}
.report-panel{margin-top:20px}.report-head{margin-bottom:14px}.report-controls{display:grid;grid-template-columns:minmax(170px,220px) minmax(170px,220px) auto;gap:12px;align-items:end}.report-controls label{display:flex;flex-direction:column;gap:7px}.report-controls label span{font-size:13px;color:#555d68;font-weight:700}.report-controls input{width:100%;min-height:44px;padding:10px 12px;border:1px solid #d8dbe1;border-radius:11px;background:#fff;font-size:16px}.report-controls input:focus{outline:none;border-color:#858b95;box-shadow:0 0 0 3px #eef0f3}.report-button{white-space:nowrap}.report-error{min-height:20px;margin-top:9px;color:var(--danger);font-size:13px;font-weight:600}
@media(max-width:700px){.report-controls{grid-template-columns:1fr 1fr}.report-button{grid-column:1/-1;width:100%}}
@media(max-width:430px){.report-controls{grid-template-columns:1fr}.report-button{grid-column:auto}}

.is-hidden{display:none!important}.login-screen{min-height:100dvh;display:grid;place-items:center;padding:22px;background:var(--bg)}.login-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:0 18px 55px rgba(16,24,40,.08)}.login-brand{font-size:12px;letter-spacing:.18em;font-weight:900;color:#6f7680}.login-card h1{margin:8px 0 6px;font-size:34px;letter-spacing:-.04em}.login-card>p{margin:0 0 24px;color:var(--muted)}.login-card label{display:flex;flex-direction:column;gap:7px;margin-top:14px}.login-card label span{font-size:13px;color:#555d68;font-weight:700}.login-card input{width:100%;min-height:48px;padding:11px 13px;border:1px solid #d8dbe1;border-radius:11px;background:#fff;font-size:16px;outline:none}.login-card input:focus{border-color:#858b95;box-shadow:0 0 0 3px #eef0f3}.login-button{width:100%;margin-top:8px}.login-error{min-height:22px;margin-top:10px;color:var(--danger);font-size:13px;font-weight:700}.logout-btn{border:1px solid var(--line);background:var(--card);border-radius:11px;padding:10px 14px;font-weight:800;cursor:pointer;min-height:44px}@media(max-width:480px){.login-screen{padding:14px}.login-card{padding:22px}.login-card h1{font-size:30px}}

.remember-row{display:flex!important;flex-direction:row!important;align-items:center;gap:9px!important;margin:14px 0 2px!important;cursor:pointer}.remember-row input{width:18px!important;min-height:auto!important;height:18px;margin:0;accent-color:#17191d}.remember-row span{font-size:14px!important;font-weight:700!important;color:#555d68!important}

.new-customer-row{display:flex;gap:10px;margin-top:10px;max-width:410px}.new-customer-row input{width:100%;padding:12px 13px;border:1px solid #d8dbe1;background:#fff;border-radius:11px;outline:none;font-size:16px}.new-customer-row input:focus{border-color:#858b95;box-shadow:0 0 0 3px #eef0f3}.customer-message{min-height:19px;margin-top:6px;color:#555d68;font-size:13px;font-weight:600}@media(max-width:760px){.new-customer-row{max-width:none}}@media(max-width:480px){.new-customer-row{flex-direction:column}}
