/* QR code inline in dashboard header */
.dashboard-qr-corner {
  margin-left: 8px;
  background: #fffbe8;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
  display: flex;
  align-items: flex-end;
  height: 48px;
}
.dashboard-qr-corner img {
  width: 48px;
  height: 48px;
  display: block;
}

@media (min-width: 600px) {
  .dashboard-qr-corner {
    height: 72px !important;
  }
  .dashboard-qr-corner img {
    width: 72px;
    height: 72px;
  }
}
/* Utility for hiding elements */
.hidden {
  display: none !important;
}

/* Collapsible task card styles */
.task-card.collapsed .task-details,
.task-card.collapsed .task-meta-actions-row,
.task-card.collapsed time,
.task-card.collapsed .task-photo,
.task-card.collapsed .task-audio {
  display: none;
}
.task-card.collapsed {
  cursor: pointer;
  background: #f3f4f6;
}
.task-card .task-header {
  cursor: pointer;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
}

body.is-auth-locked {
  overflow: hidden;
}

.app-shell.is-auth-hidden {
  pointer-events: none;
  user-select: none;
  filter: blur(3px);
  opacity: 0;
  visibility: hidden;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.auth-gate[hidden] {
  display: none !important;
}

.auth-card {
  width: min(460px, 100%);
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  padding: 24px;
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.auth-card p {
  margin: 0;
}

.auth-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form label {
  font-weight: 700;
  color: #374151;
}

.auth-form input[type='password'] {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
}

.auth-remember-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #4b5563;
}

.auth-remember-wrap input[type='checkbox'] {
  width: 18px;
  height: 18px;
}

.auth-message {
  min-height: 1.2em;
  color: #dc2626;
  font-size: 0.92rem;
}

.auth-message.is-success {
  color: #059669;
}

.auth-submit {
  flex: 1;
  justify-content: center;
}

.auth-actions {
  display: flex;
  gap: 10px;
}

.auth-cancel {
  flex: 1;
  justify-content: center;
}

.app-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 3rem);
}

header p {
  color: #4b5563;
  margin-top: 12px;
}

.new-task,
.notes-list {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  margin-bottom: 24px;
}

.new-task {
  position: relative;
}

.new-task label,
.notes-list label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.new-task input,
.new-task textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 14px;
  font-size: 1rem;
  margin-bottom: 18px;
}

.new-task textarea {
  height: 100px;
  min-height: unset;
}

.edit-label textarea {
  height: 100px;
  min-height: unset;
}

