:root {
  --bg: #eee8dc;
  --bg-deep: #e7dfd0;
  --paper: #fffdf8;
  --paper-soft: #fbf7ef;
  --paper-warm: #f6f0e4;
  --ink: #242820;
  --ink-soft: #4c5047;
  --muted: #7e7d72;
  --muted-light: #a09d91;
  --line: #e6ded0;
  --line-soft: #ede6da;
  --forest: #1f342c;
  --forest-light: #2b493d;
  --forest-faint: #dfe7e0;
  --coral: #d86142;
  --coral-deep: #b94c30;
  --coral-soft: #f7e4dc;
  --sage: #5d745f;
  --sage-soft: #e7ede3;
  --gold: #b5822f;
  --gold-soft: #f4ead5;
  --rose: #b25e7e;
  --rose-soft: #f5e2e9;
  --lilac: #7c6ca7;
  --lilac-soft: #ebe6f4;
  --cream: #f7f0e3;
  --cream-soft: rgba(247, 240, 227, .62);
  --shadow-lg: 0 24px 70px rgba(66, 51, 31, .10);
  --shadow-md: 0 12px 32px rgba(66, 51, 31, .08);
  --shadow-sm: 0 3px 12px rgba(66, 51, 31, .06);
  --font-sans: "DM Sans", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --time-col: 62px;
  --hour-height: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 252, 244, .9), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(213, 201, 179, .42), transparent 44%),
    var(--bg);
  font-family: var(--font-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

::selection {
  background: var(--coral);
  color: #fffaf0;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: #cfc5b3;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #b5ab98;
  background-clip: padding-box;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

kbd {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border: 1px solid rgba(36, 40, 32, .13);
  border-radius: 5px;
  background: rgba(255, 255, 255, .45);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(36, 40, 32, .05);
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.app {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 326px;
  gap: 16px;
  width: 100%;
  max-width: 1920px;
  height: 100svh;
  margin: 0 auto;
  padding: 16px;
}

.sidebar {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 23px 17px 16px;
  overflow: hidden auto;
  border-radius: 27px;
  color: var(--cream);
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 97, 66, .17), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(157, 173, 137, .1), transparent 35%),
    var(--forest);
  box-shadow: 0 18px 48px rgba(31, 52, 44, .17);
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 5px;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(247, 240, 227, .2);
  border-radius: 10px;
  color: #f2b389;
  background: rgba(247, 240, 227, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-name {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: -.02em;
  line-height: 1;
}

.new-event-btn {
  display: flex;
  width: 100%;
  height: 47px;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: 0 10px 0 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 13px;
  color: var(--forest);
  background: var(--cream);
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.new-event-btn:hover {
  background: #fffaf0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .13);
  transform: translateY(-1px);
}

.new-event-btn:active {
  transform: translateY(0);
}

.new-event-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  color: var(--cream);
  background: var(--forest);
}

.new-event-icon .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.new-event-btn kbd {
  margin-left: auto;
  border-color: rgba(31, 52, 44, .14);
  background: rgba(31, 52, 44, .06);
  color: rgba(31, 52, 44, .55);
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 22px;
}

.nav-item {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: rgba(247, 240, 227, .63);
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  transition: color .16s ease, background .16s ease;
}

.nav-item .icon {
  width: 17px;
  height: 17px;
  opacity: .8;
}

.nav-item:hover {
  color: var(--cream);
  background: rgba(247, 240, 227, .06);
}

.nav-item.active {
  border-color: rgba(247, 240, 227, .1);
  color: var(--cream);
  background: rgba(247, 240, 227, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.nav-item.active .icon {
  opacity: 1;
}

.nav-badge {
  display: grid;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 5px;
  place-items: center;
  border-radius: 99px;
  color: var(--forest);
  background: rgba(247, 240, 227, .78);
  font-size: 9.5px;
  font-weight: 700;
}

.nav-badge.is-zero {
  display: none;
}

.sidebar-divider {
  height: 1px;
  margin: 20px 8px 18px;
  background: rgba(247, 240, 227, .1);
}

.sidebar-section {
  padding: 0 5px;
}

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

.sidebar-add-btn {
  display: grid;
  width: 20px;
  height: 20px;
  flex: none;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(247, 240, 227, .14);
  border-radius: 6px;
  color: rgba(247, 240, 227, .55);
  background: transparent;
  transition: color .15s ease, background .15s ease;
}

.sidebar-add-btn:hover {
  color: var(--cream);
  background: rgba(247, 240, 227, .09);
}

.sidebar-add-btn .icon {
  width: 11px;
  height: 11px;
}

.sidebar-section-label {
  margin: 0;
  color: rgba(247, 240, 227, .4);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.calendar-filters {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 8px;
}

.calendar-filter-wrap {
  display: flex;
  align-items: center;
  gap: 1px;
}

.calendar-filter-wrap .filter-row {
  min-width: 0;
  flex: 1;
}

.calendar-edit {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: rgba(247, 240, 227, .35);
  background: transparent;
  opacity: .35;
  transition: opacity .15s ease, color .15s ease, background .15s ease;
}

.calendar-filter-wrap:hover .calendar-edit,
.calendar-edit:focus-visible {
  opacity: 1;
}

.calendar-edit:hover {
  color: var(--cream);
  background: rgba(247, 240, 227, .09);
}

.calendar-edit .icon {
  width: 11px;
  height: 11px;
}

.filter-row {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 8px;
  padding: 0 5px;
  border-radius: 7px;
  color: rgba(247, 240, 227, .72);
  font-size: 11.5px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.filter-row:hover {
  color: var(--cream);
  background: rgba(247, 240, 227, .05);
}

.filter-row input {
  width: 14px;
  height: 14px;
  margin: 0;
  flex: none;
  appearance: none;
  border: 1px solid rgba(247, 240, 227, .28);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.filter-row input:checked {
  border-color: var(--cream);
  background: var(--cream);
}

.filter-row input:checked::after {
  content: "";
  display: block;
  width: 6px;
  height: 3px;
  margin: 3px 0 0 3px;
  border-bottom: 1.5px solid var(--forest);
  border-left: 1.5px solid var(--forest);
  transform: rotate(-45deg);
}

.filter-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--dot-color, var(--coral));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .05);
}

.filter-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-calendar {
  margin: 24px 3px 0;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 240, 227, .1);
}

.mini-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.mini-cal-title {
  margin: 0;
  color: rgba(247, 240, 227, .82);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

.mini-cal-nav {
  display: flex;
  gap: 1px;
}

.mini-cal-nav button {
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: rgba(247, 240, 227, .5);
  background: transparent;
}

.mini-cal-nav button:hover {
  color: var(--cream);
  background: rgba(247, 240, 227, .08);
}

.mini-cal-nav .icon {
  width: 13px;
  height: 13px;
}

.mini-weekdays,
.mini-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.mini-weekdays {
  margin-bottom: 3px;
}

.mini-weekdays span {
  display: grid;
  height: 18px;
  place-items: center;
  color: rgba(247, 240, 227, .32);
  font-size: 8px;
  font-weight: 600;
}

.mini-day {
  position: relative;
  display: grid;
  height: 26px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(247, 240, 227, .65);
  background: transparent;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.mini-day:hover {
  color: var(--cream);
  background: rgba(247, 240, 227, .09);
}

.mini-day.other-month {
  color: rgba(247, 240, 227, .2);
}

.mini-day.today {
  color: var(--forest);
  background: var(--cream);
  font-weight: 700;
}

.mini-day.selected:not(.today) {
  box-shadow: inset 0 0 0 1px rgba(247, 240, 227, .55);
  color: var(--cream);
}

.mini-dot {
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #eda27f;
  transform: translateX(-50%);
}

.mini-day.today .mini-dot {
  background: var(--forest);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
}

.shortcut-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(247, 240, 227, .1);
  border-radius: 12px;
  background: rgba(247, 240, 227, .04);
}

.shortcut-spark {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  border-radius: 7px;
  color: #f0ae83;
  background: rgba(247, 240, 227, .07);
}

.shortcut-spark .icon {
  width: 13px;
  height: 13px;
}

.shortcut-card p {
  margin: 1px 0 6px;
  color: rgba(247, 240, 227, .8);
  font-size: 10px;
  font-weight: 600;
}

.shortcut-row {
  display: flex;
  gap: 9px;
  color: rgba(247, 240, 227, .4);
  font-size: 8.5px;
}

.shortcut-row span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shortcut-row kbd {
  height: 16px;
  min-width: 16px;
  padding: 0 3px;
  border-color: rgba(247, 240, 227, .14);
  background: rgba(247, 240, 227, .07);
  color: rgba(247, 240, 227, .62);
  font-size: 8px;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid rgba(247, 240, 227, .1);
  border-radius: 11px;
  background: rgba(247, 240, 227, .045);
}

.account-avatar {
  display: grid;
  width: 29px;
  height: 29px;
  flex: none;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: #efc6a5;
  font-size: 10px;
  font-weight: 700;
}

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

.account-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.account-copy strong,
.account-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  color: rgba(247, 240, 227, .86);
  font-size: 9.5px;
  font-weight: 600;
}

.account-copy span {
  color: rgba(247, 240, 227, .35);
  font-size: 7.5px;
}

.account-logout {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: rgba(247, 240, 227, .35);
  background: transparent;
}

.account-logout:hover {
  color: #f0b39a;
  background: rgba(247, 240, 227, .08);
}

.account-logout .icon {
  width: 13px;
  height: 13px;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  padding-left: 5px;
  color: rgba(247, 240, 227, .3);
  font-size: 8px;
}

.sync-status .icon {
  width: 11px;
  height: 11px;
  color: #9eb68d;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9eb68d;
  box-shadow: 0 0 0 3px rgba(158, 182, 141, .09);
}

/* --------------------------------------------------------------------------
   Main
   -------------------------------------------------------------------------- */

.main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(64, 54, 38, .07);
  border-radius: 27px;
  background: #fcf9f3;
  box-shadow: var(--shadow-md);
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 72px;
  flex: none;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(252, 249, 243, .9);
  backdrop-filter: blur(12px);
}

.icon-btn.menu-toggle {
  display: none;
}

.today-note {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.today-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 1px solid #eadfcd;
  border-radius: 50%;
  color: var(--gold);
  background: #f8f1e5;
}

.today-icon .icon {
  width: 17px;
  height: 17px;
}

.today-note div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.today-note span {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
}

.today-note strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.search-wrap {
  position: relative;
  width: clamp(210px, 23vw, 320px);
}

.search-box {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #faf6ee;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.search-box:focus-within {
  border-color: #c7beae;
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(31, 52, 44, .05);
}

.search-icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--muted-light);
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 11.5px;
}

.search-box input::placeholder {
  color: #aaa69a;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-kbd {
  flex: none;
  border-color: var(--line);
  background: #f3ede2;
  color: #9b9689;
}

.search-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  z-index: 60;
  max-height: min(420px, calc(100vh - 120px));
  padding: 8px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 22px 60px rgba(45, 37, 24, .19);
  animation: panelIn .15s ease;
}

