:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;--bg:#f5f7fb;--surface:#fff;--surface-2:#f8fafc;--surface-3:#eef2f7;--text:#182230;--muted:#667085;--border:#e3e8ef;--primary:#00a3ff;--primary-hover:#0088d6;--primary-soft:#e5f6ff;--primary-shadow:#00a3ff33;--green:#22a06b;--danger:#e5484d;--shadow:0 8px 30px #10182812;--sidebar:#111827;--sidebar-text:#c8d0dc}
[data-theme=dark]{color-scheme:dark;--bg:#111820;--surface:#19232c;--surface-2:#202c36;--surface-3:#293640;--text:#e8edf2;--muted:#9aa9b7;--border:#30404c;--primary:#00a3ff;--primary-hover:#33b5ff;--primary-soft:#073a56;--primary-shadow:#00a3ff3d;--green:#4dcc91;--danger:#ff666b;--shadow:0 12px 35px #00000038;--sidebar:#0b1218;--sidebar-text:#aebbc7}
*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;color:var(--text);background:var(--bg)}a{color:var(--primary);text-decoration:none}button,input,select,textarea{font:inherit}.app-shell{padding-left:248px;padding-top:64px}.sidebar{position:fixed;inset:0 auto 0 0;z-index:20;width:248px;display:flex;flex-direction:column;color:var(--sidebar-text);background:var(--sidebar);border-right:1px solid #ffffff0f}.brand{height:64px;display:flex;align-items:center;gap:11px;padding:0 20px;color:#fff;font-size:1.05rem;font-weight:750;letter-spacing:-.02em}.brand-mark{width:34px;height:34px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#7c73ff,#5148eb);border-radius:10px;font-weight:850;box-shadow:0 7px 18px #635bff4d}.side-nav{padding:18px 12px;flex:1}.side-nav a{display:flex;align-items:center;gap:12px;padding:10px 12px;margin:3px 0;border-radius:9px;color:var(--sidebar-text);font-weight:570}.side-nav a span{width:20px;text-align:center;font-size:1.2rem}.side-nav a:hover{color:#fff;background:#ffffff0f}.side-nav a.active{color:#fff;background:#7c73ff33}.nav-label{margin:22px 12px 8px;color:#718096;font-size:.7rem;font-weight:750;text-transform:uppercase;letter-spacing:.13em}.nav-label:first-child{margin-top:2px}.sidebar-foot{padding:14px;border-top:1px solid #ffffff12}.profile-link{display:flex;gap:10px;align-items:center;color:#fff}.profile-link small{display:block;color:#8391a0;margin-top:2px}.avatar{width:36px;height:36px;display:grid;place-items:center;flex:none;border-radius:50%;background:#344054;font-size:.78rem;font-weight:700}.topbar{position:fixed;inset:0 0 auto 248px;z-index:15;height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:var(--surface);border-bottom:1px solid var(--border)}.topbar-title{font-weight:700}.topbar-actions,.actions,.page-head,.timer{display:flex;align-items:center;gap:12px}.topbar-actions form{margin:0}.icon-button,.text-button{border:0;color:var(--muted);background:transparent;cursor:pointer}.icon-button{width:38px;height:38px;display:grid;place-items:center;border-radius:9px;font-size:1.15rem}.icon-button:hover{color:var(--text);background:var(--surface-3)}.text-button{font-weight:650}.mobile-menu{display:none}.main-content{width:min(1220px,calc(100% - 48px));margin:0 auto;padding:34px 0 70px}.page-head{justify-content:space-between;margin-bottom:24px}.page-head h1{margin:3px 0 0;font-size:clamp(1.65rem,3vw,2.15rem);letter-spacing:-.035em}.page-head p{margin-bottom:0}.eyebrow{margin:0;color:var(--primary);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.13em}.muted,.helptext{color:var(--muted)}.panel,.card{background:var(--surface);border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow)}.panel{padding:20px;margin:16px 0}.card{width:min(620px,100%);margin:5vh auto;padding:28px}.card h1,.panel h2{margin-top:0;letter-spacing:-.025em}.panel h2{font-size:1.05rem}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(285px,1fr));gap:18px}label{display:block;margin-bottom:6px;font-size:.86rem;font-weight:680}input,select,textarea{width:100%;min-height:42px;padding:9px 11px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:9px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}input[type=checkbox]{width:auto;min-height:auto;accent-color:var(--primary)}textarea{min-height:94px;resize:vertical}form p{margin:0 0 17px}.helptext{display:block;margin-top:5px;font-size:.78rem;line-height:1.45}.button,button[type=submit]{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 16px;color:#fff;background:var(--primary);border:0;border-radius:9px;font-weight:720;cursor:pointer;box-shadow:0 4px 10px #635bff2e}.button:hover,button[type=submit]:hover{color:#fff;background:var(--primary-hover)}.button.secondary{color:var(--text);background:var(--surface-3);box-shadow:none}.button.danger{background:var(--danger)}.message{position:relative;margin-bottom:18px;padding:12px 42px 12px 15px;background:#fff6d9;border:1px solid #f2d675;border-radius:10px;color:#765b00}.message.success{color:#12633f;background:#e2f7ed;border-color:#9cdec2}.message.error{color:#922d32;background:#ffe9ea;border-color:#f4b5b8}.message button{position:absolute;right:8px;top:7px;border:0;background:none;color:inherit;font-size:1.2rem;cursor:pointer}.errorlist{margin:5px 0;padding-left:18px;color:var(--danger);font-size:.85rem}.badge{display:inline-flex;padding:3px 8px;border-radius:999px;color:var(--primary);background:var(--primary-soft);font-size:.73rem;font-weight:720}.badge.retro{color:#936000;background:#fff1c7}table{width:100%;border-collapse:collapse}th,td{padding:12px 10px;border-bottom:1px solid var(--border);text-align:left}th{color:var(--muted);font-size:.73rem;text-transform:uppercase;letter-spacing:.05em}tr:last-child td{border-bottom:0}.public-shell{background:var(--bg)}.public-nav{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100% - 1120px)/2))}.public-nav .brand{color:var(--text);padding:0}.public-content{width:min(1120px,calc(100% - 32px));margin:auto}.hero{padding:14vh 0;max-width:720px}.hero h1{margin:8px 0 20px;font-size:clamp(2.7rem,7vw,5.5rem);line-height:.95;letter-spacing:-.06em}.live-timer{display:block;margin-top:.7rem;font-size:1.8rem;font-variant-numeric:tabular-nums}
@media(max-width:820px){.app-shell{padding-left:0}.sidebar{transform:translateX(-100%);transition:transform .2s ease;box-shadow:20px 0 50px #0004}.sidebar.open{transform:none}.topbar{left:0;padding:0 16px}.mobile-menu{display:grid}.main-content{width:min(100% - 28px,1220px);padding-top:22px}.page-head{align-items:flex-start;flex-direction:column}.actions{flex-wrap:wrap}table{display:block;overflow-x:auto;white-space:nowrap}}
.tracker{padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow)}.tracker-grid{display:grid;grid-template-columns:minmax(240px,2fr) minmax(180px,1fr) minmax(180px,1fr) minmax(150px,.8fr) auto;gap:12px;align-items:end}.tracker label{color:var(--muted)}.tracker-running{display:flex;justify-content:space-between;align-items:center;border-left:4px solid var(--green)}.tracker-description,.entry-main{display:flex;align-items:center;gap:12px}.tracker-description small,.entry-main small{display:block;color:var(--muted);margin-top:4px}.status-dot,.project-color{width:9px;height:9px;flex:none;border-radius:50%;background:var(--green)}.tracker-time{display:flex;align-items:center;gap:20px}.tracker-time .live-timer{margin:0;min-width:120px}.start-button{height:42px;white-space:nowrap}.week-summary{display:flex;justify-content:flex-end;padding:24px 4px 4px}.week-summary div{display:flex;gap:10px;align-items:baseline;color:var(--muted)}.week-summary strong{color:var(--text);font-size:1.25rem}.day-card{margin-top:16px;overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow)}.day-card>header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:var(--surface-2);border-bottom:1px solid var(--border)}.day-card>header span{margin-left:8px;color:var(--muted);font-size:.82rem}.day-total strong{margin-left:8px;font-size:1.05rem}.entry-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 18px;border-bottom:1px solid var(--border)}.entry-row:last-child{border-bottom:0}.entry-main{min-width:0}.entry-main div{min-width:0}.entry-main strong,.entry-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry-meta{display:flex;align-items:center;gap:18px;color:var(--muted);white-space:nowrap}.entry-meta>strong{min-width:60px;color:var(--text);text-align:right}.entry-edit{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;color:var(--muted);background:var(--surface-3)}.empty-state{padding:70px 20px;text-align:center;color:var(--muted)}.empty-state>span{font-size:2.5rem;color:var(--primary)}.empty-state h2{color:var(--text)}
@media(max-width:1050px){.tracker-grid{grid-template-columns:1fr 1fr}.description-field{grid-column:1/-1}.tracker-grid .start-button{width:100%}.tracker-running{align-items:flex-start;flex-direction:column}.tracker-time{width:100%;justify-content:space-between}.entry-row{align-items:flex-start}.entry-meta{gap:10px;flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:620px){.tracker-grid{grid-template-columns:1fr}.description-field{grid-column:auto}.tracker-time,.entry-row{align-items:stretch;flex-direction:column}.entry-meta{justify-content:flex-start}.day-card>header{align-items:flex-start}.day-total span{display:none}}
.card form>button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 16px;color:#fff;background:var(--primary);border:0;border-radius:9px;font-weight:720;cursor:pointer;box-shadow:0 4px 10px #635bff2e}.card form>button:hover{background:var(--primary-hover)}
.start-button{color:#fff;background:var(--primary);border:0;border-radius:9px;font-weight:720;box-shadow:0 4px 10px #635bff2e}.start-button:hover{background:var(--primary-hover)}
.mode-switch{display:inline-flex;padding:4px;background:var(--surface-3);border-radius:11px}.mode-switch a{padding:9px 14px;color:var(--muted);border-radius:8px;font-weight:680}.mode-switch a.active{color:var(--text);background:var(--surface);box-shadow:0 2px 8px #10182814}.manual-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:end}.manual-grid .description-field{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end}.required-mark{color:var(--danger)}.field-hint{display:block;min-height:18px;margin-top:5px;color:var(--muted);font-size:.75rem}.badge.neutral{color:var(--muted);background:var(--surface-3)}.row-action{font-size:.84rem;font-weight:650;white-space:nowrap}.person-chip{display:inline-flex;margin:2px 4px 2px 0;padding:4px 8px;border-radius:999px;background:var(--surface-3);font-size:.78rem}.table-panel{overflow-x:auto}
select:disabled{cursor:not-allowed;opacity:.65;background:var(--surface-3)}
@media(max-width:1050px){.manual-grid{grid-template-columns:1fr 1fr}.manual-grid .description-field{grid-column:1/-1}}
@media(max-width:620px){.time-page-head{align-items:stretch}.mode-switch{width:100%}.mode-switch a{flex:1;text-align:center}.manual-grid{grid-template-columns:1fr}.manual-grid .description-field{grid-column:auto}.form-actions,.form-actions button{width:100%}}

.form-loading[hidden]{display:none}
.form-loading{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:#10182830;pointer-events:none}
.form-loading-card{display:flex;align-items:center;gap:12px;padding:20px 26px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.form-loading-spinner{width:24px;height:24px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:form-loading-spin .8s linear infinite}
form[aria-busy="true"]{cursor:progress}
@keyframes form-loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.form-loading-spinner{animation:none}}

/* Time entry forms */
.tracker-grid{grid-template-columns:repeat(12,minmax(0,1fr))}
.tracker-grid .project-field{grid-column:1/7;grid-row:1}
.tracker-grid>.form-field:nth-child(2){grid-column:7/11;grid-row:1}
.tracker-grid .description-field{grid-column:1/9;grid-row:2}
.tracker-grid .context-field{grid-column:9/-1;grid-row:2}
.tracker-grid:not(:has(.context-field:not([hidden]))) .description-field{grid-column:1/-1}
.tracker-grid .form-actions{grid-column:11/-1;grid-row:1}
.tracker-grid .form-actions .start-button{width:100%;min-width:0}
.manual-grid{grid-template-columns:minmax(210px,1.5fr) minmax(170px,1.2fr) minmax(150px,1fr) minmax(150px,1fr) minmax(145px,.8fr);gap:10px}
.manual-grid .description-field{grid-column:1/-1;grid-row:2}
.manual-grid .form-actions{grid-column:5;grid-row:1}
.manual-grid .form-actions{min-width:0}.manual-grid .form-actions .start-button{width:100%;padding-inline:8px;font-size:.86rem}
.description-field input{min-height:48px}
.project-picker{position:relative}
.project-picker>select{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;clip:rect(0,0,0,0);clip-path:inset(50%);overflow:hidden;white-space:nowrap;border:0}
.project-picker-trigger{width:100%;min-height:42px;display:flex;align-items:center;justify-content:space-between;padding:9px 11px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:9px;box-shadow:none;text-align:left;font-weight:400}
.project-picker-trigger:hover{color:var(--text);background:var(--surface);border-color:var(--primary)}
.project-picker-panel{position:absolute;z-index:30;top:calc(100% + 7px);left:0;width:min(520px,calc(100vw - 48px));max-height:430px;padding:10px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 18px 45px #10182826}
.project-search{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding:0 10px;border:1px solid var(--border);border-radius:9px;color:var(--muted)}
.project-search:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
.project-search input{min-height:42px;padding:8px 0;border:0;box-shadow:none;background:transparent}
.project-search input:focus{border:0;box-shadow:none}
.project-results{max-height:344px;overflow:auto}
.project-group-title{margin:11px 9px 5px;color:var(--muted);font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
.project-option{display:flex;align-items:center;gap:6px;border-radius:9px}
.project-option:hover{background:var(--surface-2)}
.project-option-main{min-width:0;flex:1;display:block;padding:9px 10px;color:var(--text);background:transparent;border:0;box-shadow:none;text-align:left;font-weight:400}
.project-option-main:hover{color:var(--text);background:transparent}
.project-option-main strong,.project-option-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-option-main small{margin-top:2px;color:var(--muted);font-size:.75rem}
.favorite-button{width:38px;min-height:38px;padding:0;flex:none;color:var(--muted);background:transparent;border:0;box-shadow:none;font-size:1.35rem}
.favorite-button:hover,.favorite-button.active{color:#f59e0b;background:transparent}
.project-picker-empty{padding:24px 12px;color:var(--muted);text-align:center}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;color:var(--muted)}
.pagination>div{display:flex;align-items:center;gap:7px}
.pagination .button{min-height:36px;padding:7px 12px}
.page-number{width:36px;height:36px;display:grid;place-items:center;border-radius:8px;color:var(--muted);font-weight:650}
.page-number:hover,.page-number.active{color:var(--text);background:var(--surface-3)}
@media(max-width:1050px){.manual-grid{grid-template-columns:1fr 1fr}.manual-grid .project-field{grid-column:1/-1}.manual-grid .description-field,.manual-grid .form-actions{grid-column:1/-1;grid-row:auto}.tracker-grid{grid-template-columns:1fr 1fr}.tracker-grid .project-field,.tracker-grid>.form-field:nth-child(2),.tracker-grid .description-field,.tracker-grid .context-field,.tracker-grid .form-actions{grid-column:auto;grid-row:auto}.tracker-grid .description-field,.tracker-grid .context-field,.tracker-grid .form-actions{grid-column:1/-1}}
@media(max-width:620px){.tracker-grid,.manual-grid{grid-template-columns:1fr}.tracker-grid>*{grid-column:1!important}.manual-grid .project-field{grid-column:auto}.pagination{align-items:flex-start;flex-direction:column}.pagination>div{width:100%;justify-content:space-between}.page-number{display:none}}

/* Running timer and inline entry editing */
.status-dot.paused{background:#f59e0b}.resume-button{background:var(--green)}.resume-button:hover{background:#18875a}
.entry-row{display:block}.entry-summary{display:flex;align-items:center;justify-content:space-between;gap:20px}.entry-meta form{margin:0}.entry-action{width:34px;height:34px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;box-shadow:none}.entry-play{color:var(--primary);background:var(--primary-soft)}.entry-play:hover{color:#fff;background:var(--primary)}.entry-edit{border:0;cursor:pointer}.inline-entry-form{container-type:inline-size;margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}.inline-entry-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:start}.inline-entry-grid>.form-field{grid-column:span 2;min-width:0}.inline-entry-grid>.form-field:nth-child(-n+2){grid-column:span 3}.inline-entry-grid>.inline-description{grid-column:1/-1}.inline-entry-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}
@media(max-width:620px){.entry-summary{align-items:flex-start;flex-direction:column}}

/* Account placement and project identity */
.topbar-profile{display:flex;align-items:center;gap:9px;min-width:0;padding:5px 8px;border-radius:9px;color:var(--text)}.topbar-profile:hover{background:var(--surface-3)}.topbar-profile>span:last-child{min-width:0}.topbar-profile strong,.topbar-profile small{display:block;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-profile strong{font-size:.82rem}.topbar-profile small{margin-top:1px;color:var(--muted);font-size:.7rem}.account-signout{margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}.account-signout form{margin:0}.project-color,.status-dot{background:var(--project-color,var(--green))}.project-name-colored{display:inline-flex;align-items:center;gap:7px;color:var(--project-color,var(--primary));font-weight:700}.project-option-main .project-name-colored{display:flex}.optional-label{margin-left:4px;color:var(--muted);font-size:.72rem;font-weight:500}.tracker-grid .description-field{grid-column:1/-1}.manual-grid .description-field{grid-column:1/-1}.status-dot.paused{background:var(--project-color,var(--green))}
@media(max-width:620px){.topbar-profile strong{display:none}.topbar-profile small{margin:0}.topbar-actions{gap:3px}}

/* Matching timer/manual forms and weekly grouping */
.manual-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:12px}.manual-grid .project-field{grid-column:1/7;grid-row:1}.manual-grid>.form-field:nth-child(2){grid-column:7/-1;grid-row:1}.manual-grid .description-field{grid-column:1/-1;grid-row:2}.manual-grid>.form-field:nth-child(4){grid-column:1/4;grid-row:3}.manual-grid>.form-field:nth-child(5){grid-column:4/7;grid-row:3}.manual-grid>.form-field:nth-child(6){grid-column:7/10;grid-row:3}.manual-grid>.form-field:nth-child(7){grid-column:10/-1;grid-row:3}.manual-grid .form-actions{grid-column:1/-1;grid-row:4}.manual-grid .form-actions .start-button{width:100%}.tracker-grid .description-field input,.manual-grid .description-field input{min-height:48px;padding:9px 11px}
.week-group{margin-top:24px}.week-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 4px 8px}.week-header>div{display:flex;align-items:baseline;gap:10px}.week-header span{color:var(--muted);font-size:.82rem}.week-header>div:last-child strong{font-size:1.18rem}.week-group .day-card{margin-top:10px}
@media(max-width:1050px){.manual-grid{grid-template-columns:1fr 1fr}.manual-grid .project-field,.manual-grid>.form-field:nth-child(2),.manual-grid .description-field,.manual-grid>.form-field:nth-child(4),.manual-grid>.form-field:nth-child(5),.manual-grid>.form-field:nth-child(6),.manual-grid>.form-field:nth-child(7),.manual-grid .form-actions{grid-column:auto;grid-row:auto}.manual-grid .project-field,.manual-grid .description-field,.manual-grid .form-actions{grid-column:1/-1}}
@media(max-width:620px){.manual-grid{grid-template-columns:1fr}.manual-grid>*{grid-column:1!important}.week-header{align-items:flex-start;flex-direction:column;gap:5px}.week-header>div{width:100%;justify-content:space-between}}
.brand-mark{width:38px;height:38px;display:block;object-fit:contain;flex:none;background:none;border-radius:0;box-shadow:none}
.filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;align-items:end}.filter-grid label{margin:0}.filter-grid button{width:100%}.filter-bar{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.filter-bar p{margin:0;min-width:180px}.management-row form{margin:0}.management-row form input{min-width:230px}@media(max-width:620px){.filter-bar>*{width:100%}.management-row{align-items:flex-start;flex-direction:column}.management-row form input{min-width:0}}
.client-shell{min-height:100vh;background:var(--bg)}.client-header{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100% - 1120px)/2));background:var(--surface);border-bottom:1px solid var(--border)}.client-header .brand{padding:0;color:var(--text)}.client-header-actions{display:flex;align-items:center;gap:12px;color:var(--muted)}.client-header-actions form{margin:0}.client-content{width:min(1120px,calc(100% - 32px));margin:auto;padding:38px 0 70px}.client-project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}.client-project-card{display:flex;align-items:flex-start;flex-direction:column;gap:12px;margin:0;color:var(--text);transition:transform .15s ease,border-color .15s ease}.client-project-card:hover{transform:translateY(-2px);border-color:var(--primary)}.client-project-card small{color:var(--muted)}.client-card-action{margin-top:auto;color:var(--primary);font-weight:700}.client-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.client-metrics .panel{display:flex;flex-direction:column;gap:8px;margin:0}.client-metrics strong{font-size:1.25rem}@media(max-width:700px){.client-header-actions>span{display:none}.client-metrics{grid-template-columns:1fr}}
.admin-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.admin-section-card{display:grid;grid-template-columns:auto 1fr;gap:16px;margin:0}.admin-section-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:11px;color:var(--primary);background:var(--primary-soft);font-size:1.3rem}.admin-section-card h2{margin:2px 0 7px}.admin-section-card p{margin:0}.admin-section-summary{padding-top:15px}.admin-section-actions{grid-column:2;display:flex;align-items:center;gap:14px;margin-top:4px}.admin-form-card{margin:0}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.section-heading p{margin:5px 0 0}.management-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 2px;border-top:1px solid var(--border)}.management-row strong,.management-row small{display:block}.management-row small{margin-top:3px;color:var(--muted)}@media(max-width:800px){.admin-section-grid{grid-template-columns:1fr}.section-heading{flex-direction:column}.admin-section-actions{grid-column:1/-1}}
.side-nav .nav-icon{width:20px;height:20px;display:block;flex:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.side-nav a.active{background:var(--primary-shadow)}
.button,button[type=submit],.card form>button,.start-button{box-shadow:0 4px 10px var(--primary-shadow)}
.mapping-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:18px}.mapping-grid h3{margin-top:0}.mapping-grid label{margin-bottom:12px}@media(max-width:800px){.mapping-grid{grid-template-columns:1fr}}

/* Project workspace and consistent actions */
button{appearance:none}.button{border:1px solid transparent}.button.small{min-height:34px;padding:6px 11px;font-size:.8rem;box-shadow:none}.button.ghost{color:var(--primary);background:transparent;border-color:var(--border);box-shadow:none}.button.ghost:hover{color:var(--primary-hover);background:var(--primary-soft);border-color:var(--primary)}.button.danger-outline{color:var(--danger);background:transparent;border-color:color-mix(in srgb,var(--danger) 35%,var(--border));box-shadow:none}.button.danger-outline:hover{color:#fff;background:var(--danger);border-color:var(--danger)}button.button.secondary{color:var(--text);background:var(--surface-3);box-shadow:none}button.button.secondary:hover{color:var(--text);background:var(--border)}button.button.danger-outline{color:var(--danger);background:transparent}.message-close{width:30px!important;min-height:30px!important;padding:0!important;box-shadow:none!important}
.project-page-head{padding:4px 0 6px}.project-description{max-width:720px;line-height:1.6}.project-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.project-summary-card{display:flex;flex-direction:column;gap:7px;margin:0;box-shadow:none}.project-summary-card strong{font-size:1.05rem}.summary-label{color:var(--muted);font-size:.72rem;font-weight:760;text-transform:uppercase;letter-spacing:.08em}.project-section{padding:24px;margin-top:20px}.project-section .section-heading h2{margin:3px 0 0;font-size:1.25rem}.project-section .section-heading .muted{max-width:680px}.metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0 26px}.metric{display:flex;min-height:92px;padding:15px;flex-direction:column;justify-content:center;background:var(--surface-2);border:1px solid var(--border);border-radius:11px}.metric span,.metric small{color:var(--muted);font-size:.76rem}.metric strong{margin:5px 0 2px;font-size:1.2rem}.subsection-heading{margin:26px 0 12px}.subsection-heading h3{margin:0;font-size:.96rem}.subsection-heading p{margin:4px 0 0;color:var(--muted);font-size:.82rem}.project-admin-block{margin-top:28px;padding-top:4px;border-top:1px solid var(--border)}.table-wrap{overflow-x:auto}.actions-column{width:1%;white-space:nowrap}.table-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;white-space:nowrap}.table-actions form{margin:0}.cell-secondary{display:block;margin-top:3px;color:var(--muted)}.empty-cell,.empty-copy{padding:24px;color:var(--muted);text-align:center}.inline-create-form{display:grid;grid-template-columns:minmax(200px,1.5fr) minmax(110px,.7fr) minmax(90px,.45fr) auto;gap:12px;align-items:end;margin-top:18px;padding:16px;background:var(--surface-2);border:1px solid var(--border);border-radius:11px}.inline-create-form>div{margin:0}.inline-create-form .helptext{max-width:290px}
@media(max-width:900px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inline-create-form{grid-template-columns:1fr 1fr}.project-summary-grid{grid-template-columns:1fr}}
@media(max-width:620px){.metric-grid,.inline-create-form{grid-template-columns:1fr}.project-section{padding:17px}.table-actions{align-items:stretch;flex-direction:column}.table-actions .button{width:100%}}
.dev-toolbar{position:relative;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:44px;padding:7px 18px;color:#3f2b00;background:#ffd75e;border-bottom:1px solid #d5aa27;font-size:.78rem}.dev-toolbar>div,.dev-personas{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.dev-toolbar form{margin:0}.dev-persona{min-height:29px;padding:4px 9px;color:#594000;background:#fff3c4;border:1px solid #c89d1d;border-radius:7px;box-shadow:none;font-size:.74rem;font-weight:700;cursor:pointer}.dev-persona:hover,.dev-persona.active{color:#fff;background:#765800}.app-shell:has(.dev-toolbar){padding-top:108px}.app-shell:has(.dev-toolbar) .topbar{top:44px}.app-shell:has(.dev-toolbar) .sidebar{top:44px}.public-shell:has(.dev-toolbar) .public-nav{margin-top:0}@media(max-width:820px){.dev-toolbar{align-items:flex-start;flex-direction:column;padding:8px 12px}.app-shell:has(.dev-toolbar){padding-top:146px}.app-shell:has(.dev-toolbar) .topbar{top:82px}.app-shell:has(.dev-toolbar) .sidebar{top:82px}}
.report-access-card,.publish-panel{display:flex;align-items:center;justify-content:space-between;gap:24px}.report-access-card h2,.publish-panel h2{margin:3px 0 5px}.section-total{font-size:1.35rem;white-space:nowrap}.publish-panel form{min-width:min(420px,100%)}.checkbox-row{display:flex;align-items:center;gap:8px;margin-bottom:12px}.checkbox-row input{width:auto}.report-list .management-row{color:var(--text)}@media(max-width:700px){.report-access-card,.publish-panel{align-items:stretch;flex-direction:column}.report-access-card .button{width:100%}}

/* Client-ready activity reports */
.report-document{max-width:1080px;margin:24px auto;background:#fff;color:#202b35;border:1px solid #e0e5e8;border-radius:18px;overflow:hidden;box-shadow:0 10px 32px #172a3910}
.report-cover{padding:40px 44px;background:#123d3a;color:#fff;position:relative}.report-brand{font-size:26px;letter-spacing:4px;font-weight:800;margin-bottom:36px}.report-brand span{display:block;font-size:10px;letter-spacing:2px;font-weight:500;margin-top:8px}.report-cover .eyebrow{color:#a8d7cf}.report-cover h1{color:#fff;font-size:30px;line-height:1.2;margin:10px 0;overflow-wrap:anywhere}.report-period-total{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;margin-top:28px;padding-top:20px;border-top:1px solid #ffffff30}.report-period-total strong{font-size:32px}.report-period-total span{font-size:13px;color:#d1e8e3}.report-section{padding:28px 44px 8px}.report-section h2{font-size:16px;margin:0 0 20px;color:#194d46}.report-section .section-heading{flex-wrap:wrap;gap:10px}.report-section .section-heading>span{font-size:12px;color:#58676b}.report-balance{background:#f3f7f6;border:1px solid #e1eae7;border-radius:12px;padding:22px;margin-bottom:14px}.report-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:20px 0}.report-metrics span{display:block;font-size:12px;color:#536862}.report-metrics strong{display:block;font-size:28px;margin-top:6px;line-height:1.2}.report-excess{color:#ac3e27}.report-balance progress{width:100%;height:10px;border:0;border-radius:8px;overflow:hidden;accent-color:#287f6e;background:#dce7e3}.report-balance progress::-webkit-progress-bar{background:#dce7e3}.report-balance progress::-webkit-progress-value{background:#287f6e}.report-note,.report-balance .muted{font-size:12px;color:#536862;line-height:1.6}.report-document table{width:100%;color:#202b35;table-layout:auto}.report-document th{background:#edf3f1;color:#465e57;font-size:11px;text-transform:uppercase;letter-spacing:.6px}.report-document td,.report-document th{padding:14px 12px;border-bottom:1px solid #e4eae7;vertical-align:top}.report-document td{font-size:13px}.report-number{text-align:right!important;white-space:nowrap;font-variant-numeric:tabular-nums}.report-date{white-space:nowrap;width:105px}.report-description{margin-top:7px;line-height:1.6;overflow-wrap:anywhere;white-space:normal}.report-details{table-layout:fixed!important}.report-details th:last-child{width:110px}.report-details th:first-child{width:110px}.report-footer{display:flex;justify-content:space-between;gap:20px;margin:32px 44px 0;padding:20px 0;border-top:1px solid #dbe4e0;font-size:11px;color:#63716d}.report-publication-actions{display:flex;gap:8px;align-items:center}.report-publication-actions form{margin:0}.report-actions{max-width:1080px;margin:auto}
@media(max-width:640px){.report-cover{padding:26px 22px}.report-section{padding:22px 18px 4px}.report-metrics{gap:10px}.report-metrics strong{font-size:21px}.report-balance{padding:15px}.report-footer{margin:24px 18px 0}.report-document .table-wrap{overflow-x:auto}.report-details{min-width:520px}}
@media print{@page{size:A4;margin:14mm}body,body.client-shell{background:#fff!important;color:#202b35!important;display:block!important;padding:0!important}.client-header,.sidebar,.topbar,.dev-toolbar,.report-actions,.message{display:none!important}.client-content,.main-content{margin:0!important;padding:0!important;max-width:none!important}.report-document{border:0;box-shadow:none;border-radius:0;margin:0;max-width:none;font-size:10pt;print-color-adjust:exact;-webkit-print-color-adjust:exact}.report-cover{padding:25px 28px}.report-cover h1{font-size:25px}.report-brand{margin-bottom:24px}.report-section{padding:22px 0 0}.report-section h2{break-after:avoid}.report-document .table-wrap{overflow:visible}.report-document table{min-width:0!important}.report-document thead{display:table-header-group}.report-document tfoot{display:table-row-group}.report-document tr,.report-balance{break-inside:avoid}.report-document td,.report-document th{padding:10px 8px}.report-footer{margin:24px 0 0}.report-description{line-height:1.45}}

.report-document table{display:table}.report-document td{overflow-wrap:anywhere}.report-document .muted{color:#536862}
@media print{.client-content,.main-content{width:100%!important}.report-cover{padding:18px 24px}.report-brand{margin-bottom:16px;font-size:22px}.report-brand span{font-size:9px}.report-cover h1{font-size:22px}.report-period-total{margin-top:16px;padding-top:12px}.report-period-total strong{font-size:26px}.report-section{padding-top:18px}.report-section h2{margin-bottom:12px;font-size:14px}.report-balance{padding:14px}.report-metrics{margin:12px 0}.report-metrics strong{font-size:24px}.report-document td{font-size:11px}.report-document th{font-size:10px}.report-note,.report-balance .muted{font-size:10px}.report-footer{padding:12px 0;margin-top:18px}.report-document table{display:table!important;width:100%!important}.report-document .section-heading{display:flex;flex-direction:row;align-items:center}.report-document{overflow:visible}}

.report-metrics{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}

button.entry-delete-button[type=submit]{margin-right:auto;min-width:40px;padding:8px;color:#b54738;background:transparent;box-shadow:none;border:1px solid transparent}button.entry-delete-button[type=submit]:hover{color:#912b20;background:#fff0ed;border-color:#f6c8bf}

.admin-nav summary{cursor:pointer;padding:12px 14px;font-weight:600;border-radius:8px}.admin-subnav{margin-left:16px;padding-left:8px;border-left:1px solid var(--border,#dce4df)}.admin-subnav a{font-size:13px}.review-months{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.review-bulk-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}.review-select{width:auto!important}.review-adjustment{margin-top:16px}.review-adjustment textarea{min-height:80px}

/* Daily activity groups keep individual time segments available on demand. */
.activity-group{border-bottom:1px solid var(--border)}
.activity-group:last-child{border-bottom:0}
.activity-group-summary{display:grid;grid-template-columns:38px minmax(0,1.4fr) minmax(0,1fr) auto 18px;align-items:center;gap:18px;padding:20px 22px;cursor:pointer;list-style:none;transition:background .15s ease}
.activity-group-summary::-webkit-details-marker{display:none}
.activity-group-summary:hover{background:var(--surface-2)}
.activity-group-summary:focus-visible{outline:2px solid var(--primary);outline-offset:-3px;border-radius:8px}
.activity-count{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--border);border-radius:10px;color:var(--primary);background:var(--primary-soft);font-size:.9rem;font-weight:750;font-variant-numeric:tabular-nums}
.activity-title,.activity-project,.activity-project>span:last-child{min-width:0}
.activity-title>strong{display:block;font-size:.96rem;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.activity-title small,.activity-project small,.activity-total small{display:block;margin-top:4px;color:var(--muted);font-size:.75rem}
.activity-title small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.activity-project{display:flex;align-items:center;gap:10px}
.activity-project strong,.activity-project small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.activity-project strong{font-size:.88rem;font-weight:600}
.activity-total{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.activity-total strong{font-size:1.02rem;font-weight:750}
.activity-chevron{color:var(--muted);transition:transform .18s ease}
.activity-group[open]>.activity-group-summary{background:var(--surface-2)}
.activity-group[open] .activity-chevron{transform:rotate(90deg)}
.activity-segments{margin:0 22px 18px 76px;padding:0 14px;background:var(--surface);border:1px solid var(--border);border-radius:10px}
.activity-segments-heading{display:flex;justify-content:space-between;gap:10px;padding:12px 4px;border-bottom:1px solid var(--border);color:var(--muted);font-size:.72rem}
.activity-segments .entry-row{padding:14px 4px}
.activity-segments .entry-main strong{font-size:.82rem;font-weight:650}
.segment-origin{color:var(--muted);font-size:.75rem;font-weight:400}
.activity-segments .entry-main .project-color{width:6px;height:6px;opacity:.65}
.activity-segments .entry-meta{gap:12px}
.activity-segments .entry-meta .badge{font-size:.68rem}
.tracker-time{display:flex;align-items:center;gap:20px;flex-shrink:0}.tracker-time>.actions{justify-content:flex-end}.tracker-description{min-width:0}.tracker-description>div{min-width:0}.tracker-description strong,.tracker-description small{overflow-wrap:anywhere}
@media(max-width:800px){.activity-group-summary{grid-template-columns:32px minmax(0,1fr) auto 16px;gap:12px;padding:16px}.activity-count{width:30px;height:30px;border-radius:8px}.activity-project{grid-column:2;grid-row:2}.activity-total{grid-column:3;grid-row:1/3}.activity-chevron{grid-column:4;grid-row:1/3}.activity-segments{margin:0 12px 14px 16px}.activity-project small{display:none}.activity-title>strong{white-space:normal;overflow-wrap:anywhere}.activity-title small{white-space:normal}.activity-segments-heading span:last-child{display:none}.tracker-time{flex-direction:row;flex-wrap:wrap}.tracker-time>.actions{justify-content:flex-start;flex-wrap:wrap}.activity-segments .entry-summary{flex-direction:row;flex-wrap:wrap}.activity-segments .entry-meta{margin-left:auto;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.activity-chevron,.activity-group-summary{transition:none}}

.activity-group-row{position:relative;border-bottom:1px solid var(--border)}
.activity-group-row:last-child{border-bottom:0}
.activity-group-row>.activity-group{border-bottom:0}
.activity-group-row .activity-group-summary{padding-right:76px}
.activity-group-play{position:absolute;right:22px;top:22px;margin:0}
.entry-standalone{padding:20px 22px}
.entry-standalone .entry-main>div{min-width:0}
.entry-standalone .entry-main>div>strong{font-size:.96rem;font-weight:650}
.entry-standalone .entry-main small{font-size:.75rem}
@media(max-width:800px){.activity-group-row .activity-group-summary{padding-right:62px}.activity-group-play{right:16px;top:25px}.entry-standalone{padding:16px}.entry-standalone .entry-main strong,.entry-standalone .entry-main small{white-space:normal;overflow-wrap:anywhere}}

/* Permission-aware, collapsible navigation. */
.sidebar{overflow:hidden}.sidebar .side-nav{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;min-height:0;padding:12px}.sidebar .side-nav::-webkit-scrollbar{display:none}.sidebar .side-nav a .sidebar-label{width:auto;text-align:left;font-size:.85rem;line-height:1.3}.sidebar .nav-icon{width:21px;height:21px;flex:0 0 21px}.sidebar .brand-mark{flex-shrink:0}.sidebar-collapse{display:flex;align-items:center;gap:12px;width:100%;padding:10px;border:1px solid #ffffff20;border-radius:9px;background:transparent;color:var(--sidebar-text);cursor:pointer}.sidebar-collapse:hover,.sidebar-collapse:focus-visible{background:#ffffff12;color:#fff}.sidebar-collapse [data-collapse-icon]{width:20px;font-size:1.4rem;line-height:1}.sidebar-backdrop{position:fixed;inset:0;z-index:19;border:0;background:#0006}.sidebar-backdrop[hidden]{display:none}.sidebar a:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media(min-width:821px){.sidebar-collapsed.app-shell{padding-left:76px}.sidebar-collapsed .sidebar{width:76px}.sidebar-collapsed .topbar{left:76px}.sidebar-collapsed .sidebar-label{display:none}.sidebar-collapsed .sidebar .brand{padding:0;justify-content:center}.sidebar-collapsed .side-nav{padding:12px 8px}.sidebar-collapsed .side-nav a{justify-content:center;padding:12px 0}.sidebar-collapsed .sidebar-foot{padding:10px}.sidebar-collapsed .sidebar-collapse{justify-content:center}.sidebar-backdrop{display:none}}
.user-access-card{width:min(980px,100%);margin:20px auto}.user-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.module-access-grid{border:1px solid var(--border);border-radius:12px;overflow:hidden}.module-access-row{display:grid;grid-template-columns:minmax(0,1fr) 210px;align-items:center;gap:24px;padding:18px;background:var(--surface-2);border-bottom:1px solid var(--border)}.module-access-row:last-child{border:0}.module-access-row p{margin:5px 0 0;font-size:.82rem;line-height:1.5}.permission-advanced{margin:24px 0;padding:18px;border:1px solid var(--border);border-radius:12px}.permission-advanced summary{cursor:pointer;font-weight:700;margin-bottom:12px}.permission-advanced #id_user_permissions{max-height:340px;overflow:auto;padding:12px;background:var(--surface-2);border-radius:8px}.permission-advanced label{font-weight:400;line-height:1.5}@media(max-width:620px){.module-access-row,.user-profile-fields{grid-template-columns:1fr}.module-access-row{gap:10px}.user-access-card{padding:18px}}
.sidebar-group-toggle{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;margin:3px 0;border:0;border-radius:9px;background:transparent;color:var(--sidebar-text);font:inherit;font-weight:570;text-align:left;cursor:pointer}.sidebar-group-toggle .sidebar-label{font-size:.85rem;line-height:1.3}.sidebar-group-toggle:hover,.sidebar-group-toggle:focus-visible{background:#ffffff0f;color:#fff}.sidebar-group-toggle.active{background:#7c73ff33;color:#fff}.sidebar-chevron{margin-left:auto}.sidebar-group-toggle[aria-expanded=true] .sidebar-chevron{transform:rotate(180deg)}.sidebar-submenu{margin:4px 0 10px 33px;padding-left:0}.sidebar-submenu[hidden]{display:none}.sidebar .sidebar-submenu a{font-size:.79rem;padding:9px 10px;font-weight:450}@media(min-width:821px){.sidebar-collapsed .sidebar-group-toggle{justify-content:center;padding:12px 0}.sidebar-collapsed .sidebar-submenu{display:none}}
@media(max-height:760px){.sidebar .brand{height:56px}.sidebar .side-nav{padding-top:8px;padding-bottom:8px}.sidebar .side-nav>a,.sidebar .sidebar-group-toggle{padding-top:8px;padding-bottom:8px;margin-top:2px;margin-bottom:2px}.sidebar .sidebar-submenu a{padding-top:7px;padding-bottom:7px}.sidebar-foot{padding-top:9px;padding-bottom:9px}}
.bulk-area-toolbar{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(160px,1fr) minmax(160px,1fr) auto;gap:12px;align-items:end;margin-bottom:14px}.bulk-area-toolbar button:disabled{opacity:.5;cursor:not-allowed}.area-members,#id_permissions{max-height:340px;overflow:auto;padding:12px;border:1px solid var(--border);border-radius:9px;margin-bottom:20px}.area-members label{font-weight:400}[data-person-row][hidden]{display:none}@media(max-width:820px){.bulk-area-toolbar{grid-template-columns:1fr 1fr}}@media(max-width:520px){.bulk-area-toolbar{grid-template-columns:1fr}}

/* Shared reading rhythm: primary content first, supporting details on demand. */
.panel{padding:26px;margin:22px 0}
.table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--border);border-radius:10px}
.table-wrap table{display:table;width:100%;white-space:normal}
th,td{padding:18px 20px;vertical-align:top;line-height:1.55}
th{background:var(--surface-2);font-size:.75rem;text-transform:none;letter-spacing:0;font-weight:700;white-space:nowrap}
td{font-size:.9rem;overflow-wrap:break-word}
tbody tr:hover{background:var(--surface-2)}
tfoot th,tfoot td{border-top:2px solid var(--border);font-weight:750}
td[colspan]{padding:30px 20px;color:var(--muted);text-align:center}
.cell-secondary{font-size:.8rem;line-height:1.5;margin-top:5px;font-weight:400}
.numeric{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.table-wrap:focus-visible,summary:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
.description-cell{min-width:220px;max-width:420px}
.disclosure{margin:18px 0;border-top:1px solid var(--border);padding-top:16px}
.disclosure>summary,.row-details>summary{cursor:pointer;color:var(--primary);font-weight:650;line-height:1.6}
.disclosure>summary{padding:5px 0;font-size:.88rem}
.disclosure[open]>summary{margin-bottom:18px}
.row-details{margin-top:6px;max-width:440px}
.row-details>summary{font-size:.8rem;font-weight:500}
.row-details p{margin:10px 0 0;line-height:1.7;white-space:normal;overflow-wrap:anywhere}
.filter-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:18px}
.report-filters>.filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.filter-actions{display:flex;align-items:center;gap:20px;margin-top:20px}
.filter-actions a{font-size:.85rem}
.filter-actions button{width:auto}
.filter-grid input,.filter-grid select{margin-top:7px}
.summary-total{text-align:right;flex-shrink:0}
.summary-total span{display:block;font-size:.8rem;color:var(--muted)}
.summary-total strong{display:block;font-size:2rem;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.metric-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px}
.support-summary>.metric-grid{margin-bottom:28px}
.support-summary>.metric-grid .metric:last-child{border-left:3px solid var(--primary)}
.metric{padding:20px;min-height:108px;gap:5px;box-shadow:none}
.metric strong{font-size:1.65rem;font-variant-numeric:tabular-nums}
.support-summary .disclosure .metric{background:transparent;min-height:90px}
.support-summary .disclosure .metric strong{font-size:1.25rem}
.report-document .report-details{table-layout:auto!important}
.report-document .report-details td:nth-child(2){min-width:220px;width:55%}
.report-document .report-details td:last-child{width:auto}
.report-document .cell-secondary{color:#536862}
.report-document .disclosure>summary{color:#194d46}
.report-document .table-wrap{border-color:#e1eae7}
.report-document tbody tr:hover{background:#f3f7f6}
.report-document .metric{background:#f3f7f6;border-color:#e1eae7;color:#202b35}
.report-document .metric span,.report-document .metric small{color:#536862}
.report-document .disclosure{border-color:#e1eae7}
.report-document .support-summary{box-shadow:none;border-color:#e1eae7;background:white}
.report-document .report-details th:first-child{width:125px}
@media(max-width:820px){
 .panel{padding:20px}
 th,td{padding:16px;min-width:110px}
 .table-wrap{border-radius:8px}
 .table-wrap table{min-width:540px}
 .report-filters>.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .section-heading{flex-wrap:wrap;gap:16px}
}
@media(max-width:480px){
 .panel{padding:16px}
 .filter-grid,.report-filters>.filter-grid{grid-template-columns:1fr}
 .metric-grid{grid-template-columns:1fr}
 .summary-total{text-align:left}
 .filter-actions{flex-wrap:wrap}
 .filter-actions button{flex:1}
 .report-period-total{align-items:flex-start;flex-direction:column;gap:8px}
}
@media print{
 .table-wrap{overflow:visible;border:0}
 .table-wrap table{min-width:0}
 .disclosure>summary{margin-bottom:12px}
 .row-details>summary{display:none}
 .report-document .report-details td:nth-child(2){min-width:0}
 .report-document .support-summary{padding:12px}
 .report-document .metric-grid{gap:10px;margin:12px 0;grid-template-columns:repeat(3,minmax(0,1fr))}
 .report-document .metric{padding:10px;min-height:0}
 .report-document .metric strong{font-size:18px}
}

/* Full-width project setup, with modality-specific fields. */
.main-content:has(.project-form-page){width:calc(100% - 48px);max-width:none}
.project-form .panel{max-width:none;margin:0 0 20px;padding:26px}
.project-modality-panel{display:grid;grid-template-columns:minmax(240px,1fr) 1fr;gap:28px;align-items:center}
.project-modality-panel p{margin:0;line-height:1.6}
.project-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px;align-items:start}
.project-form .project-field-wide{grid-column:1/-1}
.project-form .project-field{min-width:0}
.project-form label{display:block;margin-bottom:8px;font-weight:650}
.project-form .required-mark{color:var(--danger);font-weight:900;font-size:1.15em;margin-left:3px}
.project-form [hidden]{display:none!important}
.project-form .field-hint{line-height:1.5;margin-top:7px}
.project-required-note{margin:0 0 24px;color:var(--muted);font-size:.85rem}
.project-form input[type=color]{height:44px;width:100%;padding:5px}
.project-form input[type=checkbox]{width:auto}
.project-form .has-errors input,.project-form .has-errors select,.project-form .has-errors textarea{border-color:var(--danger)}
.project-form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:28px;padding-top:22px;border-top:1px solid var(--border)}
@media(max-width:760px){.main-content:has(.project-form-page){width:calc(100% - 28px)}.project-modality-panel,.project-form-grid{grid-template-columns:1fr;gap:20px}.project-form .panel{padding:20px}.project-form-page .page-head{align-items:flex-start;flex-direction:column}.project-form-actions{flex-wrap:wrap}}

/* A concise report, followed by an optional time-entry appendix. */
.report-consumption{margin:20px 0 10px;font-size:14px}
.report-balance-result{margin:10px 0 0;font-size:20px}
.report-bank-summary{border-top:1px solid #dbe4e0;margin-top:20px;padding-top:12px}
.report-bank-summary p{margin:8px 0}
.report-work-summary{margin:8px 0 0;padding-left:18px;line-height:1.6;overflow-wrap:anywhere}
.report-work-summary li+li{margin-top:6px}
.report-entry-details>summary{font-size:16px;font-weight:700}
.report-entry-details>summary .muted{font-size:12px;font-weight:400}
.report-controls .checkbox-row{align-items:flex-start}
.report-controls .checkbox-row input{flex-shrink:0;margin-top:4px}
@media print{
 .report-controls{display:none!important}
 .report-entry-appendix,.internal-entry-appendix{break-before:page}
 .report-entry-details{border:0;padding:0}
 .report-entry-details>summary{list-style:none;display:block;break-after:avoid}
 .report-entry-details>summary::marker{content:""}
 .report-entry-details>summary::-webkit-details-marker{display:none}
 .report-document tr{break-inside:auto}
 .report-document td{overflow-wrap:anywhere}
 .report-bank-summary{break-inside:avoid}
 .report-balance-result{font-size:16px}
 .internal-hours-report{color:#202b35;background:#fff;font-size:10pt}
 .internal-hours-report .panel{background:#fff;color:#202b35;border:0;box-shadow:none;padding:0}
 .internal-hours-report table{display:table!important;width:100%;min-width:0!important;table-layout:auto}
 .internal-hours-report th,.internal-hours-report td{background:#fff;color:#202b35;padding:8px 6px;font-size:9pt;overflow-wrap:anywhere}
 .internal-hours-report .cell-secondary,.internal-hours-report .muted{color:#536862}
 .internal-hours-report thead{display:table-header-group}
 .internal-hours-report h2{break-after:avoid}
 .internal-hours-report .description-cell{max-width:none;min-width:0}
}
.report-document .report-summary-table{min-width:0;table-layout:fixed}
.report-summary-table th:last-child{width:90px}
@media print{
 .report-balance:has(.report-bank-details){break-inside:auto}
 .report-bank-summary{break-inside:auto}
}

/* Shared pagination: independent lists retain their filters and other page numbers. */
.pagination{gap:12px;flex-wrap:wrap;padding:16px 0;margin:8px 0;align-items:center}
.pagination>span{font-size:.82rem;color:var(--muted)}
.pagination>div{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.pagination .page-number{min-width:34px;text-align:center}
.report-document .pagination>span{color:#536862}
.report-document .pagination a{color:#194d46}
.report-document .pagination .active{background:#194d46;color:#fff}
.report-brand{overflow-wrap:anywhere}

/* Personal time report */
.personal-report{display:grid;gap:20px}
.personal-report>.page-head{margin-bottom:0}
.personal-report-filters .filter-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.personal-report-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.personal-report-kpis .metric{min-height:132px}
.personal-report-kpis .metric strong{font-size:clamp(1.65rem,3vw,2.4rem)}
.personal-report-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ranked-bars{display:grid;gap:19px}
.ranked-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 14px;align-items:end}
.ranked-bar div{min-width:0}
.ranked-bar strong,.ranked-bar span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ranked-bar span{font-size:.78rem;color:var(--muted);margin-top:3px}
.ranked-bar b{font-size:.9rem;font-variant-numeric:tabular-nums}
.ranked-bar progress{grid-column:1/-1;width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;accent-color:var(--primary)}
.ranked-bar progress::-webkit-progress-bar{background:var(--surface-3)}
.ranked-bar progress::-webkit-progress-value{background:var(--primary)}
.personal-report,.personal-report>*{min-width:0}
.personal-trend{overflow:hidden}
.time-chart{position:relative;width:100%;min-width:0}
.time-chart svg{display:block;width:100%;height:auto;max-height:210px;overflow:hidden}
.time-chart-grid{stroke:var(--border);stroke-width:1}
.time-chart-label{fill:var(--muted);font-size:10px}
.time-chart-bar{fill:var(--primary)}
.time-chart-hit{fill:transparent}
.time-chart g{cursor:pointer;outline:none}
.time-chart g:hover .time-chart-bar,.time-chart g:focus .time-chart-bar{fill:var(--primary-hover)}
.time-chart g:focus-visible .time-chart-hit{stroke:var(--primary);stroke-width:1}
.time-chart-tooltip{position:absolute;top:0;max-width:100%;transform:translateX(-50%);padding:7px 10px;border:1px solid var(--border);border-radius:7px;color:var(--text);background:var(--surface);box-shadow:var(--shadow);font-size:.75rem;pointer-events:none}
.time-chart-tooltip[hidden]{display:none}
.chart-hint{margin:4px 0 0;font-size:.75rem}
@media(max-width:1000px){.personal-report-filters .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.personal-report-kpis,.personal-report-breakdown{grid-template-columns:1fr}
.personal-report-filters .filter-grid{grid-template-columns:1fr}
.personal-report>.page-head .actions{width:100%}
.personal-report>.page-head .button{flex:1}}
@media(max-width:640px){.pagination{align-items:flex-start;flex-direction:column}.pagination>div{justify-content:flex-start}.pagination .button{padding:8px 10px}}
@media print{.pagination{display:none!important}}
.client-project-grid>.pagination{grid-column:1/-1}

/* Clockify processing: one primary action and a persistent, readable status. */
.import-processing{max-width:760px;margin:28px auto;padding:32px}
.import-processing h1{margin:10px 0;font-size:clamp(1.5rem,3vw,2rem);letter-spacing:-.03em}
.import-processing-file{overflow-wrap:anywhere;font-size:.85rem;margin-bottom:28px}
.import-processing-stage{padding:22px;background:var(--surface-3);border-radius:12px}
.import-processing-stage p{color:var(--muted);font-size:.9rem}
.import-processing progress{display:block;width:100%;height:12px;accent-color:var(--primary);border:0;border-radius:8px;overflow:hidden}
.import-processing [data-message]{line-height:1.6;min-height:3.2em}
.import-processing-note{font-size:.9rem;line-height:1.7;color:var(--muted)}
.import-processing-note strong{color:var(--text)}
.import-processing [data-written]{font-size:.85rem;color:var(--muted)}
.import-processing [data-step-form]{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.import-processing [hidden]{display:none!important}
.import-processing button:disabled{opacity:.65;cursor:wait}
.import-processing [data-reverse]{margin-top:28px;padding-top:20px;border-top:1px solid var(--border)}
.import-processing summary{cursor:pointer;color:var(--muted);font-size:.85rem}
.import-processing details p{margin-top:16px;line-height:1.6}
@media(max-width:600px){.import-processing{padding:20px}.import-processing-stage{padding:16px}.import-processing [data-step-form] button{width:100%}}

/* Clockify imports: one review surface, with the next action always visible. */
.import-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.import-option{display:flex;flex-direction:column;gap:12px;margin:0;color:var(--text);transition:border-color .15s,transform .15s}.import-option:hover{border-color:var(--primary);transform:translateY(-2px)}.import-option h2,.import-option p{margin:0}.import-option p{color:var(--muted);line-height:1.5;flex:1}.import-option strong{color:var(--primary);font-size:.85rem}.import-upload{max-width:780px}.import-summary{display:flex;flex-wrap:wrap;gap:16px;margin:22px 0}.import-summary>div{flex:1;min-width:150px;padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:12px}.import-summary strong{display:block;font-size:1.7rem}.import-summary span{font-size:.85rem;color:var(--muted)}.import-confirm-bar{position:sticky;bottom:12px;z-index:10;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow)}.catalog-table td{vertical-align:top;white-space:normal;overflow-wrap:anywhere}.catalog-table th:first-child{width:40px}.catalog-project-options{min-width:220px}.catalog-project-options [data-contract-fields]{margin-top:12px}.catalog-project-options [data-contract-fields] label{margin-top:10px}.mapping-section{padding:18px 0;border-bottom:1px solid var(--border)}.mapping-section>summary{cursor:pointer;font-weight:750;padding:8px 0}.mapping-item{display:grid;grid-template-columns:100px minmax(0,1fr) auto;align-items:center;gap:16px;padding:14px;background:var(--surface-2);border:1px solid var(--border);border-radius:10px}.mapping-item label{margin:0}.mapping-item select{margin-top:8px}.mapping-item .badge{white-space:normal;text-align:center}.import-dialog{width:min(660px,calc(100% - 32px));max-height:85vh;padding:24px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow)}.import-dialog::backdrop{background:#10182880}.import-dialog .dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.import-dialog h2{margin:0}.import-dialog [hidden],.catalog-project-options [hidden]{display:none}button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:680px){.mapping-item{grid-template-columns:1fr}.import-confirm-bar{bottom:0}.catalog-table{min-width:660px}}
.import-page-head{flex-wrap:wrap}.import-page-head>div{min-width:0;flex:1 1 280px}.import-page-head h1,.import-page-head p{overflow-wrap:anywhere}.import-page-head h1{line-height:1.2}.import-summary{min-width:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.import-bulk-modality{flex-wrap:wrap;align-items:end}.import-bulk-modality label{margin:0;flex:1 1 220px}.import-bulk-modality select{margin-top:8px}
@media(max-width:760px){.import-page-head>div{flex:0 1 auto;width:100%}.import-page-head{align-items:flex-start}}

/* Catalog tables retain a readable name column after checkboxes disappear. */
.catalog-table th:first-child{width:auto}.catalog-table .catalog-select-column{width:44px}.catalog-table .catalog-name-column{width:42%}.catalog-table{table-layout:fixed;min-width:720px}.catalog-table td,.catalog-table th{overflow-wrap:break-word;word-break:normal}.catalog-preview .catalog-name-column{width:34%}.catalog-results th:nth-child(2){width:25%}.catalog-table .badge{white-space:normal;line-height:1.45}.catalog-table .catalog-project-options{min-width:0}.catalog-table td p{margin:8px 0 0}.catalog-progress{max-width:800px}.catalog-progress progress{width:100%;height:18px;accent-color:var(--primary);margin:16px 0}.required-indicator{color:var(--danger);font-weight:700}
.project-directory-head{flex-wrap:wrap}.project-directory-head>div{min-width:0}.project-filters,.activity-filters{display:grid;grid-template-columns:minmax(190px,2fr) repeat(3,minmax(130px,1fr)) auto;gap:16px;align-items:end}.activity-filters{grid-template-columns:minmax(200px,2fr) minmax(140px,1fr) auto}.project-filters .actions,.activity-filters .actions{flex-wrap:wrap}.directory-table-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px}.directory-table-heading h2{margin:0}.project-directory-table,.activity-directory-table{width:100%;table-layout:fixed;min-width:820px}.project-directory-table th:first-child{width:30%}.project-directory-table th:nth-child(2){width:18%}.project-directory-table th:nth-child(3){width:17%}.project-directory-table th:nth-child(5){width:9%}.project-directory-table th:last-child{width:110px}.project-directory-table td,.activity-directory-table td{white-space:normal;overflow-wrap:anywhere}.project-directory-table .project-name-colored{font-weight:650}.activity-directory-table th:first-child{width:35%}.activity-directory-table th:nth-child(2){width:25%}.activity-directory-table th:last-child{width:100px}.activity-directory-table td{padding-top:12px;padding-bottom:12px}
.entry-summary{min-width:0}.entry-summary>.entry-main{flex:1 1 0;min-width:0}.entry-main>div{flex:1;min-width:0}.entry-main .entry-description,.activity-title>strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:anywhere;line-height:1.5}.entry-main small{display:block;max-width:100%}.entry-meta{flex:0 0 auto}.activity-group[open] .activity-title>strong{-webkit-line-clamp:unset;line-clamp:unset}.topbar-app-name{display:none}.sidebar-collapsed .topbar-app-name{display:inline}
.topbar-title{display:flex;align-items:center;gap:14px}.global-timer{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;color:var(--primary);background:var(--primary-soft);border-radius:999px;font-variant-numeric:tabular-nums}.global-timer:hover{color:var(--primary-hover)}.global-timer.paused{color:var(--muted);background:var(--surface-3)}.global-timer svg,.activities-button svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.global-timer .live-timer{display:inline;margin:0;min-width:0;font-size:.88rem}.activities-button{gap:8px}
.global-timer-shell{display:flex;align-items:center;gap:4px}.global-timer-shell form{margin:0}.global-timer-action{width:30px;height:30px;display:grid;place-items:center;padding:0;color:var(--primary);background:var(--primary-soft);border:0;border-radius:50%;cursor:pointer;font-size:.78rem}.global-timer-action:hover{color:#fff;background:var(--primary)}.global-timer-action.stop{color:var(--danger);background:var(--danger-soft)}.global-timer-action.stop:hover{color:#fff;background:var(--danger)}
@media(max-width:1350px){.project-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.project-filters>.actions{grid-column:1/-1}}
@media(max-width:820px){.topbar-app-name{display:inline}.app-shell:has(.sidebar.open) .topbar-app-name{display:none}.activity-filters{grid-template-columns:1fr 1fr}.activity-filters>.actions{grid-column:1/-1}.entry-summary{flex-wrap:wrap}.entry-summary>.entry-main{flex-basis:100%}.entry-meta{margin-left:auto;flex-wrap:wrap;white-space:normal}}
.activity-picker{position:relative}.activity-picker>select{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;clip:rect(0,0,0,0);clip-path:inset(50%);overflow:hidden;white-space:nowrap;border:0}.activity-picker-panel{width:min(420px,calc(100vw - 48px))}.activity-option{width:100%;display:flex;align-items:center;min-height:42px;padding:9px 11px;color:var(--text);background:transparent;border:0;border-radius:8px;box-shadow:none;text-align:left;font-weight:600}.activity-option:hover,.activity-option[aria-selected=true]{color:var(--primary);background:var(--primary-soft)}
.tracker-running{display:block;padding:20px 22px;border-left:0;overflow:visible}.timer-active-shell{display:grid;grid-template-columns:minmax(220px,1fr) auto auto auto;align-items:center;gap:18px}.timer-active-shell[hidden],.running-timer-details[hidden]{display:none}.timer-display{min-width:112px;margin:0;font-size:2rem;font-weight:760;letter-spacing:-.04em;text-align:center}.timer-actions{display:flex;align-items:center;gap:8px}.timer-actions form{margin:0}.timer-control,.timer-icon-button{width:46px;height:46px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;box-shadow:none;font-size:1.15rem;transition:transform .15s,background .15s,color .15s}.timer-control:hover,.timer-icon-button:hover{transform:translateY(-1px)}.timer-pause{color:var(--text);background:transparent}.timer-pause:hover{color:var(--primary);background:var(--primary-soft)}.timer-play{color:#fff;background:var(--green);box-shadow:0 8px 20px #20a66b38}.timer-play:hover{background:#18875a}.timer-stop{color:var(--danger);background:var(--danger-soft)}.timer-stop:hover{color:#fff;background:var(--danger)}.timer-edit-button{width:38px;height:38px;color:var(--muted);background:transparent}.timer-edit-button:hover{color:var(--primary);background:var(--primary-soft)}.running-timer-details{display:flex;flex-wrap:wrap;gap:16px;margin:18px 0 0;padding:20px 0 0;border-top:1px solid var(--border)}.running-timer-details .project-field{order:1;flex:1 1 360px}.running-timer-details .activity-field{order:2;flex:1 1 280px}.running-timer-details .description-field{order:3;flex:1 0 100%}.running-timer-details .timer-edit-actions{order:4;display:flex;justify-content:flex-end;gap:10px;width:100%}.time-entry-heading{margin-top:48px}.time-entry-heading .button{align-self:center}
.global-timer-shell form[data-api-url*="/pause/"] .global-timer-action{color:var(--text);background:transparent}.global-timer-shell form[data-api-url*="/pause/"] .global-timer-action:hover{color:var(--primary);background:var(--primary-soft)}.global-timer-shell form[data-api-url*="/resume/"] .global-timer-action{color:#fff;background:var(--green)}
@media(max-width:980px){.timer-active-shell{grid-template-columns:minmax(180px,1fr) auto auto}.timer-display{grid-column:2}.timer-actions{grid-column:3}.timer-edit-button{grid-column:1;grid-row:2;justify-self:start}.running-timer-details{grid-template-columns:1fr 1fr}.running-timer-details .description-field,.running-timer-details .form-actions{grid-column:1/-1}}@media(max-width:620px){.tracker-running{padding:18px}.timer-active-shell{grid-template-columns:1fr auto}.tracker-description{grid-column:1/-1}.timer-display{grid-column:1;text-align:left}.timer-actions{grid-column:2}.timer-edit-button{position:absolute;right:18px;margin-top:-2px}.running-timer-details{grid-template-columns:1fr}.running-timer-details>*{grid-column:1!important}.timer-edit-actions button{flex:1}}
@media(max-width:540px){.project-filters,.activity-filters{grid-template-columns:1fr}.project-directory-head .actions{flex-wrap:wrap}.directory-table-heading{flex-wrap:wrap}}

/* Notifications overlay the page and never shift the timer or entry list. */
.toast-region{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));z-index:2000;display:flex;flex-direction:column;gap:10px;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow-y:auto;pointer-events:none}
.toast-region .toast{flex:none;pointer-events:auto;margin:0;padding:17px 48px 17px 20px;box-shadow:0 8px 28px #0003;line-height:1.45;overflow-wrap:anywhere}
.toast-region .toast.success{color:#fff;background:#268342;border-color:#268342}
.toast-region .toast.error{color:#fff;background:#b8323b;border-color:#b8323b}
.toast-region .message-close{top:50%;transform:translateY(-50%);width:32px;height:32px;line-height:1}
.favorite-button[aria-busy="true"]{opacity:1;cursor:progress}
@media(max-width:620px){.toast-region{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}}

.ui-icon{width:20px;height:20px;display:inline-block;vertical-align:middle;fill:currentColor;flex-shrink:0}.sidebar-collapse{width:36px;height:36px;justify-content:center;padding:7px;border:0;margin-left:auto}.sidebar-collapse svg{fill:none}.sidebar-collapsed .collapse-arrow{transform:rotate(180deg);transform-origin:15px 12px}.timer-assignment-notice{margin:12px 0 0;color:var(--muted);font-size:.8rem;line-height:1.5}.timer-assignment-notice[hidden]{display:none}.start-button{display:inline-flex;align-items:center;justify-content:center;gap:8px}

.timer-more-menu{position:relative;flex:none}
.timer-more-menu>summary{display:grid;place-items:center;width:28px;height:32px;padding:0;list-style:none;cursor:pointer;color:var(--muted);border-radius:6px}
.timer-more-menu>summary::-webkit-details-marker{display:none}
.timer-more-menu>summary:hover,.timer-more-menu[open]>summary{background:var(--surface-2);color:var(--text)}
.timer-more-popover{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:160px;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow)}
.timer-more-popover .timer-discard-item{display:block;width:100%;padding:9px 12px;border:0;border-radius:5px;background:transparent;color:var(--danger);box-shadow:none;font-size:.82rem;font-weight:500;text-align:left;white-space:nowrap}
.timer-more-popover .timer-discard-item:hover{background:var(--danger-soft);color:var(--danger)}

/* Editable running timer and assignment hints. */
.timer-active-shell{grid-template-columns:auto minmax(180px,1fr) auto auto}
.timer-active-shell>.timer-edit-button{position:static;grid-column:1;grid-row:1;margin:0}
.timer-active-shell>.tracker-description{grid-column:2;grid-row:1;min-width:0}
.timer-active-shell>.timer-actions{grid-column:4;grid-row:1}
.timer-required{color:var(--danger);font-weight:800}
.timer-start-editor{position:relative;grid-column:3;grid-row:1}
.timer-start-editor>summary{display:block;cursor:pointer;list-style:none;border-radius:8px;padding:4px 8px}
.timer-start-editor>summary::-webkit-details-marker{display:none}
.timer-start-editor>summary:hover,.timer-start-editor[open]>summary{background:var(--primary-soft);color:var(--primary)}
.timer-start-editor>summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.timer-start-popover{position:absolute;right:0;top:calc(100% + 10px);z-index:50;width:min(340px,calc(100vw - 64px));display:grid;gap:12px;margin:0;padding:18px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:14px;box-shadow:0 12px 32px #0002}
.timer-start-popover small{color:var(--muted)}
.timer-start-popover [data-start-error]{color:var(--danger);margin:0}
.timer-start-popover .form-actions{display:flex;justify-content:flex-end;gap:8px}
@media(max-width:780px){.timer-active-shell{grid-template-columns:auto minmax(0,1fr) auto;gap:12px}.timer-active-shell>.tracker-description{grid-column:2/-1}.timer-start-editor{grid-column:1/3;grid-row:2;justify-self:start}.timer-start-editor .timer-display{text-align:left}.timer-start-editor .timer-start-popover{left:0;right:auto}.timer-active-shell>.timer-actions{grid-column:3;grid-row:2}}

/* Review controls */
.review-bulk-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px;margin:20px 0 12px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px}
.review-bulk-actions [data-selection-count]{margin-left:auto;color:var(--muted);font-size:.85rem}
.review-adjustment{margin-top:20px;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.review-adjustment>summary{cursor:pointer;font-weight:700;color:var(--text)}
.review-adjustment[open]>summary{margin-bottom:16px}
.review-adjustment textarea{max-width:720px}
[data-review-period] .actions{flex-wrap:wrap}
[data-review-period] form button{margin-top:8px}
[data-review-bulk] .button:focus-visible,[data-review-period] .button:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
@media(max-width:620px){.review-bulk-actions{align-items:stretch;flex-direction:column}.review-bulk-actions .button{width:100%}.review-bulk-actions [data-selection-count]{margin-left:0}}

.activity-multi-picker{position:relative}
.activity-multi-picker .project-picker-panel{width:100%;max-width:100%;box-sizing:border-box}
.activity-multi-option{display:flex;align-items:center;gap:10px;padding:10px;border-radius:8px;cursor:pointer;overflow-wrap:anywhere}
.activity-multi-option:hover,.activity-multi-option:has(input:checked){background:var(--primary-soft);color:var(--primary)}
.activity-multi-option input{width:18px;min-height:18px;flex-shrink:0}
.activity-selected{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.activity-selected-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:5px 8px 5px 12px;border:1px solid var(--border);border-radius:9px;background:var(--primary-soft);color:var(--text);overflow-wrap:anywhere}
.activity-selected-chip button{flex-shrink:0;padding:3px 8px;min-height:30px;background:transparent;color:var(--text);border:0;box-shadow:none;font-size:20px}
.activity-create{margin-top:12px}.activity-create summary{cursor:pointer;color:var(--primary);margin-bottom:8px}
.activity-create-row{display:flex;flex-wrap:wrap;gap:8px}.activity-create-row input{flex:1;min-width:180px}.activity-create-row button{flex-shrink:0}

.activity-management-page{max-width:1180px;margin:0 auto}
.activity-management-page>.panel{margin-bottom:24px;padding:28px}
.activity-scope-filter{padding:18px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;margin:20px 0}
.activity-selection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:22px 0}
.activity-selection-grid>.form-field{min-width:0}
.activity-selection-grid .project-picker-trigger>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.activity-selection-grid .activity-selected{max-height:230px;overflow:auto}
.activity-selection-grid .activity-selected-chip{font-size:.85rem}
.activity-selection-grid .project-results{max-height:280px}
.select-list-actions{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px}
.activity-management-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:14px;margin-top:20px}
.activity-merge-details{color:var(--muted);margin:18px 0}.activity-merge-details summary{cursor:pointer;color:var(--text)}
.activity-merge-preview{padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);margin:20px 0}
@media(max-width:760px){.activity-selection-grid{grid-template-columns:1fr}.activity-management-page>.panel{padding:18px}.activity-management-footer{align-items:stretch;flex-direction:column}}

/* Readable client reports on screen and paper. */
.report-document td{font-size:15px;line-height:1.6}
.report-document th{font-size:13px}
.report-document .report-note,.report-document .cell-secondary{font-size:13px}
.filter-picker .project-picker-panel{width:100%;max-width:100%;box-sizing:border-box}
.filter-picker .project-picker-panel[hidden]{display:none}
.filter-picker .project-picker-trigger{min-height:42px}
@media print{
 .report-document td{font-size:11pt;line-height:1.5}
 .report-document th{font-size:10pt}
 .report-document .report-note,.report-document .cell-secondary{font-size:10pt}
 .report-document .report-section h2{font-size:14pt}
}

/* Previous entry descriptions, shared by timer and manual entry fields. */
.description-suggestions{position:fixed;z-index:1100;overflow-y:auto;padding:4px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:9px;box-shadow:var(--shadow)}
.description-suggestions [role="option"]{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;padding:14px 16px;border-radius:5px;cursor:pointer;overflow-wrap:anywhere;line-height:1.5}
.description-suggestions [role="option"]:hover,.description-suggestions [aria-selected="true"]{background:var(--surface-3)}

.description-suggestions .suggestion-description{min-width:0;white-space:pre-wrap}
.description-suggestions .suggestion-assignment{display:inline-flex;align-items:baseline;gap:10px;min-width:0;color:var(--primary)}
.description-suggestions .suggestion-dot{align-self:center;flex:none;width:7px;height:7px;border-radius:50%;background:currentColor}
.description-suggestions .suggestion-client{color:var(--muted)}

.entry-revision-history { margin-top: .5rem; font-size: .85rem; }
.entry-revision-history > summary { cursor: pointer; color: var(--muted, #586174); width: fit-content; }
.entry-revision-history > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.revision-history-content { padding: .75rem; margin-top: .4rem; border: 1px solid var(--border, #dce0e7); border-radius: .5rem; overflow-wrap: anywhere; }
.revision-history-content p { margin: .35rem 0; }
.revision-history-content ul { padding-left: 1.25rem; }

/* Report identity and export controls */
.report-cover .report-logo{max-width:180px;max-height:55px;object-fit:contain;background:white;border-radius:8px;padding:8px;margin-bottom:12px}
.report-cover .report-brand{font-size:12px;letter-spacing:1px;margin-bottom:20px}
.report-cover h1{font-size:34px}
.export-menu{position:relative;display:inline-block}.export-menu summary{cursor:pointer;list-style:none}.export-menu[open]{padding:8px;border:1px solid var(--border,#dbe4e0);border-radius:8px}.export-menu a{display:inline-block;margin:6px}

/* Client report exports stay anchored without shifting the page heading. */
.client-report-export{position:relative;flex:none;align-self:flex-start;z-index:20}
.client-report-export>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;background:var(--primary);color:#fff}
.client-report-export>summary::-webkit-details-marker{display:none}
.client-report-export>summary::marker{content:""}
.client-report-export svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.client-report-export .export-chevron{width:16px;height:16px;transition:transform .15s}
.client-report-export[open] .export-chevron{transform:rotate(180deg)}
.client-report-export-options{position:absolute;top:calc(100% + 8px);right:0;width:250px;max-width:calc(100vw - 32px);padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 32px #172a3926}
.client-report-export:not([open])>.client-report-export-options{display:none}
.client-report-export-options a{display:flex;align-items:center;gap:12px;padding:12px;border-radius:8px;color:var(--text);font-weight:700}
.client-report-export-options a:hover,.client-report-export-options a:focus-visible{background:var(--surface-3)}
.client-report-export-options small{display:block;margin-top:3px;color:var(--muted);font-size:.75rem;font-weight:400}
.client-report-export-options svg{width:28px;height:32px}
.client-report-export .export-pdf-icon{color:#d3473b}
.client-report-export .export-pdf-icon text{fill:currentColor;stroke:none;font-size:8px;font-weight:800}
.client-report-export .export-excel-icon{color:#218451}
.report-print-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.report-print-actions p{flex-basis:100%;margin:0}
.report-document td.report-number{font-weight:750;color:#194d46}
.report-document .report-number .cell-secondary{font-weight:400}
.report-summary-table th:last-child{width:125px}
@media(max-width:640px){.report-controls .page-head:has(.client-report-export){align-items:flex-start;flex-direction:column}.report-controls .client-report-export-options{left:0;right:auto}}
@media print{.client-report-export{display:none!important}.report-cover{break-inside:avoid}.report-document .report-number{white-space:normal}.report-document td.report-number{font-weight:750}}

.sidebar-section{border-top:1px solid #ffffff20;margin:18px 12px 8px;padding-top:16px;color:var(--sidebar-text)}.sidebar-section .sidebar-label{font-size:.65rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;opacity:.65}.report-tabs{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}.report-view-tabs{margin-top:24px}.report-indicators{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:24px}.report-indicators .panel{margin:0}.report-total{font-size:2rem}.report-ranking{list-style:none;padding:0;margin:0}.report-ranking li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--border)}.report-ranking li span{overflow-wrap:anywhere}.report-ranking strong{white-space:nowrap}#report-entries{scroll-margin-top:24px}@media(max-width:820px){.report-indicators{grid-template-columns:1fr}}@media(min-width:821px){.sidebar-collapsed .sidebar-section{padding-top:0;margin:16px 10px}}

.report-hours-summary .section-heading{align-items:flex-start}
.report-hours-chart{list-style:none;margin:24px 0;padding:0;display:grid;gap:20px}
.report-hours-row{display:grid;grid-template-columns:minmax(140px,240px) minmax(0,1fr) 100px;gap:16px;align-items:center}
.report-hours-label{min-width:0;overflow-wrap:anywhere;font-size:.9rem}
.report-hours-duration{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:.9rem}
.report-hours-track{height:16px;background:var(--surface-3);border-radius:4px;overflow:hidden}
.report-hours-track span{display:block;height:100%;background:var(--primary);border-radius:4px}
.internal-hours-report .report-indicators{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:820px){.internal-hours-report .report-indicators{grid-template-columns:1fr}}
@media(max-width:600px){.report-hours-summary .section-heading{flex-wrap:wrap;gap:16px}.report-hours-summary .summary-total{text-align:left}.report-hours-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}.report-hours-track{grid-column:1/-1;grid-row:2}.report-hours-duration{grid-column:2;grid-row:1}}
@media print{.report-hours-row{break-inside:avoid}.report-hours-track,.report-hours-track span{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.person-profile-choice{margin:16px 0 24px}.person-profile-select{width:auto;min-width:180px;max-width:100%;border-radius:999px;font-weight:600;background:var(--surface-2)}.permission-advanced:not([open])>summary{margin-bottom:0}

.user-profile-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.user-profile-header h1{margin:0}.user-profile-header .person-profile-choice{display:flex;align-items:center;gap:8px;margin:0;padding:6px 12px;border-radius:999px;color:#4338ca;background:#eef2ff;border:1px solid #c7d2fe;flex-shrink:0}.user-profile-header .person-profile-select{min-width:0;background:transparent;color:inherit;border:0;padding:6px 24px 6px 0}.person-profile-choice[data-profile="external"]{color:#0f766e;background:#f0fdfa;border-color:#99f6e4}.person-profile-choice .ui-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.user-access-card [hidden]{display:none!important}@media(max-width:600px){.user-profile-header{flex-wrap:wrap}.user-profile-header .person-profile-choice{margin-left:auto}}

/* Sensitive actions share one accessible confirmation surface. */
.action-confirmation{width:min(560px,calc(100% - 32px));max-height:85vh;overflow:auto;padding:28px;border:1px solid var(--border);border-radius:18px;background:var(--surface);color:var(--text);box-shadow:0 24px 80px #0005}.action-confirmation::backdrop{background:#10182899;backdrop-filter:blur(3px)}.confirmation-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}.confirmation-heading h2{margin:0;font-size:1.25rem}.confirmation-icon{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:50%;font-weight:800;background:#fff1c7;color:#855500}.action-confirmation[data-tone=danger] .confirmation-icon{background:#ffe9ea;color:#b42318}.confirmation-details{padding:16px 16px 16px 32px;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;max-height:32vh;overflow:auto;font-size:.88rem;overflow-wrap:anywhere}.confirmation-details li+li{margin-top:8px}.confirmation-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.button.confirmation-warning{background:#8a5900;color:#fff}.button.confirmation-warning:hover{background:#704800}button.button.danger,.button.danger{background:var(--danger);color:#fff}button.button.danger:hover,.button.danger:hover{background:color-mix(in srgb,var(--danger) 80%,#700);color:#fff}.confirmation-actions button:focus-visible{outline:3px solid var(--primary);outline-offset:3px}@media(max-width:520px){.confirmation-actions{flex-direction:column-reverse}.confirmation-actions button{width:100%}}

/* Review history dashboard and entry actions. */
.review-history-head{flex-wrap:wrap;gap:20px}.review-history-head>.button{gap:8px}
.review-history-grid{display:grid;grid-template-columns:minmax(300px,1fr) minmax(0,1.7fr);gap:20px;align-items:start}
.review-history-grid>.review-history-panel{margin:0;min-width:0;padding:24px}
.review-history-summary .section-heading{gap:12px;flex-wrap:wrap}.review-history-summary .section-heading h2{margin:0}
.review-history-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px;margin:24px 0}
.review-history-facts dt,.review-history-description h3{font-size:.78rem;font-weight:650;color:var(--muted);margin:0 0 6px}
.review-history-facts dd{margin:0;font-size:.9rem;font-weight:600;overflow-wrap:anywhere}.review-history-wide{grid-column:1/-1}
.review-history-description{padding:18px 0;border-top:1px solid var(--border)}.review-history-description p{margin:0;line-height:1.6;overflow-wrap:anywhere}
.review-history-panel>h2{margin-bottom:16px}.review-history-panel p{line-height:1.6}.review-history-panel td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}.review-history-panel .table-wrap{max-width:100%}
.review-history-secondary details{padding:12px 0;border-bottom:1px solid var(--border)}.review-history-secondary summary{cursor:pointer;font-weight:600;line-height:1.6}
.review-reversal{margin-top:16px}.review-reversal>summary{list-style:none;gap:8px}.review-reversal>summary::-webkit-details-marker{display:none}.review-reversal-chevron{margin-left:8px;transition:transform .15s}.review-reversal[open] .review-reversal-chevron{transform:rotate(180deg)}
.review-reversal-body{margin-top:16px;padding-top:4px;border-top:1px solid var(--border)}.review-reversal-field{margin-bottom:18px}.review-reversal-field textarea{min-height:110px}.required-mark{color:var(--danger)}
.review-entry-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:145px}.review-entry-actions>.button{gap:7px;white-space:nowrap;font-size:.8rem;min-height:34px;padding:7px 10px}.review-entry-actions>.muted{flex-basis:100%;line-height:1.4}
.review-reversal>summary:focus-visible{outline:2px solid var(--primary);outline-offset:4px}
@media(max-width:1000px){.review-history-grid{grid-template-columns:minmax(0,1fr)}.review-history-head>.button{white-space:normal;text-align:center}}
@media(max-width:540px){.review-history-grid>.review-history-panel{padding:18px}.review-history-facts{grid-template-columns:minmax(0,1fr)}.review-history-wide{grid-column:auto}}
.review-entry-actions .ui-icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Bank consumption uses the full workspace and the shared searchable picker. */
.support-partial-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,200px);gap:24px;align-items:center;padding:20px 0;border-top:1px solid var(--border)}
.support-consume-page .activity-selected-chip{white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){.support-partial-row{grid-template-columns:1fr;gap:8px}}

/* Keep entry validation visible next to the fields until the next submission. */
.entry-error-summary{margin:16px 0 0;padding:14px 16px;line-height:1.5;overflow-wrap:anywhere}
.entry-error-summary>strong{display:block;font-size:.9rem}
.entry-error-summary>p{margin:6px 0 0}
.entry-error-item{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;margin-top:10px;font-size:.85rem}
.entry-error-item:not(:has(>strong)){grid-template-columns:minmax(0,1fr)}
.entry-error-list{list-style:none;margin:0;padding:0}
.entry-error-list li+li{margin-top:6px}
.manual-grid>.form-field,.tracker-grid>.form-field{min-width:0;align-self:start}
.report-date .cell-secondary{white-space:normal;overflow-wrap:anywhere}
.inline-entry-grid>.form-field:nth-child(n+4){grid-column:span 3}
[data-activity-trigger]{gap:8px}
[data-activity-label]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:620px){.entry-error-item{grid-template-columns:minmax(0,1fr);gap:2px}}.form-field [aria-invalid="true"]{border-color:var(--danger)}

.activity-picker .activity-option{display:block}.activity-option>small{display:block;margin-top:3px;color:var(--muted);font-size:.75rem;font-weight:400}

/* Inline editors also adapt to the narrower space inside grouped entries. */
.inline-entry-grid input,.inline-entry-grid select{width:100%;min-width:0;max-width:100%}
.inline-entry-grid .project-picker-trigger{height:42px;gap:8px}
.inline-entry-grid .project-picker-trigger>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@container(max-width:540px){
  .inline-entry-grid>.form-field:nth-child(-n+4){grid-column:1/-1}
  .inline-entry-grid>.form-field:nth-child(n+5){grid-column:span 3}
}
@container(max-width:480px){
  .inline-entry-actions{flex-wrap:wrap}
  .inline-entry-actions>.button:last-child{flex-basis:100%}
}
