:root {
  color-scheme: dark;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --bg: #1f1f1f;
  --panel: #2c2c2c;
  --panel-2: #262626;
  --text: #e6e6e6;
  --muted: #bdbdbd;
  --border: #ffffff22;
  --ring: #ffffff22;
  --accent: #4285f4;
  --accent-soft: rgba(66, 133, 244, .14);
  --utility-rail-width: 42px;
  --page-edge: 12px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f5;
  --panel: #ffffff;
  --panel-2: #f1f3f4;
  --text: #202124;
  --muted: #5f6368;
  --border: #dadce0;
  --ring: #dadce0;
  --accent: #4285f4;
  --accent-soft: rgba(66, 133, 244, .11);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--panel) 70%, transparent), transparent),
    radial-gradient(1200px 600px at 110% 0%, color-mix(in srgb, var(--panel-2) 70%, transparent), transparent),
    var(--bg);
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
  transition: background .2s ease, color .2s ease;
}

button, input, textarea { font: inherit; }

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.floating-edit {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 110;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--ring) 85%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--panel) 34%, transparent);
  color: var(--muted);
  opacity: .62;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: opacity .15s ease, background .15s ease, transform .15s ease;
}

.floating-edit:hover,
.floating-edit:focus-visible {
  opacity: .95;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  outline: none;
}

.floating-edit:active { transform: scale(.94); }

.focus-shell {
  width: min(calc(100% - 76px), 980px);
  height: 100vh;
  height: 100dvh;
  margin-left: calc(var(--page-edge) + var(--utility-rail-width) + 10px);
  margin-right: auto;
  padding: 10px 0;
  display: grid;
  place-items: center;
}

.focus-card {
  position: relative;
  width: 100%;
  min-height: min(620px, calc(100vh - 20px));
  min-height: min(620px, calc(100dvh - 20px));
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 94%, var(--bg));
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}

:root[data-theme="light"] .focus-card {
  box-shadow: 0 6px 20px rgba(31, 41, 51, .08);
}