.controls {
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.task-meta-controls {
  display: flex;
  gap: 10px;
}

.edit-meta-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.task-list-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.task-list-controls .search-group {
  flex: 1 1 300px;
  min-width: 220px;
}

.sort-button {
  min-width: 140px;
  padding: 12px 16px;
  width: auto;
}

.sort-button.active {
  background: transparent;
  color: #2563eb;
  border-color: #2563eb;
}

.task-meta-controls.hidden {
  display: none;
}

.auth-change-mode {
  flex: 1;
  justify-content: center;
}

.task-detail-line {
  margin: 0 0 10px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.task-detail-line:last-child {
  margin-bottom: 0;
}

.photo-preview {
  margin-bottom: 18px;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  background: #f8fafc;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-preview.hidden {
  display: none;
}

.photo-preview-label {
  color: #374151;
  font-weight: 700;
}

.photo-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.audio-preview {
  margin-bottom: 18px;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  background: #f8fafc;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audio-preview.hidden {
  display: none;
}

.audio-preview-label {
  color: #374151;
  font-weight: 700;
}

.audio-preview audio {
  width: 100%;
  outline: none;
}

.audio-file-link {
  display: inline-block;
  margin-top: 8px;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.audio-file-link:hover {
  text-decoration: underline;
}

.audio-preview button {
  align-self: flex-end;
  min-width: auto;
  padding: 10px 14px;
}

.task-photo {
  overflow: hidden;
  border-radius: 16px;
}

.task-photo img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

.search-detail-card .task-photo {
  margin-bottom: 16px;
}

.search-detail-card .task-photo img {
  max-height: 480px;
}

.photo-preview button {
  align-self: flex-end;
  min-width: auto;
  padding: 10px 14px;
}

.task-meta-line {
  color: #6b7280;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.task-meta-group {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.task-meta-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.task-card-actions {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
}

.task-meta-line .meta-icon {
  font-size: 1rem;
  vertical-align: text-bottom;
}

.task-importance-line .meta-icon {
  color: #dc2626;
}

.edit-meta-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.importance-picker,
.deadline-picker {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  padding: 12px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
  pointer-events: none;
}

.importance-picker.is-visible,
.deadline-picker.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.importance-picker button {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #111827;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.importance-picker button:last-child {
  margin-bottom: 0;
}

.importance-picker button:hover {
  background: #e5e7eb;
}

.scope-switch {
    align-items: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
}

.scope-stats {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: #6b7280;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: transparent;
}

.scope-stat {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  padding: 4px 8px;
  border-radius: 10px;
  font-weight: 700;
  font: inherit;
  color: inherit;
  line-height: 1;
  cursor: pointer;
}

.scope-stat:hover {
  background: rgba(148, 163, 184, 0.12);
}

.scope-stat:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.scope-stat.done-count,
.scope-stat.done-count span {
  color: #16a34a;
}

.scope-stat.overdue-count,
.scope-stat.overdue-count span {
  color: #dc2626;
}

.scope-stat.total-count,
.scope-stat.total-count span {
  color: #2563eb;
}

.scope-stat.done-count.is-active {
  background: rgba(22, 163, 74, 0.12);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.2);
}

.scope-stat.overdue-count.is-active {
  background: rgba(220, 38, 38, 0.12);
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.2);
}

.scope-stat.total-count.is-active {
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.overdue-count {
  color: #dc2626 !important;
  font-weight: 700;
}

.search-group input {
  min-height: 48px;
  padding: 0 14px;
}

#deadline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0 14px;
}

#deadline-button:hover {
  background: transparent;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.calendar-title {
  font-weight: 700;
}

.calendar-nav {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #2563eb;
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.calendar-title {
  font-weight: 700;
}

.calendar-nav {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #2563eb;
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 38px;
  gap: 6px;
}

.calendar-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  height: 38px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 0;
  line-height: 1;
}

.calendar-cell.label {
  color: #6b7280;
  font-size: 0.85rem;
}

.calendar-cell.empty {
  visibility: hidden;
}

.calendar-cell.day {
  border: 1px solid transparent;
  background: #f8fafc;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.calendar-cell.day:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.search-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search-group input {
  width: 100%;
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 0 42px 0 14px;
  font-size: 1rem;
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-clear.is-visible {
  display: inline-flex;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  min-height: 0;
  border: none;
  padding: 0;
  background: transparent;
  max-height: 320px;
  overflow: visible;
  z-index: 10;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.search-results.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-result-item {
  padding: 10px 14px;
  margin-bottom: 8px;
  background: white;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.search-result-item:hover {
  transform: translateY(-1px);
}

.search-detail-card {
  padding: 16px;
  margin-top: 8px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.search-detail-back {
  margin: 0 0 12px;
  border: none;
  background: transparent;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.search-detail-back:hover {
  text-decoration: underline;
}

.detail-title {
  font-weight: 700;
  margin: 0 0 8px;
}

.detail-meta {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 0.95rem;
}

.search-detail-card .task-audio {
  margin-bottom: 16px;
}

.detail-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
}

.detail-text .task-meta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.75rem;
}

.detail-text .task-meta-line {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 8px 12px;
  border-radius: 9999px;
  font-weight: 600;
}

.detail-text .task-importance-line .meta-icon,
.detail-text .task-due-line .meta-icon {
  margin-right: 6px;
}

.search-results li:last-child {
  margin-bottom: 0;
}

.search-empty {
  margin: 0;
  color: #6b7280;
  text-align: center;
}

.scope-switch span {
  font-weight: 700;
  color: #111827;
}

.scope-button {
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 10px 16px;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font-weight: 700;
}

.scope-button.active {
  background: transparent;
  color: #2563eb;
  border-color: #2563eb;
}

button {
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  background: transparent;
}

button:hover {
  transform: translateY(-1px);
}

.glyphic-button {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
}

.glyphic-button::before {
  content: attr(data-icon);
  font-family: 'Segoe UI Symbol', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', system-ui, sans-serif;
  line-height: 1;
}

.glyphic-button .button-label {
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.96);
  color: #6b7280;
  border: 1px solid #d1d5db;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 30;
}

.glyphic-button:hover .button-label,
.glyphic-button:focus .button-label {
  opacity: 1;
  transform: translate(-50%, -110%);
}

.glyphic-button:disabled,
button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.glyphic-button:disabled::before,
button[disabled]::before {
  opacity: 0.45;
}

.glyphic-button[data-icon="×"]::before,
.glyphic-button[data-icon="✔"]::before,
.glyphic-button[data-icon="✎"]::before,
.glyphic-button[data-icon="📅"]::before,
.glyphic-button[data-icon="🕒"]::before,
.glyphic-button[data-icon="⬇"]::before,
.glyphic-button[data-icon="＋"]::before,
.glyphic-button[data-icon="🏢"]::before,
.glyphic-button[data-icon="🏡"]::before {
  font-size: 1.1rem;
}

#save-task {
  background: transparent;
  color: inherit;
}

#export-tasks {
  background: transparent;
  color: inherit;
}

#clear-completed {
  background: transparent;
  color: inherit;
}