.search-group-label {
  margin: 8px 9px 5px;
  color: var(--muted-light);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.search-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
}

.search-result:hover,
.search-result:focus-visible {
  outline: 0;
  background: var(--paper-warm);
}

.search-result-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  color: var(--forest);
  background: var(--forest-faint);
}

.search-result-icon.is-task {
  color: var(--coral-deep);
  background: var(--coral-soft);
}

.search-result-icon .icon {
  width: 14px;
  height: 14px;
}

.search-result-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.search-result-copy strong {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy span {
  color: var(--muted);
  font-size: 9.5px;
}

.search-empty {
  padding: 22px 12px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.btn {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 15px;
  height: 15px;
}

.btn-primary {
  border-color: var(--forest);
  color: var(--cream);
  background: var(--forest);
  box-shadow: 0 5px 13px rgba(31, 52, 44, .13);
}

.btn-primary:hover {
  border-color: var(--forest-light);
  background: var(--forest-light);
}

.btn-soft {
  border-color: #e4dac9;
  color: var(--ink-soft);
  background: #f6efe3;
}

.btn-soft:hover {
  border-color: #d7c8b2;
  background: #f1e7d7;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink-soft);
  background: transparent;
}

.btn-ghost:hover {
  border-color: #d7cbb9;
  background: var(--paper-warm);
}

.btn-danger {
  border-color: #ecd0c7;
  color: #a8472d;
  background: transparent;
}

.btn-danger:hover {
  border-color: #e2b8ac;
  background: #fbede8;
}

.btn-small {
  height: 32px;
  padding: 0 11px;
  font-size: 10.5px;
}

.icon-btn {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.icon-btn:hover {
  color: var(--ink);
  background: rgba(36, 40, 32, .055);
}

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

.rail-toggle {
  display: none;
  height: 38px;
}

/* --------------------------------------------------------------------------
   Calendar view
   -------------------------------------------------------------------------- */

.view {
  min-height: 0;
}

.calendar-view {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 20px;
  overflow: hidden auto;
}

.page-head {
  display: flex;
  flex: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 17px;
}

.page-heading {
  min-width: 0;
}

.page-eyebrow {
  margin: 0 0 7px;
  color: var(--coral-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.page-title {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(46px, 4.2vw, 60px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .88;
}

.page-year {
  color: var(--muted-light);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

.page-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.page-controls {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
}

.view-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4eee3;
}

.view-toggle button {
  height: 29px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 10.5px;
  font-weight: 600;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.view-toggle button:hover {
  color: var(--ink);
}

.view-toggle button.active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(57, 46, 30, .09);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-arrow {
  width: 33px;
  height: 33px;
  border-color: var(--line);
  border-radius: 9px;
  background: var(--paper);
}

.nav-controls .btn-soft {
  height: 33px;
  padding: 0 12px;
  font-size: 10.5px;
}

.sample-banner {
  display: flex;
  flex: none;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
  padding: 9px 11px;
  border: 1px solid #d8e1d2;
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 97, 66, .07), transparent 35%),
    #f0f5ec;
}

.sample-banner-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  color: #4f654f;
  background: rgba(93, 116, 95, .12);
}

.sample-banner-icon .icon {
  width: 14px;
  height: 14px;
}

.sample-banner-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.sample-banner-copy strong {
  color: #3c543d;
  font-size: 10.5px;
  font-weight: 600;
}

.sample-banner-copy span {
  overflow: hidden;
  color: #70806d;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-banner .btn {
  flex: none;
  border-color: rgba(60, 84, 61, .18);
  color: #3c543d;
  background: rgba(255, 253, 248, .7);
}

.sample-banner .btn:hover {
  border-color: rgba(60, 84, 61, .3);
  background: var(--paper);
}

.sample-tag {
  padding: 2px 5px;
  border-radius: 4px;
  color: #6d7c68;
  background: #edf2e9;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.calendar-panel {
  display: flex;
  min-height: 600px;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(65, 52, 33, .055);
}

.month-shell {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.weekday-row {
  display: grid;
  flex: none;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fbf7ef;
}

.weekday-row span {
  display: flex;
  height: 35px;
  align-items: center;
  padding-left: 11px;
  border-right: 1px solid transparent;
  color: var(--muted-light);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.weekday-row span:first-child,
.weekday-row span:last-child {
  color: #b28d79;
}

.month-grid {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-auto-rows: minmax(88px, 1fr);
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--paper);
}

.day-cell {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 7px 8px 6px;
  overflow: hidden;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
  cursor: pointer;
  transition: background .14s ease, box-shadow .14s ease;
}

.day-cell:nth-child(7n) {
  border-right: 0;
}

.day-cell:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.day-cell:hover {
  background: #fdf9f2;
}

.day-cell.other-month {
  background: #fbf8f1;
}

.day-cell.other-month:hover {
  background: #f8f4ec;
}

.day-cell.is-weekend:not(.other-month) {
  background: #fefbf5;
}

.day-cell.is-weekend.other-month {
  background: #f9f5ed;
}

.day-cell.is-selected {
  z-index: 1;
  background: #fbf4e7;
  box-shadow: inset 0 0 0 1.5px rgba(31, 52, 44, .5);
}

.day-cell.is-selected:hover {
  background: #faf2e3;
}

.day-cell.is-drop-target {
  z-index: 2;
  background: #f1eadb;
  box-shadow: inset 0 0 0 2px var(--coral);
}

.day-cell-head {
  display: flex;
  height: 21px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.day-number {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.other-month .day-number {
  color: #b7b1a4;
  font-weight: 500;
}

.day-cell.is-today .day-number {
  color: var(--cream);
  background: var(--forest);
  box-shadow: 0 3px 8px rgba(31, 52, 44, .18);
}

.cell-task-marker {
  display: none;
  width: 5px;
  height: 5px;
  flex: none;
  border: 1px solid var(--sage);
  border-radius: 50%;
}

.cell-add {
  display: grid;
  width: 20px;
  height: 20px;
  padding: 0;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--forest);
  background: #eee7da;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .14s ease, transform .14s ease, background .14s ease;
}

.cell-add .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.day-cell:hover .cell-add,
.cell-add:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.cell-add:hover {
  background: #e5dccb;
}

.event-chip {
  display: flex;
  width: 100%;
  height: 21px;
  min-height: 21px;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  border-left: 2px solid var(--cal-color, var(--coral));
  color: var(--ink);
  background: var(--paper-warm);
  background: color-mix(in srgb, var(--cal-color, #d86142) 15%, var(--paper));
  font-size: 9.5px;
  line-height: 1;
  text-align: left;
  transition: filter .12s ease, transform .12s ease;
}

.event-chip:hover {
  filter: brightness(.96) saturate(1.05);
  transform: translateX(1px);
}

.event-chip[draggable="true"] {
  cursor: grab;
}

.event-chip.is-dragging {
  opacity: .38;
}

.event-chip-time {
  flex: none;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: -.01em;
  opacity: .76;
}

.event-chip.is-all-day .event-chip-time {
  font-size: 7.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.event-chip-title {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-chip-dot {
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--cal-color, var(--coral));
}

.task-chip {
  display: flex;
  width: 100%;
  height: 19px;
  min-height: 19px;
  align-items: center;
  gap: 5px;
  padding: 1px 5px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  text-align: left;
}

.task-chip:hover {
  background: #f4eee2;
  color: var(--ink-soft);
}

.task-chip .task-chip-check {
  width: 7px;
  height: 7px;
  flex: none;
  border: 1px solid #b8ae9d;
  border-radius: 50%;
}

.task-chip-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-more {
  width: fit-content;
  padding: 0 5px;
  border: 0;
  color: var(--muted-light);
  background: transparent;
  font-size: 8.5px;
  font-weight: 500;
  text-align: left;
}

.day-more:hover {
  color: var(--ink);
  text-decoration: underline;
}

.cat-personal {
  --chip-bg: #f6e4dc;
  --chip-ink: #773826;
  --chip-dot: #d86142;
}

.cat-work {
  --chip-bg: #e7ede3;
  --chip-ink: #3c543d;
  --chip-dot: #5d745f;
}

.cat-birthday {
  --chip-bg: #f5e1e9;
  --chip-ink: #793b54;
  --chip-dot: #b25e7e;
}

.cat-focus {
  --chip-bg: #f4ead5;
  --chip-ink: #73531d;
  --chip-dot: #b5822f;
}

/* Week view */

.week-shell {
  display: flex;
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.week-scroll {
  min-width: 760px;
  width: 100%;
}

.week-head,
.week-allday,
.week-body {
  display: grid;
  grid-template-columns: var(--time-col) repeat(7, minmax(0, 1fr));
}

.week-head {
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 1px solid var(--line);
  background: #fbf7ef;
}

.week-head-gutter {
  border-right: 1px solid var(--line);
}

.week-day-head {
  position: relative;
  display: flex;
  height: 58px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  padding: 6px 10px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.week-day-head:last-child {
  border-right: 0;
}

.week-day-head:hover {
  background: #f6efe2;
}

.week-day-head .weekday-name {
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.week-date-num {
  display: grid;
  width: 24px;
  height: 24px;
  margin-left: -5px;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.week-day-head.is-today .week-date-num {
  color: var(--cream);
  background: var(--forest);
}

.week-day-head.is-selected {
  background: #fbf4e7;
  box-shadow: inset 0 -2px 0 var(--coral);
}

.week-event-count {
  position: absolute;
  right: 9px;
  bottom: 9px;
  color: var(--muted-light);
  font-size: 8px;
}

.week-allday {
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  background: #fdfbf6;
}

.week-allday-label {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 11px 8px 4px 0;
  border-right: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .09em;
}

.week-allday-cell {
  display: flex;
  min-height: 42px;
  flex-direction: column;
  gap: 2px;
  padding: 5px 5px;
  border-right: 1px solid var(--line-soft);
}

.week-allday-cell:last-child {
  border-right: 0;
}

.allday-chip {
  display: flex;
  width: 100%;
  min-height: 20px;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  color: var(--chip-ink);
  background: var(--chip-bg);
  font-size: 8.5px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.allday-chip:hover {
  filter: brightness(.96);
}

.allday-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.allday-task {
  background: transparent;
  color: var(--muted);
  font-weight: 400;
}

.allday-task .task-chip-check {
  width: 7px;
  height: 7px;
  flex: none;
  border: 1px solid #b8ae9d;
  border-radius: 50%;
}

.week-body {
  position: relative;
  min-height: calc(var(--hour-height) * 14);
}

.time-gutter {
  position: relative;
  height: calc(var(--hour-height) * 14);
  border-right: 1px solid var(--line);
  background: #fdfbf6;
}

.time-label {
  position: absolute;
  right: 9px;
  color: var(--muted-light);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transform: translateY(-50%);
}

.week-col {
  position: relative;
  height: calc(var(--hour-height) * 14);
  border-right: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour-height) - 1px), var(--line-soft) calc(var(--hour-height) - 1px), var(--line-soft) var(--hour-height));
  cursor: crosshair;
}

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

.week-col.is-weekend {
  background-color: #fefbf5;
}

.week-event {
  position: absolute;
  z-index: 2;
  display: flex;
  min-height: 23px;
  flex-direction: column;
  gap: 1px;
  padding: 4px 5px;
  overflow: hidden;
  border: 0;
  border-left: 2px solid var(--cal-color, var(--coral));
  border-radius: 5px;
  color: var(--ink-soft);
  background: var(--paper-warm);
  background: color-mix(in srgb, var(--cal-color, #d86142) 15%, var(--paper));
  font-size: 8.5px;
  line-height: 1.2;
  text-align: left;
  box-shadow: 0 1px 2px rgba(70, 54, 32, .05);
}

.week-event:hover {
  z-index: 5;
  filter: brightness(.97);
  box-shadow: 0 4px 13px rgba(70, 54, 32, .13);
}

.week-event-title {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-event-time {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 7.5px;
  opacity: .68;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-event.is-compact {
  justify-content: center;
  padding: 2px 4px;
}

.week-event.is-compact .week-event-time {
  display: none;
}

.now-line {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 4;
  height: 1px;
  background: var(--coral);
  pointer-events: none;
}

.now-line::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.calendar-footer {
  display: flex;
  height: 38px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  background: #fcf9f2;
}

.footer-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-light);
  font-size: 9px;
}

.footer-hint-right .icon {
  width: 12px;
  height: 12px;
}

.hint-mark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

/* --------------------------------------------------------------------------
   Right rail
   -------------------------------------------------------------------------- */

.right-rail {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 13px;
  overflow: hidden auto;
  padding-right: 1px;
  scrollbar-width: thin;
}

.rail-card {
  flex: none;
  padding: 20px;
  border: 1px solid rgba(64, 54, 38, .07);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.day-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 97, 66, .07), transparent 28%),
    var(--paper);
}

.day-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  margin: 0;
  color: var(--coral-deep);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.day-big-date {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 6px;
}

#selectedDaynum {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 53px;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .76;
}

.day-month-year {
  padding-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
}

.day-head-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rail-close {
  display: none;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #f8f2e7;
}

.rail-close:hover {
  color: var(--ink);
  background: var(--paper-warm);
}

.rail-close .icon {
  width: 12px;
  height: 12px;
}

.mini-pill {
  height: 25px;
  padding: 0 9px;
  border: 1px solid #e7dccb;
  border-radius: 99px;
  color: var(--muted);
  background: #f8f2e7;
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}

.mini-pill:hover {
  border-color: #d7c8b2;
  color: var(--ink);
}

.mini-pill.is-today {
  border-color: var(--forest);
  color: var(--cream);
  background: var(--forest);
}

.day-progress {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 19px;
  padding: 12px;
  border: 1px solid #ece3d4;
  border-radius: 13px;
  background: #fbf6ed;
}

.mini-ring {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
}

.mini-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.mini-ring .ring-track {
  fill: none;
  stroke: #e8dfd0;
  stroke-width: 4;
}

.mini-ring .ring-fill {
  fill: none;
  stroke: var(--forest);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset .35s ease;
}

.mini-ring > span {
  position: relative;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.day-progress-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.day-progress-copy strong {
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-progress-copy span {
  color: var(--muted);
  font-size: 9px;
}

.rail-section {
  margin-top: 21px;
}

.rail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.rail-section-head h2 {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
}

.tiny-btn {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #f5eee2;
}

.tiny-btn .icon {
  width: 13px;
  height: 13px;
}

.agenda-list,
.rail-task-list {
  display: flex;
  flex-direction: column;
}

.agenda-event {
  display: grid;
  width: 100%;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}

.agenda-event:hover {
  background: #faf5eb;
}

.agenda-time {
  padding-top: 2px;
  color: var(--muted-light);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.agenda-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.agenda-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.agenda-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--cal-color, var(--coral));
}

.agenda-title {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 7px;
}

.rail-task:hover {
  background: #faf5eb;
}

.rail-task-check {
  display: grid;
  width: 17px;
  height: 17px;
  flex: none;
  padding: 0;
  place-items: center;
  border: 1.5px solid #c7bdab;
  border-radius: 50%;
  color: transparent;
  background: transparent;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.rail-task-check:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.rail-task-check .icon {
  width: 9px;
  height: 9px;
  stroke-width: 2.4;
}

.rail-task.is-done .rail-task-check {
  border-color: var(--forest);
  color: var(--cream);
  background: var(--forest);
}

.rail-task-body {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 6px;
  padding: 1px 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.rail-task-title {
  overflow: hidden;
  flex: 1;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-task.is-done .rail-task-title {
  color: var(--muted-light);
  text-decoration: line-through;
}

.priority-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #c7bdab;
}

.priority-dot.high {
  background: var(--coral);
}

.priority-dot.medium {
  background: var(--gold);
}

.priority-dot.low {
  background: var(--sage);
}

.quick-task-form {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0 3px 0 8px;
  border: 1px dashed #dcd1bf;
  border-radius: 10px;
  background: #fdfaf4;
  transition: border-color .16s ease, background .16s ease;
}

.quick-task-form:focus-within {
  border-style: solid;
  border-color: #c7b9a3;
  background: var(--paper);
}

.quick-plus {
  width: 13px;
  height: 13px;
  color: var(--muted-light);
}

.quick-task-form input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.quick-task-form input::placeholder {
  color: #aaa496;
}

.quick-submit {
  display: grid;
  width: 27px;
  height: 27px;
  flex: none;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--cream);
  background: var(--forest);
  opacity: .85;
}

.quick-submit:hover {
  opacity: 1;
  background: var(--forest-light);
}

.quick-submit .icon {
  width: 13px;
  height: 13px;
}

.empty-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 5px;
  color: var(--muted-light);
  font-size: 9.5px;
}

.empty-inline button {
  border: 0;
  color: var(--coral-deep);
  background: transparent;
  font-size: 9.5px;
  font-weight: 600;
}

.empty-inline button:hover {
  text-decoration: underline;
}

.up-next {
  padding: 18px 20px 12px;
}

.up-next .rail-section-head {
  align-items: flex-start;
  margin-bottom: 7px;
}

.up-next h2 {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.02em;
}

.rail-meta {
  padding-top: 4px;
  color: var(--muted-light);
  font-size: 8px;
}

.upnext-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
}

.upnext-item:hover .upnext-title {
  color: var(--coral-deep);
}

.upnext-date {
  display: flex;
  width: 39px;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 5px 3px 4px;
  border: 1px solid #e9e0d1;
  border-radius: 7px;
  background: #faf5eb;
}

.upnext-date span {
  color: var(--muted-light);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .08em;
}

.upnext-date strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.upnext-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.upnext-title {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .14s ease;
}

.upnext-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upnext-arrow {
  width: 13px;
  height: 13px;
  color: var(--muted-light);
}

.rail-empty {
  padding: 14px 2px 12px;
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   To-do view
   -------------------------------------------------------------------------- */

.tasks-view {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px 28px 28px;
  overflow: hidden auto;
}

.tasks-page-head {
  display: flex;
  flex: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.tasks-title {
  gap: 0;
  font-size: clamp(46px, 4.2vw, 58px);
}

.title-dot {
  color: var(--coral);
  font-family: var(--font-display);
}

.task-stats {
  display: grid;
  flex: none;
  grid-template-columns: 1.25fr repeat(3, minmax(0, .75fr));
  gap: 10px;
  margin-top: 20px;
}

.stat-card {
  display: flex;
  min-height: 89px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 4px 12px rgba(65, 52, 33, .035);
}

.stat-card.is-progress {
  background:
    radial-gradient(circle at 100% 0%, rgba(93, 116, 95, .07), transparent 40%),
    var(--paper);
}

.progress-disc {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--forest) var(--progress-deg, 0deg), #e9e1d3 0);
}

.progress-disc::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--paper);
}

.progress-disc span {
  position: relative;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.stat-number {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: .9;
}

.stat-label {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1.25;
}

.stat-card.alert .stat-number {
  color: var(--coral-deep);
}

.task-toolbar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.filter-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4eee3;
}

.filter-tabs button {
  display: flex;
  height: 29px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.filter-tabs button:hover {
  color: var(--ink);
}

.filter-tabs button.active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(57, 46, 30, .09);
}

.filter-count {
  display: grid;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  place-items: center;
  border-radius: 99px;
  color: var(--muted);
  background: #ebe2d4;
  font-size: 8px;
  font-weight: 700;
}

.filter-tabs button.active .filter-count {
  color: var(--cream);
  background: var(--forest);
}

.list-filter-bar {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line-soft);
}

.list-chip {
  display: inline-flex;
  height: 27px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.list-chip:hover {
  border-color: #d3c5b1;
  color: var(--ink);
}

.list-chip.active {
  border-color: var(--forest);
  color: var(--cream);
  background: var(--forest);
}

.list-chip .filter-dot {
  width: 5px;
  height: 5px;
}

.list-chip.active .filter-dot {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .15);
}

.list-chip.add-list {
  border-style: dashed;
  color: var(--muted-light);
}

.list-chip.add-list:hover {
  border-color: var(--coral);
  color: var(--coral-deep);
}

.task-groups {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 23px;
  margin-top: 21px;
}

.task-group-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.task-group-head h3 {
  margin: 0;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.task-group-head.is-overdue h3 {
  color: var(--coral-deep);
}

.task-group-count {
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 99px;
  color: var(--muted-light);
  background: #f0e9dc;
  font-size: 8px;
  font-weight: 600;
}

.task-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(65, 52, 33, .03);
}

.task-row {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
  transition: background .13s ease;
}

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

.task-row:hover {
  background: #fdf9f2;
}

.task-check {
  display: grid;
  width: 20px;
  height: 20px;
  flex: none;
  padding: 0;
  place-items: center;
  border: 1.5px solid #c8bda9;
  border-radius: 50%;
  color: transparent;
  background: transparent;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.task-check:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.task-check .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.3;
}

.task-row.is-done .task-check {
  border-color: var(--forest);
  color: var(--cream);
  background: var(--forest);
}

.task-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.task-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-row.is-done {
  background: #fdfbf6;
}

.task-row.is-done .task-title {
  color: var(--muted-light);
  text-decoration: line-through;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1;
}

.task-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.task-meta .icon {
  width: 10px;
  height: 10px;
  opacity: .7;
}

.task-due.is-overdue {
  color: var(--coral-deep);
  font-weight: 600;
}

.task-due.is-today {
  color: var(--gold);
  font-weight: 600;
}

.task-list-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mini-dot-color {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--list-color, var(--sage));
}

.priority-tag {
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--muted);
  background: #f3eee4;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.priority-tag.high {
  color: #9e3d27;
  background: var(--coral-soft);
}

.priority-tag.medium {
  color: #805d20;
  background: var(--gold-soft);
}

.priority-tag.low {
  color: #4f654f;
  background: var(--sage-soft);
}

.task-row-actions {
  display: flex;
  flex: none;
  gap: 1px;
  opacity: 0;
  transition: opacity .14s ease;
}

.task-row:hover .task-row-actions,
.task-row:focus-within .task-row-actions {
  opacity: 1;
}

.task-row-action {
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--muted-light);
  background: transparent;
}

.task-row-action:hover {
  color: var(--ink);
  background: #f2ebdf;
}

.task-row-action.is-danger:hover {
  color: var(--coral-deep);
  background: var(--coral-soft);
}

.task-row-action .icon {
  width: 13px;
  height: 13px;
}

.empty-state {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 20px;
  border: 1px dashed #dbd0bd;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 97, 66, .05), transparent 50%),
    #fdfaf4;
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 47px;
  height: 47px;
  margin-bottom: 13px;
  place-items: center;
  border: 1px solid #e7dcc9;
  border-radius: 50%;
  color: var(--coral-deep);
  background: #fbf4e8;
}

.empty-state-icon .icon {
  width: 20px;
  height: 20px;
}

.empty-state h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -.01em;
}

.empty-state p {
  max-width: 260px;
  margin: 6px 0 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Dialogs
   -------------------------------------------------------------------------- */

.modal {
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100svh - 30px);
  padding: 0;
  overflow: hidden auto;
  border: 0;
  border-radius: 23px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 36px 110px rgba(27, 34, 27, .33);
}

.modal-small {
  width: min(400px, calc(100vw - 28px));
}

.modal[open] {
  animation: modalIn .19s cubic-bezier(.22, .9, .33, 1);
}

.modal::backdrop {
  background: rgba(24, 34, 28, .42);
  backdrop-filter: blur(4px);
}

.modal-form {
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-head h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
}

.modal-head .icon-btn {
  margin: -4px -5px 0 0;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.field label span {
  color: var(--muted-light);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.field-title {
  margin-bottom: 15px;
}

.field-title input {
  height: 45px;
  font-size: 13.5px;
  font-weight: 500;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #e2d8c8;
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #fbf7f0;
  font-size: 11.5px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.field input,
.field select {
  height: 40px;
  padding: 0 10px;
}

.field textarea {
  min-height: 58px;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.45;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa497;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #b9ab95;
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(31, 52, 44, .055);
}

.field select {
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237e7d72' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}

.field-hint {
  margin: -7px 0 14px;
  color: var(--muted-light);
  font-size: 8.5px;
}

.priority-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.priority-option {
  position: relative;
  cursor: pointer;
}

.priority-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.priority-option span {
  display: flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e2d8c8;
  border-radius: 8px;
  color: var(--muted);
  background: #fbf7f0;
  font-size: 9.5px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.priority-option span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c4baa7;
}

.priority-option input:checked + span {
  border-color: var(--forest);
  color: var(--forest);
  background: #eef2ec;
}

.priority-high span::before {
  background: var(--coral);
}

.priority-medium span::before {
  background: var(--gold);
}

.priority-low span::before {
  background: var(--sage);
}

.priority-option input:focus-visible + span {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.color-options {
  display: flex;
  gap: 10px;
  padding: 3px 0;
}

.color-option {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  cursor: pointer;
}

.color-option input {
  position: absolute;
  opacity: 0;
}

.color-option span {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--swatch);
  transition: transform .15s ease, box-shadow .15s ease;
}

.color-option input:checked + span {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--swatch);
  transform: scale(.9);
}

.color-option input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.form-error {
  margin: 3px 0 0;
  padding: 8px 10px;
  border-radius: 7px;
  color: #983f2b;
  background: #fbebe5;
  font-size: 9.5px;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 21px;
  padding-top: 17px;
  border-top: 1px solid var(--line-soft);
}

.modal-actions-right {
  display: flex;
  gap: 7px;
  margin-left: auto;
}

.modal-actions .btn {
  height: 37px;
}

/* --------------------------------------------------------------------------
   Toast / backdrop
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 23px;
  left: 50%;
  z-index: 250;
  display: flex;
  max-width: min(430px, calc(100vw - 28px));
  align-items: center;
  gap: 9px;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(247, 240, 227, .12);
  border-radius: 12px;
  color: var(--cream);
  background: #20342b;
  box-shadow: 0 16px 45px rgba(21, 31, 25, .3);
  font-size: 10.5px;
  transform: translateX(-50%);
  animation: toastIn .22s cubic-bezier(.2, .9, .3, 1);
}

.toast-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #e9a67f;
}

.toast-message {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-action {
  padding: 3px 5px;
  border: 0;
  color: #f1b48e;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.toast-action:hover {
  color: #ffd1b6;
  text-decoration: underline;
}

.toast-close {
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: rgba(247, 240, 227, .45);
  background: transparent;
}

.toast-close:hover {
  color: var(--cream);
  background: rgba(247, 240, 227, .08);
}

.toast-close .icon {
  width: 12px;
  height: 12px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(23, 33, 27, .37);
  backdrop-filter: blur(2px);
  animation: fadeIn .16s ease;
}

.account-menu-wrap {
  position: relative;
  flex: none;
}

.topbar-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid #d8ccb9;
  border-radius: 50%;
  color: var(--forest);
  background: #efc6a5;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 2px 7px rgba(65, 52, 33, .07);
}

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

.topbar-avatar:hover {
  border-color: #c6b59d;
}

.account-popover {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 70;
  width: 246px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 20px 55px rgba(45, 37, 24, .18);
  animation: panelIn .15s ease;
}

.popover-account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 5px 10px;
}

.popover-account .account-avatar {
  width: 33px;
  height: 33px;
  background: #efc6a5;
  color: var(--forest);
}

.popover-account .account-copy strong {
  color: var(--ink);
  font-size: 10.5px;
}

.popover-account .account-copy span {
  color: var(--muted);
  font-size: 8.5px;
}

.popover-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted-light);
  font-size: 8.5px;
}

.popover-signout {
  display: flex;
  width: 100%;
  height: 32px;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 9.5px;
  font-weight: 500;
  text-align: left;
}

.popover-signout:hover {
  color: var(--coral-deep);
  background: var(--coral-soft);
}

.popover-signout .icon {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   Loading, sign-in, and fatal states
   -------------------------------------------------------------------------- */

.loading-screen,
.app-error-screen {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 252, 244, .92), transparent 36%),
    var(--bg);
}

.loading-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 31px;
  letter-spacing: -.02em;
}

.loading-brand .brand-mark {
  border-color: rgba(31, 52, 44, .15);
  color: var(--forest);
  background: var(--paper);
}

.loading-track {
  width: 158px;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: #ddd3c2;
}

.loading-track span {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  animation: loadingSweep 1.25s ease-in-out infinite;
}

.loading-screen p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .02em;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
  padding: 18px;
  overflow: auto;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 251, 243, .9), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(205, 191, 168, .38), transparent 44%),
    var(--bg);
}

.auth-page {
  display: flex;
  width: min(1110px, 100%);
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  gap: 16px;
}

.auth-shell {
  display: grid;
  width: 100%;
  min-height: min(660px, calc(100svh - 36px));
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
  overflow: hidden;
  border: 1px solid rgba(64, 54, 38, .08);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 35px 100px rgba(56, 43, 27, .17);
}

.auth-visual {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 37px 39px 27px;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 91% 7%, rgba(216, 97, 66, .25), transparent 28%),
    radial-gradient(circle at 5% 100%, rgba(157, 173, 137, .13), transparent 35%),
    var(--forest);
}

