:root {
  --purple: #546e7a;
  --purple-dark: #455a64;
  --accent: #546e7a;
  --accent-dark: #37474f;
  --rose: #e91e63;
  --info: #00bcd4;
  --success: #4caf50;
  --success-dark: #388e3c;
  --playing: #1e88e5;
  --playing-dark: #1565c0;
  --warning: #ff9800;
  --warning-dark: #f57c00;
  --danger: #f44336;
  --muted: #999;
  --text: #3c4858;
  --paper: #fff;
  --canvas: #eee;
  --shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 16px 38px -12px rgba(0, 0, 0, 0.56);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}

.wrapper { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #455a64, #263238);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.logo { padding: 18px 16px 8px; }
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  text-decoration: none;
}
.logo .material-icons { font-size: 26px; }
.sidebar-wrapper {
  padding: 8px 0 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sidebar ul.nav {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0 12px;
  flex: 1 1 auto;
  overflow: auto;
}
.sidebar .nav-item {
  display: block;
  width: 100%;
  float: none;
  flex: 0 0 auto;
}
.nav-item .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.82);
  padding: 12px 14px;
  border-radius: 3px;
  text-decoration: none;
}
.nav-item.active .nav-link,
.nav-item .nav-link:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}
.nav-item p { margin: 0; }
.sidebar-breaks { padding: 24px 20px 0; }
.sidebar-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  opacity: .7;
  margin-bottom: 10px;
}
.break-stat {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  opacity: .95;
}

