:root {
  --bg: #f2f2f7;
  --bg-soft: #f7f7fb;
  --card: rgba(255, 255, 255, 0.84);
  --card-solid: #ffffff;
  --line: rgba(60, 60, 67, 0.2);
  --line-strong: rgba(60, 60, 67, 0.32);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-strong: #005ec0;
  --accent-soft: #e7f2ff;
  --success: #34c759;
  --danger: #ff3b30;
  --danger-soft: #ffeceb;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 6px 18px rgba(15, 18, 26, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 18, 26, 0.1);
  --shadow-lg: 0 20px 44px rgba(15, 18, 26, 0.12);
  --layout-max-width: 1400px;
  --layout-gap: 14px;
  --layout-pad-x: clamp(12px, 3vw, 36px);
  --layout-pad-y: clamp(12px, 2.2vw, 24px);
  --layout-pad-b: clamp(20px, 3vw, 36px);
  --surface-blur: blur(9px);
  --board-rows: 2;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  line-height: 1.56;
  font-family: 'SF Pro Display', 'SF Pro Text', 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  background:
    radial-gradient(120% 140% at 10% -20%, #ffffff 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(90% 100% at 100% 0%, #eef4ff 0%, rgba(238, 244, 255, 0) 60%),
    linear-gradient(180deg, #f9f9fc 0%, #f2f2f7 58%, #eceef4 100%);
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  right: -120px;
  top: -100px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.12) 0%, rgba(0, 113, 227, 0) 70%);
}

body::after {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  left: -120px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(52, 199, 89, 0.1) 0%, rgba(52, 199, 89, 0) 70%);
}

h1,
h2,
h3,
h4,
p,
li {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  min-height: 38px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 76px;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.17);
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.layout {
  max-width: var(--layout-max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--layout-pad-y) var(--layout-pad-x) var(--layout-pad-b);
  display: grid;
  gap: var(--layout-gap);
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.layout > * {
  animation: card-rise 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.layout > *:nth-child(2) {
  animation-delay: 0.03s;
}

.layout > *:nth-child(3) {
  animation-delay: 0.06s;
}

.layout > *:nth-child(4) {
  animation-delay: 0.09s;
}

.layout > *:nth-child(5) {
  animation-delay: 0.12s;
}

.layout > *:nth-child(6) {
  animation-delay: 0.15s;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 248, 252, 0.92) 100%);
  backdrop-filter: var(--surface-blur);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card:hover {
  border-color: rgba(0, 113, 227, 0.18);
  box-shadow: var(--shadow-md);
}

.topbar,
.quick-add,
.todo-list-panel,
.board-wrap,
.calendar,
.report {
  padding: clamp(14px, 2.3vw, 22px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 3px;
}

h1 {
  font-size: clamp(21px, 2.8vw, 31px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

h2 {
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 64ch;
  color: #3f3f44;
  font-size: 14px;
  margin-bottom: 8px;
}

.today-date-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}

.auth-area {
  min-width: 220px;
  display: grid;
  justify-items: end;
  gap: 8px;
}

#authStatus {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 700;
}

.kakao-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-color: #ebda00;
  background: #fbe500;
  color: #221f1b;
  font-weight: 700;
}

.kakao-btn:hover {
  box-shadow: 0 10px 22px rgba(251, 229, 0, 0.25);
}

.kakao-logo {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2f2614;
  color: #fbe500;
  font-size: 11px;
  font-weight: 700;
}

.user-alias-preview {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
}

.ghost-btn,
.column-remove-btn,
.project-add-btn,
#openCategoryInlineBtn,
#cancelCategoryBtn,
.calendar-nav button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: #34343a;
  font-weight: 650;
  padding: 8px 12px;
}

.ghost-btn:hover,
.column-remove-btn:hover,
.project-add-btn:hover,
.calendar-nav button:hover {
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 9px 20px rgba(0, 113, 227, 0.14);
}

button[aria-pressed='true'],
button.is-active,
.calendar-nav button.is-active,
.ghost-btn.is-active,
.bucket-lane-add-btn.is-active,
.project-add-btn.is-active {
  background: var(--accent-soft);
  border-color: rgba(0, 113, 227, 0.4);
  color: var(--accent-strong);
}

.profile-editor {
  width: min(380px, 100%);
  justify-content: end;
}

.inline-category-create {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
}

.inline-category-create > input {
  flex: 1 1 160px;
  min-width: 0;
}

.inline-category-create > button,
.lane-create-submit-btn,
.lane-create-cancel-btn,
.bucket-lane-add-btn,
.bucket-remove-btn {
  height: 32px;
  min-height: 32px;
  font-size: 13px;
  padding: 0 10px;
}

.lane-create-cancel-btn,
.bucket-lane-add-btn,
.bucket-remove-btn {
  width: 32px;
  min-width: 32px;
  padding: 0;
}

