.task-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}.task-view-toggle{display:flex;gap:6px;margin-left:auto}.task-view-toggle button[aria-pressed="true"]{background:var(--line);color:inherit;font-weight:700}
.task-board{display:grid;grid-template-columns:repeat(3,minmax(300px,1fr));gap:18px;overflow-x:auto;align-items:start;padding-bottom:10px}.task-board-column{background:#eef2ee;border:1px solid var(--line);border-radius:9px;padding:14px;min-height:320px}.task-board-column>h3{display:flex;justify-content:space-between;margin:0 0 16px;font-size:12px}.task-board-column>h3 span{font-size:11px;color:var(--muted)}
.task-card{display:grid;gap:10px;border:1px solid var(--line);border-radius:12px;background:var(--theme-surface,#fff);padding:14px;margin-bottom:12px;box-shadow:0 3px 12px #0001;cursor:pointer}.task-card-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.task-card p.task-meta,.task-row p.task-meta{margin:0;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.task-badges{display:flex;gap:6px;flex-wrap:wrap}.task-commands{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.task-move{display:grid;gap:5px;font-size:10px;color:var(--muted);max-width:100%}.task-move select{font-size:11px;max-width:100%}.task-empty-column{font-size:11px}.task-row{flex-wrap:wrap}.task-row .task-main{flex:1;min-width:160px}.task-row .task-commands,.task-row .task-badges{flex:0 1 auto}
.task-dragging{opacity:.35}.task-drop-target{background:#e2e9e4}.task-drag-ghost{position:fixed;z-index:1000;pointer-events:none;box-shadow:0 12px 35px #0003;opacity:.95;margin:0}
:root[data-theme="dark"] .task-board-column{background:#111}:root[data-theme="dark"] .task-card{background:var(--theme-surface);color:var(--theme-text)}:root[data-theme="dark"] .task-drop-target{background:#242424}
@media(max-width:760px){.task-toolbar{gap:12px}.task-board{gap:12px}.task-row .task-commands{width:100%}.task-commands button{min-height:36px}.task-move select{min-height:var(--control-height)}}
.task-timer-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.task-timer-controls button{min-height:36px}.task-time-dialog{width:900px}.task-history-title{margin:0 0 20px;overflow-wrap:anywhere}.task-time-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin-bottom:20px}.task-time-filters label{display:grid;gap:6px;font-size:11px;color:var(--muted)}.task-time-filters .subtle-button{min-height:36px}.task-time-report-section{margin-top:24px}.task-archived{display:block;margin-top:5px;color:var(--muted)}.task-time-dialog output{font-variant-numeric:tabular-nums;white-space:nowrap}.task-time-dialog .table-primary{white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){.task-time-filters label{flex:1 1 120px}.task-time-filters select{width:100%}.task-time-filters button{flex:1 1 100%}.task-view-toggle{margin-left:0}.task-time-dialog{padding:18px}}
.task-timer-controls .subtle-button{display:inline-flex;align-items:center;gap:6px}.task-timer-controls .subtle-button span{font-size:10px}:root[data-theme="dark"] .task-view-toggle button[aria-pressed="true"]{background:#383838;color:var(--theme-text)}

/* Compact list: horizontal scrolling keeps every task on one row. */
.task-list { overflow-x: auto; padding: 2px 2px 8px; }
.task-list .task-row {
  flex-wrap: nowrap;
  gap: 16px;
  min-width: max-content;
  margin-bottom: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--theme-surface, #fff);
  box-shadow: 0 3px 12px #0001;
}
.task-list .task-main { display: flex; align-items: center; gap: 16px; flex: 1 0 auto; min-width: 0; }
.task-list .task-card-open { width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-list .task-card-people { width: 205px; }
.task-list .task-card-status { min-width: max-content; flex: 1 0 auto; flex-wrap: nowrap; }
.task-list .task-badges, .task-list .task-commands { flex: 0 0 auto; flex-wrap: nowrap; width: auto; }
.task-list .task-row > .task-card-clock { flex: 0 0 auto; align-items: center; min-width: 220px; padding-inline-start: 24px; border-inline-start: 1px solid var(--line); white-space: nowrap; }
.task-move select{appearance:none;-webkit-appearance:none;min-width:142px;min-height:var(--control-height);border:1px solid var(--line);border-radius:8px;height:var(--control-height);padding:0 32px 0 12px;font:inherit;font-size:11px;font-weight:600;color:var(--theme-text,#29483e);background-color:var(--theme-surface,#fff);background-image:url("assets/lucide/chevron-down.svg");background-repeat:no-repeat;background-size:14px;background-position:right 12px center;cursor:pointer;transition:border-color .15s,box-shadow .15s}.task-move select:hover{border-color:#81918b}.task-move select:focus-visible{outline:2px solid var(--accent,#188063);outline-offset:2px}.task-move select:disabled{opacity:.6;cursor:wait}.task-move option{color:var(--theme-text,#29483e);background:var(--theme-surface,#fff)}

.task-commands button,.task-timer-controls button{height:var(--control-height);min-height:var(--control-height);display:inline-flex;align-items:center;justify-content:center}




.floating-task-timer{position:fixed;right:24px;bottom:24px;z-index:15;width:360px;max-width:calc(100vw - 24px);padding:18px;background:var(--theme-surface,#fff);color:var(--theme-text,#233c36);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 32px #0002;display:grid;gap:14px}.floating-task-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted)}.floating-task-title{font-size:13px;overflow-wrap:anywhere}.floating-task-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.floating-task-controls output{font-size:22px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}.floating-task-controls>div{display:flex;gap:8px}.floating-task-controls button{font-size:11px;gap:6px}.floating-task-choice{display:grid;gap:6px;font-size:11px}.floating-task-choice select{width:100%;min-width:0;font-size:12px}.floating-task-timer:focus-within{z-index:16}@media(max-width:760px){.floating-task-timer{right:12px;bottom:max(12px,env(safe-area-inset-bottom));padding:15px}.floating-task-controls output{font-size:20px}body:has(.floating-task-timer) main{padding-bottom:220px}}

@media(max-width:760px){body:has(.floating-task-timer) #toast{bottom:230px}}

:root :is(.task-card,.task-row) p.task-contact{font-size:12px;font-weight:600;color:var(--green);line-height:1.6}

.task-card-open {
  min-width: 0;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
}
.task-card-open:hover { color: var(--green); }
.task-card-people { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.task-card-people .task-meta { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-card-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.task-card-status time { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; --icon-size: 13px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.task-card-clock { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.task-card-clock > div:first-child { display: grid; gap: 3px; }
.task-card-clock span { color: var(--muted); font-size: 11px; }
.task-card-clock output { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.task-card-clock .task-timer-controls { flex-wrap: nowrap; gap: 6px; }
.task-card-clock .task-timer-controls button { width: var(--control-height); padding: 0; flex-shrink: 0; }
.task-details-title { color: inherit; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.task-details-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 16px 0 20px; }
.task-details-fields dt { color: var(--muted); font-size: 11px; }
.task-details-fields dd { margin: 4px 0 0; font-size: 13px; overflow-wrap: anywhere; }

.task-card-tools { display: flex; align-items: center; flex: none; }
.task-card-open[data-task-drag] { touch-action: none; }
.task-options-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  --icon-size: 18px;
}
.task-options-button:hover, .task-options-button[aria-expanded="true"] { background: var(--line); color: inherit; }
.task-options {
  position: fixed;
  inset: auto;
  width: min(190px, calc(100vw - 16px));
  margin: 0;
  padding: 5px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #233c36);
  box-shadow: 0 8px 24px #0002;
}
.task-options button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 6px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: 12px;
  --icon-size: 15px;
}
.task-options button:hover, .task-options button:focus-visible { background: var(--line); }
.task-options [data-option="delete"] { color: #b4423b; }
:root[data-theme="dark"] .task-options [data-option="delete"] { color: #f2a19b; }

.task-options button:disabled { opacity: .55; cursor: default; background: transparent; }