.auth-visual::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -150px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(247, 240, 227, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(247, 240, 227, .025), 0 0 0 76px rgba(247, 240, 227, .016);
  pointer-events: none;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -.02em;
}

.auth-brand .brand-mark {
  border-color: rgba(247, 240, 227, .18);
  color: #f2b389;
  background: rgba(247, 240, 227, .06);
}

.auth-visual-copy {
  position: relative;
  z-index: 1;
  margin-top: clamp(42px, 8vh, 82px);
  max-width: 475px;
}

.auth-visual-copy .eyebrow {
  color: #e9a483;
}

.auth-visual-copy h1 {
  margin: 12px 0 15px;
  font-family: var(--font-display);
  font-size: clamp(53px, 5.6vw, 76px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .86;
}

.auth-visual-copy h1 em {
  color: #f0ad86;
  font-weight: 400;
}

.auth-visual-copy > p {
  max-width: 340px;
  margin: 0;
  color: rgba(247, 240, 227, .58);
  font-size: 12px;
  line-height: 1.65;
}

.auth-calendar-art {
  position: relative;
  z-index: 1;
  width: min(88%, 390px);
  margin: 35px 0 0 auto;
  padding: 17px;
  border: 1px solid rgba(247, 240, 227, .12);
  border-radius: 17px;
  background: rgba(247, 240, 227, .055);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .13);
  backdrop-filter: blur(8px);
  transform: rotate(-1.7deg);
}

