@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f9f9fe;
  --surface: #ffffff;
  --surface-soft: #f3f3f8;
  --surface-muted: #ededf2;
  --text: #1a1c1f;
  --text-subtle: #414755;
  --text-muted: #717786;
  --border: rgba(193, 198, 215, 0.5);
  --border-soft: rgba(193, 198, 215, 0.2);
  --accent: #0070eb;
  --accent-dark: #0058bc;
  --danger: #c43f3f;
  --radius: 12px;
  --shadow-sm: 0 1px 1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hanken Grotesk", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.app {
  min-height: 100vh;
  background: var(--bg);
}

.main-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 249, 254, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(193, 198, 215, 0.3);
}

.logo {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: 30px;
  width: auto;
  display: block;
}

.logo span,
.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.12s ease, opacity 0.12s ease, background-color 0.2s ease;
}

.icon-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.content {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 96px;
  max-width: 390px;
  will-change: transform, opacity, filter;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, filter 0.22s ease;
}

.content.view-exit {
  opacity: 0;
  transform: translateX(-12px) scale(0.995);
  filter: blur(1px);
}

.content.view-enter {
  opacity: 0;
  transform: translateX(12px) scale(0.995);
  filter: blur(1px);
}

.content.view-enter.view-enter-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(249, 249, 254, 0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-soft);
  z-index: 60;
  box-shadow: 0 -10px 15px -12px rgba(0, 0, 0, 0.3);
}

.nav-btn {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--text-subtle);
  opacity: 0.72;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, opacity 0.15s ease, color 0.2s ease;
}

.nav-btn.active {
  color: var(--accent-dark);
  opacity: 1;
}

.nav-btn.active span {
  font-weight: 600;
}

.nav-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.icon-btn:active,
.nav-btn:active,
.btn-pill:active,
.mini-btn:active,
.tasks-new-list:active,
.tasks-fab:active,
.shopping-add-btn:active,
.quick-edit-done:active,
.tasks-sheet-create:active,
.calendar-event-head-btn:active {
  transform: scale(0.96);
}

.sidebar {
  display: none;
  width: 240px;
  border-right: 1px solid var(--border-soft);
  background: #ffffff;
  padding: 24px;
}

.mobile-menu-open .sidebar {
  display: block;
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  z-index: 70;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.brand img {
  height: 38px;
  width: auto;
  display: block;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.hero-title {
  margin: 0;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.4px;
  font-weight: 700;
}

.hero-sub {
  margin: 4px 0 0;
  color: var(--text-subtle);
  font-size: 17px;
  line-height: 24px;
}

.stack {
  display: grid;
  gap: 24px;
}

.figma-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.input-card {
  padding: 17px;
  display: grid;
  gap: 16px;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-subtle);
  padding: 10px 12px;
}

textarea {
  min-height: 140px;
  resize: vertical;
  font-size: 17px;
  line-height: 24px;
  color: rgba(65, 71, 85, 0.4);
}

.cta-row {
  display: flex;
  justify-content: flex-end;
}

.btn-pill {
  border: 0;
  border-radius: 999px;
  height: 50px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-soft {
  background: #e8edf8;
  color: #193c6b;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.featured {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 180px;
  background: var(--surface-muted);
  box-shadow: var(--shadow-md);
}

.featured img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 28, 31, 0.6), rgba(26, 28, 31, 0));
}

.featured h3 {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  z-index: 2;
  color: #fff;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent-dark);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  cursor: pointer;
}

.list {
  display: grid;
  gap: 8px;
}

.activity {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 17px;
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  cursor: pointer;
}

.activity.done {
  opacity: 0.7;
}

.activity-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.activity-icon-wrap.blue { background: #d8e2ff; }
.activity-icon-wrap.gray { background: #e2dfe1; }
.activity-icon-wrap.slate { background: #e2e2e2; }

.activity-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.activity-main {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

.item-sub,
.meta {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-subtle);
  font-weight: 500;
}

.meta {
  color: var(--text-muted);
  white-space: nowrap;
}

.quick-edit-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 28, 31, 0.22);
  backdrop-filter: blur(6px);
  z-index: 80;
  animation: fade-in-soft 0.2s ease both;
}

.quick-edit-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: #f9f9fe;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  animation: sheet-up 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.quick-edit-handle {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  margin: 8px auto 6px;
  background: rgba(113, 119, 134, 0.35);
}

.quick-edit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 12px;
}

.quick-edit-head h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
}

.quick-edit-head p {
  margin: 6px 0 0;
  color: #414755;
  font-size: 16px;
}

.quick-edit-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #e8e8ed;
  color: #1a1c1f;
  font-size: 30px;
  line-height: 1;
}

.quick-edit-body {
  overflow: auto;
  padding: 0 16px 16px;
  display: grid;
  gap: 12px;
}

.quick-edit-row {
  background: #fff;
  border: 1px solid rgba(193, 198, 215, 0.45);
  border-radius: 20px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.quick-edit-row-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-edit-check {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #0058bc;
  background: #fff;
  color: #0058bc;
  font-size: 18px;
  line-height: 1;
}

.quick-edit-check.checked {
  background: #0058bc;
  color: #fff;
}

.quick-edit-input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 17px;
  line-height: 24px;
  color: #1a1c1f;
  min-width: 0;
}

.quick-edit-input:focus {
  outline: none;
}

.quick-edit-input.done {
  color: #6f7482;
  text-decoration: line-through;
}