.quick-add-hint {
  margin: 4px 0 10px;
}

.quick-add-body {
  transition: max-height 0.22s ease, opacity 0.22s ease;
  max-height: 260px;
  opacity: 1;
}

.quick-add-body.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.panel-head,
.column-head,
.calendar-head,
.report-head,
.quick-add-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-head,
.column-head,
.calendar-head,
.report-head {
  margin-bottom: 12px;
}

.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 113, 227, 0.24);
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

#quickAddForm {
  display: grid;
  grid-template-columns: 1fr 150px 120px 140px auto;
  gap: 8px;
}

.todo-list,
.report-list,
.calendar-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.todo-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px;
}

.todo-item:hover {
  border-color: rgba(0, 113, 227, 0.27);
  box-shadow: 0 10px 22px rgba(15, 18, 26, 0.1);
}

.todo-item.todo-item-note {
  border-color: rgba(0, 113, 227, 0.32);
  background: linear-gradient(180deg, #f2f7ff 0%, #eaf2ff 100%);
}

.todo-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.title {
  font-weight: 740;
}

.meta {
  color: var(--muted);
  font-size: 12px;
}

.todo-detail-input {
  min-height: 70px;
  line-height: 1.45;
}

.todo-controls {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 8px;
  min-width: 0;
}

.todo-category-select {
  min-width: 160px;
  max-width: 220px;
}

.actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.complete,
.delete {
  border: 0;
  border-radius: 10px;
  min-height: 34px;
  padding: 6px 10px;
  font-weight: 650;
}

.complete {
  background: rgba(0, 113, 227, 0.12);
  color: var(--accent-strong);
}

.delete {
  background: var(--danger-soft);
  color: var(--danger);
}

.todo-note-title {
  min-width: 0;
}

.todo-note-title .selected-note-text {
  color: #173766;
  font-weight: 740;
  -webkit-line-clamp: 2;
}

.todo-note-title .selected-note-expand {
  margin-top: 2px;
}

.board-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.board-toolbar-title {
  font-size: 13px;
  font-weight: 700;
}

.board-toolbar-actions,
.column-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.board-toolbar-count {
  color: #4a4a50;
  font-size: 12px;
  font-weight: 700;
}

.board {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--board-rows), minmax(0, 1fr));
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--layout-gap);
  align-items: start;
}

.column {
  position: relative;
  min-height: 292px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.72);
  overflow: auto;
  min-width: 0;
  resize: none !important;
}

.column[data-bucket='bucket1'] {
  box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.25);
}

.column.is-dragging {
  opacity: 0.84;
  z-index: 3;
  box-shadow: var(--shadow-lg);
}

.column-placeholder {
  min-height: 292px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
}

.bucket-title {
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  min-width: 0;
  outline: none;
}

.bucket-title:focus-visible {
  border-color: rgba(0, 113, 227, 0.45);
  background: rgba(0, 113, 227, 0.07);
}

.column-drag-handle {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #44444a;
}

.column-remove-btn,
.project-add-btn,
.bucket-lane-add-btn,
.bucket-remove-btn {
  border-radius: 10px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: #3f4047;
}

.bucket-lane-create {
  border-style: solid;
}

.project-lane-group {
  list-style: none;
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.project-lane-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.project-lane-head strong {
  flex: 1;
}

.project-lane-name-editor {
  min-height: 28px;
  border-radius: 8px;
}

.calendar-head {
  align-items: center;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-form {
  display: grid;
  grid-template-columns: 160px minmax(220px, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
  align-items: start;
}

.calendar-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#calendarForm .calendar-mode-btn {
  min-height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: #393a40;
  font-weight: 700;
  box-shadow: none;
}

#calendarForm .calendar-mode-btn.is-active {
  border-color: rgba(0, 113, 227, 0.4);
  background: var(--accent);
  color: #ffffff;
}

#calendarSubmitBtn,
#calendarTextInput,
.calendar-mode-fields {
  grid-column: 1 / -1;
}

#calendarSubmitBtn {
  justify-self: start;
  min-width: 124px;
}

.calendar-mode-fields {
  display: grid;
  gap: 8px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.calendar-weekday-sat {
  color: var(--accent);
  font-weight: 700;
}

.calendar-weekday-sun {
  color: var(--danger);
  font-weight: 700;
}

.calendar-cell {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.calendar-cell:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: var(--shadow-sm);
}

.calendar-cell.is-selected,
.calendar-cell[aria-selected='true'] {
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.35), 0 8px 18px rgba(0, 113, 227, 0.12);
  background: #eef5ff;
}

.calendar-cell.is-today {
  border-color: rgba(0, 113, 227, 0.35);
  background: #ecf4ff;
}