.auth-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: rgba(247, 240, 227, .73);
  font-size: 8.5px;
  font-weight: 600;
}

.auth-cal-today {
  padding: 3px 7px;
  border-radius: 99px;
  color: var(--forest);
  background: var(--cream);
  font-size: 7px;
  font-weight: 700;
}

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

.auth-cal-weekdays span {
  display: grid;
  height: 18px;
  place-items: center;
  color: rgba(247, 240, 227, .28);
  font-size: 6.5px;
  font-weight: 600;
}

.auth-cal-grid span {
  position: relative;
  display: grid;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: rgba(247, 240, 227, .6);
  font-size: 7.5px;
  font-variant-numeric: tabular-nums;
}

.auth-cal-grid .is-ghost {
  color: rgba(247, 240, 227, .16);
}

.auth-cal-grid .is-today {
  color: var(--forest);
  background: var(--cream);
  font-weight: 700;
}

.auth-cal-grid .has-note::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.auth-cal-grid .note-coral {
  color: #f0a486;
}

.auth-cal-grid .note-sage {
  color: #b7c6a9;
}

.auth-cal-grid .note-gold {
  color: #e9c380;
}

.auth-cal-grid .note-rose {
  color: #e2a9bc;
}

.auth-cal-agenda {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(247, 240, 227, .1);
}

