:root{font-family:"Yu Gothic UI",Meiryo,sans-serif;color:#1f4140;background:#f3f8f7}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:16px;background:#17484c;color:#fff;padding:14px 24px}header span{font-size:13px}#identity{margin-left:auto;display:flex;gap:12px;align-items:center}#identity[hidden]{display:none}#identity button{color:#1f4140}main{padding:20px 24px;max-width:1800px;margin:auto}h1{font-size:21px;margin:0}h2{font-size:17px}button,input,select,textarea{font:inherit;color:inherit}button{border:1px solid #c2d9d4;border-radius:6px;padding:8px 12px;background:#fff;cursor:pointer}button:hover{background:#eff8f5}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #28856d;outline-offset:1px}.primary{background:#177d6d;color:#fff;border-color:#177d6d}.add{background:#dceefa}.notice{padding:10px 14px;background:#fff7e6;border-left:4px solid #e0ac4e;margin-bottom:20px}.heading,.toolbar{display:flex;align-items:end;gap:9px;flex-wrap:wrap}.heading{justify-content:space-between}.toolbar{margin:12px 0}.row-form label,.login-form label,dialog label{display:grid;gap:4px;font-size:13px}input,select,textarea{border:1px solid #c5d9d4;border-radius:5px;padding:8px;background:#fff}select{max-width:220px}.login-form{display:grid;gap:12px;max-width:360px;margin-top:16px}.login-form p{margin:0;font-size:13px}.legend{font-size:12px;color:#56716d}.error{color:#a41e22}.table-scroll{overflow:auto}.week-table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:1000px;background:white}.week-table th,.week-table td{border:1px solid #cfdfdb;padding:5px}.week-table th{background:#eaf6e9;font-size:12px}.week-table th.sat{background:#dcecf8}.week-table th.sun{background:#fae9e8}.work-head{width:210px}.sum-head{width:50px}.work-name{font-size:12px;overflow-wrap:anywhere}.sum{text-align:right;font-size:12px}.slots{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px;touch-action:none}.slot{min-width:0;height:22px;padding:0;border:1px solid #d8e5e2;border-radius:3px}.slot.plan{background:#91d2ee}.slot.yes{background:#ffab94}.slot.no{background:#f3e6a3}.slot.drag{outline:2px solid #225e68}.notes th{vertical-align:middle}.notes textarea{resize:vertical;width:100%;min-height:75px;border:0;border-radius:0}.note-status{font-size:11px;color:#476d60}.details{margin-top:20px}.details table{border-collapse:collapse;width:100%;background:#fff}.details td,.details th{padding:8px;border-bottom:1px solid #dbe9e4;text-align:left}dialog{border:1px solid #c4dad4;border-radius:8px;max-width:420px;width:calc(100% - 30px)}dialog::backdrop{background:#102b28aa}dialog form{display:grid;gap:10px}dialog h2{margin:0}.dialog-time{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media(max-width:700px){main{padding:16px}header{padding:12px}header span{font-size:11px}}
:root{font-size:14px}header span,.row-form label,.login-form label,dialog label,.login-form p,.legend,.week-table th,.work-name,.sum{font-size:14px}.note-status{font-size:12px}.empty-work{height:76px}.empty-slot{cursor:not-allowed;background:#fff;opacity:1}
.notes textarea{display:block;font-size:12px;line-height:1.5}.notes .note-status{display:block;min-height:18px}
.notes .note-retry{font-size:12px;padding:3px 7px;margin:2px 0 3px}
.recovery-rehearsal-option{display:flex!important;align-items:center;gap:8px}.recovery-rehearsal-option input{width:auto}
#verify-backup-dialog{max-height:calc(100dvh - 32px);overflow:auto}#recovery-login-fields label{margin-top:8px}#recovery-login-fields p{margin:6px 0;font-size:12px}
.local-backup-health{margin:12px 0 16px}.local-backup-health h3{font-size:14px;margin:0 0 6px}.local-backup-health p{font-size:12px;margin:6px 0;color:#425a70}.local-backup-health button{font-size:12px;padding:4px 8px}
.notification-preview-section{margin-top:24px}.notification-preview-section>p{font-size:12px;color:#536b7d}.notification-preview-section label{display:flex;align-items:center;gap:8px}.notification-preview-section pre{font:inherit;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid #d5deea;padding:12px;max-height:420px;overflow:auto}.notification-preview-section pre:empty{display:none}
.notification-history-section{margin-top:24px}.notification-history-heading{display:flex;align-items:center;gap:12px}.notification-history-heading button,.notification-history-section table button{font-size:12px;padding:4px 8px}.notification-history-section>p{font-size:12px;color:#536b7d}.notification-id{font-size:11px;overflow-wrap:anywhere}#notification-resolve-dialog{max-height:calc(100dvh - 32px);overflow:auto}#notification-resolve-content{font:inherit;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;background:#f3f6fa;padding:8px}#notification-resolve-actions label{display:flex;align-items:center;gap:7px;margin:6px 0}#notification-resolve-actions input{width:auto}
.notification-reconciliation-section{margin-top:24px}.notification-reconciliation-section>p{font-size:12px;color:#536b7d}.notification-reconciliation-section button{font-size:12px;padding:4px 8px}#reconciliation-dialog{max-height:calc(100dvh - 32px);overflow:auto}#reconciliation-dialog p{font-size:12px;margin:0;line-height:1.5}#reconciliation-dialog .recovery-rehearsal-option{align-items:flex-start;line-height:1.5}#reconciliation-dialog .recovery-rehearsal-option input{margin-top:3px;flex:none}
.week-table .daily-total th,.week-table .daily-total td{padding:4px;font-size:12px;text-align:center}.week-table .daily-total td{background:#f5f9fd;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.billing-options{border:0;padding:0;margin:0;min-width:0}.billing-options legend{padding:0;margin-bottom:5px;font-size:14px}.radio-options{display:flex;flex-wrap:wrap;gap:18px}.radio-options label{display:flex;align-items:center;gap:6px;font-size:14px}.radio-options input{margin:0;accent-color:#177d6d}.entry-comment{white-space:pre-wrap;overflow-wrap:anywhere;min-width:120px}
.radio-options input[type=radio]{appearance:none;width:18px;height:18px;padding:0;border:2px solid #638079;border-radius:50%;display:grid;place-content:center;flex:none}.radio-options input[type=radio]:checked[value=yes]{background:#ffab94;border-color:#99513b}.radio-options input[type=radio]:checked[value=no]{background:#f3e6a3;border-color:#8a7120}.radio-options input[type=radio]:checked::after{content:"";width:6px;height:6px;border-radius:50%;background:#344b43}.slot-overflow{font-size:12px;font-weight:700;color:#173e37}
.week-table td.sum{padding:3px 2px;font-size:11px;line-height:1.2;overflow-wrap:anywhere;word-break:break-word}.details table{font-size:12px;line-height:1.35}.details td,.details th{padding:4px 6px}.details button{font-size:12px;padding:3px 8px}
.week-navigation{align-items:center}.week-arrow{position:relative;isolation:isolate;min-width:74px;height:38px;border:0;border-radius:0;background:#bdd4ce}.week-arrow::before{content:"";position:absolute;inset:1px;z-index:-1;background:#fff}.week-arrow:hover::before{background:#eff8f5}.week-previous,.week-previous::before{clip-path:polygon(0 50%,20% 0,100% 0,100% 100%,20% 100%)}.week-next,.week-next::before{clip-path:polygon(0 0,80% 0,100% 50%,80% 100%,0 100%)}.week-previous{padding-left:20px}.week-next{padding-right:20px}.week-range{display:inline-flex;align-items:center;min-height:38px;padding:7px 12px;border:1px solid #c2d9d4;border-radius:5px;background:#fff;color:#244b48;font-size:14px}
.week-navigation>button,.week-navigation>.week-range{height:30px;min-height:30px}.week-navigation>button{padding-top:3px;padding-bottom:3px}.row-form select,.row-form>button{height:34px;min-height:34px;padding-top:4px;padding-bottom:4px}
.week-navigation>.week-arrow{height:26px;min-height:26px;padding-top:1px;padding-bottom:1px}.work-name strong{font-size:inherit;font-weight:inherit}
#entry-error{margin:0}#entry-error:empty{display:none}#entry-form>.toolbar{margin:0}
.view-navigation{display:flex;gap:4px;margin-bottom:20px;border-bottom:1px solid #c9ded8}.view-navigation[hidden]{display:none}.view-navigation button{border:0;border-radius:4px 4px 0 0;background:transparent;padding:8px 14px}.view-navigation button[aria-pressed=true]{background:#dceee9;color:#145d50;font-weight:700}.calendar-navigation{align-items:center}.calendar-navigation button{min-width:36px;padding:5px 10px}.calendar-navigation strong{margin-left:8px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #d0e0dc;border-left:1px solid #d0e0dc}.calendar-weekday,.calendar-empty,.calendar-day{border:0;border-right:1px solid #d0e0dc;border-bottom:1px solid #d0e0dc;border-radius:0}.calendar-weekday{padding:7px;text-align:center;background:#eaf6e9;font-weight:700}.calendar-weekday.sat{background:#dcecf8}.calendar-weekday.sun{background:#fae9e8}.calendar-empty{background:#f4f7f6}.calendar-day{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;min-width:0;min-height:100px;padding:8px;background:#fff;font-size:13px}.calendar-day.sat .calendar-date{color:#356eaa}.calendar-day.sun .calendar-date{color:#b55757}.calendar-date{font-weight:700;font-size:14px}.calendar-plan{color:#266b91}.calendar-actual{color:#93513d}.calendar-note{font-size:12px;color:#566f67}@media(max-width:700px){.calendar-day{min-height:76px;padding:4px;font-size:11px;overflow-wrap:anywhere}.calendar-note{font-size:10px}.calendar-date{font-size:12px}}
.calendar-project{display:flex;flex-direction:column;gap:1px;width:100%;padding-top:5px;border-top:1px solid #dbe9e4;overflow-wrap:anywhere;line-height:1.3}.calendar-hours{display:flex;flex-wrap:wrap;gap:2px 7px}.calendar-more{font-size:12px;color:#315e86}
.contract-notice{color:#755722;background:#fff7e6;padding:9px 12px;border-left:3px solid #d5a44a}.contract-controls label{display:grid;gap:4px;max-width:320px}.contract-layout{display:grid;grid-template-columns:minmax(320px,1.1fr) minmax(300px,1fr);gap:24px;align-items:start;margin-top:16px}.contract-list-scroll{overflow:auto}.contract-table,.contract-payments{width:100%;border-collapse:collapse;background:#fff;font-size:13px}.contract-table th,.contract-table td,.contract-payments th,.contract-payments td{padding:8px;border-bottom:1px solid #dbe9e4;text-align:left;vertical-align:top}.contract-table th,.contract-payments th{background:#eaf6e9}.contract-select{padding:4px 6px;background:transparent;border:0;color:#176a60}.contract-select[aria-current=true]{background:#dceee9;font-weight:700}.contract-detail{min-width:0}.contract-detail h2{margin:0 0 12px}.contract-detail h3{font-size:14px;margin:20px 0 8px}.contract-fields{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.contract-fields>div{border-bottom:1px solid #dbe9e4;padding:8px 0;min-width:0}.contract-fields dt{font-size:12px;color:#607a73}.contract-fields dd{margin:2px 0 0;overflow-wrap:anywhere}@media(max-width:800px){.contract-layout{grid-template-columns:minmax(0,1fr)}}
.contract-controls{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.contract-controls label{width:min(100%,320px)}.contract-controls input{width:100%;box-sizing:border-box}
.users-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,320px);gap:24px;align-items:start;margin-top:16px}.users-table-scroll{overflow:auto}.users-table{width:100%;border-collapse:collapse;background:#fff;font-size:13px}.users-table th,.users-table td{padding:8px;border-bottom:1px solid #dbe9e4;text-align:left;white-space:nowrap}.users-table th{background:#eaf6e9}.user-form{display:grid;gap:10px}.user-form h2{margin:0}.user-form label{display:grid;gap:4px}.user-form button{justify-self:start}.user-toggle{padding:5px 8px}.user-hint,#user-form-message{font-size:12px;margin:0;color:#526f69}.view-navigation{flex-wrap:wrap}@media(max-width:800px){.users-layout{grid-template-columns:minmax(0,1fr)}}
.view-navigation{gap:4px 8px;align-items:center;padding:4px 0;border-bottom:1px solid #cbded9}
.view-navigation button{position:relative;min-height:34px;padding:5px 15px;border:1px solid #cbded9;border-radius:6px;background:#fff;color:#536c68;font-weight:500;white-space:nowrap}
.view-navigation button:hover{background:#e8f3f0;color:#185e54}
.view-navigation button[aria-pressed=true]{border-color:#a7d0c2;background:#e0f0ea;color:#125e50;font-weight:700}
.view-navigation button[aria-pressed=true]::after{content:"";position:absolute;left:14px;right:14px;bottom:2px;height:2px;border-radius:2px;background:#18836d}
@media(max-width:500px){.view-navigation{gap:4px}.view-navigation button{padding:5px 10px;font-size:13px}}
#reset-form p{margin:0;font-size:13px}#reset-error:empty{display:none}#reset-form>.toolbar{margin:0}
#send-link-form p{margin:0;font-size:13px}#send-link-error:empty{display:none}#send-link-form>.toolbar{margin:0}
#slack-binding-form p{margin:0;font-size:13px}#slack-binding-error:empty{display:none}#slack-binding-form>.toolbar{margin:0}#slack-binding-form .slack-confirm{display:flex;align-items:flex-start;gap:8px}#slack-binding-form .slack-confirm input{margin:3px 0 0}
.password-setup{max-width:520px;margin:24px auto}.password-setup #setup-form[hidden]{display:none}.password-setup #setup-message{margin-top:16px;color:#476d60}
.password-checklist{display:flex;flex-wrap:wrap;gap:6px 14px;list-style:none;padding:0;margin:0;color:#647b75;font-size:12px}.password-checklist li{display:flex;align-items:center;gap:5px}.password-checklist li.met{color:#176b58}.password-checklist input[type=checkbox]{appearance:none;position:relative;flex:none;width:15px;height:15px;padding:0;margin:0;border:1px solid #9db7ae;border-radius:50%;background:#fff;opacity:1}.password-checklist input[type=checkbox]:checked{border-color:#268266;background:#268266}.password-checklist input[type=checkbox]:checked::after{content:"";position:absolute;left:4px;top:1px;width:4px;height:7px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
#resolve-delivery-form p{margin:0;font-size:13px}#resolve-delivery-error:empty{display:none}#resolve-delivery-form>.toolbar{margin:0}#resolve-delivery-form .resolution-confirm{display:flex;align-items:flex-start;gap:8px}#resolve-delivery-form .resolution-confirm input{margin:3px 0 0}
:root{color:#25334b;background:#edf0f5}
body{background:#edf0f5}
header{background:#fff;color:#1d2b43;border-bottom:1px solid #d5deeb;box-shadow:0 1px 3px #263c5a0d}
header span{color:#64758c}
#identity button{color:#33445e}
button,input,select,textarea{border-color:#cbd6e3}
button,input,select,textarea,dialog{border-radius:6px}
button:hover{background:#f0f5fd}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:#527ce4}
.primary{background:#406ce5;border-color:#406ce5;color:#fff}
.primary:hover{background:#335bca}
.add{background:#e7efff;border-color:#bdd0f5;color:#2857aa}
.notice{background:#fff9eb;color:#69542d;border-color:#e2b858;border-radius:4px}
.view-navigation{border-color:#d2dbe7}
.view-navigation button{border-color:#d1dbe8;background:#fff;color:#52657e}
.view-navigation button:hover{background:#edf3ff;color:#2b58a8}
.view-navigation button[aria-pressed=true]{border-color:#b5c9f6;background:#e7efff;color:#2654a8}
.view-navigation button[aria-pressed=true]::after{background:#4675e4}
.week-arrow{background:#c4d1e1}.week-arrow:hover::before{background:#f0f5fd}
.week-range{border-color:#cbd6e3;color:#33445e}
.week-table th,.calendar-weekday{background:#edf6f2;color:#365b50}
.week-table th.sat,.calendar-weekday.sat{background:#e7f0fc;color:#3c6094}
.week-table th.sun,.calendar-weekday.sun{background:#faecee;color:#995b64}
.week-table th,.week-table td,.calendar-grid,.calendar-weekday,.calendar-day,.calendar-empty{border-color:#d5deea}
.slot{border-color:#d4dfea;border-radius:3px}
.users-table th,.contract-table th,.contract-payments th{background:#f3f6fa;color:#62748d}
.contract-table th:nth-child(3),.contract-table td:nth-child(3){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.users-table td,.users-table th,.contract-table td,.contract-table th,.contract-payments td,.contract-payments th,.details td,.details th,.contract-fields>div{border-color:#dde4ed}
.contract-select{color:#315fb2}.contract-select[aria-current=true]{background:#e7efff}
dialog{border-color:#cbd6e3;box-shadow:0 12px 28px #23355024}
dialog::backdrop{background:#26374a80}
.heading h1,#login-view>h1,#password-view>h1,.password-setup>h1{display:flex;align-items:center;gap:10px}
.heading h1::before,#login-view>h1::before,#password-view>h1::before,.password-setup>h1::before{content:"";display:block;flex:none;width:4px;height:1.35em;border-radius:2px;background:linear-gradient(180deg,#7957e8 0%,#bc62cf 55%,#e7b854 100%)}
.view-navigation button[aria-pressed=true]::after{background:linear-gradient(90deg,#7957e8,#c060d8,#e7b854)}
.users-table,.contract-table,.contract-payments{border-collapse:separate;border-spacing:0;border-top:3px solid transparent;border-image:linear-gradient(90deg,#7957e8,#c060d8,#e7b854) 1}
.contract-payments{border-image:linear-gradient(90deg,#48a475,#5ac7df) 1}
.contract-payments-scroll{max-width:100%;overflow-x:auto}
.contract-payments-section{min-width:0;margin-top:20px}
.contract-payments-section h3{font-size:14px;margin:0 0 8px}
.contract-payment-note{color:#62748d;font-size:12px;margin:6px 0 0}
.contract-payments{width:max-content;min-width:100%}
.contract-payments th,.contract-payments td{min-width:78px;white-space:nowrap}
.contract-payments td{text-align:right;font-variant-numeric:tabular-nums}
.contract-payments thead th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.contract-detail-table{table-layout:fixed}
.contract-detail-table tbody th,.contract-hours-table tbody th{background:#fff;color:inherit;font-weight:400;overflow-wrap:anywhere}
.contract-detail-table td,.contract-hours-table td{overflow-wrap:anywhere}
.contract-hours-table{table-layout:fixed}
.contract-hours-note{color:#62748d;font-size:12px;line-height:1.5}
#purchase-form p{margin:0}
#purchase-error:empty{display:none}
#purchase-form>.toolbar{margin:0}
.purchase-category .radio-options input[type=radio]:checked{background:#dbe8ff;border-color:#4775db}
.expense-details{display:grid;gap:8px}
.expense-reference{color:#62748d;font-size:12px}
.expense-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.voided-expenses{margin:8px 0}.voided-expenses summary{cursor:pointer;color:#355f91}.voided-expenses .expense-line{margin-top:8px}
.expense-actions{display:flex;gap:8px;flex-wrap:wrap}.expense-actions button{padding:4px 8px}.purchase-history-dialog{width:min(900px,calc(100% - 32px));max-height:85vh}.purchase-history-dialog form{margin-top:16px}.purchase-history-dialog td:last-child{overflow-wrap:anywhere}
.entry-history-actions{margin-top:12px}.entry-history-table td:nth-child(3),.entry-history-table td:nth-child(4){white-space:pre-wrap;overflow-wrap:anywhere;min-width:180px}
.backup-section{margin-top:24px;border-top:1px solid #d5deea;padding-top:12px}.backup-section p{font-size:12px;color:#536b7d}.backup-actions{display:flex;gap:8px;flex-wrap:wrap}
.manual-contract-tag{font-size:11px;color:#59758b}.manual-work-confirm{display:flex;align-items:flex-start;gap:8px}.manual-work-confirm input{width:auto;margin-top:3px}#manual-contract-form select[name=projects]{max-width:none;width:100%}
#manual-contract-dialog{max-height:calc(100dvh - 32px);overflow:auto}.manual-payments{border:1px solid #d5deea;border-radius:6px;padding:8px;min-width:0}.manual-payments p{margin:0 0 8px;font-size:12px;color:#536b7d}.manual-payment-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px;gap:6px;margin-bottom:6px}.manual-payment-row input{min-width:0;width:100%}.manual-payment-row button{padding:0;width:32px}#add-manual-payment{padding:4px 8px}
.payment-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.payment-heading button{padding:4px 8px}.payment-adjusted{text-decoration:underline;text-decoration-color:#447bce;text-underline-offset:3px}
.week-table td.work-name{position:relative;padding-right:30px}.row-unpin{position:absolute;top:4px;right:4px;width:22px;height:22px;padding:0;border:0;border-radius:4px;color:#566d80;background:transparent;line-height:20px}.row-unpin:hover{background:#e6eef7}
.expense-line button,#add-purchase{padding:4px 8px;flex:none}
.expense-months{font-size:12px;color:#53677f;display:grid;gap:3px}
.summary-controls label{display:grid;gap:4px;font-size:13px}
.summary-note{font-size:12px;color:#62748d}
.summary-table{width:100%;min-width:950px;border-collapse:collapse;background:#fff;font-size:13px}
.summary-table th,.summary-table td{padding:8px;border-bottom:1px solid #dde4ed;text-align:left;vertical-align:top}
.summary-table thead th,.summary-table tfoot th,.summary-table tfoot td{background:#f3f6fa}
.summary-table th:nth-child(n+6),.summary-table td:nth-child(n+6){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.summary-table tfoot td{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.summary-daily-heading{font-size:15px;margin:22px 0 8px}
.summary-daily-table{min-width:650px}
.summary-daily-table th:nth-child(n+3),.summary-daily-table td:nth-child(n+3){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.contract-groups-section{margin-top:22px;min-width:0}
.contract-groups-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.contract-groups-heading h2{margin:0;font-size:15px}
.contract-groups-table td:nth-child(3),.contract-groups-table th:nth-child(3){text-align:left}
.contract-groups-table td{overflow-wrap:anywhere}
.contract-groups-table button{padding:4px 8px;margin:2px}
.group-stale{color:#9b571b}
.archived-groups{margin-top:14px}
.archived-groups summary{cursor:pointer;color:#405f9c}
.archived-groups .table-scroll{margin-top:8px}
#contract-group-status:empty{display:none}
.group-hours-detail,.contract-group-note{font-size:12px;color:#62748d}
.group-budget{display:grid;gap:4px;min-width:190px;line-height:1.5}
.group-contracts{min-width:0;border:1px solid #d6deea;border-radius:6px;padding:8px;margin:0}
#contract-group-options{display:grid;gap:7px;max-height:250px;overflow:auto}
#contract-group-options label{display:flex;align-items:flex-start;gap:8px}
#contract-group-options input{margin:3px 0 0;flex:none}
#contract-group-form p,#group-progress-form p{margin:0}
#contract-group-error:empty,#group-progress-error:empty{display:none}
#contract-group-form>.toolbar,#group-progress-form>.toolbar{margin:0}
.contract-progress-value{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.contract-progress-value progress{width:110px;height:10px;accent-color:#4f82d6}
.contract-progress-note{white-space:pre-wrap;overflow-wrap:anywhere}
#contract-progress-form p{margin:0}
#contract-progress-error:empty{display:none}
#contract-progress-form>.toolbar{margin:0}
#variable-quantity-fields[hidden],#variable-time-fields[hidden]{display:none}
#variable-quantity-fields,#variable-time-fields{display:grid;gap:10px}
#variable-month-form p{margin:0;font-size:12px;color:#62748d}
#variable-month-form p.error{color:#a41e22}
#variable-month-error:empty{display:none}
#variable-month-form>.toolbar{margin:0}
.week-grid-scroll{padding-top:3px;border-radius:6px;background:linear-gradient(90deg,#50a87d,#65c7d9,#7b9fe5) top/100% 3px no-repeat}
.week-table th:not(.sat):not(.sun){background:linear-gradient(180deg,#f1f8f5,#e6f4ed)}
.row-form .add{background:linear-gradient(105deg,#e6efff,#e1f3ef);border-color:#b9d3dc;color:#285d82}
.row-form .add:hover{background:linear-gradient(105deg,#d9e8ff,#d3eee6)}
.details h2{display:flex;align-items:center;gap:8px}
.details h2::before{content:"";width:3px;height:1.2em;border-radius:2px;background:linear-gradient(180deg,#7957e8,#c060d8,#e7b854)}
#details .table-scroll{padding-top:3px;border-radius:5px;background:linear-gradient(90deg,#7957e8,#c060d8,#e7b854) top/100% 3px no-repeat}
.week-navigation{gap:7px;margin:14px 0 16px}
.week-range{margin-left:4px;background:#fff;box-shadow:0 1px 2px #263c5a0b;font-variant-numeric:tabular-nums}
.row-form{gap:10px;margin:0 0 14px}
.row-form label{width:145px;max-width:100%;gap:5px;color:#52657e;font-weight:500}
.row-form label:nth-child(3){width:185px}
.row-form select{width:100%;max-width:100%;box-shadow:0 1px 2px #263c5a0b}
.row-form .add{box-shadow:0 1px 2px #263c5a0b}
.week-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;margin:0 0 12px;color:#52657e;font-size:13px}
.legend-group{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px}
.legend-label{color:#6b7c8f;font-size:12px}
.legend-item{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.legend-item::before{content:"";width:10px;height:10px;border-radius:3px;box-shadow:inset 0 0 0 1px #263c5a1a}
.legend-plan::before{background:#91d2ee}.legend-billable::before{background:#ffab94}.legend-nonbillable::before{background:#f3e6a3}
@media(max-width:900px){.row-form label{width:125px}.row-form label:nth-child(3){width:155px}}
@media(max-width:500px){.row-form label,.row-form label:nth-child(3){width:calc(50% - 5px)}.row-form .add{max-width:100%}}
.master-section{margin-top:22px}
.master-section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:8px}
.master-section-heading h2{margin:0}
.master-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border-top:3px solid transparent;border-image:linear-gradient(90deg,#50a87d,#65c7d9,#7b9fe5) 1;font-size:13px}
.master-table th,.master-table td{text-align:left;padding:8px;border-bottom:1px solid #dde4ed;overflow-wrap:anywhere}
.master-table th{background:#f3f6fa;color:#62748d}
.master-table th:last-child,.master-table td:last-child{width:72px}
#master-project-fields{display:grid;gap:10px}#master-project-fields[hidden]{display:none}
#master-form-error{margin:0}#master-form-error:empty{display:none}#master-form>.toolbar{margin:0}
.contract-review-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.contract-review-flag{display:inline-block;border:1px solid #f1d4a4;border-radius:4px;background:#fff8eb;color:#805417;padding:2px 5px;font-size:11px;line-height:1.4}
.contract-review-flag.is-info{border-color:#cbdaf0;background:#f2f7ff;color:#345881}
.readiness-note{color:#526479;font-size:13px;line-height:1.6}.readiness-checklist{display:grid;gap:10px;margin:12px 0}.readiness-checklist label{display:flex;align-items:flex-start;gap:8px;line-height:1.5}.readiness-checklist input{flex:none;margin-top:4px}.readiness-view h2,#readiness-view h2{margin-top:24px;font-size:16px}
#readiness-view .summary-table{min-width:0;table-layout:fixed}#readiness-view .summary-table th:last-child,#readiness-view .summary-table td:last-child{width:92px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.master-tabs{display:flex;gap:6px;margin-top:16px;border-bottom:1px solid #d2dbe7}.master-tabs button{position:relative;border-radius:6px 6px 0 0;padding:7px 16px;color:#52657e;background:#fff;border-color:#d1dbe8}.master-tabs button[aria-selected=true]{color:#2654a8;background:#e7efff;border-color:#b5c9f6;font-weight:700}.master-tabs button[aria-selected=true]::after{content:"";position:absolute;left:10px;right:10px;bottom:2px;height:2px;background:linear-gradient(90deg,#7957e8,#c060d8,#e7b854)}.master-section[hidden]{display:none}
.app-header{min-height:64px;padding:10px 24px;gap:16px;background:linear-gradient(90deg,#fff 0%,#f3fcf9 62%,#b5ece1 100%);border-bottom:1px solid #cce7e1;color:#173a3a}.app-brand{display:flex;align-items:center;gap:11px;min-width:0}.app-brand img{width:36px;height:36px;object-fit:contain;flex:none}.app-brand strong{font-size:19px;white-space:nowrap}.app-brand .environment-label{font-size:12px;color:#527673;border-left:1px solid #c5dcd7;padding-left:12px}.app-header #identity{min-width:0;gap:12px}.app-header #user-name{color:#174a45;font-size:13px;overflow-wrap:anywhere}.app-header #logout{background:#fff;border-color:#baded5;color:#24574f;padding:7px 12px}.app-header #logout:hover{background:#e9f8f4}
#users-view .users-heading{margin-bottom:18px}#users-view .users-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}#users-view .users-table-scroll{overflow:visible;min-width:0}#users-view .users-searchbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;background:#eaf8f5;border:1px solid #d4ece7;border-bottom:0;border-radius:6px 6px 0 0}#users-view .users-searchbar label{font-size:13px;font-weight:700;color:#315e57}#users-view .users-searchbar input{width:min(100%,340px);background:#fff;border-color:#c6e5dc}#users-view .users-searchbar span{font-size:12px;color:#58716d;margin-left:auto}#users-view .users-table{border:1px solid #dbe8e6;font-size:13px}#users-view .users-table th{background:#f2f7f8;color:#56716e}#users-view .users-table th,#users-view .users-table td{padding:12px 14px}#users-view .users-table td:last-child{white-space:normal;min-width:280px}#users-view .users-table .user-toggle{margin:2px;color:#305d55;border-color:#c8e2db}#users-view .user-form{grid-template-columns:repeat(3,minmax(150px,1fr));align-items:end;gap:12px 16px;padding-top:18px;border-top:1px solid #d5e6e2}#users-view .user-form h2,#users-view .user-form .user-hint,#users-view .user-form #user-form-message{grid-column:1/-1}#users-view .user-form button{align-self:start}#users-view .backup-section{margin-top:22px}
@media(max-width:700px){.app-header{padding:10px 14px;flex-wrap:wrap}.app-brand strong{font-size:16px}.app-brand .environment-label{font-size:11px}.app-header #identity{margin-left:auto}#users-view .user-form{grid-template-columns:1fr}#users-view .users-searchbar span{margin-left:0}}
#users-view .users-layout{grid-template-columns:minmax(0,1fr) minmax(250px,320px);align-items:start}#users-view .user-form{grid-template-columns:minmax(0,1fr);gap:10px;padding:0 0 0 20px;border-top:0;border-left:1px solid #d5e6e2}#users-view .user-form h2,#users-view .user-form .user-hint,#users-view .user-form #user-form-message{grid-column:auto}.app-brand img{object-fit:cover}@media(max-width:800px){#users-view .users-layout{grid-template-columns:minmax(0,1fr)}#users-view .user-form{padding:18px 0 0;border-left:0;border-top:1px solid #d5e6e2}}
.app-header{min-height:76px}.app-brand img{width:56px;height:56px}.app-header #identity{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.app-header #identity[hidden],.app-header #identity [hidden]{display:none}.app-header .header-action,.app-header .header-user,.app-header #logout{min-height:42px;border:1px solid #c2e7df;background:#e8f8f4;border-radius:24px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 14px;color:#174c46;line-height:1.25}.app-header .header-action:hover,.app-header #logout:hover{background:#d9f3ec}.app-header .header-action svg,.app-header .header-user svg{width:19px;height:19px;color:#009e88;stroke-width:2;flex:none}.app-header .header-user{background:#caeee7;border-color:#bce6dc;max-width:260px}.app-header #user-name{color:#174c46;overflow-wrap:anywhere}.app-header #logout{white-space:nowrap;background:#fff}
@media(max-width:700px){.app-header{min-height:0}.app-brand img{width:48px;height:48px}.app-header #identity{width:100%;margin-left:0;justify-content:flex-end}.app-header .header-action,.app-header .header-user,.app-header #logout{min-height:38px;padding:7px 10px}.app-header .header-user{max-width:170px}}
.app-header .header-user{background:#d5f1eb;border-color:#c4eae1;font-weight:700}.app-header #user-name{font-weight:700}.app-header .header-user svg{width:21px;height:21px;border-radius:50%;background:#00a994;color:#fff;padding:1px}.app-header #logout{font-weight:700}
.app-header .header-user{background:#fff;border-color:#c4e5dd}.app-header #user-name{font-size:16px;font-weight:700}.app-header #logout{font-weight:700}
.view-navigation .nav-group-label{font-size:12px;color:#60746f;font-weight:700;align-self:center;padding:0 4px}.view-navigation .nav-group-label[hidden]{display:none}
#users-view #users-list tr{height:42px}#users-view #users-list td{padding:5px 10px;vertical-align:middle}#users-view #users-list td:last-child{white-space:nowrap;min-width:0}#users-view #users-list .user-toggle{font-size:12px;line-height:18px;padding:3px 6px;margin:1px 2px 1px 0}
.view-navigation .nav-group-label{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:4px 10px;border:1px solid #adddcf;border-radius:5px;background:#e5f7f0;color:#176b59;font-size:12px;font-weight:700;white-space:nowrap}.view-navigation #admin-nav-label{border-color:#c7d4ed;background:#edf2fb;color:#365b95}.view-navigation .nav-group-label[hidden]{display:none}
.week-table .notes textarea{height:120px}.week-legend .legend-group{padding:5px 10px;border:1px solid #d2e0e7;border-radius:5px;background:#fff;gap:8px}.week-legend .legend-group:first-child{border-color:#bcddec;background:#f2f9fd}.week-legend .legend-group:last-child{border-color:#e6d9c1;background:#fffaf1}.week-legend .legend-label{font-weight:700;color:#496477}
table:not(.week-table)>thead>tr>th,#users-view .users-table>thead>tr>th{background-color:#e5f3fa}
.week-legend{column-gap:6px}
:root,body{background-color:#fafbfc}
.profit-note { color: #516479; font-size: 13px; line-height: 1.6; }
.profit-controls { align-items: end; gap: 12px; flex-wrap: wrap; }
.profit-controls label { display: grid; gap: 4px; }
.profit-counts { display: flex; flex-wrap: wrap; gap: 1px; margin: 14px 0 20px; background: #dce6e9; border: 1px solid #dce6e9; border-radius: 6px; overflow: hidden; }
.profit-counts > div { background: #fff; display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; flex: 1 1 140px; }
.profit-counts span { color: #516479; font-size: 13px; }
.profit-counts strong { font-size: 18px; }
.profit-table { min-width: 850px; }
.profit-table td:nth-child(n+3) { text-align: right; white-space: nowrap; }
.profit-table th:first-child { min-width: 230px; }
.profit-contract-link { color: #1859a2; background: transparent; border: 0; padding: 2px; text-align: left; cursor: pointer; }
.profit-contract-link:hover { text-decoration: underline; }
.profit-status { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.profit-status.over { color: #9e302d; background: #fcebea; }
.profit-status.within { color: #17694b; background: #e4f5ec; }
.profit-status.pending { color: #855514; background: #fff3df; }
.profit-reason { color: #715728; font-size: 12px; margin-top: 4px; max-width: 220px; }
.profit-group-tag { display: inline-block; margin-left: 5px; padding: 2px 6px; color: #23675c; background: #e6f5f0; border-radius: 4px; font-size: 11px; font-weight: normal; }
.profit-group-row th, .profit-group-row td { background: #edf8f4; }
.profit-member-row th { padding-left: 24px; font-weight: normal; }