.calendar-cell.is-saturday {
  background: #f4f8ff;
}

.calendar-cell.is-sunday,
.calendar-cell.is-holiday {
  background: #fff4f4;
}

.calendar-cell.is-empty {
  cursor: default;
  background: rgba(249, 250, 252, 0.92);
}

.calendar-day {
  font-size: 13px;
  font-weight: 700;
}

.calendar-holiday {
  margin: 3px 0 5px;
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
}

.calendar-summary {
  margin: 2px 0 6px;
  color: #2758a6;
  font-size: 11px;
  font-weight: 600;
}

.calendar-empty,
.calendar-more {
  color: var(--muted);
  font-size: 12px;
}

.calendar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  background: rgba(255, 255, 255, 0.9);
  padding: 3px 7px;
  font-size: 12px;
}

.calendar-item.is-note {
  background: #eaf2ff;
}

.calendar-item.is-todo {
  background: #e9f8ef;
}

.calendar-item.is-range {
  background: linear-gradient(90deg, #d6e8ff 0%, #eef6ff 100%);
  border-color: rgba(0, 113, 227, 0.24);
}

.calendar-item.is-range-start {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.calendar-item.is-range-end {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.calendar-item.is-range-start.is-range-end {
  border-radius: 999px;
}

.calendar-item.is-range-continuation .type-badge,
.calendar-item.is-range-continuation .calendar-item-text {
  opacity: 0;
}

.type-badge {
  flex: none;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  background: rgba(23, 23, 25, 0.12);
}

.calendar-item-text {
  min-width: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.calendar-remove {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-left: auto;
  border: 0;
  border-radius: 6px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  line-height: 1;
}

.calendar-detail {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
}

.calendar-detail-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.calendar-detail-grid,
.report-grid {
  display: grid;
  gap: 10px;
}

.calendar-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calendar-detail-grid article,
.report-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.87);
}

.selected-note-composer {
  display: grid;
  gap: 8px;
  margin: 8px 0 10px;
}

.selected-note-composer > button {
  width: fit-content;
  min-width: 120px;
  white-space: nowrap;
}

.selected-note-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.selected-note-range-field {
  display: grid;
  gap: 4px;
}

.selected-note-range-field label {
  color: #4f5d79;
  font-size: 11px;
  font-weight: 700;
}

.selected-note-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: grid;
  gap: 7px;
  background: rgba(255, 255, 255, 0.7);
}

.selected-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.selected-note-type {
  border-radius: 999px;
  padding: 2px 8px;
  background: #e8f2ff;
  color: #1b5fc5;
  font-size: 11px;
  font-weight: 700;
}

.selected-note-period {
  color: #5f6d88;
  font-size: 12px;
  font-weight: 600;
}

.selected-note-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.selected-note-text {
  margin: 0;
  color: #202127;
  line-height: 1.45;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.selected-note-text.is-expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.selected-note-expand {
  width: fit-content;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: #edf3ff;
  color: #1f50be;
  font-size: 12px;
  font-weight: 700;
}

.selected-note-expand:hover {
  background: #dfeaff;
}

.report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.toast-host {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 320px;
  border-radius: 12px;
  padding: 10px 12px;
  color: #ffffff;
  background: #25272d;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: #1a8a48;
}

.toast-error {
  background: #c8362c;
}

@media (max-width: 1180px) {
  #quickAddForm {
    grid-template-columns: 1fr 150px 120px;
  }

  #quickAddForm button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  :root {
    --layout-gap: 12px;
    --board-rows: 2;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-area {
    justify-items: start;
    min-width: 0;
  }

  .calendar-form,
  .calendar-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selected-note-range {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --layout-max-width: 100%;
    --layout-gap: 10px;
    --layout-pad-x: 10px;
    --layout-pad-y: 10px;
    --layout-pad-b: 18px;
    --board-rows: 1;
  }

  .topbar,
  .quick-add,
  .todo-list-panel,
  .board-wrap,
  .calendar,
  .report,
  .column {
    padding: 12px;
  }

  #quickAddForm,
  .calendar-form,
  .calendar-detail-grid,
  .report-grid,
  .board {
    grid-template-columns: 1fr;
  }

  .profile-editor {
    width: 100%;
    justify-content: stretch;
  }

  .todo-item {
    grid-template-columns: 1fr;
  }

  .todo-controls {
    justify-items: stretch;
  }

  .todo-category-select {
    max-width: none;
  }

  .actions {
    width: 100%;
    justify-content: flex-start;
  }

  .actions button,
  .selected-note-composer > button {
    width: 100%;
  }

  .calendar-weekdays,
  .calendar-grid {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .layout > *,
  .card,
  .calendar-cell,
  .calendar-item,
  button,
  .toast {
    animation: none !important;
    transition: none !important;
  }
}