.auth-cal-agenda span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(247, 240, 227, .55);
  font-size: 7.5px;
}

.auth-cal-agenda i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e9a483;
}

.auth-cal-agenda b {
  margin-left: auto;
  color: rgba(247, 240, 227, .32);
  font-size: 6.5px;
  font-weight: 500;
}

.auth-visual-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: auto 0 0;
  padding-top: 22px;
  color: rgba(247, 240, 227, .3);
  font-size: 8px;
}

.auth-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 42px 30px;
  background:
    radial-gradient(circle at 100% 100%, rgba(216, 97, 66, .04), transparent 36%),
    var(--paper);
}

.auth-card {
  width: min(354px, 100%);
}

.auth-card-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid #e7dccb;
  border-radius: 12px;
  color: var(--gold);
  background: #fbf4e8;
  box-shadow: 0 4px 12px rgba(65, 52, 33, .05);
}

.auth-card-mark .icon {
  width: 19px;
  height: 19px;
}

.auth-card h2 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-size: 45px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .9;
}

.auth-desc {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 21px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.auth-field label span {
  color: var(--muted-light);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auth-text-link {
  padding: 0;
  border: 0;
  color: var(--coral-deep);
  background: transparent;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.auth-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-field input {
  width: 100%;
  height: 41px;
  padding: 0 11px;
  border: 1px solid #e2d8c8;
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #fbf7f0;
  font-size: 11.5px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.auth-field input::placeholder {
  color: #aaa497;
}

.auth-field input:focus {
  border-color: #b9ab95;
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(31, 52, 44, .055);
}

.auth-hint {
  margin: 0;
  color: var(--muted-light);
  font-size: 8px;
  line-height: 1.45;
}

.auth-submit {
  width: 100%;
  height: 45px;
  margin-top: 4px;
  border-radius: 9px;
  font-size: 11px;
}

.auth-submit .icon {
  width: 14px;
  height: 14px;
}

.auth-wide {
  width: 100%;
  height: 41px;
  border-radius: 9px;
  font-size: 10.5px;
}

.auth-link-button {
  display: block;
  width: fit-content;
  margin: 13px auto 0;
  padding: 2px 0;
  border: 0;
  color: var(--coral-deep);
  background: transparent;
  font-size: 8.5px;
  font-weight: 600;
  text-align: center;
}

.auth-link-button:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-switch {
  margin-top: 17px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.auth-switch button {
  padding: 0;
  border: 0;
  color: var(--coral-deep);
  background: transparent;
  font-size: inherit;
  font-weight: 700;
}

.auth-switch button:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-code-field input {
  height: 52px;
  padding: 0 12px 0 18px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .35em;
  text-align: center;
}

.auth-resend {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  text-align: center;
}

.auth-resend button {
  padding: 0;
  border: 0;
  color: var(--coral-deep);
  background: transparent;
  font-size: inherit;
  font-weight: 600;
}

.auth-resend button:disabled {
  color: var(--muted-light);
  cursor: default;
}

.auth-error {
  margin: 15px 0 0;
  padding: 9px 11px;
  border: 1px solid #eed1c7;
  border-radius: 8px;
  color: #983f2b;
  background: #fceee9;
  font-size: 9.5px;
  line-height: 1.45;
}

.auth-notice {
  margin: 15px 0 0;
  padding: 9px 11px;
  border: 1px solid #d8e1d2;
  border-radius: 8px;
  color: #42583f;
  background: #f0f5ec;
  font-size: 9.5px;
  line-height: 1.45;
}

.google-btn {
  display: flex;
  height: 51px;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border: 1px solid #ded4c4;
  border-radius: 12px;
  color: var(--ink);
  background: #fffefa;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(65, 52, 33, .065);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.google-btn:hover {
  border-color: #cabdaa;
  box-shadow: 0 9px 24px rgba(65, 52, 33, .11);
  transform: translateY(-1px);
}

.google-btn:active {
  transform: translateY(0);
}

.google-btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.google-g {
  width: 20px;
  height: 20px;
  flex: none;
}

.auth-arrow {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--muted-light);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 13px;
  color: var(--muted-light);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line-soft);
}

.auth-privacy {
  margin: 0;
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.6;
}

.auth-smallprint {
  margin: 35px 0 0;
  color: #b3ad9f;
  font-size: 7.5px;
  text-align: center;
}

.auth-smallprint a {
  color: var(--coral-deep);
  text-underline-offset: 2px;
}

.auth-mobile-brand {
  display: none;
}

.auth-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auth-feature {
  padding: 19px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, .72);
  box-shadow: 0 6px 20px rgba(66, 51, 31, .035);
}

.auth-feature-icon {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 13px;
  place-items: center;
  border: 1px solid #e4d9c8;
  border-radius: 9px;
  color: var(--coral-deep);
  background: #fbf4e8;
}

.auth-feature-icon .icon {
  width: 15px;
  height: 15px;
}

.auth-feature-num {
  margin: 0 0 5px;
  color: var(--muted-light);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .13em;
}

.auth-feature h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .92;
}

.auth-feature > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.55;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 4px;
  color: #a39d8f;
  font-size: 8px;
}