.tool-header {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.focus-content {
  min-height: 0;
  height: calc(100% - 35px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  column-gap: 20px;
}

.timer-card,
.todo-card {
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.timer-card {
  min-height: 0;
  padding: 12px 0 4px;
  display: flex;
  flex-direction: column;
}

.todo-card {
  min-height: 0;
  padding: 12px 0 4px 20px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.timer-heading,
.todo-header {
  display: none;
}

.eyebrow,
.todo-header h1 {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.todo-header h1 {
  color: var(--text);
  font-size: 14px;
  letter-spacing: .04em;
}

.subtle,
.todo-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.sound-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.sound-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sound-toggle span {
  width: 20px;
  height: 20px;
  display: block;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}

.sound-toggle span::before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.sound-toggle input:checked + span::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 9v6h4l5 4V5L7 9H3Zm12.5 3a3.5 3.5 0 0 0-2-3.16v6.32a3.5 3.5 0 0 0 2-3.16Zm-2-8.23v2.06A7 7 0 0 1 17 12a7 7 0 0 1-3.5 6.17v2.06A9 9 0 0 0 19 12a9 9 0 0 0-5.5-8.23Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 9v6h4l5 4V5L7 9H3Zm12.5 3a3.5 3.5 0 0 0-2-3.16v6.32a3.5 3.5 0 0 0 2-3.16Zm-2-8.23v2.06A7 7 0 0 1 17 12a7 7 0 0 1-3.5 6.17v2.06A9 9 0 0 0 19 12a9 9 0 0 0-5.5-8.23Z'/%3E%3C/svg%3E");
}

.sound-toggle input:not(:checked) + span::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 9v6h4l5 4V5L7 9H3Zm11.7.3 1.4-1.4 2.1 2.1 2.1-2.1 1.4 1.4-2.1 2.1 2.1 2.1-1.4 1.4-2.1-2.1-2.1 2.1-1.4-1.4 2.1-2.1-2.1-2.1Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 9v6h4l5 4V5L7 9H3Zm11.7.3 1.4-1.4 2.1 2.1 2.1-2.1 1.4 1.4-2.1 2.1 2.1 2.1-1.4 1.4-2.1-2.1-2.1 2.1-1.4-1.4 2.1-2.1-2.1-2.1Z'/%3E%3C/svg%3E");
}

.timer-ring {
  --progress: 0deg;
  --timer-size: min(205px, 24vh);
  width: var(--timer-size);
  height: var(--timer-size);
  min-width: var(--timer-size);
  min-height: var(--timer-size);
  max-width: var(--timer-size);
  max-height: var(--timer-size);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  margin: 8px auto 12px;
  border-radius: 50%;
  padding: 9px;
  background: conic-gradient(var(--google-green) var(--progress), color-mix(in srgb, var(--muted) 24%, transparent) 0);
}

.timer-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: grid;
  place-content: center;
  text-align: center;
  background: color-mix(in srgb, var(--panel) 94%, var(--bg));
}

.timer-time {
  font-size: clamp(2.35rem, 5vw, 3.35rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-variant-numeric: tabular-nums;
}

.timer-state {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.mode-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mode-button,
.extend-actions button,
.secondary-actions button,
.task-done-button,
.task-form button {
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel-2) 84%, var(--bg));
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.mode-button {
  padding: 3px 4px;
  font-size: 9px;
}

.mode-button b,
.mode-button span { display: block; }

.mode-button span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
}

.mode-focus.active {
  border-color: var(--google-green);
  background: color-mix(in srgb, var(--google-green) 15%, var(--panel));
}

.mode-short.active {
  border-color: var(--google-yellow);
  background: color-mix(in srgb, var(--google-yellow) 16%, var(--panel));
}

.mode-long.active {
  border-color: var(--google-red);
  background: color-mix(in srgb, var(--google-red) 14%, var(--panel));
}

.primary-button {
  width: 100%;
  height: 34px;
  margin-top: 9px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.extend-panel {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}

.extend-panel > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.extend-actions,
.secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.extend-actions button {
  color: var(--accent);
}

.task-done-button {
  width: 100%;
  margin-top: 6px;
  border-color: color-mix(in srgb, var(--google-green) 60%, var(--border));
  color: var(--google-green);
}

.task-done-button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.secondary-actions { margin-top: 6px; }

.focus-progress {
  margin: 0 auto 10px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.progress-dots {
  display: flex;
  gap: 5px;
}

.progress-dots span {
  width: 13px;
  height: 13px;
  border: 1px solid color-mix(in srgb, var(--muted) 55%, transparent);
  border-radius: 50%;
}

.progress-dots span.done {
  border-color: var(--google-green);
  background: var(--google-green);
}

.focus-progress strong,
.focus-progress small { display: block; }

.focus-progress strong { font-size: 9px; }

.focus-progress small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
}

.task-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px 34px;
  gap: 6px;
  margin-top: 9px;
}

.task-form input {
  width: 100%;
  height: 34px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel-2) 84%, var(--bg));
  color: var(--text);
  outline: none;
}

.task-form input:focus {
  border-color: var(--accent);
}

.task-estimate-input {
  padding-inline: 4px !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.task-estimate-input::-webkit-inner-spin-button,
.task-estimate-input::-webkit-outer-spin-button {
  margin: 0;
}

.task-form button {
  padding: 0;
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 16px;
}

.task-list {
  list-style: none;
  margin: 9px 0 0;
  padding: 0;
  overflow-y: auto;
}

.task-item {
  position: relative;
  min-height: 38px;
  border-bottom: 1px solid var(--border);
}

.task-main {
  display: grid;
  grid-template-columns: 22px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-height: 38px;
}

.task-item.active {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.task-drag,
.task-select,
.task-info,
.task-more {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.task-drag {
  position: relative;
  width: 22px;
  height: 28px;
  min-width: 22px;
  min-height: 28px;
  padding: 0;
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  cursor: grab;
  touch-action: none;
}

.task-drag:active {
  cursor: grabbing;
}

.task-drag::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0 5px 0 currentColor,
    6px 0 0 currentColor,
    6px 5px 0 currentColor;
}

.task-drag:hover,
.task-drag:focus-visible {
  color: var(--text);
}

.task-select {
  width: 20px;
  height: 20px;
  margin: 0 auto;
  padding: 0;
  border: 2px solid color-mix(in srgb, var(--muted) 70%, transparent);
  border-radius: 50%;
}

.task-item.active .task-select {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--panel) 94%, var(--bg)), inset 0 0 0 10px var(--accent);
}