.main-panel { flex: 1; min-width: 0; padding-bottom: 170px; }
.navbar {
  background: #fff;
  box-shadow: var(--shadow);
  padding: 10px 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.navbar .container-fluid {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.navbar-wrapper { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.navbar-brand { margin: 0; font-size: 18px; font-weight: 400; color: var(--text); line-height: 1.2; }
.navbar-subtle { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.navbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 0;
  background: #eceff1;
  color: var(--accent);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.chip.is-on { background: var(--accent); color: #fff; }

.content { padding: 18px 18px 0; }
.stats-row { margin-bottom: 8px; }
.card {
  background: var(--paper);
  border: 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.card-header {
  padding: 16px 20px 8px;
  border: 0;
  color: #fff;
  border-radius: 6px 6px 0 0;
}
.card-header-primary { background: linear-gradient(60deg, #546e7a, #37474f); }
.card-header-rose { background: linear-gradient(60deg, #ec407a, #d81b60); }
.card-header-info { background: linear-gradient(60deg, #26c6da, #00acc1); }
.card-header .card-title { margin: 0; font-size: 18px; font-weight: 300; }
.card-header .card-category { margin: 4px 0 0; opacity: .85; font-size: 13px; }
.card-body { padding: 16px 18px 18px; }
.sprint-body { max-height: calc(100vh - 360px); overflow: auto; }

.card-stats {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px 14px;
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-top: -28px;
  box-shadow: 0 4px 20px 0 rgba(0,0,0,.14);
}
.card-icon .material-icons { font-size: 28px; }
.bg-success { background: linear-gradient(60deg, #66bb6a, #43a047); }
.bg-warning { background: linear-gradient(60deg, #ffa726, #fb8c00); }
.bg-info { background: linear-gradient(60deg, #26c6da, #00acc1); }
.bg-rose { background: linear-gradient(60deg, #ec407a, #d81b60); }
.card-stats .card-category { color: var(--muted); margin: 0; font-size: 13px; }
.card-stats .card-title { margin: 4px 0 0; font-size: 22px; font-weight: 300; }

.card-motivation .card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.motivation-body { margin: 6px 0 0; color: var(--muted); }
.xp-bar { height: 4px; background: #eceff1; }
.xp-bar span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s ease; }

.days { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; }
.days .chip { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.days .chip.is-on { background: var(--accent); color: #fff; }

.group { margin-bottom: 16px; }
.group h3 {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.task-card {
  border-radius: 6px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
  color: #fff;
  position: relative;
}
.task-card.is-pending { background: #78909c; }
.task-card.is-paused { background: linear-gradient(60deg, #ffa726, #fb8c00); }
.task-card.is-playing { background: linear-gradient(60deg, #42a5f5, #1e88e5); }
.task-card.is-waiting { background: linear-gradient(60deg, #26c6da, #00acc1); }
.task-card.is-done { background: linear-gradient(60deg, #66bb6a, #43a047); }
.wait-note {
  background: rgba(0,0,0,.14);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px;
  margin: 0 0 8px;
}
.task-title { margin: 4px 0 8px; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta-row, .notes { font-size: 12px; opacity: .92; }
.timer {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1.1;
  margin: 8px 0;
}
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-btn {
  border: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.icon-btn .material-icons { font-size: 16px; }
.icon-btn:hover { background: rgba(255,255,255,.28); }

.subtasks { margin: 8px 0 0; padding: 0; list-style: none; }
.subtask {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  background: rgba(0,0,0,.12);
  border-radius: 4px;
  padding: 6px 8px;
  margin-top: 6px;
  font-size: 12px;
}
.subtask .sub-timer { font-size: 13px; font-weight: 500; }
.subtask.is-pending { background: #607d8b; }
.subtask.is-playing { background: linear-gradient(60deg, #42a5f5, #1e88e5); }
.subtask.is-paused { background: linear-gradient(60deg, #ffa726, #fb8c00); }
.subtask.is-waiting { background: linear-gradient(60deg, #26c6da, #00acc1); }
.subtask.is-done { background: linear-gradient(60deg, #66bb6a, #43a047); }

.btn {
  border: 0;
  border-radius: 3px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn .material-icons { font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(84,110,122,.35); }
.btn-danger { background: transparent; color: #c62828; box-shadow: inset 0 0 0 1px rgba(198,40,40,.35); }
#nt-delete { margin-right: auto; }
.btn-sm { padding: 6px 10px; }
.btn:disabled { opacity: .4; cursor: default; }
.toggles .btn-outline { color: var(--text); }

.timeline {
  position: relative;
  margin: 8px 8px 24px 72px;
}
.hour {
  position: relative;
  height: auto;
  border-top: 1px dashed rgba(0,0,0,.08);
  box-sizing: border-box;
}
.hour span {
  position: absolute;
  left: -64px;
  top: -8px;
  color: var(--muted);
  font-size: 12px;
}
.timeline-item {
  position: absolute;
  left: 0;
  right: 8px;
  min-height: 0;
  overflow: hidden;
  z-index: 2;
  box-sizing: border-box;
}
.timeline-item.is-compact .row-actions,
.timeline-item.is-compact .timer { display: none; }
.timeline-item .task-title { margin: 4px 0; }
.timeline-item .row-actions {
  position: absolute;
  right: 10px;
  top: 10px;
}
.now-line {
  position: absolute;
  left: -8px;
  right: 0;
  height: 2px;
  background: var(--danger);
  z-index: 5;
}

.player {
  position: fixed;
  left: 276px;
  right: 16px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 1.1fr auto 1.2fr;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 30;
}
.player.is-break { box-shadow: 0 16px 38px -12px rgba(55, 71, 79, .45); }
.player-copy h3 { margin: 2px 0 4px; font-weight: 400; font-size: 18px; }
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  color: var(--accent);
}
.subtle { color: var(--muted); font-size: 12px; margin: 0; }
.chrono-wrap { text-align: center; }
.chrono {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--accent);
}
.player.is-on .chrono { color: var(--playing-dark); }
.player.is-break .chrono { color: var(--accent); }
.chrono-label {
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  color: var(--muted);
}
.player-side { justify-self: end; }
.break-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 8px; }
.break-btns .btn { text-transform: none; padding: 6px 10px; }
.break-btns .btn.is-on { background: var(--accent); color: #fff; }
.actions { display: flex; gap: 8px; justify-content: flex-end; }

dialog {
  border: 0;
  border-radius: 8px;
  padding: 0;
  width: min(560px, 96vw);
  box-shadow: var(--shadow-lg);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sheet-head h2 { margin: 0; flex: 1; }
.sheet-close {
  border: 0;
  background: #eceff1;
  color: #546e7a;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.sheet-close:hover { background: #cfd8dc; color: #263238; }
.sheet-close .material-icons { font-size: 22px; }
.sheet { padding: 22px; display: grid; gap: 12px; }
.sheet label { display: grid; gap: 6px; font-size: 13px; }
.sheet input {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 10px;
}
.sheet menu { display: flex; justify-content: flex-end; gap: 8px; padding: 0; }

.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  background: var(--success);
  color: #fff;
  padding: 12px 16px;
  border-radius: 4px;
  z-index: 50;
  box-shadow: var(--shadow-lg);
}

.empty { color: var(--muted); padding: 12px 0; }

@media (max-width: 1100px) {
  .sidebar { display: none; }
  .player { left: 12px; grid-template-columns: 1fr; }
  .chrono { font-size: 48px; }
  .sprint-body { max-height: none; }
}

.waits-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.wait-chip {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.wait-chip strong { font-weight: 500; }
.wait-chip .wait-time { color: var(--info); font-weight: 500; }

.observe-sheet textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  font-family: Roboto, sans-serif;
  resize: vertical;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.observe-help { font-size: 12px; color: var(--muted); margin: 0; }
.observe-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 0; }
.observe-log { font-size: 12px; color: var(--muted); display: grid; gap: 4px; }
.observe-log p { margin: 0; }

.card-header-success { background: linear-gradient(60deg, #66bb6a, #43a047); }
.hist-search {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-family: Roboto, sans-serif;
}
.hist-filters { display: grid; gap: 10px; margin-bottom: 18px; }
.hist-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hist-timeline { position: relative; padding-left: 22px; }
.hist-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #e0e0e0;
}
.hist-day { position: relative; margin-bottom: 28px; }
.hist-day-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.hist-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #43a047;
  margin-left: -23px;
  margin-top: 4px;
  box-shadow: 0 0 0 4px #fff;
  flex: none;
}
.hist-day-head h3 { margin: 0; font-size: 16px; font-weight: 500; }
.hist-day-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.hist-group h4 {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 8px;
}
.hist-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  background: #f4f7f2;
  border-radius: 8px;
  margin-bottom: 6px;
}
.hist-item .material-icons { color: #43a047; font-size: 20px; }
.hist-item strong { font-size: 14px; font-weight: 500; }
.hist-notes { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.hist-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- pages + mini sidebar --- */
.page[hidden], .page { display: none; }
.page.is-on { display: block; }
.sidebar { transition: width .2s ease; }
.sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 32px);
  margin: auto 16px 16px;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  flex: 0 0 auto;
}
.sidebar-toggle .material-icons { font-size: 20px; }
.logo-text { margin-left: 4px; }
.main-panel, .player { transition: margin-left .2s ease, left .2s ease; }
body.sidebar-mini .sidebar { width: 80px; flex: 0 0 80px; }
body.sidebar-mini .logo { padding: 16px 8px; justify-content: center; }
body.sidebar-mini .logo a { justify-content: center; }
body.sidebar-mini .logo-text,
body.sidebar-mini .nav-item p,
body.sidebar-mini .sidebar-toggle span { display: none; }
body.sidebar-mini .nav-link { justify-content: center; padding: 12px 8px; gap: 0; }
body.sidebar-mini .sidebar-toggle { width: 48px; margin: auto 16px 16px; padding: 10px 0; justify-content: center; }
body.sidebar-mini .sidebar-toggle .material-icons { transform: rotate(180deg); }
body.sidebar-mini .player { left: 96px; }
body.page-trabalho .content { padding-bottom: 24px; }
body.page-trabalho .player { display: grid; }
.player { display: none; }
.work-board {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 8px 16px 28px;
  min-height: calc(100vh - 210px);
}
.work-board .group h3 { margin-top: 18px; }
.work-board .task-card { margin-bottom: 8px; }
.agenda { position: relative; padding: 8px 0 16px 12px; }
.agenda::before {
  content: "";
  position: absolute;
  left: 96px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #eee;
}
.agenda-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 28px;
  margin: 0 0 10px;
  position: relative;
}
.agenda-time {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  padding-top: 16px;
  font-variant-numeric: tabular-nums;
}
.agenda-item .task-card { margin: 0; }
.agenda-item::before {
  content: "";
  position: absolute;
  left: 91px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #fff;
}
.dash-now {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
}
.dash-now .timer { margin: 0; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dash-kpis div { background: #f7f7fa; border-radius: 8px; padding: 12px 14px; }
.dash-kpis span { display: block; color: var(--muted); font-size: 12px; }
.dash-kpis strong { font-size: 18px; font-weight: 500; }

.desk-pip {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 320px;
  z-index: 80;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  padding: 0 14px 12px;
  cursor: default;
}
.desk-pip-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 6px;
  cursor: move;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.desk-pip-x { border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--muted); }
.desk-pip strong { display: block; font-size: 14px; margin-bottom: 8px; }
.desk-pip-row { display: flex; align-items: center; gap: 8px; }
.desk-pip-row span { font-size: 22px; font-weight: 300; letter-spacing: .04em; color: var(--accent); flex: 1; }
.desk-pip-btn {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  background: #eceff1;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
}
.desk-pip-btn.is-ok { background: var(--success); color: #fff; }

@media (max-width: 1100px) {
  .sidebar { display: none; }
  body.sidebar-mini .sidebar { display: block; }
  .main-panel, body.sidebar-mini .main-panel { margin-left: 0; }
  .player, body.sidebar-mini .player { left: 12px; }
}

.backlog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.bl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1;
}
.bl-filters input,
.bl-filters select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.cal-nav strong {
  flex: 1;
  text-align: center;
  text-transform: capitalize;
}
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.cal-col, .cal-cell {
  background: #f7f7f7;
  border-radius: 8px;
  min-height: 120px;
  padding: 8px;
}
.cal-col.is-today, .cal-cell.is-today { outline: 2px solid var(--accent); }
.cal-cell.is-out { opacity: .45; }
.cal-col header, .cal-cell header {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.cal-chip {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 4px;
  background: #eceff1;
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
}
.cal-chip span { display: block; font-weight: 500; }
.cal-chip.is-playing { background: #1e88e5; color: #fff; }
.cal-chip.is-paused { background: #fb8c00; color: #fff; }
.cal-chip.is-done { background: #43a047; color: #fff; }
.cal-empty { color: var(--muted); margin: 0; font-size: 12px; }
.cal-month-head, .cal-month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-month-head span {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}
.cal-cell { min-height: 92px; }
.cal-more { font-size: 11px; color: var(--muted); }
.cal-undated { margin-top: 24px; font-size: 13px; color: var(--muted); text-transform: uppercase; }
.task-kind {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eceff1;
}
#btn-new-task { display: inline-flex; align-items: center; gap: 4px; }

.work-toolbar {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}
.work-toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.work-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 520px;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.work-search-wrap .material-icons {
  color: #90a4ae;
  font-size: 20px;
}
.work-search-wrap input {
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
  height: 38px;
  background: transparent;
  font: inherit;
}
.work-search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #cfd8dc;
}
.work-toolbar .toggles { margin-left: auto; }
.work-toolbar .filter-bar { padding-top: 2px; }

.sheet textarea, .sheet select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 10px;
  font: inherit;
  resize: vertical;
}
.task-desc { color: #78909c; font-size: 13px; margin: 4px 0 8px; line-height: 1.35; }
.combo { position: relative; }
.combo-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 4px 0 0;
  padding: 4px 0;
  list-style: none;
  box-shadow: var(--shadow);
}
.combo-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
}
.combo-list button:hover, .combo-list button.is-on { background: #eceff1; }
.combo-list small { display: block; color: #90a4ae; font-size: 11px; }
.combo-empty { padding: 8px 12px; color: #90a4ae; font-size: 12px; }

.client-row { display: flex; align-items: center; gap: 8px; }
.client-row .combo { flex: 1; min-width: 0; }
.client-row input[type="color"] {
  width: 36px; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.logo-pick {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin: 0; border-radius: 8px; background: #eceff1; cursor: pointer;
}
.logo-pick i { font-size: 20px; color: #546e7a; }
.client-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 8px 1px 4px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.7;
  white-space: nowrap; vertical-align: middle;
}
.task-rest { font-weight: 500; }
.client-logo {
  width: 16px; height: 16px; object-fit: contain; flex: 0 0 16px;
  background: #fff; border-radius: 50%; padding: 1px;
}
#player-client.client-tag, .eyebrow.client-tag { width: fit-content; max-width: 100%; }
.group h3, .hist-group h4 { display: flex; align-items: center; gap: 8px; }
.combo-list .swatch {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 8px; vertical-align: middle;
}
.cal-chip .client-tag { font-size: 10px; padding: 0 6px; margin-right: 4px; }

#btn-list-dense {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
#btn-list-dense .material-icons { font-size: 18px; }
#btn-list-dense[hidden] { display: none !important; }

.task-list-dense {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  color: #fff;
  min-height: 36px;
}
.task-row.is-pending { background: #78909c; }
.task-row.is-paused { background: linear-gradient(60deg, #ffa726, #fb8c00); }
.task-row.is-playing { background: linear-gradient(60deg, #42a5f5, #1e88e5); }
.task-row.is-waiting { background: linear-gradient(60deg, #26c6da, #00acc1); }
.task-row.is-done { background: linear-gradient(60deg, #66bb6a, #43a047); }
.task-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
}
.task-row-main .client-tag {
  font-size: 11px;
  height: 20px;
  padding: 0 6px;
  flex: 0 0 auto;
}
.task-row-main .client-logo { width: 14px; height: 14px; }
.task-row-main .task-rest {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-row-when,
.task-row-time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  opacity: .92;
  white-space: nowrap;
}
.task-row-ico {
  font-size: 18px !important;
  opacity: .95;
  flex: 0 0 auto;
}
.task-row .row-actions {
  margin: 0;
  gap: 2px;
  flex-wrap: nowrap;
}
.task-row .icon-btn {
  font-size: 0;
  padding: 3px;
  min-width: 26px;
  justify-content: center;
}
.task-row .icon-btn .material-icons { font-size: 17px; }
.task-row-subs { display: flex; flex-direction: column; gap: 3px; margin: 0 0 2px 22px; }
.task-row-sub { min-height: 30px; padding: 3px 8px; opacity: .96; }
.work-board.is-dense { display: block; }

.task-card.is-focus,
.task-row.is-focus,
.wait-chip.is-focus,
.player.is-focus {
  outline: 3px solid #fff;
  box-shadow: 0 0 0 4px #1565c0, 0 8px 24px rgba(21, 101, 192, 0.35);
  position: relative;
  z-index: 3;
}

.nt-when { display: grid; gap: 10px; }
.nt-when-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nt-cal {
  border: 1px solid #eceff1;
  border-radius: 8px;
  padding: 8px;
  background: #fafbfc;
}
.nt-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.nt-cal-nav strong {
  font-size: 13px;
  text-transform: capitalize;
}
.nt-cal-nav button {
  border: 0;
  background: #eceff1;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: #37474f;
}
.nt-cal-head, .nt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.nt-cal-head span {
  text-align: center;
  font-size: 10px;
  color: #90a4ae;
  padding: 2px 0;
}
.nt-cal-day {
  border: 0;
  background: transparent;
  border-radius: 6px;
  min-height: 32px;
  font-size: 12px;
  cursor: pointer;
  color: #37474f;
}
.nt-cal-day.is-out { color: #cfd8dc; }
.nt-cal-day.is-in { background: #bbdefb; }
.nt-cal-day.is-start, .nt-cal-day.is-end {
  background: #1e88e5;
  color: #fff;
  font-weight: 700;
}
.nt-cal-day.is-today { box-shadow: inset 0 0 0 1px #90caf9; }

.nt-cal-hint { margin: 0; font-size: 11px; color: #78909c; }

.tl-real { display: grid; gap: 18px; }
.tl-real-clock { margin-bottom: 0; }
.tl-real-clock .hour { height: 120px; }
.tl-real-item {
  position: absolute;
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  z-index: 2;
}
.tl-real-item.is-wait { opacity: .82; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.tl-real-item.is-live { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1565c0; }
.tl-real-when, .tl-real-meta { font-size: 11px; opacity: .92; }
.tl-real-title { font-size: 13px; font-weight: 500; line-height: 1.25; }
.tl-real-log {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px 8px;
  box-shadow: var(--shadow);
}
.tl-real-log h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.tl-real-log ol { list-style: none; margin: 10px 0 0; padding: 0; }
.tl-real-log-row {
  display: grid;
  grid-template-columns: 10px 92px 72px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #eceff1;
  font-size: 13px;
}
.tl-real-log-row.is-live { font-weight: 500; }
.tl-real-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tl-real-log-time { color: #546e7a; font-variant-numeric: tabular-nums; }
.tl-real-log-dur { color: #90a4ae; font-variant-numeric: tabular-nums; }
.tl-real-log-why { color: #78909c; font-size: 12px; }
@media (max-width: 800px) {
  .tl-real-log-row { grid-template-columns: 10px 1fr auto; }
  .tl-real-log-dur, .tl-real-log-why { display: none; }
}

.tl-mode-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-mode-bar[hidden] { display: none !important; }
.tl-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tl-compare h3 { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: #546e7a; }
.tl-clock { margin: 8px 8px 8px 72px; }
.tl-block {
  position: absolute;
  border: 0;
  border-radius: 6px;
  padding: 4px 8px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1px;
  min-height: 0;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  z-index: 2;
  line-height: 1.2;
}
.tl-block.is-wait { opacity: .85; }
.tl-block.is-live { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1565c0; z-index: 4; }
.tl-block.is-tiny { padding: 0 6px; }
.tl-block.is-tiny .tl-real-when,
.tl-block.is-tiny .tl-real-title,
.tl-block.is-tiny .tl-real-meta { display: none; }
.tl-block.is-compact .tl-real-meta { display: none; }
.tl-block.is-planned { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
@media (max-width: 900px) {
  .tl-compare { grid-template-columns: 1fr; }
}

#btn-export-bread,
#btn-export-bread-settings {
  white-space: nowrap;
}
#btn-export-bread .material-icons,
#btn-export-bread-settings .material-icons {
  font-size: 18px;
}