.auth-footer span:last-child {
  display: flex;
  gap: 13px;
}

.auth-footer a {
  color: #8b8579;
  text-underline-offset: 2px;
}

.auth-footer a:hover {
  color: var(--ink);
}

.app-error-screen {
  z-index: 320;
}

.app-error-card {
  width: min(430px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.app-error-card h1 {
  margin: 7px 0 10px;
  font-family: var(--font-display);
  font-size: 37px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .95;
}

.app-error-card > p:not(.eyebrow) {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

@keyframes loadingSweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(330%); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-height: 900px) and (min-width: 861px) {
  .page-title {
    font-size: 46px;
  }

  .page-eyebrow {
    margin-bottom: 5px;
  }

  .page-subtitle {
    margin-top: 7px;
  }

  .calendar-view {
    padding-top: 17px;
  }

  .calendar-panel {
    min-height: 537px;
  }

  .month-grid {
    grid-auto-rows: minmax(78px, 1fr);
  }

  .day-cell {
    gap: 2px;
    padding: 5px 7px;
  }

  .day-cell-head {
    height: 18px;
  }

  .day-number {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .sidebar-footer {
    padding-top: 15px;
  }

  .mini-calendar {
    margin-top: 16px;
    padding-top: 14px;
  }

  .mini-day {
    height: 23px;
  }

  .event-chip {
    height: 18px;
    min-height: 18px;
    gap: 3px;
    padding: 2px 4px;
    font-size: 8.5px;
  }

  .event-chip-time {
    font-size: 7.5px;
  }

  .task-chip {
    height: 16px;
    min-height: 16px;
    font-size: 8px;
  }

  .day-more {
    font-size: 7.5px;
    line-height: 1.1;
  }
}

@media (max-width: 1200px) {
  .app {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .sidebar {
    align-items: center;
    padding: 20px 11px 16px;
  }

  .brand {
    padding: 0;
  }

  .brand-name,
  .new-event-text,
  .new-event-btn kbd,
  .sidebar .nav-label,
  .sidebar .nav-badge,
  .sidebar .sidebar-divider,
  .sidebar .filters-panel,
  .sidebar .mini-calendar,
  .sidebar .sidebar-footer {
    display: none;
  }

  .new-event-btn {
    width: 48px;
    height: 42px;
    justify-content: center;
    padding: 0;
  }

  .new-event-icon {
    width: 30px;
    height: 30px;
  }

  .main-nav {
    width: 48px;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
  }

  .nav-item {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
  }

  .nav-item .icon {
    width: 18px;
    height: 18px;
  }

  .rail-toggle {
    display: inline-flex;
  }

  .right-rail {
    position: fixed;
    top: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    width: min(340px, calc(100vw - 32px));
    padding: 0;
    overflow-y: auto;
    transform: translateX(calc(100% + 30px));
    transition: transform .25s cubic-bezier(.22, .9, .33, 1);
  }

  body.rail-open .right-rail {
    transform: translateX(0);
  }

  body.rail-open {
    overflow: hidden;
  }

  .rail-close {
    display: grid;
  }
}

@media (max-width: 860px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }

  .sidebar {
    position: fixed;
    top: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 110;
    width: min(270px, calc(100vw - 44px));
    align-items: stretch;
    padding: 23px 17px 16px;
    overflow-y: auto;
    transform: translateX(calc(-100% - 22px));
    transition: transform .26s cubic-bezier(.22, .9, .33, 1);
  }

  .sidebar .brand-name,
  .sidebar .new-event-text,
  .sidebar .new-event-btn kbd,
  .sidebar .nav-label,
  .sidebar .nav-badge,
  .sidebar .sidebar-divider,
  .sidebar .filters-panel,
  .sidebar .mini-calendar,
  .sidebar .sidebar-footer {
    display: flex;
  }

  .sidebar .brand-name {
    display: inline;
  }

  .sidebar .sidebar-divider {
    display: block;
  }

  .sidebar .filters-panel,
  .sidebar .mini-calendar {
    display: block;
  }

  .sidebar .sidebar-footer {
    display: block;
  }

  .new-event-btn {
    width: 100%;
    height: 47px;
    justify-content: flex-start;
    padding: 0 10px 0 8px;
  }

  .new-event-btn kbd {
    display: inline-grid;
  }

  .main-nav {
    width: 100%;
    align-items: stretch;
    gap: 4px;
  }

  .nav-item {
    width: 100%;
    height: 42px;
    justify-content: flex-start;
    padding: 0 11px;
  }

  .nav-badge {
    display: grid;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .icon-btn.menu-toggle {
    display: inline-grid;
    margin-left: -8px;
  }

  .topbar {
    gap: 12px;
    padding: 0 16px;
  }

  .calendar-view {
    padding: 17px 16px 16px;
  }

  .tasks-view {
    padding: 20px 17px 24px;
  }

  .rail-toggle span {
    display: none;
  }

  .rail-toggle {
    width: 38px;
    padding: 0;
  }

  .right-rail {
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: min(350px, calc(100vw - 20px));
  }

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

  .stat-card.is-progress {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 64px;
    gap: 8px;
    padding: 0 13px;
  }

  .today-icon {
    display: none;
  }

  .today-note span {
    display: none;
  }

  .today-note strong {
    font-size: 10.5px;
  }

  .search-wrap {
    width: clamp(145px, 42vw, 260px);
  }

  .search-box {
    height: 36px;
    padding: 0 9px;
  }

  .search-kbd {
    display: none;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 14px;
  }

  .page-title {
    font-size: 43px;
  }

  .page-controls {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .calendar-view {
    padding: 15px 12px 12px;
  }

  .calendar-panel {
    min-height: 520px;
    border-radius: 16px;
  }

  .weekday-row span {
    height: 31px;
    padding-left: 6px;
    font-size: 7.5px;
    letter-spacing: .08em;
  }

  .month-grid {
    grid-auto-rows: minmax(70px, 1fr);
  }

  .day-cell {
    gap: 2px;
    padding: 4px 5px;
  }

  .day-cell-head {
    height: 20px;
  }

  .day-number {
    width: 21px;
    height: 21px;
    font-size: 10px;
  }

  .cell-add {
    display: none;
  }

  .event-chip {
    height: 18px;
    min-height: 18px;
    gap: 3px;
    padding: 2px 4px;
    font-size: 8px;
  }

  .event-chip-time {
    font-size: 7px;
  }

  .task-chip {
    height: 16px;
    min-height: 16px;
    padding: 0 4px;
    font-size: 7.5px;
  }

  .day-more {
    font-size: 7.5px;
  }

  .calendar-footer {
    display: none;
  }

  .tasks-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .tasks-page-head .btn {
    height: 34px;
  }

  .task-stats {
    gap: 7px;
    margin-top: 15px;
  }

  .stat-card {
    min-height: 76px;
    padding: 11px 12px;
  }

  .stat-number {
    font-size: 26px;
  }

  .task-toolbar {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 18px;
  }

  .filter-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .filter-tabs button {
    flex: 1;
    justify-content: center;
  }

  .list-filter-bar {
    flex-wrap: nowrap;
    padding-bottom: 13px;
    overflow-x: auto;
  }

  .list-chip {
    flex: none;
  }

  .task-groups {
    gap: 18px;
    margin-top: 17px;
  }

  .task-row {
    padding: 10px;
  }

  .task-row-actions {
    opacity: .72;
  }

  .task-row-action:not(.is-danger) {
    display: none;
  }

  .right-rail {
    width: calc(100vw - 20px);
  }

  .modal-form {
    padding: 20px;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    flex-wrap: nowrap;
  }

  .today-note strong {
    max-width: 98px;
  }

  .search-wrap {
    width: 100%;
  }

  .topbar-actions {
    flex: 1;
  }

  .topbar-avatar {
    width: 31px;
    height: 31px;
  }

  .page-title {
    gap: 8px;
    font-size: 38px;
  }

  .page-year {
    font-size: 12px;
  }

  .page-subtitle {
    font-size: 10px;
  }

  .view-toggle button {
    padding: 0 10px;
  }

  .nav-controls .btn-soft {
    padding: 0 10px;
  }

  .calendar-panel {
    min-height: 455px;
  }

  .weekday-row span {
    justify-content: center;
    padding-left: 0;
    font-size: 7px;
  }

  .month-grid {
    grid-auto-rows: minmax(59px, 1fr);
  }

  .day-cell {
    gap: 3px;
    padding: 4px 4px;
  }

  .day-cell-head {
    justify-content: center;
    height: 19px;
  }

  .day-number {
    width: 19px;
    height: 19px;
    font-size: 9.5px;
  }

  .cell-task-marker {
    display: inline-block;
  }

  .cell-task-marker.is-empty {
    visibility: hidden;
  }

  .event-chip {
    height: 5px;
    min-height: 5px;
    gap: 0;
    padding: 0;
    border-radius: 3px;
    background: var(--chip-dot);
  }

  .event-chip > * {
    display: none !important;
  }

  .task-chip {
    display: none;
  }

  .day-more {
    display: none;
  }

  .weekday-row {
    height: 30px;
  }

  .calendar-panel {
    border-radius: 14px;
  }

  .tasks-title {
    font-size: 42px;
  }

  .tasks-page-head .page-eyebrow {
    margin-bottom: 5px;
  }

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

  .stat-card.is-progress {
    grid-column: 1 / -1;
  }

  .stat-card:not(.is-progress) {
    min-height: 72px;
    align-items: flex-start;
    padding: 10px 11px;
  }

  .stat-card:not(.is-progress) .stat-number {
    font-size: 25px;
  }

  .stat-card:not(.is-progress) .stat-label {
    font-size: 7.5px;
  }

  .list-chip.add-list {
    display: none;
  }

  .filter-tabs button {
    padding: 0 8px;
    font-size: 9px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-form {
    padding: 18px;
  }

  .modal-head h2 {
    font-size: 28px;
  }

  .modal-actions {
    gap: 7px;
  }

  .modal-actions .btn {
    padding: 0 11px;
  }

  .toast {
    bottom: 14px;
  }
}

@media (max-width: 940px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    width: min(490px, 100%);
    min-height: 0;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    position: relative;
    min-height: min(660px, calc(100svh - 36px));
    padding: 88px 34px 26px;
  }

  .auth-features {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .auth-feature {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 13px;
    padding: 15px 16px;
  }

  .auth-feature-icon {
    grid-row: span 2;
    margin: 0;
  }

  .auth-feature-num {
    margin: 0;
  }

  .auth-feature h3 {
    grid-column: 2;
    font-size: 23px;
    line-height: 1;
  }

  .auth-feature > p:last-child {
    grid-column: 2;
  }

  .auth-mobile-brand {
    position: absolute;
    top: 31px;
    left: 34px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--forest);
    font-family: var(--font-display);
    font-size: 25px;
    letter-spacing: -.02em;
  }

  .auth-card-mark {
    display: none;
  }

  .auth-mobile-brand .brand-mark {
    border-color: rgba(31, 52, 44, .14);
    color: var(--gold);
    background: #fbf4e8;
  }
}

@media (max-width: 560px) {
  .auth-screen {
    padding: 10px;
  }

  .auth-shell {
    border-radius: 22px;
  }

  .auth-panel {
    min-height: min(640px, calc(100svh - 20px));
    padding: 82px 25px 23px;
  }

  .auth-page {
    justify-content: flex-start;
    gap: 10px;
  }

  .auth-footer {
    display: none;
  }

  .auth-mobile-brand {
    top: 24px;
    left: 25px;
  }

  .auth-card-mark {
    margin-bottom: 20px;
  }

  .auth-card h2 {
    font-size: 42px;
  }

  .auth-smallprint {
    margin-top: 27px;
  }

  .app-error-card {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(9px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