.quick-edit-meta {
  margin-left: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-edit-tag {
  background: rgba(0, 112, 235, 0.12);
  color: #0058bc;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
}

.quick-edit-time {
  color: #414755;
  font-size: 13px;
}

.quick-edit-del {
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  background: #ffdad6;
  color: #93000a;
  width: 44px;
  height: 36px;
  font-size: 18px;
}

.quick-edit-add {
  border: 2px dashed #d8e2ff;
  background: #f3f3f8;
  color: #1a1c1f;
  height: 56px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 600;
}

.quick-edit-foot {
  border-top: 1px solid rgba(193, 198, 215, 0.35);
  background: #f9f9fe;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
}

.quick-edit-done {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #0058bc;
  color: #fff;
  height: 56px;
  font-size: 17px;
  font-weight: 700;
}

.panel {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.task-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: #fff;
}

.tasks-screen {
  display: grid;
  gap: 14px;
  position: relative;
  padding-bottom: 150px;
}

.tasks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 0;
}

.tasks-title {
  margin: 0;
  font-size: 48px;
  line-height: 0.98;
  letter-spacing: -0.4px;
  font-weight: 700;
}

.tasks-count {
  margin-top: 4px;
  font-size: 16px;
  line-height: 20px;
  color: #2f3850;
  font-weight: 600;
}

.tasks-new-list {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  cursor: pointer;
}

.tasks-composer {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: #fff;
}

.tasks-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 28, 31, 0.2);
  animation: fade-in-soft 0.2s ease both;
}

.tasks-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: #fff;
  border-radius: 32px 32px 0 0;
  border-top: 1px solid rgba(193, 198, 215, 0.35);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.16);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  animation: sheet-up 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tasks-sheet-grabber {
  width: 40px;
  height: 6px;
  border-radius: 999px;
  background: rgba(193, 198, 215, 0.8);
  margin: 12px auto 4px;
}

.tasks-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 12px;
}

.tasks-sheet-head h3 {
  margin: 0;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.3px;
}

.tasks-sheet-close {
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #e8e8ed;
  color: #414755;
  font-size: 30px;
  line-height: 1;
}

.tasks-sheet-body {
  padding: 0 16px 18px;
  overflow: auto;
  display: grid;
  gap: 22px;
}

.tasks-sheet-group label,
.tasks-sheet-group h4 {
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 18px;
  color: #414755;
  font-weight: 500;
}

.tasks-sheet-list-name {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: #f3f3f8;
  color: #1a1c1f;
  font-size: 16px;
  padding: 0 16px;
}

.tasks-sheet-list-name::placeholder,
.tasks-sheet-task-input::placeholder {
  color: #a2a9b8;
}

.tasks-sheet-list-name:focus,
.tasks-sheet-task-input:focus {
  outline: none;
}

.tasks-sheet-rows {
  display: grid;
  gap: 12px;
}

.tasks-sheet-row {
  min-height: 44px;
  border: 1px solid rgba(193, 198, 215, 0.5);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background: #fff;
}

.tasks-sheet-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 3px solid #b0b8ca;
  flex: 0 0 auto;
}

.tasks-sheet-task-input {
  border: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
  font-size: 17px;
  color: #1a1c1f;
}

.tasks-sheet-add {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #0058bc;
  font-size: 17px;
  font-weight: 600;
  padding: 0;
  height: 32px;
  text-align: left;
}

.tasks-sheet-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tasks-sheet-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  background: #e8e8ed;
  color: #414755;
  font-size: 28px;
  display: grid;
  place-items: center;
}

.tasks-sheet-icon.is-active {
  background: #0058bc;
  color: #fff;
  box-shadow: inset 0 0 0 3px #ffffff, 0 0 0 2px #0058bc;
}

.tasks-sheet-foot {
  border-top: 1px solid rgba(193, 198, 215, 0.28);
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
}

.tasks-sheet-create {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 20px;
  background: #0070eb;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 112, 235, 0.25);
}

.tasks-list-wrap {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #d8dce5;
  background: #f7f7fa;
}

.task-row {
  display: flex;
  gap: 14px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border-soft);
  align-items: flex-start;
}

.task-row:last-child { border-bottom: 0; }

.task-circle {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid #9fb9ee;
  background: transparent;
  color: transparent;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  margin-top: 3px;
}

.task-circle.priority {
  border-color: #0a61c1;
}

.task-circle.checked {
  border: 2px solid #6699da;
  background: #6699da;
  color: #fff;
  display: grid;
  place-items: center;
}

.task-main {
  flex: 1;
  min-width: 0;
}

.task-title {
  font-size: 17px;
  line-height: 1.16;
  font-weight: 500;
  color: #23262d;
}

.task-title.line {
  text-decoration: line-through;
  color: #8e95a4;
}

.task-title.priority {
  font-weight: 700;
}

.task-due {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}

