[hidden] { display:none !important; }
html { font-size:16px; overflow-x:hidden; }
body { background-image:none; }
main.workspace { max-width:1080px; padding:26px 28px 34px; }
.workspace-filters > label, .timer-task { min-width:0; }
.workspace-intro { margin:34px 0 26px; }
.workspace-eyebrow { font-size:10px; text-transform:uppercase; letter-spacing:1.8px; font-weight:650; margin:0 0 10px; color:var(--muted); }
.workspace h1 { font-size:clamp(26px,4vw,32px); line-height:1.25; letter-spacing:-.7px; margin-bottom:12px; }
.workspace h2 { font-size:17px; line-height:1.35; font-weight:600; margin:0 0 8px; }
.workspace p { font-size:14px; }
.workspace-muted { color:var(--muted); }
.workspace button, .workspace select, .workspace input, .workspace textarea, body > dialog input, body > dialog textarea, body > dialog select, body > dialog button { font:inherit; font-size:14px; }
.workspace button, body > dialog button { border:1px solid var(--line-strong); padding:9px 13px; background:var(--bg-elevated); color:var(--fg); border-radius:6px; cursor:pointer; line-height:1.3; }
.workspace button:hover, body > dialog button:hover { border-color:var(--muted); }
.workspace button:disabled, body > dialog button:disabled { opacity:.45; cursor:default; }
.workspace button:focus-visible, .workspace input:focus, .workspace textarea:focus, .workspace select:focus, body > dialog :is(input,textarea,select,button):focus-visible { outline:2px solid var(--fg); outline-offset:3px; }
.workspace .workspace-primary, body > dialog .workspace-primary { background:var(--fg); border-color:var(--fg); color:var(--bg); font-weight:600; }
.workspace label, body > dialog label { display:block; font-size:12px; color:var(--muted); font-weight:500; margin:15px 0 6px; }
.workspace :is(input,textarea,select), body > dialog :is(input:not([type=checkbox]),textarea,select) { display:block; width:100%; min-width:0; min-height:40px; padding:9px 11px; color:var(--fg); background:var(--bg-elevated); border:1px solid var(--line-strong); border-radius:6px; }
.workspace textarea, body > dialog textarea { line-height:1.5; resize:vertical; }
.workspace-status { min-height:20px; margin:18px 0; color:var(--muted); font-size:13px !important; line-height:1.5; }
.is-error { color:#ae3b31 !important; }
.login-page { max-width:460px !important; padding-top:clamp(32px,8vh,72px) !important; }
.login-card { margin:0; padding:27px; background:var(--bg-elevated); border:1px solid var(--line); border-radius:12px; }
.login-card h1 { font-size:25px; }
.full-width { width:100%; margin-top:21px; }
.workspace .workspace-text-button { border:0; background:none; padding:10px 0 0; font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.login-note { font-size:11px !important; margin-top:24px; color:var(--muted); }
.module-card { display:flex; align-items:center; gap:23px; padding:24px; border:1px solid var(--line); border-radius:10px; background:var(--bg-elevated); text-decoration:none; max-width:650px; }
.module-card p { margin:0; }
.module-card > span:last-child { margin-left:auto; }
.module-number { font-size:12px; color:var(--muted); align-self:flex-start; }
.future-note { font-size:12px !important; margin-top:24px; }
.workspace-filters { display:grid; grid-template-columns:2fr 1.5fr 1.2fr auto; align-items:end; gap:14px; margin-bottom:20px; }
.workspace-filters label { margin:0; }
.workspace-filters :is(input,select) { margin-top:6px; }
.timer-card { display:grid; grid-template-columns:245px 1fr; gap:28px; padding:23px; border:1px solid var(--line); border-radius:10px; background:var(--bg-elevated); }
.timer-clock output { display:block; font-size:32px; font-variant-numeric:tabular-nums; letter-spacing:-.4px; line-height:1.3; margin:16px 0 9px; }
.timer-clock p { font-size:12px; }
.timer-task { border-left:1px solid var(--line); padding-left:28px; }
.timer-task label:first-child { margin-top:0; }
.timer-task button { margin-top:12px; }
.time-list { border:1px solid var(--line); background:var(--bg-elevated); border-radius:10px; overflow:hidden; }
.time-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; padding:18px 20px; border-bottom:1px solid var(--line); }
.time-toolbar p { margin:0; font-size:12px; }
.workspace-actions { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.workspace-actions button { font-size:12px; padding:7px 10px; }
.time-table-scroll { overflow:auto; }
.time-table { width:100%; border-collapse:collapse; font-size:13px; min-width:680px; }
.time-table :is(td,th) { padding:12px 16px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.time-table th { color:var(--muted); font-weight:500; font-size:11px; }
.time-table th:nth-child(1) { width:100px; }
.time-table th:nth-child(2) { width:130px; }
.time-table th:nth-child(4) { width:95px; }
.time-table td:nth-child(4) { font-variant-numeric:tabular-nums; }
.time-table td:nth-child(3) { min-width:230px; }
.time-table td:last-child { width:130px; }
.time-table tr:last-child td { border:0; }
.time-table button { padding:4px 6px; font-size:11px; margin:0 4px 4px 0; }
.entry-description { color:var(--muted); font-size:12px; margin-top:3px; white-space:pre-wrap; overflow-wrap:anywhere; }
.entry-running { color:var(--accent); font-size:11px; }
.time-note { margin-top:16px; font-size:11px !important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
dialog { border:1px solid var(--line-strong); border-radius:12px; color:var(--fg); background:var(--bg-elevated); max-width:560px; width:calc(100% - 28px); padding:25px; max-height:90dvh; overflow:auto; }
dialog::backdrop { background:rgba(0,0,0,.35); }
dialog h2 { font-size:20px; margin:0 0 17px; }
dialog p { font-size:12px; }
.entry-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.entry-grid label { margin-top:0; }
.checkbox-label { display:flex !important; align-items:center; gap:9px; }
.dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:23px; }
@media(max-width:760px) {
  main.workspace { padding:20px 16px 30px; }
  .workspace-filters { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .timer-card { grid-template-columns:1fr; gap:21px; padding:19px; }
  .timer-task { border-left:0; border-top:1px solid var(--line); padding:20px 0 0; }
  .timer-clock { display:grid; grid-template-columns:1fr auto; align-items:center; }
  .timer-clock h2, .timer-clock p { grid-column:1/-1; }
  .timer-clock output { margin-top:4px; font-size:27px; }
  .login-card { padding:23px; }
  .entry-grid { grid-template-columns:1fr; }
  .entry-grid label:first-child { grid-column:1/-1; }
}
@media print {
  .workspace-intro p, .workspace-filters, .timer-card, .workspace-actions, .workspace-status, dialog { display:none !important; }
  .workspace-intro { margin:12px 0; }
  .time-table { min-width:0; font-size:10px; }
  .time-table :is(td,th) { padding:6px; }
  .time-table td:last-child, .time-table th:last-child { display:none; }
  .entry-description { font-size:10px; }
  .time-list { border:0; }
  .time-table-scroll { overflow:visible; }
  .time-table tr { break-inside:avoid; }
  @page { size:A4; margin:12mm; }
}

.module-card + .module-card { margin-top:16px; }