.task-item.completed .task-select {
  border-color: var(--google-green);
  background: var(--google-green);
  cursor: default;
}

.task-text {
  min-width: 0;
  overflow-wrap: anywhere;
  cursor: pointer;
  font-size: 10px;
}

.task-item.completed .task-text {
  color: var(--muted);
  text-decoration: line-through;
}

.task-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.task-block-count {
  min-width: 31px;
  min-height: 26px;
  margin-right: 2px;
  padding: 3px 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  text-align: right;
  font-size: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}

.task-block-count:hover,
.task-block-count:focus-visible {
  background: color-mix(in srgb, var(--panel-2) 84%, var(--bg));
}

.task-item.active .task-block-count {
  color: var(--accent);
}

.task-block-input {
  width: 42px;
  height: 26px;
  margin-right: 2px;
  padding: 2px 3px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel-2) 90%, var(--bg));
  color: var(--text);
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.task-info,
.task-more {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
  line-height: 1;
}

.task-info {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
}

.task-info.is-empty {
  opacity: .35;
  cursor: default;
}

.task-info:not(.is-empty) {
  color: var(--accent);
}

.task-more {
  font-size: 18px;
  letter-spacing: 1px;
}

.task-info:hover:not(.is-empty),
.task-info:focus-visible:not(.is-empty),
.task-more:hover,
.task-more:focus-visible {
  background: color-mix(in srgb, var(--panel-2) 84%, var(--bg));
}

.task-info-wrap {
  position: relative;
}

.task-note-bubble {
  position: fixed;
  z-index: 220;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel) 97%, var(--bg));
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.task-item.dragging {
  position: relative;
  z-index: 25;
  opacity: .72;
  background: color-mix(in srgb, var(--accent) 13%, var(--panel));
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}

.task-item.drag-ready {
  background: color-mix(in srgb, var(--panel-2) 70%, transparent);
}

.task-dragging,
.task-dragging * {
  user-select: none !important;
}

.task-menu {
  position: fixed;
  top: auto;
  right: auto;
  z-index: 220;
  width: 178px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 98%, var(--bg));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
}

.task-menu > button {
  width: 100%;
  min-height: 30px;
  padding: 5px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 9px;
  cursor: pointer;
}

.task-menu > button:hover,
.task-menu > button:focus-visible {
  background: color-mix(in srgb, var(--panel-2) 84%, var(--bg));
}

.task-menu .danger {
  margin-top: 3px;
  color: var(--google-red);
}

.task-text-editor,
.task-note-editor {
  padding: 7px 0 9px 60px;
}

.task-text-editor input,
.task-note-editor textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel-2) 84%, var(--bg));
  color: var(--text);
  font-size: 10px;
  line-height: 1.4;
  outline: none;
}

.task-text-editor input {
  width: 100%;
  height: 34px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel-2) 84%, var(--bg));
  color: var(--text);
  font-size: 10px;
  outline: none;
}

.task-text-editor input:focus,
.task-note-editor textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.task-text-editor input[aria-invalid="true"] {
  border-color: var(--google-red);
}

.task-note-editor-actions {
  margin-top: 5px;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.task-note-editor-actions button {
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-2) 84%, var(--bg));
  color: var(--text);
  font-size: 9px;
  cursor: pointer;
}

.task-note-editor-actions .primary-small {
  border-color: var(--accent);
  background: var(--accent-soft);
}