.task-due.normal { color: #3e4655; }
.task-due.priority { color: #c92828; }
.task-due.done { color: #8e95a4; }

.task-detail {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.3;
  color: #4a5160;
}

.task-actions {
  display: flex;
  gap: 8px;
  margin-left: 6px;
  align-self: center;
  display: none;
}

.mini-btn {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mini-soft { background: #e8edf8; color: #193c6b; }
.mini-danger { background: #fce8e8; color: #9a2b2b; }

.focus-screen {
  display: grid;
  gap: 24px;
  padding: 24px 0 48px;
}

.focus-head {
  padding-top: 16px;
  display: grid;
  justify-items: center;
}

.focus-title {
  margin: 0;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.4px;
  font-weight: 700;
}

.focus-sub {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 20px;
  color: var(--text-subtle);
}

.focus-ring-wrap {
  display: grid;
  justify-content: center;
}

.focus-ring-shell {
  width: 256px;
  height: 256px;
  border-radius: 999px;
  border: 6px solid #e8e8ed;
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: grid;
  place-items: center;
}

.focus-ring-svg {
  position: absolute;
  inset: 6px;
  transform: rotate(-90deg);
}

.focus-ring-track {
  fill: none;
  stroke: rgba(0, 112, 235, 0.12);
  stroke-width: 6;
}

.focus-ring-progress {
  fill: none;
  stroke: #0058bc;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 6 12;
  transition: stroke-dashoffset 0.4s ease;
}

.focus-ring-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.focus-time {
  color: #0058bc;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -3.2px;
  font-weight: 700;
}

.focus-label {
  margin-top: 8px;
  color: #414755;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.focus-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.focus-notify-row {
  display: flex;
  justify-content: center;
}

.focus-notify-btn {
  border: 1px solid rgba(193, 198, 215, 0.45);
  background: #fff;
  color: #414755;
  border-radius: 999px;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.focus-btn {
  height: 50px;
  border-radius: 999px;
  border: 0;
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  cursor: pointer;
}

.focus-btn-primary {
  background: #0058bc;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.focus-btn-soft {
  background: #e8e8ed;
  color: #1a1c1f;
}

.focus-quick {
  background: #f3f3f8;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 16px;
}

.focus-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.focus-quick-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.focus-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.focus-quick-plus {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #0070eb;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.focus-skip-link {
  border: 0;
  background: transparent;
  color: #0058bc;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  cursor: pointer;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.focus-preset {
  height: 74px;
  border-radius: 12px;
  border: 1px solid rgba(193, 198, 215, 0.3);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-content: center;
  color: #0058bc;
}

.focus-preset.is-active {
  background: #0070eb;
  border-color: rgba(0, 88, 188, 0.2);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.focus-preset-value {
  font-size: 22px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.focus-preset-unit {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: #414755;
}

.focus-preset.is-active .focus-preset-unit {
  color: #fefcff;
}

.focus-inspiration {
  height: 179px;
  border-radius: 16px;
  border: 1px solid rgba(193, 198, 215, 0.2);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.focus-inspiration img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focus-inspiration-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 2px;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.focus-kicker {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}

.focus-heading {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #fff;
}

.focus-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
}

.focus-alert-modal {
  width: min(358px, 100%);
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(193, 198, 215, 0.5);
  box-shadow: var(--shadow-md);
  padding: 18px;
}

.focus-alert-modal h3 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.3px;
}

.focus-alert-modal p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 20px;
  color: #414755;
}

.focus-alert-state {
  margin-top: 10px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: #0058bc;
}

.focus-alert-overtime {
  margin-top: 2px;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.4px;
  font-weight: 700;
  color: #1a1c1f;
}

.focus-alert-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shopping-screen {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 56px;
}

.shopping-hero h2 {
  margin: 0;
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.shopping-hero p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 20px;
  color: #414755;
}

.shopping-active-card {
  border: 1px solid #c1c6d7;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.shopping-active-head {
  background: #f9f9fe;
  border-bottom: 1px solid rgba(193, 198, 215, 0.5);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shopping-active-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.shopping-active-head p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: #414755;
  font-weight: 500;
}

.shopping-add-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: #0070eb;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.shopping-composer {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(193, 198, 215, 0.4);
  display: grid;
  gap: 10px;
  background: #fff;
}

.shopping-composer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shopping-list-body {
  padding: 16px;
  display: grid;
  gap: 16px;
}

.shopping-empty {
  border: 1px dashed rgba(193, 198, 215, 0.8);
  border-radius: 12px;
  padding: 16px;
  color: #414755;
  font-size: 15px;
  line-height: 20px;
  background: #fff;
}

.shopping-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.shopping-row.checked {
  opacity: 0.6;
}

.shopping-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #0070eb;
  background: transparent;
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.shopping-dot.on {
  background: #5f9fe8;
  border-color: #5f9fe8;
  color: #fff;
}

.shopping-row-main {
  min-width: 0;
  flex: 1;
}

.shopping-row-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.shopping-row-name {
  font-size: 17px;
  line-height: 24px;
  letter-spacing: -0.2px;
  color: #1a1c1f;
}

.shopping-row.checked .shopping-row-name {
  text-decoration: line-through;
}

.shopping-row-meta {
  margin-top: 2px;
  font-size: 13px;
  line-height: 18px;
  color: #414755;
  font-weight: 500;
}

.shopping-row.checked .shopping-row-meta {
  color: #8e95a4;
}

.shopping-chip {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.shopping-chip.food { background: #d8e2ff; color: #001a41; }
.shopping-chip.drinks { background: #e4e2e4; color: #1b1b1d; }
.shopping-chip.household { background: #e2e2e7; color: #414755; }

.shopping-row.checked .shopping-chip {
  background: #e8e8ed;
  color: #7d8392;
}

.shopping-summary {
  border-top: 1px solid rgba(193, 198, 215, 0.3);
  background: #f3f3f8;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px 8px;
}

.shopping-summary-col {
  text-align: center;
  display: grid;
  gap: 2px;
}

.shopping-summary-col.mid {
  border-left: 1px solid rgba(193, 198, 215, 0.3);
  border-right: 1px solid rgba(193, 198, 215, 0.3);
}

.shopping-summary-col span {
  font-size: 13px;
  line-height: 18px;
  color: #414755;
  font-weight: 500;
}

.shopping-summary-col strong {
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.3px;
  font-weight: 600;
  color: #1a1c1f;
}

.shopping-summary-col strong.blue { color: #0058bc; }
.shopping-summary-col strong.red { color: #ba1a1a; }

.shopping-summary-note {
  padding: 0 16px 14px;
  margin-top: -6px;
  font-size: 12px;
  line-height: 16px;
  color: #717786;
  text-align: right;
}

.shopping-analytics {
  display: grid;
  gap: 12px;
}

.shopping-analytics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shopping-analytics-head h4 {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #414755;
  font-weight: 500;
}

.shopping-analytics-toggle {
  background: #e8e8ed;
  border-radius: 12px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.shopping-analytics-toggle button {
  border: 0;
  background: transparent;
  border-radius: 9px;
  height: 34px;
  min-width: 88px;
  color: #414755;
  font-size: 17px;
  line-height: 22px;
  font-weight: 500;
}

.shopping-analytics-toggle button.active {
  background: #fff;
  color: #0058bc;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.shopping-analytics-card {
  border-radius: 16px;
  border: 1px solid rgba(193, 198, 215, 0.55);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.shopping-analytics-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.shopping-analytics-row h5,
.shopping-analytics-breakdown {
  margin: 0;
  font-size: 17px;
  line-height: 28px;
  letter-spacing: -0.2px;
  color: #1a1c1f;
  font-weight: 700;
}

.shopping-analytics-row span {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0;
  color: #414755;
  font-weight: 500;
}

.shopping-analytics-chart {
  margin-top: 10px;
  height: 128px;
  position: relative;
}

.shopping-analytics-chart svg {
  width: 100%;
  height: 100%;
}

.shopping-analytics-chart .line {
  fill: none;
  stroke: #0058bc;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.shopping-analytics-chart .area {
  fill: rgba(0, 88, 188, 0.15);
}

.shopping-analytics-labels {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  color: #414755;
  font-size: 10px;
  line-height: 12px;
  font-weight: 500;
}

.shopping-analytics-divider {
  margin-top: 12px;
  border-top: 1px solid rgba(193, 198, 215, 0.45);
}

.shopping-analytics-breakdown {
  margin-top: 12px;
}

.shopping-analytics-breakdown-grid {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.shopping-donut {
  --food: 33;
  --drinks: 33;
  --house: 34;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: conic-gradient(
    #d8e2ff 0 calc(var(--food) * 1%),
    #e4e2e4 calc(var(--food) * 1%) calc((var(--food) + var(--drinks)) * 1%),
    #e2e2e7 calc((var(--food) + var(--drinks)) * 1%) 100%
  );
  position: relative;
  flex: 0 0 auto;
}

.shopping-donut-inner {
  position: absolute;
  inset: 16px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-content: center;
  text-align: center;
}

.shopping-donut-inner strong {
  font-size: 12px;
  line-height: 16px;
}

.shopping-donut-inner small {
  font-size: 8px;
  line-height: 12px;
  color: #414755;
  letter-spacing: 0.06em;
}

.shopping-legend {
  flex: 1;
  display: grid;
  gap: 10px;
}

.shopping-legend div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.shopping-legend .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.shopping-legend .dot.food { background: #d8e2ff; }
.shopping-legend .dot.drinks { background: #e4e2e4; }
.shopping-legend .dot.household { background: #e2e2e7; }

.shopping-legend label,
.shopping-legend strong {
  font-size: 13px;
  line-height: 18px;
}

.shopping-other h4 {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #414755;
  font-weight: 500;
}

.shopping-other-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.shopping-other-card {
  min-height: 128px;
  border: 1px solid rgba(193, 198, 215, 0.2);
  border-radius: 12px;
  background: rgba(226, 226, 231, 0.3);
  padding: 16px;
  display: grid;
  align-content: space-between;
}

.shopping-other-icon {
  color: #5f5e60;
  font-size: 22px;
  line-height: 1;
}

.shopping-other-title {
  margin-top: 8px;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: -0.2px;
  font-weight: 700;
  color: #1a1c1f;
}

.shopping-other-meta {
  margin-top: 8px;
  font-size: 13px;
  line-height: 18px;
  color: #414755;
  font-weight: 500;
}

.shopping-locator {
  position: relative;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.shopping-locator img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shopping-locator-overlay {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: grid;
  align-content: end;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.shopping-locator-kicker {
  opacity: 0.8;
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.shopping-locator-title {
  margin-top: 2px;
  color: #fff;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.3px;
  font-weight: 600;
}

.calendarv-screen {
  display: grid;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 56px;
}

.calendarv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendarv-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.4px;
  font-weight: 700;
}

.calendarv-head p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 20px;
  color: #414755;
  font-weight: 400;
}

.calendarv-nav {
  display: flex;
  gap: 8px;
}

.calendarv-arrow {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 36px;
  line-height: 1;
  color: #1a1c1f;
  cursor: pointer;
  padding: 0;
}

.calendarv-grid-wrap {
  border: 1px solid rgba(193, 198, 215, 0.3);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.calendarv-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f3f3f8;
}

.calendarv-weekdays span {
  text-align: center;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: #2f3545;
  padding: 14px 2px;
  border-right: 1px solid rgba(193, 198, 215, 0.2);
}

.calendarv-weekdays span:last-child { border-right: 0; }

.calendarv-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendarv-cell {
  min-height: 128px;
  border-right: 1px solid rgba(193, 198, 215, 0.2);
  border-top: 1px solid rgba(193, 198, 215, 0.2);
  padding: 8px 7px;
  background: #fff;
  text-align: left;
  vertical-align: top;
  cursor: pointer;
  border-left: 0;
  border-bottom: 0;
  appearance: none;
}

.calendarv-cell:nth-child(7n) { border-right: 0; }
.calendarv-cell.muted { opacity: 0.45; }
.calendarv-cell.selected { background: #f7f8fc; }

.calendarv-daynum {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 18px;
  color: #1a1c1f;
  font-weight: 500;
}

.calendarv-daynum.today {
  background: #0058bc;
  color: #fff;
  font-weight: 700;
}

.calendarv-pills {
  margin-top: 6px;
  display: grid;
  gap: 4px;
}

.calendarv-pill {
  display: inline-block;
  font-size: 10px;
  line-height: 14px;
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.calendarv-pill.blue { background: #0058bc; }
.calendarv-pill.gray { background: #5f5e60; }

.calendarv-more {
  font-size: 11px;
  line-height: 16px;
  color: #0058bc;
  font-weight: 700;
}

.calendarv-details h3 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.3px;
  font-weight: 600;
}

.calendarv-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f3f3f8;
  border: 1px solid rgba(193, 198, 215, 0.3);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 16px;
}

.calendarv-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.calendarv-icon.blue { background: #d8e2ff; color: #0058bc; }
.calendarv-icon.gray { background: #e2dfe1; color: #5f5e60; }

.calendarv-main { flex: 1; min-width: 0; }

.calendarv-title {
  font-size: 17px;
  line-height: 24px;
  letter-spacing: -0.2px;
  color: #1a1c1f;
}

.calendarv-sub {
  margin-top: 3px;
  font-size: 13px;
  line-height: 18px;
  color: #414755;
  font-weight: 500;
}

.calendarv-status {
  width: 34px;
  height: 34px;
  border: 3px solid #0058bc;
  border-radius: 999px;
  flex: 0 0 auto;
  background: transparent;
  cursor: pointer;
}

.calendarv-status.done {
  background: #5f9fe8;
  border-color: #5f9fe8;
}

.calendarv-dots {
  display: flex;
  gap: 2px;
}

.calendarv-dots span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid #f3f3f8;
}

.calendarv-dots span:first-child { background: #d8e2ff; }
.calendarv-dots span:last-child { background: #e2e2e7; margin-left: -8px; }

.calendarv-cta {
  margin-top: 10px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: #0058bc;
  color: #fff;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.2px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.calendar-event-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(47, 48, 52, 0.22);
  backdrop-filter: blur(3px);
  animation: fade-in-soft 0.2s ease both;
}

.calendar-event-sheet {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 130;
  max-height: 92%;
  background: rgba(243, 243, 248, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sheet-up 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.calendar-event-sheet.full {
  top: 56px;
  max-height: calc(100vh - 56px);
  border-radius: 0;
}

.calendar-event-grabber {
  width: 72px;
  height: 6px;
  border-radius: 999px;
  margin: 10px auto 6px;
  background: rgba(193, 198, 215, 0.8);
}

.calendar-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(193, 198, 215, 0.35);
}

.calendar-event-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
}

.calendar-event-section-label {
  font-size: 13px;
  line-height: 18px;
  color: #414755;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0 2px;
}

.calendar-event-head-btn {
  border: 0;
  background: transparent;
  color: #0058bc;
  font-size: 16px;
  line-height: 21px;
  font-weight: 500;
}

.calendar-event-body {
  overflow: auto;
  padding: 16px 16px 28px;
  display: grid;
  gap: 18px;
}

.calendar-event-input-wrap {
  border: 1px solid rgba(193, 198, 215, 0.3);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

.calendar-event-input-wrap.slim {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 6px 0 12px;
  border-bottom: 1px solid rgba(193, 198, 215, 0.4);
}

.calendar-event-title {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.5px;
  font-weight: 700;
}

.calendar-event-title.slim {
  font-size: 44px;
  line-height: 1.05;
  color: rgba(0, 26, 65, 0.22);
}

.calendar-event-title::placeholder,
.calendar-event-field-row input::placeholder,
.calendar-event-input-wrap textarea::placeholder {
  color: rgba(65, 71, 85, 0.55);
}

.calendar-event-input-wrap textarea {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 16px;
  line-height: 23px;
  min-height: 100px;
  resize: none;
}

.calendar-event-segment {
  border-radius: 16px;
  background: #e8e8ed;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.calendar-event-segment button {
  border: 0;
  background: transparent;
  border-radius: 12px;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  color: #414755;
}

.calendar-event-segment button.active {
  background: #fff;
  color: #0058bc;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.calendar-event-block {
  border: 1px solid rgba(193, 198, 215, 0.3);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.calendar-event-row {
  min-height: 68px;
  border-bottom: 1px solid rgba(193, 198, 215, 0.25);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-event-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-event-round-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #d8e2ff;
  color: #0058bc;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.calendar-event-round-icon.gray {
  background: #e2e2e7;
  color: #5f5e60;
}

.calendar-event-row-kicker {
  font-size: 13px;
  line-height: 18px;
  color: #414755;
  letter-spacing: 0.04em;
}

.calendar-event-row-main {
  font-size: 16px;
  line-height: 22px;
  color: #1a1c1f;
}

.calendar-event-link {
  border: 0;
  background: transparent;
  color: #0058bc;
  font-size: 16px;
  line-height: 21px;
  font-weight: 600;
}

.calendar-event-time-input {
  border: 0;
  background: transparent;
  color: #717786;
  font-size: 16px;
}

.calendar-event-row:last-child {
  border-bottom: 0;
}

.calendar-event-row span {
  font-size: 16px;
}

.calendar-event-row-fields {
  display: flex;
  gap: 8px;
}

.calendar-event-chip {
  border: 0;
  border-radius: 12px;
  background: #e8e8ed;
  color: #1a1c1f;
  padding: 8px 12px;
  font-size: 16px;
}

.calendar-event-chip-input {
  border: 0;
  border-radius: 12px;
  background: #e8e8ed;
  color: #1a1c1f;
  padding: 8px 12px;
  font-size: 16px;
  font-family: inherit;
}

.calendar-event-toggle {
  width: 50px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(193, 198, 215, 0.8);
  padding: 2px;
}

.calendar-event-toggle span {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.calendar-event-toggle.on {
  background: #0058bc;
}

.calendar-event-toggle.on span {
  transform: translateX(20px);
}

.calendar-event-field-row {
  min-height: 68px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(193, 198, 215, 0.25);
  display: flex;
  align-items: center;
}

.calendar-event-field-row:last-child {
  border-bottom: 0;
}

.calendar-event-field-row input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 16px;
}

.calendar-event-field-row.video button {
  border: 0;
  background: transparent;
  color: #0058bc;
  font-size: 16px;
  font-weight: 500;
}

.calendar-event-field-row.video button.on {
  color: #1a1c1f;
}

.calendar-event-category label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 18px;
  color: #414755;
  font-weight: 500;
}

.calendar-event-priority {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.calendar-event-priority button {
  border-radius: 16px;
  border: 1px solid rgba(193, 198, 215, 0.8);
  background: #f3f3f8;
  color: #2f3034;
  height: 56px;
  font-size: 16px;
  font-weight: 500;
}

.calendar-event-priority button.active {
  border: 2px solid #0058bc;
  color: #0058bc;
  background: rgba(0, 88, 188, 0.04);
}

.calendar-event-cats {
  display: flex;
  gap: 10px;
}

.calendar-event-cats button {
  border-radius: 999px;
  padding: 11px 20px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  background: #e8e8ed;
  color: #414755;
}

.calendar-event-cats button.urgent {
  background: rgba(186, 26, 26, 0.1);
  color: #ba1a1a;
  border-color: rgba(186, 26, 26, 0.2);
}

.calendar-event-cats button.logistics {
  background: #fff;
  color: #717786;
  border: 1px dashed #717786;
}

.calendar-event-cats button.admin {
  background: #e8e8ed;
  color: #414755;
  border-color: rgba(193, 198, 215, 0.6);
}

.calendar-event-cats button:not(.active) {
  opacity: 0.7;
}

.calendar-event-cats button.work {
  background: rgba(0, 88, 188, 0.12);
  color: #0058bc;
  border-color: rgba(0, 88, 188, 0.25);
}

.calendar-event-cats button.personal,
.calendar-event-cats button.health {
  background: #e2e2e7;
  color: #2f3034;
}

.calendar-event-tip {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 184px;
}

.calendar-event-tip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.65;
}

.calendar-event-tip p {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  font-style: italic;
  color: #2f3034;
}

.history-screen {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 96px;
}

.settings-screen {
  display: grid;
  gap: 28px;
  padding-top: 8px;
  padding-bottom: 96px;
}

.settings-profile {
  display: grid;
  justify-items: center;
}

.settings-avatar {
  width: 128px;
  height: 128px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(0, 88, 188, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.settings-avatar-btn {
  border: 0;
  background: #e8e8ed;
  padding: 0;
  cursor: pointer;
}

.settings-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-avatar-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: #e8e8ed;
}

.settings-profile h2 {
  margin: 16px 0 0;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.4px;
}

.settings-profile p {
  margin: 8px 0 0;
  color: #0058bc;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.settings-group h3 {
  margin: 0 0 10px;
  padding-left: 6px;
  color: #414755;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 500;
}

.settings-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(193, 198, 215, 0.4);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.settings-row {
  border: 0;
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 0 14px;
  text-align: left;
}

.settings-row + .settings-row {
  border-top: 1px solid rgba(193, 198, 215, 0.45);
}

.settings-icon {
  width: 22px;
  text-align: center;
  color: #0058bc;
  font-size: 21px;
  line-height: 1;
}

.settings-label {
  flex: 1;
  font-size: 17px;
  line-height: 24px;
}

.settings-value {
  color: #414755;
  font-size: 17px;
  line-height: 24px;
}

.settings-chevron {
  color: #aeb5c5;
  font-size: 30px;
  line-height: 1;
}

.settings-switch {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(193, 198, 215, 0.8);
  padding: 2px;
  transition: background 0.15s ease;
}

.settings-switch span {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.settings-switch.on {
  background: #0058bc;
}

.settings-switch.on span {
  transform: translateX(18px);
}

.settings-export-pdf {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.settings-group.danger h3 {
  color: #ba1a1a;
}

.settings-card.danger {
  border-color: rgba(186, 26, 26, 0.35);
}

.settings-row.danger .settings-icon,
.settings-row.danger .settings-label,
.settings-row.danger .settings-chevron {
  color: #ba1a1a;
}

.settings-row.danger .settings-label {
  font-weight: 700;
}

.settings-danger-note {
  margin: 10px 0 0;
  padding-left: 6px;
  color: #414755;
  font-size: 15px;
  line-height: 24px;
  font-style: italic;
}

.history-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.4px;
  font-weight: 700;
}

.history-head p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: #414755;
}

.history-search-wrap {
  position: relative;
}

.history-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #717786;
  font-size: 20px;
}

.history-search {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1px solid #c1c6d7;
  background: #fff;
  padding: 0 16px 0 48px;
  font-size: 16px;
  line-height: 21px;
  color: #1a1c1f;
}

.history-list {
  display: grid;
  gap: 16px;
}

.history-date {
  padding: 4px 0;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.65px;
  color: #717786;
  text-transform: uppercase;
  font-weight: 500;
}

.history-card {
  background: #fff;
  border: 1px solid rgba(193, 198, 215, 0.3);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.history-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-chip {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.history-chip.task { background: rgba(0, 112, 235, 0.1); color: #0058bc; }
.history-chip.shopping { background: rgba(115, 117, 117, 0.1); color: #5b5c5c; }
.history-chip.money { background: rgba(0, 112, 235, 0.1); color: #0058bc; }
.history-chip.focus { background: rgba(115, 117, 117, 0.1); color: #5b5c5c; }
.history-chip.system { background: rgba(193, 198, 215, 0.25); color: #414755; }

.history-chip-ico {
  font-size: 12px;
  line-height: 1;
}

.history-time {
  font-size: 13px;
  line-height: 18px;
  color: #414755;
  font-weight: 500;
}

.history-text {
  font-size: 17px;
  line-height: 28px;
  letter-spacing: -0.2px;
  color: #1a1c1f;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.history-reuse {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #0058bc;
  color: #fff;
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
}

.history-delete {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #ffdada;
  color: #93000a;
  font-size: 22px;
}

.history-empty,
.history-end {
  opacity: 0.45;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 0;
  color: #1a1c1f;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.history-empty-icon,
.history-end-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #e8e8ed;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.tasks-completed-divider {
  background: #d8d9e0;
  color: #3f4452;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.08em;
  font-weight: 500;
  padding: 9px 14px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.tasks-empty {
  padding: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.tasks-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tasks-quickadd,
.tasks-planweek {
  border: 0;
  border-radius: 18px;
  text-align: left;
  padding: 14px;
  position: relative;
  cursor: pointer;
}

.tasks-quickadd {
  background: #1170dc;
  color: #fff;
  min-height: 126px;
}

.tasks-quickadd-title {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
}

.tasks-quickadd-sub {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.88);
}

.tasks-planweek {
  background: #efeff3;
  color: #21252b;
  min-height: 126px;
}

.tasks-planweek-chip {
  position: absolute;
  right: 14px;
  top: 14px;
  background: #dce5f5;
  color: #1d5cb0;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 16px;
  font-weight: 500;
}

.tasks-planweek-title {
  margin-top: 44px;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 500;
}

.tasks-planweek-sub {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.2;
  color: #444b59;
}

.tasks-fab {
  position: absolute;
  right: 8px;
  bottom: 82px;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 0;
  background: #1170dc;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.split-desktop {
  display: grid;
  gap: 16px;
}

.calendar-shell {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}

.gantt-screen {
  display: grid;
  gap: 14px;
  position: relative;
  padding-bottom: 154px;
}

.gantt-months {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gantt-month-pill {
  border: 0;
  border-radius: 999px;
  padding: 10px 26px;
  background: #e6e7ec;
  color: #4a5160;
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
}

.gantt-month-pill.active {
  background: #0d67cc;
  color: #fff;
}

.gantt-board {
  border-radius: 20px;
  border: 1px solid #d8dce5;
  background: #f7f7fa;
  overflow: hidden;
}

.gantt-board-head {
  display: grid;
  grid-template-columns: 28% 72%;
  border-bottom: 1px solid var(--border-soft);
}

.gantt-project-col {
  padding: 14px;
  font-size: 16px;
  color: #4a5160;
  font-weight: 500;
  border-right: 1px solid var(--border-soft);
  background: #e8e9ee;
}

.gantt-days-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.gantt-day-head {
  padding: 14px 6px;
  text-align: center;
  font-size: 16px;
  color: #4a5160;
  font-weight: 500;
}

.gantt-day-head.today {
  color: #0d67cc;
  font-weight: 700;
}

.gantt-board-body {
  position: relative;
}

.gantt-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(57, 135, 221, 0.45);
  z-index: 1;
}

.gantt-row {
  display: grid;
  grid-template-columns: 28% 72%;
  min-height: 72px;
  border-bottom: 1px solid var(--border-soft);
}

.gantt-row:last-child {
  border-bottom: 0;
}

.gantt-lane-name {
  padding: 14px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: #2a2f37;
  border-right: 1px solid var(--border-soft);
}

.gantt-lane-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 0 8px;
  position: relative;
  z-index: 2;
}

.gantt-bar {
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-bar.normal {
  background: #0f6ed8;
  color: #fff;
}

.gantt-bar.critical {
  background: #0f6ed8;
  color: #fff;
}

.gantt-details {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.gantt-detail-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  border: 1px solid #d8dce5;
  background: #f7f7fa;
  padding: 12px;
}

.gantt-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.gantt-detail-icon.blue { background: #cfd9f4; }
.gantt-detail-icon.purple { background: #e3d8ef; }

.gantt-detail-main {
  flex: 1;
  min-width: 0;
}

.gantt-detail-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.gantt-detail-meta {
  margin-top: 4px;
  font-size: 13px;
  color: #0d67cc;
  font-weight: 600;
}

.gantt-detail-side {
  font-size: 13px;
  color: #4a5160;
  white-space: nowrap;
}

.gantt-progress {
  height: 10px;
  background: #e2e4ea;
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.gantt-progress span {
  display: block;
  height: 100%;
  background: #0f6ed8;
}

.gantt-composer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: #fff;
}

.gantt-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gantt-kpi {
  border-radius: 18px;
  border: 1px solid #d8dce5;
  background: #efeff3;
  min-height: 98px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gantt-kpi.velocity {
  background: #0f6ed8;
  color: #fff;
  grid-row: span 2;
  min-height: 204px;
}

.gantt-kpi-title {
  font-size: 14px;
  line-height: 1.2;
  opacity: 0.9;
}

.gantt-kpi-value {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 500;
  color: #2a2f37;
}

.gantt-kpi.velocity .gantt-kpi-value {
  font-size: 40px;
  color: #fff;
}

.gantt-fab {
  position: absolute;
  right: 10px;
  bottom: 84px;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 0;
  background: #1170dc;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.board-screen {
  display: grid;
  gap: 16px;
  min-height: 886px;
  padding-top: 4px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.board-title {
  margin: 0;
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #0058bc;
}

.board-switcher {
  display: flex;
  gap: 4px;
  background: #ededf2;
  border-radius: 999px;
  padding: 4px;
}

.board-switch {
  border: 0;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  line-height: 18px;
  color: #414755;
  background: transparent;
}

.board-switch.board.active {
  background: #0058bc;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.board-canvas {
  width: 100%;
  height: 460px;
  overflow-x: auto;
  overflow-y: hidden;
}

.board-columns {
  position: relative;
  display: flex;
  gap: 24px;
  min-width: max-content;
  height: 100%;
}

.board-column {
  width: 331.5px;
  min-width: 331.5px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.board-col-head {
  height: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.board-col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-col-title {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  color: #1a1c1f;
}

.board-col-count {
  min-width: 23px;
  height: 22px;
  border-radius: 999px;
  background: #e8e8ed;
  padding: 2px 8px;
  font-size: 13px;
  line-height: 18px;
  color: #414755;
  display: grid;
  place-items: center;
}

.board-col-dots {
  width: 16px;
  height: 4px;
  background: #717786;
  border-radius: 2px;
}

.board-col-cards {
  display: grid;
  gap: 8px;
}

.board-card {
  background: #fff;
  border: 1px solid #c1c6d7;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 16px;
}

.board-card.done {
  opacity: 0.6;
}

.board-card-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 88, 188, 0.1);
  color: #0058bc;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
}

.board-card-title {
  margin-top: 8px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: #1a1c1f;
}

.board-card-meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  line-height: 18px;
  color: #414755;
  font-weight: 500;
}

.board-card-cal {
  width: 12px;
  height: 12px;
  border: 2px solid #414755;
  border-radius: 2px;
  display: inline-block;
}

.board-card-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.board-add-btn {
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: #0058bc;
  color: #fff;
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.board-composer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: #fff;
}

.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  overflow: auto;
}

.calendar-col {
  min-height: 280px;
  border-right: 1px solid var(--border-soft);
}

.calendar-col:last-child { border-right: 0; }

.calendar-day {
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft);
}

.calendar-body {
  padding: 10px;
  display: grid;
  gap: 6px;
}

.tag {
  background: #eef4ff;
  color: #1d4f9f;
  font-size: 12px;
  line-height: 16px;
  border-radius: 6px;
  padding: 4px 6px;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
}

.hidden-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .app { display: flex; }
  .sidebar { display: block; }
  .mobile-menu-open .sidebar { position: static; box-shadow: none; }
  .main-layout { width: calc(100% - 240px); }
  .topbar { padding: 0 24px; }
  .content {
    max-width: 100%;
    padding: 24px;
  }
  .bottom-nav { display: none; }
  .stack { max-width: 980px; }
  .tasks-screen { max-width: 760px; }
  .tasks-title { font-size: 42px; }
  .task-due { font-size: 15px; }
  .task-detail { font-size: 16px; }
  .task-actions { display: flex; }
  .split-desktop { grid-template-columns: 2fr 1fr; }
  .hidden-mobile { display: block; }
}

@keyframes sheet-up {
  from {
    transform: translateY(22px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-in-soft {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .content,
  .nav-btn,
  .icon-btn {
    transition: none;
  }

  .quick-edit-backdrop,
  .tasks-sheet-backdrop,
  .calendar-event-backdrop,
  .quick-edit-sheet,
  .tasks-sheet,
  .calendar-event-sheet {
    animation: none;
  }
}