#clear-completed::before {
  color: #dc2626;
}

#save-task::before,
.save-edit::before,
.glyphic-button[data-icon="✔"]::before {
  color: #16a34a !important;
}

#save-task.is-save-mode::before {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.2 11.5 13 4.5' fill='none' stroke='%2316a34a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.glyphic-button[data-icon="✔"] {
  color: #16a34a !important;
}

#export-tasks::before {
  color: #2563eb;
}

#clear-completed::before {
  color: #f59e0b;
}

.edit-task::before {
  color: #2563eb;
}

.delete-task::before,
.cancel-edit::before {
  color: #dc2626;
}

#importance-button::before,
.edit-importance-button::before {
  color: #dc2626;
}

#deadline-button::before,
.edit-deadline-button::before {
  color: #16a34a;
}

#clear-tasks {
  background: transparent;
  color: inherit;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.notes-list h2 {
  margin: 0;
}

#tasks-container {
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding-right: 6px;
}

.task-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  background: #f9fafb;
  display: grid;
  gap: 14px;
}

.task-card.is-complete {
  opacity: 0.72;
}

.task-card.overdue .task-toggle span,
.overdue-title {
  color: #dc2626;
}

.task-card.is-complete .task-toggle span {
  text-decoration: line-through;
}

.task-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.task-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.task-actions .glyphic-button,
.task-actions button {
  min-width: auto;
  width: auto;
  height: auto;
  border: 1px solid rgba(148,163,184,0.4);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
  background: rgba(255,255,255,0.92);
}

.task-actions .glyphic-button::before,
.task-actions button::before {
  display: inline-block;
  width: auto;
  height: auto;
  line-height: 1;
  font-size: 1rem;
  text-align: center;
  color: inherit;
}

.task-actions button:hover {
  transform: translateY(-1px);
  opacity: 1;
  background: rgba(255,255,255,0.98);
}

.task-actions .edit-task,
.task-actions .delete-task,
.save-edit,
.cancel-edit {
  color: inherit;
  box-shadow: none;
}

.task-actions .edit-task,
.save-edit {
  border-color: rgba(37,99,235,0.35);
}

.task-actions .delete-task,
.cancel-edit {
  border-color: rgba(220,38,38,0.35);
}

.task-actions .edit-task::before {
  content: '✎';
  color: #2563eb;
}

.task-actions .save-edit::before {
  content: '' !important;
  width: 1rem;
  height: 1rem;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.2 11.5 13 4.5' fill='none' stroke='%2316a34a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.task-actions .cancel-edit::before {
  content: '✕';
  color: #dc2626;
}

.task-actions .delete-task::before {
  content: '×';
  color: #dc2626;
}

.task-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
}

.task-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #16a34a;
  margin: 0;
  align-self: center;
  vertical-align: middle;
}

.save-edit::before {
  content: '' !important;
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.2 11.5 13 4.5' fill='none' stroke='%2316a34a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.delete-task {
  background: transparent;
  color: #dc2626;
  border: 1px solid #fca5a5;
  padding: 10px 14px;
  border-radius: 12px;
}

.task-card time {
  color: #6b7280;
  font-size: 0.9rem;
}

.task-card p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
}

.task-card.editing .task-header {
  align-items: center;
  flex-wrap: nowrap;
}

.task-card.editing .task-toggle {
  gap: 0;
  flex: 0 0 auto;
  min-width: 0;
}

.task-card.editing .task-actions {
  margin-left: auto;
}

.edit-label {
  display: block;
  font-weight: 700;
  margin-bottom: 16px;
}

.edit-label input,
.edit-label textarea {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 14px;
  font-size: 1rem;
}

.save-edit {
  background: transparent;
  color: inherit;
}

.cancel-edit {
  background: transparent;
  color: inherit;
}

.empty-state {
  margin: 0;
  padding: 22px;
  color: #6b7280;
  text-align: center;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
}

@media (max-width: 700px) {
  .app-shell {
    padding: 24px 16px 32px;
  }

  .new-task,
  .notes-list {
    padding: 20px;
  }

  .scope-switch {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .scope-button {
    flex: 0 0 auto;
  }

  .search-group {
    min-width: 120px;
    width: auto;
    flex: 1 1 auto;
  }

  .task-list-controls .search-group {
    flex: 1 1 120px;
    min-width: 0;
  }

  .search-group input {
    width: 100%;
  }

  .controls {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  .controls button {
    flex: 1;
    min-width: 0;
  }

  #deadline-button {
    flex: 0 0 auto;
  }

  .title-input-group {
    flex-wrap: nowrap;
  }

  .task-card {
    padding: 16px;
  }

  .task-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .task-actions {
    justify-content: flex-end;
  }

  .task-actions button {
    width: 40px;
    height: 40px;
  }
}