.empty-state {
  margin: 24px auto;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}


/* Desktop/browserversie: rustiger timer en alleen een verticale inhoudsscheiding. */
@media (min-width: 761px) {
  .tool-header {
    border-bottom: 0;
  }

  .timer-card {
    padding: 24px 0 18px;
  }

  .timer-ring {
    margin: 0 auto 20px;
  }

  .focus-progress {
    margin-bottom: 18px;
  }

  .mode-switcher {
    gap: 8px;
  }

  .primary-button {
    margin-top: 14px;
  }

  .extend-panel {
    margin-top: 14px;
  }

  .extend-panel > span {
    margin-bottom: 8px;
  }

  .task-done-button,
  .secondary-actions {
    margin-top: 10px;
  }

  .timer-time {
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 500;
    letter-spacing: -.02em;
  }

  .todo-card {
    padding: 24px 0 18px 24px;
    border-left-color: color-mix(in srgb, var(--border) 72%, transparent);
  }

  .task-form {
    margin-top: 0;
    gap: 8px;
  }

  .task-list {
    margin-top: 16px;
  }

  .task-item,
  .task-main {
    min-height: 44px;
  }

  .extend-panel {
    border-top: 0;
  }

  .task-item {
    border-bottom: 0;
  }
}


@media (min-width: 761px) and (any-pointer: coarse) {
  .task-main {
    grid-template-columns: 34px 28px minmax(0, 1fr) auto;
  }

  .task-drag {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }

  .task-drag::before {
    top: 11px;
    left: 10px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
  }

  body {
    padding: 0 0 52px;
  }

  .floating-edit { display: none; }

  .focus-shell {
    width: calc(100% - 12px);
    height: calc(100dvh - 52px);
    min-height: 0;
    margin: 0 auto;
    padding: 4px 0;
    display: block;
  }

  .focus-card {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: 7px;
    border-radius: 12px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .tool-header {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 6;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .focus-content {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timer-card {
    padding: 44px 0 14px;
  }

  .todo-card {
    min-height: 260px;
    padding: 10px 0 4px;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .sound-toggle {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .timer-ring {
    position: relative;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    flex: 0 0 auto;
    margin: 4px 0 10px;
    padding: 0 0 10px;
    border-radius: 0;
    background: transparent;
  }

  .timer-ring::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(
      to right,
      var(--google-green) 0 var(--progress-percent),
      color-mix(in srgb, var(--muted) 24%, transparent) var(--progress-percent) 100%
    );
  }

  .timer-ring-inner {
    width: 100%;
    height: auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    border-radius: 0;
    background: transparent;
  }

  .timer-time {
    flex: 0 0 auto;
    font-size: 2rem;
  }

  .timer-state {
    margin-top: 0;
    text-align: right;
    font-size: 9px;
  }

  .mode-button,
  .extend-actions button,
  .secondary-actions button,
  .task-done-button,
  .primary-button,
  .task-form input,
  .task-form button {
    height: 34px;
    min-height: 34px;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .sound-toggle {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .sound-toggle span,
  .sound-toggle span::before {
    width: 18px;
    height: 18px;
  }

  .timer-ring { margin-bottom: 8px; }
  .timer-time { font-size: 1.8rem; }
  .timer-card { padding-top: 5px; }
}


@media (max-width: 760px) {
  .task-main {
    grid-template-columns: 22px 26px minmax(0, 1fr) auto;
    min-height: 40px;
  }

  .task-actions {
    gap: 1px;
  }

  .task-block-count {
    min-width: 29px;
    margin-right: 1px;
    font-size: 9px;
  }

  .task-info,
  .task-more {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }

  .task-menu {
    width: min(190px, 72vw);
  }

  .task-note-bubble {
    width: min(340px, calc(100vw - 24px));
    max-width: none;
    font-size: 10px;
    pointer-events: auto;
  }

  .task-text-editor,
  .task-note-editor {
    padding-left: 58px;
  }
}
